@vasm/console 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +56 -0
- package/dist/index.js +418 -0
- package/package.json +30 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";var Ez=Object.create;var Zf=Object.defineProperty;var Tz=Object.getOwnPropertyDescriptor;var $z=Object.getOwnPropertyNames;var Cz=Object.getPrototypeOf,Az=Object.prototype.hasOwnProperty;var ji=(e,t)=>()=>(e&&(t=e(e=0)),t);var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Or=(e,t)=>{for(var r in t)Zf(e,r,{get:t[r],enumerable:!0})},Oz=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of $z(t))!Az.call(e,n)&&n!==r&&Zf(e,n,{get:()=>t[n],enumerable:!(i=Tz(t,n))||i.enumerable});return e};var ve=(e,t,r)=>(r=e!=null?Ez(Cz(e)):{},Oz(t||!e||!e.__esModule?Zf(r,"default",{value:e,enumerable:!0}):r,e));var us=q(Gf=>{"use strict";var Su=class extends Error{constructor(t,r,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=t,this.nestedError=void 0}},Wf=class extends Su{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Gf.CommanderError=Su;Gf.InvalidArgumentError=Wf});var Iu=q(Hf=>{"use strict";var{InvalidArgumentError:Nz}=us(),Jf=class{constructor(t,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:(r.push(t),r)}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new Nz(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(r,i):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function Dz(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}Hf.Argument=Jf;Hf.humanReadableArgName=Dz});var Xf=q(Yf=>{"use strict";var{humanReadableArgName:jz}=Iu(),Kf=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(t){this.helpWidth=this.helpWidth??t.helpWidth??80}visibleCommands(t){let r=t.commands.filter(n=>!n._hidden),i=t._getHelpCommand();return i&&!i._hidden&&r.push(i),this.sortSubcommands&&r.sort((n,a)=>n.name().localeCompare(a.name())),r}compareOptions(t,r){let i=n=>n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"");return i(t).localeCompare(i(r))}visibleOptions(t){let r=t.options.filter(n=>!n.hidden),i=t._getHelpOption();if(i&&!i.hidden){let n=i.short&&t._findOption(i.short),a=i.long&&t._findOption(i.long);!n&&!a?r.push(i):i.long&&!a?r.push(t.createOption(i.long,i.description)):i.short&&!n&&r.push(t.createOption(i.short,i.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let r=[];for(let i=t.parent;i;i=i.parent){let n=i.options.filter(a=>!a.hidden);r.push(...n)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(r=>{r.description=r.description||t._argsDescription[r.name()]||""}),t.registeredArguments.find(r=>r.description)?t.registeredArguments:[]}subcommandTerm(t){let r=t.registeredArguments.map(i=>jz(i)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,r){return r.visibleCommands(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(n)))),0)}longestOptionTermLength(t,r){return r.visibleOptions(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestGlobalOptionTermLength(t,r){return r.visibleGlobalOptions(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestArgumentTermLength(t,r){return r.visibleArguments(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(n)))),0)}commandUsage(t){let r=t._name;t._aliases[0]&&(r=r+"|"+t._aliases[0]);let i="";for(let n=t.parent;n;n=n.parent)i=n.name()+" "+i;return i+r+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&r.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&r.push(`env: ${t.envVar}`),r.length>0){let i=`(${r.join(", ")})`;return t.description?`${t.description} ${i}`:i}return t.description}argumentDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),t.defaultValue!==void 0&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),r.length>0){let i=`(${r.join(", ")})`;return t.description?`${t.description} ${i}`:i}return t.description}formatItemList(t,r,i){return r.length===0?[]:[i.styleTitle(t),...r,""]}groupItems(t,r,i){let n=new Map;return t.forEach(a=>{let o=i(a);n.has(o)||n.set(o,[])}),r.forEach(a=>{let o=i(a);n.has(o)||n.set(o,[]),n.get(o).push(a)}),n}formatHelp(t,r){let i=r.padWidth(t,r),n=r.helpWidth??80;function a(p,f){return r.formatItem(p,i,f,r)}let o=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(t))}`,""],s=r.commandDescription(t);s.length>0&&(o=o.concat([r.boxWrap(r.styleCommandDescription(s),n),""]));let u=r.visibleArguments(t).map(p=>a(r.styleArgumentTerm(r.argumentTerm(p)),r.styleArgumentDescription(r.argumentDescription(p))));if(o=o.concat(this.formatItemList("Arguments:",u,r)),this.groupItems(t.options,r.visibleOptions(t),p=>p.helpGroupHeading??"Options:").forEach((p,f)=>{let m=p.map(g=>a(r.styleOptionTerm(r.optionTerm(g)),r.styleOptionDescription(r.optionDescription(g))));o=o.concat(this.formatItemList(f,m,r))}),r.showGlobalOptions){let p=r.visibleGlobalOptions(t).map(f=>a(r.styleOptionTerm(r.optionTerm(f)),r.styleOptionDescription(r.optionDescription(f))));o=o.concat(this.formatItemList("Global Options:",p,r))}return this.groupItems(t.commands,r.visibleCommands(t),p=>p.helpGroup()||"Commands:").forEach((p,f)=>{let m=p.map(g=>a(r.styleSubcommandTerm(r.subcommandTerm(g)),r.styleSubcommandDescription(r.subcommandDescription(g))));o=o.concat(this.formatItemList(f,m,r))}),o.join(`
|
|
3
|
+
`)}displayWidth(t){return $x(t).length}styleTitle(t){return t}styleUsage(t){return t.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(t){return this.styleDescriptionText(t)}styleOptionDescription(t){return this.styleDescriptionText(t)}styleSubcommandDescription(t){return this.styleDescriptionText(t)}styleArgumentDescription(t){return this.styleDescriptionText(t)}styleDescriptionText(t){return t}styleOptionTerm(t){return this.styleOptionText(t)}styleSubcommandTerm(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleSubcommandText(r)).join(" ")}styleArgumentTerm(t){return this.styleArgumentText(t)}styleOptionText(t){return t}styleArgumentText(t){return t}styleSubcommandText(t){return t}styleCommandText(t){return t}padWidth(t,r){return Math.max(r.longestOptionTermLength(t,r),r.longestGlobalOptionTermLength(t,r),r.longestSubcommandTermLength(t,r),r.longestArgumentTermLength(t,r))}preformatted(t){return/\n[^\S\r\n]/.test(t)}formatItem(t,r,i,n){let o=" ".repeat(2);if(!i)return o+t;let s=t.padEnd(r+t.length-n.displayWidth(t)),u=2,d=(this.helpWidth??80)-r-u-2,p;return d<this.minWidthToWrap||n.preformatted(i)?p=i:p=n.boxWrap(i,d).replace(/\n/g,`
|
|
4
|
+
`+" ".repeat(r+u)),o+s+" ".repeat(u)+p.replace(/\n/g,`
|
|
5
|
+
${o}`)}boxWrap(t,r){if(r<this.minWidthToWrap)return t;let i=t.split(/\r\n|\n/),n=/[\s]*[^\s]+/g,a=[];return i.forEach(o=>{let s=o.match(n);if(s===null){a.push("");return}let u=[s.shift()],c=this.displayWidth(u[0]);s.forEach(d=>{let p=this.displayWidth(d);if(c+p<=r){u.push(d),c+=p;return}a.push(u.join(""));let f=d.trimStart();u=[f],c=this.displayWidth(f)}),a.push(u.join(""))}),a.join(`
|
|
6
|
+
`)}};function $x(e){let t=/\x1b\[\d*(;\d*)*m/g;return e.replace(t,"")}Yf.Help=Kf;Yf.stripColor=$x});var rm=q(tm=>{"use strict";var{InvalidArgumentError:Pz}=us(),Qf=class{constructor(t,r){this.flags=t,this.description=r||"",this.required=t.includes("<"),this.optional=t.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;let i=zz(t);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,this.helpGroupHeading=void 0}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}preset(t){return this.presetArg=t,this}conflicts(t){return this.conflictsWith=this.conflictsWith.concat(t),this}implies(t){let r=t;return typeof t=="string"&&(r={[t]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(t){return this.envVar=t,this}argParser(t){return this.parseArg=t,this}makeOptionMandatory(t=!0){return this.mandatory=!!t,this}hideHelp(t=!0){return this.hidden=!!t,this}_collectValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:(r.push(t),r)}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new Pz(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(r,i):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?Cx(this.name().replace(/^no-/,"")):Cx(this.name())}helpGroup(t){return this.helpGroupHeading=t,this}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},em=class{constructor(t){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.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(t,r){let i=r.attributeName();if(!this.dualOptions.has(i))return!0;let n=this.negativeOptions.get(i).presetArg,a=n!==void 0?n:!1;return r.negate===(a===t)}};function Cx(e){return e.split("-").reduce((t,r)=>t+r[0].toUpperCase()+r.slice(1))}function zz(e){let t,r,i=/^-[^-]$/,n=/^--[^-]/,a=e.split(/[ |,]+/).concat("guard");if(i.test(a[0])&&(t=a.shift()),n.test(a[0])&&(r=a.shift()),!t&&i.test(a[0])&&(t=a.shift()),!t&&n.test(a[0])&&(t=r,r=a.shift()),a[0].startsWith("-")){let o=a[0],s=`option creation failed due to '${o}' in option flags '${e}'`;throw/^-[^-][^-]/.test(o)?new Error(`${s}
|
|
7
|
+
- a short flag is a single dash and a single character
|
|
8
|
+
- either use a single dash and a single character (for a short flag)
|
|
9
|
+
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`):i.test(o)?new Error(`${s}
|
|
10
|
+
- too many short flags`):n.test(o)?new Error(`${s}
|
|
11
|
+
- too many long flags`):new Error(`${s}
|
|
12
|
+
- unrecognised flag format`)}if(t===void 0&&r===void 0)throw new Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:r}}tm.Option=Qf;tm.DualOptions=em});var Ox=q(Ax=>{"use strict";function Rz(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);let r=[];for(let i=0;i<=e.length;i++)r[i]=[i];for(let i=0;i<=t.length;i++)r[0][i]=i;for(let i=1;i<=t.length;i++)for(let n=1;n<=e.length;n++){let a=1;e[n-1]===t[i-1]?a=0:a=1,r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+a),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+1))}return r[e.length][t.length]}function Mz(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));let r=e.startsWith("--");r&&(e=e.slice(2),t=t.map(o=>o.slice(2)));let i=[],n=3,a=.4;return t.forEach(o=>{if(o.length<=1)return;let s=Rz(e,o),u=Math.max(e.length,o.length);(u-s)/u>a&&(s<n?(n=s,i=[o]):s===n&&i.push(o))}),i.sort((o,s)=>o.localeCompare(s)),r&&(i=i.map(o=>`--${o}`)),i.length>1?`
|
|
13
|
+
(Did you mean one of ${i.join(", ")}?)`:i.length===1?`
|
|
14
|
+
(Did you mean ${i[0]}?)`:""}Ax.suggestSimilar=Mz});var Px=q(sm=>{"use strict";var Lz=require("events").EventEmitter,nm=require("child_process"),fn=require("path"),Eu=require("fs"),Le=require("process"),{Argument:Fz,humanReadableArgName:Uz}=Iu(),{CommanderError:im}=us(),{Help:qz,stripColor:Bz}=Xf(),{Option:Nx,DualOptions:Vz}=rm(),{suggestSimilar:Dx}=Ox(),am=class e extends Lz{constructor(t){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=t||"",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=>Le.stdout.write(r),writeErr:r=>Le.stderr.write(r),outputError:(r,i)=>i(r),getOutHelpWidth:()=>Le.stdout.isTTY?Le.stdout.columns:void 0,getErrHelpWidth:()=>Le.stderr.isTTY?Le.stderr.columns:void 0,getOutHasColors:()=>om()??(Le.stdout.isTTY&&Le.stdout.hasColors?.()),getErrHasColors:()=>om()??(Le.stderr.isTTY&&Le.stderr.hasColors?.()),stripColor:r=>Bz(r)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(t){return this._outputConfiguration=t._outputConfiguration,this._helpOption=t._helpOption,this._helpCommand=t._helpCommand,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){let t=[];for(let r=this;r;r=r.parent)t.push(r);return t}command(t,r,i){let n=r,a=i;typeof n=="object"&&n!==null&&(a=n,n=null),a=a||{};let[,o,s]=t.match(/([^ ]+) *(.*)/),u=this.createCommand(o);return n&&(u.description(n),u._executableHandler=!0),a.isDefault&&(this._defaultCommandName=u._name),u._hidden=!!(a.noHelp||a.hidden),u._executableFile=a.executableFile||null,s&&u.arguments(s),this._registerCommand(u),u.parent=this,u.copyInheritedSettings(this),n?this:u}createCommand(t){return new e(t)}createHelp(){return Object.assign(new qz,this.configureHelp())}configureHelp(t){return t===void 0?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return t===void 0?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...t},this)}showHelpAfterError(t=!0){return typeof t!="string"&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,r){if(!t._name)throw new Error(`Command passed to .addCommand() must have a name
|
|
15
|
+
- specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=t._name),(r.noHelp||r.hidden)&&(t._hidden=!0),this._registerCommand(t),t.parent=this,t._checkForBrokenPassThrough(),this}createArgument(t,r){return new Fz(t,r)}argument(t,r,i,n){let a=this.createArgument(t,r);return typeof i=="function"?a.default(n).argParser(i):a.default(i),this.addArgument(a),this}arguments(t){return t.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(t){let r=this.registeredArguments.slice(-1)[0];if(r?.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(t.required&&t.defaultValue!==void 0&&t.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${t.name()}'`);return this.registeredArguments.push(t),this}helpCommand(t,r){if(typeof t=="boolean")return this._addImplicitHelpCommand=t,t&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;let i=t??"help [command]",[,n,a]=i.match(/([^ ]+) *(.*)/),o=r??"display help for command",s=this.createCommand(n);return s.helpOption(!1),a&&s.arguments(a),o&&s.description(o),this._addImplicitHelpCommand=!0,this._helpCommand=s,(t||r)&&this._initCommandGroup(s),this}addHelpCommand(t,r){return typeof t!="object"?(this.helpCommand(t,r),this):(this._addImplicitHelpCommand=!0,this._helpCommand=t,this._initCommandGroup(t),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(t,r){let i=["preSubcommand","preAction","postAction"];if(!i.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.
|
|
16
|
+
Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(r):this._lifeCycleHooks[t]=[r],this}exitOverride(t){return t?this._exitCallback=t:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(t,r,i){this._exitCallback&&this._exitCallback(new im(t,r,i)),Le.exit(t)}action(t){let r=i=>{let n=this.registeredArguments.length,a=i.slice(0,n);return this._storeOptionsAsProperties?a[n]=this:a[n]=this.opts(),a.push(this),t.apply(this,a)};return this._actionHandler=r,this}createOption(t,r){return new Nx(t,r)}_callParseArg(t,r,i,n){try{return t.parseArg(r,i)}catch(a){if(a.code==="commander.invalidArgument"){let o=`${n} ${a.message}`;this.error(o,{exitCode:a.exitCode,code:a.code})}throw a}}_registerOption(t){let r=t.short&&this._findOption(t.short)||t.long&&this._findOption(t.long);if(r){let i=t.long&&this._findOption(t.long)?t.long:t.short;throw new Error(`Cannot add option '${t.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${i}'
|
|
17
|
+
- already used by option '${r.flags}'`)}this._initOptionGroup(t),this.options.push(t)}_registerCommand(t){let r=n=>[n.name()].concat(n.aliases()),i=r(t).find(n=>this._findCommand(n));if(i){let n=r(this._findCommand(i)).join("|"),a=r(t).join("|");throw new Error(`cannot add command '${a}' as already have command '${n}'`)}this._initCommandGroup(t),this.commands.push(t)}addOption(t){this._registerOption(t);let r=t.name(),i=t.attributeName();if(t.negate){let a=t.long.replace(/^--no-/,"--");this._findOption(a)||this.setOptionValueWithSource(i,t.defaultValue===void 0?!0:t.defaultValue,"default")}else t.defaultValue!==void 0&&this.setOptionValueWithSource(i,t.defaultValue,"default");let n=(a,o,s)=>{a==null&&t.presetArg!==void 0&&(a=t.presetArg);let u=this.getOptionValue(i);a!==null&&t.parseArg?a=this._callParseArg(t,a,u,o):a!==null&&t.variadic&&(a=t._collectValue(a,u)),a==null&&(t.negate?a=!1:t.isBoolean()||t.optional?a=!0:a=""),this.setOptionValueWithSource(i,a,s)};return this.on("option:"+r,a=>{let o=`error: option '${t.flags}' argument '${a}' is invalid.`;n(a,o,"cli")}),t.envVar&&this.on("optionEnv:"+r,a=>{let o=`error: option '${t.flags}' value '${a}' from env '${t.envVar}' is invalid.`;n(a,o,"env")}),this}_optionEx(t,r,i,n,a){if(typeof r=="object"&&r instanceof Nx)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(r,i);if(o.makeOptionMandatory(!!t.mandatory),typeof n=="function")o.default(a).argParser(n);else if(n instanceof RegExp){let s=n;n=(u,c)=>{let d=s.exec(u);return d?d[0]:c},o.default(a).argParser(n)}else o.default(n);return this.addOption(o)}option(t,r,i,n){return this._optionEx({},t,r,i,n)}requiredOption(t,r,i,n){return this._optionEx({mandatory:!0},t,r,i,n)}combineFlagAndOptionalValue(t=!0){return this._combineFlagAndOptionalValue=!!t,this}allowUnknownOption(t=!0){return this._allowUnknownOption=!!t,this}allowExcessArguments(t=!0){return this._allowExcessArguments=!!t,this}enablePositionalOptions(t=!0){return this._enablePositionalOptions=!!t,this}passThroughOptions(t=!0){return this._passThroughOptions=!!t,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(t=!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=!!t,this}getOptionValue(t){return this._storeOptionsAsProperties?this[t]:this._optionValues[t]}setOptionValue(t,r){return this.setOptionValueWithSource(t,r,void 0)}setOptionValueWithSource(t,r,i){return this._storeOptionsAsProperties?this[t]=r:this._optionValues[t]=r,this._optionValueSources[t]=i,this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let r;return this._getCommandAndAncestors().forEach(i=>{i.getOptionValueSource(t)!==void 0&&(r=i.getOptionValueSource(t))}),r}_prepareUserArgs(t,r){if(t!==void 0&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");if(r=r||{},t===void 0&&r.from===void 0){Le.versions?.electron&&(r.from="electron");let n=Le.execArgv??[];(n.includes("-e")||n.includes("--eval")||n.includes("-p")||n.includes("--print"))&&(r.from="eval")}t===void 0&&(t=Le.argv),this.rawArgs=t.slice();let i;switch(r.from){case void 0:case"node":this._scriptPath=t[1],i=t.slice(2);break;case"electron":Le.defaultApp?(this._scriptPath=t[1],i=t.slice(2)):i=t.slice(1);break;case"user":i=t.slice(0);break;case"eval":i=t.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(t,r){this._prepareForParse();let i=this._prepareUserArgs(t,r);return this._parseCommand([],i),this}async parseAsync(t,r){this._prepareForParse();let i=this._prepareUserArgs(t,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.
|
|
18
|
+
- 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(t,r,i){if(Eu.existsSync(t))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",a=`'${t}' does not exist
|
|
19
|
+
- if '${i}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
20
|
+
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
21
|
+
- ${n}`;throw new Error(a)}_executeSubCommand(t,r){r=r.slice();let i=!1,n=[".js",".ts",".tsx",".mjs",".cjs"];function a(d,p){let f=fn.resolve(d,p);if(Eu.existsSync(f))return f;if(n.includes(fn.extname(p)))return;let m=n.find(g=>Eu.existsSync(`${f}${g}`));if(m)return`${f}${m}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let o=t._executableFile||`${this._name}-${t._name}`,s=this._executableDir||"";if(this._scriptPath){let d;try{d=Eu.realpathSync(this._scriptPath)}catch{d=this._scriptPath}s=fn.resolve(fn.dirname(d),s)}if(s){let d=a(s,o);if(!d&&!t._executableFile&&this._scriptPath){let p=fn.basename(this._scriptPath,fn.extname(this._scriptPath));p!==this._name&&(d=a(s,`${p}-${t._name}`))}o=d||o}i=n.includes(fn.extname(o));let u;Le.platform!=="win32"?i?(r.unshift(o),r=jx(Le.execArgv).concat(r),u=nm.spawn(Le.argv[0],r,{stdio:"inherit"})):u=nm.spawn(o,r,{stdio:"inherit"}):(this._checkForMissingExecutable(o,s,t._name),r.unshift(o),r=jx(Le.execArgv).concat(r),u=nm.spawn(Le.execPath,r,{stdio:"inherit"})),u.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(p=>{Le.on(p,()=>{u.killed===!1&&u.exitCode===null&&u.kill(p)})});let c=this._exitCallback;u.on("close",d=>{d=d??1,c?c(new im(d,"commander.executeSubCommandAsync","(close)")):Le.exit(d)}),u.on("error",d=>{if(d.code==="ENOENT")this._checkForMissingExecutable(o,s,t._name);else if(d.code==="EACCES")throw new Error(`'${o}' not executable`);if(!c)Le.exit(1);else{let p=new im(1,"commander.executeSubCommandAsync","(error)");p.nestedError=d,c(p)}}),this.runningCommand=u}_dispatchSubcommand(t,r,i){let n=this._findCommand(t);n||this.help({error:!0}),n._prepareForParse();let a;return a=this._chainOrCallSubCommandHook(a,n,"preSubcommand"),a=this._chainOrCall(a,()=>{if(n._executableHandler)this._executeSubCommand(n,r.concat(i));else return n._parseCommand(r,i)}),a}_dispatchHelpCommand(t){t||this.help();let r=this._findCommand(t);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((t,r)=>{t.required&&this.args[r]==null&&this.missingArgument(t.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let t=(i,n,a)=>{let o=n;if(n!==null&&i.parseArg){let s=`error: command-argument value '${n}' is invalid for argument '${i.name()}'.`;o=this._callParseArg(i,n,a,s)}return o};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((i,n)=>{let a=i.defaultValue;i.variadic?n<this.args.length?(a=this.args.slice(n),i.parseArg&&(a=a.reduce((o,s)=>t(i,s,o),i.defaultValue))):a===void 0&&(a=[]):n<this.args.length&&(a=this.args[n],i.parseArg&&(a=t(i,a,i.defaultValue))),r[n]=a}),this.processedArgs=r}_chainOrCall(t,r){return t?.then&&typeof t.then=="function"?t.then(()=>r()):r()}_chainOrCallHooks(t,r){let i=t,n=[];return this._getCommandAndAncestors().reverse().filter(a=>a._lifeCycleHooks[r]!==void 0).forEach(a=>{a._lifeCycleHooks[r].forEach(o=>{n.push({hookedCommand:a,callback:o})})}),r==="postAction"&&n.reverse(),n.forEach(a=>{i=this._chainOrCall(i,()=>a.callback(a.hookedCommand,this))}),i}_chainOrCallSubCommandHook(t,r,i){let n=t;return this._lifeCycleHooks[i]!==void 0&&this._lifeCycleHooks[i].forEach(a=>{n=this._chainOrCall(n,()=>a(this,r))}),n}_parseCommand(t,r){let i=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),t=t.concat(i.operands),r=i.unknown,this.args=t.concat(r),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),r);if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(t[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(r),this._dispatchSubcommand(this._defaultCommandName,t,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])},a=`command:${this.name()}`;if(this._actionHandler){n(),this._processArguments();let o;return o=this._chainOrCallHooks(o,"preAction"),o=this._chainOrCall(o,()=>this._actionHandler(this.processedArgs)),this.parent&&(o=this._chainOrCall(o,()=>{this.parent.emit(a,t,r)})),o=this._chainOrCallHooks(o,"postAction"),o}if(this.parent?.listenerCount(a))n(),this._processArguments(),this.parent.emit(a,t,r);else if(t.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",t,r);this.listenerCount("command:*")?this.emit("command:*",t,r):this.commands.length?this.unknownCommand():(n(),this._processArguments())}else this.commands.length?(n(),this.help({error:!0})):(n(),this._processArguments())}_findCommand(t){if(t)return this.commands.find(r=>r._name===t||r._aliases.includes(t))}_findOption(t){return this.options.find(r=>r.is(t))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(t=>{t.options.forEach(r=>{r.mandatory&&t.getOptionValue(r.attributeName())===void 0&&t.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let t=this.options.filter(i=>{let n=i.attributeName();return this.getOptionValue(n)===void 0?!1:this.getOptionValueSource(n)!=="default"});t.filter(i=>i.conflictsWith.length>0).forEach(i=>{let n=t.find(a=>i.conflictsWith.includes(a.attributeName()));n&&this._conflictingOption(i,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(t=>{t._checkForConflictingLocalOptions()})}parseOptions(t){let r=[],i=[],n=r;function a(d){return d.length>1&&d[0]==="-"}let o=d=>/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(d)?!this._getCommandAndAncestors().some(p=>p.options.map(f=>f.short).some(f=>/^-\d$/.test(f))):!1,s=null,u=null,c=0;for(;c<t.length||u;){let d=u??t[c++];if(u=null,d==="--"){n===i&&n.push(d),n.push(...t.slice(c));break}if(s&&(!a(d)||o(d))){this.emit(`option:${s.name()}`,d);continue}if(s=null,a(d)){let p=this._findOption(d);if(p){if(p.required){let f=t[c++];f===void 0&&this.optionMissingArgument(p),this.emit(`option:${p.name()}`,f)}else if(p.optional){let f=null;c<t.length&&(!a(t[c])||o(t[c]))&&(f=t[c++]),this.emit(`option:${p.name()}`,f)}else this.emit(`option:${p.name()}`);s=p.variadic?p:null;continue}}if(d.length>2&&d[0]==="-"&&d[1]!=="-"){let p=this._findOption(`-${d[1]}`);if(p){p.required||p.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${p.name()}`,d.slice(2)):(this.emit(`option:${p.name()}`),u=`-${d.slice(2)}`);continue}}if(/^--[^=]+=/.test(d)){let p=d.indexOf("="),f=this._findOption(d.slice(0,p));if(f&&(f.required||f.optional)){this.emit(`option:${f.name()}`,d.slice(p+1));continue}}if(n===r&&a(d)&&!(this.commands.length===0&&o(d))&&(n=i),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&i.length===0){if(this._findCommand(d)){r.push(d),i.push(...t.slice(c));break}else if(this._getHelpCommand()&&d===this._getHelpCommand().name()){r.push(d,...t.slice(c));break}else if(this._defaultCommandName){i.push(d,...t.slice(c));break}}if(this._passThroughOptions){n.push(d,...t.slice(c));break}n.push(d)}return{operands:r,unknown:i}}opts(){if(this._storeOptionsAsProperties){let t={},r=this.options.length;for(let i=0;i<r;i++){let n=this.options[i].attributeName();t[n]=n===this._versionOptionName?this._version:this[n]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((t,r)=>Object.assign(t,r.opts()),{})}error(t,r){this._outputConfiguration.outputError(`${t}
|
|
22
|
+
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
23
|
+
`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
|
|
24
|
+
`),this.outputHelp({error:!0}));let i=r||{},n=i.exitCode||1,a=i.code||"commander.error";this._exit(n,a,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in Le.env){let r=t.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,Le.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new Vz(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())&&t.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(t){let r=`error: missing required argument '${t}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(t){let r=`error: option '${t.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){let r=`error: required option '${t.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,r){let i=o=>{let s=o.attributeName(),u=this.getOptionValue(s),c=this.options.find(p=>p.negate&&s===p.attributeName()),d=this.options.find(p=>!p.negate&&s===p.attributeName());return c&&(c.presetArg===void 0&&u===!1||c.presetArg!==void 0&&u===c.presetArg)?c:d||o},n=o=>{let s=i(o),u=s.attributeName();return this.getOptionValueSource(u)==="env"?`environment variable '${s.envVar}'`:`option '${s.flags}'`},a=`error: ${n(t)} cannot be used with ${n(r)}`;this.error(a,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let r="";if(t.startsWith("--")&&this._showSuggestionAfterError){let n=[],a=this;do{let o=a.createHelp().visibleOptions(a).filter(s=>s.long).map(s=>s.long);n=n.concat(o),a=a.parent}while(a&&!a._enablePositionalOptions);r=Dx(t,n)}let i=`error: unknown option '${t}'${r}`;this.error(i,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,i=r===1?"":"s",a=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${i} but got ${t.length}.`;this.error(a,{code:"commander.excessArguments"})}unknownCommand(){let t=this.args[0],r="";if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach(a=>{n.push(a.name()),a.alias()&&n.push(a.alias())}),r=Dx(t,n)}let i=`error: unknown command '${t}'${r}`;this.error(i,{code:"commander.unknownCommand"})}version(t,r,i){if(t===void 0)return this._version;this._version=t,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(`${t}
|
|
25
|
+
`),this._exit(0,"commander.version",t)}),this}description(t,r){return t===void 0&&r===void 0?this._description:(this._description=t,r&&(this._argsDescription=r),this)}summary(t){return t===void 0?this._summary:(this._summary=t,this)}alias(t){if(t===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]),t===r._name)throw new Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(t);if(i){let n=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${n}'`)}return r._aliases.push(t),this}aliases(t){return t===void 0?this._aliases:(t.forEach(r=>this.alias(r)),this)}usage(t){if(t===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(i=>Uz(i));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=t,this}name(t){return t===void 0?this._name:(this._name=t,this)}helpGroup(t){return t===void 0?this._helpGroupHeading??"":(this._helpGroupHeading=t,this)}commandsGroup(t){return t===void 0?this._defaultCommandGroup??"":(this._defaultCommandGroup=t,this)}optionsGroup(t){return t===void 0?this._defaultOptionGroup??"":(this._defaultOptionGroup=t,this)}_initOptionGroup(t){this._defaultOptionGroup&&!t.helpGroupHeading&&t.helpGroup(this._defaultOptionGroup)}_initCommandGroup(t){this._defaultCommandGroup&&!t.helpGroup()&&t.helpGroup(this._defaultCommandGroup)}nameFromFilename(t){return this._name=fn.basename(t,fn.extname(t)),this}executableDir(t){return t===void 0?this._executableDir:(this._executableDir=t,this)}helpInformation(t){let r=this.createHelp(),i=this._getOutputContext(t);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(t){t=t||{};let r=!!t.error,i,n,a;return r?(i=s=>this._outputConfiguration.writeErr(s),n=this._outputConfiguration.getErrHasColors(),a=this._outputConfiguration.getErrHelpWidth()):(i=s=>this._outputConfiguration.writeOut(s),n=this._outputConfiguration.getOutHasColors(),a=this._outputConfiguration.getOutHelpWidth()),{error:r,write:s=>(n||(s=this._outputConfiguration.stripColor(s)),i(s)),hasColors:n,helpWidth:a}}outputHelp(t){let r;typeof t=="function"&&(r=t,t=void 0);let i=this._getOutputContext(t),n={error:i.error,write:i.write,command:this};this._getCommandAndAncestors().reverse().forEach(o=>o.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let a=this.helpInformation({error:i.error});if(r&&(a=r(a),typeof a!="string"&&!Buffer.isBuffer(a)))throw new Error("outputHelp callback must return a string or a Buffer");i.write(a),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(o=>o.emit("afterAllHelp",n))}helpOption(t,r){return typeof t=="boolean"?(t?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(t??"-h, --help",r??"display help for command"),(t||r)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){return this._helpOption=t,this._initOptionGroup(t),this}help(t){this.outputHelp(t);let r=Number(Le.exitCode??0);r===0&&t&&typeof t!="function"&&t.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(t,r){let i=["beforeAll","before","after","afterAll"];if(!i.includes(t))throw new Error(`Unexpected value for position to addHelpText.
|
|
26
|
+
Expecting one of '${i.join("', '")}'`);let n=`${t}Help`;return this.on(n,a=>{let o;typeof r=="function"?o=r({error:a.error,command:a.command}):o=r,o&&a.write(`${o}
|
|
27
|
+
`)}),this}_outputHelpIfRequested(t){let r=this._getHelpOption();r&&t.find(n=>r.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function jx(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let r,i="127.0.0.1",n="9229",a;return(a=t.match(/^(--inspect(-brk)?)$/))!==null?r=a[1]:(a=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=a[1],/^\d+$/.test(a[3])?n=a[3]:i=a[3]):(a=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=a[1],i=a[3],n=a[4]),r&&n!=="0"?`${r}=${i}:${parseInt(n)+1}`:t})}function om(){if(Le.env.NO_COLOR||Le.env.FORCE_COLOR==="0"||Le.env.FORCE_COLOR==="false")return!1;if(Le.env.FORCE_COLOR||Le.env.CLICOLOR_FORCE!==void 0)return!0}sm.Command=am;sm.useColor=om});var Lx=q(br=>{"use strict";var{Argument:zx}=Iu(),{Command:lm}=Px(),{CommanderError:Zz,InvalidArgumentError:Rx}=us(),{Help:Wz}=Xf(),{Option:Mx}=rm();br.program=new lm;br.createCommand=e=>new lm(e);br.createOption=(e,t)=>new Mx(e,t);br.createArgument=(e,t)=>new zx(e,t);br.Command=lm;br.Option=Mx;br.Argument=zx;br.Help=Wz;br.CommanderError=Zz;br.InvalidArgumentError=Rx;br.InvalidOptionArgumentError=Rx});var ze=q(yt=>{"use strict";var Cm=Symbol.for("yaml.alias"),y0=Symbol.for("yaml.document"),Zu=Symbol.for("yaml.map"),v0=Symbol.for("yaml.pair"),Am=Symbol.for("yaml.scalar"),Wu=Symbol.for("yaml.seq"),gn=Symbol.for("yaml.node.type"),jL=e=>!!e&&typeof e=="object"&&e[gn]===Cm,PL=e=>!!e&&typeof e=="object"&&e[gn]===y0,zL=e=>!!e&&typeof e=="object"&&e[gn]===Zu,RL=e=>!!e&&typeof e=="object"&&e[gn]===v0,b0=e=>!!e&&typeof e=="object"&&e[gn]===Am,ML=e=>!!e&&typeof e=="object"&&e[gn]===Wu;function _0(e){if(e&&typeof e=="object")switch(e[gn]){case Zu:case Wu:return!0}return!1}function LL(e){if(e&&typeof e=="object")switch(e[gn]){case Cm:case Zu:case Am:case Wu:return!0}return!1}var FL=e=>(b0(e)||_0(e))&&!!e.anchor;yt.ALIAS=Cm;yt.DOC=y0;yt.MAP=Zu;yt.NODE_TYPE=gn;yt.PAIR=v0;yt.SCALAR=Am;yt.SEQ=Wu;yt.hasAnchor=FL;yt.isAlias=jL;yt.isCollection=_0;yt.isDocument=PL;yt.isMap=zL;yt.isNode=LL;yt.isPair=RL;yt.isScalar=b0;yt.isSeq=ML});var Ss=q(Om=>{"use strict";var lt=ze(),Ht=Symbol("break visit"),w0=Symbol("skip children"),en=Symbol("remove node");function Gu(e,t){let r=k0(t);lt.isDocument(e)?Ea(null,e.contents,r,Object.freeze([e]))===en&&(e.contents=null):Ea(null,e,r,Object.freeze([]))}Gu.BREAK=Ht;Gu.SKIP=w0;Gu.REMOVE=en;function Ea(e,t,r,i){let n=x0(e,t,r,i);if(lt.isNode(n)||lt.isPair(n))return S0(e,i,n),Ea(e,n,r,i);if(typeof n!="symbol"){if(lt.isCollection(t)){i=Object.freeze(i.concat(t));for(let a=0;a<t.items.length;++a){let o=Ea(a,t.items[a],r,i);if(typeof o=="number")a=o-1;else{if(o===Ht)return Ht;o===en&&(t.items.splice(a,1),a-=1)}}}else if(lt.isPair(t)){i=Object.freeze(i.concat(t));let a=Ea("key",t.key,r,i);if(a===Ht)return Ht;a===en&&(t.key=null);let o=Ea("value",t.value,r,i);if(o===Ht)return Ht;o===en&&(t.value=null)}}return n}async function Ju(e,t){let r=k0(t);lt.isDocument(e)?await Ta(null,e.contents,r,Object.freeze([e]))===en&&(e.contents=null):await Ta(null,e,r,Object.freeze([]))}Ju.BREAK=Ht;Ju.SKIP=w0;Ju.REMOVE=en;async function Ta(e,t,r,i){let n=await x0(e,t,r,i);if(lt.isNode(n)||lt.isPair(n))return S0(e,i,n),Ta(e,n,r,i);if(typeof n!="symbol"){if(lt.isCollection(t)){i=Object.freeze(i.concat(t));for(let a=0;a<t.items.length;++a){let o=await Ta(a,t.items[a],r,i);if(typeof o=="number")a=o-1;else{if(o===Ht)return Ht;o===en&&(t.items.splice(a,1),a-=1)}}}else if(lt.isPair(t)){i=Object.freeze(i.concat(t));let a=await Ta("key",t.key,r,i);if(a===Ht)return Ht;a===en&&(t.key=null);let o=await Ta("value",t.value,r,i);if(o===Ht)return Ht;o===en&&(t.value=null)}}return n}function k0(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function x0(e,t,r,i){if(typeof r=="function")return r(e,t,i);if(lt.isMap(t))return r.Map?.(e,t,i);if(lt.isSeq(t))return r.Seq?.(e,t,i);if(lt.isPair(t))return r.Pair?.(e,t,i);if(lt.isScalar(t))return r.Scalar?.(e,t,i);if(lt.isAlias(t))return r.Alias?.(e,t,i)}function S0(e,t,r){let i=t[t.length-1];if(lt.isCollection(i))i.items[e]=r;else if(lt.isPair(i))e==="key"?i.key=r:i.value=r;else if(lt.isDocument(i))i.contents=r;else{let n=lt.isAlias(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${n} parent`)}}Om.visit=Gu;Om.visitAsync=Ju});var Nm=q(E0=>{"use strict";var I0=ze(),UL=Ss(),qL={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},BL=e=>e.replace(/[!,[\]{}]/g,t=>qL[t]),Is=class e{constructor(t,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,r)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,r){this.atNextDocument&&(this.yaml={explicit:e.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},e.defaultTags),this.atNextDocument=!1);let i=t.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[a,o]=i;return this.tags[a]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;let[a]=i;if(a==="1.1"||a==="1.2")return this.yaml.version=a,!0;{let o=/^\d+\.\d+$/.test(a);return r(6,`Unsupported YAML version ${a}`,o),!1}}default:return r(0,`Unknown directive ${n}`,!0),!1}}tagName(t,r){if(t==="!")return"!";if(t[0]!=="!")return r(`Not a valid tag: ${t}`),null;if(t[1]==="<"){let o=t.slice(2,-1);return o==="!"||o==="!!"?(r(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&r("Verbatim tags must end with a >"),o)}let[,i,n]=t.match(/^(.*!)([^!]*)$/s);n||r(`The ${t} tag has no suffix`);let a=this.tags[i];if(a)try{return a+decodeURIComponent(n)}catch(o){return r(String(o)),null}return i==="!"?t:(r(`Could not resolve tag: ${t}`),null)}tagString(t){for(let[r,i]of Object.entries(this.tags))if(t.startsWith(i))return r+BL(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags),n;if(t&&i.length>0&&I0.isNode(t.contents)){let a={};UL.visit(t.contents,(o,s)=>{I0.isNode(s)&&s.tag&&(a[s.tag]=!0)}),n=Object.keys(a)}else n=[];for(let[a,o]of i)a==="!!"&&o==="tag:yaml.org,2002:"||(!t||n.some(s=>s.startsWith(o)))&&r.push(`%TAG ${a} ${o}`);return r.join(`
|
|
28
|
+
`)}};Is.defaultYaml={explicit:!1,version:"1.2"};Is.defaultTags={"!!":"tag:yaml.org,2002:"};E0.Directives=Is});var Hu=q(Es=>{"use strict";var T0=ze(),VL=Ss();function ZL(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(r)}return!0}function $0(e){let t=new Set;return VL.visit(e,{Value(r,i){i.anchor&&t.add(i.anchor)}}),t}function C0(e,t){for(let r=1;;++r){let i=`${e}${r}`;if(!t.has(i))return i}}function WL(e,t){let r=[],i=new Map,n=null;return{onAnchor:a=>{r.push(a),n??(n=$0(e));let o=C0(t,n);return n.add(o),o},setAnchors:()=>{for(let a of r){let o=i.get(a);if(typeof o=="object"&&o.anchor&&(T0.isScalar(o.node)||T0.isCollection(o.node)))o.node.anchor=o.anchor;else{let s=new Error("Failed to resolve repeated object (this should not happen)");throw s.source=a,s}}},sourceObjects:i}}Es.anchorIsValid=ZL;Es.anchorNames=$0;Es.createNodeAnchors=WL;Es.findNewAnchor=C0});var Dm=q(A0=>{"use strict";function Ts(e,t,r,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let n=0,a=i.length;n<a;++n){let o=i[n],s=Ts(e,i,String(n),o);s===void 0?delete i[n]:s!==o&&(i[n]=s)}else if(i instanceof Map)for(let n of Array.from(i.keys())){let a=i.get(n),o=Ts(e,i,n,a);o===void 0?i.delete(n):o!==a&&i.set(n,o)}else if(i instanceof Set)for(let n of Array.from(i)){let a=Ts(e,i,n,n);a===void 0?i.delete(n):a!==n&&(i.delete(n),i.add(a))}else for(let[n,a]of Object.entries(i)){let o=Ts(e,i,n,a);o===void 0?delete i[n]:o!==a&&(i[n]=o)}return e.call(t,r,i)}A0.applyReviver=Ts});var Gn=q(N0=>{"use strict";var GL=ze();function O0(e,t,r){if(Array.isArray(e))return e.map((i,n)=>O0(i,String(n),r));if(e&&typeof e.toJSON=="function"){if(!r||!GL.hasAnchor(e))return e.toJSON(t,r);let i={aliasCount:0,count:1,res:void 0};r.anchors.set(e,i),r.onCreate=a=>{i.res=a,delete r.onCreate};let n=e.toJSON(t,r);return r.onCreate&&r.onCreate(n),n}return typeof e=="bigint"&&!r?.keep?Number(e):e}N0.toJS=O0});var Ku=q(j0=>{"use strict";var JL=Dm(),D0=ze(),HL=Gn(),jm=class{constructor(t){Object.defineProperty(this,D0.NODE_TYPE,{value:t})}clone(){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:r,maxAliasCount:i,onAnchor:n,reviver:a}={}){if(!D0.isDocument(t))throw new TypeError("A document argument is required");let o={anchors:new Map,doc:t,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},s=HL.toJS(this,"",o);if(typeof n=="function")for(let{count:u,res:c}of o.anchors.values())n(c,u);return typeof a=="function"?JL.applyReviver(a,{"":s},"",s):s}};j0.NodeBase=jm});var $s=q(P0=>{"use strict";var KL=Hu(),YL=Ss(),$a=ze(),XL=Ku(),QL=Gn(),Pm=class extends XL.NodeBase{constructor(t){super($a.ALIAS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,r){let i;r?.aliasResolveCache?i=r.aliasResolveCache:(i=[],YL.visit(t,{Node:(a,o)=>{($a.isAlias(o)||$a.hasAnchor(o))&&i.push(o)}}),r&&(r.aliasResolveCache=i));let n;for(let a of i){if(a===this)break;a.anchor===this.source&&(n=a)}return n}toJSON(t,r){if(!r)return{source:this.source};let{anchors:i,doc:n,maxAliasCount:a}=r,o=this.resolve(n,r);if(!o){let u=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(u)}let s=i.get(o);if(s||(QL.toJS(o,null,r),s=i.get(o)),s?.res===void 0){let u="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(u)}if(a>=0&&(s.count+=1,s.aliasCount===0&&(s.aliasCount=Yu(n,o,i)),s.count*s.aliasCount>a)){let u="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(u)}return s.res}toString(t,r,i){let n=`*${this.source}`;if(t){if(KL.anchorIsValid(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){let a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(a)}if(t.implicitKey)return`${n} `}return n}};function Yu(e,t,r){if($a.isAlias(t)){let i=t.resolve(e),n=r&&i&&r.get(i);return n?n.count*n.aliasCount:0}else if($a.isCollection(t)){let i=0;for(let n of t.items){let a=Yu(e,n,r);a>i&&(i=a)}return i}else if($a.isPair(t)){let i=Yu(e,t.key,r),n=Yu(e,t.value,r);return Math.max(i,n)}return 1}P0.Alias=Pm});var at=q(zm=>{"use strict";var eF=ze(),tF=Ku(),rF=Gn(),nF=e=>!e||typeof e!="function"&&typeof e!="object",Jn=class extends tF.NodeBase{constructor(t){super(eF.SCALAR),this.value=t}toJSON(t,r){return r?.keep?this.value:rF.toJS(this.value,t,r)}toString(){return String(this.value)}};Jn.BLOCK_FOLDED="BLOCK_FOLDED";Jn.BLOCK_LITERAL="BLOCK_LITERAL";Jn.PLAIN="PLAIN";Jn.QUOTE_DOUBLE="QUOTE_DOUBLE";Jn.QUOTE_SINGLE="QUOTE_SINGLE";zm.Scalar=Jn;zm.isScalarValue=nF});var Cs=q(R0=>{"use strict";var iF=$s(),Li=ze(),z0=at(),aF="tag:yaml.org,2002:";function oF(e,t,r){if(t){let i=r.filter(a=>a.tag===t),n=i.find(a=>!a.format)??i[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find(i=>i.identify?.(e)&&!i.format)}function sF(e,t,r){if(Li.isDocument(e)&&(e=e.contents),Li.isNode(e))return e;if(Li.isPair(e)){let p=r.schema[Li.MAP].createNode?.(r.schema,null,r);return p.items.push(e),p}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:n,onTagObj:a,schema:o,sourceObjects:s}=r,u;if(i&&e&&typeof e=="object"){if(u=s.get(e),u)return u.anchor??(u.anchor=n(e)),new iF.Alias(u.anchor);u={anchor:null,node:null},s.set(e,u)}t?.startsWith("!!")&&(t=aF+t.slice(2));let c=oF(e,t,o.tags);if(!c){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){let p=new z0.Scalar(e);return u&&(u.node=p),p}c=e instanceof Map?o[Li.MAP]:Symbol.iterator in Object(e)?o[Li.SEQ]:o[Li.MAP]}a&&(a(c),delete r.onTagObj);let d=c?.createNode?c.createNode(r.schema,e,r):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(r.schema,e,r):new z0.Scalar(e);return t?d.tag=t:c.default||(d.tag=c.tag),u&&(u.node=d),d}R0.createNode=sF});var Qu=q(Xu=>{"use strict";var lF=Cs(),tn=ze(),uF=Ku();function Rm(e,t,r){let i=r;for(let n=t.length-1;n>=0;--n){let a=t[n];if(typeof a=="number"&&Number.isInteger(a)&&a>=0){let o=[];o[a]=i,i=o}else i=new Map([[a,i]])}return lF.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}var M0=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done,Mm=class extends uF.NodeBase{constructor(t,r){super(t),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(t){let r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(r.schema=t),r.items=r.items.map(i=>tn.isNode(i)||tn.isPair(i)?i.clone(t):i),this.range&&(r.range=this.range.slice()),r}addIn(t,r){if(M0(t))this.add(r);else{let[i,...n]=t,a=this.get(i,!0);if(tn.isCollection(a))a.addIn(n,r);else if(a===void 0&&this.schema)this.set(i,Rm(this.schema,n,r));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}deleteIn(t){let[r,...i]=t;if(i.length===0)return this.delete(r);let n=this.get(r,!0);if(tn.isCollection(n))return n.deleteIn(i);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}getIn(t,r){let[i,...n]=t,a=this.get(i,!0);return n.length===0?!r&&tn.isScalar(a)?a.value:a:tn.isCollection(a)?a.getIn(n,r):void 0}hasAllNullValues(t){return this.items.every(r=>{if(!tn.isPair(r))return!1;let i=r.value;return i==null||t&&tn.isScalar(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){let[r,...i]=t;if(i.length===0)return this.has(r);let n=this.get(r,!0);return tn.isCollection(n)?n.hasIn(i):!1}setIn(t,r){let[i,...n]=t;if(n.length===0)this.set(i,r);else{let a=this.get(i,!0);if(tn.isCollection(a))a.setIn(n,r);else if(a===void 0&&this.schema)this.set(i,Rm(this.schema,n,r));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}};Xu.Collection=Mm;Xu.collectionFromPath=Rm;Xu.isEmptyPath=M0});var As=q(ec=>{"use strict";var cF=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Lm(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var dF=(e,t,r)=>e.endsWith(`
|
|
29
|
+
`)?Lm(r,t):r.includes(`
|
|
30
|
+
`)?`
|
|
31
|
+
`+Lm(r,t):(e.endsWith(" ")?"":" ")+r;ec.indentComment=Lm;ec.lineComment=dF;ec.stringifyComment=cF});var F0=q(Os=>{"use strict";var pF="flow",Fm="block",tc="quoted";function fF(e,t,r="flow",{indentAtStart:i,lineWidth:n=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!n||n<0)return e;n<a&&(a=0);let u=Math.max(1+a,1+n-t.length);if(e.length<=u)return e;let c=[],d={},p=n-t.length;typeof i=="number"&&(i>n-Math.max(2,a)?c.push(0):p=n-i);let f,m,g=!1,h=-1,y=-1,v=-1;r===Fm&&(h=L0(e,h,t.length),h!==-1&&(p=h+u));for(let b;b=e[h+=1];){if(r===tc&&b==="\\"){switch(y=h,e[h+1]){case"x":h+=3;break;case"u":h+=5;break;case"U":h+=9;break;default:h+=1}v=h}if(b===`
|
|
32
|
+
`)r===Fm&&(h=L0(e,h,t.length)),p=h+t.length+u,f=void 0;else{if(b===" "&&m&&m!==" "&&m!==`
|
|
33
|
+
`&&m!==" "){let x=e[h+1];x&&x!==" "&&x!==`
|
|
34
|
+
`&&x!==" "&&(f=h)}if(h>=p)if(f)c.push(f),p=f+u,f=void 0;else if(r===tc){for(;m===" "||m===" ";)m=b,b=e[h+=1],g=!0;let x=h>v+1?h-2:y-1;if(d[x])return e;c.push(x),d[x]=!0,p=x+u,f=void 0}else g=!0}m=b}if(g&&s&&s(),c.length===0)return e;o&&o();let _=e.slice(0,c[0]);for(let b=0;b<c.length;++b){let x=c[b],E=c[b+1]||e.length;x===0?_=`
|
|
35
|
+
${t}${e.slice(0,E)}`:(r===tc&&d[x]&&(_+=`${e[x]}\\`),_+=`
|
|
36
|
+
${t}${e.slice(x+1,E)}`)}return _}function L0(e,t,r){let i=t,n=t+1,a=e[n];for(;a===" "||a===" ";)if(t<n+r)a=e[++t];else{do a=e[++t];while(a&&a!==`
|
|
37
|
+
`);i=t,n=t+1,a=e[n]}return i}Os.FOLD_BLOCK=Fm;Os.FOLD_FLOW=pF;Os.FOLD_QUOTED=tc;Os.foldFlowLines=fF});var Ds=q(U0=>{"use strict";var jr=at(),Hn=F0(),nc=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),ic=e=>/^(%|---|\.\.\.)/m.test(e);function mF(e,t,r){if(!t||t<0)return!1;let i=t-r,n=e.length;if(n<=i)return!1;for(let a=0,o=0;a<n;++a)if(e[a]===`
|
|
38
|
+
`){if(a-o>i)return!0;if(o=a+1,n-o<=i)return!1}return!0}function Ns(e,t){let r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;let{implicitKey:i}=t,n=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(ic(e)?" ":""),o="",s=0;for(let u=0,c=r[u];c;c=r[++u])if(c===" "&&r[u+1]==="\\"&&r[u+2]==="n"&&(o+=r.slice(s,u)+"\\ ",u+=1,s=u,c="\\"),c==="\\")switch(r[u+1]){case"u":{o+=r.slice(s,u);let d=r.substr(u+2,4);switch(d){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:d.substr(0,2)==="00"?o+="\\x"+d.substr(2):o+=r.substr(u,6)}u+=5,s=u+1}break;case"n":if(i||r[u+2]==='"'||r.length<n)u+=1;else{for(o+=r.slice(s,u)+`
|
|
39
|
+
|
|
40
|
+
`;r[u+2]==="\\"&&r[u+3]==="n"&&r[u+4]!=='"';)o+=`
|
|
41
|
+
`,u+=2;o+=a,r[u+2]===" "&&(o+="\\"),u+=1,s=u+1}break;default:u+=1}return o=s?o+r.slice(s):r,i?o:Hn.foldFlowLines(o,a,Hn.FOLD_QUOTED,nc(t,!1))}function Um(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
42
|
+
`)||/[ \t]\n|\n[ \t]/.test(e))return Ns(e,t);let r=t.indent||(ic(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
43
|
+
${r}`)+"'";return t.implicitKey?i:Hn.foldFlowLines(i,r,Hn.FOLD_FLOW,nc(t,!1))}function Ca(e,t){let{singleQuote:r}=t.options,i;if(r===!1)i=Ns;else{let n=e.includes('"'),a=e.includes("'");n&&!a?i=Um:a&&!n?i=Ns:i=r?Um:Ns}return i(e,t)}var qm;try{qm=new RegExp(`(^|(?<!
|
|
44
|
+
))
|
|
45
|
+
+(?!
|
|
46
|
+
|$)`,"g")}catch{qm=/\n+(?!\n|$)/g}function rc({comment:e,type:t,value:r},i,n,a){let{blockQuote:o,commentString:s,lineWidth:u}=i.options;if(!o||/\n[\t ]+$/.test(r))return Ca(r,i);let c=i.indent||(i.forceBlockIndent||ic(r)?" ":""),d=o==="literal"?!0:o==="folded"||t===jr.Scalar.BLOCK_FOLDED?!1:t===jr.Scalar.BLOCK_LITERAL?!0:!mF(r,u,c.length);if(!r)return d?`|
|
|
47
|
+
`:`>
|
|
48
|
+
`;let p,f;for(f=r.length;f>0;--f){let E=r[f-1];if(E!==`
|
|
49
|
+
`&&E!==" "&&E!==" ")break}let m=r.substring(f),g=m.indexOf(`
|
|
50
|
+
`);g===-1?p="-":r===m||g!==m.length-1?(p="+",a&&a()):p="",m&&(r=r.slice(0,-m.length),m[m.length-1]===`
|
|
51
|
+
`&&(m=m.slice(0,-1)),m=m.replace(qm,`$&${c}`));let h=!1,y,v=-1;for(y=0;y<r.length;++y){let E=r[y];if(E===" ")h=!0;else if(E===`
|
|
52
|
+
`)v=y;else break}let _=r.substring(0,v<y?v+1:y);_&&(r=r.substring(_.length),_=_.replace(/\n+/g,`$&${c}`));let x=(h?c?"2":"1":"")+p;if(e&&(x+=" "+s(e.replace(/ ?[\r\n]+/g," ")),n&&n()),!d){let E=r.replace(/\n+/g,`
|
|
53
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`),k=!1,A=nc(i,!0);o!=="folded"&&t!==jr.Scalar.BLOCK_FOLDED&&(A.onOverflow=()=>{k=!0});let $=Hn.foldFlowLines(`${_}${E}${m}`,c,Hn.FOLD_BLOCK,A);if(!k)return`>${x}
|
|
54
|
+
${c}${$}`}return r=r.replace(/\n+/g,`$&${c}`),`|${x}
|
|
55
|
+
${c}${_}${r}${m}`}function hF(e,t,r,i){let{type:n,value:a}=e,{actualString:o,implicitKey:s,indent:u,indentStep:c,inFlow:d}=t;if(s&&a.includes(`
|
|
56
|
+
`)||d&&/[[\]{},]/.test(a))return Ca(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||d||!a.includes(`
|
|
57
|
+
`)?Ca(a,t):rc(e,t,r,i);if(!s&&!d&&n!==jr.Scalar.PLAIN&&a.includes(`
|
|
58
|
+
`))return rc(e,t,r,i);if(ic(a)){if(u==="")return t.forceBlockIndent=!0,rc(e,t,r,i);if(s&&u===c)return Ca(a,t)}let p=a.replace(/\n+/g,`$&
|
|
59
|
+
${u}`);if(o){let f=h=>h.default&&h.tag!=="tag:yaml.org,2002:str"&&h.test?.test(p),{compat:m,tags:g}=t.doc.schema;if(g.some(f)||m?.some(f))return Ca(a,t)}return s?p:Hn.foldFlowLines(p,u,Hn.FOLD_FLOW,nc(t,!1))}function gF(e,t,r,i){let{implicitKey:n,inFlow:a}=t,o=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==jr.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=jr.Scalar.QUOTE_DOUBLE);let u=d=>{switch(d){case jr.Scalar.BLOCK_FOLDED:case jr.Scalar.BLOCK_LITERAL:return n||a?Ca(o.value,t):rc(o,t,r,i);case jr.Scalar.QUOTE_DOUBLE:return Ns(o.value,t);case jr.Scalar.QUOTE_SINGLE:return Um(o.value,t);case jr.Scalar.PLAIN:return hF(o,t,r,i);default:return null}},c=u(s);if(c===null){let{defaultKeyType:d,defaultStringType:p}=t.options,f=n&&d||p;if(c=u(f),c===null)throw new Error(`Unsupported default string type ${f}`)}return c}U0.stringifyString=gF});var js=q(Bm=>{"use strict";var yF=Hu(),Kn=ze(),vF=As(),bF=Ds();function _F(e,t){let r=Object.assign({blockQuote:!0,commentString:vF.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,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t),i;switch(r.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:i,options:r}}function wF(e,t){if(t.tag){let n=e.filter(a=>a.tag===t.tag);if(n.length>0)return n.find(a=>a.format===t.format)??n[0]}let r,i;if(Kn.isScalar(t)){i=t.value;let n=e.filter(a=>a.identify?.(i));if(n.length>1){let a=n.filter(o=>o.test);a.length>0&&(n=a)}r=n.find(a=>a.format===t.format)??n.find(a=>!a.format)}else i=t,r=e.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 kF(e,t,{anchors:r,doc:i}){if(!i.directives)return"";let n=[],a=(Kn.isScalar(e)||Kn.isCollection(e))&&e.anchor;a&&yF.anchorIsValid(a)&&(r.add(a),n.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&n.push(i.directives.tagString(o)),n.join(" ")}function xF(e,t,r,i){if(Kn.isPair(e))return e.toString(t,r,i);if(Kn.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let n,a=Kn.isNode(e)?e:t.doc.createNode(e,{onTagObj:u=>n=u});n??(n=wF(t.doc.schema.tags,a));let o=kF(a,n,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof n.stringify=="function"?n.stringify(a,t,r,i):Kn.isScalar(a)?bF.stringifyString(a,t,r,i):a.toString(t,r,i);return o?Kn.isScalar(a)||s[0]==="{"||s[0]==="["?`${o} ${s}`:`${o}
|
|
60
|
+
${t.indent}${s}`:s}Bm.createStringifyContext=_F;Bm.stringify=xF});var Z0=q(V0=>{"use strict";var yn=ze(),q0=at(),B0=js(),Ps=As();function SF({key:e,value:t},r,i,n){let{allNullValues:a,doc:o,indent:s,indentStep:u,options:{commentString:c,indentSeq:d,simpleKeys:p}}=r,f=yn.isNode(e)&&e.comment||null;if(p){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(yn.isCollection(e)||!yn.isNode(e)&&typeof e=="object"){let A="With simple keys, collection cannot be used as a key value";throw new Error(A)}}let m=!p&&(!e||f&&t==null&&!r.inFlow||yn.isCollection(e)||(yn.isScalar(e)?e.type===q0.Scalar.BLOCK_FOLDED||e.type===q0.Scalar.BLOCK_LITERAL:typeof e=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!m&&(p||!a),indent:s+u});let g=!1,h=!1,y=B0.stringify(e,r,()=>g=!0,()=>h=!0);if(!m&&!r.inFlow&&y.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");m=!0}if(r.inFlow){if(a||t==null)return g&&i&&i(),y===""?"?":m?`? ${y}`:y}else if(a&&!p||t==null&&m)return y=`? ${y}`,f&&!g?y+=Ps.lineComment(y,r.indent,c(f)):h&&n&&n(),y;g&&(f=null),m?(f&&(y+=Ps.lineComment(y,r.indent,c(f))),y=`? ${y}
|
|
61
|
+
${s}:`):(y=`${y}:`,f&&(y+=Ps.lineComment(y,r.indent,c(f))));let v,_,b;yn.isNode(t)?(v=!!t.spaceBefore,_=t.commentBefore,b=t.comment):(v=!1,_=null,b=null,t&&typeof t=="object"&&(t=o.createNode(t))),r.implicitKey=!1,!m&&!f&&yn.isScalar(t)&&(r.indentAtStart=y.length+1),h=!1,!d&&u.length>=2&&!r.inFlow&&!m&&yn.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor&&(r.indent=r.indent.substring(2));let x=!1,E=B0.stringify(t,r,()=>x=!0,()=>h=!0),k=" ";if(f||v||_){if(k=v?`
|
|
62
|
+
`:"",_){let A=c(_);k+=`
|
|
63
|
+
${Ps.indentComment(A,r.indent)}`}E===""&&!r.inFlow?k===`
|
|
64
|
+
`&&b&&(k=`
|
|
65
|
+
|
|
66
|
+
`):k+=`
|
|
67
|
+
${r.indent}`}else if(!m&&yn.isCollection(t)){let A=E[0],$=E.indexOf(`
|
|
68
|
+
`),T=$!==-1,Y=r.inFlow??t.flow??t.items.length===0;if(T||!Y){let R=!1;if(T&&(A==="&"||A==="!")){let O=E.indexOf(" ");A==="&"&&O!==-1&&O<$&&E[O+1]==="!"&&(O=E.indexOf(" ",O+1)),(O===-1||$<O)&&(R=!0)}R||(k=`
|
|
69
|
+
${r.indent}`)}}else(E===""||E[0]===`
|
|
70
|
+
`)&&(k="");return y+=k+E,r.inFlow?x&&i&&i():b&&!x?y+=Ps.lineComment(y,r.indent,c(b)):h&&n&&n(),y}V0.stringifyPair=SF});var Zm=q(Vm=>{"use strict";var W0=require("process");function IF(e,...t){e==="debug"&&console.log(...t)}function EF(e,t){(e==="debug"||e==="warn")&&(typeof W0.emitWarning=="function"?W0.emitWarning(t):console.warn(t))}Vm.debug=IF;Vm.warn=EF});var lc=q(sc=>{"use strict";var zs=ze(),G0=at(),ac="<<",oc={identify:e=>e===ac||typeof e=="symbol"&&e.description===ac,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new G0.Scalar(Symbol(ac)),{addToJSMap:J0}),stringify:()=>ac},TF=(e,t)=>(oc.identify(t)||zs.isScalar(t)&&(!t.type||t.type===G0.Scalar.PLAIN)&&oc.identify(t.value))&&e?.doc.schema.tags.some(r=>r.tag===oc.tag&&r.default);function J0(e,t,r){if(r=e&&zs.isAlias(r)?r.resolve(e.doc):r,zs.isSeq(r))for(let i of r.items)Wm(e,t,i);else if(Array.isArray(r))for(let i of r)Wm(e,t,i);else Wm(e,t,r)}function Wm(e,t,r){let i=e&&zs.isAlias(r)?r.resolve(e.doc):r;if(!zs.isMap(i))throw new Error("Merge sources must be maps or map aliases");let n=i.toJSON(null,e,Map);for(let[a,o]of n)t instanceof Map?t.has(a)||t.set(a,o):t instanceof Set?t.add(a):Object.prototype.hasOwnProperty.call(t,a)||Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0});return t}sc.addMergeToJSMap=J0;sc.isMergeKey=TF;sc.merge=oc});var Jm=q(Y0=>{"use strict";var $F=Zm(),H0=lc(),CF=js(),K0=ze(),Gm=Gn();function AF(e,t,{key:r,value:i}){if(K0.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,i);else if(H0.isMergeKey(e,r))H0.addMergeToJSMap(e,t,i);else{let n=Gm.toJS(r,"",e);if(t instanceof Map)t.set(n,Gm.toJS(i,n,e));else if(t instanceof Set)t.add(n);else{let a=OF(r,n,e),o=Gm.toJS(i,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function OF(e,t,r){if(t===null)return"";if(typeof t!="object")return String(t);if(K0.isNode(e)&&r?.doc){let i=CF.createStringifyContext(r.doc,{});i.anchors=new Set;for(let a of r.anchors.keys())i.anchors.add(a.anchor);i.inFlow=!0,i.inStringifyKey=!0;let n=e.toString(i);if(!r.mapKeyWarned){let a=JSON.stringify(n);a.length>40&&(a=a.substring(0,36)+'..."'),$F.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${a}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return n}return JSON.stringify(t)}Y0.addPairToJSMap=AF});var Yn=q(Hm=>{"use strict";var X0=Cs(),NF=Z0(),DF=Jm(),uc=ze();function jF(e,t,r){let i=X0.createNode(e,void 0,r),n=X0.createNode(t,void 0,r);return new cc(i,n)}var cc=class e{constructor(t,r=null){Object.defineProperty(this,uc.NODE_TYPE,{value:uc.PAIR}),this.key=t,this.value=r}clone(t){let{key:r,value:i}=this;return uc.isNode(r)&&(r=r.clone(t)),uc.isNode(i)&&(i=i.clone(t)),new e(r,i)}toJSON(t,r){let i=r?.mapAsMap?new Map:{};return DF.addPairToJSMap(r,i,this)}toString(t,r,i){return t?.doc?NF.stringifyPair(this,t,r,i):JSON.stringify(this)}};Hm.Pair=cc;Hm.createPair=jF});var Km=q(eI=>{"use strict";var Fi=ze(),Q0=js(),dc=As();function PF(e,t,r){return(t.inFlow??e.flow?RF:zF)(e,t,r)}function zF({comment:e,items:t},r,{blockItemPrefix:i,flowChars:n,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:u,options:{commentString:c}}=r,d=Object.assign({},r,{indent:a,type:null}),p=!1,f=[];for(let g=0;g<t.length;++g){let h=t[g],y=null;if(Fi.isNode(h))!p&&h.spaceBefore&&f.push(""),pc(r,f,h.commentBefore,p),h.comment&&(y=h.comment);else if(Fi.isPair(h)){let _=Fi.isNode(h.key)?h.key:null;_&&(!p&&_.spaceBefore&&f.push(""),pc(r,f,_.commentBefore,p))}p=!1;let v=Q0.stringify(h,d,()=>y=null,()=>p=!0);y&&(v+=dc.lineComment(v,a,c(y))),p&&y&&(p=!1),f.push(i+v)}let m;if(f.length===0)m=n.start+n.end;else{m=f[0];for(let g=1;g<f.length;++g){let h=f[g];m+=h?`
|
|
71
|
+
${u}${h}`:`
|
|
72
|
+
`}}return e?(m+=`
|
|
73
|
+
`+dc.indentComment(c(e),u),s&&s()):p&&o&&o(),m}function RF({items:e},t,{flowChars:r,itemIndent:i}){let{indent:n,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;i+=a;let u=Object.assign({},t,{indent:i,inFlow:!0,type:null}),c=!1,d=0,p=[];for(let g=0;g<e.length;++g){let h=e[g],y=null;if(Fi.isNode(h))h.spaceBefore&&p.push(""),pc(t,p,h.commentBefore,!1),h.comment&&(y=h.comment);else if(Fi.isPair(h)){let _=Fi.isNode(h.key)?h.key:null;_&&(_.spaceBefore&&p.push(""),pc(t,p,_.commentBefore,!1),_.comment&&(c=!0));let b=Fi.isNode(h.value)?h.value:null;b?(b.comment&&(y=b.comment),b.commentBefore&&(c=!0)):h.value==null&&_?.comment&&(y=_.comment)}y&&(c=!0);let v=Q0.stringify(h,u,()=>y=null);g<e.length-1&&(v+=","),y&&(v+=dc.lineComment(v,i,s(y))),!c&&(p.length>d||v.includes(`
|
|
74
|
+
`))&&(c=!0),p.push(v),d=p.length}let{start:f,end:m}=r;if(p.length===0)return f+m;if(!c){let g=p.reduce((h,y)=>h+y.length+2,2);c=t.options.lineWidth>0&&g>t.options.lineWidth}if(c){let g=f;for(let h of p)g+=h?`
|
|
75
|
+
${a}${n}${h}`:`
|
|
76
|
+
`;return`${g}
|
|
77
|
+
${n}${m}`}else return`${f}${o}${p.join(" ")}${o}${m}`}function pc({indent:e,options:{commentString:t}},r,i,n){if(i&&n&&(i=i.replace(/^\n+/,"")),i){let a=dc.indentComment(t(i),e);r.push(a.trimStart())}}eI.stringifyCollection=PF});var Qn=q(Xm=>{"use strict";var MF=Km(),LF=Jm(),FF=Qu(),Xn=ze(),fc=Yn(),UF=at();function Rs(e,t){let r=Xn.isScalar(t)?t.value:t;for(let i of e)if(Xn.isPair(i)&&(i.key===t||i.key===r||Xn.isScalar(i.key)&&i.key.value===r))return i}var Ym=class extends FF.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Xn.MAP,t),this.items=[]}static from(t,r,i){let{keepUndefined:n,replacer:a}=i,o=new this(t),s=(u,c)=>{if(typeof a=="function")c=a.call(r,u,c);else if(Array.isArray(a)&&!a.includes(u))return;(c!==void 0||n)&&o.items.push(fc.createPair(u,c,i))};if(r instanceof Map)for(let[u,c]of r)s(u,c);else if(r&&typeof r=="object")for(let u of Object.keys(r))s(u,r[u]);return typeof t.sortMapEntries=="function"&&o.items.sort(t.sortMapEntries),o}add(t,r){let i;Xn.isPair(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new fc.Pair(t,t?.value):i=new fc.Pair(t.key,t.value);let n=Rs(this.items,i.key),a=this.schema?.sortMapEntries;if(n){if(!r)throw new Error(`Key ${i.key} already set`);Xn.isScalar(n.value)&&UF.isScalarValue(i.value)?n.value.value=i.value:n.value=i.value}else if(a){let o=this.items.findIndex(s=>a(i,s)<0);o===-1?this.items.push(i):this.items.splice(o,0,i)}else this.items.push(i)}delete(t){let r=Rs(this.items,t);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(t,r){let n=Rs(this.items,t)?.value;return(!r&&Xn.isScalar(n)?n.value:n)??void 0}has(t){return!!Rs(this.items,t)}set(t,r){this.add(new fc.Pair(t,r),!0)}toJSON(t,r,i){let n=i?new i:r?.mapAsMap?new Map:{};r?.onCreate&&r.onCreate(n);for(let a of this.items)LF.addPairToJSMap(r,n,a);return n}toString(t,r,i){if(!t)return JSON.stringify(this);for(let n of this.items)if(!Xn.isPair(n))throw new Error(`Map items must all be pairs; found ${JSON.stringify(n)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),MF.stringifyCollection(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:r})}};Xm.YAMLMap=Ym;Xm.findPair=Rs});var Aa=q(rI=>{"use strict";var qF=ze(),tI=Qn(),BF={collection:"map",default:!0,nodeClass:tI.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){return qF.isMap(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,r)=>tI.YAMLMap.from(e,t,r)};rI.map=BF});var ei=q(nI=>{"use strict";var VF=Cs(),ZF=Km(),WF=Qu(),hc=ze(),GF=at(),JF=Gn(),Qm=class extends WF.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(hc.SEQ,t),this.items=[]}add(t){this.items.push(t)}delete(t){let r=mc(t);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(t,r){let i=mc(t);if(typeof i!="number")return;let n=this.items[i];return!r&&hc.isScalar(n)?n.value:n}has(t){let r=mc(t);return typeof r=="number"&&r<this.items.length}set(t,r){let i=mc(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);let n=this.items[i];hc.isScalar(n)&&GF.isScalarValue(r)?n.value=r:this.items[i]=r}toJSON(t,r){let i=[];r?.onCreate&&r.onCreate(i);let n=0;for(let a of this.items)i.push(JF.toJS(a,String(n++),r));return i}toString(t,r,i){return t?ZF.stringifyCollection(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:i,onComment:r}):JSON.stringify(this)}static from(t,r,i){let{replacer:n}=i,a=new this(t);if(r&&Symbol.iterator in Object(r)){let o=0;for(let s of r){if(typeof n=="function"){let u=r instanceof Set?s:String(o++);s=n.call(r,u,s)}a.items.push(VF.createNode(s,void 0,i))}}return a}};function mc(e){let t=hc.isScalar(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}nI.YAMLSeq=Qm});var Oa=q(aI=>{"use strict";var HF=ze(),iI=ei(),KF={collection:"seq",default:!0,nodeClass:iI.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){return HF.isSeq(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,r)=>iI.YAMLSeq.from(e,t,r)};aI.seq=KF});var Ms=q(oI=>{"use strict";var YF=Ds(),XF={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,i){return t=Object.assign({actualString:!0},t),YF.stringifyString(e,t,r,i)}};oI.string=XF});var gc=q(uI=>{"use strict";var sI=at(),lI={identify:e=>e==null,createNode:()=>new sI.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new sI.Scalar(null),stringify:({source:e},t)=>typeof e=="string"&&lI.test.test(e)?e:t.options.nullStr};uI.nullTag=lI});var eh=q(dI=>{"use strict";var QF=at(),cI={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new QF.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&cI.test.test(e)){let i=e[0]==="t"||e[0]==="T";if(t===i)return e}return t?r.options.trueStr:r.options.falseStr}};dI.boolTag=cI});var Na=q(pI=>{"use strict";function eU({format:e,minFractionDigits:t,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 a=Object.is(i,-0)?"-0":JSON.stringify(i);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(a)){let o=a.indexOf(".");o<0&&(o=a.length,a+=".");let s=t-(a.length-o-1);for(;s-- >0;)a+="0"}return a}pI.stringifyNumber=eU});var rh=q(yc=>{"use strict";var tU=at(),th=Na(),rU={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:th.stringifyNumber},nU={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():th.stringifyNumber(e)}},iU={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new tU.Scalar(parseFloat(e)),r=e.indexOf(".");return r!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-r-1),t},stringify:th.stringifyNumber};yc.float=iU;yc.floatExp=nU;yc.floatNaN=rU});var ih=q(bc=>{"use strict";var fI=Na(),vc=e=>typeof e=="bigint"||Number.isInteger(e),nh=(e,t,r,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),r);function mI(e,t,r){let{value:i}=e;return vc(i)&&i>=0?r+i.toString(t):fI.stringifyNumber(e)}var aU={identify:e=>vc(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>nh(e,2,8,r),stringify:e=>mI(e,8,"0o")},oU={identify:vc,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>nh(e,0,10,r),stringify:fI.stringifyNumber},sU={identify:e=>vc(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>nh(e,2,16,r),stringify:e=>mI(e,16,"0x")};bc.int=oU;bc.intHex=sU;bc.intOct=aU});var gI=q(hI=>{"use strict";var lU=Aa(),uU=gc(),cU=Oa(),dU=Ms(),pU=eh(),ah=rh(),oh=ih(),fU=[lU.map,cU.seq,dU.string,uU.nullTag,pU.boolTag,oh.intOct,oh.int,oh.intHex,ah.floatNaN,ah.floatExp,ah.float];hI.schema=fU});var bI=q(vI=>{"use strict";var mU=at(),hU=Aa(),gU=Oa();function yI(e){return typeof e=="bigint"||Number.isInteger(e)}var _c=({value:e})=>JSON.stringify(e),yU=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:_c},{identify:e=>e==null,createNode:()=>new mU.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:_c},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:_c},{identify:yI,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>yI(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:_c}],vU={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},bU=[hU.map,gU.seq].concat(yU,vU);vI.schema=bU});var lh=q(_I=>{"use strict";var Ls=require("buffer"),sh=at(),_U=Ds(),wU={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Ls.Buffer=="function")return Ls.Buffer.from(e,"base64");if(typeof atob=="function"){let r=atob(e.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 t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:r},i,n,a){if(!r)return"";let o=r,s;if(typeof Ls.Buffer=="function")s=o instanceof Ls.Buffer?o.toString("base64"):Ls.Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let u="";for(let c=0;c<o.length;++c)u+=String.fromCharCode(o[c]);s=btoa(u)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=sh.Scalar.BLOCK_LITERAL),t!==sh.Scalar.QUOTE_DOUBLE){let u=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),c=Math.ceil(s.length/u),d=new Array(c);for(let p=0,f=0;p<c;++p,f+=u)d[p]=s.substr(f,u);s=d.join(t===sh.Scalar.BLOCK_LITERAL?`
|
|
78
|
+
`:" ")}return _U.stringifyString({comment:e,type:t,value:s},i,n,a)}};_I.binary=wU});var xc=q(kc=>{"use strict";var wc=ze(),uh=Yn(),kU=at(),xU=ei();function wI(e,t){if(wc.isSeq(e))for(let r=0;r<e.items.length;++r){let i=e.items[r];if(!wc.isPair(i)){if(wc.isMap(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");let n=i.items[0]||new uh.Pair(new kU.Scalar(null));if(i.commentBefore&&(n.key.commentBefore=n.key.commentBefore?`${i.commentBefore}
|
|
79
|
+
${n.key.commentBefore}`:i.commentBefore),i.comment){let a=n.value??n.key;a.comment=a.comment?`${i.comment}
|
|
80
|
+
${a.comment}`:i.comment}i=n}e.items[r]=wc.isPair(i)?i:new uh.Pair(i)}}else t("Expected a sequence for this tag");return e}function kI(e,t,r){let{replacer:i}=r,n=new xU.YAMLSeq(e);n.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let o of t){typeof i=="function"&&(o=i.call(t,String(a++),o));let s,u;if(Array.isArray(o))if(o.length===2)s=o[0],u=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){let c=Object.keys(o);if(c.length===1)s=c[0],u=o[s];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else s=o;n.items.push(uh.createPair(s,u,r))}return n}var SU={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:wI,createNode:kI};kc.createPairs=kI;kc.pairs=SU;kc.resolvePairs=wI});var ph=q(dh=>{"use strict";var xI=ze(),ch=Gn(),Fs=Qn(),IU=ei(),SI=xc(),Ui=class e extends IU.YAMLSeq{constructor(){super(),this.add=Fs.YAMLMap.prototype.add.bind(this),this.delete=Fs.YAMLMap.prototype.delete.bind(this),this.get=Fs.YAMLMap.prototype.get.bind(this),this.has=Fs.YAMLMap.prototype.has.bind(this),this.set=Fs.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(t,r){if(!r)return super.toJSON(t);let i=new Map;r?.onCreate&&r.onCreate(i);for(let n of this.items){let a,o;if(xI.isPair(n)?(a=ch.toJS(n.key,"",r),o=ch.toJS(n.value,a,r)):a=ch.toJS(n,"",r),i.has(a))throw new Error("Ordered maps must not include duplicate keys");i.set(a,o)}return i}static from(t,r,i){let n=SI.createPairs(t,r,i),a=new this;return a.items=n.items,a}};Ui.tag="tag:yaml.org,2002:omap";var EU={collection:"seq",identify:e=>e instanceof Map,nodeClass:Ui,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let r=SI.resolvePairs(e,t),i=[];for(let{key:n}of r.items)xI.isScalar(n)&&(i.includes(n.value)?t(`Ordered maps must not include duplicate keys: ${n.value}`):i.push(n.value));return Object.assign(new Ui,r)},createNode:(e,t,r)=>Ui.from(e,t,r)};dh.YAMLOMap=Ui;dh.omap=EU});var CI=q(fh=>{"use strict";var II=at();function EI({value:e,source:t},r){return t&&(e?TI:$I).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}var TI={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new II.Scalar(!0),stringify:EI},$I={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new II.Scalar(!1),stringify:EI};fh.falseTag=$I;fh.trueTag=TI});var AI=q(Sc=>{"use strict";var TU=at(),mh=Na(),$U={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:mh.stringifyNumber},CU={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():mh.stringifyNumber(e)}},AU={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new TU.Scalar(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(r!==-1){let i=e.substring(r+1).replace(/_/g,"");i[i.length-1]==="0"&&(t.minFractionDigits=i.length)}return t},stringify:mh.stringifyNumber};Sc.float=AU;Sc.floatExp=CU;Sc.floatNaN=$U});var NI=q(qs=>{"use strict";var OI=Na(),Us=e=>typeof e=="bigint"||Number.isInteger(e);function Ic(e,t,r,{intAsBigInt:i}){let n=e[0];if((n==="-"||n==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let o=BigInt(e);return n==="-"?BigInt(-1)*o:o}let a=parseInt(e,r);return n==="-"?-1*a:a}function hh(e,t,r){let{value:i}=e;if(Us(i)){let n=i.toString(t);return i<0?"-"+r+n.substr(1):r+n}return OI.stringifyNumber(e)}var OU={identify:Us,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>Ic(e,2,2,r),stringify:e=>hh(e,2,"0b")},NU={identify:Us,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>Ic(e,1,8,r),stringify:e=>hh(e,8,"0")},DU={identify:Us,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>Ic(e,0,10,r),stringify:OI.stringifyNumber},jU={identify:Us,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>Ic(e,2,16,r),stringify:e=>hh(e,16,"0x")};qs.int=DU;qs.intBin=OU;qs.intHex=jU;qs.intOct=NU});var yh=q(gh=>{"use strict";var $c=ze(),Ec=Yn(),Tc=Qn(),qi=class e extends Tc.YAMLMap{constructor(t){super(t),this.tag=e.tag}add(t){let r;$c.isPair(t)?r=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?r=new Ec.Pair(t.key,null):r=new Ec.Pair(t,null),Tc.findPair(this.items,r.key)||this.items.push(r)}get(t,r){let i=Tc.findPair(this.items,t);return!r&&$c.isPair(i)?$c.isScalar(i.key)?i.key.value:i.key:i}set(t,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);let i=Tc.findPair(this.items,t);i&&!r?this.items.splice(this.items.indexOf(i),1):!i&&r&&this.items.push(new Ec.Pair(t))}toJSON(t,r){return super.toJSON(t,r,Set)}toString(t,r,i){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),r,i);throw new Error("Set items must all have null values")}static from(t,r,i){let{replacer:n}=i,a=new this(t);if(r&&Symbol.iterator in Object(r))for(let o of r)typeof n=="function"&&(o=n.call(r,o,o)),a.items.push(Ec.createPair(o,null,i));return a}};qi.tag="tag:yaml.org,2002:set";var PU={collection:"map",identify:e=>e instanceof Set,nodeClass:qi,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>qi.from(e,t,r),resolve(e,t){if($c.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new qi,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};gh.YAMLSet=qi;gh.set=PU});var bh=q(Cc=>{"use strict";var zU=Na();function vh(e,t){let r=e[0],i=r==="-"||r==="+"?e.substring(1):e,n=o=>t?BigInt(o):Number(o),a=i.replace(/_/g,"").split(":").reduce((o,s)=>o*n(60)+n(s),n(0));return r==="-"?n(-1)*a:a}function DI(e){let{value:t}=e,r=o=>o;if(typeof t=="bigint")r=o=>BigInt(o);else if(isNaN(t)||!isFinite(t))return zU.stringifyNumber(e);let i="";t<0&&(i="-",t*=r(-1));let n=r(60),a=[t%n];return t<60?a.unshift(0):(t=(t-a[0])/n,a.unshift(t%n),t>=60&&(t=(t-a[0])/n,a.unshift(t))),i+a.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var RU={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>vh(e,r),stringify:DI},MU={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>vh(e,!1),stringify:DI},jI={identify:e=>e 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(e){let t=e.match(jI.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,r,i,n,a,o,s]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0,c=Date.UTC(r,i-1,n,a||0,o||0,s||0,u),d=t[8];if(d&&d!=="Z"){let p=vh(d,!1);Math.abs(p)<30&&(p*=60),c-=6e4*p}return new Date(c)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};Cc.floatTime=MU;Cc.intTime=RU;Cc.timestamp=jI});var RI=q(zI=>{"use strict";var LU=Aa(),FU=gc(),UU=Oa(),qU=Ms(),BU=lh(),PI=CI(),_h=AI(),Ac=NI(),VU=lc(),ZU=ph(),WU=xc(),GU=yh(),wh=bh(),JU=[LU.map,UU.seq,qU.string,FU.nullTag,PI.trueTag,PI.falseTag,Ac.intBin,Ac.intOct,Ac.int,Ac.intHex,_h.floatNaN,_h.floatExp,_h.float,BU.binary,VU.merge,ZU.omap,WU.pairs,GU.set,wh.intTime,wh.floatTime,wh.timestamp];zI.schema=JU});var GI=q(Sh=>{"use strict";var UI=Aa(),HU=gc(),qI=Oa(),KU=Ms(),YU=eh(),kh=rh(),xh=ih(),XU=gI(),QU=bI(),BI=lh(),Bs=lc(),VI=ph(),ZI=xc(),MI=RI(),WI=yh(),Oc=bh(),LI=new Map([["core",XU.schema],["failsafe",[UI.map,qI.seq,KU.string]],["json",QU.schema],["yaml11",MI.schema],["yaml-1.1",MI.schema]]),FI={binary:BI.binary,bool:YU.boolTag,float:kh.float,floatExp:kh.floatExp,floatNaN:kh.floatNaN,floatTime:Oc.floatTime,int:xh.int,intHex:xh.intHex,intOct:xh.intOct,intTime:Oc.intTime,map:UI.map,merge:Bs.merge,null:HU.nullTag,omap:VI.omap,pairs:ZI.pairs,seq:qI.seq,set:WI.set,timestamp:Oc.timestamp},e4={"tag:yaml.org,2002:binary":BI.binary,"tag:yaml.org,2002:merge":Bs.merge,"tag:yaml.org,2002:omap":VI.omap,"tag:yaml.org,2002:pairs":ZI.pairs,"tag:yaml.org,2002:set":WI.set,"tag:yaml.org,2002:timestamp":Oc.timestamp};function t4(e,t,r){let i=LI.get(t);if(i&&!e)return r&&!i.includes(Bs.merge)?i.concat(Bs.merge):i.slice();let n=i;if(!n)if(Array.isArray(e))n=[];else{let a=Array.from(LI.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${a} or define customTags array`)}if(Array.isArray(e))for(let a of e)n=n.concat(a);else typeof e=="function"&&(n=e(n.slice()));return r&&(n=n.concat(Bs.merge)),n.reduce((a,o)=>{let s=typeof o=="string"?FI[o]:o;if(!s){let u=JSON.stringify(o),c=Object.keys(FI).map(d=>JSON.stringify(d)).join(", ");throw new Error(`Unknown custom tag ${u}; use one of ${c}`)}return a.includes(s)||a.push(s),a},[])}Sh.coreKnownTags=e4;Sh.getTags=t4});var Th=q(JI=>{"use strict";var Ih=ze(),r4=Aa(),n4=Oa(),i4=Ms(),Nc=GI(),a4=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0,Eh=class e{constructor({compat:t,customTags:r,merge:i,resolveKnownTags:n,schema:a,sortMapEntries:o,toStringDefaults:s}){this.compat=Array.isArray(t)?Nc.getTags(t,"compat"):t?Nc.getTags(null,t):null,this.name=typeof a=="string"&&a||"core",this.knownTags=n?Nc.coreKnownTags:{},this.tags=Nc.getTags(r,this.name,i),this.toStringOptions=s??null,Object.defineProperty(this,Ih.MAP,{value:r4.map}),Object.defineProperty(this,Ih.SCALAR,{value:i4.string}),Object.defineProperty(this,Ih.SEQ,{value:n4.seq}),this.sortMapEntries=typeof o=="function"?o:o===!0?a4:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};JI.Schema=Eh});var KI=q(HI=>{"use strict";var o4=ze(),$h=js(),Vs=As();function s4(e,t){let r=[],i=t.directives===!0;if(t.directives!==!1&&e.directives){let u=e.directives.toString(e);u?(r.push(u),i=!0):e.directives.docStart&&(i=!0)}i&&r.push("---");let n=$h.createStringifyContext(e,t),{commentString:a}=n.options;if(e.commentBefore){r.length!==1&&r.unshift("");let u=a(e.commentBefore);r.unshift(Vs.indentComment(u,""))}let o=!1,s=null;if(e.contents){if(o4.isNode(e.contents)){if(e.contents.spaceBefore&&i&&r.push(""),e.contents.commentBefore){let d=a(e.contents.commentBefore);r.push(Vs.indentComment(d,""))}n.forceBlockIndent=!!e.comment,s=e.contents.comment}let u=s?void 0:()=>o=!0,c=$h.stringify(e.contents,n,()=>s=null,u);s&&(c+=Vs.lineComment(c,"",a(s))),(c[0]==="|"||c[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${c}`:r.push(c)}else r.push($h.stringify(e.contents,n));if(e.directives?.docEnd)if(e.comment){let u=a(e.comment);u.includes(`
|
|
81
|
+
`)?(r.push("..."),r.push(Vs.indentComment(u,""))):r.push(`... ${u}`)}else r.push("...");else{let u=e.comment;u&&o&&(u=u.replace(/^\n+/,"")),u&&((!o||s)&&r[r.length-1]!==""&&r.push(""),r.push(Vs.indentComment(a(u),"")))}return r.join(`
|
|
82
|
+
`)+`
|
|
83
|
+
`}HI.stringifyDocument=s4});var Zs=q(YI=>{"use strict";var l4=$s(),Da=Qu(),Sr=ze(),u4=Yn(),c4=Gn(),d4=Th(),p4=KI(),Ch=Hu(),f4=Dm(),m4=Cs(),Ah=Nm(),Oh=class e{constructor(t,r,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Sr.NODE_TYPE,{value:Sr.DOC});let n=null;typeof r=="function"||Array.isArray(r)?n=r:i===void 0&&r&&(i=r,r=void 0);let a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=a;let{version:o}=a;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Ah.Directives({version:o}),this.setSchema(o,i),this.contents=t===void 0?null:this.createNode(t,n,i)}clone(){let t=Object.create(e.prototype,{[Sr.NODE_TYPE]:{value:Sr.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Sr.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){ja(this.contents)&&this.contents.add(t)}addIn(t,r){ja(this.contents)&&this.contents.addIn(t,r)}createAlias(t,r){if(!t.anchor){let i=Ch.anchorNames(this);t.anchor=!r||i.has(r)?Ch.findNewAnchor(r||"a",i):r}return new l4.Alias(t.anchor)}createNode(t,r,i){let n;if(typeof r=="function")t=r.call({"":t},"",t),n=r;else if(Array.isArray(r)){let y=_=>typeof _=="number"||_ instanceof String||_ instanceof Number,v=r.filter(y).map(String);v.length>0&&(r=r.concat(v)),n=r}else i===void 0&&r&&(i=r,r=void 0);let{aliasDuplicateObjects:a,anchorPrefix:o,flow:s,keepUndefined:u,onTagObj:c,tag:d}=i??{},{onAnchor:p,setAnchors:f,sourceObjects:m}=Ch.createNodeAnchors(this,o||"a"),g={aliasDuplicateObjects:a??!0,keepUndefined:u??!1,onAnchor:p,onTagObj:c,replacer:n,schema:this.schema,sourceObjects:m},h=m4.createNode(t,d,g);return s&&Sr.isCollection(h)&&(h.flow=!0),f(),h}createPair(t,r,i={}){let n=this.createNode(t,null,i),a=this.createNode(r,null,i);return new u4.Pair(n,a)}delete(t){return ja(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Da.isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):ja(this.contents)?this.contents.deleteIn(t):!1}get(t,r){return Sr.isCollection(this.contents)?this.contents.get(t,r):void 0}getIn(t,r){return Da.isEmptyPath(t)?!r&&Sr.isScalar(this.contents)?this.contents.value:this.contents:Sr.isCollection(this.contents)?this.contents.getIn(t,r):void 0}has(t){return Sr.isCollection(this.contents)?this.contents.has(t):!1}hasIn(t){return Da.isEmptyPath(t)?this.contents!==void 0:Sr.isCollection(this.contents)?this.contents.hasIn(t):!1}set(t,r){this.contents==null?this.contents=Da.collectionFromPath(this.schema,[t],r):ja(this.contents)&&this.contents.set(t,r)}setIn(t,r){Da.isEmptyPath(t)?this.contents=r:this.contents==null?this.contents=Da.collectionFromPath(this.schema,Array.from(t),r):ja(this.contents)&&this.contents.setIn(t,r)}setSchema(t,r={}){typeof t=="number"&&(t=String(t));let i;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Ah.Directives({version:"1.1"}),i={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new Ah.Directives({version:t}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{let n=JSON.stringify(t);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 d4.Schema(Object.assign(i,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:r,mapAsMap:i,maxAliasCount:n,onAnchor:a,reviver:o}={}){let s={anchors:new Map,doc:this,keep:!t,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},u=c4.toJS(this.contents,r??"",s);if(typeof a=="function")for(let{count:c,res:d}of s.anchors.values())a(d,c);return typeof o=="function"?f4.applyReviver(o,{"":u},"",u):u}toJSON(t,r){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:r})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){let r=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return p4.stringifyDocument(this,t)}};function ja(e){if(Sr.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}YI.Document=Oh});var Js=q(Gs=>{"use strict";var Ws=class extends Error{constructor(t,r,i,n){super(),this.name=t,this.code=i,this.message=n,this.pos=r}},Nh=class extends Ws{constructor(t,r,i){super("YAMLParseError",t,r,i)}},Dh=class extends Ws{constructor(t,r,i){super("YAMLWarning",t,r,i)}},h4=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(s=>t.linePos(s));let{line:i,col:n}=r.linePos[0];r.message+=` at line ${i}, column ${n}`;let a=n-1,o=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(a>=60&&o.length>80){let s=Math.min(a-39,o.length-79);o="\u2026"+o.substring(s),a-=s-1}if(o.length>80&&(o=o.substring(0,79)+"\u2026"),i>1&&/^ *$/.test(o.substring(0,a))){let s=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);s.length>80&&(s=s.substring(0,79)+`\u2026
|
|
84
|
+
`),o=s+o}if(/[^ ]/.test(o)){let s=1,u=r.linePos[1];u?.line===i&&u.col>n&&(s=Math.max(1,Math.min(u.col-n,80-a)));let c=" ".repeat(a)+"^".repeat(s);r.message+=`:
|
|
85
|
+
|
|
86
|
+
${o}
|
|
87
|
+
${c}
|
|
88
|
+
`}};Gs.YAMLError=Ws;Gs.YAMLParseError=Nh;Gs.YAMLWarning=Dh;Gs.prettifyError=h4});var Hs=q(XI=>{"use strict";function g4(e,{flow:t,indicator:r,next:i,offset:n,onError:a,parentIndent:o,startOnNewline:s}){let u=!1,c=s,d=s,p="",f="",m=!1,g=!1,h=null,y=null,v=null,_=null,b=null,x=null,E=null;for(let $ of e)switch(g&&($.type!=="space"&&$.type!=="newline"&&$.type!=="comma"&&a($.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),h&&(c&&$.type!=="comment"&&$.type!=="newline"&&a(h,"TAB_AS_INDENT","Tabs are not allowed as indentation"),h=null),$.type){case"space":!t&&(r!=="doc-start"||i?.type!=="flow-collection")&&$.source.includes(" ")&&(h=$),d=!0;break;case"comment":{d||a($,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let T=$.source.substring(1)||" ";p?p+=f+T:p=T,f="",c=!1;break}case"newline":c?p?p+=$.source:(!x||r!=="seq-item-ind")&&(u=!0):f+=$.source,c=!0,m=!0,(y||v)&&(_=$),d=!0;break;case"anchor":y&&a($,"MULTIPLE_ANCHORS","A node can have at most one anchor"),$.source.endsWith(":")&&a($.offset+$.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),y=$,E??(E=$.offset),c=!1,d=!1,g=!0;break;case"tag":{v&&a($,"MULTIPLE_TAGS","A node can have at most one tag"),v=$,E??(E=$.offset),c=!1,d=!1,g=!0;break}case r:(y||v)&&a($,"BAD_PROP_ORDER",`Anchors and tags must be after the ${$.source} indicator`),x&&a($,"UNEXPECTED_TOKEN",`Unexpected ${$.source} in ${t??"collection"}`),x=$,c=r==="seq-item-ind"||r==="explicit-key-ind",d=!1;break;case"comma":if(t){b&&a($,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),b=$,c=!1,d=!1;break}default:a($,"UNEXPECTED_TOKEN",`Unexpected ${$.type} token`),c=!1,d=!1}let k=e[e.length-1],A=k?k.offset+k.source.length:n;return g&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&a(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),h&&(c&&h.indent<=o||i?.type==="block-map"||i?.type==="block-seq")&&a(h,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:b,found:x,spaceBefore:u,comment:p,hasNewline:m,anchor:y,tag:v,newlineAfterProp:_,end:A,start:E??A}}XI.resolveProps=g4});var Dc=q(QI=>{"use strict";function jh(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
|
89
|
+
`))return!0;if(e.end){for(let t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(let t of e.items){for(let r of t.start)if(r.type==="newline")return!0;if(t.sep){for(let r of t.sep)if(r.type==="newline")return!0}if(jh(t.key)||jh(t.value))return!0}return!1;default:return!0}}QI.containsNewline=jh});var Ph=q(eE=>{"use strict";var y4=Dc();function v4(e,t,r){if(t?.type==="flow-collection"){let i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&y4.containsNewline(t)&&r(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}eE.flowIndentCheck=v4});var zh=q(rE=>{"use strict";var tE=ze();function b4(e,t,r){let{uniqueKeys:i}=e.options;if(i===!1)return!1;let n=typeof i=="function"?i:(a,o)=>a===o||tE.isScalar(a)&&tE.isScalar(o)&&a.value===o.value;return t.some(a=>n(a.key,r))}rE.mapIncludes=b4});var lE=q(sE=>{"use strict";var nE=Yn(),_4=Qn(),iE=Hs(),w4=Dc(),aE=Ph(),k4=zh(),oE="All mapping items must start at the same column";function x4({composeNode:e,composeEmptyNode:t},r,i,n,a){let o=a?.nodeClass??_4.YAMLMap,s=new o(r.schema);r.atRoot&&(r.atRoot=!1);let u=i.offset,c=null;for(let d of i.items){let{start:p,key:f,sep:m,value:g}=d,h=iE.resolveProps(p,{indicator:"explicit-key-ind",next:f??m?.[0],offset:u,onError:n,parentIndent:i.indent,startOnNewline:!0}),y=!h.found;if(y){if(f&&(f.type==="block-seq"?n(u,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in f&&f.indent!==i.indent&&n(u,"BAD_INDENT",oE)),!h.anchor&&!h.tag&&!m){c=h.end,h.comment&&(s.comment?s.comment+=`
|
|
90
|
+
`+h.comment:s.comment=h.comment);continue}(h.newlineAfterProp||w4.containsNewline(f))&&n(f??p[p.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else h.found?.indent!==i.indent&&n(u,"BAD_INDENT",oE);r.atKey=!0;let v=h.end,_=f?e(r,f,h,n):t(r,v,p,null,h,n);r.schema.compat&&aE.flowIndentCheck(i.indent,f,n),r.atKey=!1,k4.mapIncludes(r,s.items,_)&&n(v,"DUPLICATE_KEY","Map keys must be unique");let b=iE.resolveProps(m??[],{indicator:"map-value-ind",next:g,offset:_.range[2],onError:n,parentIndent:i.indent,startOnNewline:!f||f.type==="block-scalar"});if(u=b.end,b.found){y&&(g?.type==="block-map"&&!b.hasNewline&&n(u,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&h.start<b.found.offset-1024&&n(_.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let x=g?e(r,g,b,n):t(r,u,m,null,b,n);r.schema.compat&&aE.flowIndentCheck(i.indent,g,n),u=x.range[2];let E=new nE.Pair(_,x);r.options.keepSourceTokens&&(E.srcToken=d),s.items.push(E)}else{y&&n(_.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),b.comment&&(_.comment?_.comment+=`
|
|
91
|
+
`+b.comment:_.comment=b.comment);let x=new nE.Pair(_);r.options.keepSourceTokens&&(x.srcToken=d),s.items.push(x)}}return c&&c<u&&n(c,"IMPOSSIBLE","Map comment with trailing content"),s.range=[i.offset,u,c??u],s}sE.resolveBlockMap=x4});var cE=q(uE=>{"use strict";var S4=ei(),I4=Hs(),E4=Ph();function T4({composeNode:e,composeEmptyNode:t},r,i,n,a){let o=a?.nodeClass??S4.YAMLSeq,s=new o(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let u=i.offset,c=null;for(let{start:d,value:p}of i.items){let f=I4.resolveProps(d,{indicator:"seq-item-ind",next:p,offset:u,onError:n,parentIndent:i.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||p)p?.type==="block-seq"?n(f.end,"BAD_INDENT","All sequence items must start at the same column"):n(u,"MISSING_CHAR","Sequence item without - indicator");else{c=f.end,f.comment&&(s.comment=f.comment);continue}let m=p?e(r,p,f,n):t(r,f.end,d,null,f,n);r.schema.compat&&E4.flowIndentCheck(i.indent,p,n),u=m.range[2],s.items.push(m)}return s.range=[i.offset,u,c??u],s}uE.resolveBlockSeq=T4});var Pa=q(dE=>{"use strict";function $4(e,t,r,i){let n="";if(e){let a=!1,o="";for(let s of e){let{source:u,type:c}=s;switch(c){case"space":a=!0;break;case"comment":{r&&!a&&i(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let d=u.substring(1)||" ";n?n+=o+d:n=d,o="";break}case"newline":n&&(o+=u),a=!0;break;default:i(s,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=u.length}}return{comment:n,offset:t}}dE.resolveEnd=$4});var hE=q(mE=>{"use strict";var C4=ze(),A4=Yn(),pE=Qn(),O4=ei(),N4=Pa(),fE=Hs(),D4=Dc(),j4=zh(),Rh="Block collections are not allowed within flow collections",Mh=e=>e&&(e.type==="block-map"||e.type==="block-seq");function P4({composeNode:e,composeEmptyNode:t},r,i,n,a){let o=i.start.source==="{",s=o?"flow map":"flow sequence",u=a?.nodeClass??(o?pE.YAMLMap:O4.YAMLSeq),c=new u(r.schema);c.flow=!0;let d=r.atRoot;d&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let p=i.offset+i.start.source.length;for(let y=0;y<i.items.length;++y){let v=i.items[y],{start:_,key:b,sep:x,value:E}=v,k=fE.resolveProps(_,{flow:s,indicator:"explicit-key-ind",next:b??x?.[0],offset:p,onError:n,parentIndent:i.indent,startOnNewline:!1});if(!k.found){if(!k.anchor&&!k.tag&&!x&&!E){y===0&&k.comma?n(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):y<i.items.length-1&&n(k.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),k.comment&&(c.comment?c.comment+=`
|
|
92
|
+
`+k.comment:c.comment=k.comment),p=k.end;continue}!o&&r.options.strict&&D4.containsNewline(b)&&n(b,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(y===0)k.comma&&n(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(k.comma||n(k.start,"MISSING_CHAR",`Missing , between ${s} items`),k.comment){let A="";e:for(let $ of _)switch($.type){case"comma":case"space":break;case"comment":A=$.source.substring(1);break e;default:break e}if(A){let $=c.items[c.items.length-1];C4.isPair($)&&($=$.value??$.key),$.comment?$.comment+=`
|
|
93
|
+
`+A:$.comment=A,k.comment=k.comment.substring(A.length+1)}}if(!o&&!x&&!k.found){let A=E?e(r,E,k,n):t(r,k.end,x,null,k,n);c.items.push(A),p=A.range[2],Mh(E)&&n(A.range,"BLOCK_IN_FLOW",Rh)}else{r.atKey=!0;let A=k.end,$=b?e(r,b,k,n):t(r,A,_,null,k,n);Mh(b)&&n($.range,"BLOCK_IN_FLOW",Rh),r.atKey=!1;let T=fE.resolveProps(x??[],{flow:s,indicator:"map-value-ind",next:E,offset:$.range[2],onError:n,parentIndent:i.indent,startOnNewline:!1});if(T.found){if(!o&&!k.found&&r.options.strict){if(x)for(let O of x){if(O===T.found)break;if(O.type==="newline"){n(O,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}k.start<T.found.offset-1024&&n(T.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else E&&("source"in E&&E.source?.[0]===":"?n(E,"MISSING_CHAR",`Missing space after : in ${s}`):n(T.start,"MISSING_CHAR",`Missing , or : between ${s} items`));let Y=E?e(r,E,T,n):T.found?t(r,T.end,x,null,T,n):null;Y?Mh(E)&&n(Y.range,"BLOCK_IN_FLOW",Rh):T.comment&&($.comment?$.comment+=`
|
|
94
|
+
`+T.comment:$.comment=T.comment);let R=new A4.Pair($,Y);if(r.options.keepSourceTokens&&(R.srcToken=v),o){let O=c;j4.mapIncludes(r,O.items,$)&&n(A,"DUPLICATE_KEY","Map keys must be unique"),O.items.push(R)}else{let O=new pE.YAMLMap(r.schema);O.flow=!0,O.items.push(R);let j=(Y??$).range;O.range=[$.range[0],j[1],j[2]],c.items.push(O)}p=Y?Y.range[2]:T.end}}let f=o?"}":"]",[m,...g]=i.end,h=p;if(m?.source===f)h=m.offset+m.source.length;else{let y=s[0].toUpperCase()+s.substring(1),v=d?`${y} must end with a ${f}`:`${y} in block collection must be sufficiently indented and end with a ${f}`;n(p,d?"MISSING_CHAR":"BAD_INDENT",v),m&&m.source.length!==1&&g.unshift(m)}if(g.length>0){let y=N4.resolveEnd(g,h,r.options.strict,n);y.comment&&(c.comment?c.comment+=`
|
|
95
|
+
`+y.comment:c.comment=y.comment),c.range=[i.offset,h,y.offset]}else c.range=[i.offset,h,h];return c}mE.resolveFlowCollection=P4});var yE=q(gE=>{"use strict";var z4=ze(),R4=at(),M4=Qn(),L4=ei(),F4=lE(),U4=cE(),q4=hE();function Lh(e,t,r,i,n,a){let o=r.type==="block-map"?F4.resolveBlockMap(e,t,r,i,a):r.type==="block-seq"?U4.resolveBlockSeq(e,t,r,i,a):q4.resolveFlowCollection(e,t,r,i,a),s=o.constructor;return n==="!"||n===s.tagName?(o.tag=s.tagName,o):(n&&(o.tag=n),o)}function B4(e,t,r,i,n){let a=i.tag,o=a?t.directives.tagName(a.source,f=>n(a,"TAG_RESOLVE_FAILED",f)):null;if(r.type==="block-seq"){let{anchor:f,newlineAfterProp:m}=i,g=f&&a?f.offset>a.offset?f:a:f??a;g&&(!m||m.offset<g.offset)&&n(g,"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(!a||!o||o==="!"||o===M4.YAMLMap.tagName&&s==="map"||o===L4.YAMLSeq.tagName&&s==="seq")return Lh(e,t,r,n,o);let u=t.schema.tags.find(f=>f.tag===o&&f.collection===s);if(!u){let f=t.schema.knownTags[o];if(f?.collection===s)t.schema.tags.push(Object.assign({},f,{default:!1})),u=f;else return f?n(a,"BAD_COLLECTION_TYPE",`${f.tag} used for ${s} collection, but expects ${f.collection??"scalar"}`,!0):n(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),Lh(e,t,r,n,o)}let c=Lh(e,t,r,n,o,u),d=u.resolve?.(c,f=>n(a,"TAG_RESOLVE_FAILED",f),t.options)??c,p=z4.isNode(d)?d:new R4.Scalar(d);return p.range=c.range,p.tag=o,u?.format&&(p.format=u.format),p}gE.composeCollection=B4});var Uh=q(vE=>{"use strict";var Fh=at();function V4(e,t,r){let i=t.offset,n=Z4(t,e.options.strict,r);if(!n)return{value:"",type:null,comment:"",range:[i,i,i]};let a=n.mode===">"?Fh.Scalar.BLOCK_FOLDED:Fh.Scalar.BLOCK_LITERAL,o=t.source?W4(t.source):[],s=o.length;for(let h=o.length-1;h>=0;--h){let y=o[h][1];if(y===""||y==="\r")s=h;else break}if(s===0){let h=n.chomp==="+"&&o.length>0?`
|
|
96
|
+
`.repeat(Math.max(1,o.length-1)):"",y=i+n.length;return t.source&&(y+=t.source.length),{value:h,type:a,comment:n.comment,range:[i,y,y]}}let u=t.indent+n.indent,c=t.offset+n.length,d=0;for(let h=0;h<s;++h){let[y,v]=o[h];if(v===""||v==="\r")n.indent===0&&y.length>u&&(u=y.length);else{y.length<u&&r(c+y.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),n.indent===0&&(u=y.length),d=h,u===0&&!e.atRoot&&r(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=y.length+v.length+1}for(let h=o.length-1;h>=s;--h)o[h][0].length>u&&(s=h+1);let p="",f="",m=!1;for(let h=0;h<d;++h)p+=o[h][0].slice(u)+`
|
|
97
|
+
`;for(let h=d;h<s;++h){let[y,v]=o[h];c+=y.length+v.length+1;let _=v[v.length-1]==="\r";if(_&&(v=v.slice(0,-1)),v&&y.length<u){let x=`Block scalar lines must not be less indented than their ${n.indent?"explicit indentation indicator":"first line"}`;r(c-v.length-(_?2:1),"BAD_INDENT",x),y=""}a===Fh.Scalar.BLOCK_LITERAL?(p+=f+y.slice(u)+v,f=`
|
|
98
|
+
`):y.length>u||v[0]===" "?(f===" "?f=`
|
|
99
|
+
`:!m&&f===`
|
|
100
|
+
`&&(f=`
|
|
101
|
+
|
|
102
|
+
`),p+=f+y.slice(u)+v,f=`
|
|
103
|
+
`,m=!0):v===""?f===`
|
|
104
|
+
`?p+=`
|
|
105
|
+
`:f=`
|
|
106
|
+
`:(p+=f+v,f=" ",m=!1)}switch(n.chomp){case"-":break;case"+":for(let h=s;h<o.length;++h)p+=`
|
|
107
|
+
`+o[h][0].slice(u);p[p.length-1]!==`
|
|
108
|
+
`&&(p+=`
|
|
109
|
+
`);break;default:p+=`
|
|
110
|
+
`}let g=i+n.length+t.source.length;return{value:p,type:a,comment:n.comment,range:[i,g,g]}}function Z4({offset:e,props:t},r,i){if(t[0].type!=="block-scalar-header")return i(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:n}=t[0],a=n[0],o=0,s="",u=-1;for(let f=1;f<n.length;++f){let m=n[f];if(!s&&(m==="-"||m==="+"))s=m;else{let g=Number(m);!o&&g?o=g:u===-1&&(u=e+f)}}u!==-1&&i(u,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${n}`);let c=!1,d="",p=n.length;for(let f=1;f<t.length;++f){let m=t[f];switch(m.type){case"space":c=!0;case"newline":p+=m.source.length;break;case"comment":r&&!c&&i(m,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=m.source.length,d=m.source.substring(1);break;case"error":i(m,"UNEXPECTED_TOKEN",m.message),p+=m.source.length;break;default:{let g=`Unexpected token in block scalar header: ${m.type}`;i(m,"UNEXPECTED_TOKEN",g);let h=m.source;h&&typeof h=="string"&&(p+=h.length)}}}return{mode:a,indent:o,chomp:s,comment:d,length:p}}function W4(e){let t=e.split(/\n( *)/),r=t[0],i=r.match(/^( *)/),a=[i?.[1]?[i[1],r.slice(i[1].length)]:["",r]];for(let o=1;o<t.length;o+=2)a.push([t[o],t[o+1]]);return a}vE.resolveBlockScalar=V4});var Bh=q(_E=>{"use strict";var qh=at(),G4=Pa();function J4(e,t,r){let{offset:i,type:n,source:a,end:o}=e,s,u,c=(f,m,g)=>r(i+f,m,g);switch(n){case"scalar":s=qh.Scalar.PLAIN,u=H4(a,c);break;case"single-quoted-scalar":s=qh.Scalar.QUOTE_SINGLE,u=K4(a,c);break;case"double-quoted-scalar":s=qh.Scalar.QUOTE_DOUBLE,u=Y4(a,c);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${n}`),{value:"",type:null,comment:"",range:[i,i+a.length,i+a.length]}}let d=i+a.length,p=G4.resolveEnd(o,d,t,r);return{value:u,type:s,comment:p.comment,range:[i,d,p.offset]}}function H4(e,t){let r="";switch(e[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 ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),bE(e)}function K4(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),bE(e.slice(1,-1)).replace(/''/g,"'")}function bE(e){let t,r;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
111
|
+
`,"sy"),r=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
112
|
+
`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let i=t.exec(e);if(!i)return e;let n=i[1],a=" ",o=t.lastIndex;for(r.lastIndex=o;i=r.exec(e);)i[1]===""?a===`
|
|
113
|
+
`?n+=a:a=`
|
|
114
|
+
`:(n+=a+i[1],a=" "),o=r.lastIndex;let s=/[ \t]*(.*)/sy;return s.lastIndex=o,i=s.exec(e),n+a+(i?.[1]??"")}function Y4(e,t){let r="";for(let i=1;i<e.length-1;++i){let n=e[i];if(!(n==="\r"&&e[i+1]===`
|
|
115
|
+
`))if(n===`
|
|
116
|
+
`){let{fold:a,offset:o}=X4(e,i);r+=a,i=o}else if(n==="\\"){let a=e[++i],o=Q4[a];if(o)r+=o;else if(a===`
|
|
117
|
+
`)for(a=e[i+1];a===" "||a===" ";)a=e[++i+1];else if(a==="\r"&&e[i+1]===`
|
|
118
|
+
`)for(a=e[++i+1];a===" "||a===" ";)a=e[++i+1];else if(a==="x"||a==="u"||a==="U"){let s={x:2,u:4,U:8}[a];r+=eq(e,i+1,s,t),i+=s}else{let s=e.substr(i-1,2);t(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),r+=s}}else if(n===" "||n===" "){let a=i,o=e[i+1];for(;o===" "||o===" ";)o=e[++i+1];o!==`
|
|
119
|
+
`&&!(o==="\r"&&e[i+2]===`
|
|
120
|
+
`)&&(r+=i>a?e.slice(a,i+1):n)}else r+=n}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}function X4(e,t){let r="",i=e[t+1];for(;(i===" "||i===" "||i===`
|
|
121
|
+
`||i==="\r")&&!(i==="\r"&&e[t+2]!==`
|
|
122
|
+
`);)i===`
|
|
123
|
+
`&&(r+=`
|
|
124
|
+
`),t+=1,i=e[t+1];return r||(r=" "),{fold:r,offset:t}}var Q4={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
125
|
+
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function eq(e,t,r,i){let n=e.substr(t,r),o=n.length===r&&/^[0-9a-fA-F]+$/.test(n)?parseInt(n,16):NaN;if(isNaN(o)){let s=e.substr(t-2,r+2);return i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),s}return String.fromCodePoint(o)}_E.resolveFlowScalar=J4});var xE=q(kE=>{"use strict";var Bi=ze(),wE=at(),tq=Uh(),rq=Bh();function nq(e,t,r,i){let{value:n,type:a,comment:o,range:s}=t.type==="block-scalar"?tq.resolveBlockScalar(e,t,i):rq.resolveFlowScalar(t,e.options.strict,i),u=r?e.directives.tagName(r.source,p=>i(r,"TAG_RESOLVE_FAILED",p)):null,c;e.options.stringKeys&&e.atKey?c=e.schema[Bi.SCALAR]:u?c=iq(e.schema,n,u,r,i):t.type==="scalar"?c=aq(e,n,t,i):c=e.schema[Bi.SCALAR];let d;try{let p=c.resolve(n,f=>i(r??t,"TAG_RESOLVE_FAILED",f),e.options);d=Bi.isScalar(p)?p:new wE.Scalar(p)}catch(p){let f=p instanceof Error?p.message:String(p);i(r??t,"TAG_RESOLVE_FAILED",f),d=new wE.Scalar(n)}return d.range=s,d.source=n,a&&(d.type=a),u&&(d.tag=u),c.format&&(d.format=c.format),o&&(d.comment=o),d}function iq(e,t,r,i,n){if(r==="!")return e[Bi.SCALAR];let a=[];for(let s of e.tags)if(!s.collection&&s.tag===r)if(s.default&&s.test)a.push(s);else return s;for(let s of a)if(s.test?.test(t))return s;let o=e.knownTags[r];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(n(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),e[Bi.SCALAR])}function aq({atKey:e,directives:t,schema:r},i,n,a){let o=r.tags.find(s=>(s.default===!0||e&&s.default==="key")&&s.test?.test(i))||r[Bi.SCALAR];if(r.compat){let s=r.compat.find(u=>u.default&&u.test?.test(i))??r[Bi.SCALAR];if(o.tag!==s.tag){let u=t.tagString(o.tag),c=t.tagString(s.tag),d=`Value may be parsed as either ${u} or ${c}`;a(n,"TAG_RESOLVE_FAILED",d,!0)}}return o}kE.composeScalar=nq});var IE=q(SE=>{"use strict";function oq(e,t,r){if(t){r??(r=t.length);for(let i=r-1;i>=0;--i){let n=t[i];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++i];n?.type==="space";)e+=n.source.length,n=t[++i];break}}return e}SE.emptyScalarPosition=oq});var $E=q(Zh=>{"use strict";var sq=$s(),lq=ze(),uq=yE(),EE=xE(),cq=Pa(),dq=IE(),pq={composeNode:TE,composeEmptyNode:Vh};function TE(e,t,r,i){let n=e.atKey,{spaceBefore:a,comment:o,anchor:s,tag:u}=r,c,d=!0;switch(t.type){case"alias":c=fq(e,t,i),(s||u)&&i(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=EE.composeScalar(e,t,u,i),s&&(c.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=uq.composeCollection(pq,e,t,r,i),s&&(c.anchor=s.source.substring(1));break;default:{let p=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",p),c=Vh(e,t.offset,void 0,null,r,i),d=!1}}return s&&c.anchor===""&&i(s,"BAD_ALIAS","Anchor cannot be an empty string"),n&&e.options.stringKeys&&(!lq.isScalar(c)||typeof c.value!="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str")&&i(u??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),a&&(c.spaceBefore=!0),o&&(t.type==="scalar"&&t.source===""?c.comment=o:c.commentBefore=o),e.options.keepSourceTokens&&d&&(c.srcToken=t),c}function Vh(e,t,r,i,{spaceBefore:n,comment:a,anchor:o,tag:s,end:u},c){let d={type:"scalar",offset:dq.emptyScalarPosition(t,r,i),indent:-1,source:""},p=EE.composeScalar(e,d,s,c);return o&&(p.anchor=o.source.substring(1),p.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),n&&(p.spaceBefore=!0),a&&(p.comment=a,p.range[2]=u),p}function fq({options:e},{offset:t,source:r,end:i},n){let a=new sq.Alias(r.substring(1));a.source===""&&n(t,"BAD_ALIAS","Alias cannot be an empty string"),a.source.endsWith(":")&&n(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=t+r.length,s=cq.resolveEnd(i,o,e.strict,n);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}Zh.composeEmptyNode=Vh;Zh.composeNode=TE});var OE=q(AE=>{"use strict";var mq=Zs(),CE=$E(),hq=Pa(),gq=Hs();function yq(e,t,{offset:r,start:i,value:n,end:a},o){let s=Object.assign({_directives:t},e),u=new mq.Document(void 0,s),c={atKey:!1,atRoot:!0,directives:u.directives,options:u.options,schema:u.schema},d=gq.resolveProps(i,{indicator:"doc-start",next:n??a?.[0],offset:r,onError:o,parentIndent:0,startOnNewline:!0});d.found&&(u.directives.docStart=!0,n&&(n.type==="block-map"||n.type==="block-seq")&&!d.hasNewline&&o(d.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),u.contents=n?CE.composeNode(c,n,d,o):CE.composeEmptyNode(c,d.end,i,null,d,o);let p=u.contents.range[2],f=hq.resolveEnd(a,p,!1,o);return f.comment&&(u.comment=f.comment),u.range=[r,p,f.offset],u}AE.composeDoc=yq});var Gh=q(jE=>{"use strict";var vq=require("process"),bq=Nm(),_q=Zs(),Ks=Js(),NE=ze(),wq=OE(),kq=Pa();function Ys(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:r}=e;return[t,t+(typeof r=="string"?r.length:1)]}function DE(e){let t="",r=!1,i=!1;for(let n=0;n<e.length;++n){let a=e[n];switch(a[0]){case"#":t+=(t===""?"":i?`
|
|
126
|
+
|
|
127
|
+
`:`
|
|
128
|
+
`)+(a.substring(1)||" "),r=!0,i=!1;break;case"%":e[n+1]?.[0]!=="#"&&(n+=1),r=!1;break;default:r||(i=!0),r=!1}}return{comment:t,afterEmptyLine:i}}var Wh=class{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,i,n,a)=>{let o=Ys(r);a?this.warnings.push(new Ks.YAMLWarning(o,i,n)):this.errors.push(new Ks.YAMLParseError(o,i,n))},this.directives=new bq.Directives({version:t.version||"1.2"}),this.options=t}decorate(t,r){let{comment:i,afterEmptyLine:n}=DE(this.prelude);if(i){let a=t.contents;if(r)t.comment=t.comment?`${t.comment}
|
|
129
|
+
${i}`:i;else if(n||t.directives.docStart||!a)t.commentBefore=i;else if(NE.isCollection(a)&&!a.flow&&a.items.length>0){let o=a.items[0];NE.isPair(o)&&(o=o.key);let s=o.commentBefore;o.commentBefore=s?`${i}
|
|
130
|
+
${s}`:i}else{let o=a.commentBefore;a.commentBefore=o?`${i}
|
|
131
|
+
${o}`:i}}r?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:DE(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,r=!1,i=-1){for(let n of t)yield*this.next(n);yield*this.end(r,i)}*next(t){switch(vq.env.LOG_STREAM&&console.dir(t,{depth:null}),t.type){case"directive":this.directives.add(t.source,(r,i,n)=>{let a=Ys(t);a[0]+=r,this.onError(a,"BAD_DIRECTIVE",i,n)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{let r=wq.composeDoc(this.options,this.directives,t,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(t,"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(t.source);break;case"error":{let r=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,i=new Ks.YAMLParseError(Ys(t),"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 Ks.YAMLParseError(Ys(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;let r=kq.resolveEnd(t.end,t.offset+t.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}
|
|
132
|
+
${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new Ks.YAMLParseError(Ys(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){let i=Object.assign({_directives:this.directives},this.options),n=new _q.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}}};jE.Composer=Wh});var RE=q(jc=>{"use strict";var xq=Uh(),Sq=Bh(),Iq=Js(),PE=Ds();function Eq(e,t=!0,r){if(e){let i=(n,a,o)=>{let s=typeof n=="number"?n:Array.isArray(n)?n[0]:n.offset;if(r)r(s,a,o);else throw new Iq.YAMLParseError([s,s+1],a,o)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Sq.resolveFlowScalar(e,t,i);case"block-scalar":return xq.resolveBlockScalar({options:{strict:t}},e,i)}}return null}function Tq(e,t){let{implicitKey:r=!1,indent:i,inFlow:n=!1,offset:a=-1,type:o="PLAIN"}=t,s=PE.stringifyString({type:o,value:e},{implicitKey:r,indent:i>0?" ".repeat(i):"",inFlow:n,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:"newline",offset:-1,indent:i,source:`
|
|
133
|
+
`}];switch(s[0]){case"|":case">":{let c=s.indexOf(`
|
|
134
|
+
`),d=s.substring(0,c),p=s.substring(c+1)+`
|
|
135
|
+
`,f=[{type:"block-scalar-header",offset:a,indent:i,source:d}];return zE(f,u)||f.push({type:"newline",offset:-1,indent:i,source:`
|
|
136
|
+
`}),{type:"block-scalar",offset:a,indent:i,props:f,source:p}}case'"':return{type:"double-quoted-scalar",offset:a,indent:i,source:s,end:u};case"'":return{type:"single-quoted-scalar",offset:a,indent:i,source:s,end:u};default:return{type:"scalar",offset:a,indent:i,source:s,end:u}}}function $q(e,t,r={}){let{afterKey:i=!1,implicitKey:n=!1,inFlow:a=!1,type:o}=r,s="indent"in e?e.indent:null;if(i&&typeof s=="number"&&(s+=2),!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let c=e.props[0];if(c.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let u=PE.stringifyString({type:o,value:t},{implicitKey:n||s===null,indent:s!==null&&s>0?" ".repeat(s):"",inFlow:a,options:{blockQuote:!0,lineWidth:-1}});switch(u[0]){case"|":case">":Cq(e,u);break;case'"':Jh(e,u,"double-quoted-scalar");break;case"'":Jh(e,u,"single-quoted-scalar");break;default:Jh(e,u,"scalar")}}function Cq(e,t){let r=t.indexOf(`
|
|
137
|
+
`),i=t.substring(0,r),n=t.substring(r+1)+`
|
|
138
|
+
`;if(e.type==="block-scalar"){let a=e.props[0];if(a.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a.source=i,e.source=n}else{let{offset:a}=e,o="indent"in e?e.indent:-1,s=[{type:"block-scalar-header",offset:a,indent:o,source:i}];zE(s,"end"in e?e.end:void 0)||s.push({type:"newline",offset:-1,indent:o,source:`
|
|
139
|
+
`});for(let u of Object.keys(e))u!=="type"&&u!=="offset"&&delete e[u];Object.assign(e,{type:"block-scalar",indent:o,props:s,source:n})}}function zE(e,t){if(t)for(let r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function Jh(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{let i=e.props.slice(1),n=t.length;e.props[0].type==="block-scalar-header"&&(n-=e.props[0].source.length);for(let a of i)a.offset+=n;delete e.props,Object.assign(e,{type:r,source:t,end:i});break}case"block-map":case"block-seq":{let n={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
|
|
140
|
+
`};delete e.items,Object.assign(e,{type:r,source:t,end:[n]});break}default:{let i="indent"in e?e.indent:-1,n="end"in e&&Array.isArray(e.end)?e.end.filter(a=>a.type==="space"||a.type==="comment"||a.type==="newline"):[];for(let a of Object.keys(e))a!=="type"&&a!=="offset"&&delete e[a];Object.assign(e,{type:r,indent:i,source:t,end:n})}}}jc.createScalarToken=Tq;jc.resolveAsScalar=Eq;jc.setScalarValue=$q});var LE=q(ME=>{"use strict";var Aq=e=>"type"in e?zc(e):Pc(e);function zc(e){switch(e.type){case"block-scalar":{let t="";for(let r of e.props)t+=zc(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(let r of e.items)t+=Pc(r);return t}case"flow-collection":{let t=e.start.source;for(let r of e.items)t+=Pc(r);for(let r of e.end)t+=r.source;return t}case"document":{let t=Pc(e);if(e.end)for(let r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let r of e.end)t+=r.source;return t}}}function Pc({start:e,key:t,sep:r,value:i}){let n="";for(let a of e)n+=a.source;if(t&&(n+=zc(t)),r)for(let a of r)n+=a.source;return i&&(n+=zc(i)),n}ME.stringify=Aq});var BE=q(qE=>{"use strict";var Hh=Symbol("break visit"),Oq=Symbol("skip children"),FE=Symbol("remove item");function Vi(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),UE(Object.freeze([]),e,t)}Vi.BREAK=Hh;Vi.SKIP=Oq;Vi.REMOVE=FE;Vi.itemAtPath=(e,t)=>{let r=e;for(let[i,n]of t){let a=r?.[i];if(a&&"items"in a)r=a.items[n];else return}return r};Vi.parentCollection=(e,t)=>{let r=Vi.itemAtPath(e,t.slice(0,-1)),i=t[t.length-1][0],n=r?.[i];if(n&&"items"in n)return n;throw new Error("Parent collection not found")};function UE(e,t,r){let i=r(t,e);if(typeof i=="symbol")return i;for(let n of["key","value"]){let a=t[n];if(a&&"items"in a){for(let o=0;o<a.items.length;++o){let s=UE(Object.freeze(e.concat([[n,o]])),a.items[o],r);if(typeof s=="number")o=s-1;else{if(s===Hh)return Hh;s===FE&&(a.items.splice(o,1),o-=1)}}typeof i=="function"&&n==="key"&&(i=i(t,e))}}return typeof i=="function"?i(t,e):i}qE.visit=Vi});var Rc=q(Kt=>{"use strict";var Kh=RE(),Nq=LE(),Dq=BE(),Yh="\uFEFF",Xh="",Qh="",eg="",jq=e=>!!e&&"items"in e,Pq=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function zq(e){switch(e){case Yh:return"<BOM>";case Xh:return"<DOC>";case Qh:return"<FLOW_END>";case eg:return"<SCALAR>";default:return JSON.stringify(e)}}function Rq(e){switch(e){case Yh:return"byte-order-mark";case Xh:return"doc-mode";case Qh:return"flow-error-end";case eg:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
141
|
+
`:case`\r
|
|
142
|
+
`: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(e[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}Kt.createScalarToken=Kh.createScalarToken;Kt.resolveAsScalar=Kh.resolveAsScalar;Kt.setScalarValue=Kh.setScalarValue;Kt.stringify=Nq.stringify;Kt.visit=Dq.visit;Kt.BOM=Yh;Kt.DOCUMENT=Xh;Kt.FLOW_END=Qh;Kt.SCALAR=eg;Kt.isCollection=jq;Kt.isScalar=Pq;Kt.prettyToken=zq;Kt.tokenType=Rq});var ng=q(ZE=>{"use strict";var Xs=Rc();function Pr(e){switch(e){case void 0:case" ":case`
|
|
143
|
+
`:case"\r":case" ":return!0;default:return!1}}var VE=new Set("0123456789ABCDEFabcdef"),Mq=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Mc=new Set(",[]{}"),Lq=new Set(` ,[]{}
|
|
144
|
+
\r `),tg=e=>!e||Lq.has(e),rg=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(t,r=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!r;let i=this.next??"stream";for(;i&&(r||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let t=this.pos,r=this.buffer[t];for(;r===" "||r===" ";)r=this.buffer[++t];return!r||r==="#"||r===`
|
|
145
|
+
`?!0:r==="\r"?this.buffer[t+1]===`
|
|
146
|
+
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let r=this.buffer[t];if(this.indentNext>0){let i=0;for(;r===" ";)r=this.buffer[++i+t];if(r==="\r"){let n=this.buffer[i+t+1];if(n===`
|
|
147
|
+
`||!n&&!this.atEnd)return t+i+1}return r===`
|
|
148
|
+
`||i>=this.indentNext||!r&&!this.atEnd?t+i:-1}if(r==="-"||r==="."){let i=this.buffer.substr(t,3);if((i==="---"||i==="...")&&Pr(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
|
|
149
|
+
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){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 t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Xs.BOM&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let r=t.length,i=t.indexOf("#");for(;i!==-1;){let a=t[i-1];if(a===" "||a===" "){r=i-1;break}else i=t.indexOf("#",i+1)}for(;;){let a=t[r-1];if(a===" "||a===" ")r-=1;else break}let n=(yield*this.pushCount(r))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){let r=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-r),yield*this.pushNewline(),"stream"}return yield Xs.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let r=this.peek(3);if((r==="---"||r==="...")&&Pr(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&&!Pr(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[t,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Pr(r)){let i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let t=this.getLine();if(t===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(t[r]){case"#":yield*this.pushCount(t.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(tg),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,r,i=-1;do t=yield*this.pushNewline(),t>0?(r=yield*this.pushSpaces(!1),this.indentValue=i=r):r=0,r+=yield*this.pushSpaces(!0);while(t+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("..."))&&Pr(n[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(n[0]==="]"||n[0]==="}")))return this.flowLevel=0,yield Xs.FLOW_END,yield*this.parseLineStart();let a=0;for(;n[a]===",";)a+=yield*this.pushCount(1),a+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(a+=yield*this.pushIndicators(),n[a]){case void 0:return"flow";case"#":return yield*this.pushCount(n.length-a),"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(tg),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let o=this.charAt(1);if(this.flowKey||Pr(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let t=this.charAt(0),r=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;r!==-1&&this.buffer[r+1]==="'";)r=this.buffer.indexOf("'",r+2);else for(;r!==-1;){let a=0;for(;this.buffer[r-1-a]==="\\";)a+=1;if(a%2===0)break;r=this.buffer.indexOf('"',r+1)}let i=this.buffer.substring(0,r),n=i.indexOf(`
|
|
150
|
+
`,this.pos);if(n!==-1){for(;n!==-1;){let a=this.continueScalar(n+1);if(a===-1)break;n=i.indexOf(`
|
|
151
|
+
`,a)}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 t=this.pos;for(;;){let r=this.buffer[++t];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=>Pr(r)||r==="#")}*parseBlockScalar(){let t=this.pos-1,r=0,i;e:for(let a=this.pos;i=this.buffer[a];++a)switch(i){case" ":r+=1;break;case`
|
|
152
|
+
`:t=a,r=0;break;case"\r":{let o=this.buffer[a+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
|
|
153
|
+
`)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 a=this.continueScalar(t+1);if(a===-1)break;t=this.buffer.indexOf(`
|
|
154
|
+
`,a)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let n=t+1;for(i=this.buffer[n];i===" ";)i=this.buffer[++n];if(i===" "){for(;i===" "||i===" "||i==="\r"||i===`
|
|
155
|
+
`;)i=this.buffer[++n];t=n-1}else if(!this.blockScalarKeep)do{let a=t-1,o=this.buffer[a];o==="\r"&&(o=this.buffer[--a]);let s=a;for(;o===" ";)o=this.buffer[--a];if(o===`
|
|
156
|
+
`&&a>=this.pos&&a+1+r>s)t=a;else break}while(!0);return yield Xs.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let t=this.flowLevel>0,r=this.pos-1,i=this.pos-1,n;for(;n=this.buffer[++i];)if(n===":"){let a=this.buffer[i+1];if(Pr(a)||t&&Mc.has(a))break;r=i}else if(Pr(n)){let a=this.buffer[i+1];if(n==="\r"&&(a===`
|
|
157
|
+
`?(i+=1,n=`
|
|
158
|
+
`,a=this.buffer[i+1]):r=i),a==="#"||t&&Mc.has(a))break;if(n===`
|
|
159
|
+
`){let o=this.continueScalar(i+1);if(o===-1)break;i=Math.max(i,o-2)}}else{if(t&&Mc.has(n))break;r=i}return!n&&!this.atEnd?this.setNext("plain-scalar"):(yield Xs.SCALAR,yield*this.pushToIndex(r+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,r){let i=this.buffer.slice(this.pos,t);return i?(yield i,this.pos+=i.length,i.length):(r&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(tg))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let t=this.flowLevel>0,r=this.charAt(1);if(Pr(r)||t&&Mc.has(r))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,r=this.buffer[t];for(;!Pr(r)&&r!==">";)r=this.buffer[++t];return yield*this.pushToIndex(r===">"?t+1:t,!1)}else{let t=this.pos+1,r=this.buffer[t];for(;r;)if(Mq.has(r))r=this.buffer[++t];else if(r==="%"&&VE.has(this.buffer[t+1])&&VE.has(this.buffer[t+2]))r=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){let t=this.buffer[this.pos];return t===`
|
|
160
|
+
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
|
|
161
|
+
`?yield*this.pushCount(2):0}*pushSpaces(t){let r=this.pos-1,i;do i=this.buffer[++r];while(i===" "||t&&i===" ");let n=r-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=r),n}*pushUntil(t){let r=this.pos,i=this.buffer[r];for(;!t(i);)i=this.buffer[++r];return yield*this.pushToIndex(r,!1)}};ZE.Lexer=rg});var ag=q(WE=>{"use strict";var ig=class{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let r=0,i=this.lineStarts.length;for(;r<i;){let a=r+i>>1;this.lineStarts[a]<t?r=a+1:i=a}if(this.lineStarts[r]===t)return{line:r+1,col:1};if(r===0)return{line:0,col:t};let n=this.lineStarts[r-1];return{line:r,col:t-n+1}}}};WE.LineCounter=ig});var sg=q(YE=>{"use strict";var Fq=require("process"),GE=Rc(),Uq=ng();function ti(e,t){for(let r=0;r<e.length;++r)if(e[r].type===t)return!0;return!1}function JE(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function KE(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Lc(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function za(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function HE(e){if(e.start.type==="flow-seq-start")for(let t of e.items)t.sep&&!t.value&&!ti(t.start,"explicit-key-ind")&&!ti(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,KE(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}var og=class{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Uq.Lexer,this.onNewLine=t}*parse(t,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let i of this.lexer.lex(t,r))yield*this.next(i);r||(yield*this.end())}*next(t){if(this.source=t,Fq.env.LOG_TOKENS&&console.log("|",GE.prettyToken(t)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}let r=GE.tokenType(t);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+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{let i=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:i,source:t}),this.offset+=t.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 t=this.peek(1);if(this.type==="doc-end"&&t?.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(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){let r=t??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"&&HE(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&&JE(n.start)===-1&&(r.indent===0||n.start.every(a=>a.type!=="comment"||a.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 t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{JE(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}let r=this.startBlockValue(t);r?this.stack.push(r):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){let r=Lc(this.peek(2)),i=za(r),n;t.end?(n=t.end,n.push(this.sourceToken),delete t.end):n=[this.sourceToken];let a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let r=this.source.indexOf(`
|
|
162
|
+
`)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
|
|
163
|
+
`,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){let r=t.items[t.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):t.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)t.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,t.indent)){let n=t.items[t.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,r.start),n.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=t.indent){let i=!this.onKeyLine&&this.indent===t.indent,n=i&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind",a=[];if(n&&r.sep&&!r.value){let o=[];for(let s=0;s<r.sep.length;++s){let u=r.sep[s];switch(u.type){case"newline":o.push(s);break;case"space":break;case"comment":u.indent>t.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(a=r.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":n||r.value?(a.push(this.sourceToken),t.items.push({start:a}),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?(a.push(this.sourceToken),t.items.push({start:a,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)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ti(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(KE(r.key)&&!ti(r.sep,"newline")){let o=za(r.start),s=r.key,u=r.sep;u.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:s,sep:u}]})}else a.length>0?r.sep=r.sep.concat(a,this.sourceToken):r.sep.push(this.sourceToken);else if(ti(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{let o=za(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||n?t.items.push({start:a,key:null,sep:[this.sourceToken]}):ti(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 o=this.flowScalar(this.type);n||r.value?(t.items.push({start:a,key:o,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(o):(Object.assign(r,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{let o=this.startBlockValue(t);if(o){if(o.type==="block-seq"){if(!r.explicitKey&&r.sep&&!ti(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&&t.items.push({start:a});this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){let r=t.items[t.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):t.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,t.indent)){let n=t.items[t.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,r.start),n.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=t.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;r.value||ti(r.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>t.indent){let i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){let r=t.items[t.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(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?t.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?t.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?t.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":t.end.push(this.sourceToken);return}let i=this.startBlockValue(t);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===t.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=Lc(i),a=za(n);HE(t);let o=t.end.splice(1,t.end.length);o.push(this.sourceToken);let s={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:a,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let r=this.source.indexOf(`
|
|
164
|
+
`)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
|
|
165
|
+
`,r)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){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=Lc(t),i=za(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=Lc(t),i=za(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,r){return this.type!=="comment"||this.indent<=r?!1:t.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){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:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};YE.Parser=og});var rT=q(el=>{"use strict";var XE=Gh(),qq=Zs(),Qs=Js(),Bq=Zm(),Vq=ze(),Zq=ag(),QE=sg();function eT(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Zq.LineCounter||null,prettyErrors:t}}function Wq(e,t={}){let{lineCounter:r,prettyErrors:i}=eT(t),n=new QE.Parser(r?.addNewLine),a=new XE.Composer(t),o=Array.from(a.compose(n.parse(e)));if(i&&r)for(let s of o)s.errors.forEach(Qs.prettifyError(e,r)),s.warnings.forEach(Qs.prettifyError(e,r));return o.length>0?o:Object.assign([],{empty:!0},a.streamInfo())}function tT(e,t={}){let{lineCounter:r,prettyErrors:i}=eT(t),n=new QE.Parser(r?.addNewLine),a=new XE.Composer(t),o=null;for(let s of a.compose(n.parse(e),!0,e.length))if(!o)o=s;else if(o.options.logLevel!=="silent"){o.errors.push(new Qs.YAMLParseError(s.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&r&&(o.errors.forEach(Qs.prettifyError(e,r)),o.warnings.forEach(Qs.prettifyError(e,r))),o}function Gq(e,t,r){let i;typeof t=="function"?i=t:r===void 0&&t&&typeof t=="object"&&(r=t);let n=tT(e,r);if(!n)return null;if(n.warnings.forEach(a=>Bq.warn(n.options.logLevel,a)),n.errors.length>0){if(n.options.logLevel!=="silent")throw n.errors[0];n.errors=[]}return n.toJS(Object.assign({reviver:i},r))}function Jq(e,t,r){let i=null;if(typeof t=="function"||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),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(e===void 0){let{keepUndefined:n}=r??t??{};if(!n)return}return Vq.isDocument(e)&&!i?e.toString(r):new qq.Document(e,i,r).toString(r)}el.parse=Gq;el.parseAllDocuments=Wq;el.parseDocument=tT;el.stringify=Jq});var ni=q(Ue=>{"use strict";var Hq=Gh(),Kq=Zs(),Yq=Th(),lg=Js(),Xq=$s(),ri=ze(),Qq=Yn(),e2=at(),t2=Qn(),r2=ei(),n2=Rc(),i2=ng(),a2=ag(),o2=sg(),Fc=rT(),nT=Ss();Ue.Composer=Hq.Composer;Ue.Document=Kq.Document;Ue.Schema=Yq.Schema;Ue.YAMLError=lg.YAMLError;Ue.YAMLParseError=lg.YAMLParseError;Ue.YAMLWarning=lg.YAMLWarning;Ue.Alias=Xq.Alias;Ue.isAlias=ri.isAlias;Ue.isCollection=ri.isCollection;Ue.isDocument=ri.isDocument;Ue.isMap=ri.isMap;Ue.isNode=ri.isNode;Ue.isPair=ri.isPair;Ue.isScalar=ri.isScalar;Ue.isSeq=ri.isSeq;Ue.Pair=Qq.Pair;Ue.Scalar=e2.Scalar;Ue.YAMLMap=t2.YAMLMap;Ue.YAMLSeq=r2.YAMLSeq;Ue.CST=n2;Ue.Lexer=i2.Lexer;Ue.LineCounter=a2.LineCounter;Ue.Parser=o2.Parser;Ue.parse=Fc.parse;Ue.parseAllDocuments=Fc.parseAllDocuments;Ue.parseDocument=Fc.parseDocument;Ue.stringify=Fc.stringify;Ue.visit=nT.visit;Ue.visitAsync=nT.visitAsync});var wT=q((kQ,_T)=>{"use strict";var Wc=Object.prototype.hasOwnProperty,bT=Object.prototype.toString,fT=Object.defineProperty,mT=Object.getOwnPropertyDescriptor,hT=function(t){return typeof Array.isArray=="function"?Array.isArray(t):bT.call(t)==="[object Array]"},gT=function(t){if(!t||bT.call(t)!=="[object Object]")return!1;var r=Wc.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&Wc.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!i)return!1;var n;for(n in t);return typeof n>"u"||Wc.call(t,n)},yT=function(t,r){fT&&r.name==="__proto__"?fT(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},vT=function(t,r){if(r==="__proto__")if(Wc.call(t,r)){if(mT)return mT(t,r).value}else return;return t[r]};_T.exports=function e(){var t,r,i,n,a,o,s=arguments[0],u=1,c=arguments.length,d=!1;for(typeof s=="boolean"&&(d=s,s=arguments[1]||{},u=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});u<c;++u)if(t=arguments[u],t!=null)for(r in t)i=vT(s,r),n=vT(t,r),s!==n&&(d&&n&&(gT(n)||(a=hT(n)))?(a?(a=!1,o=i&&hT(i)?i:[]):o=i&&gT(i)?i:{},yT(s,{name:r,newValue:e(d,o,n)})):typeof n<"u"&&yT(s,{name:r,newValue:n}));return s}});var t$=q((bne,Mg)=>{"use strict";(function(){var e;typeof Mg<"u"?e=Mg.exports=i:e=(function(){return this||(0,eval)("this")})(),e.format=i,e.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(e.printf=t);function t(){console.log(i.apply(null,arguments))}function r(n,a){return i.apply(null,[n].concat(a))}function i(n){for(var a=1,o=[].slice.call(arguments),s=0,u=n.length,c="",d,p=!1,f,m,g=!1,h,y=function(){return o[a++]},v=function(){for(var _="";/\d/.test(n[s]);)_+=n[s++],d=n[s];return _.length>0?parseInt(_):null};s<u;++s)if(d=n[s],p)switch(p=!1,d=="."?(g=!1,d=n[++s]):d=="0"&&n[s+1]=="."?(g=!0,s+=2,d=n[s]):g=!0,h=v(),d){case"b":c+=parseInt(y(),10).toString(2);break;case"c":f=y(),typeof f=="string"||f instanceof String?c+=f:c+=String.fromCharCode(parseInt(f,10));break;case"d":c+=parseInt(y(),10);break;case"f":m=String(parseFloat(y()).toFixed(h||6)),c+=g?m:m.replace(/^0/,"");break;case"j":c+=JSON.stringify(y());break;case"o":c+="0"+parseInt(y(),10).toString(8);break;case"s":c+=y();break;case"x":c+="0x"+parseInt(y(),10).toString(16);break;case"X":c+="0x"+parseInt(y(),10).toString(16).toUpperCase();break;default:c+=d;break}else d==="%"?p=!0:c+=d;return c}})()});function q$(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(r){let i=[];if(r==null)return i;let n=typeof r.slice=="function"?r:String(r),a=n.length-e+1;if(a<1)return i;for(;a--;)i[a]=n.slice(a,a+e);return i}}var hoe,U$,B$=ji(()=>{"use strict";hoe=q$(2),U$=q$(3)});function V$(e,t){t?typeof t=="string"&&(t={style:t}):t={};let r=t.preserveLineEndings?IB:EB;return String(e).replace(t.style==="html"?SB:xB,t.trim?TB(r):r)}function IB(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function EB(){return" "}function TB(e){return t;function t(r,i,n){return i===0||i+r.length===n.length?"":e(r)}}var xB,SB,Z$=ji(()=>{"use strict";xB=/\s+/g,SB=/[\t\n\v\f\r ]+/g});function $B(e){return e==null?"":V$(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function CB(e){return U$(" "+$B(e)+" ")}function AB(e){let t=CB(e),r={},i=-1;for(;++i<t.length;)W$.call(r,t[i])?r[t[i]]++:r[t[i]]=1;return r}function G$(e){let t=AB(e),r=[],i;for(i in t)W$.call(t,i)&&r.push([i,t[i]]);return r.sort(OB),r}function OB(e,t){return e[1]-t[1]}var W$,J$=ji(()=>{"use strict";B$();Z$();W$={}.hasOwnProperty});var H$,K$=ji(()=>{"use strict";H$={cmn:/[\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u3005\u3007\u3021-\u3029\u3038-\u303B\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFA6D\uFA70-\uFAD9]|\uD81B[\uDFE2\uDFE3\uDFF0\uDFF1]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]/g,Latin:/[A-Za-z\u00AA\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uAB66-\uAB69\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A]|\uD801[\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]/g,Cyrillic:/[\u0400-\u0484\u0487-\u052F\u1C80-\u1C88\u1D2B\u1D78\u2DE0-\u2DFF\uA640-\uA69F\uFE2E\uFE2F]|\uD838[\uDC30-\uDC6D\uDC8F]/g,Arabic:/[\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u06FF\u0750-\u077F\u0870-\u088E\u0890\u0891\u0898-\u08E1\u08E3-\u08FF\uFB50-\uFBC2\uFBD3-\uFD3D\uFD40-\uFD8F\uFD92-\uFDC7\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD803[\uDE60-\uDE7E\uDEFD-\uDEFF]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB\uDEF0\uDEF1]/g,ben:/[\u0980-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FE]/g,Devanagari:/[\u0900-\u0950\u0955-\u0963\u0966-\u097F\uA8E0-\uA8FF]|\uD806[\uDF00-\uDF09]/g,jpn:/[\u3041-\u3096\u309D-\u309F]|\uD82C[\uDC01-\uDD1F\uDD32\uDD50-\uDD52]|\uD83C\uDE00|[\u30A1-\u30FA\u30FD-\u30FF\u31F0-\u31FF\u32D0-\u32FE\u3300-\u3357\uFF66-\uFF6F\uFF71-\uFF9D]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00\uDD20-\uDD22\uDD55\uDD64-\uDD67]|[\u3400-\u4DB5\u4E00-\u9FAF]/g,jav:/[\uA980-\uA9CD\uA9D0-\uA9D9\uA9DE\uA9DF]/g,kor:/[\u1100-\u11FF\u302E\u302F\u3131-\u318E\u3200-\u321E\u3260-\u327E\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/g,tel:/[\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C77-\u0C7F]/g,tam:/[\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA]|\uD807[\uDFC0-\uDFF1\uDFFF]/g,guj:/[\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1\u0AF9-\u0AFF]/g,kan:/[\u0C80-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3]/g,mal:/[\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4F\u0D54-\u0D63\u0D66-\u0D7F]/g,mya:/[\u1000-\u109F\uA9E0-\uA9FE\uAA60-\uAA7F]/g,pan:/[\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A76]/g,amh:/[\u1200-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]/g,tha:/[\u0E01-\u0E3A\u0E40-\u0E5B]/g,sin:/[\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4]|\uD804[\uDDE1-\uDDF4]/g,ell:/[\u0370-\u0373\u0375-\u0377\u037A-\u037D\u037F\u0384\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03E1\u03F0-\u03FF\u1D26-\u1D2A\u1D5D-\u1D61\u1D66-\u1D6A\u1DBF\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u2126\uAB65]|\uD800[\uDD40-\uDD8E\uDDA0]|\uD834[\uDE00-\uDE45]/g}});var hd,Y$=ji(()=>{"use strict";hd={Latin:{spa:" de|de |os | la| a |la | y |\xF3n |i\xF3n|es |ere|rec|ien|o a|der|ci\xF3|cho|ech|en |a p|ent|a l|aci|el |na |ona|e d| co|as |da | to|al |ene| en|tod| pe|e l| el|ho |nte| su|per|a t|ad | ti|ers|tie| se|rso|son|e s| pr|o d|oda|te |cia|n d| es|dad|ida| in|ne |est|ion|cio|s d|con|a e| po|men| li|n e|nci|res|su |to |tra| re| lo|tad| na|los|a s| o |ia |que| pa|r\xE1 |pro| un|s y|ual|s e|lib|nac|do |ra |er |a d|ue | qu|e e|sta|nal|ar |nes|ica|a c|ser|or |ter|se |por|cci|io |del|l d|des|ado|les|one|a a|ndi| so| cu|s p|ale|s n|ame|par|ici|oci|una|ber|s t|rta|com| di|dos|e a|imi|o s|e c|ert|las|o p|ant|dic|nto| al|ara|ibe|enc|o e|s l|cas| as|e p|ten|ali|o t|soc|y l|n c|nta|so |tos|y a|ria|n t|die|a u| fu|no |l p|ial|qui|dis|s o|hos|gua|igu| ig| ca|sar|l t| ma|l e|pre| ac|tiv|s a|re |nad|vid|era| tr|ier|cua|n p|ta |cla|ade|bre|s s|esa|ntr|ecc|a i| le|lid|das|d d|ido|ari|ind|ada|nda|fun|mie|ca |tic|eli|y d|nid|e i|odo|ios|o y|esp|iva|y e|mat|bli|r a|dr\xE1|tri|cti|tal|rim|ont|er\xE1|us |sus|end|pen|tor|ito|ond|ori|uie|lig|n a|ist|rac|lar|rse|tar|mo |omo|ibr|n l|edi|med| me|nio|a y|eda|isf|lo |aso|l m|ias|ico|lic|ple|ste|act|tec|ote|rot|ele|ura| ni|ie |adi|u p|seg|s i|un |und|a n|lqu|alq|o i|inc|sti| si|n s|ern",eng:"the| th| an|he |nd |ion|and| to|to |tio| of|on |of | in|al |ati|or |ght|igh|rig| ri|ne |ent|one|ll |is |as |ver|ed | be|e r|in |t t|all|eve|ht | or|ery|s t|ty | ev|e h|yon| ha|ryo|e a|be |his| fr|ng |d t|has| sh|ing| hi|sha| pr| co| re|hal|nal|y a|s a|n t|ce |men|ree|fre|e s|l b|nat|for|ts |nt |n a|ity|ry |her|nce|ect|d i| pe|pro|n o|cti| fo|e e|ly |es | no|ona|ny |any|er |re |f t|e o| de|s o| wi|ter|nte|e i|ons| en| ar|res|ers|y t|per|d f| a | on|ith|l a|e t|oci|soc|lit| as| se|dom|edo|eed|nti|s e|t o|oth|wit| di|equ|t a|ted|st |y o|int|e p| ma| so| na|l o|e c|ch |d a|enc|th |are|ns |ic | un| fu|tat|ial|cia| ac|hts|nit|qua| eq| al|om |e w|d o|f h|ali|ote|n e| wh|r t|sta|ge |thi|o a|tit|ual|an |te |ess| ch|le |ary|e f|by | by|y i|tec|uni|o t|o o| li|no | la|s r| su|inc|led|rot|con| pu| he|ere|imi|r a|ntr| st| ot|eli|age|dis|s d|tle|itl|hou|son|duc|edu| wo|ate|ble|ces|at | at| fa|com|ive|o s|eme|o e|aw |law|tra|und|pen|nde|unt|oun|n s|s f|f a|tho|ms | is|act|cie|cat|uca| ed|anc|wor|ral|t i| me|o f|ily|pri|ren|ose|s c|en |d n|l c|ful|rar|nta|nst| ag|l p|min|din|sec|y e| tr|rso|ich|hic|whi|cou|ern|uri|r o|tic|iti|igi|lig|rat|rth|t f|oms|rit|d r|ee |e b|era|rou|se |ay |rs | ho|abl|e u",por:"de | de| se|\xE3o |os |to |em | e |do |o d| di|er |ito|eit|ser|ent|\xE7\xE3o| a |dir|ire|rei|o s|ade|dad|uma|as |no |e d| to|nte| co|o t|tod| ou|men|que|s e|man| pr| in| qu|es | te|hum|odo|e a|da | hu|ano|te |al |tem|o e|s d|ida|m d| pe| re|o a|ou |r h|e s|cia|a e| li|o p| es|res| do| da| \xE0 |ual| em| su|a\xE7\xE3|dos|a p|tra|est|ia |con|pro|ar |e p|is | na|r\xE1 |qua|a d| pa|com|ais|o c|ame|er\xE1| po|uer|sta|ber|ter| o |ess|ra |e e|das|o \xE0|nto|nal|o o|a c|ido|rda|erd| as|nci|sua|ona|des|ibe|lib|e t|ado|s n|ua |s t|ue | so|ica|ma |lqu|alq|tos|m s|a l|per|ada|oci|soc|cio|a n|par|aci|s a|pre|ont|m o|ura|a s| um|ion|e o|or |e r|pel|nta|ntr|a i|io |nac|\xEAnc|str|ali|ria|nst| tr|a q|int|o n|a o|ca |ela|u\xE7\xE3|lid|e l| at|sen|ese|r d|s p|egu|seg|vid|pri|sso|\xE9m |ime|tic|dis|ra\xE7|eci|ara| ca|nid|tru|\xF5es|ass|seu|por|a a|m p| ex|so |r i|e\xE7\xE3|te\xE7|ote|rot| le| ma|ing|a t|ran|era|rio|l d|eli|\xE7a |sti| ne|cid|ern|utr|out|r e|e c|tad|gua|igu| ig| os|s o|ru\xE7|ins|\xE7\xF5e|ios| fa|e n|sse| no|re |art|r p|rar|u p|inc|lei|cas|ico|u\xE9m|gu\xE9|ngu|nin| ni|gur|la |pen|n\xE7a|na |i\xE7\xE3|i\xE3o|cie|ist|sem|ta |ele|e f|om |tro| ao|rel|m a|s s|tar|eda|ied|uni|e m|s i|a f|ias| cu| ac|r a|\xE1 a|rem|ei |omo|rec|for|s f|esc|ant|\xE0 s| vi|o q|ver|a u|nda|und|fun",ind:"an |ang|ng | da|ak | pe|ata| se| ke| me|dan| di| be|ber|kan|ran|hak|per|yan| ya|nga|nya|gan| at|ara| ha|eng|asa|ora|men|n p|n k|erh|rha|n d|ya |ap |at |as |tan|n b|ala|a d| or|a s|san|tas|eti|uk |pen|g b|set|ntu|n y|tia|iap|k m|eba|aan| un|n s|tuk|k a|p o|am |lam| ma|unt| de|ter|bas|beb|dak|end|i d|pun|mem|tau|dal|ama|keb|aka|ika|n m| ba|di |ma | sa|den|au |nda|n h|eri| ti|ela|k d|un |n a|ebe|ana|ah |ra |ida|uka| te|al |ada|ri |ole|tid|ngg|lak|leh|dap|a p|dil|g d|ena|eh |gar|na |ert|apa|um |tu |atu|a m|sam|ila|har|n t|asi|ban|erl|t d|bat|uat|ta |lan|adi|h d|neg| ne|kum|mas|nan|pat|aha| in|l d|emp|sem|rus|sua|ser|uan|era|ari|erb|kat|man|a b|g s|rta|ai |nny|n u|ung|ndi|han|uku|huk| hu|sa |ers|in | la|ka | su|ann|car|kes|aku|dip|i s|a a|erk|n i|lai|rga|aru|k h|i m|rka|a u|us |nak|emb|gga|nta|iba| pu|ind|s p|ent|mel|ina|min|ian|dar|ni |rma|lua|rik|ndu|lin|sia|rbu|g p|k s|da |aya|ese|u d|ega|nas|ar |ipe|yar|sya|ik |aga| ta|ain|ua |arg|uar|iny|pem|ut |si |dun|eor|seo|rak|ngs|ami|kel|ini|g t|dik|mer|emu|aks|rat|uru|ewa|il |enu|any|kep|pel|asu|rli|ia |dir|jam|mba|mat|pan|g m|ses|sar|das|kuk|bol|ili|u k|gsa|u p|a k|ern|ant|raa|t p|ema|mua|idi|did|t s|i k|rin|erm|esu|ger|elu|nja|enj|ga |dit",fra:" de|es |de |ion|nt |tio|et |ne |on | et|ent|le |oit|e d| la|e p|la |it | \xE0 |t d|roi|dro| dr| le|t\xE9 |e s|ati|te |re | to|s d|men|tou|e l|ns | pe| co|son|que| au| so|e a|onn|out| un| qu| sa| pr|ute|eme| l\u2019|t \xE0| a |e e|con|des| pa|ue |ers|e c| li|a d|per|ont|s e|t l|les|ts |tre|s l|ant| ou|cti|rso|ou |ce |ux |\xE0 l|nne|ons|it\xE9|en |un | en|er |une|n d|sa |lle| in|nte|e t| se|lib|res|a l|ire| d\u2019| re|\xE9 d|nat|iqu|ur |r l|t a|s s|aux|par|nal|a p|ans|dan|qui|t p| d\xE9|pro|s p|air| ne| fo|ert|s a|nce|au |ui |ect|du |ond|ale|lit| po|san| ch|\xE9s | na|us |com|our|ali|tra| ce|al |e o|e n|rt\xE9|ber|ibe|tes|r d|e r|its| di|\xEAtr|pou|\xE9t\xE9|s c|\xE0 u|ell|int|fon|oci|soc|ut |ter| da|aut|ien|rai| do|iss|s n| ma|bli|ge |est|s o| du|ona|n p|pri|rs |\xE9ga| \xEAt|ous|ens|ar |age|s t| su|cia|u d|cun|rat| es|ir |n c|e m| \xE9t|t \xEA|a c| ac|ote|n t|ein| tr|a s|ndi|e q|sur|\xE9e |ser|l n| pl|anc|lig|t s|n e|s i|t e| \xE9g|ain|omm|act|ntr|tec|gal|ul | nu| vi|me |nda|ind|soi|st | te|pay|tat|era|il |rel|n a|dis|n s|pr\xE9|peu|rit|\xE9 e|t \xE9|bre|sen|ill|l\u2019a|d\u2019a| mo|ass|lic|art| pu|abl|nta|t c|rot| on| lo|ure|l\u2019e|ava|ten|nul|ivi|t i|ess|ys |ays| fa|ine|eur|r\xE9s|cla|t\xE9s|oir|eut|e f|utr|doi|ibr|ais|ins|\xE9ra|\u2019en|i\xE9t|l e|s \xE9|nt\xE9| r\xE9|ssi| as|nse|ces|\xE9 a",deu:"en |er |der|ein| un|nd |und|ung|cht|ich| de|sch|ng | ge|ine|ech|gen|rec|che|ie | re|eit| au|ht |die| di| ha|ch | da|ver| zu|lic|t d|in |auf| ei| in| be|hen|nde|n d|uf |ede| ve|it |ten|n s|sei|at |jed| je| se|and|rei|s r|den|ter|ne |hat|t a|r h|zu |das|ode| od|as |es | an|fre|nge| we|n u|run| fr|ere|e u|lle|ner|nte|hei|ese| so|rde|wer|ige| al|ers|n g|hte|d d| st|n j|lei|all|n a|nen|ege|ent|bei|g d|erd|t u|ren|nsc|chu| gr|kei|ens|le |ben|aft|haf|cha|tli|ges|e s| si|men| vo|lun|em |r s|ion|te |len|gru|gun|tig|unt|uch|spr|n e|ft |ei |e f| wi| sc|r d|n n|geh|r g|dar|sta|erk| er|r e|sen|eic|gle| gl|lie|e e|tz |fen|n i|nie|f g|t w|des|chl|ite|ihe|eih|ies|ruc|st |ist|n w|h a|n z|e a| ni|ang|rf |arf|gem|ale|ati|on |he |t s|ach| na|end|n o|pru|ans|sse|ern|aat|taa|ehe|e d|hli|hre|int|tio|her|nsp|de |mei| ar|r a|ffe|e b|wie|erf|abe|hab|ndl|n v|sic|t i|han|ema|nat|ber|ied|geg|d s|nun|d f|ind| me|gke|igk|ie\xDF| fa|igu|hul|r v|dig|rch|urc|dur| du|utz|hut|tra|aus|alt|bes|str|ell|ste|ger|r o|esc|e g|rbe|arb|ohn|r b|mit|d g|r w|ntl|sow|n h|nne|etz|raf|dlu| ih|lte|man|iem|erh|eru| is|dem|lan|rt |son|isc|eli|rel|n r|e i|rli|r i| mi|e m|ild|bil| bi|eme| en|ins|f\xFCr| f\xFC|gel|\xF6ff| \xF6f|owi|ill|wil|e v|ric|f e",jav:"ng |an | ka|ang|ing|kan| sa|ak |lan| la|hak| pa| ha|ara|ne |abe| in|n k|ngg|ong|ane|nga|ant|won|uwo| an| uw|nin|ata|n u|en |ra |tan| da|ran|ana| ma|nth|ake|ben|beb|hi |ke |sab|nda| ng|adi|thi|nan|a k| ba|san|asa|ni |e h|e k|g k| ut|pan|awa| be|eba|gan|g p|dan| wa|bas|aka|dha|yan|sa |arb|man| di|wa |g d| na|g n|ban| tu|n s|ung|wen|g s|rbe|dar|dak|di |g u|ora|aya|be |ah |a s|eni| or|han|as | pr|a n|na |iya|a a|kar|at |a l|mar|uwe|duw|uta|und|n p|asi|pa | si|ala|n n| un|kab|oni|ya |i h|gar|g b|yat|tum|ta |n m|i k|apa|taw| li|ani| ke|al |ka |kal|ngk|ega| ne|nal|n i|g a|ggo|ina|we |ena|dad|iba|awi|aga|a p| ta|sar|adh|awe|and|uju|ind|min|sin|ndu|uwa|gge|n l|ggu|ngs|n b|a b|pra|iji|n a|ha | bi|kat|go | ku|e p|ron|kak|ngu|a u|gsa|war|nya|g t|pad|bis|k b|i w|ae |wae| nd|ali|a m|er |sak|e s|ku |liy|ama|i l|eh |isa|arg|n t|a d|kap|i s|ayo|gay| pe|ndh|bad|pri|neg|tow|uto|eda|bed|il |ih | ik|ur |k k|rta|art|i p|rga|lak|ami|ro |aro|yom|r k|e d|a w|kon|rib|eng|ger|g l|ras|dil| ti|k l|rap|mra|uma| pi|k h|n d|gaw|wat|ga |k n|ar |per| we|oma|k p|jro|ajr|saj|ase|ini|ken|saw|ona|nas|kas|h k|i t| um|tin|wo | me|aba|rak|pag|yar|sya|t k| te| mu|ngl| ni|i b|men|ate|a i|aku|ebu|a t| du|g m|owo|mat| lu|amp",vie:"ng |\u0323c |\u0301c | qu|a\u0300 | th|nh | ng|\u0323i |\u0300n |va\u0300| va| nh|uy\xEA| ph|quy| ca|\xEA\u0300n|y\xEA\u0300|\u0300nh|\u0300i |\u0323t | ch|o\u0301 | tr|ng\u01B0|i n| gi|g\u01B0\u01A1|\u01A1\u0300i|\u01B0\u01A1\u0300|\u0301t | co|\u01B0\u01A1\u0323| cu|a\u0301c|\u01B0\u0323 |\u01A1\u0323c| kh| \u0111\u01B0|\u0111\u01B0\u01A1| t\u01B0|co\u0301| ha|\xF4ng|c t| \u0111\xEA|n t|i \u0111|i\u0300n|\u0300u |ca\u0301|gia|\u0301i |o\u0323i|mo\u0323| mo|\xEA\u0300u|i\xEA\u0323|\u0111\xEA\u0300|u c|nh\u01B0|pha| ba| bi|\xE2\u0301t|\u0309a |u\u0309a|cu\u0309|h\xF4n| \u0111\xF4|g t|\u0301 q|\u0303ng| ti|t\u01B0\u0323|t c|\u0323n | la|n \u0111|n c|n n|hi\xEA|ch |ay |hay| vi|\xE2n | \u0111i| na|ba\u0309| ho|do | do| t\xF4| hi|\xF4\u0323i|ha\u0301|i\u0323 |na\u0300|\u0300 t|\u01A1\u0301i|h\xE2n| m\xF4|\u0301p |a\u0300n|\u0323 d|\u0301ch|\u0323p |\u0300o |a\u0300o|kh\xF4|\u0301n |\xF4\u0323t|m\xF4\u0323| h\xF4|ia |\xF4\u0301c|c h|h\u01B0\u0303|i v|g n|\u0301ng|u\xF4\u0301|qu\xF4|h t|\xF4n |\xEAn |n v|nh\xE2|\u0323 t| b\xE2|i c|g v|\u0309ng|i\xEA\u0301|c c|\xE2\u0323t|th\u01B0|h\u01B0 |\u01B0\u01A1\u0301|\u0309n | v\u01A1| c\xF4|c \u0111| \u0111o| s\u01B0|t t|\xF4\u0323c|\u01B0\u0303n|v\u01A1\u0301| v\xEA|a\u0309 |\u0323ng|g \u0111|\u0309o |a\u0309o|u\xE2\u0323| \u0111a|bi\u0323|la\u0300|s\u01B0\u0323|b\xE2\u0301|ha\u0300|h\xF4\u0323|i t|a\u0309n|h\u01B0\u01A1|\u0300ng|tro|\u0309m |o v| mi|\xEA\u0309 |u\u0323c|i h|\u01B0\u0301c|a\u0301p|g c|\u0303 h|ia\u0301|n b|\u0309i |a m|h c|c\xF4n|\xEA\u0323n|\u01A1\u0301c|ha\u0323|\u0111\xF4\u0323| du| c\u01B0|a c|n h|tha|a\u0303 | xa|\u0301o |a\u0301o|i\u0301n|\u0300y |g b| h\u01B0|g h|ong|ron|\u0300 c|cho|\u0300 n|mi\u0300|\u01B0\u0323c|h v|c b| lu|i b|\xEA\u0323 |ai |\xEA\u0301 |\u0323 c|xa\u0303|kha|c q|i\xEA\u0309|t\xF4\u0323|\xF4\u0301i|\u0111\xF4\u0301|a\u0301 |hoa|o h|h \u0111|ca\u0309|n l|ho\u0323|ti\xEA|y t|\u0309 c|a\u0323i|a\u0301n|\u0300 \u0111|oa\u0300|y \u0111|chi|\u0309 n|ph\xE2|\xEA\u0300 |thu|i\xEAn|du\u0323|o c|i m|lu\xE2|c p|\xF4\u0301n|c l|\u0301 c|u\u0303n|cu\u0303|c g|c n|qua|n g|c m|o n|a\u0309i|ha\u0309|\u0301 t|ho |v\xEA\u0300| t\xE2| h\u01A1|o t|\u01A1\u0309 |h\u01B0\u0301|hi\u0300|vi\xEA|\u0300m |\u0309 t|\u0111o\u0301|th\xF4|\u01B0\u0301 |c\u01B0\u0301|hi\u0301|\u0301nh|a\u0300y|\u01A1\u0309n|\u01B0\u01A1\u0309| b\u0103|tri| ta|m v|c v|\u01A1\u0323p|h\u01A1\u0323|h m| n\u01B0|\xEA\u0301t|thi|\u0103\u0323c|ngh|uy ",ita:" di|to | in|ion|la | de|di |re |e d|ne | e |zio|rit|a d|one|o d|ni |le |lla|itt|ess| al|iri|dir|tto|ent|ell|i i|del|ndi|ere|ind|o a| co|te |t\xE0 |ti |a s|uo |e e|gni|azi| pr|idu|ivi|duo|vid|div|ogn| og| es|i e| ha|all|ale|nte|e a|men|ser| su| ne|e l|za |i d|per|a p|ha | pe| un|con|no |sse|li |e i| o | so| li| la|pro|ia |o i|e p|o s|i s|in |ato|o h|na |e s|a l|e o|nza|ali|tti|o p|ta |so |ber|ibe|lib|o e|un | a | ri|ua |il | il|nto|pri|el | po|una|are|ame| qu|a c|ro |oni|nel|e n| ad|ual|gli|sua|ond| re|a a|i c|ri |o o|sta|ita|i o| le|ad |i a|ers|enz|ssi|\xE0 e|it\xE0|gua|i p|e c|io | pa|ter|soc|nal|ona|naz|ist|cia|rso|ver|a e|i r|tat|lle|sia| si|rio|tra|che| se|rt\xE0|ert|anz|eri|tut|\xE0 d|he | da|al |ant|qua|on |ari|o c| st|oci|er |dis|tri|si |ed | ed|ono| tu|ei |dei|uzi|com|att|a n|opr|rop|par|nes|i l|zza|ese|res|ien|son| eg|n c|ont|nti|pos|int|ico|r\xE0 |sun|ial|lit|sen|pre|tta|dev|nit|era|eve|ll |l i| l |nda|ina|non| no|o n|ria|str|d a|art|se |ssu|ica|raz|ett|sci|gio|ati|egu| na|i u|utt|ve | ma|do |e r|ssa|sa |a f|n p|fon| ch|d u|rim| fo|a t| sc|tr\xE0|otr|pot|n i| cu|l p|ra |ezz|a o|ini|sso|dic|ltr|uni|cie| ra|i n|ruz|tru|ste| is|der|l m|a r|pie|lia|est|dal|nta| at|tal|ntr| pu|nno|ann|ten|vit|a v",tur:" ve| ha|ve |ir |ler|hak| he|her|in |lar|r h|bir|ya |er |ak |kk\u0131|akk|eti| ka| bi|eya|an |eri|iye|yet|ara|ek | ol|de |vey|\u0131n |\u0131r |nda|ar\u0131|esi|\u0131n\u0131|d\u0131r| ta|tle|e h|as\u0131|etl|e k| va|\u0131 v|s\u0131n|ile|ne |rke|erk|ard|ine| sa|\u0131nd|ini|k h|k\u0131n|ama|le |tin|rd\u0131|var|a v| me|e m|na |sin|ere|k v| \u015Fa| bu|lan|kes|dir|rin|dan| ma|k\u0131 |mak|\u015Fah|da | te|mek| ge|n\u0131 | hi|nin|en |n h| se|lik|rle|ana|lma|e a|\u0131 h|r \u015F|ill|si | de|aya|zdi|izd|aiz|hai|ret|hi\xE7|\u0131na| i\u015F|e b| ba|kla|et | h\xFC|r\u0131n|n k|ola|nma|e t| ya|eme|riy|n v|e i|a h|li |mil|eli|ket|ik |kar|irl|h\xFCr|im |evl|mes|e d|ahs|ma |rak|ala|let|lle|un | ed|rri|\xFCrr|bu | mi|i v|dil| il| e\u015F|n i|la |el |mal| m\xFC| ko|e g|se | ki|mas|lek|mle|mem|n b|ili|e e|ser| i\xE7|n s|din| di|es |mel|eke|tir|\u015Fit|e\u015Fi|r b|akl|yla|n m|len| ke|edi|oru|nde|re |ele|ni |t\xFCr|a k|eye|\u0131k |ken|u\u011Fu| uy|eml|erd|ede|ame| g\xF6|e s|i m|tim|i b|rde|r\u015F\u0131|ar\u015F|a s|it |t v|siy|ar |rme|est|bes|rbe|erb|te |al\u0131| an|ndi|end|hs\u0131|unm|r\u0131 |kor|n\u0131n| ce|maz|mse|ims|kim|i\xE7 | ay|a m|lam|ri |s\u0131z|a b|ade|n t|nam|lme|ilm|k g|il |tme|etm|r v|e v|n e|\u011Fre|\xF6\u011Fr| \xF6\u011F|al |\u0131yl|olm|vle|\u015Fma|i s|ger|me | da|ind|lem|i o|may|cak|\xE7in|i\xE7i|nun|kan|ye |e y|r t|az |\xE7 k|ece|s\u0131 |eni| mu|ulu|und|den|lun| fa|\u015F\u0131 |ahi|l v|r a|san|kat| so|enm| ev|i\u015F ",pol:" pr|nie|pra| i |nia|ie |go |ani|raw|ia | po|ego| do|wie|iek|awo| ni|owi|ch |ek |do | ma|wo |a p|\u015Bci|ci |ej | cz| za| w |ych|o\u015Bc|rze|prz| ka|wa |eni| na| je|a\u017Cd|ka\u017C|ma |z\u0142o|cz\u0142|no\u015B|o d|\u0142ow|y c|dy |\u017Cdy|i p|wol| lu|ny |oln| wy|stw| wo|ub |lub|lno|rod|k m|twa|dzi|na | sw|rzy|aj\u0105|ecz|czn|sta| sp|owa|o p|spo|i w|kie|a w|zys|obo|est|neg|a\u0107 |mi |cze|e w|nyc|nic|jak| ja|wsz| z |jeg|wan|\u0144st|o s|a i|awa|e p|yst|pos|pow| r\xF3|o o|j\u0105c|ony|nej|owo|dow|\xF3w | ko|kol|aki|bez|rac|sze|iej| in|zen|pod|i i|ni | ro|cy |o w|zan|e\u0144s|no |zne|a s|lwi|olw|ez |odn|r\xF3w|odz|o u|ne |i n|i k|czy| be|acj|wob|inn| ob|\xF3wn|zie| ws|aln|orz|nik|o n|icz|zyn|\u0142ec|o\u0142e|po\u0142|aro|nar|a j|i z|t\u0119p|st\u0119|ien|cza|o z|ym |zec|ron|i l|ami| os|kra| kr|owe| od|ji |cji|mie|a z|bod|swo|dni|zes|e\u0142n|pe\u0142|iu |edn|iko|a n|raj| st|odo|zna|wyc|em |lni|szy|wia|nym|\u0105 p|j\u0105 |ze\u0144|iec|pie|st |jes| to|sob|kt\xF3|ale|y w|ieg|och|du |ini|war|zaw|nny|roz|i o|wej|i\u0119 |si\u0119| si|nau| or|o r|kor|e s|pop|zas|niu|z p|owy|w k|ywa| ta|ymi|hro|chr| oc|jed|ki |o t|ogo|oby|ran|any|oso|a o|t\xF3r| kt|w z|dne|to |tan|h i|nan|ejs|ada|a k|iem|aw |h p|wni|ucz|ora|a d| w\u0142|ian| dz| mo|e m|awi|\u0107 s|gan|zez|mu |taw|dst|wi\u0105|w c|y p|kow|o j|i m|y s|bow|kog|by |j o|ier|mow|sza|b o|ju |yna",swh:"a k| ya|na |wa |ya | ku|a m| na| ha|i y| wa|a h|a n|ana|aki|ki |la |hak| ka|kwa|tu | kw| ma|li |a a|ila|i k| ki|ni |a w|ali|a u| an| mt|ke |mtu|a y|ake|ati|kil|ka |ika|kat|ili|te |ote|we |a s|e k|ia |zi |u a|za |azi|ifa|ma |yak|yo |i n|ama| yo|au | au|e a|kut|amb|o y|ha |asi|fa |u w|hal|ara|sha|ish|ata|ayo| as|tik|u k| za|i z|ina|u n|mba|uhu|hi |hur|cha|yot|ru |uru|wat| ch|eri|ngi|e y|u y|i a|aif|tai| sh|nay|chi|ra |ani| bi| uh|sa | hi|i h|awa|iwa|a j|ti |mu |o k|ja |kan|uli|iwe|any|i w| am|e n|end|atu|kaz|o h|ria|her|she|shi|nch| nc|uta|ye |wak|ii |ele|ami|adh|eza| wo|iki|oja|moj|jam| ja|aka|bu |kam|kul|mat|fan|a l|agu|ind|ne |iri|lim|wen|da |kup|uto|i m|a b|ini|wan|bil| ta|sta|dha| sa| ni|ao | hu|e w|wot| zi|rik|kuf|aji|ta |wez|nya|har| ye|e m|si |lin| ut|ine|gin|ing| la|a t|zim|imu|ima|tak|e b|uni|ibu|azo|kos|yan|nye|uba|ari|ahi|nde|asa|ri |ham|dhi|eli|hir|ush|pat| nd|kus|maa|di |nda|oa |bar|bo |mbo|oka|tok|ndw|ala|wal| si|uzi|hii|tah|i s|o n|liw| el|upa|zin|hag|a c|ndi|ais|mai|eny|mwe|aa |ewe| al|ndo|e h|lo |umi|kuh|jib|osa|mam|a z|ufu|dwa|u i| in|iyo|nyi| ny|u m|sil|ang|o w|guz|zwa|uwa|kuw|hil|saw|uch|ufa|laz|und|aha|ua | mw|bal| lo|o l|a i|del|nun|anu|nji| ba|lik|le |uku|i i",sun:"an |na |eun|ng | ka|ana| sa| di|ang|ung|un |nga|ak | ha|keu| ba|a b| an|nu |hak| bo|anu|ata|nan|a h|ina| je|aha|ga |ah |awa|jeu| na|ara|ing|oga|bog|gan| ng|asa|kan|a s|ha |ae |bae|n k|a k| pa|a p|sah|g s|sar| si|sin|a n|din|n s|ma | at|aga|a a|tan| ku| ma|n a|san|man|wa |lah|pan|taw|u d|ra |ari|eu | pi|gar| pe|kat| te|n p|sa |per|a d|a m|e b|aan|ban|ran|ala|ike|n n|kum| ti|ama|a j|pik|ima|n d|al |at | ja|ila|ta |nda|bas|rim|teu|n b|eba|beb|udu|aya|ika|ngg|nag|kab|rta|art| me|ola|k n|uma|atu|aba|g k|adi|aca| po|ngt|nar|una|ate|oh |boh|awe|di |tin|asi|uku|n h|dan|aka|iba|car|sac|gaw|are|ent|um |jen|abe|u s|dil|pol|ar |ku |kud|u m|upa|han| hu|ake|bar|ur |hna|aru|h s|a t|sak|wat|kaw| so|n t|pa |mpa|du |ngk|g d|ena|huk| mi|mas|ngs|ti |n j|ka |aku|ren|n m| ta|law|isa| tu|und|a u|h a|tay|ula|aja|ali|nte|gsa|en |gam| wa|ieu|ere|k h|jal|h b|il |dit|ngu|lan|asu|yun|ayu|gta|k d|a r|g n|mah|uda|dip|kas|rup|geu| be|ter|sej|min|ri |ern|u p|k k|amp|ura|kal|e a|k a|ut |g b|nak|bis| bi|k p|tes|end|we |h k|tun|uan| un| de|u n|h t|ksa|u k|ian|wil|u b|ona|nas|uka|rak|eje| se|ami| ke|war| ra| ie|k j|eh |ya |lma|alm|pen|tur|wan|lak|h j|g a|ean|up |rga|arg|r k|u t| ne|deu|gal|gke|e t|h p| ge|g t| da|i n",ron:" de|re | \xEEn|\u0219i |are|de | \u0219i|te |ul | sa|rep|e d|ea |ept|dre|tul|e a| dr|ie |\xEEn |ptu|le |ate|la |e p| la| pe|ori| pr|ce |e s| or|au |tat| ar|ice|ii |or |a s| fi| a |ric|ale|per| co|n\u0103 |\u0103 a|rea|ers|i s| li|sau| ca|rso|ent|lor|a\u021Bi|al |a d|e o|men|l l|ei |e c|pri|an\u0103| ac| re|uri|ber|ibe|lib|a p|oan|soa| in|i l|ter| al| s\u0103|tea|l\u0103 |car|t\u0103\u021B|s\u0103 |tur|i a|i d|nal| ni|ri |ita|e \xEE|e \u0219|se |ilo|in |ia |\u021Bie|pre|fie|\u021Bii|\u0103\u021Bi|con|ere|e f|a o|eni|nte| nu| se|ace|ire|ici| cu|i \xEE|a c|i n|a l|pen|ui |nu |\u0103ri|al\u0103|ona|l d|r\u0103 |ert|ril| su|ntr|n c|rin| as|ni |i o|eri|t\u0103 |c\u0103 |ile|\u0103 d|i c|e n|ele|sa | mo|i p|fi |sal|tor|va |oci|soc|nic|pro| un| tr|est|in\u021B|a \xEE|uni|n m|a a| di|ecu|lui|sta|lit| po|tre|gal|ega|oat|ra |act|\u0103 \xEE|leg|u d|e l|nde|int|a f|n a| so|na\u021B|ara|i f|uie|iun| to|tar|ste|ces|rar|at | ce|eme|i \u0219|rec|dep| c\u0103| o | \xEEm|bui|ebu|reb| eg| na|m\xE2n|ntu|ili|v\u0103\u021B|\xE2nd|iei|r \u0219|bil|pli|od |mod|res|din|e e|c\u021Bi| au|ali|\u0103 p|\u0103 f|\xEEmp|ial|cia|ion|\u0103 c|dec|nta| om|it\u0103| fa|\u021B\u0103 |cu |tra|\u0103\u021B\u0103|nv\u0103|\xEEnv|\xE2t |ite|i i|lic| pu| ex|riv|tri|rot|\u021Ba |\u021Bi |l c|rta|imi|ulu|\u021Bio|ic\u0103|lig|rel|ta |cla|t \xEE|nt |nit|e m|\xE2nt|\u0103m\xE2|\u021B\u0103m|ger|n\u021Ba|ru |tru|gur|u c|bli|abi|at\u0103|art|par|ar |rim|iva|l \u0219| sc|ime|nim|era|sup|ind|u a|dic|ic | st| va|ini|igi|e r",hau:"da | da|in |a k|ya |a d| ya|an |a a| ko| wa|na | a |sa | ha|kin|wan|ta | ba|a s| ta|a y|a h|wa |ko | na|n d|a t|ba |ma |n a| ma|iya|hak|asa| sa|ar |ata|yan| za|akk|a w|ama| ka|i d|iki|a m|owa|a b| ci| mu| sh|anc|nci|kow|a z|ai |nsa|a c|shi| \u0199a|cik|ne |ana|i k|ci |kki|e d|a \u0199| ku|su |n y|uma|ka |uwa|kum|hi |a n|utu| yi|ani| ga| ra|aka|ali|mut|\u2018ya|tar| do|\u0257an|ars| \u2018y|sam|\u0199as|nda|ane|man|tum|i a|yi |ni | du|ada| su|and|a g|cin| ad|a i|ke | \u0257a|n k|yin|um |e m| ab|ins|nan|ki |mi |ami|yar|min|oka|re |i b|kam|mas|i y|mat|za |ann|en |a\u0257a| ja|m n|li |duk|dai|e s|n s|ra |n w|n h|aik| ai|ida|ga |san|rsa|aba|sar|ce |nin| la|o n|ban|nna|kan|abi|una|dam|me |ara|i m|hal|a r|add|are|n j|abu| ne|zai|a \u0257|wat|ari| \u0199u|on |ans|wa\u0257|ame|ake|kar|din|zam| fa|a l|\u0199un|buw|r d| hu|oki|kok|a \u2018|u d|n t|abb|aur| id|rin|yak|dok|kiy|ray|jam|n b|ubu|bub|n m|i s| an|am |ili|bba|omi|dan|gam|ayu|ash|nce|tsa|ayi|har|yya|ika|bin|han|kko|rsu|aif|imi|fa | am|i i|dom| ki|yuw|dun|o a|fan|n \u0199|aya|fi |n r|she|uni|bay|riy|n \u2018|sab| iy|bat|tab|aga| ir|mar|o w|i w|sha|awa| ak|uns|unc|tun|u k| il|\u0257in|mfa|amf|aci|ewa|kas|lin|n n|don|n i|ure|ifi|lai|dda| ts|iri|aye|un |tan|wad|gwa|afi| ay|ace|mba|amb|aid|nta|ant|war|lim|kya| al|a\u0257i",fuv:"de | e |e n| ha|nde|la | wa|ina| ka|akk| nd|\u0257o |na | in|e e|hak|al |di |i h|kke|ii |um |ko |ala|ndi| mu| ne|lla| jo|wal|e\u0257\u0257|ne\u0257|all|mum| fo|kal|jog|ke |aaw|taa| ko|eed|\u0257\u0257o|aa | le|ji |ade|aad|laa|o k| ng|e h| ta|re |ogi|a j|e w|e m|nnd|gii|e l|ley|awa|aag|ede|waa|e k|gu |e d| go|gal|\u0253e |ti |fot|aan|eyd|ydi|\u0257e |ee | re|ol |oto|i e|oti|m e|taw|nga|a i|kee|to |ann|eji|am |ni | wo|een|goo|eej|e f| he|enn|gol|agu|pot| po|dee|ay | fa|ka |a k|ond|oot| de|a f|o f|a n|wa |maa|ota|le |hay|i k|o n|ngo|e j|o t| ja|\xF1aa|hee|nka|i w|awi|a w|ngu|der| to|e t|dim|i n|fof|i f|e g|tee|naa|aak| do|too|a e|ndo|ren|dii|oor|er |o e|i m|of | sa| so|gaa|ani|kam| ma| \xF1a|o w|i l|u m|kaa|ima|dir| ba|igg|lig| li|aar| \u0253e|o i|e s| o |e r|so |ooj| nj| la|won|awo|dow|woo|faw|and|e i|ore|nge|nan|are|a t|tin|aam| mo|\u0257ee|ita|ira|aa\u0257|e p|nng|ma |ank|yan|nda|oo |e \u0253|njo|ude|nee|e y|e a|je | ya|en |ine|iin| di|ral| na|\u0257i |und| hu|inn|\u014Bde|a\u014Bd|ja\u014B|a d|den| fe| te|go | su|a h|haa|tal|e\u0257e|e b|y g|baa|tde| yi|\u0257\u0257a|o h|ii\u0257|ow | da|do |l n|alt| ho|l e|aga|mii| aa|a a|ama|nna|m t| ke|edd|oga|m w|l m|o j|a\u0257e|ree|oje|yee| no|ele|ne |ago| pa| al|guu|wi |ge |aa\u0253|daa|ind|dew|i j|jey| je|ent|tan|o \u0257|ge\u0257| ge|\xF1ee|a l| \u0257u|kko|mak|a s| ga",bos:" pr| i |je |rav|na |ma |pra| na|ima| sv|a s|da |a p|vo |nje|ko |ako|anj|o i| po|avo|ja |e s|a i|ti | im| da| u |sva|no |ju | za|o n|va |i p|ili|vak|li | ko|ne | il|koj| ne|nja| dr|ost| sl|van|im |i s|u s|i i|a n|ava|ije|a u| bi|stv|se |a d|om |jed|bod|obo|lob|slo| se| ra|ih |sti| ob| je|pri|enj|dru|u i|o d|iti|voj|raz|ova|dje| os|e i|lo |e p| nj|uje|i d|bra|tre| tr| su|jeg|i n|u z|a k|og |u p|oje|cij|reb|a o|a b|lju|i u|ran|mij|ni |nos|jen|ba |edn|svo| iz|jel|pro|e d|\u017Eav|bit| ni|i o|sta|a z|avn|vje| ka|bil|ovo|a j|aju|ist|nih|tu |red|gov| od|e o|oji| sm|lje|o k|ilo|ji |aci|e u|e n|pre|o p|eba|u o|su |vim|i\u010Dn| sa|u n| dj|a t|ija|\u010Dno|jem|r\u017Ea|dr\u017E|elj|stu|dna|odn|eni|za |iva|olj|\u0161ti|nom|em |du |vno|smi|jer|e b|de |pos|m i| do|u d|nak|a r|obr| mo|lja|nim|ego| kr|tit|kri|ve |nju|an |iko|nik|nu |i m|nog|eno|sno| st|e k|tup|rug|ka |oda|riv|vol|aln|m s|itu|a\u0161t|za\u0161|ani|sam|akv|ovi|osn|rod|aro| mi|tva|dno|nst|jan|ak |ite|vi\u010D|rad|u m| ta|dst|tiv|nac|rim|kon|ku |odu|\u017Eiv|amo|tvo|tel|pod|g p|nov|ina|nar| vj|o s|i b|oj | ov|ave|vu |ans|oja|zov|azo|ude|bud| bu|e t|i v|din|edi|nic|tan|nap|mje| is|jal|slu|pun|eds|o o|zak|jav|i k|m p|tno|ivo|ere|ni\u010D|m n|jim|kak|ada|vni|ugi| ro|mov|ven|pol|to |te | vr",hrv:" pr| i |ma |rav|ima|pra|je |na | sv|ti | na|a p|vo |vat|ko |a s|nje| po|anj|avo|o i|tko| im|a i|sva|no |i p|e s|ja |o n| za|ju |ili| u |va |li | bi|ne |i s|atk| il|iti|da | ne| ko| dr| sl|van|nja|koj|ije| ra|ova| os|u s|i i|ost|bod|obo|lob|slo|pri|a n|om |jed|ati|ih |im |voj|ava| ob|stv|se | mo|i u|bit|dru| je| se|dje|i o|enj| ka|i n|sti|lo |u i|svo|mij|ni |e i|raz|a o|e n|bra|o p| su|a b|u p|ran|a k|og |i d|bil|ako|e p|a d|edn|aju|mor|eni| nj|iva|jel|\u017Eav| ni|a z|avn|ovi|eno|ra |oje|a j| da|a u|ora|jeg| iz|nih|r\u017Ea|dr\u017E|oji|sno|nit|jen|vje|ilo|cij|oda|nim| dj|pro|tit|u z|e d|red|nom|jem| od|nos|sta|nov|osn| sm|lje|o s|ji |ovo|stu|pos|vim| do|odn|rad|ist| sa|e o|tu |nju|em |gov|o d|rod|i m|jer|aci|oj |pre|m i|nak|dna|a r|lju|uje|e m|obr|za |olj|ve |o o|m s|an |nu |du |aro|vno|smi|aln|e k|o k|i b|e u|tva|u u|tup|rug|dno|u o|su |u d|ka |vol| ta|ija|itu|\u0161ti|a\u0161t|za\u0161|itk|\u017Eiv|ani|sam|elj| st|sob|oso|nar|akv|ada| mi|te |ona|nst|jan|lja|i v|ite|ego|elo|rim|ku |odu|amo|tvo|tel|jim|pod|nog|vi |ina| vj|to |e b|ans|zov|azo|ak | sk|edi|tan|oju|pun|pot|oti|kon|zak|i k|m p|tno|ivo|ere|ni\u010D|kak|vni|ugi| ro|mov|ven|\u0161tv| be|ara|kla|ave|u b|avi|oja|jal|u m|dni|mje|rak|din|\u0107i |ju\u010D|klj|nic|u k|nap|obi|atn",nld:"en |an |de | de| he|ing|cht| en|der|van| va|ng |een|et |ech| ge| ee|n e|rec| re|n v|n d|nde|ver| be|er |ede|den| op|het|n i| te|lij|gen|zij| zi|ht |ijk|eli| in|t o| ve|op |and|ten|ke |ijn|e v|jn |ied| on|eft| ie|sch|n z|n o|aan|ft |eid|te |oor| we|ond|eef|ere|hee|id |in |rde|n w|t r|aar|rij|ord|wor|ens|of | of|hei|n g| vr| vo| aa|r h|hte| wo|n h|al |nd |vri|e o|ren|le |or |n a|jke|lle|eni|n b|ij |e e|g v| st|ige|die|e g|men|nge|t h|e b| za|e s|om |t e|ati|wel|erk|sta|ers| al| om|n t|zal|dig| me|ste|voo|ter|gin|re |ege|ge |g e|bes|nat| na|eke|che|ig |gel|nie|nst|e a|nig|est|e w|erw|r d|end|ona|d v|jhe|ijh|d e|ele| di|ie | do|del|n n|at |it | da|tie|e r|elk|ich|jk |vol|ijd|tel|min|len|str|lin|n s|per|t d|han| zo|hap|cha|wet| to|ven| ni|aat|ion|tio|taa|lke|eze|met|ard|waa|uit|sti|e n|doo|pen|eve|el |toe|ale|ien|ach|st |ns | wa|eme|nin|e d|bij| gr|n m|p v|esc|t w|ont|ite|man|ema| ma|nal|g o|rin|hed|t a|t v|beg|all|ijs|wij|rwi|e h| bi|gro|p d|rmi|erm|her|oon| pe|eit|kin|t z|iet|iem|e i|gem|igi| an|d o|r e|ete|e m|js | hu|oep|g z|edi|arb|zen|tin|ron|daa|teg|g t|raf|tra|eri|soo|nsc|t b| er|lan| la|ern|ar |lit|zon|d z|ze |dez|eho|d m|tig|loo|mee|ger|ali|gev|ije|ezi|gez|nli|l v|tij|eer| ar",srp:" pr| i |rav|na |pra| na|ma | sv|ima|da |ja |a p|vo |je |ko |ti |avo| po|a i|ako|a s| za| u |ju |o i| im|nje|i p|va |sva|anj|vak| da|o n|nja|e s|ost| ko|a n|li |ili|ne |om | ne|i s| sl| il| dr|no |koj|u s|ava| ra|og |slo|im |enj|sti|bod|obo|lob|iti|a o|stv|i u|a d|ni |jed|u p|pri|edn| bi|i i|a k|o d|sta|ih |dru|a u| je| os| ni|nos|pro|aju|i o|ran| de| su|u i|se |van|ova|i d|cij| ob|uje|red|\u017Eav|e i|i n|voj|e p|a j|dna| se| od|ve | ka|eni|r\u017Ea|dr\u017E|a z|avn|aci|ovo|u u|m i|oja| iz|lja| nj|ija|u z|e o|rod|jen|lje|e b|raz|jan|lju|svo|za |gov|i\u010Dn| st|nov|sno|osn|du |ji |pre| tr|su |vu |odn|a b|jeg|nim|nih|tu |tit|\u0161ti|ku |nom|bit|e d|me |iko|\u010Dno|oji|lo |vno|nik|e n|\u0111en|ika|bez|ara|de |u o|vim|nak| sa|u n|riv|ave|an |olj|vol| kr|o p|sme|e k|nog| ov|e u|tva|bra|rug|reb|tre|u d|oda| mo| vr|vlj|avl|ego|jav|del|m s|kri|o k|a\u0161t|za\u0161|nju| sm|ani| li|dno|e\u0111u|aln|la |akv|oj |\u0161en|kom|stu|ugi|avi|a r|ka |rad|oju|tan|odi|vi\u010D|tav|itu|ude|bud| bu|pot|odu|\u017Eiv|ere|m n|tvo|ilo|bil|aro|ovi|por|eno|\u0161tv|nac|ove|m p|tup|pos|rem|dni|ba |nst|a t|ast|iva|e m|vre|nu |be\u0111|ist|pun|en |te |dst|rot|zak|ao |kao|i k|ju\u0107|o s|st |sam|ter|nar| me|i m|kol|e r|u\u0161t|ru\u0161|ver|kak| be|i b|kla|ada|eba|ena|ona| on|tvu|ans| do|rak|slu",ckb:" he| \xFB |\xEAn | bi| ma|na |in |maf| di|an |xwe| xw|ku | ku|kes| de| ji|her|kir|iya|ya |rin|iri|ji |bi |es | ne|ye |y\xEAn|e b|er |af\xEA|tin|ke | an|iy\xEA|eye|rke|erk|we | be|e h|de | we|hey|f\xEA |i b|y\xEA |ina| b\xEA| li|diy|ber|li |re |\xEE \xFB|n\xEA |\xEA d| se| ci|eke|di |w\xEE | na|\xEE y|af |ete|hem| w\xEE|sti| ki|r\xEE |k\xEE |\xEE a|yek|n d|kar| te|ne |y\xEE |i h|e k|t\xEE |t\xEA |a w|e d|\xEE b|s m|ast|n b|be |yan|ser|tew|net| tu| ew|hev|aza|ara|\xFB b|n k|adi|ev |zad| az|ras|est|an\xEA| ya|n h|n \xFB|wed| t\xEA|wek|bat|bo | bo| y\xEA|st |n n|\xEA k|dan|\xEA h|ema|\xEA b|iye|\xEE h|din|b\xFBn|r k|ek\xEE| me|par|\xFBna|ta |wle|ewl|\xEE m| ke|nav|ewe|man|\xEA t|d\xEE |\xFB m|m\xFB |em\xFB|a m|ika|e \xFB|n w|a x|\xEA m|e n| ta|ela|n j|ey\xEA|n x|civ|wey|ana| re|khe|ekh|bik|k\xEA |j\xEE |f h|er\xEE| pa|\xEEna|bin|erb|vak|iva|a s| ni|cih|v\xEA |e j|ari| p\xEA|\xEE d|n\xEAn|ike|e t|a k|\xEA x| ye|n a|ey\xEE|n e|ama|b\xEA |ar |ewa|at\xEA|bes|rbe|av |ibe|ist|m\xEE |tem|awa|are|h\xEE |geh|nge|ing|nek|n\xFBn|an\xFB|qan| qa|v\xEE |rti|uke|tuk| \u015Fe|eza| da|u d|\xFB a|f \xFB|edi| ra|tu |tiy|t\xEAn| mi|xeb| ge|h\xEEn| h\xEE|et\xEA|\xEE j|st\xEE|mal|bib|ra |i d|e m|mam|i a|nik|i m|\xEE k| wi|\xFBn | ko|a \u015F|\xEA j|riy|lat|wel|e e|ine|ane|\xFB h|\xEEn |a d|siy|end|aye| za|ija|a n|\xEE n|ek |tek|yet|mbe|emb|\xFB d|rov|iro|mir|eba| xe|m\xEAn| \xEAn| hu|n\xEEn|an\xEE|t \xFB|ten|n m|dem|\xEA \xFB|en\xEA|te |art|i r| j\xEE|u j|ek\xEA|dew",yor:" n\xED|ti |\u1ECD\u0301 |n\xED | l\xE1| \u1EB9\u0300|\xE0n |\u1EB9\u0301 |kan|t\xED | t\xED|an |\u1EB9\u0300 |t\u1ECD\u0301|\u1ECD\u0300 | \u1EB9n|\u1ECDn |w\u1ECDn|\xED \u1EB9|b\xED |\xE1ti|l\xE1t|\u0300t\u1ECD|\u1EB9\u0300t| gb| \xE0t| \xE0w|n l|\xE0ti| a |l\u1EB9\u0300|\u1EB9n\xEC| \xF3 |k\u1ECD\u0300| l\xF3|\xEC k|s\xED |\u1ECD\u0300k| k\u1ECD|ra |ni |\xE0b\xED|t\xE0b| t\xE0|n\xEC | s\xED|\u0300ka|\u1ECD\u0300\u1ECD|n \u1EB9|\xE0w\u1ECD|n t|\xF3 n|\u0300\u1ECD\u0300|\xEDl\u1EB9|or\xED|l\xF3 | w\u1ECD|t\xF3 |d\xE8 |\xECy\xE0|\xFAn | t\xF3| or|\xED \xEC|\xE8d\xE8|k\xF2 |\u2010\xE8d|\u0300\u2010\xE8|\u1EB9\u0300\u2010|r\xEDl|\xED \xF3|r\u1EB9\u0300|\xED \xE0| s\xEC|y\xE0n|gbo|\u1E63e | k\xF2|\xED a| r\u1EB9| j\u1EB9|s\xEC | b\xE1|r\xE0n| \u1E63e|w\u1ECD\u0301|n\xECy|f\xFAn| f\xFA|n \xE0|ba |n n|gb\xE0|gb\u1ECD|j\u1EB9\u0301|un |\xEC\xED | k\xED|gba|\xE8n\xEC| \xE8n|b\xE1 |\u0301 l|a k| ka|d\u1ECD\u0300|k\xED | \xF2m|in | fi|b\xF2 |fi |b\u1EB9\u0301|\u1ECDd\u1ECD|b\u1ECDd|\u0301 s|hun|n\xFA |n\xEDn|w\xE0 |ira|nir|\xF2m\xEC|\xECgb| \xECg|\u0301 t|\u1EB9ni|\xEDn\xFA|i l|\xECni|m\xECn|b\xE0 |\xE1\xE0 |i \xEC|ohu| oh|\xED i|ara| ti|bo |\xF2 l| p\xE9|r\xFA |\xEDr\xE0| \u1ECD\u0300|\xED \xF2|ogb|k\u1ECD\u0301|p\u1ECD\u0300|\xF3 b|\xE0 t|i n|l\u1ECD\u0301|\u1EB9\u0301n| \xECb|y\xEC\xED|gb\xE9|g\u1EB9\u0301|bog|\xF3\xF2 |y\xF3\xF2| y\xF3|n k|p\xE9 |d\xE1 |\u0301w\u1ECD|\u1ECD\u0301w|\xE0 l|\xED k| w\xE0|n o|j\u1ECD | ir|\u1ECD\u0300r|\xFA \xEC|\u0301 \xE0|\xF3 s|i t|\u1E63\u1EB9\u0301|\u0300k\u1ECD|\xED t|y\xE9 |l\xE8 | l\xE8|fin|\xE0b\xF2| l\u1ECD|\xE0 n|\xF9j\u1ECD|w\xF9j|ir\xFA|\xF3 j| ar|\xED w|a w| \xECm|\xFA \xE0|\u0300 t|\xF2fi| \xF2f| \xE0\xE0|f\u1EB9\u0301|\xE0w\xF9|\u0301ni|w\xF9 |\xEC\xEDr|m\xEC\xED| m\xEC|l\xE1\xEC| y\xEC|\xED g|\u1ECD\u0301n|n s|i \u1EB9|\u1EB9\u0300k|\xE0gb|\xEDgb|n\xEDg|a n| k\xFA|l\xE1\xE0|\xED o|n\xE1\xE0| n\xE1|k\u1EB9\u0301|\xEDpa|n\xEDp|\xECn | \xECk|b\xE9 |i g|\u1ECDm\u1ECD| \u1ECDm|i \xE0|i\u1E63\u1EB9|\u0300 \xE0|\xECm\u1ECD|n a|n f|j\u1EB9 |y\xED |\u0301 \u1ECD|\xF3 d|\u0301 \xF2| d\xE1| m\xFA|\xE0\xE0b|\xE1b\u1EB9|l\xE1b|\xECb\xE1|\xF2 g|j\xFA |i o|l\xFA | \xE8t|\u0300 \u1EB9|t\u1ECD\u0300|de |\u0300 n|i \xF2| \xECy|k\xE0n|\u0301n | b\xED| i\u1E63|m\u1ECD\u0300|e \u1EB9|\u0300 l| f\xE0|\xE8y\xED| \xE8y| \xECd|m\u1ECD\u0301|d\xE9 |\u0300 k|\u0301 p|\xF2 t|m\xFA | f\u1EB9| \xECj|r\xED |\xECk\u1EB9|n\xECk|\xECn\xED|n \xEC|n \xE8|s\xECn|\xE8 \u1EB9| i |r\u1ECD\u0300| \xE0n|\u0301 b|\xF9n |\u0301gb|\u1ECD\u0301g|d\u1ECD\u0301| d\u1ECD|\xED n|rin|\u0300 j",uzn:"ish|an |lar|ga |ir | bi|ar | va|da |iga| hu|va |bir|sh |uqu|quq|huq| ha|shi| bo|r b|gan|a e|ida| ta|ini|lis|adi|ng |dir|lik|iy |ili|o\u02BBl|har|ari| o\u02BB|uqi|ins|lan|hi |ing|dan|nin|kin| yo|son|nso| in| mu|on |qig| ma|ega|r i|bo\u02BB| eg|o\u02BBz|ni |gad|ash|i b|ki |oki|ila|yok|a b|n b|osh|ala|at |in |r h|erk| er|lga| qa|rki|h h| sh|i h|ara|n m| ba|nis|ik |igi|lig|bos|ri |qil|a t|bil|las|eti| et|n o|ani|nli|kla|i v|a q|a h|a o|yat| qo|im |a s|i m|iya|atl|oli|osi|siy|qla|cha|til| ol|ati|a y|mas|qar|inl|lat| qi|ta\u02BC|ham|gi |ib |\u02BBli|mla|h v|\u02BBz |hun|n e|mum| da| bu| to|un |mki|umk|sha|tla|ris|iro|ha |rch|bar|iri|oya|ali| be|i o|asi|aro| ke|i t|rla| te|arc|hda|shu|tis|n h|tga| sa| xa|rak|lin|ada|ola|imo|hqa|shq|li | tu|aml|lla|sid| as|nid|a i| ki|ch |n t|nda|k b|era|siz|or |hla|a m|r v|eng|ten|mat|mda|amd|lim|miy|y t|ayo|i a|ino|ilg|tni| is|ana|as |ema| em|ech|a a|tar|kat|aka|ak |rat| de|aza|ill| si| so|g\u02BBi|uql|n q|oda|\u02BCli|a\u02BCl|nik| ni|tda|uch|gin|a u|him|uni|sit|ay |qon| ja|atn|kim|h k|hec| he|\u02BBzi|lak|ker|ikl| ch|liy|lli|chi|ur |zar|shl|rig|irl|dam|koh|iko|a d|am |n v|rti|tib|yot|tal|chu| uc|sla|rin|sos|aso| un|na | ka|muh|dig|asl|lma|ra |bu |ush|xal|\u02BBlg|i k|ekl|r d|qat|aga|i q|oiy|mil| mi|qa |i s|jin",zlm:"an |ang| ke|ng | se| da|ada|ara|dan| pe|ran| be|ak |ber|hak|ata|ala|a s|ah |nya| me|da |per|n s|ya | di|kan|lah|n k|aan|gan|dal|pad|kep|a p|n d|erh|eba|nga|yan|rha| ya|nda|ora|tia|asa| ha|ama|epa| or|iap|ap |a b| at| ma|eti|ra |tau|n a|set|au | ba|pa | ad|n p|tan|p o|eng|a d|men|apa|h b|h d|dak|man|a a|ter| te|k k| sa|n b|ana|g a|end|leh|ole|a k|am |n y|aka|eh |lam|bas|beb|n m| un|pen|sa |keb|sam|n t| ti|ela|san|car|uan|ma |di |han|ega|ban|eri|at |sia|a m|ika|kes|ian|gar|seb|ta |mas|und|neg|nan|ngs|i d|erl|na |epe|emb|bar| la|atu|kla|pem|mem|emu|eca|sec|ngg|nny|any|bol|al |aha|gsa|ebe|ind|akl|n h|erk|ung|ena| bo|a t| ap|ers| de|in |tu |pun|as |agi|ann|g b|bag| ne|ain|hen| he|era|rat|sem| su|adi|lan|g s|dia|mat|ses|iad| ta|iha|g t|tin|k m|k h|i k|gi |i s|ing|uka|enu|den|lai|k d|ert|ti |rka|aja|rga|lua|ker|mel|dun|ndu|lin|rli|nak|ntu|esi|aya|un |uat|jua| in|rma|erm|ai |emp|kem|ri |dil|ua |uk |h m|l d|g m|mba|kat|ese|tik|ni |ini| an|mpu|ka |dar|mar|rja|erj|arg|u k|sua| ol|esa|dap|ar |g u|si |ent|g d| pu|awa|iri|dir|sal|gam|mbe|n i|har|a h|raa|ema|tar|i a|saa|ira|ari|pel|jar|laj|uju|tuj|rak|ura|uar|elu|t d|unt|il |wen|asi|gga|ipa|ksa|tuk|ula|sek|sas|ibu|rta|sep|rsa|nta|ati|ila|mua|yar",ibo:"a n|e n|ke | na| \u1ECD |na | b\u1EE5|\u1ECD b|nwe|nye|ere|re | n |ya |la | nk|ye | nw| ma|e \u1ECD| ya| ik|a o|a \u1ECD|ma |\u1EE5la|b\u1EE5l|ike| on|nke|e i|a m|ony|\u1EE5 n|kik|iki|b\u1EE5 | a |ka |wer|ta |i n|do |di | nd| ga|a a|e a|a i|he |kwa| ok| ob|e o|hi |any|ga\u2010|ha |d\u1EE5 | mm|ndi|\u1ECD n|wa |r\u1EE5 |e m|che|a e|oke|wu |aka|ite|o n|a g|odo|bod|obo| d\u1ECB| ez|ara|we | ih|a\u2010e|h\u1ECB |ri |n o|zi |mma|chi|d\u1ECB |ghi|\u1EE5ta|iri|ihe| an| oh|a y|gba|\u1EE5 \u1ECD| \u1ECDz| ak| iw|nya|te |iwu| nt|ro |oro|e \u1ECB|z\u1ECD |ezi|me |e e|u n|her|ohe| si|a\u2010a|i m|ala|\u1EE5 i| ka|akw| in|gh\u1ECB|kpe|n e|p\u1EE5t| e |i i|i o|ide|inw|\u1EE5 o|h\u1EE5 |ah\u1EE5|weg|ra |o i|kpa|ad\u1EE5|mad|si |sit|a s| me|sor|i \u1ECD|gid|edo|u o|e y|n a| en|tar|ozu|toz|bi |be |\u1EE5 m|\u1EE5r\u1EE5|\u1ECDr\u1EE5| \u1ECDr|mak|uso|ama|de |\u1ECB o| \u1ECDn|\u1ECDz\u1ECD|ch\u1ECB|egh|enw|ap\u1EE5|ru | to|i a|a \u1EE5|osi|r\u1ECB |wet|hed|nch| nc| eb| al|n\u1ECDd|\u1ECDn\u1ECD|uru|sir| kw|yer|ji |eny| mk|\u1ECBr\u1ECB|eta| us|tu |\u1ECD d|u \u1ECD| o |ba | mb|\u1ECDd\u1EE5|\u1ECBch| ch|a d|pa | ag|kwe| ha|a u|e s|mkp|n u|nta|ebe|n \u1ECD|o m|kwu|nkw|nwa|obi| \u1ECBk|esi|i e|nha| nh|le |ile|nil| ni|eme| og|e k|n i|ch\u1ECD|o y|as\u1ECB|otu| ot|ram|u m|\u1ECBgh|d\u1ECBg|zu |n\u1ECD |mba| gb|e g|\u1ECB m|\u1ECDch|ich|pe |agb|i \u1ECB|uch|z\u1EE5z|uny|wun|\u1ECDr\u1ECD| nn|na\u2010| di|ge |oge|iji| ij|\u1ECDha| \u1ECDh|ikp|egi|meg|o o|\u1EE5h\u1EE5|h\u1EE5h|mah|n \u1EE5|\u1ECD g|\u1ECDta|ek\u1ECD|\u1ECB n|kw\u1EE5|agh|\u1EE5m\u1EE5|ban|kpu|okp| ah|\u1ECBkp|a k|ime| im|z\u1EE5 |\u1EE5z\u1EE5|\u1ECDz\u1EE5| \u1EE5z|lit|ali|nat",ceb:"sa | sa|ng |ang| ka| pa|an |ga |nga| ma|pag| ng|on |a p|od |kat|ay | an|g m|a k|ug |ana| ug|ung|ata|ngo|atu|n s|ala|san|d s|tun|ag |a m|god|g s|a a|a s|g k|g p|yon|n u|ong|tag|usa|pan|ing|una|mat|g u|mga| mg|y k| us|ali|syo| o |aga|tan|iya|kin|dun|nay|man|nan|a i| na|ina|nsa|isa|bis|a b|adu| ad|n n| bi|asy|asa|lay|awa|lan|non|a n|nas|o s|al |agp|lin|nal|wal| wa|ili|was|gaw|han| iy| ki|nah|ban|nag|yan|ahi|n k|gan| gi|him| di|a u| ba| un|ini|ama|ya |kas|asu|n a|g a|gka|agk|kan|ags|agt|l n|a g|kag| ta|imo|uns|sam| su|g n|n o|gal|kal|og |taw|aho|uka|gpa|ipo|ika|o p|a t| og| si|gsa|g t|aba|ano|gla|y s|o a|aki|hat|kau|sud|gpi|a w|g i|aha|ot |ran|i s|n m|bal|lip|gon|ud | ga|li |uba|ig |ara|g d|na |kab|aka|gba|ngl|ayo| la| hu|a h|ati|d a|d n| pu| in|uga|ok |ihi|d u|ma |may|awo|agb|ami|say|apa|pod|uha|t n|agh|buh|ins|ad | ub| bu|at |iin|a d|ip |uta|sal|hon|wo |ho |tra|lak|iko|as |aod|bah|mo |aug|ona|dil|gik|sos|lih|pin| pi|k s|nin|oon|abu|la |rab|hun| ti|mah|tar|t s|ngb|uma|hin|bat|lao|mak|it | at|s s|sno|asn|ni |aan|ahu| hi|agi|n p|inu|ulo|y p| ni|iha|mag|o n|duk|edu| ed|a e|til|ura|tin|kip|agl|gay|g h|g b|ato|ghi|nab|kon|in |ter|o u|o o|yal|sya|osy| so|tik| re| tr|hig|a o|ha |but|pak|aya",tgl:"ng |ang| pa|an |sa | ka| sa|at | ma| ng|apa|ala|ata|g p|pan|pag|ay | an| na|ara| at|tan|a p|pat|n a| ba|ga |awa|rap|kar|g k|aya|lan|g m|n n|g b|nga|mga| mg|a k|na |ama|n s|a a|gan|yan|gka| ta|may|tao|agk|asa|man|aka|ao |y m|ana|g a|nan|aha|kan|y k|baw|kal|a m|g n|ing|wat| y |t t|pam|a n|o y|ban| la|ali|san|wal|mag| o |g i|aga|lay|any|g s|in |nya|yon|kas|a s|isa|una|ong|aan|kat|t p| wa|ina|tay|ya |on |o m|ila|ag |nta|t n|aba|ili| ay|o a| ga|no |a i|gal|ant|han|t s|kap|kak|lah|ari|agt|agp|ran|g l|lin|as |lal|gaw|ans|to |ito| it|hay|wa |t m| is|pap|mam|nsa|ahi|nag|bat|lip|gta| di|gay|gpa|pin| si|ngk|ung|aki|y n|iti|tat|ano|yaa|y s|mal|hat|kai|sal|hin|uma|mak|di |agi|pun|ihi|a l|i a|ira|gga|nah|s n|ap | ha|usa|nin|o p|gin|ipu|ika|ngi|i n|lag|la |y p|ini|g t|uka|nap| tu|a g|tas|aru|ipa| ip|li |al |n o|a o|t k|alo| pi|sin|syo|asy|ita|aho|nar|par|o s|pak|t a|uha|sas|gsa|ags|kin|a h|iba|lit|ula|o n|nak|a t| bu|duk|kab|sam|g e|ain|ami|mas|lab|ani|kil|it | al|agb|buh|a b|g g|ba | ib|iyo|ri |yag|ad | da|edu| ed|anl|ma |ais|iga|mba|tun|ipi| ki|od |ayu| li|lih|sar|gi |g w|pah|wir|oob|loo|agg|nli|bay|map|git|mil|ok |hon|ngg|sah|iya|pas|g h|agl|tar|ngu|amb|uku|ayo|s a|p n|n m|rus|i m|l a|abu| aa",hun:"en | sz| va| a |\xE9s |min|ek | \xE9s| mi|jog| jo|an |ind|nek|sze|s\xE1g|nde|a v|den|oga|sza|val|ga |m\xE9l|ala|em\xE9|gy |n a|van|zem|ele| me|egy|\xE9ly| eg|zab|t\xE1s| az|n s|bad|aba|ni |az |gye| el|ak | se|meg|sen|\xE9ny|s\xE9g|k j|yne|lyn| ne|ben|lam|tt |t a|et |agy|oz |hoz|vag|zet| te|n m|ez |nak|int|re |et\xE9|tet|mel|tel|s a|em |ely|let|hez| al|s s| ki|ete|at\xE1|z a| le|yen|es |ra |t\xE9s|ell|nt |sem|t s|len|nem|a s|ese|nki|enk|a m|\xE1s\xE1|i m|ban|kin|k m|szt| \xE1l|ame|k\xF6z|k a|ds\xE1|ads|l\xF3 | k\xF6|\xE1s |ly |on |\xE9be|tat|a t|n v|\xE1ll|m\xE9n| v\xE9|nye|k\xFCl|l\u0151 |a n| cs|i \xE9|ok |\xE9sz|\xE9rt|lla|lap|\xE1go|gok|nyi|tek| ke|nd |\xE9te|ami|z\xE9s|yes|szo|t m|a a|het|fel|lat|lem|lle|el |z e|s e|k \xE9|mbe|emb|el\xE9|ot |lis|vet|kor|\xE1g |olg| am|sz\xE1|ehe|leh|ogo|ott|\xFCl |nte|\xE9le|i v|ogy|hog| ho|kel|n k|tes|nl\u0151|enl|ss\xE1|\xE1za|h\xE1z|\xE9g |vel|\xE1ba|lek|\xE9ge| ha|a h|r\xE9s| fe|\xE1ny|del|el\u0151|\xE1t |al\xE1|art|tar|zto|z\xE1s|t\u0151 |yil|koz|tko|al\xF3|s k|i e|\xE1rs|t\xE1r|mze|emz| ny|m\xE1s|ett|ny |fej|ass|zas| h\xE1|d a|t \xE9|is |\xE9s\xE9|ez\xE9|t\xE9b| mu|\xE1so|s\xEDt|lye|elm|\xE9de|v\xE9d|ine|t k|os |it |izt|biz| bi|y a|m l|tot|a j|atk|n\xE9l|t n|ti | m\xE1|ai |l\xE1s|eve|nev|zte| b\xE1|sel|ll |al |ere|n e|unk|mun|t e| ak|ife|kif|ako|s \xE9| \xE9r|\xE1na| es|s t|got|s\xFCl| be|v\xE1l|csa|se |\xE9se|ad |ges|tos|ja | gy|asz|ten|lm\xE9| t\xE1|eze|\xE1rm|b\xE1r|ess|l s|\xFCle",azj:" v\u0259|v\u0259 |\u0259r |ir | h\u0259| bi| h\xFC| ol|\xFCqu|h\xFCq|quq|na |in |lar|h\u0259r|d\u0259 | \u015F\u0259|bir|l\u0259r|lik|mal|r b|lma|r h| t\u0259|\u0259xs|\u015F\u0259x|\u0259n |dir|uqu|una|an |ali|a m| ma|ikd|ini|r \u015F|d\u0259n|ar |il\u0259|qun|aq |as\u0131| ya|m\u0259k|y\u0259t| m\u0259| m\xFC|kdi|\u0259si|\u0259k |ilm|nin|nd\u0259|olm|\u0259ti|\u0259 y|sin|xs |nda|lm\u0259|yy\u0259|i v| qa| az|olu|iyy|ya |ind|zad|qla|\xFCn |ni |l\u0259 |tin|n m|aza|ar\u0131|\u0259t |n t|maq|lun|l\u0131q|\u0259 b|un |nun|q v|n h|dan|\u0131n | et|tm\u0259|\u0259r\u0259| \xF6z|da |\u0259 v| on|\u0259 a|\u0131na|\u0131n\u0131|bil|a b|s\u0131 |il |\u0259mi|ara|si | di|\u0259 m|\u0259ri|rl\u0259| va|\u0259 h|etm|\u0131\u011F\u0131|ama|dl\u0131|adl|rin|b\u0259r|r\u0131n|n i|m\xFCd|n\u0131n| he|mas|ik |n a|dil|al\u0131|irl|\u0259l\u0259|\xFCda|s\u0131n|\u0131nd|xsi|li |\u0259 d|n\u0259 | b\u0259|\u0259ya| in|\u0259 i|l\u0259t| s\u0259|n\u0131 | i\u015F|an\u0131|e\xE7 |he\xE7|q h|eyn|\u0259 e|d\u0131r| da|asi|r\u0131 |i\u015F |ifa|l\u0131\u011F|i s|fi\u0259|afi|daf| ed|m\u0259z|u v|kil| ha|ola|n v|\u0259ni|\u0131r |uq |unm| bu| as|sia|osi|sos|ili|\u0131d\u0131|l\u0131d|nma|\u0131q |in\u0259|\u0259ra|sil|xil|axi|dax|ad\u0259|man|a h|\u0259 o|onu|a q|\u0259z | ki|se\xE7| se|\u0131 h|min|lan|\u0259d\u0259|bu |raq|l\u0131 |\u0131l\u0131|al |\u0259 q|r v|nla|hsi|\u0259hs|t\u0259h|\xF6z |ist| is|m\u0259s| \u0259s|ina|\u0259 t|\u0259tl|a v|i\u0259 |n b|t\u0259r| ta| c\u0259|edi|ala|kim|qu |i t|ulm|m\u0259h|n o|aya|\u0131 o|ial| so|ill|siy| d\u0259|var|ins|mi |\u011F\u0131 |nik|r i|aql|k h|t\u0259m|tam|\xE7\xFCn|\xFC\xE7\xFC| \xFC\xE7|\u011F\u0131n|sas|\u0259sa|z h|\u0259m\u0259|zam| za|sti|r\u0259f|n e|r a|ild|h\u0259m|\u0131ql|yan|may|n \u0259|m\u0259n|mil| mi|\u0259qi|din|n d|t\xFCn| d\xF6|miy|kah|ika| ni|fad|tif|l o|s\u0259r|yni| ey|ana|l\u0259n|am |ril|ay\u0259|a\u015F\u0131",ces:" pr|n\xED | a | ne|pr\xE1|r\xE1v|na |ost| po|ho | sv|o n| na|vo |neb|\xE1vo|bo |ebo|nos|m\xE1 | m\xE1|a\u017Ed|ka\u017E| ka| ro|ch |d\xFD |\u017Ed\xFD|ti |ou |a s| p\u0159| za|\xE1n\xED|\xE1 p| je| v |svo|\xE9ho| st|\xFD m|sti|n\u011B | by|obo|vob|ter|pro|en\xED|bod| z\xE1| sp|\xED a|rod|kte|by |mu |u p|o p| n\xE1|v\xE1n|jak| ja|a p|o v|\xED n|ov\xE1|oli|v\xED |spo|roz| kt|mi |\xED p|ny | ma|\xEDm |i a|do | so|odn|\xE1ro|n\xE1r|li |n\xE9 |tv\xED|at |\xFDch|a z| vy|byl|vol|en |\xFDt |b\xFDt| b\xFD|t s|tn\xED|stn|o s|\xED b|to | do|sv\xE9|v\xE9 |ran|ejn|z\xE1k|eho|jeh|nes|p\u0159\xED|m\xED |\u010Din|kol|aj\xED|sou| v\u0161|\xEDch|it |n\xFDm|\xFDm |nu |hra|nou|u s|\xE9mu| k |du |\u017Een|pod| ze|kla|a v|stv|pol|dn\xED|er\xE9|m p|st\xE1|je |ci |e\u010Dn| ni|n\xE9h|a n|ak\xE9|\xE1va|maj|em |rov|\xED m|k\xE9 |ole|n\xFDc|ova| ve|ako| ta|i k|chr|och| oc|kon|i p|\xED v|sm\xED|esm|kdo|st |i n|o z|ave|odu|bez| to|sta|ech|j\xED |o d|sob|se | se|\xED s|\xFDmi|i s| i |i v| vz|n\xEDm|pra|ln\u011B|p\u0159i|t\xE1t|ste|a j|aby| ab| s |oln|a o|m n|\u010Den|slu|\u0159\xEDs| os|zem|mez| \u010Di|ln\xED|\xE1ln|oci|jin| ji|y b|\xED z|y s|va |v\u0161e|t v|ovn|chn|d\u011Bl|n\xEDc|le\u010D| pl|vat| vo|vin|rav|vou|lad|inn|\xE9 v|anu|tej|u k|stu|est| tr|ky |ikd|nik|ivo|nit|zen|u o|n\xE9m|nez|i\xE1l|\xEDho|len|ens|o\u017Ee|oko|k\xE9h|rac|ven|\xED k|e s|l\xE1n|\u011Bl\xE1|zd\u011B|vzd|t k|din|odi|t\xED | od|r\xE9 |tup|pov|pln|\u0161t\u011B|\xE1kl|nno|tak|er\xE1|\u0159ed|o a|a t|res|j\xEDc| mu|u z|rok| ob|\u010Dno|u a|y k|i j|\xE9 n|lu\u0161|\xEDsl|oso|ci\xE1|soc|n\xEDh|o j|ck\xE9",run:"ra |we |wa |e a| mu|a k|se | n | um| ku|ira|ash|tu |ntu|a i|mu |umu|mun|unt|ere|zwa|ege|ye |ora|teg|a n|a a|ing|ko | bi|sho|iri| ar| we|shi|aba|e n|ese|go |a m|o a|gu |uba|ngo|nga|hir| ca|ugu|obo|hob|za |ndi|ish|gih| at|ara|wes| kw|ger|ate|a b| ba| gu|e k|can|ama|ung|bor|u w|mwe|di | ab|nke|ke |kwi|ka |ank|yo |ezw|n u|na |iwe|e m|rez|ri |a g|gir| am|igi|e i|ro |a u|ngi|e b|ban| ak| in|ari|n i|hug|ihu|e u|riz|ang|nta| vy|ata| ub|and|aka|rwa| nt|kur|ta |iki|kan|iza|u b|ran|sha|o n|i n| ig|ivy| iv|ahi|bah|u n|ana| bu| as|aku|ga |uko|o u|ho | ka|ose|ubu|ako|guk|ite|o y|ba |i b|any|kir|o k|aho|iye|kub|amw|nye|aha| ng|o m|nya| it|re | im|o b|izw|kun|hin|e c|vyo|o i|vyi|ngu|uri|imi|imw|gin|ene|u m|zi |ha |kug|bur|uru|jwe| zi|u g|era|aga|ron|abi| y |e y| uk|gek|ani| gi|eye|ind|wo |u a|i a| ib|i i|ras|bat|gan|amb|n a|onk|rik|ne |ihe|agi|kor| ic|ze |tun|ibi|wub|nge|o z|tse|nka|he |rek|twa|gen|eko|mat|ber| ah|ni |ush|umw| bw|mak|bik|ury|yiw|bwo| nk|ma |no |kiz|uro|gis|aro|ika| ya|gus|y i|wir|ugi|uki| ki|a c|ryo|bir| ma| yi|iro|bwa|mur|eng|ukw|hat|tan|utu|wit|w i| mw|y a|mbe| ha|uza|ham|rah| is|irw|o v|umv|ura|eny|him|eka|bak|bun| ny|bo |yig|kuv|wab|key|eke|yer|vye|i y|ita|ya |a r| ko|kwa|o c",plt:"ny |na |ana| ny|a n|sy |y f|a a|aha|ra | ma|nan|n n|any|y n|a m|y m|y a| fi|an |tra|han|ara| fa| am|ka | ts| na|in |ami| mi|a t|olo|min|man|iza|lon| iz|fan| ol| ha| sy|aka|a i|reh|ay |ian|tsy|ina| ar|on |o a|etr|het|ona|y o|o h|zan|y t|a h|ala| hi|a f|y h|ehe|ira|a s|zo |y i|ndr|jo | jo|n j| an| az|ran|dia| dr|y s|fah|ena|ire|tan|dre| zo|mba| ka|m p|afa| di|n d|and|azo|zy |amp|ia |ren|iny|rah|y z|ry |ika|oan|ao |amb|lal|ho | ho|isy|ony|tsa|asa|a d|ha |fia|mis|ava|ray| pi|am |dra| to|rin| ta|ant|eo |zay|rai|tsi|itr|sa | fo| ra|van|ova|nen|azy| vo|mpi|ari|o f|tok|a k| ir|kan|oto|mah|ly |sia| la|n i|voa|haf|a r|ito|y k|oka|y r|y l|ano|ita|ene|its|ial|zon|aza|ain| re| as|fot|aro|fit|nat|nin|aly|har| ko|ham| no|fa |ary|atr|ila|ata|iha|nam|kon|oko| sa|elo|nja|anj|ive|isa|oa |dy |y d|o m|nto|ank|o n|otr|pan|fir|air|sir|ty |a v|sam|o s|tov|mit|rak|reo|o t|pia|tao| ao|no |y v|iar|a e|a z|hit|hoa| it|to |za |ton|eha|end|vy |idi|tin|ati|adi|lna|aln|rov|ban| za|nga|hah|oni|osi|sos|vah|ino|ity| at|hia|pir|ifa|omb|ame|era|vel|kar|va |tso|jak|fid|ifi|ais|o i|idy|la |ama|ba | pa|tot|ani|rar|mpa|haz|kam| eo| il|iva|aho|nao|n k|ato|lah|ovy| te|dro|lan|ela| mo| si|fin|miv|san|koa| he|aso| mb|sak|kav",qug:"ta | ka|ka |na |una|cha|ash|ari|a k|ana|pak|ish|ach|hka|shk|mi |kta|hay|man| ch|apa|ak |rin|ata|kun|har|akt|ita| ha|ami|lla| pa|ama|pas|shp| ma|tak|ay\xF1|y\xF1i|in |sh |ina|uku|nka|chi|aka|a c|yta|kuy|all|tap|a h|kan| tu|\xF1it|tuk| ru|run|chu|an |pay|ayt|ris| ki|aku|hpa|ank|a p|kam| sh|nam|a s|uy |i k|ayp|nak|pi |nta|a m| li|ay |lia|hin|kaw|nap|ant|tam|a t|iri|nat| wa|y r|kay|aws| ya|n t|ypa|wsa|pa |lak|shi|a a|lli|iku|hu |n k|iak|yay|kis| al|shu|a w|ipa| sa| il|api|kas|yku|yac|kat|a r|huk|i c|wan|hik|a i|ill|ush| ti|ayk|hpi| ku|kac|say|hun|uya|ila|ika|yuy|pir|ich|mac|ima|a y|yll|ayl|i p|kin|a l| wi|kus| yu|lan|tan|llu|kpi| ta| pi|aya|la |yan|awa| ni|kak|lat|rik|war|ull|kll|li |ink|nch|un |akp|n s|may| ay|uch|i s|nac|sha|iki|kik|h m|ukt|pip|tin|n p|iya|nal|aki| ri|ura|tik|mak|ypi|i m|i w|n m|his|k i|riy|iwa|y h| hu|han|akl|k t|mas|pik|kap| \xF1a|u t|nmi|nis|k a|i y|k l|kar| im|i i|wil|yma|aym|ksi|iks|uma| su|h k|has| ak|unk|huc|kir|anc|k m|pal|k k|ik |i\xF1i| i\xF1|ma |n y|mun| mu|mam|tac|a n|i t|k r|sam|ian|asi|k h|was|ywa|iyt|llp|san|sum|ray|si |pan|nki|tar| ii|u k|\xF1ik|uk |i\xF1a|kuk|wpa|awp|akk|a u|wat|uri| mi|yar|uyk|ayw|h c|ha |tay|rmi|arm|uta|las|yka|llk|kul|wi\xF1|ati|ska| ll|kit|n h|uti|kic|mat",mad:"an |eng|ng |ban| sa| ka|dha|ren| se| ba|ak | ha|adh|hak| dh|ang|se | pa|aba|a s|na |aga|ha | or|n s|ore|ara| ag|gad|are|ana|n o|ngg|ale|gan|a k|ala|dhu|tab|sar|ota|asa|eba| ot| ke|sab|ba |wi |uwi|abb|i h|huw|aan|n k|a b|bba| ta| ma|pan|hal|bas|ako|dhi|ra |kab|em |beb|ka |lak|gi |lem|g a|eka|n b|ama|nga|san|at |ong|ran|nge|a o|ggu|sa |a d|ane|n p|ken|par|aja|man|gar|ata|nek|apa| na|agi|abe| ga|e e|sal|a a|tan|g s|al |kal|gen|ta |i s|aka|e a|a p|a e| la| pe|nan| an|era|e d| e | be|n a| al|ena|uy |guy|n n|ate| bi|mas|e k|kat|uan|oan|kon|k k|a m|i d|g e|n t|g k|ada|koa|lan|ela| da|bad|ma |ne |as |lab|ega| mo|ar |car|one|i p|bi |kaa|bat|ri |on |pon| so|e b|le |ah |abi|ase|adi|epa| ep|k h|and|pam|te |ok |ste|aon|om |oko|aha|ari|ona|asi|ter| di|di |pad|e s|sad|yar|neg|ton|set|rga|ost|mos|gap|nda|a l|har|i k|ina| a | ng|kom|isa|si |a t|a h| kl|jan|daj|iga|hig|idh|hid|ndh|n m|ngs|tto|ett|arg|la |k b|ler|k d|nna| to|nao|n d|mat| ca|tad|bis|aya|epo|aen| po|bin|nya|kas|k s|n h|sya|nta|gsa|en |ant|n g|kar|i e|das|e t|e p|iba| pr|g p| ho| el|i a|hi |os |sao|uwa|tes| ja|nag|nas|lae|sia|t s|k o|nto|int|yat|arn|m p|duw|adu|eta| ko|i b|ni |g n|kla|rak|ame|mpo|jua|sok|aso|ggi|eja|pel|jam|ele| et|dil",nya:"ali|ndi|a m|a k| nd|wa |na | al|yen| ku|nth|ra |di |se |nse| mu|a n|thu|hu |nga| wa|la |mun|u a|unt|iye| ka|ce |ace| lo|a l|ang|e a| la| pa|liy|a u|ens| ma|idw|ons|dwa|e m|i n|ala|kha|lo |li |ira|era|ene|ga |ana|za |o m| mo|yo |o w| ci|we |dzi|ko |o l|and|dan|hal|zik|chi|oyo|pa |ner|ulu|ena|moy| um|a p| da|ape|kap|ka |iko| an|pen|a c|to |ito|hit|nch| nc|iri|lir|wac|umo|e k|lu |a a|aye| dz|kuk|a z|dwe|tha|mal| za|ing|ufu|mu |ro |ful| uf|o c|i d|lin|e l|zo |edw| zo|o a|mwa|u w|iro|o n|lan|amu|ere| mw|nzi|dza|alo|ri | li|fun|lid|gan|so | ca|kul|ofu|nso|o z|ulo|unz|o k|mul|lam|i c|san|a b|kwa| na|a d| a |una|u k|i l|nkh|ant|aku|ca |cit|oli|ipo|dip|ama|lac|wir|han|yan|osa|uli|tsa|i m|pon|kup|u d|ti |gwi|ukh|ung|hun|lon|ank|nda|iki|ina| ko|ao |diz|phu|ati|oma|i a|tsi|pat|iya|siy|kut| ya|zid|eze|ma |i k|mer|ome|mol|u n|u o|aph|ogw|izo|mba|sid|ku |sam|awi|adz| ad|izi|ula|say|e n|khu| kh|rez|vom|bvo|okh|lok|win|akh|o o| am| on|zir|map| zi|eza|ja |go |ngo|ika|its|ats|osi|gwe| co|isa|ya |haw|ani|o p|zi |ndu|kho|ezo|kir|uni|i u| ay|lal|gal|sa |bom| bo|ola|amb|wak|ha |ba |nja|anj|ban| ba|iza| bu|udz|ngw|bun|oye|o d|nal|kus|i p|i o|i y|wi | nt|e p| si|aka|ne |men|jir|nji|sed|ets|end|eka|uma|du ",zyb:"bou|iz |aeu|enz|eng|uz | bo|ih |oux|nz | di|ing|z g|ux |uq |dih|ngh| ca|ng |gen|ung|z c| mi|miz|ij |cae|z d| gi| de| ge|euq|you| ci|ngz|ouj|aen|uj | yi|ien|gya| gu|ngj|mbo| mb|zli|dae|gij|cin|ang|j d|nae| se| ba|z y|euz| cu|de |x m|oz |j g|ouz|x b|li |z b|h g| da| yo|nj |xna|oxn|rox| ro|h c|nzl|vei|yau|wz |z m|ix | si|i c|iq |gh |j b| cw|nda|yin| hi| nd|dan|vun|inh| ga|can|ei |cun|yie|q g|hoz|bau| li| gy|wyo|cwy|z h|gue|gz |gun|faz|unz|yen|uh |den|ciz| go|q c|gj | bi|ej |aej| fa|hin|zci| wn|j n|goz|gai|au |z s|q d| vu|h m|gva|hu |auj|ouq|az |h d|ya |uek|ci |nh |u d|ou |sou|jso|gjs|din|awz|enj| do|h s|eve|sev|z r|nq |sin|nhy|g g|g b|liz|kgy|ekg|sen|eix|wng|lij|ngq|bin|i d|ghc| ha|bae|hix|h y|j c|ghg|i b|ouh|en |n d|h f|j s|z v|j y|law|hci|anh|inz|q y|nei|anj|ozc|ez |enh|q s|aiq|uen|zsi|zda|hye|ujc|e c|siz|eiz|anz|g y|i g|q n|bie| ne| ae|giz|u c|hgy|g d|gda|ngd|cou| la|z l|auy|ai |in |iuz|zdi|jhu|ujh|yuz| du|j m| fu|cuz|eiq|g c|gzd| co|uyu|coz|zbi|biu| dw|i s|i n|aw |dun|yun|izy|daw| he|nho| ho|enq|x l|cie|q b|cij|uzl|x d|iuj|awj| ya|eij|dei|nde|sae|izc|wnq|wnh|sei|h b|aih|gzs|bwn|a d|u g|ngg|jca|e b|ran| ra|hcu| me|iet|van| bu|guh|hen|si |wnj| ve|u b|azl|inj|gak|gan|ozg|siu|yaw|i m",kin:"ra | ku|se | mu|a k|ntu|tu |nga|umu|ye | um|unt|mun|e n| gu|we |ira|a n| n |wa |ere|mu |ko |gom|a b|e a| ab|li |e k|mba|a a|e b|aba|ga |e u|ba |omb|o k| ba|a u|ose|u b|o a| cy|ash|eng| ag|kwi| bu|za |gih|ren|ndi| ub|ang|yo |aka|gu |igi| ib|a g|a m| nt|uli|o b|ama|ihu|e i|nta| ak|ago|ro |ora| ka|ugu|hug|di |iye|ban| am|cya|ku |ta | bw|and|sha|re | ig|gan|ubu|na | kw|obo| by| bi|a i|yan|ka |sho|kub|era|ese| we|kan|aga|hob|bor|ana|byo|ura|uru|ibi|rwa|wes|u w|no |uko|i m|mo |u a|ure|ili|uba|o n|uha|uga|n a| im|ish|bwa|bwo|wiy|ali|ber|ze |ne |ush|are|o i|u m|ger|bur|ran| ki| no|ane|bye| y |ege|teg|guh| uk|n i|rag|i a|ya |u g|e m|anz|bo |abo|gar|wo |y i|ho |age|ind|o m|eke|a s|ara|zir|ite|kug|kim|aci| as|u n|ani|kir|mbe| gi|yos|kur|ugo|gir|e c|iza|aho|i b|tur|ata|o u| se|u u|zo |i i|aha|nge|mwe|iro|akw|any|eza|uki|imi|o y|ate|u k|iki|atu|bat| in|go |tan|n u|bos| bo| na|hak|iby| at|ihe|ung|ha |bul|kar|eye|eko|gek|nya|o g|shy|e y|awe|ngo|bit|mul|nzi|rer|bag|ge |imw|bah|cir|gac|bak|je |gez|imu|eze|tse|ets|mat| ru|irw|he | ni| ur| yi|ako|ngi| ng|i n|rez|ubi|gus|fit|afi|ugi|uka|amb|o c|utu|ufa|ruk|mug|bas|bis|uku|hin|e g|ige|amo|ing| af|yem|ni | ry|a r|gaz|te |erw|bwe|ubw|hwa|iko| al|ant|zi ",zul:"nge|oku| ng|a n|lo |ung|nga|la |le | no|elo|lun| um|e n|wa |we |gel|e u|ele|nel|thi|ke |nom|ezi|ma |ntu|oma|hi |o n|ngo|tu |nke|onk|o l|uth|ni |a u|lek|unt| wo|o e| lo|mun|umu|pha| ku|ang|ho |kwe|ulu| ne|won|une|lul|elu| un|a i|gok|kul|ath|hla|lok|khe|eni|tho|ela|zwe|akh|kel|a k|enz|ana|ban|aka|u u|ing|ule|elw|kho|uku|ala|lwa|gen| uk|wen|ama|na |e k|ko |gan|a e|he |zin|enk|o y| ez|kat| kw|lan|eth|het|o o| ok|okw|i n|nzi|aba|e a|hak|lel|lwe|eko|ane|ka |so |yo |ayo|o a|uhl|nku|nye| na|thu|mph|do |ben|ise|kut|ike|kun| is| im|hol|obu|fan|i k|e w|nhl|nok|ini|and|kuh|ukh|kuk| ak|e i|isi|aph|zi |ile|eki|ekh| ba|eka|the|a a| le| ye|kwa|e e|fut| fu|za |mal| ab|ebe|isa| em|o w|kub|mth|i w|ndl|emp|any|olo|ga | ko|nen|nis|alu|ith|eli|ndo|seb|nda| ya|i i|eke|vik|ake|uba|abe|ezw|yok|ba |ale|zo |olu|ume|ye |esi|kil|khu|yen|emi|nez|hlo|a l|ase|ula|kek|a o|iph|o u|no |azw|kan|mel|uny|ne |ufa|ahl|lin|hul|ant|und|sa |enh|kus|kuv|lak| in|o i|din|kom|amb|zis|ind|ola|uph|wez|eng|yez|phe|phi|mba|nya|han|kuf|nem|isw|ani|iyo| iy|fun| yo|uvi|i a|ene|izi| el|cal|i e|eze|ano|nay|hwe|kup|lal|uyo|ubu|kol|oko|ulo| la|e l|tha|nan|mfu|hon|nza|hin| ey|omp|da |bo |ilu|wak|lon|iso|kug|nka|ink|i l|sek|eku| ek|thw|gez",swe:"ar |er |tt |ch |och| oc|ing|\xE4tt|ill|r\xE4t|en | ti|til|f\xF6r|ll | r\xE4|nde| f\xF6|var|et |and| en|ell| ha|om |het|lle|lig|de |nin| de|ng | in| fr|as |ler| el|gen|nva|und|att|env|r h| i |r r|ska|fri| so|har|der| at|\xF6r |ter|all|t t| ut|den|ka |lla|som|av |sam|ghe|ga | sk| vi| av|ete|la |ens|t a| si|r s|iga|igh|tig| va|ig |a s| st|ion|ra |tti|a o| \xE4r|ten|ns |t e|na | be|han| un| an| sa|a f| la| gr| m\xE5|nge|n s|vis|lan|m\xE5 |ati|nat| \xE5t|an |nna| li| al|t f|ans|nsk|sni|gru|\xE4ll|tio|ad | me|isk|kli|s f|t i|st\xE4|t s|ri |med|sta|h r|lik|da |dig|ta |r o|run|on | re|lag|tta|\xE4r |kap|a i|a r|\xE4nd|erv|n e|kte|n f|rvi|nom|itt|id | mo|sky|r e|ver|\xE4ns|vil|gt |igt| na|tan|uta|dra|t o|ro |isn| fa|kal|ihe|rih|erk|r u|e s|per|l v|vid|one|rel|ber|ran|ot |mot|ndl|d f|ed |ika|m\xE4n|l s|bet|t b|dd |ydd|kyd|n o|s s|str|n m|tet|sin|r f| om|rna|int|r i|end|nad|l a|ap |ers|nda|t v|ent|rbe|arb| h\xE4|ets|h\xE4l|amh|ckl|gar|nga|r m|je |rje|arj|n i|s e|lin|r t|i s|r\xE4n| pe|ilk|t l|ern|p\xE5 | p\xE5|t\xE4l|d e|dom|ege|g e|tni|r a|lit|ras| s\xE5|lln|kil|ski|enn|i o|a d|er\xE4|n a|ara| ge|\xE4ro|a m| ar|t d|ilj|els|yck| ve|g o|fr\xE5|nas|tra|ess|del|m s|liv|l l|in |v s|g a|ast|e e|val|son|rso|e t|age|nd | eg|ial|cia|oci|soc|upp|igi|eli|g s|rkl|gad|ndr|nte|\xF6ra",lin:"na | na| ya|ya |a m| mo|to | ko|li |a b| li|o n| bo|i n|a y|a n|ki |a l|kok|la | ma|zal|i y|oki| pe|ngo|ali|pe |so |nso|oto|ons| ba|ala|mot|a k|eng|nyo|eko|o e|nge|yon| ny|kol|lik|iko|a e|o y|ang|ye | ye|oko|ma |o a|go | ek|ko |e m|aza|te |olo|sal|ama|si | az|mak|e b|lo | te|ta |isa|ako|amb|sen|ong|e n|ela|oyo|i k|ani| es|o m|ni |osa| to|ban|bat|a t|mba|ing|yo | oy|eli|a p|mbo|o p|mi | mi| nd|ba |i m|bok|i p|isi|mok|lis|nga|ge |nde|koz|bo |gel|ato|o t|mos|aka|oba|ese|lam|kop| ez|lon|den|omb|o b|ota|sa |ga |e a|e y|eza|kos|lin|esa|e e|kob|e k|sam|kot|kan|bot|ika|ngi|kam|ka | po|gom|oli|ope|yan|elo| lo|ata| el|bon|oka|po |bik|ate| bi|a s|i t|i b|omi|pes|wa | se|oza|lok|bom|oke|som|zwa|mis|i e|bek|iki| at|ola|ti |ozw|lib|o l|osu|oso|e t|nda|ase|ele|kel|omo|bos|su |usu|sus|bal|i l|ami|o o|bak| nz|pon|tel|mob|mu | ep|nza|asi|mbi|ati|kat|le |gi |ana|oti|ndi|tan|a o|wan|obe|kum|nya|mab|bis|nis|opo|tal|mat| ka|bol|and|aye|baz|u y|eta| ta|ne |ene|emb|sem|e l|gis|ben| ak| en|mal|obo|gob|ike|se |ibo|\u2019te| \u2019t|umb| so|mik|oku|be |mbe|bi |i a|eni|i o| mb|tey|san| et|abo|ebe|geb|eba|yeb|bu | as|ote|sik|ema|eya|ibe|mib|ai |pai|mwa|kes|da |may|boz|amu|a a|kom|mel|ona|ebi|ia |ina|tin| ti|bwa|sol|son",som:" ka|ka |ay |uu |an |yo |oo |aan|aha| wa|da | qo| in| u |sha| xa|a i|ada|iyo| iy|ma |ama| ah| la|qof|aa |hay|ga |a a|a w|ah | dh|a s| da|in |xaq| oo|a d|aad|yah|eey| le|isa|lee|u l|q u|aq | si|taa|eya|ast|la |of |iya|sa |y i|u x|sta|kas|xuu|uxu|wux| wu|iis|nuu|inu|ro | am| ma|a q|wax|dha|ala|kal|nay|f k|a k|le |ku | ku| sh|o i|a l|ta |maa|a u|dii|loo| lo|o a|ale|ara|ana|iga|o d| uu|ha |lo |o m|o x|doo|aro|kar|yaa|gu |si |ima|na | xo| fa|adk|do |a x|ad |aas| qa| so|a o| ba|lag| aa| he|dka|adi|soo|o k|aqa| is|ash|u d|had| ga|eed|san|u k|a m|iin|i k| ca|u s|n l|yad|rka|axa|elo|hel|aga|hii|o h|o q| ha|id |n k| mi|baa| xu|har|xor|aar|ax |mad|add|nta|mid|aal|waa|haa|ina|qaa|daa|agu|ark|o w|nka|u h|dad|ihi| bu| ho|naa|n a|ays|haq|a h|o l| gu|o s|aya|saa|lka| ee| sa|dda|ab |nim|quu|gga|ank|kii|rci|arc|n s|a g| ji|gel| ge|eli|ysa|a f|siy|int|laa|uuq|uqu|xuq| mu|i a|uur|mar|ra |iri|o u| ci|riy|ya |ado|alk|dal|ee |al |rri|ayn|asa| di|ooc|aam|ofk|oon|to |ayo|dar| xi|dhi|jee|a c| ay|yih|a j|ban|caa|lad|sho|d k|ida|uqd|agg|sag|ras|bar|ar | ko| ra|o f|gaa|gal|fal|u a| de| ya|o c|ii |xay|eel|aab|sig|aba|orr|hoo|u q|y d|ed |ho |sad|qda|h q|fka|n i|xag|n x|qay|lsh|uls|bul|u w|jin| do|raa| ug|ido|ood",hms:"ang|gd |ngd|ib | na|nan|ex | ji|eb |id |d n|b n|ud | li|nl |ad | le|jid|leb|l l| ga|ot | me|x n|anl|aot|mex|d g|b l|d d|ob |gs |ngs|jan| ne|ul | ni|nja| nj|lib|ong|nd | zh|jex| je|b j| sh|ngb| gh|gb | gu|gao|l n|han| ad|gan| da|t n| wu|il |x g|nb |b m| nh|she|is |l j|d l|nha|l g|d j|b g|el |end|wud|nex|gho|d s|d z|oul|hob|ub |nis| ch| ya|it |b y|eib| gi|s g|lie| yo| zi|oud|s j|d b|nx | de|es |d y| hu|uel|gue|ies|aob|you| ba|d m|chu|gia|dao|b d|s n|zib| go|zha|eit|hei|al |hud| do|nt |ol | fa|t g|hen|ut |gx |ngx|ab |fal|x j|b z|ian|d h|don|b w|t j|iad|nen| xi|gou|d c|b h|hao|x z|nib|anx|ant|gua| mi|s z|dan|ox |inl|hib|lil|uan|and| xa|b x| se|x m|uib|hui|d x|anb|enl| we|od |enb| du|at |ix |s m|bao| ho|hub| ng|zhi|jil|l s|yad|t m|t l|yan| ze| ju|heb|had|os |aos|t h|l d|nga| he|b a|xan|b s|sen|xin|dud|jul|d a|lou| lo|dei|d w| bi|b c| di|zhe|gt |ngt|x l|bad|x b| ja|hon|zho|blo| bl|d k| ma|deb|l z|wei| yi| qi|b b|x d|d p|eud| ge|x a|can| ca|t w|lol| si|hol|s w|aod|pao| pa|ren| re|x s|eut|pud| pu|aox|mis|gl |ngl|x w|zei|gon|enx|gha|s a|b f|l y|oub|eab|hea| to|did| ko|unb|ghu|t p|x c|geu|t s|x x|jao|ed |t c|l m|l h|jib|ax |l c|d f|nia| pi|eul|d r| no|min|l t|heu|ux |tou|ns |s y|iel|s l|hun",hnj:"it | zh| ni|ab |at |ang| sh|nit| do|uat|os |ax |ox |ol |nx |ob | nd|t d|zhi|nf |x n|if |uax| mu|d n|tab| ta| cu|mua|cua|as |ad |ef |uf |id |dos|gd |ngd|hit|ib |us |enx|f n|she|s d|t l|nb |ux |x z|ed |inf|b n|l n|t n|aob|b z| lo|ong|ix |dol| go|zhe|f g| ho| yi|t z|d z|b d| le|euf|d s|ut |yao| yo| zi|gb |ngb|ndo|enb|len| dr|zha|uab|dro|hox| ge|nen| ne|han| ja|das|x d|x c|x j|f z|shi|f h|il | da|oux|nda|s n|nd |s z|b g| ny|heu| de|gf |ngf| du|od |gox| na|uad| gu|inx|b c| ya|uef| xa| ji|ous| ua| hu|xan|hen|zhu|nil|jai|rou|t g|f d| la|enf|ged|ik | bu|nya|you|f y|lob|af |bua|uk |is |yin|out|of |l m|ud |hua| qi|ot |t s| ba|ait| kh|s s|nad| di|aib|x l|lol| id|dou|ex |aod|bao| re| ga|d d|b y|las|hed|b h|b s|f b|t y|jua| ju| dl|x s|hue|b l| xi|zif|dus|b b|x g|hif|x y|hai| nz|sha| li|x t| be|d j|und|hun|ren|d y|hef|xin| ib|b t|l d|aos|s l| ha|gai|nzh|gx |ngx| ao|s b|s x|el |gt |ngt|hik|aid|s t|x m|f l|f t| pi|aof|t r|eb | gh|s y|d l|gua| bi| za| fu|t h| zu|hou|deu|lb | lb|d g| mo|b k| bo|iao|ros|gon|eut|x h|al |uaf|hab|t t|k n|f x|hix|pin|yua| no|t b|ak | zo|s m| nb| we|d b|gha|f s|mol|euk|dax|l b|nof| ko|lou|guk|end|uas|t k|dis|dan|yol|uan|d t|x b|lan|t m| ch|jix|x x| hl|aox|zis|x i|et | ro",ilo:"ti |iti|an |nga|ga | ng| it| pa|en | ma| ka| a | ke| ti|ana|pan|ken|ang|a n|agi|a k|n a|gan|a m|a a|lin|ali|aya|man|int|teg|n t|i p|nte| na|awa|a p|na |kal|ng |dag|git|ega|sa |da |add|way|n i|n n|no |ysa|al |dda|n k|ada|aba|nag|nna|ngg|eys| me|a i|i a|mey|ann|pag|wen|i k|gal|gga| tu|enn| da| sa|nno| we|ung| ad|tun|mai| ba|l m| ag|ya |i s|i n|yan|nan|ata|nak| si|aka|kad|aan|kas|asa|wan|ami|aki|ay |li |i m|apa|yaw|a t|mak| an|i t|g k|a s|ina|eng|ala|ika|ama|ong|ara|ili|dad| aw|gpa|nai|et |yon|ani|aik|on |at |oma|sin|bal|ipa|n d|uma|g i|ket|ag |in |aen|n p|ram|sab|aga|nom|ino|lya|ily|syo|i b| ki|nia|agp|gim|kab|asi|kin|iam|ags|bab|oy |toy|n m|agt| ta|bag|sia|g a|gil|mil| um|o p|ngi|n w|i i|pad|pap|daa|iwa|naa|eg |ias|ed |nat|bae|o k|saa|san|pam|gsa|ta |kit|ma |dum|yto|tan|i e|t n|uka|t k|apu|lan|sta|sal| li|a b|ari|g n|den|mid|ad |o i|y a|ida|ar |aar|y n|dey| de| wa|a d|ak |bia|ao |tao|min|asy|mon|imo| gi|maa|sap|abi|i u|aib|kni|i l|gin|ged|o a| ar|kap|pul|eyt|abs|ibi| am|akn|i g|kip|isu|g t|bas|nay|ing|i d|kar|ban|iba|nib|t i|as |d n|y i|ura|a w|nal|aad|i w|lak|adu|kai|bsa|duk|edu| ed|may|agb|agk|tra|gge|sol|aso|agr|ngs|ian|ila|dde|edd|tal|aip|kua|umi|pay|sas|ita|pak|g d|ulo|inn|aw "},Cyrillic:{rus:" \u043F\u0440| \u0438 |\u0440\u0430\u0432| \u043D\u0430|\u043F\u0440\u0430|\u0441\u0442\u0432|\u0433\u043E |\u0435\u043D\u0438|\u0432\u043E |\u043E\u0432\u0435| \u043A\u0430|\u043D\u0430 |\u0442\u044C | \u043F\u043E|\u0438\u044F |\u043E \u043D| \u043E\u0431|\u0435\u0442 | \u0432 |\u0441\u0432\u043E| \u0441\u0432|\u0430\u0432\u043E|\u0430\u043D\u0438|\u043E\u0441\u0442|\u043E\u0433\u043E|\u044B\u0439 |\u0430\u0436\u0434|\u043B\u043E\u0432|\u0442 \u043F| \u0438\u043C|\u043D\u0438\u044F| \u0447\u0435| \u0441\u043E|\u0435\u043B\u043E|\u0438\u043C\u0435| \u043D\u0435|\u043B\u044C\u043D|\u043B\u0438 |\u0447\u0435\u043B|\u043A\u0430\u0436|\u0435\u0441\u0442|\u0432\u0435\u043A|\u0430\u0442\u044C|\u043E\u0432\u0430|\u0438\u043B\u0438| \u0440\u0430|\u0435\u043A |\u0439 \u0447|\u0434\u044B\u0439|\u0436\u0434\u044B| \u0434\u043E|\u0438\u0435 |\u0435\u0435\u0442|\u043C\u0435\u0435|\u043D\u043E | \u0438\u043B|\u0438\u0438 |\u0441\u044F |\u0435\u0433\u043E|\u043E\u0431\u043E|\u0438 \u043F|\u043D\u0438\u0435|\u043A \u0438| \u0431\u044B|\u0438 \u0441|\u0438 \u0438|\u043C\u0438 |\u0431\u043E\u0434|\u0432\u043E\u0431|\u0432\u0430\u043D| \u0437\u0430|\u043E\u0439 |\u044B\u0445 |\u043E\u043C |\u043B\u0435\u043D|\u0430\u0446\u0438|\u0435\u043D\u043D|\u043E \u0441|\u043E \u043F|\u044C\u043D\u043E|\u0442\u0432\u0430|\u0442\u0432\u043E|\u043F\u0440\u0438|\u043D\u043E\u0433|\u0430\u043B\u044C|\u0430\u043A\u043E|\u0432\u0430 |\u0438 \u043D|\u0441\u0442\u0438|\u043D\u044B\u0445|\u0442\u043E |\u0431\u0440\u0430|\u043E\u043B\u0436|\u0434\u043E\u043B|\u0441\u0442\u043E|\u0438 \u0432|\u043D\u044B\u043C|\u043E\u0435 | \u0435\u0433|\u043D\u043E\u0432|\u0438\u0445 |\u0435\u043B\u044C|\u0442\u0435\u043B|\u0442\u0438 |\u043D\u043E\u0441|\u043D\u0435 |\u043F\u043E\u043B|\u0440\u0430\u0437| \u0432\u0441|\u0438 \u043E| \u043B\u0438|\u0438 \u0440|\u044B\u0442\u044C|\u0431\u044B\u0442|\u0432\u043B\u0435|\u0440\u0435\u0434|\u0438\u044E |\u0442\u043E\u0440| \u043E\u0441|\u044C\u0441\u044F|\u0442\u044C\u0441|\u043E\u0434\u0438|\u0449\u0435\u0441|\u044F \u0438|\u043A\u0430\u043A|\u043F\u0440\u043E|\u0436\u0435\u043D|\u044B\u043C |\u043F\u0440\u0435|\u0430 \u0441|\u0441\u043D\u043E|\u0435 \u0434|\u043D\u043D\u043E|\u043E \u0438|\u0438\u0439 | \u043A\u043E|\u043E \u0432| \u043D\u0438| \u0434\u0435|\u0441\u0442\u0443|\u043B\u0436\u043D|\u0441\u043E\u0432|\u0435 \u0432|\u043D\u043E\u043C|\u043E\u043B\u044C|\u0440\u0430\u043D|\u043E\u0436\u0435|\u0438\u0447\u0435|\u0435\u0439 |\u0430\u0441\u0442|\u043D\u043D\u044B| \u043E\u0442|\u0442\u0443\u043F|\u043C \u0438|\u043E\u0434\u043D|\u0437\u043E\u0432|\u0440\u0435\u0441| \u043C\u043E|\u043E\u0441\u0443|\u043B\u044F |\u043E\u0441\u043D|\u0430 \u043E|\u0432\u0435\u043D| \u0442\u043E|\u043E \u0431|\u0448\u0435\u043D|\u0442\u0432\u0435|\u043E\u0431\u0449|\u0430 \u0438|\u0435 \u043C|\u044C\u043D\u044B|\u043E\u0431\u0440|\u0432\u0435\u0440|\u0447\u0435\u043D|\u044F \u043D|\u0436\u043D\u043E|\u0447\u0435\u0441|\u0430\u043A |\u043B\u0438\u0447|\u043D\u0438\u0438|\u0435 \u0438|\u0432\u0441\u0435|\u0431\u0449\u0435|\u0432\u0430\u0442|\u0435\u0441\u043F|\u043C\u043E\u0436|\u0439 \u0438|\u043D\u043E\u0435|\u043E \u0434|\u0431\u0435\u0441| \u0432\u043E|\u044F \u0432|\u0434\u0443 | \u0441\u0442|\u0434\u043D\u043E|\u043E\u043D\u0430|\u043D\u0430\u0446|\u0434\u0435\u043D|\u0435\u0436\u0434|\u0445 \u0438| \u0431\u0435|\u0438 \u0434|\u043D\u044B |\u0434\u043E\u0441|\u0434\u043B\u044F| \u0434\u043B| \u0442\u0430|\u043B\u044C\u0441|\u0430\u0442\u0435|\u0446\u0438\u0438|\u044F \u043F|\u0443\u044E |\u0438\u0442\u0435|\u0435 \u043E|\u043D\u043E\u0439|\u043F\u043E\u0434|\u043E\u0442\u043E|\u0441\u0442\u0440|\u0441\u0442\u0430| \u043C\u0435|\u0435\u043B\u0438| \u0440\u0435|\u044F \u043A|\u0442\u043E\u044F|\u0430\u043C\u0438|\u0435\u043D |\u044C \u0432|\u044E \u0438|\u0430\u0437\u043E|\u0433\u043E\u0441|\u043C \u043F|\u044C \u043F|\u0442 \u0431|\u0436\u0435\u0442|\u0443\u0447\u0430|\u0441\u0443\u0434|\u044C\u0441\u0442|\u0434\u0441\u0442|\u0449\u0438\u0442|\u0430\u0449\u0438|\u0437\u0430\u0449|\u043A\u043E\u043D|\u043D\u0438\u044E|\u0430\u043C |\u043E\u0434\u0443|\u0435\u0440\u0435|\u0433\u0440\u0430|\u043F\u0435\u0447|\u043E \u043E|\u043E\u0440\u043E|\u043A\u043E\u0442|\u0438 \u043A|\u0442\u0440\u0430|\u043D\u0438\u043A|\u0443\u0449\u0435|\u0446\u0438\u0430|\u043E\u0446\u0438|\u0441\u043E\u0446|\u043D\u0430\u043B|\u0435\u0441\u043A|\u043E \u0440|\u043A\u043E\u0433|\u0434\u0440\u0443| \u0434\u0440|\u043D\u0438 |\u0430\u0432\u0430|\u043D\u0441\u0442|\u0435\u043C |\u0430\u0432\u043D|\u044B\u043C\u0438|\u0435\u0434\u0441|\u0434\u0438\u043D|\u0434\u043E\u0432| \u0433\u043E| \u0432\u044B|\u0432 \u043A|\u044B\u0435 |\u043E\u0431\u0435|\u043C\u0443 |\u044F \u0435|\u0441\u043B\u0443|\u0443\u0434\u0430|\u0442\u0430\u043A|\u043A\u043E\u0439|\u0442\u0443 |\u0438\u0442\u0443|\u0437\u0430\u043A|\u0445\u043E\u0434|\u0432\u043E\u043B|\u0440\u0430\u0431|\u043A\u0442\u043E|\u0438\u043A\u0442|\u0438\u0447\u043D|\u043D\u0438\u0447|\u043E\u0442 |\u0438\u043D\u0430| \u043A |\u0442\u0435\u0440|\u0440\u043E\u0434|\u043D\u0430\u0440",ukr:"\u043D\u0430 | \u043F\u0440|\u043F\u0440\u0430| \u0456 |\u0440\u0430\u0432| \u043D\u0430| \u043F\u043E|\u043D\u044F |\u043D\u043D\u044F| \u0437\u0430|\u043E\u0433\u043E|\u0442\u0438 |\u0432\u043E |\u0433\u043E | \u043A\u043E|\u0430\u0432\u043E| \u043C\u0430|\u043B\u044E\u0434|\u043E \u043D| \u043D\u0435| \u043B\u044E|\u044E\u0434\u0438|\u043E\u0436\u043D|\u043A\u043E\u0436|\u043B\u044C\u043D|\u0436\u043D\u0430|\u0434\u0438\u043D|\u0430\u0442\u0438|\u0430\u0454 |\u0438\u0445 |\u0438\u043D\u0430|\u043F\u043E\u0432|\u0441\u0432\u043E| \u0441\u0432|\u0430\u043D\u043D|\u0454 \u043F|\u043C\u0430\u0454|\u0430\u0431\u043E|\u0430 \u043B| \u0431\u0443|\u043D\u0435 |\u0435\u043D\u043D|\u0431\u043E | \u0430\u0431|\u0430 \u043C|\u043E\u0432\u0438|\u043D\u0456 | \u0432\u0438| \u043E\u0441|\u0430\u0446\u0456|\u0432\u0438\u043D| \u0442\u0430|\u0431\u0435\u0437|\u043E\u0431\u043E| \u0432\u0456| \u044F\u043A|\u0435\u0440\u0435| \u0434\u043E|\u0456 \u043F|\u0443\u0432\u0430|\u043E \u043F|\u0430\u043B\u044C|\u043D\u0438\u0445|\u043E\u043C |\u043C\u0438 |\u0456\u043B\u044C|\u043D\u043E\u0433|\u0442\u0430 |\u0438\u0439 |\u043F\u0440\u0438|\u043E\u044E |\u0442\u044C |\u0441\u0442\u0430| \u043E\u0431|\u0432\u0430\u043D|\u0438\u043D\u043D|\u0442\u0456 |\u043E\u0441\u0442| \u0443 |\u0441\u044F |\u0432\u0430\u0442|\u0431\u0443\u0442|\u0438\u0441\u0442| \u043C\u043E|\u0435\u0437\u043F|\u0443\u0442\u0438|\u043D\u043E\u0432|\u043F\u0435\u0440|\u0456\u0457 |\u0438 \u043F|\u0431\u043E\u0434|\u0432\u043E\u0431|\u0441\u0442\u0432| \u0432 |\u043E \u0432|\u0432\u0456\u0434| \u0431\u0435|\u0430\u043A\u043E|\u043F\u0456\u0434|\u0442\u0438\u0441|\u043A\u043E\u043D|\u043D\u043E |\u0432\u0430 |\u043D\u043D\u0456|\u0456 \u0441|\u0430 \u043F|\u0441\u0442\u0456| \u0441\u043F|\u043D\u0438\u0439|\u0434\u0443 |\u044C\u043D\u043E|\u043E\u043D\u0430| \u0456\u043D|\u0434\u043D\u043E|\u043D\u0438\u043C|\u0456\u0439 |\u0430 \u0437|\u043D\u0443 |\u043C\u043E\u0436|\u0457\u0457 | \u0457\u0457|\u043B\u044F |\u0441\u043E\u0431|\u043C\u0443 |\u043E\u0457 |\u044F\u043A\u043E| \u043F\u0435| \u0440\u0430|\u0456\u0434 | \u0434\u0435|\u0456 \u0432|\u0438 \u0456|\u0447\u0438\u043D|\u0432\u043D\u043E|\u043E\u043C\u0443|\u043D\u043E\u043C|\u0443 \u043F|\u0456 \u043D|\u0430 \u0441| \u0441\u0443|\u0430 \u043E|\u043D\u0435\u043D|\u0438\u0441\u044F|\u043E\u0432\u043E|\u043D\u0430\u043D|\u043E\u0434\u043D|\u0443 \u0432|\u0456 \u0434|\u0430\u0432\u0430|\u0456\u0434\u043D|\u0440\u0456\u0432| \u0440\u0456|\u0456 \u0440|\u0438\u043C\u0438|\u0432\u0456\u043B|\u0438\u043C |\u0446\u0456\u0457|\u043E \u0434|\u0430 \u0432|\u0441\u0442\u0443|\u043E\u0434\u0443|\u0431\u0443\u0434|\u043E\u0432\u0430| \u043F\u0456| \u043D\u0456|\u044F \u043D|\u0435 \u043F|\u043D\u0430\u0446|\u0438 \u0441|\u043D\u043D\u0430| \u043E\u0434| \u0440\u043E|\u043D\u043E\u0441|\u044C\u043D\u0438|\u044E\u0442\u044C|\u0438 \u0437|\u043A\u0438 |\u0456 \u0437|\u0430 \u0431|\u0441\u043F\u0440|\u0447\u0435\u043D|\u0436\u0435 |\u043E\u0436\u0435|\u0435 \u043C|\u043E\u0432\u043D|\u0440\u0438\u043C|\u0435 \u0431|\u0442\u043E |\u043D\u0456\u0445|\u043E\u0441\u043E|\u0443\u0434\u044C|\u0432\u0456 | \u0440\u0435| \u0441\u0442|\u0440\u0430\u0446|\u0434\u043E | \u0441\u043E|\u0440\u043E\u0437|\u043B\u0435\u043D|\u0432\u043D\u0438|\u0456\u0432\u043D|\u0440\u043E\u0434| \u0432\u0441|\u0441\u043F\u0456|\u043A\u043E\u0432|\u0437\u043F\u0435|\u0456\u0432 |\u0434\u043B\u044F| \u0434\u043B|\u0457 \u043E|\u0445\u0438\u0441|\u0430\u0445\u0438|\u0437\u0430\u0445|\u2010\u044F\u043A|\u044C\u2010\u044F|\u0434\u044C\u2010|\u044F \u0456|\u0442\u0430\u043A|\u0437\u043D\u0430|\u0437\u0430\u0431|\u0441\u0442\u044C|\u0442\u0443 |\u043D\u043E\u044E|\u0430 \u043D|\u0442\u043E\u0440|\u0441\u043D\u043E|\u043E \u0441|\u0436\u0435\u043D|\u0446\u0456\u0430|\u043E\u0446\u0456|\u0441\u043E\u0446|\u0456\u043D\u0448|\u0456 \u043C|\u043A\u043B\u0430|\u0438 \u0432|\u0442\u0435\u0440| \u0434\u0456|\u0456\u0441\u0442|\u043E\u0432\u0456|\u0443 \u0441|\u044F \u0432|\u0430\u0440\u043E|\u0441\u0456 |\u0432\u0456\u0442|\u0441\u0432\u0456|\u043E\u0441\u0432|\u0440\u043E\u0431|\u043F\u0456\u043B|\u0440\u0435\u0441|\u0437\u0430 |\u043F\u0435\u0447|\u0430\u0431\u0435|\u043A\u0443 |\u043B\u0438\u0432|\u0435\u0440\u0436|\u0434\u0435\u0440|\u0432 \u0456|\u0430\u0432\u043D|\u0442\u0430\u0432|\u0430\u0432 |\u0430\u043C\u0438|\u043A\u043E\u043C|\u0432\u043B\u0435|\u043E \u0431|\u044C \u043F| \u0449\u043E|\u0457\u0445 |\u0442\u0432\u043E|\u0445\u0442\u043E|\u0456\u0445\u0442|\u043A\u043E\u0433| \u043A\u0440|\u0430\u043D\u043E|\u0442\u0430\u043D|\u0456\u0430\u043B|\u043D\u0430\u043B|\u043D\u044C |\u0445 \u043F|\u0436\u043D\u043E|\u043B\u0435\u0436|\u0430\u043B\u0435|\u043F\u0440\u043E|\u0442\u0432\u0430|\u0440\u0430\u0442|\u043E \u043E|\u0445 \u0432|\u043D\u0430\u0440|\u043B\u044C\u0441|\u0446\u0456\u0439|\u043A\u043E\u0440|\u0447\u0430\u0441|\u0440\u0436\u0430|\u0457 \u0441|\u0438\u043D\u0443|\u0434\u0441\u0442|\u043E \u0437|\u0440\u0430\u0437|\u043C\u0456\u043D|\u0430 \u0440|\u0437\u0430\u043A",bos:" \u043F\u0440| \u0438 |\u0440\u0430\u0432|\u043D\u0430 |\u043C\u0430 |\u043F\u0440\u0430| \u043D\u0430|\u0438\u043C\u0430| \u0441\u0432|\u0430 \u0441|\u0434\u0430 |\u0430 \u043F|\u0432\u043E |\u0458\u0435 |\u043A\u043E |\u0430\u043A\u043E|\u043E \u0438| \u043F\u043E|\u0430\u0432\u043E|\u0435 \u0441|\u0430 \u0438|\u0442\u0438 | \u0438\u043C| \u0434\u0430| \u0443 |\u0441\u0432\u0430|\u043D\u043E | \u0437\u0430|\u043E \u043D|\u0432\u0430 |\u0438 \u043F|\u0438\u043B\u0438|\u0432\u0430\u043A|\u043B\u0438 | \u043A\u043E|\u043D\u0435 | \u0438\u043B|\u043A\u043E\u0458| \u043D\u0435| \u0434\u0440|\u043E\u0441\u0442| \u0441\u043B|\u045A\u0430 |\u0438\u043C |\u0438 \u0441|\u0443 \u0441|\u0438 \u0438|\u0430\u0432\u0430|\u0438\u0458\u0435|\u0430 \u0443| \u0431\u0438|\u0441\u0442\u0432|\u0441\u0435 |\u0432\u0430\u045A|\u0430 \u0434|\u043E\u043C |\u0458\u0435\u0434|\u0431\u043E\u0434|\u043E\u0431\u043E|\u043B\u043E\u0431|\u0441\u043B\u043E| \u0441\u0435| \u0440\u0430|\u0438\u0445 |\u0441\u0442\u0438|\u0430 \u043D|\u045A\u0435 | \u043E\u0431| \u0458\u0435|\u043F\u0440\u0438|\u0434\u0440\u0443|\u0443 \u0438|\u0458\u0443 |\u043E \u0434|\u0438\u0442\u0438|\u0432\u043E\u0458|\u0440\u0430\u0437|\u0430\u045A\u0435|\u043E\u0432\u0430|\u0434\u0458\u0435| \u043E\u0441|\u0435 \u0438|\u043B\u043E |\u0435 \u043F|\u0430\u045A\u0430|\u0443\u0458\u0435|\u0438 \u0434|\u0431\u0440\u0430|\u0442\u0440\u0435| \u0442\u0440| \u0441\u0443|\u0443 \u0437|\u0430 \u043A|\u043E\u0433 |\u0443 \u043F|\u043E\u0458\u0435|\u0446\u0438\u0458|\u0440\u0435\u0431|\u0430 \u043E|\u0430 \u0431| \u045A\u0435|\u0438 \u0443|\u043C\u0438\u0458|\u043D\u0438 |\u043D\u043E\u0441|\u0431\u0430 |\u0435\u0434\u043D|\u0441\u0432\u043E|\u045A\u0435\u0433| \u0438\u0437|\u043F\u0440\u043E|\u0435 \u0434|\u0436\u0430\u0432|\u0431\u0438\u0442| \u043D\u0438|\u0438 \u043E|\u0441\u0442\u0430|\u0430 \u0437|\u0430\u0432\u043D|\u0432\u0458\u0435| \u043A\u0430|\u0431\u0438\u043B|\u043E\u0432\u043E|\u0430 \u0458|\u0430\u0458\u0443|\u0438\u0441\u0442|\u0438 \u043D|\u043D\u0438\u0445|\u0458\u0435\u043B|\u0442\u0443 |\u0440\u0435\u0434|\u0433\u043E\u0432| \u043E\u0434|\u0435 \u043E|\u043E\u0458\u0438| \u0441\u043C|\u0458\u0430 |\u043E \u043A|\u0438\u043B\u043E|\u0430\u0446\u0438|\u0435 \u0443|\u043F\u0440\u0435|\u043E \u043F|\u0435\u0431\u0430|\u0443 \u043E|\u0441\u0443 |\u0432\u0438\u043C|\u0438\u0447\u043D| \u0441\u0430| \u0434\u0458|\u0430 \u0442|\u0438\u0458\u0430|\u0448\u0442\u0438|\u0447\u043D\u043E|\u0440\u0436\u0430|\u0434\u0440\u0436|\u0441\u0442\u0443|\u0434\u043D\u0430|\u043E\u0434\u043D|\u0435\u043D\u0438|\u0437\u0430 |\u0438\u0432\u0430|\u043D\u043E\u043C|\u0435\u043C |\u0434\u0443 |\u0440\u0430\u043D|\u0432\u043D\u043E|\u0441\u043C\u0438|\u0458\u0435\u0440|\u0435 \u0431|\u0435 \u043D|\u0434\u0435 |\u043F\u043E\u0441|\u043C \u0438| \u0434\u043E|\u0443 \u0434|\u043D\u0430\u043A|\u0430 \u0440|\u043E\u0431\u0440| \u043C\u043E|\u043D\u0438\u043C|\u0435\u0433\u043E| \u043A\u0440|\u0442\u0438\u0442|\u043A\u0440\u0438|\u0432\u0435 |\u0430\u043D |\u0438\u043A\u043E|\u043D\u0438\u043A|\u043D\u0443 |\u0438 \u043C|\u043D\u043E\u0433|\u0435\u043D\u043E|\u0441\u043D\u043E|\u0435 \u043A|\u0442\u0443\u043F|\u0440\u0443\u0433|\u043A\u0430 |\u043E\u0434\u0430|\u0440\u0438\u0432|\u0432\u043E\u0459|\u0430\u043B\u043D|\u043C \u0441|\u0438\u0442\u0443|\u0430\u0448\u0442|\u0437\u0430\u0448|\u0430\u043D\u0438|\u0441\u0430\u043C| \u0441\u0442|\u0430\u043A\u0432|\u043E\u0432\u0438|\u043E\u0441\u043D|\u0440\u043E\u0434|\u0430\u0440\u043E| \u043C\u0438|\u0458\u0438 |\u0442\u0432\u0430|\u0434\u043D\u043E|\u043D\u0441\u0442|\u0430\u043A |\u0438\u0442\u0435|\u0459\u0443 |\u0432\u0438\u0447|\u0440\u0430\u0434|\u0443 \u043D|\u0443 \u043C| \u0442\u0430|\u0434\u0441\u0442|\u0442\u0438\u0432|\u043D\u0430\u0446|\u0440\u0438\u043C|\u043A\u043E\u043D|\u043A\u0443 |\u045A\u0443 |\u043E\u0434\u0443|\u0436\u0438\u0432|\u0430\u043C\u043E|\u0442\u0432\u043E|\u0442\u0435\u0459|\u043F\u043E\u0434|\u0435\u045B\u0443|\u0433 \u043F|\u043D\u043E\u0432|\u0438\u043D\u0430|\u043D\u0430\u0440| \u0432\u0458|\u0438 \u0431|\u043E\u0458 | \u043E\u0432|\u0430\u0432\u0435|\u0432\u0443 |\u0430\u043D\u0441|\u043E\u0458\u0430|\u0437\u043E\u0432|\u0430\u0437\u043E|\u0443\u0434\u0435|\u0431\u0443\u0434| \u0431\u0443|\u0435 \u0442|\u0438 \u0432|\u0435\u045A\u0430|\u0435\u0434\u0438|\u043D\u0438\u0446|\u043D\u0430\u043F|\u043C\u0458\u0435| \u0438\u0441|\u0441\u043B\u0443|\u0435\u0434\u0441|\u043E \u043E|\u0437\u0430\u043A|\u0438 \u043A|\u043C \u043F|\u0442\u043D\u043E|\u0438\u0432\u043E|\u0435\u0440\u0435|\u043D\u0438\u0447|\u043A\u0430\u043A|\u0430\u0434\u0430|\u0432\u043D\u0438|\u0443\u0433\u0438| \u0440\u043E|\u043C\u043E\u0432|\u0432\u0435\u043D|\u043E \u0441|\u0442\u043E |\u0442\u0435 | \u0432\u0440| \u0431\u0435|\u0430\u0440\u0430|\u043A\u043B\u0430| \u0431\u0440|\u0443 \u0431|\u0443 \u0443|\u0438 \u0442|\u043E\u043D\u0430| \u043E\u043D|\u0430\u0432\u0438|\u0458\u0430\u043B|\u0434\u043D\u0438| \u0441\u043A",srp:" \u043F\u0440| \u0438 |\u0440\u0430\u0432|\u043D\u0430 |\u043F\u0440\u0430| \u043D\u0430|\u043C\u0430 | \u0441\u0432|\u0438\u043C\u0430|\u0434\u0430 |\u0430 \u043F|\u0432\u043E |\u043A\u043E |\u0442\u0438 |\u0430\u0432\u043E| \u043F\u043E|\u0430 \u0438|\u0430\u043A\u043E|\u0430 \u0441| \u0437\u0430| \u0443 |\u043E \u0438| \u0438\u043C|\u0438 \u043F|\u0432\u0430 |\u0441\u0432\u0430|\u0432\u0430\u043A| \u0434\u0430|\u043E \u043D|\u0435 \u0441|\u043E\u0441\u0442| \u043A\u043E|\u045A\u0430 |\u043B\u0438 |\u0438\u043B\u0438|\u043D\u0435 |\u043E\u043C | \u043D\u0435|\u0430 \u043D| \u0441\u043B| \u0438\u043B|\u0458\u0435 | \u0434\u0440|\u0438 \u0441|\u043D\u043E |\u043A\u043E\u0458|\u0443 \u0441|\u0430\u0432\u0430| \u0440\u0430|\u043E\u0433 |\u0441\u043B\u043E|\u0458\u0443 |\u0438\u043C |\u0441\u0442\u0438|\u0431\u043E\u0434|\u043E\u0431\u043E|\u043B\u043E\u0431|\u0438\u0442\u0438|\u0430 \u043E|\u0441\u0442\u0432|\u0438 \u0443|\u0430 \u0434|\u043D\u0438 |\u0458\u0435\u0434|\u0443 \u043F|\u043F\u0440\u0438|\u0435\u0434\u043D| \u0431\u0438|\u0438 \u0438|\u0430 \u043A|\u043E \u0434|\u0441\u0442\u0430|\u0438\u0445 |\u0434\u0440\u0443|\u0430 \u0443| \u0458\u0435|\u0430\u045A\u0430| \u043E\u0441| \u043D\u0438|\u043D\u043E\u0441|\u043F\u0440\u043E|\u0430\u0458\u0443|\u0438 \u043E| \u0434\u0435| \u0441\u0443|\u0443 \u0438|\u0441\u0435 |\u045A\u0435 |\u0458\u0430 |\u043E\u0432\u0430|\u0438 \u0434|\u0446\u0438\u0458| \u043E\u0431|\u0443\u0458\u0435|\u0440\u0435\u0434|\u0436\u0430\u0432|\u0435 \u0438|\u0435 \u043F|\u0430 \u0458|\u0434\u043D\u0430| \u0441\u0435| \u043E\u0434|\u0432\u0435 | \u043A\u0430|\u0435\u043D\u0438|\u0440\u0436\u0430|\u0434\u0440\u0436|\u0430 \u0437|\u0430\u0432\u043D|\u0435\u045A\u0430|\u0430\u0446\u0438|\u0432\u043E\u0458|\u043E\u0432\u043E|\u0443 \u0443|\u043C \u0438|\u043E\u0458\u0430|\u0432\u0430\u045A| \u0438\u0437|\u0438\u0458\u0430|\u0443 \u0437|\u0430\u045A\u0435|\u0440\u0430\u043D|\u0435 \u043E|\u0440\u043E\u0434|\u0438 \u043D|\u0435 \u0431|\u0440\u0430\u0437|\u0437\u0430 | \u045A\u0435|\u0433\u043E\u0432|\u0438\u0447\u043D| \u0441\u0442|\u043D\u043E\u0432|\u0441\u043D\u043E|\u043E\u0441\u043D|\u0434\u0443 |\u043F\u0440\u0435| \u0442\u0440|\u0441\u0443 |\u0432\u0443 |\u043E\u0434\u043D|\u0430 \u0431|\u0441\u0432\u043E|\u045A\u0435\u0433|\u043D\u0438\u043C|\u043D\u0438\u0445|\u0442\u0443 |\u0442\u0438\u0442|\u0448\u0442\u0438|\u043A\u0443 |\u043D\u043E\u043C|\u0431\u0438\u0442|\u0435 \u0434|\u043C\u0435 |\u0438\u043A\u043E|\u0447\u043D\u043E|\u043E\u0458\u0438|\u043B\u043E |\u0432\u043D\u043E|\u043D\u0438\u043A|\u0438\u043A\u0430|\u0431\u0435\u0437|\u0430\u0440\u0430|\u0434\u0435 |\u0443 \u043E|\u0432\u0438\u043C|\u043D\u0430\u043A| \u0441\u0430|\u0440\u0438\u0432|\u0430\u0432\u0435|\u0430\u043D |\u0432\u043E\u0459| \u043A\u0440|\u043E \u043F|\u0441\u043C\u0435|\u0435 \u043A|\u043D\u043E\u0433|\u0458\u0438 | \u043E\u0432|\u0435 \u0443|\u0442\u0432\u0430|\u0431\u0440\u0430|\u0440\u0443\u0433|\u0440\u0435\u0431|\u0442\u0440\u0435|\u0443 \u0434|\u043E\u0434\u0430| \u043C\u043E| \u0432\u0440|\u0430\u0432\u0459|\u0443 \u043D|\u0435\u0433\u043E|\u0434\u0435\u043B|\u043C \u0441|\u043A\u0440\u0438|\u043E \u043A|\u0430\u0448\u0442|\u0437\u0430\u0448|\u045A\u0443 | \u0441\u043C|\u0430\u043D\u0438| \u043B\u0438|\u0434\u043D\u043E|\u0435\u0452\u0443|\u0430\u043B\u043D|\u043B\u0430 |\u0430\u043A\u0432|\u043E\u0458 |\u043A\u043E\u043C|\u0441\u0442\u0443|\u0443\u0433\u0438|\u0430\u0432\u0438|\u0430 \u0440|\u043A\u0430 |\u0440\u0430\u0434|\u043E\u0434\u0438|\u0432\u0438\u0447|\u0442\u0430\u0432|\u0438\u0442\u0443|\u0443\u0434\u0435|\u0431\u0443\u0434| \u0431\u0443|\u043F\u043E\u0442|\u043E\u0434\u0443|\u0436\u0438\u0432|\u0435\u0440\u0435|\u0442\u0432\u043E|\u0438\u043B\u043E|\u0431\u0438\u043B|\u0430\u0440\u043E|\u0435 \u043D|\u043E\u0432\u0438|\u043F\u043E\u0440|\u0435\u043D\u043E|\u0448\u0442\u0432|\u043D\u0430\u0446|\u043E\u0432\u0435|\u043C \u043F|\u0442\u0443\u043F|\u043F\u043E\u0441|\u0440\u0435\u043C|\u0434\u043D\u0438|\u0431\u0430 |\u043D\u0441\u0442|\u0430 \u0442|\u043E\u0458\u0443|\u0430\u0441\u0442|\u0438\u0432\u0430|\u0435 \u043C|\u0432\u0440\u0435|\u0432\u0459\u0430|\u043D\u0443 |\u0431\u0435\u0452|\u0438\u0441\u0442|\u0435\u043D |\u0442\u0435 |\u0434\u0441\u0442|\u0440\u043E\u0442|\u0437\u0430\u043A|\u0430\u043E |\u043A\u0430\u043E|\u0438 \u043A|\u0458\u0443\u045B|\u043E \u0441|\u0441\u0442 |\u0441\u0430\u043C|\u043C \u043D|\u0442\u0435\u0440|\u043D\u0430\u0440| \u043C\u0435|\u0438 \u043C|\u043A\u043E\u043B|\u0435 \u0440|\u0443\u0448\u0442|\u0440\u0443\u0448|\u0432\u0435\u0440|\u043A\u0430\u043A| \u0431\u0435|\u0438 \u0431|\u043A\u043B\u0430|\u0430\u0434\u0430|\u0435\u0431\u0430|\u0435\u043D\u0430|\u043E\u043D\u0430| \u043E\u043D|\u0442\u0432\u0443|\u0430\u043D\u0441| \u0434\u043E|\u0440\u0430\u043A|\u0441\u043B\u0443|\u0438 \u0432|\u043D\u0438\u0446|\u0443 \u043A|\u043C\u0435\u043D|\u0432\u0440\u0448|\u0435\u043C\u0435|\u0435\u0434\u0441|\u0438\u0432\u0438|\u043E \u043E|\u0458\u0430\u0432",uzn:"\u0430\u043D |\u043B\u0430\u0440|\u0433\u0430 |\u0438\u0440 | \u0431\u0438|\u0430\u0440 | \u0432\u0430|\u0434\u0430 |\u0438\u0433\u0430| \u04B3\u0443|\u0432\u0430 |\u0431\u0438\u0440|\u0443\u049B\u0443|\u049B\u0443\u049B|\u04B3\u0443\u049B| \u04B3\u0430|\u0440 \u0431|\u0433\u0430\u043D|\u0438\u0448 |\u0438\u0434\u0430| \u0442\u0430|\u0430 \u044D|\u0438\u043D\u0438|\u0430\u0434\u0438|\u043D\u0433 |\u0434\u0438\u0440|\u0438\u0448\u0438|\u043B\u0438\u043A|\u043B\u0438\u0448|\u0438\u0439 |\u0438\u043B\u0438|\u0430\u0440\u0438|\u0443\u049B\u0438|\u04B3\u0430\u0440|\u043B\u0430\u043D|\u0438\u043D\u0433|\u0448\u0438 |\u0434\u0430\u043D|\u043D\u0438\u043D|\u0438\u043D\u0441|\u043A\u0438\u043D|\u0441\u043E\u043D|\u043D\u0441\u043E| \u0438\u043D| \u043C\u0443|\u049B\u0438\u0433| \u043C\u0430|\u043E\u043D |\u0440 \u0438| \u0431\u045E|\u044D\u0433\u0430| \u044D\u0433| \u045E\u0437|\u043D\u0438 |\u0431\u045E\u043B|\u0433\u0430\u0434|\u0438 \u0431|\u043A\u0438 |\u0438\u043B\u0430|\u0451\u043A\u0438| \u0451\u043A|\u0430 \u0431|\u043D \u0431|\u0438\u043D |\u0440 \u04B3|\u0430\u043B\u0430|\u044D\u0440\u043A| \u044D\u0440|\u043B\u0433\u0430| \u049B\u0430|\u0440\u043A\u0438|\u0448 \u04B3|\u0438 \u04B3|\u043D \u043C| \u0431\u043E| \u0431\u0430|\u0438\u043A |\u0430\u0440\u0430|\u0438\u0433\u0438|\u043B\u0438\u0433|\u0440\u0438 |\u049B\u0438\u043B|\u0430 \u0442|\u0431\u0438\u043B| \u044D\u0442|\u043D\u0438\u0448|\u043D\u043B\u0438|\u043A\u043B\u0430|\u0438 \u0432|\u0431\u043E\u0448|\u044D\u0442\u0438|\u0430\u043D\u0438|\u0438\u043C |\u0438 \u043C|\u043E\u043B\u0438|\u049B\u043B\u0430|\u0430 \u04B3|\u043B\u0430\u0448|\u0430\u0442\u043B|\u0442\u0438\u043B|\u0430 \u049B| \u043E\u043B|\u043E\u0441\u0438|\u043C\u0430\u0441|\u049B\u0430\u0440|\u0438\u043D\u043B|\u043B\u0430\u0442| \u049B\u0438|\u0442\u0430\u044A|\u04B3\u0430\u043C|\u0433\u0438 |\u0438\u0431 |\u043C\u043B\u0430|\u045E\u0437 |\u043D \u044D|\u043C\u0443\u043C| \u0434\u0430| \u0431\u0443|\u0430\u0442 |\u0448 \u0432|\u0443\u043D |\u0430\u0442\u0438|\u043C\u043A\u0438|\u0443\u043C\u043A|\u0442\u043B\u0430|\u0438\u0440\u043E|\u045E\u043B\u0438|\u0431\u0430\u0440|\u0438\u0440\u0438|\u0440\u0438\u0448|\u0438\u044F\u0442|\u0430\u043B\u0438| \u0431\u0435| \u049B\u043E|\u0430 \u0448|\u0430\u0440\u043E| \u043A\u0435|\u0438 \u0442|\u0440\u043B\u0430| \u0442\u0435|\u0447\u0430 |\u0440\u0447\u0430|\u0430\u0440\u0447|\u0430 \u045E| \u0448\u0443|\u0442\u0438\u0448|\u043D \u04B3|\u0442\u0433\u0430| \u0441\u0430|\u0430\u0441\u0438| \u0445\u0430|\u0440\u0430\u043A|\u043B\u0438\u043D|\u043E\u043B\u0430|\u0438\u043C\u043E|\u0448\u049B\u0430|\u043B\u0438 | \u0442\u0443|\u0430\u043C\u043B|\u043B\u043B\u0430|\u0441\u0438\u0434|\u043D \u045E| \u0430\u0441|\u043D\u0438\u0434|\u0430 \u0438| \u043A\u0438|\u043D \u0442|\u043D\u0434\u0430|\u043A \u0431|\u0435\u0440\u0430|\u043E\u0448\u049B|\u0441\u0438\u0437|\u043E\u0440 |\u0430 \u043C|\u0440 \u0432|\u0435\u043D\u0433|\u0442\u0435\u043D|\u043C\u0430\u0442|\u043C\u0434\u0430|\u0430\u043C\u0434|\u043B\u0438\u043C|\u0439 \u0442|\u044F\u0442 |\u0438 \u0430|\u0438\u043D\u043E|\u0438\u043B\u0433| \u0442\u043E|\u0442\u043D\u0438|\u0430\u043D\u0430|\u0430\u0441 |\u044D\u043C\u0430| \u044D\u043C|\u0430 \u0451| \u0448\u0430|\u0430\u0448 |\u0430 \u0430|\u0442\u0430\u0440|\u043A\u0430\u0442|\u0430\u043A\u0430|\u0430\u043A | \u0434\u0435|\u0430\u0437\u0430|\u0438\u043B\u043B|\u0441\u0438\u0439| \u0441\u0438| \u0441\u043E|\u0443\u049B\u043B|\u043D \u049B|\u043E\u0434\u0430|\u044A\u043B\u0438|\u0430\u044A\u043B|\u043D\u0438\u043A|\u0430\u0434\u0430| \u043D\u0438|\u0442\u0434\u0430|\u0433\u0438\u043D|\u0443\u043D\u0438|\u0441\u0438\u0442|\u0430\u0439 |\u049B\u043E\u043D|\u043D \u043E| \u0436\u0430|\u043A\u0438\u043C|\u0435\u0447 |\u04B3\u0435\u0447| \u04B3\u0435|\u045E\u0437\u0438|\u043B\u0430\u043A|\u043A\u0435\u0440|\u0438\u043A\u043B|\u043B\u043B\u0438|\u0443\u0440 |\u0437\u0430\u0440|\u0448\u043B\u0430|\u0440\u0438\u0433|\u0438\u0440\u043B|\u0434\u0430\u043C|\u043A\u043E\u04B3|\u0438\u043A\u043E|\u0430 \u0434|\u0430\u043C |\u043D \u0432|\u0440\u0442\u0438|\u0442\u0438\u0431|\u0442\u0430\u043B| \u0438\u0448|\u0447\u0443\u043D|\u0443\u0447\u0443| \u0443\u0447|\u0441\u043B\u0430|\u0430 \u0443|\u0440\u0438\u043D|\u0441\u043E\u0441|\u0430\u0441\u043E| \u0443\u043D|\u043D\u0430 | \u043A\u0430|\u043C\u0443\u04B3|\u0434\u0438\u0433|\u0447 \u043A|\u0430\u0441\u043B|\u043B\u043C\u0430|\u0440\u0430 |\u0431\u0443 |\u0445\u0430\u043B|\u045E\u043B\u0433|\u0438 \u043A|\u0435\u043A\u043B|\u0440 \u0434|\u049B\u0430\u0442|\u0430\u0433\u0430|\u0438 \u049B|\u043E\u0438\u0439|\u043C\u0438\u043B| \u043C\u0438|\u049B\u0430 |\u0438 \u0441|\u0436\u0438\u043D| \u0436\u0438|\u0441\u0438\u043D|\u0440\u043E\u0440|\u0430 \u0432|\u043B\u0430\u0434|\u0430 \u043E|\u0442\u043B\u0438|\u043C\u0438\u044F|\u043D \u0438|\u0430\u0431 |\u0442\u0438\u0440|\u0437 \u043C|\u0434\u0430\u0432|\u0440\u0433\u0430|\u0430\u0433\u0438|\u0430 \u043A|\u043D\u043B\u0430|\u0430\u049B\u0442|\u0432\u0430\u049B|\u0430\u0440\u0442|\u0430\u0451\u0442|\u043B\u0430\u0431",azj:" \u0432\u04D9|\u0432\u04D9 |\u04D9\u0440 |\u0438\u0440 | \u04BB\u04D9| \u0431\u0438| \u04BB\u04AF| \u043E\u043B|\u04AF\u0433\u0443|\u04BB\u04AF\u0433|\u0433\u0443\u0433|\u043D\u0430 |\u0438\u043D |\u043B\u0430\u0440|\u04BB\u04D9\u0440|\u0434\u04D9 | \u0448\u04D9|\u0431\u0438\u0440|\u043B\u04D9\u0440|\u043B\u0438\u043A|\u043C\u0430\u043B|\u0440 \u0431|\u043B\u043C\u0430|\u0440 \u04BB| \u0442\u04D9|\u04D9\u0445\u0441|\u0448\u04D9\u0445|\u04D9\u043D |\u0434\u0438\u0440|\u0443\u0433\u0443|\u0443\u043D\u0430|\u0430\u043D |\u0430\u043B\u0438|\u0430 \u043C| \u043C\u0430|\u0438\u043A\u0434|\u0438\u043D\u0438|\u0440 \u0448|\u0434\u04D9\u043D|\u0430\u0440 |\u0438\u043B\u04D9|\u0433\u0443\u043D|\u0430\u0433 |\u0430\u0441\u044B| \u0458\u0430|\u043C\u04D9\u043A|\u0458\u04D9\u0442| \u043C\u04D9| \u043C\u04AF|\u043A\u0434\u0438|\u04D9\u0441\u0438|\u04D9\u043A |\u0438\u043B\u043C|\u043D\u0438\u043D|\u043D\u0434\u04D9|\u043E\u043B\u043C|\u04D9\u0442\u0438|\u04D9 \u0458|\u0441\u0438\u043D|\u0445\u0441 |\u043D\u0434\u0430|\u043B\u043C\u04D9|\u0458\u0458\u04D9|\u0438 \u0432| \u0433\u0430| \u0430\u0437|\u043E\u043B\u0443|\u0438\u0458\u0458|\u0458\u0430 |\u0438\u043D\u0434|\u0437\u0430\u0434|\u0433\u043B\u0430|\u04AF\u043D |\u043D\u0438 |\u043B\u04D9 |\u0442\u0438\u043D|\u043D \u043C|\u0430\u0437\u0430|\u0430\u0440\u044B|\u04D9\u0442 |\u043D \u0442|\u043C\u0430\u0433|\u043B\u0443\u043D|\u043B\u044B\u0433|\u04D9 \u0431|\u0443\u043D |\u043D\u0443\u043D|\u0433 \u0432|\u043D \u04BB|\u0434\u0430\u043D|\u044B\u043D | \u0435\u0442|\u0442\u043C\u04D9|\u04D9\u0440\u04D9| \u04E9\u0437|\u0434\u0430 |\u04D9 \u0432| \u043E\u043D|\u04D9 \u0430|\u044B\u043D\u0430|\u044B\u043D\u044B|\u0431\u0438\u043B|\u0430 \u0431|\u0441\u044B |\u0438\u043B |\u04D9\u043C\u0438|\u0430\u0440\u0430|\u0441\u0438 | \u0434\u0438|\u04D9 \u043C|\u04D9\u0440\u0438|\u0440\u043B\u04D9| \u0432\u0430|\u04D9 \u04BB|\u0435\u0442\u043C|\u044B\u0493\u044B|\u0430\u043C\u0430|\u0434\u043B\u044B|\u0430\u0434\u043B|\u0440\u0438\u043D|\u0431\u04D9\u0440|\u0440\u044B\u043D|\u043D \u0438|\u043C\u04AF\u0434|\u043D\u044B\u043D| \u04BB\u0435|\u043C\u0430\u0441|\u0438\u043A |\u043D \u0430|\u0434\u0438\u043B|\u0430\u043B\u044B|\u0438\u0440\u043B|\u04D9\u043B\u04D9|\u04AF\u0434\u0430|\u0441\u044B\u043D|\u044B\u043D\u0434|\u0445\u0441\u0438|\u043B\u0438 |\u04D9 \u0434|\u043D\u04D9 | \u0431\u04D9|\u04D9\u0458\u0430| \u0438\u043D|\u04D9 \u0438|\u043B\u04D9\u0442| \u0441\u04D9|\u043D\u044B | \u0438\u0448|\u0430\u043D\u044B|\u0435\u0447 |\u04BB\u0435\u0447|\u0433 \u04BB|\u0435\u0458\u043D|\u04D9 \u0435|\u0434\u044B\u0440| \u0434\u0430|\u0430\u0441\u0438|\u0440\u044B |\u0438\u0448 |\u0438\u0444\u0430|\u043B\u044B\u0493|\u0438 \u0441|\u0444\u0438\u04D9|\u0430\u0444\u0438|\u0434\u0430\u0444| \u0435\u0434|\u043C\u04D9\u0437|\u0443 \u0432|\u043A\u0438\u043B| \u04BB\u0430|\u043E\u043B\u0430|\u043D \u0432|\u04D9\u043D\u0438|\u044B\u0440 |\u0443\u0433 |\u0443\u043D\u043C| \u0431\u0443| \u0430\u0441|\u0441\u0438\u0430|\u043E\u0441\u0438|\u0441\u043E\u0441|\u0438\u043B\u0438|\u044B\u0434\u044B|\u043B\u044B\u0434|\u043D\u043C\u0430|\u044B\u0433 |\u0438\u043D\u04D9|\u04D9\u0440\u0430|\u0441\u0438\u043B|\u0445\u0438\u043B|\u0430\u0445\u0438|\u0434\u0430\u0445|\u0430\u0434\u04D9|\u043C\u0430\u043D|\u0430 \u04BB|\u04D9 \u043E|\u043E\u043D\u0443|\u0430 \u0433|\u04D9\u0437 | \u043A\u0438|\u0441\u0435\u0447| \u0441\u0435|\u044B \u04BB|\u043C\u0438\u043D|\u043B\u0430\u043D|\u04D9\u0434\u04D9|\u0431\u0443 |\u0440\u0430\u0433|\u043B\u044B |\u044B\u043B\u044B|\u0430\u043B |\u04D9 \u0433|\u0440 \u0432|\u043D\u043B\u0430|\u04BB\u0441\u0438|\u04D9\u04BB\u0441|\u0442\u04D9\u04BB|\u04E9\u0437 |\u0438\u0441\u0442| \u0438\u0441|\u043C\u04D9\u0441| \u04D9\u0441|\u0438\u043D\u0430|\u04D9 \u0442|\u04D9\u0442\u043B|\u0430 \u0432|\u0438\u04D9 |\u043D \u0431|\u0442\u04D9\u0440| \u0442\u0430| \u04B9\u04D9|\u0435\u0434\u0438|\u0430\u043B\u0430|\u043A\u0438\u043C|\u0433\u0443 |\u0438 \u0442|\u0443\u043B\u043C|\u043C\u04D9\u04BB|\u043D \u043E|\u0430\u0458\u0430|\u044B \u043E|\u0438\u0430\u043B| \u0441\u043E|\u0438\u043B\u043B|\u0441\u0438\u0458| \u0434\u04D9|\u0432\u0430\u0440|\u0438\u043D\u0441|\u043C\u0438 |\u0493\u044B |\u043D\u0438\u043A|\u0440 \u0438|\u0430\u0433\u043B|\u043A \u04BB|\u0442\u04D9\u043C|\u0442\u0430\u043C|\u0447\u04AF\u043D|\u04AF\u0447\u04AF| \u04AF\u0447|\u0493\u044B\u043D|\u0441\u0430\u0441|\u04D9\u0441\u0430|\u0437 \u04BB|\u04D9\u043C\u04D9|\u0437\u0430\u043C| \u0437\u0430|\u0441\u0442\u0438|\u0440\u04D9\u0444|\u043D \u0435|\u0440 \u0430|\u0438\u043B\u0434|\u04BB\u04D9\u043C|\u044B\u0433\u043B|\u0458\u0430\u043D|\u043C\u0430\u0458|\u043D \u04D9|\u043C\u04D9\u043D|\u043C\u0438\u043B| \u043C\u0438|\u04D9\u0433\u0438|\u0434\u0438\u043D|\u043D \u0434|\u0442\u04AF\u043D| \u0434\u04E9|\u043C\u0438\u0458|\u043A\u0430\u04BB|\u0438\u043A\u0430| \u043D\u0438|\u0444\u0430\u0434|\u0442\u0438\u0444|\u043B \u043E|\u0441\u04D9\u0440|\u0458\u043D\u0438| \u0435\u0458|\u0430\u043D\u0430|\u043B\u04D9\u043D|\u0430\u043C |\u0440\u0438\u043B|\u0430\u0458\u04D9|\u0430\u0448\u044B",koi:"\u043D\u044B |\u04E7\u043D | \u0431\u044B|\u0434\u0430 | \u043F\u0440|\u043B\u04E7\u043D|\u0440\u0430\u0432| \u043C\u043E|\u043F\u0440\u0430| \u0434\u0430|\u0431\u044B\u0434| \u0432\u0435|\u043E\u0440\u0442|\u043B\u04E7 |\u04E7\u0439 |\u043C\u043E\u0440|\u04E7\u043C |\u0430\u0432\u043E| \u043D\u0435|\u0432\u043E |\u044B\u0434 |\u044B\u0441 |\u043D\u04E7\u0439|\u044B\u043D |\u043C \u043F|\u0434 \u043C|\u044B\u043D\u044B|\u0442\u043D\u044B| \u0430\u0441|\u0442\u04E7\u043C|\u043B\u044C\u043D| \u044D\u043C|\u0432\u0435\u0440|\u0441\u044C |\u044C\u043D\u04E7|\u044D\u043C |\u043D \u044D|\u0442\u043B\u04E7| \u043A\u044B|\u0441\u04E7 | \u043F\u043E|\u0435\u0440\u043C|\u0441\u044C\u04E7|\u0440\u0442\u043B|\u0430\u043B\u044C| \u043A\u04E7|\u044D\u0437 | \u04E7\u0442|\u04E7 \u0432|\u0442\u043E |\u0435\u0442\u043E|\u043D\u0435\u0442|\u044B\u043B\u04E7| \u043A\u043E|\u0442\u0448\u04E7| \u043E\u0442| \u0438 |\u044B \u0441|\u0431\u044B |\u04E7 \u0431|\u0441\u0442\u0432|\u043A\u04E7\u0440| \u0432\u04E7|\u0448\u04E7\u043C|\u043A\u044B\u0442|\u0442\u0430 |\u043D\u0430 |\u0437 \u0432| \u0441\u0435| \u0434\u043E|\u0432\u043E\u043B|\u04E7\u0441 | \u0441\u044B|\u044B \u0430|\u043E\u043B\u0430|\u0440\u043C\u04E7|\u0430\u0441 |\u043E\u0437 | \u043E\u0437| \u0441\u0456|\u0430 \u0441|\u0442\u0432\u043E|\u0441 \u043E| \u0432\u044B|\u043B\u0456\u0441|\u04E7 \u043A|\u044B\u0442\u0448|\u04E7 \u0434|\u0438\u0441 |\u0456\u0441\u044C|\u04E7\u0442\u043D|\u0430\u0441\u044C| \u043E\u043B| \u043D\u0430|\u0430\u0446\u0438| \u044D\u0442|\u0430 \u0432|\u0437\u043B\u04E7|\u0441\u0435\u0442| \u0432\u043E| \u0447\u0443|\u043B\u0430\u0441|\u043B\u0430\u043D|\u043C\u04E7 |\u0442\u044B\u0441|\u0440\u0442\u044B|\u04E7\u0440\u0442|\u044B \u043F|\u04E7\u0442\u043B|\u043E \u0441|\u044D\u0442\u0430|\u0434\u0437 |\u043A\u04E7\u0442|\u04E7\u0434\u043D|\u0432\u043D\u044B| \u043C\u044B|\u043D \u043D|\u0443\u0434\u0436| \u0443\u0434|\u0432\u044B\u043B|\u04E7 \u043C|\u0440\u0442\u0456|\u043E\u0440\u0439|\u0438\u0441\u044C| \u0441\u043E|\u0432\u043E\u044D|\u044B\u0434\u04E7|\u0439 \u043E|\u043A\u043E\u043B| \u0433\u043E|\u0441 \u0441|\u0441\u0441\u0438|\u0441\u044B\u043B|\u044B\u0441\u043B|\u0439\u044B\u043D|\u043A\u0438\u043D|\u043E\u043B\u04E7|\u0442\u04E7\u043D| \u0441\u044C|\u0430\u043D\u0430|\u04E7\u0440 |\u0446\u0438\u044F|\u0430 \u0434|\u04E7\u043C\u04E7| \u0432\u0438|\u0437 \u043A| \u044D\u0437|\u044B \u0431|\u0442\u04E7\u0433|\u04E7\u0442 |\u043C\u04E7\u0434|\u0435\u0441\u0442|\u043E\u0441\u0442|\u04E7\u043D\u044B|\u0442\u0438\u0440|\u043E\u0442\u0438|\u0443\u043A\u04E7|\u0447\u0443\u043A|\u043D \u043F|\u043E\u043D\u0434|\u043F\u043E\u043D|\u0441\u043B\u04E7|\u043A\u0435\u0440| \u043A\u0435| \u043E\u0431|\u0441\u0438\u0441|\u0441\u0443\u0434|\u0430 \u043D|\u0434\u043E\u0440|\u043A\u043E\u043D|\u043D\u0435\u043A|\u043D \u0431|\u043B\u04E7\u0442|\u0441 \u0432|\u0442\u0456 |\u044C\u04E7\u0440|\u0442\u0440\u0430| \u0441\u0442|\u043D\u0430\u043B|\u043E\u043D\u0430|\u043D\u0430\u0446|\u043D \u043A|\u043A\u04E7\u0434|\u04E7\u0433 |\u0441\u043A\u04E7|\u0442\u044C |\u0435\u0442\u04E7|\u0434\u04E7\u0441|\u0431\u044B\u0442|\u0440\u043D\u044B|\u04E7 \u043D|\u0442\u0441\u04E7|\u0440\u0440\u0435|\u0430 \u0431|\u043D\u0434\u0430|\u0441 \u0434|\u0430\u0441\u0441|\u044B \u043A|\u0430\u0441\u043B| \u043B\u043E|\u044C\u043D\u044B|\u0441\u044C\u043D|\u044B \u043C|\u0435\u043A\u0438|\u044B \u0434| \u043C\u04E7|\u044C \u043C|\u044B \u043D|\u044B\u0442\u04E7| \u043C\u0435|\u0440\u0439\u04E7|\u0438\u0430\u043B|\u0439 \u0434|\u0438\u0442\u04E7|\u0430 \u043A|\u04E7\u0441\u044C|\u043C\u04E7\u0441|\u043E\u0432\u043D|\u0437\u044B\u043D|\u0430 \u043F|\u043E\u0442\u0441| \u043B\u0438|\u043E\u043B\u044F|\u04E7 \u0430|\u043E\u0441\u0443|\u04E7\u044F |\u043D\u04E7\u044F|\u0435\u0437\u043B|\u0440\u0435\u0437|\u043C\u0435\u0434|\u0441 \u043C| \u0441\u044D|\u044C \u043A|\u0440\u0439\u044B|\u0430\u043A\u043E|\u0437\u0430\u043A| \u0437\u0430|\u044C\u044B\u043D|\u043D\u043D\u0451|\u043C\u04E7\u043B|\u0443\u043C\u04E7| \u0443\u043C|\u044B \u0443|\u043D \u0432|\u043C \u0434|\u043D \u0441| \u0434\u0437|\u043D \u043E|\u0440\u0430\u043D|\u0441\u0442\u0440|\u043E\u0437\u044C|\u043F\u043E\u0437|\u0437 \u043F|\u043E \u0434|\u0446\u0438\u0430|\u043E\u0446\u0438|\u0441\u043E\u0446|\u0438\u043E\u043D|\u0430 \u043C|\u0435\u0441\u043A|\u0447\u0435\u0441|\u043D\u04E7 |\u0437 \u0434|\u0442\u0441\u044C|\u0431\u04E7\u0440| \u0431\u04E7| \u043E\u0432|\u0432\u0435\u0441|\u043A\u044B\u0434|\u04E7 \u0441|\u0432\u043E\u044B|\u043A\u043E\u0434|\u0442\u043A\u043E|\u04E7\u0442\u043A|\u043E\u043B\u044C|\u0434\u0431\u044B|\u0435\u0434\u0431|\u0441\u044C\u044B|\u0447\u044B\u043D|\u0442\u0447\u044B|\u04E7\u0442\u0447|\u0442\u043B\u0430|\u043C\u04E7\u043D|\u0441\u043B\u0430|\u0439\u04E7\u0437| \u0439\u04E7|\u0442 \u0432|\u044B \u0438|\u0435\u0437 |\u043E \u0432|\u043E\u043D\u044B|\u0439\u04E7 |\u0430\u043D\u043D|\u04E7\u043B\u044C| \u043F\u044B|\u0430\u043D |\u043D\u04E7\u0441|\u043D\u0438\u0442| \u0441\u0443|\u043C \u0441",bel:" \u043F\u0440|\u043F\u0440\u0430| \u0456 |\u0430\u0432\u0430|\u043D\u0430 |\u0440\u0430\u0432| \u043D\u0430| \u043F\u0430|\u043D\u044B |\u0432\u0430 |\u0430\u0431\u043E|\u0446\u044C | \u0430\u0431|\u0430\u0435 | \u043C\u0430|\u0430\u0432\u0435|\u0430\u043D\u043D|\u0430\u0446\u044B|\u0441\u0432\u0430| \u0441\u0432|\u0435 \u043F|\u043B\u044C\u043D| \u0447\u0430|\u043D\u0435 |\u043D\u043D\u044F|\u0430\u043B\u0430|\u0430 \u043D|\u0430\u0439 |\u043B\u0430\u0432|\u0447\u0430\u043B| \u043A\u043E| \u0430\u0434| \u043D\u0435|\u0433\u0430 |\u043E\u0436\u043D|\u043A\u043E\u0436|\u0432\u0435\u043A|\u043D\u044F | \u044F\u043A|\u0436\u043D\u044B|\u044B \u0447|\u043C\u0430\u0435|\u0430 \u043F|\u0430\u0433\u0430|\u0431\u043E |\u0435\u043A |\u0430 \u0430|\u0446\u0430 |\u0446\u0446\u0430| \u045E | \u0437\u0430|\u044B\u0445 |\u043F\u0430\u0432|\u0430 \u0441|\u0433\u043E |\u0432\u0456\u043D|\u0434\u043D\u0430|\u0431\u043E\u0434|\u043C\u0456 |\u0432\u0430\u0431|\u0432\u0430\u043D|\u0430\u043C | \u0432\u044B| \u0441\u0430| \u0434\u0430|\u0441\u0442\u0430|\u0430\u0432\u0456|\u043D\u043D\u0435|\u0430\u0441\u0446|\u043D\u0430\u0439|\u0446\u044B\u044F|\u043D\u0430\u0433|\u0430\u0440\u0430|\u0456 \u043D|\u043A \u043C|\u044F\u0433\u043E| \u044F\u0433|\u044C\u043D\u0430|\u043F\u0440\u044B|\u0430\u0446\u044C|\u0456 \u043F|\u043E\u0434\u043D|\u0441\u0442\u0432|\u0430\u043C\u0430|\u043D\u044B\u0445| \u0431\u044B|\u0442\u0432\u0430|\u0434\u0437\u0435|\u0430\u043B\u044C| \u0440\u0430|\u043D\u0456 |\u0456 \u0441|\u0456 \u0430|\u044B\u0446\u044C|\u0430 \u0431|\u0435\u043D\u043D|\u043B\u0435\u043D|\u0446\u0456 |\u043E\u045E\u043D|\u044B\u043C |\u0440\u0430\u0446|\u0456\u043D\u043D|\u0456\u0445 | \u0430\u0441| \u0442\u0430|\u0442\u043E |\u043D\u0430\u0441|\u044F\u043A\u0456| \u0434\u0437|\u0447\u044B\u043D|\u043E\u043B\u044C|\u0456 \u0434|\u0430\u0432\u043E|\u0430\u0434 | \u043D\u0456|\u0441\u0446\u0456|\u044B\u043C\u0456|\u043D\u044B\u043C|\u0431\u044B\u0446|\u044F \u043F|\u044C\u043D\u044B|\u044B\u044F |\u0430\u0440\u043E|\u0430\u043D\u0430|\u0456\u043D\u0430|\u0456 \u0456|\u0440\u0430\u0434| \u0433\u0440|\u043B\u044F |\u045E\u043B\u0435|\u043E \u043F|\u0430 \u045E|\u0440\u044B\u043C|\u043F\u0430\u0434|\u044B\u0456 | \u0456\u043D|\u0430\u043C\u0456|\u0434\u0437\u044F|\u0440\u0430\u043C|\u0446\u044B\u0456|\u0430\u0431\u0430|\u0430 \u0456|\u0434\u0443 |\u0436\u043D\u0430|\u045E\u043D\u0430|\u043D\u0430\u043B|\u043D\u0430\u0446|\u0440\u044B |\u044D\u0442\u0430|\u0433\u044D\u0442| \u0433\u044D|\u043D\u0435\u043D|\u0434\u0430 |\u0430\u0445 |\u0433\u0440\u0430|\u043A\u0430\u0446|\u0443\u043A\u0430|\u0430 \u0437|\u043A\u0456 |\u0430\u0434\u0441|\u045E \u0456|\u043D\u0441\u0442|\u044D\u043D\u043D|\u044F \u0430|\u043D\u043D\u0456|\u043E\u0434\u0443|\u0430 \u0440|\u043D\u043D\u0430|\u0445\u043E\u0434|\u043D\u0430\u043D|\u043F\u0435\u0440|\u0445 \u043F| \u0443 |\u0430\u0434\u0437|\u0456 \u0440|\u043C\u0430\u0434|\u043C \u043F|\u0435 \u043C|\u0430\u0434\u0443|\u0434\u0441\u0442|\u0434\u043B\u044F| \u0434\u043B|\u043E\u045E |\u043D\u0430\u0435|\u0456 \u043C|\u0430\u043A\u043E| \u043A\u0430|\u044B \u045E|\u0431\u0430\u0440|\u0435 \u0430|\u0430\u0446\u0446|\u0443\u044E |\u044B\u0446\u0446|\u0441\u0430\u043C|\u044F\u045E\u043B|\u0430\u043B\u0435|\u0440\u043E\u0434|\u0440\u0430\u0431| \u043F\u0435|\u0448\u0442\u043E| \u045E\u0441|\u0430\u0434\u043D| \u0441\u0443|\u0440\u043E\u045E| \u0440\u043E|\u0434\u0443\u043A|\u043B\u044E\u0431|\u044C \u0441| \u0448\u043B|\u0440\u0430\u0437|\u043D\u0430\u0432|\u0437\u043D\u0430|\u0432\u043E\u043B|\u0443\u0434\u0437|\u0430\u0434\u0430|\u0436\u044B\u0446|\u0447\u043D\u0430|\u0432\u0435 |\u0430 \u0442|\u0430\u0441\u043D|\u0441\u0430\u0446|\u0435\u0440\u0430| \u0440\u044D|\u044F\u043A\u043E|\u043A\u043B\u0430|\u0430\u043D\u044B| \u0448\u0442|\u044C \u0443|\u0430\u044E\u0446|\u043D\u0430\u0440| \u0443\u0441|\u0441\u043E\u0431|\u0430\u0441\u043E|\u043F\u0430\u043C|\u044F \u045E|\u0430\u0432\u044F|\u0447\u044D\u043D|\u0432\u043E\u045E|\u0442\u0430\u043A|\u043D\u0443 |\u044E \u0430|\u044C \u043F|\u0437\u0430\u043A|\u043A\u0430\u0440|\u0435 \u0456|\u044C \u0430|\u0431\u0435\u0441|\u0456\u044F |\u043A\u0456\u044F|\u0445 \u0456|\u0437\u0430\u0431|\u0430\u0441\u0430|\u0456\u043C |\u0436\u0430\u0432|\u0456 \u0437|\u043B\u0435\u0436|\u0442\u0430\u043D|\u0430\u0445\u043E|\u044F\u043B\u044C|\u044B\u044F\u043B|\u043E \u0441|\u044F\u043D\u0430|\u043A\u0430\u043D|\u0430\u043A\u0430|\u0456\u043D\u0448|\u0430\u043B\u0456|\u0432\u044B | \u043C\u043E|\u043D\u0430\u0445|\u044F \u044F|\u043C \u043D|\u043E\u0433\u0430| \u0431\u0435|\u0439 \u0434|\u043E \u0430| \u0441\u0442|\u0435\u043D\u044B|\u0456 \u045E|\u0430 \u0434|\u0435\u0441\u043F|\u0448\u043B\u044E|\u0446\u0446\u044F|\u044B \u0456|\u044B\u0441\u0442|\u0440\u044B\u0441|\u043B\u044E\u0447|\u043A\u043B\u044E|\u0442\u0430\u0446|\u0443\u043B\u044C|\u044B\u043D\u0441|\u0430\u0447\u044B|\u0441\u043F\u0440| \u0441\u043F|\u0430\u045E |\u044B\u043C\u0430|\u0430\u0440\u044B|\u043A\u0430\u043C|\u0435 \u045E|\u0456 \u043A|\u043A\u043E\u043D",bul:" \u043D\u0430|\u043D\u0430 | \u043F\u0440|\u0442\u043E | \u0438 |\u0440\u0430\u0432|\u0434\u0430 | \u0434\u0430|\u043F\u0440\u0430|\u0441\u0442\u0432|\u0432\u0430 |\u0430 \u0441|\u0430 \u043F|\u0432\u043E |\u043D\u043E |\u0438\u0442\u0435|\u0442\u0430 |\u043E \u0438|\u0435\u043D\u0438| \u0437\u0430|\u043D\u0435 | \u043D\u0435|\u0430 \u043D| \u0432\u0441|\u0432\u0430\u043D|\u0430\u0432\u043E|\u043E\u0442\u043E|\u0435 \u043D|\u043E \u043D|\u0430 \u0438|\u043A\u0438 |\u0438\u0435 |\u0442\u0435 |\u043D\u0438 |\u0438\u043C\u0430| \u0438\u043C|\u043B\u0438 |\u0438\u043B\u0438|\u0438\u044F | \u043F\u043E|\u043E\u0432\u0435|\u0430\u043D\u0435|\u0447\u043E\u0432|\u043C\u0430 | \u0447\u043E|\u0438 \u0447|\u0430 \u0434|\u043D\u0438\u0435|\u0438 \u0434|\u0435\u0441\u0442| \u0438\u043B|\u0430\u043D\u0438|\u0432\u0435\u043A|\u0432\u0441\u0435| \u043E\u0431|\u0435\u043A |\u0435\u043A\u0438|\u0441\u0435\u043A|\u0430\u0432\u0430|\u0442\u0432\u043E|\u0441\u0432\u043E| \u0441\u0432|\u0432\u043E\u0442|\u0430 \u0432|\u0438 \u0441|\u043E\u0441\u0442| \u0440\u0430|\u043E\u0432\u0430|\u0430 \u043E|\u0435 \u0438|\u0432\u0430\u0442|\u0438 \u043D|\u0435 \u043F|\u043A \u0438|\u0430 \u0431| \u0432 |\u0438 \u043F|\u043B\u043D\u043E|\u043E \u0434| \u0441\u0435|\u0440\u0430\u0437|\u0435\u0442\u043E|\u044A\u0434\u0435|\u0431\u044A\u0434| \u0431\u044A|\u043F\u0440\u0438|\u0430\u0442\u0430| \u043A\u043E| \u0442\u0440| \u043E\u0441| \u0441\u044A|\u0431\u043E\u0434|\u043E\u0431\u043E|\u0432\u043E\u0431|\u0430\u0442 |\u0437\u0430 |\u0442\u0435\u043B| \u0435 |\u0430\u0446\u0438|\u043E \u0441|\u0434\u0435 |\u043E \u043F|\u0435\u043D |\u0431\u0440\u0430|\u0438 \u0432| \u043E\u0442|\u0441\u0435 |\u043D\u0438\u044F|\u0430\u043B\u043D| \u0434\u0435|\u0435\u0433\u043E|\u043D\u0435\u0433| \u0438\u0437|\u043E\u0442 |\u0440\u0430\u043D|\u044F\u0442\u0430|\u043A\u0430\u043A|\u043E\u0434\u0438|\u0435 \u0441|\u0438 \u0438|\u0434\u0435\u043D|\u043F\u0440\u0435|\u0431\u0432\u0430|\u044F\u0431\u0432|\u0440\u044F\u0431|\u0442\u0440\u044F|\u043D\u0438\u0442| \u043A\u0430|\u044F\u0432\u0430|\u043F\u0440\u043E|\u0441\u0442 |\u0430 \u0437|\u0433\u043E\u0432|\u0432\u0435\u043D|\u0442\u0432\u0435|\u043E \u043E|\u0430 \u0440|\u0430\u043A\u0432|\u043E \u0432|\u0438 \u0437|\u0440\u0435\u0434|\u043D\u043E\u0441|\u0438\u044F\u0442|\u0435 \u0434|\u0449\u0435\u0441|\u043D\u043E\u0432| \u043D\u0438|\u0446\u0438\u044F| \u0434\u043E|\u0439\u0441\u0442|\u043E \u0442|\u0435 \u0442|\u0440\u0436\u0430|\u044A\u0440\u0436|\u0434\u044A\u0440|\u0435\u043D\u043E|\u043F\u043E\u043B| \u0441 |\u043E\u0431\u0440|\u0442\u0432\u0430|\u043D\u043E\u0442|\u0440\u0435\u0441|\u0435\u0439\u0441|\u0438 \u043E|\u0435 \u0432|\u043A\u043E\u0439|\u043E\u0431\u0449|\u043B\u0435\u043D|\u043E\u043D\u0430|\u043D\u0430\u0446|\u0438\u0447\u0435|\u0435\u0437 |\u0431\u0435\u0437| \u0431\u0435|\u0435\u0436\u0434|\u0443\u0432\u0430|\u0432\u0438\u0442|\u0440\u0438 |\u0437\u0430\u043A|\u0438 \u043A| \u043B\u0438|\u0430 \u0435|\u043F\u043E\u0434|\u0435\u043B\u0438|\u043D\u0438\u043A|\u0441\u0438 |\u0435 \u043E|\u0430 \u0442|\u0430\u0432\u043D|\u0438 \u0440|\u0442 \u0441|\u043A\u0430 |\u043E\u0435\u0442|\u0435\u043B\u043D|\u043D\u0435\u043D|\u043E\u0439 |\u0433\u0440\u0430|\u0436\u0435\u043D|\u0434\u0440\u0443| \u0440\u0435|\u0430 \u043A|\u0441\u043D\u043E|\u043E\u0441\u043D|\u043B\u0438\u0447|\u0437\u0438 | \u0442\u0430|\u0441\u0430 |\u043D\u0441\u0442|\u0432\u043D\u0438|\u0447\u043A\u0438|\u0438\u0447\u043A|\u0441\u0438\u0447|\u0432\u0441\u0438|\u043B\u044E\u0447|\u043A\u043B\u044E|\u0434\u043D\u043E| \u043C\u043E|\u0435\u043C\u0435|\u0430 \u0443|\u0438\u0437\u0432|\u0442\u0432\u0438|\u0434\u0435\u0439|\u044F \u043D|\u043A\u0440\u0438|\u0430\u0442\u043E|\u043E \u0440|\u0439 \u043D|\u0438\u043A\u043E|\u0438\u0447\u043D|\u0436\u0430\u0432| \u0434\u044A| \u0442\u043E|\u0431\u0449\u0435|\u0438\u0430\u043B| \u0441\u043E|\u043B\u0438\u0442|\u0442 \u043D| \u0441\u0438|\u0442 \u0438|\u043E\u0434\u043D|\u0436\u0434\u0430|\u0437\u043E\u0432|\u0430\u0437\u043E|\u0443\u0447\u0430| \u0433\u0440|\u043A\u043E\u0435|\u0442\u044A\u043F|\u0441\u0442\u044A|\u0432\u043E\u043B|\u043B\u043D\u0438|\u0441\u0440\u0435| \u0441\u0440|\u043A\u0432\u0430|\u043A\u043E\u043D|\u0442\u043D\u043E|\u0430\u043A\u0430|\u0438 \u0443|\u043A\u043E |\u0433\u0430\u043D|\u043E\u0434\u0430|\u0447\u0435\u043D|\u043B\u0441\u0442|\u0435\u043B\u0441|\u0441\u0442\u0440| \u043A\u044A|\u0441\u0442\u0430|\u0440\u043E\u0434|\u043D\u0430\u0440|\u0438 \u043C|\u043D\u0430\u043B|\u0440\u0443\u0433| \u0434\u0440|\u0447\u0435\u0441|\u0432\u044A\u0437|\u0434\u0438 | \u0441\u0430| \u0442\u0435|\u0441\u0442\u043E|\u0434\u043E\u0441|\u0440\u0430\u0436|\u0440\u0435\u0437|\u0447\u0440\u0435|\u0433\u0430\u0442|\u0435\u043E\u0431|\u0430 \u043C|\u043E \u0435|\u0438\u043D\u0435|\u0430\u0441\u0442|\u043E\u0432\u043E|\u0447\u043D\u043E|\u0430\u0432\u0435|\u043C\u0443 | \u043C\u0443|\u0430\u043D\u043E|\u0438\u0442\u0430|\u0438\u043C\u0438|\u0430\u043A\u043E|\u043D\u0430\u043A|\u043B\u0430\u0433|\u043E\u0432\u0438",kaz:"\u043D\u0435 | \u049B\u04B1|\u0435\u043D |\u04B1\u049B\u044B| \u0431\u0430| \u049B\u0430|\u049B\u04B1\u049B|\u044B\u049B |\u0493\u0430 | \u0436\u04D9|\u04D9\u043D\u0435|\u0436\u04D9\u043D| \u043D\u0435| \u0431\u043E|\u0434\u0435 |\u0434\u0430\u043C|\u0430\u0434\u0430|\u0430 \u049B|\u0442\u0430\u0440|\u044B\u043D\u0430| \u0430\u0434|\u044B\u043B\u044B| \u04D9\u0440|\u044B\u04A3 |\u0430\u043D |\u0456\u043D |\u049B\u044B\u043B|\u0430\u0440 |\u0435\u043C\u0435|\u043D\u0430 |\u0440 \u0430|\u043B\u044B\u049B|\u0443\u0493\u0430|\u0430\u043B\u0430|\u044B\u049B\u0442| \u04E9\u0437|\u043C\u0435\u0441|\u04D9\u0440 | \u0436\u0430|\u043C\u0435\u043D|\u044B\u0493\u044B|\u043B\u044B | \u0434\u0435|\u049B\u0442\u0430|\u043D\u044B\u04A3|\u043D \u049B|\u0493\u0430\u043D|\u0456\u043D\u0435|\u0431\u0430\u0441|\u0430\u0440\u044B| \u043C\u0435| \u049B\u043E|\u0435\u043A\u0435|\u044B\u043D |\u0434\u0430 |\u0435 \u049B|\u0434\u044B |\u0430\u0441\u044B|\u0441\u0435 |\u0435\u0441\u0435|\u0430\u043C |\u0431\u043E\u043B|\u0430\u043D\u0434|\u043D\u0435\u043C| \u0431\u0456|\u0430\u0440\u0430|\u044B \u0431|\u0441\u0442\u0430|\u0442\u0430\u043D|\u043D\u0434\u044B|\u043D \u0431|\u0456\u04A3 |\u0435 \u0431|\u0456\u043B\u0456|\u0442\u0438\u0456| \u0442\u0438|\u0431\u0430\u0440|\u0493\u044B |\u043D\u0434\u0435|\u0435\u0442\u0442|\u0438\u0456\u0441|\u049B\u044B\u0493|\u0456\u0441 |\u043B\u0430\u0440|\u0433\u0435 |\u044B \u0442|\u0456\u043D\u0434|\u0456\u043A |\u0431\u0456\u0440| \u0431\u0435| \u043A\u0435|\u0430\u043B\u0443|\u0435 \u0430|\u0430\u043B\u044B|\u043B\u0443\u044B|\u0430 \u0436|\u0435\u0440\u0456|\u043E\u043B\u044B| \u0442\u0435|\u049B\u044B\u049B|\u043D \u043A| \u0442\u0430|\u043D \u0436|\u0493\u044B\u043D|\u0442\u0442\u0456|\u0456\u043D\u0456|\u0442\u044B\u043D| \u0435\u0440|\u043D\u0434\u0430|\u0456\u043C | \u0441\u0430|\u0435 \u0436|\u0430\u0442\u044B| \u0430\u0440|\u0440\u0493\u0430|\u0435\u0442\u0456|\u0430\u043D\u0430|\u044B \u04D9|\u0443\u044B\u043D|\u043B\u0493\u0430|\u04E9\u0437\u0456|\u043E\u0441\u0442|\u0435\u0433\u0456|\u0442\u0456\u043A|\u049B\u0430 |\u0441\u049B\u0430|\u0440\u044B\u043D|\u043A\u0456\u043D|\u043B\u0443\u0493|\u04A3 \u049B|\u043D\u0456\u04A3|\u0443\u044B |\u0431\u043E\u0441|\u0430\u0441\u049B|\u049B\u0430\u0440|\u0434\u044B\u049B|\u043D\u0430\u043D|\u043C\u044B\u0441|\u043C\u043D\u044B|\u0430\u043C\u043D|\u044B \u043C|\u0430\u0439\u0434|\u043A\u0435 | \u0436\u0435|\u0437\u0456\u043D|\u0440\u0434\u0435|\u0440\u0456\u043D|\u0435 \u0442|\u0433\u0435\u043D|\u044B\u043F |\u0440\u044B |\u0442\u0456 |\u0441\u044B\u043D|\u049B\u0430\u043C|\u0434\u0435\u043D|\u0456 \u0431|\u0433\u0456\u0437|\u0440\u0430\u043B|\u0435 \u04E9|\u043B\u0430\u043D|\u0441\u044B |\u0430\u043C\u0430|\u0442\u0442\u0430|\u0442\u044B\u049B|\u0431\u0435\u0440|\u0434\u0456 |\u0431\u0456\u043B|\u0440\u043A\u0456|\u04E9\u0437 |\u0437\u0434\u0435|\u043A\u0435\u0442|\u049B\u043E\u0440|\u0434\u0430\u0439|\u0443\u0433\u0435|\u044B \u0435|\u044B\u043D\u0434|\u043D\u0435\u0433|\u043E\u043D\u044B|\u0435\u0439 |\u043C\u0435\u0442|\u0430\u043D\u044B|\u0430 \u0442|\u0436\u0430\u0441|\u0430\u0443\u044B|\u043B\u0433\u0435|\u0430\u0441\u0430|\u0435\u0433\u0435|\u0434\u0430\u0440|\u0440\u0443 |\u0430\u0443 |\u0435\u0440\u043A|\u044B \u0436|\u0440\u044B\u043B| \u0442\u043E|\u043D \u043D|\u0435 \u043D|\u0442\u0456\u043D|\u0456\u0440 |\u0441\u0456\u0437|\u0442\u0435\u0440|\u043B\u043C\u0430|\u0456 \u0442|\u043A\u0456\u043C| \u0430\u043B|\u0440 \u043C|\u043B\u0456\u043A| \u043C\u04AF|\u0435 \u043C|\u0442\u04AF\u0440| \u0442\u04AF|\u043A\u0435\u043B|\u043B\u044B\u043F|\u0435\u04A3 |\u0442\u0435\u04A3|\u0440\u043B\u044B|\u043B\u0456\u043C|\u0440\u0434\u044B|\u0430\u0440\u0434|\u0430\u0442\u0442|\u0441 \u0431|\u044B\u0440\u044B|\u0441\u044B\u0437|\u044B\u0441 |\u0435\u043B\u0433|\u0434\u0430\u043B|\u0439\u0434\u0430|\u043E\u0440\u0493|\u0440\u049B\u044B|\u0430\u0440\u049B| \u0436\u04AF|\u0442\u0430\u043B|\u044B\u043B\u043C|\u0430 \u0431|\u0456\u0433\u0456|\u043B\u0434\u0435|\u0456\u0437 |\u049B\u0442\u044B| \u0435\u0448|\u0434\u0435\u0439|\u0430\u0439 |\u0436\u0430\u0493|\u043A\u0442\u0456|\u0456\u043A\u0442|\u0433\u0456\u043D| \u04D9\u043B|\u0442\u0442\u044B|\u04B1\u043B\u0442| \u04B1\u043B|\u0435 \u0434|\u044B\u043D\u044B|\u043B\u0456\u043D|\u0440 \u0431|\u0435\u043B\u0435|\u043A\u04B1\u049B| \u043A\u04B1|\u0430\u043C\u0434|\u043C \u0431| \u0435\u0442|\u043E\u0493\u0430|\u049B\u04B1\u0440| \u043A\u04E9|\u0430\u0493\u0430|\u0442\u043E\u043B|\u0448\u0456\u043D|\u0430\u0439\u044B| \u049B\u044B|\u049B\u0430\u043B|\u0436\u0435\u043A|\u0456 \u043D|\u0435\u0441 |\u0430\u0493\u044B|\u0435 \u043E|\u0435\u043B\u0456| \u0435\u043B|\u043D \u0435|\u0437\u0456 |\u0448\u043A\u0456|\u0435\u0448\u043A|\u043E\u043B\u0443|\u0446\u0438\u044F|\u043C\u0430\u0441|\u0493\u0434\u0430|\u0430\u0493\u0434|\u043B\u0442\u0442|\u0456\u043C\u0434|\u043D\u044B\u043C| \u0434\u0430|\u0430 \u0434|\u04D9\u0441\u0456|\u0441 \u04D9|\u049B\u0430\u0442|\u0456\u0440\u0456| \u0441\u043E|\u04A3 \u0431|\u0430\u0437\u0430|\u043C\u0434\u0430|\u0430\u0439\u043B| \u0430\u0441|\u0493\u0430\u043C|\u049B\u043E\u0493"},Arabic:{arb:" \u0627\u0644|\u064A\u0629 |\u0641\u064A | \u0641\u064A|\u0627\u0644\u062D| \u0623\u0648|\u0623\u0648 | \u0648\u0627|\u0648\u0627\u0644|\u062D\u0642 |\u0629 \u0627|\u0644\u062D\u0642|\u0627\u0644\u062A|\u0643\u0644 |\u0627\u0644\u0645|\u0644\u0643\u0644| \u0644\u0643|\u0644\u0649 |\u0642 \u0641|\u062A\u0647 |\u0648 \u0627|\u0629 \u0648|\u0634\u062E\u0635|\u0629 \u0644|\u0627\u062A |\u0627\u0644\u0623|\u064A \u0623|\u0648\u0646 | \u0634\u062E|\u0645 \u0627|\u0623\u064A | \u0623\u064A|\u0627\u0646 |\u0623\u0646 |\u0645\u0629 |\u064A \u0627|\u0627\u0644\u0627|\u0644\u0627 |\u0647\u0627 |\u0627\u0621 | \u0623\u0646| \u0639\u0644|\u062E\u0635 |\u0646 \u0627| \u0644\u0644|\u062F \u0627|\u0645\u0646 |\u0641\u0631\u062F|\u0645\u0627 |\u0627\u0644\u0639|\u062A \u0627|\u062D\u0631\u064A|\u0639\u0644\u0649|\u0644 \u0641|\u0631\u062F |\u0644 \u0634| \u0644\u0627|\u0631\u064A\u0629| \u0625\u0644|\u0629 \u0623|\u0627 \u0627|\u0646 \u064A| \u0648\u0644|\u0627 \u0644|\u0627 \u064A| \u0641\u0631| \u0645\u0646|\u0629 \u0645|\u0627\u0644\u0642|\u062C\u062A\u0645|\u0646 \u0623|\u0642 \u0627|\u0627\u0644\u0625| \u062D\u0631|\u0644\u0647 |\u0647 \u0644|\u0627\u064A\u0629|\u0644\u0643 |\u0647 \u0627| \u062F\u0648|\u062F\u0629 |\u0627\u064B |\u064A\u0646 |\u0647 \u0648|\u0644\u0629 |\u064A \u062D| \u0639\u0646|\u0645\u0627\u0639|\u064A \u062A|\u0630\u0627 | \u062D\u0642|\u0642\u0648\u0642|\u062D\u0642\u0648|\u060C \u0648|\u0646 \u062A|\u0645\u0639 |\u0635 \u0627|\u0627\u0645 |\u062F \u0623| \u0643\u0627|\u0647\u0630\u0627|\u0627\u0644\u0648| \u0625\u0646|\u0645\u0644 |\u0627\u0645\u0629|\u0639 \u0627|\u0625\u0644\u0649|\u0629 \u0639|\u0645\u0627\u064A|\u062D\u0645\u0627|\u0646 \u0648|\u0644\u062A\u0639| \u0648\u064A|\u064A\u0631 |\u0646\u0648\u0646|\u064A \u0648|\u0627\u0633\u064A|\u0627\u0644\u062C| \u0647\u0630|\u0646\u0633\u0627|\u0648\u0642 |\u062A\u0631\u0627|\u0639\u064A\u0629|\u0647 \u0623| \u0644\u0647|\u0633\u064A\u0629| \u064A\u062C| \u0628\u0627|\u062F\u0648\u0644|\u0627\u0646\u0648|\u0642\u0627\u0646|\u0644\u0642\u0627|\u0629 \u0628|\u0629 \u062A|\u062A\u0645\u0627|\u0627\u0644\u062F|\u064A\u0627\u062A|\u0639 \u0628|\u0633\u0627\u0646|\u0625\u0646\u0633|\u0647\u0645 |\u0639\u0644\u064A| \u0645\u062A|\u0644\u0645\u062C|\u0630\u0644\u0643|\u0639\u0645\u0644|\u0644\u0623\u0633|\u0648\u0632 |\u062C\u0648\u0632|\u064A\u062C\u0648|\u0628\u0627\u0644|\u063A\u064A\u0631|\u0643 \u0627|\u0643\u0627\u0646|\u0633\u0627\u0633|\u0623\u0633\u0627|\u062F\u0645 |\u0644\u0627\u062F|\u0627\u0639\u064A|\u0627\u0644\u0631|\u062A\u0645\u064A|\u062F\u0648\u0646|\u062A\u0645\u062A|\u0644\u062A\u0645| \u064A\u0639|\u0644\u064A\u0647|\u0633\u0627\u0648|\u0627\u062C\u062A|\u064A \u0645|\u0644\u0639\u0627|\u0644\u062C\u0645|\u062A\u0639\u0644|\u0631 \u0648|\u062A\u0645\u0639|\u0645\u062C\u062A| \u0645\u0639|\u064A\u0647 |\u0649 \u0623|\u0641\u064A\u0647|\u0649 \u0627| \u0643\u0644|\u0644\u0627\u062A|\u0645\u0644\u0627|\u0648\u062F |\u0627\u0646\u062A|\u0627\u0644\u0641|\u064A\u0647\u0627|\u064A \u0625|\u062A\u064A |\u0627\u0644\u0628|\u0644\u064A |\u0642\u062F\u0645|\u0627\u0644 |\u0627\u062F |\u0644 \u0627|\u064A\u0632 |\u064A\u064A\u0632|\u0645\u064A\u064A| \u062A\u0645|\u0644\u062D\u0631|\u062A\u0639 |\u0645\u062A\u0639|\u0627 \u0628|\u0639\u0627\u0645|\u0627 \u0648|\u0642 \u0648|\u0631\u0627\u0645|\u0644 \u0644|\u0644\u0627\u062C|\u0631\u0627 |\u0627\u0644\u0634| \u0648\u0625|\u064A\u0645 |\u0644\u064A\u0645|\u0634\u062A\u0631|\u0627 \u062D|\u0648\u0627\u062C|\u0644\u0632\u0648|\u0648\u0644 |\u0627 \u0641|\u0648\u0644\u0629|\u0644\u062D\u0645|\u0623\u0633\u0631| \u0630\u0644|\u0647 \u0641|\u0627\u062A\u0647|\u0645\u0633\u0627|\u0644\u0645\u0633| \u062A\u0639|\u0639\u0646 |\u0647 \u0639|\u0648\u0644\u0647|\u064A\u062A\u0647|\u0646 \u0644|\u0631\u0629 | \u0648\u0633|\u0627\u0629 |\u064A\u062F | \u062A\u062D| \u0645\u0633|\u064A \u064A|\u0644\u062A\u064A|\u0639\u0629 |\u0648\u0644\u064A|\u0644\u062F\u0648| \u0623\u0633| \u0648\u0641|\u0644 \u0648|\u0623\u064A\u0629|\u0646\u064A |\u0627\u0644\u0633|\u0644\u0627\u0646|\u0644\u0625\u0639|\u0629 \u0641|\u0631\u064A\u0627|\u0644 \u0625|\u0645 \u0628|\u0627\u0645\u0644|\u0643\u0631\u0627|\u062A\u0633\u0627|\u0645\u064A\u0639|\u062C\u0645\u064A| \u062C\u0645|\u0623\u0648\u0644|\u0628\u064A\u0629|\u0639\u064A\u0634|\u062A\u062D\u0642|\u0627\u062F\u0629|\u0633 \u0627| \u0645\u0645|\u0645\u0639\u064A|\u062C\u0645\u0627|\u0639\u0627\u062A|\u0627\u0639\u0627|\u0627\u0631\u0633|\u0645\u0627\u0631|\u0645\u0645\u0627|\u0645 \u0648|\u0631\u0627\u0643|\u0627\u0634\u062A|\u0627\u0644\u0637|\u0627\u062C |\u0632\u0648\u0627|\u0627\u0644\u0632| \u0648\u0645|\u062D\u062F\u0629|\u062A\u062D\u062F|\u0644\u0645\u062A|\u0645\u0645 |\u0644\u0623\u0645|\u062F\u0647 |\u0628\u0644\u0627| \u0628\u0644|\u0627\u0631 |\u064A\u0627\u0631|\u062A\u064A\u0627|\u062E\u062A\u064A|\u0627\u062E\u062A|\u0646 \u0645| \u0645\u0631",urd:"\u0648\u0631 | \u0627\u0648|\u0627\u0648\u0631|\u06A9\u06D2 | \u06A9\u06D2| \u06A9\u06CC| \u06A9\u0627|\u06CC\u06BA | \u062D\u0642|\u06A9\u06CC |\u06A9\u0627 | \u06A9\u0648|\u0626\u06D2 |\u06D2 \u06A9|\u06CC\u0627 |\u0633\u06D2 |\u06A9\u0648 |\u0634\u062E\u0635| \u0634\u062E|\u0646\u06D2 | \u0627\u0633| \u06C1\u06D2|\u0645\u06CC\u06BA|\u062D\u0642 | \u06C1\u0648| \u0645\u06CC|\u062E\u0635 |\u06D2 \u0627| \u062C\u0627|\u0627\u0633 | \u0633\u06D2| \u06CC\u0627|\u06C1\u0631 |\u06CC \u0627| \u06A9\u0631| \u06C1\u0631|\u06D2\u06D4 |\u0633\u06CC |\u06C1\u06CC\u06BA|\u0627 \u062D|\u0635 \u06A9|\u0648\u06BA |\u06D2 \u0645| \u0627\u0646|\u0631 \u0634|\u06D4 \u06C1|\u0627\u0626\u06D2|\u0632\u0627\u062F|\u0622\u0632\u0627| \u0622\u0632|\u0627\u0645 |\u0631 \u0627|\u0642 \u06C1|\u0627\u062F\u06CC|\u062C\u0627\u0626|\u06BA \u06A9|\u06C1\u06D2\u06D4|\u0645 \u06A9| \u06A9\u0633|\u0627 \u062C|\u06CC \u06A9|\u0633 \u06A9|\u06A9\u0633\u06CC| \u067E\u0631|\u06D2 \u06AF|\u06C1\u06D2 |\u0627\u0631 |\u062A \u06A9|\u062F\u06CC |\u067E\u0631 |\u0648 \u0627| \u062D\u0627| \u062C\u0648| \u06C1\u06CC|\u0627\u0646 |\u06CC \u062C|\u0631\u06CC | \u0646\u06C1| \u0645\u0639|\u062C\u0648 |\u0644 \u06A9|\u06CC \u062A|\u0646 \u06A9|\u06A9\u0631\u0646|\u0626\u06CC |\u0644 \u06C1|\u062A\u06CC |\u06C1\u0648 |\u06C1 \u0627| \u0627\u06CC|\u0635\u0644 |\u0627\u0635\u0644|\u062D\u0627\u0635|\u0631\u0646\u06D2|\u06CC \u0634|\u0646\u06C1 |\u06D4 \u0627|\u06BA\u06D4 |\u06CC\u06BA\u06D4|\u0631 \u06A9|\u0631 \u0645| \u0645\u0644|\u0648\u06C1 |\u0645\u0639\u0627|\u0631\u06D2 |\u06BA \u0627|\u0646\u06C1\u06CC|\u06D2 \u06C1|\u06D2 \u0628|\u0627\u06CC\u0633|\u06D2 \u0644| \u062A\u0639| \u06AF\u0627|\u06CC\u062A |\u06CC \u062D|\u0627 \u0627|\u06CC \u0645|\u0627\u067E\u0646| \u0627\u067E|\u06A9\u06CC\u0627|\u0645\u06CC |\u06CC \u0633| \u062C\u0633|\u06C1 \u06A9|\u0646\u06CC |\u0627\u0634\u0631|\u0639\u0627\u0634| \u062F\u0648|\u0644\u0626\u06D2| \u0644\u0626|\u0627\u0646\u06C1|\u0648\u0642 |\u0642\u0648\u0642|\u062D\u0642\u0648|\u0645\u0644 | \u0642\u0627|\u06A9\u06C1 | \u06AF\u06CC|\u0631 \u0628|\u06C1 \u0645| \u0648\u06C1| \u0628\u0646|\u06CC \u0628|\u0645\u0644\u06A9|\u062C\u0633 |\u0627\u06D4 |\u0631\u06CC\u0642|\u0631 \u0646|\u06D2 \u062C|\u0627\u062F |\u0627\u062A |\u06AF\u06CC |\u062F \u06A9|\u06D2 \u062D|\u062F\u0627\u0631|\u0631 \u06C1|\u06AF\u0627\u06D4|\u0642\u0648\u0645| \u0642\u0648|\u06D2\u060C |\u0627 \u0633|\u062F\u0648\u0633|\u0631 \u067E| \u0648 | \u0634\u0627|\u06CC \u0622|\u06BA \u0645|\u0642 \u062D| \u067E\u0648| \u0628\u0627|\u062E\u0644\u0627|\u0627\u0646\u06D2|\u06CC\u0645 |\u0644\u06CC\u0645|\u0648 \u062A|\u0648\u0646 | \u06A9\u06C1|\u06CC\u060C |\u06D4 \u06A9|\u0627 \u067E|\u0646 \u0627|\u0644\u06A9 |\u0639\u0644\u0627|\u0627 \u0645|\u0642 \u06A9|\u0627\u0626\u06CC|\u0648\u0633\u0631|\u06CC \u06C1|\u0648\u0626\u06CC|\u06CC\u0631 |\u0627 \u06C1|\u0639\u0644\u06CC|\u0648 \u06AF|\u0648\u0631\u06CC|\u062F\u06AF\u06CC|\u0646\u062F\u06AF|\u0648 \u06A9|\u06CC\u0633\u06D2| \u0645\u0646|\u0627\u0626\u062F|\u0631\u0627\u0626| \u0645\u0631|\u067E\u0648\u0631| \u0637\u0631|\u0648\u0645\u06CC|\u06D2 \u062E|\u0633\u0628 |\u0646\u0648\u0646|\u0627\u0646\u0648|\u0642\u0627\u0646| \u0633\u06A9|\u0648\u0627\u0645|\u06CC\u0646 | \u0631\u06A9|\u062A\u0639\u0644|\u0644\u0627\u0642|\u063A\u06CC\u0631|\u062F\u0627\u0646|\u060C \u0627| \u0628\u06CC| \u0645\u0633|\u06CC\u0648\u06BA|\u0646\u0627 | \u0628\u06BE| \u0628\u0631|\u0631\u062A\u06CC|\u0627\u062F\u0627|\u0627\u0645\u0644|\u06CC\u06C1 | \u06CC\u06C1|\u06C1 \u0648| \u0639\u0627|\u06CC \u067E| \u0628\u0686|\u0627\u0641 |\u0644\u0627\u0641| \u062E\u0644|\u06CC\u06D4 |\u06AF\u06CC\u06D4| \u062F\u06CC|\u06BE\u06CC |\u0628\u06BE\u06CC|\u062F\u06C1 |\u062C\u0627 |\u067E\u0646\u06CC|\u0642\u0648\u0627|\u0627\u0642\u0648|\u0631\u06A9\u06BE|\u06D2 \u06CC| \u0639\u0644|\u06A9\u0648\u0626|\u060C \u0645| \u0686\u0627|\u06D2 \u0633|\u0631 \u0639| \u067E\u06CC|\u0628\u0631\u0627|\u0631 \u0633|\u0631 \u062D|\u0633\u0627\u0646|\u0645 \u0627|\u06A9\u0627\u0645|\u0634\u0631\u062A| \u0631\u0627|\u0634\u0627\u0645|\u0645\u0646 |\u0632\u0646\u062F| \u0632\u0646|\u0628 \u06A9|\u062A \u0645|\u0627\u06C1 |\u0627\u0631\u06CC|\u0633 \u0645|\u0631 \u062C| \u0645\u062D|\u0648\u0631\u0627|\u06D2 \u067E|\u0637\u0631\u06CC|\u06C1\u0648\u06BA|\u0627\u0644 |\u06BA \u0633|\u06CC \u0646|\u06A9\u0631\u06D2| \u0645\u0642|\u062A \u0633|\u062A\u062D\u0641| \u062A\u062D|\u0648\u06D4 |\u06C1\u0648\u06D4|\u0628\u0646\u062F| \u0627\u0642|\u062F \u06C1| \u0627\u0645|\u0627\u0645\u06CC|\u0627\u0644\u0627|\u0644\u062A |\u0634\u0631\u06D2|\u06D2 \u0639|\u0627 \u06A9|\u0641\u0631\u06CC",pes:" \u0648 | \u062D\u0642| \u0628\u0627|\u0646\u062F |\u0631\u062F |\u062F\u0627\u0631| \u062F\u0627|\u06A9\u0647 |\u0647\u0631 | \u062F\u0631| \u06A9\u0647|\u062F\u0631 | \u0647\u0631|\u0631 \u06A9|\u062D\u0642 |\u062F \u0647|\u0627\u0632 |\u06CC\u062A | \u0627\u0632|\u06CC\u0627 |\u06A9\u0633 |\u0648\u062F |\u0627\u0631\u062F| \u06CC\u0627| \u06A9\u0633|\u0627\u06CC |\u062F \u0648| \u0628\u0631| \u062E\u0648|\u0642 \u062F|\u0628\u0627\u0634|\u0634\u062F |\u062F \u06A9|\u0627\u0631 |\u062F \u0628| \u0631\u0627|\u0647 \u0628|\u0627\u0646 |\u0622\u0632\u0627| \u0622\u0632|\u0631\u0627 |\u0627\u0634\u062F|\u06CC \u0648|\u0647 \u0627|\u06CC\u0646 |\u06CC\u062F |\u0632\u0627\u062F|\u0633 \u062D|\u062E\u0648\u062F|\u06CC \u0628| \u0627\u0633|\u062F\u0647 |\u062F\u06CC |\u0648\u0631 |\u0627\u06CC\u062F|\u0647 \u062F|\u0631\u06CC |\u0648 \u0627|\u062A\u0645\u0627|\u0627\u062A | \u0646\u0645|\u06CC \u06A9|\u0627\u062F\u06CC|\u0646\u0647 |\u0631\u0627\u06CC|\u062F \u0627| \u0622\u0646|\u0627\u0633\u062A|\u0631 \u0627|\u0631 \u0645| \u0627\u062C|\u0645\u0627\u06CC|\u0648\u0646 |\u0642\u0648\u0642|\u062D\u0642\u0648|\u0648 \u0645| \u0627\u0646|\u0627\u0646\u0647| \u0647\u0645|\u0648\u0642 |\u0627\u06CC\u062A| \u0634\u0648|\u06CC \u0627| \u0645\u0648| \u0628\u06CC|\u0628\u0627 | \u062A\u0627|\u0648\u0631\u062F|\u0627\u0646\u0648|\u0633\u062A |\u0648\u0627\u0646|\u0628\u0631\u0627|\u0627\u0645 |\u0634\u0648\u062F|\u0622\u0646 |\u062C\u062A\u0645|\u06CC \u06CC| \u06A9\u0646|\u0631 \u0628|\u06A9\u0646\u062F| \u0645\u0631|\u062A \u0645|\u0647\u0627\u06CC|\u062A \u0627| \u0645\u0633|\u06CC\u060C |\u0645\u0627\u0639|\u0627\u062C\u062A|\u062A\u0648\u0627|\u06CC\u06AF\u0631|\u0648 \u0628|\u062F\u0627\u0646|\u062A \u0648|\u0627 \u0645| \u0628\u062F|\u0639\u06CC |\u06A9\u0627\u0631| \u0645\u0646|\u0645\u0648\u0631| \u0645\u0642|\u06CC \u062F| \u0632\u0646|\u06CC \u0645|\u0646 \u0628|\u0631 \u062E|\u0627\u0647 |\u0627 \u0628|\u0627\u0631\u06CC|\u062F \u0622|\u0645\u0644 | \u0628\u0647|\u0627\u0639\u06CC|\u062F\u060C |\u062F\u06CC\u06AF|\u062A \u0628|\u0628\u0627\u06CC|\u0627\u06CC\u0646| \u0645\u06CC|\u0646 \u0648|\u0642 \u0645| \u0639\u0645| \u06A9\u0627|\u0646 \u0627|\u0648 \u0622| \u062D\u0645|\u0646\u0648\u0646|\u0647 \u0648|\u0648 \u062F|\u062F \u0634| \u0627\u06CC|\u0634\u0648\u0631|\u06A9\u0634\u0648| \u06A9\u0634|\u0644\u06CC |\u0646\u06CC |\u0647 \u0645|\u0628\u0639\u06CC|\u0631 \u0634|\u06CC\u0647 | \u0645\u0644|\u0645\u06CC\u062A|\u06CC \u0631|\u0631\u0646\u062F| \u0634\u0631|\u0645\u06CC |\u0648\u06CC |\u0633\u0627\u0648|\u0642\u0627\u0646| \u0642\u0627|\u0645\u0642\u0627|\u0627\u0648 | \u0627\u0648|\u062F \u0645|\u06AF\u06CC |\u0646\u0645\u06CC| \u0627\u062D| \u0645\u062D|\u0645\u06CC\u0646|\u0626\u06CC |\u0627\u062F\u0627| \u0622\u0645|\u062E\u0648\u0627|\u06AF\u0631\u062F| \u06AF\u0631|\u0645\u0646\u062F| \u0634\u062F|\u0627\u0626\u06CC| \u062F\u06CC|\u0632 \u062D|\u0647\u06CC\u0686| \u0647\u06CC|\u0627\u062F\u0647| \u0645\u062A|\u0646\u0645\u0627|\u062A \u06A9|\u0631\u0627\u0646| \u0628\u0645|\u0646 \u062D|\u0631 \u062A|\u062D\u0645\u0627|\u0627\u0631\u0646|\u0645\u0633\u0627|\u062F\u06AF\u06CC|\u0648\u0645\u06CC|\u0646 \u062A|\u0645\u0644\u0644|\u0628\u0631 |\u0647\u062F |\u0648\u0627\u0647|\u0628\u0647\u0631| \u0627\u0639|\u200C\u0647\u0627|\u0642 \u0648|\u060C \u0627|\u0639\u06CC\u062A|\u06CC\u062A\u0648|\u0627 \u0631|\u0646 \u0645| \u0639\u0642|\u0647\u0645\u0647|\u0627 \u0647|\u0632\u0634 |\u0648\u0632\u0634|\u0645\u0648\u0632|\u0622\u0645\u0648|\u0627\u0646\u062A|\u062A\u06CC |\u062C\u0627\u0645|\u0645\u0648\u0645|\u0639\u0645\u0648|\u062A\u062E\u0627| \u0641\u0631|\u0637\u0648\u0631|\u062F \u062F|\u0647 \u062D|\u0631\u062F\u0627|\u0627\u0648\u06CC|\u0646\u0648\u0627|\u0627\u0646\u06CC|\u0631\u0627\u0631| \u0645\u062C|\u06CC \u0646|\u062D\u062F\u06CC|\u0627\u062D\u062F|\u0646\u062F\u06AF|\u0632\u0646\u062F|\u0634\u062E\u0635| \u0634\u062E|\u200C\u0645\u0646|\u0647\u200C\u0645|\u0631\u0647\u200C|\u0647\u0631\u0647|\u0634\u062F\u0647|\u0639 \u0627|\u0648 \u0647|\u0627\u0633\u06CC|\u0647\u0654 |\u06CC\u062F\u0647|\u0639\u0642\u06CC|\u0627 \u0627|\u0645\u0647 | \u0628\u0634|\u0627\u062F |\u062F\u06CC\u0647|\u0627 \u062F|\u062F\u0648\u0627|\u06CC \u062D|\u0627\u0628\u0639|\u06CC \u062A|\u062E\u0627\u0628|\u0646\u062A\u062E|\u0631\u0648\u0631|\u0648 \u0631|\u0634\u0631\u0627| \u062E\u0627|\u0654\u0645\u06CC|\u0627\u0654\u0645|\u062A\u0627\u0654|\u0627\u064B |\u0627\u0645\u0644|\u0644\u0647 |\u062F \u0631|\u0627\u0633\u0627|\u062E\u0648\u0631|\u0628\u0644 |\u0627\u0628\u0644|\u0642\u0627\u0628|\u06CC\u06A9 |\u0633\u0627\u0646|\u0642\u0631\u0627|\u0627 \u0646|\u062E\u0635\u06CC| \u0627\u0645| \u0628\u0648|\u06CC\u0631 |\u0627\u0644\u0645|\u0628\u06CC\u0646|\u0627\u0647\u062F|\u062A\u0628\u0639| \u062A\u0628",zlm:" \u062F\u0627|\u0627\u0646 |\u062F\u0627\u0646| \u0628\u0631| \u0627\u0648|\u0646 \u0633|\u0631\u06A0 |\u062F\u0627\u0644| \u06A4\u0631|\u0644\u0647 |\u0643\u0646 | \u0643\u06A4|\u0646 \u0627|\u0646 \u0643|\u0646 \u062F|\u064A\u06A0 | \u064A\u06A0|\u06A4\u062F |\u062D\u0642 |\u0648\u0631\u06A0|\u062A\u064A\u0627|\u064A\u0627\u06A4|\u0627\u0631\u0627|\u0643\u06A4\u062F|\u0627\u0648\u0631|\u0631\u062D\u0642|\u0628\u0631\u062D|\u0627\u0644\u0647|\u0623\u0646 |\u0648\u0644\u064A| \u0627\u062A|\u0627\u062A\u0627|\u06A0\u0646 |\u062A\u0627\u0648|\u0627\u06A4 |\u0633\u062A\u064A|\u0644\u064A\u0647|\u0627\u0648 | \u0633\u062A|\u06A4 \u0627|\u064A\u0647 |\u0631\u0627 |\u0647 \u0628|\u0647 \u062F|\u0639\u062F\u0627| \u0639\u062F|\u0646 \u06A4|\u0646 \u0628|\u064A\u0646 | \u062A\u0631|\u0642 \u0643|\u0646 \u064A|\u064A\u0628\u0633|\u0628\u064A\u0628| \u062A\u064A| \u0633\u0648| \u0643\u0628| \u0633\u0627|\u0646 \u0645|\u0646 \u062A|\u0644\u0645 |\u0627\u0644\u0645|\u062F \u0633|\u06A0 \u0639| \u0645\u0646|\u0686\u0627\u0631|\u062F \u06A4|\u0631\u0646 |\u0633\u0627\u0645| \u0645\u0627|\u06BD \u0633|\u0646\u060C | \u0628\u0648| \u0627\u064A|\u0646\u062F\u0642| \u062D\u0642|\u06AC\u0627\u0631|\u0646\u06AC\u0627|\u0628\u0648\u0644|\u0633\u0628\u0627| \u0633\u0628|\u0627\u062A\u0648|\u0627 \u0633|\u0642\u0644\u0647| \u06A4\u0645| \u0645\u0645|\u0648\u0627\u0646|\u0633\u0686\u0627| \u0633\u0686| \u0643\u0633|\u0627 \u0628|\u0633\u0646 | \u0633\u0645|\u06A4\u0631\u0644|\u0627\u0648\u0646|\u0646\u06BD |\u062A\u0646 | \u0628\u0627|\u0647\u0646 |\u0633\u064A\u0627|\u0627 \u06A4|\u0627\u0631\u06A0|\u0628\u0627\u0631|\u06A4\u0627 |\u0628\u0633\u0646|\u0643\u0628\u064A|\u0627\u0645 |\u064A\u0646\u062F|\u064A \u062F|\u0627\u06AC\u064A|\u06A0 \u0628|\u0628\u0627\u06AC|\u064A \u0627|\u0645\u0627\u0646| \u0644\u0627| \u062F |\u062F\u0642\u0644|\u0647\u0646\u062F| \u0647\u0646|\u062A \u062F|\u0627\u062F\u064A|\u0648\u064A\u0646|\u064A\u0643\u0646| \u0646\u06AC|\u060C \u0643|\u0646\u0662 | \u06A4\u0648|\u0628\u06A0\u0633|\u0642\u0662 |\u0627\u062A |\u0627\u0648\u0644|\u0627\u0643\u0646|\u0627\u06BD | \u0633\u0633|\u0648\u0646 |\u0627\u062F | \u0643\u0648|\u0627\u064A\u0646|\u062F\u06A0\u0646| \u062F\u06A0|\u0627\u0626\u0646|\u062A\u0648 |\u062A\u064A |\u0646 \u0647|\u06AC\u064A |\u0633\u064A |\u0642 \u0645|\u0648\u06A0\u0646|\u062F\u0648\u06A0|\u0646\u062F\u0648|\u0644\u064A\u0646|\u0631\u0644\u064A|\u0646\u062A\u0648|\u06A4\u0648\u0646|\u0648\u0627\u062A|\u064A\u0627\u062F|\u062A\u064A\u0643|\u06A0\u0633\u0627|\u06A4\u0645\u0628|\u062A\u0631\u0645|\u0662 \u062F|\u062D\u0642\u0662|\u0648\u0627 |\u0644\u0648\u0627|\u0645\u0627\u0633|\u0648\u0642 |\u0647 \u0645|\u0644 \u062F| \u0645\u0644|\u0648\u0646\u062F| \u06A4\u06A0|\u0627\u060C |\u060C \u062A|\u0644\u0627\u0626|\u0627\u064A |\u0645\u06A4\u0648|\u064A\u0643 |\u064A \u0643|\u0631\u0627\u062A|\u0645\u0631\u0627| \u0628\u064A|\u0633\u0645\u0648|\u0648 \u0643|\u060C \u062F|\u0633\u0648\u0627|\u06A0 \u0645|\u06A0 \u0633|\u06A0\u0662 |\u06A4\u0631\u064A|\u064A\u0631\u064A|\u062F\u064A\u0631|\u0627 \u0627|\u0627\u0633\u0627|\u06A4\u0662 |\u062A\u0627 |\u0633\u0648\u0633|\u060C \u0633|\u062C\u0648\u0627|\u06A0 \u062A|\u0631\u0623\u0646| \u0627\u0646|\u0633\u0623\u0646|\u0631\u064A\u0643|\u064A\u0623\u0646|\u0631\u064A | \u062F\u0631|\u0627\u0645\u0631|\u0643\u0631\u062C| \u06A4\u0644|\u0627 \u062F|\u062C\u0631\u0646|\u0627\u062C\u0631|\u0627\u0631\u0643|\u0644\u0627\u062C|\u062F \u0643|\u0648\u0627\u0631|\u0628\u0631\u0633|\u0648\u0646\u062A|\u0645\u0646\u0648|\u0633\u0627\u0644|\u064A\u0646\u06A0|\u062F\u06A0\u0662|\u0646\u062F\u06A0| \u0645\u06A0|\u0627\u06A4\u0627|\u0633\u0633\u064A|\u0633\u0627\u0633|\u0646\u0646 |\u06A4\u0648\u0644|\u0627\u06AC\u0627| \u0628\u06A0| \u0633\u06A4|\u0645\u0628\u064A| \u0627\u06A4|\u06A0 \u0627|\u0627\u0631\u0623|\u06A4\u0631\u0627|\u064A \u0633|\u0628\u0633 | \u062F\u0644|\u0627 \u0645|\u0645\u0648\u0627|\u06A4\u0644\u0627|\u0645\u0644\u0627|\u06A4\u0631\u0643|\u0643\u0648\u0631|\u0648\u0628\u0648| \u0643\u0623|\u0648\u0643\u0646|\u0623\u0646\u06BD|\u0643\u0633\u0627|\u06A0\u06AC\u0648|\u0627\u062F\u06A4|\u0647\u0627\u062F|\u0631\u0647\u0627|\u062A\u0631\u0647|\u0643\u0648\u0645|\u062A\u0648\u0642|\u0645 \u0633|\u06A0 \u062F|\u062F\u064A | \u062F\u064A|\u0662 \u0633|\u0646\u062F\u064A|\u0627\u0633 |\u0627\u062F\u0627|\u0628\u0648\u0627| \u062F\u0628|\u06A0 \u06A4|\u06BD\u060C |\u0627\u06A4\u0662|\u0631\u062A\u0627|\u0627\u0644 |\u064A\u0627\u0644|\u0648\u0633\u064A| \u0643\u062A|\u0623\u0646\u060C|\u0646\u06A4\u0627|\u062A\u0646\u06A4| \u062A\u0646|\u0645 \u06A4|\u0631\u0633\u0627|\u0645\u0645\u06A4| \u0645\u0631|\u0646 \u062D| \u0643\u0645|\u0646\u0633\u064A|\u062C\u0623\u0646|\u0624\u064A |\u0644\u0624\u064A|\u0627\u0644\u0624|\u0644\u0627\u0644|\u0643\u06A4\u0631|\u0643\u062A |\u0631\u0643\u062A|\u0634\u0627\u0631|\u0645\u0634\u0627| \u0645\u0634|\u062C\u0627\u062F|\u0631\u06AC\u0627",skr:"\u062A\u06D2 |\u0627\u06BA |\u062F\u06CC |\u062F\u06D2 | \u06D4 |\u0648\u06BA | \u062A\u06D2| \u062F\u0627| \u06A9\u0648|\u06A9\u0648\u06BA| \u062D\u0642|\u062F\u0627 | \u062F\u06CC|\u06CC\u0627\u06BA| \u062F\u06D2|\u06CC\u06BA |\u06D2 \u0627|\u0634\u062E\u0635| \u0634\u062E|\u06C1\u0631 |\u06D2 \u06D4|\u0627\u0635\u0644| \u062D\u0627|\u062D\u0642 |\u062E\u0635 | \u06C1\u0631|\u0635\u0644 |\u062D\u0627\u0635|\u06C1\u06D2 | \u06C1\u06D2|\u0627\u0644 |\u0642 \u062D|\u0644 \u06C1| \u0646\u0627| \u06A9\u06CC| \u0648\u0686|\u06D4 \u06C1|\u06CC\u0627 |\u0633\u06CC |\u06D2 \u0645| \u0627\u0648|\u0648\u0686 |\u0627\u062A\u06D2|\u06A9\u06CC\u062A|\u0627 \u062D|\u0627\u062F\u06CC|\u0646\u0627\u0644|\u0635 \u06A9| \u0627\u062A|\u0631 \u0634|\u06C1\u06CC\u06BA| \u06CC\u0627|\u06BA \u062F| \u0627\u06CC|\u06CC\u0633\u06CC| \u0645\u0644|\u0648\u0646\u062F|\u06A9\u06C1\u06CC| \u06A9\u06C1|\u06CC \u062A|\u0632\u0627\u062F|\u0627\u0632\u0627| \u0627\u0632|\u0646\u062F\u06D2|\u06BA \u06A9|\u0627\u0631 | \u0648\u06CC|\u06D2 \u06A9|\u0626\u06D2 | \u0627\u0646|\u06BB \u062F|\u0646\u06C1 | \u06A9\u0631|\u0627\u0648\u0646|\u06D2 \u0648|\u062F\u06CC\u0627|\u06CC \u062F|\u06BA \u0627|\u06D2 \u0628|\u0648\u06CC\u0633|\u0648\u06BB |\u06CC \u0646| \u06C1\u0648|\u062A\u06CC |\u06CC \u06D4| \u0646\u06C1|\u06CC \u0627|\u06CC\u0646\u062F|\u0648 \u0684|\u0622\u067E\u06BB| \u0622\u067E|\u0627 \u0648|\u06D2 \u062C| \u06A9\u0646|\u06D2 \u0646|\u0646\u062F\u06CC|\u062A \u062F|\u06D2 \u062D|\u06CC \u06A9|\u0626\u06CC |\u0645\u0644\u06A9|\u06CC\u062A\u06D2|\u0646 \u06D4|\u062A\u06BE\u06CC| \u062A\u06BE|\u0648\u0646 |\u06BA \u0645| \u0628\u0686|\u06D4 \u0627|\u0646\u0648\u06BA|\u06A9\u0646\u0648|\u06BB\u06D2 |\u0627\u0631\u06CC|\u0627 \u0627|\u06D2 \u06C1|\u0644 \u062A| \u0684\u0626|\u0648\u0642 |\u0642\u0648\u0642|\u062D\u0642\u0648|\u0644 \u06A9|\u062E\u0644\u0627| \u062C\u06CC|\u0644\u06A9 |\u062F\u0627\u0631|\u06CC\u062A |\u06A9\u0631\u06BB|\u0627\u0646\u06C1|\u06A9\u0648 |\u06C1\u06A9\u0648| \u06C1\u06A9|\u0646 \u0627|\u0645\u0644 | \u0648\u0633|\u06BA \u0648|\u067E\u06BB\u06D2| \u062A\u0639|\u06CC \u0645|\u0627\u0641 |\u06D2 \u062E|\u0646\u0648\u0646|\u0642\u0646\u0648| \u0642\u0646| \u0644\u0648|\u06D4 \u06A9|\u0631\u06CC |\u0644\u06D2 |\u062A\u0627 |\u06CC\u062A\u0627| \u0642\u0648| \u0686\u0627|\u06C1\u0627\u06BA|\u0684\u0626\u06D2|\u0642 \u062A|\u0627\u06CC\u06C1|\u0631\u06BB |\u06D2 \u062F|\u0631 \u06A9| \u0648 |\u0644\u0627\u0641| \u062E\u0644| \u062C\u0648|\u06CC \u0648|\u0627\u0648 |\u06C1\u0648 |\u0626\u0648 |\u0686\u0626\u0648|\u0628\u0686\u0626|\u06CC\u0631 |\u06C1\u0648\u0648|\u0627 \u0645|\u06CC \u062C|\u0627\u0644\u0627|\u06CC\u0646 | \u062C\u0627|\u0645\u06CC |\u0646\u06C1\u0627|\u0627\u0646 |\u0627\u062A |\u0633\u06B1\u062F| \u0633\u06B1|\u06CC\u0628 |\u0633\u06CC\u0628|\u0648\u0633\u06CC| \u0634\u0627|\u0628 \u062F|\u06CC\u0648\u06BB|\u0627\u0645 |\u0627\u0648\u06BB|\u06D2 \u062A|\u06BB \u06A9| \u0645\u0637|\u06BA \u062A| \u0648\u0646| \u06A9\u0645|\u0646 \u062F|\u0631\u06A9\u06BE| \u0631\u06A9|\u06BB\u06CC |\u06BA \u0622|\u0631\u06CC\u0627|\u06CC \u06C1|\u0627\u062F |\u06CC\u0627\u062F|\u0639\u0644\u0627|\u0631 \u06C1|\u06BA \u0633|\u06CC \u062D|\u062C\u06BE\u06CC|\u0627\u0626\u062F|\u06C1\u06CC |\u0644\u0648\u06A9| \u068B\u0648| \u0633\u0645| \u0633\u0627| \u0645\u0646| \u0645\u0639|\u0628\u0642 |\u0627\u0628\u0642|\u0637\u0627\u0628|\u0645\u0637\u0627|\u06BE\u06CC\u0648|\u06BA \u0641|\u06C1\u0646 | \u06C1\u0646|\u062C\u0648 |\u0648 \u06A9|\u06BA \u0634|\u0631 \u062A|\u06A9\u0627\u0631|\u0645 \u062F|\u06BE\u06CC\u0627| \u067B\u0627|\u063A\u06CC\u0631|\u0648 \u0644|\u0648\u0626\u06CC|\u062C\u06CC\u0627|\u0648\u0627\u0645|\u0642\u0648\u0627|\u06CC \u0633| \u062C\u06BE|\u0644 \u0627|\u0642\u0648\u0645| \u0633\u06CC|\u0630\u06C1\u0628|\u0645\u0630\u06C1| \u0645\u0630|\u0627\u06D2 | \u0627\u06D2|\u062F\u0646 |\u0627 \u062A|\u0633\u0627\u0646|\u0646\u0633\u0627|\u0627\u0646\u0633|\u0631\u06D2 |\u0644\u06CC\u0645|\u0639\u0644\u06CC|\u062A\u0639\u0644|\u0627\u0645\u0644|\u06C1 \u062F|\u06D2 \u0631|\u062F \u0627|\u06A9\u0645 |\u06CC\u06C1\u0648|\u0641\u0627\u0626|\u0686 \u0627| \u06A9\u06BE|\u0645 \u062A|\u0631\u0627 |\u0648\u0631\u0627|\u067E\u0648\u0631|\u06BA \u0628|\u0642 \u062F|\u06D2 \u0642|\u0648\u06A9\u0648|\u06A9\u06BE\u06CC|\u0627 \u06A9|\u0648 \u062F|\u06D2 \u0630|\u067E\u06BB\u06CC|\u0628\u0646\u062F| \u0641\u0631|\u06A9\u0648\u0626|\u0627\u0645\u06CC|\u06CC \u06CC|\u0627\u0626\u06CC|\u0644\u0627\u0642|\u0627\u06CC\u06BA|\u06C1 \u0627| \u0646\u0638|\u0633\u0645\u0627|\u0648\u0645\u06CC|\u06CC\u060C |\u06D2 \u0633|\u062A \u0648|\u06BE\u06CC\u0646|\u06D2 \u0639|\u06CC\u0645 |\u0633\u06C1\u0648| \u0633\u06C1",pbu:" \u062F | \u0627\u0648|\u0627\u0648 |\u067E\u0647 | \u067E\u0647|\u064A\u06D4 | \u062D\u0642|\u0686\u06D0 | \u0686\u06D0|\u0631\u0647 |\u064A \u0627|\u06D0 \u062F| \u0647\u0631|\u0646\u0647 |\u0647\u0631 |\u062D\u0642 | \u0685\u0648|\u0648\u06A9 |\u0685\u0648\u06A9|\u0648 \u0627|\u0647 \u062F|\u0647 \u0627|\u06D4 \u0647|\u0647 \u0648| \u0634\u064A| \u0644\u0631|\u064A \u0686|\u0648 \u062F|\u0631\u064A |\u0644\u0631\u064A|\u0642 \u0644| \u06A9\u069A|\u0648\u064A |\u069A\u06D0 |\u06A9\u069A\u06D0|\u0647 \u06A9|\u063A\u0647 |\u0644\u0648 |\u0631 \u0685|\u0633\u0631\u0647| \u0633\u0631|\u0647 \u067E| \u067C\u0648|\u0648 \u067E|\u0644\u0647 |\u064A\u062A |\u067C\u0648\u0644|\u064A\u0627 |\u06A9\u0693\u064A| \u06A9\u0648|\u062E\u0647 |\u064A\u060C |\u062F\u064A | \u0644\u0647| \u0627\u0632|\u062F \u0645| \u0647\u064A| \u0648\u0627| \u064A\u0627| \u0685\u062E|\u0627\u0632\u0627|\u062F \u0627|\u0648\u0644\u0648|\u0647 \u062A|\u0685\u062E\u0647| \u06A9\u0693|\u0648\u0644 |\u0647\u063A\u0647|\u0647 \u0634|\u064A \u062F| \u0647\u063A|\u06A9\u0648\u0644|\u0632\u0627\u062F|\u0646\u0648 | \u0648\u064A|\u0648 \u064A|\u0647 \u0628|\u0634\u064A\u06D4|\u062F\u06D0 |\u064A\u0648 | \u062F\u064A|\u062A\u0647 |\u062E\u067E\u0644| \u067E\u0631|\u0627\u062F |\u062F \u062F|\u06A9 \u062D| \u062A\u0648|\u0647 \u0645|\u06AB\u0647 |\u0647 \u0647|\u0642\u0648\u0642|\u062D\u0642\u0648|\u0648 \u0645|\u0647 \u062D|\u062F \u0647| \u062A\u0631| \u0645\u0633|\u0634\u064A | \u0646\u0647|\u0693\u064A\u06D4|\u0646\u064A |\u062F \u067E|\u0648\u0627\u062F|\u06D0 \u067E|\u0627\u062F\u064A|\u0648\u0644\u0646| \u064A\u0648|\u062F \u062A|\u0648\u0646\u0648|\u0648\u06AB\u0647|\u064A \u0648|\u0644\u064A | \u062F\u0627|\u064A\u062F | \u0628\u0627|\u062A\u0648\u0646| \u062E\u067E|\u064A \u067E|\u062A\u0648\u06AB|\u0627\u0631 |\u0627\u0646\u062F|\u064A\u0648\u0627|\u06D0 \u0648|\u062F\u0627\u0646| \u0628\u0631|\u0693\u064A | \u0639\u0645|\u0627\u0646\u0647| \u062F\u0647|\u064A\u0685 |\u0647\u064A\u0685|\u0627\u0645\u064A|\u0644\u0646\u064A|\u0628\u0639\u064A|\u0689\u0648\u0644| \u0689\u0648|\u0647 \u0644|\u0627\u064A\u062F|\u0628\u0627\u064A|\u0627\u062A\u0648|\u0647 \u06AB| \u062A\u0627|\u067E\u0644 | \u0645\u0644|\u0627\u064A\u062A|\u0648\u0645 |\u0648\u0646 | \u0644\u0627|\u0647\u064A\u0648| \u0634\u0648| \u062F\u063A|\u0645 \u062F|\u062F\u0647 |\u06D0 \u0627|\u0627\u0646 | \u062A\u0647|\u06A9\u0627\u0631|\u062A\u0648 |\u0645\u064A |\u0627\u0631\u0647|\u0627\u0648\u064A|\u0633\u0627\u0648|\u0645\u0633\u0627|\u0646\u0648\u0646|\u062F\u0647\u063A|\u0648 \u062A|\u064A \u0634|\u0627\u0646\u0648| \u0645\u062D|\u064A\u0646 |\u0627\u062E\u0644| \u06AB\u067C|\u0634\u0648\u064A|\u062F\u063A\u0647|\u0648 \u062D|\u0648\u064A\u060C|\u0646\u064A\u0632|\u0633\u064A |\u0627\u0633\u064A|\u0648\u0646\u062F|\u0642\u0648 |\u0648\u0642\u0648|\u0648 \u06A9|\u0648\u0646\u0647|\u0648\u0645\u064A| \u0648\u06A9|\u064A \u062A| \u0627\u0646|\u0642\u0627\u0646|\u0646\u062F\u06D0|\u0648 \u0631|\u06A9 \u062F|\u0647 \u064A|\u0645\u064A\u0646|\u067E\u0631 |\u067C\u0647 |\u0644\u0627\u0645|\u063A\u0648 |\u0647\u063A\u0648|\u062F \u067C|\u0648 \u0647|\u0644 \u062A|\u0644\u06D2 |\u0648\u0644\u06D2|\u0648\u0648\u0646|\u06A9\u064A |\u0631\u0648 |\u0646 \u06A9|\u0645\u0648\u0645|\u0648\u06A9\u0693|\u067E\u0627\u0631|\u0646 \u0634|\u0645\u0646 | \u0646\u0648| \u0648\u0693| \u0642\u0627|\u06D0 \u0686| \u0648\u0633|\u0685 \u0685|\u0634\u062E\u0635| \u0634\u062E|\u0698\u0648\u0646| \u0698\u0648|\u062A\u0631 |\u06AB\u067C\u0647|\u0648 \u0685|\u0647\u0645 |\u0639\u0642\u064A|\u0631\u062A\u0647| \u0648\u0631|\u0628\u0644 | \u0628\u0644|\u0648 \u0628|\u0647 \u0633|\u069A\u0648\u0648| \u069A\u0648| \u06A9\u0627|\u06D0 \u06A9|\u0648 \u0633|\u0627\u062F\u0647|\u0648\u0646\u06A9| \u063A\u0648|\u062F\u0648 |\u0648 \u0646|\u062A \u06A9|\u0645\u0644 |\u0639\u0645\u0648|\u0644 \u0647| \u067E\u064A|\u0648\u0633\u064A|\u0693\u0627\u0646|\u0648\u0693\u0627|\u064A\u0632 |\u062E\u0635\u064A|\u064A \u0645|\u0627 \u0628|\u0627\u062F\u0627|\u0647 \u0646|\u062E\u0644\u064A|\u0648\u0627\u062E|\u062F\u064A\u0648|\u060C \u062F|\u062F \u0642| \u0647\u0645|\u0627 \u062F| \u0628\u064A|\u062A\u0628\u0639| \u062A\u0628|\u0647 \u0686| \u0639\u0642|\u067E\u0644\u0648|\u0648 \u0644| \u0631\u0627|\u062F \u0628|\u0631\u0627\u064A| \u062F\u062E|\u0646\u06D0 |\u0646\u06A9\u064A|\u062A \u062F|\u0627\u0628\u0639| \u0645\u0642|\u062F \u062E|\u0648\u0631\u0647|\u0634\u0631\u0627| \u0634\u0631|\u0631 \u0645|\u0631\u0633\u0631|\u062A\u0627\u0645|\u0647 \u067C| \u0645\u0646|\u0637\u0647 |\u0633\u0637\u0647|\u0627\u0633\u0637|\u0648\u0627\u0633|\u0644\u06D0 | \u0627\u0633|\u06D4 \u062F|\u0628\u0631\u062E|\u06D0 \u0646"},Devanagari:{hin:"\u0915\u0947 |\u092A\u094D\u0930| \u092A\u094D| \u0915\u093E| \u0915\u0947| \u0964 |\u0914\u0930 | \u0914\u0930|\u0915\u093E | \u0915\u094B|\u0915\u093E\u0930|\u093E\u0930 |\u0924\u093F |\u092F\u093E |\u0915\u094B |\u0928\u0947 |\u094B\u0902 |\u093F\u0915\u093E|\u094D\u0930\u0924| \u0939\u0948| \u0915\u093F|\u0902 \u0915|\u0939\u0948 |\u0927\u093F\u0915|\u0935\u094D\u092F|\u0905\u0927\u093F| \u0905\u0927|\u094D\u0924\u093F| \u0938\u092E|\u094D\u092F\u0915|\u093F \u0915|\u0915\u094D\u0924|\u093E \u0905|\u0915\u0940 |\u093E \u0915| \u0935\u094D|\u0947\u0902 | \u0939\u094B|\u092F\u0915\u094D|\u0938\u0940 |\u0938\u0947 |\u0947 \u0915| \u092F\u093E| \u0915\u0940|\u092E\u0947\u0902|\u0928\u094D\u0924| \u092E\u0947|\u0924\u094D\u092F|\u0948 \u0964|\u0924\u093E |\u0930\u0924\u094D|\u0915\u094D\u0937|\u0947\u0915 |\u092F\u0947\u0915|\u094D\u092F\u0947|\u093F\u0915 |\u0930 \u0939|\u092D\u0940 |\u0915\u093F\u0938| \u091C\u093E| \u0938\u094D|\u0915 \u0935|\u093E \u091C|\u093F\u0938\u0940|\u092E\u093E\u0928| \u0935\u093F|\u0930 \u0938|\u0924\u094D\u0930|\u0940 \u0938|\u0964 \u092A| \u0915\u0930|\u094D\u0930\u093E|\u0917\u093E |\u093F\u0924 | \u0905\u092A| \u092A\u0930|\u0938\u094D\u0935|\u0940 \u0915| \u0938\u0947|\u093E \u0938|\u094D\u092F | \u0905\u0928|\u094D\u0924\u094D|\u093F\u092F\u093E|\u093E \u0939| \u0938\u093E|\u0928\u093E |\u094D\u0924 |\u092A\u094D\u0924|\u0938\u092E\u093E|\u093E\u0928 |\u0930 \u0915|\u093E\u092A\u094D|\u0924\u0928\u094D| \u092D\u0940| \u0909\u0938|\u0930\u093E\u092A|\u0935\u0924\u0928|\u094D\u0935\u0924|\u0930\u094B\u0902|\u0935\u093E\u0930|\u0947 \u0938|\u0925\u093E |\u0939\u094B |\u0947 \u0905|\u093E \u0964|\u0928 \u0915| \u0928 |\u0926\u0947\u0936| \u0930\u093E|\u0937\u093E |\u0905\u0928\u094D|\u0924 \u0939|\u094D\u0937\u093E|\u094D\u0935\u093E|\u091C\u093E\u090F|\u0940 \u092A|\u0915\u0930\u0928|\u093E \u092A|\u0905\u092A\u0928|\u0937\u094D\u091F| \u0938\u0902|\u0947 \u0935|\u0939\u094B\u0917|\u093F\u0935\u093E|\u091F\u094D\u0930|\u094D\u091F\u094D|\u093E\u0937\u094D|\u0930\u093E\u0937|\u0938\u0915\u0947| \u092E\u093E|\u0913\u0902 |\u093E\u0913\u0902|\u0930\u0940 |\u0915 \u0938|\u0947 \u092A| \u0928\u093F|\u0940\u092F |\u0930\u0915\u094D|\u094B \u0938|\u093E\u090F\u0917|\u0930\u0928\u0947| \u0907\u0938|\u0935 \u0915|\u092A\u0930 |\u0930\u0924\u093E|\u0930 \u0905| \u0938\u092D|\u0924\u0925\u093E| \u0924\u0925| \u0910\u0938|\u0930\u093E |\u092A\u0928\u0947|\u094D\u0930\u0940|\u093F\u0915\u094D|\u0915\u093F\u092F|\u093E \u0935|\u092E\u093E\u091C|\u0902 \u0914|\u0930 \u0909|\u0926\u094D\u0927|\u0938\u092D\u0940|\u0936\u094D\u092F| \u091C\u093F|\u093E\u0928\u0947|\u093E\u0930\u094D|\u093E\u0930\u093E|\u0926\u094D\u0935| \u0926\u094D|\u090F\u0917\u093E|\u0938\u092E\u094D|\u0947\u0936 |\u093F\u090F |\u093E\u0935 |\u0930 \u092A| \u0926\u0947|\u094D\u0924\u0930|\u093E \u0914|\u093E\u0930\u094B|\u092F\u094B\u0902|\u092A\u0930\u093E|\u092A\u0942\u0930|\u091A\u093F\u0924|\u094D\u0927 |\u0930\u0942\u092A| \u0930\u0942| \u0938\u0941| \u0932\u093F|\u0924 \u0915|\u094B \u092A|\u0902 \u0938|\u0947 \u0932|\u0936\u093F\u0915| \u0936\u093F|\u0935\u093E\u0939|\u0947 \u0914|\u091C\u094B |\u0930\u093E\u0927|\u091C\u093F\u0938|\u0942\u0930\u094D|\u0940 \u092D|\u0942\u092A |\u094B\u0917\u093E|\u0938\u094D\u0925|\u0930\u0940\u092F|\u0924\u093F\u0915|\u094D\u0930 |\u0964 \u0907|\u0907\u0938 | \u0909\u0928|\u0932\u0947 |\u0947 \u092E|\u0932\u093F\u090F|\u092E \u0915|\u0915\u0924\u093E|\u0947 \u092F| \u091C\u094B|\u0928 \u092E|\u0905\u092A\u0930| \u092A\u0942|\u094B \u0915|\u093E \u0909|\u093E\u0939 |\u0928\u0942\u0928|\u093E\u0928\u0942|\u0917\u0940 |\u0926\u0940 |\u093E\u0930\u0940|\u0902 \u092E|\u0964 \u0915|\u0924\u0930\u094D|\u0940 \u0930|\u0936 \u0915|\u092A\u0930\u093F|\u0938\u094D\u0924|\u094B\u0908 |\u0915\u094B\u0908|\u0930\u094D\u092F|\u0940 \u0905|\u0939\u093F\u0924|\u092D\u093E\u0935| \u092D\u093E|\u0924\u093E\u0913|\u093E\u0938 |\u0938\u093E\u092E|\u0935\u093F\u0915|\u0935\u093F\u0935|\u092E\u094D\u092E| \u0938\u0915|\u0915\u0930 |\u093E\u0928\u093E|\u0927 \u0915|\u0928\u093F\u0915|\u092F \u0915|\u0909\u0938\u0915|\u0915\u0943\u0924| \u0958\u093E|\u0928 \u0938|\u091C\u0940\u0935|\u094D\u092F\u093E|\u0930\u0915\u093E|\u094D\u0930\u0915|\u093E\u091C |\u0928\u094D\u092F|\u094D\u092E |\u0930\u094D\u0923|\u0958 \u0939|\u0939\u0958 | \u0939\u0958|\u0940 \u092E|\u091C\u093F\u0915|\u093E\u091C\u093F|\u093E\u092E\u093E|\u0915 \u0914|\u092E\u093F\u0932|\u0947\u0928\u0947|\u0932\u0947\u0928| \u0932\u0947|\u092F\u0947 |\u094B \u0905|\u0947 \u091C|\u0930\u093F\u0935|\u092E\u092F |\u0938\u092E\u092F|\u0935\u0936\u094D|\u0906\u0935\u0936| \u0906\u0935|\u0910\u0938\u0940|\u093E\u0927 |\u0930 \u0926|\u0930\u094D\u0935|\u0938\u093E\u0930|\u092A \u0938|\u092C\u0928\u094D| \u0938\u0939|\u093F\u0927\u093E|\u0935\u093F\u0927|\u0940 \u0928|\u0942\u0928 |\u0958\u093E\u0928",mar:"\u094D\u092F\u093E|\u092F\u093E |\u0924\u094D\u092F|\u092F\u093E\u091A|\u091A\u093E |\u0923\u094D\u092F|\u093E\u091A\u093E| \u0935 |\u0915\u093E\u0930|\u092A\u094D\u0930| \u092A\u094D|\u093F\u0915\u093E|\u0927\u093F\u0915|\u093E\u0930 | \u0905\u0927|\u0905\u0927\u093F|\u091A\u094D\u092F|\u0906\u0939\u0947| \u0906\u0939|\u093E \u0905|\u0939\u0947 |\u093E \u0915|\u093E\u0938 |\u0935\u093E |\u094D\u092F\u0947|\u094D\u0930\u0924| \u0938\u094D|\u0924\u093E |\u093E \u0938| \u0905\u0938| \u0915\u0930|\u0938\u094D\u0935| \u0915\u093E|\u0932\u094D\u092F|\u0930\u0924\u094D|\u093E\u0939\u093F|\u0915\u094B\u0923| \u0915\u094B|\u093F\u0915 |\u092F\u0947\u0915|\u094D\u0935\u093E|\u093E \u0935| \u0924\u094D|\u0930 \u0906|\u094D\u092F |\u0924\u094D\u0930|\u0947\u0915\u093E|\u0915\u094D\u0937|\u093E \u0928| \u0938\u0902|\u093E\u092E\u093E|\u093E\u091A\u094D|\u0902\u0935\u093E|\u093F\u0902\u0935|\u0915\u093F\u0902| \u0915\u093F|\u093E\u0924 |\u0937\u094D\u091F|\u0915\u093E\u0938| \u092F\u093E|\u092F\u093E\u0902|\u093E\u0902\u091A|\u0930\u094D\u092F|\u092E\u093F\u0933| \u092E\u093F| \u0938\u093E|\u0935\u094D\u092F|\u094B\u0923\u0924|\u0928\u0947 |\u0947 \u092A|\u0915\u093E\u092E| \u0938\u092E|\u0902\u0924\u094D|\u092F\u0947 | \u0930\u093E|\u0938\u092E\u093E|\u0924\u0902\u0924|\u0915\u0930\u0923|\u093E \u0906|\u0947 \u0915|\u0939\u093F |\u0947 \u0938|\u0928\u093E |\u093F\u0933\u0923|\u0942\u0928 |\u093E \u092A|\u091F\u094D\u0930|\u094D\u091F\u094D|\u093E\u0937\u094D|\u0930\u093E\u0937|\u0940\u092F |\u0935 \u0938|\u0915\u094D\u0924|\u092E\u093E\u0928|\u0930\u094D\u0935| \u0906\u092A|\u0933\u0923\u094D|\u094D\u0930\u094D|\u093E\u0924\u0902|\u0935\u093E\u0924|\u091A\u0947 | \u0935\u093F|\u094D\u0937\u0923|\u0930\u0923\u094D| \u0926\u0947| \u0935\u094D|\u0906\u092A\u0932|\u0939\u0940 |\u093E\u0930\u094D|\u0928\u092F\u0947| \u0928\u092F|\u092E\u093E |\u092F\u093E\u0938| \u091C\u093E|\u0932\u0947\u0932| \u0928\u093F|\u0947 \u0905| \u092A\u093E|\u093E \u092E|\u0932\u0947 |\u093E\u0939\u0940|\u092C\u0902\u0927|\u0947 \u0935|\u094D\u092F\u0915| \u092E\u093E|\u0936\u093F\u0915| \u0936\u093F|\u0926\u0947\u0936|\u093E \u0926|\u092E\u093E\u091C|\u094D\u0930\u0940|\u0932\u0940 |\u093E\u0928 |\u093E\u0902\u0928|\u092A\u0932\u094D| \u0939\u094B|\u093E \u0939|\u0937\u0923 |\u091C\u0947 |\u093F\u091C\u0947|\u0939\u093F\u091C|\u092A\u093E\u0939|\u093E\u0930\u093E|\u092F\u093E\u0924|\u0938\u0930\u094D| \u0938\u0930|\u0930\u093E\u0902|\u0905\u0938\u0932|\u0902\u092C\u0902|\u0938\u0902\u092C|\u093F\u0915\u094D|\u0940 \u092A|\u0902\u091A\u094D|\u0930\u0915\u094D|\u0923\u0924\u094D| \u0906\u0923|\u0932\u093E |\u0938\u094D\u0925|\u0930\u0940\u092F|\u0940\u0924 |\u0902\u0928\u093E|\u0924 \u0935|\u094D\u0935 |\u0915 \u0935|\u0923\u0947 |\u093E\u091A\u0947|\u0928 \u0915|\u0924 \u0915|\u0930\u0924\u093E|\u094D\u0930\u093E|\u092F\u093E\u0939|\u094D\u0924 |\u091A\u0940 |\u092F \u0915|\u0926\u094D\u0927|\u094D\u0935\u0924|\u092F\u0915\u094D|\u0923\u093F |\u0906\u0923\u093F|\u0938 \u0938|\u0902\u0927\u093E|\u0915 \u0938|\u091A\u094D\u091B|\u092F \u0905|\u0924 \u0938|\u0940\u0928\u0947|\u094B\u0923\u093E|\u0915\u0930\u0924|\u0924\u094D\u0935|\u0940\u0932 |\u0940 \u0905|\u0938\u093E\u0930|\u0930 \u0935|\u092D\u093E\u0935|\u0935 \u0924|\u0925\u0935\u093E|\u0905\u0925\u0935| \u0905\u0925|\u0947 \u0924|\u0947 \u091C|\u092F\u093E\u092F|\u0902\u091A\u093E|\u0947\u0932\u094D|\u093E\u0928\u0947|\u0947\u0923\u094D|\u0915 \u0906|\u0915\u094D\u0915|\u0939\u0915\u094D| \u0939\u0915|\u0923 \u092E|\u0902\u0930\u0915|\u0938\u0902\u0930|\u0928\u094D\u092F|\u093E\u092F\u0926|\u093E \u0924|\u0924 \u0906| \u0909\u092A|\u0935\u0938\u094D|\u093F\u0935\u093E|\u0947\u0936\u093E|\u0938\u093E\u092E|\u0947 \u092F|\u0947 \u0906|\u0940 \u0935|\u0935 \u092E|\u0924\u0940\u0928|\u0935 \u0906|\u0927\u094D\u092F| \u0905\u0936|\u0927\u093E\u0924|\u0915\u0943\u0924|\u094D\u0915 |\u0926\u094D\u092F|\u093F\u0924 |\u0938\u0932\u0947|\u0947\u0936 |\u0924\u094B |\u0947\u0932 |\u0924\u0940 |\u094D\u0924\u0940|\u0905\u0938\u0947|\u0907\u0924\u0930| \u0907\u0924|\u0938\u094D\u0924|\u0930\u094D\u0923|\u093E \u092C|\u0947\u0932\u0947| \u0915\u0947|\u0939\u0940\u0930|\u091C\u093E\u0939|\u093E \u091C|\u0947\u0924 |\u0942\u0930\u094D|\u092A\u0942\u0930|\u0947\u091A | \u0935\u093E|\u093E\u091C\u093E|\u0940 \u0938|\u0936\u093E |\u092F \u0935| \u0928\u094D|\u092F\u093E\u0935|\u0926\u094D\u0926|\u094D\u0927 |\u0930\u0942\u0928|\u092F\u0926\u094D|\u0915\u093E\u092F|\u093E \u0936|\u0917\u0923\u094D|\u0915 \u0915|\u0930\u093E\u0927| \u0936\u093E|\u092F\u0924\u094D|\u0932 \u0905|\u094D\u092F\u0935|\u0940 \u0915|\u093E\u0935 |\u093E \u092F|\u0924\u094D\u0924|\u091C\u093F\u0915|\u093E\u091C\u093F|\u0930\u0923\u093E| \u0927\u0930|\u093E \u0927|\u092D\u0947\u0926| \u092C\u093E|\u0930\u0915\u093E|\u094D\u0930\u0915|\u0915\u0947\u0932|\u093F \u0935|\u093F\u0937\u094D|\u0924\u0940\u0932|\u092F\u094B\u0917|\u0938\u093E\u0927|\u093E\u0902\u0924|\u0935\u093F\u0935|\u0936\u094D\u0930| \u0927\u0947| \u092E\u0941|\u0935\u0924\u0903",mai:"\u093E\u0915 |\u092A\u094D\u0930|\u0915\u093E\u0930| \u092A\u094D|\u093E\u0930 |\u093F\u0915\u093E|\u094D\u092F\u0915|\u0927\u093F\u0915|\u0915 \u0905|\u094D\u0930\u0924|\u094D\u0924\u093F|\u0935\u094D\u092F| \u0905\u0927|\u0947\u0901 |\u0905\u0927\u093F|\u093F\u0915 | \u0935\u094D|\u0906\u02BC | \u0906\u02BC|\u0915\u094D\u0924|\u092F\u0915\u094D|\u0924\u093F\u0915|\u0915\u0947\u0901|\u0915 \u0935|\u092C\u093E\u0915|\u0915 \u0938|\u091B\u0948\u0915| \u091B\u0948|\u0924\u094D\u092F|\u092E\u0947 |\u0947\u0915 | \u0938\u092E|\u0915\u094D\u0937|\u0939\u093F |\u0930\u0924\u094D|\u0930 \u091B|\u092F\u0947\u0915|\u094D\u092F\u0947|\u0928\u094D\u0924|\u0935\u093E |\u093F\u0915\u0947|\u0915\u0964 |\u0948\u0915\u0964|\u0964 \u092A| \u0905\u092A| \u0938\u094D| \u0935\u093F| \u091C\u093E|\u093F\u0924 |\u0938\u0901 | \u0939\u094B|\u0915\u094B\u0928| \u0915\u094B|\u0924\u094D\u0930|\u0938\u094D\u0935| \u0935\u093E|\u0915 \u0906|\u0937\u094D\u091F| \u0915\u0930|\u0905\u092A\u0928|\u092E\u093E\u0928| \u0915\u093E| \u0905\u0928|\u0924\u093F |\u094D\u0924\u094D|\u0928\u094B |\u0928\u0939\u093F| \u092A\u0930|\u091F\u094D\u0930|\u094D\u092F | \u090F\u0939|\u093F \u0915|\u094D\u091F\u094D|\u093E\u0937\u094D|\u0930\u093E\u0937| \u0930\u093E|\u0938\u092E\u093E|\u094B\u0928\u094B|\u0932 \u091C| \u0928\u0939|\u0924\u093E\u0915|\u093E\u0930\u094D|\u092A\u0928 |\u0924\u0928\u094D|\u0935\u0924\u0928|\u094D\u0935\u0924|\u094D\u0937\u093E| \u0915\u090F| \u0938\u093E|\u094D\u0930\u0940| \u0928\u093F|\u093E \u0906|\u093F\u0935\u093E| \u0938\u0902| \u0926\u0947|\u091C\u093E\u090F|\u0940\u092F |\u0915\u0930\u092C|\u0925\u093E |\u090F\u092C\u093E|\u093E \u092A|\u0928\u093E |\u094D\u0935\u093E|\u0926\u0947\u0936|\u0924\u0964 |\u0930\u0915 |\u0915 \u0939|\u0901 \u0905| \u0938\u092D| \u0906 |\u0924 \u0915|\u091A\u093F\u0924|\u094D\u0924 |\u0935\u093E\u0930|\u0924\u093E |\u093E\u0930\u0915|\u092E\u093E\u091C|\u093E \u0938|\u0930\u0940\u092F|\u0928\u094D\u092F|\u0930\u0924\u093E|\u093E\u0928 |\u094D\u0930\u093E|\u094D\u092F\u093E|\u0930\u0915\u094D|\u093E\u0930\u0923|\u092A\u0930\u093F|\u090F\u0932 |\u0915\u090F\u0932|\u0905\u0928\u094D|\u0930\u092C\u093E|\u0915 \u092A|\u0913\u0930 |\u0906\u0913\u0930| \u0906\u0913|\u0905\u091B\u093F| \u0905\u091B|\u093F\u0930\u094D|\u093E\u0928\u094D|\u0928\u0915 |\u0939\u094B\u090F|\u0915\u0930 |\u0927\u093E\u0930|\u0938\u094D\u0925|\u093E \u0905|\u093F\u092E\u0947|\u0930 \u0906|\u090F\u0939\u093F| \u090F\u0915|\u0947 \u0938|\u0924\u0925\u093E| \u0924\u0925| \u092E\u093E|\u093F\u0915\u094D|\u0936\u093F\u0915| \u0936\u093F|\u092A\u094D\u0924|\u0930\u094D\u0935|\u0928\u093F\u0930|\u091A\u094D\u091B|\u0930\u094D\u092F|\u0901 \u0938|\u0915 \u0915|\u0939\u094B |\u093E\u0939\u093F|\u090F\u0924\u0964|\u0930 \u092A|\u093E\u092E\u093E|\u0938\u093E\u092E|\u0937\u093E |\u02BC \u0938|\u0901 \u090F|\u0948\u0915 |\u0926\u094D\u0927|\u0930 \u0905|\u0915 \u091C|\u0938\u094D\u0924|\u093E\u092A\u094D|\u0901 \u0915| \u0938\u0915|\u092F\u0915 |\u0915\u093E\u0928|\u0939\u0928 |\u090F\u0939\u0928|\u0947\u0932 |\u094B\u090F\u0924|\u0924 \u0906|\u093E \u0935|\u0964 \u0915|\u094D\u0924\u0930|\u093E\u090F\u0924|\u094D\u0930\u0915|\u0939\u0941 |\u0915 \u0909|\u092A\u0942\u0930|\u0935\u093F\u0935|\u02BC \u0905|\u091B\u093F | \u0932\u0947|\u0928 \u092A|\u093E\u0938 |\u0930\u093E\u092A|\u0927\u0915 |\u092A\u090F\u092C| \u092A\u090F|\u0930\u093E |\u092F\u0924\u093E|\u0930\u0942\u092A|\u0928 \u0935| \u0915\u0947|\u0937\u093E\u0915|\u092F \u092A|\u0924 \u0939|\u091C\u093E\u0939| \u0913 |\u092D\u093E\u0935|\u092A\u0930 |\u0925\u0935\u093E|\u0905\u0925\u0935| \u0905\u0925|\u0938\u092E\u094D|\u091C\u093F\u0915|\u093E\u091C\u093F|\u0942\u0930\u094D|\u0930\u0924\u093F| \u0926\u094B|\u0938\u092D\u0915|\u0964 \u0938| \u091C\u0928|\u0938\u092D |\u092C\u093E\u0927|\u0905\u0928\u0941|\u093F\u0938\u0901| \u0938\u0939|\u0901 \u0935|\u090F \u0938|\u0930\u093F\u0935|\u0924\u0941 |\u0947\u0924\u0941|\u0939\u0947\u0924| \u0939\u0947|\u093E\u0927 |\u0947\u092C\u093E|\u0928 \u0938|\u093F\u0937\u094D|\u0930\u093E\u0927| \u0905\u0935|\u093F\u0924\u094D|\u0935\u093E\u0938|\u091A\u093E\u0930| \u0909\u091A|\u093E\u0930\u093E|\u0928 \u0915|\u0935\u0915 |\u093E \u0915|\u0928\u0942\u0928|\u093E\u0928\u0942|\u090F\u0924 |\u0930\u0940 |\u0947\u0913 |\u0915\u0947\u0913|\u0930\u0923 |\u094D\u0930\u0938|\u093F \u0926|\u0913 \u0935| \u092D\u0947|\u0928\u0939\u0941|\u094B\u0928\u0939|\u094D\u0925\u093F|\u092A\u0924\u094D|\u092E\u094D\u092A|\u0930\u093E\u091C| \u092D\u093E|\u0939\u093F\u092E| \u0939\u0915|\u093E\u092E\u0947|\u094D\u0923 |\u0930\u094D\u0923|\u0939\u093E\u0930|\u093F \u0938|\u0915 \u0926|\u0928 \u0905|\u0924 \u0905|\u0932\u0947\u092C| \u0905\u092D|\u093F\u0936\u094D|\u091C\u0915 |\u093E\u091C\u0915|\u0928 \u0906|\u0935\u093E\u0939|\u0915\u093E\u091C|\u0936\u094D\u092F|\u0935\u0938\u094D|\u0913\u0939\u093F| \u0913\u0939|\u092F\u094B\u0917|\u0964 \u090F|\u0915\u090F |\u0947 \u0913|\u0905\u092A\u0930",bho:" \u0915\u0947|\u0915\u0947 |\u0947 \u0915|\u093E\u0930 |\u0915\u093E\u0930|\u093F\u0915\u093E|\u0927\u093F\u0915|\u0905\u0927\u093F| \u0905\u0927|\u0913\u0930 |\u0906\u0913\u0930| \u0906\u0913|\u0947 \u0905|\u0947 \u0938|\u093E \u0915| \u0938\u0902|\u093F\u0915 |\u0930 \u0939|\u093E \u0938| \u0939\u094B|\u0930 \u0938|\u0947\u0902 |\u092E\u0947\u0902| \u092E\u0947| \u0915\u0930| \u0938\u0947|\u0928\u094B |\u0915\u094D\u0937|\u0938\u0947 | \u0915\u093E|\u0964 \u0938|\u0916\u0947 |\u093E\u0964 |\u0930\u093E | \u0938\u092E| \u0938\u092C|\u094D\u0930\u093E| \u0938\u0915|\u0930 \u0915|\u0928 \u0915|\u0935\u0947 |\u094C\u0928\u094B|\u0915\u094C\u0928| \u0915\u094C|\u091A\u093E\u0939| \u091A\u093E| \u092C\u093E|\u092A\u094D\u0930| \u092A\u094D|\u0925\u093E |\u093F \u0915|\u0924\u093F | \u091C\u093E| \u0938\u093E|\u0947 \u0906|\u092A\u0928 |\u0915\u0930\u0947|\u0924\u093E |\u0939\u094B\u0916|\u0924 \u0915|\u0947\u0964 |\u0947 \u092C|\u0924\u0925\u093E| \u0924\u0925| \u0906\u092A|\u0915\u0947\u0932|\u0938\u0915\u0947| \u0938\u094D|\u0930\u0947 |\u0938\u092C\u0939|\u0915\u0930 |\u0906\u092A\u0928|\u0947 \u0913|\u091C\u093E | \u092A\u0930|\u0937\u094D\u091F| \u0930\u093E|\u0928\u093E |\u0939\u0935\u0947| \u0939\u0935|\u0932\u093E |\u0947\u0932\u093E|\u092C\u0939\u093F| \u0913\u0915|\u094B\u0916\u0947|\u0930 \u092C|\u0939\u0964 | \u0939\u0964|\u0928 \u0938|\u093E\u0937\u094D|\u0930\u093E\u0937|\u094D\u0924 | \u0914\u0930|\u0947 \u091A|\u0964 \u0915|\u0938\u0902\u0917|\u0930 \u0906|\u091F\u094D\u0930|\u094D\u091F\u094D|\u0937\u093E |\u092E\u093E\u0928|\u093E \u0906|\u0902 \u0915|\u093E \u092A|\u094D\u0937\u093E|\u0930\u0915\u094D|\u0939\u0947 |\u093E\u0939\u0947|\u093E\u0924\u093F|\u093E\u0935\u0947| \u091C\u0947|\u0939\u0940 |\u0913\u0915\u0930|\u092E\u093F\u0932|\u093F\u0924 |\u094B \u0938|\u0932 \u091C|\u0907\u0916\u0947|\u0928\u0907\u0916| \u0928\u0907|\u0924\u094D\u0930|\u092E\u093E\u091C| \u092C\u093F|\u0935\u0947\u0964|\u0947 \u091C|\u0915 \u0938|\u093F\u0902 |\u0939\u093F\u0902|\u0915\u0930\u093E|\u0914\u0930 |\u0947 \u092E|\u0938\u092E\u093E|\u0939\u0941 | \u0913 |\u092A\u0930 |\u0947 \u0928|\u0938\u094D\u0925|\u0930\u0940\u092F|\u094D\u0930\u0940|\u0932\u093E\u0964|\u093E\u091C |\u093E\u0928 |\u0915\u093E\u0928|\u0947 \u0924|\u093F\u0930 |\u0924\u093F\u0930|\u0916\u093E\u0924| \u0916\u093E|\u0947 \u0909|\u0928\u0942\u0928|\u093E\u0928\u0942|\u093E\u092E | \u0938\u0941| \u0926\u0947|\u0940 \u0915| \u092E\u093E|\u0930 \u092E|\u092A\u094D\u0924|\u093F\u092F\u093E|\u093E\u0939\u0940|\u092C\u093E\u0964|\u092F\u094B\u0917|\u0940 \u0938|\u0932 \u0939|\u0942\u0928 |\u0935\u094D\u092F|\u0941 \u0915|\u090F \u0915|\u0947 \u0935|\u0902\u0924\u094D|\u0938\u094D\u0935|\u0915\u0947\u0939|\u0940\u092F |\u0916\u0932 |\u0938\u093E\u092E|\u092F\u0924\u093E|\u0924\u093F\u0915|\u0947 \u0939|\u093E\u092A\u094D|\u0930\u093E\u092A|\u0930 \u092A|\u0930 \u0905| \u0932\u094B| \u0938\u0939|\u091C\u0947 |\u094B\u0917 |\u092E \u0915|\u0932\u0947 | \u0928\u093F|\u0947\u0915\u0930|\u093E \u0939|\u092A\u0942\u0930|\u0930 \u0928|\u0947\u0939\u0941|\u094D\u092F |\u092F\u093E | \u092F\u093E|\u0926\u0947\u0936|\u0926\u0940 |\u093E \u092E|\u093E\u0935 | \u0926\u094B|\u0947 \u0926| \u092A\u093E|\u0939\u093F |\u093F\u0915\u094D|\u0936\u093F\u0915| \u0936\u093F|\u092C\u093E |\u093F\u0932 | \u0909\u092A|\u094D\u0930\u0924| \u0935\u093F| \u0939\u0940| \u0932\u0947|\u0930\u094B |\u0947 \u0916|\u0920\u0928 |\u0917\u0920\u0928|\u0902\u0917\u0920| \u092E\u093F|\u0937\u0923 |\u094D\u0937\u0923|\u0902\u0930\u0915|\u0938\u0902\u0930| \u0906\u0926| \u090F\u0915|\u0928\u0947 | \u0905\u092A|\u0924\u0902\u0924|\u0935\u0924\u0902|\u094D\u0935\u0924|\u094D\u0924\u0930|\u094D\u092F\u093E|\u0947\u0936 |\u093E\u0926\u0940|\u094D\u0924\u093F|\u091C\u093F\u0915|\u093E\u091C\u093F|\u0915 \u0906|\u094D\u092E |\u091A\u093E\u0930| \u0909\u091A| \u0936\u093E|\u0930\u0940 |\u093E\u0939 |\u092F\u093E\u0939|\u092C\u093F\u092F|\u091A\u093F\u0924|\u0915\u094D\u0924|\u092A\u092F\u094B|\u0909\u092A\u092F|\u0930\u0924\u093E|\u0930 \u0935|\u0928 \u092E|\u0932\u094B\u0917|\u0939 \u0915|\u0928 \u092A|\u0915\u093E\u092E| \u092A\u0942| \u0907 |\u0906\u0926\u093F|\u0908\u0932 | \u0915\u0908| \u0935\u094D|\u092E\u0940 |\u0941\u0930\u0915|\u0938\u0941\u0930| \u091C\u0940|\u0927\u093E\u0930|\u092F \u0938|\u0924\u0930\u094D|\u092D\u0947 |\u0938\u092D\u0947| \u0938\u092D|\u092D\u093E\u0935|\u094D\u0925\u093F|\u093E\u092E\u093E|\u0938\u0930 |\u0930\u094D\u092E| \u0915\u094B| \u092C\u0947|\u094B\u0938\u0930|\u0926\u094B\u0938|\u0923 \u0915|\u093E\u0938 |\u0947 \u092A|\u091C\u093E\u0926|\u0906\u091C\u093E| \u0906\u091C|\u0909\u091A\u093F|\u0917 \u0915|\u093E\u0930\u0940| \u091C\u0930|\u0917\u0947 |\u091C \u0915|\u0940 \u092C|\u0938\u0928 |\u0939\u094B |\u093E \u0924",npi:"\u0915\u094B |\u0928\u0947 | \u0930 |\u093E\u0930 |\u0915\u094D\u0924|\u0915\u093E\u0930|\u092A\u094D\u0930| \u092A\u094D|\u094D\u092F\u0915|\u0935\u094D\u092F| \u0917\u0930|\u093F\u0915\u093E| \u0935\u094D|\u094D\u0930\u0924|\u0927\u093F\u0915|\u094D\u0924\u093F|\u092F\u0915\u094D|\u0905\u0927\u093F| \u0905\u0927|\u093E\u0908 |\u092E\u093E |\u0932\u093E\u0908|\u0924\u094D\u092F|\u093F\u0915 | \u0964 | \u0938\u092E|\u0935\u093E | \u0935\u093E|\u0915 \u0935|\u094D\u0928\u0947|\u0930\u094D\u0928|\u0917\u0930\u094D|\u0928\u094D\u0924|\u091B \u0964|\u0924\u093F\u0932|\u0930\u0924\u094D|\u0924\u094D\u0930|\u0947\u0915 |\u092F\u0947\u0915|\u094D\u092F\u0947|\u093F\u0932\u093E|\u0930 \u0938|\u094B \u0938| \u0938\u094D|\u092E\u093E\u0928|\u0915\u094D\u0937| \u0935\u093F|\u0939\u0941\u0928|\u093E \u0938| \u0939\u0941| \u091B |\u0930 \u091B|\u094D\u0924\u094D|\u0938\u092E\u093E|\u0938\u094D\u0935|\u0964 \u092A| \u0938\u0902|\u0928\u0947\u091B|\u0941\u0928\u0947|\u0939\u0930\u0941|\u0924\u0928\u094D|\u0935\u0924\u0928|\u0947 \u0905|\u093F\u0928\u0947|\u094B \u0905|\u094D\u0935\u0924| \u0915\u093E|\u0947 \u091B|\u0917\u0930\u093F| \u0930\u093E|\u094D\u0930 |\u0924\u093F |\u093E\u0915\u094B| \u0915\u0941|\u0937\u094D\u091F|\u0928\u093E |\u0938\u094D\u0924|\u0915 \u0938|\u0941\u0928\u0948|\u0915\u0941\u0928|\u091F\u094D\u0930|\u0932\u0947 | \u0928\u093F|\u093E\u0928 |\u091B\u0948\u0928| \u091B\u0948|\u094D\u091F\u094D|\u093E\u0937\u094D|\u0930\u093E\u0937|\u0924\u093F\u0915|\u091B\u0964 |\u093E\u0930\u094D|\u0924\u093E |\u093F\u0924 |\u0928\u0948 |\u093E \u0905| \u0938\u093E|\u093E \u0935|\u0930\u0941 | \u092E\u093E| \u0905\u0928|\u093E \u0930|\u0930\u0924\u093E|\u0930 \u0930|\u0939\u0930\u0942|\u0947\u091B |\u093E \u092A|\u0930\u0915\u094D|\u094D\u0924 | \u092A\u0930|\u0925\u093E | \u0932\u093E|\u092A\u0930\u093F|\u0926\u0947\u0936|\u0938\u0915\u094B| \u092F\u0938|\u092E\u093E\u091C|\u093E\u092E\u093E|\u094D\u0930\u093E|\u093F\u0935\u093E|\u093E\u0939\u0930|\u094B \u092A|\u094D\u092F |\u0935\u093E\u0930|\u0928 \u0938|\u0964 \u0915|\u0928\u093F |\u094D\u0937\u093E| \u0924\u094D|\u0926\u094D\u0927|\u0930 \u0939|\u0924\u0925\u093E| \u0924\u0925|\u092F\u0938\u094D|\u094D\u092F\u0938|\u0930\u0940 |\u0930 \u0935|\u092A\u0928\u093F|\u0930\u093F\u0928|\u0902\u0930\u0915|\u0938\u0902\u0930|\u092D\u093E\u0935|\u0948 \u0935|\u0938\u092C\u0948| \u0938\u092C| \u0936\u093F| \u0938\u0939|\u0924\u093E\u0915|\u0947 \u0930|\u0924 \u0930|\u0932\u093E\u0917| \u0938\u0941|\u094D\u0937\u0923|\u0926\u094D\u0926| \u0905\u092A|\u0948\u0928 |\u094B \u0935|\u093F\u0915\u094D|\u093E\u0935 |\u0927\u093E\u0930|\u094D\u092F\u093E|\u094D\u0930\u093F|\u093E \u092D|\u090F\u0915\u094B|\u0930 \u092E|\u0928 \u0905|\u094B \u0932| \u0909\u0938|\u0936\u093F\u0915|\u093E\u0924\u094D|\u0938\u094D\u0925|\u0935\u093E\u0939|\u0942\u0930\u094D|\u0936\u094D\u092F|\u093F\u0924\u094D|\u0930\u0915\u094B|\u093E\u0930\u0915|\u0941\u0926\u094D|\u0924\u094B |\u094D\u0924\u094B|\u093E\u0909\u0928|\u0915\u093E\u0928|\u093F\u090F\u0915|\u093E \u0928| \u092A\u0928|\u0928\u0964 |\u0948\u0928\u0964|\u0915\u093E |\u0947\u091B\u0964| \u092D\u0947|\u0930\u094D\u092F|\u0938\u092E\u094D|\u0924\u094D\u092A|\u0938\u093E\u092E|\u0930\u093F\u092F|\u091A\u093E\u0930|\u0928\u093F\u091C|\u0941\u0928 |\u0917\u093F |\u093E\u0917\u093F|\u0909\u0938\u0915| \u092E\u0924| \u0905\u092D|\u092A\u0942\u0930|\u0930 \u0924| \u0938\u0915|\u0938\u093E\u0930|\u0930\u093E\u0927|\u092A\u0930\u093E|\u0905\u092A\u0930|\u0941\u0915\u094D|\u091C\u0915\u094B| \u0909\u092A|\u0930\u093E |\u093E\u0930\u093E|\u094D\u0935\u093E|\u0935\u093F\u0927|\u094D\u0928 |\u093E \u0924|\u0928 \u0917|\u0923\u0915\u094B| \u092A\u093E| \u0926\u093F|\u0915 \u0930|\u0930 \u092A|\u0905\u0928\u094D|\u092D\u0947\u0926|\u093E\u0930\u092E|\u094B \u0906| \u0905\u0930|\u091C\u093F\u0915|\u093E\u091C\u093F|\u093F\u092F |\u0937\u093E |\u093E\u091F |\u092C\u093E\u091F| \u092C\u093E|\u093F \u0930| \u091B\u0964|\u0924\u094D\u0935|\u0924 \u0938|\u0930\u0942 |\u091B \u0930|\u0930\u0915\u093E|\u0935\u093F\u0915|\u0930 \u0909|\u094B\u0917 |\u094D\u0926\u0947|\u0930\u093F\u0935|\u0938\u0915\u093F|\u0948 \u092A|\u0930\u0924\u093F|\u0905\u0928\u0941| \u0906\u0935|\u092F\u0941\u0915|\u093E \u0917|\u0928\u092E\u093E|\u092F\u094B\u0917|\u0917 \u0917|\u0915 \u0905|\u0926\u094D\u0935|\u094D\u0927 |\u0930\u0941\u0926| \u092C\u093F|\u0964 \u0938|\u0909\u0928\u0947|\u093E\u0928\u094D|\u093E \u092E|\u093F\u0915\u094B|\u0930\u094D\u0926|\u093E\u0930\u0940|\u094D\u0924\u0930|\u094B \u0939|\u0939\u093F\u0924| \u0926\u0947|\u0930\u093F\u0915|\u093E \u0915| \u0906\u0927|\u0930\u093E\u091C|\u0930\u094D\u092E|\u094D\u0923 |\u0930\u094D\u0923|\u093F \u0935|\u094D\u092F\u0935|\u0935\u093F\u091A|\u092C\u0948 |\u0938\u0939\u093F|\u0930\u094B\u091C|\u0930\u094D\u0938|\u0908 \u0909|\u094D\u092A |\u0930\u093E\u0924|\u0928\u093F\u0915|\u092E\u093F\u0915|\u091A\u094D\u091B|\u094D\u0925\u093E|\u0935\u093F\u0935|\u0915\u0924\u093E|\u0905\u092D\u093F|\u094D\u0927\u093E",mag:" \u0915\u0947|\u0915\u0947 |\u093E\u0930 | \u0939\u0908|\u0915\u093E\u0930|\u0908\u0964 |\u0939\u0908\u0964|\u093F\u0915\u093E|\u0947 \u0905|\u0927\u093F\u0915|\u0905\u0927\u093F| \u0905\u0927|\u0930 \u0939|\u0947 \u0915|\u0914\u0930 | \u0914\u0930|\u093E \u0915|\u0947 \u0938|\u0938\u092C | \u0938\u092C| \u0915\u0930|\u0947\u0902 |\u0925\u093E |\u092E\u0947\u0902| \u092E\u0947|\u0924\u0925\u093E| \u0924\u0925|\u093F\u0915 | \u0939\u094B| \u0938\u092E|\u0915\u094D\u0937|\u0928\u093E |\u092C \u0915|\u0930 \u0938| \u0938\u0902|\u093E \u0938|\u0915\u0930 | \u092D\u0940|\u0964 \u0938| \u0938\u093E| \u0938\u0947| \u0915\u093E| \u0905\u092A|\u094D\u0930\u093E|\u092A\u094D\u0930| \u092A\u094D|\u0938\u0947 |\u092D\u0940 | \u0915\u094B|\u0924 \u0915| \u092A\u0930|\u0930\u093E |\u0915 \u0939|\u092A\u0928 |\u0905\u092A\u0928| \u0938\u0915|\u092F\u093E |\u0924\u093F |\u0930 \u0915|\u0940 \u0915| \u092F\u093E|\u0915\u0930\u0947| \u091C\u093E|\u0930\u0947 | \u0913\u0915|\u094D\u0924 |\u0938\u0915 |\u0928\u094B |\u093E\u0928 |\u092E\u093E\u0928|\u0913\u0915\u0930|\u093E \u092A|\u0928 \u0915|\u0947\u0932 | \u0928\u093E|\u0964 \u0915|\u0930\u0915\u094D| \u0938\u094D|\u0939\u0940 |\u0939\u094B\u090F| \u090F\u0915|\u092A\u0930 |\u0926\u0940 |\u091F\u094D\u0930|\u0924\u093E |\u0935\u094D\u092F|\u0939\u0908 | \u0936\u093E|\u0947 \u0909| \u0926\u0947|\u0924\u094D\u0930|\u093E\u0926\u0940| \u0930\u093E| \u0939\u0940|\u0915\u093E\u0928|\u093F\u0924 |\u092E \u0915|\u0932 \u091C|\u093E\u092E |\u0940 \u0938|\u0947 \u092D|\u0928 \u0938|\u092E\u093E\u091C|\u0937\u094D\u091F|\u0937\u093E | \u0932\u0947|\u0915 \u0938|\u092C\u0947 |\u0935\u0947 |\u093E\u0935\u0947|\u092E\u093F\u0932|\u0930 \u092E|\u094D\u092F |\u093E \u0939|\u0932\u093E |\u092A\u094D\u0924|\u0928\u0942\u0928|\u093E\u0928\u0942|\u091C\u093E |\u0947\u0915\u0930|\u094D\u0937\u093E|\u094D\u0930\u0924|\u0902\u0924\u094D|\u0930 \u0914|\u094B\u0908 |\u0915\u094B\u0908|\u094D\u091F\u094D|\u093E\u0937\u094D|\u0930\u093E\u0937| \u092E\u093E|\u0930\u094B | \u091C\u0947|\u0915\u0930\u093E|\u094B\u090F |\u093E\u092A\u094D|\u0930\u093E\u092A|\u0938\u092E\u093E|\u0942\u0928 |\u094B \u0938|\u0938\u094D\u0935|\u094D\u0924\u093F|\u0938\u093E\u092E|\u094B\u0928\u094B|\u0915\u094B\u0928| \u0935\u094D|\u0930 \u0905|\u094D\u092E | \u0935\u093F| \u0938\u0939|\u0947 \u092E|\u0915\u094D\u0924|\u092F\u094B\u0917|\u0930 \u0935|\u0915\u093E\u092E|\u0932 \u0939| \u0928\u093F|\u0926\u0947\u0936|\u092A\u0942\u0930|\u0935\u093E\u0930| \u0907 |\u0902\u0930\u0915|\u0938\u0902\u0930|\u090F \u0915|\u0930 \u092A| \u0938\u0941|\u0924\u0902\u0924|\u0935\u0924\u0902|\u094D\u0935\u0924|\u093E \u092E|\u0935 \u0915|\u0947 \u0935|\u093E\u0925 |\u0938\u093E\u0925| \u0926\u094B|\u0939\u094B\u092C| \u092A\u093E|\u094B \u0915|\u0947 \u092C|\u094B\u0917 | \u0909\u092A|\u0938\u094D\u0924|\u092A\u0930\u093F|\u0928 \u092A|\u0947 \u0924|\u094D\u0924\u0930|\u0932\u0947\u0932|\u0947 \u0913|\u091A\u093E\u0939| \u091A\u093E|\u092F \u0915|\u0935\u093E |\u0947\u0936 |\u092F \u0938|\u0928 \u0939|\u0937\u0923 |\u093E \u092C|\u0964 \u0924|\u090F\u0915 |\u090F\u0932 |\u0940\u092F |\u0915\u0947\u0915|\u0947 \u0939|\u0930 \u0906|\u093F \u0915|\u0938\u094D\u0925|\u091C\u093F\u0915|\u093E\u091C\u093F|\u093E\u092E\u093E|\u0930\u0940\u092F|\u094D\u0930\u0940|\u0924\u093F\u0915|\u093E\u0924\u093F| \u092C\u093F|\u091A\u093E\u0930|\u0947 \u0906|\u093E\u0938 | \u0909\u091A|\u093E \u0924|\u092F\u0915\u094D|\u094D\u092F\u0915|\u093F\u0932 |\u092E\u092F |\u0938\u092E\u092F|\u0936\u093E\u0926|\u092A\u092F\u094B|\u0909\u092A\u092F|\u0947 \u0916|\u0930\u093F\u0935| \u092A\u0942|\u0947 \u0932|\u0947 \u091A|\u094C\u0928\u094B|\u0915\u094C\u0928| \u0915\u094C|\u0902 \u0915|\u0938\u0902\u0917|\u0928 \u0926|\u0902 \u0938|\u0923 \u092A|\u094D\u0937\u0923|\u0930 \u0928|\u0947 \u0928|\u094B \u092D|\u0915\u0930\u094B|\u093E \u0914|\u0930\u0924\u093E|\u093E\u0935 |\u092D\u093E\u0935|\u0915 \u0914|\u0930\u094D\u092E|\u094B\u0938\u0930|\u0926\u094B\u0938|\u0923 \u0915|\u0947 \u092A|\u0928 \u0914|\u092C \u0939|\u093F\u0915\u094D|\u0936\u093F\u0915| \u0936\u093F|\u093E\u092C\u0947|\u0928\u093F\u092F|\u091A\u093F\u0924|\u0909\u091A\u093F|\u093F\u0924\u094D|\u0917 \u0915|\u0947\u0964 |\u0924 \u0938|\u0940 \u0936|\u0902 \u0936|\u090F\u0915\u0930|\u0964 \u090F|\u0924\u0928 | \u0913 |\u0930\u0940 |\u094D\u0930 |\u091C\u0947 |\u0915 \u0915| \u0938\u0940|\u0938\u0928 |\u093F\u0935\u093E| \u0905\u0928|\u0942\u0930\u093E| \u092C\u091A|\u090F\u0964 | \u092C\u0947|\u0924 \u0939| \u0924\u0915| \u092E\u093F|\u0927\u093E\u0930|\u0925\u0935\u093E|\u0905\u0925\u0935| \u0905\u0925|\u093F\u0932\u093E|\u094D\u0935\u093E|\u093F \u092E| \u0906\u0926|\u0928\u0947 |\u0915\u090F\u0932| \u0915\u090F|\u094D\u092F\u093E"}}});function Q$(e,t={}){let r=[...t.whitelist||[],...t.only||[]],i=[...t.blacklist||[],...t.ignore||[]],n=t.minLength!==null&&t.minLength!==void 0?t.minLength:DB;if(!e||e.length<n)return ry();e=e.slice(0,NB);let a=PB(e,H$);return!a[0]||!(a[0]in yd)?!a[0]||a[1]===0||!eC(a[0],r,i)?ry():tC(a[0]):jB(e,RB(G$(e),yd[a[0]],r,i))}function jB(e,t){let r=t[0][1],i=e.length*X$-r,n=-1;for(;++n<t.length;)t[n][1]=1-(t[n][1]-r)/i||0;return t}function PB(e,t){let r=-1,i,n;for(n in t)if(gd.call(t,n)){let a=zB(e,t[n]);a>r&&(r=a,i=n)}return[i,r]}function zB(e,t){let r=e.match(t);return(r?r.length:0)/e.length||0}function RB(e,t,r,i){t=LB(t,r,i);let n=[],a;if(t)for(a in t)gd.call(t,a)&&n.push([a,MB(e,t[a])]);return n.length===0?ry():n.sort(FB)}function MB(e,t){let r=0,i=-1;for(;++i<e.length;){let n=e[i],a=X$;n[0]in t&&(a=n[1]-t[n[0]]-1,a<0&&(a=-a)),r+=a}return r}function LB(e,t,r){if(t.length===0&&r.length===0)return e;let i={},n;for(n in e)eC(n,t,r)&&(i[n]=e[n]);return i}function eC(e,t,r){return t.length===0&&r.length===0?!0:(t.length===0||t.includes(e))&&!r.includes(e)}function ry(){return tC("und")}function tC(e){return[[e,1]]}function FB(e,t){return e[1]-t[1]}var NB,DB,X$,gd,ml,yd,rC=ji(()=>{"use strict";J$();K$();Y$();NB=2048,DB=10,X$=300,gd={}.hasOwnProperty,yd={};for(ml in hd)if(gd.call(hd,ml)){let e=hd[ml],t;yd[ml]={};for(t in e)if(gd.call(e,t)){let r=e[t].split("|"),i={},n=r.length;for(;n--;)i[r[n]]=n;yd[ml][t]=i}}});var iC={};Or(iC,{detectLanguage:()=>Ka,detectLanguageDetails:()=>nC,estimateTokens:()=>rn,iso639_3_map:()=>ny});function vd(e,t){return e.match(t)?.length??0}function qB(e){return e.replace(/^---[ \t]*\r?\n[\s\S]*?\r?\n---[ \t]*(?:\r?\n|$)/,"").replace(/```[\s\S]*?```/g,"").replace(/`[^`]+`/g,"").replace(/<!--[\s\S]*?-->/g,"").replace(/<[^>]+>/g,"").replace(/\[([^\]]*)\]\([^)]+\)/g,"$1").replace(/https?:\/\/\S+/g,"").replace(/[#*`>_\-|{}[\]().,:;!?'"“”‘’]/g," ").replace(/\s+/g," ").trim()}function nC(e,t=.75){let r=qB(e),i=vd(r,/[\u3400-\u9fff\uf900-\ufaff]/g),n=vd(r,/[\u3040-\u30ff]/g),a=vd(r,/[\uac00-\ud7af]/g),o=vd(r,/[a-zA-Z]/g),s=i+n+a+o;if(s===0)return;let u=r.substring(0,5e3),c=u.length;if(s>=12||i+n+a>=2){let b=a/s,x=(n+i)/s,E=i/s;if(b>=.35)return{language:"ko",confidence:b,source:"script",sampleLength:c};if(n>0&&x>=.55)return{language:"ja",confidence:x,source:"script",sampleLength:c};if(n===0&&E>=.55)return{language:"zh-CN",confidence:E,source:"script",sampleLength:c}}let p=r.match(/[a-zA-Z]{2,}/g)?.length??0;if(!(o>=24||p>=4))return;let m=Q$(u).filter(([b])=>b!=="und");if(m.length===0)return;let[g,h]=m[0],y=m[1]?.[1]??0,v=h-y;if(!(h<t||v<.06))return{language:UB[g]||g,confidence:h,source:"franc",sampleLength:c,margin:v}}function Ka(e,t=.75){return nC(e,t)?.language}function rn(e){let t=0,r=0,i=0;for(let n of e)/[\u3400-\u9fff\uf900-\ufaff]/.test(n)?r++:n.charCodeAt(0)<=127?t++:i++;return Math.ceil(t/4+r*1.2+i/2)}var ny,UB,Ya=ji(()=>{"use strict";rC();ny={cmn:["zh","zh-cn","zh-tw","zh-hk"],eng:["en","en-us","en-gb"],jpn:["ja"],spa:["es"],fra:["fr"],deu:["de"],rus:["ru"],kor:["ko"],ita:["it"],por:["pt","pt-br"]},UB={eng:"en",cmn:"zh-CN",jpn:"ja",kor:"ko",fra:"fr",deu:"de",spa:"es",por:"pt",rus:"ru",ara:"ar",ita:"it"}});var $k=q((xpe,BN)=>{"use strict";var Tk=Object.defineProperty,ZW=Object.getOwnPropertyDescriptor,WW=Object.getOwnPropertyNames,GW=Object.prototype.hasOwnProperty,JW=(e,t)=>{for(var r in t)Tk(e,r,{get:t[r],enumerable:!0})},HW=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of WW(t))!GW.call(e,n)&&n!==r&&Tk(e,n,{get:()=>t[n],enumerable:!(i=ZW(t,n))||i.enumerable});return e},KW=e=>HW(Tk({},"__esModule",{value:!0}),e),UN={};JW(UN,{SYMBOL_FOR_REQ_CONTEXT:()=>qN,getContext:()=>YW});BN.exports=KW(UN);var qN=Symbol.for("@vercel/request-context");function YW(){return globalThis[qN]?.get?.()??{}}});var fu=q((Spe,ZN)=>{"use strict";var Ak=Object.defineProperty,XW=Object.getOwnPropertyDescriptor,QW=Object.getOwnPropertyNames,eG=Object.prototype.hasOwnProperty,tG=(e,t)=>{for(var r in t)Ak(e,r,{get:t[r],enumerable:!0})},rG=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of QW(t))!eG.call(e,n)&&n!==r&&Ak(e,n,{get:()=>t[n],enumerable:!(i=XW(t,n))||i.enumerable});return e},nG=e=>rG(Ak({},"__esModule",{value:!0}),e),VN={};tG(VN,{VercelOidcTokenError:()=>Ck});ZN.exports=nG(VN);var Ck=class extends Error{constructor(t,r){super(t),this.name="VercelOidcTokenError",this.cause=r}toString(){return this.cause?`${this.name}: ${this.message}: ${this.cause}`:`${this.name}: ${this.message}`}}});var HN=q((Ipe,JN)=>{"use strict";var iG=Object.create,xf=Object.defineProperty,aG=Object.getOwnPropertyDescriptor,oG=Object.getOwnPropertyNames,sG=Object.getPrototypeOf,lG=Object.prototype.hasOwnProperty,uG=(e,t)=>{for(var r in t)xf(e,r,{get:t[r],enumerable:!0})},WN=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of oG(t))!lG.call(e,n)&&n!==r&&xf(e,n,{get:()=>t[n],enumerable:!(i=aG(t,n))||i.enumerable});return e},Nk=(e,t,r)=>(r=e!=null?iG(sG(e)):{},WN(t||!e||!e.__esModule?xf(r,"default",{value:e,enumerable:!0}):r,e)),cG=e=>WN(xf({},"__esModule",{value:!0}),e),GN={};uG(GN,{findRootDir:()=>fG,getUserDataDir:()=>mG});JN.exports=cG(GN);var mu=Nk(require("path")),dG=Nk(require("fs")),Ok=Nk(require("os")),pG=fu();function fG(){try{let e=process.cwd();for(;e!==mu.default.dirname(e);){let t=mu.default.join(e,".vercel");if(dG.default.existsSync(t))return e;e=mu.default.dirname(e)}}catch{throw new pG.VercelOidcTokenError("Token refresh only supported in node server environments")}return null}function mG(){if(process.env.XDG_DATA_HOME)return process.env.XDG_DATA_HOME;switch(Ok.default.platform()){case"darwin":return mu.default.join(Ok.default.homedir(),"Library/Application Support");case"linux":return mu.default.join(Ok.default.homedir(),".local/share");case"win32":return process.env.LOCALAPPDATA?process.env.LOCALAPPDATA:null;default:return null}}});var rD=q((Epe,tD)=>{"use strict";var hG=Object.create,Sf=Object.defineProperty,gG=Object.getOwnPropertyDescriptor,yG=Object.getOwnPropertyNames,vG=Object.getPrototypeOf,bG=Object.prototype.hasOwnProperty,_G=(e,t)=>{for(var r in t)Sf(e,r,{get:t[r],enumerable:!0})},KN=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of yG(t))!bG.call(e,n)&&n!==r&&Sf(e,n,{get:()=>t[n],enumerable:!(i=gG(t,n))||i.enumerable});return e},YN=(e,t,r)=>(r=e!=null?hG(vG(e)):{},KN(t||!e||!e.__esModule?Sf(r,"default",{value:e,enumerable:!0}):r,e)),wG=e=>KN(Sf({},"__esModule",{value:!0}),e),XN={};_G(XN,{isValidAccessToken:()=>IG,readAuthConfig:()=>xG,writeAuthConfig:()=>SG});tD.exports=wG(XN);var hu=YN(require("fs")),QN=YN(require("path")),kG=If();function eD(){let e=(0,kG.getVercelDataDir)();if(!e)throw new Error(`Unable to find Vercel CLI data directory. Your platform: ${process.platform}. Supported: darwin, linux, win32.`);return QN.join(e,"auth.json")}function xG(){try{let e=eD();if(!hu.existsSync(e))return null;let t=hu.readFileSync(e,"utf8");return t?JSON.parse(t):null}catch{return null}}function SG(e){let t=eD(),r=QN.dirname(t);hu.existsSync(r)||hu.mkdirSync(r,{mode:504,recursive:!0}),hu.writeFileSync(t,JSON.stringify(e,null,2),{mode:384})}function IG(e){if(!e.token)return!1;if(typeof e.expiresAt!="number")return!0;let t=Math.floor(Date.now()/1e3);return e.expiresAt>=t}});var oD=q((Tpe,aD)=>{"use strict";var Pk=Object.defineProperty,EG=Object.getOwnPropertyDescriptor,TG=Object.getOwnPropertyNames,$G=Object.prototype.hasOwnProperty,CG=(e,t)=>{for(var r in t)Pk(e,r,{get:t[r],enumerable:!0})},AG=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of TG(t))!$G.call(e,n)&&n!==r&&Pk(e,n,{get:()=>t[n],enumerable:!(i=EG(t,n))||i.enumerable});return e},OG=e=>AG(Pk({},"__esModule",{value:!0}),e),nD={};CG(nD,{processTokenResponse:()=>zG,refreshTokenRequest:()=>PG});aD.exports=OG(nD);var Dk=require("os"),NG="https://vercel.com",DG="cl_HYyOPBNtFMfHhaUn9L4QPfTZz6TP47bp",iD=`@vercel/oidc node-${process.version} ${(0,Dk.platform)()} (${(0,Dk.arch)()}) ${(0,Dk.hostname)()}`,jk=null;async function jG(){if(jk)return jk;let e=`${NG}/.well-known/openid-configuration`,t=await fetch(e,{headers:{"user-agent":iD}});if(!t.ok)throw new Error("Failed to discover OAuth endpoints");let r=await t.json();if(!r||typeof r.token_endpoint!="string")throw new Error("Invalid OAuth discovery response");let i=r.token_endpoint;return jk=i,i}async function PG(e){let t=await jG();return await fetch(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","user-agent":iD},body:new URLSearchParams({client_id:DG,grant_type:"refresh_token",...e})})}async function zG(e){let t=await e.json();if(!e.ok){let r=typeof t=="object"&&t&&"error"in t?String(t.error):"Token refresh failed";return[new Error(r)]}return typeof t!="object"||t===null?[new Error("Invalid token response")]:typeof t.access_token!="string"?[new Error("Missing access_token in response")]:t.token_type!=="Bearer"?[new Error("Invalid token_type in response")]:typeof t.expires_in!="number"?[new Error("Missing expires_in in response")]:[null,t]}});var If=q(($pe,dD)=>{"use strict";var RG=Object.create,Ef=Object.defineProperty,MG=Object.getOwnPropertyDescriptor,LG=Object.getOwnPropertyNames,FG=Object.getPrototypeOf,UG=Object.prototype.hasOwnProperty,qG=(e,t)=>{for(var r in t)Ef(e,r,{get:t[r],enumerable:!0})},lD=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of LG(t))!UG.call(e,n)&&n!==r&&Ef(e,n,{get:()=>t[n],enumerable:!(i=MG(t,n))||i.enumerable});return e},uD=(e,t,r)=>(r=e!=null?RG(FG(e)):{},lD(t||!e||!e.__esModule?Ef(r,"default",{value:e,enumerable:!0}):r,e)),BG=e=>lD(Ef({},"__esModule",{value:!0}),e),cD={};qG(cD,{assertVercelOidcTokenResponse:()=>zk,findProjectInfo:()=>GG,getTokenPayload:()=>KG,getVercelCliToken:()=>ZG,getVercelDataDir:()=>VG,getVercelOidcToken:()=>WG,isExpired:()=>YG,loadToken:()=>HG,saveToken:()=>JG});dD.exports=BG(cD);var gu=uD(require("path")),ha=uD(require("fs")),Xo=fu(),Tf=HN(),Yo=rD(),sD=oD();function VG(){let e="com.vercel.cli",t=(0,Tf.getUserDataDir)();return t?gu.join(t,e):null}async function ZG(){let e=(0,Yo.readAuthConfig)();if(!e)return null;if((0,Yo.isValidAccessToken)(e))return e.token||null;if(!e.refreshToken)return(0,Yo.writeAuthConfig)({}),null;try{let t=await(0,sD.refreshTokenRequest)({refresh_token:e.refreshToken}),[r,i]=await(0,sD.processTokenResponse)(t);if(r||!i)return(0,Yo.writeAuthConfig)({}),null;let n={token:i.access_token,expiresAt:Math.floor(Date.now()/1e3)+i.expires_in};return i.refresh_token&&(n.refreshToken=i.refresh_token),(0,Yo.writeAuthConfig)(n),n.token??null}catch{return(0,Yo.writeAuthConfig)({}),null}}async function WG(e,t,r){let i=`https://api.vercel.com/v1/projects/${t}/token?source=vercel-oidc-refresh${r?`&teamId=${r}`:""}`,n=await fetch(i,{method:"POST",headers:{Authorization:`Bearer ${e}`}});if(!n.ok)throw new Xo.VercelOidcTokenError(`Failed to refresh OIDC token: ${n.statusText}`);let a=await n.json();return zk(a),a}function zk(e){if(!e||typeof e!="object")throw new TypeError("Vercel OIDC token is malformed. Expected an object. Please run `vc env pull` and try again");if(!("token"in e)||typeof e.token!="string")throw new TypeError("Vercel OIDC token is malformed. Expected a string-valued token property. Please run `vc env pull` and try again")}function GG(){let e=(0,Tf.findRootDir)();if(!e)throw new Xo.VercelOidcTokenError("Unable to find project root directory. Have you linked your project with `vc link?`");let t=gu.join(e,".vercel","project.json");if(!ha.existsSync(t))throw new Xo.VercelOidcTokenError("project.json not found, have you linked your project with `vc link?`");let r=JSON.parse(ha.readFileSync(t,"utf8"));if(typeof r.projectId!="string"&&typeof r.orgId!="string")throw new TypeError("Expected a string-valued projectId property. Try running `vc link` to re-link your project.");return{projectId:r.projectId,teamId:r.orgId}}function JG(e,t){let r=(0,Tf.getUserDataDir)();if(!r)throw new Xo.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let i=gu.join(r,"com.vercel.token",`${t}.json`),n=JSON.stringify(e);ha.mkdirSync(gu.dirname(i),{mode:504,recursive:!0}),ha.writeFileSync(i,n),ha.chmodSync(i,432)}function HG(e){let t=(0,Tf.getUserDataDir)();if(!t)throw new Xo.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let r=gu.join(t,"com.vercel.token",`${e}.json`);if(!ha.existsSync(r))return null;let i=JSON.parse(ha.readFileSync(r,"utf8"));return zk(i),i}function KG(e){let t=e.split(".");if(t.length!==3)throw new Xo.VercelOidcTokenError("Invalid token. Please run `vc env pull` and try again");let r=t[1].replace(/-/g,"+").replace(/_/g,"/"),i=r.padEnd(r.length+(4-r.length%4)%4,"=");return JSON.parse(Buffer.from(i,"base64").toString("utf8"))}function YG(e){return e.exp*1e3<Date.now()}});var mD=q((Cpe,fD)=>{"use strict";var Mk=Object.defineProperty,XG=Object.getOwnPropertyDescriptor,QG=Object.getOwnPropertyNames,eJ=Object.prototype.hasOwnProperty,tJ=(e,t)=>{for(var r in t)Mk(e,r,{get:t[r],enumerable:!0})},rJ=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of QG(t))!eJ.call(e,n)&&n!==r&&Mk(e,n,{get:()=>t[n],enumerable:!(i=XG(t,n))||i.enumerable});return e},nJ=e=>rJ(Mk({},"__esModule",{value:!0}),e),pD={};tJ(pD,{refreshToken:()=>iJ});fD.exports=nJ(pD);var Rk=fu(),ga=If();async function iJ(){let{projectId:e,teamId:t}=(0,ga.findProjectInfo)(),r=(0,ga.loadToken)(e);if(!r||(0,ga.isExpired)((0,ga.getTokenPayload)(r.token))){let i=await(0,ga.getVercelCliToken)();if(!i)throw new Rk.VercelOidcTokenError("Failed to refresh OIDC token: Log in to Vercel CLI and link your project with `vc link`");if(!e)throw new Rk.VercelOidcTokenError("Failed to refresh OIDC token: Try re-linking your project with `vc link`");if(r=await(0,ga.getVercelOidcToken)(i,e,t),!r)throw new Rk.VercelOidcTokenError("Failed to refresh OIDC token");(0,ga.saveToken)(r,e)}process.env.VERCEL_OIDC_TOKEN=r.token}});var yD=q((Ape,gD)=>{"use strict";var Fk=Object.defineProperty,aJ=Object.getOwnPropertyDescriptor,oJ=Object.getOwnPropertyNames,sJ=Object.prototype.hasOwnProperty,lJ=(e,t)=>{for(var r in t)Fk(e,r,{get:t[r],enumerable:!0})},uJ=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of oJ(t))!sJ.call(e,n)&&n!==r&&Fk(e,n,{get:()=>t[n],enumerable:!(i=aJ(t,n))||i.enumerable});return e},cJ=e=>uJ(Fk({},"__esModule",{value:!0}),e),hD={};lJ(hD,{getVercelOidcToken:()=>fJ,getVercelOidcTokenSync:()=>Lk});gD.exports=cJ(hD);var dJ=$k(),pJ=fu();async function fJ(){let e="",t;try{e=Lk()}catch(r){t=r}try{let[{getTokenPayload:r,isExpired:i},{refreshToken:n}]=await Promise.all([await Promise.resolve().then(()=>ve(If())),await Promise.resolve().then(()=>ve(mD()))]);(!e||i(r(e)))&&(await n(),e=Lk())}catch(r){let i=t instanceof Error?t.message:"";throw r instanceof Error&&(i=`${i}
|
|
166
|
+
${r.message}`),i?new pJ.VercelOidcTokenError(i):r}return e}function Lk(){let e=(0,dJ.getContext)().headers?.["x-vercel-oidc-token"]??process.env.VERCEL_OIDC_TOKEN;if(!e)throw new Error("The 'x-vercel-oidc-token' header is missing from the request. Do you have the OIDC option enabled in the Vercel project settings?");return e}});var qk=q((Ope,_D)=>{"use strict";var Uk=Object.defineProperty,mJ=Object.getOwnPropertyDescriptor,hJ=Object.getOwnPropertyNames,gJ=Object.prototype.hasOwnProperty,yJ=(e,t)=>{for(var r in t)Uk(e,r,{get:t[r],enumerable:!0})},vJ=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of hJ(t))!gJ.call(e,n)&&n!==r&&Uk(e,n,{get:()=>t[n],enumerable:!(i=mJ(t,n))||i.enumerable});return e},bJ=e=>vJ(Uk({},"__esModule",{value:!0}),e),bD={};yJ(bD,{getContext:()=>_J.getContext,getVercelOidcToken:()=>vD.getVercelOidcToken,getVercelOidcTokenSync:()=>vD.getVercelOidcTokenSync});_D.exports=bJ(bD);var vD=yD(),_J=$k()});var oz=q((cye,fY)=>{fY.exports={name:"dotenv",version:"17.3.1",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run tests/**/*.js --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run tests/**/*.js --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},homepage:"https://github.com/motdotla/dotenv#readme",funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var pz=q((dye,Mn)=>{"use strict";var ux=require("fs"),Lf=require("path"),mY=require("os"),hY=require("crypto"),gY=oz(),cx=gY.version,sz=["\u{1F510} encrypt with Dotenvx: https://dotenvx.com","\u{1F510} prevent committing .env to code: https://dotenvx.com/precommit","\u{1F510} prevent building .env in docker: https://dotenvx.com/prebuild","\u{1F916} agentic secret storage: https://dotenvx.com/as2","\u26A1\uFE0F secrets for agents: https://dotenvx.com/as2","\u{1F6E1}\uFE0F auth for agents: https://vestauth.com","\u{1F6E0}\uFE0F run anywhere with `dotenvx run -- yourcommand`","\u2699\uFE0F specify custom .env file path with { path: '/custom/path/.env' }","\u2699\uFE0F enable debug logging with { debug: true }","\u2699\uFE0F override existing env vars with { override: true }","\u2699\uFE0F suppress all logs with { quiet: true }","\u2699\uFE0F write to custom object with { processEnv: myObject }","\u2699\uFE0F load multiple .env files with { path: ['.env.local', '.env'] }"];function yY(){return sz[Math.floor(Math.random()*sz.length)]}function as(e){return typeof e=="string"?!["false","0","no","off",""].includes(e.toLowerCase()):!!e}function vY(){return process.stdout.isTTY}function bY(e){return vY()?`\x1B[2m${e}\x1B[0m`:e}var _Y=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function wY(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
|
|
167
|
+
`);let i;for(;(i=_Y.exec(r))!=null;){let n=i[1],a=i[2]||"";a=a.trim();let o=a[0];a=a.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),o==='"'&&(a=a.replace(/\\n/g,`
|
|
168
|
+
`),a=a.replace(/\\r/g,"\r")),t[n]=a}return t}function kY(e){e=e||{};let t=dz(e);e.path=t;let r=ct.configDotenv(e);if(!r.parsed){let o=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw o.code="MISSING_DATA",o}let i=cz(e).split(","),n=i.length,a;for(let o=0;o<n;o++)try{let s=i[o].trim(),u=SY(r,s);a=ct.decrypt(u.ciphertext,u.key);break}catch(s){if(o+1>=n)throw s}return ct.parse(a)}function xY(e){console.error(`[dotenv@${cx}][WARN] ${e}`)}function ku(e){console.log(`[dotenv@${cx}][DEBUG] ${e}`)}function uz(e){console.log(`[dotenv@${cx}] ${e}`)}function cz(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function SY(e,t){let r;try{r=new URL(t)}catch(s){if(s.code==="ERR_INVALID_URL"){let u=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw u.code="INVALID_DOTENV_KEY",u}throw s}let i=r.password;if(!i){let s=new Error("INVALID_DOTENV_KEY: Missing key part");throw s.code="INVALID_DOTENV_KEY",s}let n=r.searchParams.get("environment");if(!n){let s=new Error("INVALID_DOTENV_KEY: Missing environment part");throw s.code="INVALID_DOTENV_KEY",s}let a=`DOTENV_VAULT_${n.toUpperCase()}`,o=e.parsed[a];if(!o){let s=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${a} in your .env.vault file.`);throw s.code="NOT_FOUND_DOTENV_ENVIRONMENT",s}return{ciphertext:o,key:i}}function dz(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)ux.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=Lf.resolve(process.cwd(),".env.vault");return ux.existsSync(t)?t:null}function lz(e){return e[0]==="~"?Lf.join(mY.homedir(),e.slice(1)):e}function IY(e){let t=as(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),r=as(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);(t||!r)&&uz("Loading env from encrypted .env.vault");let i=ct._parseVault(e),n=process.env;return e&&e.processEnv!=null&&(n=e.processEnv),ct.populate(n,i,e),{parsed:i}}function EY(e){let t=Lf.resolve(process.cwd(),".env"),r="utf8",i=process.env;e&&e.processEnv!=null&&(i=e.processEnv);let n=as(i.DOTENV_CONFIG_DEBUG||e&&e.debug),a=as(i.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?r=e.encoding:n&&ku("No encoding is specified. UTF-8 is used by default");let o=[t];if(e&&e.path)if(!Array.isArray(e.path))o=[lz(e.path)];else{o=[];for(let d of e.path)o.push(lz(d))}let s,u={};for(let d of o)try{let p=ct.parse(ux.readFileSync(d,{encoding:r}));ct.populate(u,p,e)}catch(p){n&&ku(`Failed to load ${d} ${p.message}`),s=p}let c=ct.populate(i,u,e);if(n=as(i.DOTENV_CONFIG_DEBUG||n),a=as(i.DOTENV_CONFIG_QUIET||a),n||!a){let d=Object.keys(c).length,p=[];for(let f of o)try{let m=Lf.relative(process.cwd(),f);p.push(m)}catch(m){n&&ku(`Failed to load ${f} ${m.message}`),s=m}uz(`injecting env (${d}) from ${p.join(",")} ${bY(`-- tip: ${yY()}`)}`)}return s?{parsed:u,error:s}:{parsed:u}}function TY(e){if(cz(e).length===0)return ct.configDotenv(e);let t=dz(e);return t?ct._configVault(e):(xY(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),ct.configDotenv(e))}function $Y(e,t){let r=Buffer.from(t.slice(-64),"hex"),i=Buffer.from(e,"base64"),n=i.subarray(0,12),a=i.subarray(-16);i=i.subarray(12,-16);try{let o=hY.createDecipheriv("aes-256-gcm",r,n);return o.setAuthTag(a),`${o.update(i)}${o.final()}`}catch(o){let s=o instanceof RangeError,u=o.message==="Invalid key length",c=o.message==="Unsupported state or unable to authenticate data";if(s||u){let d=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw d.code="INVALID_DOTENV_KEY",d}else if(c){let d=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw d.code="DECRYPTION_FAILED",d}else throw o}}function CY(e,t,r={}){let i=!!(r&&r.debug),n=!!(r&&r.override),a={};if(typeof t!="object"){let o=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw o.code="OBJECT_REQUIRED",o}for(let o of Object.keys(t))Object.prototype.hasOwnProperty.call(e,o)?(n===!0&&(e[o]=t[o],a[o]=t[o]),i&&ku(n===!0?`"${o}" is already defined and WAS overwritten`:`"${o}" is already defined and was NOT overwritten`)):(e[o]=t[o],a[o]=t[o]);return a}var ct={configDotenv:EY,_configVault:IY,_parseVault:kY,config:TY,decrypt:$Y,parse:wY,populate:CY};Mn.exports.configDotenv=ct.configDotenv;Mn.exports._configVault=ct._configVault;Mn.exports._parseVault=ct._parseVault;Mn.exports.config=ct.config;Mn.exports.decrypt=ct.decrypt;Mn.exports.parse=ct.parse;Mn.exports.populate=ct.populate;Mn.exports=ct});var Ni=ve(require("fs")),Uf=ve(require("path"));var Fx=ve(Lx(),1),{program:VY,createCommand:ZY,createArgument:WY,createOption:GY,CommanderError:JY,InvalidArgumentError:HY,InvalidOptionArgumentError:KY,Command:Ux,Argument:YY,Option:XY,Help:QY}=Fx.default;var kS=require("url"),Sa=require("path"),TS=require("url"),Qr=require("fs"),XR=ve(require("fs"),1),Zn=require("fs/promises"),Uu=require("events"),_m=ve(require("stream"),1),$S=require("string_decoder"),cS=(e,t,r)=>{let i=e instanceof RegExp?qx(e,r):e,n=t instanceof RegExp?qx(t,r):t,a=i!==null&&n!=null&&Gz(i,n,r);return a&&{start:a[0],end:a[1],pre:r.slice(0,a[0]),body:r.slice(a[0]+i.length,a[1]),post:r.slice(a[1]+n.length)}},qx=(e,t)=>{let r=t.match(e);return r?r[0]:null},Gz=(e,t,r)=>{let i,n,a,o,s,u=r.indexOf(e),c=r.indexOf(t,u+1),d=u;if(u>=0&&c>0){if(e===t)return[u,c];for(i=[],a=r.length;d>=0&&!s;){if(d===u)i.push(d),u=r.indexOf(e,d+1);else if(i.length===1){let p=i.pop();p!==void 0&&(s=[p,c])}else n=i.pop(),n!==void 0&&n<a&&(a=n,o=c),c=r.indexOf(t,d+1);d=u<c&&u>=0?u:c}i.length&&o!==void 0&&(s=[a,o])}return s},dS="\0SLASH"+Math.random()+"\0",pS="\0OPEN"+Math.random()+"\0",vm="\0CLOSE"+Math.random()+"\0",fS="\0COMMA"+Math.random()+"\0",mS="\0PERIOD"+Math.random()+"\0",Jz=new RegExp(dS,"g"),Hz=new RegExp(pS,"g"),Kz=new RegExp(vm,"g"),Yz=new RegExp(fS,"g"),Xz=new RegExp(mS,"g"),Qz=/\\\\/g,eR=/\\{/g,tR=/\\}/g,rR=/\\,/g,nR=/\\./g,iR=1e5;function um(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function aR(e){return e.replace(Qz,dS).replace(eR,pS).replace(tR,vm).replace(rR,fS).replace(nR,mS)}function oR(e){return e.replace(Jz,"\\").replace(Hz,"{").replace(Kz,"}").replace(Yz,",").replace(Xz,".")}function hS(e){if(!e)return[""];let t=[],r=cS("{","}",e);if(!r)return e.split(",");let{pre:i,body:n,post:a}=r,o=i.split(",");o[o.length-1]+="{"+n+"}";let s=hS(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}function sR(e,t={}){if(!e)return[];let{max:r=iR}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),gs(aR(e),r,!0).map(oR)}function lR(e){return"{"+e+"}"}function uR(e){return/^-?0\d/.test(e)}function cR(e,t){return e<=t}function dR(e,t){return e>=t}function gs(e,t,r){let i=[],n=cS("{","}",e);if(!n)return[e];let a=n.pre,o=n.post.length?gs(n.post,t,!1):[""];if(/\$$/.test(n.pre))for(let s=0;s<o.length&&s<t;s++){let u=a+"{"+n.body+"}"+o[s];i.push(u)}else{let s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),c=s||u,d=n.body.indexOf(",")>=0;if(!c&&!d)return n.post.match(/,(?!,).*\}/)?(e=n.pre+"{"+n.body+vm+n.post,gs(e,t,!0)):[e];let p;if(c)p=n.body.split(/\.\./);else if(p=hS(n.body),p.length===1&&p[0]!==void 0&&(p=gs(p[0],t,!1).map(lR),p.length===1))return o.map(m=>n.pre+p[0]+m);let f;if(c&&p[0]!==void 0&&p[1]!==void 0){let m=um(p[0]),g=um(p[1]),h=Math.max(p[0].length,p[1].length),y=p.length===3&&p[2]!==void 0?Math.abs(um(p[2])):1,v=cR;g<m&&(y*=-1,v=dR);let _=p.some(uR);f=[];for(let b=m;v(b,g);b+=y){let x;if(u)x=String.fromCharCode(b),x==="\\"&&(x="");else if(x=String(b),_){let E=h-x.length;if(E>0){let k=new Array(E+1).join("0");b<0?x="-"+k+x.slice(1):x=k+x}}f.push(x)}}else{f=[];for(let m=0;m<p.length;m++)f.push.apply(f,gs(p[m],t,!1))}for(let m=0;m<f.length;m++)for(let g=0;g<o.length&&i.length<t;g++){let h=a+f[m]+o[g];(!r||c||h)&&i.push(h)}}return i}var Ru=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},pR={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},cs=e=>e.replace(/[[\]\\-]/g,"\\$&"),fR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Bx=e=>e.join(""),mR=(e,t)=>{let r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let i=[],n=[],a=r+1,o=!1,s=!1,u=!1,c=!1,d=r,p="";e:for(;a<e.length;){let g=e.charAt(a);if((g==="!"||g==="^")&&a===r+1){c=!0,a++;continue}if(g==="]"&&o&&!u){d=a+1;break}if(o=!0,g==="\\"&&!u){u=!0,a++;continue}if(g==="["&&!u){for(let[h,[y,v,_]]of Object.entries(pR))if(e.startsWith(h,a)){if(p)return["$.",!1,e.length-r,!0];a+=h.length,_?n.push(y):i.push(y),s=s||v;continue e}}if(u=!1,p){g>p?i.push(cs(p)+"-"+cs(g)):g===p&&i.push(cs(g)),p="",a++;continue}if(e.startsWith("-]",a+1)){i.push(cs(g+"-")),a+=2;continue}if(e.startsWith("-",a+1)){p=g,a+=2;continue}i.push(cs(g)),a++}if(d<a)return["",!1,0,!1];if(!i.length&&!n.length)return["$.",!1,e.length-r,!0];if(n.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!c){let g=i[0].length===2?i[0].slice(-1):i[0];return[fR(g),!1,d-r,!1]}let f="["+(c?"^":"")+Bx(i)+"]",m="["+(c?"":"^")+Bx(n)+"]";return[i.length&&n.length?"("+f+"|"+m+")":i.length?f:m,s,d-r,!0]},xa=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!0}={})=>r?t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):t?e.replace(/\[([^\/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1"),hR=new Set(["!","?","+","*","@"]),Vx=e=>hR.has(e),gR="(?!(?:^|/)\\.\\.?(?:$|/))",Tu="(?!\\.)",yR=new Set(["[","."]),vR=new Set(["..","."]),bR=new Set("().*{}+?[]^$\\!"),_R=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),bm="[^/]",Zx=bm+"*?",Wx=bm+"+?",gS=class ur{type;#e;#r;#i=!1;#t=[];#n;#h;#f;#l=!1;#s;#c;#d=!1;constructor(t,r,i={}){this.type=t,t&&(this.#r=!0),this.#n=r,this.#e=this.#n?this.#n.#e:this,this.#s=this.#e===this?i:this.#e.#s,this.#f=this.#e===this?[]:this.#e.#f,t==="!"&&!this.#e.#l&&this.#f.push(this),this.#h=this.#n?this.#n.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let t of this.#t)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#c!==void 0?this.#c:this.type?this.#c=this.type+"("+this.#t.map(t=>String(t)).join("|")+")":this.#c=this.#t.map(t=>String(t)).join("")}#u(){if(this!==this.#e)throw new Error("should only call on root");if(this.#l)return this;this.toString(),this.#l=!0;let t;for(;t=this.#f.pop();){if(t.type!=="!")continue;let r=t,i=r.#n;for(;i;){for(let n=r.#h+1;!i.type&&n<i.#t.length;n++)for(let a of t.#t){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(i.#t[n])}r=i,i=r.#n}}return this}push(...t){for(let r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof ur&&r.#n===this))throw new Error("invalid part: "+r);this.#t.push(r)}}toJSON(){let t=this.type===null?this.#t.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#l&&this.#n?.type==="!")&&t.push({}),t}isStart(){if(this.#e===this)return!0;if(!this.#n?.isStart())return!1;if(this.#h===0)return!0;let t=this.#n;for(let r=0;r<this.#h;r++){let i=t.#t[r];if(!(i instanceof ur&&i.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();let t=this.#n?this.#n.#t.length:0;return this.#h===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let r=new ur(this.type,t);for(let i of this.#t)r.copyIn(i);return r}static#o(t,r,i,n){let a=!1,o=!1,s=-1,u=!1;if(r.type===null){let m=i,g="";for(;m<t.length;){let h=t.charAt(m++);if(a||h==="\\"){a=!a,g+=h;continue}if(o){m===s+1?(h==="^"||h==="!")&&(u=!0):h==="]"&&!(m===s+2&&u)&&(o=!1),g+=h;continue}else if(h==="["){o=!0,s=m,u=!1,g+=h;continue}if(!n.noext&&Vx(h)&&t.charAt(m)==="("){r.push(g),g="";let y=new ur(h,r);m=ur.#o(t,y,m,n),r.push(y);continue}g+=h}return r.push(g),m}let c=i+1,d=new ur(null,r),p=[],f="";for(;c<t.length;){let m=t.charAt(c++);if(a||m==="\\"){a=!a,f+=m;continue}if(o){c===s+1?(m==="^"||m==="!")&&(u=!0):m==="]"&&!(c===s+2&&u)&&(o=!1),f+=m;continue}else if(m==="["){o=!0,s=c,u=!1,f+=m;continue}if(Vx(m)&&t.charAt(c)==="("){d.push(f),f="";let g=new ur(m,d);d.push(g),c=ur.#o(t,g,c,n);continue}if(m==="|"){d.push(f),f="",p.push(d),d=new ur(null,r);continue}if(m===")")return f===""&&r.#t.length===0&&(r.#d=!0),d.push(f),f="",r.push(...p,d),c;f+=m}return r.type=null,r.#r=void 0,r.#t=[t.substring(i-1)],c}static fromGlob(t,r={}){let i=new ur(null,void 0,r);return ur.#o(t,i,0,r),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let t=this.toString(),[r,i,n,a]=this.toRegExpSource();if(!(n||this.#r||this.#s.nocase&&!this.#s.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;let o=(this.#s.nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,o),{_src:r,_glob:t})}get options(){return this.#s}toRegExpSource(t){let r=t??!!this.#s.dot;if(this.#e===this&&this.#u(),!this.type){let u=this.isStart()&&this.isEnd()&&!this.#t.some(f=>typeof f!="string"),c=this.#t.map(f=>{let[m,g,h,y]=typeof f=="string"?ur.#w(f,this.#r,u):f.toRegExpSource(t);return this.#r=this.#r||h,this.#i=this.#i||y,m}).join(""),d="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&vR.has(this.#t[0]))){let f=yR,m=r&&f.has(c.charAt(0))||c.startsWith("\\.")&&f.has(c.charAt(2))||c.startsWith("\\.\\.")&&f.has(c.charAt(4)),g=!r&&!t&&f.has(c.charAt(0));d=m?gR:g?Tu:""}let p="";return this.isEnd()&&this.#e.#l&&this.#n?.type==="!"&&(p="(?:$|\\/)"),[d+c+p,xa(c),this.#r=!!this.#r,this.#i]}let i=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",a=this.#g(r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){let u=this.toString();return this.#t=[u],this.type=null,this.#r=void 0,[u,xa(this.toString()),!1,!1]}let o=!i||t||r||!Tu?"":this.#g(!0);o===a&&(o=""),o&&(a=`(?:${a})(?:${o})*?`);let s="";if(this.type==="!"&&this.#d)s=(this.isStart()&&!r?Tu:"")+Wx;else{let u=this.type==="!"?"))"+(this.isStart()&&!r&&!t?Tu:"")+Zx+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;s=n+a+u}return[s,xa(a),this.#r=!!this.#r,this.#i]}#g(t){return this.#t.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[i,n,a,o]=r.toRegExpSource(t);return this.#i=this.#i||o,i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#w(t,r,i=!1){let n=!1,a="",o=!1,s=!1;for(let u=0;u<t.length;u++){let c=t.charAt(u);if(n){n=!1,a+=(bR.has(c)?"\\":"")+c;continue}if(c==="*"){if(s)continue;s=!0,a+=i&&/^[*]+$/.test(t)?Wx:Zx,r=!0;continue}else s=!1;if(c==="\\"){u===t.length-1?a+="\\\\":n=!0;continue}if(c==="["){let[d,p,f,m]=mR(t,u);if(f){a+=d,o=o||p,u+=f-1,r=r||m;continue}}if(c==="?"){a+=bm,r=!0;continue}a+=_R(c)}return[a,xa(t),!!r,o]}},yS=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),zt=(e,t,r={})=>(Ru(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Bn(t,r).match(e)),wR=/^\*+([^+@!?\*\[\(]*)$/,kR=e=>t=>!t.startsWith(".")&&t.endsWith(e),xR=e=>t=>t.endsWith(e),SR=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),IR=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),ER=/^\*+\.\*+$/,TR=e=>!e.startsWith(".")&&e.includes("."),$R=e=>e!=="."&&e!==".."&&e.includes("."),CR=/^\.\*+$/,AR=e=>e!=="."&&e!==".."&&e.startsWith("."),OR=/^\*+$/,NR=e=>e.length!==0&&!e.startsWith("."),DR=e=>e.length!==0&&e!=="."&&e!=="..",jR=/^\?+([^+@!?\*\[\(]*)?$/,PR=([e,t=""])=>{let r=vS([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},zR=([e,t=""])=>{let r=bS([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},RR=([e,t=""])=>{let r=bS([e]);return t?i=>r(i)&&i.endsWith(t):r},MR=([e,t=""])=>{let r=vS([e]);return t?i=>r(i)&&i.endsWith(t):r},vS=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},bS=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},_S=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Gx={win32:{sep:"\\"},posix:{sep:"/"}},LR=_S==="win32"?Gx.win32.sep:Gx.posix.sep;zt.sep=LR;var Pt=Symbol("globstar **");zt.GLOBSTAR=Pt;var FR="[^/]",UR=FR+"*?",qR="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",BR="(?:(?!(?:\\/|^)\\.).)*?",VR=(e,t={})=>r=>zt(r,e,t);zt.filter=VR;var _r=(e,t={})=>Object.assign({},e,t),ZR=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return zt;let t=zt;return Object.assign((r,i,n={})=>t(r,i,_r(e,n)),{Minimatch:class extends t.Minimatch{constructor(r,i={}){super(r,_r(e,i))}static defaults(r){return t.defaults(_r(e,r)).Minimatch}},AST:class extends t.AST{constructor(r,i,n={}){super(r,i,_r(e,n))}static fromGlob(r,i={}){return t.AST.fromGlob(r,_r(e,i))}},unescape:(r,i={})=>t.unescape(r,_r(e,i)),escape:(r,i={})=>t.escape(r,_r(e,i)),filter:(r,i={})=>t.filter(r,_r(e,i)),defaults:r=>t.defaults(_r(e,r)),makeRe:(r,i={})=>t.makeRe(r,_r(e,i)),braceExpand:(r,i={})=>t.braceExpand(r,_r(e,i)),match:(r,i,n={})=>t.match(r,i,_r(e,n)),sep:t.sep,GLOBSTAR:Pt})};zt.defaults=ZR;var wS=(e,t={})=>(Ru(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:sR(e,{max:t.braceExpandMax}));zt.braceExpand=wS;var WR=(e,t={})=>new Bn(e,t).makeRe();zt.makeRe=WR;var GR=(e,t,r={})=>{let i=new Bn(t,r);return e=e.filter(n=>i.match(n)),i.options.nonull&&!e.length&&e.push(t),e};zt.match=GR;var Jx=/[?*]|[+@!]\(.*?\)|\[|\]/,JR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Bn=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){Ru(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||_S,this.isWindows=this.platform==="win32";let r="allowWindowsEscape";this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t[r]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...n)=>console.error(...n)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(n=>this.slashSplit(n));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let i=this.globParts.map((n,a,o)=>{if(this.isWindows&&this.windowsNoMagicRoot){let s=n[0]===""&&n[1]===""&&(n[2]==="?"||!Jx.test(n[2]))&&!Jx.test(n[3]),u=/^[a-z]:/i.test(n[0]);if(s)return[...n.slice(0,4),...n.slice(4).map(c=>this.parse(c))];if(u)return[n[0],...n.slice(1).map(c=>this.parse(c))]}return n.map(s=>this.parse(s))});if(this.debug(this.pattern,i),this.set=i.filter(n=>n.indexOf(!1)===-1),this.isWindows)for(let n=0;n<this.set.length;n++){let a=this.set[n];a[0]===""&&a[1]===""&&this.globParts[n][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let r=0;r<e.length;r++)for(let i=0;i<e[r].length;i++)e[r][i]==="**"&&(e[r][i]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let r=-1;for(;(r=t.indexOf("**",r+1))!==-1;){let i=r;for(;t[i+1]==="**";)i++;i!==r&&t.splice(r,i-r)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((r,i)=>{let n=r[r.length-1];return i==="**"&&n==="**"?r:i===".."&&n&&n!==".."&&n!=="."&&n!=="**"?(r.pop(),r):(r.push(i),r)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let i=1;i<e.length-1;i++){let n=e[i];i===1&&n===""&&e[0]===""||(n==="."||n==="")&&(t=!0,e.splice(i,1),i--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let r=0;for(;(r=e.indexOf("..",r+1))!==-1;){let i=e[r-1];i&&i!=="."&&i!==".."&&i!=="**"&&(t=!0,e.splice(r-1,2),r-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let r of e){let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let a=i;for(;r[a+1]==="**";)a++;a>i&&r.splice(i+1,a-i);let o=r[i+1],s=r[i+2],u=r[i+3];if(o!==".."||!s||s==="."||s===".."||!u||u==="."||u==="..")continue;t=!0,r.splice(i,1);let c=r.slice(0);c[i]="**",e.push(c),i--}if(!this.preserveMultipleSlashes){for(let a=1;a<r.length-1;a++){let o=r[a];a===1&&o===""&&r[0]===""||(o==="."||o==="")&&(t=!0,r.splice(a,1),a--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(t=!0,r.pop())}let n=0;for(;(n=r.indexOf("..",n+1))!==-1;){let a=r[n-1];if(a&&a!=="."&&a!==".."&&a!=="**"){t=!0;let o=n===1&&r[n+1]==="**"?["."]:[];r.splice(n-1,2,...o),r.length===0&&r.push(""),n-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let r=t+1;r<e.length;r++){let i=this.partsMatch(e[t],e[r],!this.preserveMultipleSlashes);if(i){e[t]=[],e[r]=i;break}}return e.filter(t=>t.length)}partsMatch(e,t,r=!1){let i=0,n=0,a=[],o="";for(;i<e.length&&n<t.length;)if(e[i]===t[n])a.push(o==="b"?t[n]:e[i]),i++,n++;else if(r&&e[i]==="**"&&t[n]===e[i+1])a.push(e[i]),i++;else if(r&&t[n]==="**"&&e[i]===t[n+1])a.push(t[n]),n++;else if(e[i]==="*"&&t[n]&&(this.options.dot||!t[n].startsWith("."))&&t[n]!=="**"){if(o==="b")return!1;o="a",a.push(e[i]),i++,n++}else if(t[n]==="*"&&e[i]&&(this.options.dot||!e[i].startsWith("."))&&e[i]!=="**"){if(o==="a")return!1;o="b",a.push(t[n]),i++,n++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,r=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)t=!t,r++;r&&(this.pattern=e.slice(r)),this.negate=t}matchOne(e,t,r=!1){let i=this.options;if(this.isWindows){let g=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),h=!g&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),y=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),v=!y&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),_=h?3:g?0:void 0,b=v?3:y?0:void 0;if(typeof _=="number"&&typeof b=="number"){let[x,E]=[e[_],t[b]];x.toLowerCase()===E.toLowerCase()&&(t[b]=x,b>_?t=t.slice(b):_>b&&(e=e.slice(_)))}}let{optimizationLevel:n=1}=this.options;n>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var a=0,o=0,s=e.length,u=t.length;a<s&&o<u;a++,o++){this.debug("matchOne loop");var c=t[o],d=e[a];if(this.debug(t,c,d),c===!1)return!1;if(c===Pt){this.debug("GLOBSTAR",[t,c,d]);var p=a,f=o+1;if(f===u){for(this.debug("** at the end");a<s;a++)if(e[a]==="."||e[a]===".."||!i.dot&&e[a].charAt(0)===".")return!1;return!0}for(;p<s;){var m=e[p];if(this.debug(`
|
|
169
|
+
globstar while`,e,p,t,f,m),this.matchOne(e.slice(p),t.slice(f),r))return this.debug("globstar found match!",p,s,m),!0;if(m==="."||m===".."||!i.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,p,t,f);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(r&&(this.debug(`
|
|
170
|
+
>>> no match, partial?`,e,p,t,f),p===s))}let g;if(typeof c=="string"?(g=d===c,this.debug("string match",c,d,g)):(g=c.test(d),this.debug("pattern match",c,d,g)),!g)return!1}if(a===s&&o===u)return!0;if(a===s)return r;if(o===u)return a===s-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return wS(this.pattern,this.options)}parse(e){Ru(e);let t=this.options;if(e==="**")return Pt;if(e==="")return"";let r,i=null;(r=e.match(OR))?i=t.dot?DR:NR:(r=e.match(wR))?i=(t.nocase?t.dot?IR:SR:t.dot?xR:kR)(r[1]):(r=e.match(jR))?i=(t.nocase?t.dot?zR:PR:t.dot?RR:MR)(r):(r=e.match(ER))?i=t.dot?$R:TR:(r=e.match(CR))&&(i=AR);let n=gS.fromGlob(e,this.options).toMMPattern();return i&&typeof n=="object"&&Reflect.defineProperty(n,"test",{value:i}),n}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,r=t.noglobstar?UR:t.dot?qR:BR,i=new Set(t.nocase?["i"]:[]),n=e.map(s=>{let u=s.map(d=>{if(d instanceof RegExp)for(let p of d.flags.split(""))i.add(p);return typeof d=="string"?JR(d):d===Pt?Pt:d._src});u.forEach((d,p)=>{let f=u[p+1],m=u[p-1];d!==Pt||m===Pt||(m===void 0?f!==void 0&&f!==Pt?u[p+1]="(?:\\/|"+r+"\\/)?"+f:u[p]=r:f===void 0?u[p-1]=m+"(?:\\/|\\/"+r+")?":f!==Pt&&(u[p-1]=m+"(?:\\/|\\/"+r+"\\/)"+f,u[p+1]=Pt))});let c=u.filter(d=>d!==Pt);if(this.partial&&c.length>=1){let d=[];for(let p=1;p<=c.length;p++)d.push(c.slice(0,p).join("/"));return"(?:"+d.join("|")+")"}return c.join("/")}).join("|"),[a,o]=e.length>1?["(?:",")"]:["",""];n="^"+a+n+o+"$",this.partial&&(n="^(?:\\/|"+a+n.slice(1,-1)+o+")$"),this.negate&&(n="^(?!"+n+").+$");try{this.regexp=new RegExp(n,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let r=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let n=this.set;this.debug(this.pattern,"set",n);let a=i[i.length-1];if(!a)for(let o=i.length-2;!a&&o>=0;o--)a=i[o];for(let o=0;o<n.length;o++){let s=n[o],u=i;if(r.matchBase&&s.length===1&&(u=[a]),this.matchOne(u,s,t))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(e){return zt.defaults(e).Minimatch}};zt.AST=gS;zt.Minimatch=Bn;zt.escape=yS;zt.unescape=xa;var HR=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,xS=new Set,ym=typeof process=="object"&&process?process:{},SS=(e,t,r,i)=>{typeof ym.emitWarning=="function"?ym.emitWarning(e,t,r,i):console.error(`[${r}] ${t}: ${e}`)},Mu=globalThis.AbortController,Hx=globalThis.AbortSignal;if(typeof Mu>"u"){Hx=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(r,i){this._onabort.push(i)}},Mu=class{constructor(){t()}signal=new Hx;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let i of this.signal._onabort)i(r);this.signal.onabort?.(r)}}};let e=ym.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,SS("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var KR=e=>!xS.has(e),qn=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),IS=e=>qn(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Pu:null:null,Pu=class extends Array{constructor(e){super(e),this.fill(0)}},YR=class ys{heap;length;static#e=!1;static create(t){let r=IS(t);if(!r)return[];ys.#e=!0;let i=new ys(t,r);return ys.#e=!1,i}constructor(t,r){if(!ys.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},Fu=class ES{#e;#r;#i;#t;#n;#h;#f;#l;get perf(){return this.#l}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#s;#c;#d;#u;#o;#g;#w;#y;#v;#E;#b;#x;#S;#m;#_;#k;#T;#a;#j;static unsafeExposeInternals(t){return{starts:t.#S,ttls:t.#m,autopurgeTimers:t.#_,sizes:t.#x,keyMap:t.#d,keyList:t.#u,valList:t.#o,next:t.#g,prev:t.#w,get head(){return t.#y},get tail(){return t.#v},free:t.#E,isBackgroundFetch:r=>t.#p(r),backgroundFetch:(r,i,n,a)=>t.#q(r,i,n,a),moveToTail:r=>t.#z(r),indexes:r=>t.#A(r),rindexes:r=>t.#O(r),isStale:r=>t.#I(r)}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#c}get size(){return this.#s}get fetchMethod(){return this.#h}get memoMethod(){return this.#f}get dispose(){return this.#i}get onInsert(){return this.#t}get disposeAfter(){return this.#n}constructor(t){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:a,updateAgeOnGet:o,updateAgeOnHas:s,allowStale:u,dispose:c,onInsert:d,disposeAfter:p,noDisposeOnSet:f,noUpdateTTL:m,maxSize:g=0,maxEntrySize:h=0,sizeCalculation:y,fetchMethod:v,memoMethod:_,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:x,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:k,ignoreFetchAbort:A,perf:$}=t;if($!==void 0&&typeof $?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#l=$??HR,r!==0&&!qn(r))throw new TypeError("max option must be a nonnegative integer");let T=r?IS(r):Array;if(!T)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=g,this.maxEntrySize=h||this.#r,this.sizeCalculation=y,this.sizeCalculation){if(!this.#r&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(_!==void 0&&typeof _!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#f=_,v!==void 0&&typeof v!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#h=v,this.#T=!!v,this.#d=new Map,this.#u=new Array(r).fill(void 0),this.#o=new Array(r).fill(void 0),this.#g=new T(r),this.#w=new T(r),this.#y=0,this.#v=0,this.#E=YR.create(r),this.#s=0,this.#c=0,typeof c=="function"&&(this.#i=c),typeof d=="function"&&(this.#t=d),typeof p=="function"?(this.#n=p,this.#b=[]):(this.#n=void 0,this.#b=void 0),this.#k=!!this.#i,this.#j=!!this.#t,this.#a=!!this.#n,this.noDisposeOnSet=!!f,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!E,this.allowStaleOnFetchAbort=!!k,this.ignoreFetchAbort=!!A,this.maxEntrySize!==0){if(this.#r!==0&&!qn(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!qn(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#V()}if(this.allowStale=!!u,this.noDeleteOnStaleGet=!!x,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!s,this.ttlResolution=qn(n)||n===0?n:1,this.ttlAutopurge=!!a,this.ttl=i||0,this.ttl){if(!qn(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#N()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let Y="LRU_CACHE_UNBOUNDED";KR(Y)&&(xS.add(Y),SS("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Y,ES))}}getRemainingTTL(t){return this.#d.has(t)?1/0:0}#N(){let t=new Pu(this.#e),r=new Pu(this.#e);this.#m=t,this.#S=r;let i=this.ttlAutopurge?new Array(this.#e):void 0;this.#_=i,this.#M=(o,s,u=this.#l.now())=>{if(r[o]=s!==0?u:0,t[o]=s,i?.[o]&&(clearTimeout(i[o]),i[o]=void 0),s!==0&&i){let c=setTimeout(()=>{this.#I(o)&&this.#C(this.#u[o],"expire")},s+1);c.unref&&c.unref(),i[o]=c}},this.#$=o=>{r[o]=t[o]!==0?this.#l.now():0},this.#D=(o,s)=>{if(t[s]){let u=t[s],c=r[s];if(!u||!c)return;o.ttl=u,o.start=c,o.now=n||a();let d=o.now-c;o.remainingTTL=u-d}};let n=0,a=()=>{let o=this.#l.now();if(this.ttlResolution>0){n=o;let s=setTimeout(()=>n=0,this.ttlResolution);s.unref&&s.unref()}return o};this.getRemainingTTL=o=>{let s=this.#d.get(o);if(s===void 0)return 0;let u=t[s],c=r[s];if(!u||!c)return 1/0;let d=(n||a())-c;return u-d},this.#I=o=>{let s=r[o],u=t[o];return!!u&&!!s&&(n||a())-s>u}}#$=()=>{};#D=()=>{};#M=()=>{};#I=()=>!1;#V(){let t=new Pu(this.#e);this.#c=0,this.#x=t,this.#R=r=>{this.#c-=t[r],t[r]=0},this.#L=(r,i,n,a)=>{if(this.#p(i))return 0;if(!qn(n))if(a){if(typeof a!="function")throw new TypeError("sizeCalculation must be a function");if(n=a(i,r),!qn(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#P=(r,i,n)=>{if(t[r]=i,this.#r){let a=this.#r-t[r];for(;this.#c>a;)this.#U(!0)}this.#c+=t[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#c)}}#R=t=>{};#P=(t,r,i)=>{};#L=(t,r,i,n)=>{if(i||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#A({allowStale:t=this.allowStale}={}){if(this.#s)for(let r=this.#v;!(!this.#F(r)||((t||!this.#I(r))&&(yield r),r===this.#y));)r=this.#w[r]}*#O({allowStale:t=this.allowStale}={}){if(this.#s)for(let r=this.#y;!(!this.#F(r)||((t||!this.#I(r))&&(yield r),r===this.#v));)r=this.#g[r]}#F(t){return t!==void 0&&this.#d.get(this.#u[t])===t}*entries(){for(let t of this.#A())this.#o[t]!==void 0&&this.#u[t]!==void 0&&!this.#p(this.#o[t])&&(yield[this.#u[t],this.#o[t]])}*rentries(){for(let t of this.#O())this.#o[t]!==void 0&&this.#u[t]!==void 0&&!this.#p(this.#o[t])&&(yield[this.#u[t],this.#o[t]])}*keys(){for(let t of this.#A()){let r=this.#u[t];r!==void 0&&!this.#p(this.#o[t])&&(yield r)}}*rkeys(){for(let t of this.#O()){let r=this.#u[t];r!==void 0&&!this.#p(this.#o[t])&&(yield r)}}*values(){for(let t of this.#A())this.#o[t]!==void 0&&!this.#p(this.#o[t])&&(yield this.#o[t])}*rvalues(){for(let t of this.#O())this.#o[t]!==void 0&&!this.#p(this.#o[t])&&(yield this.#o[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(let i of this.#A()){let n=this.#o[i],a=this.#p(n)?n.__staleWhileFetching:n;if(a!==void 0&&t(a,this.#u[i],this))return this.get(this.#u[i],r)}}forEach(t,r=this){for(let i of this.#A()){let n=this.#o[i],a=this.#p(n)?n.__staleWhileFetching:n;a!==void 0&&t.call(r,a,this.#u[i],this)}}rforEach(t,r=this){for(let i of this.#O()){let n=this.#o[i],a=this.#p(n)?n.__staleWhileFetching:n;a!==void 0&&t.call(r,a,this.#u[i],this)}}purgeStale(){let t=!1;for(let r of this.#O({allowStale:!0}))this.#I(r)&&(this.#C(this.#u[r],"expire"),t=!0);return t}info(t){let r=this.#d.get(t);if(r===void 0)return;let i=this.#o[r],n=this.#p(i)?i.__staleWhileFetching:i;if(n===void 0)return;let a={value:n};if(this.#m&&this.#S){let o=this.#m[r],s=this.#S[r];if(o&&s){let u=o-(this.#l.now()-s);a.ttl=u,a.start=Date.now()}}return this.#x&&(a.size=this.#x[r]),a}dump(){let t=[];for(let r of this.#A({allowStale:!0})){let i=this.#u[r],n=this.#o[r],a=this.#p(n)?n.__staleWhileFetching:n;if(a===void 0||i===void 0)continue;let o={value:a};if(this.#m&&this.#S){o.ttl=this.#m[r];let s=this.#l.now()-this.#S[r];o.start=Math.floor(Date.now()-s)}this.#x&&(o.size=this.#x[r]),t.unshift([i,o])}return t}load(t){this.clear();for(let[r,i]of t){if(i.start){let n=Date.now()-i.start;i.start=this.#l.now()-n}this.set(r,i.value,i)}}set(t,r,i={}){if(r===void 0)return this.delete(t),this;let{ttl:n=this.ttl,start:a,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:u}=i,{noUpdateTTL:c=this.noUpdateTTL}=i,d=this.#L(t,r,i.size||0,s);if(this.maxEntrySize&&d>this.maxEntrySize)return u&&(u.set="miss",u.maxEntrySizeExceeded=!0),this.#C(t,"set"),this;let p=this.#s===0?void 0:this.#d.get(t);if(p===void 0)p=this.#s===0?this.#v:this.#E.length!==0?this.#E.pop():this.#s===this.#e?this.#U(!1):this.#s,this.#u[p]=t,this.#o[p]=r,this.#d.set(t,p),this.#g[this.#v]=p,this.#w[p]=this.#v,this.#v=p,this.#s++,this.#P(p,d,u),u&&(u.set="add"),c=!1,this.#j&&this.#t?.(r,t,"add");else{this.#z(p);let f=this.#o[p];if(r!==f){if(this.#T&&this.#p(f)){f.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:m}=f;m!==void 0&&!o&&(this.#k&&this.#i?.(m,t,"set"),this.#a&&this.#b?.push([m,t,"set"]))}else o||(this.#k&&this.#i?.(f,t,"set"),this.#a&&this.#b?.push([f,t,"set"]));if(this.#R(p),this.#P(p,d,u),this.#o[p]=r,u){u.set="replace";let m=f&&this.#p(f)?f.__staleWhileFetching:f;m!==void 0&&(u.oldValue=m)}}else u&&(u.set="update");this.#j&&this.onInsert?.(r,t,r===f?"update":"replace")}if(n!==0&&!this.#m&&this.#N(),this.#m&&(c||this.#M(p,n,a),u&&this.#D(u,p)),!o&&this.#a&&this.#b){let f=this.#b,m;for(;m=f?.shift();)this.#n?.(...m)}return this}pop(){try{for(;this.#s;){let t=this.#o[this.#y];if(this.#U(!0),this.#p(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#a&&this.#b){let t=this.#b,r;for(;r=t?.shift();)this.#n?.(...r)}}}#U(t){let r=this.#y,i=this.#u[r],n=this.#o[r];return this.#T&&this.#p(n)?n.__abortController.abort(new Error("evicted")):(this.#k||this.#a)&&(this.#k&&this.#i?.(n,i,"evict"),this.#a&&this.#b?.push([n,i,"evict"])),this.#R(r),this.#_?.[r]&&(clearTimeout(this.#_[r]),this.#_[r]=void 0),t&&(this.#u[r]=void 0,this.#o[r]=void 0,this.#E.push(r)),this.#s===1?(this.#y=this.#v=0,this.#E.length=0):this.#y=this.#g[r],this.#d.delete(i),this.#s--,r}has(t,r={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:n}=r,a=this.#d.get(t);if(a!==void 0){let o=this.#o[a];if(this.#p(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#I(a))n&&(n.has="stale",this.#D(n,a));else return i&&this.#$(a),n&&(n.has="hit",this.#D(n,a)),!0}else n&&(n.has="miss");return!1}peek(t,r={}){let{allowStale:i=this.allowStale}=r,n=this.#d.get(t);if(n===void 0||!i&&this.#I(n))return;let a=this.#o[n];return this.#p(a)?a.__staleWhileFetching:a}#q(t,r,i,n){let a=r===void 0?void 0:this.#o[r];if(this.#p(a))return a;let o=new Mu,{signal:s}=i;s?.addEventListener("abort",()=>o.abort(s.reason),{signal:o.signal});let u={signal:o.signal,options:i,context:n},c=(h,y=!1)=>{let{aborted:v}=o.signal,_=i.ignoreFetchAbort&&h!==void 0,b=i.ignoreFetchAbort||!!(i.allowStaleOnFetchAbort&&h!==void 0);if(i.status&&(v&&!y?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,_&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),v&&!_&&!y)return p(o.signal.reason,b);let x=m,E=this.#o[r];return(E===m||_&&y&&E===void 0)&&(h===void 0?x.__staleWhileFetching!==void 0?this.#o[r]=x.__staleWhileFetching:this.#C(t,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(t,h,u.options))),h},d=h=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=h),p(h,!1)),p=(h,y)=>{let{aborted:v}=o.signal,_=v&&i.allowStaleOnFetchAbort,b=_||i.allowStaleOnFetchRejection,x=b||i.noDeleteOnFetchRejection,E=m;if(this.#o[r]===m&&(!x||!y&&E.__staleWhileFetching===void 0?this.#C(t,"fetch"):_||(this.#o[r]=E.__staleWhileFetching)),b)return i.status&&E.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),E.__staleWhileFetching;if(E.__returned===E)throw h},f=(h,y)=>{let v=this.#h?.(t,a,u);v&&v instanceof Promise&&v.then(_=>h(_===void 0?void 0:_),y),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(h(void 0),i.allowStaleOnFetchAbort&&(h=_=>c(_,!0)))})};i.status&&(i.status.fetchDispatched=!0);let m=new Promise(f).then(c,d),g=Object.assign(m,{__abortController:o,__staleWhileFetching:a,__returned:void 0});return r===void 0?(this.set(t,g,{...u.options,status:void 0}),r=this.#d.get(t)):this.#o[r]=g,g}#p(t){if(!this.#T)return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Mu}async fetch(t,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:u=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:p=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:m=this.ignoreFetchAbort,allowStaleOnFetchAbort:g=this.allowStaleOnFetchAbort,context:h,forceRefresh:y=!1,status:v,signal:_}=r;if(!this.#T)return v&&(v.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:a,status:v});let b={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:a,ttl:o,noDisposeOnSet:s,size:u,sizeCalculation:c,noUpdateTTL:d,noDeleteOnFetchRejection:p,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:g,ignoreFetchAbort:m,status:v,signal:_},x=this.#d.get(t);if(x===void 0){v&&(v.fetch="miss");let E=this.#q(t,x,b,h);return E.__returned=E}else{let E=this.#o[x];if(this.#p(E)){let T=i&&E.__staleWhileFetching!==void 0;return v&&(v.fetch="inflight",T&&(v.returnedStale=!0)),T?E.__staleWhileFetching:E.__returned=E}let k=this.#I(x);if(!y&&!k)return v&&(v.fetch="hit"),this.#z(x),n&&this.#$(x),v&&this.#D(v,x),E;let A=this.#q(t,x,b,h),$=A.__staleWhileFetching!==void 0&&i;return v&&(v.fetch=k?"stale":"refresh",$&&k&&(v.returnedStale=!0)),$?A.__staleWhileFetching:A.__returned=A}}async forceFetch(t,r={}){let i=await this.fetch(t,r);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(t,r={}){let i=this.#f;if(!i)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:a,...o}=r,s=this.get(t,o);if(!a&&s!==void 0)return s;let u=i(t,s,{options:o,context:n});return this.set(t,u,o),u}get(t,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,status:o}=r,s=this.#d.get(t);if(s!==void 0){let u=this.#o[s],c=this.#p(u);return o&&this.#D(o,s),this.#I(s)?(o&&(o.get="stale"),c?(o&&i&&u.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?u.__staleWhileFetching:void 0):(a||this.#C(t,"expire"),o&&i&&(o.returnedStale=!0),i?u:void 0)):(o&&(o.get="hit"),c?u.__staleWhileFetching:(this.#z(s),n&&this.#$(s),u))}else o&&(o.get="miss")}#B(t,r){this.#w[r]=t,this.#g[t]=r}#z(t){t!==this.#v&&(t===this.#y?this.#y=this.#g[t]:this.#B(this.#w[t],this.#g[t]),this.#B(this.#v,t),this.#v=t)}delete(t){return this.#C(t,"delete")}#C(t,r){let i=!1;if(this.#s!==0){let n=this.#d.get(t);if(n!==void 0)if(this.#_?.[n]&&(clearTimeout(this.#_?.[n]),this.#_[n]=void 0),i=!0,this.#s===1)this.#Z(r);else{this.#R(n);let a=this.#o[n];if(this.#p(a)?a.__abortController.abort(new Error("deleted")):(this.#k||this.#a)&&(this.#k&&this.#i?.(a,t,r),this.#a&&this.#b?.push([a,t,r])),this.#d.delete(t),this.#u[n]=void 0,this.#o[n]=void 0,n===this.#v)this.#v=this.#w[n];else if(n===this.#y)this.#y=this.#g[n];else{let o=this.#w[n];this.#g[o]=this.#g[n];let s=this.#g[n];this.#w[s]=this.#w[n]}this.#s--,this.#E.push(n)}}if(this.#a&&this.#b?.length){let n=this.#b,a;for(;a=n?.shift();)this.#n?.(...a)}return i}clear(){return this.#Z("delete")}#Z(t){for(let r of this.#O({allowStale:!0})){let i=this.#o[r];if(this.#p(i))i.__abortController.abort(new Error("deleted"));else{let n=this.#u[r];this.#k&&this.#i?.(i,n,t),this.#a&&this.#b?.push([i,n,t])}}if(this.#d.clear(),this.#o.fill(void 0),this.#u.fill(void 0),this.#m&&this.#S){this.#m.fill(0),this.#S.fill(0);for(let r of this.#_??[])r!==void 0&&clearTimeout(r);this.#_?.fill(void 0)}if(this.#x&&this.#x.fill(0),this.#y=0,this.#v=0,this.#E.length=0,this.#c=0,this.#s=0,this.#a&&this.#b){let r=this.#b,i;for(;i=r?.shift();)this.#n?.(...i)}}},Kx=typeof process=="object"&&process?process:{stdout:null,stderr:null},QR=e=>!!e&&typeof e=="object"&&(e instanceof Lu||e instanceof _m.default||eM(e)||tM(e)),eM=e=>!!e&&typeof e=="object"&&e instanceof Uu.EventEmitter&&typeof e.pipe=="function"&&e.pipe!==_m.default.Writable.prototype.pipe,tM=e=>!!e&&typeof e=="object"&&e instanceof Uu.EventEmitter&&typeof e.write=="function"&&typeof e.end=="function",mn=Symbol("EOF"),hn=Symbol("maybeEmitEnd"),Un=Symbol("emittedEnd"),$u=Symbol("emittingEnd"),ds=Symbol("emittedError"),Cu=Symbol("closed"),Yx=Symbol("read"),Au=Symbol("flush"),Xx=Symbol("flushChunk"),Nr=Symbol("encoding"),wa=Symbol("decoder"),pt=Symbol("flowing"),ps=Symbol("paused"),ka=Symbol("resume"),ft=Symbol("buffer"),jt=Symbol("pipes"),mt=Symbol("bufferLength"),cm=Symbol("bufferPush"),Ou=Symbol("bufferShift"),Et=Symbol("objectMode"),rt=Symbol("destroyed"),dm=Symbol("error"),pm=Symbol("emitData"),Qx=Symbol("emitEnd"),fm=Symbol("emitEnd2"),Yr=Symbol("async"),mm=Symbol("abort"),Nu=Symbol("aborted"),fs=Symbol("signal"),Pi=Symbol("dataListeners"),lr=Symbol("discarded"),ms=e=>Promise.resolve().then(e),rM=e=>e(),nM=e=>e==="end"||e==="finish"||e==="prefinish",iM=e=>e instanceof ArrayBuffer||!!e&&typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,aM=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),CS=class{src;dest;opts;ondrain;constructor(e,t,r){this.src=e,this.dest=t,this.opts=r,this.ondrain=()=>e[ka](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},oM=class extends CS{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,r){super(e,t,r),this.proxyErrors=i=>this.dest.emit("error",i),e.on("error",this.proxyErrors)}},sM=e=>!!e.objectMode,lM=e=>!e.objectMode&&!!e.encoding&&e.encoding!=="buffer",Lu=class extends Uu.EventEmitter{[pt]=!1;[ps]=!1;[jt]=[];[ft]=[];[Et];[Nr];[Yr];[wa];[mn]=!1;[Un]=!1;[$u]=!1;[Cu]=!1;[ds]=null;[mt]=0;[rt]=!1;[fs];[Nu]=!1;[Pi]=0;[lr]=!1;writable=!0;readable=!0;constructor(...e){let t=e[0]||{};if(super(),t.objectMode&&typeof t.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");sM(t)?(this[Et]=!0,this[Nr]=null):lM(t)?(this[Nr]=t.encoding,this[Et]=!1):(this[Et]=!1,this[Nr]=null),this[Yr]=!!t.async,this[wa]=this[Nr]?new $S.StringDecoder(this[Nr]):null,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ft]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[jt]});let{signal:r}=t;r&&(this[fs]=r,r.aborted?this[mm]():r.addEventListener("abort",()=>this[mm]()))}get bufferLength(){return this[mt]}get encoding(){return this[Nr]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Et]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Yr]}set async(e){this[Yr]=this[Yr]||!!e}[mm](){this[Nu]=!0,this.emit("abort",this[fs]?.reason),this.destroy(this[fs]?.reason)}get aborted(){return this[Nu]}set aborted(e){}write(e,t,r){if(this[Nu])return!1;if(this[mn])throw new Error("write after end");if(this[rt])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof t=="function"&&(r=t,t="utf8"),t||(t="utf8");let i=this[Yr]?ms:rM;if(!this[Et]&&!Buffer.isBuffer(e)){if(aM(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(iM(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Et]?(this[pt]&&this[mt]!==0&&this[Au](!0),this[pt]?this.emit("data",e):this[cm](e),this[mt]!==0&&this.emit("readable"),r&&i(r),this[pt]):e.length?(typeof e=="string"&&!(t===this[Nr]&&!this[wa]?.lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Nr]&&(e=this[wa].write(e)),this[pt]&&this[mt]!==0&&this[Au](!0),this[pt]?this.emit("data",e):this[cm](e),this[mt]!==0&&this.emit("readable"),r&&i(r),this[pt]):(this[mt]!==0&&this.emit("readable"),r&&i(r),this[pt])}read(e){if(this[rt])return null;if(this[lr]=!1,this[mt]===0||e===0||e&&e>this[mt])return this[hn](),null;this[Et]&&(e=null),this[ft].length>1&&!this[Et]&&(this[ft]=[this[Nr]?this[ft].join(""):Buffer.concat(this[ft],this[mt])]);let t=this[Yx](e||null,this[ft][0]);return this[hn](),t}[Yx](e,t){if(this[Et])this[Ou]();else{let r=t;e===r.length||e===null?this[Ou]():typeof r=="string"?(this[ft][0]=r.slice(e),t=r.slice(0,e),this[mt]-=e):(this[ft][0]=r.subarray(e),t=r.subarray(0,e),this[mt]-=e)}return this.emit("data",t),!this[ft].length&&!this[mn]&&this.emit("drain"),t}end(e,t,r){return typeof e=="function"&&(r=e,e=void 0),typeof t=="function"&&(r=t,t="utf8"),e!==void 0&&this.write(e,t),r&&this.once("end",r),this[mn]=!0,this.writable=!1,(this[pt]||!this[ps])&&this[hn](),this}[ka](){this[rt]||(!this[Pi]&&!this[jt].length&&(this[lr]=!0),this[ps]=!1,this[pt]=!0,this.emit("resume"),this[ft].length?this[Au]():this[mn]?this[hn]():this.emit("drain"))}resume(){return this[ka]()}pause(){this[pt]=!1,this[ps]=!0,this[lr]=!1}get destroyed(){return this[rt]}get flowing(){return this[pt]}get paused(){return this[ps]}[cm](e){this[Et]?this[mt]+=1:this[mt]+=e.length,this[ft].push(e)}[Ou](){return this[Et]?this[mt]-=1:this[mt]-=this[ft][0].length,this[ft].shift()}[Au](e=!1){do;while(this[Xx](this[Ou]())&&this[ft].length);!e&&!this[ft].length&&!this[mn]&&this.emit("drain")}[Xx](e){return this.emit("data",e),this[pt]}pipe(e,t){if(this[rt])return e;this[lr]=!1;let r=this[Un];return t=t||{},e===Kx.stdout||e===Kx.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,r?t.end&&e.end():(this[jt].push(t.proxyErrors?new oM(this,e,t):new CS(this,e,t)),this[Yr]?ms(()=>this[ka]()):this[ka]()),e}unpipe(e){let t=this[jt].find(r=>r.dest===e);t&&(this[jt].length===1?(this[pt]&&this[Pi]===0&&(this[pt]=!1),this[jt]=[]):this[jt].splice(this[jt].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let r=super.on(e,t);if(e==="data")this[lr]=!1,this[Pi]++,!this[jt].length&&!this[pt]&&this[ka]();else if(e==="readable"&&this[mt]!==0)super.emit("readable");else if(nM(e)&&this[Un])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[ds]){let i=t;this[Yr]?ms(()=>i.call(this,this[ds])):i.call(this,this[ds])}return r}removeListener(e,t){return this.off(e,t)}off(e,t){let r=super.off(e,t);return e==="data"&&(this[Pi]=this.listeners("data").length,this[Pi]===0&&!this[lr]&&!this[jt].length&&(this[pt]=!1)),r}removeAllListeners(e){let t=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[Pi]=0,!this[lr]&&!this[jt].length&&(this[pt]=!1)),t}get emittedEnd(){return this[Un]}[hn](){!this[$u]&&!this[Un]&&!this[rt]&&this[ft].length===0&&this[mn]&&(this[$u]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Cu]&&this.emit("close"),this[$u]=!1)}emit(e,...t){let r=t[0];if(e!=="error"&&e!=="close"&&e!==rt&&this[rt])return!1;if(e==="data")return!this[Et]&&!r?!1:this[Yr]?(ms(()=>this[pm](r)),!0):this[pm](r);if(e==="end")return this[Qx]();if(e==="close"){if(this[Cu]=!0,!this[Un]&&!this[rt])return!1;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[ds]=r,super.emit(dm,r);let n=!this[fs]||this.listeners("error").length?super.emit("error",r):!1;return this[hn](),n}else if(e==="resume"){let n=super.emit("resume");return this[hn](),n}else if(e==="finish"||e==="prefinish"){let n=super.emit(e);return this.removeAllListeners(e),n}let i=super.emit(e,...t);return this[hn](),i}[pm](e){for(let r of this[jt])r.dest.write(e)===!1&&this.pause();let t=this[lr]?!1:super.emit("data",e);return this[hn](),t}[Qx](){return this[Un]?!1:(this[Un]=!0,this.readable=!1,this[Yr]?(ms(()=>this[fm]()),!0):this[fm]())}[fm](){if(this[wa]){let t=this[wa].end();if(t){for(let r of this[jt])r.dest.write(t);this[lr]||super.emit("data",t)}}for(let t of this[jt])t.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Et]||(e.dataLength=0);let t=this.promise();return this.on("data",r=>{e.push(r),this[Et]||(e.dataLength+=r.length)}),await t,e}async concat(){if(this[Et])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Nr]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(rt,()=>t(new Error("stream destroyed"))),this.on("error",r=>t(r)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[lr]=!1;let e=!1,t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[mn])return t();let i,n,a=c=>{this.off("data",o),this.off("end",s),this.off(rt,u),t(),n(c)},o=c=>{this.off("error",a),this.off("end",s),this.off(rt,u),this.pause(),i({value:c,done:!!this[mn]})},s=()=>{this.off("error",a),this.off("data",o),this.off(rt,u),t(),i({done:!0,value:void 0})},u=()=>a(new Error("stream destroyed"));return new Promise((c,d)=>{n=d,i=c,this.once(rt,u),this.once("error",a),this.once("end",s),this.once("data",o)})},throw:t,return:t,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[lr]=!1;let e=!1,t=()=>(this.pause(),this.off(dm,t),this.off(rt,t),this.off("end",t),e=!0,{done:!0,value:void 0}),r=()=>{if(e)return t();let i=this.read();return i===null?t():{done:!1,value:i}};return this.once("end",t),this.once(dm,t),this.once(rt,t),{next:r,throw:t,return:t,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[rt])return e?this.emit("error",e):this.emit(rt),this;this[rt]=!0,this[lr]=!0,this[ft].length=0,this[mt]=0;let t=this;return typeof t.close=="function"&&!this[Cu]&&t.close(),e?this.emit("error",e):this.emit(rt),this}static get isStream(){return QR}},uM=Qr.realpathSync.native,vs={lstatSync:Qr.lstatSync,readdir:Qr.readdir,readdirSync:Qr.readdirSync,readlinkSync:Qr.readlinkSync,realpathSync:uM,promises:{lstat:Zn.lstat,readdir:Zn.readdir,readlink:Zn.readlink,realpath:Zn.realpath}},AS=e=>!e||e===vs||e===XR?vs:{...vs,...e,promises:{...vs.promises,...e.promises||{}}},OS=/^\\\\\?\\([a-z]:)\\?$/i,cM=e=>e.replace(/\//g,"\\").replace(OS,"$1\\"),dM=/[\\\/]/,kr=0,NS=1,DS=2,Xr=4,jS=6,PS=8,zi=10,zS=12,wr=15,hs=~wr,hm=16,eS=32,bs=64,Dr=128,Du=256,zu=512,tS=bs|Dr|zu,pM=1023,gm=e=>e.isFile()?PS:e.isDirectory()?Xr:e.isSymbolicLink()?zi:e.isCharacterDevice()?DS:e.isBlockDevice()?jS:e.isSocket()?zS:e.isFIFO()?NS:kr,rS=new Fu({max:2**12}),_s=e=>{let t=rS.get(e);if(t)return t;let r=e.normalize("NFKD");return rS.set(e,r),r},nS=new Fu({max:2**12}),ju=e=>{let t=nS.get(e);if(t)return t;let r=_s(e.toLowerCase());return nS.set(e,r),r},iS=class extends Fu{constructor(){super({max:256})}},fM=class extends Fu{constructor(e=16*1024){super({maxSize:e,sizeCalculation:t=>t.length+1})}},RS=Symbol("PathScurry setAsCwd"),Gt=class{name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#i;get mode(){return this.#i}#t;get nlink(){return this.#t}#n;get uid(){return this.#n}#h;get gid(){return this.#h}#f;get rdev(){return this.#f}#l;get blksize(){return this.#l}#s;get ino(){return this.#s}#c;get size(){return this.#c}#d;get blocks(){return this.#d}#u;get atimeMs(){return this.#u}#o;get mtimeMs(){return this.#o}#g;get ctimeMs(){return this.#g}#w;get birthtimeMs(){return this.#w}#y;get atime(){return this.#y}#v;get mtime(){return this.#v}#E;get ctime(){return this.#E}#b;get birthtime(){return this.#b}#x;#S;#m;#_;#k;#T;#a;#j;#N;#$;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,t=kr,r,i,n,a,o){this.name=e,this.#x=n?ju(e):_s(e),this.#a=t&pM,this.nocase=n,this.roots=i,this.root=r||this,this.#j=a,this.#m=o.fullpath,this.#k=o.relative,this.#T=o.relativePosix,this.parent=o.parent,this.parent?this.#e=this.parent.#e:this.#e=AS(o.fs)}depth(){return this.#S!==void 0?this.#S:this.parent?this.#S=this.parent.depth()+1:this.#S=0}childrenCache(){return this.#j}resolve(e){if(!e)return this;let t=this.getRootString(e),r=e.substring(t.length).split(this.splitSep);return t?this.getRoot(t).#D(r):this.#D(r)}#D(e){let t=this;for(let r of e)t=t.child(r);return t}children(){let e=this.#j.get(this);if(e)return e;let t=Object.assign([],{provisional:0});return this.#j.set(this,t),this.#a&=~hm,t}child(e,t){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let r=this.children(),i=this.nocase?ju(e):_s(e);for(let s of r)if(s.#x===i)return s;let n=this.parent?this.sep:"",a=this.#m?this.#m+n+e:void 0,o=this.newChild(e,kr,{...t,parent:this,fullpath:a});return this.canReaddir()||(o.#a|=Dr),r.push(o),o}relative(){if(this.isCWD)return"";if(this.#k!==void 0)return this.#k;let e=this.name,t=this.parent;if(!t)return this.#k=this.name;let r=t.relative();return r+(!r||!t.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#T!==void 0)return this.#T;let e=this.name,t=this.parent;if(!t)return this.#T=this.fullpathPosix();let r=t.relativePosix();return r+(!r||!t.parent?"":"/")+e}fullpath(){if(this.#m!==void 0)return this.#m;let e=this.name,t=this.parent;if(!t)return this.#m=this.name;let r=t.fullpath()+(t.parent?this.sep:"")+e;return this.#m=r}fullpathPosix(){if(this.#_!==void 0)return this.#_;if(this.sep==="/")return this.#_=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#_=`//?/${i}`:this.#_=i}let e=this.parent,t=e.fullpathPosix(),r=t+(!t||!e.parent?"":"/")+this.name;return this.#_=r}isUnknown(){return(this.#a&wr)===kr}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#a&wr)===PS}isDirectory(){return(this.#a&wr)===Xr}isCharacterDevice(){return(this.#a&wr)===DS}isBlockDevice(){return(this.#a&wr)===jS}isFIFO(){return(this.#a&wr)===NS}isSocket(){return(this.#a&wr)===zS}isSymbolicLink(){return(this.#a&zi)===zi}lstatCached(){return this.#a&eS?this:void 0}readlinkCached(){return this.#N}realpathCached(){return this.#$}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#N)return!0;if(!this.parent)return!1;let e=this.#a≀return!(e!==kr&&e!==zi||this.#a&Du||this.#a&Dr)}calledReaddir(){return!!(this.#a&hm)}isENOENT(){return!!(this.#a&Dr)}isNamed(e){return this.nocase?this.#x===ju(e):this.#x===_s(e)}async readlink(){let e=this.#N;if(e)return e;if(this.canReadlink()&&this.parent)try{let t=await this.#e.promises.readlink(this.fullpath()),r=(await this.parent.realpath())?.resolve(t);if(r)return this.#N=r}catch(t){this.#O(t.code);return}}readlinkSync(){let e=this.#N;if(e)return e;if(this.canReadlink()&&this.parent)try{let t=this.#e.readlinkSync(this.fullpath()),r=this.parent.realpathSync()?.resolve(t);if(r)return this.#N=r}catch(t){this.#O(t.code);return}}#M(e){this.#a|=hm;for(let t=e.provisional;t<e.length;t++){let r=e[t];r&&r.#I()}}#I(){this.#a&Dr||(this.#a=(this.#a|Dr)&hs,this.#V())}#V(){let e=this.children();e.provisional=0;for(let t of e)t.#I()}#R(){this.#a|=zu,this.#P()}#P(){if(this.#a&bs)return;let e=this.#a;(e&wr)===Xr&&(e&=hs),this.#a=e|bs,this.#V()}#L(e=""){e==="ENOTDIR"||e==="EPERM"?this.#P():e==="ENOENT"?this.#I():this.children().provisional=0}#A(e=""){e==="ENOTDIR"?this.parent.#P():e==="ENOENT"&&this.#I()}#O(e=""){let t=this.#a;t|=Du,e==="ENOENT"&&(t|=Dr),(e==="EINVAL"||e==="UNKNOWN")&&(t&=hs),this.#a=t,e==="ENOTDIR"&&this.parent&&this.parent.#P()}#F(e,t){return this.#q(e,t)||this.#U(e,t)}#U(e,t){let r=gm(e),i=this.newChild(e.name,r,{parent:this}),n=i.#a≀return n!==Xr&&n!==zi&&n!==kr&&(i.#a|=bs),t.unshift(i),t.provisional++,i}#q(e,t){for(let r=t.provisional;r<t.length;r++){let i=t[r];if((this.nocase?ju(e.name):_s(e.name))===i.#x)return this.#p(e,i,r,t)}}#p(e,t,r,i){let n=t.name;return t.#a=t.#a&hs|gm(e),n!==e.name&&(t.name=e.name),r!==i.provisional&&(r===i.length-1?i.pop():i.splice(r,1),i.unshift(t)),i.provisional++,t}async lstat(){if((this.#a&Dr)===0)try{return this.#B(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#A(e.code)}}lstatSync(){if((this.#a&Dr)===0)try{return this.#B(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#A(e.code)}}#B(e){let{atime:t,atimeMs:r,birthtime:i,birthtimeMs:n,blksize:a,blocks:o,ctime:s,ctimeMs:u,dev:c,gid:d,ino:p,mode:f,mtime:m,mtimeMs:g,nlink:h,rdev:y,size:v,uid:_}=e;this.#y=t,this.#u=r,this.#b=i,this.#w=n,this.#l=a,this.#d=o,this.#E=s,this.#g=u,this.#r=c,this.#h=d,this.#s=p,this.#i=f,this.#v=m,this.#o=g,this.#t=h,this.#f=y,this.#c=v,this.#n=_;let b=gm(e);this.#a=this.#a&hs|b|eS,b!==kr&&b!==Xr&&b!==zi&&(this.#a|=bs)}#z=[];#C=!1;#Z(e){this.#C=!1;let t=this.#z.slice();this.#z.length=0,t.forEach(r=>r(null,e))}readdirCB(e,t=!1){if(!this.canReaddir()){t?e(null,[]):queueMicrotask(()=>e(null,[]));return}let r=this.children();if(this.calledReaddir()){let n=r.slice(0,r.provisional);t?e(null,n):queueMicrotask(()=>e(null,n));return}if(this.#z.push(e),this.#C)return;this.#C=!0;let i=this.fullpath();this.#e.readdir(i,{withFileTypes:!0},(n,a)=>{if(n)this.#L(n.code),r.provisional=0;else{for(let o of a)this.#F(o,r);this.#M(r)}this.#Z(r.slice(0,r.provisional))})}#W;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();if(this.#W)await this.#W;else{let r=()=>{};this.#W=new Promise(i=>r=i);try{for(let i of await this.#e.promises.readdir(t,{withFileTypes:!0}))this.#F(i,e);this.#M(e)}catch(i){this.#L(i.code),e.provisional=0}this.#W=void 0,r()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();try{for(let r of this.#e.readdirSync(t,{withFileTypes:!0}))this.#F(r,e);this.#M(e)}catch(r){this.#L(r.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#a&tS)return!1;let e=wr&this.#a;return e===kr||e===Xr||e===zi}shouldWalk(e,t){return(this.#a&Xr)===Xr&&!(this.#a&tS)&&!e.has(this)&&(!t||t(this))}async realpath(){if(this.#$)return this.#$;if(!((zu|Du|Dr)&this.#a))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#$=this.resolve(e)}catch{this.#R()}}realpathSync(){if(this.#$)return this.#$;if(!((zu|Du|Dr)&this.#a))try{let e=this.#e.realpathSync(this.fullpath());return this.#$=this.resolve(e)}catch{this.#R()}}[RS](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let t=new Set([]),r=[],i=this;for(;i&&i.parent;)t.add(i),i.#k=r.join(this.sep),i.#T=r.join("/"),i=i.parent,r.push("..");for(i=e;i&&i.parent&&!t.has(i);)i.#k=void 0,i.#T=void 0,i=i.parent}},MS=class LS extends Gt{sep="\\";splitSep=dM;constructor(t,r=kr,i,n,a,o,s){super(t,r,i,n,a,o,s)}newChild(t,r=kr,i={}){return new LS(t,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(t){return Sa.win32.parse(t).root}getRoot(t){if(t=cM(t.toUpperCase()),t===this.root.name)return this.root;for(let[r,i]of Object.entries(this.roots))if(this.sameRoot(t,r))return this.roots[t]=i;return this.roots[t]=new wm(t,this).root}sameRoot(t,r=this.root.name){return t=t.toUpperCase().replace(/\//g,"\\").replace(OS,"$1\\"),t===r}},FS=class US extends Gt{splitSep="/";sep="/";constructor(t,r=kr,i,n,a,o,s){super(t,r,i,n,a,o,s)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,r=kr,i={}){return new US(t,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}},qS=class{root;rootPath;roots;cwd;#e;#r;#i;nocase;#t;constructor(e=process.cwd(),t,r,{nocase:i,childrenCacheSize:n=16*1024,fs:a=vs}={}){this.#t=AS(a),(e instanceof URL||e.startsWith("file://"))&&(e=(0,TS.fileURLToPath)(e));let o=t.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(o),this.#e=new iS,this.#r=new iS,this.#i=new fM(n);let s=o.substring(this.rootPath.length).split(r);if(s.length===1&&!s[0]&&s.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#t),this.roots[this.rootPath]=this.root;let u=this.root,c=s.length-1,d=t.sep,p=this.rootPath,f=!1;for(let m of s){let g=c--;u=u.child(m,{relative:new Array(g).fill("..").join(d),relativePosix:new Array(g).fill("..").join("/"),fullpath:p+=(f?"":d)+m}),f=!0}this.cwd=u}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#i}resolve(...e){let t="";for(let n=e.length-1;n>=0;n--){let a=e[n];if(!(!a||a===".")&&(t=t?`${a}/${t}`:a,this.isAbsolute(a)))break}let r=this.#e.get(t);if(r!==void 0)return r;let i=this.cwd.resolve(t).fullpath();return this.#e.set(t,i),i}resolvePosix(...e){let t="";for(let n=e.length-1;n>=0;n--){let a=e[n];if(!(!a||a===".")&&(t=t?`${a}/${t}`:a,this.isAbsolute(a)))break}let r=this.#r.get(t);if(r!==void 0)return r;let i=this.cwd.resolve(t).fullpathPosix();return this.#r.set(t,i),i}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Gt||(t=e,e=this.cwd);let{withFileTypes:r}=t;if(e.canReaddir()){let i=await e.readdir();return r?i:i.map(n=>n.name)}else return[]}readdirSync(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Gt||(t=e,e=this.cwd);let{withFileTypes:r=!0}=t;return e.canReaddir()?r?e.readdirSync():e.readdirSync().map(i=>i.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Gt||(t=e.withFileTypes,e=this.cwd);let r=await e.readlink();return t?r:r?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Gt||(t=e.withFileTypes,e=this.cwd);let r=e.readlinkSync();return t?r:r?.fullpath()}async realpath(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Gt||(t=e.withFileTypes,e=this.cwd);let r=await e.realpath();return t?r:r?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Gt||(t=e.withFileTypes,e=this.cwd);let r=e.realpathSync();return t?r:r?.fullpath()}async walk(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Gt||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:n,walkFilter:a}=t,o=[];(!n||n(e))&&o.push(r?e:e.fullpath());let s=new Set,u=(d,p)=>{s.add(d),d.readdirCB((f,m)=>{if(f)return p(f);let g=m.length;if(!g)return p();let h=()=>{--g===0&&p()};for(let y of m)(!n||n(y))&&o.push(r?y:y.fullpath()),i&&y.isSymbolicLink()?y.realpath().then(v=>v?.isUnknown()?v.lstat():v).then(v=>v?.shouldWalk(s,a)?u(v,h):h()):y.shouldWalk(s,a)?u(y,h):h()},!0)},c=e;return new Promise((d,p)=>{u(c,f=>{if(f)return p(f);d(o)})})}walkSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Gt||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:n,walkFilter:a}=t,o=[];(!n||n(e))&&o.push(r?e:e.fullpath());let s=new Set([e]);for(let u of s){let c=u.readdirSync();for(let d of c){(!n||n(d))&&o.push(r?d:d.fullpath());let p=d;if(d.isSymbolicLink()){if(!(i&&(p=d.realpathSync())))continue;p.isUnknown()&&p.lstatSync()}p.shouldWalk(s,a)&&s.add(p)}}return o}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,t={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Gt||(t=e,e=this.cwd),this.stream(e,t)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Gt||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:n,walkFilter:a}=t;(!n||n(e))&&(yield r?e:e.fullpath());let o=new Set([e]);for(let s of o){let u=s.readdirSync();for(let c of u){(!n||n(c))&&(yield r?c:c.fullpath());let d=c;if(c.isSymbolicLink()){if(!(i&&(d=c.realpathSync())))continue;d.isUnknown()&&d.lstatSync()}d.shouldWalk(o,a)&&o.add(d)}}}stream(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Gt||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:n,walkFilter:a}=t,o=new Lu({objectMode:!0});(!n||n(e))&&o.write(r?e:e.fullpath());let s=new Set,u=[e],c=0,d=()=>{let p=!1;for(;!p;){let f=u.shift();if(!f){c===0&&o.end();return}c++,s.add(f);let m=(h,y,v=!1)=>{if(h)return o.emit("error",h);if(i&&!v){let _=[];for(let b of y)b.isSymbolicLink()&&_.push(b.realpath().then(x=>x?.isUnknown()?x.lstat():x));if(_.length){Promise.all(_).then(()=>m(null,y,!0));return}}for(let _ of y)_&&(!n||n(_))&&(o.write(r?_:_.fullpath())||(p=!0));c--;for(let _ of y){let b=_.realpathCached()||_;b.shouldWalk(s,a)&&u.push(b)}p&&!o.flowing?o.once("drain",d):g||d()},g=!0;f.readdirCB(m,!0),g=!1}};return d(),o}streamSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Gt||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:n,walkFilter:a}=t,o=new Lu({objectMode:!0}),s=new Set;(!n||n(e))&&o.write(r?e:e.fullpath());let u=[e],c=0,d=()=>{let p=!1;for(;!p;){let f=u.shift();if(!f){c===0&&o.end();return}c++,s.add(f);let m=f.readdirSync();for(let g of m)(!n||n(g))&&(o.write(r?g:g.fullpath())||(p=!0));c--;for(let g of m){let h=g;if(g.isSymbolicLink()){if(!(i&&(h=g.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(s,a)&&u.push(h)}}p&&!o.flowing&&o.once("drain",d)};return d(),o}chdir(e=this.cwd){let t=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[RS](t)}},wm=class extends qS{sep="\\";constructor(e=process.cwd(),t={}){let{nocase:r=!0}=t;super(e,Sa.win32,"\\",{...t,nocase:r}),this.nocase=r;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(e){return Sa.win32.parse(e).root.toUpperCase()}newRoot(e){return new MS(this.rootPath,Xr,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}},km=class extends qS{sep="/";constructor(e=process.cwd(),t={}){let{nocase:r=!1}=t;super(e,Sa.posix,"/",{...t,nocase:r}),this.nocase=r}parseRootPath(e){return"/"}newRoot(e){return new FS(this.rootPath,Xr,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}},BS=class extends km{constructor(e=process.cwd(),t={}){let{nocase:r=!0}=t;super(e,{...t,nocase:r})}},t7=process.platform==="win32"?MS:FS,mM=process.platform==="win32"?wm:process.platform==="darwin"?BS:km,hM=e=>e.length>=1,gM=e=>e.length>=1,yM=Symbol.for("nodejs.util.inspect.custom"),VS=class ZS{#e;#r;#i;length;#t;#n;#h;#f;#l;#s;#c=!0;constructor(t,r,i,n){if(!hM(t))throw new TypeError("empty pattern list");if(!gM(r))throw new TypeError("empty glob list");if(r.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#e=t,this.#r=r,this.#i=i,this.#t=n,this.#i===0){if(this.isUNC()){let[a,o,s,u,...c]=this.#e,[d,p,f,m,...g]=this.#r;c[0]===""&&(c.shift(),g.shift());let h=[a,o,s,u,""].join("/"),y=[d,p,f,m,""].join("/");this.#e=[h,...c],this.#r=[y,...g],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[a,...o]=this.#e,[s,...u]=this.#r;o[0]===""&&(o.shift(),u.shift());let c=a+"/",d=s+"/";this.#e=[c,...o],this.#r=[d,...u],this.length=this.#e.length}}}[yM](){return"Pattern <"+this.#r.slice(this.#i).join("/")+">"}pattern(){return this.#e[this.#i]}isString(){return typeof this.#e[this.#i]=="string"}isGlobstar(){return this.#e[this.#i]===Pt}isRegExp(){return this.#e[this.#i]instanceof RegExp}globString(){return this.#h=this.#h||(this.#i===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#i).join("/"))}hasMore(){return this.length>this.#i+1}rest(){return this.#n!==void 0?this.#n:this.hasMore()?(this.#n=new ZS(this.#e,this.#r,this.#i+1,this.#t),this.#n.#s=this.#s,this.#n.#l=this.#l,this.#n.#f=this.#f,this.#n):this.#n=null}isUNC(){let t=this.#e;return this.#l!==void 0?this.#l:this.#l=this.#t==="win32"&&this.#i===0&&t[0]===""&&t[1]===""&&typeof t[2]=="string"&&!!t[2]&&typeof t[3]=="string"&&!!t[3]}isDrive(){let t=this.#e;return this.#f!==void 0?this.#f:this.#f=this.#t==="win32"&&this.#i===0&&this.length>1&&typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0])}isAbsolute(){let t=this.#e;return this.#s!==void 0?this.#s:this.#s=t[0]===""&&t.length>1||this.isDrive()||this.isUNC()}root(){let t=this.#e[0];return typeof t=="string"&&this.isAbsolute()&&this.#i===0?t:""}checkFollowGlobstar(){return!(this.#i===0||!this.isGlobstar()||!this.#c)}markFollowGlobstar(){return this.#i===0||!this.isGlobstar()||!this.#c?!1:(this.#c=!1,!0)}},vM=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",aS=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:t,nocase:r,noext:i,noglobstar:n,platform:a=vM}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=a,this.mmopts={dot:!0,nobrace:t,nocase:r,noext:i,noglobstar:n,optimizationLevel:2,platform:a,nocomment:!0,nonegate:!0};for(let o of e)this.add(o)}add(e){let t=new Bn(e,this.mmopts);for(let r=0;r<t.set.length;r++){let i=t.set[r],n=t.globParts[r];if(!i||!n)throw new Error("invalid pattern object");for(;i[0]==="."&&n[0]===".";)i.shift(),n.shift();let a=new VS(i,n,0,this.platform),o=new Bn(a.globString(),this.mmopts),s=n[n.length-1]==="**",u=a.isAbsolute();u?this.absolute.push(o):this.relative.push(o),s&&(u?this.absoluteChildren.push(o):this.relativeChildren.push(o))}}ignored(e){let t=e.fullpath(),r=`${t}/`,i=e.relative()||".",n=`${i}/`;for(let a of this.relative)if(a.match(i)||a.match(n))return!0;for(let a of this.absolute)if(a.match(t)||a.match(r))return!0;return!1}childrenIgnored(e){let t=e.fullpath()+"/",r=(e.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(r))return!0;for(let i of this.absoluteChildren)if(i.match(t))return!0;return!1}},bM=class WS{store;constructor(t=new Map){this.store=t}copy(){return new WS(new Map(this.store))}hasWalked(t,r){return this.store.get(t.fullpath())?.has(r.globString())}storeWalked(t,r){let i=t.fullpath(),n=this.store.get(i);n?n.add(r.globString()):this.store.set(i,new Set([r.globString()]))}},_M=class{store=new Map;add(e,t,r){let i=(t?2:0)|(r?1:0),n=this.store.get(e);this.store.set(e,n===void 0?i:i&n)}entries(){return[...this.store.entries()].map(([e,t])=>[e,!!(t&2),!!(t&1)])}},wM=class{store=new Map;add(e,t){if(!e.canReaddir())return;let r=this.store.get(e);r?r.find(i=>i.globString()===t.globString())||r.push(t):this.store.set(e,[t])}get(e){let t=this.store.get(e);if(!t)throw new Error("attempting to walk unknown path");return t}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}},oS=class GS{hasWalkedCache;matches=new _M;subwalks=new wM;patterns;follow;dot;opts;constructor(t,r){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=r?r.copy():new bM}processPatterns(t,r){this.patterns=r;let i=r.map(n=>[t,n]);for(let[n,a]of i){this.hasWalkedCache.storeWalked(n,a);let o=a.root(),s=a.isAbsolute()&&this.opts.absolute!==!1;if(o){n=n.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let p=a.rest();if(p)a=p;else{this.matches.add(n,!0,!1);continue}}if(n.isENOENT())continue;let u,c,d=!1;for(;typeof(u=a.pattern())=="string"&&(c=a.rest());)n=n.resolve(u),a=c,d=!0;if(u=a.pattern(),c=a.rest(),d){if(this.hasWalkedCache.hasWalked(n,a))continue;this.hasWalkedCache.storeWalked(n,a)}if(typeof u=="string"){let p=u===".."||u===""||u===".";this.matches.add(n.resolve(u),s,p);continue}else if(u===Pt){(!n.isSymbolicLink()||this.follow||a.checkFollowGlobstar())&&this.subwalks.add(n,a);let p=c?.pattern(),f=c?.rest();if(!c||(p===""||p===".")&&!f)this.matches.add(n,s,p===""||p===".");else if(p===".."){let m=n.parent||n;f?this.hasWalkedCache.hasWalked(m,f)||this.subwalks.add(m,f):this.matches.add(m,s,!0)}}else u instanceof RegExp&&this.subwalks.add(n,a)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new GS(this.opts,this.hasWalkedCache)}filterEntries(t,r){let i=this.subwalks.get(t),n=this.child();for(let a of r)for(let o of i){let s=o.isAbsolute(),u=o.pattern(),c=o.rest();u===Pt?n.testGlobstar(a,o,c,s):u instanceof RegExp?n.testRegExp(a,u,c,s):n.testString(a,u,c,s)}return n}testGlobstar(t,r,i,n){if((this.dot||!t.name.startsWith("."))&&(r.hasMore()||this.matches.add(t,n,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,r):t.isSymbolicLink()&&(i&&r.checkFollowGlobstar()?this.subwalks.add(t,i):r.markFollowGlobstar()&&this.subwalks.add(t,r)))),i){let a=i.pattern();if(typeof a=="string"&&a!==".."&&a!==""&&a!==".")this.testString(t,a,i.rest(),n);else if(a===".."){let o=t.parent||t;this.subwalks.add(o,i)}else a instanceof RegExp&&this.testRegExp(t,a,i.rest(),n)}}testRegExp(t,r,i,n){r.test(t.name)&&(i?this.subwalks.add(t,i):this.matches.add(t,n,!1))}testString(t,r,i,n){t.isNamed(r)&&(i?this.subwalks.add(t,i):this.matches.add(t,n,!1))}},kM=(e,t)=>typeof e=="string"?new aS([e],t):Array.isArray(e)?new aS(e,t):e,JS=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#i;signal;maxDepth;includeChildMatches;constructor(e,t,r){if(this.patterns=e,this.path=t,this.opts=r,this.#i=!r.posix&&r.platform==="win32"?"\\":"/",this.includeChildMatches=r.includeChildMatches!==!1,(r.ignore||!this.includeChildMatches)&&(this.#r=kM(r.ignore??[],r),!this.includeChildMatches&&typeof this.#r.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=r.maxDepth||1/0,r.signal&&(this.signal=r.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#t(e){return this.seen.has(e)||!!this.#r?.ignored?.(e)}#n(e){return!!this.#r?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,t){if(t&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||await e.realpath(),!r)return;e=r}let i=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&i?.isSymbolicLink()){let n=await i.realpath();n&&(n.isUnknown()||this.opts.stat)&&await n.lstat()}return this.matchCheckTest(i,t)}matchCheckTest(e,t){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#t(e)?e:void 0}matchCheckSync(e,t){if(t&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||e.realpathSync(),!r)return;e=r}let i=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&i?.isSymbolicLink()){let n=i.realpathSync();n&&(n?.isUnknown()||this.opts.stat)&&n.lstatSync()}return this.matchCheckTest(i,t)}matchFinish(e,t){if(this.#t(e))return;if(!this.includeChildMatches&&this.#r?.add){let n=`${e.relativePosix()}/**`;this.#r.add(n)}let r=this.opts.absolute===void 0?t:this.opts.absolute;this.seen.add(e);let i=this.opts.mark&&e.isDirectory()?this.#i:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(r){let n=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(n+i)}else{let n=this.opts.posix?e.relativePosix():e.relative(),a=this.opts.dotRelative&&!n.startsWith(".."+this.#i)?"."+this.#i:"";this.matchEmit(n?a+n+i:"."+i)}}async match(e,t,r){let i=await this.matchCheck(e,r);i&&this.matchFinish(i,t)}matchSync(e,t,r){let i=this.matchCheckSync(e,r);i&&this.matchFinish(i,t)}walkCB(e,t,r){this.signal?.aborted&&r(),this.walkCB2(e,t,new oS(this.opts),r)}walkCB2(e,t,r,i){if(this.#n(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(e,t,r,i));return}r.processPatterns(e,t);let n=1,a=()=>{--n===0&&i()};for(let[o,s,u]of r.matches.entries())this.#t(o)||(n++,this.match(o,s,u).then(()=>a()));for(let o of r.subwalkTargets()){if(this.maxDepth!==1/0&&o.depth()>=this.maxDepth)continue;n++;let s=o.readdirCached();o.calledReaddir()?this.walkCB3(o,s,r,a):o.readdirCB((u,c)=>this.walkCB3(o,c,r,a),!0)}a()}walkCB3(e,t,r,i){r=r.filterEntries(e,t);let n=1,a=()=>{--n===0&&i()};for(let[o,s,u]of r.matches.entries())this.#t(o)||(n++,this.match(o,s,u).then(()=>a()));for(let[o,s]of r.subwalks.entries())n++,this.walkCB2(o,s,r.child(),a);a()}walkCBSync(e,t,r){this.signal?.aborted&&r(),this.walkCB2Sync(e,t,new oS(this.opts),r)}walkCB2Sync(e,t,r,i){if(this.#n(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(e,t,r,i));return}r.processPatterns(e,t);let n=1,a=()=>{--n===0&&i()};for(let[o,s,u]of r.matches.entries())this.#t(o)||this.matchSync(o,s,u);for(let o of r.subwalkTargets()){if(this.maxDepth!==1/0&&o.depth()>=this.maxDepth)continue;n++;let s=o.readdirSync();this.walkCB3Sync(o,s,r,a)}a()}walkCB3Sync(e,t,r,i){r=r.filterEntries(e,t);let n=1,a=()=>{--n===0&&i()};for(let[o,s,u]of r.matches.entries())this.#t(o)||this.matchSync(o,s,u);for(let[o,s]of r.subwalks.entries())n++,this.walkCB2Sync(o,s,r.child(),a);a()}},sS=class extends JS{matches=new Set;constructor(e,t,r){super(e,t,r)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,t)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?t(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},lS=class extends JS{results;constructor(e,t,r){super(e,t,r),this.results=new Lu({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}},xM=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Ri=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,t){if(!t)throw new TypeError("glob options required");if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith("file://"))&&(t.cwd=(0,kS.fileURLToPath)(t.cwd)):this.cwd="",this.cwd=t.cwd||"",this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.includeChildMatches=t.includeChildMatches!==!1,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth=typeof t.maxDepth=="number"?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(s=>s.replace(/\\/g,"/"))),this.matchBase){if(t.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(s=>s.includes("/")?s:`./**/${s}`)}if(this.pattern=e,this.platform=t.platform||xM,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,t.nocase!==void 0&&t.nocase!==t.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let s=t.platform==="win32"?wm:t.platform==="darwin"?BS:t.platform?km:mM;this.scurry=new s(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;let r=this.platform==="darwin"||this.platform==="win32",i={braceExpandMax:1e4,...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},n=this.pattern.map(s=>new Bn(s,i)),[a,o]=n.reduce((s,u)=>(s[0].push(...u.set),s[1].push(...u.globParts),s),[[],[]]);this.patterns=a.map((s,u)=>{let c=o[u];if(!c)throw new Error("invalid pattern object");return new VS(s,c,0,this.platform)})}async walk(){return[...await new sS(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new sS(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new lS(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new lS(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}},SM=(e,t={})=>{Array.isArray(e)||(e=[e]);for(let r of e)if(new Bn(r,t).hasMagic())return!0;return!1};function qu(e,t={}){return new Ri(e,t).streamSync()}function HS(e,t={}){return new Ri(e,t).stream()}function KS(e,t={}){return new Ri(e,t).walkSync()}async function uS(e,t={}){return new Ri(e,t).walk()}function Bu(e,t={}){return new Ri(e,t).iterateSync()}function YS(e,t={}){return new Ri(e,t).iterate()}var IM=qu,EM=Object.assign(HS,{sync:qu}),TM=Bu,$M=Object.assign(YS,{sync:Bu}),CM=Object.assign(KS,{stream:qu,iterate:Bu}),Vn=Object.assign(uS,{glob:uS,globSync:KS,sync:CM,globStream:HS,stream:EM,globStreamSync:qu,streamSync:IM,globIterate:YS,iterate:$M,globIterateSync:Bu,iterateSync:TM,Glob:Ri,hasMagic:SM,escape:yS,unescape:xa});Vn.glob=Vn;var xm=(e,t,r)=>{let i=e instanceof RegExp?XS(e,r):e,n=t instanceof RegExp?XS(t,r):t,a=i!==null&&n!=null&&AM(i,n,r);return a&&{start:a[0],end:a[1],pre:r.slice(0,a[0]),body:r.slice(a[0]+i.length,a[1]),post:r.slice(a[1]+n.length)}},XS=(e,t)=>{let r=t.match(e);return r?r[0]:null},AM=(e,t,r)=>{let i,n,a,o,s,u=r.indexOf(e),c=r.indexOf(t,u+1),d=u;if(u>=0&&c>0){if(e===t)return[u,c];for(i=[],a=r.length;d>=0&&!s;){if(d===u)i.push(d),u=r.indexOf(e,d+1);else if(i.length===1){let p=i.pop();p!==void 0&&(s=[p,c])}else n=i.pop(),n!==void 0&&n<a&&(a=n,o=c),c=r.indexOf(t,d+1);d=u<c&&u>=0?u:c}i.length&&o!==void 0&&(s=[a,o])}return s};var QS="\0SLASH"+Math.random()+"\0",e0="\0OPEN"+Math.random()+"\0",Im="\0CLOSE"+Math.random()+"\0",t0="\0COMMA"+Math.random()+"\0",r0="\0PERIOD"+Math.random()+"\0",OM=new RegExp(QS,"g"),NM=new RegExp(e0,"g"),DM=new RegExp(Im,"g"),jM=new RegExp(t0,"g"),PM=new RegExp(r0,"g"),zM=/\\\\/g,RM=/\\{/g,MM=/\\}/g,LM=/\\,/g,FM=/\\./g,UM=1e5;function Sm(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function qM(e){return e.replace(zM,QS).replace(RM,e0).replace(MM,Im).replace(LM,t0).replace(FM,r0)}function BM(e){return e.replace(OM,"\\").replace(NM,"{").replace(DM,"}").replace(jM,",").replace(PM,".")}function n0(e){if(!e)return[""];let t=[],r=xm("{","}",e);if(!r)return e.split(",");let{pre:i,body:n,post:a}=r,o=i.split(",");o[o.length-1]+="{"+n+"}";let s=n0(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}function i0(e,t={}){if(!e)return[];let{max:r=UM}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),ws(qM(e),r,!0).map(BM)}function VM(e){return"{"+e+"}"}function ZM(e){return/^-?0\d/.test(e)}function WM(e,t){return e<=t}function GM(e,t){return e>=t}function ws(e,t,r){let i=[],n=xm("{","}",e);if(!n)return[e];let a=n.pre,o=n.post.length?ws(n.post,t,!1):[""];if(/\$$/.test(n.pre))for(let s=0;s<o.length&&s<t;s++){let u=a+"{"+n.body+"}"+o[s];i.push(u)}else{let s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),c=s||u,d=n.body.indexOf(",")>=0;if(!c&&!d)return n.post.match(/,(?!,).*\}/)?(e=n.pre+"{"+n.body+Im+n.post,ws(e,t,!0)):[e];let p;if(c)p=n.body.split(/\.\./);else if(p=n0(n.body),p.length===1&&p[0]!==void 0&&(p=ws(p[0],t,!1).map(VM),p.length===1))return o.map(m=>n.pre+p[0]+m);let f;if(c&&p[0]!==void 0&&p[1]!==void 0){let m=Sm(p[0]),g=Sm(p[1]),h=Math.max(p[0].length,p[1].length),y=p.length===3&&p[2]!==void 0?Math.abs(Sm(p[2])):1,v=WM;g<m&&(y*=-1,v=GM);let b=p.some(ZM);f=[];for(let x=m;v(x,g);x+=y){let E;if(u)E=String.fromCharCode(x),E==="\\"&&(E="");else if(E=String(x),b){let k=h-E.length;if(k>0){let A=new Array(k+1).join("0");x<0?E="-"+A+E.slice(1):E=A+E}}f.push(E)}}else{f=[];for(let m=0;m<p.length;m++)f.push.apply(f,ws(p[m],t,!1))}for(let m=0;m<f.length;m++)for(let g=0;g<o.length&&i.length<t;g++){let h=a+f[m]+o[g];(!r||c||h)&&i.push(h)}}return i}var ks=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};var JM={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},xs=e=>e.replace(/[[\]\\-]/g,"\\$&"),HM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),a0=e=>e.join(""),o0=(e,t)=>{let r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let i=[],n=[],a=r+1,o=!1,s=!1,u=!1,c=!1,d=r,p="";e:for(;a<e.length;){let h=e.charAt(a);if((h==="!"||h==="^")&&a===r+1){c=!0,a++;continue}if(h==="]"&&o&&!u){d=a+1;break}if(o=!0,h==="\\"&&!u){u=!0,a++;continue}if(h==="["&&!u){for(let[y,[v,_,b]]of Object.entries(JM))if(e.startsWith(y,a)){if(p)return["$.",!1,e.length-r,!0];a+=y.length,b?n.push(v):i.push(v),s=s||_;continue e}}if(u=!1,p){h>p?i.push(xs(p)+"-"+xs(h)):h===p&&i.push(xs(h)),p="",a++;continue}if(e.startsWith("-]",a+1)){i.push(xs(h+"-")),a+=2;continue}if(e.startsWith("-",a+1)){p=h,a+=2;continue}i.push(xs(h)),a++}if(d<a)return["",!1,0,!1];if(!i.length&&!n.length)return["$.",!1,e.length-r,!0];if(n.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!c){let h=i[0].length===2?i[0].slice(-1):i[0];return[HM(h),!1,d-r,!1]}let f="["+(c?"^":"")+a0(i)+"]",m="["+(c?"":"^")+a0(n)+"]";return[i.length&&n.length?"("+f+"|"+m+")":i.length?f:m,s,d-r,!0]};var Wn=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!0}={})=>r?t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):t?e.replace(/\[([^\/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1");var Jt,KM=new Set(["!","?","+","*","@"]),Em=e=>KM.has(e),s0=e=>Em(e.type),YM=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),XM=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),QM=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),l0=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),eL="(?!(?:^|/)\\.\\.?(?:$|/))",Vu="(?!\\.)",tL=new Set(["[","."]),rL=new Set(["..","."]),nL=new Set("().*{}+?[]^$\\!"),iL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Tm="[^/]",u0=Tm+"*?",c0=Tm+"+?",aL=0,Mi=class{type;#e;#r;#i=!1;#t=[];#n;#h;#f;#l=!1;#s;#c;#d=!1;id=++aL;get depth(){return(this.#n?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#e.id,parent:this.#n?.id,depth:this.depth,partsLength:this.#t.length,parts:this.#t}}constructor(t,r,i={}){this.type=t,t&&(this.#r=!0),this.#n=r,this.#e=this.#n?this.#n.#e:this,this.#s=this.#e===this?i:this.#e.#s,this.#f=this.#e===this?[]:this.#e.#f,t==="!"&&!this.#e.#l&&this.#f.push(this),this.#h=this.#n?this.#n.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let t of this.#t)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#c!==void 0?this.#c:this.type?this.#c=this.type+"("+this.#t.map(t=>String(t)).join("|")+")":this.#c=this.#t.map(t=>String(t)).join("")}#u(){if(this!==this.#e)throw new Error("should only call on root");if(this.#l)return this;this.toString(),this.#l=!0;let t;for(;t=this.#f.pop();){if(t.type!=="!")continue;let r=t,i=r.#n;for(;i;){for(let n=r.#h+1;!i.type&&n<i.#t.length;n++)for(let a of t.#t){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(i.#t[n])}r=i,i=r.#n}}return this}push(...t){for(let r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Jt&&r.#n===this))throw new Error("invalid part: "+r);this.#t.push(r)}}toJSON(){let t=this.type===null?this.#t.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#l&&this.#n?.type==="!")&&t.push({}),t}isStart(){if(this.#e===this)return!0;if(!this.#n?.isStart())return!1;if(this.#h===0)return!0;let t=this.#n;for(let r=0;r<this.#h;r++){let i=t.#t[r];if(!(i instanceof Jt&&i.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();let t=this.#n?this.#n.#t.length:0;return this.#h===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let r=new Jt(this.type,t);for(let i of this.#t)r.copyIn(i);return r}static#o(t,r,i,n,a){let o=n.maxExtglobRecursion??2,s=!1,u=!1,c=-1,d=!1;if(r.type===null){let h=i,y="";for(;h<t.length;){let v=t.charAt(h++);if(s||v==="\\"){s=!s,y+=v;continue}if(u){h===c+1?(v==="^"||v==="!")&&(d=!0):v==="]"&&!(h===c+2&&d)&&(u=!1),y+=v;continue}else if(v==="["){u=!0,c=h,d=!1,y+=v;continue}if(!n.noext&&Em(v)&&t.charAt(h)==="("&&a<=o){r.push(y),y="";let b=new Jt(v,r);h=Jt.#o(t,b,h,n,a+1),r.push(b);continue}y+=v}return r.push(y),h}let p=i+1,f=new Jt(null,r),m=[],g="";for(;p<t.length;){let h=t.charAt(p++);if(s||h==="\\"){s=!s,g+=h;continue}if(u){p===c+1?(h==="^"||h==="!")&&(d=!0):h==="]"&&!(p===c+2&&d)&&(u=!1),g+=h;continue}else if(h==="["){u=!0,c=p,d=!1,g+=h;continue}if(!n.noext&&Em(h)&&t.charAt(p)==="("&&(a<=o||r&&r.#y(h))){let v=r&&r.#y(h)?0:1;f.push(g),g="";let _=new Jt(h,f);f.push(_),p=Jt.#o(t,_,p,n,a+v);continue}if(h==="|"){f.push(g),g="",m.push(f),f=new Jt(null,r);continue}if(h===")")return g===""&&r.#t.length===0&&(r.#d=!0),f.push(g),g="",r.push(...m,f),p;g+=h}return r.type=null,r.#r=void 0,r.#t=[t.substring(i-1)],p}#g(t){return this.#w(t,XM)}#w(t,r=YM){if(!t||typeof t!="object"||t.type!==null||t.#t.length!==1||this.type===null)return!1;let i=t.#t[0];return!i||typeof i!="object"||i.type===null?!1:this.#y(i.type,r)}#y(t,r=QM){return!!r.get(this.type)?.includes(t)}#v(t,r){let i=t.#t[0],n=new Jt(null,i,this.options);n.#t.push(""),i.push(n),this.#E(t,r)}#E(t,r){let i=t.#t[0];this.#t.splice(r,1,...i.#t);for(let n of i.#t)typeof n=="object"&&(n.#n=this);this.#c=void 0}#b(t){return!!l0.get(this.type)?.has(t)}#x(t){if(!t||typeof t!="object"||t.type!==null||t.#t.length!==1||this.type===null||this.#t.length!==1)return!1;let r=t.#t[0];return!r||typeof r!="object"||r.type===null?!1:this.#b(r.type)}#S(t){let r=l0.get(this.type),i=t.#t[0],n=r?.get(i.type);if(!n)return!1;this.#t=i.#t;for(let a of this.#t)typeof a=="object"&&(a.#n=this);this.type=n,this.#c=void 0,this.#d=!1}static fromGlob(t,r={}){let i=new Jt(null,void 0,r);return Jt.#o(t,i,0,r,0),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let t=this.toString(),[r,i,n,a]=this.toRegExpSource();if(!(n||this.#r||this.#s.nocase&&!this.#s.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;let s=(this.#s.nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,s),{_src:r,_glob:t})}get options(){return this.#s}toRegExpSource(t){let r=t??!!this.#s.dot;if(this.#e===this&&(this.#m(),this.#u()),!s0(this)){let u=this.isStart()&&this.isEnd()&&!this.#t.some(m=>typeof m!="string"),c=this.#t.map(m=>{let[g,h,y,v]=typeof m=="string"?Jt.#k(m,this.#r,u):m.toRegExpSource(t);return this.#r=this.#r||y,this.#i=this.#i||v,g}).join(""),d="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&rL.has(this.#t[0]))){let g=tL,h=r&&g.has(c.charAt(0))||c.startsWith("\\.")&&g.has(c.charAt(2))||c.startsWith("\\.\\.")&&g.has(c.charAt(4)),y=!r&&!t&&g.has(c.charAt(0));d=h?eL:y?Vu:""}let p="";return this.isEnd()&&this.#e.#l&&this.#n?.type==="!"&&(p="(?:$|\\/)"),[d+c+p,Wn(c),this.#r=!!this.#r,this.#i]}let i=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",a=this.#_(r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){let u=this.toString(),c=this;return c.#t=[u],c.type=null,c.#r=void 0,[u,Wn(this.toString()),!1,!1]}let o=!i||t||r||!Vu?"":this.#_(!0);o===a&&(o=""),o&&(a=`(?:${a})(?:${o})*?`);let s="";if(this.type==="!"&&this.#d)s=(this.isStart()&&!r?Vu:"")+c0;else{let u=this.type==="!"?"))"+(this.isStart()&&!r&&!t?Vu:"")+u0+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;s=n+a+u}return[s,Wn(a),this.#r=!!this.#r,this.#i]}#m(){if(s0(this)){let t=0,r=!1;do{r=!0;for(let i=0;i<this.#t.length;i++){let n=this.#t[i];typeof n=="object"&&(n.#m(),this.#w(n)?(r=!1,this.#E(n,i)):this.#g(n)?(r=!1,this.#v(n,i)):this.#x(n)&&(r=!1,this.#S(n)))}}while(!r&&++t<10)}else for(let t of this.#t)typeof t=="object"&&t.#m();this.#c=void 0}#_(t){return this.#t.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[i,n,a,o]=r.toRegExpSource(t);return this.#i=this.#i||o,i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#k(t,r,i=!1){let n=!1,a="",o=!1,s=!1;for(let u=0;u<t.length;u++){let c=t.charAt(u);if(n){n=!1,a+=(nL.has(c)?"\\":"")+c;continue}if(c==="*"){if(s)continue;s=!0,a+=i&&/^[*]+$/.test(t)?c0:u0,r=!0;continue}else s=!1;if(c==="\\"){u===t.length-1?a+="\\\\":n=!0;continue}if(c==="["){let[d,p,f,m]=o0(t,u);if(f){a+=d,o=o||p,u+=f-1,r=r||m;continue}}if(c==="?"){a+=Tm,r=!0;continue}a+=iL(c)}return[a,Wn(t),!!r,o]}};Jt=Mi;var $m=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var it=(e,t,r={})=>(ks(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Ia(t,r).match(e)),oL=/^\*+([^+@!?\*\[\(]*)$/,sL=e=>t=>!t.startsWith(".")&&t.endsWith(e),lL=e=>t=>t.endsWith(e),uL=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),cL=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),dL=/^\*+\.\*+$/,pL=e=>!e.startsWith(".")&&e.includes("."),fL=e=>e!=="."&&e!==".."&&e.includes("."),mL=/^\.\*+$/,hL=e=>e!=="."&&e!==".."&&e.startsWith("."),gL=/^\*+$/,yL=e=>e.length!==0&&!e.startsWith("."),vL=e=>e.length!==0&&e!=="."&&e!=="..",bL=/^\?+([^+@!?\*\[\(]*)?$/,_L=([e,t=""])=>{let r=f0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},wL=([e,t=""])=>{let r=m0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},kL=([e,t=""])=>{let r=m0([e]);return t?i=>r(i)&&i.endsWith(t):r},xL=([e,t=""])=>{let r=f0([e]);return t?i=>r(i)&&i.endsWith(t):r},f0=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},m0=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},h0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",d0={win32:{sep:"\\"},posix:{sep:"/"}},SL=h0==="win32"?d0.win32.sep:d0.posix.sep;it.sep=SL;var Tt=Symbol("globstar **");it.GLOBSTAR=Tt;var IL="[^/]",EL=IL+"*?",TL="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",$L="(?:(?!(?:\\/|^)\\.).)*?",CL=(e,t={})=>r=>it(r,e,t);it.filter=CL;var xr=(e,t={})=>Object.assign({},e,t),AL=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return it;let t=it;return Object.assign((i,n,a={})=>t(i,n,xr(e,a)),{Minimatch:class extends t.Minimatch{constructor(n,a={}){super(n,xr(e,a))}static defaults(n){return t.defaults(xr(e,n)).Minimatch}},AST:class extends t.AST{constructor(n,a,o={}){super(n,a,xr(e,o))}static fromGlob(n,a={}){return t.AST.fromGlob(n,xr(e,a))}},unescape:(i,n={})=>t.unescape(i,xr(e,n)),escape:(i,n={})=>t.escape(i,xr(e,n)),filter:(i,n={})=>t.filter(i,xr(e,n)),defaults:i=>t.defaults(xr(e,i)),makeRe:(i,n={})=>t.makeRe(i,xr(e,n)),braceExpand:(i,n={})=>t.braceExpand(i,xr(e,n)),match:(i,n,a={})=>t.match(i,n,xr(e,a)),sep:t.sep,GLOBSTAR:Tt})};it.defaults=AL;var g0=(e,t={})=>(ks(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:i0(e,{max:t.braceExpandMax}));it.braceExpand=g0;var OL=(e,t={})=>new Ia(e,t).makeRe();it.makeRe=OL;var NL=(e,t,r={})=>{let i=new Ia(t,r);return e=e.filter(n=>i.match(n)),i.options.nonull&&!e.length&&e.push(t),e};it.match=NL;var p0=/[?*]|[+@!]\(.*?\)|\[|\]/,DL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ia=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(t,r={}){ks(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||h0,this.isWindows=this.platform==="win32";let i="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[i]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...a)=>console.error(...a)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(a=>this.slashSplit(a));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let n=this.globParts.map((a,o,s)=>{if(this.isWindows&&this.windowsNoMagicRoot){let u=a[0]===""&&a[1]===""&&(a[2]==="?"||!p0.test(a[2]))&&!p0.test(a[3]),c=/^[a-z]:/i.test(a[0]);if(u)return[...a.slice(0,4),...a.slice(4).map(d=>this.parse(d))];if(c)return[a[0],...a.slice(1).map(d=>this.parse(d))]}return a.map(u=>this.parse(u))});if(this.debug(this.pattern,n),this.set=n.filter(a=>a.indexOf(!1)===-1),this.isWindows)for(let a=0;a<this.set.length;a++){let o=this.set[a];o[0]===""&&o[1]===""&&this.globParts[a][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let i=0;i<t.length;i++)for(let n=0;n<t[i].length;n++)t[i][n]==="**"&&(t[i][n]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let n=i;for(;r[n+1]==="**";)n++;n!==i&&r.splice(i,n-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,n)=>{let a=i[i.length-1];return n==="**"&&a==="**"?i:n===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(i.pop(),i):(i.push(n),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let n=1;n<t.length-1;n++){let a=t[n];n===1&&a===""&&t[0]===""||(a==="."||a==="")&&(r=!0,t.splice(n,1),n--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){let n=t[i-1];n&&n!=="."&&n!==".."&&n!=="**"&&(r=!0,t.splice(i-1,2),i-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let i of t){let n=-1;for(;(n=i.indexOf("**",n+1))!==-1;){let o=n;for(;i[o+1]==="**";)o++;o>n&&i.splice(n+1,o-n);let s=i[n+1],u=i[n+2],c=i[n+3];if(s!==".."||!u||u==="."||u===".."||!c||c==="."||c==="..")continue;r=!0,i.splice(n,1);let d=i.slice(0);d[n]="**",t.push(d),n--}if(!this.preserveMultipleSlashes){for(let o=1;o<i.length-1;o++){let s=i[o];o===1&&s===""&&i[0]===""||(s==="."||s==="")&&(r=!0,i.splice(o,1),o--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let a=0;for(;(a=i.indexOf("..",a+1))!==-1;){let o=i[a-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let u=a===1&&i[a+1]==="**"?["."]:[];i.splice(a-1,2,...u),i.length===0&&i.push(""),a-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let i=r+1;i<t.length;i++){let n=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(n){t[r]=[],t[i]=n;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let n=0,a=0,o=[],s="";for(;n<t.length&&a<r.length;)if(t[n]===r[a])o.push(s==="b"?r[a]:t[n]),n++,a++;else if(i&&t[n]==="**"&&r[a]===t[n+1])o.push(t[n]),n++;else if(i&&r[a]==="**"&&t[n]===r[a+1])o.push(r[a]),a++;else if(t[n]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(s==="b")return!1;s="a",o.push(t[n]),n++,a++}else if(r[a]==="*"&&t[n]&&(this.options.dot||!t[n].startsWith("."))&&t[n]!=="**"){if(s==="a")return!1;s="b",o.push(r[a]),n++,a++}else return!1;return t.length===r.length&&o}parseNegate(){if(this.nonegate)return;let t=this.pattern,r=!1,i=0;for(let n=0;n<t.length&&t.charAt(n)==="!";n++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){let n=0,a=0;if(this.isWindows){let s=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),u=!s&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),c=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),d=!c&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),p=u?3:s?0:void 0,f=d?3:c?0:void 0;if(typeof p=="number"&&typeof f=="number"){let[m,g]=[t[p],r[f]];m.toLowerCase()===g.toLowerCase()&&(r[f]=m,a=f,n=p)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(Tt)?this.#e(t,r,i,n,a):this.#i(t,r,i,n,a)}#e(t,r,i,n,a){let o=r.indexOf(Tt,a),s=r.lastIndexOf(Tt),[u,c,d]=i?[r.slice(a,o),r.slice(o+1),[]]:[r.slice(a,o),r.slice(o+1,s),r.slice(s+1)];if(u.length){let _=t.slice(n,n+u.length);if(!this.#i(_,u,i,0,0))return!1;n+=u.length,a+=u.length}let p=0;if(d.length){if(d.length+n>t.length)return!1;let _=t.length-d.length;if(this.#i(t,d,i,_,0))p=d.length;else{if(t[t.length-1]!==""||n+d.length===t.length||(_--,!this.#i(t,d,i,_,0)))return!1;p=d.length+1}}if(!c.length){let _=!!p;for(let b=n;b<t.length-p;b++){let x=String(t[b]);if(_=!0,x==="."||x===".."||!this.options.dot&&x.startsWith("."))return!1}return i||_}let f=[[[],0]],m=f[0],g=0,h=[0];for(let _ of c)_===Tt?(h.push(g),m=[[],0],f.push(m)):(m[0].push(_),g++);let y=f.length-1,v=t.length-p;for(let _ of f)_[1]=v-(h[y--]+_[0].length);return!!this.#r(t,f,n,0,i,0,!!p)}#r(t,r,i,n,a,o,s){let u=r[n];if(!u){for(let p=i;p<t.length;p++){s=!0;let f=t[p];if(f==="."||f===".."||!this.options.dot&&f.startsWith("."))return!1}return s}let[c,d]=u;for(;i<=d;){if(this.#i(t.slice(0,i+c.length),c,a,i,0)&&o<this.maxGlobstarRecursion){let m=this.#r(t,r,i+c.length,n+1,a,o+1,s);if(m!==!1)return m}let f=t[i];if(f==="."||f===".."||!this.options.dot&&f.startsWith("."))return!1;i++}return a||null}#i(t,r,i,n,a){let o,s,u,c;for(o=n,s=a,c=t.length,u=r.length;o<c&&s<u;o++,s++){this.debug("matchOne loop");let d=r[s],p=t[o];if(this.debug(r,d,p),d===!1||d===Tt)return!1;let f;if(typeof d=="string"?(f=p===d,this.debug("string match",d,p,f)):(f=d.test(p),this.debug("pattern match",d,p,f)),!f)return!1}if(o===c&&s===u)return!0;if(o===c)return i;if(s===u)return o===c-1&&t[o]==="";throw new Error("wtf?")}braceExpand(){return g0(this.pattern,this.options)}parse(t){ks(t);let r=this.options;if(t==="**")return Tt;if(t==="")return"";let i,n=null;(i=t.match(gL))?n=r.dot?vL:yL:(i=t.match(oL))?n=(r.nocase?r.dot?cL:uL:r.dot?lL:sL)(i[1]):(i=t.match(bL))?n=(r.nocase?r.dot?wL:_L:r.dot?kL:xL)(i):(i=t.match(dL))?n=r.dot?fL:pL:(i=t.match(mL))&&(n=hL);let a=Mi.fromGlob(t,this.options).toMMPattern();return n&&typeof a=="object"&&Reflect.defineProperty(a,"test",{value:n}),a}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?EL:r.dot?TL:$L,n=new Set(r.nocase?["i"]:[]),a=t.map(u=>{let c=u.map(p=>{if(p instanceof RegExp)for(let f of p.flags.split(""))n.add(f);return typeof p=="string"?DL(p):p===Tt?Tt:p._src});c.forEach((p,f)=>{let m=c[f+1],g=c[f-1];p!==Tt||g===Tt||(g===void 0?m!==void 0&&m!==Tt?c[f+1]="(?:\\/|"+i+"\\/)?"+m:c[f]=i:m===void 0?c[f-1]=g+"(?:\\/|\\/"+i+")?":m!==Tt&&(c[f-1]=g+"(?:\\/|\\/"+i+"\\/)"+m,c[f+1]=Tt))});let d=c.filter(p=>p!==Tt);if(this.partial&&d.length>=1){let p=[];for(let f=1;f<=d.length;f++)p.push(d.slice(0,f).join("/"));return"(?:"+p.join("|")+")"}return d.join("/")}).join("|"),[o,s]=t.length>1?["(?:",")"]:["",""];a="^"+o+a+s+"$",this.partial&&(a="^(?:\\/|"+o+a.slice(1,-1)+s+")$"),this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;let i=this.options;this.isWindows&&(t=t.split("\\").join("/"));let n=this.slashSplit(t);this.debug(this.pattern,"split",n);let a=this.set;this.debug(this.pattern,"set",a);let o=n[n.length-1];if(!o)for(let s=n.length-2;!o&&s>=0;s--)o=n[s];for(let s=0;s<a.length;s++){let u=a[s],c=n;if(i.matchBase&&u.length===1&&(c=[o]),this.matchOne(c,u,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return it.defaults(t).Minimatch}};it.AST=Mi;it.Minimatch=Ia;it.escape=$m;it.unescape=Wn;var _n=ve(require("fs")),La=ve(require("path"));var Rt=ve(require("fs")),vn=ve(require("path")),iT=ve(require("os")),bn=ve(ni()),aT="vasmc.yaml",oT="vasmc-lock.yaml",s2="vasmc-build.yaml";function Uc(e=process.cwd()){let t=vn.join(e,aT);if(!Rt.existsSync(t))return{dependencies:{}};let r=Rt.readFileSync(t,"utf8");return bn.parse(r)||{dependencies:{}}}function sT(e,t=process.cwd()){let r=vn.join(t,aT),i=bn.stringify(e);Rt.writeFileSync(r,i,"utf8")}function zr(e=process.cwd()){let t=vn.join(e,oT);if(!Rt.existsSync(t))return{version:1,dependencies:{}};let r=Rt.readFileSync(t,"utf8");return bn.parse(r)||{version:1,dependencies:{}}}function qc(e,t=process.cwd()){let r=vn.join(t,oT),i=bn.stringify(e);Rt.writeFileSync(r,i,"utf8")}function Ra(e=process.cwd()){let t=vn.join(e,s2);if(!Rt.existsSync(t))return{includes:[],baseDir:".",routing:[]};let r=Rt.readFileSync(t,"utf8");return bn.parse(r)||{includes:[],baseDir:".",routing:[]}}function lT(){let e={},t=vn.resolve(iT.homedir(),".vasmrc");if(Rt.existsSync(t))try{let i=Rt.readFileSync(t,"utf8"),n=bn.parse(i);n&&(e={...n})}catch(i){console.warn(`[WARN] Failed to parse global ~/.vasmrc: ${i}`)}let r=vn.resolve(process.cwd(),".vasmrc");if(Rt.existsSync(r))try{let i=Rt.readFileSync(r,"utf8"),n=bn.parse(i);n&&(e={...e,...n})}catch(i){console.warn(`[WARN] Failed to parse local ./.vasmrc: ${i}`)}return e}var uT=ve(require("crypto"));async function Bc(e){let t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch ${e}: ${t.status} ${t.statusText}`);return await t.text()}function Zi(e){return uT.createHash("sha256").update(e).digest("hex")}var tl={en:{WARN_RC_PARSE:"[WARN] Failed to parse ~/.vasmrc: {0}",INIT_WARN_EXISTS:"[INIT] \u26A0\uFE0F vasmc-build.yaml already exists in the current directory.",INIT_SUCCESS:"[INIT] \u2705 Successfully created vasmc-build.yaml!",ADD_FETCHING:"[CLI] Fetching {0} to inspect metadata...",ADD_DISCOVERED_ALIAS:"[CLI] Discovered declared alias from Frontmatter: '{0}'",ADD_GENERIC_PATH:"[CLI] Generic path detected. Traversed up to infer alias: '{0}'",ADD_SUCCESS:"[CLI] Added alias '{0}' pointing to {1}",SEAL_ERR_NO_FILES:"[ERROR] Please specify at least one file or pattern to seal.",SEAL_ERR_NO_MATCH:"[ERROR] No files matched the given patterns.",SEAL_WARN_EXISTS:"[WARN] File '{0}' already contains VASMC Frontmatter.",SEAL_AUTO_WRAP:"[CLI] \u{1F310} Auto-wrapped content in '{0}' block.",SEAL_SUCCESS_RENAME:"[CLI] \u{1F4E6} Sealed module! Renamed to '{0}' and injected Frontmatter (alias: '{1}').",SEAL_SUCCESS_INJECT:"[CLI] \u{1F4E6} Sealed module! Injected Frontmatter into '{0}' (alias: '{1}').",LANG_DETECT_UNCERTAIN:"[LANG] Could not confidently infer source language for '{0}'. Leaving targetLangs unset; pass --lang or edit frontmatter to declare it explicitly.",LANG_DETECT_AGENT_FALLBACK:"[LANG] Could not confidently infer source language for '{0}'. AI build will use first target language as source: '{1}'.",UPDATE_CLEARED_ALIAS:"[CLI] Cleared lock cache for '{0}'.",UPDATE_WARN_NOT_FOUND:"[WARN] Alias '{0}' not found in lockfile.",UPDATE_CLEARED_ALL:"[CLI] Cleared locked cache for all dependencies.",CLI_DESC_GRAPH:"Generate an ASCII dependency graph for the specified entry file.",BUILD_ERR_ENTRY_NOT_FOUND:"[ERROR] Entry file not found: {0}",BUILD_SUCCESS_SINGLE:"[BUILD] \u2705 Compiled {0} {1} -> {2}",BUILD_ERR_SINGLE:"[BUILD] \u274C Failed to compile {0}: {1}",BUILD_NO_FILES:"[BUILD] No source files found matching patterns: {0}",BUILD_COMPILING:"[BUILD] Compiling {0} {1} -> {2}",BUILD_SUCCESS:"[BUILD] \u2705 Success: {0}",BUILD_WARN_EXTRACT:"[WARN] Skipping unknown language '{0}' in {1}",BUILD_ERR_WORKSPACE:"[BUILD] \u274C Failed to compile {0} ({1}): {2}",WARN_TOKEN_LIMIT:"\\n[WARN] \u26A0\uFE0F The compiled output contains approximately {0} tokens, which exceeds the recommended 20,000 token limit for System Prompts. Consider refactoring or trimming your context window.",SYNC_WARN_NO_URL:"[SYNC] \u26A0\uFE0F No URL defined for alias '{0}'. Skipping.",SYNC_WARN_HASH_MISMATCH:"[SYNC] \u26A0\uFE0F Local hash mismatch for '{0}'. Re-fetching.",SYNC_FETCHING_START:"[SYNC] Fetching: {0} -> {1}",SYNC_FOUND_VERSION:" \u21B3 Found version: {0}",SYNC_FOUND_NESTED:" \u21B3 Found nested dependencies. Inheriting...",SYNC_INHERITING:" \u21B3 Inheriting dependency: {0} -> {1}",SYNC_SKIPPING_OVERRIDDEN:" \u21B3 Skipping '{0}' (overridden by root project).",SYNC_SUCCESS_ALIAS:" \u21B3 Synced: {0}",SYNC_ERR_FAILED:"[SYNC] \u274C Failed to sync '{0}': {1}",SYNC_UP_TO_DATE_ALIAS:"[SYNC] \u2705 '{0}' is up-to-date.",SYNC_LOCK_UPDATED:"[SYNC] \u{1F512} Lockfile updated.",COMPILER_USE_EXISTING_BLOCK:"[COMPILER] \u26A1\uFE0F Using existing '{0}' block for {1}",COMPILER_NLP_SKIP:"[COMPILER] \u26A1\uFE0F Detected source already matches '{0}'. Keeping deterministic source text.",COMPILER_ROUTER_SKIP:"[COMPILER] \u26A1\uFE0F Routing-only module detected. Keeping deterministic source text for '{0}'.",COMPILER_TRANS_UNAVAILABLE:"[COMPILER] Missing target language '{0}' in {1}. Deterministic compile will keep source text; use vasmc build work orders or the console package for assisted translation.",COMPILER_ERR_INFER_LANG:"[ERROR] Could not infer AST language from {0}. Please ensure it contains <!-- lang:xx --> blocks or specify --target-langs.",COMPILER_SKIP_MATCHING:"[COMPILER] Skipped matching translation code for '{0}'"},"zh-CN":{WARN_RC_PARSE:"[WARN] \u89E3\u6790 ~/.vasmrc \u5931\u8D25: {0}",INIT_WARN_EXISTS:"[INIT] \u26A0\uFE0F vasmc-build.yaml \u5DF2\u5B58\u5728\u4E8E\u5F53\u524D\u76EE\u5F55\u4E2D\u3002",INIT_SUCCESS:"[INIT] \u2705 \u6210\u529F\u521B\u5EFA vasmc-build.yaml \u914D\u7F6E\u6587\u4EF6\uFF01",ADD_FETCHING:"[CLI] \u6B63\u5728\u62C9\u53D6 {0} \u4EE5\u68C0\u67E5\u5143\u6570\u636E...",ADD_DISCOVERED_ALIAS:"[CLI] \u4ECE Frontmatter \u4E2D\u53D1\u73B0\u58F0\u660E\u7684\u522B\u540D: '{0}'",ADD_GENERIC_PATH:"[CLI] \u63A2\u6D4B\u5230\u901A\u7528\u8DEF\u5F84\u3002\u6B63\u5411\u4E0A\u56DE\u6EAF\u4EE5\u63A8\u65AD\u522B\u540D: '{0}'",ADD_SUCCESS:"[CLI] \u5DF2\u6DFB\u52A0\u522B\u540D '{0}' \u6307\u5411 {1}",SEAL_ERR_NO_FILES:"[ERROR] \u8BF7\u81F3\u5C11\u6307\u5B9A\u4E00\u4E2A\u6587\u4EF6\u6216\u6A21\u5F0F\u8FDB\u884C\u5BC6\u5C01 (seal)\u3002",SEAL_ERR_NO_MATCH:"[ERROR] \u6CA1\u6709\u627E\u5230\u5339\u914D\u8BE5\u6A21\u5F0F\u7684\u6587\u4EF6\u3002",SEAL_WARN_EXISTS:"[WARN] \u6587\u4EF6 '{0}' \u5DF2\u7ECF\u5305\u542B VASMC Frontmatter\u3002",SEAL_AUTO_WRAP:"[CLI] \u{1F310} \u5DF2\u5C06\u5185\u5BB9\u81EA\u52A8\u7528 '{0}' \u8BED\u8A00\u5757\u5305\u88F9\u3002",SEAL_SUCCESS_RENAME:"[CLI] \u{1F4E6} \u6A21\u5757\u5BC6\u5C01\u5B8C\u6BD5\uFF01\u5DF2\u91CD\u547D\u540D\u4E3A '{0}' \u5E76\u6CE8\u5165\u4E86 Frontmatter (\u522B\u540D: '{1}')\u3002",SEAL_SUCCESS_INJECT:"[CLI] \u{1F4E6} \u6A21\u5757\u5BC6\u5C01\u5B8C\u6BD5\uFF01\u5DF2\u5728 '{0}' \u4E2D\u6CE8\u5165 Frontmatter (\u522B\u540D: '{1}')\u3002",LANG_DETECT_UNCERTAIN:"[LANG] \u65E0\u6CD5\u9AD8\u7F6E\u4FE1\u5EA6\u63A8\u65AD '{0}' \u7684\u6E90\u8BED\u8A00\u3002\u5DF2\u4FDD\u7559 targetLangs \u672A\u58F0\u660E\uFF1B\u8BF7\u901A\u8FC7 --lang \u6216 frontmatter \u663E\u5F0F\u58F0\u660E\u3002",LANG_DETECT_AGENT_FALLBACK:"[LANG] \u65E0\u6CD5\u9AD8\u7F6E\u4FE1\u5EA6\u63A8\u65AD '{0}' \u7684\u6E90\u8BED\u8A00\u3002AI build \u5C06\u4F7F\u7528\u7B2C\u4E00\u4E2A\u76EE\u6807\u8BED\u8A00\u4F5C\u4E3A\u6E90\u8BED\u8A00: '{1}'\u3002",UPDATE_CLEARED_ALIAS:"[CLI] \u5DF2\u6E05\u9664 '{0}' \u7684 lock \u7F13\u5B58\u3002",UPDATE_WARN_NOT_FOUND:"[WARN] lockfile \u4E2D\u672A\u627E\u5230\u522B\u540D '{0}'\u3002",UPDATE_CLEARED_ALL:"[CLI] \u5DF2\u6E05\u9664\u6240\u6709\u4F9D\u8D56\u7684 lock \u7F13\u5B58\u3002",CLI_DESC_GRAPH:"\u4E3A\u6307\u5B9A\u7684\u5165\u53E3\u6587\u4EF6\u751F\u6210\u4F9D\u8D56\u5173\u7CFB\u62D3\u6251\u56FE\u3002",BUILD_ERR_ENTRY_NOT_FOUND:"[ERROR] \u627E\u4E0D\u5230\u5165\u53E3\u6587\u4EF6: {0}",BUILD_SUCCESS_SINGLE:"[BUILD] \u2705 \u7F16\u8BD1\u6210\u529F {0} {1} -> {2}",BUILD_ERR_SINGLE:"[BUILD] \u274C \u7F16\u8BD1\u5931\u8D25 {0}: {1}",BUILD_NO_FILES:"[BUILD] \u672A\u627E\u5230\u5339\u914D\u8BE5\u6A21\u5F0F\u7684\u6E90\u6587\u4EF6: {0}",BUILD_COMPILING:"[BUILD] \u6B63\u5728\u7F16\u8BD1 {0} {1} -> {2}",BUILD_SUCCESS:"[BUILD] \u2705 \u7F16\u8BD1\u6210\u529F: {0}",BUILD_WARN_EXTRACT:"[WARN] \u8DF3\u8FC7 {1} \u4E2D\u7684\u672A\u77E5\u8BED\u8A00 '{0}'",BUILD_ERR_WORKSPACE:"[BUILD] \u274C \u7F16\u8BD1\u5931\u8D25 {0} ({1}): {2}",WARN_TOKEN_LIMIT:"\\n[WARN] \u26A0\uFE0F \u7F16\u8BD1\u540E\u7684\u4EA7\u7269\u5927\u7EA6\u5305\u542B {0} \u4E2A Token\u3002\u8FD9\u8D85\u8FC7\u4E86 System Prompt \u63A8\u8350\u7684\u5B89\u5168\u9608\u503C (20,000)\uFF0C\u8BF7\u5408\u7406\u7BA1\u63A7\u4EE5\u9632\u5927\u6A21\u578B\u6CE8\u610F\u529B\u4E22\u5931\u6216\u89E6\u53D1\u622A\u65AD\u3002",SYNC_WARN_NO_URL:"[SYNC] \u26A0\uFE0F \u522B\u540D '{0}' \u672A\u5B9A\u4E49 URL\uFF0C\u5DF2\u8DF3\u8FC7\u3002",SYNC_WARN_HASH_MISMATCH:"[SYNC] \u26A0\uFE0F '{0}' \u672C\u5730\u54C8\u5E0C\u4E0D\u5339\u914D\uFF0C\u91CD\u65B0\u62C9\u53D6\u3002",SYNC_FETCHING_START:"[SYNC] \u6B63\u5728\u62C9\u53D6: {0} -> {1}",SYNC_FOUND_VERSION:" \u21B3 \u53D1\u73B0\u7248\u672C\u53F7: {0}",SYNC_FOUND_NESTED:" \u21B3 \u53D1\u73B0\u5D4C\u5957\u4F9D\u8D56\uFF0C\u6B63\u5728\u7EE7\u627F...",SYNC_INHERITING:" \u21B3 \u7EE7\u627F\u4F9D\u8D56: {0} -> {1}",SYNC_SKIPPING_OVERRIDDEN:" \u21B3 \u8DF3\u8FC7 '{0}'\uFF08\u5DF2\u88AB\u4E3B\u9879\u76EE\u8986\u5199\uFF09\u3002",SYNC_SUCCESS_ALIAS:" \u21B3 \u540C\u6B65\u5B8C\u6210: {0}",SYNC_ERR_FAILED:"[SYNC] \u274C \u540C\u6B65 '{0}' \u5931\u8D25: {1}",SYNC_UP_TO_DATE_ALIAS:"[SYNC] \u2705 '{0}' \u5DF2\u662F\u6700\u65B0\u3002",SYNC_LOCK_UPDATED:"[SYNC] \u{1F512} \u9501\u6587\u4EF6\u5DF2\u66F4\u65B0\u3002",COMPILER_USE_EXISTING_BLOCK:"[COMPILER] \u26A1\uFE0F \u5BF9\u4E8E\u6587\u4EF6 {1}\uFF0C\u5DF2\u590D\u7528\u73B0\u6709\u7684 '{0}' \u8BED\u8A00\u5757",COMPILER_NLP_SKIP:"[COMPILER] \u26A1\uFE0F \u68C0\u6D4B\u5230\u6E90\u6587\u672C\u5DF2\u7ECF\u5339\u914D '{0}'\u3002\u786E\u5B9A\u6027\u4FDD\u7559\u6E90\u6587\u672C\u3002",COMPILER_ROUTER_SKIP:"[COMPILER] \u26A1\uFE0F \u68C0\u6D4B\u5230\u7EAF\u8DEF\u7531\u805A\u5408\u6A21\u5757\u3002\u9488\u5BF9 '{0}' \u786E\u5B9A\u6027\u4FDD\u7559\u6E90\u6587\u672C\u3002",COMPILER_TRANS_UNAVAILABLE:"[COMPILER] \u6587\u4EF6 {1} \u4E2D\u7F3A\u5C11\u76EE\u6807\u8BED\u8A00 '{0}'\u3002\u786E\u5B9A\u6027\u7F16\u8BD1\u5C06\u4FDD\u7559\u6E90\u6587\u672C\uFF1B\u8BF7\u4F7F\u7528 vasmc build \u5DE5\u4F5C\u5355\u6216 console \u5305\u6267\u884C\u8F85\u52A9\u7FFB\u8BD1\u3002",COMPILER_ERR_INFER_LANG:"[ERROR] \u65E0\u6CD5\u4ECE {0} \u63A8\u65AD AST \u8BED\u8A00\u3002\u8BF7\u786E\u4FDD\u6587\u4EF6\u4E2D\u5305\u542B <!-- lang:xx --> \u4EE3\u7801\u5757\uFF0C\u6216\u8005\u901A\u8FC7 --target-langs \u663E\u5F0F\u6307\u5B9A\u3002",COMPILER_SKIP_MATCHING:"[COMPILER] \u8DF3\u8FC7\u5339\u914D\u7FFB\u8BD1\u4EE3\u7801 '{0}'"}},Ma="en";function cT(){return Ma}function dT(e){if(e&&tl[e]){Ma=e;return}let t=lT();if(t.lang&&tl[t.lang]){Ma=t.lang;return}Intl.DateTimeFormat().resolvedOptions().locale.startsWith("zh")?Ma="zh-CN":Ma="en"}function ue(e,...t){let i=(tl[Ma]||tl.en)[e];i||(i=tl.en[e]||e);for(let n=0;n<t.length;n++)i=i.replace(`{${n}}`,String(t[n]));return i}var Vc=ve(ni()),l2=/^---[ \t]*\r?\n([\s\S]*?)\r?\n---[ \t]*(?:\r?\n|$)/;function Wi(e){let t=l2.exec(e);if(!t)return{data:{},content:e};let r;try{r=Vc.parse(t[1])}catch{r={}}return(!r||typeof r!="object"||Array.isArray(r))&&(r={}),{data:r,content:e.slice(t[0].length)}}function pT(e,t){let r=Vc.stringify(t).trimEnd(),i=e.startsWith(`
|
|
171
|
+
`)?e:`
|
|
172
|
+
${e}`;return`---
|
|
173
|
+
${r}
|
|
174
|
+
---${i}`}async function Zc(e=process.cwd()){let t=Uc(e),r=zr(e),i=!1;if(!t.dependencies||Object.keys(t.dependencies).length===0){console.log("No dependencies found in vasmc.yaml");return}for(let[n,a]of Object.entries(t.dependencies)){let o=typeof a=="string"?a:a.url,s=typeof a=="string"?void 0:a.dest;if(!o){console.warn(ue("SYNC_WARN_NO_URL",n));continue}let u=r.dependencies[n],c=s?La.resolve(e,s):La.join(e,".vasmc",n+".md"),d=!1;if(!u)d=!0;else if(u.url!==o)d=!0;else if(!_n.existsSync(c))d=!0;else{let p=_n.readFileSync(c,"utf8");Zi(p)!==u.hash&&(d=!0,console.warn(ue("SYNC_WARN_HASH_MISMATCH",n)))}if(d){console.log(ue("SYNC_FETCHING_START",n,o));try{let p=await Bc(o),f=Zi(p),m=La.dirname(c);_n.existsSync(m)||_n.mkdirSync(m,{recursive:!0}),_n.writeFileSync(c,p,"utf8");let g=Wi(p),h=g.data.version;if(h&&console.log(ue("SYNC_FOUND_VERSION",h)),g.data.vasm&&g.data.vasm.dependencies){console.log(ue("SYNC_FOUND_NESTED"));for(let[y,v]of Object.entries(g.data.vasm.dependencies))t.dependencies[y]?console.log(ue("SYNC_SKIPPING_OVERRIDDEN",y)):(console.log(ue("SYNC_INHERITING",y,v)),t.dependencies[y]=v)}r.dependencies[n]={url:o,dest:s,version:h,hash:f,fetchedAt:new Date().toISOString()},i=!0,console.log(ue("SYNC_SUCCESS_ALIAS",n))}catch(p){console.error(ue("SYNC_ERR_FAILED",n,p.message))}}else console.log(ue("SYNC_UP_TO_DATE_ALIAS",n))}i&&(qc(r,e),console.log(ue("SYNC_LOCK_UPDATED")))}var he=ve(require("path")),Re=ve(require("fs"));var ci=ve(require("fs")),bt=ve(require("path")),bd=ve(ni());function ug(e){if(e)throw e}var Hc=ve(wT(),1);function rl(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function cg(){let e=[],t={run:r,use:i};return t;function r(...n){let a=-1,o=n.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...n);function s(u,...c){let d=e[++a],p=-1;if(u){o(u);return}for(;++p<n.length;)(c[p]===null||c[p]===void 0)&&(c[p]=n[p]);n=c,d?kT(d,s)(...c):o(null,...c)}}function i(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function kT(e,t){let r;return i;function i(...o){let s=e.length>o.length,u;s&&o.push(n);try{u=e.apply(this,o)}catch(c){let d=c;if(s&&r)throw d;return n(d)}s||(u&&u.then&&typeof u.then=="function"?u.then(a,n):u instanceof Error?n(u):a(u))}function n(o,...s){r||(r=!0,t(o,...s))}function a(o){n(null,o)}}function ii(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?xT(e.position):"start"in e||"end"in e?xT(e):"line"in e||"column"in e?dg(e):""}function dg(e){return ST(e&&e.line)+":"+ST(e&&e.column)}function xT(e){return dg(e&&e.start)+"-"+dg(e&&e.end)}function ST(e){return e&&typeof e=="number"?e:1}var ht=class extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let n="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?n=t:!a.cause&&t&&(o=!0,n=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof i=="string"){let u=i.indexOf(":");u===-1?a.ruleId=i:(a.source=i.slice(0,u),a.ruleId=i.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){let u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}let s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=n,this.line=s?s.line:void 0,this.name=ii(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};ht.prototype.file="";ht.prototype.name="";ht.prototype.reason="";ht.prototype.message="";ht.prototype.stack="";ht.prototype.column=void 0;ht.prototype.line=void 0;ht.prototype.ancestors=void 0;ht.prototype.cause=void 0;ht.prototype.fatal=void 0;ht.prototype.place=void 0;ht.prototype.ruleId=void 0;ht.prototype.source=void 0;var Ir=ve(require("path"),1);var pg=ve(require("process"),1);var fg=require("url");function Gc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}var mg=["history","path","basename","stem","extname","dirname"],nl=class{constructor(t){let r;t?Gc(t)?r={path:t}:typeof t=="string"||u2(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":pg.default.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<mg.length;){let a=mg[i];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let n;for(n in r)mg.includes(n)||(this[n]=r[n])}get basename(){return typeof this.path=="string"?Ir.default.basename(this.path):void 0}set basename(t){gg(t,"basename"),hg(t,"basename"),this.path=Ir.default.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ir.default.dirname(this.path):void 0}set dirname(t){IT(this.basename,"dirname"),this.path=Ir.default.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ir.default.extname(this.path):void 0}set extname(t){if(hg(t,"extname"),IT(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ir.default.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Gc(t)&&(t=(0,fg.fileURLToPath)(t)),gg(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ir.default.basename(this.path,this.extname):void 0}set stem(t){gg(t,"stem"),hg(t,"stem"),this.path=Ir.default.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){let n=this.message(t,r,i);throw n.fatal=!0,n}info(t,r,i){let n=this.message(t,r,i);return n.fatal=void 0,n}message(t,r,i){let n=new ht(t,r,i);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function hg(e,t){if(e&&e.includes(Ir.default.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ir.default.sep+"`")}function gg(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function IT(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function u2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var ET=(function(e){let i=this.constructor.prototype,n=i[e],a=function(){return n.apply(a,arguments)};return Object.setPrototypeOf(a,i),a});var c2={}.hasOwnProperty,_g=class e extends ET{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=cg()}copy(){let t=new e,r=-1;for(;++r<this.attachers.length;){let i=this.attachers[r];t.use(...i)}return t.data((0,Hc.default)(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(bg("data",this.frozen),this.namespace[t]=r,this):c2.call(this.namespace,t)&&this.namespace[t]||void 0:t?(bg("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);let n=r.call(t,...i);typeof n=="function"&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let r=Jc(t),i=this.parser||this.Parser;return yg("parse",i),i(String(r),r)}process(t,r){let i=this;return this.freeze(),yg("process",this.parser||this.Parser),vg("process",this.compiler||this.Compiler),r?n(void 0,r):new Promise(n);function n(a,o){let s=Jc(t),u=i.parse(s);i.run(u,s,function(d,p,f){if(d||!p||!f)return c(d);let m=p,g=i.stringify(m,f);p2(g)?f.value=g:f.result=g,c(d,f)});function c(d,p){d||!p?o(d):a?a(p):r(void 0,p)}}}processSync(t){let r=!1,i;return this.freeze(),yg("processSync",this.parser||this.Parser),vg("processSync",this.compiler||this.Compiler),this.process(t,n),$T("processSync","process",r),i;function n(a,o){r=!0,ug(a),i=o}}run(t,r,i){TT(t),this.freeze();let n=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?a(void 0,i):new Promise(a);function a(o,s){let u=Jc(r);n.run(t,u,c);function c(d,p,f){let m=p||t;d?s(d):o?o(m):i(void 0,m,f)}}}runSync(t,r){let i=!1,n;return this.run(t,r,a),$T("runSync","run",i),n;function a(o,s){ug(o),n=s,i=!0}}stringify(t,r){this.freeze();let i=Jc(r),n=this.compiler||this.Compiler;return vg("stringify",n),TT(t),n(t,i)}use(t,...r){let i=this.attachers,n=this.namespace;if(bg("use",this.frozen),t!=null)if(typeof t=="function")u(t,r);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){let[d,...p]=c;u(d,p)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(c.plugins),c.settings&&(n.settings=(0,Hc.default)(!0,n.settings,c.settings))}function s(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){let p=c[d];a(p)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,d){let p=-1,f=-1;for(;++p<i.length;)if(i[p][0]===c){f=p;break}if(f===-1)i.push([c,...d]);else if(d.length>0){let[m,...g]=d,h=i[f][1];rl(h)&&rl(m)&&(m=(0,Hc.default)(!0,h,m)),i[f]=[c,m,...g]}}}},Gi=new _g().freeze();function yg(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function vg(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function bg(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function TT(e){if(!rl(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function $T(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Jc(e){return d2(e)?e:new nl(e)}function d2(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function p2(e){return typeof e=="string"||f2(e)}function f2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var m2={};function Ji(e,t){let r=t||m2,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,n=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return AT(e,i,n)}function AT(e,t,r){if(h2(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return CT(e.children,t,r)}return Array.isArray(e)?CT(e,t,r):""}function CT(e,t,r){let i=[],n=-1;for(;++n<e.length;)i[n]=AT(e[n],t,r);return i.join("")}function h2(e){return!!(e&&typeof e=="object")}var wg={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
175
|
+
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var g2={}.hasOwnProperty;function Fa(e){return g2.call(wg,e)?wg[e]:!1}function vt(e,t,r,i){let n=e.length,a=0,o;if(t<0?t=-t>n?0:n+t:t=t>n?n:t,r=r>0?r:0,i.length<1e4)o=Array.from(i),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);a<i.length;)o=i.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Mt(e,t){return e.length>0?(vt(e,e.length,0,t),e):t}var OT={}.hasOwnProperty;function NT(e){let t={},r=-1;for(;++r<e.length;)y2(t,e[r]);return t}function y2(e,t){let r;for(r in t){let n=(OT.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r],o;if(a)for(o in a){OT.call(n,o)||(n[o]=[]);let s=a[o];v2(n[o],Array.isArray(s)?s:s?[s]:[])}}}function v2(e,t){let r=-1,i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);vt(e,0,0,i)}function Kc(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}function wn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var cr=ai(/[A-Za-z]/),Lt=ai(/[\dA-Za-z]/),DT=ai(/[#-'*+\--9=?A-Z^-~]/);function il(e){return e!==null&&(e<32||e===127)}var al=ai(/\d/),jT=ai(/[\dA-Fa-f]/),PT=ai(/[!-/:-@[-`{-~]/);function te(e){return e!==null&&e<-2}function nt(e){return e!==null&&(e<0||e===32)}function ge(e){return e===-2||e===-1||e===32}var zT=ai(new RegExp("\\p{P}|\\p{S}","u")),RT=ai(/\s/);function ai(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function ke(e,t,r,i){let n=i?i-1:Number.POSITIVE_INFINITY,a=0;return o;function o(u){return ge(u)?(e.enter(r),s(u)):t(u)}function s(u){return ge(u)&&a++<n?(e.consume(u),s):(e.exit(r),t(u))}}var MT={tokenize:b2};function b2(e){let t=e.attempt(this.parser.constructs.contentInitial,i,n),r;return t;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ke(e,t,"linePrefix")}function n(s){return e.enter("paragraph"),a(s)}function a(s){let u=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=u),r=u,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return te(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}var FT={tokenize:_2},LT={tokenize:w2};function _2(e){let t=this,r=[],i=0,n,a,o;return s;function s(b){if(i<r.length){let x=r[i];return t.containerState=x[1],e.attempt(x[0].continuation,u,c)(b)}return c(b)}function u(b){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&_();let x=t.events.length,E=x,k;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){k=t.events[E][1].end;break}v(i);let A=x;for(;A<t.events.length;)t.events[A][1].end={...k},A++;return vt(t.events,E+1,0,t.events.slice(x)),t.events.length=A,c(b)}return s(b)}function c(b){if(i===r.length){if(!n)return f(b);if(n.currentConstruct&&n.currentConstruct.concrete)return g(b);t.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(LT,d,p)(b)}function d(b){return n&&_(),v(i),f(b)}function p(b){return t.parser.lazy[t.now().line]=i!==r.length,o=t.now().offset,g(b)}function f(b){return t.containerState={},e.attempt(LT,m,g)(b)}function m(b){return i++,r.push([t.currentConstruct,t.containerState]),f(b)}function g(b){if(b===null){n&&_(),v(0),e.consume(b);return}return n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:a}),h(b)}function h(b){if(b===null){y(e.exit("chunkFlow"),!0),v(0),e.consume(b);return}return te(b)?(e.consume(b),y(e.exit("chunkFlow")),i=0,t.interrupt=void 0,s):(e.consume(b),h)}function y(b,x){let E=t.sliceStream(b);if(x&&E.push(null),b.previous=a,a&&(a.next=b),a=b,n.defineSkip(b.start),n.write(E),t.parser.lazy[b.start.line]){let k=n.events.length;for(;k--;)if(n.events[k][1].start.offset<o&&(!n.events[k][1].end||n.events[k][1].end.offset>o))return;let A=t.events.length,$=A,T,Y;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(T){Y=t.events[$][1].end;break}T=!0}for(v(i),k=A;k<t.events.length;)t.events[k][1].end={...Y},k++;vt(t.events,$+1,0,t.events.slice(A)),t.events.length=k}}function v(b){let x=r.length;for(;x-- >b;){let E=r[x];t.containerState=E[1],E[0].exit.call(t,e)}r.length=b}function _(){n.write([null]),a=void 0,n=void 0,t.containerState._closeFlow=void 0}}function w2(e,t,r){return ke(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ua(e){if(e===null||nt(e)||RT(e))return 1;if(zT(e))return 2}function qa(e,t,r){let i=[],n=-1;for(;++n<e.length;){let a=e[n].resolveAll;a&&!i.includes(a)&&(t=a(t,r),i.push(a))}return t}var ol={name:"attention",resolveAll:k2,tokenize:x2};function k2(e,t){let r=-1,i,n,a,o,s,u,c,d;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;u=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let p={...e[i][1].end},f={...e[r][1].start};UT(p,-u),UT(f,u),o={type:u>1?"strongSequence":"emphasisSequence",start:p,end:{...e[i][1].end}},s={type:u>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:f},a={type:u>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},n={type:u>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[i][1].end={...o.start},e[r][1].start={...s.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=Mt(c,[["enter",e[i][1],t],["exit",e[i][1],t]])),c=Mt(c,[["enter",n,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=Mt(c,qa(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),c=Mt(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",n,t]]),e[r][1].end.offset-e[r][1].start.offset?(d=2,c=Mt(c,[["enter",e[r][1],t],["exit",e[r][1],t]])):d=0,vt(e,i-1,r-i+3,c),r=i+c.length-d-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function x2(e,t){let r=this.parser.constructs.attentionMarkers.null,i=this.previous,n=Ua(i),a;return o;function o(u){return a=u,e.enter("attentionSequence"),s(u)}function s(u){if(u===a)return e.consume(u),s;let c=e.exit("attentionSequence"),d=Ua(u),p=!d||d===2&&n||r.includes(u),f=!n||n===2&&d||r.includes(i);return c._open=!!(a===42?p:p&&(n||!f)),c._close=!!(a===42?f:f&&(d||!p)),t(u)}}function UT(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var kg={name:"autolink",tokenize:S2};function S2(e,t,r){let i=0;return n;function n(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(m){return cr(m)?(e.consume(m),o):m===64?r(m):c(m)}function o(m){return m===43||m===45||m===46||Lt(m)?(i=1,s(m)):c(m)}function s(m){return m===58?(e.consume(m),i=0,u):(m===43||m===45||m===46||Lt(m))&&i++<32?(e.consume(m),s):(i=0,c(m))}function u(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||il(m)?r(m):(e.consume(m),u)}function c(m){return m===64?(e.consume(m),d):DT(m)?(e.consume(m),c):r(m)}function d(m){return Lt(m)?p(m):r(m)}function p(m){return m===46?(e.consume(m),i=0,d):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):f(m)}function f(m){if((m===45||Lt(m))&&i++<63){let g=m===45?f:p;return e.consume(m),g}return r(m)}}var oi={partial:!0,tokenize:I2};function I2(e,t,r){return i;function i(a){return ge(a)?ke(e,n,"linePrefix")(a):n(a)}function n(a){return a===null||te(a)?t(a):r(a)}}var Yc={continuation:{tokenize:T2},exit:$2,name:"blockQuote",tokenize:E2};function E2(e,t,r){let i=this;return n;function n(o){if(o===62){let s=i.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return r(o)}function a(o){return ge(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function T2(e,t,r){let i=this;return n;function n(o){return ge(o)?ke(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(Yc,t,r)(o)}}function $2(e){e.exit("blockQuote")}var Xc={name:"characterEscape",tokenize:C2};function C2(e,t,r){return i;function i(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),n}function n(a){return PT(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}var Qc={name:"characterReference",tokenize:A2};function A2(e,t,r){let i=this,n=0,a,o;return s;function s(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),u}function u(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,o=Lt,d(p))}function c(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=jT,d):(e.enter("characterReferenceValue"),a=7,o=al,d(p))}function d(p){if(p===59&&n){let f=e.exit("characterReferenceValue");return o===Lt&&!Fa(i.sliceSerialize(f))?r(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(p)&&n++<a?(e.consume(p),d):r(p)}}var qT={partial:!0,tokenize:N2},ed={concrete:!0,name:"codeFenced",tokenize:O2};function O2(e,t,r){let i=this,n={partial:!0,tokenize:E},a=0,o=0,s;return u;function u(k){return c(k)}function c(k){let A=i.events[i.events.length-1];return a=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,s=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(k)}function d(k){return k===s?(o++,e.consume(k),d):o<3?r(k):(e.exit("codeFencedFenceSequence"),ge(k)?ke(e,p,"whitespace")(k):p(k))}function p(k){return k===null||te(k)?(e.exit("codeFencedFence"),i.interrupt?t(k):e.check(qT,h,x)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return k===null||te(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(k)):ge(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ke(e,m,"whitespace")(k)):k===96&&k===s?r(k):(e.consume(k),f)}function m(k){return k===null||te(k)?p(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===null||te(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(k)):k===96&&k===s?r(k):(e.consume(k),g)}function h(k){return e.attempt(n,x,y)(k)}function y(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),v}function v(k){return a>0&&ge(k)?ke(e,_,"linePrefix",a+1)(k):_(k)}function _(k){return k===null||te(k)?e.check(qT,h,x)(k):(e.enter("codeFlowValue"),b(k))}function b(k){return k===null||te(k)?(e.exit("codeFlowValue"),_(k)):(e.consume(k),b)}function x(k){return e.exit("codeFenced"),t(k)}function E(k,A,$){let T=0;return Y;function Y(N){return k.enter("lineEnding"),k.consume(N),k.exit("lineEnding"),R}function R(N){return k.enter("codeFencedFence"),ge(N)?ke(k,O,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):O(N)}function O(N){return N===s?(k.enter("codeFencedFenceSequence"),j(N)):$(N)}function j(N){return N===s?(T++,k.consume(N),j):T>=o?(k.exit("codeFencedFenceSequence"),ge(N)?ke(k,z,"whitespace")(N):z(N)):$(N)}function z(N){return N===null||te(N)?(k.exit("codeFencedFence"),A(N)):$(N)}}}function N2(e,t,r){let i=this;return n;function n(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return i.parser.lazy[i.now().line]?r(o):t(o)}}var sl={name:"codeIndented",tokenize:j2},D2={partial:!0,tokenize:P2};function j2(e,t,r){let i=this;return n;function n(c){return e.enter("codeIndented"),ke(e,a,"linePrefix",5)(c)}function a(c){let d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(c):r(c)}function o(c){return c===null?u(c):te(c)?e.attempt(D2,o,u)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||te(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function u(c){return e.exit("codeIndented"),t(c)}}function P2(e,t,r){let i=this;return n;function n(o){return i.parser.lazy[i.now().line]?r(o):te(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n):ke(e,a,"linePrefix",5)(o)}function a(o){let s=i.events[i.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):te(o)?n(o):r(o)}}var xg={name:"codeText",previous:R2,resolve:z2,tokenize:M2};function z2(e){let t=e.length-4,r=3,i,n;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)n===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(n=i):(i===t||e[i][1].type==="lineEnding")&&(e[n][1].type="codeTextData",i!==n+2&&(e[n][1].end=e[i-1][1].end,e.splice(n+2,i-n-2),t-=i-n-2,i=n+2),n=void 0);return e}function R2(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function M2(e,t,r){let i=this,n=0,a,o;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),u(f)}function u(f){return f===96?(e.consume(f),n++,u):(e.exit("codeTextSequence"),c(f))}function c(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),c):f===96?(o=e.enter("codeTextSequence"),a=0,p(f)):te(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("codeTextData"),d(f))}function d(f){return f===null||f===32||f===96||te(f)?(e.exit("codeTextData"),c(f)):(e.consume(f),d)}function p(f){return f===96?(e.consume(f),a++,p):a===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(o.type="codeTextData",d(f))}}var td=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){let i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){let n=r||0;this.setCursor(Math.trunc(t));let a=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return i&&ll(this.left,i),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ll(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ll(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let r=this.left.splice(t,Number.POSITIVE_INFINITY);ll(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ll(this.left,r.reverse())}}};function ll(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function rd(e){let t={},r=-1,i,n,a,o,s,u,c,d=new td(e);for(;++r<d.length;){for(;r in t;)r=t[r];if(i=d.get(r),r&&i[1].type==="chunkFlow"&&d.get(r-1)[1].type==="listItemPrefix"&&(u=i[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,L2(d,r)),r=t[r],c=!0);else if(i[1]._container){for(a=r,n=void 0;a--;)if(o=d.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(n&&(d.get(n)[1].type="lineEndingBlank"),o[1].type="lineEnding",n=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;n&&(i[1].end={...d.get(n)[1].start},s=d.slice(n,r),s.unshift(i),d.splice(n,r-n+1,s))}}return vt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function L2(e,t){let r=e.get(t)[1],i=e.get(t)[2],n=t-1,a=[],o=r._tokenizer;o||(o=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,u=[],c={},d,p,f=-1,m=r,g=0,h=0,y=[h];for(;m;){for(;e.get(++n)[1]!==m;);a.push(n),m._tokenizer||(d=i.sliceStream(m),m.next||d.push(null),p&&o.defineSkip(m.start),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),p=m,m=m.next}for(m=r;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,y.push(h),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(o.events=[],m?(m._tokenizer=void 0,m.previous=void 0):y.pop(),f=y.length;f--;){let v=s.slice(y[f],y[f+1]),_=a.pop();u.push([_,_+v.length-1]),e.splice(_,2,v)}for(u.reverse(),f=-1;++f<u.length;)c[g+u[f][0]]=g+u[f][1],g+=u[f][1]-u[f][0]-1;return c}var Sg={resolve:U2,tokenize:q2},F2={partial:!0,tokenize:B2};function U2(e){return rd(e),e}function q2(e,t){let r;return i;function i(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(s)}function n(s){return s===null?a(s):te(s)?e.check(F2,o,a)(s):(e.consume(s),n)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}function B2(e,t,r){let i=this;return n;function n(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ke(e,a,"linePrefix")}function a(o){if(o===null||te(o))return r(o);let s=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(i.parser.constructs.flow,r,t)(o)}}function nd(e,t,r,i,n,a,o,s,u){let c=u||Number.POSITIVE_INFINITY,d=0;return p;function p(v){return v===60?(e.enter(i),e.enter(n),e.enter(a),e.consume(v),e.exit(a),f):v===null||v===32||v===41||il(v)?r(v):(e.enter(i),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(v))}function f(v){return v===62?(e.enter(a),e.consume(v),e.exit(a),e.exit(n),e.exit(i),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===62?(e.exit("chunkString"),e.exit(s),f(v)):v===null||v===60||te(v)?r(v):(e.consume(v),v===92?g:m)}function g(v){return v===60||v===62||v===92?(e.consume(v),m):m(v)}function h(v){return!d&&(v===null||v===41||nt(v))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(i),t(v)):d<c&&v===40?(e.consume(v),d++,h):v===41?(e.consume(v),d--,h):v===null||v===32||v===40||il(v)?r(v):(e.consume(v),v===92?y:h)}function y(v){return v===40||v===41||v===92?(e.consume(v),h):h(v)}}function id(e,t,r,i,n,a){let o=this,s=0,u;return c;function c(m){return e.enter(i),e.enter(n),e.consume(m),e.exit(n),e.enter(a),d}function d(m){return s>999||m===null||m===91||m===93&&!u||m===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(m):m===93?(e.exit(a),e.enter(n),e.consume(m),e.exit(n),e.exit(i),t):te(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===null||m===91||m===93||te(m)||s++>999?(e.exit("chunkString"),d(m)):(e.consume(m),u||(u=!ge(m)),m===92?f:p)}function f(m){return m===91||m===92||m===93?(e.consume(m),s++,p):p(m)}}function ad(e,t,r,i,n,a){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(i),e.enter(n),e.consume(f),e.exit(n),o=f===40?41:f,u):r(f)}function u(f){return f===o?(e.enter(n),e.consume(f),e.exit(n),e.exit(i),t):(e.enter(a),c(f))}function c(f){return f===o?(e.exit(a),u(o)):f===null?r(f):te(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ke(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===o||f===null||te(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?p:d)}function p(f){return f===o||f===92?(e.consume(f),d):d(f)}}function Hi(e,t){let r;return i;function i(n){return te(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r=!0,i):ge(n)?ke(e,i,r?"linePrefix":"lineSuffix")(n):t(n)}}var Ig={name:"definition",tokenize:Z2},V2={partial:!0,tokenize:W2};function Z2(e,t,r){let i=this,n;return a;function a(m){return e.enter("definition"),o(m)}function o(m){return id.call(i,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function s(m){return n=wn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):r(m)}function u(m){return nt(m)?Hi(e,c)(m):c(m)}function c(m){return nd(e,d,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function d(m){return e.attempt(V2,p,p)(m)}function p(m){return ge(m)?ke(e,f,"whitespace")(m):f(m)}function f(m){return m===null||te(m)?(e.exit("definition"),i.parser.defined.push(n),t(m)):r(m)}}function W2(e,t,r){return i;function i(s){return nt(s)?Hi(e,n)(s):r(s)}function n(s){return ad(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return ge(s)?ke(e,o,"whitespace")(s):o(s)}function o(s){return s===null||te(s)?t(s):r(s)}}var Eg={name:"hardBreakEscape",tokenize:G2};function G2(e,t,r){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),n}function n(a){return te(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}var Tg={name:"headingAtx",resolve:J2,tokenize:H2};function J2(e,t){let r=e.length-2,i=3,n,a;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},a={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},vt(e,i,r-i+1,[["enter",n,t],["enter",a,t],["exit",a,t],["exit",n,t]])),e}function H2(e,t,r){let i=0;return n;function n(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&i++<6?(e.consume(d),o):d===null||nt(d)?(e.exit("atxHeadingSequence"),s(d)):r(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),u(d)):d===null||te(d)?(e.exit("atxHeading"),t(d)):ge(d)?ke(e,s,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function u(d){return d===35?(e.consume(d),u):(e.exit("atxHeadingSequence"),s(d))}function c(d){return d===null||d===35||nt(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),c)}}var BT=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],$g=["pre","script","style","textarea"];var Cg={concrete:!0,name:"htmlFlow",resolveTo:X2,tokenize:Q2},K2={partial:!0,tokenize:t6},Y2={partial:!0,tokenize:e6};function X2(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Q2(e,t,r){let i=this,n,a,o,s,u;return c;function c(w){return d(w)}function d(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),p}function p(w){return w===33?(e.consume(w),f):w===47?(e.consume(w),a=!0,h):w===63?(e.consume(w),n=3,i.interrupt?t:S):cr(w)?(e.consume(w),o=String.fromCharCode(w),y):r(w)}function f(w){return w===45?(e.consume(w),n=2,m):w===91?(e.consume(w),n=5,s=0,g):cr(w)?(e.consume(w),n=4,i.interrupt?t:S):r(w)}function m(w){return w===45?(e.consume(w),i.interrupt?t:S):r(w)}function g(w){let le="CDATA[";return w===le.charCodeAt(s++)?(e.consume(w),s===le.length?i.interrupt?t:O:g):r(w)}function h(w){return cr(w)?(e.consume(w),o=String.fromCharCode(w),y):r(w)}function y(w){if(w===null||w===47||w===62||nt(w)){let le=w===47,Me=o.toLowerCase();return!le&&!a&&$g.includes(Me)?(n=1,i.interrupt?t(w):O(w)):BT.includes(o.toLowerCase())?(n=6,le?(e.consume(w),v):i.interrupt?t(w):O(w)):(n=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(w):a?_(w):b(w))}return w===45||Lt(w)?(e.consume(w),o+=String.fromCharCode(w),y):r(w)}function v(w){return w===62?(e.consume(w),i.interrupt?t:O):r(w)}function _(w){return ge(w)?(e.consume(w),_):Y(w)}function b(w){return w===47?(e.consume(w),Y):w===58||w===95||cr(w)?(e.consume(w),x):ge(w)?(e.consume(w),b):Y(w)}function x(w){return w===45||w===46||w===58||w===95||Lt(w)?(e.consume(w),x):E(w)}function E(w){return w===61?(e.consume(w),k):ge(w)?(e.consume(w),E):b(w)}function k(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(e.consume(w),u=w,A):ge(w)?(e.consume(w),k):$(w)}function A(w){return w===u?(e.consume(w),u=null,T):w===null||te(w)?r(w):(e.consume(w),A)}function $(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||nt(w)?E(w):(e.consume(w),$)}function T(w){return w===47||w===62||ge(w)?b(w):r(w)}function Y(w){return w===62?(e.consume(w),R):r(w)}function R(w){return w===null||te(w)?O(w):ge(w)?(e.consume(w),R):r(w)}function O(w){return w===45&&n===2?(e.consume(w),W):w===60&&n===1?(e.consume(w),pe):w===62&&n===4?(e.consume(w),X):w===63&&n===3?(e.consume(w),S):w===93&&n===5?(e.consume(w),we):te(w)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(K2,re,j)(w)):w===null||te(w)?(e.exit("htmlFlowData"),j(w)):(e.consume(w),O)}function j(w){return e.check(Y2,z,re)(w)}function z(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),N}function N(w){return w===null||te(w)?j(w):(e.enter("htmlFlowData"),O(w))}function W(w){return w===45?(e.consume(w),S):O(w)}function pe(w){return w===47?(e.consume(w),o="",ce):O(w)}function ce(w){if(w===62){let le=o.toLowerCase();return $g.includes(le)?(e.consume(w),X):O(w)}return cr(w)&&o.length<8?(e.consume(w),o+=String.fromCharCode(w),ce):O(w)}function we(w){return w===93?(e.consume(w),S):O(w)}function S(w){return w===62?(e.consume(w),X):w===45&&n===2?(e.consume(w),S):O(w)}function X(w){return w===null||te(w)?(e.exit("htmlFlowData"),re(w)):(e.consume(w),X)}function re(w){return e.exit("htmlFlow"),t(w)}}function e6(e,t,r){let i=this;return n;function n(o){return te(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):r(o)}function a(o){return i.parser.lazy[i.now().line]?r(o):t(o)}}function t6(e,t,r){return i;function i(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(oi,t,r)}}var Ag={name:"htmlText",tokenize:r6};function r6(e,t,r){let i=this,n,a,o;return s;function s(S){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(S),u}function u(S){return S===33?(e.consume(S),c):S===47?(e.consume(S),E):S===63?(e.consume(S),b):cr(S)?(e.consume(S),$):r(S)}function c(S){return S===45?(e.consume(S),d):S===91?(e.consume(S),a=0,g):cr(S)?(e.consume(S),_):r(S)}function d(S){return S===45?(e.consume(S),m):r(S)}function p(S){return S===null?r(S):S===45?(e.consume(S),f):te(S)?(o=p,pe(S)):(e.consume(S),p)}function f(S){return S===45?(e.consume(S),m):p(S)}function m(S){return S===62?W(S):S===45?f(S):p(S)}function g(S){let X="CDATA[";return S===X.charCodeAt(a++)?(e.consume(S),a===X.length?h:g):r(S)}function h(S){return S===null?r(S):S===93?(e.consume(S),y):te(S)?(o=h,pe(S)):(e.consume(S),h)}function y(S){return S===93?(e.consume(S),v):h(S)}function v(S){return S===62?W(S):S===93?(e.consume(S),v):h(S)}function _(S){return S===null||S===62?W(S):te(S)?(o=_,pe(S)):(e.consume(S),_)}function b(S){return S===null?r(S):S===63?(e.consume(S),x):te(S)?(o=b,pe(S)):(e.consume(S),b)}function x(S){return S===62?W(S):b(S)}function E(S){return cr(S)?(e.consume(S),k):r(S)}function k(S){return S===45||Lt(S)?(e.consume(S),k):A(S)}function A(S){return te(S)?(o=A,pe(S)):ge(S)?(e.consume(S),A):W(S)}function $(S){return S===45||Lt(S)?(e.consume(S),$):S===47||S===62||nt(S)?T(S):r(S)}function T(S){return S===47?(e.consume(S),W):S===58||S===95||cr(S)?(e.consume(S),Y):te(S)?(o=T,pe(S)):ge(S)?(e.consume(S),T):W(S)}function Y(S){return S===45||S===46||S===58||S===95||Lt(S)?(e.consume(S),Y):R(S)}function R(S){return S===61?(e.consume(S),O):te(S)?(o=R,pe(S)):ge(S)?(e.consume(S),R):T(S)}function O(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(e.consume(S),n=S,j):te(S)?(o=O,pe(S)):ge(S)?(e.consume(S),O):(e.consume(S),z)}function j(S){return S===n?(e.consume(S),n=void 0,N):S===null?r(S):te(S)?(o=j,pe(S)):(e.consume(S),j)}function z(S){return S===null||S===34||S===39||S===60||S===61||S===96?r(S):S===47||S===62||nt(S)?T(S):(e.consume(S),z)}function N(S){return S===47||S===62||nt(S)?T(S):r(S)}function W(S){return S===62?(e.consume(S),e.exit("htmlTextData"),e.exit("htmlText"),t):r(S)}function pe(S){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),ce}function ce(S){return ge(S)?ke(e,we,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):we(S)}function we(S){return e.enter("htmlTextData"),o(S)}}var Ki={name:"labelEnd",resolveAll:o6,resolveTo:s6,tokenize:l6},n6={tokenize:u6},i6={tokenize:c6},a6={tokenize:d6};function o6(e){let t=-1,r=[];for(;++t<e.length;){let i=e[t][1];if(r.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){let n=i.type==="labelImage"?4:2;i.type="data",t+=n}}return e.length!==r.length&&vt(e,0,e.length,r),e}function s6(e,t){let r=e.length,i=0,n,a,o,s;for(;r--;)if(n=e[r][1],a){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[r][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(a=r,n.type!=="labelLink")){i=2;break}}else n.type==="labelEnd"&&(o=r);let u={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[a+i+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",u,t],["enter",c,t]],s=Mt(s,e.slice(a+1,a+i+3)),s=Mt(s,[["enter",d,t]]),s=Mt(s,qa(t.parser.constructs.insideSpan.null,e.slice(a+i+4,o-3),t)),s=Mt(s,[["exit",d,t],e[o-2],e[o-1],["exit",c,t]]),s=Mt(s,e.slice(o+1)),s=Mt(s,[["exit",u,t]]),vt(e,a,e.length,s),e}function l6(e,t,r){let i=this,n=i.events.length,a,o;for(;n--;)if((i.events[n][1].type==="labelImage"||i.events[n][1].type==="labelLink")&&!i.events[n][1]._balanced){a=i.events[n][1];break}return s;function s(f){return a?a._inactive?p(f):(o=i.parser.defined.includes(wn(i.sliceSerialize({start:a.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),u):r(f)}function u(f){return f===40?e.attempt(n6,d,o?d:p)(f):f===91?e.attempt(i6,d,o?c:p)(f):o?d(f):p(f)}function c(f){return e.attempt(a6,d,p)(f)}function d(f){return t(f)}function p(f){return a._balanced=!0,r(f)}}function u6(e,t,r){return i;function i(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),n}function n(p){return nt(p)?Hi(e,a)(p):a(p)}function a(p){return p===41?d(p):nd(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function o(p){return nt(p)?Hi(e,u)(p):d(p)}function s(p){return r(p)}function u(p){return p===34||p===39||p===40?ad(e,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):d(p)}function c(p){return nt(p)?Hi(e,d)(p):d(p)}function d(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):r(p)}}function c6(e,t,r){let i=this;return n;function n(s){return id.call(i,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return i.parser.defined.includes(wn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function o(s){return r(s)}}function d6(e,t,r){return i;function i(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),n}function n(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}var Og={name:"labelStartImage",resolveAll:Ki.resolveAll,tokenize:p6};function p6(e,t,r){let i=this;return n;function n(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):r(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(s):t(s)}}var Ng={name:"labelStartLink",resolveAll:Ki.resolveAll,tokenize:f6};function f6(e,t,r){let i=this;return n;function n(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(o):t(o)}}var ul={name:"lineEnding",tokenize:m6};function m6(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ke(e,t,"linePrefix")}}var Yi={name:"thematicBreak",tokenize:h6};function h6(e,t,r){let i=0,n;return a;function a(c){return e.enter("thematicBreak"),o(c)}function o(c){return n=c,s(c)}function s(c){return c===n?(e.enter("thematicBreakSequence"),u(c)):i>=3&&(c===null||te(c))?(e.exit("thematicBreak"),t(c)):r(c)}function u(c){return c===n?(e.consume(c),i++,u):(e.exit("thematicBreakSequence"),ge(c)?ke(e,s,"whitespace")(c):s(c))}}var $t={continuation:{tokenize:b6},exit:w6,name:"list",tokenize:v6},g6={partial:!0,tokenize:k6},y6={partial:!0,tokenize:_6};function v6(e,t,r){let i=this,n=i.events[i.events.length-1],a=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,o=0;return s;function s(m){let g=i.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!i.containerState.marker||m===i.containerState.marker:al(m)){if(i.containerState.type||(i.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Yi,r,c)(m):c(m);if(!i.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return r(m)}function u(m){return al(m)&&++o<10?(e.consume(m),u):(!i.interrupt||o<2)&&(i.containerState.marker?m===i.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):r(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||m,e.check(oi,i.interrupt?r:d,e.attempt(g6,f,p))}function d(m){return i.containerState.initialBlankLine=!0,a++,f(m)}function p(m){return ge(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),f):r(m)}function f(m){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function b6(e,t,r){let i=this;return i.containerState._closeFlow=void 0,e.check(oi,n,a);function n(s){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ke(e,t,"listItemIndent",i.containerState.size+1)(s)}function a(s){return i.containerState.furtherBlankLines||!ge(s)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(s)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(y6,t,o)(s))}function o(s){return i.containerState._closeFlow=!0,i.interrupt=void 0,ke(e,e.attempt($t,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function _6(e,t,r){let i=this;return ke(e,n,"listItemIndent",i.containerState.size+1);function n(a){let o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?t(a):r(a)}}function w6(e){e.exit(this.containerState.type)}function k6(e,t,r){let i=this;return ke(e,n,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(a){let o=i.events[i.events.length-1];return!ge(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}var od={name:"setextUnderline",resolveTo:x6,tokenize:S6};function x6(e,t){let r=e.length,i,n,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(n=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);let o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[n][1].type="setextHeadingText",a?(e.splice(n,0,["enter",o,t]),e.splice(a+1,0,["exit",e[i][1],t]),e[i][1].end={...e[a][1].end}):e[i][1]=o,e.push(["exit",o,t]),e}function S6(e,t,r){let i=this,n;return a;function a(c){let d=i.events.length,p;for(;d--;)if(i.events[d][1].type!=="lineEnding"&&i.events[d][1].type!=="linePrefix"&&i.events[d][1].type!=="content"){p=i.events[d][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||p)?(e.enter("setextHeadingLine"),n=c,o(c)):r(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===n?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),ge(c)?ke(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||te(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}var VT={tokenize:I6};function I6(e){let t=this,r=e.attempt(oi,i,e.attempt(this.parser.constructs.flowInitial,n,ke(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Sg,n)),"linePrefix")));return r;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function n(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var ZT={resolveAll:HT()},WT=JT("string"),GT=JT("text");function JT(e){return{resolveAll:HT(e==="text"?E6:void 0),tokenize:t};function t(r){let i=this,n=this.parser.constructs[e],a=r.attempt(n,o,s);return o;function o(d){return c(d)?a(d):s(d)}function s(d){if(d===null){r.consume(d);return}return r.enter("data"),r.consume(d),u}function u(d){return c(d)?(r.exit("data"),a(d)):(r.consume(d),u)}function c(d){if(d===null)return!0;let p=n[d],f=-1;if(p)for(;++f<p.length;){let m=p[f];if(!m.previous||m.previous.call(i,i.previous))return!0}return!1}}}function HT(e){return t;function t(r,i){let n=-1,a;for(;++n<=r.length;)a===void 0?r[n]&&r[n][1].type==="data"&&(a=n,n++):(!r[n]||r[n][1].type!=="data")&&(n!==a+2&&(r[a][1].end=r[n-1][1].end,r.splice(a+2,n-a-2),n=a+2),a=void 0);return e?e(r,i):r}}function E6(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let i=e[r-1][1],n=t.sliceStream(i),a=n.length,o=-1,s=0,u;for(;a--;){let c=n[a];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(c===-2)u=!0,s++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(s=0),s){let c={type:r===e.length||u||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:i.start._bufferIndex+o,_index:i.start._index+a,line:i.end.line,column:i.end.column-s,offset:i.end.offset-s},end:{...i.end}};i.end={...c.start},i.start.offset===i.end.offset?Object.assign(i,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)}r++}return e}var Dg={};Or(Dg,{attentionMarkers:()=>j6,contentInitial:()=>$6,disable:()=>P6,document:()=>T6,flow:()=>A6,flowInitial:()=>C6,insideSpan:()=>D6,string:()=>O6,text:()=>N6});var T6={42:$t,43:$t,45:$t,48:$t,49:$t,50:$t,51:$t,52:$t,53:$t,54:$t,55:$t,56:$t,57:$t,62:Yc},$6={91:Ig},C6={[-2]:sl,[-1]:sl,32:sl},A6={35:Tg,42:Yi,45:[od,Yi],60:Cg,61:od,95:Yi,96:ed,126:ed},O6={38:Qc,92:Xc},N6={[-5]:ul,[-4]:ul,[-3]:ul,33:Og,38:Qc,42:ol,60:[kg,Ag],91:Ng,92:[Eg,Xc],93:Ki,95:ol,96:xg},D6={null:[ol,ZT]},j6={null:[42,95]},P6={null:[]};function KT(e,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0},n={},a=[],o=[],s=[],u=!0,c={attempt:T(A),check:T($),consume:x,enter:E,exit:k,interrupt:T($,{interrupt:!0})},d={code:null,containerState:{},defineSkip:v,events:[],now:y,parser:e,previous:null,sliceSerialize:g,sliceStream:h,write:m},p=t.tokenize.call(d,c),f;return t.resolveAll&&a.push(t),d;function m(j){return o=Mt(o,j),_(),o[o.length-1]!==null?[]:(Y(t,0),d.events=qa(a,d.events,d),d.events)}function g(j,z){return R6(h(j),z)}function h(j){return z6(o,j)}function y(){let{_bufferIndex:j,_index:z,line:N,column:W,offset:pe}=i;return{_bufferIndex:j,_index:z,line:N,column:W,offset:pe}}function v(j){n[j.line]=j.column,O()}function _(){let j;for(;i._index<o.length;){let z=o[i._index];if(typeof z=="string")for(j=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===j&&i._bufferIndex<z.length;)b(z.charCodeAt(i._bufferIndex));else b(z)}}function b(j){u=void 0,f=j,p=p(j)}function x(j){te(j)?(i.line++,i.column=1,i.offset+=j===-3?2:1,O()):j!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===o[i._index].length&&(i._bufferIndex=-1,i._index++)),d.previous=j,u=!0}function E(j,z){let N=z||{};return N.type=j,N.start=y(),d.events.push(["enter",N,d]),s.push(N),N}function k(j){let z=s.pop();return z.end=y(),d.events.push(["exit",z,d]),z}function A(j,z){Y(j,z.from)}function $(j,z){z.restore()}function T(j,z){return N;function N(W,pe,ce){let we,S,X,re;return Array.isArray(W)?le(W):"tokenize"in W?le([W]):w(W);function w($e){return Ce;function Ce(dt){let oe=dt!==null&&$e[dt],Pe=dt!==null&&$e.null,He=[...Array.isArray(oe)?oe:oe?[oe]:[],...Array.isArray(Pe)?Pe:Pe?[Pe]:[]];return le(He)(dt)}}function le($e){return we=$e,S=0,$e.length===0?ce:Me($e[S])}function Me($e){return Ce;function Ce(dt){return re=R(),X=$e,$e.partial||(d.currentConstruct=$e),$e.name&&d.parser.constructs.disable.null.includes($e.name)?se(dt):$e.tokenize.call(z?Object.assign(Object.create(d),z):d,c,G,se)(dt)}}function G($e){return u=!0,j(X,re),pe}function se($e){return u=!0,re.restore(),++S<we.length?Me(we[S]):ce}}}function Y(j,z){j.resolveAll&&!a.includes(j)&&a.push(j),j.resolve&&vt(d.events,z,d.events.length-z,j.resolve(d.events.slice(z),d)),j.resolveTo&&(d.events=j.resolveTo(d.events,d))}function R(){let j=y(),z=d.previous,N=d.currentConstruct,W=d.events.length,pe=Array.from(s);return{from:W,restore:ce};function ce(){i=j,d.previous=z,d.currentConstruct=N,d.events.length=W,s=pe,O()}}function O(){i.line in n&&i.column<2&&(i.column=n[i.line],i.offset+=n[i.line]-1)}}function z6(e,t){let r=t.start._index,i=t.start._bufferIndex,n=t.end._index,a=t.end._bufferIndex,o;if(r===n)o=[e[r].slice(i,a)];else{if(o=e.slice(r,n),i>-1){let s=o[0];typeof s=="string"?o[0]=s.slice(i):o.shift()}a>0&&o.push(e[n].slice(0,a))}return o}function R6(e,t){let r=-1,i=[],n;for(;++r<e.length;){let a=e[r],o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
|
|
176
|
+
`;break}case-3:{o=`\r
|
|
177
|
+
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&n)continue;o=" ";break}default:o=String.fromCharCode(a)}n=a===-2,i.push(o)}return i.join("")}function jg(e){let i={constructs:NT([Dg,...(e||{}).extensions||[]]),content:n(MT),defined:[],document:n(FT),flow:n(VT),lazy:{},string:n(WT),text:n(GT)};return i;function n(a){return o;function o(s){return KT(i,a,s)}}}function Pg(e){for(;!rd(e););return e}var YT=/[\0\t\n\r]/g;function zg(){let e=1,t="",r=!0,i;return n;function n(a,o,s){let u=[],c,d,p,f,m;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),p=0,t="",r&&(a.charCodeAt(0)===65279&&p++,r=void 0);p<a.length;){if(YT.lastIndex=p,c=YT.exec(a),f=c&&c.index!==void 0?c.index:a.length,m=a.charCodeAt(f),!c){t=a.slice(p);break}if(m===10&&p===f&&i)u.push(-3),i=void 0;else switch(i&&(u.push(-5),i=void 0),p<f&&(u.push(a.slice(p,f)),e+=f-p),m){case 0:{u.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,u.push(-2);e++<d;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:i=!0,e=1}p=f+1}return s&&(i&&u.push(-5),t&&u.push(t),u.push(null)),u}}var M6=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sd(e){return e.replace(M6,L6)}function L6(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let n=r.charCodeAt(1),a=n===120||n===88;return Kc(r.slice(a?2:1),a?16:10)}return Fa(r)||e}var QT={}.hasOwnProperty;function Rg(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),F6(r)(Pg(jg(r).document().write(zg()(e,t,!0))))}function F6(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Ln),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(kt),blockQuote:a(dt),characterEscape:T,characterReference:T,codeFenced:a(oe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(oe,o),codeText:a(Pe,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(He),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(yr),hardBreakEscape:a(vr),hardBreakTrailing:a(vr),htmlFlow:a(Hr,o),htmlFlowData:T,htmlText:a(Hr,o),htmlTextData:T,image:a(Kr),label:o,link:a(Ln),listItem:a(I),listItemValue:f,listOrdered:a(Fn,p),listUnordered:a(Fn),paragraph:a(K),reference:w,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(kt),strong:a(Ke),thematicBreak:a(Di)},exit:{atxHeading:u(),atxHeadingSequence:E,autolink:u(),autolinkEmail:Ce,autolinkProtocol:$e,blockQuote:u(),characterEscapeValue:Y,characterReferenceMarkerHexadecimal:Me,characterReferenceMarkerNumeric:Me,characterReferenceValue:G,characterReference:se,codeFenced:u(y),codeFencedFence:h,codeFencedFenceInfo:m,codeFencedFenceMeta:g,codeFlowValue:Y,codeIndented:u(v),codeText:u(N),codeTextData:Y,data:Y,definition:u(),definitionDestinationString:x,definitionLabelString:_,definitionTitleString:b,emphasis:u(),hardBreakEscape:u(O),hardBreakTrailing:u(O),htmlFlow:u(j),htmlFlowData:Y,htmlText:u(z),htmlTextData:Y,image:u(pe),label:we,labelText:ce,lineEnding:R,link:u(W),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:le,resourceDestinationString:S,resourceTitleString:X,resource:re,setextHeading:u($),setextHeadingLineSequence:A,setextHeadingText:k,strong:u(),thematicBreak:u()}};e$(t,(e||{}).mdastExtensions||[]);let r={};return i;function i(P){let J={type:"root",children:[]},be={stack:[J],tokenStack:[],config:t,enter:s,exit:c,buffer:o,resume:d,data:r},Ae=[],me=-1;for(;++me<P.length;)if(P[me][1].type==="listOrdered"||P[me][1].type==="listUnordered")if(P[me][0]==="enter")Ae.push(me);else{let xt=Ae.pop();me=n(P,xt,me)}for(me=-1;++me<P.length;){let xt=t[P[me][0]];QT.call(xt,P[me][1].type)&&xt[P[me][1].type].call(Object.assign({sliceSerialize:P[me][2].sliceSerialize},be),P[me][1])}if(be.tokenStack.length>0){let xt=be.tokenStack[be.tokenStack.length-1];(xt[1]||XT).call(be,void 0,xt[0])}for(J.position={start:si(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:si(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me<t.transforms.length;)J=t.transforms[me](J)||J;return J}function n(P,J,be){let Ae=J-1,me=-1,xt=!1,ar,Xe,dn,je;for(;++Ae<=be;){let St=P[Ae];switch(St[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{St[0]==="enter"?me++:me--,je=void 0;break}case"lineEndingBlank":{St[0]==="enter"&&(ar&&!je&&!me&&!dn&&(dn=Ae),je=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:je=void 0}if(!me&&St[0]==="enter"&&St[1].type==="listItemPrefix"||me===-1&&St[0]==="exit"&&(St[1].type==="listUnordered"||St[1].type==="listOrdered")){if(ar){let pn=Ae;for(Xe=void 0;pn--;){let Ve=P[pn];if(Ve[1].type==="lineEnding"||Ve[1].type==="lineEndingBlank"){if(Ve[0]==="exit")continue;Xe&&(P[Xe][1].type="lineEndingBlank",xt=!0),Ve[1].type="lineEnding",Xe=pn}else if(!(Ve[1].type==="linePrefix"||Ve[1].type==="blockQuotePrefix"||Ve[1].type==="blockQuotePrefixWhitespace"||Ve[1].type==="blockQuoteMarker"||Ve[1].type==="listItemIndent"))break}dn&&(!Xe||dn<Xe)&&(ar._spread=!0),ar.end=Object.assign({},Xe?P[Xe][1].start:St[1].end),P.splice(Xe||Ae,0,["exit",ar,St[2]]),Ae++,be++}if(St[1].type==="listItemPrefix"){let pn={type:"listItem",_spread:!1,start:Object.assign({},St[1].start),end:void 0};ar=pn,P.splice(Ae,0,["enter",pn,St[2]]),Ae++,be++,dn=void 0,je=!0}}}return P[J][1]._spread=xt,be}function a(P,J){return be;function be(Ae){s.call(this,P(Ae),Ae),J&&J.call(this,Ae)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(P,J,be){this.stack[this.stack.length-1].children.push(P),this.stack.push(P),this.tokenStack.push([J,be||void 0]),P.position={start:si(J.start),end:void 0}}function u(P){return J;function J(be){P&&P.call(this,be),c.call(this,be)}}function c(P,J){let be=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==P.type&&(J?J.call(this,P,Ae[0]):(Ae[1]||XT).call(this,P,Ae[0]));else throw new Error("Cannot close `"+P.type+"` ("+ii({start:P.start,end:P.end})+"): it\u2019s not open");be.position.end=si(P.end)}function d(){return Ji(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function f(P){if(this.data.expectingFirstListItemValue){let J=this.stack[this.stack.length-2];J.start=Number.parseInt(this.sliceSerialize(P),10),this.data.expectingFirstListItemValue=void 0}}function m(){let P=this.resume(),J=this.stack[this.stack.length-1];J.lang=P}function g(){let P=this.resume(),J=this.stack[this.stack.length-1];J.meta=P}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){let P=this.resume(),J=this.stack[this.stack.length-1];J.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){let P=this.resume(),J=this.stack[this.stack.length-1];J.value=P.replace(/(\r?\n|\r)$/g,"")}function _(P){let J=this.resume(),be=this.stack[this.stack.length-1];be.label=J,be.identifier=wn(this.sliceSerialize(P)).toLowerCase()}function b(){let P=this.resume(),J=this.stack[this.stack.length-1];J.title=P}function x(){let P=this.resume(),J=this.stack[this.stack.length-1];J.url=P}function E(P){let J=this.stack[this.stack.length-1];if(!J.depth){let be=this.sliceSerialize(P).length;J.depth=be}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function A(P){let J=this.stack[this.stack.length-1];J.depth=this.sliceSerialize(P).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function T(P){let be=this.stack[this.stack.length-1].children,Ae=be[be.length-1];(!Ae||Ae.type!=="text")&&(Ae=st(),Ae.position={start:si(P.start),end:void 0},be.push(Ae)),this.stack.push(Ae)}function Y(P){let J=this.stack.pop();J.value+=this.sliceSerialize(P),J.position.end=si(P.end)}function R(P){let J=this.stack[this.stack.length-1];if(this.data.atHardBreak){let be=J.children[J.children.length-1];be.position.end=si(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(J.type)&&(T.call(this,P),Y.call(this,P))}function O(){this.data.atHardBreak=!0}function j(){let P=this.resume(),J=this.stack[this.stack.length-1];J.value=P}function z(){let P=this.resume(),J=this.stack[this.stack.length-1];J.value=P}function N(){let P=this.resume(),J=this.stack[this.stack.length-1];J.value=P}function W(){let P=this.stack[this.stack.length-1];if(this.data.inReference){let J=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=J,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function pe(){let P=this.stack[this.stack.length-1];if(this.data.inReference){let J=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=J,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function ce(P){let J=this.sliceSerialize(P),be=this.stack[this.stack.length-2];be.label=sd(J),be.identifier=wn(J).toLowerCase()}function we(){let P=this.stack[this.stack.length-1],J=this.resume(),be=this.stack[this.stack.length-1];if(this.data.inReference=!0,be.type==="link"){let Ae=P.children;be.children=Ae}else be.alt=J}function S(){let P=this.resume(),J=this.stack[this.stack.length-1];J.url=P}function X(){let P=this.resume(),J=this.stack[this.stack.length-1];J.title=P}function re(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function le(P){let J=this.resume(),be=this.stack[this.stack.length-1];be.label=J,be.identifier=wn(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function Me(P){this.data.characterReferenceType=P.type}function G(P){let J=this.sliceSerialize(P),be=this.data.characterReferenceType,Ae;be?(Ae=Kc(J,be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=Fa(J);let me=this.stack[this.stack.length-1];me.value+=Ae}function se(P){let J=this.stack.pop();J.position.end=si(P.end)}function $e(P){Y.call(this,P);let J=this.stack[this.stack.length-1];J.url=this.sliceSerialize(P)}function Ce(P){Y.call(this,P);let J=this.stack[this.stack.length-1];J.url="mailto:"+this.sliceSerialize(P)}function dt(){return{type:"blockquote",children:[]}}function oe(){return{type:"code",lang:null,meta:null,value:""}}function Pe(){return{type:"inlineCode",value:""}}function He(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function yr(){return{type:"emphasis",children:[]}}function kt(){return{type:"heading",depth:0,children:[]}}function vr(){return{type:"break"}}function Hr(){return{type:"html",value:""}}function Kr(){return{type:"image",title:null,url:"",alt:null}}function Ln(){return{type:"link",title:null,url:"",children:[]}}function Fn(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function I(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function K(){return{type:"paragraph",children:[]}}function Ke(){return{type:"strong",children:[]}}function st(){return{type:"text",value:""}}function Di(){return{type:"thematicBreak"}}}function si(e){return{line:e.line,column:e.column,offset:e.offset}}function e$(e,t){let r=-1;for(;++r<t.length;){let i=t[r];Array.isArray(i)?e$(e,i):U6(e,i)}}function U6(e,t){let r;for(r in t)if(QT.call(t,r))switch(r){case"canContainEols":{let i=t[r];i&&e[r].push(...i);break}case"transforms":{let i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{let i=t[r];i&&Object.assign(e[r],i);break}}}function XT(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ii({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ii({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ii({start:t.start,end:t.end})+") is still open")}function li(e){let t=this;t.parser=r;function r(i){return Rg(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}var r$=ve(t$(),1),cl=Object.assign(Xi(Error),{eval:Xi(EvalError),range:Xi(RangeError),reference:Xi(ReferenceError),syntax:Xi(SyntaxError),type:Xi(TypeError),uri:Xi(URIError)});function Xi(e){return t.displayName=e.displayName||e.name,t;function t(r,...i){let n=r&&(0,r$.default)(r,...i);return new e(n)}}var ld={}.hasOwnProperty,n$={yaml:"-",toml:"+"};function Ba(e){let t=[],r=-1,i=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<i.length;)t[r]=q6(i[r]);return t}function q6(e){let t=e;if(typeof t=="string"){if(!ld.call(n$,t))throw cl("Missing matter definition for `%s`",t);t={type:t,marker:n$[t]}}else if(typeof t!="object")throw cl("Expected matter to be an object, not `%j`",t);if(!ld.call(t,"type"))throw cl("Missing `type` in matter `%j`",t);if(!ld.call(t,"fence")&&!ld.call(t,"marker"))throw cl("Missing `marker` or `fence` in matter `%j`",t);return t}function Fg(e){let t=Ba(e),r={},i=-1;for(;++i<t.length;){let n=t[i],a=Lg(n,"open").charCodeAt(0),o=B6(n),s=r[a];Array.isArray(s)?s.push(o):r[a]=[o]}return{flow:r}}function B6(e){let t=e.anywhere,r=e.type,i=r+"Fence",n=i+"Sequence",a=r+"Value",o={tokenize:d,partial:!0},s,u=0;return{tokenize:c,concrete:!0};function c(p,f,m){let g=this;return h;function h(A){let $=g.now();return $.column===1&&($.line===1||t)&&(s=Lg(e,"open"),u=0,A===s.charCodeAt(u))?(p.enter(r),p.enter(i),p.enter(n),y(A)):m(A)}function y(A){return u===s.length?(p.exit(n),ge(A)?(p.enter("whitespace"),v(A)):_(A)):A===s.charCodeAt(u++)?(p.consume(A),y):m(A)}function v(A){return ge(A)?(p.consume(A),v):(p.exit("whitespace"),_(A))}function _(A){return te(A)?(p.exit(i),p.enter("lineEnding"),p.consume(A),p.exit("lineEnding"),s=Lg(e,"close"),u=0,p.attempt(o,k,b)):m(A)}function b(A){return A===null||te(A)?E(A):(p.enter(a),x(A))}function x(A){return A===null||te(A)?(p.exit(a),E(A)):(p.consume(A),x)}function E(A){return A===null?m(A):(p.enter("lineEnding"),p.consume(A),p.exit("lineEnding"),p.attempt(o,k,b))}function k(A){return p.exit(r),f(A)}}function d(p,f,m){let g=0;return h;function h(b){return b===s.charCodeAt(g)?(p.enter(i),p.enter(n),y(b)):m(b)}function y(b){return g===s.length?(p.exit(n),ge(b)?(p.enter("whitespace"),v(b)):_(b)):b===s.charCodeAt(g++)?(p.consume(b),y):m(b)}function v(b){return ge(b)?(p.consume(b),v):(p.exit("whitespace"),_(b))}function _(b){return b===null||te(b)?(p.exit(i),f(b)):m(b)}}}function Lg(e,t){return e.marker?i$(e.marker,t).repeat(3):i$(e.fence,t)}function i$(e,t){return typeof e=="string"?e:e[t]}function Ug(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Bg(e){let t=Ba(e),r={},i={},n=-1;for(;++n<t.length;){let a=t[n];r[a.type]=V6(a),i[a.type]=Z6,i[a.type+"Value"]=W6}return{enter:r,exit:i}}function V6(e){return t;function t(r){this.enter({type:e.type,value:""},r),this.buffer()}}function Z6(e){let t=this.resume(),r=this.stack[this.stack.length-1];"value"in r,this.exit(e),r.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function W6(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function dl(e){let t=[],r={},i=Ba(e),n=-1;for(;++n<i.length;){let a=i[n];r[a.type]=G6(a);let o=qg(a,"open");t.push({atBreak:!0,character:o.charAt(0),after:Ug(o.charAt(1))})}return{unsafe:t,handlers:r}}function G6(e){let t=qg(e,"open"),r=qg(e,"close");return i;function i(n){return t+(n.value?`
|
|
178
|
+
`+n.value:"")+`
|
|
179
|
+
`+r}}function qg(e,t){return e.marker?a$(e.marker,t).repeat(3):a$(e.fence,t)}function a$(e,t){return typeof e=="string"?e:e[t]}var J6="yaml";function Va(e){let t=this,r=e||J6,i=t.data(),n=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);n.push(Fg(r)),a.push(Bg(r)),o.push(dl(r))}var o$={}.hasOwnProperty;function s$(e,t){let r=t||{};function i(n,...a){let o=i.invalid,s=i.handlers;if(n&&o$.call(n,e)){let u=String(n[e]);o=o$.call(s,u)?s[u]:i.unknown}if(o)return o.call(this,n,...a)}return i.handlers=r.handlers||{},i.invalid=r.invalid,i.unknown=r.unknown,i}var H6={}.hasOwnProperty;function Vg(e,t){let r=-1,i;if(t.extensions)for(;++r<t.extensions.length;)Vg(e,t.extensions[r]);for(i in t)if(H6.call(t,i))switch(i){case"extensions":break;case"unsafe":{l$(e[i],t[i]);break}case"join":{l$(e[i],t[i]);break}case"handlers":{K6(e[i],t[i]);break}default:e.options[i]=t[i]}return e}function l$(e,t){t&&e.push(...t)}function K6(e,t){t&&Object.assign(e,t)}function u$(e,t,r,i){let n=r.enter("blockquote"),a=r.createTracker(i);a.move("> "),a.shift(2);let o=r.indentLines(r.containerFlow(e,a.current()),Y6);return n(),o}function Y6(e,t,r){return">"+(r?"":" ")+e}function ud(e,t){return c$(e,t.inConstruct,!0)&&!c$(e,t.notInConstruct,!1)}function c$(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function Zg(e,t,r,i){let n=-1;for(;++n<r.unsafe.length;)if(r.unsafe[n].character===`
|
|
180
|
+
`&&ud(r.stack,r.unsafe[n]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
181
|
+
`}function d$(e,t){let r=String(e),i=r.indexOf(t),n=i,a=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===n?++a>o&&(o=a):a=1,n=i+t.length,i=r.indexOf(t,n);return o}function pl(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function p$(e){let t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function f$(e,t,r,i){let n=p$(r),a=e.value||"",o=n==="`"?"GraveAccent":"Tilde";if(pl(e,r)){let p=r.enter("codeIndented"),f=r.indentLines(a,X6);return p(),f}let s=r.createTracker(i),u=n.repeat(Math.max(d$(a,n)+1,3)),c=r.enter("codeFenced"),d=s.move(u);if(e.lang){let p=r.enter(`codeFencedLang${o}`);d+=s.move(r.safe(e.lang,{before:d,after:" ",encode:["`"],...s.current()})),p()}if(e.lang&&e.meta){let p=r.enter(`codeFencedMeta${o}`);d+=s.move(" "),d+=s.move(r.safe(e.meta,{before:d,after:`
|
|
182
|
+
`,encode:["`"],...s.current()})),p()}return d+=s.move(`
|
|
183
|
+
`),a&&(d+=s.move(a+`
|
|
184
|
+
`)),d+=s.move(u),c(),d}function X6(e,t,r){return(r?"":" ")+e}function Za(e){let t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function m$(e,t,r,i){let n=Za(r),a=n==='"'?"Quote":"Apostrophe",o=r.enter("definition"),s=r.enter("label"),u=r.createTracker(i),c=u.move("[");return c+=u.move(r.safe(r.associationId(e),{before:c,after:"]",...u.current()})),c+=u.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(r.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(s=r.enter("destinationRaw"),c+=u.move(r.safe(e.url,{before:c,after:e.title?" ":`
|
|
185
|
+
`,...u.current()}))),s(),e.title&&(s=r.enter(`title${a}`),c+=u.move(" "+n),c+=u.move(r.safe(e.title,{before:c,after:n,...u.current()})),c+=u.move(n),s()),o(),c}function h$(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function dr(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Wa(e,t,r){let i=Ua(e),n=Ua(t);return i===void 0?n===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:n===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?n===void 0?{inside:!1,outside:!1}:n===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:n===void 0?{inside:!1,outside:!1}:n===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Wg.peek=Q6;function Wg(e,t,r,i){let n=h$(r),a=r.enter("emphasis"),o=r.createTracker(i),s=o.move(n),u=o.move(r.containerPhrasing(e,{after:n,before:s,...o.current()})),c=u.charCodeAt(0),d=Wa(i.before.charCodeAt(i.before.length-1),c,n);d.inside&&(u=dr(c)+u.slice(1));let p=u.charCodeAt(u.length-1),f=Wa(i.after.charCodeAt(0),p,n);f.inside&&(u=u.slice(0,-1)+dr(p));let m=o.move(n);return a(),r.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+u+m}function Q6(e,t,r){return r.options.emphasis||"*"}var Ga=(function(e){if(e==null)return nB;if(typeof e=="function")return cd(e);if(typeof e=="object")return Array.isArray(e)?eB(e):tB(e);if(typeof e=="string")return rB(e);throw new Error("Expected function, string, or object as test")});function eB(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Ga(e[r]);return cd(i);function i(...n){let a=-1;for(;++a<t.length;)if(t[a].apply(this,n))return!0;return!1}}function tB(e){let t=e;return cd(r);function r(i){let n=i,a;for(a in e)if(n[a]!==t[a])return!1;return!0}}function rB(e){return cd(t);function t(r){return r&&r.type===e}}function cd(e){return t;function t(r,i,n){return!!(iB(r)&&e.call(this,r,typeof i=="number"?i:void 0,n||void 0))}}function nB(){return!0}function iB(e){return e!==null&&typeof e=="object"&&"type"in e}function g$(e){return"\x1B[33m"+e+"\x1B[39m"}var y$=[],dd=!0,Qi=!1,pd="skip";function Ja(e,t,r,i){let n;typeof t=="function"&&typeof r!="function"?(i=r,r=t):n=t;let a=Ga(n),o=i?-1:1;s(e,void 0,[])();function s(u,c,d){let p=u&&typeof u=="object"?u:{};if(typeof p.type=="string"){let m=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(f,"name",{value:"node ("+g$(u.type+(m?"<"+m+">":""))+")"})}return f;function f(){let m=y$,g,h,y;if((!t||a(u,c,d[d.length-1]||void 0))&&(m=aB(r(u,d)),m[0]===Qi))return m;if("children"in u&&u.children){let v=u;if(v.children&&m[0]!==pd)for(h=(i?v.children.length:-1)+o,y=d.concat(v);h>-1&&h<v.children.length;){let _=v.children[h];if(g=s(_,h,y)(),g[0]===Qi)return g;h=typeof g[1]=="number"?g[1]:h+o}}return m}}}function aB(e){return Array.isArray(e)?e:typeof e=="number"?[dd,e]:e==null?y$:[e]}function ui(e,t,r,i){let n,a,o;typeof t=="function"&&typeof r!="function"?(a=void 0,o=t,n=r):(a=t,o=r,n=i),Ja(e,a,s,n);function s(u,c){let d=c[c.length-1],p=d?d.children.indexOf(u):void 0;return o(u,p,d)}}function fd(e,t){let r=!1;return ui(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,Qi}),!!((!e.depth||e.depth<3)&&Ji(e)&&(t.options.setext||r))}function v$(e,t,r,i){let n=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(i);if(fd(e,r)){let d=r.enter("headingSetext"),p=r.enter("phrasing"),f=r.containerPhrasing(e,{...a.current(),before:`
|
|
186
|
+
`,after:`
|
|
187
|
+
`});return p(),d(),f+`
|
|
188
|
+
`+(n===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
|
|
189
|
+
`))+1))}let o="#".repeat(n),s=r.enter("headingAtx"),u=r.enter("phrasing");a.move(o+" ");let c=r.containerPhrasing(e,{before:"# ",after:`
|
|
190
|
+
`,...a.current()});return/^[\t ]/.test(c)&&(c=dr(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,r.options.closeAtx&&(c+=" "+o),u(),s(),c}Gg.peek=oB;function Gg(e){return e.value||""}function oB(){return"<"}Jg.peek=sB;function Jg(e,t,r,i){let n=Za(r),a=n==='"'?"Quote":"Apostrophe",o=r.enter("image"),s=r.enter("label"),u=r.createTracker(i),c=u.move("![");return c+=u.move(r.safe(e.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(r.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(s=r.enter("destinationRaw"),c+=u.move(r.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),s(),e.title&&(s=r.enter(`title${a}`),c+=u.move(" "+n),c+=u.move(r.safe(e.title,{before:c,after:n,...u.current()})),c+=u.move(n),s()),c+=u.move(")"),o(),c}function sB(){return"!"}Hg.peek=lB;function Hg(e,t,r,i){let n=e.referenceType,a=r.enter("imageReference"),o=r.enter("label"),s=r.createTracker(i),u=s.move("!["),c=r.safe(e.alt,{before:u,after:"]",...s.current()});u+=s.move(c+"]["),o();let d=r.stack;r.stack=[],o=r.enter("reference");let p=r.safe(r.associationId(e),{before:u,after:"]",...s.current()});return o(),r.stack=d,a(),n==="full"||!c||c!==p?u+=s.move(p+"]"):n==="shortcut"?u=u.slice(0,-1):u+=s.move("]"),u}function lB(){return"!"}Kg.peek=uB;function Kg(e,t,r){let i=e.value||"",n="`",a=-1;for(;new RegExp("(^|[^`])"+n+"([^`]|$)").test(i);)n+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++a<r.unsafe.length;){let o=r.unsafe[a],s=r.compilePattern(o),u;if(o.atBreak)for(;u=s.exec(i);){let c=u.index;i.charCodeAt(c)===10&&i.charCodeAt(c-1)===13&&c--,i=i.slice(0,c)+" "+i.slice(u.index+1)}}return n+i+n}function uB(){return"`"}function Yg(e,t){let r=Ji(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Xg.peek=cB;function Xg(e,t,r,i){let n=Za(r),a=n==='"'?"Quote":"Apostrophe",o=r.createTracker(i),s,u;if(Yg(e,r)){let d=r.stack;r.stack=[],s=r.enter("autolink");let p=o.move("<");return p+=o.move(r.containerPhrasing(e,{before:p,after:">",...o.current()})),p+=o.move(">"),s(),r.stack=d,p}s=r.enter("link"),u=r.enter("label");let c=o.move("[");return c+=o.move(r.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=r.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(r.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(u=r.enter("destinationRaw"),c+=o.move(r.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=r.enter(`title${a}`),c+=o.move(" "+n),c+=o.move(r.safe(e.title,{before:c,after:n,...o.current()})),c+=o.move(n),u()),c+=o.move(")"),s(),c}function cB(e,t,r){return Yg(e,r)?"<":"["}Qg.peek=dB;function Qg(e,t,r,i){let n=e.referenceType,a=r.enter("linkReference"),o=r.enter("label"),s=r.createTracker(i),u=s.move("["),c=r.containerPhrasing(e,{before:u,after:"]",...s.current()});u+=s.move(c+"]["),o();let d=r.stack;r.stack=[],o=r.enter("reference");let p=r.safe(r.associationId(e),{before:u,after:"]",...s.current()});return o(),r.stack=d,a(),n==="full"||!c||c!==p?u+=s.move(p+"]"):n==="shortcut"?u=u.slice(0,-1):u+=s.move("]"),u}function dB(){return"["}function Ha(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function b$(e){let t=Ha(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function _$(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function md(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function w$(e,t,r,i){let n=r.enter("list"),a=r.bulletCurrent,o=e.ordered?_$(r):Ha(r),s=e.ordered?o==="."?")":".":b$(r),u=t&&r.bulletLastUsed?o===r.bulletLastUsed:!1;if(!e.ordered){let d=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(u=!0),md(r)===o&&d){let p=-1;for(;++p<e.children.length;){let f=e.children[p];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(o=s),r.bulletCurrent=o;let c=r.containerFlow(e,i);return r.bulletLastUsed=o,r.bulletCurrent=a,n(),c}function k$(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function x$(e,t,r,i){let n=k$(r),a=r.bulletCurrent||Ha(r);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(n==="tab"||n==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=r.createTracker(i);s.move(a+" ".repeat(o-a.length)),s.shift(o);let u=r.enter("listItem"),c=r.indentLines(r.containerFlow(e,s.current()),d);return u(),c;function d(p,f,m){return f?(m?"":" ".repeat(o))+p:(m?a:a+" ".repeat(o-a.length))+p}}function S$(e,t,r,i){let n=r.enter("paragraph"),a=r.enter("phrasing"),o=r.containerPhrasing(e,i);return a(),n(),o}var ey=Ga(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function I$(e,t,r,i){return(e.children.some(function(o){return ey(o)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function E$(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ty.peek=pB;function ty(e,t,r,i){let n=E$(r),a=r.enter("strong"),o=r.createTracker(i),s=o.move(n+n),u=o.move(r.containerPhrasing(e,{after:n,before:s,...o.current()})),c=u.charCodeAt(0),d=Wa(i.before.charCodeAt(i.before.length-1),c,n);d.inside&&(u=dr(c)+u.slice(1));let p=u.charCodeAt(u.length-1),f=Wa(i.after.charCodeAt(0),p,n);f.inside&&(u=u.slice(0,-1)+dr(p));let m=o.move(n+n);return a(),r.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+u+m}function pB(e,t,r){return r.options.strong||"*"}function T$(e,t,r,i){return r.safe(e.value,i)}function $$(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function C$(e,t,r){let i=(md(r)+(r.options.ruleSpaces?" ":"")).repeat($$(r));return r.options.ruleSpaces?i.slice(0,-1):i}var A$={blockquote:u$,break:Zg,code:f$,definition:m$,emphasis:Wg,hardBreak:Zg,heading:v$,html:Gg,image:Jg,imageReference:Hg,inlineCode:Kg,link:Xg,linkReference:Qg,list:w$,listItem:x$,paragraph:S$,root:I$,strong:ty,text:T$,thematicBreak:C$};var O$=[fB];function fB(e,t,r,i){if(t.type==="code"&&pl(t,i)&&(e.type==="list"||e.type===t.type&&pl(e,i)))return!1;if("spread"in r&&typeof r.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&fd(t,i))?void 0:r.spread?1:0}var ea=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],N$=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
|
|
191
|
+
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:ea},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
|
|
192
|
+
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:ea},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
|
|
193
|
+
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:ea},{atBreak:!0,character:"+",after:`(?:[ \r
|
|
194
|
+
])`},{atBreak:!0,character:"-",after:`(?:[ \r
|
|
195
|
+
-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
|
|
196
|
+
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:ea},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:ea},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:ea},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:ea},{atBreak:!0,character:"~"}];function D$(e){return e.label||!e.identifier?e.label||"":sd(e.identifier)}function j$(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function P$(e,t,r){let i=t.indexStack,n=e.children||[],a=[],o=-1,s=r.before,u;i.push(-1);let c=t.createTracker(r);for(;++o<n.length;){let d=n[o],p;if(i[i.length-1]=o,o+1<n.length){let g=t.handle.handlers[n[o+1].type];g&&g.peek&&(g=g.peek),p=g?g(n[o+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else p=r.after;a.length>0&&(s==="\r"||s===`
|
|
197
|
+
`)&&d.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",c=t.createTracker(r),c.move(a.join("")));let f=t.handle(d,e,t,{...c.current(),after:p,before:s});u&&u===f.slice(0,1)&&(f=dr(u.charCodeAt(0))+f.slice(1));let m=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,u=void 0,m&&(a.length>0&&m.before&&s===a[a.length-1].slice(-1)&&(a[a.length-1]=a[a.length-1].slice(0,-1)+dr(s.charCodeAt(0))),m.after&&(u=p)),c.move(f),a.push(f),s=f.slice(-1)}return i.pop(),a.join("")}function z$(e,t,r){let i=t.indexStack,n=e.children||[],a=t.createTracker(r),o=[],s=-1;for(i.push(-1);++s<n.length;){let u=n[s];i[i.length-1]=s,o.push(a.move(t.handle(u,e,t,{before:`
|
|
198
|
+
`,after:`
|
|
199
|
+
`,...a.current()}))),u.type!=="list"&&(t.bulletLastUsed=void 0),s<n.length-1&&o.push(a.move(mB(u,n[s+1],e,t)))}return i.pop(),o.join("")}function mB(e,t,r,i){let n=i.join.length;for(;n--;){let a=i.join[n](e,t,r,i);if(a===!0||a===1)break;if(typeof a=="number")return`
|
|
200
|
+
`.repeat(1+a);if(a===!1)return`
|
|
201
|
+
|
|
202
|
+
<!---->
|
|
203
|
+
|
|
204
|
+
`}return`
|
|
205
|
+
|
|
206
|
+
`}var hB=/\r?\n|\r/g;function R$(e,t){let r=[],i=0,n=0,a;for(;a=hB.exec(e);)o(e.slice(i,a.index)),r.push(a[0]),i=a.index+a[0].length,n++;return o(e.slice(i)),r.join("");function o(s){r.push(t(s,n,!s))}}function L$(e,t,r){let i=(r.before||"")+(t||"")+(r.after||""),n=[],a=[],o={},s=-1;for(;++s<e.unsafe.length;){let d=e.unsafe[s];if(!ud(e.stack,d))continue;let p=e.compilePattern(d),f;for(;f=p.exec(i);){let m="before"in d||!!d.atBreak,g="after"in d,h=f.index+(m?f[1].length:0);n.includes(h)?(o[h].before&&!m&&(o[h].before=!1),o[h].after&&!g&&(o[h].after=!1)):(n.push(h),o[h]={before:m,after:g})}}n.sort(gB);let u=r.before?r.before.length:0,c=i.length-(r.after?r.after.length:0);for(s=-1;++s<n.length;){let d=n[s];d<u||d>=c||d+1<c&&n[s+1]===d+1&&o[d].after&&!o[d+1].before&&!o[d+1].after||n[s-1]===d-1&&o[d].before&&!o[d-1].before&&!o[d-1].after||(u!==d&&a.push(M$(i.slice(u,d),"\\")),u=d,/[!-/:-@[-`{-~]/.test(i.charAt(d))&&(!r.encode||!r.encode.includes(i.charAt(d)))?a.push("\\"):(a.push(dr(i.charCodeAt(d))),u++))}return a.push(M$(i.slice(u,c),r.after)),a.join("")}function gB(e,t){return e-t}function M$(e,t){let r=/\\(?=[!-/:-@[-`{-~])/g,i=[],n=[],a=e+t,o=-1,s=0,u;for(;u=r.exec(a);)i.push(u.index);for(;++o<i.length;)s!==i[o]&&n.push(e.slice(s,i[o])),n.push("\\"),s=i[o];return n.push(e.slice(s)),n.join("")}function F$(e){let t=e||{},r=t.now||{},i=t.lineShift||0,n=r.line||1,a=r.column||1;return{move:u,current:o,shift:s};function o(){return{now:{line:n,column:a},lineShift:i}}function s(c){i+=c}function u(c){let d=c||"",p=d.split(/\r?\n|\r/g),f=p[p.length-1];return n+=p.length-1,a=p.length===1?a+f.length:1+f.length+i,d}}function fl(e,t){let r=t||{},i={associationId:D$,containerPhrasing:_B,containerFlow:wB,createTracker:F$,compilePattern:j$,enter:a,handlers:{...A$},handle:void 0,indentLines:R$,indexStack:[],join:[...O$],options:{},safe:kB,stack:[],unsafe:[...N$]};Vg(i,r),i.options.tightDefinitions&&i.join.push(bB),i.handle=s$("type",{invalid:yB,unknown:vB,handlers:i.handlers});let n=i.handle(e,void 0,i,{before:`
|
|
207
|
+
`,after:`
|
|
208
|
+
`,now:{line:1,column:1},lineShift:0});return n&&n.charCodeAt(n.length-1)!==10&&n.charCodeAt(n.length-1)!==13&&(n+=`
|
|
209
|
+
`),n;function a(o){return i.stack.push(o),s;function s(){i.stack.pop()}}}function yB(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function vB(e){let t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function bB(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function _B(e,t){return P$(e,this,t)}function wB(e,t){return z$(e,this,t)}function kB(e,t){return L$(this,e,t)}Ya();function BB(e){return e.replace(/```[\s\S]*?```/g,"\0").replace(/`[^`\n]+`/g,"\0")}function hl(e){if(!ci.existsSync(e))return[];let t=ci.readFileSync(e,"utf8"),r=BB(t),i=new Set,n=/<!--\s*lang:([a-zA-Z-]+)\s*-->/g,a;for(;(a=n.exec(r))!==null;)i.add(a[1]);return Array.from(i)}async function Xa(e,t,r=new Set,i,n){if(r.has(e))throw new Error(`[FATAL] Circular dependency detected:
|
|
210
|
+
-> ${Array.from(r).join(`
|
|
211
|
+
-> `)}
|
|
212
|
+
-> ${e} (Loop!)`);r.add(e);let a=ci.readFileSync(e,"utf8");if(i){let f=`<!-- lang:${i} -->`,m="<!-- /lang -->",g=[],h=a.replace(/```[\s\S]*?```/g,y=>{let v=g.length;return g.push(y),`\0CODEBLOCK_${v}\0`}).replace(/`[^`\n]+`/g,y=>{let v=g.length;return g.push(y),`\0CODEBLOCK_${v}\0`});if(h.includes("<!-- lang:"))if(h.includes(f)){console.log(ue("COMPILER_USE_EXISTING_BLOCK",i,e));let y=/<!--\s*lang:([a-zA-Z-]+)\s*-->([\s\S]*?)<!--\s*\/lang\s*-->/g,v=h,_,b=[];for(;(_=y.exec(h))!==null;){let x=_[1],E=_[2];x.toLowerCase()===i.toLowerCase()?b.push({start:_.index,end:_.index+_[0].length,content:E}):b.push({start:_.index,end:_.index+_[0].length,content:""})}for(let x=b.length-1;x>=0;x--){let E=b[x];v=v.substring(0,E.start)+E.content+v.substring(E.end)}a=v}else{let y=/<!--\s*lang:([a-zA-Z-]+)\s*-->([\s\S]*?)<!--\s*\/lang\s*-->/.exec(h);if(y){let _=y[2].trim();n?console.log(`[COMPILER] \u{1F916} AI Build Mode: Bypassing fallback translation for '${i}' in ${e}`):console.warn(ue("COMPILER_TRANS_UNAVAILABLE",i,e));let b=/<!--\s*lang:([a-zA-Z-]+)\s*-->([\s\S]*?)<!--\s*\/lang\s*-->/g,x=h,E,k=[],A=!0;for(;(E=b.exec(h))!==null;)A?(k.push({start:E.index,end:E.index+E[0].length,content:_}),A=!1):k.push({start:E.index,end:E.index+E[0].length,content:""});for(let $=k.length-1;$>=0;$--){let T=k[$];x=x.substring(0,T.start)+T.content+x.substring(T.end)}a=x}}else{let _=a.replace(/^---\n[\s\S]*?\n---/,"").replace(/\[[^\]]*\]\([^)]*["']@import:inline["'][^)]*\)/g,"").replace(/^#{1,6}\s+.*$/gm,"").replace(/[^a-zA-Z\u4e00-\u9fa50-9]/g,""),b=!1;if(_.length===0)console.log(ue("COMPILER_ROUTER_SKIP",i)),b=!0;else{let x=Ka(a);x&&((ny[x]||[x]).includes(i.toLowerCase())||x.toLowerCase()===i.toLowerCase())&&(console.log(ue("COMPILER_NLP_SKIP",i)),b=!0)}b||(n?console.log(`[COMPILER] \u{1F916} AI Build Mode: Bypassing NLP translation for '${i}'`):console.warn(ue("COMPILER_TRANS_UNAVAILABLE",i,e)))}g.length>0&&(a=a.replace(/\x00CODEBLOCK_(\d+)\x00/g,(y,v)=>g[parseInt(v,10)]))}let o=Gi().use(li).use(Va,["yaml"]),s=o.parse(a);if(s.children){let f=s.children.find(m=>m.type==="yaml");if(f)try{let m=bd.parse(f.value);if(m&&typeof m=="object"){let{vasm:g,...h}=m;Object.keys(h).length>0?f.value=bd.stringify(h).trimEnd():s.children=s.children.filter(v=>v.type!=="yaml")}else s.children=s.children.filter(g=>g.type!=="yaml")}catch{s.children=s.children.filter(m=>m.type!=="yaml")}}let u=zr(process.cwd()),c=[],d=[];Ja(s,"link",(f,m)=>{let g=f.url&&f.url.startsWith("vasm:"),h=f.url&&(f.url.startsWith("./")||f.url.startsWith("../"));if(g||h){let y=f.title||"";y.includes("@import:inline")?c.push({ancestors:[...m],link:f}):y.includes("@import:link")?d.push({link:f}):g&&console.warn(`[WARN] Unrecognized directive for alias '${f.url}': ${y}`)}});for(let f of d){let m;if(f.link.url.startsWith("vasm:")){let y=f.link.url.replace("vasm:",""),v=u.dependencies[y];if(!v)throw new Error(`[FATAL] Unresolved alias '${y}'. Please run 'vasmc add' or 'vasmc sync'.`);m=v.dest?bt.resolve(process.cwd(),v.dest):bt.resolve(process.cwd(),".vasmc",y+".md")}else m=bt.resolve(bt.dirname(e),f.link.url);let g=t?bt.dirname(t):process.cwd(),h=bt.relative(g,m);h.startsWith(".")||(h="./"+h),f.link.title==="@import:link"?f.link.title=null:f.link.title&&(f.link.title=f.link.title.replace("@import:link","").trim()),f.link.url=h}for(let f=c.length-1;f>=0;f--){let m=c[f],g,h;if(m.link.url.startsWith("vasm:")){let x=m.link.url.replace("vasm:","");h=x;let E=u.dependencies[x];if(!E)throw new Error(`[FATAL] Unresolved alias '${x}'. Please run 'vasmc add' or 'vasmc sync'.`);g=E.dest?bt.resolve(process.cwd(),E.dest):bt.resolve(process.cwd(),".vasmc",x+".md")}else h=m.link.url,g=bt.resolve(bt.dirname(e),h);if(!ci.existsSync(g))throw new Error(`[FATAL] Missing physical file for '${h}'. Cannot import inline.`);let y=await Xa(g,t,r,i,n),v=o.parse(y),_=m.ancestors[m.ancestors.length-1],b=m.ancestors.length>1?m.ancestors[m.ancestors.length-2]:null;if(_.type==="paragraph"&&b){let x=_.children.filter(E=>E.type!=="text"||E.value.trim()!=="");if(x.length===1&&x[0]===m.link){let E=b.children.indexOf(_);E!==-1&&b.children.splice(E,1,...v.children)}else{let E=_.children.indexOf(m.link);E!==-1&&_.children.splice(E,1,...v.children)}}else{let x=_.children.indexOf(m.link);x!==-1&&_.children.splice(x,1,...v.children)}}r.delete(e),Ja(s,"link",f=>{f.url&&f.url.endsWith(".vasm.md")&&(f.url=f.url.replace(/\.vasm\.md$/,".md"))});let p=fl(s,{extensions:[dl(["yaml"])]});if(r.size===0){let f=rn(p);f>2e4&&console.warn(ue("WARN_TOKEN_LIMIT",f))}return p}function Rr(e,t,r=new Set){if(r.has(e)||!ci.existsSync(e))return r;r.add(e);let i=ci.readFileSync(e,"utf8"),n=zr(t),a=/\[([^\]]*)\]\(([^)]+)"@import:(inline|link)"[^)]*\)/g,o;for(;(o=a.exec(i))!==null;){let s=o[2].trim(),u;if(s.startsWith("vasm:")){let c=s.replace("vasm:",""),d=n.dependencies[c];if(!d)continue;u=d.dest?bt.resolve(t,d.dest):bt.resolve(t,".vasmc",c+".md")}else if(s.startsWith("./")||s.startsWith("../"))u=bt.resolve(bt.dirname(e),s);else continue;Rr(u,t,r)}return r}var no=ve(ni());var VB={en:"\u{1F30D} English","zh-CN":"\u{1F1E8}\u{1F1F3} \u4E2D\u6587",ja:"\u{1F1EF}\u{1F1F5} \u65E5\u672C\u8A9E",ko:"\u{1F1F0}\u{1F1F7} \uD55C\uAD6D\uC5B4",fr:"\u{1F1EB}\u{1F1F7} Fran\xE7ais",es:"\u{1F1EA}\u{1F1F8} Espa\xF1ol",de:"\u{1F1E9}\u{1F1EA} Deutsch",ru:"\u{1F1F7}\u{1F1FA} \u0420\u0443\u0441\u0441\u043A\u0438\u0439"};function aC(e){return VB[e]||e.toUpperCase()}function gl(e){let t=Gi().use(li),r=new Map;for(let[c,d]of e.entries())r.set(c,t.parse(d));let i=Array.from(r.keys());if(i.length===0)return"";if(i.length===1)return e.get(i[0]);let n={type:"root",children:[]},a=null,o=r.get(i[0]),s=o.children.findIndex(c=>c.type==="heading"&&c.depth===1);s!==-1&&(a=o.children[s]),a&&n.children.push(a);let u={type:"paragraph",children:[]};for(let c=0;c<i.length;c++){let d=i[c],p=aC(d),f=d.toLowerCase().replace(/[^a-z0-9]/g,"-");u.children.push({type:"link",url:`#${f}`,children:[{type:"text",value:p}]}),c<i.length-1&&u.children.push({type:"text",value:" | "})}n.children.push(u),n.children.push({type:"thematicBreak"});for(let c=0;c<i.length;c++){let d=i[c],p=r.get(d),f=aC(d),m=d.toLowerCase().replace(/[^a-z0-9]/g,"-");n.children.push({type:"html",value:`<a name="${m}"></a>`}),n.children.push({type:"heading",depth:2,children:[{type:"text",value:f}]});let g=p.children.findIndex(y=>y.type==="heading"&&y.depth===1),h=[...p.children];g!==-1&&h.splice(g,1),ui({type:"root",children:h},"html",y=>{y.value=y.value.replace(/<a([^>]*?)(name|id)\s*=\s*(['"])(.*?)\3([^>]*?)>/gi,(v,_,b,x,E,k)=>`<a${_}${b}=${x}${E}-${m}${x}${k}>`)}),ui({type:"root",children:h},"link",y=>{if(y.url&&y.url.startsWith("#")){let v=y.url.substring(1);!i.some(b=>b.toLowerCase().replace(/[^a-z0-9]/g,"-")===v)&&!v.endsWith(`-${m}`)&&(y.url=`${y.url}-${m}`)}}),n.children.push(...h),c<i.length-1&&n.children.push({type:"thematicBreak"})}return fl(n)}Ya();var di=ve(require("fs")),iy=ve(require("path")),oC=ve(require("crypto")),_d=ve(ni()),sC="vasmc-build-state.yaml";function ay(e=process.cwd()){let t=iy.join(e,sC);if(!di.existsSync(t))return{version:1,entries:{}};try{let r=di.readFileSync(t,"utf8");return _d.parse(r)||{version:1,entries:{}}}catch{return{version:1,entries:{}}}}function oy(e,t=process.cwd()){let r=iy.join(t,sC);di.writeFileSync(r,_d.stringify(e),"utf8")}function ta(e){let t=Array.from(e).sort(),r=oC.createHash("sha256");for(let i of t)di.existsSync(i)&&(r.update(i),r.update(di.readFileSync(i)));return r.digest("hex")}function kn(e,t){return`${e}|${t||"auto"}`}var wd=ve(require("fs"));var ZB=new Set(["prompt","skill","doc","policy","fragment"]),WB=new Set(["readFiles","editFiles","runCommands","network","externalModels","publish"]);function sy(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Qa(e){return Array.isArray(e)&&e.every(t=>typeof t=="string")}function ut(e,t,r,i){e.push({severity:t,code:r,message:i})}function xn(e){return wd.existsSync(e)?Wi(wd.readFileSync(e,"utf8")).data?.vasm:void 0}function ly(e){if(!e)return;let t={alias:e.alias,version:e.version,kind:e.kind,compileFormat:e.compile?.format,domains:e.scope?.domains,filePatterns:e.scope?.filePatterns,capabilities:e.capabilities,activationIntent:e.activation?.intent,activationPriority:e.activation?.priority,conflictsWith:e.activation?.conflictsWith,trustSource:e.trust?.source,trustLicense:e.trust?.license};return Object.fromEntries(Object.entries(t).filter(([,r])=>r!==void 0))}function kd(e){let t=[];if(!e)return t;if(e.kind&&!ZB.has(e.kind)&&ut(t,"error","manifest.kind.invalid",`Unknown vasm.kind '${e.kind}'.`),e.scope!==void 0&&(sy(e.scope)?(e.scope.domains!==void 0&&!Qa(e.scope.domains)&&ut(t,"error","manifest.scope.domains.invalid","vasm.scope.domains must be a string array."),e.scope.filePatterns!==void 0&&!Qa(e.scope.filePatterns)&&ut(t,"error","manifest.scope.filePatterns.invalid","vasm.scope.filePatterns must be a string array.")):ut(t,"error","manifest.scope.invalid","vasm.scope must be an object.")),e.capabilities!==void 0)if(!sy(e.capabilities))ut(t,"error","manifest.capabilities.invalid","vasm.capabilities must be an object.");else for(let[r,i]of Object.entries(e.capabilities))WB.has(r)?typeof i!="boolean"&&ut(t,"error","manifest.capabilities.value.invalid",`Capability '${r}' must be boolean.`):ut(t,"warn","manifest.capabilities.unknown",`Unknown capability '${r}'.`);if(e.activation!==void 0){if(!sy(e.activation))ut(t,"error","manifest.activation.invalid","vasm.activation must be an object.");else if(e.activation.intent!==void 0&&!Qa(e.activation.intent)&&ut(t,"error","manifest.activation.intent.invalid","vasm.activation.intent must be a string array."),e.activation.conflictsWith!==void 0&&!Qa(e.activation.conflictsWith)&&ut(t,"error","manifest.activation.conflictsWith.invalid","vasm.activation.conflictsWith must be a string array."),e.activation.priority!==void 0){let r=e.activation.priority;(typeof r!="number"||r<0||r>100)&&ut(t,"error","manifest.activation.priority.invalid","vasm.activation.priority must be a number between 0 and 100.")}}return e.compatibility?.formats!==void 0&&!Qa(e.compatibility.formats)&&ut(t,"error","manifest.compatibility.formats.invalid","vasm.compatibility.formats must be a string array."),e.trust?.maintainers!==void 0&&!Qa(e.trust.maintainers)&&ut(t,"error","manifest.trust.maintainers.invalid","vasm.trust.maintainers must be a string array."),e.kind==="skill"&&(e.alias||ut(t,"warn","skill.alias.missing","Skill should declare vasm.alias for stable references."),e.version||ut(t,"warn","skill.version.missing","Skill should declare vasm.version for human compatibility review."),!e.scope?.domains?.length&&!e.activation?.intent?.length&&ut(t,"warn","skill.activation.missing","Skill should declare scope.domains or activation.intent so AI can choose it deliberately."),e.capabilities||ut(t,"warn","skill.capabilities.missing","Skill should declare capabilities to make its permission surface explicit."),e.trust?.source||ut(t,"warn","skill.trust.source.missing","Skill should declare trust.source for supply-chain review."),e.trust?.license||ut(t,"warn","skill.trust.license.missing","Skill should declare trust.license.")),t}var eo=ve(require("fs")),Xt=ve(require("path"));var GB=["readFiles","editFiles","runCommands","network","externalModels","publish"],JB=["network","externalModels","publish"];function Yt(e,t){return Xt.relative(e,t)||"."}function HB(e){return e.severity==="error"?"block":"review"}function KB(e,t,r){return{...r,path:Yt(t,e),source:"manifest",gate:HB(r)}}function YB(e,t){let r=xn(e);return kd(r).map(i=>KB(e,t,i))}function XB(e,t,r){return r?.kind==="skill"?!0:Xt.normalize(Yt(t,e.finalDest)).split(Xt.sep).includes("skills")}function QB(e,t){return[...Rr(e.absoluteFile,t)]}function eV(e,t){let r=[],i=zr(t),n=new Map;for(let[a,o]of Object.entries(i.dependencies||{})){let s=o.dest?Xt.resolve(t,o.dest):Xt.resolve(t,".vasmc",`${a}.md`);n.set(s,{alias:a,hash:o.hash})}for(let a of e){let o=n.get(Xt.resolve(a));if(!o)continue;if(!eo.existsSync(a)){r.push({severity:"error",code:"policy.lockfile.missing",message:`Locked dependency '${o.alias}' is missing on disk.`,path:Yt(t,a),source:"lockfile",gate:"block"});continue}Zi(eo.readFileSync(a,"utf8"))!==o.hash&&r.push({severity:"error",code:"policy.lockfile.hash_mismatch",message:`Locked dependency '${o.alias}' hash does not match vasmc-lock.yaml.`,path:Yt(t,a),source:"lockfile",gate:"block"})}return r}function tV(e,t,r,i){let n=[],a=i?.capabilities||{};for(let o of JB)a[o]===!0&&n.push({severity:"warn",code:"policy.capability.high_risk",message:`Skill declares high-risk capability '${o}'.`,path:Yt(r,e.absoluteFile),source:"capability",gate:"review"});for(let o of t){if(Xt.resolve(o)===Xt.resolve(e.absoluteFile))continue;let u=xn(o)?.capabilities;if(u)for(let c of GB)u[c]===!0&&a[c]!==!0&&n.push({severity:"error",code:"policy.capability.escalation",message:`Dependency requires '${c}' but the entry skill does not declare it.`,path:Yt(r,o),source:"capability",gate:"block"})}return n}function rV(e,t,r){let i=[],n=r?.activation?.intent||[],a=/^(all|any|anything|everything|default|always|general|global)$/i,o=/(所有|任何|全部|一切|默认|总是|全局|通用)/;for(let s of n)(a.test(s.trim())||o.test(s))&&i.push({severity:"warn",code:"policy.activation.too_broad",message:`Activation intent '${s}' is too broad for automatic routing.`,path:Yt(t,e.absoluteFile),source:"activation",gate:"review"});return(r?.activation?.priority??0)>=95&&i.push({severity:"warn",code:"policy.activation.high_priority",message:"Activation priority is very high and should be reviewed for routing hijack risk.",path:Yt(t,e.absoluteFile),source:"activation",gate:"review"}),i}function ra(e){return e.trim().toLowerCase().replace(/[\s_-]+/g," ")}function nV(e,t,r,i){let n=[],a=i?.alias,o=new Set((i?.activation?.intent||[]).map(ra)),s=new Set((i?.activation?.conflictsWith||[]).map(ra)),u=i?.activation?.priority??0,c=new Map;for(let d of t){let p=xn(d);if(p?.kind!=="skill"||!p.activation)continue;let f=p.alias||Yt(r,d),m=ra(f),g=p.activation.intent||[],h=p.activation.priority??0,y=Xt.resolve(d)===Xt.resolve(e.absoluteFile);for(let v of p.activation.conflictsWith||[])(ra(v)===ra(a||"")||s.has(m))&&n.push({severity:"warn",code:"policy.activation.conflict",message:`Skill '${f}' declares activation conflict with '${v}'.`,path:Yt(r,d),source:"activation",gate:"review"});for(let v of g){let _=ra(v);if(!_)continue;let b=c.get(_);b&&b.alias!==f?n.push({severity:"warn",code:"policy.activation.intent_collision",message:`Activation intent '${v}' is declared by both '${b.alias}' and '${f}'.`,path:Yt(r,d),source:"activation",gate:"review"}):c.set(_,{alias:f,path:d}),!y&&o.has(_)&&n.push({severity:"warn",code:"policy.activation.dependency_overlap",message:`Dependency skill '${f}' shares entry activation intent '${v}'.`,path:Yt(r,d),source:"activation",gate:"review"})}!y&&h>u&&g.some(v=>o.has(ra(v)))&&n.push({severity:"warn",code:"policy.activation.priority_hijack",message:`Dependency skill '${f}' has priority ${h}, higher than entry priority ${u}, for overlapping activation intent.`,path:Yt(r,d),source:"activation",gate:"review"})}return n}function iV(e){return e.replace(/^---[ \t]*\r?\n[\s\S]*?\r?\n---[ \t]*(?:\r?\n|$)/,"").replace(/```[\s\S]*?```/g,"").replace(/`[^`\n]+`/g,"")}function aV(e,t){let r=[],i=[{code:"policy.content.prompt_override",message:"Content appears to override previous or higher-priority instructions.",test:n=>/ignore\s+(all\s+)?(previous|prior|above)\s+(instructions|rules)/i.test(n)||/忽略.*(之前|以上|前面).*(指令|规则)/.test(n)},{code:"policy.content.concealment",message:"Content appears to hide behavior from the user or reviewer.",test:n=>/(do not|don't)\s+(tell|mention|reveal|explain)\s+(the\s+)?user/i.test(n)||/不要(告诉|透露|提及|说明).*用户/.test(n)||/向用户隐藏/.test(n)},{code:"policy.content.secret_exfiltration",message:"Content appears to combine secret access with exfiltration language.",test:n=>/(api[_ -]?key|secret|token|credential|env|environment variable|环境变量|密钥|令牌|凭据)/i.test(n)&&/(send|upload|post|exfiltrat|leak|steal|发送|上传|泄露|窃取|外传)/i.test(n)},{code:"policy.content.remote_execution",message:"Content appears to request downloading and running remote code.",test:n=>/(download|curl|wget).*(run|execute|bash|sh|powershell)/i.test(n)||/下载.*(执行|运行)/.test(n)}];for(let n of e){if(!eo.existsSync(n))continue;let a=iV(eo.readFileSync(n,"utf8")).split(/\r?\n/);for(let[o,s]of a.entries()){let u=s.trim();if(u)for(let c of i)c.test(u)&&r.push({severity:"warn",code:c.code,message:c.message,path:Yt(t,n),source:"content",gate:"review",line:o+1,evidence:u.slice(0,180)})}}return r.slice(0,20)}function lC(e,t){let r=xn(e.absoluteFile),i=QB(e,t),n=XB(e,t,r),a=[];for(let s of i)a.push(...YB(s,t));return a.push(...eV(i,t)),n&&(a.push(...tV(e,i,t,r)),a.push(...rV(e,t,r)),a.push(...nV(e,i,t,r)),a.push(...aV(i,t))),{status:a.some(s=>s.gate==="block")?"blocked":a.length>0?"review":"pass",enforceable:n,diagnostics:a}}var to=ve(require("fs")),uC=ve(require("path"));var oV=["README.md","HELP.md","DESIGN.md","docs/**/*.md","package.json","packages/*/package.json","vasmc.yaml","vasmc-build.yaml","docs-src/**/*.vasm.md","packages/*/docs-src/**/*.vasm.md","skill-src/**/*.vasm.md","skill-src/**/*.md"],sV=["node_modules/**","dist/**","packages/*/dist/**",".git/**",".vasmc/**"];function lV(e){if(!(!e||e.mode==="off"))return e.mode||"suggest"}async function xd(e,t){let r=lV(t);if(!r)return;let i=t?.include?.length?t.include:oV,n=[...sV,...t?.exclude||[]],a=t?.maxFiles??80,o=t?.maxFileBytes??2e5,s=await Vn(i,{cwd:e,nodir:!0,ignore:n}),u=[...new Set(s)].sort((p,f)=>p.length-f.length||p.localeCompare(f)),c=[],d=new Map;for(let p of u){if(c.length>=a)break;let f=uC.resolve(e,p);if(!to.existsSync(f))continue;let m=to.statSync(f);if(!m.isFile()||m.size>o)continue;let g=to.readFileSync(f,"utf8"),h=Zi(g),y=d.get(h);if(y){y.duplicates=[...y.duplicates||[],p];continue}c.push({path:p,bytes:m.size,hash:h}),d.set(h,c[c.length-1])}return{version:1,mode:r,generatedAt:new Date().toISOString(),files:c,reviewGoals:["Check whether compiled prompts and skills reflect the current project structure, commands, terminology, and constraints.","Suggest source-level changes only; do not edit generated outputs directly.","Look for overly broad skill activation, capabilities that can be narrowed, duplicated fragments, stale project facts, and missing project-specific guidance.",r==="patch"?"If useful, provide focused patches against .vasm.md or docs-src files.":"Provide concise recommendations and ask before making source edits."]}}function yl(e,t,r){return`${e}. **Project Review** \`${t}\` \u2014 read the context index and \`.vasmc/build-report.yaml\`; ${r==="patch"?"produce focused source patch proposals":"produce concise source-level recommendations"}, never edit generated outputs directly`}function cC(e,t){let r=xn(e);return kd(r).map(i=>({path:he.relative(t,e),...i}))}function uV(e,t){return[...Rr(e,t)].filter(r=>r!==e).map(r=>{let i=xn(r),n=cC(r,t),a={path:he.relative(t,r)},o=ly(i);return o&&(a.manifest=o),n.length>0&&(a.diagnostics=n),a})}function ro(e,t,r){let i=xn(e.absoluteFile),n=cC(e.absoluteFile,t),a=uV(e.absoluteFile,t),o=lC(e,t),s={source:e.relativeFile,output:he.relative(t,e.finalDest),status:r,format:e.compileFormat,targetLangs:e.targetLangs,policy:{status:o.status,enforceable:o.enforceable}};o.diagnostics.length>0&&(s.policy.diagnostics=o.diagnostics);let u=ly(i);return u&&(s.manifest=u),n.length>0&&(s.diagnostics=n),a.length>0&&(s.dependencies=a),s}function cV(e){return e.policy.diagnostics||[]}function dV(e){return e.map(t=>`${t.severity.toUpperCase()} ${t.code} (${t.path}): ${t.message}`).join("; ")}function vl(e,t){if(e.policy.status==="pass")return;let r=cV(e);if(r.length===0)return;let i=e.policy.status==="blocked"?"Policy Gate":"Policy Review";return`${t}. **${i}** \`.vasmc/build-report.yaml\` \u2014 ${dV(r)}`}function uy(e,t="review"){return t==="enforce"&&e.policy.enforceable&&e.policy.status==="blocked"}function pV(e,t,r){let i=["# VASMC Build Instructions \u2014 Project Review","","## \u{1F6E0}\uFE0F Action Items","",yl(1,t,r)].join(`
|
|
213
|
+
`);Re.appendFileSync(e,`
|
|
214
|
+
|
|
215
|
+
`+i,"utf8")}async function dC(e,t){let r=Ra(e),i=r.includes&&r.includes.length>0?r.includes:["**/*.vasm.md"],n=t?.outDir||r.output?.dir||"./dist",a=he.resolve(e,n),o=he.resolve(e,t?.baseDir||r.baseDir||"."),s=t?.targetLangs,u=["node_modules/**",".vasmc/**","dist/**"],c=r.excludes||[],d=await Vn(i,{cwd:e,ignore:[...u,...c]});if(d.length===0)return console.log(ue("BUILD_NO_FILES",i.join(", "))),[];let p=[];for(let f of d){let m=he.resolve(e,f),g;if(r.output?.inPlace&&!t?.outDir)g=he.join(he.dirname(m),he.basename(m).replace(/\.vasm\.md$/,".md"));else{let x=he.relative(o,m);(r.output?.flat||x.startsWith(".."+he.sep)||x==="..")&&(x=he.basename(m)),g=he.resolve(a,x.replace(/\.vasm\.md$/,".md"))}if(r.routing&&r.routing.length>0){for(let x of r.routing)if(it(f,x.match,{matchBase:!0})){let E=he.resolve(e,x.dest);if(he.extname(E))g=E;else{let k=he.basename(f).replace(/\.vasm\.md$/,".md");g=he.join(E,k)}break}}let h="prompt",y,v=Re.readFileSync(m,"utf8"),_=/^---\n([\s\S]*?)\n---/.exec(v);if(_)try{let x=no.parse(_[1]);x?.vasm?.compile?.format&&(h=x.vasm.compile.format),x?.vasm?.compile?.targetLangs&&(y=x.vasm.compile.targetLangs)}catch{}let b;if(y&&y.length>0)b=y;else if(h==="doc"&&r.compile?.doc?.targetLangs?.length)b=r.compile.doc.targetLangs;else if(h==="prompt"&&r.compile?.prompt?.targetLangs?.length)b=r.compile.prompt.targetLangs;else if(s&&s.length>0)b=s;else{let x=hl(m);b=x.length>0?x:[void 0]}p.push({relativeFile:f,absoluteFile:m,finalDest:g,compileFormat:h,targetLangs:b})}return p}async function pC(e,t,r=!1){let{relativeFile:i,absoluteFile:n,finalDest:a,compileFormat:o,targetLangs:s}=e,u=o==="doc",c=new Map,d=s;if(r&&!u&&s.length>1){let p=Re.readFileSync(n,"utf8"),{detectLanguage:f}=await Promise.resolve().then(()=>(Ya(),iC)),m=f(p),g=s[0];m&&s.includes(m)?g=m:m||console.warn(ue("LANG_DETECT_AGENT_FALLBACK",i,g)),d=[g]}for(let p of d){let f=a;!u&&p&&p!=="auto"&&s.length>1&&(f=a.replace(/\.md$/,`.${p}.md`)),console.log(ue("BUILD_COMPILING",i,p?`[${p}]`:"",he.relative(t,f)));try{let m=he.dirname(f);Re.existsSync(m)||Re.mkdirSync(m,{recursive:!0});let g=await Xa(n,f,new Set,p,r);c.set(p||"auto",g),u||(Re.writeFileSync(f,g,"utf8"),console.log(ue("BUILD_SUCCESS",he.relative(t,f))))}catch(m){if(console.error(ue("BUILD_ERR_WORKSPACE",i,p||"auto",m.message)),console.error(m),m.message&&m.message.startsWith("[FATAL]"))throw m}}if(u&&c.size>0)try{let p=he.dirname(a);Re.existsSync(p)||Re.mkdirSync(p,{recursive:!0}),console.log(`[MERGE] \u{1FA84} Merging ${c.size} languages into ${he.relative(t,a)}`);let f=gl(c);Re.writeFileSync(a,f,"utf8"),console.log(ue("BUILD_SUCCESS",he.relative(t,a)))}catch(p){console.error(`[MERGE_ERR] \u274C Failed to merge ${i}: ${p.message}`),console.error(p)}return{entry:e,compiledMap:c}}async function fC(e,t){let r=await dC(e,t),i=ay(e),n=!1;for(let a of r){let{relativeFile:o,absoluteFile:s,finalDest:u,targetLangs:c}=a,d=a.compileFormat==="doc",p=u,f=!0;if(d){let h=kn(o,"merged"),y=i.entries[h];if(y&&Re.existsSync(u)){let v=Rr(s,e),_=ta(v),b=[...y.targetLangs||[]].sort().join(","),x=[...c].sort().join(",");y.inputSignature===_&&b===x||(f=!1)}else f=!1}else for(let h of c){let y=u;h&&h!=="auto"&&c.length>1&&(y=u.replace(/\.md$/,`.${h}.md`));let v=kn(o,h||"auto"),_=i.entries[v];if(_&&Re.existsSync(y)){let b=Rr(s,e),x=ta(b);if(_.inputSignature===x)continue}f=!1;break}if(f){console.log(`[BUILD] \u26A1\uFE0F Skipped (unchanged): ${o}`);continue}await pC(a,e,!1);let m=Rr(s,e),g=ta(m);if(d){let h=kn(o,"merged");i.entries[h]={inputSignature:g,outputFile:he.relative(e,u),targetLang:"merged",targetLangs:[...c].sort()}}else for(let h of c){let y=kn(o,h||"auto"),v=u;h&&h!=="auto"&&c.length>1&&(v=u.replace(/\.md$/,`.${h}.md`)),i.entries[y]={inputSignature:g,outputFile:he.relative(e,v),targetLang:h||"auto"}}n=!0}n&&oy(i,e)}async function mC(e,t){let r=await dC(e,t),i=Ra(e),n=i.security?.mode||"review",a=ay(e),o=!1,s=he.resolve(e,".vasmc","build-instructions.md"),u=he.resolve(e,".vasmc","build-report.yaml"),c=he.resolve(e,".vasmc","project-review-context.yaml"),d=he.dirname(s);Re.existsSync(d)||Re.mkdirSync(d,{recursive:!0}),Re.writeFileSync(s,"","utf8");let p=await xd(e,i.ai?.projectReview),f=he.relative(e,c);p&&Re.writeFileSync(c,no.stringify(p),"utf8");let m={version:1,mode:"ai-build",generatedAt:new Date().toISOString(),instructionsFile:he.relative(e,s),entries:[]};p&&(m.projectReview={mode:p.mode,contextFile:f,files:p.files});for(let g of r){let{relativeFile:h,absoluteFile:y,finalDest:v,targetLangs:_}=g,b=g.compileFormat==="doc",x=ro(g,e,"skipped"),E=re=>vl(x,re);if(uy(x,n)){let re=ro(g,e,"blocked");m.entries.push(re);let w=vl(re,1),le=[`# VASMC Build Instructions \u2014 \`${g.relativeFile}\``,"","## \u{1F6E0}\uFE0F Action Items","",w||"1. **Policy Gate** `.vasmc/build-report.yaml` \u2014 review blocked policy status.","","Final output was not updated because `security.mode` is `enforce`."].join(`
|
|
216
|
+
`);Re.appendFileSync(s,`
|
|
217
|
+
|
|
218
|
+
`+le,"utf8"),console.warn(`[BUILD] \u26D4 Blocked by policy gate: ${h}`);continue}let k,A="suggest";if(!b){let re=Re.readFileSync(y,"utf8"),w=/^---\n([\s\S]*?)\n---/.exec(re);if(w)try{let le=no.parse(w[1]);le?.vasm?.vision&&(k=le.vasm.vision.trim()),le?.vasm?.fix&&(A=le.vasm.fix)}catch{}}let $=!0;if(b){let re=kn(h,"merged"),w=a.entries[re];if(w&&Re.existsSync(v)){let le=Rr(y,e),Me=ta(le),G=[...w.targetLangs||[]].sort().join(","),se=[..._].sort().join(",");w.inputSignature===Me&&G===se||($=!1)}else $=!1}else for(let re of _){let w=v;re&&re!=="auto"&&_.length>1&&(w=v.replace(/\.md$/,`.${re}.md`));let le=kn(h,re||"auto"),Me=a.entries[le];if(Me&&Re.existsSync(w)){let G=Rr(y,e),se=ta(G);if(Me.inputSignature===se)continue}$=!1;break}if($){console.log(`[BUILD] \u26A1\uFE0F Skipped (unchanged): ${h}`),m.entries.push(x);let re=E(1);if(re){let w=[`# VASMC Build Instructions \u2014 \`${g.relativeFile}\``,"","## \u{1F6E0}\uFE0F Action Items","",re].join(`
|
|
219
|
+
`);Re.appendFileSync(s,`
|
|
220
|
+
|
|
221
|
+
`+w,"utf8"),console.log(`[BUILD] \u{1F916} Policy review instructions appended for: ${g.relativeFile}`)}continue}let T=[];if(!b)for(let re of _){let w=v;if(re&&re!=="auto"&&_.length>1&&(w=v.replace(/\.md$/,`.${re}.md`)),Re.existsSync(w)){let le=Re.readFileSync(w,"utf8"),Me=he.resolve(e,".vasmc","cache");Re.existsSync(Me)||Re.mkdirSync(Me,{recursive:!0});let G=new Date().getTime(),se=he.resolve(Me,`history-${G}-${he.basename(w)}`);Re.writeFileSync(se,le,"utf8"),T.push({lang:re||"auto",backupPath:se})}}let Y=await pC(g,e,!0),R=1/0,O="auto";for(let[re,w]of Y.compiledMap){let le=rn(w);le<R&&(R=le,O=re)}let j=re=>!b&&re&&re!=="auto"&&_.length>1?v.replace(/\.md$/,`.${re}.md`):v,z=he.relative(e,j(O)),N=b?[]:_.filter(re=>(re||"auto")!==O&&re!=="auto"),W=[],pe=1;if(!b){let re=k?A==="auto"?`**Verify & Auto-Fix** \`${z}\` \u2014 check against vision + 4 criteria; directly edit product to fix any issues`:`**Verify** \`${z}\` \u2014 check against vision + 4 criteria; if issues found, output suggested edits (do NOT modify product)`:`**Verify** \`${z}\``;W.push(`${pe++}. ${re}`)}if(N.length>0){let re=N.map(w=>`\`${he.relative(e,j(w))}\``).join(", ");W.push(`${pe++}. **Translate** \`${z}\` \u2192 ${re}`)}if(T.length>0){let re=T.map(le=>`\`${he.relative(e,le.backupPath)}\` (${le.lang})`).join(", "),w=W.some(le=>le.includes("Verify"))?" *(prerequisite: Verify & Fix must be completed first)*":"";W.push(`${pe++}. **Diff** against ${re}${w}`)}b||W.push(`${pe++}. **Tree-Shake** \`${z}\` *(conditional \u2014 only if user requested optimization)*`);let ce=E(pe);if(ce&&(W.push(ce),pe++),W.length>0){let re=_.map(Me=>` - ${he.relative(e,j(Me))}`).join(`
|
|
222
|
+
`),w=k?[`**Vision:** ${k.replace(/\n/g," ")}`,`**Fix Mode:** ${A}`,""]:[],le=[`# VASMC Build Instructions \u2014 \`${g.relativeFile}\``,"",`**Minimal-Token Variant:** ${z} (${R} tokens)`,`**Target Languages:** ${_.join(", ")}`,...w,"```yaml","compiledFiles:",re,"```","","## \u{1F6E0}\uFE0F Action Items","",W.join(`
|
|
223
|
+
|
|
224
|
+
`)].join(`
|
|
225
|
+
`);Re.appendFileSync(s,`
|
|
226
|
+
|
|
227
|
+
`+le,"utf8"),console.log(`[BUILD] \u{1F916} Instructions appended for: ${g.relativeFile}`)}let we=ro(g,e,"built");m.entries.push(we);let S=Rr(y,e),X=ta(S);if(b){let re=kn(h,"merged");a.entries[re]={inputSignature:X,outputFile:he.relative(e,v),targetLang:"merged",targetLangs:[..._].sort()}}else for(let re of _){let w=kn(h,re||"auto"),le=v;re&&re!=="auto"&&_.length>1&&(le=v.replace(/\.md$/,`.${re}.md`)),a.entries[w]={inputSignature:X,outputFile:he.relative(e,le),targetLang:re||"auto"}}o=!0}o&&oy(a,e),p&&(pV(s,f,p.mode),console.log(`[BUILD] \u{1F9ED} Project review context: ${f}`)),Re.readFileSync(s,"utf8").trim().length===0&&Re.writeFileSync(s,["# VASMC Build Instructions","","No pending action items.","",`See \`${he.relative(e,u)}\` for the full build report.`].join(`
|
|
228
|
+
`),"utf8"),Re.writeFileSync(u,no.stringify(m),"utf8"),console.log(`[BUILD] \u{1F4CB} Build report: ${he.relative(e,u)}`),console.log(`
|
|
229
|
+
[BUILD] \u{1F4CB} Full instructions: ${he.relative(e,s)}`)}Ya();var de=ve(require("path")),xe=ve(require("fs"));var bl=ve(require("fs")),Er=ve(require("path"));async function hC(e,t=process.cwd()){let r=zr(t),i=Er.resolve(t,e);if(!bl.existsSync(i)){console.error(ue("BUILD_ERR_ENTRY_NOT_FOUND",e));return}let n=new Set;async function a(s,u,c){let d={name:u,filePath:Er.relative(t,s),type:c,children:[]};if(n.has(s))return d.name+=" (circular)",d;n.add(s);let p=bl.readFileSync(s,"utf8"),m=Gi().use(li).use(Va,["yaml"]).parse(p),g=[];ui(m,"link",h=>{h.title&&(h.title.includes("@import:inline")||h.title.includes("@import:link"))&&g.push({url:h.url,title:h.title})});for(let h of g){let y,v;if(h.url.startsWith("vasm:")){let b=h.url.replace("vasm:","");v=b;let x=r.dependencies[b];if(!x){d.children.push({name:`${b} (UNRESOLVED ALIAS)`,filePath:"missing",type:h.title?.includes("inline")?"inline":"link",children:[]});continue}y=x.dest?Er.resolve(t,x.dest):Er.resolve(t,".vasmc",b+".md")}else v=h.url,y=Er.resolve(Er.dirname(s),h.url);let _=h.title?.includes("inline")?"inline":"link";if(!bl.existsSync(y))d.children.push({name:`${v} (MISSING FILE)`,filePath:Er.relative(t,y),type:_,children:[]});else{let b=await a(y,v,_);d.children.push(b)}}return n.delete(s),d}let o=await a(i,Er.basename(i),"root");console.log("\\n\u{1F4E6} VASMC Dependency Graph:\\n"),gC(o,"",!0),console.log()}function gC(e,t,r){let i=e.type==="root",n=i?"":`[${e.type}] `;console.log(i?`${e.name} (${e.filePath})`:`${t}${r?"\u2514\u2500\u2500 ":"\u251C\u2500\u2500 "}${n}${e.name} -> ${e.filePath}`);let a=i?"":t+(r?" ":"\u2502 ");for(let o=0;o<e.children.length;o++)gC(e.children[o],a,o===e.children.length-1)}var na=ve(ni());function yC(e={}){let t=new Ux,r=JSON.parse(xe.readFileSync(de.resolve(__dirname,"../package.json"),"utf8")),i=e.includeAgent??!1,n=e.buildMode??"deterministic";if(t.name(e.name||"vasmc").description(e.description||"A decentralized markdown package manager and compiler.").version(r.version||"0.1.0").option("--lang <lang>","Global language for CLI interactive outputs (e.g. en, zh-CN)").hook("preAction",a=>{dT(a.opts().lang)}),t.command("init").description("Initialize a default vasmc-build.yaml configuration file").action(()=>{let a=de.resolve(process.cwd(),"vasmc-build.yaml");if(xe.existsSync(a)){console.log(ue("INIT_WARN_EXISTS"));return}xe.writeFileSync(a,`# VASMC Build Configuration
|
|
230
|
+
# Determines how the VASMC compiler will assemble and output your Markdown modules.
|
|
231
|
+
|
|
232
|
+
# The entry files to compile
|
|
233
|
+
includes:
|
|
234
|
+
- "**/*.vasm.md"
|
|
235
|
+
|
|
236
|
+
# The output destination directory
|
|
237
|
+
output:
|
|
238
|
+
dir: "./dist"
|
|
239
|
+
# flat: true # Uncomment to ignore baseDir hierarchy and compile everything directly into dir
|
|
240
|
+
# inPlace: true # Uncomment to compile files directly alongside their source (e.g., a/prompt.vasm.md -> a/prompt.md)
|
|
241
|
+
|
|
242
|
+
# Strip this prefix directory from the original paths
|
|
243
|
+
baseDir: "."
|
|
244
|
+
|
|
245
|
+
# Cross-compilation targets per output format (optional)
|
|
246
|
+
# By default, VASMC infers languages automatically from <!-- lang:xxx --> blocks in your source.
|
|
247
|
+
# Uncomment below to force explicit language generation:
|
|
248
|
+
# compile:
|
|
249
|
+
# doc: # Document format: multi-language merge into one file
|
|
250
|
+
# targetLangs: ["en", "zh-CN"]
|
|
251
|
+
# exec: # Executable prompt format: one file per language
|
|
252
|
+
# targetLangs: ["en"]
|
|
253
|
+
|
|
254
|
+
# Advanced Routing Interceptors (optional)
|
|
255
|
+
# routing:
|
|
256
|
+
# - match: "src/agents/*.vasm.md"
|
|
257
|
+
# dest: "./dist/agents/"
|
|
258
|
+
`,"utf8"),console.log(ue("INIT_SUCCESS"))}),t.command("add <url>").description("Add a remote dependency").option("--alias <alias>","Explicitly set the alias name").option("--dest <dest>","Explicitly set local destination path").action(async(a,o)=>{let s=Uc();s.dependencies=s.dependencies||{};let u=o.alias;if(!u){console.log(ue("ADD_FETCHING",a));try{let p=await Bc(a),f=Wi(p);f.data.vasm&&f.data.vasm.alias&&(u=f.data.vasm.alias,console.log(ue("ADD_DISCOVERED_ALIAS",u)))}catch{}}if(!u)try{let f=new URL(a).pathname.split("/").filter(Boolean);if(f.length>0){let m=f[f.length-1];m=m.split(".")[0]||m;let g=["readme","index","main","default","master","refs","heads","tree","blob","base","about","info","doc","docs","src","lib","pkg","bin","scripts","dist","build","prompt","prompts","system","user","assistant","template","instructions","rules","config","settings"],h=!1;for(let y=f.length-1;y>=0;y--){let v=f[y];if(y===f.length-1&&(v=v.split(".")[0]||v),!g.includes(v.toLowerCase())){u=v,h=!0,y<f.length-1&&console.log(ue("ADD_GENERIC_PATH",u));break}}h||(u=m)}else u="unnamed-dep"}catch{u="unnamed-dep"}let c=u,d=1;for(;s.dependencies[c];){let p=s.dependencies[c];if((typeof p=="string"?p:p.url)===a)break;c=`${u}-${d}`,d++}s.dependencies=s.dependencies||{},o.dest?s.dependencies[c]={url:a,dest:o.dest}:s.dependencies[c]=a,sT(s),console.log(ue("ADD_SUCCESS",c,a)),await Zc()}),t.command("seal [patterns...]").description("Convert standard markdown files into VASMC modules by injecting Frontmatter. Supports wildcards.").option("--alias <alias>","Explicitly set the alias name (only recommended for single files)").option("--lang <lang>","Wrap content in a specific language block (e.g. ja, zh-CN)").option("--format <format>","Compile format: prompt (AI consumption, default) or doc (human documentation, multi-lang merge)").action(async(a,o)=>{(!a||a.length===0)&&(console.error(ue("SEAL_ERR_NO_FILES")),process.exit(1));let s=new Set;for(let u of a)(await Vn(u,{cwd:process.cwd(),absolute:!0})).forEach(d=>s.add(d));s.size===0&&(console.error(ue("SEAL_ERR_NO_MATCH")),process.exit(1));for(let u of s){if(!xe.existsSync(u)||xe.statSync(u).isDirectory())continue;let c=de.relative(process.cwd(),u),d=xe.readFileSync(u,"utf8"),p=Wi(d);if(p.data.vasm){console.warn(ue("SEAL_WARN_EXISTS",c));continue}let f=o.alias;if(!f){let $=u.split(de.sep).filter(Boolean),T=$[$.length-1];T=T.split(".")[0]||T;let Y=["readme","index","main","default","master","refs","heads","tree","blob","base","about","info","doc","docs","src","lib","pkg","bin","scripts","dist","build","prompt","prompts","system","user","assistant","template","instructions","rules","config","settings"],R=!1;for(let O=$.length-1;O>=0;O--){let j=$[O];if(O===$.length-1&&(j=j.split(".")[0]||j),!Y.includes(j.toLowerCase())){f=j.toLowerCase().replace(/[^a-z0-9_-]/g,"-"),R=!0;break}}R||(f=T.toLowerCase().replace(/[^a-z0-9_-]/g,"-")||"unnamed-module")}let g=/^(readme|help|design|changelog|contributing|license|docs?|guide|tutorial|manual|api)/i.test(de.basename(c).split(".")[0]),h=o.format||(g?"doc":"prompt"),y=o.lang||Ka(p.content),v={alias:f,version:"1.0.0",compile:{format:h}};y?v.compile.targetLangs=[y]:console.warn(ue("LANG_DETECT_UNCERTAIN",c)),p.data.vasm=v,h!==(o.format||h)&&console.log("[SEAL] \u{1F4C4} Detected doc-like filename, using format: doc (override with --format prompt)");let _=p.content;if(!_.includes("<!-- lang:")){let $=y;$&&(_=`
|
|
259
|
+
<!-- lang:${$} -->
|
|
260
|
+
${_.trim()}
|
|
261
|
+
<!-- /lang -->
|
|
262
|
+
`,console.log(ue("SEAL_AUTO_WRAP",$)))}let b=pT(_,p.data),x=de.dirname(u),k=`${de.basename(c).split(".")[0]}.vasm.md`,A=de.resolve(x,k);xe.writeFileSync(A,b,"utf8"),u!==A?(xe.unlinkSync(u),console.log(ue("SEAL_SUCCESS_RENAME",k,f))):console.log(ue("SEAL_SUCCESS_INJECT",c,f))}}),t.command("sync").alias("install").description("Sync all dependencies from vasmc.yaml").action(async()=>{await Zc()}),t.command("update [alias]").description("Force update dependencies, ignoring lockfile cache").action(async a=>{let o=zr();o.dependencies=o.dependencies||{},a?o.dependencies[a]?(delete o.dependencies[a],console.log(ue("UPDATE_CLEARED_ALIAS",a))):console.warn(ue("UPDATE_WARN_NOT_FOUND",a)):(o.dependencies={},console.log(ue("UPDATE_CLEARED_ALL"))),qc(o),await Zc()}),n==="deterministic"&&t.command("build [entry]").description("Compile a specific file or run workspace build via vasmc-build.yaml").option("-o, --out-dir <dir>","Specify output directory (works for both single file and workspace)").option("--base-dir <dir>","Specify base directory for workspace compilation (strips this path when outputting)").option("--target-langs <langs>","Comma-separated list of target languages for cross-compilation").action(async(a,o)=>{let s=o?.targetLangs?o.targetLangs.split(",").map(u=>u.trim()):void 0;if(a){let u=de.resolve(process.cwd(),a);xe.existsSync(u)||(console.error(ue("BUILD_ERR_ENTRY_NOT_FOUND",u)),process.exit(1));let c=Ra(process.cwd()),d=o?.outDir||c.output?.dir,p;if(d){let f=de.basename(a).replace(/\.vasm\.md$/,".md");p=de.resolve(process.cwd(),d,f)}else p=u.replace(/\.vasm\.md$/,".md"),p===u&&(p=p+".compiled.md");if(c.routing&&c.routing.length>0){for(let f of c.routing)if(it(a,f.match,{matchBase:!0})){let m=de.resolve(process.cwd(),f.dest);if(de.extname(m))p=m;else{let g=de.basename(a).replace(/\.vasm\.md$/,".md");p=de.join(m,g)}break}}try{let f,m="prompt",g,h=xe.readFileSync(u,"utf8"),y=/^---\n([\s\S]*?)\n---/.exec(h);if(y)try{let b=na.parse(y[1]);b?.vasm?.compile?.format&&(m=b.vasm.compile.format),b?.vasm?.compile?.targetLangs&&(g=b.vasm.compile.targetLangs)}catch{}if(g&&g.length>0)f=g;else if(m==="doc"&&c.compile?.doc?.targetLangs?.length)f=c.compile.doc.targetLangs;else if(m==="prompt"&&c.compile?.prompt?.targetLangs?.length)f=c.compile.prompt.targetLangs;else if(s&&s.length>0)f=s;else{let b=hl(u);f=b.length>0?b:[void 0]}let v=m==="doc"&&f,_=new Map;for(let b of f){let x=p;!v&&b&&b!=="auto"&&f.length>1&&(x=p.replace(/\.md$/,`.${b}.md`));let E=await Xa(u,x,new Set,b);if(_.set(b||"auto",E),!v){let k=de.dirname(x);xe.existsSync(k)||xe.mkdirSync(k,{recursive:!0}),xe.writeFileSync(x,E,"utf8"),console.log(ue("BUILD_SUCCESS_SINGLE",a,b?`[${b}]`:"",de.relative(process.cwd(),x)))}}if(v)try{let b=de.dirname(p);xe.existsSync(b)||xe.mkdirSync(b,{recursive:!0}),console.log(`[MERGE] \u{1FA84} Merging ${_.size} languages into ${de.relative(process.cwd(),p)}...`);let x=gl(_);xe.writeFileSync(p,x,"utf8"),console.log(ue("BUILD_SUCCESS_SINGLE",a,"[merged]",de.relative(process.cwd(),p)))}catch(b){console.error(`[MERGE_ERR] \u274C Failed to merge ${a}: ${b.message}`)}}catch(f){console.error(ue("BUILD_ERR_SINGLE",a,f.message)),process.exit(1)}}else await fC(process.cwd(),{baseDir:o?.baseDir,outDir:o?.outDir,targetLangs:s})}),n==="ai"||i){let a=n==="ai"?"build [entry]":"agent [entry]",o=n==="ai"?"Build for AI editors: deterministic AST assembly + output build-instructions.md":"Compile for AI editors: deterministic AST assembly + output build-instructions.md";t.command(a).description(o).option("-o, --out-dir <dir>","Specify output directory").option("--base-dir <dir>","Specify base directory for workspace compilation").option("--target-langs <langs>","Comma-separated list of target languages for cross-compilation").action(async(s,u)=>{let c=u?.targetLangs?u.targetLangs.split(",").map(d=>d.trim()):void 0;if(s){let d=de.resolve(process.cwd(),s);xe.existsSync(d)||(console.error(ue("BUILD_ERR_ENTRY_NOT_FOUND",d)),process.exit(1));let p=Ra(process.cwd()),f=u?.outDir||p.output?.dir,m;if(f){let g=de.basename(s).replace(/\.vasm\.md$/,".md");m=de.resolve(process.cwd(),f,g)}else m=d.replace(/\.vasm\.md$/,".md"),m===d&&(m=m+".compiled.md");if(p.routing&&p.routing.length>0){for(let g of p.routing)if(it(s,g.match,{matchBase:!0})){let h=de.resolve(process.cwd(),g.dest);if(de.extname(h))m=h;else{let y=de.basename(s).replace(/\.vasm\.md$/,".md");m=de.join(h,y)}break}}try{let g,h="prompt",y,v,_="suggest",b=xe.readFileSync(d,"utf8"),x=/^---\n([\s\S]*?)\n---/.exec(b);if(x)try{let oe=na.parse(x[1]);oe?.vasm?.compile?.format&&(h=oe.vasm.compile.format),oe?.vasm?.compile?.targetLangs&&(y=oe.vasm.compile.targetLangs),oe?.vasm?.vision&&(v=oe.vasm.vision.trim()),oe?.vasm?.fix&&(_=oe.vasm.fix)}catch{}if(y&&y.length>0)g=y;else if(h==="doc"&&p.compile?.doc?.targetLangs?.length)g=p.compile.doc.targetLangs;else if(h==="prompt"&&p.compile?.prompt?.targetLangs?.length)g=p.compile.prompt.targetLangs;else if(c&&c.length>0)g=c;else{let oe=hl(d);g=oe.length>0?oe:[void 0]}let E=h==="doc"&&g,k={relativeFile:s,absoluteFile:d,finalDest:m,compileFormat:h,targetLangs:g},A=ro(k,process.cwd(),"built"),$=de.resolve(process.cwd(),".vasmc","build-instructions.md"),T=de.dirname($);xe.existsSync(T)||xe.mkdirSync(T,{recursive:!0});let Y=de.resolve(process.cwd(),".vasmc","build-report.yaml"),R=de.resolve(process.cwd(),".vasmc","project-review-context.yaml"),O=await xd(process.cwd(),p.ai?.projectReview),j=de.relative(process.cwd(),R);O&&xe.writeFileSync(R,na.stringify(O),"utf8");let z=p.security?.mode||"review";if(uy(A,z)){let oe=ro(k,process.cwd(),"blocked"),Pe=vl(oe,1),He=O?yl(2,j,O.mode):void 0,yr=[`# VASMC Build Instructions \u2014 \`${s}\``,"","## \u{1F6E0}\uFE0F Action Items","",Pe||"1. **Policy Gate** `.vasmc/build-report.yaml` \u2014 review blocked policy status.",...He?["",He]:[],"","Final output was not updated because `security.mode` is `enforce`."].join(`
|
|
263
|
+
`);xe.writeFileSync($,yr,"utf8");let kt={version:1,mode:"ai-build",generatedAt:new Date().toISOString(),instructionsFile:de.relative(process.cwd(),$),entries:[oe]};O&&(kt.projectReview={mode:O.mode,contextFile:j,files:O.files}),xe.writeFileSync(Y,na.stringify(kt),"utf8"),console.warn(`[BUILD] \u26D4 Blocked by policy gate: ${s}`);return}let N=new Map,W=1/0,pe="auto",ce=[],we=g;if(!E&&g.length>1){let oe=xe.readFileSync(d,"utf8"),Pe=Ka(oe),He=g[0];Pe&&g.includes(Pe)?He=Pe:Pe||console.warn(ue("LANG_DETECT_AGENT_FALLBACK",s,He)),we=[He]}for(let oe of we){let Pe=m;if(!E&&oe&&oe!=="auto"&&g.length>1&&(Pe=m.replace(/\.md$/,`.${oe}.md`)),xe.existsSync(Pe)&&!E){let kt=xe.readFileSync(Pe,"utf8"),vr=de.resolve(process.cwd(),".vasmc","cache");xe.existsSync(vr)||xe.mkdirSync(vr,{recursive:!0});let Hr=new Date().getTime(),Kr=de.resolve(vr,`history-${Hr}-${de.basename(Pe)}`);xe.writeFileSync(Kr,kt,"utf8"),ce.push({lang:oe||"auto",backupPath:Kr})}let He=await Xa(d,Pe,new Set,oe,!0);if(N.set(oe||"auto",He),!E){let kt=de.dirname(Pe);xe.existsSync(kt)||xe.mkdirSync(kt,{recursive:!0}),xe.writeFileSync(Pe,He,"utf8"),console.log(ue("BUILD_SUCCESS_SINGLE",s,oe?`[${oe}]`:"",de.relative(process.cwd(),Pe)))}let yr=rn(He);yr<W&&(W=yr,pe=oe||"auto")}if(E)try{let oe=de.dirname(m);xe.existsSync(oe)||xe.mkdirSync(oe,{recursive:!0}),console.log(`[MERGE] \u{1FA84} Merging ${N.size} languages into ${de.relative(process.cwd(),m)}...`);let Pe=gl(N);xe.writeFileSync(m,Pe,"utf8"),console.log(ue("BUILD_SUCCESS_SINGLE",s,"[merged]",de.relative(process.cwd(),m)))}catch(oe){console.error(`[MERGE_ERR] \u274C Failed to merge ${s}: ${oe.message}`)}let S=!E&&g.length>1,X=de.relative(process.cwd(),m.replace(/\.md$/,S&&pe!=="auto"?`.${pe}.md`:".md")),re=g.filter(oe=>(oe||"auto")!==pe&&oe!=="auto"),w=[],le=1;if(!E){let oe=v?_==="auto"?`**Verify & Auto-Fix** \`${X}\` \u2014 check against vision + 4 criteria; directly edit product to fix any issues`:`**Verify** \`${X}\` \u2014 check against vision + 4 criteria; if issues found, output suggested edits (do NOT modify product)`:`**Verify** \`${X}\``;w.push(`${le++}. ${oe}`)}if(re.length>0){let oe=re.map(Pe=>`\`${de.relative(process.cwd(),m.replace(/\.md$/,`.${Pe}.md`))}\``).join(", ");w.push(`${le++}. **Translate** \`${X}\` \u2192 ${oe}`)}if(ce.length>0){let oe=ce.map(He=>`\`${de.relative(process.cwd(),He.backupPath)}\` (${He.lang})`).join(", "),Pe=w.some(He=>He.includes("Verify"))?" *(prerequisite: Verify & Fix must be completed first)*":"";w.push(`${le++}. **Diff** against ${oe}${Pe}`)}E||w.push(`${le++}. **Tree-Shake** \`${X}\` *(conditional \u2014 only if user requested optimization)*`);let Me=vl(A,le);Me&&(w.push(Me),le++),O&&w.push(yl(le++,j,O.mode));let G=g.map(oe=>` - ${de.relative(process.cwd(),m.replace(/\.md$/,!E&&g.length>1&&oe!=="auto"&&oe?`.${oe}.md`:".md"))}`).join(`
|
|
264
|
+
`),se=v?[`**Vision:** ${v.replace(/\n/g," ")}`,`**Fix Mode:** ${_}`,""]:[],$e=w.length>0?w.join(`
|
|
265
|
+
|
|
266
|
+
`):"No pending action items. See `.vasmc/build-report.yaml` for the full build report.",Ce=[`# VASMC Build Instructions \u2014 \`${s}\``,"",`**Minimal-Token Variant:** ${X} (${W} tokens)`,`**Target Languages:** ${g.join(", ")}`,...se,"```yaml","compiledFiles:",G,"```","","## \u{1F6E0}\uFE0F Action Items","",$e].join(`
|
|
267
|
+
`);xe.writeFileSync($,Ce,"utf8"),console.log(`
|
|
268
|
+
[BUILD] \u{1F916} Orchestration instructions generated: ${de.relative(process.cwd(),$)}`);let dt={version:1,mode:"ai-build",generatedAt:new Date().toISOString(),instructionsFile:de.relative(process.cwd(),$),entries:[A]};O&&(dt.projectReview={mode:O.mode,contextFile:j,files:O.files}),xe.writeFileSync(Y,na.stringify(dt),"utf8"),console.log(`[BUILD] \u{1F4CB} Build report: ${de.relative(process.cwd(),Y)}`)}catch(g){console.error(ue("BUILD_ERR_SINGLE",s,g.message)),process.exit(1)}}else await mC(process.cwd(),{baseDir:u?.baseDir,outDir:u?.outDir,targetLangs:c})})}return t.command("graph <entry>").description(ue("CLI_DESC_GRAPH")).action(async a=>{try{a||(console.error(ue("BUILD_ERR_ENTRY_NOT_FOUND","undefined")),process.exit(1)),await hC(a,process.cwd())}catch(o){console.error(ue("BUILD_ERR_WORKSPACE",a,"graph",o.message)),process.exit(1)}}),t}var WC="vercel.ai.error",fV=Symbol.for(WC),vC,bC,ie=class GC extends(bC=Error,vC=fV,bC){constructor({name:t,message:r,cause:i}){super(r),this[vC]=!0,this.name=t,this.cause=i}static isInstance(t){return GC.hasMarker(t,WC)}static hasMarker(t,r){let i=Symbol.for(r);return t!=null&&typeof t=="object"&&i in t&&typeof t[i]=="boolean"&&t[i]===!0}},JC="AI_APICallError",HC=`vercel.ai.error.${JC}`,mV=Symbol.for(HC),_C,wC,Fe=class extends(wC=ie,_C=mV,wC){constructor({message:e,url:t,requestBodyValues:r,statusCode:i,responseHeaders:n,responseBody:a,cause:o,isRetryable:s=i!=null&&(i===408||i===409||i===429||i>=500),data:u}){super({name:JC,message:e,cause:o}),this[_C]=!0,this.url=t,this.requestBodyValues=r,this.statusCode=i,this.responseHeaders=n,this.responseBody=a,this.isRetryable=s,this.data=u}static isInstance(e){return ie.hasMarker(e,HC)}},KC="AI_EmptyResponseBodyError",YC=`vercel.ai.error.${KC}`,hV=Symbol.for(YC),kC,xC,XC=class extends(xC=ie,kC=hV,xC){constructor({message:e="Empty response body"}={}){super({name:KC,message:e}),this[kC]=!0}static isInstance(e){return ie.hasMarker(e,YC)}};function pi(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var QC="AI_InvalidArgumentError",eA=`vercel.ai.error.${QC}`,gV=Symbol.for(eA),SC,IC,Sd=class extends(IC=ie,SC=gV,IC){constructor({message:e,cause:t,argument:r}){super({name:QC,message:e,cause:t}),this[SC]=!0,this.argument=r}static isInstance(e){return ie.hasMarker(e,eA)}},tA="AI_InvalidPromptError",rA=`vercel.ai.error.${tA}`,yV=Symbol.for(rA),EC,TC,Sn=class extends(TC=ie,EC=yV,TC){constructor({prompt:e,message:t,cause:r}){super({name:tA,message:`Invalid prompt: ${t}`,cause:r}),this[EC]=!0,this.prompt=e}static isInstance(e){return ie.hasMarker(e,rA)}},nA="AI_InvalidResponseDataError",iA=`vercel.ai.error.${nA}`,vV=Symbol.for(iA),$C,CC,Id=class extends(CC=ie,$C=vV,CC){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:nA,message:t}),this[$C]=!0,this.data=e}static isInstance(e){return ie.hasMarker(e,iA)}},aA="AI_JSONParseError",oA=`vercel.ai.error.${aA}`,bV=Symbol.for(oA),AC,OC,_l=class extends(OC=ie,AC=bV,OC){constructor({text:e,cause:t}){super({name:aA,message:`JSON parsing failed: Text: ${e}.
|
|
269
|
+
Error message: ${pi(t)}`,cause:t}),this[AC]=!0,this.text=e}static isInstance(e){return ie.hasMarker(e,oA)}},sA="AI_LoadAPIKeyError",lA=`vercel.ai.error.${sA}`,_V=Symbol.for(lA),NC,DC,wl=class extends(DC=ie,NC=_V,DC){constructor({message:e}){super({name:sA,message:e}),this[NC]=!0}static isInstance(e){return ie.hasMarker(e,lA)}},uA="AI_LoadSettingError",cA=`vercel.ai.error.${uA}`,wV=Symbol.for(cA),jC,PC,Fse=class extends(PC=ie,jC=wV,PC){constructor({message:e}){super({name:uA,message:e}),this[jC]=!0}static isInstance(e){return ie.hasMarker(e,cA)}},dA="AI_NoContentGeneratedError",pA=`vercel.ai.error.${dA}`,kV=Symbol.for(pA),zC,RC,Use=class extends(RC=ie,zC=kV,RC){constructor({message:e="No content generated."}={}){super({name:dA,message:e}),this[zC]=!0}static isInstance(e){return ie.hasMarker(e,pA)}},fA="AI_NoSuchModelError",mA=`vercel.ai.error.${fA}`,xV=Symbol.for(mA),MC,LC,qse=class extends(LC=ie,MC=xV,LC){constructor({errorName:e=fA,modelId:t,modelType:r,message:i=`No such ${r}: ${t}`}){super({name:e,message:i}),this[MC]=!0,this.modelId=t,this.modelType=r}static isInstance(e){return ie.hasMarker(e,mA)}},hA="AI_TooManyEmbeddingValuesForCallError",gA=`vercel.ai.error.${hA}`,SV=Symbol.for(gA),FC,UC,yA=class extends(UC=ie,FC=SV,UC){constructor(e){super({name:hA,message:`Too many values for a single embedding call. The ${e.provider} model "${e.modelId}" can only embed up to ${e.maxEmbeddingsPerCall} values per call, but ${e.values.length} values were provided.`}),this[FC]=!0,this.provider=e.provider,this.modelId=e.modelId,this.maxEmbeddingsPerCall=e.maxEmbeddingsPerCall,this.values=e.values}static isInstance(e){return ie.hasMarker(e,gA)}},vA="AI_TypeValidationError",bA=`vercel.ai.error.${vA}`,IV=Symbol.for(bA),qC,BC,Mr=class cy extends(BC=ie,qC=IV,BC){constructor({value:t,cause:r,context:i}){let n="Type validation failed";if(i?.field&&(n+=` for ${i.field}`),i?.entityName||i?.entityId){n+=" (";let a=[];i.entityName&&a.push(i.entityName),i.entityId&&a.push(`id: "${i.entityId}"`),n+=a.join(", "),n+=")"}super({name:vA,message:`${n}: Value: ${JSON.stringify(t)}.
|
|
270
|
+
Error message: ${pi(r)}`,cause:r}),this[qC]=!0,this.value=t,this.context=i}static isInstance(t){return ie.hasMarker(t,bA)}static wrap({value:t,cause:r,context:i}){var n,a,o;return cy.isInstance(r)&&r.value===t&&((n=r.context)==null?void 0:n.field)===i?.field&&((a=r.context)==null?void 0:a.entityName)===i?.entityName&&((o=r.context)==null?void 0:o.entityId)===i?.entityId?r:new cy({value:t,cause:r,context:i})}},_A="AI_UnsupportedFunctionalityError",wA=`vercel.ai.error.${_A}`,EV=Symbol.for(wA),VC,ZC,Qt=class extends(ZC=ie,VC=EV,ZC){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:_A,message:t}),this[VC]=!0,this.functionality=e}static isInstance(e){return ie.hasMarker(e,wA)}};var l={};Or(l,{$brand:()=>Ed,$input:()=>Ab,$output:()=>Cb,NEVER:()=>dy,TimePrecision:()=>jb,ZodAny:()=>kw,ZodArray:()=>Ew,ZodBase64:()=>Xp,ZodBase64URL:()=>Qp,ZodBigInt:()=>Po,ZodBigIntFormat:()=>rf,ZodBoolean:()=>jo,ZodCIDRv4:()=>Kp,ZodCIDRv6:()=>Yp,ZodCUID:()=>Bp,ZodCUID2:()=>Vp,ZodCatch:()=>Jw,ZodCodec:()=>df,ZodCustom:()=>eu,ZodCustomStringFormat:()=>No,ZodDate:()=>Hl,ZodDefault:()=>qw,ZodDiscriminatedUnion:()=>$w,ZodE164:()=>ef,ZodEmail:()=>Fp,ZodEmoji:()=>Up,ZodEnum:()=>Ao,ZodError:()=>e9,ZodExactOptional:()=>Lw,ZodFile:()=>Rw,ZodFirstPartyTypeKind:()=>ok,ZodFunction:()=>nk,ZodGUID:()=>Vl,ZodIPv4:()=>Jp,ZodIPv6:()=>Hp,ZodISODate:()=>jp,ZodISODateTime:()=>Dp,ZodISODuration:()=>zp,ZodISOTime:()=>Pp,ZodIntersection:()=>Cw,ZodIssueCode:()=>r9,ZodJWT:()=>tf,ZodKSUID:()=>Gp,ZodLazy:()=>ek,ZodLiteral:()=>zw,ZodMAC:()=>hw,ZodMap:()=>jw,ZodNaN:()=>Kw,ZodNanoID:()=>qp,ZodNever:()=>Sw,ZodNonOptional:()=>uf,ZodNull:()=>_w,ZodNullable:()=>Uw,ZodNumber:()=>Do,ZodNumberFormat:()=>da,ZodObject:()=>Yl,ZodOptional:()=>lf,ZodPipe:()=>cf,ZodPrefault:()=>Vw,ZodPromise:()=>rk,ZodReadonly:()=>Yw,ZodRealError:()=>rr,ZodRecord:()=>Ql,ZodSet:()=>Pw,ZodString:()=>Oo,ZodStringFormat:()=>We,ZodSuccess:()=>Gw,ZodSymbol:()=>vw,ZodTemplateLiteral:()=>Qw,ZodTransform:()=>Mw,ZodTuple:()=>Ow,ZodType:()=>Se,ZodULID:()=>Zp,ZodURL:()=>Jl,ZodUUID:()=>sn,ZodUndefined:()=>bw,ZodUnion:()=>Xl,ZodUnknown:()=>xw,ZodVoid:()=>Iw,ZodXID:()=>Wp,ZodXor:()=>Tw,_ZodString:()=>Lp,_default:()=>Bw,_function:()=>eN,any:()=>NO,array:()=>Kl,base64:()=>hO,base64url:()=>gO,bigint:()=>TO,boolean:()=>yw,catch:()=>Hw,check:()=>tN,cidrv4:()=>fO,cidrv6:()=>mO,clone:()=>Ft,codec:()=>YO,coerce:()=>sk,config:()=>Qe,core:()=>Tn,cuid:()=>aO,cuid2:()=>oO,custom:()=>rN,date:()=>jO,decode:()=>lw,decodeAsync:()=>cw,describe:()=>nN,discriminatedUnion:()=>FO,e164:()=>yO,email:()=>H1,emoji:()=>nO,encode:()=>sw,encodeAsync:()=>uw,endsWith:()=>bo,enum:()=>of,exactOptional:()=>Fw,file:()=>GO,flattenError:()=>Al,float32:()=>xO,float64:()=>SO,formatError:()=>Ol,fromJSONSchema:()=>cN,function:()=>eN,getErrorMap:()=>i9,globalRegistry:()=>_t,gt:()=>an,gte:()=>Ut,guid:()=>K1,hash:()=>kO,hex:()=>wO,hostname:()=>_O,httpUrl:()=>rO,includes:()=>yo,instanceof:()=>aN,int:()=>Mp,int32:()=>IO,int64:()=>$O,intersection:()=>Aw,ipv4:()=>cO,ipv6:()=>pO,iso:()=>Co,json:()=>sN,jwt:()=>vO,keyof:()=>PO,ksuid:()=>uO,lazy:()=>tk,length:()=>ua,literal:()=>WO,locales:()=>Ll,looseObject:()=>MO,looseRecord:()=>qO,lowercase:()=>ho,lt:()=>nn,lte:()=>fr,mac:()=>dO,map:()=>BO,maxLength:()=>la,maxSize:()=>bi,meta:()=>iN,mime:()=>_o,minLength:()=>En,minSize:()=>on,multipleOf:()=>vi,nan:()=>KO,nanoid:()=>iO,nativeEnum:()=>ZO,negative:()=>Sp,never:()=>nf,nonnegative:()=>Ep,nonoptional:()=>Ww,nonpositive:()=>Ip,normalize:()=>wo,null:()=>ww,nullable:()=>Wl,nullish:()=>JO,number:()=>gw,object:()=>zO,optional:()=>Zl,overwrite:()=>Fr,parse:()=>iw,parseAsync:()=>aw,partialRecord:()=>UO,pipe:()=>Gl,positive:()=>xp,prefault:()=>Zw,preprocess:()=>lN,prettifyError:()=>xy,promise:()=>QO,property:()=>Tp,readonly:()=>Xw,record:()=>Dw,refine:()=>ik,regex:()=>mo,regexes:()=>$r,registry:()=>rp,safeDecode:()=>pw,safeDecodeAsync:()=>mw,safeEncode:()=>dw,safeEncodeAsync:()=>fw,safeParse:()=>ow,safeParseAsync:()=>Bl,set:()=>VO,setErrorMap:()=>n9,size:()=>sa,slugify:()=>Io,startsWith:()=>vo,strictObject:()=>RO,string:()=>Rp,stringFormat:()=>bO,stringbool:()=>oN,success:()=>HO,superRefine:()=>ak,symbol:()=>AO,templateLiteral:()=>XO,toJSONSchema:()=>$o,toLowerCase:()=>xo,toUpperCase:()=>So,transform:()=>sf,treeifyError:()=>ky,trim:()=>ko,tuple:()=>Nw,uint32:()=>EO,uint64:()=>CO,ulid:()=>sO,undefined:()=>OO,union:()=>af,unknown:()=>ca,uppercase:()=>go,url:()=>tO,util:()=>U,uuid:()=>Y1,uuidv4:()=>X1,uuidv6:()=>Q1,uuidv7:()=>eO,void:()=>DO,xid:()=>lO,xor:()=>LO});var Tn={};Or(Tn,{$ZodAny:()=>Yv,$ZodArray:()=>rb,$ZodAsyncError:()=>Lr,$ZodBase64:()=>Uv,$ZodBase64URL:()=>qv,$ZodBigInt:()=>Hd,$ZodBigIntFormat:()=>Gv,$ZodBoolean:()=>Pl,$ZodCIDRv4:()=>Mv,$ZodCIDRv6:()=>Lv,$ZodCUID:()=>Ev,$ZodCUID2:()=>Tv,$ZodCatch:()=>_b,$ZodCheck:()=>Ge,$ZodCheckBigIntFormat:()=>rv,$ZodCheckEndsWith:()=>mv,$ZodCheckGreaterThan:()=>qd,$ZodCheckIncludes:()=>pv,$ZodCheckLengthEquals:()=>lv,$ZodCheckLessThan:()=>Ud,$ZodCheckLowerCase:()=>cv,$ZodCheckMaxLength:()=>ov,$ZodCheckMaxSize:()=>nv,$ZodCheckMimeType:()=>gv,$ZodCheckMinLength:()=>sv,$ZodCheckMinSize:()=>iv,$ZodCheckMultipleOf:()=>ev,$ZodCheckNumberFormat:()=>tv,$ZodCheckOverwrite:()=>yv,$ZodCheckProperty:()=>hv,$ZodCheckRegex:()=>uv,$ZodCheckSizeEquals:()=>av,$ZodCheckStartsWith:()=>fv,$ZodCheckStringFormat:()=>po,$ZodCheckUpperCase:()=>dv,$ZodCodec:()=>Rl,$ZodCustom:()=>$b,$ZodCustomStringFormat:()=>Zv,$ZodDate:()=>tb,$ZodDefault:()=>gb,$ZodDiscriminatedUnion:()=>ab,$ZodE164:()=>Bv,$ZodEmail:()=>kv,$ZodEmoji:()=>Sv,$ZodEncodeError:()=>fi,$ZodEnum:()=>cb,$ZodError:()=>Cl,$ZodExactOptional:()=>mb,$ZodFile:()=>pb,$ZodFunction:()=>Ib,$ZodGUID:()=>_v,$ZodIPv4:()=>Pv,$ZodIPv6:()=>zv,$ZodISODate:()=>Nv,$ZodISODateTime:()=>Ov,$ZodISODuration:()=>jv,$ZodISOTime:()=>Dv,$ZodIntersection:()=>ob,$ZodJWT:()=>Vv,$ZodKSUID:()=>Av,$ZodLazy:()=>Tb,$ZodLiteral:()=>db,$ZodMAC:()=>Rv,$ZodMap:()=>lb,$ZodNaN:()=>wb,$ZodNanoID:()=>Iv,$ZodNever:()=>Qv,$ZodNonOptional:()=>vb,$ZodNull:()=>Kv,$ZodNullable:()=>hb,$ZodNumber:()=>Jd,$ZodNumberFormat:()=>Wv,$ZodObject:()=>JA,$ZodObjectJIT:()=>nb,$ZodOptional:()=>Yd,$ZodPipe:()=>kb,$ZodPrefault:()=>yb,$ZodPromise:()=>Eb,$ZodReadonly:()=>xb,$ZodRealError:()=>tr,$ZodRecord:()=>sb,$ZodRegistry:()=>tp,$ZodSet:()=>ub,$ZodString:()=>oa,$ZodStringFormat:()=>Ze,$ZodSuccess:()=>bb,$ZodSymbol:()=>Jv,$ZodTemplateLiteral:()=>Sb,$ZodTransform:()=>fb,$ZodTuple:()=>Kd,$ZodType:()=>_e,$ZodULID:()=>$v,$ZodURL:()=>xv,$ZodUUID:()=>wv,$ZodUndefined:()=>Hv,$ZodUnion:()=>zl,$ZodUnknown:()=>Xv,$ZodVoid:()=>eb,$ZodXID:()=>Cv,$ZodXor:()=>ib,$brand:()=>Ed,$constructor:()=>C,$input:()=>Ab,$output:()=>Cb,Doc:()=>jl,JSONSchema:()=>G1,JSONSchemaGenerator:()=>Op,NEVER:()=>dy,TimePrecision:()=>jb,_any:()=>t_,_array:()=>l_,_base64:()=>bp,_base64url:()=>_p,_bigint:()=>Jb,_boolean:()=>Wb,_catch:()=>W3,_check:()=>W1,_cidrv4:()=>yp,_cidrv6:()=>vp,_coercedBigint:()=>Hb,_coercedBoolean:()=>Gb,_coercedDate:()=>o_,_coercedNumber:()=>Fb,_coercedString:()=>Nb,_cuid:()=>cp,_cuid2:()=>dp,_custom:()=>c_,_date:()=>a_,_decode:()=>Nd,_decodeAsync:()=>jd,_default:()=>B3,_discriminatedUnion:()=>O3,_e164:()=>wp,_email:()=>np,_emoji:()=>lp,_encode:()=>Od,_encodeAsync:()=>Dd,_endsWith:()=>bo,_enum:()=>R3,_file:()=>u_,_float32:()=>qb,_float64:()=>Bb,_gt:()=>an,_gte:()=>Ut,_guid:()=>Fl,_includes:()=>yo,_int:()=>Ub,_int32:()=>Vb,_int64:()=>Kb,_intersection:()=>N3,_ipv4:()=>hp,_ipv6:()=>gp,_isoDate:()=>zb,_isoDateTime:()=>Pb,_isoDuration:()=>Mb,_isoTime:()=>Rb,_jwt:()=>kp,_ksuid:()=>mp,_lazy:()=>K3,_length:()=>ua,_literal:()=>L3,_lowercase:()=>ho,_lt:()=>nn,_lte:()=>fr,_mac:()=>Db,_map:()=>P3,_max:()=>fr,_maxLength:()=>la,_maxSize:()=>bi,_mime:()=>_o,_min:()=>Ut,_minLength:()=>En,_minSize:()=>on,_multipleOf:()=>vi,_nan:()=>s_,_nanoid:()=>up,_nativeEnum:()=>M3,_negative:()=>Sp,_never:()=>n_,_nonnegative:()=>Ep,_nonoptional:()=>V3,_nonpositive:()=>Ip,_normalize:()=>wo,_null:()=>e_,_nullable:()=>q3,_number:()=>Lb,_optional:()=>U3,_overwrite:()=>Fr,_parse:()=>so,_parseAsync:()=>lo,_pipe:()=>G3,_positive:()=>xp,_promise:()=>Y3,_property:()=>Tp,_readonly:()=>J3,_record:()=>j3,_refine:()=>d_,_regex:()=>mo,_safeDecode:()=>zd,_safeDecodeAsync:()=>Md,_safeEncode:()=>Pd,_safeEncodeAsync:()=>Rd,_safeParse:()=>uo,_safeParseAsync:()=>co,_set:()=>z3,_size:()=>sa,_slugify:()=>Io,_startsWith:()=>vo,_string:()=>Ob,_stringFormat:()=>Eo,_stringbool:()=>h_,_success:()=>Z3,_superRefine:()=>p_,_symbol:()=>Xb,_templateLiteral:()=>H3,_toLowerCase:()=>xo,_toUpperCase:()=>So,_transform:()=>F3,_trim:()=>ko,_tuple:()=>D3,_uint32:()=>Zb,_uint64:()=>Yb,_ulid:()=>pp,_undefined:()=>Qb,_union:()=>C3,_unknown:()=>r_,_uppercase:()=>go,_url:()=>Ul,_uuid:()=>ip,_uuidv4:()=>ap,_uuidv6:()=>op,_uuidv7:()=>sp,_void:()=>i_,_xid:()=>fp,_xor:()=>A3,clone:()=>Ft,config:()=>Qe,createStandardJSONSchemaMethod:()=>To,createToJSONSchemaMethod:()=>g_,decode:()=>eZ,decodeAsync:()=>rZ,describe:()=>f_,encode:()=>QV,encodeAsync:()=>tZ,extractDefs:()=>wi,finalize:()=>ki,flattenError:()=>Al,formatError:()=>Ol,globalConfig:()=>kl,globalRegistry:()=>_t,initializeContext:()=>_i,isValidBase64:()=>Fv,isValidBase64URL:()=>VA,isValidJWT:()=>ZA,locales:()=>Ll,meta:()=>m_,parse:()=>Cd,parseAsync:()=>Ad,prettifyError:()=>xy,process:()=>qe,regexes:()=>$r,registry:()=>rp,safeDecode:()=>iZ,safeDecodeAsync:()=>oZ,safeEncode:()=>nZ,safeEncodeAsync:()=>aZ,safeParse:()=>Sy,safeParseAsync:()=>Iy,toDotPath:()=>EA,toJSONSchema:()=>$o,treeifyError:()=>ky,util:()=>U,version:()=>vv});var dy=Object.freeze({status:"aborted"});function C(e,t,r){function i(s,u){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:u,constr:o,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,u);let c=o.prototype,d=Object.keys(c);for(let p=0;p<d.length;p++){let f=d[p];f in s||(s[f]=c[f].bind(s))}}let n=r?.Parent??Object;class a extends n{}Object.defineProperty(a,"name",{value:e});function o(s){var u;let c=r?.Parent?new a:this;i(c,s),(u=c._zod).deferred??(u.deferred=[]);for(let d of c._zod.deferred)d();return c}return Object.defineProperty(o,"init",{value:i}),Object.defineProperty(o,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var Ed=Symbol("zod_brand"),Lr=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},fi=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},kl={};function Qe(e){return e&&Object.assign(kl,e),kl}var U={};Or(U,{BIGINT_FORMAT_RANGES:()=>wy,Class:()=>fy,NUMBER_FORMAT_RANGES:()=>_y,aborted:()=>yi,allowsEval:()=>gy,assert:()=>OV,assertEqual:()=>TV,assertIs:()=>CV,assertNever:()=>AV,assertNotEqual:()=>$V,assignProp:()=>hi,base64ToUint8Array:()=>xA,base64urlToUint8Array:()=>JV,cached:()=>ao,captureStackTrace:()=>$d,cleanEnum:()=>GV,cleanRegex:()=>Il,clone:()=>Ft,cloneDef:()=>DV,createTransparentProxy:()=>LV,defineLazy:()=>Ee,esc:()=>Td,escapeRegex:()=>Tr,extend:()=>qV,finalizeIssue:()=>er,floatSafeRemainder:()=>my,getElementAtPath:()=>jV,getEnumValues:()=>Sl,getLengthableOrigin:()=>$l,getParsedType:()=>MV,getSizableOrigin:()=>Tl,hexToUint8Array:()=>KV,isObject:()=>ia,isPlainObject:()=>gi,issue:()=>oo,joinValues:()=>D,jsonStringifyReplacer:()=>io,merge:()=>VV,mergeDefs:()=>In,normalizeParams:()=>V,nullish:()=>mi,numKeys:()=>RV,objectClone:()=>NV,omit:()=>UV,optionalKeys:()=>by,parsedType:()=>F,partial:()=>ZV,pick:()=>FV,prefixIssues:()=>pr,primitiveTypes:()=>vy,promiseAllObject:()=>PV,propertyKeyTypes:()=>El,randomString:()=>zV,required:()=>WV,safeExtend:()=>BV,shallowClone:()=>yy,slugify:()=>hy,stringifyPrimitive:()=>M,uint8ArrayToBase64:()=>SA,uint8ArrayToBase64url:()=>HV,uint8ArrayToHex:()=>YV,unwrapMessage:()=>xl});function TV(e){return e}function $V(e){return e}function CV(e){}function AV(e){throw new Error("Unexpected value in exhaustive check")}function OV(e){}function Sl(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function D(e,t="|"){return e.map(r=>M(r)).join(t)}function io(e,t){return typeof t=="bigint"?t.toString():t}function ao(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function mi(e){return e==null}function Il(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function my(e,t){let r=(e.toString().split(".")[1]||"").length,i=t.toString(),n=(i.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(i)){let u=i.match(/\d?e-(\d?)/);u?.[1]&&(n=Number.parseInt(u[1]))}let a=r>n?r:n,o=Number.parseInt(e.toFixed(a).replace(".","")),s=Number.parseInt(t.toFixed(a).replace(".",""));return o%s/10**a}var kA=Symbol("evaluating");function Ee(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==kA)return i===void 0&&(i=kA,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function NV(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function hi(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function In(...e){let t={};for(let r of e){let i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function DV(e){return In(e._zod.def)}function jV(e,t){return t?t.reduce((r,i)=>r?.[i],e):e}function PV(e){let t=Object.keys(e),r=t.map(i=>e[i]);return Promise.all(r).then(i=>{let n={};for(let a=0;a<t.length;a++)n[t[a]]=i[a];return n})}function zV(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function Td(e){return JSON.stringify(e)}function hy(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var $d="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ia(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var gy=ao(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function gi(e){if(ia(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(ia(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function yy(e){return gi(e)?{...e}:Array.isArray(e)?[...e]:e}function RV(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var MV=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},El=new Set(["string","number","symbol"]),vy=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Tr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ft(e,t,r){let i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function V(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function LV(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,a){return t??(t=e()),Reflect.set(t,i,n,a)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function M(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function by(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var _y={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]},wy={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function FV(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let a=In(e._zod.def,{get shape(){let o={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(o[s]=r.shape[s])}return hi(this,"shape",o),o},checks:[]});return Ft(e,a)}function UV(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let a=In(e._zod.def,{get shape(){let o={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete o[s]}return hi(this,"shape",o),o},checks:[]});return Ft(e,a)}function qV(e,t){if(!gi(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let a=e._zod.def.shape;for(let o in t)if(Object.getOwnPropertyDescriptor(a,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=In(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t};return hi(this,"shape",a),a}});return Ft(e,n)}function BV(e,t){if(!gi(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=In(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return hi(this,"shape",i),i}});return Ft(e,r)}function VV(e,t){let r=In(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return hi(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return Ft(e,r)}function ZV(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let o=In(t._zod.def,{get shape(){let s=t._zod.def.shape,u={...s};if(r)for(let c in r){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(u[c]=e?new e({type:"optional",innerType:s[c]}):s[c])}else for(let c in s)u[c]=e?new e({type:"optional",innerType:s[c]}):s[c];return hi(this,"shape",u),u},checks:[]});return Ft(t,o)}function WV(e,t,r){let i=In(t._zod.def,{get shape(){let n=t._zod.def.shape,a={...n};if(r)for(let o in r){if(!(o in a))throw new Error(`Unrecognized key: "${o}"`);r[o]&&(a[o]=new e({type:"nonoptional",innerType:n[o]}))}else for(let o in n)a[o]=new e({type:"nonoptional",innerType:n[o]});return hi(this,"shape",a),a}});return Ft(t,i)}function yi(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function pr(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function xl(e){return typeof e=="string"?e:e?.message}function er(e,t,r){let i={...e,path:e.path??[]};if(!e.message){let n=xl(e.inst?._zod.def?.error?.(e))??xl(t?.error?.(e))??xl(r.customError?.(e))??xl(r.localeError?.(e))??"Invalid input";i.message=n}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function Tl(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function $l(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function F(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function oo(...e){let[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function GV(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function xA(e){let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function SA(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function JV(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return xA(t+r)}function HV(e){return SA(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function KV(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)r[i/2]=Number.parseInt(t.slice(i,i+2),16);return r}function YV(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var fy=class{constructor(...t){}};var IA=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,io,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Cl=C("$ZodError",IA),tr=C("$ZodError",IA,{Parent:Error});function Al(e,t=r=>r.message){let r={},i=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function Ol(e,t=r=>r.message){let r={_errors:[]},i=n=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(o=>i({issues:o}));else if(a.code==="invalid_key")i({issues:a.issues});else if(a.code==="invalid_element")i({issues:a.issues});else if(a.path.length===0)r._errors.push(t(a));else{let o=r,s=0;for(;s<a.path.length;){let u=a.path[s];s===a.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(t(a))):o[u]=o[u]||{_errors:[]},o=o[u],s++}}};return i(e),r}function ky(e,t=r=>r.message){let r={errors:[]},i=(n,a=[])=>{var o,s;for(let u of n.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(c=>i({issues:c},u.path));else if(u.code==="invalid_key")i({issues:u.issues},u.path);else if(u.code==="invalid_element")i({issues:u.issues},u.path);else{let c=[...a,...u.path];if(c.length===0){r.errors.push(t(u));continue}let d=r,p=0;for(;p<c.length;){let f=c[p],m=p===c.length-1;typeof f=="string"?(d.properties??(d.properties={}),(o=d.properties)[f]??(o[f]={errors:[]}),d=d.properties[f]):(d.items??(d.items=[]),(s=d.items)[f]??(s[f]={errors:[]}),d=d.items[f]),m&&d.errors.push(t(u)),p++}}};return i(e),r}function EA(e){let t=[],r=e.map(i=>typeof i=="object"?i.key:i);for(let i of r)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function xy(e){let t=[],r=[...e.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(let i of r)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${EA(i.path)}`);return t.join(`
|
|
271
|
+
`)}var so=e=>(t,r,i,n)=>{let a=i?Object.assign(i,{async:!1}):{async:!1},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise)throw new Lr;if(o.issues.length){let s=new(n?.Err??e)(o.issues.map(u=>er(u,a,Qe())));throw $d(s,n?.callee),s}return o.value},Cd=so(tr),lo=e=>async(t,r,i,n)=>{let a=i?Object.assign(i,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let s=new(n?.Err??e)(o.issues.map(u=>er(u,a,Qe())));throw $d(s,n?.callee),s}return o.value},Ad=lo(tr),uo=e=>(t,r,i)=>{let n=i?{...i,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},n);if(a instanceof Promise)throw new Lr;return a.issues.length?{success:!1,error:new(e??Cl)(a.issues.map(o=>er(o,n,Qe())))}:{success:!0,data:a.value}},Sy=uo(tr),co=e=>async(t,r,i)=>{let n=i?Object.assign(i,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},n);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(o=>er(o,n,Qe())))}:{success:!0,data:a.value}},Iy=co(tr),Od=e=>(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return so(e)(t,r,n)},QV=Od(tr),Nd=e=>(t,r,i)=>so(e)(t,r,i),eZ=Nd(tr),Dd=e=>async(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return lo(e)(t,r,n)},tZ=Dd(tr),jd=e=>async(t,r,i)=>lo(e)(t,r,i),rZ=jd(tr),Pd=e=>(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return uo(e)(t,r,n)},nZ=Pd(tr),zd=e=>(t,r,i)=>uo(e)(t,r,i),iZ=zd(tr),Rd=e=>async(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return co(e)(t,r,n)},aZ=Rd(tr),Md=e=>async(t,r,i)=>co(e)(t,r,i),oZ=Md(tr);var $r={};Or($r,{base64:()=>Uy,base64url:()=>Ld,bigint:()=>Gy,boolean:()=>Hy,browserEmail:()=>mZ,cidrv4:()=>Ly,cidrv6:()=>Fy,cuid:()=>Ey,cuid2:()=>Ty,date:()=>By,datetime:()=>Zy,domain:()=>yZ,duration:()=>Ny,e164:()=>qy,email:()=>jy,emoji:()=>Py,extendedDuration:()=>sZ,guid:()=>Dy,hex:()=>vZ,hostname:()=>gZ,html5Email:()=>dZ,idnEmail:()=>fZ,integer:()=>Jy,ipv4:()=>zy,ipv6:()=>Ry,ksuid:()=>Ay,lowercase:()=>Xy,mac:()=>My,md5_base64:()=>_Z,md5_base64url:()=>wZ,md5_hex:()=>bZ,nanoid:()=>Oy,null:()=>Ky,number:()=>Fd,rfc5322Email:()=>pZ,sha1_base64:()=>xZ,sha1_base64url:()=>SZ,sha1_hex:()=>kZ,sha256_base64:()=>EZ,sha256_base64url:()=>TZ,sha256_hex:()=>IZ,sha384_base64:()=>CZ,sha384_base64url:()=>AZ,sha384_hex:()=>$Z,sha512_base64:()=>NZ,sha512_base64url:()=>DZ,sha512_hex:()=>OZ,string:()=>Wy,time:()=>Vy,ulid:()=>$y,undefined:()=>Yy,unicodeEmail:()=>TA,uppercase:()=>Qy,uuid:()=>aa,uuid4:()=>lZ,uuid6:()=>uZ,uuid7:()=>cZ,xid:()=>Cy});var Ey=/^[cC][^\s-]{8,}$/,Ty=/^[0-9a-z]+$/,$y=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Cy=/^[0-9a-vA-V]{20}$/,Ay=/^[A-Za-z0-9]{27}$/,Oy=/^[a-zA-Z0-9_-]{21}$/,Ny=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,sZ=/^[-+]?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)?)??$/,Dy=/^([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})$/,aa=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,lZ=aa(4),uZ=aa(6),cZ=aa(7),jy=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,dZ=/^[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])?)*$/,pZ=/^(([^<>()\[\]\\.,;:\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,}))$/,TA=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,fZ=TA,mZ=/^[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])?)*$/,hZ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Py(){return new RegExp(hZ,"u")}var zy=/^(?:(?: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])$/,Ry=/^(([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}|:))$/,My=e=>{let t=Tr(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Ly=/^((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])$/,Fy=/^(([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])$/,Uy=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ld=/^[A-Za-z0-9_-]*$/,gZ=/^(?=.{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])?)*\.?$/,yZ=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,qy=/^\+[1-9]\d{6,14}$/,$A="(?:(?:\\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])))",By=new RegExp(`^${$A}$`);function CA(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Vy(e){return new RegExp(`^${CA(e)}$`)}function Zy(e){let t=CA({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${r.join("|")})`;return new RegExp(`^${$A}T(?:${i})$`)}var Wy=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Gy=/^-?\d+n?$/,Jy=/^-?\d+$/,Fd=/^-?\d+(?:\.\d+)?$/,Hy=/^(?:true|false)$/i,Ky=/^null$/i;var Yy=/^undefined$/i;var Xy=/^[^A-Z]*$/,Qy=/^[^a-z]*$/,vZ=/^[0-9a-fA-F]*$/;function Nl(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Dl(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var bZ=/^[0-9a-fA-F]{32}$/,_Z=Nl(22,"=="),wZ=Dl(22),kZ=/^[0-9a-fA-F]{40}$/,xZ=Nl(27,"="),SZ=Dl(27),IZ=/^[0-9a-fA-F]{64}$/,EZ=Nl(43,"="),TZ=Dl(43),$Z=/^[0-9a-fA-F]{96}$/,CZ=Nl(64,""),AZ=Dl(64),OZ=/^[0-9a-fA-F]{128}$/,NZ=Nl(86,"=="),DZ=Dl(86);var Ge=C("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),OA={number:"number",bigint:"bigint",object:"date"},Ud=C("$ZodCheckLessThan",(e,t)=>{Ge.init(e,t);let r=OA[typeof t.value];e._zod.onattach.push(i=>{let n=i._zod.bag,a=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),qd=C("$ZodCheckGreaterThan",(e,t)=>{Ge.init(e,t);let r=OA[typeof t.value];e._zod.onattach.push(i=>{let n=i._zod.bag,a=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ev=C("$ZodCheckMultipleOf",(e,t)=>{Ge.init(e,t),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):my(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),tv=C("$ZodCheckNumberFormat",(e,t)=>{Ge.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),i=r?"int":"number",[n,a]=_y[t.format];e._zod.onattach.push(o=>{let s=o._zod.bag;s.format=t.format,s.minimum=n,s.maximum=a,r&&(s.pattern=Jy)}),e._zod.check=o=>{let s=o.value;if(r){if(!Number.isInteger(s)){o.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}s<n&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),rv=C("$ZodCheckBigIntFormat",(e,t)=>{Ge.init(e,t);let[r,i]=wy[t.format];e._zod.onattach.push(n=>{let a=n._zod.bag;a.format=t.format,a.minimum=r,a.maximum=i}),e._zod.check=n=>{let a=n.value;a<r&&n.issues.push({origin:"bigint",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>i&&n.issues.push({origin:"bigint",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),nv=C("$ZodCheckMaxSize",(e,t)=>{var r;Ge.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!mi(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let n=i.value;n.size<=t.maximum||i.issues.push({origin:Tl(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),iv=C("$ZodCheckMinSize",(e,t)=>{var r;Ge.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!mi(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let n=i.value;n.size>=t.minimum||i.issues.push({origin:Tl(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),av=C("$ZodCheckSizeEquals",(e,t)=>{var r;Ge.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!mi(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=i=>{let n=i.value,a=n.size;if(a===t.size)return;let o=a>t.size;i.issues.push({origin:Tl(n),...o?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),ov=C("$ZodCheckMaxLength",(e,t)=>{var r;Ge.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!mi(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let n=i.value;if(n.length<=t.maximum)return;let o=$l(n);i.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),sv=C("$ZodCheckMinLength",(e,t)=>{var r;Ge.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!mi(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let n=i.value;if(n.length>=t.minimum)return;let o=$l(n);i.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),lv=C("$ZodCheckLengthEquals",(e,t)=>{var r;Ge.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!mi(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=i=>{let n=i.value,a=n.length;if(a===t.length)return;let o=$l(n),s=a>t.length;i.issues.push({origin:o,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),po=C("$ZodCheckStringFormat",(e,t)=>{var r,i;Ge.init(e,t),e._zod.onattach.push(n=>{let a=n._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),uv=C("$ZodCheckRegex",(e,t)=>{po.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),cv=C("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Xy),po.init(e,t)}),dv=C("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Qy),po.init(e,t)}),pv=C("$ZodCheckIncludes",(e,t)=>{Ge.init(e,t);let r=Tr(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),fv=C("$ZodCheckStartsWith",(e,t)=>{Ge.init(e,t);let r=new RegExp(`^${Tr(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),mv=C("$ZodCheckEndsWith",(e,t)=>{Ge.init(e,t);let r=new RegExp(`.*${Tr(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function AA(e,t,r){e.issues.length&&t.issues.push(...pr(r,e.issues))}var hv=C("$ZodCheckProperty",(e,t)=>{Ge.init(e,t),e._zod.check=r=>{let i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>AA(n,r,t.property));AA(i,r,t.property)}}),gv=C("$ZodCheckMimeType",(e,t)=>{Ge.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),yv=C("$ZodCheckOverwrite",(e,t)=>{Ge.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var jl=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`
|
|
272
|
+
`).filter(o=>o),n=Math.min(...i.map(o=>o.length-o.trimStart().length)),a=i.map(o=>o.slice(n)).map(o=>" ".repeat(this.indent*2)+o);for(let o of a)this.content.push(o)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(a=>` ${a}`)];return new t(...r,n.join(`
|
|
273
|
+
`))}};var vv={major:4,minor:3,patch:6};var _e=C("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=vv;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let n of i)for(let a of n._zod.onattach)a(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(o,s,u)=>{let c=yi(o),d;for(let p of s){if(p._zod.def.when){if(!p._zod.def.when(o))continue}else if(c)continue;let f=o.issues.length,m=p._zod.check(o);if(m instanceof Promise&&u?.async===!1)throw new Lr;if(d||m instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await m,o.issues.length!==f&&(c||(c=yi(o,f)))});else{if(o.issues.length===f)continue;c||(c=yi(o,f))}}return d?d.then(()=>o):o},a=(o,s,u)=>{if(yi(o))return o.aborted=!0,o;let c=n(s,i,u);if(c instanceof Promise){if(u.async===!1)throw new Lr;return c.then(d=>e._zod.parse(d,u))}return e._zod.parse(c,u)};e._zod.run=(o,s)=>{if(s.skipChecks)return e._zod.parse(o,s);if(s.direction==="backward"){let c=e._zod.parse({value:o.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(d=>a(d,o,s)):a(c,o,s)}let u=e._zod.parse(o,s);if(u instanceof Promise){if(s.async===!1)throw new Lr;return u.then(c=>n(c,i,s))}return n(u,i,s)}}Ee(e,"~standard",()=>({validate:n=>{try{let a=Sy(e,n);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return Iy(e,n).then(o=>o.success?{value:o.data}:{issues:o.error?.issues})}},vendor:"zod",version:1}))}),oa=C("$ZodString",(e,t)=>{_e.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Wy(e._zod.bag),e._zod.parse=(r,i)=>{if(t.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:e}),r}}),Ze=C("$ZodStringFormat",(e,t)=>{po.init(e,t),oa.init(e,t)}),_v=C("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Dy),Ze.init(e,t)}),wv=C("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=aa(i))}else t.pattern??(t.pattern=aa());Ze.init(e,t)}),kv=C("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=jy),Ze.init(e,t)}),xv=C("$ZodURL",(e,t)=>{Ze.init(e,t),e._zod.check=r=>{try{let i=r.value.trim(),n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Sv=C("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Py()),Ze.init(e,t)}),Iv=C("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Oy),Ze.init(e,t)}),Ev=C("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ey),Ze.init(e,t)}),Tv=C("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Ty),Ze.init(e,t)}),$v=C("$ZodULID",(e,t)=>{t.pattern??(t.pattern=$y),Ze.init(e,t)}),Cv=C("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Cy),Ze.init(e,t)}),Av=C("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Ay),Ze.init(e,t)}),Ov=C("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Zy(t)),Ze.init(e,t)}),Nv=C("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=By),Ze.init(e,t)}),Dv=C("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Vy(t)),Ze.init(e,t)}),jv=C("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Ny),Ze.init(e,t)}),Pv=C("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=zy),Ze.init(e,t),e._zod.bag.format="ipv4"}),zv=C("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ry),Ze.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Rv=C("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=My(t.delimiter)),Ze.init(e,t),e._zod.bag.format="mac"}),Mv=C("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ly),Ze.init(e,t)}),Lv=C("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Fy),Ze.init(e,t),e._zod.check=r=>{let i=r.value.split("/");try{if(i.length!==2)throw new Error;let[n,a]=i;if(!a)throw new Error;let o=Number(a);if(`${o}`!==a)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Fv(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Uv=C("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Uy),Ze.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Fv(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function VA(e){if(!Ld.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Fv(r)}var qv=C("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ld),Ze.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{VA(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Bv=C("$ZodE164",(e,t)=>{t.pattern??(t.pattern=qy),Ze.init(e,t)});function ZA(e,t=null){try{let r=e.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||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Vv=C("$ZodJWT",(e,t)=>{Ze.init(e,t),e._zod.check=r=>{ZA(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Zv=C("$ZodCustomStringFormat",(e,t)=>{Ze.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),Jd=C("$ZodNumber",(e,t)=>{_e.init(e,t),e._zod.pattern=e._zod.bag.pattern??Fd,e._zod.parse=(r,i)=>{if(t.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 a=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:e,...a?{received:a}:{}}),r}}),Wv=C("$ZodNumberFormat",(e,t)=>{tv.init(e,t),Jd.init(e,t)}),Pl=C("$ZodBoolean",(e,t)=>{_e.init(e,t),e._zod.pattern=Hy,e._zod.parse=(r,i)=>{if(t.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:e}),r}}),Hd=C("$ZodBigInt",(e,t)=>{_e.init(e,t),e._zod.pattern=Gy,e._zod.parse=(r,i)=>{if(t.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:e}),r}}),Gv=C("$ZodBigIntFormat",(e,t)=>{rv.init(e,t),Hd.init(e,t)}),Jv=C("$ZodSymbol",(e,t)=>{_e.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Hv=C("$ZodUndefined",(e,t)=>{_e.init(e,t),e._zod.pattern=Yy,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Kv=C("$ZodNull",(e,t)=>{_e.init(e,t),e._zod.pattern=Ky,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Yv=C("$ZodAny",(e,t)=>{_e.init(e,t),e._zod.parse=r=>r}),Xv=C("$ZodUnknown",(e,t)=>{_e.init(e,t),e._zod.parse=r=>r}),Qv=C("$ZodNever",(e,t)=>{_e.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),eb=C("$ZodVoid",(e,t)=>{_e.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),tb=C("$ZodDate",(e,t)=>{_e.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,a=n instanceof Date;return a&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...a?{received:"Invalid Date"}:{},inst:e}),r}});function DA(e,t,r){e.issues.length&&t.issues.push(...pr(r,e.issues)),t.value[r]=e.value}var rb=C("$ZodArray",(e,t)=>{_e.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let a=[];for(let o=0;o<n.length;o++){let s=n[o],u=t.element._zod.run({value:s,issues:[]},i);u instanceof Promise?a.push(u.then(c=>DA(c,r,o))):DA(u,r,o)}return a.length?Promise.all(a).then(()=>r):r}});function Gd(e,t,r,i,n){if(e.issues.length){if(n&&!(r in i))return;t.issues.push(...pr(r,e.issues))}e.value===void 0?r in i&&(t.value[r]=void 0):t.value[r]=e.value}function WA(e){let t=Object.keys(e.shape);for(let i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let r=by(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function GA(e,t,r,i,n,a){let o=[],s=n.keySet,u=n.catchall._zod,c=u.def.type,d=u.optout==="optional";for(let p in t){if(s.has(p))continue;if(c==="never"){o.push(p);continue}let f=u.run({value:t[p],issues:[]},i);f instanceof Promise?e.push(f.then(m=>Gd(m,r,p,t,d))):Gd(f,r,p,t,d)}return o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}var JA=C("$ZodObject",(e,t)=>{if(_e.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let u={...s};return Object.defineProperty(t,"shape",{value:u}),u}})}let i=ao(()=>WA(t));Ee(e._zod,"propValues",()=>{let s=t.shape,u={};for(let c in s){let d=s[c]._zod;if(d.values){u[c]??(u[c]=new Set);for(let p of d.values)u[c].add(p)}}return u});let n=ia,a=t.catchall,o;e._zod.parse=(s,u)=>{o??(o=i.value);let c=s.value;if(!n(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),s;s.value={};let d=[],p=o.shape;for(let f of o.keys){let m=p[f],g=m._zod.optout==="optional",h=m._zod.run({value:c[f],issues:[]},u);h instanceof Promise?d.push(h.then(y=>Gd(y,s,f,c,g))):Gd(h,s,f,c,g)}return a?GA(d,c,s,u,i.value,e):d.length?Promise.all(d).then(()=>s):s}}),nb=C("$ZodObjectJIT",(e,t)=>{JA.init(e,t);let r=e._zod.parse,i=ao(()=>WA(t)),n=f=>{let m=new jl(["shape","payload","ctx"]),g=i.value,h=b=>{let x=Td(b);return`shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`};m.write("const input = payload.value;");let y=Object.create(null),v=0;for(let b of g.keys)y[b]=`key_${v++}`;m.write("const newResult = {};");for(let b of g.keys){let x=y[b],E=Td(b),A=f[b]?._zod?.optout==="optional";m.write(`const ${x} = ${h(b)};`),A?m.write(`
|
|
274
|
+
if (${x}.issues.length) {
|
|
275
|
+
if (${E} in input) {
|
|
276
|
+
payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
|
|
277
|
+
...iss,
|
|
278
|
+
path: iss.path ? [${E}, ...iss.path] : [${E}]
|
|
279
|
+
})));
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
if (${x}.value === undefined) {
|
|
284
|
+
if (${E} in input) {
|
|
285
|
+
newResult[${E}] = undefined;
|
|
286
|
+
}
|
|
287
|
+
} else {
|
|
288
|
+
newResult[${E}] = ${x}.value;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
`):m.write(`
|
|
292
|
+
if (${x}.issues.length) {
|
|
293
|
+
payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
|
|
294
|
+
...iss,
|
|
295
|
+
path: iss.path ? [${E}, ...iss.path] : [${E}]
|
|
296
|
+
})));
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
if (${x}.value === undefined) {
|
|
300
|
+
if (${E} in input) {
|
|
301
|
+
newResult[${E}] = undefined;
|
|
302
|
+
}
|
|
303
|
+
} else {
|
|
304
|
+
newResult[${E}] = ${x}.value;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
`)}m.write("payload.value = newResult;"),m.write("return payload;");let _=m.compile();return(b,x)=>_(f,b,x)},a,o=ia,s=!kl.jitless,c=s&&gy.value,d=t.catchall,p;e._zod.parse=(f,m)=>{p??(p=i.value);let g=f.value;return o(g)?s&&c&&m?.async===!1&&m.jitless!==!0?(a||(a=n(t.shape)),f=a(f,m),d?GA([],g,f,m,p,e):f):r(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f)}});function jA(e,t,r,i){for(let a of e)if(a.issues.length===0)return t.value=a.value,t;let n=e.filter(a=>!yi(a));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(o=>er(o,i,Qe())))}),t)}var zl=C("$ZodUnion",(e,t)=>{_e.init(e,t),Ee(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Ee(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Ee(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),Ee(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${n.map(a=>Il(a.source)).join("|")})$`)}});let r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(n,a)=>{if(r)return i(n,a);let o=!1,s=[];for(let u of t.options){let c=u._zod.run({value:n.value,issues:[]},a);if(c instanceof Promise)s.push(c),o=!0;else{if(c.issues.length===0)return c;s.push(c)}}return o?Promise.all(s).then(u=>jA(u,n,e,a)):jA(s,n,e,a)}});function PA(e,t,r,i){let n=e.filter(a=>a.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(o=>er(o,i,Qe())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var ib=C("$ZodXor",(e,t)=>{zl.init(e,t),t.inclusive=!1;let r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(n,a)=>{if(r)return i(n,a);let o=!1,s=[];for(let u of t.options){let c=u._zod.run({value:n.value,issues:[]},a);c instanceof Promise?(s.push(c),o=!0):s.push(c)}return o?Promise.all(s).then(u=>PA(u,n,e,a)):PA(s,n,e,a)}}),ab=C("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,zl.init(e,t);let r=e._zod.parse;Ee(e._zod,"propValues",()=>{let n={};for(let a of t.options){let o=a._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let[s,u]of Object.entries(o)){n[s]||(n[s]=new Set);for(let c of u)n[s].add(c)}}return n});let i=ao(()=>{let n=t.options,a=new Map;for(let o of n){let s=o._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let u of s){if(a.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);a.set(u,o)}}return a});e._zod.parse=(n,a)=>{let o=n.value;if(!ia(o))return n.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),n;let s=i.value.get(o?.[t.discriminator]);return s?s._zod.run(n,a):t.unionFallback?r(n,a):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),n)}}),ob=C("$ZodIntersection",(e,t)=>{_e.init(e,t),e._zod.parse=(r,i)=>{let n=r.value,a=t.left._zod.run({value:n,issues:[]},i),o=t.right._zod.run({value:n,issues:[]},i);return a instanceof Promise||o instanceof Promise?Promise.all([a,o]).then(([u,c])=>zA(r,u,c)):zA(r,a,o)}});function bv(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(gi(e)&&gi(t)){let r=Object.keys(t),i=Object.keys(e).filter(a=>r.indexOf(a)!==-1),n={...e,...t};for(let a of i){let o=bv(e[a],t[a]);if(!o.valid)return{valid:!1,mergeErrorPath:[a,...o.mergeErrorPath]};n[a]=o.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<e.length;i++){let n=e[i],a=t[i],o=bv(n,a);if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};r.push(o.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function zA(e,t,r){let i=new Map,n;for(let s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let u of s.keys)i.has(u)||i.set(u,{}),i.get(u).l=!0}else e.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let u of s.keys)i.has(u)||i.set(u,{}),i.get(u).r=!0;else e.issues.push(s);let a=[...i].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(a.length&&n&&e.issues.push({...n,keys:a}),yi(e))return e;let o=bv(t.value,r.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var Kd=C("$ZodTuple",(e,t)=>{_e.init(e,t);let r=t.items;e._zod.parse=(i,n)=>{let a=i.value;if(!Array.isArray(a))return i.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let o=[],s=[...r].reverse().findIndex(d=>d._zod.optin!=="optional"),u=s===-1?0:r.length-s;if(!t.rest){let d=a.length>r.length,p=a.length<u-1;if(d||p)return i.issues.push({...d?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:a,inst:e,origin:"array"}),i}let c=-1;for(let d of r){if(c++,c>=a.length&&c>=u)continue;let p=d._zod.run({value:a[c],issues:[]},n);p instanceof Promise?o.push(p.then(f=>Bd(f,i,c))):Bd(p,i,c)}if(t.rest){let d=a.slice(r.length);for(let p of d){c++;let f=t.rest._zod.run({value:p,issues:[]},n);f instanceof Promise?o.push(f.then(m=>Bd(m,i,c))):Bd(f,i,c)}}return o.length?Promise.all(o).then(()=>i):i}});function Bd(e,t,r){e.issues.length&&t.issues.push(...pr(r,e.issues)),t.value[r]=e.value}var sb=C("$ZodRecord",(e,t)=>{_e.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!gi(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let a=[],o=t.keyType._zod.values;if(o){r.value={};let s=new Set;for(let c of o)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){s.add(typeof c=="number"?c.toString():c);let d=t.valueType._zod.run({value:n[c],issues:[]},i);d instanceof Promise?a.push(d.then(p=>{p.issues.length&&r.issues.push(...pr(c,p.issues)),r.value[c]=p.value})):(d.issues.length&&r.issues.push(...pr(c,d.issues)),r.value[c]=d.value)}let u;for(let c in n)s.has(c)||(u=u??[],u.push(c));u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:u})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__")continue;let u=t.keyType._zod.run({value:s,issues:[]},i);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Fd.test(s)&&u.issues.length){let p=t.keyType._zod.run({value:Number(s),issues:[]},i);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){t.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(p=>er(p,i,Qe())),input:s,path:[s],inst:e});continue}let d=t.valueType._zod.run({value:n[s],issues:[]},i);d instanceof Promise?a.push(d.then(p=>{p.issues.length&&r.issues.push(...pr(s,p.issues)),r.value[u.value]=p.value})):(d.issues.length&&r.issues.push(...pr(s,d.issues)),r.value[u.value]=d.value)}}return a.length?Promise.all(a).then(()=>r):r}}),lb=C("$ZodMap",(e,t)=>{_e.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let a=[];r.value=new Map;for(let[o,s]of n){let u=t.keyType._zod.run({value:o,issues:[]},i),c=t.valueType._zod.run({value:s,issues:[]},i);u instanceof Promise||c instanceof Promise?a.push(Promise.all([u,c]).then(([d,p])=>{RA(d,p,r,o,n,e,i)})):RA(u,c,r,o,n,e,i)}return a.length?Promise.all(a).then(()=>r):r}});function RA(e,t,r,i,n,a,o){e.issues.length&&(El.has(typeof i)?r.issues.push(...pr(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:a,issues:e.issues.map(s=>er(s,o,Qe()))})),t.issues.length&&(El.has(typeof i)?r.issues.push(...pr(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:a,key:i,issues:t.issues.map(s=>er(s,o,Qe()))})),r.value.set(e.value,t.value)}var ub=C("$ZodSet",(e,t)=>{_e.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let a=[];r.value=new Set;for(let o of n){let s=t.valueType._zod.run({value:o,issues:[]},i);s instanceof Promise?a.push(s.then(u=>MA(u,r))):MA(s,r)}return a.length?Promise.all(a).then(()=>r):r}});function MA(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var cb=C("$ZodEnum",(e,t)=>{_e.init(e,t);let r=Sl(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(n=>El.has(typeof n)).map(n=>typeof n=="string"?Tr(n):n.toString()).join("|")})$`),e._zod.parse=(n,a)=>{let o=n.value;return i.has(o)||n.issues.push({code:"invalid_value",values:r,input:o,inst:e}),n}}),db=C("$ZodLiteral",(e,t)=>{if(_e.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?Tr(i):i?Tr(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,n)=>{let a=i.value;return r.has(a)||i.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),i}}),pb=C("$ZodFile",(e,t)=>{_e.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),fb=C("$ZodTransform",(e,t)=>{_e.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new fi(e.constructor.name);let n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(o=>(r.value=o,r));if(n instanceof Promise)throw new Lr;return r.value=n,r}});function LA(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Yd=C("$ZodOptional",(e,t)=>{_e.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ee(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ee(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Il(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>LA(a,r.value)):LA(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),mb=C("$ZodExactOptional",(e,t)=>{Yd.init(e,t),Ee(e._zod,"values",()=>t.innerType._zod.values),Ee(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i)}),hb=C("$ZodNullable",(e,t)=>{_e.init(e,t),Ee(e._zod,"optin",()=>t.innerType._zod.optin),Ee(e._zod,"optout",()=>t.innerType._zod.optout),Ee(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Il(r.source)}|null)$`):void 0}),Ee(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),gb=C("$ZodDefault",(e,t)=>{_e.init(e,t),e._zod.optin="optional",Ee(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>FA(a,t)):FA(n,t)}});function FA(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var yb=C("$ZodPrefault",(e,t)=>{_e.init(e,t),e._zod.optin="optional",Ee(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),vb=C("$ZodNonOptional",(e,t)=>{_e.init(e,t),Ee(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>UA(a,e)):UA(n,e)}});function UA(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var bb=C("$ZodSuccess",(e,t)=>{_e.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new fi("ZodSuccess");let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>(r.value=a.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),_b=C("$ZodCatch",(e,t)=>{_e.init(e,t),Ee(e._zod,"optin",()=>t.innerType._zod.optin),Ee(e._zod,"optout",()=>t.innerType._zod.optout),Ee(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(o=>er(o,i,Qe()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(a=>er(a,i,Qe()))},input:r.value}),r.issues=[]),r)}}),wb=C("$ZodNaN",(e,t)=>{_e.init(e,t),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),kb=C("$ZodPipe",(e,t)=>{_e.init(e,t),Ee(e._zod,"values",()=>t.in._zod.values),Ee(e._zod,"optin",()=>t.in._zod.optin),Ee(e._zod,"optout",()=>t.out._zod.optout),Ee(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){let a=t.out._zod.run(r,i);return a instanceof Promise?a.then(o=>Vd(o,t.in,i)):Vd(a,t.in,i)}let n=t.in._zod.run(r,i);return n instanceof Promise?n.then(a=>Vd(a,t.out,i)):Vd(n,t.out,i)}});function Vd(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var Rl=C("$ZodCodec",(e,t)=>{_e.init(e,t),Ee(e._zod,"values",()=>t.in._zod.values),Ee(e._zod,"optin",()=>t.in._zod.optin),Ee(e._zod,"optout",()=>t.out._zod.optout),Ee(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){let a=t.in._zod.run(r,i);return a instanceof Promise?a.then(o=>Zd(o,t,i)):Zd(a,t,i)}else{let a=t.out._zod.run(r,i);return a instanceof Promise?a.then(o=>Zd(o,t,i)):Zd(a,t,i)}}});function Zd(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(a=>Wd(e,a,t.out,r)):Wd(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(a=>Wd(e,a,t.in,r)):Wd(e,n,t.in,r)}}function Wd(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}var xb=C("$ZodReadonly",(e,t)=>{_e.init(e,t),Ee(e._zod,"propValues",()=>t.innerType._zod.propValues),Ee(e._zod,"values",()=>t.innerType._zod.values),Ee(e._zod,"optin",()=>t.innerType?._zod?.optin),Ee(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(qA):qA(n)}});function qA(e){return e.value=Object.freeze(e.value),e}var Sb=C("$ZodTemplateLiteral",(e,t)=>{_e.init(e,t);let r=[];for(let i of t.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 a=n.startsWith("^")?1:0,o=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(a,o))}else if(i===null||vy.has(typeof i))r.push(Tr(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),Ib=C("$ZodFunction",(e,t)=>(_e.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){let n=e._def.input?Cd(e._def.input,i):i,a=Reflect.apply(r,this,n);return e._def.output?Cd(e._def.output,a):a}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let n=e._def.input?await Ad(e._def.input,i):i,a=await Reflect.apply(r,this,n);return e._def.output?await Ad(e._def.output,a):a}},e._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let i=e.constructor;return Array.isArray(r[0])?new i({type:"function",input:new Kd({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:r})},e)),Eb=C("$ZodPromise",(e,t)=>{_e.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),Tb=C("$ZodLazy",(e,t)=>{_e.init(e,t),Ee(e._zod,"innerType",()=>t.getter()),Ee(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Ee(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Ee(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Ee(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),$b=C("$ZodCustom",(e,t)=>{Ge.init(e,t),_e.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{let i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(a=>BA(a,r,i,e));BA(n,r,i,e)}});function BA(e,t,r,i){if(!e){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),t.issues.push(oo(n))}}var Ll={};Or(Ll,{ar:()=>HA,az:()=>KA,be:()=>XA,bg:()=>QA,ca:()=>e1,cs:()=>t1,da:()=>r1,de:()=>n1,en:()=>Xd,eo:()=>i1,es:()=>a1,fa:()=>o1,fi:()=>s1,fr:()=>l1,frCA:()=>u1,he:()=>c1,hu:()=>d1,hy:()=>f1,id:()=>m1,is:()=>h1,it:()=>g1,ja:()=>y1,ka:()=>v1,kh:()=>b1,km:()=>Qd,ko:()=>_1,lt:()=>k1,mk:()=>x1,ms:()=>S1,nl:()=>I1,no:()=>E1,ota:()=>T1,pl:()=>C1,ps:()=>$1,pt:()=>A1,ru:()=>N1,sl:()=>D1,sv:()=>j1,ta:()=>P1,th:()=>z1,tr:()=>R1,ua:()=>M1,uk:()=>ep,ur:()=>L1,uz:()=>F1,vi:()=>U1,yo:()=>V1,zhCN:()=>q1,zhTW:()=>B1});var PZ=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a}\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 ${M(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: ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?` \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"} ${a} ${n.maximum.toString()} ${o.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"} ${a} ${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`\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 ${a} ${n.minimum.toString()} ${o.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 ${a} ${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.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}"`:a.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 "${a.suffix}"`:a.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 "${a.includes}"`:a.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 ${a.pattern}`:`${r[a.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":""}: ${D(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 HA(){return{localeError:PZ()}}var zZ=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${M(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${a}${n.maximum.toString()} ${o.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${a}${n.minimum.toString()} ${o.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${a.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:a.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${a.suffix}" il\u0259 bitm\u0259lidir`:a.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${a.includes}" daxil olmal\u0131d\u0131r`:a.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${a.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[a.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":""}: ${D(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 KA(){return{localeError:zZ()}}function YA(e,t,r,i){let n=Math.abs(e),a=n%10,o=n%100;return o>=11&&o<=19?i:a===1?t:a>=2&&a<=4?r:i}var RZ=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a}, \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 ${M(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 ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);if(o){let s=Number(n.maximum),u=YA(s,o.unit.one,o.unit.few,o.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 ${o.verb} ${a}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);if(o){let s=Number(n.minimum),u=YA(s,o.unit.one,o.unit.few,o.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 ${o.verb} ${a}${n.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 ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.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 "${a.prefix}"`:a.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 "${a.suffix}"`:a.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 "${a.includes}"`:a.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 ${a.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[a.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"}: ${D(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 XA(){return{localeError:RZ()}}var MZ=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a}, \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 ${M(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 ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\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 ${a}${n.maximum.toString()} ${o.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 ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`\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 ${a}${n.minimum.toString()} ${o.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 ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;if(a.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 "${a.prefix}"`;if(a.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 "${a.suffix}"`;if(a.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 "${a.includes}"`;if(a.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 ${a.pattern}`;let o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return a.format==="emoji"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),a.format==="datetime"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),a.format==="date"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),a.format==="time"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),a.format==="duration"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${o} ${r[a.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":""}: ${D(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 QA(){return{localeError:MZ()}}var LZ=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${a}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${M(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${D(n.values," o ")}`;case"too_big":{let a=n.inclusive?"com a m\xE0xim":"menys de",o=t(n.origin);return o?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${a} ${n.maximum.toString()} ${o.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${a} ${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?"com a m\xEDnim":"m\xE9s de",o=t(n.origin);return o?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${a} ${n.minimum.toString()} ${o.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${a} ${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${a.prefix}"`:a.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${a.suffix}"`:a.format==="includes"?`Format inv\xE0lid: ha d'incloure "${a.includes}"`:a.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${a.pattern}`:`Format inv\xE0lid per a ${r[a.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":""}: ${D(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 e1(){return{localeError:LZ()}}var FZ=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a}, obdr\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${M(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${a}${n.maximum.toString()} ${o.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${a}${n.minimum.toString()} ${o.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${a.prefix}"`:a.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${a.suffix}"`:a.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${a.includes}"`:a.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${a.pattern}`:`Neplatn\xFD form\xE1t ${r[a.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: ${D(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 t1(){return{localeError:FZ()}}var UZ=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${a}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${M(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin),s=i[n.origin]??n.origin;return o?`For stor: forventede ${s??"value"} ${o.verb} ${a} ${n.maximum.toString()} ${o.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${a} ${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin),s=i[n.origin]??n.origin;return o?`For lille: forventede ${s} ${o.verb} ${a} ${n.minimum.toString()} ${o.unit}`:`For lille: forventede ${s} havde ${a} ${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Ugyldig streng: skal starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: skal ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: skal indeholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${a.pattern}`:`Ugyldig ${r[a.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"}: ${D(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 r1(){return{localeError:UZ()}}var qZ=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${a}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${M(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${a}${n.maximum.toString()} ${o.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${a}${n.maximum.toString()} ist`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`Zu klein: erwartet, dass ${n.origin} ${a}${n.minimum.toString()} ${o.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${a}${n.minimum.toString()} ist`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Ung\xFCltiger String: muss mit "${a.prefix}" beginnen`:a.format==="ends_with"?`Ung\xFCltiger String: muss mit "${a.suffix}" enden`:a.format==="includes"?`Ung\xFCltiger String: muss "${a.includes}" enthalten`:a.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${a.pattern} entsprechen`:`Ung\xFCltig: ${r[a.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"}: ${D(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 n1(){return{localeError:qZ()}}var BZ=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return`Invalid input: expected ${a}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${M(n.values[0])}`:`Invalid option: expected one of ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Too big: expected ${n.origin??"value"} to have ${a}${n.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`Too small: expected ${n.origin} to have ${a}${n.minimum.toString()} ${o.unit}`:`Too small: expected ${n.origin} to be ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Invalid string: must start with "${a.prefix}"`:a.format==="ends_with"?`Invalid string: must end with "${a.suffix}"`:a.format==="includes"?`Invalid string: must include "${a.includes}"`:a.format==="regex"?`Invalid string: must match pattern ${a.pattern}`:`Invalid ${r[a.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":""}: ${D(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Xd(){return{localeError:BZ()}}var VZ=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${a}, ricevi\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${M(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${a}${n.maximum.toString()} ${o.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${a}${n.minimum.toString()} ${o.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${a.prefix}"`:a.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${a.suffix}"`:a.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${a.includes}"`:a.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${a.pattern}`:`Nevalida ${r[a.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":""}: ${D(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 i1(){return{localeError:VZ()}}var ZZ=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${a}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${M(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin),s=i[n.origin]??n.origin;return o?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${a}${n.maximum.toString()} ${o.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin),s=i[n.origin]??n.origin;return o?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${a}${n.minimum.toString()} ${o.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${a.prefix}"`:a.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${a.suffix}"`:a.format==="includes"?`Cadena inv\xE1lida: debe incluir "${a.includes}"`:a.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${a.pattern}`:`Inv\xE1lido ${r[a.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":""}: ${D(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 a1(){return{localeError:ZZ()}}var WZ=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a} \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 ${M(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 ${D(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${a}${n.maximum.toString()} ${o.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 ${a}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${a}${n.minimum.toString()} ${o.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${a}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${a.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:a.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${a.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:a.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${a.includes}" \u0628\u0627\u0634\u062F`:a.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${a.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[a.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: ${D(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 o1(){return{localeError:WZ()}}var GZ=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${a}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${M(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Liian suuri: ${o.subject} t\xE4ytyy olla ${a}${n.maximum.toString()} ${o.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`Liian pieni: ${o.subject} t\xE4ytyy olla ${a}${n.minimum.toString()} ${o.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${a.prefix}"`:a.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${a.suffix}"`:a.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${a.includes}"`:a.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${a.pattern}`:`Virheellinen ${r[a.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"}: ${D(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 s1(){return{localeError:GZ()}}var JZ=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[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={nan:"NaN",number:"nombre",array:"tableau"};return n=>{switch(n.code){case"invalid_type":{let a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${a} attendu, ${s} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${M(n.values[0])} attendu`:`Option invalide : une valeur parmi ${D(n.values,"|")} attendue`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Trop grand : ${n.origin??"valeur"} doit ${o.verb} ${a}${n.maximum.toString()} ${o.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`Trop petit : ${n.origin} doit ${o.verb} ${a}${n.minimum.toString()} ${o.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Cha\xEEne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${a.pattern}`:`${r[a.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":""} : ${D(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 l1(){return{localeError:JZ()}}var HZ=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${a}, re\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${M(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"\u2264":"<",o=t(n.origin);return o?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${a}${n.maximum.toString()} ${o.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?"\u2265":">",o=t(n.origin);return o?`Trop petit : attendu que ${n.origin} ait ${a}${n.minimum.toString()} ${o.unit}`:`Trop petit : attendu que ${n.origin} soit ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Cha\xEEne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${a.pattern}`:`${r[a.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":""} : ${D(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 u1(){return{localeError:HZ()}}var KZ=()=>{let e={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"}},t={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=c=>c?e[c]:void 0,i=c=>{let d=r(c);return d?d.label:c??e.unknown.label},n=c=>`\u05D4${i(c)}`,a=c=>(r(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",o=c=>c?t[c]??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 c=>{switch(c.code){case"invalid_type":{let d=c.expected,p=u[d??""]??i(d),f=F(c.input),m=u[f]??e[f]?.label??f;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${m}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${m}`}case"invalid_value":{if(c.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 ${M(c.values[0])}`;let d=c.values.map(m=>M(m));if(c.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=o(c.origin),p=n(c.origin??"value");if(c.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${d?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let g=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(c.origin==="array"||c.origin==="set"){let g=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",h=c.inclusive?`${c.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=c.inclusive?"<=":"<",m=a(c.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${p} ${m} ${f}${c.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${m} ${f}${c.maximum.toString()}`}case"too_small":{let d=o(c.origin),p=n(c.origin??"value");if(c.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${d?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let g=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(c.origin==="array"||c.origin==="set"){let g=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let y=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`}let h=c.inclusive?`${c.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=c.inclusive?">=":">",m=a(c.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${p} ${m} ${f}${c.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${m} ${f}${c.minimum.toString()}`}case"invalid_format":{let d=c;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],f=p?.label??d.format,g=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${g}`}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 ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${D(c.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(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function c1(){return{localeError:KZ()}}var YZ=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${M(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${a}${n.maximum.toString()} ${o.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${a}${n.minimum.toString()} ${o.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\xC9rv\xE9nytelen string: "${a.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:a.format==="ends_with"?`\xC9rv\xE9nytelen string: "${a.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:a.format==="includes"?`\xC9rv\xE9nytelen string: "${a.includes}" \xE9rt\xE9ket kell tartalmaznia`:a.format==="regex"?`\xC9rv\xE9nytelen string: ${a.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[a.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":""}: ${D(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 d1(){return{localeError:YZ()}}function p1(e,t,r){return Math.abs(e)===1?t:r}function fo(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var XZ=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a}, \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 ${M(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 ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);if(o){let s=Number(n.maximum),u=p1(s,o.unit.one,o.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 ${fo(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${a}${n.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 ${fo(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);if(o){let s=Number(n.minimum),u=p1(s,o.unit.one,o.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 ${fo(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${a}${n.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 ${fo(n.origin)} \u056C\u056B\u0576\u056B ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${a.prefix}"-\u0578\u057E`:a.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${a.suffix}"-\u0578\u057E`:a.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${a.includes}"`:a.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 ${a.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[a.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":""}. ${D(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${fo(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 ${fo(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function f1(){return{localeError:XZ()}}var QZ=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${a}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${M(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${a}${n.maximum.toString()} ${o.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`Terlalu kecil: diharapkan ${n.origin} memiliki ${a}${n.minimum.toString()} ${o.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`String tidak valid: harus dimulai dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak valid: harus berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak valid: harus menyertakan "${a.includes}"`:a.format==="regex"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${r[a.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":""}: ${D(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 m1(){return{localeError:QZ()}}var e3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${M(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${a}${n.maximum.toString()} ${o.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${a}${n.minimum.toString()} ${o.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${a.prefix}"`:a.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${a.suffix}"`:a.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${a.includes}"`:a.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${a.pattern}`:`Rangt ${r[a.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"}: ${D(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 h1(){return{localeError:e3()}}var t3=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${a}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${M(n.values[0])}`:`Opzione non valida: atteso uno tra ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Troppo grande: ${n.origin??"valore"} deve avere ${a}${n.maximum.toString()} ${o.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`Troppo piccolo: ${n.origin} deve avere ${a}${n.minimum.toString()} ${o.unit}`:`Troppo piccolo: ${n.origin} deve essere ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Stringa non valida: deve iniziare con "${a.prefix}"`:a.format==="ends_with"?`Stringa non valida: deve terminare con "${a.suffix}"`:a.format==="includes"?`Stringa non valida: deve includere "${a.includes}"`:a.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Invalid ${r[a.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"}: ${D(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 g1(){return{localeError:t3()}}var r3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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: ${a}\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: ${M(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${D(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let a=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",o=t(n.origin);return o?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${o.unit??"\u8981\u7D20"}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let a=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",o=t(n.origin);return o?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${o.unit}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${a.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[a.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":""}: ${D(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 y1(){return{localeError:r3()}}var n3=()=>{let e={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 t(n){return e[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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a}, \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 ${M(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 ${D(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\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"} ${o.verb} ${a}${n.maximum.toString()} ${o.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 ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`\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} ${o.verb} ${a}${n.minimum.toString()} ${o.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 ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${a.prefix}"-\u10D8\u10D7`:a.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${a.suffix}"-\u10D8\u10D7`:a.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${a.includes}"-\u10E1`:a.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 ${a.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[a.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"}: ${D(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 v1(){return{localeError:n3()}}var i3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a} \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 ${M(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 ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${a} ${n.maximum.toString()} ${o.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"} ${a} ${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${a} ${n.minimum.toString()} ${o.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${a} ${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.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 "${a.prefix}"`:a.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 "${a.suffix}"`:a.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 "${a.includes}"`:a.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 ${a.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[a.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 ${D(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 Qd(){return{localeError:i3()}}function b1(){return Qd()}var a3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${M(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${D(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let a=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",o=a==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),u=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${u} ${a}${o}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${a}${o}`}case"too_small":{let a=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",o=a==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),u=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${u} ${a}${o}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${a}${o}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:a.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:a.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:a.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${a.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[a.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: ${D(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 _1(){return{localeError:a3()}}var Ml=e=>e.charAt(0).toUpperCase()+e.slice(1);function w1(e){let t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}var o3=()=>{let e={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 t(n,a,o,s){let u=e[n]??null;return u===null?u:{unit:u.unit[a],verb:u.verb[s][o?"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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${a}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${M(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${D(n.values,"|")} pasirinkim\u0173`;case"too_big":{let a=i[n.origin]??n.origin,o=t(n.origin,w1(Number(n.maximum)),n.inclusive??!1,"smaller");if(o?.verb)return`${Ml(a??n.origin??"reik\u0161m\u0117")} ${o.verb} ${n.maximum.toString()} ${o.unit??"element\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Ml(a??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.maximum.toString()} ${o?.unit}`}case"too_small":{let a=i[n.origin]??n.origin,o=t(n.origin,w1(Number(n.minimum)),n.inclusive??!1,"bigger");if(o?.verb)return`${Ml(a??n.origin??"reik\u0161m\u0117")} ${o.verb} ${n.minimum.toString()} ${o.unit??"element\u0173"}`;let s=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Ml(a??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.minimum.toString()} ${o?.unit}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${a.prefix}"`:a.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${a.suffix}"`:a.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${a.includes}"`:a.format==="regex"?`Eilut\u0117 privalo atitikti ${a.pattern}`:`Neteisingas ${r[a.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"}: ${D(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let a=i[n.origin]??n.origin;return`${Ml(a??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function k1(){return{localeError:o3()}}var s3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${M(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 ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\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 ${a}${n.maximum.toString()} ${o.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 ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`\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 ${a}${n.minimum.toString()} ${o.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 ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.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 "${a.prefix}"`:a.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 "${a.suffix}"`:a.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 "${a.includes}"`:a.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 ${a.pattern}`:`Invalid ${r[a.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"}: ${D(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 x1(){return{localeError:s3()}}var l3=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${a}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${M(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Terlalu besar: dijangka ${n.origin??"nilai"} ${o.verb} ${a}${n.maximum.toString()} ${o.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`Terlalu kecil: dijangka ${n.origin} ${o.verb} ${a}${n.minimum.toString()} ${o.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`String tidak sah: mesti bermula dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak sah: mesti mengandungi "${a.includes}"`:a.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${r[a.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${D(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 S1(){return{localeError:l3()}}var u3=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${a}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${M(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return o?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${a}${n.maximum.toString()} ${o.unit??"elementen"} ${o.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${a}${n.maximum.toString()} is`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return o?`Te ${s}: verwacht dat ${n.origin} ${a}${n.minimum.toString()} ${o.unit} ${o.verb}`:`Te ${s}: verwacht dat ${n.origin} ${a}${n.minimum.toString()} is`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Ongeldige tekst: moet met "${a.prefix}" beginnen`:a.format==="ends_with"?`Ongeldige tekst: moet op "${a.suffix}" eindigen`:a.format==="includes"?`Ongeldige tekst: moet "${a.includes}" bevatten`:a.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${r[a.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":""}: ${D(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 I1(){return{localeError:u3()}}var c3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${a}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${M(n.values[0])}`:`Ugyldig valg: forventet en av ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${a}${n.maximum.toString()} ${o.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`For lite(n): forventet ${n.origin} til \xE5 ha ${a}${n.minimum.toString()} ${o.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${a.pattern}`:`Ugyldig ${r[a.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"}: ${D(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 E1(){return{localeError:c3()}}var d3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${a}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${M(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${a}${n.maximum.toString()} ${o.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${a}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${a}${n.minimum.toString()} ${o.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${a}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let a=n;return a.format==="starts_with"?`F\xE2sit metin: "${a.prefix}" ile ba\u015Flamal\u0131.`:a.format==="ends_with"?`F\xE2sit metin: "${a.suffix}" ile bitmeli.`:a.format==="includes"?`F\xE2sit metin: "${a.includes}" ihtiv\xE2 etmeli.`:a.format==="regex"?`F\xE2sit metin: ${a.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[a.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":""}: ${D(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 T1(){return{localeError:d3()}}var p3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a} \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 ${M(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${D(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${a}${n.maximum.toString()} ${o.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 ${a}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${a}${n.minimum.toString()} ${o.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${a}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${a.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:a.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${a.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:a.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${a.includes}" \u0648\u0644\u0631\u064A`:a.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${a.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[a.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"}: ${D(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 $1(){return{localeError:p3()}}var f3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${a}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${M(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${a}${n.maximum.toString()} ${o.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${a}${n.minimum.toString()} ${o.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${a.prefix}"`:a.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${a.suffix}"`:a.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${a.includes}"`:a.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${a.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[a.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":""}: ${D(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 C1(){return{localeError:f3()}}var m3=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${a}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${M(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${a}${n.maximum.toString()} ${o.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`Muito pequeno: esperado que ${n.origin} tivesse ${a}${n.minimum.toString()} ${o.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${a.prefix}"`:a.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inv\xE1lido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${a.pattern}`:`${r[a.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":""}: ${D(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 A1(){return{localeError:m3()}}function O1(e,t,r,i){let n=Math.abs(e),a=n%10,o=n%100;return o>=11&&o<=19?i:a===1?t:a>=2&&a<=4?r:i}var h3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a}, \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 ${M(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 ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);if(o){let s=Number(n.maximum),u=O1(s,o.unit.one,o.unit.few,o.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 ${a}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);if(o){let s=Number(n.minimum),u=O1(s,o.unit.one,o.unit.few,o.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 ${a}${n.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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.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 "${a.prefix}"`:a.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 "${a.suffix}"`:a.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 "${a.includes}"`:a.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 ${a.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[a.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":""}: ${D(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 N1(){return{localeError:h3()}}var g3=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${a}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${M(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${a}${n.maximum.toString()} ${o.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${a}${n.minimum.toString()} ${o.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${a.prefix}"`:a.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${a.suffix}"`:a.format==="includes"?`Neveljaven niz: mora vsebovati "${a.includes}"`:a.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${r[a.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"}: ${D(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 D1(){return{localeError:g3()}}var y3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${a}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${M(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${a}${n.maximum.toString()} ${o.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${a}${n.minimum.toString()} ${o.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${a.prefix}"`:a.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${a.suffix}"`:a.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${a.includes}"`:a.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${a.pattern}"`:`Ogiltig(t) ${r[a.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"}: ${D(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 j1(){return{localeError:y3()}}var v3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a}, \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 ${M(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 ${D(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\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"} ${a}${n.maximum.toString()} ${o.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"} ${a}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`\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} ${a}${n.minimum.toString()} ${o.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} ${a}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${a.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[a.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":""}: ${D(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 P1(){return{localeError:v3()}}var b3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a} \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 ${M(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 ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",o=t(n.origin);return o?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${n.maximum.toString()} ${o.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${a} ${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",o=t(n.origin);return o?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${n.minimum.toString()} ${o.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.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 "${a.prefix}"`:a.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 "${a.suffix}"`:a.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 "${a.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:a.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 ${a.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[a.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: ${D(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 z1(){return{localeError:b3()}}var _3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${a}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${M(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${a}${n.maximum.toString()} ${o.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${a}${n.minimum.toString()} ${o.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Ge\xE7ersiz metin: "${a.prefix}" ile ba\u015Flamal\u0131`:a.format==="ends_with"?`Ge\xE7ersiz metin: "${a.suffix}" ile bitmeli`:a.format==="includes"?`Ge\xE7ersiz metin: "${a.includes}" i\xE7ermeli`:a.format==="regex"?`Ge\xE7ersiz metin: ${a.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[a.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":""}: ${D(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 R1(){return{localeError:_3()}}var w3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a}, \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 ${M(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 ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\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"} ${o.verb} ${a}${n.maximum.toString()} ${o.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 ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`\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} ${o.verb} ${a}${n.minimum.toString()} ${o.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 ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.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 "${a.prefix}"`:a.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 "${a.suffix}"`:a.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 "${a.includes}"`:a.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 ${a.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[a.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":""}: ${D(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 ep(){return{localeError:w3()}}function M1(){return ep()}var k3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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: ${a} \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: ${M(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${D(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${a}${n.maximum.toString()} ${o.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 ${a}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${a}${n.minimum.toString()} ${o.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 ${a}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${a.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[a.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":""}: ${D(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 L1(){return{localeError:k3()}}var x3=()=>{let e={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"}};function t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${a}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${M(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Juda katta: kutilgan ${n.origin??"qiymat"} ${a}${n.maximum.toString()} ${o.unit} ${o.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`Juda kichik: kutilgan ${n.origin} ${a}${n.minimum.toString()} ${o.unit} ${o.verb}`:`Juda kichik: kutilgan ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${a.prefix}" bilan boshlanishi kerak`:a.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${a.suffix}" bilan tugashi kerak`:a.format==="includes"?`Noto\u2018g\u2018ri satr: "${a.includes}" ni o\u2018z ichiga olishi kerak`:a.format==="regex"?`Noto\u2018g\u2018ri satr: ${a.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[a.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":""}: ${D(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 F1(){return{localeError:x3()}}var S3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a}, 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 ${M(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 ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${o.verb} ${a}${n.maximum.toString()} ${o.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${o.verb} ${a}${n.minimum.toString()} ${o.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${a.prefix}"`:a.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${a.suffix}"`:a.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${a.includes}"`:a.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${a.pattern}`:`${r[a.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: ${D(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 U1(){return{localeError:S3()}}var I3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${M(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${a}${n.maximum.toString()} ${o.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${a}${n.minimum.toString()} ${o.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${a.prefix}" \u5F00\u5934`:a.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${a.suffix}" \u7ED3\u5C3E`:a.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${a.includes}"`:a.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${a.pattern}`:`\u65E0\u6548${r[a.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): ${D(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 q1(){return{localeError:I3()}}var E3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${M(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${a}${n.maximum.toString()} ${o.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${a}${n.maximum.toString()}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${a}${n.minimum.toString()} ${o.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${a.prefix}" \u958B\u982D`:a.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${a.suffix}" \u7D50\u5C3E`:a.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${a.includes}"`:a.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${a.pattern}`:`\u7121\u6548\u7684 ${r[a.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${D(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 B1(){return{localeError:E3()}}var T3=()=>{let e={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 t(n){return e[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 a=i[n.expected]??n.expected,o=F(n.input),s=i[o]??o;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 ${a}, \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 ${M(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${D(n.values,"|")}`;case"too_big":{let a=n.inclusive?"<=":"<",o=t(n.origin);return o?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${o.verb} ${a}${n.maximum} ${o.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${a}${n.maximum}`}case"too_small":{let a=n.inclusive?">=":">",o=t(n.origin);return o?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${o.verb} ${a}${n.minimum} ${o.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${a}${n.minimum}`}case"invalid_format":{let a=n;return a.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 "${a.prefix}"`:a.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${a.suffix}"`:a.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${a.includes}"`:a.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${a.pattern}`:`A\u1E63\xEC\u1E63e: ${r[a.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: ${D(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 V1(){return{localeError:T3()}}var Z1,Cb=Symbol("ZodOutput"),Ab=Symbol("ZodInput"),tp=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let i=r[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let i={...this.get(r)??{}};delete i.id;let n={...i,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function rp(){return new tp}(Z1=globalThis).__zod_globalRegistry??(Z1.__zod_globalRegistry=rp());var _t=globalThis.__zod_globalRegistry;function Ob(e,t){return new e({type:"string",...V(t)})}function Nb(e,t){return new e({type:"string",coerce:!0,...V(t)})}function np(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...V(t)})}function Fl(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...V(t)})}function ip(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...V(t)})}function ap(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...V(t)})}function op(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...V(t)})}function sp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...V(t)})}function Ul(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...V(t)})}function lp(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...V(t)})}function up(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...V(t)})}function cp(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...V(t)})}function dp(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...V(t)})}function pp(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...V(t)})}function fp(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...V(t)})}function mp(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...V(t)})}function hp(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...V(t)})}function gp(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...V(t)})}function Db(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...V(t)})}function yp(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...V(t)})}function vp(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...V(t)})}function bp(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...V(t)})}function _p(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...V(t)})}function wp(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...V(t)})}function kp(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...V(t)})}var jb={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Pb(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...V(t)})}function zb(e,t){return new e({type:"string",format:"date",check:"string_format",...V(t)})}function Rb(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...V(t)})}function Mb(e,t){return new e({type:"string",format:"duration",check:"string_format",...V(t)})}function Lb(e,t){return new e({type:"number",checks:[],...V(t)})}function Fb(e,t){return new e({type:"number",coerce:!0,checks:[],...V(t)})}function Ub(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...V(t)})}function qb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...V(t)})}function Bb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...V(t)})}function Vb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...V(t)})}function Zb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...V(t)})}function Wb(e,t){return new e({type:"boolean",...V(t)})}function Gb(e,t){return new e({type:"boolean",coerce:!0,...V(t)})}function Jb(e,t){return new e({type:"bigint",...V(t)})}function Hb(e,t){return new e({type:"bigint",coerce:!0,...V(t)})}function Kb(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...V(t)})}function Yb(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...V(t)})}function Xb(e,t){return new e({type:"symbol",...V(t)})}function Qb(e,t){return new e({type:"undefined",...V(t)})}function e_(e,t){return new e({type:"null",...V(t)})}function t_(e){return new e({type:"any"})}function r_(e){return new e({type:"unknown"})}function n_(e,t){return new e({type:"never",...V(t)})}function i_(e,t){return new e({type:"void",...V(t)})}function a_(e,t){return new e({type:"date",...V(t)})}function o_(e,t){return new e({type:"date",coerce:!0,...V(t)})}function s_(e,t){return new e({type:"nan",...V(t)})}function nn(e,t){return new Ud({check:"less_than",...V(t),value:e,inclusive:!1})}function fr(e,t){return new Ud({check:"less_than",...V(t),value:e,inclusive:!0})}function an(e,t){return new qd({check:"greater_than",...V(t),value:e,inclusive:!1})}function Ut(e,t){return new qd({check:"greater_than",...V(t),value:e,inclusive:!0})}function xp(e){return an(0,e)}function Sp(e){return nn(0,e)}function Ip(e){return fr(0,e)}function Ep(e){return Ut(0,e)}function vi(e,t){return new ev({check:"multiple_of",...V(t),value:e})}function bi(e,t){return new nv({check:"max_size",...V(t),maximum:e})}function on(e,t){return new iv({check:"min_size",...V(t),minimum:e})}function sa(e,t){return new av({check:"size_equals",...V(t),size:e})}function la(e,t){return new ov({check:"max_length",...V(t),maximum:e})}function En(e,t){return new sv({check:"min_length",...V(t),minimum:e})}function ua(e,t){return new lv({check:"length_equals",...V(t),length:e})}function mo(e,t){return new uv({check:"string_format",format:"regex",...V(t),pattern:e})}function ho(e){return new cv({check:"string_format",format:"lowercase",...V(e)})}function go(e){return new dv({check:"string_format",format:"uppercase",...V(e)})}function yo(e,t){return new pv({check:"string_format",format:"includes",...V(t),includes:e})}function vo(e,t){return new fv({check:"string_format",format:"starts_with",...V(t),prefix:e})}function bo(e,t){return new mv({check:"string_format",format:"ends_with",...V(t),suffix:e})}function Tp(e,t,r){return new hv({check:"property",property:e,schema:t,...V(r)})}function _o(e,t){return new gv({check:"mime_type",mime:e,...V(t)})}function Fr(e){return new yv({check:"overwrite",tx:e})}function wo(e){return Fr(t=>t.normalize(e))}function ko(){return Fr(e=>e.trim())}function xo(){return Fr(e=>e.toLowerCase())}function So(){return Fr(e=>e.toUpperCase())}function Io(){return Fr(e=>hy(e))}function l_(e,t,r){return new e({type:"array",element:t,...V(r)})}function C3(e,t,r){return new e({type:"union",options:t,...V(r)})}function A3(e,t,r){return new e({type:"union",options:t,inclusive:!1,...V(r)})}function O3(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...V(i)})}function N3(e,t,r){return new e({type:"intersection",left:t,right:r})}function D3(e,t,r,i){let n=r instanceof _e,a=n?i:r,o=n?r:null;return new e({type:"tuple",items:t,rest:o,...V(a)})}function j3(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...V(i)})}function P3(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...V(i)})}function z3(e,t,r){return new e({type:"set",valueType:t,...V(r)})}function R3(e,t,r){let i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:i,...V(r)})}function M3(e,t,r){return new e({type:"enum",entries:t,...V(r)})}function L3(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...V(r)})}function u_(e,t){return new e({type:"file",...V(t)})}function F3(e,t){return new e({type:"transform",transform:t})}function U3(e,t){return new e({type:"optional",innerType:t})}function q3(e,t){return new e({type:"nullable",innerType:t})}function B3(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():yy(r)}})}function V3(e,t,r){return new e({type:"nonoptional",innerType:t,...V(r)})}function Z3(e,t){return new e({type:"success",innerType:t})}function W3(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function G3(e,t,r){return new e({type:"pipe",in:t,out:r})}function J3(e,t){return new e({type:"readonly",innerType:t})}function H3(e,t,r){return new e({type:"template_literal",parts:t,...V(r)})}function K3(e,t){return new e({type:"lazy",getter:t})}function Y3(e,t){return new e({type:"promise",innerType:t})}function c_(e,t,r){let i=V(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function d_(e,t,r){return new e({type:"custom",check:"custom",fn:t,...V(r)})}function p_(e){let t=W1(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(oo(i,r.value,t._zod.def));else{let n=i;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(oo(n))}},e(r.value,r)));return t}function W1(e,t){let r=new Ge({check:"custom",...V(t)});return r._zod.check=e,r}function f_(e){let t=new Ge({check:"describe"});return t._zod.onattach=[r=>{let i=_t.get(r)??{};_t.add(r,{...i,description:e})}],t._zod.check=()=>{},t}function m_(e){let t=new Ge({check:"meta"});return t._zod.onattach=[r=>{let i=_t.get(r)??{};_t.add(r,{...i,...e})}],t._zod.check=()=>{},t}function h_(e,t){let r=V(t),i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(m=>typeof m=="string"?m.toLowerCase():m),n=n.map(m=>typeof m=="string"?m.toLowerCase():m));let a=new Set(i),o=new Set(n),s=e.Codec??Rl,u=e.Boolean??Pl,c=e.String??oa,d=new c({type:"string",error:r.error}),p=new u({type:"boolean",error:r.error}),f=new s({type:"pipe",in:d,out:p,transform:((m,g)=>{let h=m;return r.case!=="sensitive"&&(h=h.toLowerCase()),a.has(h)?!0:o.has(h)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...o],input:g.value,inst:f,continue:!1}),{})}),reverseTransform:((m,g)=>m===!0?i[0]||"true":n[0]||"false"),error:r.error});return f}function Eo(e,t,r,i={}){let n=V(i),a={...V(i),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(a.pattern=r),new e(a)}function _i(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??_t,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function qe(e,t,r={path:[],schemaPath:[]}){var i;let n=e._zod.def,a=t.seen.get(e);if(a)return a.count++,r.schemaPath.includes(e)&&(a.cycle=r.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let d={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,d);else{let f=o.schema,m=t.processors[n.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);m(e,t,f,d)}let p=e._zod.parent;p&&(o.ref||(o.ref=p),qe(p,t,d),t.seen.get(p).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&Object.assign(o.schema,u),t.io==="input"&&qt(e)&&(delete o.schema.examples,delete o.schema.default),t.io==="input"&&o.schema._prefault&&((i=o.schema).default??(i.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function wi(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let o of e.seen.entries()){let s=e.metadataRegistry.get(o[0])?.id;if(s){let u=i.get(s);if(u&&u!==o[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,o[0])}}let n=o=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(o[0])?.id,f=e.external.uri??(g=>g);if(p)return{ref:f(p)};let m=o[1].defId??o[1].schema.id??`schema${e.counter++}`;return o[1].defId=m,{defId:m,ref:`${f("__shared")}#/${s}/${m}`}}if(o[1]===r)return{ref:"#"};let c=`#/${s}/`,d=o[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:c+d}},a=o=>{if(o[1].schema.$ref)return;let s=o[1],{ref:u,defId:c}=n(o);s.def={...s.schema},c&&(s.defId=c);let d=s.schema;for(let p in d)delete d[p];d.$ref=u};if(e.cycles==="throw")for(let o of e.seen.entries()){let s=o[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
|
|
308
|
+
|
|
309
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let o of e.seen.entries()){let s=o[1];if(t===o[0]){a(o);continue}if(e.external){let c=e.external.registry.get(o[0])?.id;if(t!==o[0]&&c){a(o);continue}}if(e.metadataRegistry.get(o[0])?.id){a(o);continue}if(s.cycle){a(o);continue}if(s.count>1&&e.reused==="ref"){a(o);continue}}}function ki(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=o=>{let s=e.seen.get(o);if(s.ref===null)return;let u=s.def??s.schema,c={...u},d=s.ref;if(s.ref=null,d){i(d);let f=e.seen.get(d),m=f.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(m)):Object.assign(u,m),Object.assign(u,c),o._zod.parent===d)for(let h in u)h==="$ref"||h==="allOf"||h in c||delete u[h];if(m.$ref&&f.def)for(let h in u)h==="$ref"||h==="allOf"||h in f.def&&JSON.stringify(u[h])===JSON.stringify(f.def[h])&&delete u[h]}let p=o._zod.parent;if(p&&p!==d){i(p);let f=e.seen.get(p);if(f?.schema.$ref&&(u.$ref=f.schema.$ref,f.def))for(let m in u)m==="$ref"||m==="allOf"||m in f.def&&JSON.stringify(u[m])===JSON.stringify(f.def[m])&&delete u[m]}e.override({zodSchema:o,jsonSchema:u,path:s.path??[]})};for(let o of[...e.seen.entries()].reverse())i(o[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let o=e.external.registry.get(t)?.id;if(!o)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(o)}Object.assign(n,r.def??r.schema);let a=e.external?.defs??{};for(let o of e.seen.entries()){let s=o[1];s.def&&s.defId&&(a[s.defId]=s.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{let o=JSON.parse(JSON.stringify(n));return Object.defineProperty(o,"~standard",{value:{...t["~standard"],jsonSchema:{input:To(t,"input",e.processors),output:To(t,"output",e.processors)}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function qt(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return qt(i.element,r);if(i.type==="set")return qt(i.valueType,r);if(i.type==="lazy")return qt(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 qt(i.innerType,r);if(i.type==="intersection")return qt(i.left,r)||qt(i.right,r);if(i.type==="record"||i.type==="map")return qt(i.keyType,r)||qt(i.valueType,r);if(i.type==="pipe")return qt(i.in,r)||qt(i.out,r);if(i.type==="object"){for(let n in i.shape)if(qt(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(qt(n,r))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(qt(n,r))return!0;return!!(i.rest&&qt(i.rest,r))}return!1}var g_=(e,t={})=>r=>{let i=_i({...r,processors:t});return qe(e,i),wi(i,e),ki(i,e)},To=(e,t,r={})=>i=>{let{libraryOptions:n,target:a}=i??{},o=_i({...n??{},target:a,io:t,processors:r});return qe(e,o),wi(o,e),ki(o,e)};var X3={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},y_=(e,t,r,i)=>{let n=r;n.type="string";let{minimum:a,maximum:o,format:s,patterns:u,contentEncoding:c}=e._zod.bag;if(typeof a=="number"&&(n.minLength=a),typeof o=="number"&&(n.maxLength=o),s&&(n.format=X3[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),c&&(n.contentEncoding=c),u&&u.size>0){let d=[...u];d.length===1?n.pattern=d[0].source:d.length>1&&(n.allOf=[...d.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},v_=(e,t,r,i)=>{let n=r,{minimum:a,maximum:o,format:s,multipleOf:u,exclusiveMaximum:c,exclusiveMinimum:d}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=d,n.exclusiveMinimum=!0):n.exclusiveMinimum=d),typeof a=="number"&&(n.minimum=a,typeof d=="number"&&t.target!=="draft-04"&&(d>=a?delete n.minimum:delete n.exclusiveMinimum)),typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c),typeof o=="number"&&(n.maximum=o,typeof c=="number"&&t.target!=="draft-04"&&(c<=o?delete n.maximum:delete n.exclusiveMaximum)),typeof u=="number"&&(n.multipleOf=u)},b_=(e,t,r,i)=>{r.type="boolean"},__=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},w_=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},k_=(e,t,r,i)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},x_=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},S_=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},I_=(e,t,r,i)=>{r.not={}},E_=(e,t,r,i)=>{},T_=(e,t,r,i)=>{},$_=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},C_=(e,t,r,i)=>{let n=e._zod.def,a=Sl(n.entries);a.every(o=>typeof o=="number")&&(r.type="number"),a.every(o=>typeof o=="string")&&(r.type="string"),r.enum=a},A_=(e,t,r,i)=>{let n=e._zod.def,a=[];for(let o of n.values)if(o===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof o=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");a.push(Number(o))}else a.push(o);if(a.length!==0)if(a.length===1){let o=a[0];r.type=o===null?"null":typeof o,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[o]:r.const=o}else a.every(o=>typeof o=="number")&&(r.type="number"),a.every(o=>typeof o=="string")&&(r.type="string"),a.every(o=>typeof o=="boolean")&&(r.type="boolean"),a.every(o=>o===null)&&(r.type="null"),r.enum=a},O_=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},N_=(e,t,r,i)=>{let n=r,a=e._zod.pattern;if(!a)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=a.source},D_=(e,t,r,i)=>{let n=r,a={type:"string",format:"binary",contentEncoding:"binary"},{minimum:o,maximum:s,mime:u}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),u?u.length===1?(a.contentMediaType=u[0],Object.assign(n,a)):(Object.assign(n,a),n.anyOf=u.map(c=>({contentMediaType:c}))):Object.assign(n,a)},j_=(e,t,r,i)=>{r.type="boolean"},P_=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},z_=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},R_=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},M_=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},L_=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},F_=(e,t,r,i)=>{let n=r,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o=="number"&&(n.minItems=o),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=qe(a.element,t,{...i,path:[...i.path,"items"]})},U_=(e,t,r,i)=>{let n=r,a=e._zod.def;n.type="object",n.properties={};let o=a.shape;for(let c in o)n.properties[c]=qe(o[c],t,{...i,path:[...i.path,"properties",c]});let s=new Set(Object.keys(o)),u=new Set([...s].filter(c=>{let d=a.shape[c]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));u.size>0&&(n.required=Array.from(u)),a.catchall?._zod.def.type==="never"?n.additionalProperties=!1:a.catchall?a.catchall&&(n.additionalProperties=qe(a.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Cp=(e,t,r,i)=>{let n=e._zod.def,a=n.inclusive===!1,o=n.options.map((s,u)=>qe(s,t,{...i,path:[...i.path,a?"oneOf":"anyOf",u]}));a?r.oneOf=o:r.anyOf=o},q_=(e,t,r,i)=>{let n=e._zod.def,a=qe(n.left,t,{...i,path:[...i.path,"allOf",0]}),o=qe(n.right,t,{...i,path:[...i.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1,u=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];r.allOf=u},B_=(e,t,r,i)=>{let n=r,a=e._zod.def;n.type="array";let o=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=a.items.map((f,m)=>qe(f,t,{...i,path:[...i.path,o,m]})),c=a.rest?qe(a.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[a.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=u,c&&(n.items=c)):t.target==="openapi-3.0"?(n.items={anyOf:u},c&&n.items.anyOf.push(c),n.minItems=u.length,c||(n.maxItems=u.length)):(n.items=u,c&&(n.additionalItems=c));let{minimum:d,maximum:p}=e._zod.bag;typeof d=="number"&&(n.minItems=d),typeof p=="number"&&(n.maxItems=p)},V_=(e,t,r,i)=>{let n=r,a=e._zod.def;n.type="object";let o=a.keyType,u=o._zod.bag?.patterns;if(a.mode==="loose"&&u&&u.size>0){let d=qe(a.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let p of u)n.patternProperties[p.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=qe(a.keyType,t,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=qe(a.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let c=o._zod.values;if(c){let d=[...c].filter(p=>typeof p=="string"||typeof p=="number");d.length>0&&(n.required=d)}},Z_=(e,t,r,i)=>{let n=e._zod.def,a=qe(n.innerType,t,i),o=t.seen.get(e);t.target==="openapi-3.0"?(o.ref=n.innerType,r.nullable=!0):r.anyOf=[a,{type:"null"}]},W_=(e,t,r,i)=>{let n=e._zod.def;qe(n.innerType,t,i);let a=t.seen.get(e);a.ref=n.innerType},G_=(e,t,r,i)=>{let n=e._zod.def;qe(n.innerType,t,i);let a=t.seen.get(e);a.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},J_=(e,t,r,i)=>{let n=e._zod.def;qe(n.innerType,t,i);let a=t.seen.get(e);a.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},H_=(e,t,r,i)=>{let n=e._zod.def;qe(n.innerType,t,i);let a=t.seen.get(e);a.ref=n.innerType;let o;try{o=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=o},K_=(e,t,r,i)=>{let n=e._zod.def,a=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;qe(a,t,i);let o=t.seen.get(e);o.ref=a},Y_=(e,t,r,i)=>{let n=e._zod.def;qe(n.innerType,t,i);let a=t.seen.get(e);a.ref=n.innerType,r.readOnly=!0},X_=(e,t,r,i)=>{let n=e._zod.def;qe(n.innerType,t,i);let a=t.seen.get(e);a.ref=n.innerType},Ap=(e,t,r,i)=>{let n=e._zod.def;qe(n.innerType,t,i);let a=t.seen.get(e);a.ref=n.innerType},Q_=(e,t,r,i)=>{let n=e._zod.innerType;qe(n,t,i);let a=t.seen.get(e);a.ref=n},$p={string:y_,number:v_,boolean:b_,bigint:__,symbol:w_,null:k_,undefined:x_,void:S_,never:I_,any:E_,unknown:T_,date:$_,enum:C_,literal:A_,nan:O_,template_literal:N_,file:D_,success:j_,custom:P_,function:z_,transform:R_,map:M_,set:L_,array:F_,object:U_,union:Cp,intersection:q_,tuple:B_,record:V_,nullable:Z_,nonoptional:W_,default:G_,prefault:J_,catch:H_,pipe:K_,readonly:Y_,promise:X_,optional:Ap,lazy:Q_};function $o(e,t){if("_idmap"in e){let i=e,n=_i({...t,processors:$p}),a={};for(let u of i._idmap.entries()){let[c,d]=u;qe(d,n)}let o={},s={registry:i,uri:t?.uri,defs:a};n.external=s;for(let u of i._idmap.entries()){let[c,d]=u;wi(n,d),o[c]=ki(n,d)}if(Object.keys(a).length>0){let u=n.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[u]:a}}return{schemas:o}}let r=_i({...t,processors:$p});return qe(e,r),wi(r,e),ki(r,e)}var Op=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(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=_i({processors:$p,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return qe(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),wi(this.ctx,t);let i=ki(this.ctx,t),{"~standard":n,...a}=i;return a}};var G1={};var ql={};Or(ql,{ZodAny:()=>kw,ZodArray:()=>Ew,ZodBase64:()=>Xp,ZodBase64URL:()=>Qp,ZodBigInt:()=>Po,ZodBigIntFormat:()=>rf,ZodBoolean:()=>jo,ZodCIDRv4:()=>Kp,ZodCIDRv6:()=>Yp,ZodCUID:()=>Bp,ZodCUID2:()=>Vp,ZodCatch:()=>Jw,ZodCodec:()=>df,ZodCustom:()=>eu,ZodCustomStringFormat:()=>No,ZodDate:()=>Hl,ZodDefault:()=>qw,ZodDiscriminatedUnion:()=>$w,ZodE164:()=>ef,ZodEmail:()=>Fp,ZodEmoji:()=>Up,ZodEnum:()=>Ao,ZodExactOptional:()=>Lw,ZodFile:()=>Rw,ZodFunction:()=>nk,ZodGUID:()=>Vl,ZodIPv4:()=>Jp,ZodIPv6:()=>Hp,ZodIntersection:()=>Cw,ZodJWT:()=>tf,ZodKSUID:()=>Gp,ZodLazy:()=>ek,ZodLiteral:()=>zw,ZodMAC:()=>hw,ZodMap:()=>jw,ZodNaN:()=>Kw,ZodNanoID:()=>qp,ZodNever:()=>Sw,ZodNonOptional:()=>uf,ZodNull:()=>_w,ZodNullable:()=>Uw,ZodNumber:()=>Do,ZodNumberFormat:()=>da,ZodObject:()=>Yl,ZodOptional:()=>lf,ZodPipe:()=>cf,ZodPrefault:()=>Vw,ZodPromise:()=>rk,ZodReadonly:()=>Yw,ZodRecord:()=>Ql,ZodSet:()=>Pw,ZodString:()=>Oo,ZodStringFormat:()=>We,ZodSuccess:()=>Gw,ZodSymbol:()=>vw,ZodTemplateLiteral:()=>Qw,ZodTransform:()=>Mw,ZodTuple:()=>Ow,ZodType:()=>Se,ZodULID:()=>Zp,ZodURL:()=>Jl,ZodUUID:()=>sn,ZodUndefined:()=>bw,ZodUnion:()=>Xl,ZodUnknown:()=>xw,ZodVoid:()=>Iw,ZodXID:()=>Wp,ZodXor:()=>Tw,_ZodString:()=>Lp,_default:()=>Bw,_function:()=>eN,any:()=>NO,array:()=>Kl,base64:()=>hO,base64url:()=>gO,bigint:()=>TO,boolean:()=>yw,catch:()=>Hw,check:()=>tN,cidrv4:()=>fO,cidrv6:()=>mO,codec:()=>YO,cuid:()=>aO,cuid2:()=>oO,custom:()=>rN,date:()=>jO,describe:()=>nN,discriminatedUnion:()=>FO,e164:()=>yO,email:()=>H1,emoji:()=>nO,enum:()=>of,exactOptional:()=>Fw,file:()=>GO,float32:()=>xO,float64:()=>SO,function:()=>eN,guid:()=>K1,hash:()=>kO,hex:()=>wO,hostname:()=>_O,httpUrl:()=>rO,instanceof:()=>aN,int:()=>Mp,int32:()=>IO,int64:()=>$O,intersection:()=>Aw,ipv4:()=>cO,ipv6:()=>pO,json:()=>sN,jwt:()=>vO,keyof:()=>PO,ksuid:()=>uO,lazy:()=>tk,literal:()=>WO,looseObject:()=>MO,looseRecord:()=>qO,mac:()=>dO,map:()=>BO,meta:()=>iN,nan:()=>KO,nanoid:()=>iO,nativeEnum:()=>ZO,never:()=>nf,nonoptional:()=>Ww,null:()=>ww,nullable:()=>Wl,nullish:()=>JO,number:()=>gw,object:()=>zO,optional:()=>Zl,partialRecord:()=>UO,pipe:()=>Gl,prefault:()=>Zw,preprocess:()=>lN,promise:()=>QO,readonly:()=>Xw,record:()=>Dw,refine:()=>ik,set:()=>VO,strictObject:()=>RO,string:()=>Rp,stringFormat:()=>bO,stringbool:()=>oN,success:()=>HO,superRefine:()=>ak,symbol:()=>AO,templateLiteral:()=>XO,transform:()=>sf,tuple:()=>Nw,uint32:()=>EO,uint64:()=>CO,ulid:()=>sO,undefined:()=>OO,union:()=>af,unknown:()=>ca,url:()=>tO,uuid:()=>Y1,uuidv4:()=>X1,uuidv6:()=>Q1,uuidv7:()=>eO,void:()=>DO,xid:()=>lO,xor:()=>LO});var Np={};Or(Np,{endsWith:()=>bo,gt:()=>an,gte:()=>Ut,includes:()=>yo,length:()=>ua,lowercase:()=>ho,lt:()=>nn,lte:()=>fr,maxLength:()=>la,maxSize:()=>bi,mime:()=>_o,minLength:()=>En,minSize:()=>on,multipleOf:()=>vi,negative:()=>Sp,nonnegative:()=>Ep,nonpositive:()=>Ip,normalize:()=>wo,overwrite:()=>Fr,positive:()=>xp,property:()=>Tp,regex:()=>mo,size:()=>sa,slugify:()=>Io,startsWith:()=>vo,toLowerCase:()=>xo,toUpperCase:()=>So,trim:()=>ko,uppercase:()=>go});var Co={};Or(Co,{ZodISODate:()=>jp,ZodISODateTime:()=>Dp,ZodISODuration:()=>zp,ZodISOTime:()=>Pp,date:()=>tw,datetime:()=>ew,duration:()=>nw,time:()=>rw});var Dp=C("ZodISODateTime",(e,t)=>{Ov.init(e,t),We.init(e,t)});function ew(e){return Pb(Dp,e)}var jp=C("ZodISODate",(e,t)=>{Nv.init(e,t),We.init(e,t)});function tw(e){return zb(jp,e)}var Pp=C("ZodISOTime",(e,t)=>{Dv.init(e,t),We.init(e,t)});function rw(e){return Rb(Pp,e)}var zp=C("ZodISODuration",(e,t)=>{jv.init(e,t),We.init(e,t)});function nw(e){return Mb(zp,e)}var J1=(e,t)=>{Cl.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Ol(e,r)},flatten:{value:r=>Al(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,io,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,io,2)}},isEmpty:{get(){return e.issues.length===0}}})},e9=C("ZodError",J1),rr=C("ZodError",J1,{Parent:Error});var iw=so(rr),aw=lo(rr),ow=uo(rr),Bl=co(rr),sw=Od(rr),lw=Nd(rr),uw=Dd(rr),cw=jd(rr),dw=Pd(rr),pw=zd(rr),fw=Rd(rr),mw=Md(rr);var Se=C("ZodType",(e,t)=>(_e.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:To(e,"input"),output:To(e,"output")}}),e.toJSONSchema=g_(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(U.mergeDefs(t,{checks:[...t.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(r,i)=>Ft(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>iw(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>ow(e,r,i),e.parseAsync=async(r,i)=>aw(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>Bl(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>sw(e,r,i),e.decode=(r,i)=>lw(e,r,i),e.encodeAsync=async(r,i)=>uw(e,r,i),e.decodeAsync=async(r,i)=>cw(e,r,i),e.safeEncode=(r,i)=>dw(e,r,i),e.safeDecode=(r,i)=>pw(e,r,i),e.safeEncodeAsync=async(r,i)=>fw(e,r,i),e.safeDecodeAsync=async(r,i)=>mw(e,r,i),e.refine=(r,i)=>e.check(ik(r,i)),e.superRefine=r=>e.check(ak(r)),e.overwrite=r=>e.check(Fr(r)),e.optional=()=>Zl(e),e.exactOptional=()=>Fw(e),e.nullable=()=>Wl(e),e.nullish=()=>Zl(Wl(e)),e.nonoptional=r=>Ww(e,r),e.array=()=>Kl(e),e.or=r=>af([e,r]),e.and=r=>Aw(e,r),e.transform=r=>Gl(e,sf(r)),e.default=r=>Bw(e,r),e.prefault=r=>Zw(e,r),e.catch=r=>Hw(e,r),e.pipe=r=>Gl(e,r),e.readonly=()=>Xw(e),e.describe=r=>{let i=e.clone();return _t.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){return _t.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return _t.get(e);let i=e.clone();return _t.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),Lp=C("_ZodString",(e,t)=>{oa.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(i,n,a)=>y_(e,i,n,a);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...i)=>e.check(mo(...i)),e.includes=(...i)=>e.check(yo(...i)),e.startsWith=(...i)=>e.check(vo(...i)),e.endsWith=(...i)=>e.check(bo(...i)),e.min=(...i)=>e.check(En(...i)),e.max=(...i)=>e.check(la(...i)),e.length=(...i)=>e.check(ua(...i)),e.nonempty=(...i)=>e.check(En(1,...i)),e.lowercase=i=>e.check(ho(i)),e.uppercase=i=>e.check(go(i)),e.trim=()=>e.check(ko()),e.normalize=(...i)=>e.check(wo(...i)),e.toLowerCase=()=>e.check(xo()),e.toUpperCase=()=>e.check(So()),e.slugify=()=>e.check(Io())}),Oo=C("ZodString",(e,t)=>{oa.init(e,t),Lp.init(e,t),e.email=r=>e.check(np(Fp,r)),e.url=r=>e.check(Ul(Jl,r)),e.jwt=r=>e.check(kp(tf,r)),e.emoji=r=>e.check(lp(Up,r)),e.guid=r=>e.check(Fl(Vl,r)),e.uuid=r=>e.check(ip(sn,r)),e.uuidv4=r=>e.check(ap(sn,r)),e.uuidv6=r=>e.check(op(sn,r)),e.uuidv7=r=>e.check(sp(sn,r)),e.nanoid=r=>e.check(up(qp,r)),e.guid=r=>e.check(Fl(Vl,r)),e.cuid=r=>e.check(cp(Bp,r)),e.cuid2=r=>e.check(dp(Vp,r)),e.ulid=r=>e.check(pp(Zp,r)),e.base64=r=>e.check(bp(Xp,r)),e.base64url=r=>e.check(_p(Qp,r)),e.xid=r=>e.check(fp(Wp,r)),e.ksuid=r=>e.check(mp(Gp,r)),e.ipv4=r=>e.check(hp(Jp,r)),e.ipv6=r=>e.check(gp(Hp,r)),e.cidrv4=r=>e.check(yp(Kp,r)),e.cidrv6=r=>e.check(vp(Yp,r)),e.e164=r=>e.check(wp(ef,r)),e.datetime=r=>e.check(ew(r)),e.date=r=>e.check(tw(r)),e.time=r=>e.check(rw(r)),e.duration=r=>e.check(nw(r))});function Rp(e){return Ob(Oo,e)}var We=C("ZodStringFormat",(e,t)=>{Ze.init(e,t),Lp.init(e,t)}),Fp=C("ZodEmail",(e,t)=>{kv.init(e,t),We.init(e,t)});function H1(e){return np(Fp,e)}var Vl=C("ZodGUID",(e,t)=>{_v.init(e,t),We.init(e,t)});function K1(e){return Fl(Vl,e)}var sn=C("ZodUUID",(e,t)=>{wv.init(e,t),We.init(e,t)});function Y1(e){return ip(sn,e)}function X1(e){return ap(sn,e)}function Q1(e){return op(sn,e)}function eO(e){return sp(sn,e)}var Jl=C("ZodURL",(e,t)=>{xv.init(e,t),We.init(e,t)});function tO(e){return Ul(Jl,e)}function rO(e){return Ul(Jl,{protocol:/^https?$/,hostname:$r.domain,...U.normalizeParams(e)})}var Up=C("ZodEmoji",(e,t)=>{Sv.init(e,t),We.init(e,t)});function nO(e){return lp(Up,e)}var qp=C("ZodNanoID",(e,t)=>{Iv.init(e,t),We.init(e,t)});function iO(e){return up(qp,e)}var Bp=C("ZodCUID",(e,t)=>{Ev.init(e,t),We.init(e,t)});function aO(e){return cp(Bp,e)}var Vp=C("ZodCUID2",(e,t)=>{Tv.init(e,t),We.init(e,t)});function oO(e){return dp(Vp,e)}var Zp=C("ZodULID",(e,t)=>{$v.init(e,t),We.init(e,t)});function sO(e){return pp(Zp,e)}var Wp=C("ZodXID",(e,t)=>{Cv.init(e,t),We.init(e,t)});function lO(e){return fp(Wp,e)}var Gp=C("ZodKSUID",(e,t)=>{Av.init(e,t),We.init(e,t)});function uO(e){return mp(Gp,e)}var Jp=C("ZodIPv4",(e,t)=>{Pv.init(e,t),We.init(e,t)});function cO(e){return hp(Jp,e)}var hw=C("ZodMAC",(e,t)=>{Rv.init(e,t),We.init(e,t)});function dO(e){return Db(hw,e)}var Hp=C("ZodIPv6",(e,t)=>{zv.init(e,t),We.init(e,t)});function pO(e){return gp(Hp,e)}var Kp=C("ZodCIDRv4",(e,t)=>{Mv.init(e,t),We.init(e,t)});function fO(e){return yp(Kp,e)}var Yp=C("ZodCIDRv6",(e,t)=>{Lv.init(e,t),We.init(e,t)});function mO(e){return vp(Yp,e)}var Xp=C("ZodBase64",(e,t)=>{Uv.init(e,t),We.init(e,t)});function hO(e){return bp(Xp,e)}var Qp=C("ZodBase64URL",(e,t)=>{qv.init(e,t),We.init(e,t)});function gO(e){return _p(Qp,e)}var ef=C("ZodE164",(e,t)=>{Bv.init(e,t),We.init(e,t)});function yO(e){return wp(ef,e)}var tf=C("ZodJWT",(e,t)=>{Vv.init(e,t),We.init(e,t)});function vO(e){return kp(tf,e)}var No=C("ZodCustomStringFormat",(e,t)=>{Zv.init(e,t),We.init(e,t)});function bO(e,t,r={}){return Eo(No,e,t,r)}function _O(e){return Eo(No,"hostname",$r.hostname,e)}function wO(e){return Eo(No,"hex",$r.hex,e)}function kO(e,t){let r=t?.enc??"hex",i=`${e}_${r}`,n=$r[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return Eo(No,i,n,t)}var Do=C("ZodNumber",(e,t)=>{Jd.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(i,n,a)=>v_(e,i,n,a),e.gt=(i,n)=>e.check(an(i,n)),e.gte=(i,n)=>e.check(Ut(i,n)),e.min=(i,n)=>e.check(Ut(i,n)),e.lt=(i,n)=>e.check(nn(i,n)),e.lte=(i,n)=>e.check(fr(i,n)),e.max=(i,n)=>e.check(fr(i,n)),e.int=i=>e.check(Mp(i)),e.safe=i=>e.check(Mp(i)),e.positive=i=>e.check(an(0,i)),e.nonnegative=i=>e.check(Ut(0,i)),e.negative=i=>e.check(nn(0,i)),e.nonpositive=i=>e.check(fr(0,i)),e.multipleOf=(i,n)=>e.check(vi(i,n)),e.step=(i,n)=>e.check(vi(i,n)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function gw(e){return Lb(Do,e)}var da=C("ZodNumberFormat",(e,t)=>{Wv.init(e,t),Do.init(e,t)});function Mp(e){return Ub(da,e)}function xO(e){return qb(da,e)}function SO(e){return Bb(da,e)}function IO(e){return Vb(da,e)}function EO(e){return Zb(da,e)}var jo=C("ZodBoolean",(e,t)=>{Pl.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>b_(e,r,i,n)});function yw(e){return Wb(jo,e)}var Po=C("ZodBigInt",(e,t)=>{Hd.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(i,n,a)=>__(e,i,n,a),e.gte=(i,n)=>e.check(Ut(i,n)),e.min=(i,n)=>e.check(Ut(i,n)),e.gt=(i,n)=>e.check(an(i,n)),e.gte=(i,n)=>e.check(Ut(i,n)),e.min=(i,n)=>e.check(Ut(i,n)),e.lt=(i,n)=>e.check(nn(i,n)),e.lte=(i,n)=>e.check(fr(i,n)),e.max=(i,n)=>e.check(fr(i,n)),e.positive=i=>e.check(an(BigInt(0),i)),e.negative=i=>e.check(nn(BigInt(0),i)),e.nonpositive=i=>e.check(fr(BigInt(0),i)),e.nonnegative=i=>e.check(Ut(BigInt(0),i)),e.multipleOf=(i,n)=>e.check(vi(i,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function TO(e){return Jb(Po,e)}var rf=C("ZodBigIntFormat",(e,t)=>{Gv.init(e,t),Po.init(e,t)});function $O(e){return Kb(rf,e)}function CO(e){return Yb(rf,e)}var vw=C("ZodSymbol",(e,t)=>{Jv.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>w_(e,r,i,n)});function AO(e){return Xb(vw,e)}var bw=C("ZodUndefined",(e,t)=>{Hv.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>x_(e,r,i,n)});function OO(e){return Qb(bw,e)}var _w=C("ZodNull",(e,t)=>{Kv.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>k_(e,r,i,n)});function ww(e){return e_(_w,e)}var kw=C("ZodAny",(e,t)=>{Yv.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>E_(e,r,i,n)});function NO(){return t_(kw)}var xw=C("ZodUnknown",(e,t)=>{Xv.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>T_(e,r,i,n)});function ca(){return r_(xw)}var Sw=C("ZodNever",(e,t)=>{Qv.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>I_(e,r,i,n)});function nf(e){return n_(Sw,e)}var Iw=C("ZodVoid",(e,t)=>{eb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>S_(e,r,i,n)});function DO(e){return i_(Iw,e)}var Hl=C("ZodDate",(e,t)=>{tb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(i,n,a)=>$_(e,i,n,a),e.min=(i,n)=>e.check(Ut(i,n)),e.max=(i,n)=>e.check(fr(i,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function jO(e){return a_(Hl,e)}var Ew=C("ZodArray",(e,t)=>{rb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>F_(e,r,i,n),e.element=t.element,e.min=(r,i)=>e.check(En(r,i)),e.nonempty=r=>e.check(En(1,r)),e.max=(r,i)=>e.check(la(r,i)),e.length=(r,i)=>e.check(ua(r,i)),e.unwrap=()=>e.element});function Kl(e,t){return l_(Ew,e,t)}function PO(e){let t=e._zod.def.shape;return of(Object.keys(t))}var Yl=C("ZodObject",(e,t)=>{nb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>U_(e,r,i,n),U.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>of(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ca()}),e.loose=()=>e.clone({...e._zod.def,catchall:ca()}),e.strict=()=>e.clone({...e._zod.def,catchall:nf()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>U.extend(e,r),e.safeExtend=r=>U.safeExtend(e,r),e.merge=r=>U.merge(e,r),e.pick=r=>U.pick(e,r),e.omit=r=>U.omit(e,r),e.partial=(...r)=>U.partial(lf,e,r[0]),e.required=(...r)=>U.required(uf,e,r[0])});function zO(e,t){let r={type:"object",shape:e??{},...U.normalizeParams(t)};return new Yl(r)}function RO(e,t){return new Yl({type:"object",shape:e,catchall:nf(),...U.normalizeParams(t)})}function MO(e,t){return new Yl({type:"object",shape:e,catchall:ca(),...U.normalizeParams(t)})}var Xl=C("ZodUnion",(e,t)=>{zl.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Cp(e,r,i,n),e.options=t.options});function af(e,t){return new Xl({type:"union",options:e,...U.normalizeParams(t)})}var Tw=C("ZodXor",(e,t)=>{Xl.init(e,t),ib.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Cp(e,r,i,n),e.options=t.options});function LO(e,t){return new Tw({type:"union",options:e,inclusive:!1,...U.normalizeParams(t)})}var $w=C("ZodDiscriminatedUnion",(e,t)=>{Xl.init(e,t),ab.init(e,t)});function FO(e,t,r){return new $w({type:"union",options:t,discriminator:e,...U.normalizeParams(r)})}var Cw=C("ZodIntersection",(e,t)=>{ob.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>q_(e,r,i,n)});function Aw(e,t){return new Cw({type:"intersection",left:e,right:t})}var Ow=C("ZodTuple",(e,t)=>{Kd.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>B_(e,r,i,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function Nw(e,t,r){let i=t instanceof _e,n=i?r:t,a=i?t:null;return new Ow({type:"tuple",items:e,rest:a,...U.normalizeParams(n)})}var Ql=C("ZodRecord",(e,t)=>{sb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>V_(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType});function Dw(e,t,r){return new Ql({type:"record",keyType:e,valueType:t,...U.normalizeParams(r)})}function UO(e,t,r){let i=Ft(e);return i._zod.values=void 0,new Ql({type:"record",keyType:i,valueType:t,...U.normalizeParams(r)})}function qO(e,t,r){return new Ql({type:"record",keyType:e,valueType:t,mode:"loose",...U.normalizeParams(r)})}var jw=C("ZodMap",(e,t)=>{lb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>M_(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(on(...r)),e.nonempty=r=>e.check(on(1,r)),e.max=(...r)=>e.check(bi(...r)),e.size=(...r)=>e.check(sa(...r))});function BO(e,t,r){return new jw({type:"map",keyType:e,valueType:t,...U.normalizeParams(r)})}var Pw=C("ZodSet",(e,t)=>{ub.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>L_(e,r,i,n),e.min=(...r)=>e.check(on(...r)),e.nonempty=r=>e.check(on(1,r)),e.max=(...r)=>e.check(bi(...r)),e.size=(...r)=>e.check(sa(...r))});function VO(e,t){return new Pw({type:"set",valueType:e,...U.normalizeParams(t)})}var Ao=C("ZodEnum",(e,t)=>{cb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(i,n,a)=>C_(e,i,n,a),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(i,n)=>{let a={};for(let o of i)if(r.has(o))a[o]=t.entries[o];else throw new Error(`Key ${o} not found in enum`);return new Ao({...t,checks:[],...U.normalizeParams(n),entries:a})},e.exclude=(i,n)=>{let a={...t.entries};for(let o of i)if(r.has(o))delete a[o];else throw new Error(`Key ${o} not found in enum`);return new Ao({...t,checks:[],...U.normalizeParams(n),entries:a})}});function of(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Ao({type:"enum",entries:r,...U.normalizeParams(t)})}function ZO(e,t){return new Ao({type:"enum",entries:e,...U.normalizeParams(t)})}var zw=C("ZodLiteral",(e,t)=>{db.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>A_(e,r,i,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function WO(e,t){return new zw({type:"literal",values:Array.isArray(e)?e:[e],...U.normalizeParams(t)})}var Rw=C("ZodFile",(e,t)=>{pb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>D_(e,r,i,n),e.min=(r,i)=>e.check(on(r,i)),e.max=(r,i)=>e.check(bi(r,i)),e.mime=(r,i)=>e.check(_o(Array.isArray(r)?r:[r],i))});function GO(e){return u_(Rw,e)}var Mw=C("ZodTransform",(e,t)=>{fb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>R_(e,r,i,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new fi(e.constructor.name);r.addIssue=a=>{if(typeof a=="string")r.issues.push(U.issue(a,r.value,t));else{let o=a;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=e),r.issues.push(U.issue(o))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(a=>(r.value=a,r)):(r.value=n,r)}});function sf(e){return new Mw({type:"transform",transform:e})}var lf=C("ZodOptional",(e,t)=>{Yd.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ap(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Zl(e){return new lf({type:"optional",innerType:e})}var Lw=C("ZodExactOptional",(e,t)=>{mb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ap(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Fw(e){return new Lw({type:"optional",innerType:e})}var Uw=C("ZodNullable",(e,t)=>{hb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Z_(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Wl(e){return new Uw({type:"nullable",innerType:e})}function JO(e){return Zl(Wl(e))}var qw=C("ZodDefault",(e,t)=>{gb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>G_(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Bw(e,t){return new qw({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():U.shallowClone(t)}})}var Vw=C("ZodPrefault",(e,t)=>{yb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>J_(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Zw(e,t){return new Vw({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():U.shallowClone(t)}})}var uf=C("ZodNonOptional",(e,t)=>{vb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>W_(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Ww(e,t){return new uf({type:"nonoptional",innerType:e,...U.normalizeParams(t)})}var Gw=C("ZodSuccess",(e,t)=>{bb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>j_(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function HO(e){return new Gw({type:"success",innerType:e})}var Jw=C("ZodCatch",(e,t)=>{_b.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>H_(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Hw(e,t){return new Jw({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Kw=C("ZodNaN",(e,t)=>{wb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>O_(e,r,i,n)});function KO(e){return s_(Kw,e)}var cf=C("ZodPipe",(e,t)=>{kb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>K_(e,r,i,n),e.in=t.in,e.out=t.out});function Gl(e,t){return new cf({type:"pipe",in:e,out:t})}var df=C("ZodCodec",(e,t)=>{cf.init(e,t),Rl.init(e,t)});function YO(e,t,r){return new df({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var Yw=C("ZodReadonly",(e,t)=>{xb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Y_(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Xw(e){return new Yw({type:"readonly",innerType:e})}var Qw=C("ZodTemplateLiteral",(e,t)=>{Sb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>N_(e,r,i,n)});function XO(e,t){return new Qw({type:"template_literal",parts:e,...U.normalizeParams(t)})}var ek=C("ZodLazy",(e,t)=>{Tb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Q_(e,r,i,n),e.unwrap=()=>e._zod.def.getter()});function tk(e){return new ek({type:"lazy",getter:e})}var rk=C("ZodPromise",(e,t)=>{Eb.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>X_(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function QO(e){return new rk({type:"promise",innerType:e})}var nk=C("ZodFunction",(e,t)=>{Ib.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>z_(e,r,i,n)});function eN(e){return new nk({type:"function",input:Array.isArray(e?.input)?Nw(e?.input):e?.input??Kl(ca()),output:e?.output??ca()})}var eu=C("ZodCustom",(e,t)=>{$b.init(e,t),Se.init(e,t),e._zod.processJSONSchema=(r,i,n)=>P_(e,r,i,n)});function tN(e){let t=new Ge({check:"custom"});return t._zod.check=e,t}function rN(e,t){return c_(eu,e??(()=>!0),t)}function ik(e,t={}){return d_(eu,e,t)}function ak(e){return p_(e)}var nN=f_,iN=m_;function aN(e,t={}){let r=new eu({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...U.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}var oN=(...e)=>h_({Codec:df,Boolean:jo,String:Oo},...e);function sN(e){let t=tk(()=>af([Rp(e),gw(),yw(),ww(),Kl(t),Dw(Rp(),t)]));return t}function lN(e,t){return Gl(sf(e),t)}var r9={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 n9(e){Qe({customError:e})}function i9(){return Qe().customError}var ok;ok||(ok={});var Q={...ql,...Np,iso:Co},a9=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 o9(e,t){let r=e.$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":t??"draft-2020-12"}function s9(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function uN(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return Q.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return Q.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let a=s9(n,t),o=Ct(a,t);return t.refs.set(n,o),t.processing.delete(n),o}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return Q.null();if(n.length===0)return Q.never();if(n.length===1)return Q.literal(n[0]);if(n.every(o=>typeof o=="string"))return Q.enum(n);let a=n.map(o=>Q.literal(o));return a.length<2?a[0]:Q.union([a[0],a[1],...a.slice(2)])}if(e.const!==void 0)return Q.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(a=>{let o={...e,type:a};return uN(o,t)});return n.length===0?Q.never():n.length===1?n[0]:Q.union(n)}if(!r)return Q.any();let i;switch(r){case"string":{let n=Q.string();if(e.format){let a=e.format;a==="email"?n=n.check(Q.email()):a==="uri"||a==="uri-reference"?n=n.check(Q.url()):a==="uuid"||a==="guid"?n=n.check(Q.uuid()):a==="date-time"?n=n.check(Q.iso.datetime()):a==="date"?n=n.check(Q.iso.date()):a==="time"?n=n.check(Q.iso.time()):a==="duration"?n=n.check(Q.iso.duration()):a==="ipv4"?n=n.check(Q.ipv4()):a==="ipv6"?n=n.check(Q.ipv6()):a==="mac"?n=n.check(Q.mac()):a==="cidr"?n=n.check(Q.cidrv4()):a==="cidr-v6"?n=n.check(Q.cidrv6()):a==="base64"?n=n.check(Q.base64()):a==="base64url"?n=n.check(Q.base64url()):a==="e164"?n=n.check(Q.e164()):a==="jwt"?n=n.check(Q.jwt()):a==="emoji"?n=n.check(Q.emoji()):a==="nanoid"?n=n.check(Q.nanoid()):a==="cuid"?n=n.check(Q.cuid()):a==="cuid2"?n=n.check(Q.cuid2()):a==="ulid"?n=n.check(Q.ulid()):a==="xid"?n=n.check(Q.xid()):a==="ksuid"&&(n=n.check(Q.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),i=n;break}case"number":case"integer":{let n=r==="integer"?Q.number().int():Q.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),i=n;break}case"boolean":{i=Q.boolean();break}case"null":{i=Q.null();break}case"object":{let n={},a=e.properties||{},o=new Set(e.required||[]);for(let[u,c]of Object.entries(a)){let d=Ct(c,t);n[u]=o.has(u)?d:d.optional()}if(e.propertyNames){let u=Ct(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?Ct(e.additionalProperties,t):Q.any();if(Object.keys(n).length===0){i=Q.record(u,c);break}let d=Q.object(n).passthrough(),p=Q.looseRecord(u,c);i=Q.intersection(d,p);break}if(e.patternProperties){let u=e.patternProperties,c=Object.keys(u),d=[];for(let f of c){let m=Ct(u[f],t),g=Q.string().regex(new RegExp(f));d.push(Q.looseRecord(g,m))}let p=[];if(Object.keys(n).length>0&&p.push(Q.object(n).passthrough()),p.push(...d),p.length===0)i=Q.object({}).passthrough();else if(p.length===1)i=p[0];else{let f=Q.intersection(p[0],p[1]);for(let m=2;m<p.length;m++)f=Q.intersection(f,p[m]);i=f}break}let s=Q.object(n);e.additionalProperties===!1?i=s.strict():typeof e.additionalProperties=="object"?i=s.catchall(Ct(e.additionalProperties,t)):i=s.passthrough();break}case"array":{let n=e.prefixItems,a=e.items;if(n&&Array.isArray(n)){let o=n.map(u=>Ct(u,t)),s=a&&typeof a=="object"&&!Array.isArray(a)?Ct(a,t):void 0;s?i=Q.tuple(o).rest(s):i=Q.tuple(o),typeof e.minItems=="number"&&(i=i.check(Q.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(Q.maxLength(e.maxItems)))}else if(Array.isArray(a)){let o=a.map(u=>Ct(u,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?Ct(e.additionalItems,t):void 0;s?i=Q.tuple(o).rest(s):i=Q.tuple(o),typeof e.minItems=="number"&&(i=i.check(Q.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(Q.maxLength(e.maxItems)))}else if(a!==void 0){let o=Ct(a,t),s=Q.array(o);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=Q.array(Q.any());break}default:throw new Error(`Unsupported type: ${r}`)}return e.description&&(i=i.describe(e.description)),e.default!==void 0&&(i=i.default(e.default)),i}function Ct(e,t){if(typeof e=="boolean")return e?Q.any():Q.never();let r=uN(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(c=>Ct(c,t)),u=Q.union(s);r=i?Q.intersection(r,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(c=>Ct(c,t)),u=Q.xor(s);r=i?Q.intersection(r,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=i?r:Q.any();else{let s=i?r:Ct(e.allOf[0],t),u=i?0:1;for(let c=u;c<e.allOf.length;c++)s=Q.intersection(s,Ct(e.allOf[c],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=Q.nullable(r)),e.readOnly===!0&&(r=Q.readonly(r));let n={},a=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of a)s in e&&(n[s]=e[s]);let o=["contentEncoding","contentMediaType","contentSchema"];for(let s of o)s in e&&(n[s]=e[s]);for(let s of Object.keys(e))a9.has(s)||(n[s]=e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),r}function cN(e,t){if(typeof e=="boolean")return e?Q.any():Q.never();let r=o9(e,t?.defaultTarget),i=e.$defs||e.definitions||{},n={version:r,defs:i,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??_t};return Ct(e,n)}var sk={};Or(sk,{bigint:()=>d9,boolean:()=>c9,date:()=>p9,number:()=>u9,string:()=>l9});function l9(e){return Nb(Oo,e)}function u9(e){return Fb(Do,e)}function c9(e){return Gb(jo,e)}function d9(e){return Hb(Po,e)}function p9(e){return o_(Hl,e)}Qe(Xd());var De;(function(e){e.assertEqual=n=>{};function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{let a={};for(let o of n)a[o]=o;return a},e.getValidEnumValues=n=>{let a=e.objectKeys(n).filter(s=>typeof n[n[s]]!="number"),o={};for(let s of a)o[s]=n[s];return e.objectValues(o)},e.objectValues=n=>e.objectKeys(n).map(function(a){return n[a]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let a=[];for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&a.push(o);return a},e.find=(n,a)=>{for(let o of n)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function i(n,a=" | "){return n.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=i,e.jsonStringifyReplacer=(n,a)=>typeof a=="bigint"?a.toString():a})(De||(De={}));var dN;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(dN||(dN={}));var ne=De.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),$n=e=>{switch(typeof e){case"undefined":return ne.undefined;case"string":return ne.string;case"number":return Number.isNaN(e)?ne.nan:ne.number;case"boolean":return ne.boolean;case"function":return ne.function;case"bigint":return ne.bigint;case"symbol":return ne.symbol;case"object":return Array.isArray(e)?ne.array:e===null?ne.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ne.promise:typeof Map<"u"&&e instanceof Map?ne.map:typeof Set<"u"&&e instanceof Set?ne.set:typeof Date<"u"&&e instanceof Date?ne.date:ne.object;default:return ne.unknown}};var L=De.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var mr=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(a){return a.message},i={_errors:[]},n=a=>{for(let o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(n);else if(o.code==="invalid_return_type")n(o.returnTypeError);else if(o.code==="invalid_arguments")n(o.argumentsError);else if(o.path.length===0)i._errors.push(r(o));else{let s=i,u=0;for(;u<o.path.length;){let c=o.path[u];u===o.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(r(o))):s[c]=s[c]||{_errors:[]},s=s[c],u++}}};return n(this),i}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,De.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r=Object.create(null),i=[];for(let n of this.issues)if(n.path.length>0){let a=n.path[0];r[a]=r[a]||[],r[a].push(t(n))}else i.push(t(n));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}};mr.create=e=>new mr(e);var m9=(e,t)=>{let r;switch(e.code){case L.invalid_type:e.received===ne.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case L.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,De.jsonStringifyReplacer)}`;break;case L.unrecognized_keys:r=`Unrecognized key(s) in object: ${De.joinValues(e.keys,", ")}`;break;case L.invalid_union:r="Invalid input";break;case L.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${De.joinValues(e.options)}`;break;case L.invalid_enum_value:r=`Invalid enum value. Expected ${De.joinValues(e.options)}, received '${e.received}'`;break;case L.invalid_arguments:r="Invalid function arguments";break;case L.invalid_return_type:r="Invalid function return type";break;case L.invalid_date:r="Invalid date";break;case L.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:De.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case L.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case L.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case L.custom:r="Invalid input";break;case L.invalid_intersection_types:r="Intersection results could not be merged";break;case L.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case L.not_finite:r="Number must be finite";break;default:r=t.defaultError,De.assertNever(e)}return{message:r}},xi=m9;var h9=xi;function tu(){return h9}var pf=e=>{let{data:t,path:r,errorMaps:i,issueData:n}=e,a=[...r,...n.path||[]],o={...n,path:a};if(n.message!==void 0)return{...n,path:a,message:n.message};let s="",u=i.filter(c=>!!c).slice().reverse();for(let c of u)s=c(o,{data:t,defaultError:s}).message;return{...n,path:a,message:s}};function ee(e,t){let r=tu(),i=pf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===xi?void 0:xi].filter(n=>!!n)});e.common.issues.push(i)}var At=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let i=[];for(let n of r){if(n.status==="aborted")return ye;n.status==="dirty"&&t.dirty(),i.push(n.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,r){let i=[];for(let n of r){let a=await n.key,o=await n.value;i.push({key:a,value:o})}return e.mergeObjectSync(t,i)}static mergeObjectSync(t,r){let i={};for(let n of r){let{key:a,value:o}=n;if(a.status==="aborted"||o.status==="aborted")return ye;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||n.alwaysSet)&&(i[a.value]=o.value)}return{status:t.value,value:i}}},ye=Object.freeze({status:"aborted"}),zo=e=>({status:"dirty",value:e}),Bt=e=>({status:"valid",value:e}),lk=e=>e.status==="aborted",uk=e=>e.status==="dirty",pa=e=>e.status==="valid",ru=e=>typeof Promise<"u"&&e instanceof Promise;var ae;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(ae||(ae={}));var Cr=class{constructor(t,r,i,n){this._cachedPath=[],this.parent=t,this.data=r,this._path=i,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},pN=(e,t)=>{if(pa(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new mr(e.common.issues);return this._error=r,this._error}}};function Ie(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:i,description:n}=e;if(t&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:n}:{errorMap:(o,s)=>{let{message:u}=e;return o.code==="invalid_enum_value"?{message:u??s.defaultError}:typeof s.data>"u"?{message:u??i??s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:u??r??s.defaultError}},description:n}}var Te=class{get description(){return this._def.description}_getType(t){return $n(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:$n(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new At,ctx:{common:t.parent.common,data:t.data,parsedType:$n(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(ru(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let i=this.safeParse(t,r);if(i.success)return i.data;throw i.error}safeParse(t,r){let i={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:$n(t)},n=this._parseSync({data:t,path:i.path,parent:i});return pN(i,n)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:$n(t)};if(!this["~standard"].async)try{let i=this._parseSync({data:t,path:[],parent:r});return pa(i)?{value:i.value}:{issues:r.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(i=>pa(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(t,r){let i=await this.safeParseAsync(t,r);if(i.success)return i.data;throw i.error}async safeParseAsync(t,r){let i={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:$n(t)},n=this._parse({data:t,path:i.path,parent:i}),a=await(ru(n)?n:Promise.resolve(n));return pN(i,a)}refine(t,r){let i=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,a)=>{let o=t(n),s=()=>a.addIssue({code:L.custom,...i(n)});return typeof Promise<"u"&&o instanceof Promise?o.then(u=>u?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,r){return this._refinement((i,n)=>t(i)?!0:(n.addIssue(typeof r=="function"?r(i,n):r),!1))}_refinement(t){return new qr({schema:this,typeName:B.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Ur.create(this,this._def)}nullable(){return On.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ii.create(this)}promise(){return fa.create(this,this._def)}or(t){return Uo.create([this,t],this._def)}and(t){return qo.create(this,t,this._def)}transform(t){return new qr({...Ie(this._def),schema:this,typeName:B.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new Go({...Ie(this._def),innerType:this,defaultValue:r,typeName:B.ZodDefault})}brand(){return new ff({typeName:B.ZodBranded,type:this,...Ie(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new Jo({...Ie(this._def),innerType:this,catchValue:r,typeName:B.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return mf.create(this,t)}readonly(){return Ho.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},g9=/^c[^\s-]{8,}$/i,y9=/^[0-9a-z]+$/,v9=/^[0-9A-HJKMNP-TV-Z]{26}$/i,b9=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,_9=/^[a-z0-9_-]{21}$/i,w9=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,k9=/^[-+]?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)?)??$/,x9=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,S9="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",ck,I9=/^(?:(?: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])$/,E9=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,T9=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,$9=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,C9=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,A9=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,fN="((\\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])))",O9=new RegExp(`^${fN}$`);function mN(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function N9(e){return new RegExp(`^${mN(e)}$`)}function D9(e){let t=`${fN}T${mN(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function j9(e,t){return!!((t==="v4"||!t)&&I9.test(e)||(t==="v6"||!t)&&T9.test(e))}function P9(e,t){if(!w9.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let i=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),n=JSON.parse(atob(i));return!(typeof n!="object"||n===null||"typ"in n&&n?.typ!=="JWT"||!n.alg||t&&n.alg!==t)}catch{return!1}}function z9(e,t){return!!((t==="v4"||!t)&&E9.test(e)||(t==="v6"||!t)&&$9.test(e))}var Mo=class e extends Te{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ne.string){let a=this._getOrReturnCtx(t);return ee(a,{code:L.invalid_type,expected:ne.string,received:a.parsedType}),ye}let i=new At,n;for(let a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(n=this._getOrReturnCtx(t,n),ee(n,{code:L.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),i.dirty());else if(a.kind==="max")t.data.length>a.value&&(n=this._getOrReturnCtx(t,n),ee(n,{code:L.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),i.dirty());else if(a.kind==="length"){let o=t.data.length>a.value,s=t.data.length<a.value;(o||s)&&(n=this._getOrReturnCtx(t,n),o?ee(n,{code:L.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&ee(n,{code:L.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),i.dirty())}else if(a.kind==="email")x9.test(t.data)||(n=this._getOrReturnCtx(t,n),ee(n,{validation:"email",code:L.invalid_string,message:a.message}),i.dirty());else if(a.kind==="emoji")ck||(ck=new RegExp(S9,"u")),ck.test(t.data)||(n=this._getOrReturnCtx(t,n),ee(n,{validation:"emoji",code:L.invalid_string,message:a.message}),i.dirty());else if(a.kind==="uuid")b9.test(t.data)||(n=this._getOrReturnCtx(t,n),ee(n,{validation:"uuid",code:L.invalid_string,message:a.message}),i.dirty());else if(a.kind==="nanoid")_9.test(t.data)||(n=this._getOrReturnCtx(t,n),ee(n,{validation:"nanoid",code:L.invalid_string,message:a.message}),i.dirty());else if(a.kind==="cuid")g9.test(t.data)||(n=this._getOrReturnCtx(t,n),ee(n,{validation:"cuid",code:L.invalid_string,message:a.message}),i.dirty());else if(a.kind==="cuid2")y9.test(t.data)||(n=this._getOrReturnCtx(t,n),ee(n,{validation:"cuid2",code:L.invalid_string,message:a.message}),i.dirty());else if(a.kind==="ulid")v9.test(t.data)||(n=this._getOrReturnCtx(t,n),ee(n,{validation:"ulid",code:L.invalid_string,message:a.message}),i.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{n=this._getOrReturnCtx(t,n),ee(n,{validation:"url",code:L.invalid_string,message:a.message}),i.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(n=this._getOrReturnCtx(t,n),ee(n,{validation:"regex",code:L.invalid_string,message:a.message}),i.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(n=this._getOrReturnCtx(t,n),ee(n,{code:L.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),i.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(n=this._getOrReturnCtx(t,n),ee(n,{code:L.invalid_string,validation:{startsWith:a.value},message:a.message}),i.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(n=this._getOrReturnCtx(t,n),ee(n,{code:L.invalid_string,validation:{endsWith:a.value},message:a.message}),i.dirty()):a.kind==="datetime"?D9(a).test(t.data)||(n=this._getOrReturnCtx(t,n),ee(n,{code:L.invalid_string,validation:"datetime",message:a.message}),i.dirty()):a.kind==="date"?O9.test(t.data)||(n=this._getOrReturnCtx(t,n),ee(n,{code:L.invalid_string,validation:"date",message:a.message}),i.dirty()):a.kind==="time"?N9(a).test(t.data)||(n=this._getOrReturnCtx(t,n),ee(n,{code:L.invalid_string,validation:"time",message:a.message}),i.dirty()):a.kind==="duration"?k9.test(t.data)||(n=this._getOrReturnCtx(t,n),ee(n,{validation:"duration",code:L.invalid_string,message:a.message}),i.dirty()):a.kind==="ip"?j9(t.data,a.version)||(n=this._getOrReturnCtx(t,n),ee(n,{validation:"ip",code:L.invalid_string,message:a.message}),i.dirty()):a.kind==="jwt"?P9(t.data,a.alg)||(n=this._getOrReturnCtx(t,n),ee(n,{validation:"jwt",code:L.invalid_string,message:a.message}),i.dirty()):a.kind==="cidr"?z9(t.data,a.version)||(n=this._getOrReturnCtx(t,n),ee(n,{validation:"cidr",code:L.invalid_string,message:a.message}),i.dirty()):a.kind==="base64"?C9.test(t.data)||(n=this._getOrReturnCtx(t,n),ee(n,{validation:"base64",code:L.invalid_string,message:a.message}),i.dirty()):a.kind==="base64url"?A9.test(t.data)||(n=this._getOrReturnCtx(t,n),ee(n,{validation:"base64url",code:L.invalid_string,message:a.message}),i.dirty()):De.assertNever(a);return{status:i.value,value:t.data}}_regex(t,r,i){return this.refinement(n=>t.test(n),{validation:r,code:L.invalid_string,...ae.errToObj(i)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ae.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ae.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ae.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ae.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ae.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ae.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ae.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ae.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ae.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ae.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ae.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ae.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ae.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...ae.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...ae.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...ae.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...ae.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...ae.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...ae.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...ae.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...ae.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...ae.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...ae.errToObj(r)})}nonempty(t){return this.min(1,ae.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};Mo.create=e=>new Mo({checks:[],typeName:B.ZodString,coerce:e?.coerce??!1,...Ie(e)});function R9(e,t){let r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,n=r>i?r:i,a=Number.parseInt(e.toFixed(n).replace(".","")),o=Number.parseInt(t.toFixed(n).replace(".",""));return a%o/10**n}var nu=class e extends Te{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ne.number){let a=this._getOrReturnCtx(t);return ee(a,{code:L.invalid_type,expected:ne.number,received:a.parsedType}),ye}let i,n=new At;for(let a of this._def.checks)a.kind==="int"?De.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),ee(i,{code:L.invalid_type,expected:"integer",received:"float",message:a.message}),n.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(i=this._getOrReturnCtx(t,i),ee(i,{code:L.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(i=this._getOrReturnCtx(t,i),ee(i,{code:L.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):a.kind==="multipleOf"?R9(t.data,a.value)!==0&&(i=this._getOrReturnCtx(t,i),ee(i,{code:L.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),ee(i,{code:L.not_finite,message:a.message}),n.dirty()):De.assertNever(a);return{status:n.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,ae.toString(r))}gt(t,r){return this.setLimit("min",t,!1,ae.toString(r))}lte(t,r){return this.setLimit("max",t,!0,ae.toString(r))}lt(t,r){return this.setLimit("max",t,!1,ae.toString(r))}setLimit(t,r,i,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:ae.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ae.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ae.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ae.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ae.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ae.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:ae.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:ae.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ae.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ae.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&De.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(r)&&Number.isFinite(t)}};nu.create=e=>new nu({checks:[],typeName:B.ZodNumber,coerce:e?.coerce||!1,...Ie(e)});var iu=class e extends Te{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==ne.bigint)return this._getInvalidInput(t);let i,n=new At;for(let a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(i=this._getOrReturnCtx(t,i),ee(i,{code:L.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(i=this._getOrReturnCtx(t,i),ee(i,{code:L.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),ee(i,{code:L.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):De.assertNever(a);return{status:n.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return ee(r,{code:L.invalid_type,expected:ne.bigint,received:r.parsedType}),ye}gte(t,r){return this.setLimit("min",t,!0,ae.toString(r))}gt(t,r){return this.setLimit("min",t,!1,ae.toString(r))}lte(t,r){return this.setLimit("max",t,!0,ae.toString(r))}lt(t,r){return this.setLimit("max",t,!1,ae.toString(r))}setLimit(t,r,i,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:ae.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ae.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ae.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ae.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ae.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:ae.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};iu.create=e=>new iu({checks:[],typeName:B.ZodBigInt,coerce:e?.coerce??!1,...Ie(e)});var au=class extends Te{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ne.boolean){let i=this._getOrReturnCtx(t);return ee(i,{code:L.invalid_type,expected:ne.boolean,received:i.parsedType}),ye}return Bt(t.data)}};au.create=e=>new au({typeName:B.ZodBoolean,coerce:e?.coerce||!1,...Ie(e)});var ou=class e extends Te{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ne.date){let a=this._getOrReturnCtx(t);return ee(a,{code:L.invalid_type,expected:ne.date,received:a.parsedType}),ye}if(Number.isNaN(t.data.getTime())){let a=this._getOrReturnCtx(t);return ee(a,{code:L.invalid_date}),ye}let i=new At,n;for(let a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(n=this._getOrReturnCtx(t,n),ee(n,{code:L.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),i.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(n=this._getOrReturnCtx(t,n),ee(n,{code:L.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),i.dirty()):De.assertNever(a);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:ae.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:ae.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};ou.create=e=>new ou({checks:[],coerce:e?.coerce||!1,typeName:B.ZodDate,...Ie(e)});var su=class extends Te{_parse(t){if(this._getType(t)!==ne.symbol){let i=this._getOrReturnCtx(t);return ee(i,{code:L.invalid_type,expected:ne.symbol,received:i.parsedType}),ye}return Bt(t.data)}};su.create=e=>new su({typeName:B.ZodSymbol,...Ie(e)});var Lo=class extends Te{_parse(t){if(this._getType(t)!==ne.undefined){let i=this._getOrReturnCtx(t);return ee(i,{code:L.invalid_type,expected:ne.undefined,received:i.parsedType}),ye}return Bt(t.data)}};Lo.create=e=>new Lo({typeName:B.ZodUndefined,...Ie(e)});var Fo=class extends Te{_parse(t){if(this._getType(t)!==ne.null){let i=this._getOrReturnCtx(t);return ee(i,{code:L.invalid_type,expected:ne.null,received:i.parsedType}),ye}return Bt(t.data)}};Fo.create=e=>new Fo({typeName:B.ZodNull,...Ie(e)});var lu=class extends Te{constructor(){super(...arguments),this._any=!0}_parse(t){return Bt(t.data)}};lu.create=e=>new lu({typeName:B.ZodAny,...Ie(e)});var Si=class extends Te{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Bt(t.data)}};Si.create=e=>new Si({typeName:B.ZodUnknown,...Ie(e)});var ln=class extends Te{_parse(t){let r=this._getOrReturnCtx(t);return ee(r,{code:L.invalid_type,expected:ne.never,received:r.parsedType}),ye}};ln.create=e=>new ln({typeName:B.ZodNever,...Ie(e)});var uu=class extends Te{_parse(t){if(this._getType(t)!==ne.undefined){let i=this._getOrReturnCtx(t);return ee(i,{code:L.invalid_type,expected:ne.void,received:i.parsedType}),ye}return Bt(t.data)}};uu.create=e=>new uu({typeName:B.ZodVoid,...Ie(e)});var Ii=class e extends Te{_parse(t){let{ctx:r,status:i}=this._processInputParams(t),n=this._def;if(r.parsedType!==ne.array)return ee(r,{code:L.invalid_type,expected:ne.array,received:r.parsedType}),ye;if(n.exactLength!==null){let o=r.data.length>n.exactLength.value,s=r.data.length<n.exactLength.value;(o||s)&&(ee(r,{code:o?L.too_big:L.too_small,minimum:s?n.exactLength.value:void 0,maximum:o?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),i.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(ee(r,{code:L.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),i.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(ee(r,{code:L.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((o,s)=>n.type._parseAsync(new Cr(r,o,r.path,s)))).then(o=>At.mergeArray(i,o));let a=[...r.data].map((o,s)=>n.type._parseSync(new Cr(r,o,r.path,s)));return At.mergeArray(i,a)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:ae.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:ae.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:ae.toString(r)}})}nonempty(t){return this.min(1,t)}};Ii.create=(e,t)=>new Ii({type:e,minLength:null,maxLength:null,exactLength:null,typeName:B.ZodArray,...Ie(t)});function Ro(e){if(e instanceof hr){let t={};for(let r in e.shape){let i=e.shape[r];t[r]=Ur.create(Ro(i))}return new hr({...e._def,shape:()=>t})}else return e instanceof Ii?new Ii({...e._def,type:Ro(e.element)}):e instanceof Ur?Ur.create(Ro(e.unwrap())):e instanceof On?On.create(Ro(e.unwrap())):e instanceof An?An.create(e.items.map(t=>Ro(t))):e}var hr=class e extends Te{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=De.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==ne.object){let c=this._getOrReturnCtx(t);return ee(c,{code:L.invalid_type,expected:ne.object,received:c.parsedType}),ye}let{status:i,ctx:n}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof ln&&this._def.unknownKeys==="strip"))for(let c in n.data)o.includes(c)||s.push(c);let u=[];for(let c of o){let d=a[c],p=n.data[c];u.push({key:{status:"valid",value:c},value:d._parse(new Cr(n,p,n.path,c)),alwaysSet:c in n.data})}if(this._def.catchall instanceof ln){let c=this._def.unknownKeys;if(c==="passthrough")for(let d of s)u.push({key:{status:"valid",value:d},value:{status:"valid",value:n.data[d]}});else if(c==="strict")s.length>0&&(ee(n,{code:L.unrecognized_keys,keys:s}),i.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let d of s){let p=n.data[d];u.push({key:{status:"valid",value:d},value:c._parse(new Cr(n,p,n.path,d)),alwaysSet:d in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let c=[];for(let d of u){let p=await d.key,f=await d.value;c.push({key:p,value:f,alwaysSet:d.alwaysSet})}return c}).then(c=>At.mergeObjectSync(i,c)):At.mergeObjectSync(i,u)}get shape(){return this._def.shape()}strict(t){return ae.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,i)=>{let n=this._def.errorMap?.(r,i).message??i.defaultError;return r.code==="unrecognized_keys"?{message:ae.errToObj(t).message??n}:{message:n}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:B.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let i of De.objectKeys(t))t[i]&&this.shape[i]&&(r[i]=this.shape[i]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let i of De.objectKeys(this.shape))t[i]||(r[i]=this.shape[i]);return new e({...this._def,shape:()=>r})}deepPartial(){return Ro(this)}partial(t){let r={};for(let i of De.objectKeys(this.shape)){let n=this.shape[i];t&&!t[i]?r[i]=n:r[i]=n.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let i of De.objectKeys(this.shape))if(t&&!t[i])r[i]=this.shape[i];else{let a=this.shape[i];for(;a instanceof Ur;)a=a._def.innerType;r[i]=a}return new e({...this._def,shape:()=>r})}keyof(){return hN(De.objectKeys(this.shape))}};hr.create=(e,t)=>new hr({shape:()=>e,unknownKeys:"strip",catchall:ln.create(),typeName:B.ZodObject,...Ie(t)});hr.strictCreate=(e,t)=>new hr({shape:()=>e,unknownKeys:"strict",catchall:ln.create(),typeName:B.ZodObject,...Ie(t)});hr.lazycreate=(e,t)=>new hr({shape:e,unknownKeys:"strip",catchall:ln.create(),typeName:B.ZodObject,...Ie(t)});var Uo=class extends Te{_parse(t){let{ctx:r}=this._processInputParams(t),i=this._def.options;function n(a){for(let s of a)if(s.result.status==="valid")return s.result;for(let s of a)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;let o=a.map(s=>new mr(s.ctx.common.issues));return ee(r,{code:L.invalid_union,unionErrors:o}),ye}if(r.common.async)return Promise.all(i.map(async a=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await a._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(n);{let a,o=[];for(let u of i){let c={...r,common:{...r.common,issues:[]},parent:null},d=u._parseSync({data:r.data,path:r.path,parent:c});if(d.status==="valid")return d;d.status==="dirty"&&!a&&(a={result:d,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(a)return r.common.issues.push(...a.ctx.common.issues),a.result;let s=o.map(u=>new mr(u));return ee(r,{code:L.invalid_union,unionErrors:s}),ye}}get options(){return this._def.options}};Uo.create=(e,t)=>new Uo({options:e,typeName:B.ZodUnion,...Ie(t)});var Cn=e=>e instanceof Bo?Cn(e.schema):e instanceof qr?Cn(e.innerType()):e instanceof Vo?[e.value]:e instanceof Zo?e.options:e instanceof Wo?De.objectValues(e.enum):e instanceof Go?Cn(e._def.innerType):e instanceof Lo?[void 0]:e instanceof Fo?[null]:e instanceof Ur?[void 0,...Cn(e.unwrap())]:e instanceof On?[null,...Cn(e.unwrap())]:e instanceof ff||e instanceof Ho?Cn(e.unwrap()):e instanceof Jo?Cn(e._def.innerType):[],dk=class e extends Te{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==ne.object)return ee(r,{code:L.invalid_type,expected:ne.object,received:r.parsedType}),ye;let i=this.discriminator,n=r.data[i],a=this.optionsMap.get(n);return a?r.common.async?a._parseAsync({data:r.data,path:r.path,parent:r}):a._parseSync({data:r.data,path:r.path,parent:r}):(ee(r,{code:L.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),ye)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,i){let n=new Map;for(let a of r){let o=Cn(a.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let s of o){if(n.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);n.set(s,a)}}return new e({typeName:B.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,...Ie(i)})}};function pk(e,t){let r=$n(e),i=$n(t);if(e===t)return{valid:!0,data:e};if(r===ne.object&&i===ne.object){let n=De.objectKeys(t),a=De.objectKeys(e).filter(s=>n.indexOf(s)!==-1),o={...e,...t};for(let s of a){let u=pk(e[s],t[s]);if(!u.valid)return{valid:!1};o[s]=u.data}return{valid:!0,data:o}}else if(r===ne.array&&i===ne.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let a=0;a<e.length;a++){let o=e[a],s=t[a],u=pk(o,s);if(!u.valid)return{valid:!1};n.push(u.data)}return{valid:!0,data:n}}else return r===ne.date&&i===ne.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var qo=class extends Te{_parse(t){let{status:r,ctx:i}=this._processInputParams(t),n=(a,o)=>{if(lk(a)||lk(o))return ye;let s=pk(a.value,o.value);return s.valid?((uk(a)||uk(o))&&r.dirty(),{status:r.value,value:s.data}):(ee(i,{code:L.invalid_intersection_types}),ye)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([a,o])=>n(a,o)):n(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};qo.create=(e,t,r)=>new qo({left:e,right:t,typeName:B.ZodIntersection,...Ie(r)});var An=class e extends Te{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==ne.array)return ee(i,{code:L.invalid_type,expected:ne.array,received:i.parsedType}),ye;if(i.data.length<this._def.items.length)return ee(i,{code:L.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ye;!this._def.rest&&i.data.length>this._def.items.length&&(ee(i,{code:L.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let a=[...i.data].map((o,s)=>{let u=this._def.items[s]||this._def.rest;return u?u._parse(new Cr(i,o,i.path,s)):null}).filter(o=>!!o);return i.common.async?Promise.all(a).then(o=>At.mergeArray(r,o)):At.mergeArray(r,a)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};An.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new An({items:e,typeName:B.ZodTuple,rest:null,...Ie(t)})};var fk=class e extends Te{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==ne.object)return ee(i,{code:L.invalid_type,expected:ne.object,received:i.parsedType}),ye;let n=[],a=this._def.keyType,o=this._def.valueType;for(let s in i.data)n.push({key:a._parse(new Cr(i,s,i.path,s)),value:o._parse(new Cr(i,i.data[s],i.path,s)),alwaysSet:s in i.data});return i.common.async?At.mergeObjectAsync(r,n):At.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,i){return r instanceof Te?new e({keyType:t,valueType:r,typeName:B.ZodRecord,...Ie(i)}):new e({keyType:Mo.create(),valueType:t,typeName:B.ZodRecord,...Ie(r)})}},cu=class extends Te{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==ne.map)return ee(i,{code:L.invalid_type,expected:ne.map,received:i.parsedType}),ye;let n=this._def.keyType,a=this._def.valueType,o=[...i.data.entries()].map(([s,u],c)=>({key:n._parse(new Cr(i,s,i.path,[c,"key"])),value:a._parse(new Cr(i,u,i.path,[c,"value"]))}));if(i.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let u of o){let c=await u.key,d=await u.value;if(c.status==="aborted"||d.status==="aborted")return ye;(c.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(c.value,d.value)}return{status:r.value,value:s}})}else{let s=new Map;for(let u of o){let c=u.key,d=u.value;if(c.status==="aborted"||d.status==="aborted")return ye;(c.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(c.value,d.value)}return{status:r.value,value:s}}}};cu.create=(e,t,r)=>new cu({valueType:t,keyType:e,typeName:B.ZodMap,...Ie(r)});var du=class e extends Te{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==ne.set)return ee(i,{code:L.invalid_type,expected:ne.set,received:i.parsedType}),ye;let n=this._def;n.minSize!==null&&i.data.size<n.minSize.value&&(ee(i,{code:L.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&i.data.size>n.maxSize.value&&(ee(i,{code:L.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());let a=this._def.valueType;function o(u){let c=new Set;for(let d of u){if(d.status==="aborted")return ye;d.status==="dirty"&&r.dirty(),c.add(d.value)}return{status:r.value,value:c}}let s=[...i.data.values()].map((u,c)=>a._parse(new Cr(i,u,i.path,c)));return i.common.async?Promise.all(s).then(u=>o(u)):o(s)}min(t,r){return new e({...this._def,minSize:{value:t,message:ae.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:ae.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};du.create=(e,t)=>new du({valueType:e,minSize:null,maxSize:null,typeName:B.ZodSet,...Ie(t)});var mk=class e extends Te{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==ne.function)return ee(r,{code:L.invalid_type,expected:ne.function,received:r.parsedType}),ye;function i(s,u){return pf({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,tu(),xi].filter(c=>!!c),issueData:{code:L.invalid_arguments,argumentsError:u}})}function n(s,u){return pf({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,tu(),xi].filter(c=>!!c),issueData:{code:L.invalid_return_type,returnTypeError:u}})}let a={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof fa){let s=this;return Bt(async function(...u){let c=new mr([]),d=await s._def.args.parseAsync(u,a).catch(m=>{throw c.addIssue(i(u,m)),c}),p=await Reflect.apply(o,this,d);return await s._def.returns._def.type.parseAsync(p,a).catch(m=>{throw c.addIssue(n(p,m)),c})})}else{let s=this;return Bt(function(...u){let c=s._def.args.safeParse(u,a);if(!c.success)throw new mr([i(u,c.error)]);let d=Reflect.apply(o,this,c.data),p=s._def.returns.safeParse(d,a);if(!p.success)throw new mr([n(d,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:An.create(t).rest(Si.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,i){return new e({args:t||An.create([]).rest(Si.create()),returns:r||Si.create(),typeName:B.ZodFunction,...Ie(i)})}},Bo=class extends Te{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Bo.create=(e,t)=>new Bo({getter:e,typeName:B.ZodLazy,...Ie(t)});var Vo=class extends Te{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return ee(r,{received:r.data,code:L.invalid_literal,expected:this._def.value}),ye}return{status:"valid",value:t.data}}get value(){return this._def.value}};Vo.create=(e,t)=>new Vo({value:e,typeName:B.ZodLiteral,...Ie(t)});function hN(e,t){return new Zo({values:e,typeName:B.ZodEnum,...Ie(t)})}var Zo=class e extends Te{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),i=this._def.values;return ee(r,{expected:De.joinValues(i),received:r.parsedType,code:L.invalid_type}),ye}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),i=this._def.values;return ee(r,{received:r.data,code:L.invalid_enum_value,options:i}),ye}return Bt(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(i=>!t.includes(i)),{...this._def,...r})}};Zo.create=hN;var Wo=class extends Te{_parse(t){let r=De.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==ne.string&&i.parsedType!==ne.number){let n=De.objectValues(r);return ee(i,{expected:De.joinValues(n),received:i.parsedType,code:L.invalid_type}),ye}if(this._cache||(this._cache=new Set(De.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let n=De.objectValues(r);return ee(i,{received:i.data,code:L.invalid_enum_value,options:n}),ye}return Bt(t.data)}get enum(){return this._def.values}};Wo.create=(e,t)=>new Wo({values:e,typeName:B.ZodNativeEnum,...Ie(t)});var fa=class extends Te{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==ne.promise&&r.common.async===!1)return ee(r,{code:L.invalid_type,expected:ne.promise,received:r.parsedType}),ye;let i=r.parsedType===ne.promise?r.data:Promise.resolve(r.data);return Bt(i.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};fa.create=(e,t)=>new fa({type:e,typeName:B.ZodPromise,...Ie(t)});var qr=class extends Te{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===B.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:i}=this._processInputParams(t),n=this._def.effect||null,a={addIssue:o=>{ee(i,o),o.fatal?r.abort():r.dirty()},get path(){return i.path}};if(a.addIssue=a.addIssue.bind(a),n.type==="preprocess"){let o=n.transform(i.data,a);if(i.common.async)return Promise.resolve(o).then(async s=>{if(r.value==="aborted")return ye;let u=await this._def.schema._parseAsync({data:s,path:i.path,parent:i});return u.status==="aborted"?ye:u.status==="dirty"?zo(u.value):r.value==="dirty"?zo(u.value):u});{if(r.value==="aborted")return ye;let s=this._def.schema._parseSync({data:o,path:i.path,parent:i});return s.status==="aborted"?ye:s.status==="dirty"?zo(s.value):r.value==="dirty"?zo(s.value):s}}if(n.type==="refinement"){let o=s=>{let u=n.refinement(s,a);if(i.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(i.common.async===!1){let s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?ye:(s.status==="dirty"&&r.dirty(),o(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>s.status==="aborted"?ye:(s.status==="dirty"&&r.dirty(),o(s.value).then(()=>({status:r.value,value:s.value}))))}if(n.type==="transform")if(i.common.async===!1){let o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!pa(o))return ye;let s=n.transform(o.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:s}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>pa(o)?Promise.resolve(n.transform(o.value,a)).then(s=>({status:r.value,value:s})):ye);De.assertNever(n)}};qr.create=(e,t,r)=>new qr({schema:e,typeName:B.ZodEffects,effect:t,...Ie(r)});qr.createWithPreprocess=(e,t,r)=>new qr({schema:t,effect:{type:"preprocess",transform:e},typeName:B.ZodEffects,...Ie(r)});var Ur=class extends Te{_parse(t){return this._getType(t)===ne.undefined?Bt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ur.create=(e,t)=>new Ur({innerType:e,typeName:B.ZodOptional,...Ie(t)});var On=class extends Te{_parse(t){return this._getType(t)===ne.null?Bt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};On.create=(e,t)=>new On({innerType:e,typeName:B.ZodNullable,...Ie(t)});var Go=class extends Te{_parse(t){let{ctx:r}=this._processInputParams(t),i=r.data;return r.parsedType===ne.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Go.create=(e,t)=>new Go({innerType:e,typeName:B.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ie(t)});var Jo=class extends Te{_parse(t){let{ctx:r}=this._processInputParams(t),i={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return ru(n)?n.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new mr(i.common.issues)},input:i.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new mr(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};Jo.create=(e,t)=>new Jo({innerType:e,typeName:B.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ie(t)});var pu=class extends Te{_parse(t){if(this._getType(t)!==ne.nan){let i=this._getOrReturnCtx(t);return ee(i,{code:L.invalid_type,expected:ne.nan,received:i.parsedType}),ye}return{status:"valid",value:t.data}}};pu.create=e=>new pu({typeName:B.ZodNaN,...Ie(e)});var ff=class extends Te{_parse(t){let{ctx:r}=this._processInputParams(t),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}},mf=class e extends Te{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{let a=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?ye:a.status==="dirty"?(r.dirty(),zo(a.value)):this._def.out._parseAsync({data:a.value,path:i.path,parent:i})})();{let n=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return n.status==="aborted"?ye:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:i.path,parent:i})}}static create(t,r){return new e({in:t,out:r,typeName:B.ZodPipeline})}},Ho=class extends Te{_parse(t){let r=this._def.innerType._parse(t),i=n=>(pa(n)&&(n.value=Object.freeze(n.value)),n);return ru(r)?r.then(n=>i(n)):i(r)}unwrap(){return this._def.innerType}};Ho.create=(e,t)=>new Ho({innerType:e,typeName:B.ZodReadonly,...Ie(t)});var dde={object:hr.lazycreate},B;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(B||(B={}));var pde=Mo.create,fde=nu.create,mde=pu.create,hde=iu.create,gde=au.create,yde=ou.create,vde=su.create,bde=Lo.create,_de=Fo.create,wde=lu.create,kde=Si.create,xde=ln.create,Sde=uu.create,Ide=Ii.create,Ede=hr.create,Tde=hr.strictCreate,$de=Uo.create,Cde=dk.create,Ade=qo.create,Ode=An.create,Nde=fk.create,Dde=cu.create,jde=du.create,Pde=mk.create,zde=Bo.create,Rde=Vo.create,Mde=Zo.create,Lde=Wo.create,Fde=fa.create,Ude=qr.create,qde=Ur.create,Bde=On.create,Vde=qr.createWithPreprocess,Zde=mf.create;var hf=class extends Error{constructor(t,r){super(t),this.name="ParseError",this.type=r.type,this.field=r.field,this.value=r.value,this.line=r.line}};function hk(e){}function gN(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:t=hk,onError:r=hk,onRetry:i=hk,onComment:n}=e,a="",o=!0,s,u="",c="";function d(h){let y=o?h.replace(/^\xEF\xBB\xBF/,""):h,[v,_]=L9(`${a}${y}`);for(let b of v)p(b);a=_,o=!1}function p(h){if(h===""){m();return}if(h.startsWith(":")){n&&n(h.slice(h.startsWith(": ")?2:1));return}let y=h.indexOf(":");if(y!==-1){let v=h.slice(0,y),_=h[y+1]===" "?2:1,b=h.slice(y+_);f(v,b,h);return}f(h,"",h)}function f(h,y,v){switch(h){case"event":c=y;break;case"data":u=`${u}${y}
|
|
310
|
+
`;break;case"id":s=y.includes("\0")?void 0:y;break;case"retry":/^\d+$/.test(y)?i(parseInt(y,10)):r(new hf(`Invalid \`retry\` value: "${y}"`,{type:"invalid-retry",value:y,line:v}));break;default:r(new hf(`Unknown field "${h.length>20?`${h.slice(0,20)}\u2026`:h}"`,{type:"unknown-field",field:h,value:y,line:v}));break}}function m(){u.length>0&&t({id:s,event:c||void 0,data:u.endsWith(`
|
|
311
|
+
`)?u.slice(0,-1):u}),s=void 0,u="",c=""}function g(h={}){a&&h.consume&&p(a),o=!0,s=void 0,u="",c="",a=""}return{feed:d,reset:g}}function L9(e){let t=[],r="",i=0;for(;i<e.length;){let n=e.indexOf("\r",i),a=e.indexOf(`
|
|
312
|
+
`,i),o=-1;if(n!==-1&&a!==-1?o=Math.min(n,a):n!==-1?n===e.length-1?o=-1:o=n:a!==-1&&(o=a),o===-1){r=e.slice(i);break}else{let s=e.slice(i,o);t.push(s),i=o+1,e[i-1]==="\r"&&e[i]===`
|
|
313
|
+
`&&i++}}return[t,r]}var gf=class extends TransformStream{constructor({onError:t,onRetry:r,onComment:i}={}){let n;super({start(a){n=gN({onEvent:o=>{a.enqueue(o)},onError(o){t==="terminate"?a.error(o):typeof t=="function"&&t(o)},onRetry:r,onComment:i})},transform(a){n.feed(a)}})}};function Je(...e){return e.reduce((t,r)=>({...t,...r??{}}),{})}function xN({tools:e=[],providerToolNames:t}){let r={},i={};for(let n of e)if(n.type==="provider"&&n.id in t){let a=t[n.id];r[n.name]=a,i[a]=n.name}return{toProviderToolName:n=>{var a;return(a=r[n])!=null?a:n},toCustomToolName:n=>{var a;return(a=i[n])!=null?a:n}}}async function SN(e,t){if(e==null)return Promise.resolve();let r=t?.abortSignal;return new Promise((i,n)=>{if(r?.aborted){n(yN());return}let a=setTimeout(()=>{o(),i()},e),o=()=>{clearTimeout(a),r?.removeEventListener("abort",s)},s=()=>{o(),n(yN())};r?.addEventListener("abort",s)})}function yN(){return new DOMException("Delay was aborted","AbortError")}function Ko(e){return Object.fromEntries([...e.headers])}var{btoa:F9,atob:U9}=globalThis;function Zr(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=U9(t);return Uint8Array.from(r,i=>i.codePointAt(0))}function un(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCodePoint(e[r]);return F9(t)}function Ti(e){return e instanceof Uint8Array?un(e):e}function IN(e,t={}){let{useArrayBrackets:r=!0}=t,i=new FormData;for(let[n,a]of Object.entries(e))if(a!=null){if(Array.isArray(a)){if(a.length===1){i.append(n,a[0]);continue}let o=r?`${n}[]`:n;for(let s of a)i.append(o,s);continue}i.append(n,a)}return i}var EN="AI_DownloadError",TN=`vercel.ai.error.${EN}`,q9=Symbol.for(TN),vN,bN,Nn=class extends(bN=ie,vN=q9,bN){constructor({url:e,statusCode:t,statusText:r,cause:i,message:n=i==null?`Failed to download ${e}: ${t} ${r}`:`Failed to download ${e}: ${i}`}){super({name:EN,message:n,cause:i}),this[vN]=!0,this.url=e,this.statusCode=t,this.statusText=r}static isInstance(e){return ie.hasMarker(e,TN)}},yf=2*1024*1024*1024;async function _k({response:e,url:t,maxBytes:r=yf}){let i=e.headers.get("content-length");if(i!=null){let d=parseInt(i,10);if(!isNaN(d)&&d>r)throw new Nn({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes (Content-Length: ${d}).`})}let n=e.body;if(n==null)return new Uint8Array(0);let a=n.getReader(),o=[],s=0;try{for(;;){let{done:d,value:p}=await a.read();if(d)break;if(s+=p.length,s>r)throw new Nn({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes.`});o.push(p)}}finally{try{await a.cancel()}finally{a.releaseLock()}}let u=new Uint8Array(s),c=0;for(let d of o)u.set(d,c),c+=d.length;return u}async function wk(e,t){var r,i;try{let n=await fetch(e,{signal:t?.abortSignal});if(!n.ok)throw new Nn({url:e,statusCode:n.status,statusText:n.statusText});let a=await _k({response:n,url:e,maxBytes:(r=t?.maxBytes)!=null?r:yf}),o=(i=n.headers.get("content-type"))!=null?i:void 0;return new Blob([a],o?{type:o}:void 0)}catch(n){throw Nn.isInstance(n)?n:new Nn({url:e,cause:n})}}var Dn=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:i="-"}={})=>{let n=()=>{let a=r.length,o=new Array(t);for(let s=0;s<t;s++)o[s]=r[Math.random()*a|0];return o.join("")};if(e==null)return n;if(r.includes(i))throw new Sd({argument:"separator",message:`The separator "${i}" must not be part of the alphabet "${r}".`});return()=>`${e}${i}${n()}`},wt=Dn();function vf(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}function Ei(e){return(e instanceof Error||e instanceof DOMException)&&(e.name==="AbortError"||e.name==="ResponseAborted"||e.name==="TimeoutError")}var B9=["fetch failed","failed to fetch"],V9=["ConnectionRefused","ConnectionClosed","FailedToOpenSocket","ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE"];function Z9(e){if(!(e instanceof Error))return!1;let t=e.code;return!!(typeof t=="string"&&V9.includes(t))}function $N({error:e,url:t,requestBodyValues:r}){if(Ei(e))return e;if(e instanceof TypeError&&B9.includes(e.message.toLowerCase())){let i=e.cause;if(i!=null)return new Fe({message:`Cannot connect to API: ${i.message}`,cause:i,url:t,requestBodyValues:r,isRetryable:!0})}return Z9(e)?new Fe({message:`Cannot connect to API: ${e.message}`,cause:e,url:t,requestBodyValues:r,isRetryable:!0}):e}function bf(e=globalThis){var t,r,i;return e.window?"runtime/browser":(t=e.navigator)!=null&&t.userAgent?`runtime/${e.navigator.userAgent.toLowerCase()}`:(i=(r=e.process)==null?void 0:r.versions)!=null&&i.node?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function W9(e){if(e==null)return{};let t={};if(e instanceof Headers)e.forEach((r,i)=>{t[i.toLowerCase()]=r});else{Array.isArray(e)||(e=Object.entries(e));for(let[r,i]of e)i!=null&&(t[r.toLowerCase()]=i)}return t}function Wr(e,...t){let r=new Headers(W9(e)),i=r.get("user-agent")||"";return r.set("user-agent",[i,...t].filter(Boolean).join(" ")),Object.fromEntries(r.entries())}var CN="4.0.15",G9=()=>globalThis.fetch,kk=async({url:e,headers:t={},successfulResponseHandler:r,failedResponseHandler:i,abortSignal:n,fetch:a=G9()})=>{try{let o=await a(e,{method:"GET",headers:Wr(t,`ai-sdk/provider-utils/${CN}`,bf()),signal:n}),s=Ko(o);if(!o.ok){let u;try{u=await i({response:o,url:e,requestBodyValues:{}})}catch(c){throw Ei(c)||Fe.isInstance(c)?c:new Fe({message:"Failed to process error response",cause:c,statusCode:o.status,url:e,responseHeaders:s,requestBodyValues:{}})}throw u.value}try{return await r({response:o,url:e,requestBodyValues:{}})}catch(u){throw u instanceof Error&&(Ei(u)||Fe.isInstance(u))?u:new Fe({message:"Failed to process successful response",cause:u,statusCode:o.status,url:e,responseHeaders:s,requestBodyValues:{}})}}catch(o){throw $N({error:o,url:e,requestBodyValues:{}})}};function AN(e){return e!=null}function ON({mediaType:e,url:t,supportedUrls:r}){return t=t.toLowerCase(),e=e.toLowerCase(),Object.entries(r).map(([i,n])=>{let a=i.toLowerCase();return a==="*"||a==="*/*"?{mediaTypePrefix:"",regexes:n}:{mediaTypePrefix:a.replace(/\*/,""),regexes:n}}).filter(({mediaTypePrefix:i})=>e.startsWith(i)).flatMap(({regexes:i})=>i).some(i=>i.test(t))}function NN({apiKey:e,environmentVariableName:t,apiKeyParameterName:r="apiKey",description:i}){if(typeof e=="string")return e;if(e!=null)throw new wl({message:`${i} API key must be a string.`});if(typeof process>"u")throw new wl({message:`${i} API key is missing. Pass it using the '${r}' parameter. Environment variables is not supported in this environment.`});if(e=process.env[t],e==null)throw new wl({message:`${i} API key is missing. Pass it using the '${r}' parameter or the ${t} environment variable.`});if(typeof e!="string")throw new wl({message:`${i} API key must be a string. The value of the ${t} environment variable is not a string.`});return e}function $i({settingValue:e,environmentVariableName:t}){if(typeof e=="string")return e;if(!(e!=null||typeof process>"u")&&(e=process.env[t],!(e==null||typeof e!="string")))return e}function DN(e){var t;let[r,i=""]=e.toLowerCase().split("/");return(t={mpeg:"mp3","x-wav":"wav",opus:"ogg",mp4:"m4a","x-m4a":"m4a"}[i])!=null?t:i}var J9=/"__proto__"\s*:/,H9=/"constructor"\s*:/;function _N(e){let t=JSON.parse(e);return t===null||typeof t!="object"||J9.test(e)===!1&&H9.test(e)===!1?t:K9(t)}function K9(e){let t=[e];for(;t.length;){let r=t;t=[];for(let i of r){if(Object.prototype.hasOwnProperty.call(i,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(i,"constructor")&&Object.prototype.hasOwnProperty.call(i.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(let n in i){let a=i[n];a&&typeof a=="object"&&t.push(a)}}}return e}function xk(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch{return _N(e)}try{return _N(e)}finally{Error.stackTraceLimit=t}}function Sk(e){if(e.type==="object"||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;let{properties:r}=e;if(r!=null)for(let i of Object.keys(r))r[i]=ma(r[i])}e.items!=null&&(e.items=Array.isArray(e.items)?e.items.map(ma):ma(e.items)),e.anyOf!=null&&(e.anyOf=e.anyOf.map(ma)),e.allOf!=null&&(e.allOf=e.allOf.map(ma)),e.oneOf!=null&&(e.oneOf=e.oneOf.map(ma));let{definitions:t}=e;if(t!=null)for(let r of Object.keys(t))t[r]=ma(t[r]);return e}function ma(e){return typeof e=="boolean"?e:Sk(e)}var Y9=Symbol("Let zodToJsonSchema decide on which parser to use"),wN={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},X9=e=>typeof e=="string"?{...wN,name:e}:{...wN,...e};function gr(){return{}}function Q9(e,t){var r,i,n;let a={type:"array"};return(r=e.type)!=null&&r._def&&((n=(i=e.type)==null?void 0:i._def)==null?void 0:n.typeName)!==B.ZodAny&&(a.items=Be(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(a.minItems=e.minLength.value),e.maxLength&&(a.maxItems=e.maxLength.value),e.exactLength&&(a.minItems=e.exactLength.value,a.maxItems=e.exactLength.value),a}function eW(e){let t={type:"integer",format:"int64"};if(!e.checks)return t;for(let r of e.checks)switch(r.kind){case"min":r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value;break;case"max":r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value;break;case"multipleOf":t.multipleOf=r.value;break}return t}function tW(){return{type:"boolean"}}function jN(e,t){return Be(e.type._def,t)}var rW=(e,t)=>Be(e.innerType._def,t);function PN(e,t,r){let i=r??t.dateStrategy;if(Array.isArray(i))return{anyOf:i.map((n,a)=>PN(e,t,n))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return nW(e)}}var nW=e=>{let t={type:"integer",format:"unix-time"};for(let r of e.checks)switch(r.kind){case"min":t.minimum=r.value;break;case"max":t.maximum=r.value;break}return t};function iW(e,t){return{...Be(e.innerType._def,t),default:e.defaultValue()}}function aW(e,t){return t.effectStrategy==="input"?Be(e.schema._def,t):gr()}function oW(e){return{type:"string",enum:Array.from(e.values)}}var sW=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function lW(e,t){let r=[Be(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),Be(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(n=>!!n),i=[];return r.forEach(n=>{if(sW(n))i.push(...n.allOf);else{let a=n;if("additionalProperties"in n&&n.additionalProperties===!1){let{additionalProperties:o,...s}=n;a=s}i.push(a)}}),i.length?{allOf:i}:void 0}function uW(e){let t=typeof e.value;return t!=="bigint"&&t!=="number"&&t!=="boolean"&&t!=="string"?{type:Array.isArray(e.value)?"array":"object"}:{type:t==="bigint"?"integer":t,const:e.value}}var gk=void 0,Br={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(gk===void 0&&(gk=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),gk),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function zN(e,t){let r={type:"string"};if(e.checks)for(let i of e.checks)switch(i.kind){case"min":r.minLength=typeof r.minLength=="number"?Math.max(r.minLength,i.value):i.value;break;case"max":r.maxLength=typeof r.maxLength=="number"?Math.min(r.maxLength,i.value):i.value;break;case"email":switch(t.emailStrategy){case"format:email":Vr(r,"email",i.message,t);break;case"format:idn-email":Vr(r,"idn-email",i.message,t);break;case"pattern:zod":Vt(r,Br.email,i.message,t);break}break;case"url":Vr(r,"uri",i.message,t);break;case"uuid":Vr(r,"uuid",i.message,t);break;case"regex":Vt(r,i.regex,i.message,t);break;case"cuid":Vt(r,Br.cuid,i.message,t);break;case"cuid2":Vt(r,Br.cuid2,i.message,t);break;case"startsWith":Vt(r,RegExp(`^${yk(i.value,t)}`),i.message,t);break;case"endsWith":Vt(r,RegExp(`${yk(i.value,t)}$`),i.message,t);break;case"datetime":Vr(r,"date-time",i.message,t);break;case"date":Vr(r,"date",i.message,t);break;case"time":Vr(r,"time",i.message,t);break;case"duration":Vr(r,"duration",i.message,t);break;case"length":r.minLength=typeof r.minLength=="number"?Math.max(r.minLength,i.value):i.value,r.maxLength=typeof r.maxLength=="number"?Math.min(r.maxLength,i.value):i.value;break;case"includes":{Vt(r,RegExp(yk(i.value,t)),i.message,t);break}case"ip":{i.version!=="v6"&&Vr(r,"ipv4",i.message,t),i.version!=="v4"&&Vr(r,"ipv6",i.message,t);break}case"base64url":Vt(r,Br.base64url,i.message,t);break;case"jwt":Vt(r,Br.jwt,i.message,t);break;case"cidr":{i.version!=="v6"&&Vt(r,Br.ipv4Cidr,i.message,t),i.version!=="v4"&&Vt(r,Br.ipv6Cidr,i.message,t);break}case"emoji":Vt(r,Br.emoji(),i.message,t);break;case"ulid":{Vt(r,Br.ulid,i.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{Vr(r,"binary",i.message,t);break}case"contentEncoding:base64":{r.contentEncoding="base64";break}case"pattern:zod":{Vt(r,Br.base64,i.message,t);break}}break}case"nanoid":Vt(r,Br.nanoid,i.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function yk(e,t){return t.patternStrategy==="escape"?dW(e):e}var cW=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function dW(e){let t="";for(let r=0;r<e.length;r++)cW.has(e[r])||(t+="\\"),t+=e[r];return t}function Vr(e,t,r,i){var n;e.format||(n=e.anyOf)!=null&&n.some(a=>a.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...r&&i.errorMessages&&{errorMessage:{format:r}}})):e.format=t}function Vt(e,t,r,i){var n;e.pattern||(n=e.allOf)!=null&&n.some(a=>a.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:kN(t,i),...r&&i.errorMessages&&{errorMessage:{pattern:r}}})):e.pattern=kN(t,i)}function kN(e,t){var r;if(!t.applyRegexFlags||!e.flags)return e.source;let i={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},n=i.i?e.source.toLowerCase():e.source,a="",o=!1,s=!1,u=!1;for(let c=0;c<n.length;c++){if(o){a+=n[c],o=!1;continue}if(i.i){if(s){if(n[c].match(/[a-z]/)){u?(a+=n[c],a+=`${n[c-2]}-${n[c]}`.toUpperCase(),u=!1):n[c+1]==="-"&&((r=n[c+2])!=null&&r.match(/[a-z]/))?(a+=n[c],u=!0):a+=`${n[c]}${n[c].toUpperCase()}`;continue}}else if(n[c].match(/[a-z]/)){a+=`[${n[c]}${n[c].toUpperCase()}]`;continue}}if(i.m){if(n[c]==="^"){a+=`(^|(?<=[\r
|
|
314
|
+
]))`;continue}else if(n[c]==="$"){a+=`($|(?=[\r
|
|
315
|
+
]))`;continue}}if(i.s&&n[c]==="."){a+=s?`${n[c]}\r
|
|
316
|
+
`:`[${n[c]}\r
|
|
317
|
+
]`;continue}a+=n[c],n[c]==="\\"?o=!0:s&&n[c]==="]"?s=!1:!s&&n[c]==="["&&(s=!0)}try{new RegExp(a)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return a}function RN(e,t){var r,i,n,a,o,s;let u={type:"object",additionalProperties:(r=Be(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?r:t.allowedAdditionalProperties};if(((i=e.keyType)==null?void 0:i._def.typeName)===B.ZodString&&((n=e.keyType._def.checks)!=null&&n.length)){let{type:c,...d}=zN(e.keyType._def,t);return{...u,propertyNames:d}}else{if(((a=e.keyType)==null?void 0:a._def.typeName)===B.ZodEnum)return{...u,propertyNames:{enum:e.keyType._def.values}};if(((o=e.keyType)==null?void 0:o._def.typeName)===B.ZodBranded&&e.keyType._def.type._def.typeName===B.ZodString&&((s=e.keyType._def.type._def.checks)!=null&&s.length)){let{type:c,...d}=jN(e.keyType._def,t);return{...u,propertyNames:d}}}return u}function pW(e,t){if(t.mapStrategy==="record")return RN(e,t);let r=Be(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||gr(),i=Be(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||gr();return{type:"array",maxItems:125,items:{type:"array",items:[r,i],minItems:2,maxItems:2}}}function fW(e){let t=e.values,i=Object.keys(e.values).filter(a=>typeof t[t[a]]!="number").map(a=>t[a]),n=Array.from(new Set(i.map(a=>typeof a)));return{type:n.length===1?n[0]==="string"?"string":"number":["string","number"],enum:i}}function mW(){return{not:gr()}}function hW(){return{type:"null"}}var vk={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function gW(e,t){let r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(i=>i._def.typeName in vk&&(!i._def.checks||!i._def.checks.length))){let i=r.reduce((n,a)=>{let o=vk[a._def.typeName];return o&&!n.includes(o)?[...n,o]:n},[]);return{type:i.length>1?i:i[0]}}else if(r.every(i=>i._def.typeName==="ZodLiteral"&&!i.description)){let i=r.reduce((n,a)=>{let o=typeof a._def.value;switch(o){case"string":case"number":case"boolean":return[...n,o];case"bigint":return[...n,"integer"];case"object":if(a._def.value===null)return[...n,"null"];default:return n}},[]);if(i.length===r.length){let n=i.filter((a,o,s)=>s.indexOf(a)===o);return{type:n.length>1?n:n[0],enum:r.reduce((a,o)=>a.includes(o._def.value)?a:[...a,o._def.value],[])}}}else if(r.every(i=>i._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((i,n)=>[...i,...n._def.values.filter(a=>!i.includes(a))],[])};return yW(e,t)}var yW=(e,t)=>{let r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((i,n)=>Be(i._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]})).filter(i=>!!i&&(!t.strictUnions||typeof i=="object"&&Object.keys(i).length>0));return r.length?{anyOf:r}:void 0};function vW(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[vk[e.innerType._def.typeName],"null"]};let r=Be(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function bW(e){let t={type:"number"};if(!e.checks)return t;for(let r of e.checks)switch(r.kind){case"int":t.type="integer";break;case"min":r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value;break;case"max":r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value;break;case"multipleOf":t.multipleOf=r.value;break}return t}function _W(e,t){let r={type:"object",properties:{}},i=[],n=e.shape();for(let o in n){let s=n[o];if(s===void 0||s._def===void 0)continue;let u=kW(s),c=Be(s._def,{...t,currentPath:[...t.currentPath,"properties",o],propertyPath:[...t.currentPath,"properties",o]});c!==void 0&&(r.properties[o]=c,u||i.push(o))}i.length&&(r.required=i);let a=wW(e,t);return a!==void 0&&(r.additionalProperties=a),r}function wW(e,t){if(e.catchall._def.typeName!=="ZodNever")return Be(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function kW(e){try{return e.isOptional()}catch{return!0}}var xW=(e,t)=>{var r;if(t.currentPath.toString()===((r=t.propertyPath)==null?void 0:r.toString()))return Be(e.innerType._def,t);let i=Be(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return i?{anyOf:[{not:gr()},i]}:gr()},SW=(e,t)=>{if(t.pipeStrategy==="input")return Be(e.in._def,t);if(t.pipeStrategy==="output")return Be(e.out._def,t);let r=Be(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),i=Be(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,i].filter(n=>n!==void 0)}};function IW(e,t){return Be(e.type._def,t)}function EW(e,t){let i={type:"array",uniqueItems:!0,items:Be(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(i.minItems=e.minSize.value),e.maxSize&&(i.maxItems=e.maxSize.value),i}function TW(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((r,i)=>Be(r._def,{...t,currentPath:[...t.currentPath,"items",`${i}`]})).reduce((r,i)=>i===void 0?r:[...r,i],[]),additionalItems:Be(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((r,i)=>Be(r._def,{...t,currentPath:[...t.currentPath,"items",`${i}`]})).reduce((r,i)=>i===void 0?r:[...r,i],[])}}function $W(){return{not:gr()}}function CW(){return gr()}var AW=(e,t)=>Be(e.innerType._def,t),OW=(e,t,r)=>{switch(t){case B.ZodString:return zN(e,r);case B.ZodNumber:return bW(e);case B.ZodObject:return _W(e,r);case B.ZodBigInt:return eW(e);case B.ZodBoolean:return tW();case B.ZodDate:return PN(e,r);case B.ZodUndefined:return $W();case B.ZodNull:return hW();case B.ZodArray:return Q9(e,r);case B.ZodUnion:case B.ZodDiscriminatedUnion:return gW(e,r);case B.ZodIntersection:return lW(e,r);case B.ZodTuple:return TW(e,r);case B.ZodRecord:return RN(e,r);case B.ZodLiteral:return uW(e);case B.ZodEnum:return oW(e);case B.ZodNativeEnum:return fW(e);case B.ZodNullable:return vW(e,r);case B.ZodOptional:return xW(e,r);case B.ZodMap:return pW(e,r);case B.ZodSet:return EW(e,r);case B.ZodLazy:return()=>e.getter()._def;case B.ZodPromise:return IW(e,r);case B.ZodNaN:case B.ZodNever:return mW();case B.ZodEffects:return aW(e,r);case B.ZodAny:return gr();case B.ZodUnknown:return CW();case B.ZodDefault:return iW(e,r);case B.ZodBranded:return jN(e,r);case B.ZodReadonly:return AW(e,r);case B.ZodCatch:return rW(e,r);case B.ZodPipeline:return SW(e,r);case B.ZodFunction:case B.ZodVoid:case B.ZodSymbol:return;default:return(i=>{})(t)}},NW=(e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")};function Be(e,t,r=!1){var i;let n=t.seen.get(e);if(t.override){let u=(i=t.override)==null?void 0:i.call(t,e,t,n,r);if(u!==Y9)return u}if(n&&!r){let u=DW(n,t);if(u!==void 0)return u}let a={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,a);let o=OW(e,e.typeName,t),s=typeof o=="function"?Be(o(),t):o;if(s&&jW(e,t,s),t.postProcess){let u=t.postProcess(s,e,t);return a.jsonSchema=s,u}return a.jsonSchema=s,s}var DW=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:NW(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((r,i)=>t.currentPath[i]===r)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),gr()):t.$refStrategy==="seen"?gr():void 0}},jW=(e,t,r)=>(e.description&&(r.description=e.description),r),PW=e=>{let t=X9(e),r=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([i,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,i],jsonSchema:void 0}]))}},zW=(e,t)=>{var r;let i=PW(t),n=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((c,[d,p])=>{var f;return{...c,[d]:(f=Be(p._def,{...i,currentPath:[...i.basePath,i.definitionPath,d]},!0))!=null?f:gr()}},{}):void 0,a=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,o=(r=Be(e._def,a===void 0?i:{...i,currentPath:[...i.basePath,i.definitionPath,a]},!1))!=null?r:gr(),s=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;s!==void 0&&(o.title=s);let u=a===void 0?n?{...o,[i.definitionPath]:n}:o:{$ref:[...i.$refStrategy==="relative"?[]:i.basePath,i.definitionPath,a].join("/"),[i.definitionPath]:{...n,[a]:o}};return u.$schema="http://json-schema.org/draft-07/schema#",u},bk=Symbol.for("vercel.ai.schema");function H(e){let t;return()=>(t==null&&(t=e()),t)}function _f(e,{validate:t}={}){return{[bk]:!0,_type:void 0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function RW(e){return typeof e=="object"&&e!==null&&bk in e&&e[bk]===!0&&"jsonSchema"in e&&"validate"in e}function jn(e){return e==null?_f({properties:{},additionalProperties:!1}):RW(e)?e:"~standard"in e?e["~standard"].vendor==="zod"?Z(e):MW(e):e()}function MW(e){return _f(()=>Sk(e["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async t=>{let r=await e["~standard"].validate(t);return"value"in r?{success:!0,value:r.value}:{success:!1,error:new Mr({value:t,cause:r.issues})}}})}function LW(e,t){var r;let i=(r=t?.useReferences)!=null?r:!1;return _f(()=>zW(e,{$refStrategy:i?"root":"none"}),{validate:async n=>{let a=await e.safeParseAsync(n);return a.success?{success:!0,value:a.data}:{success:!1,error:a.error}}})}function FW(e,t){var r;let i=(r=t?.useReferences)!=null?r:!1;return _f(()=>Sk($o(e,{target:"draft-7",io:"input",reused:i?"ref":"inline"})),{validate:async n=>{let a=await Bl(e,n);return a.success?{success:!0,value:a.data}:{success:!1,error:a.error}}})}function UW(e){return"_zod"in e}function Z(e,t){return UW(e)?FW(e,t):LW(e,t)}async function gt({value:e,schema:t,context:r}){let i=await Ot({value:e,schema:t,context:r});if(!i.success)throw Mr.wrap({value:e,cause:i.error,context:r});return i.value}async function Ot({value:e,schema:t,context:r}){let i=jn(t);try{if(i.validate==null)return{success:!0,value:e,rawValue:e};let n=await i.validate(e);return n.success?{success:!0,value:n.value,rawValue:e}:{success:!1,error:Mr.wrap({value:e,cause:n.error,context:r}),rawValue:e}}catch(n){return{success:!1,error:Mr.wrap({value:e,cause:n,context:r}),rawValue:e}}}async function qW({text:e,schema:t}){try{let r=xk(e);return t==null?r:gt({value:r,schema:t})}catch(r){throw _l.isInstance(r)||Mr.isInstance(r)?r:new _l({text:e,cause:r})}}async function nr({text:e,schema:t}){try{let r=xk(e);return t==null?{success:!0,value:r,rawValue:r}:await Ot({value:r,schema:t})}catch(r){return{success:!1,error:_l.isInstance(r)?r:new _l({text:e,cause:r}),rawValue:void 0}}}function Ik(e){try{return xk(e),!0}catch{return!1}}function Ek({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new gf).pipeThrough(new TransformStream({async transform({data:r},i){r!=="[DONE]"&&i.enqueue(await nr({text:r,schema:t}))}}))}async function Nt({provider:e,providerOptions:t,schema:r}){if(t?.[e]==null)return;let i=await Ot({value:t[e],schema:r});if(!i.success)throw new Sd({argument:"providerOptions",message:`invalid ${e} provider options`,cause:i.error});return i.value}var BW=()=>globalThis.fetch,Ye=async({url:e,headers:t,body:r,failedResponseHandler:i,successfulResponseHandler:n,abortSignal:a,fetch:o})=>MN({url:e,headers:{"Content-Type":"application/json",...t},body:{content:JSON.stringify(r),values:r},failedResponseHandler:i,successfulResponseHandler:n,abortSignal:a,fetch:o}),wf=async({url:e,headers:t,formData:r,failedResponseHandler:i,successfulResponseHandler:n,abortSignal:a,fetch:o})=>MN({url:e,headers:t,body:{content:r,values:Object.fromEntries(r.entries())},failedResponseHandler:i,successfulResponseHandler:n,abortSignal:a,fetch:o}),MN=async({url:e,headers:t={},body:r,successfulResponseHandler:i,failedResponseHandler:n,abortSignal:a,fetch:o=BW()})=>{try{let s=await o(e,{method:"POST",headers:Wr(t,`ai-sdk/provider-utils/${CN}`,bf()),body:r.content,signal:a}),u=Ko(s);if(!s.ok){let c;try{c=await n({response:s,url:e,requestBodyValues:r.values})}catch(d){throw Ei(d)||Fe.isInstance(d)?d:new Fe({message:"Failed to process error response",cause:d,statusCode:s.status,url:e,responseHeaders:u,requestBodyValues:r.values})}throw c.value}try{return await i({response:s,url:e,requestBodyValues:r.values})}catch(c){throw c instanceof Error&&(Ei(c)||Fe.isInstance(c))?c:new Fe({message:"Failed to process successful response",cause:c,statusCode:s.status,url:e,responseHeaders:u,requestBodyValues:r.values})}}catch(s){throw $N({error:s,url:e,requestBodyValues:r.values})}};function et({id:e,inputSchema:t,outputSchema:r,supportsDeferredResults:i}){return({execute:n,needsApproval:a,toModelOutput:o,onInputStart:s,onInputDelta:u,onInputAvailable:c,...d})=>({type:"provider",id:e,args:d,inputSchema:t,outputSchema:r,execute:n,needsApproval:a,toModelOutput:o,onInputStart:s,onInputDelta:u,onInputAvailable:c,supportsDeferredResults:i})}async function ot(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}var ir=({errorSchema:e,errorToMessage:t,isRetryable:r})=>async({response:i,url:n,requestBodyValues:a})=>{let o=await i.text(),s=Ko(i);if(o.trim()==="")return{responseHeaders:s,value:new Fe({message:i.statusText,url:n,requestBodyValues:a,statusCode:i.status,responseHeaders:s,responseBody:o,isRetryable:r?.(i)})};try{let u=await qW({text:o,schema:e});return{responseHeaders:s,value:new Fe({message:t(u),url:n,requestBodyValues:a,statusCode:i.status,responseHeaders:s,responseBody:o,data:u,isRetryable:r?.(i,u)})}}catch{return{responseHeaders:s,value:new Fe({message:i.statusText,url:n,requestBodyValues:a,statusCode:i.status,responseHeaders:s,responseBody:o,isRetryable:r?.(i)})}}},Ci=e=>async({response:t})=>{let r=Ko(t);if(t.body==null)throw new XC({});return{responseHeaders:r,value:Ek({stream:t.body,schema:e})}},tt=e=>async({response:t,url:r,requestBodyValues:i})=>{let n=await t.text(),a=await nr({text:n,schema:e}),o=Ko(t);if(!a.success)throw new Fe({message:"Invalid JSON response",cause:a.error,statusCode:t.status,responseHeaders:o,responseBody:n,url:r,requestBodyValues:i});return{responseHeaders:o,value:a.value,rawValue:a.rawValue}},LN=()=>async({response:e,url:t,requestBodyValues:r})=>{let i=Ko(e);if(!e.body)throw new Fe({message:"Response body is empty",url:t,requestBodyValues:r,statusCode:e.status,responseHeaders:i,responseBody:void 0});try{let n=await e.arrayBuffer();return{responseHeaders:i,value:new Uint8Array(n)}}catch(n){throw new Fe({message:"Failed to read response as array buffer",url:t,requestBodyValues:r,statusCode:e.status,responseHeaders:i,responseBody:void 0,cause:n})}};function kf(e){return e?.replace(/\/$/,"")}function VW(e){return e!=null&&typeof e[Symbol.asyncIterator]=="function"}async function*FN({execute:e,input:t,options:r}){let i=e(t,r);if(VW(i)){let n;for await(let a of i)n=a,yield{type:"preliminary",output:a};yield{type:"final",output:n}}else yield{type:"final",output:await i}}var sj=ve(qk(),1),lj=ve(qk(),1);var wJ="vercel.ai.gateway.error",Bk=Symbol.for(wJ),wD,kD,Zt=class KD extends(kD=Error,wD=Bk,kD){constructor({message:t,statusCode:r=500,cause:i,generationId:n}){super(n?`${t} [${n}]`:t),this[wD]=!0,this.statusCode=r,this.cause=i,this.generationId=n}static isInstance(t){return KD.hasMarker(t)}static hasMarker(t){return typeof t=="object"&&t!==null&&Bk in t&&t[Bk]===!0}},YD="GatewayAuthenticationError",kJ=`vercel.ai.gateway.error.${YD}`,xD=Symbol.for(kJ),SD,ID,$f=class XD extends(ID=Zt,SD=xD,ID){constructor({message:t="Authentication failed",statusCode:r=401,cause:i,generationId:n}={}){super({message:t,statusCode:r,cause:i,generationId:n}),this[SD]=!0,this.name=YD,this.type="authentication_error"}static isInstance(t){return Zt.hasMarker(t)&&xD in t}static createContextualError({apiKeyProvided:t,oidcTokenProvided:r,message:i="Authentication failed",statusCode:n=401,cause:a,generationId:o}){let s;return t?s=`AI Gateway authentication failed: Invalid API key.
|
|
318
|
+
|
|
319
|
+
Create a new API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
|
|
320
|
+
|
|
321
|
+
Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.`:r?s=`AI Gateway authentication failed: Invalid OIDC token.
|
|
322
|
+
|
|
323
|
+
Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.
|
|
324
|
+
|
|
325
|
+
Alternatively, use an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys`:s=`AI Gateway authentication failed: No authentication provided.
|
|
326
|
+
|
|
327
|
+
Option 1 - API key:
|
|
328
|
+
Create an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
|
|
329
|
+
Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.
|
|
330
|
+
|
|
331
|
+
Option 2 - OIDC token:
|
|
332
|
+
Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.`,new XD({message:s,statusCode:n,cause:a,generationId:o})}},QD="GatewayInvalidRequestError",xJ=`vercel.ai.gateway.error.${QD}`,ED=Symbol.for(xJ),TD,$D,SJ=class extends($D=Zt,TD=ED,$D){constructor({message:e="Invalid request",statusCode:t=400,cause:r,generationId:i}={}){super({message:e,statusCode:t,cause:r,generationId:i}),this[TD]=!0,this.name=QD,this.type="invalid_request_error"}static isInstance(e){return Zt.hasMarker(e)&&ED in e}},ej="GatewayRateLimitError",IJ=`vercel.ai.gateway.error.${ej}`,CD=Symbol.for(IJ),AD,OD,EJ=class extends(OD=Zt,AD=CD,OD){constructor({message:e="Rate limit exceeded",statusCode:t=429,cause:r,generationId:i}={}){super({message:e,statusCode:t,cause:r,generationId:i}),this[AD]=!0,this.name=ej,this.type="rate_limit_exceeded"}static isInstance(e){return Zt.hasMarker(e)&&CD in e}},tj="GatewayModelNotFoundError",TJ=`vercel.ai.gateway.error.${tj}`,ND=Symbol.for(TJ),$J=H(()=>Z(l.object({modelId:l.string()}))),DD,jD,CJ=class extends(jD=Zt,DD=ND,jD){constructor({message:e="Model not found",statusCode:t=404,modelId:r,cause:i,generationId:n}={}){super({message:e,statusCode:t,cause:i,generationId:n}),this[DD]=!0,this.name=tj,this.type="model_not_found",this.modelId=r}static isInstance(e){return Zt.hasMarker(e)&&ND in e}},rj="GatewayInternalServerError",AJ=`vercel.ai.gateway.error.${rj}`,PD=Symbol.for(AJ),zD,RD,MD=class extends(RD=Zt,zD=PD,RD){constructor({message:e="Internal server error",statusCode:t=500,cause:r,generationId:i}={}){super({message:e,statusCode:t,cause:r,generationId:i}),this[zD]=!0,this.name=rj,this.type="internal_server_error"}static isInstance(e){return Zt.hasMarker(e)&&PD in e}},nj="GatewayResponseError",OJ=`vercel.ai.gateway.error.${nj}`,LD=Symbol.for(OJ),FD,UD,NJ=class extends(UD=Zt,FD=LD,UD){constructor({message:e="Invalid response from Gateway",statusCode:t=502,response:r,validationError:i,cause:n,generationId:a}={}){super({message:e,statusCode:t,cause:n,generationId:a}),this[FD]=!0,this.name=nj,this.type="response_error",this.response=r,this.validationError=i}static isInstance(e){return Zt.hasMarker(e)&&LD in e}};async function qD({response:e,statusCode:t,defaultMessage:r="Gateway request failed",cause:i,authMethod:n}){var a;let o=await Ot({value:e,schema:DJ});if(!o.success){let p=typeof e=="object"&&e!==null&&"generationId"in e?e.generationId:void 0;return new NJ({message:`Invalid error response format: ${r}`,statusCode:t,response:e,validationError:o.error,cause:i,generationId:p})}let s=o.value,u=s.error.type,c=s.error.message,d=(a=s.generationId)!=null?a:void 0;switch(u){case"authentication_error":return $f.createContextualError({apiKeyProvided:n==="api-key",oidcTokenProvided:n==="oidc",statusCode:t,cause:i,generationId:d});case"invalid_request_error":return new SJ({message:c,statusCode:t,cause:i,generationId:d});case"rate_limit_exceeded":return new EJ({message:c,statusCode:t,cause:i,generationId:d});case"model_not_found":{let p=await Ot({value:s.error.param,schema:$J});return new CJ({message:c,statusCode:t,modelId:p.success?p.value.modelId:void 0,cause:i,generationId:d})}case"internal_server_error":return new MD({message:c,statusCode:t,cause:i,generationId:d});default:return new MD({message:c,statusCode:t,cause:i,generationId:d})}}var DJ=H(()=>Z(l.object({error:l.object({message:l.string(),type:l.string().nullish(),param:l.unknown().nullish(),code:l.union([l.string(),l.number()]).nullish()}),generationId:l.string().nullish()}))),ij="GatewayTimeoutError",jJ=`vercel.ai.gateway.error.${ij}`,BD=Symbol.for(jJ),VD,ZD,WD=class aj extends(ZD=Zt,VD=BD,ZD){constructor({message:t="Request timed out",statusCode:r=408,cause:i,generationId:n}={}){super({message:t,statusCode:r,cause:i,generationId:n}),this[VD]=!0,this.name=ij,this.type="timeout_error"}static isInstance(t){return Zt.hasMarker(t)&&BD in t}static createTimeoutError({originalMessage:t,statusCode:r=408,cause:i,generationId:n}){let a=`Gateway request timed out: ${t}
|
|
333
|
+
|
|
334
|
+
This is a client-side timeout. To resolve this, increase your timeout configuration: https://vercel.com/docs/ai-gateway/capabilities/video-generation#extending-timeouts-for-node.js`;return new aj({message:a,statusCode:r,cause:i,generationId:n})}};function GD(e){if(!(e instanceof Error))return!1;let t=e.code;return typeof t=="string"?["UND_ERR_HEADERS_TIMEOUT","UND_ERR_BODY_TIMEOUT","UND_ERR_CONNECT_TIMEOUT"].includes(t):!1}async function Pn(e,t){var r;return Zt.isInstance(e)?e:GD(e)?WD.createTimeoutError({originalMessage:e instanceof Error?e.message:"Unknown error",cause:e}):Fe.isInstance(e)?e.cause&&GD(e.cause)?WD.createTimeoutError({originalMessage:e.message,cause:e}):await qD({response:PJ(e),statusCode:(r=e.statusCode)!=null?r:500,defaultMessage:"Gateway request failed",cause:e,authMethod:t}):await qD({response:{},statusCode:500,defaultMessage:e instanceof Error?`Gateway request failed: ${e.message}`:"Unknown Gateway error",cause:e,authMethod:t})}function PJ(e){if(e.data!==void 0)return e.data;if(e.responseBody!=null)try{return JSON.parse(e.responseBody)}catch{return e.responseBody}return{}}var oj="ai-gateway-auth-method";async function ya(e){let t=await Ot({value:e[oj],schema:zJ});return t.success?t.value:void 0}var zJ=H(()=>Z(l.union([l.literal("api-key"),l.literal("oidc")]))),JD=class{constructor(e){this.config=e}async getAvailableModels(){try{let{value:e}=await kk({url:`${this.config.baseURL}/config`,headers:await ot(this.config.headers()),successfulResponseHandler:tt(RJ),failedResponseHandler:ir({errorSchema:l.any(),errorToMessage:t=>t}),fetch:this.config.fetch});return e}catch(e){throw await Pn(e)}}async getCredits(){try{let e=new URL(this.config.baseURL),{value:t}=await kk({url:`${e.origin}/v1/credits`,headers:await ot(this.config.headers()),successfulResponseHandler:tt(MJ),failedResponseHandler:ir({errorSchema:l.any(),errorToMessage:r=>r}),fetch:this.config.fetch});return t}catch(e){throw await Pn(e)}}},RJ=H(()=>Z(l.object({models:l.array(l.object({id:l.string(),name:l.string(),description:l.string().nullish(),pricing:l.object({input:l.string(),output:l.string(),input_cache_read:l.string().nullish(),input_cache_write:l.string().nullish()}).transform(({input:e,output:t,input_cache_read:r,input_cache_write:i})=>({input:e,output:t,...r?{cachedInputTokens:r}:{},...i?{cacheCreationInputTokens:i}:{}})).nullish(),specification:l.object({specificationVersion:l.literal("v3"),provider:l.string(),modelId:l.string()}),modelType:l.enum(["embedding","image","language","video"]).nullish()}))}))),MJ=H(()=>Z(l.object({balance:l.string(),total_used:l.string()}).transform(({balance:e,total_used:t})=>({balance:e,totalUsed:t})))),LJ=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.supportedUrls={"*/*":[/.*/]}}get provider(){return this.config.provider}async getArgs(e){let{abortSignal:t,...r}=e;return{args:this.maybeEncodeFileParts(r),warnings:[]}}async doGenerate(e){let{args:t,warnings:r}=await this.getArgs(e),{abortSignal:i}=e,n=await ot(this.config.headers());try{let{responseHeaders:a,value:o,rawValue:s}=await Ye({url:this.getUrl(),headers:Je(n,e.headers,this.getModelConfigHeaders(this.modelId,!1),await ot(this.config.o11yHeaders)),body:t,successfulResponseHandler:tt(l.any()),failedResponseHandler:ir({errorSchema:l.any(),errorToMessage:u=>u}),...i&&{abortSignal:i},fetch:this.config.fetch});return{...o,request:{body:t},response:{headers:a,body:s},warnings:r}}catch(a){throw await Pn(a,await ya(n))}}async doStream(e){let{args:t,warnings:r}=await this.getArgs(e),{abortSignal:i}=e,n=await ot(this.config.headers());try{let{value:a,responseHeaders:o}=await Ye({url:this.getUrl(),headers:Je(n,e.headers,this.getModelConfigHeaders(this.modelId,!0),await ot(this.config.o11yHeaders)),body:t,successfulResponseHandler:Ci(l.any()),failedResponseHandler:ir({errorSchema:l.any(),errorToMessage:s=>s}),...i&&{abortSignal:i},fetch:this.config.fetch});return{stream:a.pipeThrough(new TransformStream({start(s){r.length>0&&s.enqueue({type:"stream-start",warnings:r})},transform(s,u){if(s.success){let c=s.value;if(c.type==="raw"&&!e.includeRawChunks)return;c.type==="response-metadata"&&c.timestamp&&typeof c.timestamp=="string"&&(c.timestamp=new Date(c.timestamp)),u.enqueue(c)}else u.error(s.error)}})),request:{body:t},response:{headers:o}}}catch(a){throw await Pn(a,await ya(n))}}isFilePart(e){return e&&typeof e=="object"&&"type"in e&&e.type==="file"}maybeEncodeFileParts(e){for(let t of e.prompt)for(let r of t.content)if(this.isFilePart(r)){let i=r;if(i.data instanceof Uint8Array){let n=Uint8Array.from(i.data),a=Buffer.from(n).toString("base64");i.data=new URL(`data:${i.mediaType||"application/octet-stream"};base64,${a}`)}}return e}getUrl(){return`${this.config.baseURL}/language-model`}getModelConfigHeaders(e,t){return{"ai-language-model-specification-version":"3","ai-language-model-id":e,"ai-language-model-streaming":String(t)}}},FJ=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0}get provider(){return this.config.provider}async doEmbed({values:e,headers:t,abortSignal:r,providerOptions:i}){var n;let a=await ot(this.config.headers());try{let{responseHeaders:o,value:s,rawValue:u}=await Ye({url:this.getUrl(),headers:Je(a,t??{},this.getModelConfigHeaders(),await ot(this.config.o11yHeaders)),body:{values:e,...i?{providerOptions:i}:{}},successfulResponseHandler:tt(UJ),failedResponseHandler:ir({errorSchema:l.any(),errorToMessage:c=>c}),...r&&{abortSignal:r},fetch:this.config.fetch});return{embeddings:s.embeddings,usage:(n=s.usage)!=null?n:void 0,providerMetadata:s.providerMetadata,response:{headers:o,body:u},warnings:[]}}catch(o){throw await Pn(o,await ya(a))}}getUrl(){return`${this.config.baseURL}/embedding-model`}getModelConfigHeaders(){return{"ai-embedding-model-specification-version":"3","ai-model-id":this.modelId}}},UJ=H(()=>Z(l.object({embeddings:l.array(l.array(l.number())),usage:l.object({tokens:l.number()}).nullish(),providerMetadata:l.record(l.string(),l.record(l.string(),l.unknown())).optional()}))),qJ=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxImagesPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,size:r,aspectRatio:i,seed:n,files:a,mask:o,providerOptions:s,headers:u,abortSignal:c}){var d,p,f,m;let g=await ot(this.config.headers());try{let{responseHeaders:h,value:y,rawValue:v}=await Ye({url:this.getUrl(),headers:Je(g,u??{},this.getModelConfigHeaders(),await ot(this.config.o11yHeaders)),body:{prompt:e,n:t,...r&&{size:r},...i&&{aspectRatio:i},...n&&{seed:n},...s&&{providerOptions:s},...a&&{files:a.map(_=>HD(_))},...o&&{mask:HD(o)}},successfulResponseHandler:tt(WJ),failedResponseHandler:ir({errorSchema:l.any(),errorToMessage:_=>_}),...c&&{abortSignal:c},fetch:this.config.fetch});return{images:y.images,warnings:(d=y.warnings)!=null?d:[],providerMetadata:y.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:h},...y.usage!=null&&{usage:{inputTokens:(p=y.usage.inputTokens)!=null?p:void 0,outputTokens:(f=y.usage.outputTokens)!=null?f:void 0,totalTokens:(m=y.usage.totalTokens)!=null?m:void 0}}}}catch(h){throw await Pn(h,await ya(g))}}getUrl(){return`${this.config.baseURL}/image-model`}getModelConfigHeaders(){return{"ai-image-model-specification-version":"3","ai-model-id":this.modelId}}};function HD(e){return e.type==="file"&&e.data instanceof Uint8Array?{...e,data:un(e.data)}:e}var BJ=l.object({images:l.array(l.unknown()).optional()}).catchall(l.unknown()),VJ=l.discriminatedUnion("type",[l.object({type:l.literal("unsupported"),feature:l.string(),details:l.string().optional()}),l.object({type:l.literal("compatibility"),feature:l.string(),details:l.string().optional()}),l.object({type:l.literal("other"),message:l.string()})]),ZJ=l.object({inputTokens:l.number().nullish(),outputTokens:l.number().nullish(),totalTokens:l.number().nullish()}),WJ=l.object({images:l.array(l.string()),warnings:l.array(VJ).optional(),providerMetadata:l.record(l.string(),BJ).optional(),usage:ZJ.optional()}),GJ=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxVideosPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,aspectRatio:r,resolution:i,duration:n,fps:a,seed:o,image:s,providerOptions:u,headers:c,abortSignal:d}){var p;let f=await ot(this.config.headers());try{let{responseHeaders:m,value:g}=await Ye({url:this.getUrl(),headers:Je(f,c??{},this.getModelConfigHeaders(),await ot(this.config.o11yHeaders),{accept:"text/event-stream"}),body:{prompt:e,n:t,...r&&{aspectRatio:r},...i&&{resolution:i},...n&&{duration:n},...a&&{fps:a},...o&&{seed:o},...u&&{providerOptions:u},...s&&{image:JJ(s)}},successfulResponseHandler:async({response:h,url:y,requestBodyValues:v})=>{if(h.body==null)throw new Fe({message:"SSE response body is empty",url:y,requestBodyValues:v,statusCode:h.status});let b=Ek({stream:h.body,schema:XJ}).getReader(),{done:x,value:E}=await b.read();if(b.releaseLock(),x||!E)throw new Fe({message:"SSE stream ended without a data event",url:y,requestBodyValues:v,statusCode:h.status});if(!E.success)throw new Fe({message:"Failed to parse video SSE event",cause:E.error,url:y,requestBodyValues:v,statusCode:h.status});let k=E.value;if(k.type==="error")throw new Fe({message:k.message,statusCode:k.statusCode,url:y,requestBodyValues:v,responseHeaders:Object.fromEntries([...h.headers]),responseBody:JSON.stringify(k),data:{error:{message:k.message,type:k.errorType,param:k.param}}});return{value:{videos:k.videos,warnings:k.warnings,providerMetadata:k.providerMetadata},responseHeaders:Object.fromEntries([...h.headers])}},failedResponseHandler:ir({errorSchema:l.any(),errorToMessage:h=>h}),...d&&{abortSignal:d},fetch:this.config.fetch});return{videos:g.videos,warnings:(p=g.warnings)!=null?p:[],providerMetadata:g.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:m}}}catch(m){throw await Pn(m,await ya(f))}}getUrl(){return`${this.config.baseURL}/video-model`}getModelConfigHeaders(){return{"ai-video-model-specification-version":"3","ai-model-id":this.modelId}}};function JJ(e){return e.type==="file"&&e.data instanceof Uint8Array?{...e,data:un(e.data)}:e}var HJ=l.object({videos:l.array(l.unknown()).optional()}).catchall(l.unknown()),KJ=l.union([l.object({type:l.literal("url"),url:l.string(),mediaType:l.string()}),l.object({type:l.literal("base64"),data:l.string(),mediaType:l.string()})]),YJ=l.discriminatedUnion("type",[l.object({type:l.literal("unsupported"),feature:l.string(),details:l.string().optional()}),l.object({type:l.literal("compatibility"),feature:l.string(),details:l.string().optional()}),l.object({type:l.literal("other"),message:l.string()})]),XJ=l.discriminatedUnion("type",[l.object({type:l.literal("result"),videos:l.array(KJ),warnings:l.array(YJ).optional(),providerMetadata:l.record(l.string(),HJ).optional()}),l.object({type:l.literal("error"),message:l.string(),errorType:l.string(),statusCode:l.number(),param:l.unknown().nullable()})]),QJ=H(()=>Z(l.object({objective:l.string().describe("Natural-language description of the web research goal, including source or freshness guidance and broader context from the task. Maximum 5000 characters."),search_queries:l.array(l.string()).optional().describe("Optional search queries to supplement the objective. Maximum 200 characters per query."),mode:l.enum(["one-shot","agentic"]).optional().describe('Mode preset: "one-shot" for comprehensive results with longer excerpts (default), "agentic" for concise, token-efficient results for multi-step workflows.'),max_results:l.number().optional().describe("Maximum number of results to return (1-20). Defaults to 10 if not specified."),source_policy:l.object({include_domains:l.array(l.string()).optional().describe("List of domains to include in search results."),exclude_domains:l.array(l.string()).optional().describe("List of domains to exclude from search results."),after_date:l.string().optional().describe("Only include results published after this date (ISO 8601 format).")}).optional().describe("Source policy for controlling which domains to include/exclude and freshness."),excerpts:l.object({max_chars_per_result:l.number().optional().describe("Maximum characters per result."),max_chars_total:l.number().optional().describe("Maximum total characters across all results.")}).optional().describe("Excerpt configuration for controlling result length."),fetch_policy:l.object({max_age_seconds:l.number().optional().describe("Maximum age in seconds for cached content. Set to 0 to always fetch fresh content.")}).optional().describe("Fetch policy for controlling content freshness.")}))),eH=H(()=>Z(l.union([l.object({searchId:l.string(),results:l.array(l.object({url:l.string(),title:l.string(),excerpt:l.string(),publishDate:l.string().nullable().optional(),relevanceScore:l.number().optional()}))}),l.object({error:l.enum(["api_error","rate_limit","timeout","invalid_input","configuration_error","unknown"]),statusCode:l.number().optional(),message:l.string()})]))),tH=et({id:"gateway.parallel_search",inputSchema:QJ,outputSchema:eH}),rH=(e={})=>tH(e),nH=H(()=>Z(l.object({query:l.union([l.string(),l.array(l.string())]).describe("Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."),max_results:l.number().optional().describe("Maximum number of search results to return (1-20, default: 10)"),max_tokens_per_page:l.number().optional().describe("Maximum number of tokens to extract per search result page (256-2048, default: 2048)"),max_tokens:l.number().optional().describe("Maximum total tokens across all search results (default: 25000, max: 1000000)"),country:l.string().optional().describe("Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"),search_domain_filter:l.array(l.string()).optional().describe("List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"),search_language_filter:l.array(l.string()).optional().describe("List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"),search_after_date:l.string().optional().describe("Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),search_before_date:l.string().optional().describe("Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),last_updated_after_filter:l.string().optional().describe("Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),last_updated_before_filter:l.string().optional().describe("Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),search_recency_filter:l.enum(["day","week","month","year"]).optional().describe("Filter results by relative time period. Cannot be used with search_after_date or search_before_date.")}))),iH=H(()=>Z(l.union([l.object({results:l.array(l.object({title:l.string(),url:l.string(),snippet:l.string(),date:l.string().optional(),lastUpdated:l.string().optional()})),id:l.string()}),l.object({error:l.enum(["api_error","rate_limit","timeout","invalid_input","unknown"]),statusCode:l.number().optional(),message:l.string()})]))),aH=et({id:"gateway.perplexity_search",inputSchema:nH,outputSchema:iH}),oH=(e={})=>aH(e),sH={parallelSearch:rH,perplexitySearch:oH};async function lH(){var e;return(e=(0,sj.getContext)().headers)==null?void 0:e["x-vercel-id"]}var uH="3.0.58",cH="0.0.1";function dH(e={}){var t,r;let i=null,n=null,a=(t=e.metadataCacheRefreshMillis)!=null?t:1e3*60*5,o=0,s=(r=kf(e.baseURL))!=null?r:"https://ai-gateway.vercel.sh/v3/ai",u=async()=>{try{let h=await pH(e);return Wr({Authorization:`Bearer ${h.token}`,"ai-gateway-protocol-version":cH,[oj]:h.authMethod,...e.headers},`ai-sdk/gateway/${uH}`)}catch(h){throw $f.createContextualError({apiKeyProvided:!1,oidcTokenProvided:!1,statusCode:401,cause:h})}},c=()=>{let h=$i({settingValue:void 0,environmentVariableName:"VERCEL_DEPLOYMENT_ID"}),y=$i({settingValue:void 0,environmentVariableName:"VERCEL_ENV"}),v=$i({settingValue:void 0,environmentVariableName:"VERCEL_REGION"}),_=$i({settingValue:void 0,environmentVariableName:"VERCEL_PROJECT_ID"});return async()=>{let b=await lH();return{...h&&{"ai-o11y-deployment-id":h},...y&&{"ai-o11y-environment":y},...v&&{"ai-o11y-region":v},...b&&{"ai-o11y-request-id":b},..._&&{"ai-o11y-project-id":_}}}},d=h=>new LJ(h,{provider:"gateway",baseURL:s,headers:u,fetch:e.fetch,o11yHeaders:c()}),p=async()=>{var h,y,v;let _=(v=(y=(h=e._internal)==null?void 0:h.currentDate)==null?void 0:y.call(h).getTime())!=null?v:Date.now();return(!i||_-o>a)&&(o=_,i=new JD({baseURL:s,headers:u,fetch:e.fetch}).getAvailableModels().then(b=>(n=b,b)).catch(async b=>{throw await Pn(b,await ya(await u()))})),n?Promise.resolve(n):i},f=async()=>new JD({baseURL:s,headers:u,fetch:e.fetch}).getCredits().catch(async h=>{throw await Pn(h,await ya(await u()))}),m=function(h){if(new.target)throw new Error("The Gateway Provider model function cannot be called with the new keyword.");return d(h)};m.specificationVersion="v3",m.getAvailableModels=p,m.getCredits=f,m.imageModel=h=>new qJ(h,{provider:"gateway",baseURL:s,headers:u,fetch:e.fetch,o11yHeaders:c()}),m.languageModel=d;let g=h=>new FJ(h,{provider:"gateway",baseURL:s,headers:u,fetch:e.fetch,o11yHeaders:c()});return m.embeddingModel=g,m.textEmbeddingModel=g,m.videoModel=h=>new GJ(h,{provider:"gateway",baseURL:s,headers:u,fetch:e.fetch,o11yHeaders:c()}),m.chat=m.languageModel,m.embedding=m.embeddingModel,m.image=m.imageModel,m.video=m.videoModel,m.tools=sH,m}var uj=dH();async function pH(e){let t=$i({settingValue:e.apiKey,environmentVariableName:"AI_GATEWAY_API_KEY"});return t?{token:t,authMethod:"api-key"}:{token:await(0,lj.getVercelOidcToken)(),authMethod:"oidc"}}var cj=typeof globalThis=="object"?globalThis:global;var zn="1.9.0";var dj=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function fH(e){var t=new Set([e]),r=new Set,i=e.match(dj);if(!i)return function(){return!1};var n={major:+i[1],minor:+i[2],patch:+i[3],prerelease:i[4]};if(n.prerelease!=null)return function(u){return u===e};function a(s){return r.add(s),!1}function o(s){return t.add(s),!0}return function(u){if(t.has(u))return!0;if(r.has(u))return!1;var c=u.match(dj);if(!c)return a(u);var d={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return d.prerelease!=null||n.major!==d.major?a(u):n.major===0?n.minor===d.minor&&n.patch<=d.patch?o(u):a(u):n.minor<=d.minor?o(u):a(u)}}var pj=fH(zn);var mH=zn.split(".")[0],yu=Symbol.for("opentelemetry.js.api."+mH),vu=cj;function Qo(e,t,r,i){var n;i===void 0&&(i=!1);var a=vu[yu]=(n=vu[yu])!==null&&n!==void 0?n:{version:zn};if(!i&&a[e]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(o.stack||o.message),!1}if(a.version!==zn){var o=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+zn);return r.error(o.stack||o.message),!1}return a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+zn+"."),!0}function Rn(e){var t,r,i=(t=vu[yu])===null||t===void 0?void 0:t.version;if(!(!i||!pj(i)))return(r=vu[yu])===null||r===void 0?void 0:r[e]}function es(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+zn+".");var r=vu[yu];r&&delete r[e]}var hH=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),n,a=[],o;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},gH=function(e,t,r){if(r||arguments.length===2)for(var i=0,n=t.length,a;i<n;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))},fj=(function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return bu("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return bu("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return bu("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return bu("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return bu("verbose",this._namespace,t)},e})();function bu(e,t,r){var i=Rn("diag");if(i)return r.unshift(t),i[e].apply(i,gH([],hH(r),!1))}var Wt;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(Wt||(Wt={}));function mj(e,t){e<Wt.NONE?e=Wt.NONE:e>Wt.ALL&&(e=Wt.ALL),t=t||{};function r(i,n){var a=t[i];return typeof a=="function"&&e>=n?a.bind(t):function(){}}return{error:r("error",Wt.ERROR),warn:r("warn",Wt.WARN),info:r("info",Wt.INFO),debug:r("debug",Wt.DEBUG),verbose:r("verbose",Wt.VERBOSE)}}var yH=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),n,a=[],o;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},vH=function(e,t,r){if(r||arguments.length===2)for(var i=0,n=t.length,a;i<n;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))},bH="diag",ts=(function(){function e(){function t(n){return function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];var s=Rn("diag");if(s)return s[n].apply(s,vH([],yH(a),!1))}}var r=this,i=function(n,a){var o,s,u;if(a===void 0&&(a={logLevel:Wt.INFO}),n===r){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((o=c.stack)!==null&&o!==void 0?o:c.message),!1}typeof a=="number"&&(a={logLevel:a});var d=Rn("diag"),p=mj((s=a.logLevel)!==null&&s!==void 0?s:Wt.INFO,n);if(d&&!a.suppressOverrideMessage){var f=(u=new Error().stack)!==null&&u!==void 0?u:"<failed to generate stacktrace>";d.warn("Current logger will be overwritten from "+f),p.warn("Current logger will overwrite one already registered from "+f)}return Qo("diag",p,r,!0)};r.setLogger=i,r.disable=function(){es(bH,r)},r.createComponentLogger=function(n){return new fj(n)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e})();function hj(e){return Symbol.for(e)}var _H=(function(){function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(i){return r._currentContext.get(i)},r.setValue=function(i,n){var a=new e(r._currentContext);return a._currentContext.set(i,n),a},r.deleteValue=function(i){var n=new e(r._currentContext);return n._currentContext.delete(i),n}}return e})(),gj=new _H;var wH=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),n,a=[],o;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},kH=function(e,t,r){if(r||arguments.length===2)for(var i=0,n=t.length,a;i<n;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))},yj=(function(){function e(){}return e.prototype.active=function(){return gj},e.prototype.with=function(t,r,i){for(var n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a];return r.call.apply(r,kH([i],wH(n),!1))},e.prototype.bind=function(t,r){return r},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e})();var xH=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),n,a=[],o;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},SH=function(e,t,r){if(r||arguments.length===2)for(var i=0,n=t.length,a;i<n;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))},Vk="context",IH=new yj,rs=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Qo(Vk,t,ts.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,r,i){for(var n,a=[],o=3;o<arguments.length;o++)a[o-3]=arguments[o];return(n=this._getContextManager()).with.apply(n,SH([t,r,i],xH(a),!1))},e.prototype.bind=function(t,r){return this._getContextManager().bind(t,r)},e.prototype._getContextManager=function(){return Rn(Vk)||IH},e.prototype.disable=function(){this._getContextManager().disable(),es(Vk,ts.instance())},e})();var Cf;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Cf||(Cf={}));var Zk="0000000000000000",Wk="00000000000000000000000000000000",vj={traceId:Wk,spanId:Zk,traceFlags:Cf.NONE};var Ai=(function(){function e(t){t===void 0&&(t=vj),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,r){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,r){},e})();var Gk=hj("OpenTelemetry Context Key SPAN");function Af(e){return e.getValue(Gk)||void 0}function bj(){return Af(rs.getInstance().active())}function _u(e,t){return e.setValue(Gk,t)}function _j(e){return e.deleteValue(Gk)}function wj(e,t){return _u(e,new Ai(t))}function Of(e){var t;return(t=Af(e))===null||t===void 0?void 0:t.spanContext()}var EH=/^([0-9a-f]{32})$/i,TH=/^[0-9a-f]{16}$/i;function $H(e){return EH.test(e)&&e!==Wk}function CH(e){return TH.test(e)&&e!==Zk}function Nf(e){return $H(e.traceId)&&CH(e.spanId)}function kj(e){return new Ai(e)}var Jk=rs.getInstance(),Df=(function(){function e(){}return e.prototype.startSpan=function(t,r,i){i===void 0&&(i=Jk.active());var n=!!r?.root;if(n)return new Ai;var a=i&&Of(i);return AH(a)&&Nf(a)?new Ai(a):new Ai},e.prototype.startActiveSpan=function(t,r,i,n){var a,o,s;if(!(arguments.length<2)){arguments.length===2?s=r:arguments.length===3?(a=r,s=i):(a=r,o=i,s=n);var u=o??Jk.active(),c=this.startSpan(t,a,u),d=_u(u,c);return Jk.with(d,s,void 0,c)}},e})();function AH(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var OH=new Df,xj=(function(){function e(t,r,i,n){this._provider=t,this.name=r,this.version=i,this.options=n}return e.prototype.startSpan=function(t,r,i){return this._getTracer().startSpan(t,r,i)},e.prototype.startActiveSpan=function(t,r,i,n){var a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):OH},e})();var Sj=(function(){function e(){}return e.prototype.getTracer=function(t,r,i){return new Df},e})();var NH=new Sj,Hk=(function(){function e(){}return e.prototype.getTracer=function(t,r,i){var n;return(n=this.getDelegateTracer(t,r,i))!==null&&n!==void 0?n:new xj(this,t,r,i)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:NH},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,r,i){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getTracer(t,r,i)},e})();var ns;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(ns||(ns={}));var jf=rs.getInstance();var Kk="trace",Ij=(function(){function e(){this._proxyTracerProvider=new Hk,this.wrapSpanContext=kj,this.isSpanContextValid=Nf,this.deleteSpan=_j,this.getSpan=Af,this.getActiveSpan=bj,this.getSpanContext=Of,this.setSpan=_u,this.setSpanContext=wj}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var r=Qo(Kk,this._proxyTracerProvider,ts.instance());return r&&this._proxyTracerProvider.setDelegate(t),r},e.prototype.getTracerProvider=function(){return Rn(Kk)||this._proxyTracerProvider},e.prototype.getTracer=function(t,r){return this.getTracerProvider().getTracer(t,r)},e.prototype.disable=function(){es(Kk,ts.instance()),this._proxyTracerProvider=new Hk},e})();var Yk=Ij.getInstance();var jH=Object.defineProperty,PH=(e,t)=>{for(var r in t)jH(e,r,{get:t[r],enumerable:!0})},Mj="AI_InvalidArgumentError",Lj=`vercel.ai.error.${Mj}`,zH=Symbol.for(Lj),Fj,cn=class extends ie{constructor({parameter:e,value:t,message:r}){super({name:Mj,message:`Invalid argument for parameter ${e}: ${r}`}),this[Fj]=!0,this.parameter=e,this.value=t}static isInstance(e){return ie.hasMarker(e,Lj)}};Fj=zH;var RH="AI_InvalidStreamPartError",MH=`vercel.ai.error.${RH}`,LH=Symbol.for(MH),FH;FH=LH;var Uj="AI_InvalidToolApprovalError",qj=`vercel.ai.error.${Uj}`,UH=Symbol.for(qj),Bj,qH=class extends ie{constructor({approvalId:e}){super({name:Uj,message:`Tool approval response references unknown approvalId: "${e}". No matching tool-approval-request found in message history.`}),this[Bj]=!0,this.approvalId=e}static isInstance(e){return ie.hasMarker(e,qj)}};Bj=UH;var Vj="AI_InvalidToolInputError",Zj=`vercel.ai.error.${Vj}`,BH=Symbol.for(Zj),Wj,rx=class extends ie{constructor({toolInput:e,toolName:t,cause:r,message:i=`Invalid input for tool ${t}: ${pi(r)}`}){super({name:Vj,message:i,cause:r}),this[Wj]=!0,this.toolInput=e,this.toolName=t}static isInstance(e){return ie.hasMarker(e,Zj)}};Wj=BH;var Gj="AI_ToolCallNotFoundForApprovalError",Jj=`vercel.ai.error.${Gj}`,VH=Symbol.for(Jj),Hj,Kj=class extends ie{constructor({toolCallId:e,approvalId:t}){super({name:Gj,message:`Tool call "${e}" not found for approval request "${t}".`}),this[Hj]=!0,this.toolCallId=e,this.approvalId=t}static isInstance(e){return ie.hasMarker(e,Jj)}};Hj=VH;var Yj="AI_MissingToolResultsError",Xj=`vercel.ai.error.${Yj}`,ZH=Symbol.for(Xj),Qj,Ej=class extends ie{constructor({toolCallIds:e}){super({name:Yj,message:`Tool result${e.length>1?"s are":" is"} missing for tool call${e.length>1?"s":""} ${e.join(", ")}.`}),this[Qj]=!0,this.toolCallIds=e}static isInstance(e){return ie.hasMarker(e,Xj)}};Qj=ZH;var WH="AI_NoImageGeneratedError",GH=`vercel.ai.error.${WH}`,JH=Symbol.for(GH),HH;HH=JH;var eP="AI_NoObjectGeneratedError",tP=`vercel.ai.error.${eP}`,KH=Symbol.for(tP),rP,Oi=class extends ie{constructor({message:e="No object generated.",cause:t,text:r,response:i,usage:n,finishReason:a}){super({name:eP,message:e,cause:t}),this[rP]=!0,this.text=r,this.response=i,this.usage=n,this.finishReason=a}static isInstance(e){return ie.hasMarker(e,tP)}};rP=KH;var nP="AI_NoOutputGeneratedError",iP=`vercel.ai.error.${nP}`,YH=Symbol.for(iP),aP,XH=class extends ie{constructor({message:e="No output generated.",cause:t}={}){super({name:nP,message:e,cause:t}),this[aP]=!0}static isInstance(e){return ie.hasMarker(e,iP)}};aP=YH;var QH="AI_NoSpeechGeneratedError",e5=`vercel.ai.error.${QH}`,t5=Symbol.for(e5),r5;r5=t5;var n5="AI_NoTranscriptGeneratedError",i5=`vercel.ai.error.${n5}`,a5=Symbol.for(i5),o5;o5=a5;var s5="AI_NoVideoGeneratedError",l5=`vercel.ai.error.${s5}`,u5=Symbol.for(l5),c5;c5=u5;var oP="AI_NoSuchToolError",sP=`vercel.ai.error.${oP}`,d5=Symbol.for(sP),lP,Qk=class extends ie{constructor({toolName:e,availableTools:t=void 0,message:r=`Model tried to call unavailable tool '${e}'. ${t===void 0?"No tools are available.":`Available tools: ${t.join(", ")}.`}`}){super({name:oP,message:r}),this[lP]=!0,this.toolName=e,this.availableTools=t}static isInstance(e){return ie.hasMarker(e,sP)}};lP=d5;var uP="AI_ToolCallRepairError",cP=`vercel.ai.error.${uP}`,p5=Symbol.for(cP),dP,f5=class extends ie{constructor({cause:e,originalError:t,message:r=`Error repairing tool call: ${pi(e)}`}){super({name:uP,message:r,cause:e}),this[dP]=!0,this.originalError=t}static isInstance(e){return ie.hasMarker(e,cP)}};dP=p5;var m5=class extends ie{constructor(e){super({name:"AI_UnsupportedModelVersionError",message:`Unsupported model version ${e.version} for provider "${e.provider}" and model "${e.modelId}". AI SDK 5 only supports models that implement specification version "v2".`}),this.version=e.version,this.provider=e.provider,this.modelId=e.modelId}},h5="AI_UIMessageStreamError",g5=`vercel.ai.error.${h5}`,y5=Symbol.for(g5),v5;v5=y5;var b5="AI_InvalidDataContentError",_5=`vercel.ai.error.${b5}`,w5=Symbol.for(_5),k5;k5=w5;var pP="AI_InvalidMessageRoleError",fP=`vercel.ai.error.${pP}`,x5=Symbol.for(fP),mP,S5=class extends ie{constructor({role:e,message:t=`Invalid message role: '${e}'. Must be one of: "system", "user", "assistant", "tool".`}){super({name:pP,message:t}),this[mP]=!0,this.role=e}static isInstance(e){return ie.hasMarker(e,fP)}};mP=x5;var I5="AI_MessageConversionError",E5=`vercel.ai.error.${I5}`,T5=Symbol.for(E5),$5;$5=T5;var hP="AI_RetryError",gP=`vercel.ai.error.${hP}`,C5=Symbol.for(gP),yP,Tj=class extends ie{constructor({message:e,reason:t,errors:r}){super({name:hP,message:e}),this[yP]=!0,this.reason=t,this.errors=r,this.lastError=r[r.length-1]}static isInstance(e){return ie.hasMarker(e,gP)}};yP=C5;function Rf(e){return e===void 0?[]:Array.isArray(e)?e:[e]}async function va(e){for(let t of Rf(e.callbacks))try{await t(e.event)}catch{}}function A5({warning:e,provider:t,model:r}){let i=`AI SDK Warning (${t} / ${r}):`;switch(e.type){case"unsupported":{let n=`${i} The feature "${e.feature}" is not supported.`;return e.details&&(n+=` ${e.details}`),n}case"compatibility":{let n=`${i} The feature "${e.feature}" is used in a compatibility mode.`;return e.details&&(n+=` ${e.details}`),n}case"other":return`${i} ${e.message}`;default:return`${i} ${JSON.stringify(e,null,2)}`}}var O5="AI SDK Warning System: To turn off warning logging, set the AI_SDK_LOG_WARNINGS global to false.",$j=!1,vP=e=>{if(e.warnings.length===0)return;let t=globalThis.AI_SDK_LOG_WARNINGS;if(t!==!1){if(typeof t=="function"){t(e);return}$j||($j=!0,console.info(O5));for(let r of e.warnings)console.warn(A5({warning:r,provider:e.provider,model:e.model}))}};function N5({provider:e,modelId:t}){vP({warnings:[{type:"compatibility",feature:"specificationVersion",details:"Using v2 specification compatibility mode. Some features may not be available."}],provider:e,model:t})}function D5(e){return e.specificationVersion==="v3"?e:(N5({provider:e.provider,modelId:e.modelId}),new Proxy(e,{get(t,r){switch(r){case"specificationVersion":return"v3";case"doGenerate":return async(...i)=>{let n=await t.doGenerate(...i);return{...n,finishReason:bP(n.finishReason),usage:_P(n.usage)}};case"doStream":return async(...i)=>{let n=await t.doStream(...i);return{...n,stream:j5(n.stream)}};default:return t[r]}}}))}function j5(e){return e.pipeThrough(new TransformStream({transform(t,r){t.type==="finish"?r.enqueue({...t,finishReason:bP(t.finishReason),usage:_P(t.usage)}):r.enqueue(t)}}))}function bP(e){return{unified:e==="unknown"?"other":e,raw:void 0}}function _P(e){return{inputTokens:{total:e.inputTokens,noCache:void 0,cacheRead:e.cachedInputTokens,cacheWrite:void 0},outputTokens:{total:e.outputTokens,text:void 0,reasoning:e.reasoningTokens}}}function Cj(e){if(typeof e!="string"){if(e.specificationVersion!=="v3"&&e.specificationVersion!=="v2"){let t=e;throw new m5({version:t.specificationVersion,provider:t.provider,modelId:t.modelId})}return D5(e)}return P5().languageModel(e)}function P5(){var e;return(e=globalThis.AI_SDK_DEFAULT_PROVIDER)!=null?e:uj}function wP(e){if(e!=null)return typeof e=="number"?e:e.totalMs}function z5(e){if(!(e==null||typeof e=="number"))return e.stepMs}var R5=[{mediaType:"image/gif",bytesPrefix:[71,73,70]},{mediaType:"image/png",bytesPrefix:[137,80,78,71]},{mediaType:"image/jpeg",bytesPrefix:[255,216]},{mediaType:"image/webp",bytesPrefix:[82,73,70,70,null,null,null,null,87,69,66,80]},{mediaType:"image/bmp",bytesPrefix:[66,77]},{mediaType:"image/tiff",bytesPrefix:[73,73,42,0]},{mediaType:"image/tiff",bytesPrefix:[77,77,0,42]},{mediaType:"image/avif",bytesPrefix:[0,0,0,32,102,116,121,112,97,118,105,102]},{mediaType:"image/heic",bytesPrefix:[0,0,0,32,102,116,121,112,104,101,105,99]}];var M5=e=>{let t=typeof e=="string"?Zr(e):e,r=(t[6]&127)<<21|(t[7]&127)<<14|(t[8]&127)<<7|t[9]&127;return t.slice(r+10)};function L5(e){return typeof e=="string"&&e.startsWith("SUQz")||typeof e!="string"&&e.length>10&&e[0]===73&&e[1]===68&&e[2]===51?M5(e):e}function F5({data:e,signatures:t}){let r=L5(e),i=typeof r=="string"?Zr(r.substring(0,Math.min(r.length,24))):r;for(let n of t)if(i.length>=n.bytesPrefix.length&&n.bytesPrefix.every((a,o)=>a===null||i[o]===a))return n.mediaType}var kP="6.0.104",xP=async({url:e,maxBytes:t,abortSignal:r})=>{var i;let n=e.toString();try{let a=await fetch(n,{headers:Wr({},`ai-sdk/${kP}`,bf()),signal:r});if(!a.ok)throw new Nn({url:n,statusCode:a.status,statusText:a.statusText});return{data:await _k({response:a,url:n,maxBytes:t??yf}),mediaType:(i=a.headers.get("content-type"))!=null?i:void 0}}catch(a){throw Nn.isInstance(a)?a:new Nn({url:n,cause:a})}},U5=(e=xP)=>t=>Promise.all(t.map(async r=>r.isUrlSupportedByModel?null:e(r)));function q5(e){try{let[t,r]=e.split(",");return{mediaType:t.split(";")[0].split(":")[1],base64Content:r}}catch{return{mediaType:void 0,base64Content:void 0}}}var SP=l.union([l.string(),l.instanceof(Uint8Array),l.instanceof(ArrayBuffer),l.custom(e=>{var t,r;return(r=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null?r:!1},{message:"Must be a Buffer"})]);function IP(e){if(e instanceof Uint8Array)return{data:e,mediaType:void 0};if(e instanceof ArrayBuffer)return{data:new Uint8Array(e),mediaType:void 0};if(typeof e=="string")try{e=new URL(e)}catch{}if(e instanceof URL&&e.protocol==="data:"){let{mediaType:t,base64Content:r}=q5(e.toString());if(t==null||r==null)throw new ie({name:"InvalidDataContentError",message:`Invalid data URL format in content ${e.toString()}`});return{data:r,mediaType:t}}return{data:e,mediaType:void 0}}function B5(e){return typeof e=="string"?e:e instanceof ArrayBuffer?un(new Uint8Array(e)):un(e)}async function V5({prompt:e,supportedUrls:t,download:r=U5()}){let i=await W5(e.messages,r,t),n=new Map;for(let c of e.messages)if(c.role==="assistant"&&Array.isArray(c.content))for(let d of c.content)d.type==="tool-approval-request"&&"approvalId"in d&&"toolCallId"in d&&n.set(d.approvalId,d.toolCallId);let a=new Set;for(let c of e.messages)if(c.role==="tool"){for(let d of c.content)if(d.type==="tool-approval-response"){let p=n.get(d.approvalId);p&&a.add(p)}}let o=[...e.system!=null?typeof e.system=="string"?[{role:"system",content:e.system}]:Rf(e.system).map(c=>({role:"system",content:c.content,providerOptions:c.providerOptions})):[],...e.messages.map(c=>Z5({message:c,downloadedAssets:i}))],s=[];for(let c of o){if(c.role!=="tool"){s.push(c);continue}let d=s.at(-1);d?.role==="tool"?d.content.push(...c.content):s.push(c)}let u=new Set;for(let c of s)switch(c.role){case"assistant":{for(let d of c.content)d.type==="tool-call"&&!d.providerExecuted&&u.add(d.toolCallId);break}case"tool":{for(let d of c.content)d.type==="tool-result"&&u.delete(d.toolCallId);break}case"user":case"system":for(let d of a)u.delete(d);if(u.size>0)throw new Ej({toolCallIds:Array.from(u)});break}for(let c of a)u.delete(c);if(u.size>0)throw new Ej({toolCallIds:Array.from(u)});return s.filter(c=>c.role!=="tool"||c.content.length>0)}function Z5({message:e,downloadedAssets:t}){let r=e.role;switch(r){case"system":return{role:"system",content:e.content,providerOptions:e.providerOptions};case"user":return typeof e.content=="string"?{role:"user",content:[{type:"text",text:e.content}],providerOptions:e.providerOptions}:{role:"user",content:e.content.map(i=>G5(i,t)).filter(i=>i.type!=="text"||i.text!==""),providerOptions:e.providerOptions};case"assistant":return typeof e.content=="string"?{role:"assistant",content:[{type:"text",text:e.content}],providerOptions:e.providerOptions}:{role:"assistant",content:e.content.filter(i=>i.type!=="text"||i.text!==""||i.providerOptions!=null).filter(i=>i.type!=="tool-approval-request").map(i=>{let n=i.providerOptions;switch(i.type){case"file":{let{data:a,mediaType:o}=IP(i.data);return{type:"file",data:a,filename:i.filename,mediaType:o??i.mediaType,providerOptions:n}}case"reasoning":return{type:"reasoning",text:i.text,providerOptions:n};case"text":return{type:"text",text:i.text,providerOptions:n};case"tool-call":return{type:"tool-call",toolCallId:i.toolCallId,toolName:i.toolName,input:i.input,providerExecuted:i.providerExecuted,providerOptions:n};case"tool-result":return{type:"tool-result",toolCallId:i.toolCallId,toolName:i.toolName,output:Aj(i.output),providerOptions:n}}}),providerOptions:e.providerOptions};case"tool":return{role:"tool",content:e.content.filter(i=>i.type!=="tool-approval-response"||i.providerExecuted).map(i=>{switch(i.type){case"tool-result":return{type:"tool-result",toolCallId:i.toolCallId,toolName:i.toolName,output:Aj(i.output),providerOptions:i.providerOptions};case"tool-approval-response":return{type:"tool-approval-response",approvalId:i.approvalId,approved:i.approved,reason:i.reason}}}),providerOptions:e.providerOptions};default:{let i=r;throw new S5({role:i})}}}async function W5(e,t,r){let i=e.filter(a=>a.role==="user").map(a=>a.content).filter(a=>Array.isArray(a)).flat().filter(a=>a.type==="image"||a.type==="file").map(a=>{var o;let s=(o=a.mediaType)!=null?o:a.type==="image"?"image/*":void 0,u=a.type==="image"?a.image:a.data;if(typeof u=="string")try{u=new URL(u)}catch{}return{mediaType:s,data:u}}).filter(a=>a.data instanceof URL).map(a=>({url:a.data,isUrlSupportedByModel:a.mediaType!=null&&ON({url:a.data.toString(),mediaType:a.mediaType,supportedUrls:r})})),n=await t(i);return Object.fromEntries(n.map((a,o)=>a==null?null:[i[o].url.toString(),{data:a.data,mediaType:a.mediaType}]).filter(a=>a!=null))}function G5(e,t){var r;if(e.type==="text")return{type:"text",text:e.text,providerOptions:e.providerOptions};let i,n=e.type;switch(n){case"image":i=e.image;break;case"file":i=e.data;break;default:throw new Error(`Unsupported part type: ${n}`)}let{data:a,mediaType:o}=IP(i),s=o??e.mediaType,u=a;if(u instanceof URL){let c=t[u.toString()];c&&(u=c.data,s??(s=c.mediaType))}switch(n){case"image":return(u instanceof Uint8Array||typeof u=="string")&&(s=(r=F5({data:u,signatures:R5}))!=null?r:s),{type:"file",mediaType:s??"image/*",filename:void 0,data:u,providerOptions:e.providerOptions};case"file":{if(s==null)throw new Error("Media type is missing for file part");return{type:"file",mediaType:s,filename:e.filename,data:u,providerOptions:e.providerOptions}}}}function Aj(e){return e.type!=="content"?e:{type:"content",value:e.value.map(t=>t.type!=="media"?t:t.mediaType.startsWith("image/")?{type:"image-data",data:t.data,mediaType:t.mediaType}:{type:"file-data",data:t.data,mediaType:t.mediaType})}}async function zf({toolCallId:e,input:t,output:r,tool:i,errorMode:n}){return n==="text"?{type:"error-text",value:pi(r)}:n==="json"?{type:"error-json",value:Oj(r)}:i?.toModelOutput?await i.toModelOutput({toolCallId:e,input:t,output:r}):typeof r=="string"?{type:"text",value:r}:{type:"json",value:Oj(r)}}function Oj(e){return e===void 0?null:e}function Nj({maxOutputTokens:e,temperature:t,topP:r,topK:i,presencePenalty:n,frequencyPenalty:a,seed:o,stopSequences:s}){if(e!=null){if(!Number.isInteger(e))throw new cn({parameter:"maxOutputTokens",value:e,message:"maxOutputTokens must be an integer"});if(e<1)throw new cn({parameter:"maxOutputTokens",value:e,message:"maxOutputTokens must be >= 1"})}if(t!=null&&typeof t!="number")throw new cn({parameter:"temperature",value:t,message:"temperature must be a number"});if(r!=null&&typeof r!="number")throw new cn({parameter:"topP",value:r,message:"topP must be a number"});if(i!=null&&typeof i!="number")throw new cn({parameter:"topK",value:i,message:"topK must be a number"});if(n!=null&&typeof n!="number")throw new cn({parameter:"presencePenalty",value:n,message:"presencePenalty must be a number"});if(a!=null&&typeof a!="number")throw new cn({parameter:"frequencyPenalty",value:a,message:"frequencyPenalty must be a number"});if(o!=null&&!Number.isInteger(o))throw new cn({parameter:"seed",value:o,message:"seed must be an integer"});return{maxOutputTokens:e,temperature:t,topP:r,topK:i,presencePenalty:n,frequencyPenalty:a,stopSequences:s,seed:o}}function J5(e){return e!=null&&Object.keys(e).length>0}async function H5({tools:e,toolChoice:t,activeTools:r}){if(!J5(e))return{tools:void 0,toolChoice:void 0};let i=r!=null?Object.entries(e).filter(([a])=>r.includes(a)):Object.entries(e),n=[];for(let[a,o]of i){let s=o.type;switch(s){case void 0:case"dynamic":case"function":n.push({type:"function",name:a,description:o.description,inputSchema:await jn(o.inputSchema).jsonSchema,...o.inputExamples!=null?{inputExamples:o.inputExamples}:{},providerOptions:o.providerOptions,...o.strict!=null?{strict:o.strict}:{}});break;case"provider":n.push({type:"provider",name:a,id:o.id,args:o.args});break;default:{let u=s;throw new Error(`Unsupported tool type: ${u}`)}}}return{tools:n,toolChoice:t==null?{type:"auto"}:typeof t=="string"?{type:t}:{type:"tool",toolName:t.toolName}}}var wu=l.lazy(()=>l.union([l.null(),l.string(),l.number(),l.boolean(),l.record(l.string(),wu.optional()),l.array(wu)])),fe=l.record(l.string(),l.record(l.string(),wu.optional())),EP=l.object({type:l.literal("text"),text:l.string(),providerOptions:fe.optional()}),K5=l.object({type:l.literal("image"),image:l.union([SP,l.instanceof(URL)]),mediaType:l.string().optional(),providerOptions:fe.optional()}),TP=l.object({type:l.literal("file"),data:l.union([SP,l.instanceof(URL)]),filename:l.string().optional(),mediaType:l.string(),providerOptions:fe.optional()}),Y5=l.object({type:l.literal("reasoning"),text:l.string(),providerOptions:fe.optional()}),X5=l.object({type:l.literal("tool-call"),toolCallId:l.string(),toolName:l.string(),input:l.unknown(),providerOptions:fe.optional(),providerExecuted:l.boolean().optional()}),Q5=l.discriminatedUnion("type",[l.object({type:l.literal("text"),value:l.string(),providerOptions:fe.optional()}),l.object({type:l.literal("json"),value:wu,providerOptions:fe.optional()}),l.object({type:l.literal("execution-denied"),reason:l.string().optional(),providerOptions:fe.optional()}),l.object({type:l.literal("error-text"),value:l.string(),providerOptions:fe.optional()}),l.object({type:l.literal("error-json"),value:wu,providerOptions:fe.optional()}),l.object({type:l.literal("content"),value:l.array(l.union([l.object({type:l.literal("text"),text:l.string(),providerOptions:fe.optional()}),l.object({type:l.literal("media"),data:l.string(),mediaType:l.string()}),l.object({type:l.literal("file-data"),data:l.string(),mediaType:l.string(),filename:l.string().optional(),providerOptions:fe.optional()}),l.object({type:l.literal("file-url"),url:l.string(),providerOptions:fe.optional()}),l.object({type:l.literal("file-id"),fileId:l.union([l.string(),l.record(l.string(),l.string())]),providerOptions:fe.optional()}),l.object({type:l.literal("image-data"),data:l.string(),mediaType:l.string(),providerOptions:fe.optional()}),l.object({type:l.literal("image-url"),url:l.string(),providerOptions:fe.optional()}),l.object({type:l.literal("image-file-id"),fileId:l.union([l.string(),l.record(l.string(),l.string())]),providerOptions:fe.optional()}),l.object({type:l.literal("custom"),providerOptions:fe.optional()})]))})]),$P=l.object({type:l.literal("tool-result"),toolCallId:l.string(),toolName:l.string(),output:Q5,providerOptions:fe.optional()}),eK=l.object({type:l.literal("tool-approval-request"),approvalId:l.string(),toolCallId:l.string()}),tK=l.object({type:l.literal("tool-approval-response"),approvalId:l.string(),approved:l.boolean(),reason:l.string().optional()}),rK=l.object({role:l.literal("system"),content:l.string(),providerOptions:fe.optional()}),nK=l.object({role:l.literal("user"),content:l.union([l.string(),l.array(l.union([EP,K5,TP]))]),providerOptions:fe.optional()}),iK=l.object({role:l.literal("assistant"),content:l.union([l.string(),l.array(l.union([EP,TP,Y5,X5,$P,eK]))]),providerOptions:fe.optional()}),aK=l.object({role:l.literal("tool"),content:l.array(l.union([$P,tK])),providerOptions:fe.optional()}),oK=l.union([rK,nK,iK,aK]);async function sK(e){if(e.prompt==null&&e.messages==null)throw new Sn({prompt:e,message:"prompt or messages must be defined"});if(e.prompt!=null&&e.messages!=null)throw new Sn({prompt:e,message:"prompt and messages cannot be defined at the same time"});if(e.system!=null&&typeof e.system!="string"&&!Rf(e.system).every(i=>typeof i=="object"&&i!==null&&"role"in i&&i.role==="system"))throw new Sn({prompt:e,message:"system must be a string, SystemModelMessage, or array of SystemModelMessage"});let t;if(e.prompt!=null&&typeof e.prompt=="string")t=[{role:"user",content:e.prompt}];else if(e.prompt!=null&&Array.isArray(e.prompt))t=e.prompt;else if(e.messages!=null)t=e.messages;else throw new Sn({prompt:e,message:"prompt or messages must be defined"});if(t.length===0)throw new Sn({prompt:e,message:"messages must not be empty"});let r=await Ot({value:t,schema:l.array(oK)});if(!r.success)throw new Sn({prompt:e,message:"The messages do not match the ModelMessage[] schema.",cause:r.error});return{messages:t,system:e.system}}function lK(e){if(!$f.isInstance(e))return e;let t=(process==null?void 0:process.env.NODE_ENV)==="production",r="https://ai-sdk.dev/unauthenticated-ai-gateway";return t?new ie({name:"GatewayError",message:`Unauthenticated. Configure AI_GATEWAY_API_KEY or use a provider module. Learn more: ${r}`}):Object.assign(new Error(`\x1B[1m\x1B[31mUnauthenticated request to AI Gateway.\x1B[0m
|
|
335
|
+
|
|
336
|
+
To authenticate, set the \x1B[33mAI_GATEWAY_API_KEY\x1B[0m environment variable with your API key.
|
|
337
|
+
|
|
338
|
+
Alternatively, you can use a provider module instead of the AI Gateway.
|
|
339
|
+
|
|
340
|
+
Learn more: \x1B[34m${r}\x1B[0m
|
|
341
|
+
|
|
342
|
+
`),{name:"GatewayAuthenticationError"})}function ex({operationId:e,telemetry:t}){return{"operation.name":`${e}${t?.functionId!=null?` ${t.functionId}`:""}`,"resource.name":t?.functionId,"ai.operationId":e,"ai.telemetry.functionId":t?.functionId}}function uK({model:e,settings:t,telemetry:r,headers:i}){var n;return{"ai.model.provider":e.provider,"ai.model.id":e.modelId,...Object.entries(t).reduce((a,[o,s])=>{if(o==="timeout"){let u=wP(s);u!=null&&(a[`ai.settings.${o}`]=u)}else a[`ai.settings.${o}`]=s;return a},{}),...Object.entries((n=r?.metadata)!=null?n:{}).reduce((a,[o,s])=>(a[`ai.telemetry.metadata.${o}`]=s,a),{}),...Object.entries(i??{}).reduce((a,[o,s])=>(s!==void 0&&(a[`ai.request.headers.${o}`]=s),a),{})}}var cK={startSpan(){return Pf},startActiveSpan(e,t,r,i){if(typeof t=="function")return t(Pf);if(typeof r=="function")return r(Pf);if(typeof i=="function")return i(Pf)}},Pf={spanContext(){return dK},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},addLink(){return this},addLinks(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this}},dK={traceId:"",spanId:"",traceFlags:0};function pK({isEnabled:e=!1,tracer:t}={}){return e?t||Yk.getTracer("ai"):cK}async function tx({name:e,tracer:t,attributes:r,fn:i,endWhenDone:n=!0}){return t.startActiveSpan(e,{attributes:await r},async a=>{let o=jf.active();try{let s=await jf.with(o,()=>i(a));return n&&a.end(),s}catch(s){try{CP(a,s)}finally{a.end()}throw s}})}function CP(e,t){t instanceof Error?(e.recordException({name:t.name,message:t.message,stack:t.stack}),e.setStatus({code:ns.ERROR,message:t.message})):e.setStatus({code:ns.ERROR})}async function is({telemetry:e,attributes:t}){if(e?.isEnabled!==!0)return{};let r={};for(let[i,n]of Object.entries(t))if(n!=null){if(typeof n=="object"&&"input"in n&&typeof n.input=="function"){if(e?.recordInputs===!1)continue;let a=await n.input();a!=null&&(r[i]=a);continue}if(typeof n=="object"&&"output"in n&&typeof n.output=="function"){if(e?.recordOutputs===!1)continue;let a=await n.output();a!=null&&(r[i]=a);continue}r[i]=n}return r}function fK(e){return JSON.stringify(e.map(t=>({...t,content:typeof t.content=="string"?t.content:t.content.map(r=>r.type==="file"?{...r,data:r.data instanceof Uint8Array?B5(r.data):r.data}:r)})))}function mK(e){return{inputTokens:e.inputTokens.total,inputTokenDetails:{noCacheTokens:e.inputTokens.noCache,cacheReadTokens:e.inputTokens.cacheRead,cacheWriteTokens:e.inputTokens.cacheWrite},outputTokens:e.outputTokens.total,outputTokenDetails:{textTokens:e.outputTokens.text,reasoningTokens:e.outputTokens.reasoning},totalTokens:Gr(e.inputTokens.total,e.outputTokens.total),raw:e.raw,reasoningTokens:e.outputTokens.reasoning,cachedInputTokens:e.inputTokens.cacheRead}}function hK(e,t){var r,i,n,a,o,s,u,c,d,p;return{inputTokens:Gr(e.inputTokens,t.inputTokens),inputTokenDetails:{noCacheTokens:Gr((r=e.inputTokenDetails)==null?void 0:r.noCacheTokens,(i=t.inputTokenDetails)==null?void 0:i.noCacheTokens),cacheReadTokens:Gr((n=e.inputTokenDetails)==null?void 0:n.cacheReadTokens,(a=t.inputTokenDetails)==null?void 0:a.cacheReadTokens),cacheWriteTokens:Gr((o=e.inputTokenDetails)==null?void 0:o.cacheWriteTokens,(s=t.inputTokenDetails)==null?void 0:s.cacheWriteTokens)},outputTokens:Gr(e.outputTokens,t.outputTokens),outputTokenDetails:{textTokens:Gr((u=e.outputTokenDetails)==null?void 0:u.textTokens,(c=t.outputTokenDetails)==null?void 0:c.textTokens),reasoningTokens:Gr((d=e.outputTokenDetails)==null?void 0:d.reasoningTokens,(p=t.outputTokenDetails)==null?void 0:p.reasoningTokens)},totalTokens:Gr(e.totalTokens,t.totalTokens),reasoningTokens:Gr(e.reasoningTokens,t.reasoningTokens),cachedInputTokens:Gr(e.cachedInputTokens,t.cachedInputTokens)}}function Gr(e,t){return e==null&&t==null?void 0:(e??0)+(t??0)}function AP(e,t){if(e===void 0&&t===void 0)return;if(e===void 0)return t;if(t===void 0)return e;let r={...e};for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)){let n=t[i];if(n===void 0)continue;let a=i in e?e[i]:void 0,o=n!==null&&typeof n=="object"&&!Array.isArray(n)&&!(n instanceof Date)&&!(n instanceof RegExp),s=a!=null&&typeof a=="object"&&!Array.isArray(a)&&!(a instanceof Date)&&!(a instanceof RegExp);o&&s?r[i]=AP(a,n):r[i]=n}return r}function gK({error:e,exponentialBackoffDelay:t}){let r=e.responseHeaders;if(!r)return t;let i,n=r["retry-after-ms"];if(n){let o=parseFloat(n);Number.isNaN(o)||(i=o)}let a=r["retry-after"];if(a&&i===void 0){let o=parseFloat(a);Number.isNaN(o)?i=Date.parse(a)-Date.now():i=o*1e3}return i!=null&&!Number.isNaN(i)&&0<=i&&(i<60*1e3||i<t)?i:t}var yK=({maxRetries:e=2,initialDelayInMs:t=2e3,backoffFactor:r=2,abortSignal:i}={})=>async n=>OP(n,{maxRetries:e,delayInMs:t,backoffFactor:r,abortSignal:i});async function OP(e,{maxRetries:t,delayInMs:r,backoffFactor:i,abortSignal:n},a=[]){try{return await e()}catch(o){if(Ei(o)||t===0)throw o;let s=vf(o),u=[...a,o],c=u.length;if(c>t)throw new Tj({message:`Failed after ${c} attempts. Last error: ${s}`,reason:"maxRetriesExceeded",errors:u});if(o instanceof Error&&Fe.isInstance(o)&&o.isRetryable===!0&&c<=t)return await SN(gK({error:o,exponentialBackoffDelay:r}),{abortSignal:n}),OP(e,{maxRetries:t,delayInMs:i*r,backoffFactor:i,abortSignal:n},u);throw c===1?o:new Tj({message:`Failed after ${c} attempts with non-retryable error: '${s}'`,reason:"errorNotRetryable",errors:u})}}function vK({maxRetries:e,abortSignal:t}){if(e!=null){if(!Number.isInteger(e))throw new cn({parameter:"maxRetries",value:e,message:"maxRetries must be an integer"});if(e<0)throw new cn({parameter:"maxRetries",value:e,message:"maxRetries must be >= 0"})}let r=e??2;return{maxRetries:r,retry:yK({maxRetries:r,abortSignal:t})}}function bK({messages:e}){let t=e.at(-1);if(t?.role!="tool")return{approvedToolApprovals:[],deniedToolApprovals:[]};let r={};for(let u of e)if(u.role==="assistant"&&typeof u.content!="string"){let c=u.content;for(let d of c)d.type==="tool-call"&&(r[d.toolCallId]=d)}let i={};for(let u of e)if(u.role==="assistant"&&typeof u.content!="string"){let c=u.content;for(let d of c)d.type==="tool-approval-request"&&(i[d.approvalId]=d)}let n={};for(let u of t.content)u.type==="tool-result"&&(n[u.toolCallId]=u);let a=[],o=[],s=t.content.filter(u=>u.type==="tool-approval-response");for(let u of s){let c=i[u.approvalId];if(c==null)throw new qH({approvalId:u.approvalId});if(n[c.toolCallId]!=null)continue;let d=r[c.toolCallId];if(d==null)throw new Kj({toolCallId:c.toolCallId,approvalId:c.approvalId});let p={approvalRequest:c,approvalResponse:u,toolCall:d};u.approved?a.push(p):o.push(p)}return{approvedToolApprovals:a,deniedToolApprovals:o}}function Xk(){var e,t;return(t=(e=globalThis?.performance)==null?void 0:e.now())!=null?t:Date.now()}async function _K({toolCall:e,tools:t,tracer:r,telemetry:i,messages:n,abortSignal:a,experimental_context:o,stepNumber:s,model:u,onPreliminaryToolResult:c,onToolCallStart:d,onToolCallFinish:p}){let{toolName:f,toolCallId:m,input:g}=e,h=t?.[f];if(h?.execute==null)return;let y={stepNumber:s,model:u,toolCall:e,messages:n,abortSignal:a,functionId:i?.functionId,metadata:i?.metadata,experimental_context:o};return tx({name:"ai.toolCall",attributes:is({telemetry:i,attributes:{...ex({operationId:"ai.toolCall",telemetry:i}),"ai.toolCall.name":f,"ai.toolCall.id":m,"ai.toolCall.args":{output:()=>JSON.stringify(g)}}}),tracer:r,fn:async v=>{let _;await va({event:y,callbacks:d});let b=Xk();try{let E=FN({execute:h.execute.bind(h),input:g,options:{toolCallId:m,messages:n,abortSignal:a,experimental_context:o}});for await(let k of E)k.type==="preliminary"?c?.({...e,type:"tool-result",output:k.output,preliminary:!0}):_=k.output}catch(E){let k=Xk()-b;return await va({event:{...y,success:!1,error:E,durationMs:k},callbacks:p}),CP(v,E),{type:"tool-error",toolCallId:m,toolName:f,input:g,error:E,dynamic:h.type==="dynamic",...e.providerMetadata!=null?{providerMetadata:e.providerMetadata}:{}}}let x=Xk()-b;await va({event:{...y,success:!0,output:_,durationMs:x},callbacks:p});try{v.setAttributes(await is({telemetry:i,attributes:{"ai.toolCall.result":{output:()=>JSON.stringify(_)}}}))}catch{}return{type:"tool-result",toolCallId:m,toolName:f,input:g,output:_,dynamic:h.type==="dynamic",...e.providerMetadata!=null?{providerMetadata:e.providerMetadata}:{}}}})}function Dj(e){let t=e.filter(r=>r.type==="reasoning");return t.length===0?void 0:t.map(r=>r.text).join(`
|
|
343
|
+
`)}function jj(e){let t=e.filter(r=>r.type==="text");if(t.length!==0)return t.map(r=>r.text).join("")}var wK=class{constructor({data:e,mediaType:t}){let r=e instanceof Uint8Array;this.base64Data=r?void 0:e,this.uint8ArrayData=r?e:void 0,this.mediaType=t}get base64(){return this.base64Data==null&&(this.base64Data=un(this.uint8ArrayData)),this.base64Data}get uint8Array(){return this.uint8ArrayData==null&&(this.uint8ArrayData=Zr(this.base64Data)),this.uint8ArrayData}};async function kK({tool:e,toolCall:t,messages:r,experimental_context:i}){return e.needsApproval==null?!1:typeof e.needsApproval=="boolean"?e.needsApproval:await e.needsApproval(t.input,{toolCallId:t.toolCallId,messages:r,experimental_context:i})}var xK={};PH(xK,{array:()=>EK,choice:()=>TK,json:()=>$K,object:()=>IK,text:()=>NP});function SK(e){let t=["ROOT"],r=-1,i=null;function n(u,c,d){switch(u){case'"':{r=c,t.pop(),t.push(d),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{r=c,i=c,t.pop(),t.push(d),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(d),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=c,t.pop(),t.push(d),t.push("INSIDE_NUMBER");break}case"{":{r=c,t.pop(),t.push(d),t.push("INSIDE_OBJECT_START");break}case"[":{r=c,t.pop(),t.push(d),t.push("INSIDE_ARRAY_START");break}}}function a(u,c){switch(u){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{r=c,t.pop();break}}}function o(u,c){switch(u){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=c,t.pop();break}}}for(let u=0;u<e.length;u++){let c=e[u];switch(t[t.length-1]){case"ROOT":n(c,u,"FINISH");break;case"INSIDE_OBJECT_START":{switch(c){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{r=u,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{c==='"'&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break}case"INSIDE_OBJECT_KEY":{c==='"'&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break}case"INSIDE_OBJECT_AFTER_KEY":{c===":"&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break}case"INSIDE_OBJECT_BEFORE_VALUE":{n(c,u,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{a(c,u);break}case"INSIDE_STRING":{switch(c){case'"':{t.pop(),r=u;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:r=u}break}case"INSIDE_ARRAY_START":{c==="]"?(r=u,t.pop()):(r=u,n(c,u,"INSIDE_ARRAY_AFTER_VALUE"));break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(c){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=u,t.pop();break}default:{r=u;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{n(c,u,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),r=u;break}case"INSIDE_NUMBER":{switch(c){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=u;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&o(c,u),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&a(c,u);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&a(c,u);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&o(c,u);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{let p=e.substring(i,u+1);!"false".startsWith(p)&&!"true".startsWith(p)&&!"null".startsWith(p)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?a(c,u):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&o(c,u)):r=u;break}}}let s=e.slice(0,r+1);for(let u=t.length-1;u>=0;u--)switch(t[u]){case"INSIDE_STRING":{s+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{s+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{s+="]";break}case"INSIDE_LITERAL":{let d=e.substring(i,e.length);"true".startsWith(d)?s+="true".slice(d.length):"false".startsWith(d)?s+="false".slice(d.length):"null".startsWith(d)&&(s+="null".slice(d.length))}}return s}async function Mf(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await nr({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await nr({text:SK(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var NP=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),async parseCompleteOutput({text:e}){return e},async parsePartialOutput({text:e}){return{partial:e}},createElementStreamTransform(){}}),IK=({schema:e,name:t,description:r})=>{let i=jn(e);return{name:"object",responseFormat:ot(i.jsonSchema).then(n=>({type:"json",schema:n,...t!=null&&{name:t},...r!=null&&{description:r}})),async parseCompleteOutput({text:n},a){let o=await nr({text:n});if(!o.success)throw new Oi({message:"No object generated: could not parse the response.",cause:o.error,text:n,response:a.response,usage:a.usage,finishReason:a.finishReason});let s=await Ot({value:o.value,schema:i});if(!s.success)throw new Oi({message:"No object generated: response did not match schema.",cause:s.error,text:n,response:a.response,usage:a.usage,finishReason:a.finishReason});return s.value},async parsePartialOutput({text:n}){let a=await Mf(n);switch(a.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:a.value}}},createElementStreamTransform(){}}},EK=({element:e,name:t,description:r})=>{let i=jn(e);return{name:"array",responseFormat:ot(i.jsonSchema).then(n=>{let{$schema:a,...o}=n;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{elements:{type:"array",items:o}},required:["elements"],additionalProperties:!1},...t!=null&&{name:t},...r!=null&&{description:r}}}),async parseCompleteOutput({text:n},a){let o=await nr({text:n});if(!o.success)throw new Oi({message:"No object generated: could not parse the response.",cause:o.error,text:n,response:a.response,usage:a.usage,finishReason:a.finishReason});let s=o.value;if(s==null||typeof s!="object"||!("elements"in s)||!Array.isArray(s.elements))throw new Oi({message:"No object generated: response did not match schema.",cause:new Mr({value:s,cause:"response must be an object with an elements array"}),text:n,response:a.response,usage:a.usage,finishReason:a.finishReason});for(let u of s.elements){let c=await Ot({value:u,schema:i});if(!c.success)throw new Oi({message:"No object generated: response did not match schema.",cause:c.error,text:n,response:a.response,usage:a.usage,finishReason:a.finishReason})}return s.elements},async parsePartialOutput({text:n}){let a=await Mf(n);switch(a.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let o=a.value;if(o==null||typeof o!="object"||!("elements"in o)||!Array.isArray(o.elements))return;let s=a.state==="repaired-parse"&&o.elements.length>0?o.elements.slice(0,-1):o.elements,u=[];for(let c of s){let d=await Ot({value:c,schema:i});d.success&&u.push(d.value)}return{partial:u}}}},createElementStreamTransform(){let n=0;return new TransformStream({transform({partialOutput:a},o){if(a!=null)for(;n<a.length;n++)o.enqueue(a[n])}})}}},TK=({options:e,name:t,description:r})=>({name:"choice",responseFormat:Promise.resolve({type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{result:{type:"string",enum:e}},required:["result"],additionalProperties:!1},...t!=null&&{name:t},...r!=null&&{description:r}}),async parseCompleteOutput({text:i},n){let a=await nr({text:i});if(!a.success)throw new Oi({message:"No object generated: could not parse the response.",cause:a.error,text:i,response:n.response,usage:n.usage,finishReason:n.finishReason});let o=a.value;if(o==null||typeof o!="object"||!("result"in o)||typeof o.result!="string"||!e.includes(o.result))throw new Oi({message:"No object generated: response did not match schema.",cause:new Mr({value:o,cause:"response must be an object that contains a choice value."}),text:i,response:n.response,usage:n.usage,finishReason:n.finishReason});return o.result},async parsePartialOutput({text:i}){let n=await Mf(i);switch(n.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let a=n.value;if(a==null||typeof a!="object"||!("result"in a)||typeof a.result!="string")return;let o=e.filter(s=>s.startsWith(a.result));return n.state==="successful-parse"?o.includes(a.result)?{partial:a.result}:void 0:o.length===1?{partial:o[0]}:void 0}}},createElementStreamTransform(){}}),$K=({name:e,description:t}={})=>({name:"json",responseFormat:Promise.resolve({type:"json",...e!=null&&{name:e},...t!=null&&{description:t}}),async parseCompleteOutput({text:r},i){let n=await nr({text:r});if(!n.success)throw new Oi({message:"No object generated: could not parse the response.",cause:n.error,text:r,response:i.response,usage:i.usage,finishReason:i.finishReason});return n.value},async parsePartialOutput({text:r}){let i=await Mf(r);switch(i.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return i.value===void 0?void 0:{partial:i.value}}},createElementStreamTransform(){}});async function CK({toolCall:e,tools:t,repairToolCall:r,system:i,messages:n}){var a;try{if(t==null){if(e.providerExecuted&&e.dynamic)return await DP(e);throw new Qk({toolName:e.toolName})}try{return await Pj({toolCall:e,tools:t})}catch(o){if(r==null||!(Qk.isInstance(o)||rx.isInstance(o)))throw o;let s=null;try{s=await r({toolCall:e,tools:t,inputSchema:async({toolName:u})=>{let{inputSchema:c}=t[u];return await jn(c).jsonSchema},system:i,messages:n,error:o})}catch(u){throw new f5({cause:u,originalError:o})}if(s==null)throw o;return await Pj({toolCall:s,tools:t})}}catch(o){let s=await nr({text:e.input}),u=s.success?s.value:e.input;return{type:"tool-call",toolCallId:e.toolCallId,toolName:e.toolName,input:u,dynamic:!0,invalid:!0,error:o,title:(a=t?.[e.toolName])==null?void 0:a.title,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata}}}async function DP(e){let t=e.input.trim()===""?{success:!0,value:{}}:await nr({text:e.input});if(t.success===!1)throw new rx({toolName:e.toolName,toolInput:e.input,cause:t.error});return{type:"tool-call",toolCallId:e.toolCallId,toolName:e.toolName,input:t.value,providerExecuted:!0,dynamic:!0,providerMetadata:e.providerMetadata}}async function Pj({toolCall:e,tools:t}){let r=e.toolName,i=t[r];if(i==null){if(e.providerExecuted&&e.dynamic)return await DP(e);throw new Qk({toolName:e.toolName,availableTools:Object.keys(t)})}let n=jn(i.inputSchema),a=e.input.trim()===""?await Ot({value:{},schema:n}):await nr({text:e.input,schema:n});if(a.success===!1)throw new rx({toolName:r,toolInput:e.input,cause:a.error});return i.type==="dynamic"?{type:"tool-call",toolCallId:e.toolCallId,toolName:e.toolName,input:a.value,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,dynamic:!0,title:i.title}:{type:"tool-call",toolCallId:e.toolCallId,toolName:r,input:a.value,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:i.title}}var AK=class{constructor({stepNumber:e,model:t,functionId:r,metadata:i,experimental_context:n,content:a,finishReason:o,rawFinishReason:s,usage:u,warnings:c,request:d,response:p,providerMetadata:f}){this.stepNumber=e,this.model=t,this.functionId=r,this.metadata=i,this.experimental_context=n,this.content=a,this.finishReason=o,this.rawFinishReason=s,this.usage=u,this.warnings=c,this.request=d,this.response=p,this.providerMetadata=f}get text(){return this.content.filter(e=>e.type==="text").map(e=>e.text).join("")}get reasoning(){return this.content.filter(e=>e.type==="reasoning")}get reasoningText(){return this.reasoning.length===0?void 0:this.reasoning.map(e=>e.text).join("")}get files(){return this.content.filter(e=>e.type==="file").map(e=>e.file)}get sources(){return this.content.filter(e=>e.type==="source")}get toolCalls(){return this.content.filter(e=>e.type==="tool-call")}get staticToolCalls(){return this.toolCalls.filter(e=>e.dynamic!==!0)}get dynamicToolCalls(){return this.toolCalls.filter(e=>e.dynamic===!0)}get toolResults(){return this.content.filter(e=>e.type==="tool-result")}get staticToolResults(){return this.toolResults.filter(e=>e.dynamic!==!0)}get dynamicToolResults(){return this.toolResults.filter(e=>e.dynamic===!0)}};function OK(e){return({steps:t})=>t.length===e}async function NK({stopConditions:e,steps:t}){return(await Promise.all(e.map(r=>r({steps:t})))).some(r=>r)}async function DK({content:e,tools:t}){let r=[],i=[];for(let a of e)if(a.type!=="source"&&!((a.type==="tool-result"||a.type==="tool-error")&&!a.providerExecuted)&&!(a.type==="text"&&a.text.length===0))switch(a.type){case"text":i.push({type:"text",text:a.text,providerOptions:a.providerMetadata});break;case"reasoning":i.push({type:"reasoning",text:a.text,providerOptions:a.providerMetadata});break;case"file":i.push({type:"file",data:a.file.base64,mediaType:a.file.mediaType,providerOptions:a.providerMetadata});break;case"tool-call":i.push({type:"tool-call",toolCallId:a.toolCallId,toolName:a.toolName,input:a.input,providerExecuted:a.providerExecuted,providerOptions:a.providerMetadata});break;case"tool-result":{let o=await zf({toolCallId:a.toolCallId,input:a.input,tool:t?.[a.toolName],output:a.output,errorMode:"none"});i.push({type:"tool-result",toolCallId:a.toolCallId,toolName:a.toolName,output:o,providerOptions:a.providerMetadata});break}case"tool-error":{let o=await zf({toolCallId:a.toolCallId,input:a.input,tool:t?.[a.toolName],output:a.error,errorMode:"json"});i.push({type:"tool-result",toolCallId:a.toolCallId,toolName:a.toolName,output:o,providerOptions:a.providerMetadata});break}case"tool-approval-request":i.push({type:"tool-approval-request",approvalId:a.approvalId,toolCallId:a.toolCall.toolCallId});break}i.length>0&&r.push({role:"assistant",content:i});let n=[];for(let a of e){if(!(a.type==="tool-result"||a.type==="tool-error")||a.providerExecuted)continue;let o=await zf({toolCallId:a.toolCallId,input:a.input,tool:t?.[a.toolName],output:a.type==="tool-result"?a.output:a.error,errorMode:a.type==="tool-error"?"text":"none"});n.push({type:"tool-result",toolCallId:a.toolCallId,toolName:a.toolName,output:o,...a.providerMetadata!=null?{providerOptions:a.providerMetadata}:{}})}return n.length>0&&r.push({role:"tool",content:n}),r}function jK(...e){let t=e.filter(i=>i!=null);if(t.length===0)return;if(t.length===1)return t[0];let r=new AbortController;for(let i of t){if(i.aborted)return r.abort(i.reason),r.signal;i.addEventListener("abort",()=>{r.abort(i.reason)},{once:!0})}return r.signal}var PK=Dn({prefix:"aitxt",size:24});async function nx({model:e,tools:t,toolChoice:r,system:i,prompt:n,messages:a,maxRetries:o,abortSignal:s,timeout:u,headers:c,stopWhen:d=OK(1),experimental_output:p,output:f=p,experimental_telemetry:m,providerOptions:g,experimental_activeTools:h,activeTools:y=h,experimental_prepareStep:v,prepareStep:_=v,experimental_repairToolCall:b,experimental_download:x,experimental_context:E,experimental_include:k,_internal:{generateId:A=PK}={},experimental_onStart:$,experimental_onStepStart:T,experimental_onToolCallStart:Y,experimental_onToolCallFinish:R,onStepFinish:O,onFinish:j,...z}){let N=Cj(e),W=Rf(d),pe=wP(u),ce=z5(u),we=ce!=null?new AbortController:void 0,S=jK(s,pe!=null?AbortSignal.timeout(pe):void 0,we?.signal),{maxRetries:X,retry:re}=vK({maxRetries:o,abortSignal:S}),w=Nj(z),le=Wr(c??{},`ai/${kP}`),Me=uK({model:N,telemetry:m,headers:le,settings:{...w,maxRetries:X}}),G={provider:N.provider,modelId:N.modelId},se=await sK({system:i,prompt:n,messages:a});await va({event:{model:G,system:i,prompt:n,messages:a,tools:t,toolChoice:r,activeTools:y,maxOutputTokens:w.maxOutputTokens,temperature:w.temperature,topP:w.topP,topK:w.topK,presencePenalty:w.presencePenalty,frequencyPenalty:w.frequencyPenalty,stopSequences:w.stopSequences,seed:w.seed,maxRetries:X,timeout:u,headers:c,providerOptions:g,stopWhen:d,output:f,abortSignal:s,include:k,functionId:m?.functionId,metadata:m?.metadata,experimental_context:E},callbacks:$});let $e=pK(m);try{return await tx({name:"ai.generateText",attributes:is({telemetry:m,attributes:{...ex({operationId:"ai.generateText",telemetry:m}),...Me,"ai.model.provider":N.provider,"ai.model.id":N.modelId,"ai.prompt":{input:()=>JSON.stringify({system:i,prompt:n,messages:a})}}}),tracer:$e,fn:async Ce=>{var dt,oe,Pe,He,yr,kt,vr,Hr,Kr,Ln,Fn,I,K;let Ke=se.messages,st=[],{approvedToolApprovals:Di,deniedToolApprovals:P}=bK({messages:Ke}),J=Di.filter(Ve=>!Ve.toolCall.providerExecuted);if(P.length>0||J.length>0){let Ve=await zj({toolCalls:J.map(Oe=>Oe.toolCall),tools:t,tracer:$e,telemetry:m,messages:Ke,abortSignal:S,experimental_context:E,stepNumber:0,model:G,onToolCallStart:Y,onToolCallFinish:R}),or=[];for(let Oe of Ve){let Ar=await zf({toolCallId:Oe.toolCallId,input:Oe.input,tool:t?.[Oe.toolName],output:Oe.type==="tool-result"?Oe.output:Oe.error,errorMode:Oe.type==="tool-error"?"json":"none"});or.push({type:"tool-result",toolCallId:Oe.toolCallId,toolName:Oe.toolName,output:Ar})}for(let Oe of P)or.push({type:"tool-result",toolCallId:Oe.toolCall.toolCallId,toolName:Oe.toolCall.toolName,output:{type:"execution-denied",reason:Oe.approvalResponse.reason,...Oe.toolCall.providerExecuted&&{providerOptions:{openai:{approvalId:Oe.approvalResponse.approvalId}}}}});st.push({role:"tool",content:or})}let be=[...Di,...P].filter(Ve=>Ve.toolCall.providerExecuted);be.length>0&&st.push({role:"tool",content:be.map(Ve=>({type:"tool-approval-response",approvalId:Ve.approvalResponse.approvalId,approved:Ve.approvalResponse.approved,reason:Ve.approvalResponse.reason,providerExecuted:!0}))});let Ae=Nj(z),me,xt=[],ar=[],Xe=[],dn=new Map;do{let Ve=ce!=null?setTimeout(()=>we.abort(),ce):void 0;try{let or=[...Ke,...st],Oe=await _?.({model:N,steps:Xe,stepNumber:Xe.length,messages:or,experimental_context:E}),Ar=Cj((dt=Oe?.model)!=null?dt:N),os={provider:Ar.provider,modelId:Ar.modelId},gx=await V5({prompt:{system:(oe=Oe?.system)!=null?oe:se.system,messages:(Pe=Oe?.messages)!=null?Pe:or},supportedUrls:await Ar.supportedUrls,download:x});E=(He=Oe?.experimental_context)!=null?He:E;let yx=(yr=Oe?.activeTools)!=null?yr:y,{toolChoice:xu,tools:qf}=await H5({tools:t,toolChoice:(kt=Oe?.toolChoice)!=null?kt:r,activeTools:yx}),_z=(vr=Oe?.messages)!=null?vr:or,wz=(Hr=Oe?.system)!=null?Hr:se.system,vx=AP(g,Oe?.providerOptions);await va({event:{stepNumber:Xe.length,model:os,system:wz,messages:_z,tools:t,toolChoice:xu,activeTools:yx,steps:[...Xe],providerOptions:vx,timeout:u,headers:c,stopWhen:d,output:f,abortSignal:s,include:k,functionId:m?.functionId,metadata:m?.metadata,experimental_context:E},callbacks:T}),me=await re(()=>{var Ne;return tx({name:"ai.generateText.doGenerate",attributes:is({telemetry:m,attributes:{...ex({operationId:"ai.generateText.doGenerate",telemetry:m}),...Me,"ai.model.provider":Ar.provider,"ai.model.id":Ar.modelId,"ai.prompt.messages":{input:()=>fK(gx)},"ai.prompt.tools":{input:()=>qf?.map(sr=>JSON.stringify(sr))},"ai.prompt.toolChoice":{input:()=>xu!=null?JSON.stringify(xu):void 0},"gen_ai.system":Ar.provider,"gen_ai.request.model":Ar.modelId,"gen_ai.request.frequency_penalty":z.frequencyPenalty,"gen_ai.request.max_tokens":z.maxOutputTokens,"gen_ai.request.presence_penalty":z.presencePenalty,"gen_ai.request.stop_sequences":z.stopSequences,"gen_ai.request.temperature":(Ne=z.temperature)!=null?Ne:void 0,"gen_ai.request.top_k":z.topK,"gen_ai.request.top_p":z.topP}}),tracer:$e,fn:async sr=>{var Vf,ls,wx,kx,xx,Sx,Ix,Ex;let It=await Ar.doGenerate({...Ae,tools:qf,toolChoice:xu,responseFormat:await f?.responseFormat,prompt:gx,providerOptions:vx,abortSignal:S,headers:le}),_a={id:(ls=(Vf=It.response)==null?void 0:Vf.id)!=null?ls:A(),timestamp:(kx=(wx=It.response)==null?void 0:wx.timestamp)!=null?kx:new Date,modelId:(Sx=(xx=It.response)==null?void 0:xx.modelId)!=null?Sx:Ar.modelId,headers:(Ix=It.response)==null?void 0:Ix.headers,body:(Ex=It.response)==null?void 0:Ex.body};return sr.setAttributes(await is({telemetry:m,attributes:{"ai.response.finishReason":It.finishReason.unified,"ai.response.text":{output:()=>jj(It.content)},"ai.response.reasoning":{output:()=>Dj(It.content)},"ai.response.toolCalls":{output:()=>{let Tx=Rj(It.content);return Tx==null?void 0:JSON.stringify(Tx)}},"ai.response.id":_a.id,"ai.response.model":_a.modelId,"ai.response.timestamp":_a.timestamp.toISOString(),"ai.response.providerMetadata":JSON.stringify(It.providerMetadata),"ai.usage.promptTokens":It.usage.inputTokens.total,"ai.usage.completionTokens":It.usage.outputTokens.total,"gen_ai.response.finish_reasons":[It.finishReason.unified],"gen_ai.response.id":_a.id,"gen_ai.response.model":_a.modelId,"gen_ai.usage.input_tokens":It.usage.inputTokens.total,"gen_ai.usage.output_tokens":It.usage.outputTokens.total}})),{...It,response:_a}}})});let ss=await Promise.all(me.content.filter(Ne=>Ne.type==="tool-call").map(Ne=>CK({toolCall:Ne,tools:t,repairToolCall:b,system:i,messages:or}))),Bf={};for(let Ne of ss){if(Ne.invalid)continue;let sr=t?.[Ne.toolName];sr!=null&&(sr?.onInputAvailable!=null&&await sr.onInputAvailable({input:Ne.input,toolCallId:Ne.toolCallId,messages:or,abortSignal:S,experimental_context:E}),await kK({tool:sr,toolCall:Ne,messages:or,experimental_context:E})&&(Bf[Ne.toolCallId]={type:"tool-approval-request",approvalId:A(),toolCall:Ne}))}let kz=ss.filter(Ne=>Ne.invalid&&Ne.dynamic);ar=[];for(let Ne of kz)ar.push({type:"tool-error",toolCallId:Ne.toolCallId,toolName:Ne.toolName,input:Ne.input,error:vf(Ne.error),dynamic:!0});xt=ss.filter(Ne=>!Ne.providerExecuted),t!=null&&ar.push(...await zj({toolCalls:xt.filter(Ne=>!Ne.invalid&&Bf[Ne.toolCallId]==null),tools:t,tracer:$e,telemetry:m,messages:or,abortSignal:S,experimental_context:E,stepNumber:Xe.length,model:os,onToolCallStart:Y,onToolCallFinish:R}));for(let Ne of ss){if(!Ne.providerExecuted)continue;let sr=t?.[Ne.toolName];sr?.type==="provider"&&sr.supportsDeferredResults&&(me.content.some(ls=>ls.type==="tool-result"&&ls.toolCallId===Ne.toolCallId)||dn.set(Ne.toolCallId,{toolName:Ne.toolName}))}for(let Ne of me.content)Ne.type==="tool-result"&&dn.delete(Ne.toolCallId);let bx=RK({content:me.content,toolCalls:ss,toolOutputs:ar,toolApprovalRequests:Object.values(Bf),tools:t});st.push(...await DK({content:bx,tools:t}));let xz=(Kr=k?.requestBody)==null||Kr?(Ln=me.request)!=null?Ln:{}:{...me.request,body:void 0},Sz={...me.response,messages:structuredClone(st),body:(Fn=k?.responseBody)==null||Fn?(I=me.response)==null?void 0:I.body:void 0},Iz=Xe.length,_x=new AK({stepNumber:Iz,model:os,functionId:m?.functionId,metadata:m?.metadata,experimental_context:E,content:bx,finishReason:me.finishReason.unified,rawFinishReason:me.finishReason.raw,usage:mK(me.usage),warnings:me.warnings,providerMetadata:me.providerMetadata,request:xz,response:Sz});vP({warnings:(K=me.warnings)!=null?K:[],provider:os.provider,model:os.modelId}),Xe.push(_x),await va({event:_x,callbacks:O})}finally{Ve!=null&&clearTimeout(Ve)}}while((xt.length>0&&ar.length===xt.length||dn.size>0)&&!await NK({stopConditions:W,steps:Xe}));Ce.setAttributes(await is({telemetry:m,attributes:{"ai.response.finishReason":me.finishReason.unified,"ai.response.text":{output:()=>jj(me.content)},"ai.response.reasoning":{output:()=>Dj(me.content)},"ai.response.toolCalls":{output:()=>{let Ve=Rj(me.content);return Ve==null?void 0:JSON.stringify(Ve)}},"ai.response.providerMetadata":JSON.stringify(me.providerMetadata),"ai.usage.promptTokens":me.usage.inputTokens.total,"ai.usage.completionTokens":me.usage.outputTokens.total}}));let je=Xe[Xe.length-1],St=Xe.reduce((Ve,or)=>hK(Ve,or.usage),{inputTokens:void 0,outputTokens:void 0,totalTokens:void 0,reasoningTokens:void 0,cachedInputTokens:void 0});await va({event:{stepNumber:je.stepNumber,model:je.model,functionId:je.functionId,metadata:je.metadata,experimental_context:je.experimental_context,finishReason:je.finishReason,rawFinishReason:je.rawFinishReason,usage:je.usage,content:je.content,text:je.text,reasoningText:je.reasoningText,reasoning:je.reasoning,files:je.files,sources:je.sources,toolCalls:je.toolCalls,staticToolCalls:je.staticToolCalls,dynamicToolCalls:je.dynamicToolCalls,toolResults:je.toolResults,staticToolResults:je.staticToolResults,dynamicToolResults:je.dynamicToolResults,request:je.request,response:je.response,warnings:je.warnings,providerMetadata:je.providerMetadata,steps:Xe,totalUsage:St},callbacks:j});let pn;return je.finishReason==="stop"&&(pn=await(f??NP()).parseCompleteOutput({text:je.text},{response:je.response,usage:je.usage,finishReason:je.finishReason})),new zK({steps:Xe,totalUsage:St,output:pn})}})}catch(Ce){throw lK(Ce)}}async function zj({toolCalls:e,tools:t,tracer:r,telemetry:i,messages:n,abortSignal:a,experimental_context:o,stepNumber:s,model:u,onToolCallStart:c,onToolCallFinish:d}){return(await Promise.all(e.map(async f=>_K({toolCall:f,tools:t,tracer:r,telemetry:i,messages:n,abortSignal:a,experimental_context:o,stepNumber:s,model:u,onToolCallStart:c,onToolCallFinish:d})))).filter(f=>f!=null)}var zK=class{constructor(e){this.steps=e.steps,this._output=e.output,this.totalUsage=e.totalUsage}get finalStep(){return this.steps[this.steps.length-1]}get content(){return this.finalStep.content}get text(){return this.finalStep.text}get files(){return this.finalStep.files}get reasoningText(){return this.finalStep.reasoningText}get reasoning(){return this.finalStep.reasoning}get toolCalls(){return this.finalStep.toolCalls}get staticToolCalls(){return this.finalStep.staticToolCalls}get dynamicToolCalls(){return this.finalStep.dynamicToolCalls}get toolResults(){return this.finalStep.toolResults}get staticToolResults(){return this.finalStep.staticToolResults}get dynamicToolResults(){return this.finalStep.dynamicToolResults}get sources(){return this.finalStep.sources}get finishReason(){return this.finalStep.finishReason}get rawFinishReason(){return this.finalStep.rawFinishReason}get warnings(){return this.finalStep.warnings}get providerMetadata(){return this.finalStep.providerMetadata}get response(){return this.finalStep.response}get request(){return this.finalStep.request}get usage(){return this.finalStep.usage}get experimental_output(){return this.output}get output(){if(this._output==null)throw new XH;return this._output}};function Rj(e){let t=e.filter(r=>r.type==="tool-call");if(t.length!==0)return t.map(r=>({toolCallId:r.toolCallId,toolName:r.toolName,input:r.input}))}function RK({content:e,toolCalls:t,toolOutputs:r,toolApprovalRequests:i,tools:n}){let a=[];for(let o of e)switch(o.type){case"text":case"reasoning":case"source":a.push(o);break;case"file":{a.push({type:"file",file:new wK(o),...o.providerMetadata!=null?{providerMetadata:o.providerMetadata}:{}});break}case"tool-call":{a.push(t.find(s=>s.toolCallId===o.toolCallId));break}case"tool-result":{let s=t.find(u=>u.toolCallId===o.toolCallId);if(s==null){let u=n?.[o.toolName];if(!(u?.type==="provider"&&u.supportsDeferredResults))throw new Error(`Tool call ${o.toolCallId} not found.`);o.isError?a.push({type:"tool-error",toolCallId:o.toolCallId,toolName:o.toolName,input:void 0,error:o.result,providerExecuted:!0,dynamic:o.dynamic}):a.push({type:"tool-result",toolCallId:o.toolCallId,toolName:o.toolName,input:void 0,output:o.result,providerExecuted:!0,dynamic:o.dynamic});break}o.isError?a.push({type:"tool-error",toolCallId:o.toolCallId,toolName:o.toolName,input:s.input,error:o.result,providerExecuted:!0,dynamic:s.dynamic}):a.push({type:"tool-result",toolCallId:o.toolCallId,toolName:o.toolName,input:s.input,output:o.result,providerExecuted:!0,dynamic:s.dynamic});break}case"tool-approval-request":{let s=t.find(u=>u.toolCallId===o.toolCallId);if(s==null)throw new Kj({toolCallId:o.toolCallId,approvalId:o.approvalId});a.push({type:"tool-approval-request",approvalId:o.approvalId,toolCall:s});break}}return[...a,...r,...i]}var phe=class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)}
|
|
344
|
+
|
|
345
|
+
`)},flush(e){e.enqueue(`data: [DONE]
|
|
346
|
+
|
|
347
|
+
`)}})}};var hhe=H(()=>Z(l.union([l.strictObject({type:l.literal("text-start"),id:l.string(),providerMetadata:fe.optional()}),l.strictObject({type:l.literal("text-delta"),id:l.string(),delta:l.string(),providerMetadata:fe.optional()}),l.strictObject({type:l.literal("text-end"),id:l.string(),providerMetadata:fe.optional()}),l.strictObject({type:l.literal("error"),errorText:l.string()}),l.strictObject({type:l.literal("tool-input-start"),toolCallId:l.string(),toolName:l.string(),providerExecuted:l.boolean().optional(),providerMetadata:fe.optional(),dynamic:l.boolean().optional(),title:l.string().optional()}),l.strictObject({type:l.literal("tool-input-delta"),toolCallId:l.string(),inputTextDelta:l.string()}),l.strictObject({type:l.literal("tool-input-available"),toolCallId:l.string(),toolName:l.string(),input:l.unknown(),providerExecuted:l.boolean().optional(),providerMetadata:fe.optional(),dynamic:l.boolean().optional(),title:l.string().optional()}),l.strictObject({type:l.literal("tool-input-error"),toolCallId:l.string(),toolName:l.string(),input:l.unknown(),providerExecuted:l.boolean().optional(),providerMetadata:fe.optional(),dynamic:l.boolean().optional(),errorText:l.string(),title:l.string().optional()}),l.strictObject({type:l.literal("tool-approval-request"),approvalId:l.string(),toolCallId:l.string()}),l.strictObject({type:l.literal("tool-output-available"),toolCallId:l.string(),output:l.unknown(),providerExecuted:l.boolean().optional(),dynamic:l.boolean().optional(),preliminary:l.boolean().optional()}),l.strictObject({type:l.literal("tool-output-error"),toolCallId:l.string(),errorText:l.string(),providerExecuted:l.boolean().optional(),dynamic:l.boolean().optional()}),l.strictObject({type:l.literal("tool-output-denied"),toolCallId:l.string()}),l.strictObject({type:l.literal("reasoning-start"),id:l.string(),providerMetadata:fe.optional()}),l.strictObject({type:l.literal("reasoning-delta"),id:l.string(),delta:l.string(),providerMetadata:fe.optional()}),l.strictObject({type:l.literal("reasoning-end"),id:l.string(),providerMetadata:fe.optional()}),l.strictObject({type:l.literal("source-url"),sourceId:l.string(),url:l.string(),title:l.string().optional(),providerMetadata:fe.optional()}),l.strictObject({type:l.literal("source-document"),sourceId:l.string(),mediaType:l.string(),title:l.string(),filename:l.string().optional(),providerMetadata:fe.optional()}),l.strictObject({type:l.literal("file"),url:l.string(),mediaType:l.string(),providerMetadata:fe.optional()}),l.strictObject({type:l.custom(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:l.string().optional(),data:l.unknown(),transient:l.boolean().optional()}),l.strictObject({type:l.literal("start-step")}),l.strictObject({type:l.literal("finish-step")}),l.strictObject({type:l.literal("start"),messageId:l.string().optional(),messageMetadata:l.unknown().optional()}),l.strictObject({type:l.literal("finish"),finishReason:l.enum(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:l.unknown().optional()}),l.strictObject({type:l.literal("abort"),reason:l.string().optional()}),l.strictObject({type:l.literal("message-metadata"),messageMetadata:l.unknown()})])));var ghe=Dn({prefix:"aitxt",size:24});var bhe=H(()=>Z(l.array(l.object({id:l.string(),role:l.enum(["system","user","assistant"]),metadata:l.unknown().optional(),parts:l.array(l.union([l.object({type:l.literal("text"),text:l.string(),state:l.enum(["streaming","done"]).optional(),providerMetadata:fe.optional()}),l.object({type:l.literal("reasoning"),text:l.string(),state:l.enum(["streaming","done"]).optional(),providerMetadata:fe.optional()}),l.object({type:l.literal("source-url"),sourceId:l.string(),url:l.string(),title:l.string().optional(),providerMetadata:fe.optional()}),l.object({type:l.literal("source-document"),sourceId:l.string(),mediaType:l.string(),title:l.string(),filename:l.string().optional(),providerMetadata:fe.optional()}),l.object({type:l.literal("file"),mediaType:l.string(),filename:l.string().optional(),url:l.string(),providerMetadata:fe.optional()}),l.object({type:l.literal("step-start")}),l.object({type:l.string().startsWith("data-"),id:l.string().optional(),data:l.unknown()}),l.object({type:l.literal("dynamic-tool"),toolName:l.string(),toolCallId:l.string(),state:l.literal("input-streaming"),input:l.unknown().optional(),providerExecuted:l.boolean().optional(),callProviderMetadata:fe.optional(),output:l.never().optional(),errorText:l.never().optional(),approval:l.never().optional()}),l.object({type:l.literal("dynamic-tool"),toolName:l.string(),toolCallId:l.string(),state:l.literal("input-available"),input:l.unknown(),providerExecuted:l.boolean().optional(),output:l.never().optional(),errorText:l.never().optional(),callProviderMetadata:fe.optional(),approval:l.never().optional()}),l.object({type:l.literal("dynamic-tool"),toolName:l.string(),toolCallId:l.string(),state:l.literal("approval-requested"),input:l.unknown(),providerExecuted:l.boolean().optional(),output:l.never().optional(),errorText:l.never().optional(),callProviderMetadata:fe.optional(),approval:l.object({id:l.string(),approved:l.never().optional(),reason:l.never().optional()})}),l.object({type:l.literal("dynamic-tool"),toolName:l.string(),toolCallId:l.string(),state:l.literal("approval-responded"),input:l.unknown(),providerExecuted:l.boolean().optional(),output:l.never().optional(),errorText:l.never().optional(),callProviderMetadata:fe.optional(),approval:l.object({id:l.string(),approved:l.boolean(),reason:l.string().optional()})}),l.object({type:l.literal("dynamic-tool"),toolName:l.string(),toolCallId:l.string(),state:l.literal("output-available"),input:l.unknown(),providerExecuted:l.boolean().optional(),output:l.unknown(),errorText:l.never().optional(),callProviderMetadata:fe.optional(),preliminary:l.boolean().optional(),approval:l.object({id:l.string(),approved:l.literal(!0),reason:l.string().optional()}).optional()}),l.object({type:l.literal("dynamic-tool"),toolName:l.string(),toolCallId:l.string(),state:l.literal("output-error"),input:l.unknown(),rawInput:l.unknown().optional(),providerExecuted:l.boolean().optional(),output:l.never().optional(),errorText:l.string(),callProviderMetadata:fe.optional(),approval:l.object({id:l.string(),approved:l.literal(!0),reason:l.string().optional()}).optional()}),l.object({type:l.literal("dynamic-tool"),toolName:l.string(),toolCallId:l.string(),state:l.literal("output-denied"),input:l.unknown(),providerExecuted:l.boolean().optional(),output:l.never().optional(),errorText:l.never().optional(),callProviderMetadata:fe.optional(),approval:l.object({id:l.string(),approved:l.literal(!1),reason:l.string().optional()})}),l.object({type:l.string().startsWith("tool-"),toolCallId:l.string(),state:l.literal("input-streaming"),providerExecuted:l.boolean().optional(),callProviderMetadata:fe.optional(),input:l.unknown().optional(),output:l.never().optional(),errorText:l.never().optional(),approval:l.never().optional()}),l.object({type:l.string().startsWith("tool-"),toolCallId:l.string(),state:l.literal("input-available"),providerExecuted:l.boolean().optional(),input:l.unknown(),output:l.never().optional(),errorText:l.never().optional(),callProviderMetadata:fe.optional(),approval:l.never().optional()}),l.object({type:l.string().startsWith("tool-"),toolCallId:l.string(),state:l.literal("approval-requested"),input:l.unknown(),providerExecuted:l.boolean().optional(),output:l.never().optional(),errorText:l.never().optional(),callProviderMetadata:fe.optional(),approval:l.object({id:l.string(),approved:l.never().optional(),reason:l.never().optional()})}),l.object({type:l.string().startsWith("tool-"),toolCallId:l.string(),state:l.literal("approval-responded"),input:l.unknown(),providerExecuted:l.boolean().optional(),output:l.never().optional(),errorText:l.never().optional(),callProviderMetadata:fe.optional(),approval:l.object({id:l.string(),approved:l.boolean(),reason:l.string().optional()})}),l.object({type:l.string().startsWith("tool-"),toolCallId:l.string(),state:l.literal("output-available"),providerExecuted:l.boolean().optional(),input:l.unknown(),output:l.unknown(),errorText:l.never().optional(),callProviderMetadata:fe.optional(),preliminary:l.boolean().optional(),approval:l.object({id:l.string(),approved:l.literal(!0),reason:l.string().optional()}).optional()}),l.object({type:l.string().startsWith("tool-"),toolCallId:l.string(),state:l.literal("output-error"),providerExecuted:l.boolean().optional(),input:l.unknown(),rawInput:l.unknown().optional(),output:l.never().optional(),errorText:l.string(),callProviderMetadata:fe.optional(),approval:l.object({id:l.string(),approved:l.literal(!0),reason:l.string().optional()}).optional()}),l.object({type:l.string().startsWith("tool-"),toolCallId:l.string(),state:l.literal("output-denied"),providerExecuted:l.boolean().optional(),input:l.unknown(),output:l.never().optional(),errorText:l.never().optional(),callProviderMetadata:fe.optional(),approval:l.object({id:l.string(),approved:l.literal(!1),reason:l.string().optional()})})])).nonempty("Message must contain at least one part")})).nonempty("Messages array must not be empty")));var whe=Dn({prefix:"aiobj",size:24});function jP(e){return({url:t,abortSignal:r})=>xP({url:t,maxBytes:e?.maxBytes,abortSignal:r})}var xhe=Dn({prefix:"aiobj",size:24});var She=jP();var MK="AI_NoSuchProviderError",LK=`vercel.ai.error.${MK}`,FK=Symbol.for(LK),UK;UK=FK;var Ihe=jP();var sx=l.object({error:l.object({message:l.string(),type:l.string().nullish(),param:l.any().nullish(),code:l.union([l.string(),l.number()]).nullish()})}),Jr=ir({errorSchema:sx,errorToMessage:e=>e.error.message});function YP(e){let t=e.startsWith("o3")||e.startsWith("o4-mini")||e.startsWith("gpt-5")&&!e.startsWith("gpt-5-chat"),r=e.startsWith("gpt-4")||e.startsWith("gpt-5-mini")||e.startsWith("gpt-5")&&!e.startsWith("gpt-5-nano")&&!e.startsWith("gpt-5-chat")||e.startsWith("o3")||e.startsWith("o4-mini"),i=e.startsWith("o1")||e.startsWith("o3")||e.startsWith("o4-mini")||e.startsWith("codex-mini")||e.startsWith("computer-use-preview")||e.startsWith("gpt-5")&&!e.startsWith("gpt-5-chat"),n=e.startsWith("gpt-5.1")||e.startsWith("gpt-5.2");return{supportsFlexProcessing:t,supportsPriorityProcessing:r,isReasoningModel:i,systemMessageMode:i?"developer":"system",supportsNonReasoningParameters:n}}function PP(e){var t,r,i,n,a,o;if(e==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let s=(t=e.prompt_tokens)!=null?t:0,u=(r=e.completion_tokens)!=null?r:0,c=(n=(i=e.prompt_tokens_details)==null?void 0:i.cached_tokens)!=null?n:0,d=(o=(a=e.completion_tokens_details)==null?void 0:a.reasoning_tokens)!=null?o:0;return{inputTokens:{total:s,noCache:s-c,cacheRead:c,cacheWrite:void 0},outputTokens:{total:u,text:u-d,reasoning:d},raw:e}}function qK({prompt:e,systemMessageMode:t="system"}){var r;let i=[],n=[];for(let{role:a,content:o}of e)switch(a){case"system":{switch(t){case"system":{i.push({role:"system",content:o});break}case"developer":{i.push({role:"developer",content:o});break}case"remove":{n.push({type:"other",message:"system messages are removed for this model"});break}default:{let s=t;throw new Error(`Unsupported system message mode: ${s}`)}}break}case"user":{if(o.length===1&&o[0].type==="text"){i.push({role:"user",content:o[0].text});break}i.push({role:"user",content:o.map((s,u)=>{var c,d,p;switch(s.type){case"text":return{type:"text",text:s.text};case"file":if(s.mediaType.startsWith("image/")){let f=s.mediaType==="image/*"?"image/jpeg":s.mediaType;return{type:"image_url",image_url:{url:s.data instanceof URL?s.data.toString():`data:${f};base64,${Ti(s.data)}`,detail:(d=(c=s.providerOptions)==null?void 0:c.openai)==null?void 0:d.imageDetail}}}else if(s.mediaType.startsWith("audio/")){if(s.data instanceof URL)throw new Qt({functionality:"audio file parts with URLs"});switch(s.mediaType){case"audio/wav":return{type:"input_audio",input_audio:{data:Ti(s.data),format:"wav"}};case"audio/mp3":case"audio/mpeg":return{type:"input_audio",input_audio:{data:Ti(s.data),format:"mp3"}};default:throw new Qt({functionality:`audio content parts with media type ${s.mediaType}`})}}else if(s.mediaType==="application/pdf"){if(s.data instanceof URL)throw new Qt({functionality:"PDF file parts with URLs"});return{type:"file",file:typeof s.data=="string"&&s.data.startsWith("file-")?{file_id:s.data}:{filename:(p=s.filename)!=null?p:`part-${u}.pdf`,file_data:`data:application/pdf;base64,${Ti(s.data)}`}}}else throw new Qt({functionality:`file part media type ${s.mediaType}`})}})});break}case"assistant":{let s="",u=[];for(let c of o)switch(c.type){case"text":{s+=c.text;break}case"tool-call":{u.push({id:c.toolCallId,type:"function",function:{name:c.toolName,arguments:JSON.stringify(c.input)}});break}}i.push({role:"assistant",content:s,tool_calls:u.length>0?u:void 0});break}case"tool":{for(let s of o){if(s.type==="tool-approval-response")continue;let u=s.output,c;switch(u.type){case"text":case"error-text":c=u.value;break;case"execution-denied":c=(r=u.reason)!=null?r:"Tool execution denied.";break;case"content":case"json":case"error-json":c=JSON.stringify(u.value);break}i.push({role:"tool",tool_call_id:s.toolCallId,content:c})}break}default:{let s=a;throw new Error(`Unsupported role: ${s}`)}}return{messages:i,warnings:n}}function ix({id:e,model:t,created:r}){return{id:e??void 0,modelId:t??void 0,timestamp:r?new Date(r*1e3):void 0}}function zP(e){switch(e){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var BK=H(()=>Z(l.object({id:l.string().nullish(),created:l.number().nullish(),model:l.string().nullish(),choices:l.array(l.object({message:l.object({role:l.literal("assistant").nullish(),content:l.string().nullish(),tool_calls:l.array(l.object({id:l.string().nullish(),type:l.literal("function"),function:l.object({name:l.string(),arguments:l.string()})})).nullish(),annotations:l.array(l.object({type:l.literal("url_citation"),url_citation:l.object({start_index:l.number(),end_index:l.number(),url:l.string(),title:l.string()})})).nullish()}),index:l.number(),logprobs:l.object({content:l.array(l.object({token:l.string(),logprob:l.number(),top_logprobs:l.array(l.object({token:l.string(),logprob:l.number()}))})).nullish()}).nullish(),finish_reason:l.string().nullish()})),usage:l.object({prompt_tokens:l.number().nullish(),completion_tokens:l.number().nullish(),total_tokens:l.number().nullish(),prompt_tokens_details:l.object({cached_tokens:l.number().nullish()}).nullish(),completion_tokens_details:l.object({reasoning_tokens:l.number().nullish(),accepted_prediction_tokens:l.number().nullish(),rejected_prediction_tokens:l.number().nullish()}).nullish()}).nullish()}))),VK=H(()=>Z(l.union([l.object({id:l.string().nullish(),created:l.number().nullish(),model:l.string().nullish(),choices:l.array(l.object({delta:l.object({role:l.enum(["assistant"]).nullish(),content:l.string().nullish(),tool_calls:l.array(l.object({index:l.number(),id:l.string().nullish(),type:l.literal("function").nullish(),function:l.object({name:l.string().nullish(),arguments:l.string().nullish()})})).nullish(),annotations:l.array(l.object({type:l.literal("url_citation"),url_citation:l.object({start_index:l.number(),end_index:l.number(),url:l.string(),title:l.string()})})).nullish()}).nullish(),logprobs:l.object({content:l.array(l.object({token:l.string(),logprob:l.number(),top_logprobs:l.array(l.object({token:l.string(),logprob:l.number()}))})).nullish()}).nullish(),finish_reason:l.string().nullish(),index:l.number()})),usage:l.object({prompt_tokens:l.number().nullish(),completion_tokens:l.number().nullish(),total_tokens:l.number().nullish(),prompt_tokens_details:l.object({cached_tokens:l.number().nullish()}).nullish(),completion_tokens_details:l.object({reasoning_tokens:l.number().nullish(),accepted_prediction_tokens:l.number().nullish(),rejected_prediction_tokens:l.number().nullish()}).nullish()}).nullish()}),sx]))),ZK=H(()=>Z(l.object({logitBias:l.record(l.coerce.number(),l.number()).optional(),logprobs:l.union([l.boolean(),l.number()]).optional(),parallelToolCalls:l.boolean().optional(),user:l.string().optional(),reasoningEffort:l.enum(["none","minimal","low","medium","high","xhigh"]).optional(),maxCompletionTokens:l.number().optional(),store:l.boolean().optional(),metadata:l.record(l.string().max(64),l.string().max(512)).optional(),prediction:l.record(l.string(),l.any()).optional(),serviceTier:l.enum(["auto","flex","priority","default"]).optional(),strictJsonSchema:l.boolean().optional(),textVerbosity:l.enum(["low","medium","high"]).optional(),promptCacheKey:l.string().optional(),promptCacheRetention:l.enum(["in_memory","24h"]).optional(),safetyIdentifier:l.string().optional(),systemMessageMode:l.enum(["system","developer","remove"]).optional(),forceReasoning:l.boolean().optional()})));function WK({tools:e,toolChoice:t}){e=e?.length?e:void 0;let r=[];if(e==null)return{tools:void 0,toolChoice:void 0,toolWarnings:r};let i=[];for(let a of e)a.type==="function"?i.push({type:"function",function:{name:a.name,description:a.description,parameters:a.inputSchema,...a.strict!=null?{strict:a.strict}:{}}}):r.push({type:"unsupported",feature:`tool type: ${a.type}`});if(t==null)return{tools:i,toolChoice:void 0,toolWarnings:r};let n=t.type;switch(n){case"auto":case"none":case"required":return{tools:i,toolChoice:n,toolWarnings:r};case"tool":return{tools:i,toolChoice:{type:"function",function:{name:t.toolName}},toolWarnings:r};default:{let a=n;throw new Qt({functionality:`tool choice type: ${a}`})}}}var GK=class{constructor(e,t){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/]},this.modelId=e,this.config=t}get provider(){return this.config.provider}async getArgs({prompt:e,maxOutputTokens:t,temperature:r,topP:i,topK:n,frequencyPenalty:a,presencePenalty:o,stopSequences:s,responseFormat:u,seed:c,tools:d,toolChoice:p,providerOptions:f}){var m,g,h,y,v;let _=[],b=(m=await Nt({provider:"openai",providerOptions:f,schema:ZK}))!=null?m:{},x=YP(this.modelId),E=(g=b.forceReasoning)!=null?g:x.isReasoningModel;n!=null&&_.push({type:"unsupported",feature:"topK"});let{messages:k,warnings:A}=qK({prompt:e,systemMessageMode:(h=b.systemMessageMode)!=null?h:E?"developer":x.systemMessageMode});_.push(...A);let $=(y=b.strictJsonSchema)!=null?y:!0,T={model:this.modelId,logit_bias:b.logitBias,logprobs:b.logprobs===!0||typeof b.logprobs=="number"?!0:void 0,top_logprobs:typeof b.logprobs=="number"?b.logprobs:typeof b.logprobs=="boolean"&&b.logprobs?0:void 0,user:b.user,parallel_tool_calls:b.parallelToolCalls,max_tokens:t,temperature:r,top_p:i,frequency_penalty:a,presence_penalty:o,response_format:u?.type==="json"?u.schema!=null?{type:"json_schema",json_schema:{schema:u.schema,strict:$,name:(v=u.name)!=null?v:"response",description:u.description}}:{type:"json_object"}:void 0,stop:s,seed:c,verbosity:b.textVerbosity,max_completion_tokens:b.maxCompletionTokens,store:b.store,metadata:b.metadata,prediction:b.prediction,reasoning_effort:b.reasoningEffort,service_tier:b.serviceTier,prompt_cache_key:b.promptCacheKey,prompt_cache_retention:b.promptCacheRetention,safety_identifier:b.safetyIdentifier,messages:k};E?((b.reasoningEffort!=="none"||!x.supportsNonReasoningParameters)&&(T.temperature!=null&&(T.temperature=void 0,_.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for reasoning models"})),T.top_p!=null&&(T.top_p=void 0,_.push({type:"unsupported",feature:"topP",details:"topP is not supported for reasoning models"})),T.logprobs!=null&&(T.logprobs=void 0,_.push({type:"other",message:"logprobs is not supported for reasoning models"}))),T.frequency_penalty!=null&&(T.frequency_penalty=void 0,_.push({type:"unsupported",feature:"frequencyPenalty",details:"frequencyPenalty is not supported for reasoning models"})),T.presence_penalty!=null&&(T.presence_penalty=void 0,_.push({type:"unsupported",feature:"presencePenalty",details:"presencePenalty is not supported for reasoning models"})),T.logit_bias!=null&&(T.logit_bias=void 0,_.push({type:"other",message:"logitBias is not supported for reasoning models"})),T.top_logprobs!=null&&(T.top_logprobs=void 0,_.push({type:"other",message:"topLogprobs is not supported for reasoning models"})),T.max_tokens!=null&&(T.max_completion_tokens==null&&(T.max_completion_tokens=T.max_tokens),T.max_tokens=void 0)):(this.modelId.startsWith("gpt-4o-search-preview")||this.modelId.startsWith("gpt-4o-mini-search-preview"))&&T.temperature!=null&&(T.temperature=void 0,_.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for the search preview models and has been removed."})),b.serviceTier==="flex"&&!x.supportsFlexProcessing&&(_.push({type:"unsupported",feature:"serviceTier",details:"flex processing is only available for o3, o4-mini, and gpt-5 models"}),T.service_tier=void 0),b.serviceTier==="priority"&&!x.supportsPriorityProcessing&&(_.push({type:"unsupported",feature:"serviceTier",details:"priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported"}),T.service_tier=void 0);let{tools:Y,toolChoice:R,toolWarnings:O}=WK({tools:d,toolChoice:p});return{args:{...T,tools:Y,tool_choice:R},warnings:[..._,...O]}}async doGenerate(e){var t,r,i,n,a,o,s;let{args:u,warnings:c}=await this.getArgs(e),{responseHeaders:d,value:p,rawValue:f}=await Ye({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:Je(this.config.headers(),e.headers),body:u,failedResponseHandler:Jr,successfulResponseHandler:tt(BK),abortSignal:e.abortSignal,fetch:this.config.fetch}),m=p.choices[0],g=[],h=m.message.content;h!=null&&h.length>0&&g.push({type:"text",text:h});for(let b of(t=m.message.tool_calls)!=null?t:[])g.push({type:"tool-call",toolCallId:(r=b.id)!=null?r:wt(),toolName:b.function.name,input:b.function.arguments});for(let b of(i=m.message.annotations)!=null?i:[])g.push({type:"source",sourceType:"url",id:wt(),url:b.url_citation.url,title:b.url_citation.title});let y=(n=p.usage)==null?void 0:n.completion_tokens_details,v=(a=p.usage)==null?void 0:a.prompt_tokens_details,_={openai:{}};return y?.accepted_prediction_tokens!=null&&(_.openai.acceptedPredictionTokens=y?.accepted_prediction_tokens),y?.rejected_prediction_tokens!=null&&(_.openai.rejectedPredictionTokens=y?.rejected_prediction_tokens),((o=m.logprobs)==null?void 0:o.content)!=null&&(_.openai.logprobs=m.logprobs.content),{content:g,finishReason:{unified:zP(m.finish_reason),raw:(s=m.finish_reason)!=null?s:void 0},usage:PP(p.usage),request:{body:u},response:{...ix(p),headers:d,body:f},warnings:c,providerMetadata:_}}async doStream(e){let{args:t,warnings:r}=await this.getArgs(e),i={...t,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:n,value:a}=await Ye({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:Je(this.config.headers(),e.headers),body:i,failedResponseHandler:Jr,successfulResponseHandler:Ci(VK),abortSignal:e.abortSignal,fetch:this.config.fetch}),o=[],s={unified:"other",raw:void 0},u,c=!1,d=!1,p={openai:{}};return{stream:a.pipeThrough(new TransformStream({start(f){f.enqueue({type:"stream-start",warnings:r})},transform(f,m){var g,h,y,v,_,b,x,E,k,A,$,T,Y,R,O,j,z;if(e.includeRawChunks&&m.enqueue({type:"raw",rawValue:f.rawValue}),!f.success){s={unified:"error",raw:void 0},m.enqueue({type:"error",error:f.error});return}let N=f.value;if("error"in N){s={unified:"error",raw:void 0},m.enqueue({type:"error",error:N.error});return}if(!c){let ce=ix(N);Object.values(ce).some(Boolean)&&(c=!0,m.enqueue({type:"response-metadata",...ix(N)}))}N.usage!=null&&(u=N.usage,((g=N.usage.completion_tokens_details)==null?void 0:g.accepted_prediction_tokens)!=null&&(p.openai.acceptedPredictionTokens=(h=N.usage.completion_tokens_details)==null?void 0:h.accepted_prediction_tokens),((y=N.usage.completion_tokens_details)==null?void 0:y.rejected_prediction_tokens)!=null&&(p.openai.rejectedPredictionTokens=(v=N.usage.completion_tokens_details)==null?void 0:v.rejected_prediction_tokens));let W=N.choices[0];if(W?.finish_reason!=null&&(s={unified:zP(W.finish_reason),raw:W.finish_reason}),((_=W?.logprobs)==null?void 0:_.content)!=null&&(p.openai.logprobs=W.logprobs.content),W?.delta==null)return;let pe=W.delta;if(pe.content!=null&&(d||(m.enqueue({type:"text-start",id:"0"}),d=!0),m.enqueue({type:"text-delta",id:"0",delta:pe.content})),pe.tool_calls!=null)for(let ce of pe.tool_calls){let we=ce.index;if(o[we]==null){if(ce.type!=null&&ce.type!=="function")throw new Id({data:ce,message:"Expected 'function' type."});if(ce.id==null)throw new Id({data:ce,message:"Expected 'id' to be a string."});if(((b=ce.function)==null?void 0:b.name)==null)throw new Id({data:ce,message:"Expected 'function.name' to be a string."});m.enqueue({type:"tool-input-start",id:ce.id,toolName:ce.function.name}),o[we]={id:ce.id,type:"function",function:{name:ce.function.name,arguments:(x=ce.function.arguments)!=null?x:""},hasFinished:!1};let X=o[we];((E=X.function)==null?void 0:E.name)!=null&&((k=X.function)==null?void 0:k.arguments)!=null&&(X.function.arguments.length>0&&m.enqueue({type:"tool-input-delta",id:X.id,delta:X.function.arguments}),Ik(X.function.arguments)&&(m.enqueue({type:"tool-input-end",id:X.id}),m.enqueue({type:"tool-call",toolCallId:(A=X.id)!=null?A:wt(),toolName:X.function.name,input:X.function.arguments}),X.hasFinished=!0));continue}let S=o[we];S.hasFinished||((($=ce.function)==null?void 0:$.arguments)!=null&&(S.function.arguments+=(Y=(T=ce.function)==null?void 0:T.arguments)!=null?Y:""),m.enqueue({type:"tool-input-delta",id:S.id,delta:(R=ce.function.arguments)!=null?R:""}),((O=S.function)==null?void 0:O.name)!=null&&((j=S.function)==null?void 0:j.arguments)!=null&&Ik(S.function.arguments)&&(m.enqueue({type:"tool-input-end",id:S.id}),m.enqueue({type:"tool-call",toolCallId:(z=S.id)!=null?z:wt(),toolName:S.function.name,input:S.function.arguments}),S.hasFinished=!0))}if(pe.annotations!=null)for(let ce of pe.annotations)m.enqueue({type:"source",sourceType:"url",id:wt(),url:ce.url_citation.url,title:ce.url_citation.title})},flush(f){d&&f.enqueue({type:"text-end",id:"0"}),f.enqueue({type:"finish",finishReason:s,usage:PP(u),...p!=null?{providerMetadata:p}:{}})}})),request:{body:i},response:{headers:n}}}};function RP(e){var t,r,i,n;if(e==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let a=(t=e.prompt_tokens)!=null?t:0,o=(r=e.completion_tokens)!=null?r:0;return{inputTokens:{total:(i=e.prompt_tokens)!=null?i:void 0,noCache:a,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:(n=e.completion_tokens)!=null?n:void 0,text:o,reasoning:void 0},raw:e}}function JK({prompt:e,user:t="user",assistant:r="assistant"}){let i="";e[0].role==="system"&&(i+=`${e[0].content}
|
|
348
|
+
|
|
349
|
+
`,e=e.slice(1));for(let{role:n,content:a}of e)switch(n){case"system":throw new Sn({message:"Unexpected system message in prompt: ${content}",prompt:e});case"user":{let o=a.map(s=>{if(s.type==="text")return s.text}).filter(Boolean).join("");i+=`${t}:
|
|
350
|
+
${o}
|
|
351
|
+
|
|
352
|
+
`;break}case"assistant":{let o=a.map(s=>{switch(s.type){case"text":return s.text;case"tool-call":throw new Qt({functionality:"tool-call messages"})}}).join("");i+=`${r}:
|
|
353
|
+
${o}
|
|
354
|
+
|
|
355
|
+
`;break}case"tool":throw new Qt({functionality:"tool messages"});default:{let o=n;throw new Error(`Unsupported role: ${o}`)}}return i+=`${r}:
|
|
356
|
+
`,{prompt:i,stopSequences:[`
|
|
357
|
+
${t}:`]}}function MP({id:e,model:t,created:r}){return{id:e??void 0,modelId:t??void 0,timestamp:r!=null?new Date(r*1e3):void 0}}function LP(e){switch(e){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var HK=H(()=>Z(l.object({id:l.string().nullish(),created:l.number().nullish(),model:l.string().nullish(),choices:l.array(l.object({text:l.string(),finish_reason:l.string(),logprobs:l.object({tokens:l.array(l.string()),token_logprobs:l.array(l.number()),top_logprobs:l.array(l.record(l.string(),l.number())).nullish()}).nullish()})),usage:l.object({prompt_tokens:l.number(),completion_tokens:l.number(),total_tokens:l.number()}).nullish()}))),KK=H(()=>Z(l.union([l.object({id:l.string().nullish(),created:l.number().nullish(),model:l.string().nullish(),choices:l.array(l.object({text:l.string(),finish_reason:l.string().nullish(),index:l.number(),logprobs:l.object({tokens:l.array(l.string()),token_logprobs:l.array(l.number()),top_logprobs:l.array(l.record(l.string(),l.number())).nullish()}).nullish()})),usage:l.object({prompt_tokens:l.number(),completion_tokens:l.number(),total_tokens:l.number()}).nullish()}),sx]))),FP=H(()=>Z(l.object({echo:l.boolean().optional(),logitBias:l.record(l.string(),l.number()).optional(),suffix:l.string().optional(),user:l.string().optional(),logprobs:l.union([l.boolean(),l.number()]).optional()}))),YK=class{constructor(e,t){this.specificationVersion="v3",this.supportedUrls={},this.modelId=e,this.config=t}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}get provider(){return this.config.provider}async getArgs({prompt:e,maxOutputTokens:t,temperature:r,topP:i,topK:n,frequencyPenalty:a,presencePenalty:o,stopSequences:s,responseFormat:u,tools:c,toolChoice:d,seed:p,providerOptions:f}){let m=[],g={...await Nt({provider:"openai",providerOptions:f,schema:FP}),...await Nt({provider:this.providerOptionsName,providerOptions:f,schema:FP})};n!=null&&m.push({type:"unsupported",feature:"topK"}),c?.length&&m.push({type:"unsupported",feature:"tools"}),d!=null&&m.push({type:"unsupported",feature:"toolChoice"}),u!=null&&u.type!=="text"&&m.push({type:"unsupported",feature:"responseFormat",details:"JSON response format is not supported."});let{prompt:h,stopSequences:y}=JK({prompt:e}),v=[...y??[],...s??[]];return{args:{model:this.modelId,echo:g.echo,logit_bias:g.logitBias,logprobs:g?.logprobs===!0?0:g?.logprobs===!1?void 0:g?.logprobs,suffix:g.suffix,user:g.user,max_tokens:t,temperature:r,top_p:i,frequency_penalty:a,presence_penalty:o,seed:p,prompt:h,stop:v.length>0?v:void 0},warnings:m}}async doGenerate(e){var t;let{args:r,warnings:i}=await this.getArgs(e),{responseHeaders:n,value:a,rawValue:o}=await Ye({url:this.config.url({path:"/completions",modelId:this.modelId}),headers:Je(this.config.headers(),e.headers),body:r,failedResponseHandler:Jr,successfulResponseHandler:tt(HK),abortSignal:e.abortSignal,fetch:this.config.fetch}),s=a.choices[0],u={openai:{}};return s.logprobs!=null&&(u.openai.logprobs=s.logprobs),{content:[{type:"text",text:s.text}],usage:RP(a.usage),finishReason:{unified:LP(s.finish_reason),raw:(t=s.finish_reason)!=null?t:void 0},request:{body:r},response:{...MP(a),headers:n,body:o},providerMetadata:u,warnings:i}}async doStream(e){let{args:t,warnings:r}=await this.getArgs(e),i={...t,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:n,value:a}=await Ye({url:this.config.url({path:"/completions",modelId:this.modelId}),headers:Je(this.config.headers(),e.headers),body:i,failedResponseHandler:Jr,successfulResponseHandler:Ci(KK),abortSignal:e.abortSignal,fetch:this.config.fetch}),o={unified:"other",raw:void 0},s={openai:{}},u,c=!0;return{stream:a.pipeThrough(new TransformStream({start(d){d.enqueue({type:"stream-start",warnings:r})},transform(d,p){if(e.includeRawChunks&&p.enqueue({type:"raw",rawValue:d.rawValue}),!d.success){o={unified:"error",raw:void 0},p.enqueue({type:"error",error:d.error});return}let f=d.value;if("error"in f){o={unified:"error",raw:void 0},p.enqueue({type:"error",error:f.error});return}c&&(c=!1,p.enqueue({type:"response-metadata",...MP(f)}),p.enqueue({type:"text-start",id:"0"})),f.usage!=null&&(u=f.usage);let m=f.choices[0];m?.finish_reason!=null&&(o={unified:LP(m.finish_reason),raw:m.finish_reason}),m?.logprobs!=null&&(s.openai.logprobs=m.logprobs),m?.text!=null&&m.text.length>0&&p.enqueue({type:"text-delta",id:"0",delta:m.text})},flush(d){c||d.enqueue({type:"text-end",id:"0"}),d.enqueue({type:"finish",finishReason:o,providerMetadata:s,usage:RP(u)})}})),request:{body:i},response:{headers:n}}}},XK=H(()=>Z(l.object({dimensions:l.number().optional(),user:l.string().optional()}))),QK=H(()=>Z(l.object({data:l.array(l.object({embedding:l.array(l.number())})),usage:l.object({prompt_tokens:l.number()}).nullish()}))),e8=class{constructor(e,t){this.specificationVersion="v3",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0,this.modelId=e,this.config=t}get provider(){return this.config.provider}async doEmbed({values:e,headers:t,abortSignal:r,providerOptions:i}){var n;if(e.length>this.maxEmbeddingsPerCall)throw new yA({provider:this.provider,modelId:this.modelId,maxEmbeddingsPerCall:this.maxEmbeddingsPerCall,values:e});let a=(n=await Nt({provider:"openai",providerOptions:i,schema:XK}))!=null?n:{},{responseHeaders:o,value:s,rawValue:u}=await Ye({url:this.config.url({path:"/embeddings",modelId:this.modelId}),headers:Je(this.config.headers(),t),body:{model:this.modelId,input:e,encoding_format:"float",dimensions:a.dimensions,user:a.user},failedResponseHandler:Jr,successfulResponseHandler:tt(QK),abortSignal:r,fetch:this.config.fetch});return{warnings:[],embeddings:s.data.map(c=>c.embedding),usage:s.usage?{tokens:s.usage.prompt_tokens}:void 0,response:{headers:o,body:u}}}},UP=H(()=>Z(l.object({created:l.number().nullish(),data:l.array(l.object({b64_json:l.string(),revised_prompt:l.string().nullish()})),background:l.string().nullish(),output_format:l.string().nullish(),size:l.string().nullish(),quality:l.string().nullish(),usage:l.object({input_tokens:l.number().nullish(),output_tokens:l.number().nullish(),total_tokens:l.number().nullish(),input_tokens_details:l.object({image_tokens:l.number().nullish(),text_tokens:l.number().nullish()}).nullish()}).nullish()}))),t8={"dall-e-3":1,"dall-e-2":10,"gpt-image-1":10,"gpt-image-1-mini":10,"gpt-image-1.5":10,"chatgpt-image-latest":10},r8=["chatgpt-image-","gpt-image-1-mini","gpt-image-1.5","gpt-image-1"];function n8(e){return r8.some(t=>e.startsWith(t))}var i8=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3"}get maxImagesPerCall(){var e;return(e=t8[this.modelId])!=null?e:1}get provider(){return this.config.provider}async doGenerate({prompt:e,files:t,mask:r,n:i,size:n,aspectRatio:a,seed:o,providerOptions:s,headers:u,abortSignal:c}){var d,p,f,m,g,h,y,v,_,b,x;let E=[];a!=null&&E.push({type:"unsupported",feature:"aspectRatio",details:"This model does not support aspect ratio. Use `size` instead."}),o!=null&&E.push({type:"unsupported",feature:"seed"});let k=(f=(p=(d=this.config._internal)==null?void 0:d.currentDate)==null?void 0:p.call(d))!=null?f:new Date;if(t!=null){let{value:T,responseHeaders:Y}=await wf({url:this.config.url({path:"/images/edits",modelId:this.modelId}),headers:Je(this.config.headers(),u),formData:IN({model:this.modelId,prompt:e,image:await Promise.all(t.map(R=>R.type==="file"?new Blob([R.data instanceof Uint8Array?new Blob([R.data],{type:R.mediaType}):new Blob([Zr(R.data)],{type:R.mediaType})],{type:R.mediaType}):wk(R.url))),mask:r!=null?await a8(r):void 0,n:i,size:n,...(m=s.openai)!=null?m:{}}),failedResponseHandler:Jr,successfulResponseHandler:tt(UP),abortSignal:c,fetch:this.config.fetch});return{images:T.data.map(R=>R.b64_json),warnings:E,usage:T.usage!=null?{inputTokens:(g=T.usage.input_tokens)!=null?g:void 0,outputTokens:(h=T.usage.output_tokens)!=null?h:void 0,totalTokens:(y=T.usage.total_tokens)!=null?y:void 0}:void 0,response:{timestamp:k,modelId:this.modelId,headers:Y},providerMetadata:{openai:{images:T.data.map((R,O)=>{var j,z,N,W,pe,ce;return{...R.revised_prompt?{revisedPrompt:R.revised_prompt}:{},created:(j=T.created)!=null?j:void 0,size:(z=T.size)!=null?z:void 0,quality:(N=T.quality)!=null?N:void 0,background:(W=T.background)!=null?W:void 0,outputFormat:(pe=T.output_format)!=null?pe:void 0,...qP((ce=T.usage)==null?void 0:ce.input_tokens_details,O,T.data.length)}})}}}}let{value:A,responseHeaders:$}=await Ye({url:this.config.url({path:"/images/generations",modelId:this.modelId}),headers:Je(this.config.headers(),u),body:{model:this.modelId,prompt:e,n:i,size:n,...(v=s.openai)!=null?v:{},...n8(this.modelId)?{}:{response_format:"b64_json"}},failedResponseHandler:Jr,successfulResponseHandler:tt(UP),abortSignal:c,fetch:this.config.fetch});return{images:A.data.map(T=>T.b64_json),warnings:E,usage:A.usage!=null?{inputTokens:(_=A.usage.input_tokens)!=null?_:void 0,outputTokens:(b=A.usage.output_tokens)!=null?b:void 0,totalTokens:(x=A.usage.total_tokens)!=null?x:void 0}:void 0,response:{timestamp:k,modelId:this.modelId,headers:$},providerMetadata:{openai:{images:A.data.map((T,Y)=>{var R,O,j,z,N,W;return{...T.revised_prompt?{revisedPrompt:T.revised_prompt}:{},created:(R=A.created)!=null?R:void 0,size:(O=A.size)!=null?O:void 0,quality:(j=A.quality)!=null?j:void 0,background:(z=A.background)!=null?z:void 0,outputFormat:(N=A.output_format)!=null?N:void 0,...qP((W=A.usage)==null?void 0:W.input_tokens_details,Y,A.data.length)}})}}}}};function qP(e,t,r){if(e==null)return{};let i={};if(e.image_tokens!=null){let n=Math.floor(e.image_tokens/r),a=e.image_tokens-n*(r-1);i.imageTokens=t===r-1?a:n}if(e.text_tokens!=null){let n=Math.floor(e.text_tokens/r),a=e.text_tokens-n*(r-1);i.textTokens=t===r-1?a:n}return i}async function a8(e){if(!e)return;if(e.type==="url")return wk(e.url);let t=e.data instanceof Uint8Array?e.data:Zr(e.data);return new Blob([t],{type:e.mediaType})}var XP=H(()=>Z(l.object({callId:l.string(),operation:l.discriminatedUnion("type",[l.object({type:l.literal("create_file"),path:l.string(),diff:l.string()}),l.object({type:l.literal("delete_file"),path:l.string()}),l.object({type:l.literal("update_file"),path:l.string(),diff:l.string()})])}))),QP=H(()=>Z(l.object({status:l.enum(["completed","failed"]),output:l.string().optional()}))),vge=H(()=>Z(l.object({}))),o8=et({id:"openai.apply_patch",inputSchema:XP,outputSchema:QP}),s8=o8,l8=H(()=>Z(l.object({code:l.string().nullish(),containerId:l.string()}))),u8=H(()=>Z(l.object({outputs:l.array(l.discriminatedUnion("type",[l.object({type:l.literal("logs"),logs:l.string()}),l.object({type:l.literal("image"),url:l.string()})])).nullish()}))),c8=H(()=>Z(l.object({container:l.union([l.string(),l.object({fileIds:l.array(l.string()).optional()})]).optional()}))),d8=et({id:"openai.code_interpreter",inputSchema:l8,outputSchema:u8}),p8=(e={})=>d8(e),ez=l.object({key:l.string(),type:l.enum(["eq","ne","gt","gte","lt","lte","in","nin"]),value:l.union([l.string(),l.number(),l.boolean(),l.array(l.string())])}),tz=l.object({type:l.enum(["and","or"]),filters:l.array(l.union([ez,l.lazy(()=>tz)]))}),f8=H(()=>Z(l.object({vectorStoreIds:l.array(l.string()),maxNumResults:l.number().optional(),ranking:l.object({ranker:l.string().optional(),scoreThreshold:l.number().optional()}).optional(),filters:l.union([ez,tz]).optional()}))),m8=H(()=>Z(l.object({queries:l.array(l.string()),results:l.array(l.object({attributes:l.record(l.string(),l.unknown()),fileId:l.string(),filename:l.string(),score:l.number(),text:l.string()})).nullable()}))),h8=et({id:"openai.file_search",inputSchema:l.object({}),outputSchema:m8}),g8=H(()=>Z(l.object({background:l.enum(["auto","opaque","transparent"]).optional(),inputFidelity:l.enum(["low","high"]).optional(),inputImageMask:l.object({fileId:l.string().optional(),imageUrl:l.string().optional()}).optional(),model:l.string().optional(),moderation:l.enum(["auto"]).optional(),outputCompression:l.number().int().min(0).max(100).optional(),outputFormat:l.enum(["png","jpeg","webp"]).optional(),partialImages:l.number().int().min(0).max(3).optional(),quality:l.enum(["auto","low","medium","high"]).optional(),size:l.enum(["1024x1024","1024x1536","1536x1024","auto"]).optional()}).strict())),y8=H(()=>Z(l.object({}))),v8=H(()=>Z(l.object({result:l.string()}))),b8=et({id:"openai.image_generation",inputSchema:y8,outputSchema:v8}),_8=(e={})=>b8(e),rz=H(()=>Z(l.object({action:l.object({type:l.literal("exec"),command:l.array(l.string()),timeoutMs:l.number().optional(),user:l.string().optional(),workingDirectory:l.string().optional(),env:l.record(l.string(),l.string()).optional()})}))),nz=H(()=>Z(l.object({output:l.string()}))),w8=et({id:"openai.local_shell",inputSchema:rz,outputSchema:nz}),iz=H(()=>Z(l.object({action:l.object({commands:l.array(l.string()),timeoutMs:l.number().optional(),maxOutputLength:l.number().optional()})}))),ax=H(()=>Z(l.object({output:l.array(l.object({stdout:l.string(),stderr:l.string(),outcome:l.discriminatedUnion("type",[l.object({type:l.literal("timeout")}),l.object({type:l.literal("exit"),exitCode:l.number()})])}))}))),k8=l.array(l.discriminatedUnion("type",[l.object({type:l.literal("skillReference"),skillId:l.string(),version:l.string().optional()}),l.object({type:l.literal("inline"),name:l.string(),description:l.string(),source:l.object({type:l.literal("base64"),mediaType:l.literal("application/zip"),data:l.string()})})])).optional(),x8=H(()=>Z(l.object({environment:l.union([l.object({type:l.literal("containerAuto"),fileIds:l.array(l.string()).optional(),memoryLimit:l.enum(["1g","4g","16g","64g"]).optional(),networkPolicy:l.discriminatedUnion("type",[l.object({type:l.literal("disabled")}),l.object({type:l.literal("allowlist"),allowedDomains:l.array(l.string()),domainSecrets:l.array(l.object({domain:l.string(),name:l.string(),value:l.string()})).optional()})]).optional(),skills:k8}),l.object({type:l.literal("containerReference"),containerId:l.string()}),l.object({type:l.literal("local").optional(),skills:l.array(l.object({name:l.string(),description:l.string(),path:l.string()})).optional()})]).optional()}))),S8=et({id:"openai.shell",inputSchema:iz,outputSchema:ax}),I8=H(()=>Z(l.object({externalWebAccess:l.boolean().optional(),filters:l.object({allowedDomains:l.array(l.string()).optional()}).optional(),searchContextSize:l.enum(["low","medium","high"]).optional(),userLocation:l.object({type:l.literal("approximate"),country:l.string().optional(),city:l.string().optional(),region:l.string().optional(),timezone:l.string().optional()}).optional()}))),E8=H(()=>Z(l.object({}))),T8=H(()=>Z(l.object({action:l.discriminatedUnion("type",[l.object({type:l.literal("search"),query:l.string().optional()}),l.object({type:l.literal("openPage"),url:l.string().nullish()}),l.object({type:l.literal("findInPage"),url:l.string().nullish(),pattern:l.string().nullish()})]).optional(),sources:l.array(l.discriminatedUnion("type",[l.object({type:l.literal("url"),url:l.string()}),l.object({type:l.literal("api"),name:l.string()})])).optional()}))),$8=et({id:"openai.web_search",inputSchema:E8,outputSchema:T8}),C8=(e={})=>$8(e),A8=H(()=>Z(l.object({searchContextSize:l.enum(["low","medium","high"]).optional(),userLocation:l.object({type:l.literal("approximate"),country:l.string().optional(),city:l.string().optional(),region:l.string().optional(),timezone:l.string().optional()}).optional()}))),O8=H(()=>Z(l.object({}))),N8=H(()=>Z(l.object({action:l.discriminatedUnion("type",[l.object({type:l.literal("search"),query:l.string().optional()}),l.object({type:l.literal("openPage"),url:l.string().nullish()}),l.object({type:l.literal("findInPage"),url:l.string().nullish(),pattern:l.string().nullish()})]).optional()}))),D8=et({id:"openai.web_search_preview",inputSchema:O8,outputSchema:N8}),ox=l.lazy(()=>l.union([l.string(),l.number(),l.boolean(),l.null(),l.array(ox),l.record(l.string(),ox)])),j8=H(()=>Z(l.object({serverLabel:l.string(),allowedTools:l.union([l.array(l.string()),l.object({readOnly:l.boolean().optional(),toolNames:l.array(l.string()).optional()})]).optional(),authorization:l.string().optional(),connectorId:l.string().optional(),headers:l.record(l.string(),l.string()).optional(),requireApproval:l.union([l.enum(["always","never"]),l.object({never:l.object({toolNames:l.array(l.string()).optional()}).optional()})]).optional(),serverDescription:l.string().optional(),serverUrl:l.string().optional()}).refine(e=>e.serverUrl!=null||e.connectorId!=null,"One of serverUrl or connectorId must be provided."))),P8=H(()=>Z(l.object({}))),z8=H(()=>Z(l.object({type:l.literal("call"),serverLabel:l.string(),name:l.string(),arguments:l.string(),output:l.string().nullish(),error:l.union([l.string(),ox]).optional()}))),R8=et({id:"openai.mcp",inputSchema:P8,outputSchema:z8}),M8=e=>R8(e),L8={applyPatch:s8,codeInterpreter:p8,fileSearch:h8,imageGeneration:_8,localShell:w8,shell:S8,webSearchPreview:D8,webSearch:C8,mcp:M8};function BP(e){var t,r,i,n;if(e==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let a=e.input_tokens,o=e.output_tokens,s=(r=(t=e.input_tokens_details)==null?void 0:t.cached_tokens)!=null?r:0,u=(n=(i=e.output_tokens_details)==null?void 0:i.reasoning_tokens)!=null?n:0;return{inputTokens:{total:a,noCache:a-s,cacheRead:s,cacheWrite:void 0},outputTokens:{total:o,text:o-u,reasoning:u},raw:e}}function VP(e,t){return t?t.some(r=>e.startsWith(r)):!1}async function F8({prompt:e,toolNameMapping:t,systemMessageMode:r,providerOptionsName:i,fileIdPrefixes:n,store:a,hasConversation:o=!1,hasLocalShellTool:s=!1,hasShellTool:u=!1,hasApplyPatchTool:c=!1}){var d,p,f,m,g,h,y,v,_,b,x,E;let k=[],A=[],$=new Set;for(let{role:T,content:Y}of e)switch(T){case"system":{switch(r){case"system":{k.push({role:"system",content:Y});break}case"developer":{k.push({role:"developer",content:Y});break}case"remove":{A.push({type:"other",message:"system messages are removed for this model"});break}default:{let R=r;throw new Error(`Unsupported system message mode: ${R}`)}}break}case"user":{k.push({role:"user",content:Y.map((R,O)=>{var j,z,N;switch(R.type){case"text":return{type:"input_text",text:R.text};case"file":if(R.mediaType.startsWith("image/")){let W=R.mediaType==="image/*"?"image/jpeg":R.mediaType;return{type:"input_image",...R.data instanceof URL?{image_url:R.data.toString()}:typeof R.data=="string"&&VP(R.data,n)?{file_id:R.data}:{image_url:`data:${W};base64,${Ti(R.data)}`},detail:(z=(j=R.providerOptions)==null?void 0:j[i])==null?void 0:z.imageDetail}}else{if(R.mediaType==="application/pdf")return R.data instanceof URL?{type:"input_file",file_url:R.data.toString()}:{type:"input_file",...typeof R.data=="string"&&VP(R.data,n)?{file_id:R.data}:{filename:(N=R.filename)!=null?N:`part-${O}.pdf`,file_data:`data:application/pdf;base64,${Ti(R.data)}`}};throw new Qt({functionality:`file part media type ${R.mediaType}`})}}})});break}case"assistant":{let R={};for(let O of Y)switch(O.type){case"text":{let j=(d=O.providerOptions)==null?void 0:d[i],z=j?.itemId,N=j?.phase;if(o&&z!=null)break;if(a&&z!=null){k.push({type:"item_reference",id:z});break}k.push({role:"assistant",content:[{type:"output_text",text:O.text}],id:z,...N!=null&&{phase:N}});break}case"tool-call":{let j=(h=(f=(p=O.providerOptions)==null?void 0:p[i])==null?void 0:f.itemId)!=null?h:(g=(m=O.providerMetadata)==null?void 0:m[i])==null?void 0:g.itemId;if(o&&j!=null)break;if(O.providerExecuted){a&&j!=null&&k.push({type:"item_reference",id:j});break}if(a&&j!=null){k.push({type:"item_reference",id:j});break}let z=t.toProviderToolName(O.toolName);if(s&&z==="local_shell"){let N=await gt({value:O.input,schema:rz});k.push({type:"local_shell_call",call_id:O.toolCallId,id:j,action:{type:"exec",command:N.action.command,timeout_ms:N.action.timeoutMs,user:N.action.user,working_directory:N.action.workingDirectory,env:N.action.env}});break}if(u&&z==="shell"){let N=await gt({value:O.input,schema:iz});k.push({type:"shell_call",call_id:O.toolCallId,id:j,status:"completed",action:{commands:N.action.commands,timeout_ms:N.action.timeoutMs,max_output_length:N.action.maxOutputLength}});break}if(c&&z==="apply_patch"){let N=await gt({value:O.input,schema:XP});k.push({type:"apply_patch_call",call_id:N.callId,id:j,status:"completed",operation:N.operation});break}k.push({type:"function_call",call_id:O.toolCallId,name:z,arguments:JSON.stringify(O.input),id:j});break}case"tool-result":{if(O.output.type==="execution-denied"||O.output.type==="json"&&typeof O.output.value=="object"&&O.output.value!=null&&"type"in O.output.value&&O.output.value.type==="execution-denied"||o)break;let j=t.toProviderToolName(O.toolName);if(u&&j==="shell"){if(O.output.type==="json"){let z=await gt({value:O.output.value,schema:ax});k.push({type:"shell_call_output",call_id:O.toolCallId,output:z.output.map(N=>({stdout:N.stdout,stderr:N.stderr,outcome:N.outcome.type==="timeout"?{type:"timeout"}:{type:"exit",exit_code:N.outcome.exitCode}}))})}break}if(a){let z=(_=(v=(y=O.providerOptions)==null?void 0:y[i])==null?void 0:v.itemId)!=null?_:O.toolCallId;k.push({type:"item_reference",id:z})}else A.push({type:"other",message:`Results for OpenAI tool ${O.toolName} are not sent to the API when store is false`});break}case"reasoning":{let j=await Nt({provider:i,providerOptions:O.providerOptions,schema:U8}),z=j?.itemId;if(o&&z!=null)break;if(z!=null){let N=R[z];if(a)N===void 0&&(k.push({type:"item_reference",id:z}),R[z]={type:"reasoning",id:z,summary:[]});else{let W=[];O.text.length>0?W.push({type:"summary_text",text:O.text}):N!==void 0&&A.push({type:"other",message:`Cannot append empty reasoning part to existing reasoning sequence. Skipping reasoning part: ${JSON.stringify(O)}.`}),N===void 0?(R[z]={type:"reasoning",id:z,encrypted_content:j?.reasoningEncryptedContent,summary:W},k.push(R[z])):(N.summary.push(...W),j?.reasoningEncryptedContent!=null&&(N.encrypted_content=j.reasoningEncryptedContent))}}else{let N=j?.reasoningEncryptedContent;if(N!=null){let W=[];O.text.length>0&&W.push({type:"summary_text",text:O.text}),k.push({type:"reasoning",encrypted_content:N,summary:W})}else A.push({type:"other",message:`Non-OpenAI reasoning parts are not supported. Skipping reasoning part: ${JSON.stringify(O)}.`})}break}}break}case"tool":{for(let R of Y){if(R.type==="tool-approval-response"){let N=R;if($.has(N.approvalId))continue;$.add(N.approvalId),a&&k.push({type:"item_reference",id:N.approvalId}),k.push({type:"mcp_approval_response",approval_request_id:N.approvalId,approve:N.approved});continue}let O=R.output;if(O.type==="execution-denied"&&((x=(b=O.providerOptions)==null?void 0:b.openai)==null?void 0:x.approvalId))continue;let j=t.toProviderToolName(R.toolName);if(s&&j==="local_shell"&&O.type==="json"){let N=await gt({value:O.value,schema:nz});k.push({type:"local_shell_call_output",call_id:R.toolCallId,output:N.output});continue}if(u&&j==="shell"&&O.type==="json"){let N=await gt({value:O.value,schema:ax});k.push({type:"shell_call_output",call_id:R.toolCallId,output:N.output.map(W=>({stdout:W.stdout,stderr:W.stderr,outcome:W.outcome.type==="timeout"?{type:"timeout"}:{type:"exit",exit_code:W.outcome.exitCode}}))});continue}if(c&&R.toolName==="apply_patch"&&O.type==="json"){let N=await gt({value:O.value,schema:QP});k.push({type:"apply_patch_call_output",call_id:R.toolCallId,status:N.status,output:N.output});continue}let z;switch(O.type){case"text":case"error-text":z=O.value;break;case"execution-denied":z=(E=O.reason)!=null?E:"Tool execution denied.";break;case"json":case"error-json":z=JSON.stringify(O.value);break;case"content":z=O.value.map(N=>{var W;switch(N.type){case"text":return{type:"input_text",text:N.text};case"image-data":return{type:"input_image",image_url:`data:${N.mediaType};base64,${N.data}`};case"image-url":return{type:"input_image",image_url:N.url};case"file-data":return{type:"input_file",filename:(W=N.filename)!=null?W:"data",file_data:`data:${N.mediaType};base64,${N.data}`};default:{A.push({type:"other",message:`unsupported tool content part type: ${N.type}`});return}}}).filter(AN);break}k.push({type:"function_call_output",call_id:R.toolCallId,output:z})}break}default:{let R=T;throw new Error(`Unsupported role: ${R}`)}}return{input:k,warnings:A}}var U8=l.object({itemId:l.string().nullish(),reasoningEncryptedContent:l.string().nullish()});function ZP({finishReason:e,hasFunctionCall:t}){switch(e){case void 0:case null:return t?"tool-calls":"stop";case"max_output_tokens":return"length";case"content_filter":return"content-filter";default:return t?"tool-calls":"other"}}var q8=H(()=>Z(l.union([l.object({type:l.literal("response.output_text.delta"),item_id:l.string(),delta:l.string(),logprobs:l.array(l.object({token:l.string(),logprob:l.number(),top_logprobs:l.array(l.object({token:l.string(),logprob:l.number()}))})).nullish()}),l.object({type:l.enum(["response.completed","response.incomplete"]),response:l.object({incomplete_details:l.object({reason:l.string()}).nullish(),usage:l.object({input_tokens:l.number(),input_tokens_details:l.object({cached_tokens:l.number().nullish()}).nullish(),output_tokens:l.number(),output_tokens_details:l.object({reasoning_tokens:l.number().nullish()}).nullish()}),service_tier:l.string().nullish()})}),l.object({type:l.literal("response.created"),response:l.object({id:l.string(),created_at:l.number(),model:l.string(),service_tier:l.string().nullish()})}),l.object({type:l.literal("response.output_item.added"),output_index:l.number(),item:l.discriminatedUnion("type",[l.object({type:l.literal("message"),id:l.string(),phase:l.enum(["commentary","final_answer"]).nullish()}),l.object({type:l.literal("reasoning"),id:l.string(),encrypted_content:l.string().nullish()}),l.object({type:l.literal("function_call"),id:l.string(),call_id:l.string(),name:l.string(),arguments:l.string()}),l.object({type:l.literal("web_search_call"),id:l.string(),status:l.string()}),l.object({type:l.literal("computer_call"),id:l.string(),status:l.string()}),l.object({type:l.literal("file_search_call"),id:l.string()}),l.object({type:l.literal("image_generation_call"),id:l.string()}),l.object({type:l.literal("code_interpreter_call"),id:l.string(),container_id:l.string(),code:l.string().nullable(),outputs:l.array(l.discriminatedUnion("type",[l.object({type:l.literal("logs"),logs:l.string()}),l.object({type:l.literal("image"),url:l.string()})])).nullable(),status:l.string()}),l.object({type:l.literal("mcp_call"),id:l.string(),status:l.string(),approval_request_id:l.string().nullish()}),l.object({type:l.literal("mcp_list_tools"),id:l.string()}),l.object({type:l.literal("mcp_approval_request"),id:l.string()}),l.object({type:l.literal("apply_patch_call"),id:l.string(),call_id:l.string(),status:l.enum(["in_progress","completed"]),operation:l.discriminatedUnion("type",[l.object({type:l.literal("create_file"),path:l.string(),diff:l.string()}),l.object({type:l.literal("delete_file"),path:l.string()}),l.object({type:l.literal("update_file"),path:l.string(),diff:l.string()})])}),l.object({type:l.literal("shell_call"),id:l.string(),call_id:l.string(),status:l.enum(["in_progress","completed","incomplete"]),action:l.object({commands:l.array(l.string())})}),l.object({type:l.literal("shell_call_output"),id:l.string(),call_id:l.string(),status:l.enum(["in_progress","completed","incomplete"]),output:l.array(l.object({stdout:l.string(),stderr:l.string(),outcome:l.discriminatedUnion("type",[l.object({type:l.literal("timeout")}),l.object({type:l.literal("exit"),exit_code:l.number()})])}))})])}),l.object({type:l.literal("response.output_item.done"),output_index:l.number(),item:l.discriminatedUnion("type",[l.object({type:l.literal("message"),id:l.string(),phase:l.enum(["commentary","final_answer"]).nullish()}),l.object({type:l.literal("reasoning"),id:l.string(),encrypted_content:l.string().nullish()}),l.object({type:l.literal("function_call"),id:l.string(),call_id:l.string(),name:l.string(),arguments:l.string(),status:l.literal("completed")}),l.object({type:l.literal("code_interpreter_call"),id:l.string(),code:l.string().nullable(),container_id:l.string(),outputs:l.array(l.discriminatedUnion("type",[l.object({type:l.literal("logs"),logs:l.string()}),l.object({type:l.literal("image"),url:l.string()})])).nullable()}),l.object({type:l.literal("image_generation_call"),id:l.string(),result:l.string()}),l.object({type:l.literal("web_search_call"),id:l.string(),status:l.string(),action:l.discriminatedUnion("type",[l.object({type:l.literal("search"),query:l.string().nullish(),sources:l.array(l.discriminatedUnion("type",[l.object({type:l.literal("url"),url:l.string()}),l.object({type:l.literal("api"),name:l.string()})])).nullish()}),l.object({type:l.literal("open_page"),url:l.string().nullish()}),l.object({type:l.literal("find_in_page"),url:l.string().nullish(),pattern:l.string().nullish()})]).nullish()}),l.object({type:l.literal("file_search_call"),id:l.string(),queries:l.array(l.string()),results:l.array(l.object({attributes:l.record(l.string(),l.union([l.string(),l.number(),l.boolean()])),file_id:l.string(),filename:l.string(),score:l.number(),text:l.string()})).nullish()}),l.object({type:l.literal("local_shell_call"),id:l.string(),call_id:l.string(),action:l.object({type:l.literal("exec"),command:l.array(l.string()),timeout_ms:l.number().optional(),user:l.string().optional(),working_directory:l.string().optional(),env:l.record(l.string(),l.string()).optional()})}),l.object({type:l.literal("computer_call"),id:l.string(),status:l.literal("completed")}),l.object({type:l.literal("mcp_call"),id:l.string(),status:l.string(),arguments:l.string(),name:l.string(),server_label:l.string(),output:l.string().nullish(),error:l.union([l.string(),l.object({type:l.string().optional(),code:l.union([l.number(),l.string()]).optional(),message:l.string().optional()}).loose()]).nullish(),approval_request_id:l.string().nullish()}),l.object({type:l.literal("mcp_list_tools"),id:l.string(),server_label:l.string(),tools:l.array(l.object({name:l.string(),description:l.string().optional(),input_schema:l.any(),annotations:l.record(l.string(),l.unknown()).optional()})),error:l.union([l.string(),l.object({type:l.string().optional(),code:l.union([l.number(),l.string()]).optional(),message:l.string().optional()}).loose()]).optional()}),l.object({type:l.literal("mcp_approval_request"),id:l.string(),server_label:l.string(),name:l.string(),arguments:l.string(),approval_request_id:l.string().optional()}),l.object({type:l.literal("apply_patch_call"),id:l.string(),call_id:l.string(),status:l.enum(["in_progress","completed"]),operation:l.discriminatedUnion("type",[l.object({type:l.literal("create_file"),path:l.string(),diff:l.string()}),l.object({type:l.literal("delete_file"),path:l.string()}),l.object({type:l.literal("update_file"),path:l.string(),diff:l.string()})])}),l.object({type:l.literal("shell_call"),id:l.string(),call_id:l.string(),status:l.enum(["in_progress","completed","incomplete"]),action:l.object({commands:l.array(l.string())})}),l.object({type:l.literal("shell_call_output"),id:l.string(),call_id:l.string(),status:l.enum(["in_progress","completed","incomplete"]),output:l.array(l.object({stdout:l.string(),stderr:l.string(),outcome:l.discriminatedUnion("type",[l.object({type:l.literal("timeout")}),l.object({type:l.literal("exit"),exit_code:l.number()})])}))})])}),l.object({type:l.literal("response.function_call_arguments.delta"),item_id:l.string(),output_index:l.number(),delta:l.string()}),l.object({type:l.literal("response.image_generation_call.partial_image"),item_id:l.string(),output_index:l.number(),partial_image_b64:l.string()}),l.object({type:l.literal("response.code_interpreter_call_code.delta"),item_id:l.string(),output_index:l.number(),delta:l.string()}),l.object({type:l.literal("response.code_interpreter_call_code.done"),item_id:l.string(),output_index:l.number(),code:l.string()}),l.object({type:l.literal("response.output_text.annotation.added"),annotation:l.discriminatedUnion("type",[l.object({type:l.literal("url_citation"),start_index:l.number(),end_index:l.number(),url:l.string(),title:l.string()}),l.object({type:l.literal("file_citation"),file_id:l.string(),filename:l.string(),index:l.number()}),l.object({type:l.literal("container_file_citation"),container_id:l.string(),file_id:l.string(),filename:l.string(),start_index:l.number(),end_index:l.number()}),l.object({type:l.literal("file_path"),file_id:l.string(),index:l.number()})])}),l.object({type:l.literal("response.reasoning_summary_part.added"),item_id:l.string(),summary_index:l.number()}),l.object({type:l.literal("response.reasoning_summary_text.delta"),item_id:l.string(),summary_index:l.number(),delta:l.string()}),l.object({type:l.literal("response.reasoning_summary_part.done"),item_id:l.string(),summary_index:l.number()}),l.object({type:l.literal("response.apply_patch_call_operation_diff.delta"),item_id:l.string(),output_index:l.number(),delta:l.string(),obfuscation:l.string().nullish()}),l.object({type:l.literal("response.apply_patch_call_operation_diff.done"),item_id:l.string(),output_index:l.number(),diff:l.string()}),l.object({type:l.literal("error"),sequence_number:l.number(),error:l.object({type:l.string(),code:l.string(),message:l.string(),param:l.string().nullish()})}),l.object({type:l.string()}).loose().transform(e=>({type:"unknown_chunk",message:e.type}))]))),B8=H(()=>Z(l.object({id:l.string().optional(),created_at:l.number().optional(),error:l.object({message:l.string(),type:l.string(),param:l.string().nullish(),code:l.string()}).nullish(),model:l.string().optional(),output:l.array(l.discriminatedUnion("type",[l.object({type:l.literal("message"),role:l.literal("assistant"),id:l.string(),phase:l.enum(["commentary","final_answer"]).nullish(),content:l.array(l.object({type:l.literal("output_text"),text:l.string(),logprobs:l.array(l.object({token:l.string(),logprob:l.number(),top_logprobs:l.array(l.object({token:l.string(),logprob:l.number()}))})).nullish(),annotations:l.array(l.discriminatedUnion("type",[l.object({type:l.literal("url_citation"),start_index:l.number(),end_index:l.number(),url:l.string(),title:l.string()}),l.object({type:l.literal("file_citation"),file_id:l.string(),filename:l.string(),index:l.number()}),l.object({type:l.literal("container_file_citation"),container_id:l.string(),file_id:l.string(),filename:l.string(),start_index:l.number(),end_index:l.number()}),l.object({type:l.literal("file_path"),file_id:l.string(),index:l.number()})]))}))}),l.object({type:l.literal("web_search_call"),id:l.string(),status:l.string(),action:l.discriminatedUnion("type",[l.object({type:l.literal("search"),query:l.string().nullish(),sources:l.array(l.discriminatedUnion("type",[l.object({type:l.literal("url"),url:l.string()}),l.object({type:l.literal("api"),name:l.string()})])).nullish()}),l.object({type:l.literal("open_page"),url:l.string().nullish()}),l.object({type:l.literal("find_in_page"),url:l.string().nullish(),pattern:l.string().nullish()})]).nullish()}),l.object({type:l.literal("file_search_call"),id:l.string(),queries:l.array(l.string()),results:l.array(l.object({attributes:l.record(l.string(),l.union([l.string(),l.number(),l.boolean()])),file_id:l.string(),filename:l.string(),score:l.number(),text:l.string()})).nullish()}),l.object({type:l.literal("code_interpreter_call"),id:l.string(),code:l.string().nullable(),container_id:l.string(),outputs:l.array(l.discriminatedUnion("type",[l.object({type:l.literal("logs"),logs:l.string()}),l.object({type:l.literal("image"),url:l.string()})])).nullable()}),l.object({type:l.literal("image_generation_call"),id:l.string(),result:l.string()}),l.object({type:l.literal("local_shell_call"),id:l.string(),call_id:l.string(),action:l.object({type:l.literal("exec"),command:l.array(l.string()),timeout_ms:l.number().optional(),user:l.string().optional(),working_directory:l.string().optional(),env:l.record(l.string(),l.string()).optional()})}),l.object({type:l.literal("function_call"),call_id:l.string(),name:l.string(),arguments:l.string(),id:l.string()}),l.object({type:l.literal("computer_call"),id:l.string(),status:l.string().optional()}),l.object({type:l.literal("reasoning"),id:l.string(),encrypted_content:l.string().nullish(),summary:l.array(l.object({type:l.literal("summary_text"),text:l.string()}))}),l.object({type:l.literal("mcp_call"),id:l.string(),status:l.string(),arguments:l.string(),name:l.string(),server_label:l.string(),output:l.string().nullish(),error:l.union([l.string(),l.object({type:l.string().optional(),code:l.union([l.number(),l.string()]).optional(),message:l.string().optional()}).loose()]).nullish(),approval_request_id:l.string().nullish()}),l.object({type:l.literal("mcp_list_tools"),id:l.string(),server_label:l.string(),tools:l.array(l.object({name:l.string(),description:l.string().optional(),input_schema:l.any(),annotations:l.record(l.string(),l.unknown()).optional()})),error:l.union([l.string(),l.object({type:l.string().optional(),code:l.union([l.number(),l.string()]).optional(),message:l.string().optional()}).loose()]).optional()}),l.object({type:l.literal("mcp_approval_request"),id:l.string(),server_label:l.string(),name:l.string(),arguments:l.string(),approval_request_id:l.string().optional()}),l.object({type:l.literal("apply_patch_call"),id:l.string(),call_id:l.string(),status:l.enum(["in_progress","completed"]),operation:l.discriminatedUnion("type",[l.object({type:l.literal("create_file"),path:l.string(),diff:l.string()}),l.object({type:l.literal("delete_file"),path:l.string()}),l.object({type:l.literal("update_file"),path:l.string(),diff:l.string()})])}),l.object({type:l.literal("shell_call"),id:l.string(),call_id:l.string(),status:l.enum(["in_progress","completed","incomplete"]),action:l.object({commands:l.array(l.string())})}),l.object({type:l.literal("shell_call_output"),id:l.string(),call_id:l.string(),status:l.enum(["in_progress","completed","incomplete"]),output:l.array(l.object({stdout:l.string(),stderr:l.string(),outcome:l.discriminatedUnion("type",[l.object({type:l.literal("timeout")}),l.object({type:l.literal("exit"),exit_code:l.number()})])}))})])).optional(),service_tier:l.string().nullish(),incomplete_details:l.object({reason:l.string()}).nullish(),usage:l.object({input_tokens:l.number(),input_tokens_details:l.object({cached_tokens:l.number().nullish()}).nullish(),output_tokens:l.number(),output_tokens_details:l.object({reasoning_tokens:l.number().nullish()}).nullish()}).optional()}))),az=20,V8=["o1","o1-2024-12-17","o3","o3-2025-04-16","o3-deep-research","o3-deep-research-2025-06-26","o3-mini","o3-mini-2025-01-31","o4-mini","o4-mini-2025-04-16","o4-mini-deep-research","o4-mini-deep-research-2025-06-26","codex-mini-latest","computer-use-preview","gpt-5","gpt-5-2025-08-07","gpt-5-codex","gpt-5-mini","gpt-5-mini-2025-08-07","gpt-5-nano","gpt-5-nano-2025-08-07","gpt-5-pro","gpt-5-pro-2025-10-06","gpt-5.1","gpt-5.1-chat-latest","gpt-5.1-codex-mini","gpt-5.1-codex","gpt-5.1-codex-max","gpt-5.2","gpt-5.2-chat-latest","gpt-5.2-pro","gpt-5.2-codex","gpt-5.3-codex"],Vge=["gpt-4.1","gpt-4.1-2025-04-14","gpt-4.1-mini","gpt-4.1-mini-2025-04-14","gpt-4.1-nano","gpt-4.1-nano-2025-04-14","gpt-4o","gpt-4o-2024-05-13","gpt-4o-2024-08-06","gpt-4o-2024-11-20","gpt-4o-audio-preview","gpt-4o-audio-preview-2024-10-01","gpt-4o-audio-preview-2024-12-17","gpt-4o-search-preview","gpt-4o-search-preview-2025-03-11","gpt-4o-mini-search-preview","gpt-4o-mini-search-preview-2025-03-11","gpt-4o-mini","gpt-4o-mini-2024-07-18","gpt-4-turbo","gpt-4-turbo-2024-04-09","gpt-4-turbo-preview","gpt-4-0125-preview","gpt-4-1106-preview","gpt-4","gpt-4-0613","gpt-4.5-preview","gpt-4.5-preview-2025-02-27","gpt-3.5-turbo-0125","gpt-3.5-turbo","gpt-3.5-turbo-1106","chatgpt-4o-latest","gpt-5-chat-latest",...V8],WP=H(()=>Z(l.object({conversation:l.string().nullish(),include:l.array(l.enum(["reasoning.encrypted_content","file_search_call.results","message.output_text.logprobs"])).nullish(),instructions:l.string().nullish(),logprobs:l.union([l.boolean(),l.number().min(1).max(az)]).optional(),maxToolCalls:l.number().nullish(),metadata:l.any().nullish(),parallelToolCalls:l.boolean().nullish(),previousResponseId:l.string().nullish(),promptCacheKey:l.string().nullish(),promptCacheRetention:l.enum(["in_memory","24h"]).nullish(),reasoningEffort:l.string().nullish(),reasoningSummary:l.string().nullish(),safetyIdentifier:l.string().nullish(),serviceTier:l.enum(["auto","flex","priority","default"]).nullish(),store:l.boolean().nullish(),strictJsonSchema:l.boolean().nullish(),textVerbosity:l.enum(["low","medium","high"]).nullish(),truncation:l.enum(["auto","disabled"]).nullish(),user:l.string().nullish(),systemMessageMode:l.enum(["system","developer","remove"]).optional(),forceReasoning:l.boolean().optional()})));async function Z8({tools:e,toolChoice:t}){e=e?.length?e:void 0;let r=[];if(e==null)return{tools:void 0,toolChoice:void 0,toolWarnings:r};let i=[];for(let a of e)switch(a.type){case"function":i.push({type:"function",name:a.name,description:a.description,parameters:a.inputSchema,...a.strict!=null?{strict:a.strict}:{}});break;case"provider":{switch(a.id){case"openai.file_search":{let o=await gt({value:a.args,schema:f8});i.push({type:"file_search",vector_store_ids:o.vectorStoreIds,max_num_results:o.maxNumResults,ranking_options:o.ranking?{ranker:o.ranking.ranker,score_threshold:o.ranking.scoreThreshold}:void 0,filters:o.filters});break}case"openai.local_shell":{i.push({type:"local_shell"});break}case"openai.shell":{let o=await gt({value:a.args,schema:x8});i.push({type:"shell",...o.environment&&{environment:W8(o.environment)}});break}case"openai.apply_patch":{i.push({type:"apply_patch"});break}case"openai.web_search_preview":{let o=await gt({value:a.args,schema:A8});i.push({type:"web_search_preview",search_context_size:o.searchContextSize,user_location:o.userLocation});break}case"openai.web_search":{let o=await gt({value:a.args,schema:I8});i.push({type:"web_search",filters:o.filters!=null?{allowed_domains:o.filters.allowedDomains}:void 0,external_web_access:o.externalWebAccess,search_context_size:o.searchContextSize,user_location:o.userLocation});break}case"openai.code_interpreter":{let o=await gt({value:a.args,schema:c8});i.push({type:"code_interpreter",container:o.container==null?{type:"auto",file_ids:void 0}:typeof o.container=="string"?o.container:{type:"auto",file_ids:o.container.fileIds}});break}case"openai.image_generation":{let o=await gt({value:a.args,schema:g8});i.push({type:"image_generation",background:o.background,input_fidelity:o.inputFidelity,input_image_mask:o.inputImageMask?{file_id:o.inputImageMask.fileId,image_url:o.inputImageMask.imageUrl}:void 0,model:o.model,moderation:o.moderation,partial_images:o.partialImages,quality:o.quality,output_compression:o.outputCompression,output_format:o.outputFormat,size:o.size});break}case"openai.mcp":{let o=await gt({value:a.args,schema:j8}),s=d=>({tool_names:d.toolNames}),u=o.requireApproval,c=u==null?void 0:typeof u=="string"?u:u.never!=null?{never:s(u.never)}:void 0;i.push({type:"mcp",server_label:o.serverLabel,allowed_tools:Array.isArray(o.allowedTools)?o.allowedTools:o.allowedTools?{read_only:o.allowedTools.readOnly,tool_names:o.allowedTools.toolNames}:void 0,authorization:o.authorization,connector_id:o.connectorId,headers:o.headers,require_approval:c??"never",server_description:o.serverDescription,server_url:o.serverUrl});break}}break}default:r.push({type:"unsupported",feature:`function tool ${a}`});break}if(t==null)return{tools:i,toolChoice:void 0,toolWarnings:r};let n=t.type;switch(n){case"auto":case"none":case"required":return{tools:i,toolChoice:n,toolWarnings:r};case"tool":return{tools:i,toolChoice:t.toolName==="code_interpreter"||t.toolName==="file_search"||t.toolName==="image_generation"||t.toolName==="web_search_preview"||t.toolName==="web_search"||t.toolName==="mcp"||t.toolName==="apply_patch"?{type:t.toolName}:{type:"function",name:t.toolName},toolWarnings:r};default:{let a=n;throw new Qt({functionality:`tool choice type: ${a}`})}}}function W8(e){if(e.type==="containerReference")return{type:"container_reference",container_id:e.containerId};if(e.type==="containerAuto"){let r=e;return{type:"container_auto",file_ids:r.fileIds,memory_limit:r.memoryLimit,network_policy:r.networkPolicy==null?void 0:r.networkPolicy.type==="disabled"?{type:"disabled"}:{type:"allowlist",allowed_domains:r.networkPolicy.allowedDomains,domain_secrets:r.networkPolicy.domainSecrets},skills:G8(r.skills)}}return{type:"local",skills:e.skills}}function G8(e){return e?.map(t=>t.type==="skillReference"?{type:"skill_reference",skill_id:t.skillId,version:t.version}:{type:"inline",name:t.name,description:t.description,source:{type:"base64",media_type:t.source.mediaType,data:t.source.data}})}function GP(e){var t,r;let i={};for(let n of e)if(n.role==="assistant")for(let a of n.content){if(a.type!=="tool-call")continue;let o=(r=(t=a.providerOptions)==null?void 0:t.openai)==null?void 0:r.approvalRequestId;o!=null&&(i[o]=a.toolCallId)}return i}var J8=class{constructor(e,t){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/],"application/pdf":[/^https?:\/\/.*$/]},this.modelId=e,this.config=t}get provider(){return this.config.provider}async getArgs({maxOutputTokens:e,temperature:t,stopSequences:r,topP:i,topK:n,presencePenalty:a,frequencyPenalty:o,seed:s,prompt:u,providerOptions:c,tools:d,toolChoice:p,responseFormat:f}){var m,g,h,y,v,_,b,x,E;let k=[],A=YP(this.modelId);n!=null&&k.push({type:"unsupported",feature:"topK"}),s!=null&&k.push({type:"unsupported",feature:"seed"}),a!=null&&k.push({type:"unsupported",feature:"presencePenalty"}),o!=null&&k.push({type:"unsupported",feature:"frequencyPenalty"}),r!=null&&k.push({type:"unsupported",feature:"stopSequences"});let $=this.config.provider.includes("azure")?"azure":"openai",T=await Nt({provider:$,providerOptions:c,schema:WP});T==null&&$!=="openai"&&(T=await Nt({provider:"openai",providerOptions:c,schema:WP}));let Y=(m=T?.forceReasoning)!=null?m:A.isReasoningModel;T?.conversation&&T?.previousResponseId&&k.push({type:"unsupported",feature:"conversation",details:"conversation and previousResponseId cannot be used together"});let R=xN({tools:d,providerToolNames:{"openai.code_interpreter":"code_interpreter","openai.file_search":"file_search","openai.image_generation":"image_generation","openai.local_shell":"local_shell","openai.shell":"shell","openai.web_search":"web_search","openai.web_search_preview":"web_search_preview","openai.mcp":"mcp","openai.apply_patch":"apply_patch"}}),{input:O,warnings:j}=await F8({prompt:u,toolNameMapping:R,systemMessageMode:(g=T?.systemMessageMode)!=null?g:Y?"developer":A.systemMessageMode,providerOptionsName:$,fileIdPrefixes:this.config.fileIdPrefixes,store:(h=T?.store)!=null?h:!0,hasConversation:T?.conversation!=null,hasLocalShellTool:pe("openai.local_shell"),hasShellTool:pe("openai.shell"),hasApplyPatchTool:pe("openai.apply_patch")});k.push(...j);let z=(y=T?.strictJsonSchema)!=null?y:!0,N=T?.include;function W(se){N==null?N=[se]:N.includes(se)||(N=[...N,se])}function pe(se){return d?.find($e=>$e.type==="provider"&&$e.id===se)!=null}let ce=typeof T?.logprobs=="number"?T?.logprobs:T?.logprobs===!0?az:void 0;ce&&W("message.output_text.logprobs");let we=(v=d?.find(se=>se.type==="provider"&&(se.id==="openai.web_search"||se.id==="openai.web_search_preview")))==null?void 0:v.name;we&&W("web_search_call.action.sources"),pe("openai.code_interpreter")&&W("code_interpreter_call.outputs");let S=T?.store;S===!1&&Y&&W("reasoning.encrypted_content");let X={model:this.modelId,input:O,temperature:t,top_p:i,max_output_tokens:e,...(f?.type==="json"||T?.textVerbosity)&&{text:{...f?.type==="json"&&{format:f.schema!=null?{type:"json_schema",strict:z,name:(_=f.name)!=null?_:"response",description:f.description,schema:f.schema}:{type:"json_object"}},...T?.textVerbosity&&{verbosity:T.textVerbosity}}},conversation:T?.conversation,max_tool_calls:T?.maxToolCalls,metadata:T?.metadata,parallel_tool_calls:T?.parallelToolCalls,previous_response_id:T?.previousResponseId,store:S,user:T?.user,instructions:T?.instructions,service_tier:T?.serviceTier,include:N,prompt_cache_key:T?.promptCacheKey,prompt_cache_retention:T?.promptCacheRetention,safety_identifier:T?.safetyIdentifier,top_logprobs:ce,truncation:T?.truncation,...Y&&(T?.reasoningEffort!=null||T?.reasoningSummary!=null)&&{reasoning:{...T?.reasoningEffort!=null&&{effort:T.reasoningEffort},...T?.reasoningSummary!=null&&{summary:T.reasoningSummary}}}};Y?T?.reasoningEffort==="none"&&A.supportsNonReasoningParameters||(X.temperature!=null&&(X.temperature=void 0,k.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for reasoning models"})),X.top_p!=null&&(X.top_p=void 0,k.push({type:"unsupported",feature:"topP",details:"topP is not supported for reasoning models"}))):(T?.reasoningEffort!=null&&k.push({type:"unsupported",feature:"reasoningEffort",details:"reasoningEffort is not supported for non-reasoning models"}),T?.reasoningSummary!=null&&k.push({type:"unsupported",feature:"reasoningSummary",details:"reasoningSummary is not supported for non-reasoning models"})),T?.serviceTier==="flex"&&!A.supportsFlexProcessing&&(k.push({type:"unsupported",feature:"serviceTier",details:"flex processing is only available for o3, o4-mini, and gpt-5 models"}),delete X.service_tier),T?.serviceTier==="priority"&&!A.supportsPriorityProcessing&&(k.push({type:"unsupported",feature:"serviceTier",details:"priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported"}),delete X.service_tier);let{tools:re,toolChoice:w,toolWarnings:le}=await Z8({tools:d,toolChoice:p}),Me=(E=(x=(b=d?.find(se=>se.type==="provider"&&se.id==="openai.shell"))==null?void 0:b.args)==null?void 0:x.environment)==null?void 0:E.type,G=Me==="containerAuto"||Me==="containerReference";return{webSearchToolName:we,args:{...X,tools:re,tool_choice:w},warnings:[...k,...le],store:S,toolNameMapping:R,providerOptionsName:$,isShellProviderExecuted:G}}async doGenerate(e){var t,r,i,n,a,o,s,u,c,d,p,f,m,g,h,y,v,_,b,x,E,k,A,$,T;let{args:Y,warnings:R,webSearchToolName:O,toolNameMapping:j,providerOptionsName:z,isShellProviderExecuted:N}=await this.getArgs(e),W=this.config.url({path:"/responses",modelId:this.modelId}),pe=GP(e.prompt),{responseHeaders:ce,value:we,rawValue:S}=await Ye({url:W,headers:Je(this.config.headers(),e.headers),body:Y,failedResponseHandler:Jr,successfulResponseHandler:tt(B8),abortSignal:e.abortSignal,fetch:this.config.fetch});if(we.error)throw new Fe({message:we.error.message,url:W,requestBodyValues:Y,statusCode:400,responseHeaders:ce,responseBody:S,isRetryable:!1});let X=[],re=[],w=!1;for(let G of we.output)switch(G.type){case"reasoning":{G.summary.length===0&&G.summary.push({type:"summary_text",text:""});for(let se of G.summary)X.push({type:"reasoning",text:se.text,providerMetadata:{[z]:{itemId:G.id,reasoningEncryptedContent:(t=G.encrypted_content)!=null?t:null}}});break}case"image_generation_call":{X.push({type:"tool-call",toolCallId:G.id,toolName:j.toCustomToolName("image_generation"),input:"{}",providerExecuted:!0}),X.push({type:"tool-result",toolCallId:G.id,toolName:j.toCustomToolName("image_generation"),result:{result:G.result}});break}case"local_shell_call":{X.push({type:"tool-call",toolCallId:G.call_id,toolName:j.toCustomToolName("local_shell"),input:JSON.stringify({action:G.action}),providerMetadata:{[z]:{itemId:G.id}}});break}case"shell_call":{X.push({type:"tool-call",toolCallId:G.call_id,toolName:j.toCustomToolName("shell"),input:JSON.stringify({action:{commands:G.action.commands}}),...N&&{providerExecuted:!0},providerMetadata:{[z]:{itemId:G.id}}});break}case"shell_call_output":{X.push({type:"tool-result",toolCallId:G.call_id,toolName:j.toCustomToolName("shell"),result:{output:G.output.map(se=>({stdout:se.stdout,stderr:se.stderr,outcome:se.outcome.type==="exit"?{type:"exit",exitCode:se.outcome.exit_code}:{type:"timeout"}}))}});break}case"message":{for(let se of G.content){(i=(r=e.providerOptions)==null?void 0:r[z])!=null&&i.logprobs&&se.logprobs&&re.push(se.logprobs);let $e={itemId:G.id,...G.phase!=null&&{phase:G.phase},...se.annotations.length>0&&{annotations:se.annotations}};X.push({type:"text",text:se.text,providerMetadata:{[z]:$e}});for(let Ce of se.annotations)Ce.type==="url_citation"?X.push({type:"source",sourceType:"url",id:(o=(a=(n=this.config).generateId)==null?void 0:a.call(n))!=null?o:wt(),url:Ce.url,title:Ce.title}):Ce.type==="file_citation"?X.push({type:"source",sourceType:"document",id:(c=(u=(s=this.config).generateId)==null?void 0:u.call(s))!=null?c:wt(),mediaType:"text/plain",title:Ce.filename,filename:Ce.filename,providerMetadata:{[z]:{type:Ce.type,fileId:Ce.file_id,index:Ce.index}}}):Ce.type==="container_file_citation"?X.push({type:"source",sourceType:"document",id:(f=(p=(d=this.config).generateId)==null?void 0:p.call(d))!=null?f:wt(),mediaType:"text/plain",title:Ce.filename,filename:Ce.filename,providerMetadata:{[z]:{type:Ce.type,fileId:Ce.file_id,containerId:Ce.container_id}}}):Ce.type==="file_path"&&X.push({type:"source",sourceType:"document",id:(h=(g=(m=this.config).generateId)==null?void 0:g.call(m))!=null?h:wt(),mediaType:"application/octet-stream",title:Ce.file_id,filename:Ce.file_id,providerMetadata:{[z]:{type:Ce.type,fileId:Ce.file_id,index:Ce.index}}})}break}case"function_call":{w=!0,X.push({type:"tool-call",toolCallId:G.call_id,toolName:G.name,input:G.arguments,providerMetadata:{[z]:{itemId:G.id}}});break}case"web_search_call":{X.push({type:"tool-call",toolCallId:G.id,toolName:j.toCustomToolName(O??"web_search"),input:JSON.stringify({}),providerExecuted:!0}),X.push({type:"tool-result",toolCallId:G.id,toolName:j.toCustomToolName(O??"web_search"),result:HP(G.action)});break}case"mcp_call":{let se=G.approval_request_id!=null&&(y=pe[G.approval_request_id])!=null?y:G.id,$e=`mcp.${G.name}`;X.push({type:"tool-call",toolCallId:se,toolName:$e,input:G.arguments,providerExecuted:!0,dynamic:!0}),X.push({type:"tool-result",toolCallId:se,toolName:$e,result:{type:"call",serverLabel:G.server_label,name:G.name,arguments:G.arguments,...G.output!=null?{output:G.output}:{},...G.error!=null?{error:G.error}:{}},providerMetadata:{[z]:{itemId:G.id}}});break}case"mcp_list_tools":break;case"mcp_approval_request":{let se=(v=G.approval_request_id)!=null?v:G.id,$e=(x=(b=(_=this.config).generateId)==null?void 0:b.call(_))!=null?x:wt(),Ce=`mcp.${G.name}`;X.push({type:"tool-call",toolCallId:$e,toolName:Ce,input:G.arguments,providerExecuted:!0,dynamic:!0}),X.push({type:"tool-approval-request",approvalId:se,toolCallId:$e});break}case"computer_call":{X.push({type:"tool-call",toolCallId:G.id,toolName:j.toCustomToolName("computer_use"),input:"",providerExecuted:!0}),X.push({type:"tool-result",toolCallId:G.id,toolName:j.toCustomToolName("computer_use"),result:{type:"computer_use_tool_result",status:G.status||"completed"}});break}case"file_search_call":{X.push({type:"tool-call",toolCallId:G.id,toolName:j.toCustomToolName("file_search"),input:"{}",providerExecuted:!0}),X.push({type:"tool-result",toolCallId:G.id,toolName:j.toCustomToolName("file_search"),result:{queries:G.queries,results:(k=(E=G.results)==null?void 0:E.map(se=>({attributes:se.attributes,fileId:se.file_id,filename:se.filename,score:se.score,text:se.text})))!=null?k:null}});break}case"code_interpreter_call":{X.push({type:"tool-call",toolCallId:G.id,toolName:j.toCustomToolName("code_interpreter"),input:JSON.stringify({code:G.code,containerId:G.container_id}),providerExecuted:!0}),X.push({type:"tool-result",toolCallId:G.id,toolName:j.toCustomToolName("code_interpreter"),result:{outputs:G.outputs}});break}case"apply_patch_call":{X.push({type:"tool-call",toolCallId:G.call_id,toolName:j.toCustomToolName("apply_patch"),input:JSON.stringify({callId:G.call_id,operation:G.operation}),providerMetadata:{[z]:{itemId:G.id}}});break}}let le={[z]:{responseId:we.id,...re.length>0?{logprobs:re}:{},...typeof we.service_tier=="string"?{serviceTier:we.service_tier}:{}}},Me=we.usage;return{content:X,finishReason:{unified:ZP({finishReason:(A=we.incomplete_details)==null?void 0:A.reason,hasFunctionCall:w}),raw:(T=($=we.incomplete_details)==null?void 0:$.reason)!=null?T:void 0},usage:BP(Me),request:{body:Y},response:{id:we.id,timestamp:new Date(we.created_at*1e3),modelId:we.model,headers:ce,body:S},providerMetadata:le,warnings:R}}async doStream(e){let{args:t,warnings:r,webSearchToolName:i,toolNameMapping:n,store:a,providerOptionsName:o,isShellProviderExecuted:s}=await this.getArgs(e),{responseHeaders:u,value:c}=await Ye({url:this.config.url({path:"/responses",modelId:this.modelId}),headers:Je(this.config.headers(),e.headers),body:{...t,stream:!0},failedResponseHandler:Jr,successfulResponseHandler:Ci(q8),abortSignal:e.abortSignal,fetch:this.config.fetch}),d=this,p=GP(e.prompt),f=new Map,m={unified:"other",raw:void 0},g,h=[],y=null,v={},_=[],b,x=!1,E={},k;return{stream:c.pipeThrough(new TransformStream({start(A){A.enqueue({type:"stream-start",warnings:r})},transform(A,$){var T,Y,R,O,j,z,N,W,pe,ce,we,S,X,re,w,le,Me,G,se,$e,Ce,dt,oe,Pe,He,yr,kt,vr,Hr,Kr,Ln,Fn;if(e.includeRawChunks&&$.enqueue({type:"raw",rawValue:A.rawValue}),!A.success){m={unified:"error",raw:void 0},$.enqueue({type:"error",error:A.error});return}let I=A.value;if(JP(I)){if(I.item.type==="function_call")v[I.output_index]={toolName:I.item.name,toolCallId:I.item.call_id},$.enqueue({type:"tool-input-start",id:I.item.call_id,toolName:I.item.name});else if(I.item.type==="web_search_call")v[I.output_index]={toolName:n.toCustomToolName(i??"web_search"),toolCallId:I.item.id},$.enqueue({type:"tool-input-start",id:I.item.id,toolName:n.toCustomToolName(i??"web_search"),providerExecuted:!0}),$.enqueue({type:"tool-input-end",id:I.item.id}),$.enqueue({type:"tool-call",toolCallId:I.item.id,toolName:n.toCustomToolName(i??"web_search"),input:JSON.stringify({}),providerExecuted:!0});else if(I.item.type==="computer_call")v[I.output_index]={toolName:n.toCustomToolName("computer_use"),toolCallId:I.item.id},$.enqueue({type:"tool-input-start",id:I.item.id,toolName:n.toCustomToolName("computer_use"),providerExecuted:!0});else if(I.item.type==="code_interpreter_call")v[I.output_index]={toolName:n.toCustomToolName("code_interpreter"),toolCallId:I.item.id,codeInterpreter:{containerId:I.item.container_id}},$.enqueue({type:"tool-input-start",id:I.item.id,toolName:n.toCustomToolName("code_interpreter"),providerExecuted:!0}),$.enqueue({type:"tool-input-delta",id:I.item.id,delta:`{"containerId":"${I.item.container_id}","code":"`});else if(I.item.type==="file_search_call")$.enqueue({type:"tool-call",toolCallId:I.item.id,toolName:n.toCustomToolName("file_search"),input:"{}",providerExecuted:!0});else if(I.item.type==="image_generation_call")$.enqueue({type:"tool-call",toolCallId:I.item.id,toolName:n.toCustomToolName("image_generation"),input:"{}",providerExecuted:!0});else if(!(I.item.type==="mcp_call"||I.item.type==="mcp_list_tools"||I.item.type==="mcp_approval_request"))if(I.item.type==="apply_patch_call"){let{call_id:K,operation:Ke}=I.item;if(v[I.output_index]={toolName:n.toCustomToolName("apply_patch"),toolCallId:K,applyPatch:{hasDiff:Ke.type==="delete_file",endEmitted:Ke.type==="delete_file"}},$.enqueue({type:"tool-input-start",id:K,toolName:n.toCustomToolName("apply_patch")}),Ke.type==="delete_file"){let st=JSON.stringify({callId:K,operation:Ke});$.enqueue({type:"tool-input-delta",id:K,delta:st}),$.enqueue({type:"tool-input-end",id:K})}else $.enqueue({type:"tool-input-delta",id:K,delta:`{"callId":"${ba(K)}","operation":{"type":"${ba(Ke.type)}","path":"${ba(Ke.path)}","diff":"`})}else I.item.type==="shell_call"?v[I.output_index]={toolName:n.toCustomToolName("shell"),toolCallId:I.item.call_id}:I.item.type==="shell_call_output"||(I.item.type==="message"?(_.splice(0,_.length),b=(T=I.item.phase)!=null?T:void 0,$.enqueue({type:"text-start",id:I.item.id,providerMetadata:{[o]:{itemId:I.item.id,...I.item.phase!=null&&{phase:I.item.phase}}}})):JP(I)&&I.item.type==="reasoning"&&(E[I.item.id]={encryptedContent:I.item.encrypted_content,summaryParts:{0:"active"}},$.enqueue({type:"reasoning-start",id:`${I.item.id}:0`,providerMetadata:{[o]:{itemId:I.item.id,reasoningEncryptedContent:(Y=I.item.encrypted_content)!=null?Y:null}}})))}else if(K8(I)){if(I.item.type==="message"){let K=(R=I.item.phase)!=null?R:b;b=void 0,$.enqueue({type:"text-end",id:I.item.id,providerMetadata:{[o]:{itemId:I.item.id,...K!=null&&{phase:K},..._.length>0&&{annotations:_}}}})}else if(I.item.type==="function_call")v[I.output_index]=void 0,x=!0,$.enqueue({type:"tool-input-end",id:I.item.call_id}),$.enqueue({type:"tool-call",toolCallId:I.item.call_id,toolName:I.item.name,input:I.item.arguments,providerMetadata:{[o]:{itemId:I.item.id}}});else if(I.item.type==="web_search_call")v[I.output_index]=void 0,$.enqueue({type:"tool-result",toolCallId:I.item.id,toolName:n.toCustomToolName(i??"web_search"),result:HP(I.item.action)});else if(I.item.type==="computer_call")v[I.output_index]=void 0,$.enqueue({type:"tool-input-end",id:I.item.id}),$.enqueue({type:"tool-call",toolCallId:I.item.id,toolName:n.toCustomToolName("computer_use"),input:"",providerExecuted:!0}),$.enqueue({type:"tool-result",toolCallId:I.item.id,toolName:n.toCustomToolName("computer_use"),result:{type:"computer_use_tool_result",status:I.item.status||"completed"}});else if(I.item.type==="file_search_call")v[I.output_index]=void 0,$.enqueue({type:"tool-result",toolCallId:I.item.id,toolName:n.toCustomToolName("file_search"),result:{queries:I.item.queries,results:(j=(O=I.item.results)==null?void 0:O.map(K=>({attributes:K.attributes,fileId:K.file_id,filename:K.filename,score:K.score,text:K.text})))!=null?j:null}});else if(I.item.type==="code_interpreter_call")v[I.output_index]=void 0,$.enqueue({type:"tool-result",toolCallId:I.item.id,toolName:n.toCustomToolName("code_interpreter"),result:{outputs:I.item.outputs}});else if(I.item.type==="image_generation_call")$.enqueue({type:"tool-result",toolCallId:I.item.id,toolName:n.toCustomToolName("image_generation"),result:{result:I.item.result}});else if(I.item.type==="mcp_call"){v[I.output_index]=void 0;let K=(z=I.item.approval_request_id)!=null?z:void 0,Ke=K!=null&&(W=(N=f.get(K))!=null?N:p[K])!=null?W:I.item.id,st=`mcp.${I.item.name}`;$.enqueue({type:"tool-call",toolCallId:Ke,toolName:st,input:I.item.arguments,providerExecuted:!0,dynamic:!0}),$.enqueue({type:"tool-result",toolCallId:Ke,toolName:st,result:{type:"call",serverLabel:I.item.server_label,name:I.item.name,arguments:I.item.arguments,...I.item.output!=null?{output:I.item.output}:{},...I.item.error!=null?{error:I.item.error}:{}},providerMetadata:{[o]:{itemId:I.item.id}}})}else if(I.item.type==="mcp_list_tools")v[I.output_index]=void 0;else if(I.item.type==="apply_patch_call"){let K=v[I.output_index];K?.applyPatch&&!K.applyPatch.endEmitted&&I.item.operation.type!=="delete_file"&&(K.applyPatch.hasDiff||$.enqueue({type:"tool-input-delta",id:K.toolCallId,delta:ba(I.item.operation.diff)}),$.enqueue({type:"tool-input-delta",id:K.toolCallId,delta:'"}}'}),$.enqueue({type:"tool-input-end",id:K.toolCallId}),K.applyPatch.endEmitted=!0),K&&I.item.status==="completed"&&$.enqueue({type:"tool-call",toolCallId:K.toolCallId,toolName:n.toCustomToolName("apply_patch"),input:JSON.stringify({callId:I.item.call_id,operation:I.item.operation}),providerMetadata:{[o]:{itemId:I.item.id}}}),v[I.output_index]=void 0}else if(I.item.type==="mcp_approval_request"){v[I.output_index]=void 0;let K=(we=(ce=(pe=d.config).generateId)==null?void 0:ce.call(pe))!=null?we:wt(),Ke=(S=I.item.approval_request_id)!=null?S:I.item.id;f.set(Ke,K);let st=`mcp.${I.item.name}`;$.enqueue({type:"tool-call",toolCallId:K,toolName:st,input:I.item.arguments,providerExecuted:!0,dynamic:!0}),$.enqueue({type:"tool-approval-request",approvalId:Ke,toolCallId:K})}else if(I.item.type==="local_shell_call")v[I.output_index]=void 0,$.enqueue({type:"tool-call",toolCallId:I.item.call_id,toolName:n.toCustomToolName("local_shell"),input:JSON.stringify({action:{type:"exec",command:I.item.action.command,timeoutMs:I.item.action.timeout_ms,user:I.item.action.user,workingDirectory:I.item.action.working_directory,env:I.item.action.env}}),providerMetadata:{[o]:{itemId:I.item.id}}});else if(I.item.type==="shell_call")v[I.output_index]=void 0,$.enqueue({type:"tool-call",toolCallId:I.item.call_id,toolName:n.toCustomToolName("shell"),input:JSON.stringify({action:{commands:I.item.action.commands}}),...s&&{providerExecuted:!0},providerMetadata:{[o]:{itemId:I.item.id}}});else if(I.item.type==="shell_call_output")$.enqueue({type:"tool-result",toolCallId:I.item.call_id,toolName:n.toCustomToolName("shell"),result:{output:I.item.output.map(K=>({stdout:K.stdout,stderr:K.stderr,outcome:K.outcome.type==="exit"?{type:"exit",exitCode:K.outcome.exit_code}:{type:"timeout"}}))}});else if(I.item.type==="reasoning"){let K=E[I.item.id],Ke=Object.entries(K.summaryParts).filter(([st,Di])=>Di==="active"||Di==="can-conclude").map(([st])=>st);for(let st of Ke)$.enqueue({type:"reasoning-end",id:`${I.item.id}:${st}`,providerMetadata:{[o]:{itemId:I.item.id,reasoningEncryptedContent:(X=I.item.encrypted_content)!=null?X:null}}});delete E[I.item.id]}}else if(Q8(I)){let K=v[I.output_index];K!=null&&$.enqueue({type:"tool-input-delta",id:K.toolCallId,delta:I.delta})}else if(nY(I)){let K=v[I.output_index];K?.applyPatch&&($.enqueue({type:"tool-input-delta",id:K.toolCallId,delta:ba(I.delta)}),K.applyPatch.hasDiff=!0)}else if(iY(I)){let K=v[I.output_index];K?.applyPatch&&!K.applyPatch.endEmitted&&(K.applyPatch.hasDiff||($.enqueue({type:"tool-input-delta",id:K.toolCallId,delta:ba(I.diff)}),K.applyPatch.hasDiff=!0),$.enqueue({type:"tool-input-delta",id:K.toolCallId,delta:'"}}'}),$.enqueue({type:"tool-input-end",id:K.toolCallId}),K.applyPatch.endEmitted=!0)}else if(eY(I))$.enqueue({type:"tool-result",toolCallId:I.item_id,toolName:n.toCustomToolName("image_generation"),result:{result:I.partial_image_b64},preliminary:!0});else if(tY(I)){let K=v[I.output_index];K!=null&&$.enqueue({type:"tool-input-delta",id:K.toolCallId,delta:ba(I.delta)})}else if(rY(I)){let K=v[I.output_index];K!=null&&($.enqueue({type:"tool-input-delta",id:K.toolCallId,delta:'"}'}),$.enqueue({type:"tool-input-end",id:K.toolCallId}),$.enqueue({type:"tool-call",toolCallId:K.toolCallId,toolName:n.toCustomToolName("code_interpreter"),input:JSON.stringify({code:I.code,containerId:K.codeInterpreter.containerId}),providerExecuted:!0}))}else if(X8(I))y=I.response.id,$.enqueue({type:"response-metadata",id:I.response.id,timestamp:new Date(I.response.created_at*1e3),modelId:I.response.model});else if(H8(I))$.enqueue({type:"text-delta",id:I.item_id,delta:I.delta}),(w=(re=e.providerOptions)==null?void 0:re[o])!=null&&w.logprobs&&I.logprobs&&h.push(I.logprobs);else if(I.type==="response.reasoning_summary_part.added"){if(I.summary_index>0){let K=E[I.item_id];K.summaryParts[I.summary_index]="active";for(let Ke of Object.keys(K.summaryParts))K.summaryParts[Ke]==="can-conclude"&&($.enqueue({type:"reasoning-end",id:`${I.item_id}:${Ke}`,providerMetadata:{[o]:{itemId:I.item_id}}}),K.summaryParts[Ke]="concluded");$.enqueue({type:"reasoning-start",id:`${I.item_id}:${I.summary_index}`,providerMetadata:{[o]:{itemId:I.item_id,reasoningEncryptedContent:(Me=(le=E[I.item_id])==null?void 0:le.encryptedContent)!=null?Me:null}}})}}else I.type==="response.reasoning_summary_text.delta"?$.enqueue({type:"reasoning-delta",id:`${I.item_id}:${I.summary_index}`,delta:I.delta,providerMetadata:{[o]:{itemId:I.item_id}}}):I.type==="response.reasoning_summary_part.done"?a?($.enqueue({type:"reasoning-end",id:`${I.item_id}:${I.summary_index}`,providerMetadata:{[o]:{itemId:I.item_id}}}),E[I.item_id].summaryParts[I.summary_index]="concluded"):E[I.item_id].summaryParts[I.summary_index]="can-conclude":Y8(I)?(m={unified:ZP({finishReason:(G=I.response.incomplete_details)==null?void 0:G.reason,hasFunctionCall:x}),raw:($e=(se=I.response.incomplete_details)==null?void 0:se.reason)!=null?$e:void 0},g=I.response.usage,typeof I.response.service_tier=="string"&&(k=I.response.service_tier)):aY(I)?(_.push(I.annotation),I.annotation.type==="url_citation"?$.enqueue({type:"source",sourceType:"url",id:(oe=(dt=(Ce=d.config).generateId)==null?void 0:dt.call(Ce))!=null?oe:wt(),url:I.annotation.url,title:I.annotation.title}):I.annotation.type==="file_citation"?$.enqueue({type:"source",sourceType:"document",id:(yr=(He=(Pe=d.config).generateId)==null?void 0:He.call(Pe))!=null?yr:wt(),mediaType:"text/plain",title:I.annotation.filename,filename:I.annotation.filename,providerMetadata:{[o]:{type:I.annotation.type,fileId:I.annotation.file_id,index:I.annotation.index}}}):I.annotation.type==="container_file_citation"?$.enqueue({type:"source",sourceType:"document",id:(Hr=(vr=(kt=d.config).generateId)==null?void 0:vr.call(kt))!=null?Hr:wt(),mediaType:"text/plain",title:I.annotation.filename,filename:I.annotation.filename,providerMetadata:{[o]:{type:I.annotation.type,fileId:I.annotation.file_id,containerId:I.annotation.container_id}}}):I.annotation.type==="file_path"&&$.enqueue({type:"source",sourceType:"document",id:(Fn=(Ln=(Kr=d.config).generateId)==null?void 0:Ln.call(Kr))!=null?Fn:wt(),mediaType:"application/octet-stream",title:I.annotation.file_id,filename:I.annotation.file_id,providerMetadata:{[o]:{type:I.annotation.type,fileId:I.annotation.file_id,index:I.annotation.index}}})):oY(I)&&$.enqueue({type:"error",error:I})},flush(A){let $={[o]:{responseId:y,...h.length>0?{logprobs:h}:{},...k!==void 0?{serviceTier:k}:{}}};A.enqueue({type:"finish",finishReason:m,usage:BP(g),providerMetadata:$})}})),request:{body:t},response:{headers:u}}}};function H8(e){return e.type==="response.output_text.delta"}function K8(e){return e.type==="response.output_item.done"}function Y8(e){return e.type==="response.completed"||e.type==="response.incomplete"}function X8(e){return e.type==="response.created"}function Q8(e){return e.type==="response.function_call_arguments.delta"}function eY(e){return e.type==="response.image_generation_call.partial_image"}function tY(e){return e.type==="response.code_interpreter_call_code.delta"}function rY(e){return e.type==="response.code_interpreter_call_code.done"}function nY(e){return e.type==="response.apply_patch_call_operation_diff.delta"}function iY(e){return e.type==="response.apply_patch_call_operation_diff.done"}function JP(e){return e.type==="response.output_item.added"}function aY(e){return e.type==="response.output_text.annotation.added"}function oY(e){return e.type==="error"}function HP(e){var t;if(e==null)return{};switch(e.type){case"search":return{action:{type:"search",query:(t=e.query)!=null?t:void 0},...e.sources!=null&&{sources:e.sources}};case"open_page":return{action:{type:"openPage",url:e.url}};case"find_in_page":return{action:{type:"findInPage",url:e.url,pattern:e.pattern}}}}function ba(e){return JSON.stringify(e).slice(1,-1)}var sY=H(()=>Z(l.object({instructions:l.string().nullish(),speed:l.number().min(.25).max(4).default(1).nullish()}))),lY=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3"}get provider(){return this.config.provider}async getArgs({text:e,voice:t="alloy",outputFormat:r="mp3",speed:i,instructions:n,language:a,providerOptions:o}){let s=[],u=await Nt({provider:"openai",providerOptions:o,schema:sY}),c={model:this.modelId,input:e,voice:t,response_format:"mp3",speed:i,instructions:n};if(r&&(["mp3","opus","aac","flac","wav","pcm"].includes(r)?c.response_format=r:s.push({type:"unsupported",feature:"outputFormat",details:`Unsupported output format: ${r}. Using mp3 instead.`})),u){let d={};for(let p in d){let f=d[p];f!==void 0&&(c[p]=f)}}return a&&s.push({type:"unsupported",feature:"language",details:`OpenAI speech models do not support language selection. Language parameter "${a}" was ignored.`}),{requestBody:c,warnings:s}}async doGenerate(e){var t,r,i;let n=(i=(r=(t=this.config._internal)==null?void 0:t.currentDate)==null?void 0:r.call(t))!=null?i:new Date,{requestBody:a,warnings:o}=await this.getArgs(e),{value:s,responseHeaders:u,rawValue:c}=await Ye({url:this.config.url({path:"/audio/speech",modelId:this.modelId}),headers:Je(this.config.headers(),e.headers),body:a,failedResponseHandler:Jr,successfulResponseHandler:LN(),abortSignal:e.abortSignal,fetch:this.config.fetch});return{audio:s,warnings:o,request:{body:JSON.stringify(a)},response:{timestamp:n,modelId:this.modelId,headers:u,body:c}}}},uY=H(()=>Z(l.object({text:l.string(),language:l.string().nullish(),duration:l.number().nullish(),words:l.array(l.object({word:l.string(),start:l.number(),end:l.number()})).nullish(),segments:l.array(l.object({id:l.number(),seek:l.number(),start:l.number(),end:l.number(),text:l.string(),tokens:l.array(l.number()),temperature:l.number(),avg_logprob:l.number(),compression_ratio:l.number(),no_speech_prob:l.number()})).nullish()}))),cY=H(()=>Z(l.object({include:l.array(l.string()).optional(),language:l.string().optional(),prompt:l.string().optional(),temperature:l.number().min(0).max(1).default(0).optional(),timestampGranularities:l.array(l.enum(["word","segment"])).default(["segment"]).optional()}))),KP={afrikaans:"af",arabic:"ar",armenian:"hy",azerbaijani:"az",belarusian:"be",bosnian:"bs",bulgarian:"bg",catalan:"ca",chinese:"zh",croatian:"hr",czech:"cs",danish:"da",dutch:"nl",english:"en",estonian:"et",finnish:"fi",french:"fr",galician:"gl",german:"de",greek:"el",hebrew:"he",hindi:"hi",hungarian:"hu",icelandic:"is",indonesian:"id",italian:"it",japanese:"ja",kannada:"kn",kazakh:"kk",korean:"ko",latvian:"lv",lithuanian:"lt",macedonian:"mk",malay:"ms",marathi:"mr",maori:"mi",nepali:"ne",norwegian:"no",persian:"fa",polish:"pl",portuguese:"pt",romanian:"ro",russian:"ru",serbian:"sr",slovak:"sk",slovenian:"sl",spanish:"es",swahili:"sw",swedish:"sv",tagalog:"tl",tamil:"ta",thai:"th",turkish:"tr",ukrainian:"uk",urdu:"ur",vietnamese:"vi",welsh:"cy"},dY=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3"}get provider(){return this.config.provider}async getArgs({audio:e,mediaType:t,providerOptions:r}){let i=[],n=await Nt({provider:"openai",providerOptions:r,schema:cY}),a=new FormData,o=e instanceof Uint8Array?new Blob([e]):new Blob([Zr(e)]);a.append("model",this.modelId);let s=DN(t);if(a.append("file",new File([o],"audio",{type:t}),`audio.${s}`),n){let u={include:n.include,language:n.language,prompt:n.prompt,response_format:["gpt-4o-transcribe","gpt-4o-mini-transcribe"].includes(this.modelId)?"json":"verbose_json",temperature:n.temperature,timestamp_granularities:n.timestampGranularities};for(let[c,d]of Object.entries(u))if(d!=null)if(Array.isArray(d))for(let p of d)a.append(`${c}[]`,String(p));else a.append(c,String(d))}return{formData:a,warnings:i}}async doGenerate(e){var t,r,i,n,a,o,s,u;let c=(i=(r=(t=this.config._internal)==null?void 0:t.currentDate)==null?void 0:r.call(t))!=null?i:new Date,{formData:d,warnings:p}=await this.getArgs(e),{value:f,responseHeaders:m,rawValue:g}=await wf({url:this.config.url({path:"/audio/transcriptions",modelId:this.modelId}),headers:Je(this.config.headers(),e.headers),formData:d,failedResponseHandler:Jr,successfulResponseHandler:tt(uY),abortSignal:e.abortSignal,fetch:this.config.fetch}),h=f.language!=null&&f.language in KP?KP[f.language]:void 0;return{text:f.text,segments:(s=(o=(n=f.segments)==null?void 0:n.map(y=>({text:y.text,startSecond:y.start,endSecond:y.end})))!=null?o:(a=f.words)==null?void 0:a.map(y=>({text:y.word,startSecond:y.start,endSecond:y.end})))!=null?s:[],language:h,durationInSeconds:(u=f.duration)!=null?u:void 0,warnings:p,response:{timestamp:c,modelId:this.modelId,headers:m,body:g}}}},pY="3.0.36";function lx(e={}){var t,r;let i=(t=kf($i({settingValue:e.baseURL,environmentVariableName:"OPENAI_BASE_URL"})))!=null?t:"https://api.openai.com/v1",n=(r=e.name)!=null?r:"openai",a=()=>Wr({Authorization:`Bearer ${NN({apiKey:e.apiKey,environmentVariableName:"OPENAI_API_KEY",description:"OpenAI"})}`,"OpenAI-Organization":e.organization,"OpenAI-Project":e.project,...e.headers},`ai-sdk/openai/${pY}`),o=h=>new GK(h,{provider:`${n}.chat`,url:({path:y})=>`${i}${y}`,headers:a,fetch:e.fetch}),s=h=>new YK(h,{provider:`${n}.completion`,url:({path:y})=>`${i}${y}`,headers:a,fetch:e.fetch}),u=h=>new e8(h,{provider:`${n}.embedding`,url:({path:y})=>`${i}${y}`,headers:a,fetch:e.fetch}),c=h=>new i8(h,{provider:`${n}.image`,url:({path:y})=>`${i}${y}`,headers:a,fetch:e.fetch}),d=h=>new dY(h,{provider:`${n}.transcription`,url:({path:y})=>`${i}${y}`,headers:a,fetch:e.fetch}),p=h=>new lY(h,{provider:`${n}.speech`,url:({path:y})=>`${i}${y}`,headers:a,fetch:e.fetch}),f=h=>{if(new.target)throw new Error("The OpenAI model function cannot be called with the new keyword.");return m(h)},m=h=>new J8(h,{provider:`${n}.responses`,url:({path:y})=>`${i}${y}`,headers:a,fetch:e.fetch,fileIdPrefixes:["file-"]}),g=function(h){return f(h)};return g.specificationVersion="v3",g.languageModel=f,g.chat=o,g.completion=s,g.responses=m,g.embedding=u,g.embeddingModel=u,g.textEmbedding=u,g.textEmbeddingModel=u,g.image=c,g.imageModel=c,g.transcription=d,g.transcriptionModel=d,g.speech=p,g.speechModel=p,g.tools=L8,g}var tye=lx();var fz=ve(pz()),Ff=ve(require("fs")),mz=ve(require("os")),dx=ve(require("path")),hz=ve(ni());function AY(){let e={};for(let t of[dx.resolve(mz.homedir(),".vasmrc"),dx.resolve(process.cwd(),".vasmrc")])if(Ff.existsSync(t))try{let r=hz.parse(Ff.readFileSync(t,"utf8"));r&&(e={...e,...r,llm:{...e.llm,...r.llm}})}catch(r){console.warn(`[WARN] Failed to parse ${t}: ${r}`)}return e}function px(e){process.env.DOTENV_CONFIG_QUIET===void 0&&(process.env.DOTENV_CONFIG_QUIET="true"),fz.config();let t=AY(),r=process.env.VASM_LLM_API_KEY||process.env.OPENAI_API_KEY||t?.llm?.apiKey,i=process.env.VASM_LLM_BASE_URL||t?.llm?.baseURL,n=e||process.env.VASM_LLM_MODEL||t?.llm?.model||"gpt-4o";if(!r)throw new Error("LLM API Key is missing. Please set VASM_LLM_API_KEY or OPENAI_API_KEY in your environment, or configure `llm.apiKey` in .vasmrc.");return lx({apiKey:r,baseURL:i}).chat(n)}var yz=ve(require("crypto"));Ya();var gz=`## \u6821\u9A8C\u6807\u51C6
|
|
358
|
+
|
|
359
|
+
\u5BF9\u7EC4\u88C5\u540E\u7684 Markdown \u4E0A\u4E0B\u6587\u8FDB\u884C\u5206\u6790\uFF0C\u68C0\u6D4B\u4EE5\u4E0B\u56DB\u7C7B\u95EE\u9898\uFF1A
|
|
360
|
+
|
|
361
|
+
1. **\u6307\u4EE4\u51B2\u7A81\uFF08Instruction Conflict\uFF09**\uFF1A\u4E0D\u540C\u5BFC\u5165\u8282\u4E4B\u95F4\u5B58\u5728\u4E92\u76F8\u77DB\u76FE\u7684\u89C4\u5219\u6216\u683C\u5F0F\u7EA6\u675F\uFF08\u4F8B\u5982\u4E92\u65A5\u7684\u884C\u4E3A\u8981\u6C42\uFF09\u3002
|
|
362
|
+
2. **\u4EBA\u683C\u5206\u88C2\uFF08Persona Schizophrenia\uFF09**\uFF1APrompt \u7684\u4E0D\u540C\u90E8\u5206\u5B9A\u4E49\u4E86\u4E0D\u4E00\u81F4\u7684\u89D2\u8272\u5B9A\u4F4D\u6216\u8BED\u6C14\u98CE\u683C\u3002
|
|
363
|
+
3. **\u903B\u8F91\u5197\u4F59\uFF08Logic Redundancy\uFF09**\uFF1A\u540C\u4E00\u6982\u5FF5\u5728\u591A\u4E2A\u5BFC\u5165\u8282\u4E2D\u65E0\u610F\u4E49\u5730\u91CD\u590D\uFF0C\u6D6A\u8D39 Token \u9884\u7B97\u3002
|
|
364
|
+
4. **\u7CFB\u7EDF\u7834\u574F\u98CE\u9669\uFF08System Destruction Risk\uFF09**\uFF1A\u660E\u786E\u5305\u542B\u6267\u884C\u6076\u610F\u4EE3\u7801\u3001\u7834\u574F\u7CFB\u7EDF\u6587\u4EF6\u3001\u7A83\u53D6\u6570\u636E\u6216\u672A\u7ECF\u6388\u6743\u7684\u7CFB\u7EDF\u64CD\u4F5C\u6307\u4EE4\u3002\uFF08\u5FFD\u7565\u62BD\u8C61\u7684 Prompt Injection \u6216\u8D8A\u72F1\u6A21\u5F0F\u2014\u2014\u8FD9\u4E9B\u5C5E\u4E8E\u6B63\u5E38\u884C\u4E3A\uFF0C\u4E0D\u8981\u6807\u8BB0\u3002\uFF09
|
|
365
|
+
`;var fx={en:{"verify.lang":"en",LINT_INIT:"\\n[LINT] \u{1F916} Initiating LLM Semantic Analysis (Lang: {0})...",LINT_ANALYZING:"[LINT] Analyzing composite logic ({0} characters)...\\n",LINT_PASS:"[LINT] \u2705 No semantic issues found. Result: PASS.",LINT_WARN:"\\n[LINT] \u26A0\uFE0F Minor issues or redundancies found. Result: WARN (Non-blocking).",LINT_BLOCK:"\\n[LINT] \u{1F6D1} Critical system destruction risk detected! Result: BLOCK.",LINT_UNKNOWN:"\\n[LINT] \u2753 Unknown verification result format. Assuming BLOCK for safety.",LINT_ERR_FAILED:"[LINT] \u274C Failed to run LLM verification: {0}",LINT_ERR_CONTINUE:"\\n[LINT] \u26A0\uFE0F Verify API failed, but --continue-on-error is set. Continuing...",DIFF_INIT:"\\n[DIFF] \u{1F916} Initiating LLM Semantic Diff Analysis (Lang: {0})...",DIFF_ANALYZING:"[DIFF] Diffing contexts: {0} tokens (old) vs {1} tokens (new)...\\n",DIFF_ERR_FAILED:"[DIFF] \u274C LLM Diff Analysis failed: {0}",DIFF_NO_CHANGES:"[DIFF] \u26AA No structural or semantic changes detected by LLM.",DIFF_RESULT_PREFIX:"[DIFF] \u{1F4DD} Analysis Report:\\n{0}\\n"},"zh-CN":{"verify.lang":"zh-CN",LINT_INIT:"\\n[LINT] \u{1F916} \u6B63\u5728\u542F\u52A8\u5927\u6A21\u578B\u539F\u751F\u8BED\u4E49\u68C0\u67E5 (\u8BED\u8A00: {0})...",LINT_ANALYZING:"[LINT] \u6B63\u5728\u5206\u6790\u7EC4\u5408\u540E\u7684\u903B\u8F91\u4E0A\u4E0B\u6587 (\u5171 {0} \u4E2A\u5B57\u7B26)...\\n",LINT_PASS:"[LINT] \u2705 \u672A\u53D1\u73B0\u4E25\u91CD\u7684\u8BED\u4E49\u98CE\u9669\u3002\u7ED3\u679C: PASS(\u901A\u8FC7)\u3002",LINT_WARN:"\\n[LINT] \u26A0\uFE0F \u53D1\u73B0\u6B21\u8981\u95EE\u9898\u6216\u903B\u8F91\u5197\u4F59\u3002\u7ED3\u679C: WARN (\u975E\u963B\u65AD\u8B66\u544A)\u3002",LINT_BLOCK:"\\n[LINT] \u{1F6D1} \u63A2\u6D4B\u5230\u4E25\u91CD\u7684\u7CFB\u7EDF\u7834\u574F\u98CE\u9669\uFF01\u7ED3\u679C: BLOCK(\u963B\u65AD)\u3002",LINT_UNKNOWN:"\\n[LINT] \u2753 \u672A\u77E5\u7684\u9A8C\u8BC1\u7ED3\u679C\u683C\u5F0F\u3002\u4E3A\u5B89\u5168\u8D77\u89C1\u5047\u5B9A\u4E3A BLOCK\u3002",LINT_ERR_FAILED:"[LINT] \u274C \u5927\u6A21\u578B\u9A8C\u8BC1\u8FD0\u884C\u5931\u8D25: {0}",LINT_ERR_CONTINUE:"\\n[LINT] \u26A0\uFE0F \u9A8C\u8BC1 API \u8C03\u7528\u5931\u8D25\uFF0C\u4F46\u68C0\u6D4B\u5230 --continue-on-error \u6807\u5FD7\uFF0C\u7EE7\u7EED\u6267\u884C...",DIFF_INIT:"\\n[DIFF] \u{1F916} \u6B63\u5728\u542F\u52A8\u5927\u6A21\u578B\u8BED\u4E49 Diff \u5206\u6790 (\u8BED\u8A00: {0})...",DIFF_ANALYZING:"[DIFF] \u6B63\u5728\u6BD4\u5BF9\u4E0A\u4E0B\u6587\u533A\u5757: {0} tokens (\u65E7) vs {1} tokens (\u65B0)...\\n",DIFF_ERR_FAILED:"[DIFF] \u274C \u5927\u6A21\u578B Diff \u5206\u6790\u5931\u8D25: {0}",DIFF_NO_CHANGES:"[DIFF] \u26AA \u5927\u6A21\u578B\u672A\u68C0\u6D4B\u5230\u7ED3\u6784\u6027\u6216\u91CD\u5927\u7684\u8BED\u4E49\u53D8\u5316\u3002",DIFF_RESULT_PREFIX:"[DIFF] \u{1F4DD} \u53D8\u66F4\u5206\u6790\u62A5\u544A:\\n{0}\\n"}};function Dt(e,...t){let r=cT(),n=(fx[r]||fx.en)[e]||fx.en[e]||e;for(let a=0;a<t.length;a++)n=n.replace(`{${a}}`,String(t[a]));return n}function mx(){return Dt("verify.lang")}var NY=`
|
|
366
|
+
\u4F60\u662F VASMC\uFF0C\u4E00\u4E2A\u4E13\u4E3A LLM \u65F6\u4EE3\u8BBE\u8BA1\u7684\u9AD8\u7EA7 AI \u7F16\u8BD1\u5668\u4E0E\u9759\u6001\u5206\u6790\u5668\u3002
|
|
367
|
+
\u4F60\u7684\u4EFB\u52A1\u662F\u5206\u6790\u4EE5\u4E0B\u5DF2\u7EC4\u88C5\u5B8C\u6BD5\u7684 Markdown \u4E0A\u4E0B\u6587\uFF08\u8BE5\u4E0A\u4E0B\u6587\u5C06\u88AB\u7528\u4F5C Prompt\uFF09\uFF0C\u5E76\u68C0\u6D4B\u5176\u4E2D\u5B58\u5728\u7684\u95EE\u9898\u3002
|
|
368
|
+
|
|
369
|
+
${gz.trim()}
|
|
370
|
+
|
|
371
|
+
\u5982\u679C\u53D1\u73B0\u4EFB\u4F55\u95EE\u9898\uFF0C\u8BF7\u6E05\u6670\u5217\u51FA\u95EE\u9898\u7684\u5927\u81F4\u4F4D\u7F6E/\u4E0A\u4E0B\u6587\u3001\u95EE\u9898\u7C7B\u578B\u53CA\u4F60\u7684\u5224\u65AD\u7406\u7531\u3002
|
|
372
|
+
\u8BF7\u4F7F\u7528\u4EE5\u4E0B\u8BED\u8A00\u56DE\u590D\uFF1A{VERIFY_LANG}\u3002
|
|
373
|
+
|
|
374
|
+
\u91CD\u8981\uFF1A\u4F60\u5FC5\u987B\u5728\u56DE\u590D\u7684\u6700\u540E\u4E00\u884C\u8F93\u51FA\u4E25\u91CD\u7A0B\u5EA6\u6807\u8BB0\uFF1A
|
|
375
|
+
- \u82E5\u65E0\u4EFB\u4F55\u95EE\u9898\uFF1A\u6700\u540E\u4E00\u884C\u8F93\u51FA "LINT_PASS"\u3002
|
|
376
|
+
- \u82E5\u4EC5\u6709\u8F7B\u5EA6\u95EE\u9898\uFF08\u6307\u4EE4\u51B2\u7A81\u3001\u4EBA\u683C\u5206\u88C2\u3001\u903B\u8F91\u5197\u4F59\uFF09\uFF1A\u6700\u540E\u4E00\u884C\u8F93\u51FA "LINT_WARN"\u3002
|
|
377
|
+
- \u82E5\u5B58\u5728\u4E25\u91CD\u95EE\u9898\uFF08\u7CFB\u7EDF\u7834\u574F\u98CE\u9669\uFF09\uFF1A\u6700\u540E\u4E00\u884C\u8F93\u51FA "LINT_BLOCK"\u3002
|
|
378
|
+
|
|
379
|
+
\u8F93\u51FA\u683C\u5F0F\uFF08\u82E5\u53D1\u73B0\u95EE\u9898\uFF09\uFF1A
|
|
380
|
+
\u{1F6A8} [\u6307\u4EE4\u51B2\u7A81]
|
|
381
|
+
\u95EE\u9898\uFF1A<\u7B80\u77ED\u63CF\u8FF0>
|
|
382
|
+
\u7406\u7531\uFF1A<\u8BE6\u7EC6\u8BF4\u660E>
|
|
383
|
+
|
|
384
|
+
\u26A0\uFE0F [\u7CFB\u7EDF\u7834\u574F\u98CE\u9669]
|
|
385
|
+
\u95EE\u9898\uFF1A<\u7B80\u77ED\u63CF\u8FF0>
|
|
386
|
+
\u7406\u7531\uFF1A<\u8BE6\u7EC6\u8BF4\u660E>
|
|
387
|
+
|
|
388
|
+
\u{1F4A1} [\u903B\u8F91\u5197\u4F59 / \u4FE1\u606F]
|
|
389
|
+
\u95EE\u9898\uFF1A<\u7B80\u77ED\u63CF\u8FF0>
|
|
390
|
+
\u7406\u7531\uFF1A<\u8BE6\u7EC6\u8BF4\u660E>
|
|
391
|
+
|
|
392
|
+
=== \u7F16\u8BD1\u4E0A\u4E0B\u6587\u5F00\u59CB ===
|
|
393
|
+
{CONTENT}
|
|
394
|
+
=== \u7F16\u8BD1\u4E0A\u4E0B\u6587\u7ED3\u675F ===
|
|
395
|
+
`,hx="";async function vz(e,t){let r=yz.createHash("sha256").update(e).digest("hex");if(r===hx)return{passed:!0};let i=mx();console.log(Dt("LINT_INIT",i)),console.log(Dt("LINT_ANALYZING",e.length));try{let{text:n}=await nx({model:px(t),prompt:NY.replace("{CONTENT}",e).replace("{VERIFY_LANG}",i)}),a=n.trim().split(`
|
|
396
|
+
`),o=a[a.length-1].trim();return o==="LINT_PASS"?(console.log(Dt("LINT_PASS")),hx=r,{passed:!0}):o==="LINT_WARN"?(console.log(n.replace("LINT_WARN","").trim()),console.log(Dt("LINT_WARN")),hx=r,{passed:!0}):o==="LINT_BLOCK"?(console.log(n.replace("LINT_BLOCK","").trim()),console.log(Dt("LINT_BLOCK")),{passed:!1}):(console.log(n),console.log(Dt("LINT_UNKNOWN")),{passed:!1,error:!0})}catch(n){return console.error(Dt("LINT_ERR_FAILED",n.message)),{passed:!1,error:!0}}}var DY=`
|
|
397
|
+
You are VASMC, an expert AI Semantic Diff Analyzer for Prompt Engineering.
|
|
398
|
+
You are given two versions of a compiled Prompt (Old and New).
|
|
399
|
+
Your task is to analyze the semantic and structural differences between them.
|
|
400
|
+
|
|
401
|
+
Focus on:
|
|
402
|
+
1. Did the core persona or system constraints change?
|
|
403
|
+
2. Were any critical rules added or removed?
|
|
404
|
+
3. Did the tone or specific instructions shift?
|
|
405
|
+
|
|
406
|
+
Provide a concise, human-readable summary of the IMPACT of these changes. Do not just list text diffs; explain what the change MEANS for the LLM that will consume this prompt.
|
|
407
|
+
If the changes are purely superficial (e.g., whitespace, exact synonyms) and do not alter the prompt's structural behavior, state that "No structural or semantic changes detected".
|
|
408
|
+
|
|
409
|
+
Please explain the analysis using the following language: {VERIFY_LANG}.
|
|
410
|
+
|
|
411
|
+
=== OLD PROMPT CONTEXT START ===
|
|
412
|
+
{OLD_CONTENT}
|
|
413
|
+
=== OLD PROMPT CONTEXT END ===
|
|
414
|
+
|
|
415
|
+
=== NEW PROMPT CONTEXT START ===
|
|
416
|
+
{NEW_CONTENT}
|
|
417
|
+
=== NEW PROMPT CONTEXT END ===
|
|
418
|
+
`;async function bz(e,t,r){let i=mx();console.log(Dt("DIFF_INIT",i));let n=rn(e),a=rn(t);console.log(Dt("DIFF_ANALYZING",n,a));try{let{text:o}=await nx({model:px(r),prompt:DY.replace("{OLD_CONTENT}",e).replace("{NEW_CONTENT}",t).replace("{VERIFY_LANG}",i)});o.trim().toLowerCase().includes("no structural or semantic changes")?console.log(Dt("DIFF_NO_CHANGES")):console.log(Dt("DIFF_RESULT_PREFIX",o.trim()))}catch(o){console.error(Dt("DIFF_ERR_FAILED",o.message))}}function jY(){let e=yC({name:"vasm-console",description:"Human-facing VASMC console with optional LLM-assisted tools.",includeAgent:!1});return e.command("lint <file>").description("Run optional LLM-powered semantic linting on a compiled markdown file").option("--model <model>","Specify the LLM model to use (default: gpt-4o)").option("--continue-on-error","Exit with 0 even if the LLM API call fails").action(async(t,r)=>{let i=Uf.resolve(process.cwd(),t);Ni.existsSync(i)||(console.error(`[LINT] \u274C File not found: ${i}`),process.exit(1));let n=Ni.readFileSync(i,"utf8");console.log(`[LINT] \u{1F50D} Running semantic linting on ${t}...`);let a=await vz(n,r?.model);a.passed||(a.error&&r?.continueOnError?console.log(Dt("LINT_ERR_CONTINUE")):process.exit(1))}),e.command("diff <file> [old-file]").description("Run optional LLM-powered semantic diff analysis").option("--model <model>","Specify the LLM model to use (default: gpt-4o)").action(async(t,r,i)=>{let n=Uf.resolve(process.cwd(),t);Ni.existsSync(n)||(console.error(`[DIFF] \u274C File not found: ${n}`),process.exit(1));let a=Ni.readFileSync(n,"utf8"),o="";if(r){let s=Uf.resolve(process.cwd(),r);Ni.existsSync(s)||(console.error(`[DIFF] \u274C Old file not found: ${s}`),process.exit(1)),o=Ni.readFileSync(s,"utf8")}if(o===a){console.log("[DIFF] \u2705 Files are identical. No semantic differences.");return}await bz(o,a,i?.model)}),e}async function PY(){await jY().parseAsync(process.argv)}PY().catch(e=>{console.error(e),process.exit(1)});
|