@serverless-devs/s 2.0.100 → 2.0.101-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,78 +1,51 @@
1
- "use strict";var OS=Object.defineProperty,RS=Object.defineProperties;var AS=Object.getOwnPropertyDescriptors;var _p=Object.getOwnPropertySymbols;var PS=Object.prototype.hasOwnProperty,CS=Object.prototype.propertyIsEnumerable;var vp=(r,e,n)=>e in r?OS(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n,Xe=(r,e)=>{for(var n in e||(e={}))PS.call(e,n)&&vp(r,n,e[n]);if(_p)for(var n of _p(e))CS.call(e,n)&&vp(r,n,e[n]);return r},dr=(r,e)=>RS(r,AS(e));var T=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Rp=T((Ei,Op)=>{var IS=require("events").EventEmitter,Qc=require("child_process").spawn,yi=require("path"),el=require("fs"),ka=class{constructor(e,n){this.flags=e,this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let s=Sp(e);this.short=s.shortFlag,this.long=s.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.description=n||"",this.defaultValue=void 0}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return TS(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}},Ys=class extends Error{constructor(e,n,s){super(s);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=n,this.exitCode=e,this.nestedError=void 0}},Js=class extends IS{constructor(e){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._args=[],this.rawArgs=null,this._scriptPath=null,this._name=e||"",this._optionValues={},this._storeOptionsAsProperties=!0,this._storeOptionsAsPropertiesCalled=!1,this._passCommandToAction=!0,this._actionResults=[],this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._hasImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command"}command(e,n,s){let a=n,u=s;typeof a=="object"&&a!==null&&(u=a,a=null),u=u||{};let l=e.split(/ +/),d=this.createCommand(l.shift());return a&&(d.description(a),d._executableHandler=!0),u.isDefault&&(this._defaultCommandName=d._name),d._hidden=!!(u.noHelp||u.hidden),d._hasHelpOption=this._hasHelpOption,d._helpFlags=this._helpFlags,d._helpDescription=this._helpDescription,d._helpShortFlag=this._helpShortFlag,d._helpLongFlag=this._helpLongFlag,d._helpCommandName=this._helpCommandName,d._helpCommandnameAndArgs=this._helpCommandnameAndArgs,d._helpCommandDescription=this._helpCommandDescription,d._exitCallback=this._exitCallback,d._storeOptionsAsProperties=this._storeOptionsAsProperties,d._passCommandToAction=this._passCommandToAction,d._combineFlagAndOptionalValue=this._combineFlagAndOptionalValue,d._executableFile=u.executableFile||null,this.commands.push(d),d._parseExpectedArgs(l),d.parent=this,a?this:d}createCommand(e){return new Js(e)}addCommand(e,n){if(!e._name)throw new Error("Command passed to .addCommand() must have a name");function s(a){a.forEach(u=>{if(u._executableHandler&&!u._executableFile)throw new Error(`Must specify executableFile for deeply nested executable: ${u.name()}`);s(u.commands)})}return s(e.commands),n=n||{},n.isDefault&&(this._defaultCommandName=e._name),(n.noHelp||n.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}arguments(e){return this._parseExpectedArgs(e.split(/ +/))}addHelpCommand(e,n){return e===!1?this._hasImplicitHelpCommand=!1:(this._hasImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=n||this._helpCommandDescription),this}_lazyHasImplicitHelpCommand(){return this._hasImplicitHelpCommand===void 0&&(this._hasImplicitHelpCommand=this.commands.length&&!this._actionHandler&&!this._findCommand("help")),this._hasImplicitHelpCommand}_parseExpectedArgs(e){if(!!e.length)return e.forEach(n=>{let s={required:!1,name:"",variadic:!1};switch(n[0]){case"<":s.required=!0,s.name=n.slice(1,-1);break;case"[":s.name=n.slice(1,-1);break}s.name.length>3&&s.name.slice(-3)==="..."&&(s.variadic=!0,s.name=s.name.slice(0,-3)),s.name&&this._args.push(s)}),this._args.forEach((n,s)=>{if(n.variadic&&s<this._args.length-1)throw new Error(`only the last argument can be variadic '${n.name}'`)}),this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=n=>{if(n.code!=="commander.executeSubCommandAsync")throw n},this}_exit(e,n,s){this._exitCallback&&this._exitCallback(new Ys(e,n,s)),process.exit(e)}action(e){let n=s=>{let a=this._args.length,u=s.slice(0,a);this._passCommandToAction?u[a]=this:u[a]=this.opts(),s.length>a&&u.push(s.slice(a));let l=e.apply(this,u),d=this;for(;d.parent;)d=d.parent;d._actionResults.push(l)};return this._actionHandler=n,this}_checkForOptionNameClash(e){if(!this._storeOptionsAsProperties||this._storeOptionsAsPropertiesCalled||e.name()==="help"||this._getOptionValue(e.attributeName())===void 0)return;let s=!0;if(e.negate){let a=e.long.replace(/^--no-/,"--");s=!this._findOption(a)}else if(e.long){let a=e.long.replace(/^--/,"--no-");s=!this._findOption(a)}if(s)throw new Error(`option '${e.name()}' clashes with existing property '${e.attributeName()}' on Command
1
+ "use strict";var fh=Object.defineProperty,dh=Object.defineProperties;var hh=Object.getOwnPropertyDescriptors;var co=Object.getOwnPropertySymbols;var ph=Object.prototype.hasOwnProperty,mh=Object.prototype.propertyIsEnumerable;var uo=(r,e,t)=>e in r?fh(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ie=(r,e)=>{for(var t in e||(e={}))ph.call(e,t)&&uo(r,t,e[t]);if(co)for(var t of co(e))mh.call(e,t)&&uo(r,t,e[t]);return r},Fe=(r,e)=>dh(r,hh(e));var y=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var _o=y((Mt,vo)=>{var gh=require("events").EventEmitter,ks=require("child_process").spawn,Lt=require("path"),xs=require("fs"),jn=class{constructor(e,t){this.flags=e,this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=go(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.description=t||"",this.defaultValue=void 0}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return vh(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}},Fr=class extends Error{constructor(e,t,n){super(n);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}},Vr=class extends gh{constructor(e){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._args=[],this.rawArgs=null,this._scriptPath=null,this._name=e||"",this._optionValues={},this._storeOptionsAsProperties=!0,this._storeOptionsAsPropertiesCalled=!1,this._passCommandToAction=!0,this._actionResults=[],this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._hasImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command"}command(e,t,n){let s=t,i=n;typeof s=="object"&&s!==null&&(i=s,s=null),i=i||{};let a=e.split(/ +/),c=this.createCommand(a.shift());return s&&(c.description(s),c._executableHandler=!0),i.isDefault&&(this._defaultCommandName=c._name),c._hidden=!!(i.noHelp||i.hidden),c._hasHelpOption=this._hasHelpOption,c._helpFlags=this._helpFlags,c._helpDescription=this._helpDescription,c._helpShortFlag=this._helpShortFlag,c._helpLongFlag=this._helpLongFlag,c._helpCommandName=this._helpCommandName,c._helpCommandnameAndArgs=this._helpCommandnameAndArgs,c._helpCommandDescription=this._helpCommandDescription,c._exitCallback=this._exitCallback,c._storeOptionsAsProperties=this._storeOptionsAsProperties,c._passCommandToAction=this._passCommandToAction,c._combineFlagAndOptionalValue=this._combineFlagAndOptionalValue,c._executableFile=i.executableFile||null,this.commands.push(c),c._parseExpectedArgs(a),c.parent=this,s?this:c}createCommand(e){return new Vr(e)}addCommand(e,t){if(!e._name)throw new Error("Command passed to .addCommand() must have a name");function n(s){s.forEach(i=>{if(i._executableHandler&&!i._executableFile)throw new Error(`Must specify executableFile for deeply nested executable: ${i.name()}`);n(i.commands)})}return n(e.commands),t=t||{},t.isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}arguments(e){return this._parseExpectedArgs(e.split(/ +/))}addHelpCommand(e,t){return e===!1?this._hasImplicitHelpCommand=!1:(this._hasImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=t||this._helpCommandDescription),this}_lazyHasImplicitHelpCommand(){return this._hasImplicitHelpCommand===void 0&&(this._hasImplicitHelpCommand=this.commands.length&&!this._actionHandler&&!this._findCommand("help")),this._hasImplicitHelpCommand}_parseExpectedArgs(e){if(!!e.length)return e.forEach(t=>{let n={required:!1,name:"",variadic:!1};switch(t[0]){case"<":n.required=!0,n.name=t.slice(1,-1);break;case"[":n.name=t.slice(1,-1);break}n.name.length>3&&n.name.slice(-3)==="..."&&(n.variadic=!0,n.name=n.name.slice(0,-3)),n.name&&this._args.push(n)}),this._args.forEach((t,n)=>{if(t.variadic&&n<this._args.length-1)throw new Error(`only the last argument can be variadic '${t.name}'`)}),this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=t=>{if(t.code!=="commander.executeSubCommandAsync")throw t},this}_exit(e,t,n){this._exitCallback&&this._exitCallback(new Fr(e,t,n)),process.exit(e)}action(e){let t=n=>{let s=this._args.length,i=n.slice(0,s);this._passCommandToAction?i[s]=this:i[s]=this.opts(),n.length>s&&i.push(n.slice(s));let a=e.apply(this,i),c=this;for(;c.parent;)c=c.parent;c._actionResults.push(a)};return this._actionHandler=t,this}_checkForOptionNameClash(e){if(!this._storeOptionsAsProperties||this._storeOptionsAsPropertiesCalled||e.name()==="help"||this._getOptionValue(e.attributeName())===void 0)return;let n=!0;if(e.negate){let s=e.long.replace(/^--no-/,"--");n=!this._findOption(s)}else if(e.long){let s=e.long.replace(/^--/,"--no-");n=!this._findOption(s)}if(n)throw new Error(`option '${e.name()}' clashes with existing property '${e.attributeName()}' on Command
2
2
  - call storeOptionsAsProperties(false) to store option values safely,
3
3
  - or call storeOptionsAsProperties(true) to suppress this check,
4
4
  - or change option name
5
5
 
6
- Read more on https://git.io/JJc0W`)}_optionEx(e,n,s,a,u){let l=new ka(n,s),d=l.name(),g=l.attributeName();if(l.mandatory=!!e.mandatory,this._checkForOptionNameClash(l),typeof a!="function")if(a instanceof RegExp){let f=a;a=(_,w)=>{let R=f.exec(_);return R?R[0]:w}}else u=a,a=null;if(l.negate||l.optional||l.required||typeof u=="boolean"){if(l.negate){let f=l.long.replace(/^--no-/,"--");u=this._findOption(f)?this._getOptionValue(g):!0}u!==void 0&&(this._setOptionValue(g,u),l.defaultValue=u)}return this.options.push(l),this.on("option:"+d,f=>{let _=this._getOptionValue(g);f!==null&&a?f=a(f,_===void 0?u:_):f!==null&&l.variadic&&(_===u||!Array.isArray(_)?f=[f]:f=_.concat(f)),typeof _=="boolean"||typeof _>"u"?f==null?this._setOptionValue(g,l.negate?!1:u||!0):this._setOptionValue(g,f):f!==null&&this._setOptionValue(g,l.negate?!1:f)}),this}option(e,n,s,a){return this._optionEx({},e,n,s,a)}requiredOption(e,n,s,a){return this._optionEx({mandatory:!0},e,n,s,a)}combineFlagAndOptionalValue(e){return this._combineFlagAndOptionalValue=e===void 0||e,this}allowUnknownOption(e){return this._allowUnknownOption=e===void 0||e,this}storeOptionsAsProperties(e){if(this._storeOptionsAsPropertiesCalled=!0,this._storeOptionsAsProperties=e===void 0||e,this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this}passCommandToAction(e){return this._passCommandToAction=e===void 0||e,this}_setOptionValue(e,n){this._storeOptionsAsProperties?this[e]=n:this._optionValues[e]=n}_getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}parse(e,n){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");n=n||{},e===void 0&&(e=process.argv,process.versions&&process.versions.electron&&(n.from="electron")),this.rawArgs=e.slice();let s;switch(n.from){case void 0:case"node":this._scriptPath=e[1],s=e.slice(2);break;case"electron":process.defaultApp?(this._scriptPath=e[1],s=e.slice(2)):s=e.slice(1);break;case"user":s=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${n.from}' }`)}return!this._scriptPath&&process.mainModule&&(this._scriptPath=process.mainModule.filename),this._name=this._name||this._scriptPath&&yi.basename(this._scriptPath,yi.extname(this._scriptPath)),this._parseCommand([],s),this}parseAsync(e,n){return this.parse(e,n),Promise.all(this._actionResults).then(()=>this)}_executeSubCommand(e,n){n=n.slice();let s=!1,a=[".js",".ts",".tsx",".mjs"];this._checkForMissingMandatoryOptions();let u=this._scriptPath;!u&&process.mainModule&&(u=process.mainModule.filename);let l;try{let R=el.realpathSync(u);l=yi.dirname(R)}catch{l="."}let d=yi.basename(u,yi.extname(u))+"-"+e._name;e._executableFile&&(d=e._executableFile);let g=yi.join(l,d);el.existsSync(g)?d=g:a.forEach(R=>{el.existsSync(`${g}${R}`)&&(d=`${g}${R}`)}),s=a.includes(yi.extname(d));let f;process.platform!=="win32"?s?(n.unshift(d),n=wp(process.execArgv).concat(n),f=Qc(process.argv[0],n,{stdio:"inherit"})):f=Qc(d,n,{stdio:"inherit"}):(n.unshift(d),n=wp(process.execArgv).concat(n),f=Qc(process.execPath,n,{stdio:"inherit"})),["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(R=>{process.on(R,()=>{f.killed===!1&&f.exitCode===null&&f.kill(R)})});let w=this._exitCallback;w?f.on("close",()=>{w(new Ys(process.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):f.on("close",process.exit.bind(process)),f.on("error",R=>{if(R.code==="ENOENT"){let A=`'${d}' does not exist
6
+ Read more on https://git.io/JJc0W`)}_optionEx(e,t,n,s,i){let a=new jn(t,n),c=a.name(),u=a.attributeName();if(a.mandatory=!!e.mandatory,this._checkForOptionNameClash(a),typeof s!="function")if(s instanceof RegExp){let o=s;s=(l,h)=>{let g=o.exec(l);return g?g[0]:h}}else i=s,s=null;if(a.negate||a.optional||a.required||typeof i=="boolean"){if(a.negate){let o=a.long.replace(/^--no-/,"--");i=this._findOption(o)?this._getOptionValue(u):!0}i!==void 0&&(this._setOptionValue(u,i),a.defaultValue=i)}return this.options.push(a),this.on("option:"+c,o=>{let l=this._getOptionValue(u);o!==null&&s?o=s(o,l===void 0?i:l):o!==null&&a.variadic&&(l===i||!Array.isArray(l)?o=[o]:o=l.concat(o)),typeof l=="boolean"||typeof l>"u"?o==null?this._setOptionValue(u,a.negate?!1:i||!0):this._setOptionValue(u,o):o!==null&&this._setOptionValue(u,a.negate?!1:o)}),this}option(e,t,n,s){return this._optionEx({},e,t,n,s)}requiredOption(e,t,n,s){return this._optionEx({mandatory:!0},e,t,n,s)}combineFlagAndOptionalValue(e){return this._combineFlagAndOptionalValue=e===void 0||e,this}allowUnknownOption(e){return this._allowUnknownOption=e===void 0||e,this}storeOptionsAsProperties(e){if(this._storeOptionsAsPropertiesCalled=!0,this._storeOptionsAsProperties=e===void 0||e,this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this}passCommandToAction(e){return this._passCommandToAction=e===void 0||e,this}_setOptionValue(e,t){this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t}_getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}parse(e,t){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");t=t||{},e===void 0&&(e=process.argv,process.versions&&process.versions.electron&&(t.from="electron")),this.rawArgs=e.slice();let n;switch(t.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":process.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${t.from}' }`)}return!this._scriptPath&&process.mainModule&&(this._scriptPath=process.mainModule.filename),this._name=this._name||this._scriptPath&&Lt.basename(this._scriptPath,Lt.extname(this._scriptPath)),this._parseCommand([],n),this}parseAsync(e,t){return this.parse(e,t),Promise.all(this._actionResults).then(()=>this)}_executeSubCommand(e,t){t=t.slice();let n=!1,s=[".js",".ts",".tsx",".mjs"];this._checkForMissingMandatoryOptions();let i=this._scriptPath;!i&&process.mainModule&&(i=process.mainModule.filename);let a;try{let g=xs.realpathSync(i);a=Lt.dirname(g)}catch{a="."}let c=Lt.basename(i,Lt.extname(i))+"-"+e._name;e._executableFile&&(c=e._executableFile);let u=Lt.join(a,c);xs.existsSync(u)?c=u:s.forEach(g=>{xs.existsSync(`${u}${g}`)&&(c=`${u}${g}`)}),n=s.includes(Lt.extname(c));let o;process.platform!=="win32"?n?(t.unshift(c),t=po(process.execArgv).concat(t),o=ks(process.argv[0],t,{stdio:"inherit"})):o=ks(c,t,{stdio:"inherit"}):(t.unshift(c),t=po(process.execArgv).concat(t),o=ks(process.execPath,t,{stdio:"inherit"})),["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(g=>{process.on(g,()=>{o.killed===!1&&o.exitCode===null&&o.kill(g)})});let h=this._exitCallback;h?o.on("close",()=>{h(new Fr(process.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):o.on("close",process.exit.bind(process)),o.on("error",g=>{if(g.code==="ENOENT"){let v=`'${c}' does not exist
7
7
  - if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
8
- - if the default executable name is not suitable, use the executableFile option to supply a custom name`;throw new Error(A)}else if(R.code==="EACCES")throw new Error(`'${d}' not executable`);if(!w)process.exit(1);else{let A=new Ys(1,"commander.executeSubCommandAsync","(error)");A.nestedError=R,w(A)}}),this.runningCommand=f}_dispatchSubcommand(e,n,s){let a=this._findCommand(e);a||this._helpAndError(),a._executableHandler?this._executeSubCommand(a,n.concat(s)):a._parseCommand(n,s)}_parseCommand(e,n){let s=this.parseOptions(n);if(e=e.concat(s.operands),n=s.unknown,this.args=e.concat(n),e&&this._findCommand(e[0]))this._dispatchSubcommand(e[0],e.slice(1),n);else if(this._lazyHasImplicitHelpCommand()&&e[0]===this._helpCommandName)e.length===1?this.help():this._dispatchSubcommand(e[1],[],[this._helpLongFlag]);else if(this._defaultCommandName)Ep(this,n),this._dispatchSubcommand(this._defaultCommandName,e,n);else if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this._helpAndError(),Ep(this,s.unknown),this._checkForMissingMandatoryOptions(),s.unknown.length>0&&this.unknownOption(s.unknown[0]),this._actionHandler){let a=this.args.slice();this._args.forEach((u,l)=>{u.required&&a[l]==null?this.missingArgument(u.name):u.variadic&&(a[l]=a.splice(l))}),this._actionHandler(a),this.emit("command:"+this.name(),e,n)}else e.length?this._findCommand("*")?this._dispatchSubcommand("*",e,n):this.listenerCount("command:*")?this.emit("command:*",e,n):this.commands.length&&this.unknownCommand():this.commands.length&&this._helpAndError()}_findCommand(e){if(!!e)return this.commands.find(n=>n._name===e||n._aliases.includes(e))}_findOption(e){return this.options.find(n=>n.is(e))}_checkForMissingMandatoryOptions(){for(let e=this;e;e=e.parent)e.options.forEach(n=>{n.mandatory&&e._getOptionValue(n.attributeName())===void 0&&e.missingMandatoryOptionValue(n)})}parseOptions(e){let n=[],s=[],a=n,u=e.slice();function l(g){return g.length>1&&g[0]==="-"}let d=null;for(;u.length;){let g=u.shift();if(g==="--"){a===s&&a.push(g),a.push(...u);break}if(d&&!l(g)){this.emit(`option:${d.name()}`,g);continue}if(d=null,l(g)){let f=this._findOption(g);if(f){if(f.required){let _=u.shift();_===void 0&&this.optionMissingArgument(f),this.emit(`option:${f.name()}`,_)}else if(f.optional){let _=null;u.length>0&&!l(u[0])&&(_=u.shift()),this.emit(`option:${f.name()}`,_)}else this.emit(`option:${f.name()}`);d=f.variadic?f:null;continue}}if(g.length>2&&g[0]==="-"&&g[1]!=="-"){let f=this._findOption(`-${g[1]}`);if(f){f.required||f.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${f.name()}`,g.slice(2)):(this.emit(`option:${f.name()}`),u.unshift(`-${g.slice(2)}`));continue}}if(/^--[^=]+=/.test(g)){let f=g.indexOf("="),_=this._findOption(g.slice(0,f));if(_&&(_.required||_.optional)){this.emit(`option:${_.name()}`,g.slice(f+1));continue}}g.length>1&&g[0]==="-"&&(a=s),a.push(g)}return{operands:n,unknown:s}}opts(){if(this._storeOptionsAsProperties){let e={},n=this.options.length;for(let s=0;s<n;s++){let a=this.options[s].attributeName();e[a]=a===this._versionOptionName?this._version:this[a]}return e}return this._optionValues}missingArgument(e){let n=`error: missing required argument '${e}'`;console.error(n),this._exit(1,"commander.missingArgument",n)}optionMissingArgument(e,n){let s;n?s=`error: option '${e.flags}' argument missing, got '${n}'`:s=`error: option '${e.flags}' argument missing`,console.error(s),this._exit(1,"commander.optionMissingArgument",s)}missingMandatoryOptionValue(e){let n=`error: required option '${e.flags}' not specified`;console.error(n),this._exit(1,"commander.missingMandatoryOptionValue",n)}unknownOption(e){if(this._allowUnknownOption)return;let n=`error: unknown option '${e}'`;console.error(n),this._exit(1,"commander.unknownOption",n)}unknownCommand(){let e=[this.name()];for(let a=this.parent;a;a=a.parent)e.unshift(a.name());let n=e.join(" "),s=`error: unknown command '${this.args[0]}'.`+(this._hasHelpOption?` See '${n} ${this._helpLongFlag}'.`:"");console.error(s),this._exit(1,"commander.unknownCommand",s)}version(e,n,s){if(e===void 0)return this._version;this._version=e,n=n||"-V, --version",s=s||"output the version number";let a=new ka(n,s);return this._versionOptionName=a.attributeName(),this.options.push(a),this.on("option:"+a.name(),()=>{process.stdout.write(e+`
9
- `),this._exit(0,"commander.version",e)}),this}description(e,n){return e===void 0&&n===void 0?this._description:(this._description=e,this._argsDescription=n,this)}alias(e){if(e===void 0)return this._aliases[0];let n=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(n=this.commands[this.commands.length-1]),e===n._name)throw new Error("Command alias can't be the same as its name");return n._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(n=>this.alias(n)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let n=this._args.map(s=>$p(s));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this._args.length?n:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}prepareCommands(){let e=this.commands.filter(n=>!n._hidden).map(n=>{let s=n._args.map(a=>$p(a)).join(" ");return[n._name+(n._aliases[0]?"|"+n._aliases[0]:"")+(n.options.length?" [options]":"")+(s?" "+s:""),n._description]});return this._lazyHasImplicitHelpCommand()&&e.push([this._helpCommandnameAndArgs,this._helpCommandDescription]),e}largestCommandLength(){return this.prepareCommands().reduce((n,s)=>Math.max(n,s[0].length),0)}largestOptionLength(){let e=[].slice.call(this.options);return e.push({flags:this._helpFlags}),e.reduce((n,s)=>Math.max(n,s.flags.length),0)}largestArgLength(){return this._args.reduce((e,n)=>Math.max(e,n.name.length),0)}padWidth(){let e=this.largestOptionLength();return this._argsDescription&&this._args.length&&this.largestArgLength()>e&&(e=this.largestArgLength()),this.commands&&this.commands.length&&this.largestCommandLength()>e&&(e=this.largestCommandLength()),e}optionHelp(){let e=this.padWidth(),s=(process.stdout.columns||80)-e-4;function a(g,f){return tl(g,e)+" "+yp(f,s,e+2)}let u=this.options.map(g=>{let f=g.description+(!g.negate&&g.defaultValue!==void 0?" (default: "+JSON.stringify(g.defaultValue)+")":"");return a(g.flags,f)}),l=this._hasHelpOption&&this._helpShortFlag&&!this._findOption(this._helpShortFlag),d=this._hasHelpOption&&!this._findOption(this._helpLongFlag);if(l||d){let g=this._helpFlags;l?d||(g=this._helpShortFlag):g=this._helpLongFlag,u.push(a(g,this._helpDescription))}return u.join(`
10
- `)}commandHelp(){if(!this.commands.length&&!this._lazyHasImplicitHelpCommand())return"";let e=this.prepareCommands(),n=this.padWidth(),a=(process.stdout.columns||80)-n-4;return["Commands:",e.map(u=>{let l=u[1]?" "+u[1]:"";return(l?tl(u[0],n):u[0])+yp(l,a,n+2)}).join(`
8
+ - if the default executable name is not suitable, use the executableFile option to supply a custom name`;throw new Error(v)}else if(g.code==="EACCES")throw new Error(`'${c}' not executable`);if(!h)process.exit(1);else{let v=new Fr(1,"commander.executeSubCommandAsync","(error)");v.nestedError=g,h(v)}}),this.runningCommand=o}_dispatchSubcommand(e,t,n){let s=this._findCommand(e);s||this._helpAndError(),s._executableHandler?this._executeSubCommand(s,t.concat(n)):s._parseCommand(t,n)}_parseCommand(e,t){let n=this.parseOptions(t);if(e=e.concat(n.operands),t=n.unknown,this.args=e.concat(t),e&&this._findCommand(e[0]))this._dispatchSubcommand(e[0],e.slice(1),t);else if(this._lazyHasImplicitHelpCommand()&&e[0]===this._helpCommandName)e.length===1?this.help():this._dispatchSubcommand(e[1],[],[this._helpLongFlag]);else if(this._defaultCommandName)fo(this,t),this._dispatchSubcommand(this._defaultCommandName,e,t);else if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this._helpAndError(),fo(this,n.unknown),this._checkForMissingMandatoryOptions(),n.unknown.length>0&&this.unknownOption(n.unknown[0]),this._actionHandler){let s=this.args.slice();this._args.forEach((i,a)=>{i.required&&s[a]==null?this.missingArgument(i.name):i.variadic&&(s[a]=s.splice(a))}),this._actionHandler(s),this.emit("command:"+this.name(),e,t)}else e.length?this._findCommand("*")?this._dispatchSubcommand("*",e,t):this.listenerCount("command:*")?this.emit("command:*",e,t):this.commands.length&&this.unknownCommand():this.commands.length&&this._helpAndError()}_findCommand(e){if(!!e)return this.commands.find(t=>t._name===e||t._aliases.includes(e))}_findOption(e){return this.options.find(t=>t.is(e))}_checkForMissingMandatoryOptions(){for(let e=this;e;e=e.parent)e.options.forEach(t=>{t.mandatory&&e._getOptionValue(t.attributeName())===void 0&&e.missingMandatoryOptionValue(t)})}parseOptions(e){let t=[],n=[],s=t,i=e.slice();function a(u){return u.length>1&&u[0]==="-"}let c=null;for(;i.length;){let u=i.shift();if(u==="--"){s===n&&s.push(u),s.push(...i);break}if(c&&!a(u)){this.emit(`option:${c.name()}`,u);continue}if(c=null,a(u)){let o=this._findOption(u);if(o){if(o.required){let l=i.shift();l===void 0&&this.optionMissingArgument(o),this.emit(`option:${o.name()}`,l)}else if(o.optional){let l=null;i.length>0&&!a(i[0])&&(l=i.shift()),this.emit(`option:${o.name()}`,l)}else this.emit(`option:${o.name()}`);c=o.variadic?o:null;continue}}if(u.length>2&&u[0]==="-"&&u[1]!=="-"){let o=this._findOption(`-${u[1]}`);if(o){o.required||o.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${o.name()}`,u.slice(2)):(this.emit(`option:${o.name()}`),i.unshift(`-${u.slice(2)}`));continue}}if(/^--[^=]+=/.test(u)){let o=u.indexOf("="),l=this._findOption(u.slice(0,o));if(l&&(l.required||l.optional)){this.emit(`option:${l.name()}`,u.slice(o+1));continue}}u.length>1&&u[0]==="-"&&(s=n),s.push(u)}return{operands:t,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},t=this.options.length;for(let n=0;n<t;n++){let s=this.options[n].attributeName();e[s]=s===this._versionOptionName?this._version:this[s]}return e}return this._optionValues}missingArgument(e){let t=`error: missing required argument '${e}'`;console.error(t),this._exit(1,"commander.missingArgument",t)}optionMissingArgument(e,t){let n;t?n=`error: option '${e.flags}' argument missing, got '${t}'`:n=`error: option '${e.flags}' argument missing`,console.error(n),this._exit(1,"commander.optionMissingArgument",n)}missingMandatoryOptionValue(e){let t=`error: required option '${e.flags}' not specified`;console.error(t),this._exit(1,"commander.missingMandatoryOptionValue",t)}unknownOption(e){if(this._allowUnknownOption)return;let t=`error: unknown option '${e}'`;console.error(t),this._exit(1,"commander.unknownOption",t)}unknownCommand(){let e=[this.name()];for(let s=this.parent;s;s=s.parent)e.unshift(s.name());let t=e.join(" "),n=`error: unknown command '${this.args[0]}'.`+(this._hasHelpOption?` See '${t} ${this._helpLongFlag}'.`:"");console.error(n),this._exit(1,"commander.unknownCommand",n)}version(e,t,n){if(e===void 0)return this._version;this._version=e,t=t||"-V, --version",n=n||"output the version number";let s=new jn(t,n);return this._versionOptionName=s.attributeName(),this.options.push(s),this.on("option:"+s.name(),()=>{process.stdout.write(e+`
9
+ `),this._exit(0,"commander.version",e)}),this}description(e,t){return e===void 0&&t===void 0?this._description:(this._description=e,this._argsDescription=t,this)}alias(e){if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");return t._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(t=>this.alias(t)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let t=this._args.map(n=>ho(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this._args.length?t:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}prepareCommands(){let e=this.commands.filter(t=>!t._hidden).map(t=>{let n=t._args.map(s=>ho(s)).join(" ");return[t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(n?" "+n:""),t._description]});return this._lazyHasImplicitHelpCommand()&&e.push([this._helpCommandnameAndArgs,this._helpCommandDescription]),e}largestCommandLength(){return this.prepareCommands().reduce((t,n)=>Math.max(t,n[0].length),0)}largestOptionLength(){let e=[].slice.call(this.options);return e.push({flags:this._helpFlags}),e.reduce((t,n)=>Math.max(t,n.flags.length),0)}largestArgLength(){return this._args.reduce((e,t)=>Math.max(e,t.name.length),0)}padWidth(){let e=this.largestOptionLength();return this._argsDescription&&this._args.length&&this.largestArgLength()>e&&(e=this.largestArgLength()),this.commands&&this.commands.length&&this.largestCommandLength()>e&&(e=this.largestCommandLength()),e}optionHelp(){let e=this.padWidth(),n=(process.stdout.columns||80)-e-4;function s(u,o){return Ls(u,e)+" "+lo(o,n,e+2)}let i=this.options.map(u=>{let o=u.description+(!u.negate&&u.defaultValue!==void 0?" (default: "+JSON.stringify(u.defaultValue)+")":"");return s(u.flags,o)}),a=this._hasHelpOption&&this._helpShortFlag&&!this._findOption(this._helpShortFlag),c=this._hasHelpOption&&!this._findOption(this._helpLongFlag);if(a||c){let u=this._helpFlags;a?c||(u=this._helpShortFlag):u=this._helpLongFlag,i.push(s(u,this._helpDescription))}return i.join(`
10
+ `)}commandHelp(){if(!this.commands.length&&!this._lazyHasImplicitHelpCommand())return"";let e=this.prepareCommands(),t=this.padWidth(),s=(process.stdout.columns||80)-t-4;return["Commands:",e.map(i=>{let a=i[1]?" "+i[1]:"";return(a?Ls(i[0],t):i[0])+lo(a,s,t+2)}).join(`
11
11
  `).replace(/^/gm," "),""].join(`
12
- `)}helpInformation(){if(this._name==="s")return"";let e=[];if(this._description){e=[this._description,""];let g=this._argsDescription;if(g&&this._args.length){let f=this.padWidth(),w=(process.stdout.columns||80)-f-5;e.push("Arguments:"),this._args.forEach(R=>{e.push(" "+tl(R.name,f)+" "+bp(g[R.name]||"",w,f+4))}),e.push("")}}let n=this._name;this._aliases[0]&&(n=n+"|"+this._aliases[0]);let s="";for(let g=this.parent;g;g=g.parent)s=g.name()+" "+s;let a=["Usage: "+s+n+" "+this.usage(),""],u=[],l=this.commandHelp();l&&(u=[l]);let d=[];return(this._hasHelpOption||this.options.length>0)&&(d=["Options:",""+this.optionHelp().replace(/^/gm," "),""]),a.concat(e).concat(d).concat(u).join(`
13
- `)}outputHelp(e){e||(e=s=>s);let n=e(this.helpInformation());if(typeof n!="string"&&!Buffer.isBuffer(n))throw new Error("outputHelp callback must return a string or a Buffer");process.stdout.write(n),this.emit(this._helpLongFlag)}helpOption(e,n){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=n||this._helpDescription;let s=Sp(this._helpFlags);return this._helpShortFlag=s.shortFlag,this._helpLongFlag=s.longFlag,this}help(e){this.outputHelp(e),this._exit(process.exitCode||0,"commander.help","(outputHelp)")}_helpAndError(){this.outputHelp(),this._exit(1,"commander.help","(outputHelp)")}};Ei=Op.exports=new Js;Ei.program=Ei;Ei.Command=Js;Ei.Option=ka;Ei.CommanderError=Ys;function TS(r){return r.split("-").reduce((e,n)=>e+n[0].toUpperCase()+n.slice(1))}function tl(r,e){let n=Math.max(0,e-r.length);return r+Array(n+1).join(" ")}function bp(r,e,n){let s=new RegExp(".{1,"+(e-1)+"}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)","g");return(r.match(s)||[]).map((u,l)=>(u.slice(-1)===`
14
- `&&(u=u.slice(0,u.length-1)),(l>0&&n?Array(n+1).join(" "):"")+u.trimRight())).join(`
15
- `)}function yp(r,e,n){return r.match(/[\n]\s+/)||e<40?r:bp(r,e,n)}function Ep(r,e){r._hasHelpOption&&e.find(s=>s===r._helpLongFlag||s===r._helpShortFlag)&&(r.outputHelp(),r._exit(0,"commander.helpDisplayed","(outputHelp)"))}function $p(r){let e=r.name+(r.variadic===!0?"...":"");return r.required?"<"+e+">":"["+e+"]"}function Sp(r){let e,n,s=r.split(/[ |,]+/);return s.length>1&&!/^[[<]/.test(s[1])&&(e=s.shift()),n=s.shift(),!e&&/^-[^-]$/.test(n)&&(e=n,n=void 0),{shortFlag:e,longFlag:n}}function wp(r){return r.map(e=>{if(!e.startsWith("--inspect"))return e;let n,s="127.0.0.1",a="9229",u;return(u=e.match(/^(--inspect(-brk)?)$/))!==null?n=u[1]:(u=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(n=u[1],/^\d+$/.test(u[3])?a=u[3]:s=u[3]):(u=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(n=u[1],s=u[3],a=u[4]),n&&a!=="0"?`${n}=${s}:${parseInt(a)+1}`:e})}});var Zs=T((Dx,Ap)=>{var NS="2.0.0",xS=Number.MAX_SAFE_INTEGER||9007199254740991,DS=16;Ap.exports={SEMVER_SPEC_VERSION:NS,MAX_LENGTH:256,MAX_SAFE_INTEGER:xS,MAX_SAFE_COMPONENT_LENGTH:DS}});var Qs=T((qx,Pp)=>{var qS=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};Pp.exports=qS});var $i=T((Hn,Cp)=>{var{MAX_SAFE_COMPONENT_LENGTH:rl}=Zs(),LS=Qs();Hn=Cp.exports={};var MS=Hn.re=[],V=Hn.src=[],G=Hn.t={},FS=0,ae=(r,e,n)=>{let s=FS++;LS(s,e),G[r]=s,V[s]=e,MS[s]=new RegExp(e,n?"g":void 0)};ae("NUMERICIDENTIFIER","0|[1-9]\\d*");ae("NUMERICIDENTIFIERLOOSE","[0-9]+");ae("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");ae("MAINVERSION",`(${V[G.NUMERICIDENTIFIER]})\\.(${V[G.NUMERICIDENTIFIER]})\\.(${V[G.NUMERICIDENTIFIER]})`);ae("MAINVERSIONLOOSE",`(${V[G.NUMERICIDENTIFIERLOOSE]})\\.(${V[G.NUMERICIDENTIFIERLOOSE]})\\.(${V[G.NUMERICIDENTIFIERLOOSE]})`);ae("PRERELEASEIDENTIFIER",`(?:${V[G.NUMERICIDENTIFIER]}|${V[G.NONNUMERICIDENTIFIER]})`);ae("PRERELEASEIDENTIFIERLOOSE",`(?:${V[G.NUMERICIDENTIFIERLOOSE]}|${V[G.NONNUMERICIDENTIFIER]})`);ae("PRERELEASE",`(?:-(${V[G.PRERELEASEIDENTIFIER]}(?:\\.${V[G.PRERELEASEIDENTIFIER]})*))`);ae("PRERELEASELOOSE",`(?:-?(${V[G.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${V[G.PRERELEASEIDENTIFIERLOOSE]})*))`);ae("BUILDIDENTIFIER","[0-9A-Za-z-]+");ae("BUILD",`(?:\\+(${V[G.BUILDIDENTIFIER]}(?:\\.${V[G.BUILDIDENTIFIER]})*))`);ae("FULLPLAIN",`v?${V[G.MAINVERSION]}${V[G.PRERELEASE]}?${V[G.BUILD]}?`);ae("FULL",`^${V[G.FULLPLAIN]}$`);ae("LOOSEPLAIN",`[v=\\s]*${V[G.MAINVERSIONLOOSE]}${V[G.PRERELEASELOOSE]}?${V[G.BUILD]}?`);ae("LOOSE",`^${V[G.LOOSEPLAIN]}$`);ae("GTLT","((?:<|>)?=?)");ae("XRANGEIDENTIFIERLOOSE",`${V[G.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ae("XRANGEIDENTIFIER",`${V[G.NUMERICIDENTIFIER]}|x|X|\\*`);ae("XRANGEPLAIN",`[v=\\s]*(${V[G.XRANGEIDENTIFIER]})(?:\\.(${V[G.XRANGEIDENTIFIER]})(?:\\.(${V[G.XRANGEIDENTIFIER]})(?:${V[G.PRERELEASE]})?${V[G.BUILD]}?)?)?`);ae("XRANGEPLAINLOOSE",`[v=\\s]*(${V[G.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[G.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[G.XRANGEIDENTIFIERLOOSE]})(?:${V[G.PRERELEASELOOSE]})?${V[G.BUILD]}?)?)?`);ae("XRANGE",`^${V[G.GTLT]}\\s*${V[G.XRANGEPLAIN]}$`);ae("XRANGELOOSE",`^${V[G.GTLT]}\\s*${V[G.XRANGEPLAINLOOSE]}$`);ae("COERCE",`(^|[^\\d])(\\d{1,${rl}})(?:\\.(\\d{1,${rl}}))?(?:\\.(\\d{1,${rl}}))?(?:$|[^\\d])`);ae("COERCERTL",V[G.COERCE],!0);ae("LONETILDE","(?:~>?)");ae("TILDETRIM",`(\\s*)${V[G.LONETILDE]}\\s+`,!0);Hn.tildeTrimReplace="$1~";ae("TILDE",`^${V[G.LONETILDE]}${V[G.XRANGEPLAIN]}$`);ae("TILDELOOSE",`^${V[G.LONETILDE]}${V[G.XRANGEPLAINLOOSE]}$`);ae("LONECARET","(?:\\^)");ae("CARETTRIM",`(\\s*)${V[G.LONECARET]}\\s+`,!0);Hn.caretTrimReplace="$1^";ae("CARET",`^${V[G.LONECARET]}${V[G.XRANGEPLAIN]}$`);ae("CARETLOOSE",`^${V[G.LONECARET]}${V[G.XRANGEPLAINLOOSE]}$`);ae("COMPARATORLOOSE",`^${V[G.GTLT]}\\s*(${V[G.LOOSEPLAIN]})$|^$`);ae("COMPARATOR",`^${V[G.GTLT]}\\s*(${V[G.FULLPLAIN]})$|^$`);ae("COMPARATORTRIM",`(\\s*)${V[G.GTLT]}\\s*(${V[G.LOOSEPLAIN]}|${V[G.XRANGEPLAIN]})`,!0);Hn.comparatorTrimReplace="$1$2$3";ae("HYPHENRANGE",`^\\s*(${V[G.XRANGEPLAIN]})\\s+-\\s+(${V[G.XRANGEPLAIN]})\\s*$`);ae("HYPHENRANGELOOSE",`^\\s*(${V[G.XRANGEPLAINLOOSE]})\\s+-\\s+(${V[G.XRANGEPLAINLOOSE]})\\s*$`);ae("STAR","(<|>)?=?\\s*\\*");ae("GTE0","^\\s*>=\\s*0.0.0\\s*$");ae("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var eo=T((Lx,Ip)=>{var jS=["includePrerelease","loose","rtl"],kS=r=>r?typeof r!="object"?{loose:!0}:jS.filter(e=>r[e]).reduce((e,n)=>(e[n]=!0,e),{}):{};Ip.exports=kS});var Ua=T((Mx,xp)=>{var Tp=/^[0-9]+$/,Np=(r,e)=>{let n=Tp.test(r),s=Tp.test(e);return n&&s&&(r=+r,e=+e),r===e?0:n&&!s?-1:s&&!n?1:r<e?-1:1},US=(r,e)=>Np(e,r);xp.exports={compareIdentifiers:Np,rcompareIdentifiers:US}});var pt=T((Fx,Mp)=>{var Ha=Qs(),{MAX_LENGTH:Dp,MAX_SAFE_INTEGER:Va}=Zs(),{re:qp,t:Lp}=$i(),HS=eo(),{compareIdentifiers:to}=Ua(),pr=class{constructor(e,n){if(n=HS(n),e instanceof pr){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>Dp)throw new TypeError(`version is longer than ${Dp} characters`);Ha("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let s=e.trim().match(n.loose?qp[Lp.LOOSE]:qp[Lp.FULL]);if(!s)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>Va||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Va||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Va||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let u=+a;if(u>=0&&u<Va)return u}return a}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Ha("SemVer.compare",this.version,this.options,e),!(e instanceof pr)){if(typeof e=="string"&&e===this.version)return 0;e=new pr(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof pr||(e=new pr(e,this.options)),to(this.major,e.major)||to(this.minor,e.minor)||to(this.patch,e.patch)}comparePre(e){if(e instanceof pr||(e=new pr(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{let s=this.prerelease[n],a=e.prerelease[n];if(Ha("prerelease compare",n,s,a),s===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(s===void 0)return-1;if(s===a)continue;return to(s,a)}while(++n)}compareBuild(e){e instanceof pr||(e=new pr(e,this.options));let n=0;do{let s=this.build[n],a=e.build[n];if(Ha("prerelease compare",n,s,a),s===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(s===void 0)return-1;if(s===a)continue;return to(s,a)}while(++n)}inc(e,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n),this.inc("pre",n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n),this.inc("pre",n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);s===-1&&this.prerelease.push(0)}n&&(this.prerelease[0]===n?isNaN(this.prerelease[1])&&(this.prerelease=[n,0]):this.prerelease=[n,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};Mp.exports=pr});var wi=T((jx,Up)=>{var{MAX_LENGTH:VS}=Zs(),{re:Fp,t:jp}=$i(),kp=pt(),GS=eo(),WS=(r,e)=>{if(e=GS(e),r instanceof kp)return r;if(typeof r!="string"||r.length>VS||!(e.loose?Fp[jp.LOOSE]:Fp[jp.FULL]).test(r))return null;try{return new kp(r,e)}catch{return null}};Up.exports=WS});var Vp=T((kx,Hp)=>{var zS=wi(),BS=(r,e)=>{let n=zS(r,e);return n?n.version:null};Hp.exports=BS});var Wp=T((Ux,Gp)=>{var KS=wi(),XS=(r,e)=>{let n=KS(r.trim().replace(/^[=v]+/,""),e);return n?n.version:null};Gp.exports=XS});var Bp=T((Hx,zp)=>{var YS=pt(),JS=(r,e,n,s)=>{typeof n=="string"&&(s=n,n=void 0);try{return new YS(r,n).inc(e,s).version}catch{return null}};zp.exports=JS});var mr=T((Vx,Xp)=>{var Kp=pt(),ZS=(r,e,n)=>new Kp(r,n).compare(new Kp(e,n));Xp.exports=ZS});var Ga=T((Gx,Yp)=>{var QS=mr(),eO=(r,e,n)=>QS(r,e,n)===0;Yp.exports=eO});var Qp=T((Wx,Zp)=>{var Jp=wi(),tO=Ga(),rO=(r,e)=>{if(tO(r,e))return null;{let n=Jp(r),s=Jp(e),a=n.prerelease.length||s.prerelease.length,u=a?"pre":"",l=a?"prerelease":"";for(let d in n)if((d==="major"||d==="minor"||d==="patch")&&n[d]!==s[d])return u+d;return l}};Zp.exports=rO});var tm=T((zx,em)=>{var nO=pt(),iO=(r,e)=>new nO(r,e).major;em.exports=iO});var nm=T((Bx,rm)=>{var sO=pt(),oO=(r,e)=>new sO(r,e).minor;rm.exports=oO});var sm=T((Kx,im)=>{var aO=pt(),uO=(r,e)=>new aO(r,e).patch;im.exports=uO});var am=T((Xx,om)=>{var cO=wi(),lO=(r,e)=>{let n=cO(r,e);return n&&n.prerelease.length?n.prerelease:null};om.exports=lO});var cm=T((Yx,um)=>{var fO=mr(),hO=(r,e,n)=>fO(e,r,n);um.exports=hO});var fm=T((Jx,lm)=>{var dO=mr(),pO=(r,e)=>dO(r,e,!0);lm.exports=pO});var Wa=T((Zx,dm)=>{var hm=pt(),mO=(r,e,n)=>{let s=new hm(r,n),a=new hm(e,n);return s.compare(a)||s.compareBuild(a)};dm.exports=mO});var mm=T((Qx,pm)=>{var gO=Wa(),_O=(r,e)=>r.sort((n,s)=>gO(n,s,e));pm.exports=_O});var _m=T((eD,gm)=>{var vO=Wa(),yO=(r,e)=>r.sort((n,s)=>vO(s,n,e));gm.exports=yO});var ro=T((tD,vm)=>{var EO=mr(),$O=(r,e,n)=>EO(r,e,n)>0;vm.exports=$O});var za=T((rD,ym)=>{var wO=mr(),bO=(r,e,n)=>wO(r,e,n)<0;ym.exports=bO});var nl=T((nD,Em)=>{var SO=mr(),OO=(r,e,n)=>SO(r,e,n)!==0;Em.exports=OO});var Ba=T((iD,$m)=>{var RO=mr(),AO=(r,e,n)=>RO(r,e,n)>=0;$m.exports=AO});var Ka=T((sD,wm)=>{var PO=mr(),CO=(r,e,n)=>PO(r,e,n)<=0;wm.exports=CO});var il=T((oD,bm)=>{var IO=Ga(),TO=nl(),NO=ro(),xO=Ba(),DO=za(),qO=Ka(),LO=(r,e,n,s)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof n=="object"&&(n=n.version),r===n;case"!==":return typeof r=="object"&&(r=r.version),typeof n=="object"&&(n=n.version),r!==n;case"":case"=":case"==":return IO(r,n,s);case"!=":return TO(r,n,s);case">":return NO(r,n,s);case">=":return xO(r,n,s);case"<":return DO(r,n,s);case"<=":return qO(r,n,s);default:throw new TypeError(`Invalid operator: ${e}`)}};bm.exports=LO});var Om=T((aD,Sm)=>{var MO=pt(),FO=wi(),{re:Xa,t:Ya}=$i(),jO=(r,e)=>{if(r instanceof MO)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let n=null;if(!e.rtl)n=r.match(Xa[Ya.COERCE]);else{let s;for(;(s=Xa[Ya.COERCERTL].exec(r))&&(!n||n.index+n[0].length!==r.length);)(!n||s.index+s[0].length!==n.index+n[0].length)&&(n=s),Xa[Ya.COERCERTL].lastIndex=s.index+s[1].length+s[2].length;Xa[Ya.COERCERTL].lastIndex=-1}return n===null?null:FO(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,e)};Sm.exports=jO});var Am=T((uD,Rm)=>{"use strict";Rm.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Cm=T((cD,Pm)=>{"use strict";Pm.exports=Oe;Oe.Node=bi;Oe.create=Oe;function Oe(r){var e=this;if(e instanceof Oe||(e=new Oe),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(a){e.push(a)});else if(arguments.length>0)for(var n=0,s=arguments.length;n<s;n++)e.push(arguments[n]);return e}Oe.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var e=r.next,n=r.prev;return e&&(e.prev=n),n&&(n.next=e),r===this.head&&(this.head=e),r===this.tail&&(this.tail=n),r.list.length--,r.next=null,r.prev=null,r.list=null,e};Oe.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var e=this.head;r.list=this,r.next=e,e&&(e.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}};Oe.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var e=this.tail;r.list=this,r.prev=e,e&&(e.next=r),this.tail=r,this.head||(this.head=r),this.length++}};Oe.prototype.push=function(){for(var r=0,e=arguments.length;r<e;r++)UO(this,arguments[r]);return this.length};Oe.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)HO(this,arguments[r]);return this.length};Oe.prototype.pop=function(){if(!!this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}};Oe.prototype.shift=function(){if(!!this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}};Oe.prototype.forEach=function(r,e){e=e||this;for(var n=this.head,s=0;n!==null;s++)r.call(e,n.value,s,this),n=n.next};Oe.prototype.forEachReverse=function(r,e){e=e||this;for(var n=this.tail,s=this.length-1;n!==null;s--)r.call(e,n.value,s,this),n=n.prev};Oe.prototype.get=function(r){for(var e=0,n=this.head;n!==null&&e<r;e++)n=n.next;if(e===r&&n!==null)return n.value};Oe.prototype.getReverse=function(r){for(var e=0,n=this.tail;n!==null&&e<r;e++)n=n.prev;if(e===r&&n!==null)return n.value};Oe.prototype.map=function(r,e){e=e||this;for(var n=new Oe,s=this.head;s!==null;)n.push(r.call(e,s.value,this)),s=s.next;return n};Oe.prototype.mapReverse=function(r,e){e=e||this;for(var n=new Oe,s=this.tail;s!==null;)n.push(r.call(e,s.value,this)),s=s.prev;return n};Oe.prototype.reduce=function(r,e){var n,s=this.head;if(arguments.length>1)n=e;else if(this.head)s=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;s!==null;a++)n=r(n,s.value,a),s=s.next;return n};Oe.prototype.reduceReverse=function(r,e){var n,s=this.tail;if(arguments.length>1)n=e;else if(this.tail)s=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;s!==null;a--)n=r(n,s.value,a),s=s.prev;return n};Oe.prototype.toArray=function(){for(var r=new Array(this.length),e=0,n=this.head;n!==null;e++)r[e]=n.value,n=n.next;return r};Oe.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,n=this.tail;n!==null;e++)r[e]=n.value,n=n.prev;return r};Oe.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var n=new Oe;if(e<r||e<0)return n;r<0&&(r=0),e>this.length&&(e=this.length);for(var s=0,a=this.head;a!==null&&s<r;s++)a=a.next;for(;a!==null&&s<e;s++,a=a.next)n.push(a.value);return n};Oe.prototype.sliceReverse=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var n=new Oe;if(e<r||e<0)return n;r<0&&(r=0),e>this.length&&(e=this.length);for(var s=this.length,a=this.tail;a!==null&&s>e;s--)a=a.prev;for(;a!==null&&s>r;s--,a=a.prev)n.push(a.value);return n};Oe.prototype.splice=function(r,e,...n){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var s=0,a=this.head;a!==null&&s<r;s++)a=a.next;for(var u=[],s=0;a&&s<e;s++)u.push(a.value),a=this.removeNode(a);a===null&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev);for(var s=0;s<n.length;s++)a=kO(this,a,n[s]);return u};Oe.prototype.reverse=function(){for(var r=this.head,e=this.tail,n=r;n!==null;n=n.prev){var s=n.prev;n.prev=n.next,n.next=s}return this.head=e,this.tail=r,this};function kO(r,e,n){var s=e===r.head?new bi(n,null,e,r):new bi(n,e,e.next,r);return s.next===null&&(r.tail=s),s.prev===null&&(r.head=s),r.length++,s}function UO(r,e){r.tail=new bi(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function HO(r,e){r.head=new bi(e,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function bi(r,e,n,s){if(!(this instanceof bi))return new bi(r,e,n,s);this.list=s,this.value=r,e?(e.next=this,this.prev=e):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{Am()(Oe)}catch{}});var Lm=T((lD,qm)=>{"use strict";var VO=Cm(),Si=Symbol("max"),vn=Symbol("length"),Qi=Symbol("lengthCalculator"),io=Symbol("allowStale"),Oi=Symbol("maxAge"),_n=Symbol("dispose"),Im=Symbol("noDisposeOnSet"),nt=Symbol("lruList"),Cr=Symbol("cache"),Nm=Symbol("updateAgeOnGet"),sl=()=>1,xm=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let n=this[Si]=e.max||1/0,s=e.length||sl;if(this[Qi]=typeof s!="function"?sl:s,this[io]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Oi]=e.maxAge||0,this[_n]=e.dispose,this[Im]=e.noDisposeOnSet||!1,this[Nm]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Si]=e||1/0,no(this)}get max(){return this[Si]}set allowStale(e){this[io]=!!e}get allowStale(){return this[io]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Oi]=e,no(this)}get maxAge(){return this[Oi]}set lengthCalculator(e){typeof e!="function"&&(e=sl),e!==this[Qi]&&(this[Qi]=e,this[vn]=0,this[nt].forEach(n=>{n.length=this[Qi](n.value,n.key),this[vn]+=n.length})),no(this)}get lengthCalculator(){return this[Qi]}get length(){return this[vn]}get itemCount(){return this[nt].length}rforEach(e,n){n=n||this;for(let s=this[nt].tail;s!==null;){let a=s.prev;Tm(this,e,s,n),s=a}}forEach(e,n){n=n||this;for(let s=this[nt].head;s!==null;){let a=s.next;Tm(this,e,s,n),s=a}}keys(){return this[nt].toArray().map(e=>e.key)}values(){return this[nt].toArray().map(e=>e.value)}reset(){this[_n]&&this[nt]&&this[nt].length&&this[nt].forEach(e=>this[_n](e.key,e.value)),this[Cr]=new Map,this[nt]=new VO,this[vn]=0}dump(){return this[nt].map(e=>Ja(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[nt]}set(e,n,s){if(s=s||this[Oi],s&&typeof s!="number")throw new TypeError("maxAge must be a number");let a=s?Date.now():0,u=this[Qi](n,e);if(this[Cr].has(e)){if(u>this[Si])return es(this,this[Cr].get(e)),!1;let g=this[Cr].get(e).value;return this[_n]&&(this[Im]||this[_n](e,g.value)),g.now=a,g.maxAge=s,g.value=n,this[vn]+=u-g.length,g.length=u,this.get(e),no(this),!0}let l=new Dm(e,n,u,a,s);return l.length>this[Si]?(this[_n]&&this[_n](e,n),!1):(this[vn]+=l.length,this[nt].unshift(l),this[Cr].set(e,this[nt].head),no(this),!0)}has(e){if(!this[Cr].has(e))return!1;let n=this[Cr].get(e).value;return!Ja(this,n)}get(e){return ol(this,e,!0)}peek(e){return ol(this,e,!1)}pop(){let e=this[nt].tail;return e?(es(this,e),e.value):null}del(e){es(this,this[Cr].get(e))}load(e){this.reset();let n=Date.now();for(let s=e.length-1;s>=0;s--){let a=e[s],u=a.e||0;if(u===0)this.set(a.k,a.v);else{let l=u-n;l>0&&this.set(a.k,a.v,l)}}}prune(){this[Cr].forEach((e,n)=>ol(this,n,!1))}},ol=(r,e,n)=>{let s=r[Cr].get(e);if(s){let a=s.value;if(Ja(r,a)){if(es(r,s),!r[io])return}else n&&(r[Nm]&&(s.value.now=Date.now()),r[nt].unshiftNode(s));return a.value}},Ja=(r,e)=>{if(!e||!e.maxAge&&!r[Oi])return!1;let n=Date.now()-e.now;return e.maxAge?n>e.maxAge:r[Oi]&&n>r[Oi]},no=r=>{if(r[vn]>r[Si])for(let e=r[nt].tail;r[vn]>r[Si]&&e!==null;){let n=e.prev;es(r,e),e=n}},es=(r,e)=>{if(e){let n=e.value;r[_n]&&r[_n](n.key,n.value),r[vn]-=n.length,r[Cr].delete(n.key),r[nt].removeNode(e)}},Dm=class{constructor(e,n,s,a,u){this.key=e,this.value=n,this.length=s,this.now=a,this.maxAge=u||0}},Tm=(r,e,n,s)=>{let a=n.value;Ja(r,a)&&(es(r,n),r[io]||(a=void 0)),a&&e.call(s,a.value,a.key,r)};qm.exports=xm});var gr=T((fD,km)=>{var ts=class{constructor(e,n){if(n=WO(n),e instanceof ts)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new ts(e.raw,n);if(e instanceof al)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(s=>this.parseRange(s.trim())).filter(s=>s.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let s=this.set[0];if(this.set=this.set.filter(a=>!Fm(a[0])),this.set.length===0)this.set=[s];else if(this.set.length>1){for(let a of this.set)if(a.length===1&&YO(a[0])){this.set=[a];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let s=`parseRange:${Object.keys(this.options).join(",")}:${e}`,a=Mm.get(s);if(a)return a;let u=this.options.loose,l=u?mt[st.HYPHENRANGELOOSE]:mt[st.HYPHENRANGE];e=e.replace(l,oR(this.options.includePrerelease)),Ye("hyphen replace",e),e=e.replace(mt[st.COMPARATORTRIM],BO),Ye("comparator trim",e,mt[st.COMPARATORTRIM]),e=e.replace(mt[st.TILDETRIM],KO),e=e.replace(mt[st.CARETTRIM],XO),e=e.split(/\s+/).join(" ");let d=u?mt[st.COMPARATORLOOSE]:mt[st.COMPARATOR],g=e.split(" ").map(R=>JO(R,this.options)).join(" ").split(/\s+/).map(R=>sR(R,this.options)).filter(this.options.loose?R=>!!R.match(d):()=>!0).map(R=>new al(R,this.options)),f=g.length,_=new Map;for(let R of g){if(Fm(R))return[R];_.set(R.value,R)}_.size>1&&_.has("")&&_.delete("");let w=[..._.values()];return Mm.set(s,w),w}intersects(e,n){if(!(e instanceof ts))throw new TypeError("a Range is required");return this.set.some(s=>jm(s,n)&&e.set.some(a=>jm(a,n)&&s.every(u=>a.every(l=>u.intersects(l,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new zO(e,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(aR(this.set[n],e,this.options))return!0;return!1}};km.exports=ts;var GO=Lm(),Mm=new GO({max:1e3}),WO=eo(),al=so(),Ye=Qs(),zO=pt(),{re:mt,t:st,comparatorTrimReplace:BO,tildeTrimReplace:KO,caretTrimReplace:XO}=$i(),Fm=r=>r.value==="<0.0.0-0",YO=r=>r.value==="",jm=(r,e)=>{let n=!0,s=r.slice(),a=s.pop();for(;n&&s.length;)n=s.every(u=>a.intersects(u,e)),a=s.pop();return n},JO=(r,e)=>(Ye("comp",r,e),r=eR(r,e),Ye("caret",r),r=ZO(r,e),Ye("tildes",r),r=rR(r,e),Ye("xrange",r),r=iR(r,e),Ye("stars",r),r),Ot=r=>!r||r.toLowerCase()==="x"||r==="*",ZO=(r,e)=>r.trim().split(/\s+/).map(n=>QO(n,e)).join(" "),QO=(r,e)=>{let n=e.loose?mt[st.TILDELOOSE]:mt[st.TILDE];return r.replace(n,(s,a,u,l,d)=>{Ye("tilde",r,s,a,u,l,d);let g;return Ot(a)?g="":Ot(u)?g=`>=${a}.0.0 <${+a+1}.0.0-0`:Ot(l)?g=`>=${a}.${u}.0 <${a}.${+u+1}.0-0`:d?(Ye("replaceTilde pr",d),g=`>=${a}.${u}.${l}-${d} <${a}.${+u+1}.0-0`):g=`>=${a}.${u}.${l} <${a}.${+u+1}.0-0`,Ye("tilde return",g),g})},eR=(r,e)=>r.trim().split(/\s+/).map(n=>tR(n,e)).join(" "),tR=(r,e)=>{Ye("caret",r,e);let n=e.loose?mt[st.CARETLOOSE]:mt[st.CARET],s=e.includePrerelease?"-0":"";return r.replace(n,(a,u,l,d,g)=>{Ye("caret",r,a,u,l,d,g);let f;return Ot(u)?f="":Ot(l)?f=`>=${u}.0.0${s} <${+u+1}.0.0-0`:Ot(d)?u==="0"?f=`>=${u}.${l}.0${s} <${u}.${+l+1}.0-0`:f=`>=${u}.${l}.0${s} <${+u+1}.0.0-0`:g?(Ye("replaceCaret pr",g),u==="0"?l==="0"?f=`>=${u}.${l}.${d}-${g} <${u}.${l}.${+d+1}-0`:f=`>=${u}.${l}.${d}-${g} <${u}.${+l+1}.0-0`:f=`>=${u}.${l}.${d}-${g} <${+u+1}.0.0-0`):(Ye("no pr"),u==="0"?l==="0"?f=`>=${u}.${l}.${d}${s} <${u}.${l}.${+d+1}-0`:f=`>=${u}.${l}.${d}${s} <${u}.${+l+1}.0-0`:f=`>=${u}.${l}.${d} <${+u+1}.0.0-0`),Ye("caret return",f),f})},rR=(r,e)=>(Ye("replaceXRanges",r,e),r.split(/\s+/).map(n=>nR(n,e)).join(" ")),nR=(r,e)=>{r=r.trim();let n=e.loose?mt[st.XRANGELOOSE]:mt[st.XRANGE];return r.replace(n,(s,a,u,l,d,g)=>{Ye("xRange",r,s,a,u,l,d,g);let f=Ot(u),_=f||Ot(l),w=_||Ot(d),R=w;return a==="="&&R&&(a=""),g=e.includePrerelease?"-0":"",f?a===">"||a==="<"?s="<0.0.0-0":s="*":a&&R?(_&&(l=0),d=0,a===">"?(a=">=",_?(u=+u+1,l=0,d=0):(l=+l+1,d=0)):a==="<="&&(a="<",_?u=+u+1:l=+l+1),a==="<"&&(g="-0"),s=`${a+u}.${l}.${d}${g}`):_?s=`>=${u}.0.0${g} <${+u+1}.0.0-0`:w&&(s=`>=${u}.${l}.0${g} <${u}.${+l+1}.0-0`),Ye("xRange return",s),s})},iR=(r,e)=>(Ye("replaceStars",r,e),r.trim().replace(mt[st.STAR],"")),sR=(r,e)=>(Ye("replaceGTE0",r,e),r.trim().replace(mt[e.includePrerelease?st.GTE0PRE:st.GTE0],"")),oR=r=>(e,n,s,a,u,l,d,g,f,_,w,R,A)=>(Ot(s)?n="":Ot(a)?n=`>=${s}.0.0${r?"-0":""}`:Ot(u)?n=`>=${s}.${a}.0${r?"-0":""}`:l?n=`>=${n}`:n=`>=${n}${r?"-0":""}`,Ot(f)?g="":Ot(_)?g=`<${+f+1}.0.0-0`:Ot(w)?g=`<${f}.${+_+1}.0-0`:R?g=`<=${f}.${_}.${w}-${R}`:r?g=`<${f}.${_}.${+w+1}-0`:g=`<=${g}`,`${n} ${g}`.trim()),aR=(r,e,n)=>{for(let s=0;s<r.length;s++)if(!r[s].test(e))return!1;if(e.prerelease.length&&!n.includePrerelease){for(let s=0;s<r.length;s++)if(Ye(r[s].semver),r[s].semver!==al.ANY&&r[s].semver.prerelease.length>0){let a=r[s].semver;if(a.major===e.major&&a.minor===e.minor&&a.patch===e.patch)return!0}return!1}return!0}});var so=T((hD,Wm)=>{var oo=Symbol("SemVer ANY"),ao=class{static get ANY(){return oo}constructor(e,n){if(n=uR(n),e instanceof ao){if(e.loose===!!n.loose)return e;e=e.value}cl("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===oo?this.value="":this.value=this.operator+this.semver.version,cl("comp",this)}parse(e){let n=this.options.loose?Um[Hm.COMPARATORLOOSE]:Um[Hm.COMPARATOR],s=e.match(n);if(!s)throw new TypeError(`Invalid comparator: ${e}`);this.operator=s[1]!==void 0?s[1]:"",this.operator==="="&&(this.operator=""),s[2]?this.semver=new Vm(s[2],this.options.loose):this.semver=oo}toString(){return this.value}test(e){if(cl("Comparator.test",e,this.options.loose),this.semver===oo||e===oo)return!0;if(typeof e=="string")try{e=new Vm(e,this.options)}catch{return!1}return ul(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof ao))throw new TypeError("a Comparator is required");if((!n||typeof n!="object")&&(n={loose:!!n,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Gm(e.value,n).test(this.value);if(e.operator==="")return e.value===""?!0:new Gm(this.value,n).test(e.semver);let s=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),a=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),u=this.semver.version===e.semver.version,l=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),d=ul(this.semver,"<",e.semver,n)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),g=ul(this.semver,">",e.semver,n)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return s||a||u&&l||d||g}};Wm.exports=ao;var uR=eo(),{re:Um,t:Hm}=$i(),ul=il(),cl=Qs(),Vm=pt(),Gm=gr()});var uo=T((dD,zm)=>{var cR=gr(),lR=(r,e,n)=>{try{e=new cR(e,n)}catch{return!1}return e.test(r)};zm.exports=lR});var Km=T((pD,Bm)=>{var fR=gr(),hR=(r,e)=>new fR(r,e).set.map(n=>n.map(s=>s.value).join(" ").trim().split(" "));Bm.exports=hR});var Ym=T((mD,Xm)=>{var dR=pt(),pR=gr(),mR=(r,e,n)=>{let s=null,a=null,u=null;try{u=new pR(e,n)}catch{return null}return r.forEach(l=>{u.test(l)&&(!s||a.compare(l)===-1)&&(s=l,a=new dR(s,n))}),s};Xm.exports=mR});var Zm=T((gD,Jm)=>{var gR=pt(),_R=gr(),vR=(r,e,n)=>{let s=null,a=null,u=null;try{u=new _R(e,n)}catch{return null}return r.forEach(l=>{u.test(l)&&(!s||a.compare(l)===1)&&(s=l,a=new gR(s,n))}),s};Jm.exports=vR});var tg=T((_D,eg)=>{var ll=pt(),yR=gr(),Qm=ro(),ER=(r,e)=>{r=new yR(r,e);let n=new ll("0.0.0");if(r.test(n)||(n=new ll("0.0.0-0"),r.test(n)))return n;n=null;for(let s=0;s<r.set.length;++s){let a=r.set[s],u=null;a.forEach(l=>{let d=new ll(l.semver.version);switch(l.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!u||Qm(d,u))&&(u=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${l.operator}`)}}),u&&(!n||Qm(n,u))&&(n=u)}return n&&r.test(n)?n:null};eg.exports=ER});var ng=T((vD,rg)=>{var $R=gr(),wR=(r,e)=>{try{return new $R(r,e).range||"*"}catch{return null}};rg.exports=wR});var Za=T((yD,ag)=>{var bR=pt(),og=so(),{ANY:SR}=og,OR=gr(),RR=uo(),ig=ro(),sg=za(),AR=Ka(),PR=Ba(),CR=(r,e,n,s)=>{r=new bR(r,s),e=new OR(e,s);let a,u,l,d,g;switch(n){case">":a=ig,u=AR,l=sg,d=">",g=">=";break;case"<":a=sg,u=PR,l=ig,d="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(RR(r,e,s))return!1;for(let f=0;f<e.set.length;++f){let _=e.set[f],w=null,R=null;if(_.forEach(A=>{A.semver===SR&&(A=new og(">=0.0.0")),w=w||A,R=R||A,a(A.semver,w.semver,s)?w=A:l(A.semver,R.semver,s)&&(R=A)}),w.operator===d||w.operator===g||(!R.operator||R.operator===d)&&u(r,R.semver))return!1;if(R.operator===g&&l(r,R.semver))return!1}return!0};ag.exports=CR});var cg=T((ED,ug)=>{var IR=Za(),TR=(r,e,n)=>IR(r,e,">",n);ug.exports=TR});var fg=T(($D,lg)=>{var NR=Za(),xR=(r,e,n)=>NR(r,e,"<",n);lg.exports=xR});var pg=T((wD,dg)=>{var hg=gr(),DR=(r,e,n)=>(r=new hg(r,n),e=new hg(e,n),r.intersects(e));dg.exports=DR});var gg=T((bD,mg)=>{var qR=uo(),LR=mr();mg.exports=(r,e,n)=>{let s=[],a=null,u=null,l=r.sort((_,w)=>LR(_,w,n));for(let _ of l)qR(_,e,n)?(u=_,a||(a=_)):(u&&s.push([a,u]),u=null,a=null);a&&s.push([a,null]);let d=[];for(let[_,w]of s)_===w?d.push(_):!w&&_===l[0]?d.push("*"):w?_===l[0]?d.push(`<=${w}`):d.push(`${_} - ${w}`):d.push(`>=${_}`);let g=d.join(" || "),f=typeof e.raw=="string"?e.raw:String(e);return g.length<f.length?g:e}});var $g=T((SD,Eg)=>{var _g=gr(),Qa=so(),{ANY:fl}=Qa,co=uo(),hl=mr(),MR=(r,e,n={})=>{if(r===e)return!0;r=new _g(r,n),e=new _g(e,n);let s=!1;e:for(let a of r.set){for(let u of e.set){let l=FR(a,u,n);if(s=s||l!==null,l)continue e}if(s)return!1}return!0},FR=(r,e,n)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===fl){if(e.length===1&&e[0].semver===fl)return!0;n.includePrerelease?r=[new Qa(">=0.0.0-0")]:r=[new Qa(">=0.0.0")]}if(e.length===1&&e[0].semver===fl){if(n.includePrerelease)return!0;e=[new Qa(">=0.0.0")]}let s=new Set,a,u;for(let A of r)A.operator===">"||A.operator===">="?a=vg(a,A,n):A.operator==="<"||A.operator==="<="?u=yg(u,A,n):s.add(A.semver);if(s.size>1)return null;let l;if(a&&u){if(l=hl(a.semver,u.semver,n),l>0)return null;if(l===0&&(a.operator!==">="||u.operator!=="<="))return null}for(let A of s){if(a&&!co(A,String(a),n)||u&&!co(A,String(u),n))return null;for(let x of e)if(!co(A,String(x),n))return!1;return!0}let d,g,f,_,w=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,R=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1;w&&w.prerelease.length===1&&u.operator==="<"&&w.prerelease[0]===0&&(w=!1);for(let A of e){if(_=_||A.operator===">"||A.operator===">=",f=f||A.operator==="<"||A.operator==="<=",a){if(R&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===R.major&&A.semver.minor===R.minor&&A.semver.patch===R.patch&&(R=!1),A.operator===">"||A.operator===">="){if(d=vg(a,A,n),d===A&&d!==a)return!1}else if(a.operator===">="&&!co(a.semver,String(A),n))return!1}if(u){if(w&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===w.major&&A.semver.minor===w.minor&&A.semver.patch===w.patch&&(w=!1),A.operator==="<"||A.operator==="<="){if(g=yg(u,A,n),g===A&&g!==u)return!1}else if(u.operator==="<="&&!co(u.semver,String(A),n))return!1}if(!A.operator&&(u||a)&&l!==0)return!1}return!(a&&f&&!u&&l!==0||u&&_&&!a&&l!==0||R||w)},vg=(r,e,n)=>{if(!r)return e;let s=hl(r.semver,e.semver,n);return s>0?r:s<0||e.operator===">"&&r.operator===">="?e:r},yg=(r,e,n)=>{if(!r)return e;let s=hl(r.semver,e.semver,n);return s<0?r:s>0||e.operator==="<"&&r.operator==="<="?e:r};Eg.exports=MR});var bg=T((OD,wg)=>{var dl=$i();wg.exports={re:dl.re,src:dl.src,tokens:dl.t,SEMVER_SPEC_VERSION:Zs().SEMVER_SPEC_VERSION,SemVer:pt(),compareIdentifiers:Ua().compareIdentifiers,rcompareIdentifiers:Ua().rcompareIdentifiers,parse:wi(),valid:Vp(),clean:Wp(),inc:Bp(),diff:Qp(),major:tm(),minor:nm(),patch:sm(),prerelease:am(),compare:mr(),rcompare:cm(),compareLoose:fm(),compareBuild:Wa(),sort:mm(),rsort:_m(),gt:ro(),lt:za(),eq:Ga(),neq:nl(),gte:Ba(),lte:Ka(),cmp:il(),coerce:Om(),Comparator:so(),Range:gr(),satisfies:uo(),toComparators:Km(),maxSatisfying:Ym(),minSatisfying:Zm(),minVersion:tg(),validRange:ng(),outside:Za(),gtr:cg(),ltr:fg(),intersects:pg(),simplifyRange:gg(),subset:$g()}});var yn=T(Qt=>{"use strict";var jR=Qt&&Qt.__createBinding||(Object.create?function(r,e,n,s){s===void 0&&(s=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(r,s,a)}:function(r,e,n,s){s===void 0&&(s=n),r[s]=e[n]}),kR=Qt&&Qt.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),UR=Qt&&Qt.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var n in r)n!=="default"&&Object.prototype.hasOwnProperty.call(r,n)&&jR(e,r,n);return kR(e,r),e},Sg=Qt&&Qt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.getCoreVersion=void 0;var Og=Sg(require("path")),Rg=Sg(require("fs")),pl=UR(require("@serverless-devs/core")),HR=bg(),Ag=Og.default.join(pl.getRootHome(),"cache","core"),ml=Og.default.join(Ag,"package.json");function VR(){if(Rg.default.existsSync(ml)){var r=require("@serverless-devs/core/package.json").version,e=Pg();return HR.gt(e,r)?require(Ag):pl}return pl}function Pg(){return Rg.default.existsSync(ml)?require(ml).version:void 0}Qt.getCoreVersion=Pg;Qt.default=VR()});var Cg=T((rs,lo)=>{(function(){var r,e="4.17.21",n=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",u="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,g="__lodash_placeholder__",f=1,_=2,w=4,R=1,A=2,x=1,L=2,j=4,F=8,Z=16,K=32,ue=64,z=128,Ve=256,ct=512,qr=30,Ct="...",xe=800,It=16,Ht=1,Di=2,qi=3,Lr=1/0,Mr=9007199254740991,qu=17976931348623157e292,ei=0/0,Vt=4294967295,Uo=Vt-1,Ho=Vt>>>1,Lu=[["ary",z],["bind",x],["bindKey",L],["curry",F],["curryRight",Z],["flip",ct],["partial",K],["partialRight",ue],["rearg",Ve]],bn="[object Arguments]",Er="[object Array]",Tt="[object AsyncFunction]",lt="[object Boolean]",er="[object Date]",bs="[object DOMException]",Sn="[object Error]",On="[object Function]",Ss="[object GeneratorFunction]",Gt="[object Map]",ti="[object Number]",$r="[object Null]",wr="[object Object]",Os="[object Promise]",Vo="[object Proxy]",Rn="[object RegExp]",Wt="[object Set]",tr="[object String]",yt="[object Symbol]",Go="[object Undefined]",ri="[object WeakMap]",Mu="[object WeakSet]",ni="[object ArrayBuffer]",An="[object DataView]",zt="[object Float32Array]",Jr="[object Float64Array]",Li="[object Int8Array]",Mi="[object Int16Array]",Zr="[object Int32Array]",Fi="[object Uint8Array]",Rs="[object Uint8ClampedArray]",As="[object Uint16Array]",ji="[object Uint32Array]",rr=/\b__p \+= '';/g,Fu=/\b(__p \+=) '' \+/g,ju=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wo=/&(?:amp|lt|gt|quot|#39);/g,zo=/[&<>"']/g,ku=RegExp(Wo.source),Uu=RegExp(zo.source),Pn=/<%-([\s\S]+?)%>/g,Hu=/<%([\s\S]+?)%>/g,Ps=/<%=([\s\S]+?)%>/g,Vu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cs=/^\w*$/,Bo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Is=/[\\^$.*+?()[\]{}|]/g,Ko=RegExp(Is.source),Ts=/^\s+/,Xo=/\s/,E=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,v=/\{\n\/\* \[wrapped with (.+)\] \*/,b=/,? & /,P=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,I=/[()=,{}\[\]\/\s]/,U=/\\(\\)?/g,re=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,Se=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,Me=/^0o[0-7]+$/i,We=/^(?:0|[1-9]\d*)$/,De=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,de=/($^)/,Fe=/['\n\r\u2028\u2029\\]/g,$e="\\ud800-\\udfff",Qr="\\u0300-\\u036f",Et="\\ufe20-\\ufe2f",Nt="\\u20d0-\\u20ff",Ae=Qr+Et+Nt,ft="\\u2700-\\u27bf",$t="a-z\\xdf-\\xf6\\xf8-\\xff",nr="\\xac\\xb1\\xd7\\xf7",en="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",br="\\u2000-\\u206f",ii=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",si="A-Z\\xc0-\\xd6\\xd8-\\xde",oi="\\ufe0e\\ufe0f",tn=nr+en+br+ii,Fr="['\u2019]",Sr="["+$e+"]",rn="["+tn+"]",Cn="["+Ae+"]",jr="\\d+",Gu="["+ft+"]",Yo="["+$t+"]",Ns="[^"+$e+tn+jr+ft+$t+si+"]",nn="\\ud83c[\\udffb-\\udfff]",ai="(?:"+Cn+"|"+nn+")",xs="[^"+$e+"]",sn="(?:\\ud83c[\\udde6-\\uddff]){2}",Ds="[\\ud800-\\udbff][\\udc00-\\udfff]",on="["+si+"]",Jo="\\u200d",ir="(?:"+Yo+"|"+Ns+")",In="(?:"+on+"|"+Ns+")",ki="(?:"+Fr+"(?:d|ll|m|re|s|t|ve))?",ui="(?:"+Fr+"(?:D|LL|M|RE|S|T|VE))?",an=ai+"?",Wu="["+oi+"]?",Tn="(?:"+Jo+"(?:"+[xs,sn,Ds].join("|")+")"+Wu+an+")*",ci="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qo=Wu+an+Tn,zu="(?:"+[Gu,sn,Ds].join("|")+")"+Qo,Bu="(?:"+[xs+Cn+"?",Cn,sn,Ds,Sr].join("|")+")",ih=RegExp(Fr,"g"),sh=RegExp(Cn,"g"),ea=RegExp(nn+"(?="+nn+")|"+Bu+Qo,"g"),oh=RegExp([on+"?"+Yo+"+"+ki+"(?="+[rn,on,"$"].join("|")+")",In+"+"+ui+"(?="+[rn,on+ir,"$"].join("|")+")",on+"?"+ir+"+"+ki,on+"+"+ui,Zo,ci,jr,zu].join("|"),"g"),ah=RegExp("["+Jo+$e+Ae+oi+"]"),uh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ch=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],k0=-1,je={};je[zt]=je[Jr]=je[Li]=je[Mi]=je[Zr]=je[Fi]=je[Rs]=je[As]=je[ji]=!0,je[bn]=je[Er]=je[ni]=je[lt]=je[An]=je[er]=je[Sn]=je[On]=je[Gt]=je[ti]=je[wr]=je[Rn]=je[Wt]=je[tr]=je[ri]=!1;var qe={};qe[bn]=qe[Er]=qe[ni]=qe[An]=qe[lt]=qe[er]=qe[zt]=qe[Jr]=qe[Li]=qe[Mi]=qe[Zr]=qe[Gt]=qe[ti]=qe[wr]=qe[Rn]=qe[Wt]=qe[tr]=qe[yt]=qe[Fi]=qe[Rs]=qe[As]=qe[ji]=!0,qe[Sn]=qe[On]=qe[ri]=!1;var U0={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},H0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},V0={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},G0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},W0=parseFloat,z0=parseInt,lh=typeof global=="object"&&global&&global.Object===Object&&global,B0=typeof self=="object"&&self&&self.Object===Object&&self,tt=lh||B0||Function("return this")(),Ku=typeof rs=="object"&&rs&&!rs.nodeType&&rs,li=Ku&&typeof lo=="object"&&lo&&!lo.nodeType&&lo,fh=li&&li.exports===Ku,Xu=fh&&lh.process,sr=function(){try{var S=li&&li.require&&li.require("util").types;return S||Xu&&Xu.binding&&Xu.binding("util")}catch{}}(),hh=sr&&sr.isArrayBuffer,dh=sr&&sr.isDate,ph=sr&&sr.isMap,mh=sr&&sr.isRegExp,gh=sr&&sr.isSet,_h=sr&&sr.isTypedArray;function Bt(S,N,C){switch(C.length){case 0:return S.call(N);case 1:return S.call(N,C[0]);case 2:return S.call(N,C[0],C[1]);case 3:return S.call(N,C[0],C[1],C[2])}return S.apply(N,C)}function K0(S,N,C,H){for(var te=-1,Re=S==null?0:S.length;++te<Re;){var Ze=S[te];N(H,Ze,C(Ze),S)}return H}function or(S,N){for(var C=-1,H=S==null?0:S.length;++C<H&&N(S[C],C,S)!==!1;);return S}function X0(S,N){for(var C=S==null?0:S.length;C--&&N(S[C],C,S)!==!1;);return S}function vh(S,N){for(var C=-1,H=S==null?0:S.length;++C<H;)if(!N(S[C],C,S))return!1;return!0}function Nn(S,N){for(var C=-1,H=S==null?0:S.length,te=0,Re=[];++C<H;){var Ze=S[C];N(Ze,C,S)&&(Re[te++]=Ze)}return Re}function ta(S,N){var C=S==null?0:S.length;return!!C&&Ui(S,N,0)>-1}function Yu(S,N,C){for(var H=-1,te=S==null?0:S.length;++H<te;)if(C(N,S[H]))return!0;return!1}function Ue(S,N){for(var C=-1,H=S==null?0:S.length,te=Array(H);++C<H;)te[C]=N(S[C],C,S);return te}function xn(S,N){for(var C=-1,H=N.length,te=S.length;++C<H;)S[te+C]=N[C];return S}function Ju(S,N,C,H){var te=-1,Re=S==null?0:S.length;for(H&&Re&&(C=S[++te]);++te<Re;)C=N(C,S[te],te,S);return C}function Y0(S,N,C,H){var te=S==null?0:S.length;for(H&&te&&(C=S[--te]);te--;)C=N(C,S[te],te,S);return C}function Zu(S,N){for(var C=-1,H=S==null?0:S.length;++C<H;)if(N(S[C],C,S))return!0;return!1}var J0=Qu("length");function Z0(S){return S.split("")}function Q0(S){return S.match(P)||[]}function yh(S,N,C){var H;return C(S,function(te,Re,Ze){if(N(te,Re,Ze))return H=Re,!1}),H}function ra(S,N,C,H){for(var te=S.length,Re=C+(H?1:-1);H?Re--:++Re<te;)if(N(S[Re],Re,S))return Re;return-1}function Ui(S,N,C){return N===N?fy(S,N,C):ra(S,Eh,C)}function ey(S,N,C,H){for(var te=C-1,Re=S.length;++te<Re;)if(H(S[te],N))return te;return-1}function Eh(S){return S!==S}function $h(S,N){var C=S==null?0:S.length;return C?tc(S,N)/C:ei}function Qu(S){return function(N){return N==null?r:N[S]}}function ec(S){return function(N){return S==null?r:S[N]}}function wh(S,N,C,H,te){return te(S,function(Re,Ze,Te){C=H?(H=!1,Re):N(C,Re,Ze,Te)}),C}function ty(S,N){var C=S.length;for(S.sort(N);C--;)S[C]=S[C].value;return S}function tc(S,N){for(var C,H=-1,te=S.length;++H<te;){var Re=N(S[H]);Re!==r&&(C=C===r?Re:C+Re)}return C}function rc(S,N){for(var C=-1,H=Array(S);++C<S;)H[C]=N(C);return H}function ry(S,N){return Ue(N,function(C){return[C,S[C]]})}function bh(S){return S&&S.slice(0,Ah(S)+1).replace(Ts,"")}function Kt(S){return function(N){return S(N)}}function nc(S,N){return Ue(N,function(C){return S[C]})}function qs(S,N){return S.has(N)}function Sh(S,N){for(var C=-1,H=S.length;++C<H&&Ui(N,S[C],0)>-1;);return C}function Oh(S,N){for(var C=S.length;C--&&Ui(N,S[C],0)>-1;);return C}function ny(S,N){for(var C=S.length,H=0;C--;)S[C]===N&&++H;return H}var iy=ec(U0),sy=ec(H0);function oy(S){return"\\"+G0[S]}function ay(S,N){return S==null?r:S[N]}function Hi(S){return ah.test(S)}function uy(S){return uh.test(S)}function cy(S){for(var N,C=[];!(N=S.next()).done;)C.push(N.value);return C}function ic(S){var N=-1,C=Array(S.size);return S.forEach(function(H,te){C[++N]=[te,H]}),C}function Rh(S,N){return function(C){return S(N(C))}}function Dn(S,N){for(var C=-1,H=S.length,te=0,Re=[];++C<H;){var Ze=S[C];(Ze===N||Ze===g)&&(S[C]=g,Re[te++]=C)}return Re}function na(S){var N=-1,C=Array(S.size);return S.forEach(function(H){C[++N]=H}),C}function ly(S){var N=-1,C=Array(S.size);return S.forEach(function(H){C[++N]=[H,H]}),C}function fy(S,N,C){for(var H=C-1,te=S.length;++H<te;)if(S[H]===N)return H;return-1}function hy(S,N,C){for(var H=C+1;H--;)if(S[H]===N)return H;return H}function Vi(S){return Hi(S)?py(S):J0(S)}function Or(S){return Hi(S)?my(S):Z0(S)}function Ah(S){for(var N=S.length;N--&&Xo.test(S.charAt(N)););return N}var dy=ec(V0);function py(S){for(var N=ea.lastIndex=0;ea.test(S);)++N;return N}function my(S){return S.match(ea)||[]}function gy(S){return S.match(oh)||[]}var _y=function S(N){N=N==null?tt:qn.defaults(tt.Object(),N,qn.pick(tt,ch));var C=N.Array,H=N.Date,te=N.Error,Re=N.Function,Ze=N.Math,Te=N.Object,sc=N.RegExp,vy=N.String,ar=N.TypeError,ia=C.prototype,yy=Re.prototype,Gi=Te.prototype,sa=N["__core-js_shared__"],oa=yy.toString,Ce=Gi.hasOwnProperty,Ey=0,Ph=function(){var t=/[^.]+$/.exec(sa&&sa.keys&&sa.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),aa=Gi.toString,$y=oa.call(Te),wy=tt._,by=sc("^"+oa.call(Ce).replace(Is,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ua=fh?N.Buffer:r,Ln=N.Symbol,ca=N.Uint8Array,Ch=ua?ua.allocUnsafe:r,la=Rh(Te.getPrototypeOf,Te),Ih=Te.create,Th=Gi.propertyIsEnumerable,fa=ia.splice,Nh=Ln?Ln.isConcatSpreadable:r,Ls=Ln?Ln.iterator:r,fi=Ln?Ln.toStringTag:r,ha=function(){try{var t=gi(Te,"defineProperty");return t({},"",{}),t}catch{}}(),Sy=N.clearTimeout!==tt.clearTimeout&&N.clearTimeout,Oy=H&&H.now!==tt.Date.now&&H.now,Ry=N.setTimeout!==tt.setTimeout&&N.setTimeout,da=Ze.ceil,pa=Ze.floor,oc=Te.getOwnPropertySymbols,Ay=ua?ua.isBuffer:r,xh=N.isFinite,Py=ia.join,Cy=Rh(Te.keys,Te),Qe=Ze.max,ht=Ze.min,Iy=H.now,Ty=N.parseInt,Dh=Ze.random,Ny=ia.reverse,ac=gi(N,"DataView"),Ms=gi(N,"Map"),uc=gi(N,"Promise"),Wi=gi(N,"Set"),Fs=gi(N,"WeakMap"),js=gi(Te,"create"),ma=Fs&&new Fs,zi={},xy=_i(ac),Dy=_i(Ms),qy=_i(uc),Ly=_i(Wi),My=_i(Fs),ga=Ln?Ln.prototype:r,ks=ga?ga.valueOf:r,qh=ga?ga.toString:r;function p(t){if(ze(t)&&!ne(t)&&!(t instanceof _e)){if(t instanceof ur)return t;if(Ce.call(t,"__wrapped__"))return Ld(t)}return new ur(t)}var Bi=function(){function t(){}return function(i){if(!He(i))return{};if(Ih)return Ih(i);t.prototype=i;var o=new t;return t.prototype=r,o}}();function _a(){}function ur(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=r}p.templateSettings={escape:Pn,evaluate:Hu,interpolate:Ps,variable:"",imports:{_:p}},p.prototype=_a.prototype,p.prototype.constructor=p,ur.prototype=Bi(_a.prototype),ur.prototype.constructor=ur;function _e(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Vt,this.__views__=[]}function Fy(){var t=new _e(this.__wrapped__);return t.__actions__=xt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=xt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=xt(this.__views__),t}function jy(){if(this.__filtered__){var t=new _e(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function ky(){var t=this.__wrapped__.value(),i=this.__dir__,o=ne(t),c=i<0,h=o?t.length:0,m=ZE(0,h,this.__views__),y=m.start,$=m.end,O=$-y,D=c?$:y-1,q=this.__iteratees__,M=q.length,k=0,W=ht(O,this.__takeCount__);if(!o||!c&&h==O&&W==O)return sd(t,this.__actions__);var Y=[];e:for(;O--&&k<W;){D+=i;for(var oe=-1,J=t[D];++oe<M;){var pe=q[oe],ve=pe.iteratee,Jt=pe.type,St=ve(J);if(Jt==Di)J=St;else if(!St){if(Jt==Ht)continue e;break e}}Y[k++]=J}return Y}_e.prototype=Bi(_a.prototype),_e.prototype.constructor=_e;function hi(t){var i=-1,o=t==null?0:t.length;for(this.clear();++i<o;){var c=t[i];this.set(c[0],c[1])}}function Uy(){this.__data__=js?js(null):{},this.size=0}function Hy(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}function Vy(t){var i=this.__data__;if(js){var o=i[t];return o===l?r:o}return Ce.call(i,t)?i[t]:r}function Gy(t){var i=this.__data__;return js?i[t]!==r:Ce.call(i,t)}function Wy(t,i){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=js&&i===r?l:i,this}hi.prototype.clear=Uy,hi.prototype.delete=Hy,hi.prototype.get=Vy,hi.prototype.has=Gy,hi.prototype.set=Wy;function un(t){var i=-1,o=t==null?0:t.length;for(this.clear();++i<o;){var c=t[i];this.set(c[0],c[1])}}function zy(){this.__data__=[],this.size=0}function By(t){var i=this.__data__,o=va(i,t);if(o<0)return!1;var c=i.length-1;return o==c?i.pop():fa.call(i,o,1),--this.size,!0}function Ky(t){var i=this.__data__,o=va(i,t);return o<0?r:i[o][1]}function Xy(t){return va(this.__data__,t)>-1}function Yy(t,i){var o=this.__data__,c=va(o,t);return c<0?(++this.size,o.push([t,i])):o[c][1]=i,this}un.prototype.clear=zy,un.prototype.delete=By,un.prototype.get=Ky,un.prototype.has=Xy,un.prototype.set=Yy;function cn(t){var i=-1,o=t==null?0:t.length;for(this.clear();++i<o;){var c=t[i];this.set(c[0],c[1])}}function Jy(){this.size=0,this.__data__={hash:new hi,map:new(Ms||un),string:new hi}}function Zy(t){var i=Ia(this,t).delete(t);return this.size-=i?1:0,i}function Qy(t){return Ia(this,t).get(t)}function eE(t){return Ia(this,t).has(t)}function tE(t,i){var o=Ia(this,t),c=o.size;return o.set(t,i),this.size+=o.size==c?0:1,this}cn.prototype.clear=Jy,cn.prototype.delete=Zy,cn.prototype.get=Qy,cn.prototype.has=eE,cn.prototype.set=tE;function di(t){var i=-1,o=t==null?0:t.length;for(this.__data__=new cn;++i<o;)this.add(t[i])}function rE(t){return this.__data__.set(t,l),this}function nE(t){return this.__data__.has(t)}di.prototype.add=di.prototype.push=rE,di.prototype.has=nE;function Rr(t){var i=this.__data__=new un(t);this.size=i.size}function iE(){this.__data__=new un,this.size=0}function sE(t){var i=this.__data__,o=i.delete(t);return this.size=i.size,o}function oE(t){return this.__data__.get(t)}function aE(t){return this.__data__.has(t)}function uE(t,i){var o=this.__data__;if(o instanceof un){var c=o.__data__;if(!Ms||c.length<n-1)return c.push([t,i]),this.size=++o.size,this;o=this.__data__=new cn(c)}return o.set(t,i),this.size=o.size,this}Rr.prototype.clear=iE,Rr.prototype.delete=sE,Rr.prototype.get=oE,Rr.prototype.has=aE,Rr.prototype.set=uE;function Lh(t,i){var o=ne(t),c=!o&&vi(t),h=!o&&!c&&Un(t),m=!o&&!c&&!h&&Ji(t),y=o||c||h||m,$=y?rc(t.length,vy):[],O=$.length;for(var D in t)(i||Ce.call(t,D))&&!(y&&(D=="length"||h&&(D=="offset"||D=="parent")||m&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||dn(D,O)))&&$.push(D);return $}function Mh(t){var i=t.length;return i?t[yc(0,i-1)]:r}function cE(t,i){return Ta(xt(t),pi(i,0,t.length))}function lE(t){return Ta(xt(t))}function cc(t,i,o){(o!==r&&!Ar(t[i],o)||o===r&&!(i in t))&&ln(t,i,o)}function Us(t,i,o){var c=t[i];(!(Ce.call(t,i)&&Ar(c,o))||o===r&&!(i in t))&&ln(t,i,o)}function va(t,i){for(var o=t.length;o--;)if(Ar(t[o][0],i))return o;return-1}function fE(t,i,o,c){return Mn(t,function(h,m,y){i(c,h,o(h),y)}),c}function Fh(t,i){return t&&Ur(i,rt(i),t)}function hE(t,i){return t&&Ur(i,qt(i),t)}function ln(t,i,o){i=="__proto__"&&ha?ha(t,i,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[i]=o}function lc(t,i){for(var o=-1,c=i.length,h=C(c),m=t==null;++o<c;)h[o]=m?r:Gc(t,i[o]);return h}function pi(t,i,o){return t===t&&(o!==r&&(t=t<=o?t:o),i!==r&&(t=t>=i?t:i)),t}function cr(t,i,o,c,h,m){var y,$=i&f,O=i&_,D=i&w;if(o&&(y=h?o(t,c,h,m):o(t)),y!==r)return y;if(!He(t))return t;var q=ne(t);if(q){if(y=e$(t),!$)return xt(t,y)}else{var M=dt(t),k=M==On||M==Ss;if(Un(t))return ud(t,$);if(M==wr||M==bn||k&&!h){if(y=O||k?{}:Ad(t),!$)return O?VE(t,hE(y,t)):HE(t,Fh(y,t))}else{if(!qe[M])return h?t:{};y=t$(t,M,$)}}m||(m=new Rr);var W=m.get(t);if(W)return W;m.set(t,y),rp(t)?t.forEach(function(J){y.add(cr(J,i,o,J,t,m))}):ep(t)&&t.forEach(function(J,pe){y.set(pe,cr(J,i,o,pe,t,m))});var Y=D?O?Ic:Cc:O?qt:rt,oe=q?r:Y(t);return or(oe||t,function(J,pe){oe&&(pe=J,J=t[pe]),Us(y,pe,cr(J,i,o,pe,t,m))}),y}function dE(t){var i=rt(t);return function(o){return jh(o,t,i)}}function jh(t,i,o){var c=o.length;if(t==null)return!c;for(t=Te(t);c--;){var h=o[c],m=i[h],y=t[h];if(y===r&&!(h in t)||!m(y))return!1}return!0}function kh(t,i,o){if(typeof t!="function")throw new ar(a);return Ks(function(){t.apply(r,o)},i)}function Hs(t,i,o,c){var h=-1,m=ta,y=!0,$=t.length,O=[],D=i.length;if(!$)return O;o&&(i=Ue(i,Kt(o))),c?(m=Yu,y=!1):i.length>=n&&(m=qs,y=!1,i=new di(i));e:for(;++h<$;){var q=t[h],M=o==null?q:o(q);if(q=c||q!==0?q:0,y&&M===M){for(var k=D;k--;)if(i[k]===M)continue e;O.push(q)}else m(i,M,c)||O.push(q)}return O}var Mn=dd(kr),Uh=dd(hc,!0);function pE(t,i){var o=!0;return Mn(t,function(c,h,m){return o=!!i(c,h,m),o}),o}function ya(t,i,o){for(var c=-1,h=t.length;++c<h;){var m=t[c],y=i(m);if(y!=null&&($===r?y===y&&!Yt(y):o(y,$)))var $=y,O=m}return O}function mE(t,i,o,c){var h=t.length;for(o=ie(o),o<0&&(o=-o>h?0:h+o),c=c===r||c>h?h:ie(c),c<0&&(c+=h),c=o>c?0:ip(c);o<c;)t[o++]=i;return t}function Hh(t,i){var o=[];return Mn(t,function(c,h,m){i(c,h,m)&&o.push(c)}),o}function it(t,i,o,c,h){var m=-1,y=t.length;for(o||(o=n$),h||(h=[]);++m<y;){var $=t[m];i>0&&o($)?i>1?it($,i-1,o,c,h):xn(h,$):c||(h[h.length]=$)}return h}var fc=pd(),Vh=pd(!0);function kr(t,i){return t&&fc(t,i,rt)}function hc(t,i){return t&&Vh(t,i,rt)}function Ea(t,i){return Nn(i,function(o){return pn(t[o])})}function mi(t,i){i=jn(i,t);for(var o=0,c=i.length;t!=null&&o<c;)t=t[Hr(i[o++])];return o&&o==c?t:r}function Gh(t,i,o){var c=i(t);return ne(t)?c:xn(c,o(t))}function wt(t){return t==null?t===r?Go:$r:fi&&fi in Te(t)?JE(t):l$(t)}function dc(t,i){return t>i}function gE(t,i){return t!=null&&Ce.call(t,i)}function _E(t,i){return t!=null&&i in Te(t)}function vE(t,i,o){return t>=ht(i,o)&&t<Qe(i,o)}function pc(t,i,o){for(var c=o?Yu:ta,h=t[0].length,m=t.length,y=m,$=C(m),O=1/0,D=[];y--;){var q=t[y];y&&i&&(q=Ue(q,Kt(i))),O=ht(q.length,O),$[y]=!o&&(i||h>=120&&q.length>=120)?new di(y&&q):r}q=t[0];var M=-1,k=$[0];e:for(;++M<h&&D.length<O;){var W=q[M],Y=i?i(W):W;if(W=o||W!==0?W:0,!(k?qs(k,Y):c(D,Y,o))){for(y=m;--y;){var oe=$[y];if(!(oe?qs(oe,Y):c(t[y],Y,o)))continue e}k&&k.push(Y),D.push(W)}}return D}function yE(t,i,o,c){return kr(t,function(h,m,y){i(c,o(h),m,y)}),c}function Vs(t,i,o){i=jn(i,t),t=Td(t,i);var c=t==null?t:t[Hr(fr(i))];return c==null?r:Bt(c,t,o)}function Wh(t){return ze(t)&&wt(t)==bn}function EE(t){return ze(t)&&wt(t)==ni}function $E(t){return ze(t)&&wt(t)==er}function Gs(t,i,o,c,h){return t===i?!0:t==null||i==null||!ze(t)&&!ze(i)?t!==t&&i!==i:wE(t,i,o,c,Gs,h)}function wE(t,i,o,c,h,m){var y=ne(t),$=ne(i),O=y?Er:dt(t),D=$?Er:dt(i);O=O==bn?wr:O,D=D==bn?wr:D;var q=O==wr,M=D==wr,k=O==D;if(k&&Un(t)){if(!Un(i))return!1;y=!0,q=!1}if(k&&!q)return m||(m=new Rr),y||Ji(t)?Sd(t,i,o,c,h,m):XE(t,i,O,o,c,h,m);if(!(o&R)){var W=q&&Ce.call(t,"__wrapped__"),Y=M&&Ce.call(i,"__wrapped__");if(W||Y){var oe=W?t.value():t,J=Y?i.value():i;return m||(m=new Rr),h(oe,J,o,c,m)}}return k?(m||(m=new Rr),YE(t,i,o,c,h,m)):!1}function bE(t){return ze(t)&&dt(t)==Gt}function mc(t,i,o,c){var h=o.length,m=h,y=!c;if(t==null)return!m;for(t=Te(t);h--;){var $=o[h];if(y&&$[2]?$[1]!==t[$[0]]:!($[0]in t))return!1}for(;++h<m;){$=o[h];var O=$[0],D=t[O],q=$[1];if(y&&$[2]){if(D===r&&!(O in t))return!1}else{var M=new Rr;if(c)var k=c(D,q,O,t,i,M);if(!(k===r?Gs(q,D,R|A,c,M):k))return!1}}return!0}function zh(t){if(!He(t)||s$(t))return!1;var i=pn(t)?by:ge;return i.test(_i(t))}function SE(t){return ze(t)&&wt(t)==Rn}function OE(t){return ze(t)&&dt(t)==Wt}function RE(t){return ze(t)&&Ma(t.length)&&!!je[wt(t)]}function Bh(t){return typeof t=="function"?t:t==null?Lt:typeof t=="object"?ne(t)?Yh(t[0],t[1]):Xh(t):mp(t)}function gc(t){if(!Bs(t))return Cy(t);var i=[];for(var o in Te(t))Ce.call(t,o)&&o!="constructor"&&i.push(o);return i}function AE(t){if(!He(t))return c$(t);var i=Bs(t),o=[];for(var c in t)c=="constructor"&&(i||!Ce.call(t,c))||o.push(c);return o}function _c(t,i){return t<i}function Kh(t,i){var o=-1,c=Dt(t)?C(t.length):[];return Mn(t,function(h,m,y){c[++o]=i(h,m,y)}),c}function Xh(t){var i=Nc(t);return i.length==1&&i[0][2]?Cd(i[0][0],i[0][1]):function(o){return o===t||mc(o,t,i)}}function Yh(t,i){return Dc(t)&&Pd(i)?Cd(Hr(t),i):function(o){var c=Gc(o,t);return c===r&&c===i?Wc(o,t):Gs(i,c,R|A)}}function $a(t,i,o,c,h){t!==i&&fc(i,function(m,y){if(h||(h=new Rr),He(m))PE(t,i,y,o,$a,c,h);else{var $=c?c(Lc(t,y),m,y+"",t,i,h):r;$===r&&($=m),cc(t,y,$)}},qt)}function PE(t,i,o,c,h,m,y){var $=Lc(t,o),O=Lc(i,o),D=y.get(O);if(D){cc(t,o,D);return}var q=m?m($,O,o+"",t,i,y):r,M=q===r;if(M){var k=ne(O),W=!k&&Un(O),Y=!k&&!W&&Ji(O);q=O,k||W||Y?ne($)?q=$:Be($)?q=xt($):W?(M=!1,q=ud(O,!0)):Y?(M=!1,q=cd(O,!0)):q=[]:Xs(O)||vi(O)?(q=$,vi($)?q=sp($):(!He($)||pn($))&&(q=Ad(O))):M=!1}M&&(y.set(O,q),h(q,O,c,m,y),y.delete(O)),cc(t,o,q)}function Jh(t,i){var o=t.length;if(!!o)return i+=i<0?o:0,dn(i,o)?t[i]:r}function Zh(t,i,o){i.length?i=Ue(i,function(m){return ne(m)?function(y){return mi(y,m.length===1?m[0]:m)}:m}):i=[Lt];var c=-1;i=Ue(i,Kt(X()));var h=Kh(t,function(m,y,$){var O=Ue(i,function(D){return D(m)});return{criteria:O,index:++c,value:m}});return ty(h,function(m,y){return UE(m,y,o)})}function CE(t,i){return Qh(t,i,function(o,c){return Wc(t,c)})}function Qh(t,i,o){for(var c=-1,h=i.length,m={};++c<h;){var y=i[c],$=mi(t,y);o($,y)&&Ws(m,jn(y,t),$)}return m}function IE(t){return function(i){return mi(i,t)}}function vc(t,i,o,c){var h=c?ey:Ui,m=-1,y=i.length,$=t;for(t===i&&(i=xt(i)),o&&($=Ue(t,Kt(o)));++m<y;)for(var O=0,D=i[m],q=o?o(D):D;(O=h($,q,O,c))>-1;)$!==t&&fa.call($,O,1),fa.call(t,O,1);return t}function ed(t,i){for(var o=t?i.length:0,c=o-1;o--;){var h=i[o];if(o==c||h!==m){var m=h;dn(h)?fa.call(t,h,1):wc(t,h)}}return t}function yc(t,i){return t+pa(Dh()*(i-t+1))}function TE(t,i,o,c){for(var h=-1,m=Qe(da((i-t)/(o||1)),0),y=C(m);m--;)y[c?m:++h]=t,t+=o;return y}function Ec(t,i){var o="";if(!t||i<1||i>Mr)return o;do i%2&&(o+=t),i=pa(i/2),i&&(t+=t);while(i);return o}function ce(t,i){return Mc(Id(t,i,Lt),t+"")}function NE(t){return Mh(Zi(t))}function xE(t,i){var o=Zi(t);return Ta(o,pi(i,0,o.length))}function Ws(t,i,o,c){if(!He(t))return t;i=jn(i,t);for(var h=-1,m=i.length,y=m-1,$=t;$!=null&&++h<m;){var O=Hr(i[h]),D=o;if(O==="__proto__"||O==="constructor"||O==="prototype")return t;if(h!=y){var q=$[O];D=c?c(q,O,$):r,D===r&&(D=He(q)?q:dn(i[h+1])?[]:{})}Us($,O,D),$=$[O]}return t}var td=ma?function(t,i){return ma.set(t,i),t}:Lt,DE=ha?function(t,i){return ha(t,"toString",{configurable:!0,enumerable:!1,value:Bc(i),writable:!0})}:Lt;function qE(t){return Ta(Zi(t))}function lr(t,i,o){var c=-1,h=t.length;i<0&&(i=-i>h?0:h+i),o=o>h?h:o,o<0&&(o+=h),h=i>o?0:o-i>>>0,i>>>=0;for(var m=C(h);++c<h;)m[c]=t[c+i];return m}function LE(t,i){var o;return Mn(t,function(c,h,m){return o=i(c,h,m),!o}),!!o}function wa(t,i,o){var c=0,h=t==null?c:t.length;if(typeof i=="number"&&i===i&&h<=Ho){for(;c<h;){var m=c+h>>>1,y=t[m];y!==null&&!Yt(y)&&(o?y<=i:y<i)?c=m+1:h=m}return h}return $c(t,i,Lt,o)}function $c(t,i,o,c){var h=0,m=t==null?0:t.length;if(m===0)return 0;i=o(i);for(var y=i!==i,$=i===null,O=Yt(i),D=i===r;h<m;){var q=pa((h+m)/2),M=o(t[q]),k=M!==r,W=M===null,Y=M===M,oe=Yt(M);if(y)var J=c||Y;else D?J=Y&&(c||k):$?J=Y&&k&&(c||!W):O?J=Y&&k&&!W&&(c||!oe):W||oe?J=!1:J=c?M<=i:M<i;J?h=q+1:m=q}return ht(m,Uo)}function rd(t,i){for(var o=-1,c=t.length,h=0,m=[];++o<c;){var y=t[o],$=i?i(y):y;if(!o||!Ar($,O)){var O=$;m[h++]=y===0?0:y}}return m}function nd(t){return typeof t=="number"?t:Yt(t)?ei:+t}function Xt(t){if(typeof t=="string")return t;if(ne(t))return Ue(t,Xt)+"";if(Yt(t))return qh?qh.call(t):"";var i=t+"";return i=="0"&&1/t==-Lr?"-0":i}function Fn(t,i,o){var c=-1,h=ta,m=t.length,y=!0,$=[],O=$;if(o)y=!1,h=Yu;else if(m>=n){var D=i?null:BE(t);if(D)return na(D);y=!1,h=qs,O=new di}else O=i?[]:$;e:for(;++c<m;){var q=t[c],M=i?i(q):q;if(q=o||q!==0?q:0,y&&M===M){for(var k=O.length;k--;)if(O[k]===M)continue e;i&&O.push(M),$.push(q)}else h(O,M,o)||(O!==$&&O.push(M),$.push(q))}return $}function wc(t,i){return i=jn(i,t),t=Td(t,i),t==null||delete t[Hr(fr(i))]}function id(t,i,o,c){return Ws(t,i,o(mi(t,i)),c)}function ba(t,i,o,c){for(var h=t.length,m=c?h:-1;(c?m--:++m<h)&&i(t[m],m,t););return o?lr(t,c?0:m,c?m+1:h):lr(t,c?m+1:0,c?h:m)}function sd(t,i){var o=t;return o instanceof _e&&(o=o.value()),Ju(i,function(c,h){return h.func.apply(h.thisArg,xn([c],h.args))},o)}function bc(t,i,o){var c=t.length;if(c<2)return c?Fn(t[0]):[];for(var h=-1,m=C(c);++h<c;)for(var y=t[h],$=-1;++$<c;)$!=h&&(m[h]=Hs(m[h]||y,t[$],i,o));return Fn(it(m,1),i,o)}function od(t,i,o){for(var c=-1,h=t.length,m=i.length,y={};++c<h;){var $=c<m?i[c]:r;o(y,t[c],$)}return y}function Sc(t){return Be(t)?t:[]}function Oc(t){return typeof t=="function"?t:Lt}function jn(t,i){return ne(t)?t:Dc(t,i)?[t]:qd(Pe(t))}var ME=ce;function kn(t,i,o){var c=t.length;return o=o===r?c:o,!i&&o>=c?t:lr(t,i,o)}var ad=Sy||function(t){return tt.clearTimeout(t)};function ud(t,i){if(i)return t.slice();var o=t.length,c=Ch?Ch(o):new t.constructor(o);return t.copy(c),c}function Rc(t){var i=new t.constructor(t.byteLength);return new ca(i).set(new ca(t)),i}function FE(t,i){var o=i?Rc(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)}function jE(t){var i=new t.constructor(t.source,me.exec(t));return i.lastIndex=t.lastIndex,i}function kE(t){return ks?Te(ks.call(t)):{}}function cd(t,i){var o=i?Rc(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}function ld(t,i){if(t!==i){var o=t!==r,c=t===null,h=t===t,m=Yt(t),y=i!==r,$=i===null,O=i===i,D=Yt(i);if(!$&&!D&&!m&&t>i||m&&y&&O&&!$&&!D||c&&y&&O||!o&&O||!h)return 1;if(!c&&!m&&!D&&t<i||D&&o&&h&&!c&&!m||$&&o&&h||!y&&h||!O)return-1}return 0}function UE(t,i,o){for(var c=-1,h=t.criteria,m=i.criteria,y=h.length,$=o.length;++c<y;){var O=ld(h[c],m[c]);if(O){if(c>=$)return O;var D=o[c];return O*(D=="desc"?-1:1)}}return t.index-i.index}function fd(t,i,o,c){for(var h=-1,m=t.length,y=o.length,$=-1,O=i.length,D=Qe(m-y,0),q=C(O+D),M=!c;++$<O;)q[$]=i[$];for(;++h<y;)(M||h<m)&&(q[o[h]]=t[h]);for(;D--;)q[$++]=t[h++];return q}function hd(t,i,o,c){for(var h=-1,m=t.length,y=-1,$=o.length,O=-1,D=i.length,q=Qe(m-$,0),M=C(q+D),k=!c;++h<q;)M[h]=t[h];for(var W=h;++O<D;)M[W+O]=i[O];for(;++y<$;)(k||h<m)&&(M[W+o[y]]=t[h++]);return M}function xt(t,i){var o=-1,c=t.length;for(i||(i=C(c));++o<c;)i[o]=t[o];return i}function Ur(t,i,o,c){var h=!o;o||(o={});for(var m=-1,y=i.length;++m<y;){var $=i[m],O=c?c(o[$],t[$],$,o,t):r;O===r&&(O=t[$]),h?ln(o,$,O):Us(o,$,O)}return o}function HE(t,i){return Ur(t,xc(t),i)}function VE(t,i){return Ur(t,Od(t),i)}function Sa(t,i){return function(o,c){var h=ne(o)?K0:fE,m=i?i():{};return h(o,t,X(c,2),m)}}function Ki(t){return ce(function(i,o){var c=-1,h=o.length,m=h>1?o[h-1]:r,y=h>2?o[2]:r;for(m=t.length>3&&typeof m=="function"?(h--,m):r,y&&bt(o[0],o[1],y)&&(m=h<3?r:m,h=1),i=Te(i);++c<h;){var $=o[c];$&&t(i,$,c,m)}return i})}function dd(t,i){return function(o,c){if(o==null)return o;if(!Dt(o))return t(o,c);for(var h=o.length,m=i?h:-1,y=Te(o);(i?m--:++m<h)&&c(y[m],m,y)!==!1;);return o}}function pd(t){return function(i,o,c){for(var h=-1,m=Te(i),y=c(i),$=y.length;$--;){var O=y[t?$:++h];if(o(m[O],O,m)===!1)break}return i}}function GE(t,i,o){var c=i&x,h=zs(t);function m(){var y=this&&this!==tt&&this instanceof m?h:t;return y.apply(c?o:this,arguments)}return m}function md(t){return function(i){i=Pe(i);var o=Hi(i)?Or(i):r,c=o?o[0]:i.charAt(0),h=o?kn(o,1).join(""):i.slice(1);return c[t]()+h}}function Xi(t){return function(i){return Ju(dp(hp(i).replace(ih,"")),t,"")}}function zs(t){return function(){var i=arguments;switch(i.length){case 0:return new t;case 1:return new t(i[0]);case 2:return new t(i[0],i[1]);case 3:return new t(i[0],i[1],i[2]);case 4:return new t(i[0],i[1],i[2],i[3]);case 5:return new t(i[0],i[1],i[2],i[3],i[4]);case 6:return new t(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new t(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var o=Bi(t.prototype),c=t.apply(o,i);return He(c)?c:o}}function WE(t,i,o){var c=zs(t);function h(){for(var m=arguments.length,y=C(m),$=m,O=Yi(h);$--;)y[$]=arguments[$];var D=m<3&&y[0]!==O&&y[m-1]!==O?[]:Dn(y,O);if(m-=D.length,m<o)return Ed(t,i,Oa,h.placeholder,r,y,D,r,r,o-m);var q=this&&this!==tt&&this instanceof h?c:t;return Bt(q,this,y)}return h}function gd(t){return function(i,o,c){var h=Te(i);if(!Dt(i)){var m=X(o,3);i=rt(i),o=function($){return m(h[$],$,h)}}var y=t(i,o,c);return y>-1?h[m?i[y]:y]:r}}function _d(t){return hn(function(i){var o=i.length,c=o,h=ur.prototype.thru;for(t&&i.reverse();c--;){var m=i[c];if(typeof m!="function")throw new ar(a);if(h&&!y&&Ca(m)=="wrapper")var y=new ur([],!0)}for(c=y?c:o;++c<o;){m=i[c];var $=Ca(m),O=$=="wrapper"?Tc(m):r;O&&qc(O[0])&&O[1]==(z|F|K|Ve)&&!O[4].length&&O[9]==1?y=y[Ca(O[0])].apply(y,O[3]):y=m.length==1&&qc(m)?y[$]():y.thru(m)}return function(){var D=arguments,q=D[0];if(y&&D.length==1&&ne(q))return y.plant(q).value();for(var M=0,k=o?i[M].apply(this,D):q;++M<o;)k=i[M].call(this,k);return k}})}function Oa(t,i,o,c,h,m,y,$,O,D){var q=i&z,M=i&x,k=i&L,W=i&(F|Z),Y=i&ct,oe=k?r:zs(t);function J(){for(var pe=arguments.length,ve=C(pe),Jt=pe;Jt--;)ve[Jt]=arguments[Jt];if(W)var St=Yi(J),Zt=ny(ve,St);if(c&&(ve=fd(ve,c,h,W)),m&&(ve=hd(ve,m,y,W)),pe-=Zt,W&&pe<D){var Ke=Dn(ve,St);return Ed(t,i,Oa,J.placeholder,o,ve,Ke,$,O,D-pe)}var Pr=M?o:this,gn=k?Pr[t]:t;return pe=ve.length,$?ve=f$(ve,$):Y&&pe>1&&ve.reverse(),q&&O<pe&&(ve.length=O),this&&this!==tt&&this instanceof J&&(gn=oe||zs(gn)),gn.apply(Pr,ve)}return J}function vd(t,i){return function(o,c){return yE(o,t,i(c),{})}}function Ra(t,i){return function(o,c){var h;if(o===r&&c===r)return i;if(o!==r&&(h=o),c!==r){if(h===r)return c;typeof o=="string"||typeof c=="string"?(o=Xt(o),c=Xt(c)):(o=nd(o),c=nd(c)),h=t(o,c)}return h}}function Ac(t){return hn(function(i){return i=Ue(i,Kt(X())),ce(function(o){var c=this;return t(i,function(h){return Bt(h,c,o)})})})}function Aa(t,i){i=i===r?" ":Xt(i);var o=i.length;if(o<2)return o?Ec(i,t):i;var c=Ec(i,da(t/Vi(i)));return Hi(i)?kn(Or(c),0,t).join(""):c.slice(0,t)}function zE(t,i,o,c){var h=i&x,m=zs(t);function y(){for(var $=-1,O=arguments.length,D=-1,q=c.length,M=C(q+O),k=this&&this!==tt&&this instanceof y?m:t;++D<q;)M[D]=c[D];for(;O--;)M[D++]=arguments[++$];return Bt(k,h?o:this,M)}return y}function yd(t){return function(i,o,c){return c&&typeof c!="number"&&bt(i,o,c)&&(o=c=r),i=mn(i),o===r?(o=i,i=0):o=mn(o),c=c===r?i<o?1:-1:mn(c),TE(i,o,c,t)}}function Pa(t){return function(i,o){return typeof i=="string"&&typeof o=="string"||(i=hr(i),o=hr(o)),t(i,o)}}function Ed(t,i,o,c,h,m,y,$,O,D){var q=i&F,M=q?y:r,k=q?r:y,W=q?m:r,Y=q?r:m;i|=q?K:ue,i&=~(q?ue:K),i&j||(i&=~(x|L));var oe=[t,i,h,W,M,Y,k,$,O,D],J=o.apply(r,oe);return qc(t)&&Nd(J,oe),J.placeholder=c,xd(J,t,i)}function Pc(t){var i=Ze[t];return function(o,c){if(o=hr(o),c=c==null?0:ht(ie(c),292),c&&xh(o)){var h=(Pe(o)+"e").split("e"),m=i(h[0]+"e"+(+h[1]+c));return h=(Pe(m)+"e").split("e"),+(h[0]+"e"+(+h[1]-c))}return i(o)}}var BE=Wi&&1/na(new Wi([,-0]))[1]==Lr?function(t){return new Wi(t)}:Yc;function $d(t){return function(i){var o=dt(i);return o==Gt?ic(i):o==Wt?ly(i):ry(i,t(i))}}function fn(t,i,o,c,h,m,y,$){var O=i&L;if(!O&&typeof t!="function")throw new ar(a);var D=c?c.length:0;if(D||(i&=~(K|ue),c=h=r),y=y===r?y:Qe(ie(y),0),$=$===r?$:ie($),D-=h?h.length:0,i&ue){var q=c,M=h;c=h=r}var k=O?r:Tc(t),W=[t,i,o,c,h,q,M,m,y,$];if(k&&u$(W,k),t=W[0],i=W[1],o=W[2],c=W[3],h=W[4],$=W[9]=W[9]===r?O?0:t.length:Qe(W[9]-D,0),!$&&i&(F|Z)&&(i&=~(F|Z)),!i||i==x)var Y=GE(t,i,o);else i==F||i==Z?Y=WE(t,i,$):(i==K||i==(x|K))&&!h.length?Y=zE(t,i,o,c):Y=Oa.apply(r,W);var oe=k?td:Nd;return xd(oe(Y,W),t,i)}function wd(t,i,o,c){return t===r||Ar(t,Gi[o])&&!Ce.call(c,o)?i:t}function bd(t,i,o,c,h,m){return He(t)&&He(i)&&(m.set(i,t),$a(t,i,r,bd,m),m.delete(i)),t}function KE(t){return Xs(t)?r:t}function Sd(t,i,o,c,h,m){var y=o&R,$=t.length,O=i.length;if($!=O&&!(y&&O>$))return!1;var D=m.get(t),q=m.get(i);if(D&&q)return D==i&&q==t;var M=-1,k=!0,W=o&A?new di:r;for(m.set(t,i),m.set(i,t);++M<$;){var Y=t[M],oe=i[M];if(c)var J=y?c(oe,Y,M,i,t,m):c(Y,oe,M,t,i,m);if(J!==r){if(J)continue;k=!1;break}if(W){if(!Zu(i,function(pe,ve){if(!qs(W,ve)&&(Y===pe||h(Y,pe,o,c,m)))return W.push(ve)})){k=!1;break}}else if(!(Y===oe||h(Y,oe,o,c,m))){k=!1;break}}return m.delete(t),m.delete(i),k}function XE(t,i,o,c,h,m,y){switch(o){case An:if(t.byteLength!=i.byteLength||t.byteOffset!=i.byteOffset)return!1;t=t.buffer,i=i.buffer;case ni:return!(t.byteLength!=i.byteLength||!m(new ca(t),new ca(i)));case lt:case er:case ti:return Ar(+t,+i);case Sn:return t.name==i.name&&t.message==i.message;case Rn:case tr:return t==i+"";case Gt:var $=ic;case Wt:var O=c&R;if($||($=na),t.size!=i.size&&!O)return!1;var D=y.get(t);if(D)return D==i;c|=A,y.set(t,i);var q=Sd($(t),$(i),c,h,m,y);return y.delete(t),q;case yt:if(ks)return ks.call(t)==ks.call(i)}return!1}function YE(t,i,o,c,h,m){var y=o&R,$=Cc(t),O=$.length,D=Cc(i),q=D.length;if(O!=q&&!y)return!1;for(var M=O;M--;){var k=$[M];if(!(y?k in i:Ce.call(i,k)))return!1}var W=m.get(t),Y=m.get(i);if(W&&Y)return W==i&&Y==t;var oe=!0;m.set(t,i),m.set(i,t);for(var J=y;++M<O;){k=$[M];var pe=t[k],ve=i[k];if(c)var Jt=y?c(ve,pe,k,i,t,m):c(pe,ve,k,t,i,m);if(!(Jt===r?pe===ve||h(pe,ve,o,c,m):Jt)){oe=!1;break}J||(J=k=="constructor")}if(oe&&!J){var St=t.constructor,Zt=i.constructor;St!=Zt&&"constructor"in t&&"constructor"in i&&!(typeof St=="function"&&St instanceof St&&typeof Zt=="function"&&Zt instanceof Zt)&&(oe=!1)}return m.delete(t),m.delete(i),oe}function hn(t){return Mc(Id(t,r,jd),t+"")}function Cc(t){return Gh(t,rt,xc)}function Ic(t){return Gh(t,qt,Od)}var Tc=ma?function(t){return ma.get(t)}:Yc;function Ca(t){for(var i=t.name+"",o=zi[i],c=Ce.call(zi,i)?o.length:0;c--;){var h=o[c],m=h.func;if(m==null||m==t)return h.name}return i}function Yi(t){var i=Ce.call(p,"placeholder")?p:t;return i.placeholder}function X(){var t=p.iteratee||Kc;return t=t===Kc?Bh:t,arguments.length?t(arguments[0],arguments[1]):t}function Ia(t,i){var o=t.__data__;return i$(i)?o[typeof i=="string"?"string":"hash"]:o.map}function Nc(t){for(var i=rt(t),o=i.length;o--;){var c=i[o],h=t[c];i[o]=[c,h,Pd(h)]}return i}function gi(t,i){var o=ay(t,i);return zh(o)?o:r}function JE(t){var i=Ce.call(t,fi),o=t[fi];try{t[fi]=r;var c=!0}catch{}var h=aa.call(t);return c&&(i?t[fi]=o:delete t[fi]),h}var xc=oc?function(t){return t==null?[]:(t=Te(t),Nn(oc(t),function(i){return Th.call(t,i)}))}:Jc,Od=oc?function(t){for(var i=[];t;)xn(i,xc(t)),t=la(t);return i}:Jc,dt=wt;(ac&&dt(new ac(new ArrayBuffer(1)))!=An||Ms&&dt(new Ms)!=Gt||uc&&dt(uc.resolve())!=Os||Wi&&dt(new Wi)!=Wt||Fs&&dt(new Fs)!=ri)&&(dt=function(t){var i=wt(t),o=i==wr?t.constructor:r,c=o?_i(o):"";if(c)switch(c){case xy:return An;case Dy:return Gt;case qy:return Os;case Ly:return Wt;case My:return ri}return i});function ZE(t,i,o){for(var c=-1,h=o.length;++c<h;){var m=o[c],y=m.size;switch(m.type){case"drop":t+=y;break;case"dropRight":i-=y;break;case"take":i=ht(i,t+y);break;case"takeRight":t=Qe(t,i-y);break}}return{start:t,end:i}}function QE(t){var i=t.match(v);return i?i[1].split(b):[]}function Rd(t,i,o){i=jn(i,t);for(var c=-1,h=i.length,m=!1;++c<h;){var y=Hr(i[c]);if(!(m=t!=null&&o(t,y)))break;t=t[y]}return m||++c!=h?m:(h=t==null?0:t.length,!!h&&Ma(h)&&dn(y,h)&&(ne(t)||vi(t)))}function e$(t){var i=t.length,o=new t.constructor(i);return i&&typeof t[0]=="string"&&Ce.call(t,"index")&&(o.index=t.index,o.input=t.input),o}function Ad(t){return typeof t.constructor=="function"&&!Bs(t)?Bi(la(t)):{}}function t$(t,i,o){var c=t.constructor;switch(i){case ni:return Rc(t);case lt:case er:return new c(+t);case An:return FE(t,o);case zt:case Jr:case Li:case Mi:case Zr:case Fi:case Rs:case As:case ji:return cd(t,o);case Gt:return new c;case ti:case tr:return new c(t);case Rn:return jE(t);case Wt:return new c;case yt:return kE(t)}}function r$(t,i){var o=i.length;if(!o)return t;var c=o-1;return i[c]=(o>1?"& ":"")+i[c],i=i.join(o>2?", ":" "),t.replace(E,`{
16
- /* [wrapped with `+i+`] */
17
- `)}function n$(t){return ne(t)||vi(t)||!!(Nh&&t&&t[Nh])}function dn(t,i){var o=typeof t;return i=i==null?Mr:i,!!i&&(o=="number"||o!="symbol"&&We.test(t))&&t>-1&&t%1==0&&t<i}function bt(t,i,o){if(!He(o))return!1;var c=typeof i;return(c=="number"?Dt(o)&&dn(i,o.length):c=="string"&&i in o)?Ar(o[i],t):!1}function Dc(t,i){if(ne(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||Yt(t)?!0:Cs.test(t)||!Vu.test(t)||i!=null&&t in Te(i)}function i$(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function qc(t){var i=Ca(t),o=p[i];if(typeof o!="function"||!(i in _e.prototype))return!1;if(t===o)return!0;var c=Tc(o);return!!c&&t===c[0]}function s$(t){return!!Ph&&Ph in t}var o$=sa?pn:Zc;function Bs(t){var i=t&&t.constructor,o=typeof i=="function"&&i.prototype||Gi;return t===o}function Pd(t){return t===t&&!He(t)}function Cd(t,i){return function(o){return o==null?!1:o[t]===i&&(i!==r||t in Te(o))}}function a$(t){var i=qa(t,function(c){return o.size===d&&o.clear(),c}),o=i.cache;return i}function u$(t,i){var o=t[1],c=i[1],h=o|c,m=h<(x|L|z),y=c==z&&o==F||c==z&&o==Ve&&t[7].length<=i[8]||c==(z|Ve)&&i[7].length<=i[8]&&o==F;if(!(m||y))return t;c&x&&(t[2]=i[2],h|=o&x?0:j);var $=i[3];if($){var O=t[3];t[3]=O?fd(O,$,i[4]):$,t[4]=O?Dn(t[3],g):i[4]}return $=i[5],$&&(O=t[5],t[5]=O?hd(O,$,i[6]):$,t[6]=O?Dn(t[5],g):i[6]),$=i[7],$&&(t[7]=$),c&z&&(t[8]=t[8]==null?i[8]:ht(t[8],i[8])),t[9]==null&&(t[9]=i[9]),t[0]=i[0],t[1]=h,t}function c$(t){var i=[];if(t!=null)for(var o in Te(t))i.push(o);return i}function l$(t){return aa.call(t)}function Id(t,i,o){return i=Qe(i===r?t.length-1:i,0),function(){for(var c=arguments,h=-1,m=Qe(c.length-i,0),y=C(m);++h<m;)y[h]=c[i+h];h=-1;for(var $=C(i+1);++h<i;)$[h]=c[h];return $[i]=o(y),Bt(t,this,$)}}function Td(t,i){return i.length<2?t:mi(t,lr(i,0,-1))}function f$(t,i){for(var o=t.length,c=ht(i.length,o),h=xt(t);c--;){var m=i[c];t[c]=dn(m,o)?h[m]:r}return t}function Lc(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}var Nd=Dd(td),Ks=Ry||function(t,i){return tt.setTimeout(t,i)},Mc=Dd(DE);function xd(t,i,o){var c=i+"";return Mc(t,r$(c,h$(QE(c),o)))}function Dd(t){var i=0,o=0;return function(){var c=Iy(),h=It-(c-o);if(o=c,h>0){if(++i>=xe)return arguments[0]}else i=0;return t.apply(r,arguments)}}function Ta(t,i){var o=-1,c=t.length,h=c-1;for(i=i===r?c:i;++o<i;){var m=yc(o,h),y=t[m];t[m]=t[o],t[o]=y}return t.length=i,t}var qd=a$(function(t){var i=[];return t.charCodeAt(0)===46&&i.push(""),t.replace(Bo,function(o,c,h,m){i.push(h?m.replace(U,"$1"):c||o)}),i});function Hr(t){if(typeof t=="string"||Yt(t))return t;var i=t+"";return i=="0"&&1/t==-Lr?"-0":i}function _i(t){if(t!=null){try{return oa.call(t)}catch{}try{return t+""}catch{}}return""}function h$(t,i){return or(Lu,function(o){var c="_."+o[0];i&o[1]&&!ta(t,c)&&t.push(c)}),t.sort()}function Ld(t){if(t instanceof _e)return t.clone();var i=new ur(t.__wrapped__,t.__chain__);return i.__actions__=xt(t.__actions__),i.__index__=t.__index__,i.__values__=t.__values__,i}function d$(t,i,o){(o?bt(t,i,o):i===r)?i=1:i=Qe(ie(i),0);var c=t==null?0:t.length;if(!c||i<1)return[];for(var h=0,m=0,y=C(da(c/i));h<c;)y[m++]=lr(t,h,h+=i);return y}function p$(t){for(var i=-1,o=t==null?0:t.length,c=0,h=[];++i<o;){var m=t[i];m&&(h[c++]=m)}return h}function m$(){var t=arguments.length;if(!t)return[];for(var i=C(t-1),o=arguments[0],c=t;c--;)i[c-1]=arguments[c];return xn(ne(o)?xt(o):[o],it(i,1))}var g$=ce(function(t,i){return Be(t)?Hs(t,it(i,1,Be,!0)):[]}),_$=ce(function(t,i){var o=fr(i);return Be(o)&&(o=r),Be(t)?Hs(t,it(i,1,Be,!0),X(o,2)):[]}),v$=ce(function(t,i){var o=fr(i);return Be(o)&&(o=r),Be(t)?Hs(t,it(i,1,Be,!0),r,o):[]});function y$(t,i,o){var c=t==null?0:t.length;return c?(i=o||i===r?1:ie(i),lr(t,i<0?0:i,c)):[]}function E$(t,i,o){var c=t==null?0:t.length;return c?(i=o||i===r?1:ie(i),i=c-i,lr(t,0,i<0?0:i)):[]}function $$(t,i){return t&&t.length?ba(t,X(i,3),!0,!0):[]}function w$(t,i){return t&&t.length?ba(t,X(i,3),!0):[]}function b$(t,i,o,c){var h=t==null?0:t.length;return h?(o&&typeof o!="number"&&bt(t,i,o)&&(o=0,c=h),mE(t,i,o,c)):[]}function Md(t,i,o){var c=t==null?0:t.length;if(!c)return-1;var h=o==null?0:ie(o);return h<0&&(h=Qe(c+h,0)),ra(t,X(i,3),h)}function Fd(t,i,o){var c=t==null?0:t.length;if(!c)return-1;var h=c-1;return o!==r&&(h=ie(o),h=o<0?Qe(c+h,0):ht(h,c-1)),ra(t,X(i,3),h,!0)}function jd(t){var i=t==null?0:t.length;return i?it(t,1):[]}function S$(t){var i=t==null?0:t.length;return i?it(t,Lr):[]}function O$(t,i){var o=t==null?0:t.length;return o?(i=i===r?1:ie(i),it(t,i)):[]}function R$(t){for(var i=-1,o=t==null?0:t.length,c={};++i<o;){var h=t[i];c[h[0]]=h[1]}return c}function kd(t){return t&&t.length?t[0]:r}function A$(t,i,o){var c=t==null?0:t.length;if(!c)return-1;var h=o==null?0:ie(o);return h<0&&(h=Qe(c+h,0)),Ui(t,i,h)}function P$(t){var i=t==null?0:t.length;return i?lr(t,0,-1):[]}var C$=ce(function(t){var i=Ue(t,Sc);return i.length&&i[0]===t[0]?pc(i):[]}),I$=ce(function(t){var i=fr(t),o=Ue(t,Sc);return i===fr(o)?i=r:o.pop(),o.length&&o[0]===t[0]?pc(o,X(i,2)):[]}),T$=ce(function(t){var i=fr(t),o=Ue(t,Sc);return i=typeof i=="function"?i:r,i&&o.pop(),o.length&&o[0]===t[0]?pc(o,r,i):[]});function N$(t,i){return t==null?"":Py.call(t,i)}function fr(t){var i=t==null?0:t.length;return i?t[i-1]:r}function x$(t,i,o){var c=t==null?0:t.length;if(!c)return-1;var h=c;return o!==r&&(h=ie(o),h=h<0?Qe(c+h,0):ht(h,c-1)),i===i?hy(t,i,h):ra(t,Eh,h,!0)}function D$(t,i){return t&&t.length?Jh(t,ie(i)):r}var q$=ce(Ud);function Ud(t,i){return t&&t.length&&i&&i.length?vc(t,i):t}function L$(t,i,o){return t&&t.length&&i&&i.length?vc(t,i,X(o,2)):t}function M$(t,i,o){return t&&t.length&&i&&i.length?vc(t,i,r,o):t}var F$=hn(function(t,i){var o=t==null?0:t.length,c=lc(t,i);return ed(t,Ue(i,function(h){return dn(h,o)?+h:h}).sort(ld)),c});function j$(t,i){var o=[];if(!(t&&t.length))return o;var c=-1,h=[],m=t.length;for(i=X(i,3);++c<m;){var y=t[c];i(y,c,t)&&(o.push(y),h.push(c))}return ed(t,h),o}function Fc(t){return t==null?t:Ny.call(t)}function k$(t,i,o){var c=t==null?0:t.length;return c?(o&&typeof o!="number"&&bt(t,i,o)?(i=0,o=c):(i=i==null?0:ie(i),o=o===r?c:ie(o)),lr(t,i,o)):[]}function U$(t,i){return wa(t,i)}function H$(t,i,o){return $c(t,i,X(o,2))}function V$(t,i){var o=t==null?0:t.length;if(o){var c=wa(t,i);if(c<o&&Ar(t[c],i))return c}return-1}function G$(t,i){return wa(t,i,!0)}function W$(t,i,o){return $c(t,i,X(o,2),!0)}function z$(t,i){var o=t==null?0:t.length;if(o){var c=wa(t,i,!0)-1;if(Ar(t[c],i))return c}return-1}function B$(t){return t&&t.length?rd(t):[]}function K$(t,i){return t&&t.length?rd(t,X(i,2)):[]}function X$(t){var i=t==null?0:t.length;return i?lr(t,1,i):[]}function Y$(t,i,o){return t&&t.length?(i=o||i===r?1:ie(i),lr(t,0,i<0?0:i)):[]}function J$(t,i,o){var c=t==null?0:t.length;return c?(i=o||i===r?1:ie(i),i=c-i,lr(t,i<0?0:i,c)):[]}function Z$(t,i){return t&&t.length?ba(t,X(i,3),!1,!0):[]}function Q$(t,i){return t&&t.length?ba(t,X(i,3)):[]}var ew=ce(function(t){return Fn(it(t,1,Be,!0))}),tw=ce(function(t){var i=fr(t);return Be(i)&&(i=r),Fn(it(t,1,Be,!0),X(i,2))}),rw=ce(function(t){var i=fr(t);return i=typeof i=="function"?i:r,Fn(it(t,1,Be,!0),r,i)});function nw(t){return t&&t.length?Fn(t):[]}function iw(t,i){return t&&t.length?Fn(t,X(i,2)):[]}function sw(t,i){return i=typeof i=="function"?i:r,t&&t.length?Fn(t,r,i):[]}function jc(t){if(!(t&&t.length))return[];var i=0;return t=Nn(t,function(o){if(Be(o))return i=Qe(o.length,i),!0}),rc(i,function(o){return Ue(t,Qu(o))})}function Hd(t,i){if(!(t&&t.length))return[];var o=jc(t);return i==null?o:Ue(o,function(c){return Bt(i,r,c)})}var ow=ce(function(t,i){return Be(t)?Hs(t,i):[]}),aw=ce(function(t){return bc(Nn(t,Be))}),uw=ce(function(t){var i=fr(t);return Be(i)&&(i=r),bc(Nn(t,Be),X(i,2))}),cw=ce(function(t){var i=fr(t);return i=typeof i=="function"?i:r,bc(Nn(t,Be),r,i)}),lw=ce(jc);function fw(t,i){return od(t||[],i||[],Us)}function hw(t,i){return od(t||[],i||[],Ws)}var dw=ce(function(t){var i=t.length,o=i>1?t[i-1]:r;return o=typeof o=="function"?(t.pop(),o):r,Hd(t,o)});function Vd(t){var i=p(t);return i.__chain__=!0,i}function pw(t,i){return i(t),t}function Na(t,i){return i(t)}var mw=hn(function(t){var i=t.length,o=i?t[0]:0,c=this.__wrapped__,h=function(m){return lc(m,t)};return i>1||this.__actions__.length||!(c instanceof _e)||!dn(o)?this.thru(h):(c=c.slice(o,+o+(i?1:0)),c.__actions__.push({func:Na,args:[h],thisArg:r}),new ur(c,this.__chain__).thru(function(m){return i&&!m.length&&m.push(r),m}))});function gw(){return Vd(this)}function _w(){return new ur(this.value(),this.__chain__)}function vw(){this.__values__===r&&(this.__values__=np(this.value()));var t=this.__index__>=this.__values__.length,i=t?r:this.__values__[this.__index__++];return{done:t,value:i}}function yw(){return this}function Ew(t){for(var i,o=this;o instanceof _a;){var c=Ld(o);c.__index__=0,c.__values__=r,i?h.__wrapped__=c:i=c;var h=c;o=o.__wrapped__}return h.__wrapped__=t,i}function $w(){var t=this.__wrapped__;if(t instanceof _e){var i=t;return this.__actions__.length&&(i=new _e(this)),i=i.reverse(),i.__actions__.push({func:Na,args:[Fc],thisArg:r}),new ur(i,this.__chain__)}return this.thru(Fc)}function ww(){return sd(this.__wrapped__,this.__actions__)}var bw=Sa(function(t,i,o){Ce.call(t,o)?++t[o]:ln(t,o,1)});function Sw(t,i,o){var c=ne(t)?vh:pE;return o&&bt(t,i,o)&&(i=r),c(t,X(i,3))}function Ow(t,i){var o=ne(t)?Nn:Hh;return o(t,X(i,3))}var Rw=gd(Md),Aw=gd(Fd);function Pw(t,i){return it(xa(t,i),1)}function Cw(t,i){return it(xa(t,i),Lr)}function Iw(t,i,o){return o=o===r?1:ie(o),it(xa(t,i),o)}function Gd(t,i){var o=ne(t)?or:Mn;return o(t,X(i,3))}function Wd(t,i){var o=ne(t)?X0:Uh;return o(t,X(i,3))}var Tw=Sa(function(t,i,o){Ce.call(t,o)?t[o].push(i):ln(t,o,[i])});function Nw(t,i,o,c){t=Dt(t)?t:Zi(t),o=o&&!c?ie(o):0;var h=t.length;return o<0&&(o=Qe(h+o,0)),Fa(t)?o<=h&&t.indexOf(i,o)>-1:!!h&&Ui(t,i,o)>-1}var xw=ce(function(t,i,o){var c=-1,h=typeof i=="function",m=Dt(t)?C(t.length):[];return Mn(t,function(y){m[++c]=h?Bt(i,y,o):Vs(y,i,o)}),m}),Dw=Sa(function(t,i,o){ln(t,o,i)});function xa(t,i){var o=ne(t)?Ue:Kh;return o(t,X(i,3))}function qw(t,i,o,c){return t==null?[]:(ne(i)||(i=i==null?[]:[i]),o=c?r:o,ne(o)||(o=o==null?[]:[o]),Zh(t,i,o))}var Lw=Sa(function(t,i,o){t[o?0:1].push(i)},function(){return[[],[]]});function Mw(t,i,o){var c=ne(t)?Ju:wh,h=arguments.length<3;return c(t,X(i,4),o,h,Mn)}function Fw(t,i,o){var c=ne(t)?Y0:wh,h=arguments.length<3;return c(t,X(i,4),o,h,Uh)}function jw(t,i){var o=ne(t)?Nn:Hh;return o(t,La(X(i,3)))}function kw(t){var i=ne(t)?Mh:NE;return i(t)}function Uw(t,i,o){(o?bt(t,i,o):i===r)?i=1:i=ie(i);var c=ne(t)?cE:xE;return c(t,i)}function Hw(t){var i=ne(t)?lE:qE;return i(t)}function Vw(t){if(t==null)return 0;if(Dt(t))return Fa(t)?Vi(t):t.length;var i=dt(t);return i==Gt||i==Wt?t.size:gc(t).length}function Gw(t,i,o){var c=ne(t)?Zu:LE;return o&&bt(t,i,o)&&(i=r),c(t,X(i,3))}var Ww=ce(function(t,i){if(t==null)return[];var o=i.length;return o>1&&bt(t,i[0],i[1])?i=[]:o>2&&bt(i[0],i[1],i[2])&&(i=[i[0]]),Zh(t,it(i,1),[])}),Da=Oy||function(){return tt.Date.now()};function zw(t,i){if(typeof i!="function")throw new ar(a);return t=ie(t),function(){if(--t<1)return i.apply(this,arguments)}}function zd(t,i,o){return i=o?r:i,i=t&&i==null?t.length:i,fn(t,z,r,r,r,r,i)}function Bd(t,i){var o;if(typeof i!="function")throw new ar(a);return t=ie(t),function(){return--t>0&&(o=i.apply(this,arguments)),t<=1&&(i=r),o}}var kc=ce(function(t,i,o){var c=x;if(o.length){var h=Dn(o,Yi(kc));c|=K}return fn(t,c,i,o,h)}),Kd=ce(function(t,i,o){var c=x|L;if(o.length){var h=Dn(o,Yi(Kd));c|=K}return fn(i,c,t,o,h)});function Xd(t,i,o){i=o?r:i;var c=fn(t,F,r,r,r,r,r,i);return c.placeholder=Xd.placeholder,c}function Yd(t,i,o){i=o?r:i;var c=fn(t,Z,r,r,r,r,r,i);return c.placeholder=Yd.placeholder,c}function Jd(t,i,o){var c,h,m,y,$,O,D=0,q=!1,M=!1,k=!0;if(typeof t!="function")throw new ar(a);i=hr(i)||0,He(o)&&(q=!!o.leading,M="maxWait"in o,m=M?Qe(hr(o.maxWait)||0,i):m,k="trailing"in o?!!o.trailing:k);function W(Ke){var Pr=c,gn=h;return c=h=r,D=Ke,y=t.apply(gn,Pr),y}function Y(Ke){return D=Ke,$=Ks(pe,i),q?W(Ke):y}function oe(Ke){var Pr=Ke-O,gn=Ke-D,gp=i-Pr;return M?ht(gp,m-gn):gp}function J(Ke){var Pr=Ke-O,gn=Ke-D;return O===r||Pr>=i||Pr<0||M&&gn>=m}function pe(){var Ke=Da();if(J(Ke))return ve(Ke);$=Ks(pe,oe(Ke))}function ve(Ke){return $=r,k&&c?W(Ke):(c=h=r,y)}function Jt(){$!==r&&ad($),D=0,c=O=h=$=r}function St(){return $===r?y:ve(Da())}function Zt(){var Ke=Da(),Pr=J(Ke);if(c=arguments,h=this,O=Ke,Pr){if($===r)return Y(O);if(M)return ad($),$=Ks(pe,i),W(O)}return $===r&&($=Ks(pe,i)),y}return Zt.cancel=Jt,Zt.flush=St,Zt}var Bw=ce(function(t,i){return kh(t,1,i)}),Kw=ce(function(t,i,o){return kh(t,hr(i)||0,o)});function Xw(t){return fn(t,ct)}function qa(t,i){if(typeof t!="function"||i!=null&&typeof i!="function")throw new ar(a);var o=function(){var c=arguments,h=i?i.apply(this,c):c[0],m=o.cache;if(m.has(h))return m.get(h);var y=t.apply(this,c);return o.cache=m.set(h,y)||m,y};return o.cache=new(qa.Cache||cn),o}qa.Cache=cn;function La(t){if(typeof t!="function")throw new ar(a);return function(){var i=arguments;switch(i.length){case 0:return!t.call(this);case 1:return!t.call(this,i[0]);case 2:return!t.call(this,i[0],i[1]);case 3:return!t.call(this,i[0],i[1],i[2])}return!t.apply(this,i)}}function Yw(t){return Bd(2,t)}var Jw=ME(function(t,i){i=i.length==1&&ne(i[0])?Ue(i[0],Kt(X())):Ue(it(i,1),Kt(X()));var o=i.length;return ce(function(c){for(var h=-1,m=ht(c.length,o);++h<m;)c[h]=i[h].call(this,c[h]);return Bt(t,this,c)})}),Uc=ce(function(t,i){var o=Dn(i,Yi(Uc));return fn(t,K,r,i,o)}),Zd=ce(function(t,i){var o=Dn(i,Yi(Zd));return fn(t,ue,r,i,o)}),Zw=hn(function(t,i){return fn(t,Ve,r,r,r,i)});function Qw(t,i){if(typeof t!="function")throw new ar(a);return i=i===r?i:ie(i),ce(t,i)}function e1(t,i){if(typeof t!="function")throw new ar(a);return i=i==null?0:Qe(ie(i),0),ce(function(o){var c=o[i],h=kn(o,0,i);return c&&xn(h,c),Bt(t,this,h)})}function t1(t,i,o){var c=!0,h=!0;if(typeof t!="function")throw new ar(a);return He(o)&&(c="leading"in o?!!o.leading:c,h="trailing"in o?!!o.trailing:h),Jd(t,i,{leading:c,maxWait:i,trailing:h})}function r1(t){return zd(t,1)}function n1(t,i){return Uc(Oc(i),t)}function i1(){if(!arguments.length)return[];var t=arguments[0];return ne(t)?t:[t]}function s1(t){return cr(t,w)}function o1(t,i){return i=typeof i=="function"?i:r,cr(t,w,i)}function a1(t){return cr(t,f|w)}function u1(t,i){return i=typeof i=="function"?i:r,cr(t,f|w,i)}function c1(t,i){return i==null||jh(t,i,rt(i))}function Ar(t,i){return t===i||t!==t&&i!==i}var l1=Pa(dc),f1=Pa(function(t,i){return t>=i}),vi=Wh(function(){return arguments}())?Wh:function(t){return ze(t)&&Ce.call(t,"callee")&&!Th.call(t,"callee")},ne=C.isArray,h1=hh?Kt(hh):EE;function Dt(t){return t!=null&&Ma(t.length)&&!pn(t)}function Be(t){return ze(t)&&Dt(t)}function d1(t){return t===!0||t===!1||ze(t)&&wt(t)==lt}var Un=Ay||Zc,p1=dh?Kt(dh):$E;function m1(t){return ze(t)&&t.nodeType===1&&!Xs(t)}function g1(t){if(t==null)return!0;if(Dt(t)&&(ne(t)||typeof t=="string"||typeof t.splice=="function"||Un(t)||Ji(t)||vi(t)))return!t.length;var i=dt(t);if(i==Gt||i==Wt)return!t.size;if(Bs(t))return!gc(t).length;for(var o in t)if(Ce.call(t,o))return!1;return!0}function _1(t,i){return Gs(t,i)}function v1(t,i,o){o=typeof o=="function"?o:r;var c=o?o(t,i):r;return c===r?Gs(t,i,r,o):!!c}function Hc(t){if(!ze(t))return!1;var i=wt(t);return i==Sn||i==bs||typeof t.message=="string"&&typeof t.name=="string"&&!Xs(t)}function y1(t){return typeof t=="number"&&xh(t)}function pn(t){if(!He(t))return!1;var i=wt(t);return i==On||i==Ss||i==Tt||i==Vo}function Qd(t){return typeof t=="number"&&t==ie(t)}function Ma(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Mr}function He(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}function ze(t){return t!=null&&typeof t=="object"}var ep=ph?Kt(ph):bE;function E1(t,i){return t===i||mc(t,i,Nc(i))}function $1(t,i,o){return o=typeof o=="function"?o:r,mc(t,i,Nc(i),o)}function w1(t){return tp(t)&&t!=+t}function b1(t){if(o$(t))throw new te(s);return zh(t)}function S1(t){return t===null}function O1(t){return t==null}function tp(t){return typeof t=="number"||ze(t)&&wt(t)==ti}function Xs(t){if(!ze(t)||wt(t)!=wr)return!1;var i=la(t);if(i===null)return!0;var o=Ce.call(i,"constructor")&&i.constructor;return typeof o=="function"&&o instanceof o&&oa.call(o)==$y}var Vc=mh?Kt(mh):SE;function R1(t){return Qd(t)&&t>=-Mr&&t<=Mr}var rp=gh?Kt(gh):OE;function Fa(t){return typeof t=="string"||!ne(t)&&ze(t)&&wt(t)==tr}function Yt(t){return typeof t=="symbol"||ze(t)&&wt(t)==yt}var Ji=_h?Kt(_h):RE;function A1(t){return t===r}function P1(t){return ze(t)&&dt(t)==ri}function C1(t){return ze(t)&&wt(t)==Mu}var I1=Pa(_c),T1=Pa(function(t,i){return t<=i});function np(t){if(!t)return[];if(Dt(t))return Fa(t)?Or(t):xt(t);if(Ls&&t[Ls])return cy(t[Ls]());var i=dt(t),o=i==Gt?ic:i==Wt?na:Zi;return o(t)}function mn(t){if(!t)return t===0?t:0;if(t=hr(t),t===Lr||t===-Lr){var i=t<0?-1:1;return i*qu}return t===t?t:0}function ie(t){var i=mn(t),o=i%1;return i===i?o?i-o:i:0}function ip(t){return t?pi(ie(t),0,Vt):0}function hr(t){if(typeof t=="number")return t;if(Yt(t))return ei;if(He(t)){var i=typeof t.valueOf=="function"?t.valueOf():t;t=He(i)?i+"":i}if(typeof t!="string")return t===0?t:+t;t=bh(t);var o=Ge.test(t);return o||Me.test(t)?z0(t.slice(2),o?2:8):Se.test(t)?ei:+t}function sp(t){return Ur(t,qt(t))}function N1(t){return t?pi(ie(t),-Mr,Mr):t===0?t:0}function Pe(t){return t==null?"":Xt(t)}var x1=Ki(function(t,i){if(Bs(i)||Dt(i)){Ur(i,rt(i),t);return}for(var o in i)Ce.call(i,o)&&Us(t,o,i[o])}),op=Ki(function(t,i){Ur(i,qt(i),t)}),ja=Ki(function(t,i,o,c){Ur(i,qt(i),t,c)}),D1=Ki(function(t,i,o,c){Ur(i,rt(i),t,c)}),q1=hn(lc);function L1(t,i){var o=Bi(t);return i==null?o:Fh(o,i)}var M1=ce(function(t,i){t=Te(t);var o=-1,c=i.length,h=c>2?i[2]:r;for(h&&bt(i[0],i[1],h)&&(c=1);++o<c;)for(var m=i[o],y=qt(m),$=-1,O=y.length;++$<O;){var D=y[$],q=t[D];(q===r||Ar(q,Gi[D])&&!Ce.call(t,D))&&(t[D]=m[D])}return t}),F1=ce(function(t){return t.push(r,bd),Bt(ap,r,t)});function j1(t,i){return yh(t,X(i,3),kr)}function k1(t,i){return yh(t,X(i,3),hc)}function U1(t,i){return t==null?t:fc(t,X(i,3),qt)}function H1(t,i){return t==null?t:Vh(t,X(i,3),qt)}function V1(t,i){return t&&kr(t,X(i,3))}function G1(t,i){return t&&hc(t,X(i,3))}function W1(t){return t==null?[]:Ea(t,rt(t))}function z1(t){return t==null?[]:Ea(t,qt(t))}function Gc(t,i,o){var c=t==null?r:mi(t,i);return c===r?o:c}function B1(t,i){return t!=null&&Rd(t,i,gE)}function Wc(t,i){return t!=null&&Rd(t,i,_E)}var K1=vd(function(t,i,o){i!=null&&typeof i.toString!="function"&&(i=aa.call(i)),t[i]=o},Bc(Lt)),X1=vd(function(t,i,o){i!=null&&typeof i.toString!="function"&&(i=aa.call(i)),Ce.call(t,i)?t[i].push(o):t[i]=[o]},X),Y1=ce(Vs);function rt(t){return Dt(t)?Lh(t):gc(t)}function qt(t){return Dt(t)?Lh(t,!0):AE(t)}function J1(t,i){var o={};return i=X(i,3),kr(t,function(c,h,m){ln(o,i(c,h,m),c)}),o}function Z1(t,i){var o={};return i=X(i,3),kr(t,function(c,h,m){ln(o,h,i(c,h,m))}),o}var Q1=Ki(function(t,i,o){$a(t,i,o)}),ap=Ki(function(t,i,o,c){$a(t,i,o,c)}),eb=hn(function(t,i){var o={};if(t==null)return o;var c=!1;i=Ue(i,function(m){return m=jn(m,t),c||(c=m.length>1),m}),Ur(t,Ic(t),o),c&&(o=cr(o,f|_|w,KE));for(var h=i.length;h--;)wc(o,i[h]);return o});function tb(t,i){return up(t,La(X(i)))}var rb=hn(function(t,i){return t==null?{}:CE(t,i)});function up(t,i){if(t==null)return{};var o=Ue(Ic(t),function(c){return[c]});return i=X(i),Qh(t,o,function(c,h){return i(c,h[0])})}function nb(t,i,o){i=jn(i,t);var c=-1,h=i.length;for(h||(h=1,t=r);++c<h;){var m=t==null?r:t[Hr(i[c])];m===r&&(c=h,m=o),t=pn(m)?m.call(t):m}return t}function ib(t,i,o){return t==null?t:Ws(t,i,o)}function sb(t,i,o,c){return c=typeof c=="function"?c:r,t==null?t:Ws(t,i,o,c)}var cp=$d(rt),lp=$d(qt);function ob(t,i,o){var c=ne(t),h=c||Un(t)||Ji(t);if(i=X(i,4),o==null){var m=t&&t.constructor;h?o=c?new m:[]:He(t)?o=pn(m)?Bi(la(t)):{}:o={}}return(h?or:kr)(t,function(y,$,O){return i(o,y,$,O)}),o}function ab(t,i){return t==null?!0:wc(t,i)}function ub(t,i,o){return t==null?t:id(t,i,Oc(o))}function cb(t,i,o,c){return c=typeof c=="function"?c:r,t==null?t:id(t,i,Oc(o),c)}function Zi(t){return t==null?[]:nc(t,rt(t))}function lb(t){return t==null?[]:nc(t,qt(t))}function fb(t,i,o){return o===r&&(o=i,i=r),o!==r&&(o=hr(o),o=o===o?o:0),i!==r&&(i=hr(i),i=i===i?i:0),pi(hr(t),i,o)}function hb(t,i,o){return i=mn(i),o===r?(o=i,i=0):o=mn(o),t=hr(t),vE(t,i,o)}function db(t,i,o){if(o&&typeof o!="boolean"&&bt(t,i,o)&&(i=o=r),o===r&&(typeof i=="boolean"?(o=i,i=r):typeof t=="boolean"&&(o=t,t=r)),t===r&&i===r?(t=0,i=1):(t=mn(t),i===r?(i=t,t=0):i=mn(i)),t>i){var c=t;t=i,i=c}if(o||t%1||i%1){var h=Dh();return ht(t+h*(i-t+W0("1e-"+((h+"").length-1))),i)}return yc(t,i)}var pb=Xi(function(t,i,o){return i=i.toLowerCase(),t+(o?fp(i):i)});function fp(t){return zc(Pe(t).toLowerCase())}function hp(t){return t=Pe(t),t&&t.replace(De,iy).replace(sh,"")}function mb(t,i,o){t=Pe(t),i=Xt(i);var c=t.length;o=o===r?c:pi(ie(o),0,c);var h=o;return o-=i.length,o>=0&&t.slice(o,h)==i}function gb(t){return t=Pe(t),t&&Uu.test(t)?t.replace(zo,sy):t}function _b(t){return t=Pe(t),t&&Ko.test(t)?t.replace(Is,"\\$&"):t}var vb=Xi(function(t,i,o){return t+(o?"-":"")+i.toLowerCase()}),yb=Xi(function(t,i,o){return t+(o?" ":"")+i.toLowerCase()}),Eb=md("toLowerCase");function $b(t,i,o){t=Pe(t),i=ie(i);var c=i?Vi(t):0;if(!i||c>=i)return t;var h=(i-c)/2;return Aa(pa(h),o)+t+Aa(da(h),o)}function wb(t,i,o){t=Pe(t),i=ie(i);var c=i?Vi(t):0;return i&&c<i?t+Aa(i-c,o):t}function bb(t,i,o){t=Pe(t),i=ie(i);var c=i?Vi(t):0;return i&&c<i?Aa(i-c,o)+t:t}function Sb(t,i,o){return o||i==null?i=0:i&&(i=+i),Ty(Pe(t).replace(Ts,""),i||0)}function Ob(t,i,o){return(o?bt(t,i,o):i===r)?i=1:i=ie(i),Ec(Pe(t),i)}function Rb(){var t=arguments,i=Pe(t[0]);return t.length<3?i:i.replace(t[1],t[2])}var Ab=Xi(function(t,i,o){return t+(o?"_":"")+i.toLowerCase()});function Pb(t,i,o){return o&&typeof o!="number"&&bt(t,i,o)&&(i=o=r),o=o===r?Vt:o>>>0,o?(t=Pe(t),t&&(typeof i=="string"||i!=null&&!Vc(i))&&(i=Xt(i),!i&&Hi(t))?kn(Or(t),0,o):t.split(i,o)):[]}var Cb=Xi(function(t,i,o){return t+(o?" ":"")+zc(i)});function Ib(t,i,o){return t=Pe(t),o=o==null?0:pi(ie(o),0,t.length),i=Xt(i),t.slice(o,o+i.length)==i}function Tb(t,i,o){var c=p.templateSettings;o&&bt(t,i,o)&&(i=r),t=Pe(t),i=ja({},i,c,wd);var h=ja({},i.imports,c.imports,wd),m=rt(h),y=nc(h,m),$,O,D=0,q=i.interpolate||de,M="__p += '",k=sc((i.escape||de).source+"|"+q.source+"|"+(q===Ps?re:de).source+"|"+(i.evaluate||de).source+"|$","g"),W="//# sourceURL="+(Ce.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++k0+"]")+`
18
- `;t.replace(k,function(J,pe,ve,Jt,St,Zt){return ve||(ve=Jt),M+=t.slice(D,Zt).replace(Fe,oy),pe&&($=!0,M+=`' +
19
- __e(`+pe+`) +
20
- '`),St&&(O=!0,M+=`';
21
- `+St+`;
22
- __p += '`),ve&&(M+=`' +
23
- ((__t = (`+ve+`)) == null ? '' : __t) +
24
- '`),D=Zt+J.length,J}),M+=`';
25
- `;var Y=Ce.call(i,"variable")&&i.variable;if(!Y)M=`with (obj) {
26
- `+M+`
27
- }
28
- `;else if(I.test(Y))throw new te(u);M=(O?M.replace(rr,""):M).replace(Fu,"$1").replace(ju,"$1;"),M="function("+(Y||"obj")+`) {
29
- `+(Y?"":`obj || (obj = {});
30
- `)+"var __t, __p = ''"+($?", __e = _.escape":"")+(O?`, __j = Array.prototype.join;
31
- function print() { __p += __j.call(arguments, '') }
32
- `:`;
33
- `)+M+`return __p
34
- }`;var oe=pp(function(){return Re(m,W+"return "+M).apply(r,y)});if(oe.source=M,Hc(oe))throw oe;return oe}function Nb(t){return Pe(t).toLowerCase()}function xb(t){return Pe(t).toUpperCase()}function Db(t,i,o){if(t=Pe(t),t&&(o||i===r))return bh(t);if(!t||!(i=Xt(i)))return t;var c=Or(t),h=Or(i),m=Sh(c,h),y=Oh(c,h)+1;return kn(c,m,y).join("")}function qb(t,i,o){if(t=Pe(t),t&&(o||i===r))return t.slice(0,Ah(t)+1);if(!t||!(i=Xt(i)))return t;var c=Or(t),h=Oh(c,Or(i))+1;return kn(c,0,h).join("")}function Lb(t,i,o){if(t=Pe(t),t&&(o||i===r))return t.replace(Ts,"");if(!t||!(i=Xt(i)))return t;var c=Or(t),h=Sh(c,Or(i));return kn(c,h).join("")}function Mb(t,i){var o=qr,c=Ct;if(He(i)){var h="separator"in i?i.separator:h;o="length"in i?ie(i.length):o,c="omission"in i?Xt(i.omission):c}t=Pe(t);var m=t.length;if(Hi(t)){var y=Or(t);m=y.length}if(o>=m)return t;var $=o-Vi(c);if($<1)return c;var O=y?kn(y,0,$).join(""):t.slice(0,$);if(h===r)return O+c;if(y&&($+=O.length-$),Vc(h)){if(t.slice($).search(h)){var D,q=O;for(h.global||(h=sc(h.source,Pe(me.exec(h))+"g")),h.lastIndex=0;D=h.exec(q);)var M=D.index;O=O.slice(0,M===r?$:M)}}else if(t.indexOf(Xt(h),$)!=$){var k=O.lastIndexOf(h);k>-1&&(O=O.slice(0,k))}return O+c}function Fb(t){return t=Pe(t),t&&ku.test(t)?t.replace(Wo,dy):t}var jb=Xi(function(t,i,o){return t+(o?" ":"")+i.toUpperCase()}),zc=md("toUpperCase");function dp(t,i,o){return t=Pe(t),i=o?r:i,i===r?uy(t)?gy(t):Q0(t):t.match(i)||[]}var pp=ce(function(t,i){try{return Bt(t,r,i)}catch(o){return Hc(o)?o:new te(o)}}),kb=hn(function(t,i){return or(i,function(o){o=Hr(o),ln(t,o,kc(t[o],t))}),t});function Ub(t){var i=t==null?0:t.length,o=X();return t=i?Ue(t,function(c){if(typeof c[1]!="function")throw new ar(a);return[o(c[0]),c[1]]}):[],ce(function(c){for(var h=-1;++h<i;){var m=t[h];if(Bt(m[0],this,c))return Bt(m[1],this,c)}})}function Hb(t){return dE(cr(t,f))}function Bc(t){return function(){return t}}function Vb(t,i){return t==null||t!==t?i:t}var Gb=_d(),Wb=_d(!0);function Lt(t){return t}function Kc(t){return Bh(typeof t=="function"?t:cr(t,f))}function zb(t){return Xh(cr(t,f))}function Bb(t,i){return Yh(t,cr(i,f))}var Kb=ce(function(t,i){return function(o){return Vs(o,t,i)}}),Xb=ce(function(t,i){return function(o){return Vs(t,o,i)}});function Xc(t,i,o){var c=rt(i),h=Ea(i,c);o==null&&!(He(i)&&(h.length||!c.length))&&(o=i,i=t,t=this,h=Ea(i,rt(i)));var m=!(He(o)&&"chain"in o)||!!o.chain,y=pn(t);return or(h,function($){var O=i[$];t[$]=O,y&&(t.prototype[$]=function(){var D=this.__chain__;if(m||D){var q=t(this.__wrapped__),M=q.__actions__=xt(this.__actions__);return M.push({func:O,args:arguments,thisArg:t}),q.__chain__=D,q}return O.apply(t,xn([this.value()],arguments))})}),t}function Yb(){return tt._===this&&(tt._=wy),this}function Yc(){}function Jb(t){return t=ie(t),ce(function(i){return Jh(i,t)})}var Zb=Ac(Ue),Qb=Ac(vh),eS=Ac(Zu);function mp(t){return Dc(t)?Qu(Hr(t)):IE(t)}function tS(t){return function(i){return t==null?r:mi(t,i)}}var rS=yd(),nS=yd(!0);function Jc(){return[]}function Zc(){return!1}function iS(){return{}}function sS(){return""}function oS(){return!0}function aS(t,i){if(t=ie(t),t<1||t>Mr)return[];var o=Vt,c=ht(t,Vt);i=X(i),t-=Vt;for(var h=rc(c,i);++o<t;)i(o);return h}function uS(t){return ne(t)?Ue(t,Hr):Yt(t)?[t]:xt(qd(Pe(t)))}function cS(t){var i=++Ey;return Pe(t)+i}var lS=Ra(function(t,i){return t+i},0),fS=Pc("ceil"),hS=Ra(function(t,i){return t/i},1),dS=Pc("floor");function pS(t){return t&&t.length?ya(t,Lt,dc):r}function mS(t,i){return t&&t.length?ya(t,X(i,2),dc):r}function gS(t){return $h(t,Lt)}function _S(t,i){return $h(t,X(i,2))}function vS(t){return t&&t.length?ya(t,Lt,_c):r}function yS(t,i){return t&&t.length?ya(t,X(i,2),_c):r}var ES=Ra(function(t,i){return t*i},1),$S=Pc("round"),wS=Ra(function(t,i){return t-i},0);function bS(t){return t&&t.length?tc(t,Lt):0}function SS(t,i){return t&&t.length?tc(t,X(i,2)):0}return p.after=zw,p.ary=zd,p.assign=x1,p.assignIn=op,p.assignInWith=ja,p.assignWith=D1,p.at=q1,p.before=Bd,p.bind=kc,p.bindAll=kb,p.bindKey=Kd,p.castArray=i1,p.chain=Vd,p.chunk=d$,p.compact=p$,p.concat=m$,p.cond=Ub,p.conforms=Hb,p.constant=Bc,p.countBy=bw,p.create=L1,p.curry=Xd,p.curryRight=Yd,p.debounce=Jd,p.defaults=M1,p.defaultsDeep=F1,p.defer=Bw,p.delay=Kw,p.difference=g$,p.differenceBy=_$,p.differenceWith=v$,p.drop=y$,p.dropRight=E$,p.dropRightWhile=$$,p.dropWhile=w$,p.fill=b$,p.filter=Ow,p.flatMap=Pw,p.flatMapDeep=Cw,p.flatMapDepth=Iw,p.flatten=jd,p.flattenDeep=S$,p.flattenDepth=O$,p.flip=Xw,p.flow=Gb,p.flowRight=Wb,p.fromPairs=R$,p.functions=W1,p.functionsIn=z1,p.groupBy=Tw,p.initial=P$,p.intersection=C$,p.intersectionBy=I$,p.intersectionWith=T$,p.invert=K1,p.invertBy=X1,p.invokeMap=xw,p.iteratee=Kc,p.keyBy=Dw,p.keys=rt,p.keysIn=qt,p.map=xa,p.mapKeys=J1,p.mapValues=Z1,p.matches=zb,p.matchesProperty=Bb,p.memoize=qa,p.merge=Q1,p.mergeWith=ap,p.method=Kb,p.methodOf=Xb,p.mixin=Xc,p.negate=La,p.nthArg=Jb,p.omit=eb,p.omitBy=tb,p.once=Yw,p.orderBy=qw,p.over=Zb,p.overArgs=Jw,p.overEvery=Qb,p.overSome=eS,p.partial=Uc,p.partialRight=Zd,p.partition=Lw,p.pick=rb,p.pickBy=up,p.property=mp,p.propertyOf=tS,p.pull=q$,p.pullAll=Ud,p.pullAllBy=L$,p.pullAllWith=M$,p.pullAt=F$,p.range=rS,p.rangeRight=nS,p.rearg=Zw,p.reject=jw,p.remove=j$,p.rest=Qw,p.reverse=Fc,p.sampleSize=Uw,p.set=ib,p.setWith=sb,p.shuffle=Hw,p.slice=k$,p.sortBy=Ww,p.sortedUniq=B$,p.sortedUniqBy=K$,p.split=Pb,p.spread=e1,p.tail=X$,p.take=Y$,p.takeRight=J$,p.takeRightWhile=Z$,p.takeWhile=Q$,p.tap=pw,p.throttle=t1,p.thru=Na,p.toArray=np,p.toPairs=cp,p.toPairsIn=lp,p.toPath=uS,p.toPlainObject=sp,p.transform=ob,p.unary=r1,p.union=ew,p.unionBy=tw,p.unionWith=rw,p.uniq=nw,p.uniqBy=iw,p.uniqWith=sw,p.unset=ab,p.unzip=jc,p.unzipWith=Hd,p.update=ub,p.updateWith=cb,p.values=Zi,p.valuesIn=lb,p.without=ow,p.words=dp,p.wrap=n1,p.xor=aw,p.xorBy=uw,p.xorWith=cw,p.zip=lw,p.zipObject=fw,p.zipObjectDeep=hw,p.zipWith=dw,p.entries=cp,p.entriesIn=lp,p.extend=op,p.extendWith=ja,Xc(p,p),p.add=lS,p.attempt=pp,p.camelCase=pb,p.capitalize=fp,p.ceil=fS,p.clamp=fb,p.clone=s1,p.cloneDeep=a1,p.cloneDeepWith=u1,p.cloneWith=o1,p.conformsTo=c1,p.deburr=hp,p.defaultTo=Vb,p.divide=hS,p.endsWith=mb,p.eq=Ar,p.escape=gb,p.escapeRegExp=_b,p.every=Sw,p.find=Rw,p.findIndex=Md,p.findKey=j1,p.findLast=Aw,p.findLastIndex=Fd,p.findLastKey=k1,p.floor=dS,p.forEach=Gd,p.forEachRight=Wd,p.forIn=U1,p.forInRight=H1,p.forOwn=V1,p.forOwnRight=G1,p.get=Gc,p.gt=l1,p.gte=f1,p.has=B1,p.hasIn=Wc,p.head=kd,p.identity=Lt,p.includes=Nw,p.indexOf=A$,p.inRange=hb,p.invoke=Y1,p.isArguments=vi,p.isArray=ne,p.isArrayBuffer=h1,p.isArrayLike=Dt,p.isArrayLikeObject=Be,p.isBoolean=d1,p.isBuffer=Un,p.isDate=p1,p.isElement=m1,p.isEmpty=g1,p.isEqual=_1,p.isEqualWith=v1,p.isError=Hc,p.isFinite=y1,p.isFunction=pn,p.isInteger=Qd,p.isLength=Ma,p.isMap=ep,p.isMatch=E1,p.isMatchWith=$1,p.isNaN=w1,p.isNative=b1,p.isNil=O1,p.isNull=S1,p.isNumber=tp,p.isObject=He,p.isObjectLike=ze,p.isPlainObject=Xs,p.isRegExp=Vc,p.isSafeInteger=R1,p.isSet=rp,p.isString=Fa,p.isSymbol=Yt,p.isTypedArray=Ji,p.isUndefined=A1,p.isWeakMap=P1,p.isWeakSet=C1,p.join=N$,p.kebabCase=vb,p.last=fr,p.lastIndexOf=x$,p.lowerCase=yb,p.lowerFirst=Eb,p.lt=I1,p.lte=T1,p.max=pS,p.maxBy=mS,p.mean=gS,p.meanBy=_S,p.min=vS,p.minBy=yS,p.stubArray=Jc,p.stubFalse=Zc,p.stubObject=iS,p.stubString=sS,p.stubTrue=oS,p.multiply=ES,p.nth=D$,p.noConflict=Yb,p.noop=Yc,p.now=Da,p.pad=$b,p.padEnd=wb,p.padStart=bb,p.parseInt=Sb,p.random=db,p.reduce=Mw,p.reduceRight=Fw,p.repeat=Ob,p.replace=Rb,p.result=nb,p.round=$S,p.runInContext=S,p.sample=kw,p.size=Vw,p.snakeCase=Ab,p.some=Gw,p.sortedIndex=U$,p.sortedIndexBy=H$,p.sortedIndexOf=V$,p.sortedLastIndex=G$,p.sortedLastIndexBy=W$,p.sortedLastIndexOf=z$,p.startCase=Cb,p.startsWith=Ib,p.subtract=wS,p.sum=bS,p.sumBy=SS,p.template=Tb,p.times=aS,p.toFinite=mn,p.toInteger=ie,p.toLength=ip,p.toLower=Nb,p.toNumber=hr,p.toSafeInteger=N1,p.toString=Pe,p.toUpper=xb,p.trim=Db,p.trimEnd=qb,p.trimStart=Lb,p.truncate=Mb,p.unescape=Fb,p.uniqueId=cS,p.upperCase=jb,p.upperFirst=zc,p.each=Gd,p.eachRight=Wd,p.first=kd,Xc(p,function(){var t={};return kr(p,function(i,o){Ce.call(p.prototype,o)||(t[o]=i)}),t}(),{chain:!1}),p.VERSION=e,or(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){p[t].placeholder=p}),or(["drop","take"],function(t,i){_e.prototype[t]=function(o){o=o===r?1:Qe(ie(o),0);var c=this.__filtered__&&!i?new _e(this):this.clone();return c.__filtered__?c.__takeCount__=ht(o,c.__takeCount__):c.__views__.push({size:ht(o,Vt),type:t+(c.__dir__<0?"Right":"")}),c},_e.prototype[t+"Right"]=function(o){return this.reverse()[t](o).reverse()}}),or(["filter","map","takeWhile"],function(t,i){var o=i+1,c=o==Ht||o==qi;_e.prototype[t]=function(h){var m=this.clone();return m.__iteratees__.push({iteratee:X(h,3),type:o}),m.__filtered__=m.__filtered__||c,m}}),or(["head","last"],function(t,i){var o="take"+(i?"Right":"");_e.prototype[t]=function(){return this[o](1).value()[0]}}),or(["initial","tail"],function(t,i){var o="drop"+(i?"":"Right");_e.prototype[t]=function(){return this.__filtered__?new _e(this):this[o](1)}}),_e.prototype.compact=function(){return this.filter(Lt)},_e.prototype.find=function(t){return this.filter(t).head()},_e.prototype.findLast=function(t){return this.reverse().find(t)},_e.prototype.invokeMap=ce(function(t,i){return typeof t=="function"?new _e(this):this.map(function(o){return Vs(o,t,i)})}),_e.prototype.reject=function(t){return this.filter(La(X(t)))},_e.prototype.slice=function(t,i){t=ie(t);var o=this;return o.__filtered__&&(t>0||i<0)?new _e(o):(t<0?o=o.takeRight(-t):t&&(o=o.drop(t)),i!==r&&(i=ie(i),o=i<0?o.dropRight(-i):o.take(i-t)),o)},_e.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},_e.prototype.toArray=function(){return this.take(Vt)},kr(_e.prototype,function(t,i){var o=/^(?:filter|find|map|reject)|While$/.test(i),c=/^(?:head|last)$/.test(i),h=p[c?"take"+(i=="last"?"Right":""):i],m=c||/^find/.test(i);!h||(p.prototype[i]=function(){var y=this.__wrapped__,$=c?[1]:arguments,O=y instanceof _e,D=$[0],q=O||ne(y),M=function(pe){var ve=h.apply(p,xn([pe],$));return c&&k?ve[0]:ve};q&&o&&typeof D=="function"&&D.length!=1&&(O=q=!1);var k=this.__chain__,W=!!this.__actions__.length,Y=m&&!k,oe=O&&!W;if(!m&&q){y=oe?y:new _e(this);var J=t.apply(y,$);return J.__actions__.push({func:Na,args:[M],thisArg:r}),new ur(J,k)}return Y&&oe?t.apply(this,$):(J=this.thru(M),Y?c?J.value()[0]:J.value():J)})}),or(["pop","push","shift","sort","splice","unshift"],function(t){var i=ia[t],o=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);p.prototype[t]=function(){var h=arguments;if(c&&!this.__chain__){var m=this.value();return i.apply(ne(m)?m:[],h)}return this[o](function(y){return i.apply(ne(y)?y:[],h)})}}),kr(_e.prototype,function(t,i){var o=p[i];if(o){var c=o.name+"";Ce.call(zi,c)||(zi[c]=[]),zi[c].push({name:i,func:o})}}),zi[Oa(r,L).name]=[{name:"wrapper",func:r}],_e.prototype.clone=Fy,_e.prototype.reverse=jy,_e.prototype.value=ky,p.prototype.at=mw,p.prototype.chain=gw,p.prototype.commit=_w,p.prototype.next=vw,p.prototype.plant=Ew,p.prototype.reverse=$w,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=ww,p.prototype.first=p.prototype.head,Ls&&(p.prototype[Ls]=yw),p},qn=_y();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(tt._=qn,define(function(){return qn})):li?((li.exports=qn)._=qn,Ku._=qn):tt._=qn}).call(rs)});var vl=T(Mt=>{"use strict";var GR=Mt&&Mt.__awaiter||function(r,e,n,s){function a(u){return u instanceof n?u:new n(function(l){l(u)})}return new(n||(n=Promise))(function(u,l){function d(_){try{f(s.next(_))}catch(w){l(w)}}function g(_){try{f(s.throw(_))}catch(w){l(w)}}function f(_){_.done?u(_.value):a(_.value).then(d,g)}f((s=s.apply(r,e||[])).next())})},WR=Mt&&Mt.__generator||function(r,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},s,a,u,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(f){return function(_){return g([f,_])}}function g(f){if(s)throw new TypeError("Generator is already executing.");for(;n;)try{if(s=1,a&&(u=f[0]&2?a.return:f[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,f[1])).done)return u;switch(a=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,a=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){n.label=f[1];break}if(f[0]===6&&n.label<u[1]){n.label=u[1],u=f;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(f);break}u[2]&&n.ops.pop(),n.trys.pop();continue}f=e.call(r,n)}catch(_){f=[6,_],a=0}finally{s=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Ig=Mt&&Mt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Mt,"__esModule",{value:!0});Mt.handlerProfileFile=Mt.getConfig=Mt.setConfig=void 0;var Tg=Ig(require("path")),_l=Ig(yn()),Vr=_l.default.fse,eu=_l.default.jsyaml,gl=_l.default.getRootHome;function zR(r){var e=xg();Vr.writeFileSync(e,eu.dump(r))}function Ng(){var r=xg();if(!Vr.existsSync(r))return{};try{var e=eu.load(Vr.readFileSync(r,"utf8"))||{};return e}catch(n){throw n}}function xg(){var r=Tg.default.join(gl(),"set-config.yml");return Vr.existsSync(r)||Vr.createFileSync(r),r}function BR(r,e){var n=Ng();n[r]=e,zR(n)}Mt.setConfig=BR;function KR(r,e){var n=Ng();return n[r]||e}Mt.getConfig=KR;function XR(r){return GR(this,void 0,void 0,function(){var e,n,s,a,u,l,d;return WR(this,function(g){switch(g.label){case 0:if(e=r.filePath||"set-config.yml",n=Tg.default.join(gl(),e),s=Vr.existsSync(n),a={},s)return[3,5];u=gl(),g.label=1;case 1:return g.trys.push([1,2,,4]),Vr.statSync(u),[3,4];case 2:return l=g.sent(),[4,Vr.mkdirSync(u)];case 3:return g.sent(),[3,4];case 4:return[3,6];case 5:try{a=eu.load(Vr.readFileSync(n,"utf8"))||{}}catch(f){throw f}g.label=6;case 6:return r.read?[2,a]:(d=r.configKey||"",a[d]=r.data,[4,Vr.writeFileSync(n,eu.dump(a))]);case 7:return g.sent(),[2,a]}})})}Mt.handlerProfileFile=XR});var Dg=T((PD,YR)=>{YR.exports={name:"@serverless-devs/s",version:"2.0.100",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1",ajv:"^8.10.0","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.4.7","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.1.3","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"latest"}}});var ru=T(Q=>{"use strict";var JR=Q&&Q.__createBinding||(Object.create?function(r,e,n,s){s===void 0&&(s=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(r,s,a)}:function(r,e,n,s){s===void 0&&(s=n),r[s]=e[n]}),ZR=Q&&Q.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),QR=Q&&Q.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var n in r)n!=="default"&&Object.prototype.hasOwnProperty.call(r,n)&&JR(e,r,n);return ZR(e,r),e},ho=Q&&Q.__awaiter||function(r,e,n,s){function a(u){return u instanceof n?u:new n(function(l){l(u)})}return new(n||(n=Promise))(function(u,l){function d(_){try{f(s.next(_))}catch(w){l(w)}}function g(_){try{f(s.throw(_))}catch(w){l(w)}}function f(_){_.done?u(_.value):a(_.value).then(d,g)}f((s=s.apply(r,e||[])).next())})},po=Q&&Q.__generator||function(r,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},s,a,u,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(f){return function(_){return g([f,_])}}function g(f){if(s)throw new TypeError("Generator is already executing.");for(;n;)try{if(s=1,a&&(u=f[0]&2?a.return:f[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,f[1])).done)return u;switch(a=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,a=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){n.label=f[1];break}if(f[0]===6&&n.label<u[1]){n.label=u[1],u=f;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(f);break}u[2]&&n.ops.pop(),n.trys.pop();continue}f=e.call(r,n)}catch(_){f=[6,_],a=0}finally{s=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},yl=Q&&Q.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Q,"__esModule",{value:!0});Q.emoji=Q.mark=Q.replaceTemplate=Q.replaceFun=Q.getLang=Q.printn=Q.getFolderSize=Q.getVersion=Q.getPid=Q.aiRequest=Q.getCredentialWithAll=Q.getCredentialWithExisted=Q.getProcessArgv=Q.bgRed=Q.yellow=Q.red=void 0;var eA=yl(require("path")),fo=yl(require("fs")),Vn=Cg(),tA=yl(require("os")),Gr=QR(yn()),rA=vl(),qg=Dg(),tu=Gr.default.colors,nA=Gr.default.got,iA=Gr.default.getMAC,sA=Gr.default.isDocker,oA=Gr.default.isCiCdEnv,aA=Gr.default.getGlobalArgs,Lg=Gr.default.getCredential,Mg=Gr.default.getCredentialAliasList;Q.red=tu.hex("#fd5750");Q.yellow=tu.hex("#F3F99D");Q.bgRed=tu.hex("#000").bgHex("#fd5750");var uA=function(){var r=process.env.serverless_devs_temp_argv;try{var e=JSON.parse(r),n=aA(e);return process.argv=process.argv.slice(0,2).concat(n._argsObj),(0,Vn.assign)({},n,{noHelpArgv:process.argv.slice(0,2).concat((0,Vn.filter)(n._argsObj,function(s){return!(0,Vn.includes)(["-h","--help"],s)}))})}catch{return{}}};Q.getProcessArgv=uA;var cA=function(r){return ho(void 0,void 0,void 0,function(){var e,n;return po(this,function(s){switch(s.label){case 0:return[4,Mg()];case 1:return e=s.sent(),(0,Vn.includes)(e,r)?[4,Lg(r)]:[3,3];case 2:return n=s.sent(),[2,(0,Vn.omit)(n,"Alias")];case 3:return[2]}})})};Q.getCredentialWithExisted=cA;var lA=function(){return ho(void 0,void 0,void 0,function(){var r,e,n,s,a,u;return po(this,function(l){switch(l.label){case 0:return[4,Mg()];case 1:if(r=l.sent(),!(r.length>0))return[3,6];e={},n=0,s=r,l.label=2;case 2:return n<s.length?(a=s[n],[4,Lg(a)]):[3,5];case 3:u=l.sent(),e[u.Alias]=(0,Vn.omit)(u,"Alias"),l.label=4;case 4:return n++,[3,2];case 5:return[2,e];case 6:return[2]}})})};Q.getCredentialWithAll=lA;var fA=function(r,e){return e===void 0&&(e="unknow"),ho(void 0,void 0,void 0,function(){var n,s,a,u;return po(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),n=(0,rA.getConfig)("analysis"),n!=="enable"?[2]:sA()||oA()?[2]:[4,nA("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(e,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0})];case 1:return s=l.sent(),a=(0,Vn.get)(s.body,"shorturl"),a&&console.log(`AI Tips:
35
- You can try to solve the problem through: `.concat(tu.underline(a),`
36
- `)),[3,3];case 2:return u=l.sent(),[3,3];case 3:return[2]}})})};Q.aiRequest=fA;var hA=function(){try{return iA().replace(/:/g,"")}catch{return"unknown"}};Q.getPid=hA;function dA(){var r=(0,Gr.getCoreVersion)(),e=["".concat(qg.name,": ").concat(qg.version),r?"core: ".concat(r):void 0,"s-home: ".concat(Gr.default.getRootHome()),"".concat(process.platform,"-").concat(process.arch),"node-".concat(process.version)];return e.filter(function(n){return n}).join(", ")}Q.getVersion=dA;function pA(r){return ho(this,void 0,void 0,function(){function e(a){return ho(this,void 0,void 0,function(){var u,l;return po(this,function(d){switch(d.label){case 0:return u=fo.default.lstatSync(a),typeof u!="object"?[2]:(n.set(u.ino,u.size),u.isDirectory()?(l=fo.default.readdirSync(a),typeof l!="object"?[2]:[4,Promise.all(l.map(function(g){return e(eA.default.join(a,g))}))]):[3,2]);case 1:d.sent(),d.label=2;case 2:return[2]}})})}var n,s;return po(this,function(a){switch(a.label){case 0:return n=new Map,[4,e(r)];case 1:return a.sent(),s=Array.from(n.values()).reduce(function(u,l){return u+l},0),[2,s]}})})}Q.getFolderSize=pA;function mA(r,e){e===void 0&&(e=" ");for(var n="",s=0;s<r;s++)n=n+e;return n}Q.printn=mA;function gA(){return"en"}Q.getLang=gA;function Fg(r,e){var n=/\{\{(.*?)\}\}/g,s=r.match(n);if(s)for(var a=0;a<s.length;a++){var u=s[a].replace(/{{|}}/g,""),l=(0,Vn.trim)(u.split("|")[0]);e[l]&&(r=r.replace(s[a],e[l]))}return r}Q.replaceFun=Fg;function _A(r,e){r.forEach(function(n){if(fo.default.existsSync(n)){var s=fo.default.readFileSync(n,"utf-8"),a=Fg(s,e);fo.default.writeFileSync(n,a,"utf-8")}})}Q.replaceTemplate=_A;function vA(r){if(!r)return r;var e=r.slice(-4);return"***********".concat(e)}Q.mark=vA;function yA(r,e){return tA.default.platform()==="win32"?e||"\u25C6":"".concat(r," ")}Q.emoji=yA});var jg=T(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.default={clean_up_the_environment:"\u6E05\u7406\u73AF\u5883",display_help_for_command:"\u663E\u793A\u547D\u4EE4\u5E2E\u52A9",remove_components:"\u5220\u9664\u7EC4\u4EF6",delete_the_file_under_the_cache:"\u5220\u9664\u7F13\u5B58\u91CC\u7684\u7684<dirname>\u6587\u4EF6",record_your_log_information:"\u662F\u5426\u8BB0\u5F55\u60A8\u7684\u65E5\u5FD7\u4FE1\u606F\uFF1F",init_pproject_deploy_tip:"\u662F\u5426\u7ACB\u5373\u90E8\u7F72\u8BE5\u9879\u76EE\uFF1F",tip_for_a_serverless_project:"\u68C0\u6D4B\u5230\u5F53\u524D\u76EE\u5F55\u4E0B\u5DF2\u5B58\u5728\u4E00\u4E2AServerless-Devs\u9879\u76EE\uFF0C\u8BF7\u901A\u8FC7 's deploy' \u8FDB\u884C\u90E8\u7F72\u6216\u901A\u8FC7 's -h' \u83B7\u53D6\u66F4\u591A\u4FE1\u606F",create_a_new_project:"\u672A\u68C0\u6D4B\u5230 Serverless-Devs \u9879\u76EE\uFF0C\u662F\u5426\u65B0\u5EFA\u4E00\u4E2A\u9879\u76EE\uFF1F",en:"English (en)",zh:"\u4E2D\u6587 (zh)",select_current_language:"\u8BF7\u9009\u62E9\u5F53\u524D\u8BED\u8A00","app-tip":"\u8BF7\u9009\u62E9\u60A8\u5E0C\u671B\u521B\u5EFA\u7684 Serverless-Devs \u5E94\u7528","template-tip":"\u8BF7\u9009\u62E9\u60A8\u559C\u6B22\u7684\u6A21\u7248","fc-runtime-starter":"fc-runtime-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A FC \u51FD\u6570","fc-custom-container-stater":"fc-custom-container-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A custom-container \u5E94\u7528",web:"web-framework-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Web \u6846\u67B6","static-site":"static-website-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","best-practice":"serverless-best-practice - \u5FEB\u901F\u4F53\u9A8C Serverless \u6700\u4F73\u5B9E\u8DF5","devs-template":"Serverless Devs \u5F00\u53D1\u6A21\u677F","fc-http-nodejs":"fc-http-nodejs - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nodejs12 \u51FD\u6570","fc-http-python":"fc-http-python - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A python3 \u51FD\u6570","fc-http-java":"fc-http-java - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A java8 \u51FD\u6570","fc-custom-container-event-python3":"fc-custom-container-event-python3 - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 python3 \u5E94\u7528","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 cpp \u5E94\u7528","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 springboot \u5E94\u7528","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 aspdotnetcore \u5E94\u7528","express-starter":"express-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A express \u57FA\u7840\u5E94\u7528","koa-starter":"koa-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A koa \u57FA\u7840\u5E94\u7528","nuxtjs-starter":"nuxtjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nuxtjs \u57FA\u7840\u5E94\u7528","eggjs-starter":"eggjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A eggjs \u57FA\u7840\u5E94\u7528","flask-starter":"flask-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A flask \u57FA\u7840\u5E94\u7528","SpringBoot-starter":"SpringBoot-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A SpringBoot \u57FA\u7840\u5E94\u7528","Zblog-starter":"Zblog-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Zblog \u57FA\u7840\u5E94\u7528","website-starter":"website-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","react-starter":"react-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A React.js \u5E94\u7528","vue-starter":"vue-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Vue.js \u5E94\u7528",puppeteer:"puppeteer - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E puppeteer \u622A\u56FE\u7684 Web \u5E94\u7528",ffmpeg:"ffmpeg - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E ffmpeg \u5B9E\u73B0\u97F3\u89C6\u9891\u5904\u7406\u5E94\u7528",pdf2Img:"pdf2Img - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A pdf \u8F6C\u56FE\u7247\u5E94\u7528",tensorflow:"tensorflow - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A tensorflow \u5E94\u7528",todoList:"todoList - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E nodejs \u7684\u7F51\u9875 TodoList \u5E94\u7528"}});var kg=T($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.default={clean_up_the_environment:"Clean up the environment",display_help_for_command:"Display help for command",remove_components:"Remove component (like: fc, fc@0.0.1)",delete_the_file_under_the_cache:"Delete the <dirname> file in the cache",record_your_log_information:"Do you record your log information?",init_pproject_deploy_tip:"Do you want to deploy the project immediately?",tip_for_a_serverless_project:"A Serverless-Devs project is detected in the current directory, please deploy via 's deploy' or get more information via 's -h'",create_a_new_project:"No Serverless-Devs project is currently detected. Do you want to create a new project?",en:"English (en)",zh:"Chinese (zh)",select_current_language:"Please select current language","app-tip":"Hello, serverlesser. Which template do you like?","template-tip":"Which template do you like?","fc-runtime-starter":"fc-runtime-starter - Deploy FC function in 5 minutes","fc-custom-container-stater":"fc-custom-container-stater - Deploy FC function with custom-container",web:"web-framework-stater-Quickly deploy a web framework","static-site":"static-website-stater-Quickly deploy a static website","best-practice":"serverless-best-practice-Quickly experience serverless best practices","devs-template":"Serverless Develop scaffold","fc-http-nodejs":"fc-http-nodejs - Deploy FC nodejs12 runtime function","fc-http-python":"fc-http-python - Deploy FC python3 runtime function","fc-http-java":"fc-http-java - Deploy FC java8 runtime function","fc-custom-container-event-python3":"fc-custom-container-event-python3 - Deploy python3 event-triggered application","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - Deploy cpp event-triggered application","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - Deploy springboot HTTP Request-triggered application","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - Deploy dotnetcore HTTP Request-triggered application","express-starter":"express-starter - Deploy express application","koa-starter":"koa-starter - Deploy koa application","nuxtjs-starter":"nuxtjs-starter - Deploy nuxtjs application","eggjs-starter":"eggjs-starter - Deploy eggjs application","flask-starter":"flask-starter - Deploy flask application","SpringBoot-starter":"SpringBoot-starter - Deploy SpringBoot application","Zblog-starter":"Zblog-starter - Deploy Zblog application","website-starter":"website-starter - Deploy static website","react-starter":"react-starter - Deploy React.js application","vue-starter":"vue-starter - Deploy Vue.js application",puppeteer:"puppeteer - Deploy screenshot application base on puppeteer + fc",ffmpeg:"ffmpeg - Deploy audio and video processing application base on ffmpeg + fc",pdf2Img:"pdf2Img - Deploy pdf to images application",tensorflow:"tensorflow - Deploy tensorflow application",todoList:"todoList - Deploy todoList application"}});var bl=T(mo=>{"use strict";var Ug=mo&&mo.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(mo,"__esModule",{value:!0});var EA=ru(),$A=Ug(jg()),wA=Ug(kg()),wl={en:wA.default,zh:$A.default},bA=function(r){var e=(0,EA.getLang)(),n=wl[e]?wl[e][r]:wl.en[r];return n||r};mo.default=bA});var Ol=T(go=>{"use strict";var SA=go&&go.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(go,"__esModule",{value:!0});var OA=SA(yn()),RA=OA.default.Logger,Sl=new RA("S-CLI");Sl.success=function(r){return Sl.log(r,"green")};go.default=Sl});var Al=T(gt=>{"use strict";var AA=gt&&gt.__createBinding||(Object.create?function(r,e,n,s){s===void 0&&(s=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(r,s,a)}:function(r,e,n,s){s===void 0&&(s=n),r[s]=e[n]}),Hg=gt&&gt.__exportStar||function(r,e){for(var n in r)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&AA(e,r,n)},Rl=gt&&gt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(gt,"__esModule",{value:!0});gt.registerCommandChecker=gt.i18n=gt.logger=void 0;var PA=Rl(Ol());Hg(ru(),gt);Hg(vl(),gt);var CA=Ol();Object.defineProperty(gt,"logger",{enumerable:!0,get:function(){return Rl(CA).default}});var IA=bl();Object.defineProperty(gt,"i18n",{enumerable:!0,get:function(){return Rl(IA).default}});function TA(r){r.on("command:*",function(e){var n=r.commands.map(function(s){return s.name()});n.includes(e[0])||(PA.default.error(" error: unknown command ".concat(e[0])),r.help())})}gt.registerCommandChecker=TA});var vo=T(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.regexpCode=we.getEsmExportName=we.getProperty=we.safeStringify=we.stringify=we.strConcat=we.addCodeArg=we.str=we._=we.nil=we._Code=we.Name=we.IDENTIFIER=we._CodeOrName=void 0;var nu=class{};we._CodeOrName=nu;we.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ns=class extends nu{constructor(e){super();if(!we.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};we.Name=ns;var Ir=class extends nu{constructor(e){super();this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((n,s)=>`${n}${s}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((n,s)=>(s instanceof ns&&(n[s.str]=(n[s.str]||0)+1),n),{})}};we._Code=Ir;we.nil=new Ir("");function Vg(r,...e){let n=[r[0]],s=0;for(;s<e.length;)Cl(n,e[s]),n.push(r[++s]);return new Ir(n)}we._=Vg;var Pl=new Ir("+");function Gg(r,...e){let n=[_o(r[0])],s=0;for(;s<e.length;)n.push(Pl),Cl(n,e[s]),n.push(Pl,_o(r[++s]));return NA(n),new Ir(n)}we.str=Gg;function Cl(r,e){e instanceof Ir?r.push(...e._items):e instanceof ns?r.push(e):r.push(qA(e))}we.addCodeArg=Cl;function NA(r){let e=1;for(;e<r.length-1;){if(r[e]===Pl){let n=xA(r[e-1],r[e+1]);if(n!==void 0){r.splice(e-1,3,n);continue}r[e++]="+"}e++}}function xA(r,e){if(e==='""')return r;if(r==='""')return e;if(typeof r=="string")return e instanceof ns||r[r.length-1]!=='"'?void 0:typeof e!="string"?`${r.slice(0,-1)}${e}"`:e[0]==='"'?r.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(r instanceof ns))return`"${r}${e.slice(1)}`}function DA(r,e){return e.emptyStr()?r:r.emptyStr()?e:Gg`${r}${e}`}we.strConcat=DA;function qA(r){return typeof r=="number"||typeof r=="boolean"||r===null?r:_o(Array.isArray(r)?r.join(","):r)}function LA(r){return new Ir(_o(r))}we.stringify=LA;function _o(r){return JSON.stringify(r).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}we.safeStringify=_o;function MA(r){return typeof r=="string"&&we.IDENTIFIER.test(r)?new Ir(`.${r}`):Vg`[${r}]`}we.getProperty=MA;function FA(r){if(typeof r=="string"&&we.IDENTIFIER.test(r))return new Ir(`${r}`);throw new Error(`CodeGen: invalid export name: ${r}, use explicit $id name mapping`)}we.getEsmExportName=FA;function jA(r){return new Ir(r.toString())}we.regexpCode=jA});var xl=T(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.ValueScope=Rt.ValueScopeName=Rt.Scope=Rt.varKinds=Rt.UsedValueState=void 0;var Ft=vo(),Wg=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`);this.value=e.value}},Il;(function(r){r[r.Started=0]="Started",r[r.Completed=1]="Completed"})(Il=Rt.UsedValueState||(Rt.UsedValueState={}));Rt.varKinds={const:new Ft.Name("const"),let:new Ft.Name("let"),var:new Ft.Name("var")};var Tl=class{constructor({prefixes:e,parent:n}={}){this._names={},this._prefixes=e,this._parent=n}toName(e){return e instanceof Ft.Name?e:this.name(e)}name(e){return new Ft.Name(this._newName(e))}_newName(e){let n=this._names[e]||this._nameGroup(e);return`${e}${n.index++}`}_nameGroup(e){var n,s;if(((s=(n=this._parent)===null||n===void 0?void 0:n._prefixes)===null||s===void 0?void 0:s.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Rt.Scope=Tl;var Nl=class extends Ft.Name{constructor(e,n){super(n);this.prefix=e}setValue(e,{property:n,itemIndex:s}){this.value=e,this.scopePath=(0,Ft._)`.${new Ft.Name(n)}[${s}]`}};Rt.ValueScopeName=Nl;var kA=(0,Ft._)`\n`,zg=class extends Tl{constructor(e){super(e);this._values={},this._scope=e.scope,this.opts=dr(Xe({},e),{_n:e.lines?kA:Ft.nil})}get(){return this._scope}name(e){return new Nl(e,this._newName(e))}value(e,n){var s;if(n.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let a=this.toName(e),{prefix:u}=a,l=(s=n.key)!==null&&s!==void 0?s:n.ref,d=this._values[u];if(d){let _=d.get(l);if(_)return _}else d=this._values[u]=new Map;d.set(l,a);let g=this._scope[u]||(this._scope[u]=[]),f=g.length;return g[f]=n.ref,a.setValue(n,{property:u,itemIndex:f}),a}getValue(e,n){let s=this._values[e];if(!!s)return s.get(n)}scopeRefs(e,n=this._values){return this._reduceValues(n,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,Ft._)`${e}${s.scopePath}`})}scopeCode(e=this._values,n,s){return this._reduceValues(e,a=>{if(a.value===void 0)throw new Error(`CodeGen: name "${a}" has no value`);return a.value.code},n,s)}_reduceValues(e,n,s={},a){let u=Ft.nil;for(let l in e){let d=e[l];if(!d)continue;let g=s[l]=s[l]||new Map;d.forEach(f=>{if(g.has(f))return;g.set(f,Il.Started);let _=n(f);if(_){let w=this.opts.es5?Rt.varKinds.var:Rt.varKinds.const;u=(0,Ft._)`${u}${w} ${f} = ${_};${this.opts._n}`}else if(_=a==null?void 0:a(f))u=(0,Ft._)`${u}${_}${this.opts._n}`;else throw new Wg(f);g.set(f,Il.Completed)})}return u}};Rt.ValueScope=zg});var he=T(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.or=le.and=le.not=le.CodeGen=le.operators=le.varKinds=le.ValueScopeName=le.ValueScope=le.Scope=le.Name=le.regexpCode=le.stringify=le.getProperty=le.nil=le.strConcat=le.str=le._=void 0;var ye=vo(),Tr=xl(),Gn=vo();Object.defineProperty(le,"_",{enumerable:!0,get:function(){return Gn._}});Object.defineProperty(le,"str",{enumerable:!0,get:function(){return Gn.str}});Object.defineProperty(le,"strConcat",{enumerable:!0,get:function(){return Gn.strConcat}});Object.defineProperty(le,"nil",{enumerable:!0,get:function(){return Gn.nil}});Object.defineProperty(le,"getProperty",{enumerable:!0,get:function(){return Gn.getProperty}});Object.defineProperty(le,"stringify",{enumerable:!0,get:function(){return Gn.stringify}});Object.defineProperty(le,"regexpCode",{enumerable:!0,get:function(){return Gn.regexpCode}});Object.defineProperty(le,"Name",{enumerable:!0,get:function(){return Gn.Name}});var cu=xl();Object.defineProperty(le,"Scope",{enumerable:!0,get:function(){return cu.Scope}});Object.defineProperty(le,"ValueScope",{enumerable:!0,get:function(){return cu.ValueScope}});Object.defineProperty(le,"ValueScopeName",{enumerable:!0,get:function(){return cu.ValueScopeName}});Object.defineProperty(le,"varKinds",{enumerable:!0,get:function(){return cu.varKinds}});le.operators={GT:new ye._Code(">"),GTE:new ye._Code(">="),LT:new ye._Code("<"),LTE:new ye._Code("<="),EQ:new ye._Code("==="),NEQ:new ye._Code("!=="),NOT:new ye._Code("!"),OR:new ye._Code("||"),AND:new ye._Code("&&"),ADD:new ye._Code("+")};var Wn=class{optimizeNodes(){return this}optimizeNames(e,n){return this}},Bg=class extends Wn{constructor(e,n,s){super();this.varKind=e,this.name=n,this.rhs=s}render({es5:e,_n:n}){let s=e?Tr.varKinds.var:this.varKind,a=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${a};`+n}optimizeNames(e,n){if(!!e[this.name.str])return this.rhs&&(this.rhs=ss(this.rhs,e,n)),this}get names(){return this.rhs instanceof ye._CodeOrName?this.rhs.names:{}}},Ll=class extends Wn{constructor(e,n,s){super();this.lhs=e,this.rhs=n,this.sideEffects=s}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof ye.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=ss(this.rhs,e,n),this}get names(){let e=this.lhs instanceof ye.Name?{}:Xe({},this.lhs.names);return uu(e,this.rhs)}},Kg=class extends Ll{constructor(e,n,s,a){super(e,s,a);this.op=n}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Xg=class extends Wn{constructor(e){super();this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},Yg=class extends Wn{constructor(e){super();this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Jg=class extends Wn{constructor(e){super();this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},Zg=class extends Wn{constructor(e){super();this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,n){return this.code=ss(this.code,e,n),this}get names(){return this.code instanceof ye._CodeOrName?this.code.names:{}}},lu=class extends Wn{constructor(e=[]){super();this.nodes=e}render(e){return this.nodes.reduce((n,s)=>n+s.render(e),"")}optimizeNodes(){let{nodes:e}=this,n=e.length;for(;n--;){let s=e[n].optimizeNodes();Array.isArray(s)?e.splice(n,1,...s):s?e[n]=s:e.splice(n,1)}return e.length>0?this:void 0}optimizeNames(e,n){let{nodes:s}=this,a=s.length;for(;a--;){let u=s[a];u.optimizeNames(e,n)||(UA(e,u.names),s.splice(a,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((e,n)=>Ri(e,n.names),{})}},zn=class extends lu{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},Qg=class extends lu{},yo=class extends zn{};yo.kind="else";var Wr=class extends zn{constructor(e,n){super(n);this.condition=e}render(e){let n=`if(${this.condition})`+super.render(e);return this.else&&(n+="else "+this.else.render(e)),n}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let n=this.else;if(n){let s=n.optimizeNodes();n=this.else=Array.isArray(s)?new yo(s):s}if(n)return e===!1?n instanceof Wr?n:n.nodes:this.nodes.length?this:new Wr(i_(e),n instanceof Wr?[n]:n.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,n){var s;if(this.else=(s=this.else)===null||s===void 0?void 0:s.optimizeNames(e,n),!!(super.optimizeNames(e,n)||this.else))return this.condition=ss(this.condition,e,n),this}get names(){let e=super.names;return uu(e,this.condition),this.else&&Ri(e,this.else.names),e}};Wr.kind="if";var is=class extends zn{};is.kind="for";var e_=class extends is{constructor(e){super();this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,n){if(!!super.optimizeNames(e,n))return this.iteration=ss(this.iteration,e,n),this}get names(){return Ri(super.names,this.iteration.names)}},t_=class extends is{constructor(e,n,s,a){super();this.varKind=e,this.name=n,this.from=s,this.to=a}render(e){let n=e.es5?Tr.varKinds.var:this.varKind,{name:s,from:a,to:u}=this;return`for(${n} ${s}=${a}; ${s}<${u}; ${s}++)`+super.render(e)}get names(){let e=uu(super.names,this.from);return uu(e,this.to)}},Dl=class extends is{constructor(e,n,s,a){super();this.loop=e,this.varKind=n,this.name=s,this.iterable=a}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,n){if(!!super.optimizeNames(e,n))return this.iterable=ss(this.iterable,e,n),this}get names(){return Ri(super.names,this.iterable.names)}},iu=class extends zn{constructor(e,n,s){super();this.name=e,this.args=n,this.async=s}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};iu.kind="func";var su=class extends lu{render(e){return"return "+super.render(e)}};su.kind="return";var r_=class extends zn{render(e){let n="try"+super.render(e);return this.catch&&(n+=this.catch.render(e)),this.finally&&(n+=this.finally.render(e)),n}optimizeNodes(){var e,n;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(n=this.finally)===null||n===void 0||n.optimizeNodes(),this}optimizeNames(e,n){var s,a;return super.optimizeNames(e,n),(s=this.catch)===null||s===void 0||s.optimizeNames(e,n),(a=this.finally)===null||a===void 0||a.optimizeNames(e,n),this}get names(){let e=super.names;return this.catch&&Ri(e,this.catch.names),this.finally&&Ri(e,this.finally.names),e}},ou=class extends zn{constructor(e){super();this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};ou.kind="catch";var au=class extends zn{render(e){return"finally"+super.render(e)}};au.kind="finally";var n_=class{constructor(e,n={}){this._values={},this._blockStarts=[],this._constants={},this.opts=dr(Xe({},n),{_n:n.lines?`
37
- `:""}),this._extScope=e,this._scope=new Tr.Scope({parent:e}),this._nodes=[new Qg]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,n){let s=this._extScope.value(e,n);return(this._values[s.prefix]||(this._values[s.prefix]=new Set)).add(s),s}getScopeValue(e,n){return this._extScope.getValue(e,n)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,n,s,a){let u=this._scope.toName(n);return s!==void 0&&a&&(this._constants[u.str]=s),this._leafNode(new Bg(e,u,s)),u}const(e,n,s){return this._def(Tr.varKinds.const,e,n,s)}let(e,n,s){return this._def(Tr.varKinds.let,e,n,s)}var(e,n,s){return this._def(Tr.varKinds.var,e,n,s)}assign(e,n,s){return this._leafNode(new Ll(e,n,s))}add(e,n){return this._leafNode(new Kg(e,le.operators.ADD,n))}code(e){return typeof e=="function"?e():e!==ye.nil&&this._leafNode(new Zg(e)),this}object(...e){let n=["{"];for(let[s,a]of e)n.length>1&&n.push(","),n.push(s),(s!==a||this.opts.es5)&&(n.push(":"),(0,ye.addCodeArg)(n,a));return n.push("}"),new ye._Code(n)}if(e,n,s){if(this._blockNode(new Wr(e)),n&&s)this.code(n).else().code(s).endIf();else if(n)this.code(n).endIf();else if(s)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new Wr(e))}else(){return this._elseNode(new yo)}endIf(){return this._endBlockNode(Wr,yo)}_for(e,n){return this._blockNode(e),n&&this.code(n).endFor(),this}for(e,n){return this._for(new e_(e),n)}forRange(e,n,s,a,u=this.opts.es5?Tr.varKinds.var:Tr.varKinds.let){let l=this._scope.toName(e);return this._for(new t_(u,l,n,s),()=>a(l))}forOf(e,n,s,a=Tr.varKinds.const){let u=this._scope.toName(e);if(this.opts.es5){let l=n instanceof ye.Name?n:this.var("_arr",n);return this.forRange("_i",0,(0,ye._)`${l}.length`,d=>{this.var(u,(0,ye._)`${l}[${d}]`),s(u)})}return this._for(new Dl("of",a,u,n),()=>s(u))}forIn(e,n,s,a=this.opts.es5?Tr.varKinds.var:Tr.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,ye._)`Object.keys(${n})`,s);let u=this._scope.toName(e);return this._for(new Dl("in",a,u,n),()=>s(u))}endFor(){return this._endBlockNode(is)}label(e){return this._leafNode(new Xg(e))}break(e){return this._leafNode(new Yg(e))}return(e){let n=new su;if(this._blockNode(n),this.code(e),n.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(su)}try(e,n,s){if(!n&&!s)throw new Error('CodeGen: "try" without "catch" and "finally"');let a=new r_;if(this._blockNode(a),this.code(e),n){let u=this.name("e");this._currNode=a.catch=new ou(u),n(u)}return s&&(this._currNode=a.finally=new au,this.code(s)),this._endBlockNode(ou,au)}throw(e){return this._leafNode(new Jg(e))}block(e,n){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(n),this}endBlock(e){let n=this._blockStarts.pop();if(n===void 0)throw new Error("CodeGen: not in self-balancing block");let s=this._nodes.length-n;if(s<0||e!==void 0&&s!==e)throw new Error(`CodeGen: wrong number of nodes: ${s} vs ${e} expected`);return this._nodes.length=n,this}func(e,n=ye.nil,s,a){return this._blockNode(new iu(e,n,s)),a&&this.code(a).endFunc(),this}endFunc(){return this._endBlockNode(iu)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,n){let s=this._currNode;if(s instanceof e||n&&s instanceof n)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${n?`${e.kind}/${n.kind}`:e.kind}"`)}_elseNode(e){let n=this._currNode;if(!(n instanceof Wr))throw new Error('CodeGen: "else" without "if"');return this._currNode=n.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let n=this._nodes;n[n.length-1]=e}};le.CodeGen=n_;function Ri(r,e){for(let n in e)r[n]=(r[n]||0)+(e[n]||0);return r}function uu(r,e){return e instanceof ye._CodeOrName?Ri(r,e.names):r}function ss(r,e,n){if(r instanceof ye.Name)return s(r);if(!a(r))return r;return new ye._Code(r._items.reduce((u,l)=>(l instanceof ye.Name&&(l=s(l)),l instanceof ye._Code?u.push(...l._items):u.push(l),u),[]));function s(u){let l=n[u.str];return l===void 0||e[u.str]!==1?u:(delete e[u.str],l)}function a(u){return u instanceof ye._Code&&u._items.some(l=>l instanceof ye.Name&&e[l.str]===1&&n[l.str]!==void 0)}}function UA(r,e){for(let n in e)r[n]=(r[n]||0)-(e[n]||0)}function i_(r){return typeof r=="boolean"||typeof r=="number"||r===null?!r:(0,ye._)`!${ql(r)}`}le.not=i_;var HA=s_(le.operators.AND);function VA(...r){return r.reduce(HA)}le.and=VA;var GA=s_(le.operators.OR);function WA(...r){return r.reduce(GA)}le.or=WA;function s_(r){return(e,n)=>e===ye.nil?n:n===ye.nil?e:(0,ye._)`${ql(e)} ${r} ${ql(n)}`}function ql(r){return r instanceof ye.Name?r:(0,ye._)`(${r})`}});var be=T(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.checkStrictMode=fe.getErrorPath=fe.Type=fe.useFunc=fe.setEvaluated=fe.evaluatedPropsToName=fe.mergeEvaluated=fe.eachItem=fe.unescapeJsonPointer=fe.escapeJsonPointer=fe.escapeFragment=fe.unescapeFragment=fe.schemaRefOrVal=fe.schemaHasRulesButRef=fe.schemaHasRules=fe.checkUnknownRules=fe.alwaysValidSchema=fe.toHash=void 0;var Ne=he(),zA=vo();function BA(r){let e={};for(let n of r)e[n]=!0;return e}fe.toHash=BA;function KA(r,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(u_(r,e),!c_(e,r.self.RULES.all))}fe.alwaysValidSchema=KA;function u_(r,e=r.schema){let{opts:n,self:s}=r;if(!n.strictSchema||typeof e=="boolean")return;let a=s.RULES.keywords;for(let u in e)a[u]||d_(r,`unknown keyword: "${u}"`)}fe.checkUnknownRules=u_;function c_(r,e){if(typeof r=="boolean")return!r;for(let n in r)if(e[n])return!0;return!1}fe.schemaHasRules=c_;function XA(r,e){if(typeof r=="boolean")return!r;for(let n in r)if(n!=="$ref"&&e.all[n])return!0;return!1}fe.schemaHasRulesButRef=XA;function YA({topSchemaRef:r,schemaPath:e},n,s,a){if(!a){if(typeof n=="number"||typeof n=="boolean")return n;if(typeof n=="string")return(0,Ne._)`${n}`}return(0,Ne._)`${r}${e}${(0,Ne.getProperty)(s)}`}fe.schemaRefOrVal=YA;function JA(r){return l_(decodeURIComponent(r))}fe.unescapeFragment=JA;function ZA(r){return encodeURIComponent(Ml(r))}fe.escapeFragment=ZA;function Ml(r){return typeof r=="number"?`${r}`:r.replace(/~/g,"~0").replace(/\//g,"~1")}fe.escapeJsonPointer=Ml;function l_(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}fe.unescapeJsonPointer=l_;function QA(r,e){if(Array.isArray(r))for(let n of r)e(n);else e(r)}fe.eachItem=QA;function o_({mergeNames:r,mergeToName:e,mergeValues:n,resultToName:s}){return(a,u,l,d)=>{let g=l===void 0?u:l instanceof Ne.Name?(u instanceof Ne.Name?r(a,u,l):e(a,u,l),l):u instanceof Ne.Name?(e(a,l,u),u):n(u,l);return d===Ne.Name&&!(g instanceof Ne.Name)?s(a,g):g}}fe.mergeEvaluated={props:o_({mergeNames:(r,e,n)=>r.if((0,Ne._)`${n} !== true && ${e} !== undefined`,()=>{r.if((0,Ne._)`${e} === true`,()=>r.assign(n,!0),()=>r.assign(n,(0,Ne._)`${n} || {}`).code((0,Ne._)`Object.assign(${n}, ${e})`))}),mergeToName:(r,e,n)=>r.if((0,Ne._)`${n} !== true`,()=>{e===!0?r.assign(n,!0):(r.assign(n,(0,Ne._)`${n} || {}`),Fl(r,n,e))}),mergeValues:(r,e)=>r===!0?!0:Xe(Xe({},r),e),resultToName:f_}),items:o_({mergeNames:(r,e,n)=>r.if((0,Ne._)`${n} !== true && ${e} !== undefined`,()=>r.assign(n,(0,Ne._)`${e} === true ? true : ${n} > ${e} ? ${n} : ${e}`)),mergeToName:(r,e,n)=>r.if((0,Ne._)`${n} !== true`,()=>r.assign(n,e===!0?!0:(0,Ne._)`${n} > ${e} ? ${n} : ${e}`)),mergeValues:(r,e)=>r===!0?!0:Math.max(r,e),resultToName:(r,e)=>r.var("items",e)})};function f_(r,e){if(e===!0)return r.var("props",!0);let n=r.var("props",(0,Ne._)`{}`);return e!==void 0&&Fl(r,n,e),n}fe.evaluatedPropsToName=f_;function Fl(r,e,n){Object.keys(n).forEach(s=>r.assign((0,Ne._)`${e}${(0,Ne.getProperty)(s)}`,!0))}fe.setEvaluated=Fl;var a_={};function eP(r,e){return r.scopeValue("func",{ref:e,code:a_[e.code]||(a_[e.code]=new zA._Code(e.code))})}fe.useFunc=eP;var h_;(function(r){r[r.Num=0]="Num",r[r.Str=1]="Str"})(h_=fe.Type||(fe.Type={}));function tP(r,e,n){if(r instanceof Ne.Name){let s=e===h_.Num;return n?s?(0,Ne._)`"[" + ${r} + "]"`:(0,Ne._)`"['" + ${r} + "']"`:s?(0,Ne._)`"/" + ${r}`:(0,Ne._)`"/" + ${r}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,Ne.getProperty)(r).toString():"/"+Ml(r)}fe.getErrorPath=tP;function d_(r,e,n=r.opts.strictSchema){if(!!n){if(e=`strict mode: ${e}`,n===!0)throw new Error(e);r.self.logger.warn(e)}}fe.checkStrictMode=d_});var En=T(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var _t=he(),rP={data:new _t.Name("data"),valCxt:new _t.Name("valCxt"),instancePath:new _t.Name("instancePath"),parentData:new _t.Name("parentData"),parentDataProperty:new _t.Name("parentDataProperty"),rootData:new _t.Name("rootData"),dynamicAnchors:new _t.Name("dynamicAnchors"),vErrors:new _t.Name("vErrors"),errors:new _t.Name("errors"),this:new _t.Name("this"),self:new _t.Name("self"),scope:new _t.Name("scope"),json:new _t.Name("json"),jsonPos:new _t.Name("jsonPos"),jsonLen:new _t.Name("jsonLen"),jsonPart:new _t.Name("jsonPart")};jl.default=rP});var Eo=T(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.extendErrors=vt.resetErrorsCount=vt.reportExtraError=vt.reportError=vt.keyword$DataError=vt.keywordError=void 0;var Ee=he(),fu=be(),At=En();vt.keywordError={message:({keyword:r})=>(0,Ee.str)`must pass "${r}" keyword validation`};vt.keyword$DataError={message:({keyword:r,schemaType:e})=>e?(0,Ee.str)`"${r}" keyword must be ${e} ($data)`:(0,Ee.str)`"${r}" keyword is invalid ($data)`};function nP(r,e=vt.keywordError,n,s){let{it:a}=r,{gen:u,compositeRule:l,allErrors:d}=a,g=g_(r,e,n);(s!=null?s:l||d)?p_(u,g):m_(a,(0,Ee._)`[${g}]`)}vt.reportError=nP;function iP(r,e=vt.keywordError,n){let{it:s}=r,{gen:a,compositeRule:u,allErrors:l}=s,d=g_(r,e,n);p_(a,d),u||l||m_(s,At.default.vErrors)}vt.reportExtraError=iP;function sP(r,e){r.assign(At.default.errors,e),r.if((0,Ee._)`${At.default.vErrors} !== null`,()=>r.if(e,()=>r.assign((0,Ee._)`${At.default.vErrors}.length`,e),()=>r.assign(At.default.vErrors,null)))}vt.resetErrorsCount=sP;function oP({gen:r,keyword:e,schemaValue:n,data:s,errsCount:a,it:u}){if(a===void 0)throw new Error("ajv implementation error");let l=r.name("err");r.forRange("i",a,At.default.errors,d=>{r.const(l,(0,Ee._)`${At.default.vErrors}[${d}]`),r.if((0,Ee._)`${l}.instancePath === undefined`,()=>r.assign((0,Ee._)`${l}.instancePath`,(0,Ee.strConcat)(At.default.instancePath,u.errorPath))),r.assign((0,Ee._)`${l}.schemaPath`,(0,Ee.str)`${u.errSchemaPath}/${e}`),u.opts.verbose&&(r.assign((0,Ee._)`${l}.schema`,n),r.assign((0,Ee._)`${l}.data`,s))})}vt.extendErrors=oP;function p_(r,e){let n=r.const("err",e);r.if((0,Ee._)`${At.default.vErrors} === null`,()=>r.assign(At.default.vErrors,(0,Ee._)`[${n}]`),(0,Ee._)`${At.default.vErrors}.push(${n})`),r.code((0,Ee._)`${At.default.errors}++`)}function m_(r,e){let{gen:n,validateName:s,schemaEnv:a}=r;a.$async?n.throw((0,Ee._)`new ${r.ValidationError}(${e})`):(n.assign((0,Ee._)`${s}.errors`,e),n.return(!1))}var Ai={keyword:new Ee.Name("keyword"),schemaPath:new Ee.Name("schemaPath"),params:new Ee.Name("params"),propertyName:new Ee.Name("propertyName"),message:new Ee.Name("message"),schema:new Ee.Name("schema"),parentSchema:new Ee.Name("parentSchema")};function g_(r,e,n){let{createErrors:s}=r.it;return s===!1?(0,Ee._)`{}`:aP(r,e,n)}function aP(r,e,n={}){let{gen:s,it:a}=r,u=[uP(a,n),cP(r,n)];return lP(r,e,u),s.object(...u)}function uP({errorPath:r},{instancePath:e}){let n=e?(0,Ee.str)`${r}${(0,fu.getErrorPath)(e,fu.Type.Str)}`:r;return[At.default.instancePath,(0,Ee.strConcat)(At.default.instancePath,n)]}function cP({keyword:r,it:{errSchemaPath:e}},{schemaPath:n,parentSchema:s}){let a=s?e:(0,Ee.str)`${e}/${r}`;return n&&(a=(0,Ee.str)`${a}${(0,fu.getErrorPath)(n,fu.Type.Str)}`),[Ai.schemaPath,a]}function lP(r,{params:e,message:n},s){let{keyword:a,data:u,schemaValue:l,it:d}=r,{opts:g,propertyName:f,topSchemaRef:_,schemaPath:w}=d;s.push([Ai.keyword,a],[Ai.params,typeof e=="function"?e(r):e||(0,Ee._)`{}`]),g.messages&&s.push([Ai.message,typeof n=="function"?n(r):n]),g.verbose&&s.push([Ai.schema,l],[Ai.parentSchema,(0,Ee._)`${_}${w}`],[At.default.data,u]),f&&s.push([Ai.propertyName,f])}});var v_=T(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.boolOrEmptySchema=os.topBoolOrEmptySchema=void 0;var fP=Eo(),hP=he(),dP=En(),pP={message:"boolean schema is false"};function mP(r){let{gen:e,schema:n,validateName:s}=r;n===!1?__(r,!1):typeof n=="object"&&n.$async===!0?e.return(dP.default.data):(e.assign((0,hP._)`${s}.errors`,null),e.return(!0))}os.topBoolOrEmptySchema=mP;function gP(r,e){let{gen:n,schema:s}=r;s===!1?(n.var(e,!1),__(r)):n.var(e,!0)}os.boolOrEmptySchema=gP;function __(r,e){let{gen:n,data:s}=r,a={gen:n,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:r};(0,fP.reportError)(a,pP,void 0,e)}});var kl=T(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.getRules=as.isJSONType=void 0;var _P=["string","number","integer","boolean","null","object","array"],vP=new Set(_P);function yP(r){return typeof r=="string"&&vP.has(r)}as.isJSONType=yP;function EP(){let r={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:dr(Xe({},r),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},r.number,r.string,r.array,r.object],post:{rules:[]},all:{},keywords:{}}}as.getRules=EP});var Ul=T(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.shouldUseRule=Bn.shouldUseGroup=Bn.schemaHasRulesForType=void 0;function $P({schema:r,self:e},n){let s=e.RULES.types[n];return s&&s!==!0&&y_(r,s)}Bn.schemaHasRulesForType=$P;function y_(r,e){return e.rules.some(n=>E_(r,n))}Bn.shouldUseGroup=y_;function E_(r,e){var n;return r[e.keyword]!==void 0||((n=e.definition.implements)===null||n===void 0?void 0:n.some(s=>r[s]!==void 0))}Bn.shouldUseRule=E_});var wo=T(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.reportTypeError=ot.checkDataTypes=ot.checkDataType=ot.coerceAndCheckDataType=ot.getJSONTypes=ot.getSchemaTypes=ot.DataType=void 0;var wP=kl(),bP=Ul(),SP=Eo(),se=he(),$_=be(),$o;(function(r){r[r.Correct=0]="Correct",r[r.Wrong=1]="Wrong"})($o=ot.DataType||(ot.DataType={}));function OP(r){let e=w_(r.type);if(e.includes("null")){if(r.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&r.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');r.nullable===!0&&e.push("null")}return e}ot.getSchemaTypes=OP;function w_(r){let e=Array.isArray(r)?r:r?[r]:[];if(e.every(wP.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}ot.getJSONTypes=w_;function RP(r,e){let{gen:n,data:s,opts:a}=r,u=AP(e,a.coerceTypes),l=e.length>0&&!(u.length===0&&e.length===1&&(0,bP.schemaHasRulesForType)(r,e[0]));if(l){let d=Vl(e,s,a.strictNumbers,$o.Wrong);n.if(d,()=>{u.length?PP(r,e,u):Gl(r)})}return l}ot.coerceAndCheckDataType=RP;var b_=new Set(["string","number","integer","boolean","null"]);function AP(r,e){return e?r.filter(n=>b_.has(n)||e==="array"&&n==="array"):[]}function PP(r,e,n){let{gen:s,data:a,opts:u}=r,l=s.let("dataType",(0,se._)`typeof ${a}`),d=s.let("coerced",(0,se._)`undefined`);u.coerceTypes==="array"&&s.if((0,se._)`${l} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>s.assign(a,(0,se._)`${a}[0]`).assign(l,(0,se._)`typeof ${a}`).if(Vl(e,a,u.strictNumbers),()=>s.assign(d,a))),s.if((0,se._)`${d} !== undefined`);for(let f of n)(b_.has(f)||f==="array"&&u.coerceTypes==="array")&&g(f);s.else(),Gl(r),s.endIf(),s.if((0,se._)`${d} !== undefined`,()=>{s.assign(a,d),CP(r,d)});function g(f){switch(f){case"string":s.elseIf((0,se._)`${l} == "number" || ${l} == "boolean"`).assign(d,(0,se._)`"" + ${a}`).elseIf((0,se._)`${a} === null`).assign(d,(0,se._)`""`);return;case"number":s.elseIf((0,se._)`${l} == "boolean" || ${a} === null
38
- || (${l} == "string" && ${a} && ${a} == +${a})`).assign(d,(0,se._)`+${a}`);return;case"integer":s.elseIf((0,se._)`${l} === "boolean" || ${a} === null
39
- || (${l} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(d,(0,se._)`+${a}`);return;case"boolean":s.elseIf((0,se._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(d,!1).elseIf((0,se._)`${a} === "true" || ${a} === 1`).assign(d,!0);return;case"null":s.elseIf((0,se._)`${a} === "" || ${a} === 0 || ${a} === false`),s.assign(d,null);return;case"array":s.elseIf((0,se._)`${l} === "string" || ${l} === "number"
40
- || ${l} === "boolean" || ${a} === null`).assign(d,(0,se._)`[${a}]`)}}}function CP({gen:r,parentData:e,parentDataProperty:n},s){r.if((0,se._)`${e} !== undefined`,()=>r.assign((0,se._)`${e}[${n}]`,s))}function Hl(r,e,n,s=$o.Correct){let a=s===$o.Correct?se.operators.EQ:se.operators.NEQ,u;switch(r){case"null":return(0,se._)`${e} ${a} null`;case"array":u=(0,se._)`Array.isArray(${e})`;break;case"object":u=(0,se._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":u=l((0,se._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":u=l();break;default:return(0,se._)`typeof ${e} ${a} ${r}`}return s===$o.Correct?u:(0,se.not)(u);function l(d=se.nil){return(0,se.and)((0,se._)`typeof ${e} == "number"`,d,n?(0,se._)`isFinite(${e})`:se.nil)}}ot.checkDataType=Hl;function Vl(r,e,n,s){if(r.length===1)return Hl(r[0],e,n,s);let a,u=(0,$_.toHash)(r);if(u.array&&u.object){let l=(0,se._)`typeof ${e} != "object"`;a=u.null?l:(0,se._)`!${e} || ${l}`,delete u.null,delete u.array,delete u.object}else a=se.nil;u.number&&delete u.integer;for(let l in u)a=(0,se.and)(a,Hl(l,e,n,s));return a}ot.checkDataTypes=Vl;var IP={message:({schema:r})=>`must be ${r}`,params:({schema:r,schemaValue:e})=>typeof r=="string"?(0,se._)`{type: ${r}}`:(0,se._)`{type: ${e}}`};function Gl(r){let e=TP(r);(0,SP.reportError)(e,IP)}ot.reportTypeError=Gl;function TP(r){let{gen:e,data:n,schema:s}=r,a=(0,$_.schemaRefOrVal)(r,s,"type");return{gen:e,keyword:"type",data:n,schema:s.type,schemaCode:a,schemaValue:a,parentSchema:s,params:{},it:r}}});var O_=T(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.assignDefaults=void 0;var us=he(),NP=be();function xP(r,e){let{properties:n,items:s}=r.schema;if(e==="object"&&n)for(let a in n)S_(r,a,n[a].default);else e==="array"&&Array.isArray(s)&&s.forEach((a,u)=>S_(r,u,a.default))}hu.assignDefaults=xP;function S_(r,e,n){let{gen:s,compositeRule:a,data:u,opts:l}=r;if(n===void 0)return;let d=(0,us._)`${u}${(0,us.getProperty)(e)}`;if(a){(0,NP.checkStrictMode)(r,`default is ignored for: ${d}`);return}let g=(0,us._)`${d} === undefined`;l.useDefaults==="empty"&&(g=(0,us._)`${g} || ${d} === null || ${d} === ""`),s.if(g,(0,us._)`${d} = ${(0,us.stringify)(n)}`)}});var _r=T(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.validateUnion=Ie.validateArray=Ie.usePattern=Ie.callValidateCode=Ie.schemaProperties=Ie.allSchemaProperties=Ie.noPropertyInData=Ie.propertyInData=Ie.isOwnProperty=Ie.hasPropFunc=Ie.reportMissingProp=Ie.checkMissingProp=Ie.checkReportMissingProp=void 0;var ke=he(),Wl=be(),Kn=En(),DP=be();function qP(r,e){let{gen:n,data:s,it:a}=r;n.if(Bl(n,s,e,a.opts.ownProperties),()=>{r.setParams({missingProperty:(0,ke._)`${e}`},!0),r.error()})}Ie.checkReportMissingProp=qP;function LP({gen:r,data:e,it:{opts:n}},s,a){return(0,ke.or)(...s.map(u=>(0,ke.and)(Bl(r,e,u,n.ownProperties),(0,ke._)`${a} = ${u}`)))}Ie.checkMissingProp=LP;function MP(r,e){r.setParams({missingProperty:e},!0),r.error()}Ie.reportMissingProp=MP;function R_(r){return r.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ke._)`Object.prototype.hasOwnProperty`})}Ie.hasPropFunc=R_;function zl(r,e,n){return(0,ke._)`${R_(r)}.call(${e}, ${n})`}Ie.isOwnProperty=zl;function FP(r,e,n,s){let a=(0,ke._)`${e}${(0,ke.getProperty)(n)} !== undefined`;return s?(0,ke._)`${a} && ${zl(r,e,n)}`:a}Ie.propertyInData=FP;function Bl(r,e,n,s){let a=(0,ke._)`${e}${(0,ke.getProperty)(n)} === undefined`;return s?(0,ke.or)(a,(0,ke.not)(zl(r,e,n))):a}Ie.noPropertyInData=Bl;function A_(r){return r?Object.keys(r).filter(e=>e!=="__proto__"):[]}Ie.allSchemaProperties=A_;function jP(r,e){return A_(e).filter(n=>!(0,Wl.alwaysValidSchema)(r,e[n]))}Ie.schemaProperties=jP;function kP({schemaCode:r,data:e,it:{gen:n,topSchemaRef:s,schemaPath:a,errorPath:u},it:l},d,g,f){let _=f?(0,ke._)`${r}, ${e}, ${s}${a}`:e,w=[[Kn.default.instancePath,(0,ke.strConcat)(Kn.default.instancePath,u)],[Kn.default.parentData,l.parentData],[Kn.default.parentDataProperty,l.parentDataProperty],[Kn.default.rootData,Kn.default.rootData]];l.opts.dynamicRef&&w.push([Kn.default.dynamicAnchors,Kn.default.dynamicAnchors]);let R=(0,ke._)`${_}, ${n.object(...w)}`;return g!==ke.nil?(0,ke._)`${d}.call(${g}, ${R})`:(0,ke._)`${d}(${R})`}Ie.callValidateCode=kP;var UP=(0,ke._)`new RegExp`;function HP({gen:r,it:{opts:e}},n){let s=e.unicodeRegExp?"u":"",{regExp:a}=e.code,u=a(n,s);return r.scopeValue("pattern",{key:u.toString(),ref:u,code:(0,ke._)`${a.code==="new RegExp"?UP:(0,DP.useFunc)(r,a)}(${n}, ${s})`})}Ie.usePattern=HP;function VP(r){let{gen:e,data:n,keyword:s,it:a}=r,u=e.name("valid");if(a.allErrors){let d=e.let("valid",!0);return l(()=>e.assign(d,!1)),d}return e.var(u,!0),l(()=>e.break()),u;function l(d){let g=e.const("len",(0,ke._)`${n}.length`);e.forRange("i",0,g,f=>{r.subschema({keyword:s,dataProp:f,dataPropType:Wl.Type.Num},u),e.if((0,ke.not)(u),d)})}}Ie.validateArray=VP;function GP(r){let{gen:e,schema:n,keyword:s,it:a}=r;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(g=>(0,Wl.alwaysValidSchema)(a,g))&&!a.opts.unevaluated)return;let l=e.let("valid",!1),d=e.name("_valid");e.block(()=>n.forEach((g,f)=>{let _=r.subschema({keyword:s,schemaProp:f,compositeRule:!0},d);e.assign(l,(0,ke._)`${l} || ${d}`),r.mergeValidEvaluated(_,d)||e.if((0,ke.not)(l))})),r.result(l,()=>r.reset(),()=>r.error(!0))}Ie.validateUnion=GP});var I_=T(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.validateKeywordUsage=zr.validSchemaType=zr.funcKeywordCode=zr.macroKeywordCode=void 0;var Pt=he(),Pi=En(),WP=_r(),zP=Eo();function BP(r,e){let{gen:n,keyword:s,schema:a,parentSchema:u,it:l}=r,d=e.macro.call(l.self,a,u,l),g=C_(n,s,d);l.opts.validateSchema!==!1&&l.self.validateSchema(d,!0);let f=n.name("valid");r.subschema({schema:d,schemaPath:Pt.nil,errSchemaPath:`${l.errSchemaPath}/${s}`,topSchemaRef:g,compositeRule:!0},f),r.pass(f,()=>r.error(!0))}zr.macroKeywordCode=BP;function KP(r,e){var n;let{gen:s,keyword:a,schema:u,parentSchema:l,$data:d,it:g}=r;YP(g,e);let f=!d&&e.compile?e.compile.call(g.self,u,l,g):e.validate,_=C_(s,a,f),w=s.let("valid");r.block$data(w,R),r.ok((n=e.valid)!==null&&n!==void 0?n:w);function R(){if(e.errors===!1)L(),e.modifying&&P_(r),j(()=>r.error());else{let F=e.async?A():x();e.modifying&&P_(r),j(()=>XP(r,F))}}function A(){let F=s.let("ruleErrs",null);return s.try(()=>L((0,Pt._)`await `),Z=>s.assign(w,!1).if((0,Pt._)`${Z} instanceof ${g.ValidationError}`,()=>s.assign(F,(0,Pt._)`${Z}.errors`),()=>s.throw(Z))),F}function x(){let F=(0,Pt._)`${_}.errors`;return s.assign(F,null),L(Pt.nil),F}function L(F=e.async?(0,Pt._)`await `:Pt.nil){let Z=g.opts.passContext?Pi.default.this:Pi.default.self,K=!("compile"in e&&!d||e.schema===!1);s.assign(w,(0,Pt._)`${F}${(0,WP.callValidateCode)(r,_,Z,K)}`,e.modifying)}function j(F){var Z;s.if((0,Pt.not)((Z=e.valid)!==null&&Z!==void 0?Z:w),F)}}zr.funcKeywordCode=KP;function P_(r){let{gen:e,data:n,it:s}=r;e.if(s.parentData,()=>e.assign(n,(0,Pt._)`${s.parentData}[${s.parentDataProperty}]`))}function XP(r,e){let{gen:n}=r;n.if((0,Pt._)`Array.isArray(${e})`,()=>{n.assign(Pi.default.vErrors,(0,Pt._)`${Pi.default.vErrors} === null ? ${e} : ${Pi.default.vErrors}.concat(${e})`).assign(Pi.default.errors,(0,Pt._)`${Pi.default.vErrors}.length`),(0,zP.extendErrors)(r)},()=>r.error())}function YP({schemaEnv:r},e){if(e.async&&!r.$async)throw new Error("async keyword in sync schema")}function C_(r,e,n){if(n===void 0)throw new Error(`keyword "${e}" failed to compile`);return r.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,Pt.stringify)(n)})}function JP(r,e,n=!1){return!e.length||e.some(s=>s==="array"?Array.isArray(r):s==="object"?r&&typeof r=="object"&&!Array.isArray(r):typeof r==s||n&&typeof r>"u")}zr.validSchemaType=JP;function ZP({schema:r,opts:e,self:n,errSchemaPath:s},a,u){if(Array.isArray(a.keyword)?!a.keyword.includes(u):a.keyword!==u)throw new Error("ajv implementation error");let l=a.dependencies;if(l!=null&&l.some(d=>!Object.prototype.hasOwnProperty.call(r,d)))throw new Error(`parent schema must have dependencies of ${u}: ${l.join(",")}`);if(a.validateSchema&&!a.validateSchema(r[u])){let g=`keyword "${u}" value is invalid at path "${s}": `+n.errorsText(a.validateSchema.errors);if(e.validateSchema==="log")n.logger.error(g);else throw new Error(g)}}zr.validateKeywordUsage=ZP});var N_=T(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.extendSubschemaMode=Xn.extendSubschemaData=Xn.getSubschema=void 0;var Br=he(),T_=be();function QP(r,{keyword:e,schemaProp:n,schema:s,schemaPath:a,errSchemaPath:u,topSchemaRef:l}){if(e!==void 0&&s!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let d=r.schema[e];return n===void 0?{schema:d,schemaPath:(0,Br._)`${r.schemaPath}${(0,Br.getProperty)(e)}`,errSchemaPath:`${r.errSchemaPath}/${e}`}:{schema:d[n],schemaPath:(0,Br._)`${r.schemaPath}${(0,Br.getProperty)(e)}${(0,Br.getProperty)(n)}`,errSchemaPath:`${r.errSchemaPath}/${e}/${(0,T_.escapeFragment)(n)}`}}if(s!==void 0){if(a===void 0||u===void 0||l===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:a,topSchemaRef:l,errSchemaPath:u}}throw new Error('either "keyword" or "schema" must be passed')}Xn.getSubschema=QP;function eC(r,e,{dataProp:n,dataPropType:s,data:a,dataTypes:u,propertyName:l}){if(a!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:d}=e;if(n!==void 0){let{errorPath:f,dataPathArr:_,opts:w}=e,R=d.let("data",(0,Br._)`${e.data}${(0,Br.getProperty)(n)}`,!0);g(R),r.errorPath=(0,Br.str)`${f}${(0,T_.getErrorPath)(n,s,w.jsPropertySyntax)}`,r.parentDataProperty=(0,Br._)`${n}`,r.dataPathArr=[..._,r.parentDataProperty]}if(a!==void 0){let f=a instanceof Br.Name?a:d.let("data",a,!0);g(f),l!==void 0&&(r.propertyName=l)}u&&(r.dataTypes=u);function g(f){r.data=f,r.dataLevel=e.dataLevel+1,r.dataTypes=[],e.definedProperties=new Set,r.parentData=e.data,r.dataNames=[...e.dataNames,f]}}Xn.extendSubschemaData=eC;function tC(r,{jtdDiscriminator:e,jtdMetadata:n,compositeRule:s,createErrors:a,allErrors:u}){s!==void 0&&(r.compositeRule=s),a!==void 0&&(r.createErrors=a),u!==void 0&&(r.allErrors=u),r.jtdDiscriminator=e,r.jtdMetadata=n}Xn.extendSubschemaMode=tC});var Kl=T((XD,x_)=>{"use strict";x_.exports=function r(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var s,a,u;if(Array.isArray(e)){if(s=e.length,s!=n.length)return!1;for(a=s;a--!==0;)if(!r(e[a],n[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(u=Object.keys(e),s=u.length,s!==Object.keys(n).length)return!1;for(a=s;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,u[a]))return!1;for(a=s;a--!==0;){var l=u[a];if(!r(e[l],n[l]))return!1}return!0}return e!==e&&n!==n}});var q_=T((YD,D_)=>{"use strict";var Yn=D_.exports=function(r,e,n){typeof e=="function"&&(n=e,e={}),n=e.cb||n;var s=typeof n=="function"?n:n.pre||function(){},a=n.post||function(){};du(e,s,a,r,"",r)};Yn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Yn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Yn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Yn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function du(r,e,n,s,a,u,l,d,g,f){if(s&&typeof s=="object"&&!Array.isArray(s)){e(s,a,u,l,d,g,f);for(var _ in s){var w=s[_];if(Array.isArray(w)){if(_ in Yn.arrayKeywords)for(var R=0;R<w.length;R++)du(r,e,n,w[R],a+"/"+_+"/"+R,u,a,_,s,R)}else if(_ in Yn.propsKeywords){if(w&&typeof w=="object")for(var A in w)du(r,e,n,w[A],a+"/"+_+"/"+rC(A),u,a,_,s,A)}else(_ in Yn.keywords||r.allKeys&&!(_ in Yn.skipKeywords))&&du(r,e,n,w,a+"/"+_,u,a,_,s)}n(s,a,u,l,d,g,f)}}function rC(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}});var bo=T(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.getSchemaRefs=jt.resolveUrl=jt.normalizeId=jt._getFullPath=jt.getFullPath=jt.inlineRef=void 0;var nC=be(),iC=Kl(),sC=q_(),oC=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function aC(r,e=!0){return typeof r=="boolean"?!0:e===!0?!Xl(r):e?L_(r)<=e:!1}jt.inlineRef=aC;var uC=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Xl(r){for(let e in r){if(uC.has(e))return!0;let n=r[e];if(Array.isArray(n)&&n.some(Xl)||typeof n=="object"&&Xl(n))return!0}return!1}function L_(r){let e=0;for(let n in r){if(n==="$ref")return 1/0;if(e++,!oC.has(n)&&(typeof r[n]=="object"&&(0,nC.eachItem)(r[n],s=>e+=L_(s)),e===1/0))return 1/0}return e}function M_(r,e="",n){n!==!1&&(e=cs(e));let s=r.parse(e);return F_(r,s)}jt.getFullPath=M_;function F_(r,e){return r.serialize(e).split("#")[0]+"#"}jt._getFullPath=F_;var cC=/#\/?$/;function cs(r){return r?r.replace(cC,""):""}jt.normalizeId=cs;function lC(r,e,n){return n=cs(n),r.resolve(e,n)}jt.resolveUrl=lC;var fC=/^[a-z_][-a-z0-9._]*$/i;function hC(r,e){if(typeof r=="boolean")return{};let{schemaId:n,uriResolver:s}=this.opts,a=cs(r[n]||e),u={"":a},l=M_(s,a,!1),d={},g=new Set;return sC(r,{allKeys:!0},(w,R,A,x)=>{if(x===void 0)return;let L=l+R,j=u[x];typeof w[n]=="string"&&(j=F.call(this,w[n])),Z.call(this,w.$anchor),Z.call(this,w.$dynamicAnchor),u[R]=j;function F(K){let ue=this.opts.uriResolver.resolve;if(K=cs(j?ue(j,K):K),g.has(K))throw _(K);g.add(K);let z=this.refs[K];return typeof z=="string"&&(z=this.refs[z]),typeof z=="object"?f(w,z.schema,K):K!==cs(L)&&(K[0]==="#"?(f(w,d[K],K),d[K]=w):this.refs[K]=L),K}function Z(K){if(typeof K=="string"){if(!fC.test(K))throw new Error(`invalid anchor "${K}"`);F.call(this,`#${K}`)}}}),d;function f(w,R,A){if(R!==void 0&&!iC(w,R))throw _(A)}function _(w){return new Error(`reference "${w}" resolves to more than one schema`)}}jt.getSchemaRefs=hC});var Ro=T(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.getData=Jn.KeywordCxt=Jn.validateFunctionCode=void 0;var G_=v_(),j_=wo(),Jl=Ul(),pu=wo(),dC=O_(),Oo=I_(),Yl=N_(),B=he(),ee=En(),pC=bo(),$n=be(),So=Eo();function mC(r){if(B_(r)&&(K_(r),z_(r))){vC(r);return}W_(r,()=>(0,G_.topBoolOrEmptySchema)(r))}Jn.validateFunctionCode=mC;function W_({gen:r,validateName:e,schema:n,schemaEnv:s,opts:a},u){a.code.es5?r.func(e,(0,B._)`${ee.default.data}, ${ee.default.valCxt}`,s.$async,()=>{r.code((0,B._)`"use strict"; ${k_(n,a)}`),_C(r,a),r.code(u)}):r.func(e,(0,B._)`${ee.default.data}, ${gC(a)}`,s.$async,()=>r.code(k_(n,a)).code(u))}function gC(r){return(0,B._)`{${ee.default.instancePath}="", ${ee.default.parentData}, ${ee.default.parentDataProperty}, ${ee.default.rootData}=${ee.default.data}${r.dynamicRef?(0,B._)`, ${ee.default.dynamicAnchors}={}`:B.nil}}={}`}function _C(r,e){r.if(ee.default.valCxt,()=>{r.var(ee.default.instancePath,(0,B._)`${ee.default.valCxt}.${ee.default.instancePath}`),r.var(ee.default.parentData,(0,B._)`${ee.default.valCxt}.${ee.default.parentData}`),r.var(ee.default.parentDataProperty,(0,B._)`${ee.default.valCxt}.${ee.default.parentDataProperty}`),r.var(ee.default.rootData,(0,B._)`${ee.default.valCxt}.${ee.default.rootData}`),e.dynamicRef&&r.var(ee.default.dynamicAnchors,(0,B._)`${ee.default.valCxt}.${ee.default.dynamicAnchors}`)},()=>{r.var(ee.default.instancePath,(0,B._)`""`),r.var(ee.default.parentData,(0,B._)`undefined`),r.var(ee.default.parentDataProperty,(0,B._)`undefined`),r.var(ee.default.rootData,ee.default.data),e.dynamicRef&&r.var(ee.default.dynamicAnchors,(0,B._)`{}`)})}function vC(r){let{schema:e,opts:n,gen:s}=r;W_(r,()=>{n.$comment&&e.$comment&&Y_(r),bC(r),s.let(ee.default.vErrors,null),s.let(ee.default.errors,0),n.unevaluated&&yC(r),X_(r),RC(r)})}function yC(r){let{gen:e,validateName:n}=r;r.evaluated=e.const("evaluated",(0,B._)`${n}.evaluated`),e.if((0,B._)`${r.evaluated}.dynamicProps`,()=>e.assign((0,B._)`${r.evaluated}.props`,(0,B._)`undefined`)),e.if((0,B._)`${r.evaluated}.dynamicItems`,()=>e.assign((0,B._)`${r.evaluated}.items`,(0,B._)`undefined`))}function k_(r,e){let n=typeof r=="object"&&r[e.schemaId];return n&&(e.code.source||e.code.process)?(0,B._)`/*# sourceURL=${n} */`:B.nil}function EC(r,e){if(B_(r)&&(K_(r),z_(r))){$C(r,e);return}(0,G_.boolOrEmptySchema)(r,e)}function z_({schema:r,self:e}){if(typeof r=="boolean")return!r;for(let n in r)if(e.RULES.all[n])return!0;return!1}function B_(r){return typeof r.schema!="boolean"}function $C(r,e){let{schema:n,gen:s,opts:a}=r;a.$comment&&n.$comment&&Y_(r),SC(r),OC(r);let u=s.const("_errs",ee.default.errors);X_(r,u),s.var(e,(0,B._)`${u} === ${ee.default.errors}`)}function K_(r){(0,$n.checkUnknownRules)(r),wC(r)}function X_(r,e){if(r.opts.jtd)return U_(r,[],!1,e);let n=(0,j_.getSchemaTypes)(r.schema),s=(0,j_.coerceAndCheckDataType)(r,n);U_(r,n,!s,e)}function wC(r){let{schema:e,errSchemaPath:n,opts:s,self:a}=r;e.$ref&&s.ignoreKeywordsWithRef&&(0,$n.schemaHasRulesButRef)(e,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function bC(r){let{schema:e,opts:n}=r;e.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,$n.checkStrictMode)(r,"default is ignored in the schema root")}function SC(r){let e=r.schema[r.opts.schemaId];e&&(r.baseId=(0,pC.resolveUrl)(r.opts.uriResolver,r.baseId,e))}function OC(r){if(r.schema.$async&&!r.schemaEnv.$async)throw new Error("async schema in sync schema")}function Y_({gen:r,schemaEnv:e,schema:n,errSchemaPath:s,opts:a}){let u=n.$comment;if(a.$comment===!0)r.code((0,B._)`${ee.default.self}.logger.log(${u})`);else if(typeof a.$comment=="function"){let l=(0,B.str)`${s}/$comment`,d=r.scopeValue("root",{ref:e.root});r.code((0,B._)`${ee.default.self}.opts.$comment(${u}, ${l}, ${d}.schema)`)}}function RC(r){let{gen:e,schemaEnv:n,validateName:s,ValidationError:a,opts:u}=r;n.$async?e.if((0,B._)`${ee.default.errors} === 0`,()=>e.return(ee.default.data),()=>e.throw((0,B._)`new ${a}(${ee.default.vErrors})`)):(e.assign((0,B._)`${s}.errors`,ee.default.vErrors),u.unevaluated&&AC(r),e.return((0,B._)`${ee.default.errors} === 0`))}function AC({gen:r,evaluated:e,props:n,items:s}){n instanceof B.Name&&r.assign((0,B._)`${e}.props`,n),s instanceof B.Name&&r.assign((0,B._)`${e}.items`,s)}function U_(r,e,n,s){let{gen:a,schema:u,data:l,allErrors:d,opts:g,self:f}=r,{RULES:_}=f;if(u.$ref&&(g.ignoreKeywordsWithRef||!(0,$n.schemaHasRulesButRef)(u,_))){a.block(()=>J_(r,"$ref",_.all.$ref.definition));return}g.jtd||PC(r,e),a.block(()=>{for(let R of _.rules)w(R);w(_.post)});function w(R){!(0,Jl.shouldUseGroup)(u,R)||(R.type?(a.if((0,pu.checkDataType)(R.type,l,g.strictNumbers)),H_(r,R),e.length===1&&e[0]===R.type&&n&&(a.else(),(0,pu.reportTypeError)(r)),a.endIf()):H_(r,R),d||a.if((0,B._)`${ee.default.errors} === ${s||0}`))}}function H_(r,e){let{gen:n,schema:s,opts:{useDefaults:a}}=r;a&&(0,dC.assignDefaults)(r,e.type),n.block(()=>{for(let u of e.rules)(0,Jl.shouldUseRule)(s,u)&&J_(r,u.keyword,u.definition,e.type)})}function PC(r,e){r.schemaEnv.meta||!r.opts.strictTypes||(CC(r,e),r.opts.allowUnionTypes||IC(r,e),TC(r,r.dataTypes))}function CC(r,e){if(!!e.length){if(!r.dataTypes.length){r.dataTypes=e;return}e.forEach(n=>{V_(r.dataTypes,n)||Zl(r,`type "${n}" not allowed by context "${r.dataTypes.join(",")}"`)}),r.dataTypes=r.dataTypes.filter(n=>V_(e,n))}}function IC(r,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Zl(r,"use allowUnionTypes to allow union type keyword")}function TC(r,e){let n=r.self.RULES.all;for(let s in n){let a=n[s];if(typeof a=="object"&&(0,Jl.shouldUseRule)(r.schema,a)){let{type:u}=a.definition;u.length&&!u.some(l=>NC(e,l))&&Zl(r,`missing type "${u.join(",")}" for keyword "${s}"`)}}}function NC(r,e){return r.includes(e)||e==="number"&&r.includes("integer")}function V_(r,e){return r.includes(e)||e==="integer"&&r.includes("number")}function Zl(r,e){e+=` at "${r.schemaEnv.baseId+r.errSchemaPath}" (strictTypes)`,(0,$n.checkStrictMode)(r,e,r.opts.strictTypes)}var Ql=class{constructor(e,n,s){if((0,Oo.validateKeywordUsage)(e,n,s),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=s,this.data=e.data,this.schema=e.schema[s],this.$data=n.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,$n.schemaRefOrVal)(e,this.schema,s,this.$data),this.schemaType=n.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=n,this.$data)this.schemaCode=e.gen.const("vSchema",Z_(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Oo.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${s} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=e.gen.const("_errs",ee.default.errors))}result(e,n,s){this.failResult((0,B.not)(e),n,s)}failResult(e,n,s){this.gen.if(e),s?s():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,n){this.failResult((0,B.not)(e),void 0,n)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:n}=this;this.fail((0,B._)`${n} !== undefined && (${(0,B.or)(this.invalid$data(),e)})`)}error(e,n,s){if(n){this.setParams(n),this._error(e,s),this.setParams({});return}this._error(e,s)}_error(e,n){(e?So.reportExtraError:So.reportError)(this,this.def.error,n)}$dataError(){(0,So.reportError)(this,this.def.$dataError||So.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,So.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,n){n?Object.assign(this.params,e):this.params=e}block$data(e,n,s=B.nil){this.gen.block(()=>{this.check$data(e,s),n()})}check$data(e=B.nil,n=B.nil){if(!this.$data)return;let{gen:s,schemaCode:a,schemaType:u,def:l}=this;s.if((0,B.or)((0,B._)`${a} === undefined`,n)),e!==B.nil&&s.assign(e,!0),(u.length||l.validateSchema)&&(s.elseIf(this.invalid$data()),this.$dataError(),e!==B.nil&&s.assign(e,!1)),s.else()}invalid$data(){let{gen:e,schemaCode:n,schemaType:s,def:a,it:u}=this;return(0,B.or)(l(),d());function l(){if(s.length){if(!(n instanceof B.Name))throw new Error("ajv implementation error");let g=Array.isArray(s)?s:[s];return(0,B._)`${(0,pu.checkDataTypes)(g,n,u.opts.strictNumbers,pu.DataType.Wrong)}`}return B.nil}function d(){if(a.validateSchema){let g=e.scopeValue("validate$data",{ref:a.validateSchema});return(0,B._)`!${g}(${n})`}return B.nil}}subschema(e,n){let s=(0,Yl.getSubschema)(this.it,e);(0,Yl.extendSubschemaData)(s,this.it,e),(0,Yl.extendSubschemaMode)(s,e);let a=dr(Xe(Xe({},this.it),s),{items:void 0,props:void 0});return EC(a,n),a}mergeEvaluated(e,n){let{it:s,gen:a}=this;!s.opts.unevaluated||(s.props!==!0&&e.props!==void 0&&(s.props=$n.mergeEvaluated.props(a,e.props,s.props,n)),s.items!==!0&&e.items!==void 0&&(s.items=$n.mergeEvaluated.items(a,e.items,s.items,n)))}mergeValidEvaluated(e,n){let{it:s,gen:a}=this;if(s.opts.unevaluated&&(s.props!==!0||s.items!==!0))return a.if(n,()=>this.mergeEvaluated(e,B.Name)),!0}};Jn.KeywordCxt=Ql;function J_(r,e,n,s){let a=new Ql(r,n,e);"code"in n?n.code(a,s):a.$data&&n.validate?(0,Oo.funcKeywordCode)(a,n):"macro"in n?(0,Oo.macroKeywordCode)(a,n):(n.compile||n.validate)&&(0,Oo.funcKeywordCode)(a,n)}var xC=/^\/(?:[^~]|~0|~1)*$/,DC=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Z_(r,{dataLevel:e,dataNames:n,dataPathArr:s}){let a,u;if(r==="")return ee.default.rootData;if(r[0]==="/"){if(!xC.test(r))throw new Error(`Invalid JSON-pointer: ${r}`);a=r,u=ee.default.rootData}else{let f=DC.exec(r);if(!f)throw new Error(`Invalid JSON-pointer: ${r}`);let _=+f[1];if(a=f[2],a==="#"){if(_>=e)throw new Error(g("property/index",_));return s[e-_]}if(_>e)throw new Error(g("data",_));if(u=n[e-_],!a)return u}let l=u,d=a.split("/");for(let f of d)f&&(u=(0,B._)`${u}${(0,B.getProperty)((0,$n.unescapeJsonPointer)(f))}`,l=(0,B._)`${l} && ${u}`);return l;function g(f,_){return`Cannot access ${f} ${_} levels up, current level is ${e}`}}Jn.getData=Z_});var tf=T(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});var Q_=class extends Error{constructor(e){super("validation failed");this.errors=e,this.ajv=this.validation=!0}};ef.default=Q_});var sf=T(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});var rf=bo(),ev=class extends Error{constructor(e,n,s,a){super(a||`can't resolve reference ${s} from id ${n}`);this.missingRef=(0,rf.resolveUrl)(e,n,s),this.missingSchema=(0,rf.normalizeId)((0,rf.getFullPath)(e,this.missingRef))}};nf.default=ev});var gu=T(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.resolveSchema=vr.getCompilingSchema=vr.resolveRef=vr.compileSchema=vr.SchemaEnv=void 0;var Nr=he(),qC=tf(),Ci=En(),xr=bo(),tv=be(),LC=Ro(),Ao=class{constructor(e){var n;this.refs={},this.dynamicAnchors={};let s;typeof e.schema=="object"&&(s=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(n=e.baseId)!==null&&n!==void 0?n:(0,xr.normalizeId)(s==null?void 0:s[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=s==null?void 0:s.$async,this.refs={}}};vr.SchemaEnv=Ao;function af(r){let e=rv.call(this,r);if(e)return e;let n=(0,xr.getFullPath)(this.opts.uriResolver,r.root.baseId),{es5:s,lines:a}=this.opts.code,{ownProperties:u}=this.opts,l=new Nr.CodeGen(this.scope,{es5:s,lines:a,ownProperties:u}),d;r.$async&&(d=l.scopeValue("Error",{ref:qC.default,code:(0,Nr._)`require("ajv/dist/runtime/validation_error").default`}));let g=l.scopeName("validate");r.validateName=g;let f={gen:l,allErrors:this.opts.allErrors,data:Ci.default.data,parentData:Ci.default.parentData,parentDataProperty:Ci.default.parentDataProperty,dataNames:[Ci.default.data],dataPathArr:[Nr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",this.opts.code.source===!0?{ref:r.schema,code:(0,Nr.stringify)(r.schema)}:{ref:r.schema}),validateName:g,ValidationError:d,schema:r.schema,schemaEnv:r,rootId:n,baseId:r.baseId||n,schemaPath:Nr.nil,errSchemaPath:r.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Nr._)`""`,opts:this.opts,self:this},_;try{this._compilations.add(r),(0,LC.validateFunctionCode)(f),l.optimize(this.opts.code.optimize);let w=l.toString();_=`${l.scopeRefs(Ci.default.scope)}return ${w}`,this.opts.code.process&&(_=this.opts.code.process(_,r));let A=new Function(`${Ci.default.self}`,`${Ci.default.scope}`,_)(this,this.scope.get());if(this.scope.value(g,{ref:A}),A.errors=null,A.schema=r.schema,A.schemaEnv=r,r.$async&&(A.$async=!0),this.opts.code.source===!0&&(A.source={validateName:g,validateCode:w,scopeValues:l._values}),this.opts.unevaluated){let{props:x,items:L}=f;A.evaluated={props:x instanceof Nr.Name?void 0:x,items:L instanceof Nr.Name?void 0:L,dynamicProps:x instanceof Nr.Name,dynamicItems:L instanceof Nr.Name},A.source&&(A.source.evaluated=(0,Nr.stringify)(A.evaluated))}return r.validate=A,r}catch(w){throw delete r.validate,delete r.validateName,_&&this.logger.error("Error compiling schema, function code:",_),w}finally{this._compilations.delete(r)}}vr.compileSchema=af;function MC(r,e,n){var s;n=(0,xr.resolveUrl)(this.opts.uriResolver,e,n);let a=r.refs[n];if(a)return a;let u=kC.call(this,r,n);if(u===void 0){let l=(s=r.localRefs)===null||s===void 0?void 0:s[n],{schemaId:d}=this.opts;l&&(u=new Ao({schema:l,schemaId:d,root:r,baseId:e}))}if(u!==void 0)return r.refs[n]=FC.call(this,u)}vr.resolveRef=MC;function FC(r){return(0,xr.inlineRef)(r.schema,this.opts.inlineRefs)?r.schema:r.validate?r:af.call(this,r)}function rv(r){for(let e of this._compilations)if(jC(e,r))return e}vr.getCompilingSchema=rv;function jC(r,e){return r.schema===e.schema&&r.root===e.root&&r.baseId===e.baseId}function kC(r,e){let n;for(;typeof(n=this.refs[e])=="string";)e=n;return n||this.schemas[e]||mu.call(this,r,e)}function mu(r,e){let n=this.opts.uriResolver.parse(e),s=(0,xr._getFullPath)(this.opts.uriResolver,n),a=(0,xr.getFullPath)(this.opts.uriResolver,r.baseId,void 0);if(Object.keys(r.schema).length>0&&s===a)return of.call(this,n,r);let u=(0,xr.normalizeId)(s),l=this.refs[u]||this.schemas[u];if(typeof l=="string"){let d=mu.call(this,r,l);return typeof(d==null?void 0:d.schema)!="object"?void 0:of.call(this,n,d)}if(typeof(l==null?void 0:l.schema)=="object"){if(l.validate||af.call(this,l),u===(0,xr.normalizeId)(e)){let{schema:d}=l,{schemaId:g}=this.opts,f=d[g];return f&&(a=(0,xr.resolveUrl)(this.opts.uriResolver,a,f)),new Ao({schema:d,schemaId:g,root:r,baseId:a})}return of.call(this,n,l)}}vr.resolveSchema=mu;var UC=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function of(r,{baseId:e,schema:n,root:s}){var a;if(((a=r.fragment)===null||a===void 0?void 0:a[0])!=="/")return;for(let d of r.fragment.slice(1).split("/")){if(typeof n=="boolean")return;let g=n[(0,tv.unescapeFragment)(d)];if(g===void 0)return;n=g;let f=typeof n=="object"&&n[this.opts.schemaId];!UC.has(d)&&f&&(e=(0,xr.resolveUrl)(this.opts.uriResolver,e,f))}let u;if(typeof n!="boolean"&&n.$ref&&!(0,tv.schemaHasRulesButRef)(n,this.RULES)){let d=(0,xr.resolveUrl)(this.opts.uriResolver,e,n.$ref);u=mu.call(this,s,d)}let{schemaId:l}=this.opts;if(u=u||new Ao({schema:n,schemaId:l,root:s,baseId:e}),u.schema!==u.root.schema)return u}});var nv=T((rq,HC)=>{HC.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var sv=T((_u,iv)=>{(function(r,e){typeof _u=="object"&&typeof iv<"u"?e(_u):typeof define=="function"&&define.amd?define(["exports"],e):e(r.URI=r.URI||{})})(_u,function(r){"use strict";function e(){for(var E=arguments.length,v=Array(E),b=0;b<E;b++)v[b]=arguments[b];if(v.length>1){v[0]=v[0].slice(0,-1);for(var P=v.length-1,I=1;I<P;++I)v[I]=v[I].slice(1,-1);return v[P]=v[P].slice(1),v.join("")}else return v[0]}function n(E){return"(?:"+E+")"}function s(E){return E===void 0?"undefined":E===null?"null":Object.prototype.toString.call(E).split(" ").pop().split("]").shift().toLowerCase()}function a(E){return E.toUpperCase()}function u(E){return E!=null?E instanceof Array?E:typeof E.length!="number"||E.split||E.setInterval||E.call?[E]:Array.prototype.slice.call(E):[]}function l(E,v){var b=E;if(v)for(var P in v)b[P]=v[P];return b}function d(E){var v="[A-Za-z]",b="[\\x0D]",P="[0-9]",I="[\\x22]",U=e(P,"[A-Fa-f]"),re="[\\x0A]",me="[\\x20]",Se=n(n("%[EFef]"+U+"%"+U+U+"%"+U+U)+"|"+n("%[89A-Fa-f]"+U+"%"+U+U)+"|"+n("%"+U+U)),Ge="[\\:\\/\\?\\#\\[\\]\\@]",ge="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Me=e(Ge,ge),We=E?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",De=E?"[\\uE000-\\uF8FF]":"[]",de=e(v,P,"[\\-\\.\\_\\~]",We),Fe=n(v+e(v,P,"[\\+\\-\\.]")+"*"),$e=n(n(Se+"|"+e(de,ge,"[\\:]"))+"*"),Qr=n(n("25[0-5]")+"|"+n("2[0-4]"+P)+"|"+n("1"+P+P)+"|"+n("[1-9]"+P)+"|"+P),Et=n(n("25[0-5]")+"|"+n("2[0-4]"+P)+"|"+n("1"+P+P)+"|"+n("0?[1-9]"+P)+"|0?0?"+P),Nt=n(Et+"\\."+Et+"\\."+Et+"\\."+Et),Ae=n(U+"{1,4}"),ft=n(n(Ae+"\\:"+Ae)+"|"+Nt),$t=n(n(Ae+"\\:")+"{6}"+ft),nr=n("\\:\\:"+n(Ae+"\\:")+"{5}"+ft),en=n(n(Ae)+"?\\:\\:"+n(Ae+"\\:")+"{4}"+ft),br=n(n(n(Ae+"\\:")+"{0,1}"+Ae)+"?\\:\\:"+n(Ae+"\\:")+"{3}"+ft),ii=n(n(n(Ae+"\\:")+"{0,2}"+Ae)+"?\\:\\:"+n(Ae+"\\:")+"{2}"+ft),si=n(n(n(Ae+"\\:")+"{0,3}"+Ae)+"?\\:\\:"+Ae+"\\:"+ft),oi=n(n(n(Ae+"\\:")+"{0,4}"+Ae)+"?\\:\\:"+ft),tn=n(n(n(Ae+"\\:")+"{0,5}"+Ae)+"?\\:\\:"+Ae),Fr=n(n(n(Ae+"\\:")+"{0,6}"+Ae)+"?\\:\\:"),Sr=n([$t,nr,en,br,ii,si,oi,tn,Fr].join("|")),rn=n(n(de+"|"+Se)+"+"),Cn=n(Sr+"\\%25"+rn),jr=n(Sr+n("\\%25|\\%(?!"+U+"{2})")+rn),Gu=n("[vV]"+U+"+\\."+e(de,ge,"[\\:]")+"+"),Yo=n("\\["+n(jr+"|"+Sr+"|"+Gu)+"\\]"),Ns=n(n(Se+"|"+e(de,ge))+"*"),nn=n(Yo+"|"+Nt+"(?!"+Ns+")|"+Ns),ai=n(P+"*"),xs=n(n($e+"@")+"?"+nn+n("\\:"+ai)+"?"),sn=n(Se+"|"+e(de,ge,"[\\:\\@]")),Ds=n(sn+"*"),on=n(sn+"+"),Jo=n(n(Se+"|"+e(de,ge,"[\\@]"))+"+"),ir=n(n("\\/"+Ds)+"*"),In=n("\\/"+n(on+ir)+"?"),ki=n(Jo+ir),ui=n(on+ir),an="(?!"+sn+")",Wu=n(ir+"|"+In+"|"+ki+"|"+ui+"|"+an),Tn=n(n(sn+"|"+e("[\\/\\?]",De))+"*"),ci=n(n(sn+"|[\\/\\?]")+"*"),Zo=n(n("\\/\\/"+xs+ir)+"|"+In+"|"+ui+"|"+an),Qo=n(Fe+"\\:"+Zo+n("\\?"+Tn)+"?"+n("\\#"+ci)+"?"),zu=n(n("\\/\\/"+xs+ir)+"|"+In+"|"+ki+"|"+an),Bu=n(zu+n("\\?"+Tn)+"?"+n("\\#"+ci)+"?"),ih=n(Qo+"|"+Bu),sh=n(Fe+"\\:"+Zo+n("\\?"+Tn)+"?"),ea="^("+Fe+")\\:"+n(n("\\/\\/("+n("("+$e+")@")+"?("+nn+")"+n("\\:("+ai+")")+"?)")+"?("+ir+"|"+In+"|"+ui+"|"+an+")")+n("\\?("+Tn+")")+"?"+n("\\#("+ci+")")+"?$",oh="^(){0}"+n(n("\\/\\/("+n("("+$e+")@")+"?("+nn+")"+n("\\:("+ai+")")+"?)")+"?("+ir+"|"+In+"|"+ki+"|"+an+")")+n("\\?("+Tn+")")+"?"+n("\\#("+ci+")")+"?$",ah="^("+Fe+")\\:"+n(n("\\/\\/("+n("("+$e+")@")+"?("+nn+")"+n("\\:("+ai+")")+"?)")+"?("+ir+"|"+In+"|"+ui+"|"+an+")")+n("\\?("+Tn+")")+"?$",uh="^"+n("\\#("+ci+")")+"?$",ch="^"+n("("+$e+")@")+"?("+nn+")"+n("\\:("+ai+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",v,P,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",de,ge),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",de,ge),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",de,ge),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",de,ge),"g"),NOT_QUERY:new RegExp(e("[^\\%]",de,ge,"[\\:\\@\\/\\?]",De),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",de,ge,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",de,ge),"g"),UNRESERVED:new RegExp(de,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",de,Me),"g"),PCT_ENCODED:new RegExp(Se,"g"),IPV4ADDRESS:new RegExp("^("+Nt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Sr+")"+n(n("\\%25|\\%(?!"+U+"{2})")+"("+rn+")")+"?\\]?$")}}var g=d(!1),f=d(!0),_=function(){function E(v,b){var P=[],I=!0,U=!1,re=void 0;try{for(var me=v[Symbol.iterator](),Se;!(I=(Se=me.next()).done)&&(P.push(Se.value),!(b&&P.length===b));I=!0);}catch(Ge){U=!0,re=Ge}finally{try{!I&&me.return&&me.return()}finally{if(U)throw re}}return P}return function(v,b){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return E(v,b);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(E){if(Array.isArray(E)){for(var v=0,b=Array(E.length);v<E.length;v++)b[v]=E[v];return b}else return Array.from(E)},R=2147483647,A=36,x=1,L=26,j=38,F=700,Z=72,K=128,ue="-",z=/^xn--/,Ve=/[^\0-\x7E]/,ct=/[\x2E\u3002\uFF0E\uFF61]/g,qr={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ct=A-x,xe=Math.floor,It=String.fromCharCode;function Ht(E){throw new RangeError(qr[E])}function Di(E,v){for(var b=[],P=E.length;P--;)b[P]=v(E[P]);return b}function qi(E,v){var b=E.split("@"),P="";b.length>1&&(P=b[0]+"@",E=b[1]),E=E.replace(ct,".");var I=E.split("."),U=Di(I,v).join(".");return P+U}function Lr(E){for(var v=[],b=0,P=E.length;b<P;){var I=E.charCodeAt(b++);if(I>=55296&&I<=56319&&b<P){var U=E.charCodeAt(b++);(U&64512)==56320?v.push(((I&1023)<<10)+(U&1023)+65536):(v.push(I),b--)}else v.push(I)}return v}var Mr=function(v){return String.fromCodePoint.apply(String,w(v))},qu=function(v){return v-48<10?v-22:v-65<26?v-65:v-97<26?v-97:A},ei=function(v,b){return v+22+75*(v<26)-((b!=0)<<5)},Vt=function(v,b,P){var I=0;for(v=P?xe(v/F):v>>1,v+=xe(v/b);v>Ct*L>>1;I+=A)v=xe(v/Ct);return xe(I+(Ct+1)*v/(v+j))},Uo=function(v){var b=[],P=v.length,I=0,U=K,re=Z,me=v.lastIndexOf(ue);me<0&&(me=0);for(var Se=0;Se<me;++Se)v.charCodeAt(Se)>=128&&Ht("not-basic"),b.push(v.charCodeAt(Se));for(var Ge=me>0?me+1:0;Ge<P;){for(var ge=I,Me=1,We=A;;We+=A){Ge>=P&&Ht("invalid-input");var De=qu(v.charCodeAt(Ge++));(De>=A||De>xe((R-I)/Me))&&Ht("overflow"),I+=De*Me;var de=We<=re?x:We>=re+L?L:We-re;if(De<de)break;var Fe=A-de;Me>xe(R/Fe)&&Ht("overflow"),Me*=Fe}var $e=b.length+1;re=Vt(I-ge,$e,ge==0),xe(I/$e)>R-U&&Ht("overflow"),U+=xe(I/$e),I%=$e,b.splice(I++,0,U)}return String.fromCodePoint.apply(String,b)},Ho=function(v){var b=[];v=Lr(v);var P=v.length,I=K,U=0,re=Z,me=!0,Se=!1,Ge=void 0;try{for(var ge=v[Symbol.iterator](),Me;!(me=(Me=ge.next()).done);me=!0){var We=Me.value;We<128&&b.push(It(We))}}catch(jr){Se=!0,Ge=jr}finally{try{!me&&ge.return&&ge.return()}finally{if(Se)throw Ge}}var De=b.length,de=De;for(De&&b.push(ue);de<P;){var Fe=R,$e=!0,Qr=!1,Et=void 0;try{for(var Nt=v[Symbol.iterator](),Ae;!($e=(Ae=Nt.next()).done);$e=!0){var ft=Ae.value;ft>=I&&ft<Fe&&(Fe=ft)}}catch(jr){Qr=!0,Et=jr}finally{try{!$e&&Nt.return&&Nt.return()}finally{if(Qr)throw Et}}var $t=de+1;Fe-I>xe((R-U)/$t)&&Ht("overflow"),U+=(Fe-I)*$t,I=Fe;var nr=!0,en=!1,br=void 0;try{for(var ii=v[Symbol.iterator](),si;!(nr=(si=ii.next()).done);nr=!0){var oi=si.value;if(oi<I&&++U>R&&Ht("overflow"),oi==I){for(var tn=U,Fr=A;;Fr+=A){var Sr=Fr<=re?x:Fr>=re+L?L:Fr-re;if(tn<Sr)break;var rn=tn-Sr,Cn=A-Sr;b.push(It(ei(Sr+rn%Cn,0))),tn=xe(rn/Cn)}b.push(It(ei(tn,0))),re=Vt(U,$t,de==De),U=0,++de}}}catch(jr){en=!0,br=jr}finally{try{!nr&&ii.return&&ii.return()}finally{if(en)throw br}}++U,++I}return b.join("")},Lu=function(v){return qi(v,function(b){return z.test(b)?Uo(b.slice(4).toLowerCase()):b})},bn=function(v){return qi(v,function(b){return Ve.test(b)?"xn--"+Ho(b):b})},Er={version:"2.1.0",ucs2:{decode:Lr,encode:Mr},decode:Uo,encode:Ho,toASCII:bn,toUnicode:Lu},Tt={};function lt(E){var v=E.charCodeAt(0),b=void 0;return v<16?b="%0"+v.toString(16).toUpperCase():v<128?b="%"+v.toString(16).toUpperCase():v<2048?b="%"+(v>>6|192).toString(16).toUpperCase()+"%"+(v&63|128).toString(16).toUpperCase():b="%"+(v>>12|224).toString(16).toUpperCase()+"%"+(v>>6&63|128).toString(16).toUpperCase()+"%"+(v&63|128).toString(16).toUpperCase(),b}function er(E){for(var v="",b=0,P=E.length;b<P;){var I=parseInt(E.substr(b+1,2),16);if(I<128)v+=String.fromCharCode(I),b+=3;else if(I>=194&&I<224){if(P-b>=6){var U=parseInt(E.substr(b+4,2),16);v+=String.fromCharCode((I&31)<<6|U&63)}else v+=E.substr(b,6);b+=6}else if(I>=224){if(P-b>=9){var re=parseInt(E.substr(b+4,2),16),me=parseInt(E.substr(b+7,2),16);v+=String.fromCharCode((I&15)<<12|(re&63)<<6|me&63)}else v+=E.substr(b,9);b+=9}else v+=E.substr(b,3),b+=3}return v}function bs(E,v){function b(P){var I=er(P);return I.match(v.UNRESERVED)?I:P}return E.scheme&&(E.scheme=String(E.scheme).replace(v.PCT_ENCODED,b).toLowerCase().replace(v.NOT_SCHEME,"")),E.userinfo!==void 0&&(E.userinfo=String(E.userinfo).replace(v.PCT_ENCODED,b).replace(v.NOT_USERINFO,lt).replace(v.PCT_ENCODED,a)),E.host!==void 0&&(E.host=String(E.host).replace(v.PCT_ENCODED,b).toLowerCase().replace(v.NOT_HOST,lt).replace(v.PCT_ENCODED,a)),E.path!==void 0&&(E.path=String(E.path).replace(v.PCT_ENCODED,b).replace(E.scheme?v.NOT_PATH:v.NOT_PATH_NOSCHEME,lt).replace(v.PCT_ENCODED,a)),E.query!==void 0&&(E.query=String(E.query).replace(v.PCT_ENCODED,b).replace(v.NOT_QUERY,lt).replace(v.PCT_ENCODED,a)),E.fragment!==void 0&&(E.fragment=String(E.fragment).replace(v.PCT_ENCODED,b).replace(v.NOT_FRAGMENT,lt).replace(v.PCT_ENCODED,a)),E}function Sn(E){return E.replace(/^0*(.*)/,"$1")||"0"}function On(E,v){var b=E.match(v.IPV4ADDRESS)||[],P=_(b,2),I=P[1];return I?I.split(".").map(Sn).join("."):E}function Ss(E,v){var b=E.match(v.IPV6ADDRESS)||[],P=_(b,3),I=P[1],U=P[2];if(I){for(var re=I.toLowerCase().split("::").reverse(),me=_(re,2),Se=me[0],Ge=me[1],ge=Ge?Ge.split(":").map(Sn):[],Me=Se.split(":").map(Sn),We=v.IPV4ADDRESS.test(Me[Me.length-1]),De=We?7:8,de=Me.length-De,Fe=Array(De),$e=0;$e<De;++$e)Fe[$e]=ge[$e]||Me[de+$e]||"";We&&(Fe[De-1]=On(Fe[De-1],v));var Qr=Fe.reduce(function($t,nr,en){if(!nr||nr==="0"){var br=$t[$t.length-1];br&&br.index+br.length===en?br.length++:$t.push({index:en,length:1})}return $t},[]),Et=Qr.sort(function($t,nr){return nr.length-$t.length})[0],Nt=void 0;if(Et&&Et.length>1){var Ae=Fe.slice(0,Et.index),ft=Fe.slice(Et.index+Et.length);Nt=Ae.join(":")+"::"+ft.join(":")}else Nt=Fe.join(":");return U&&(Nt+="%"+U),Nt}else return E}var Gt=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ti="".match(/(){0}/)[1]===void 0;function $r(E){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b={},P=v.iri!==!1?f:g;v.reference==="suffix"&&(E=(v.scheme?v.scheme+":":"")+"//"+E);var I=E.match(Gt);if(I){ti?(b.scheme=I[1],b.userinfo=I[3],b.host=I[4],b.port=parseInt(I[5],10),b.path=I[6]||"",b.query=I[7],b.fragment=I[8],isNaN(b.port)&&(b.port=I[5])):(b.scheme=I[1]||void 0,b.userinfo=E.indexOf("@")!==-1?I[3]:void 0,b.host=E.indexOf("//")!==-1?I[4]:void 0,b.port=parseInt(I[5],10),b.path=I[6]||"",b.query=E.indexOf("?")!==-1?I[7]:void 0,b.fragment=E.indexOf("#")!==-1?I[8]:void 0,isNaN(b.port)&&(b.port=E.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?I[4]:void 0)),b.host&&(b.host=Ss(On(b.host,P),P)),b.scheme===void 0&&b.userinfo===void 0&&b.host===void 0&&b.port===void 0&&!b.path&&b.query===void 0?b.reference="same-document":b.scheme===void 0?b.reference="relative":b.fragment===void 0?b.reference="absolute":b.reference="uri",v.reference&&v.reference!=="suffix"&&v.reference!==b.reference&&(b.error=b.error||"URI is not a "+v.reference+" reference.");var U=Tt[(v.scheme||b.scheme||"").toLowerCase()];if(!v.unicodeSupport&&(!U||!U.unicodeSupport)){if(b.host&&(v.domainHost||U&&U.domainHost))try{b.host=Er.toASCII(b.host.replace(P.PCT_ENCODED,er).toLowerCase())}catch(re){b.error=b.error||"Host's domain name can not be converted to ASCII via punycode: "+re}bs(b,g)}else bs(b,P);U&&U.parse&&U.parse(b,v)}else b.error=b.error||"URI can not be parsed.";return b}function wr(E,v){var b=v.iri!==!1?f:g,P=[];return E.userinfo!==void 0&&(P.push(E.userinfo),P.push("@")),E.host!==void 0&&P.push(Ss(On(String(E.host),b),b).replace(b.IPV6ADDRESS,function(I,U,re){return"["+U+(re?"%25"+re:"")+"]"})),(typeof E.port=="number"||typeof E.port=="string")&&(P.push(":"),P.push(String(E.port))),P.length?P.join(""):void 0}var Os=/^\.\.?\//,Vo=/^\/\.(\/|$)/,Rn=/^\/\.\.(\/|$)/,Wt=/^\/?(?:.|\n)*?(?=\/|$)/;function tr(E){for(var v=[];E.length;)if(E.match(Os))E=E.replace(Os,"");else if(E.match(Vo))E=E.replace(Vo,"/");else if(E.match(Rn))E=E.replace(Rn,"/"),v.pop();else if(E==="."||E==="..")E="";else{var b=E.match(Wt);if(b){var P=b[0];E=E.slice(P.length),v.push(P)}else throw new Error("Unexpected dot segment condition")}return v.join("")}function yt(E){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=v.iri?f:g,P=[],I=Tt[(v.scheme||E.scheme||"").toLowerCase()];if(I&&I.serialize&&I.serialize(E,v),E.host&&!b.IPV6ADDRESS.test(E.host)){if(v.domainHost||I&&I.domainHost)try{E.host=v.iri?Er.toUnicode(E.host):Er.toASCII(E.host.replace(b.PCT_ENCODED,er).toLowerCase())}catch(me){E.error=E.error||"Host's domain name can not be converted to "+(v.iri?"Unicode":"ASCII")+" via punycode: "+me}}bs(E,b),v.reference!=="suffix"&&E.scheme&&(P.push(E.scheme),P.push(":"));var U=wr(E,v);if(U!==void 0&&(v.reference!=="suffix"&&P.push("//"),P.push(U),E.path&&E.path.charAt(0)!=="/"&&P.push("/")),E.path!==void 0){var re=E.path;!v.absolutePath&&(!I||!I.absolutePath)&&(re=tr(re)),U===void 0&&(re=re.replace(/^\/\//,"/%2F")),P.push(re)}return E.query!==void 0&&(P.push("?"),P.push(E.query)),E.fragment!==void 0&&(P.push("#"),P.push(E.fragment)),P.join("")}function Go(E,v){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},P=arguments[3],I={};return P||(E=$r(yt(E,b),b),v=$r(yt(v,b),b)),b=b||{},!b.tolerant&&v.scheme?(I.scheme=v.scheme,I.userinfo=v.userinfo,I.host=v.host,I.port=v.port,I.path=tr(v.path||""),I.query=v.query):(v.userinfo!==void 0||v.host!==void 0||v.port!==void 0?(I.userinfo=v.userinfo,I.host=v.host,I.port=v.port,I.path=tr(v.path||""),I.query=v.query):(v.path?(v.path.charAt(0)==="/"?I.path=tr(v.path):((E.userinfo!==void 0||E.host!==void 0||E.port!==void 0)&&!E.path?I.path="/"+v.path:E.path?I.path=E.path.slice(0,E.path.lastIndexOf("/")+1)+v.path:I.path=v.path,I.path=tr(I.path)),I.query=v.query):(I.path=E.path,v.query!==void 0?I.query=v.query:I.query=E.query),I.userinfo=E.userinfo,I.host=E.host,I.port=E.port),I.scheme=E.scheme),I.fragment=v.fragment,I}function ri(E,v,b){var P=l({scheme:"null"},b);return yt(Go($r(E,P),$r(v,P),P,!0),P)}function Mu(E,v){return typeof E=="string"?E=yt($r(E,v),v):s(E)==="object"&&(E=$r(yt(E,v),v)),E}function ni(E,v,b){return typeof E=="string"?E=yt($r(E,b),b):s(E)==="object"&&(E=yt(E,b)),typeof v=="string"?v=yt($r(v,b),b):s(v)==="object"&&(v=yt(v,b)),E===v}function An(E,v){return E&&E.toString().replace(!v||!v.iri?g.ESCAPE:f.ESCAPE,lt)}function zt(E,v){return E&&E.toString().replace(!v||!v.iri?g.PCT_ENCODED:f.PCT_ENCODED,er)}var Jr={scheme:"http",domainHost:!0,parse:function(v,b){return v.host||(v.error=v.error||"HTTP URIs must have a host."),v},serialize:function(v,b){var P=String(v.scheme).toLowerCase()==="https";return(v.port===(P?443:80)||v.port==="")&&(v.port=void 0),v.path||(v.path="/"),v}},Li={scheme:"https",domainHost:Jr.domainHost,parse:Jr.parse,serialize:Jr.serialize};function Mi(E){return typeof E.secure=="boolean"?E.secure:String(E.scheme).toLowerCase()==="wss"}var Zr={scheme:"ws",domainHost:!0,parse:function(v,b){var P=v;return P.secure=Mi(P),P.resourceName=(P.path||"/")+(P.query?"?"+P.query:""),P.path=void 0,P.query=void 0,P},serialize:function(v,b){if((v.port===(Mi(v)?443:80)||v.port==="")&&(v.port=void 0),typeof v.secure=="boolean"&&(v.scheme=v.secure?"wss":"ws",v.secure=void 0),v.resourceName){var P=v.resourceName.split("?"),I=_(P,2),U=I[0],re=I[1];v.path=U&&U!=="/"?U:void 0,v.query=re,v.resourceName=void 0}return v.fragment=void 0,v}},Fi={scheme:"wss",domainHost:Zr.domainHost,parse:Zr.parse,serialize:Zr.serialize},Rs={},As=!0,ji="[A-Za-z0-9\\-\\.\\_\\~"+(As?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",rr="[0-9A-Fa-f]",Fu=n(n("%[EFef]"+rr+"%"+rr+rr+"%"+rr+rr)+"|"+n("%[89A-Fa-f]"+rr+"%"+rr+rr)+"|"+n("%"+rr+rr)),ju="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Wo="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",zo=e(Wo,'[\\"\\\\]'),ku="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Uu=new RegExp(ji,"g"),Pn=new RegExp(Fu,"g"),Hu=new RegExp(e("[^]",ju,"[\\.]",'[\\"]',zo),"g"),Ps=new RegExp(e("[^]",ji,ku),"g"),Vu=Ps;function Cs(E){var v=er(E);return v.match(Uu)?v:E}var Bo={scheme:"mailto",parse:function(v,b){var P=v,I=P.to=P.path?P.path.split(","):[];if(P.path=void 0,P.query){for(var U=!1,re={},me=P.query.split("&"),Se=0,Ge=me.length;Se<Ge;++Se){var ge=me[Se].split("=");switch(ge[0]){case"to":for(var Me=ge[1].split(","),We=0,De=Me.length;We<De;++We)I.push(Me[We]);break;case"subject":P.subject=zt(ge[1],b);break;case"body":P.body=zt(ge[1],b);break;default:U=!0,re[zt(ge[0],b)]=zt(ge[1],b);break}}U&&(P.headers=re)}P.query=void 0;for(var de=0,Fe=I.length;de<Fe;++de){var $e=I[de].split("@");if($e[0]=zt($e[0]),b.unicodeSupport)$e[1]=zt($e[1],b).toLowerCase();else try{$e[1]=Er.toASCII(zt($e[1],b).toLowerCase())}catch(Qr){P.error=P.error||"Email address's domain name can not be converted to ASCII via punycode: "+Qr}I[de]=$e.join("@")}return P},serialize:function(v,b){var P=v,I=u(v.to);if(I){for(var U=0,re=I.length;U<re;++U){var me=String(I[U]),Se=me.lastIndexOf("@"),Ge=me.slice(0,Se).replace(Pn,Cs).replace(Pn,a).replace(Hu,lt),ge=me.slice(Se+1);try{ge=b.iri?Er.toUnicode(ge):Er.toASCII(zt(ge,b).toLowerCase())}catch(de){P.error=P.error||"Email address's domain name can not be converted to "+(b.iri?"Unicode":"ASCII")+" via punycode: "+de}I[U]=Ge+"@"+ge}P.path=I.join(",")}var Me=v.headers=v.headers||{};v.subject&&(Me.subject=v.subject),v.body&&(Me.body=v.body);var We=[];for(var De in Me)Me[De]!==Rs[De]&&We.push(De.replace(Pn,Cs).replace(Pn,a).replace(Ps,lt)+"="+Me[De].replace(Pn,Cs).replace(Pn,a).replace(Vu,lt));return We.length&&(P.query=We.join("&")),P}},Is=/^([^\:]+)\:(.*)/,Ko={scheme:"urn",parse:function(v,b){var P=v.path&&v.path.match(Is),I=v;if(P){var U=b.scheme||I.scheme||"urn",re=P[1].toLowerCase(),me=P[2],Se=U+":"+(b.nid||re),Ge=Tt[Se];I.nid=re,I.nss=me,I.path=void 0,Ge&&(I=Ge.parse(I,b))}else I.error=I.error||"URN can not be parsed.";return I},serialize:function(v,b){var P=b.scheme||v.scheme||"urn",I=v.nid,U=P+":"+(b.nid||I),re=Tt[U];re&&(v=re.serialize(v,b));var me=v,Se=v.nss;return me.path=(I||b.nid)+":"+Se,me}},Ts=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Xo={scheme:"urn:uuid",parse:function(v,b){var P=v;return P.uuid=P.nss,P.nss=void 0,!b.tolerant&&(!P.uuid||!P.uuid.match(Ts))&&(P.error=P.error||"UUID is not valid."),P},serialize:function(v,b){var P=v;return P.nss=(v.uuid||"").toLowerCase(),P}};Tt[Jr.scheme]=Jr,Tt[Li.scheme]=Li,Tt[Zr.scheme]=Zr,Tt[Fi.scheme]=Fi,Tt[Bo.scheme]=Bo,Tt[Ko.scheme]=Ko,Tt[Xo.scheme]=Xo,r.SCHEMES=Tt,r.pctEncChar=lt,r.pctDecChars=er,r.parse=$r,r.removeDotSegments=tr,r.serialize=yt,r.resolveComponents=Go,r.resolve=ri,r.normalize=Mu,r.equal=ni,r.escapeComponent=An,r.unescapeComponent=zt,Object.defineProperty(r,"__esModule",{value:!0})})});var av=T(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});var ov=sv();ov.code='require("ajv/dist/runtime/uri").default';uf.default=ov});var mv=T(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.CodeGen=at.Name=at.nil=at.stringify=at.str=at._=at.KeywordCxt=void 0;var VC=Ro();Object.defineProperty(at,"KeywordCxt",{enumerable:!0,get:function(){return VC.KeywordCxt}});var ls=he();Object.defineProperty(at,"_",{enumerable:!0,get:function(){return ls._}});Object.defineProperty(at,"str",{enumerable:!0,get:function(){return ls.str}});Object.defineProperty(at,"stringify",{enumerable:!0,get:function(){return ls.stringify}});Object.defineProperty(at,"nil",{enumerable:!0,get:function(){return ls.nil}});Object.defineProperty(at,"Name",{enumerable:!0,get:function(){return ls.Name}});Object.defineProperty(at,"CodeGen",{enumerable:!0,get:function(){return ls.CodeGen}});var GC=tf(),hv=sf(),WC=kl(),Po=gu(),zC=he(),Co=bo(),vu=wo(),lf=be(),uv=nv(),BC=av(),dv=(r,e)=>new RegExp(r,e);dv.code="new RegExp";var KC=["removeAdditional","useDefaults","coerceTypes"],XC=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),YC={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},JC={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},cv=200;function ZC(r){var e,n,s,a,u,l,d,g,f,_,w,R,A,x,L,j,F,Z,K,ue,z,Ve,ct,qr,Ct;let xe=r.strict,It=(e=r.code)===null||e===void 0?void 0:e.optimize,Ht=It===!0||It===void 0?1:It||0,Di=(s=(n=r.code)===null||n===void 0?void 0:n.regExp)!==null&&s!==void 0?s:dv,qi=(a=r.uriResolver)!==null&&a!==void 0?a:BC.default;return{strictSchema:(l=(u=r.strictSchema)!==null&&u!==void 0?u:xe)!==null&&l!==void 0?l:!0,strictNumbers:(g=(d=r.strictNumbers)!==null&&d!==void 0?d:xe)!==null&&g!==void 0?g:!0,strictTypes:(_=(f=r.strictTypes)!==null&&f!==void 0?f:xe)!==null&&_!==void 0?_:"log",strictTuples:(R=(w=r.strictTuples)!==null&&w!==void 0?w:xe)!==null&&R!==void 0?R:"log",strictRequired:(x=(A=r.strictRequired)!==null&&A!==void 0?A:xe)!==null&&x!==void 0?x:!1,code:r.code?dr(Xe({},r.code),{optimize:Ht,regExp:Di}):{optimize:Ht,regExp:Di},loopRequired:(L=r.loopRequired)!==null&&L!==void 0?L:cv,loopEnum:(j=r.loopEnum)!==null&&j!==void 0?j:cv,meta:(F=r.meta)!==null&&F!==void 0?F:!0,messages:(Z=r.messages)!==null&&Z!==void 0?Z:!0,inlineRefs:(K=r.inlineRefs)!==null&&K!==void 0?K:!0,schemaId:(ue=r.schemaId)!==null&&ue!==void 0?ue:"$id",addUsedSchema:(z=r.addUsedSchema)!==null&&z!==void 0?z:!0,validateSchema:(Ve=r.validateSchema)!==null&&Ve!==void 0?Ve:!0,validateFormats:(ct=r.validateFormats)!==null&&ct!==void 0?ct:!0,unicodeRegExp:(qr=r.unicodeRegExp)!==null&&qr!==void 0?qr:!0,int32range:(Ct=r.int32range)!==null&&Ct!==void 0?Ct:!0,uriResolver:qi}}var yu=class{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts=Xe(Xe({},e),ZC(e));let{es5:n,lines:s}=this.opts.code;this.scope=new zC.ValueScope({scope:{},prefixes:XC,es5:n,lines:s}),this.logger=iI(e.logger);let a=e.validateFormats;e.validateFormats=!1,this.RULES=(0,WC.getRules)(),lv.call(this,YC,e,"NOT SUPPORTED"),lv.call(this,JC,e,"DEPRECATED","warn"),this._metaOpts=rI.call(this),e.formats&&eI.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&tI.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),QC.call(this),e.validateFormats=a}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:n,schemaId:s}=this.opts,a=uv;s==="id"&&(a=Xe({},uv),a.id=a.$id,delete a.$id),n&&e&&this.addMetaSchema(a,a[s],!1)}defaultMeta(){let{meta:e,schemaId:n}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[n]||e:void 0}validate(e,n){let s;if(typeof e=="string"){if(s=this.getSchema(e),!s)throw new Error(`no schema with key or ref "${e}"`)}else s=this.compile(e);let a=s(n);return"$async"in s||(this.errors=s.errors),a}compile(e,n){let s=this._addSchema(e,n);return s.validate||this._compileSchemaEnv(s)}compileAsync(e,n){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:s}=this.opts;return a.call(this,e,n);async function a(_,w){await u.call(this,_.$schema);let R=this._addSchema(_,w);return R.validate||l.call(this,R)}async function u(_){_&&!this.getSchema(_)&&await a.call(this,{$ref:_},!0)}async function l(_){try{return this._compileSchemaEnv(_)}catch(w){if(!(w instanceof hv.default))throw w;return d.call(this,w),await g.call(this,w.missingSchema),l.call(this,_)}}function d({missingSchema:_,missingRef:w}){if(this.refs[_])throw new Error(`AnySchema ${_} is loaded but ${w} cannot be resolved`)}async function g(_){let w=await f.call(this,_);this.refs[_]||await u.call(this,w.$schema),this.refs[_]||this.addSchema(w,_,n)}async function f(_){let w=this._loading[_];if(w)return w;try{return await(this._loading[_]=s(_))}finally{delete this._loading[_]}}}addSchema(e,n,s,a=this.opts.validateSchema){if(Array.isArray(e)){for(let l of e)this.addSchema(l,void 0,s,a);return this}let u;if(typeof e=="object"){let{schemaId:l}=this.opts;if(u=e[l],u!==void 0&&typeof u!="string")throw new Error(`schema ${l} must be string`)}return n=(0,Co.normalizeId)(n||u),this._checkUnique(n),this.schemas[n]=this._addSchema(e,s,n,a,!0),this}addMetaSchema(e,n,s=this.opts.validateSchema){return this.addSchema(e,n,!0,s),this}validateSchema(e,n){if(typeof e=="boolean")return!0;let s;if(s=e.$schema,s!==void 0&&typeof s!="string")throw new Error("$schema must be a string");if(s=s||this.opts.defaultMeta||this.defaultMeta(),!s)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let a=this.validate(s,e);if(!a&&n){let u="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(u);else throw new Error(u)}return a}getSchema(e){let n;for(;typeof(n=fv.call(this,e))=="string";)e=n;if(n===void 0){let{schemaId:s}=this.opts,a=new Po.SchemaEnv({schema:{},schemaId:s});if(n=Po.resolveSchema.call(this,a,e),!n)return;this.refs[e]=n}return n.validate||this._compileSchemaEnv(n)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let n=fv.call(this,e);return typeof n=="object"&&this._cache.delete(n.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let n=e;this._cache.delete(n);let s=e[this.opts.schemaId];return s&&(s=(0,Co.normalizeId)(s),delete this.schemas[s],delete this.refs[s]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let n of e)this.addKeyword(n);return this}addKeyword(e,n){let s;if(typeof e=="string")s=e,typeof n=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),n.keyword=s);else if(typeof e=="object"&&n===void 0){if(n=e,s=n.keyword,Array.isArray(s)&&!s.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(oI.call(this,s,n),!n)return(0,lf.eachItem)(s,u=>cf.call(this,u)),this;uI.call(this,n);let a=dr(Xe({},n),{type:(0,vu.getJSONTypes)(n.type),schemaType:(0,vu.getJSONTypes)(n.schemaType)});return(0,lf.eachItem)(s,a.type.length===0?u=>cf.call(this,u,a):u=>a.type.forEach(l=>cf.call(this,u,a,l))),this}getKeyword(e){let n=this.RULES.all[e];return typeof n=="object"?n.definition:!!n}removeKeyword(e){let{RULES:n}=this;delete n.keywords[e],delete n.all[e];for(let s of n.rules){let a=s.rules.findIndex(u=>u.keyword===e);a>=0&&s.rules.splice(a,1)}return this}addFormat(e,n){return typeof n=="string"&&(n=new RegExp(n)),this.formats[e]=n,this}errorsText(e=this.errors,{separator:n=", ",dataVar:s="data"}={}){return!e||e.length===0?"No errors":e.map(a=>`${s}${a.instancePath} ${a.message}`).reduce((a,u)=>a+n+u)}$dataMetaSchema(e,n){let s=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let a of n){let u=a.split("/").slice(1),l=e;for(let d of u)l=l[d];for(let d in s){let g=s[d];if(typeof g!="object")continue;let{$data:f}=g.definition,_=l[d];f&&_&&(l[d]=pv(_))}}return e}_removeAllSchemas(e,n){for(let s in e){let a=e[s];(!n||n.test(s))&&(typeof a=="string"?delete e[s]:a&&!a.meta&&(this._cache.delete(a.schema),delete e[s]))}}_addSchema(e,n,s,a=this.opts.validateSchema,u=this.opts.addUsedSchema){let l,{schemaId:d}=this.opts;if(typeof e=="object")l=e[d];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let g=this._cache.get(e);if(g!==void 0)return g;s=(0,Co.normalizeId)(l||s);let f=Co.getSchemaRefs.call(this,e,s);return g=new Po.SchemaEnv({schema:e,schemaId:d,meta:n,baseId:s,localRefs:f}),this._cache.set(g.schema,g),u&&!s.startsWith("#")&&(s&&this._checkUnique(s),this.refs[s]=g),a&&this.validateSchema(e,!0),g}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):Po.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let n=this.opts;this.opts=this._metaOpts;try{Po.compileSchema.call(this,e)}finally{this.opts=n}}};at.default=yu;yu.ValidationError=GC.default;yu.MissingRefError=hv.default;function lv(r,e,n,s="error"){for(let a in r){let u=a;u in e&&this.logger[s](`${n}: option ${a}. ${r[u]}`)}}function fv(r){return r=(0,Co.normalizeId)(r),this.schemas[r]||this.refs[r]}function QC(){let r=this.opts.schemas;if(!!r)if(Array.isArray(r))this.addSchema(r);else for(let e in r)this.addSchema(r[e],e)}function eI(){for(let r in this.opts.formats){let e=this.opts.formats[r];e&&this.addFormat(r,e)}}function tI(r){if(Array.isArray(r)){this.addVocabulary(r);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in r){let n=r[e];n.keyword||(n.keyword=e),this.addKeyword(n)}}function rI(){let r=Xe({},this.opts);for(let e of KC)delete r[e];return r}var nI={log(){},warn(){},error(){}};function iI(r){if(r===!1)return nI;if(r===void 0)return console;if(r.log&&r.warn&&r.error)return r;throw new Error("logger must implement log, warn and error methods")}var sI=/^[a-z_$][a-z0-9_$:-]*$/i;function oI(r,e){let{RULES:n}=this;if((0,lf.eachItem)(r,s=>{if(n.keywords[s])throw new Error(`Keyword ${s} is already defined`);if(!sI.test(s))throw new Error(`Keyword ${s} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function cf(r,e,n){var s;let a=e==null?void 0:e.post;if(n&&a)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:u}=this,l=a?u.post:u.rules.find(({type:g})=>g===n);if(l||(l={type:n,rules:[]},u.rules.push(l)),u.keywords[r]=!0,!e)return;let d={keyword:r,definition:dr(Xe({},e),{type:(0,vu.getJSONTypes)(e.type),schemaType:(0,vu.getJSONTypes)(e.schemaType)})};e.before?aI.call(this,l,d,e.before):l.rules.push(d),u.all[r]=d,(s=e.implements)===null||s===void 0||s.forEach(g=>this.addKeyword(g))}function aI(r,e,n){let s=r.rules.findIndex(a=>a.keyword===n);s>=0?r.rules.splice(s,0,e):(r.rules.push(e),this.logger.warn(`rule ${n} is not defined`))}function uI(r){let{metaSchema:e}=r;e!==void 0&&(r.$data&&this.opts.$data&&(e=pv(e)),r.validateSchema=this.compile(e,!0))}var cI={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function pv(r){return{anyOf:[r,cI]}}});var gv=T(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});var lI={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};ff.default=lI});var Ev=T(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.callRef=Ii.getValidate=void 0;var fI=sf(),_v=_r(),kt=he(),fs=En(),vv=gu(),Eu=be(),hI={keyword:"$ref",schemaType:"string",code(r){let{gen:e,schema:n,it:s}=r,{baseId:a,schemaEnv:u,validateName:l,opts:d,self:g}=s,{root:f}=u;if((n==="#"||n==="#/")&&a===f.baseId)return w();let _=vv.resolveRef.call(g,f,a,n);if(_===void 0)throw new fI.default(s.opts.uriResolver,a,n);if(_ instanceof vv.SchemaEnv)return R(_);return A(_);function w(){if(u===f)return $u(r,l,u,u.$async);let x=e.scopeValue("root",{ref:f});return $u(r,(0,kt._)`${x}.validate`,f,f.$async)}function R(x){let L=yv(r,x);$u(r,L,x,x.$async)}function A(x){let L=e.scopeValue("schema",d.code.source===!0?{ref:x,code:(0,kt.stringify)(x)}:{ref:x}),j=e.name("valid"),F=r.subschema({schema:x,dataTypes:[],schemaPath:kt.nil,topSchemaRef:L,errSchemaPath:n},j);r.mergeEvaluated(F),r.ok(j)}}};function yv(r,e){let{gen:n}=r;return e.validate?n.scopeValue("validate",{ref:e.validate}):(0,kt._)`${n.scopeValue("wrapper",{ref:e})}.validate`}Ii.getValidate=yv;function $u(r,e,n,s){let{gen:a,it:u}=r,{allErrors:l,schemaEnv:d,opts:g}=u,f=g.passContext?fs.default.this:kt.nil;s?_():w();function _(){if(!d.$async)throw new Error("async schema referenced by sync schema");let x=a.let("valid");a.try(()=>{a.code((0,kt._)`await ${(0,_v.callValidateCode)(r,e,f)}`),A(e),l||a.assign(x,!0)},L=>{a.if((0,kt._)`!(${L} instanceof ${u.ValidationError})`,()=>a.throw(L)),R(L),l||a.assign(x,!1)}),r.ok(x)}function w(){r.result((0,_v.callValidateCode)(r,e,f),()=>A(e),()=>R(e))}function R(x){let L=(0,kt._)`${x}.errors`;a.assign(fs.default.vErrors,(0,kt._)`${fs.default.vErrors} === null ? ${L} : ${fs.default.vErrors}.concat(${L})`),a.assign(fs.default.errors,(0,kt._)`${fs.default.vErrors}.length`)}function A(x){var L;if(!u.opts.unevaluated)return;let j=(L=n==null?void 0:n.validate)===null||L===void 0?void 0:L.evaluated;if(u.props!==!0)if(j&&!j.dynamicProps)j.props!==void 0&&(u.props=Eu.mergeEvaluated.props(a,j.props,u.props));else{let F=a.var("props",(0,kt._)`${x}.evaluated.props`);u.props=Eu.mergeEvaluated.props(a,F,u.props,kt.Name)}if(u.items!==!0)if(j&&!j.dynamicItems)j.items!==void 0&&(u.items=Eu.mergeEvaluated.items(a,j.items,u.items));else{let F=a.var("items",(0,kt._)`${x}.evaluated.items`);u.items=Eu.mergeEvaluated.items(a,F,u.items,kt.Name)}}}Ii.callRef=$u;Ii.default=hI});var $v=T(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});var dI=gv(),pI=Ev(),mI=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",dI.default,pI.default];hf.default=mI});var wv=T(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});var wu=he(),Zn=wu.operators,bu={maximum:{okStr:"<=",ok:Zn.LTE,fail:Zn.GT},minimum:{okStr:">=",ok:Zn.GTE,fail:Zn.LT},exclusiveMaximum:{okStr:"<",ok:Zn.LT,fail:Zn.GTE},exclusiveMinimum:{okStr:">",ok:Zn.GT,fail:Zn.LTE}},gI={message:({keyword:r,schemaCode:e})=>(0,wu.str)`must be ${bu[r].okStr} ${e}`,params:({keyword:r,schemaCode:e})=>(0,wu._)`{comparison: ${bu[r].okStr}, limit: ${e}}`},_I={keyword:Object.keys(bu),type:"number",schemaType:"number",$data:!0,error:gI,code(r){let{keyword:e,data:n,schemaCode:s}=r;r.fail$data((0,wu._)`${n} ${bu[e].fail} ${s} || isNaN(${n})`)}};df.default=_I});var bv=T(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});var Io=he(),vI={message:({schemaCode:r})=>(0,Io.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,Io._)`{multipleOf: ${r}}`},yI={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:vI,code(r){let{gen:e,data:n,schemaCode:s,it:a}=r,u=a.opts.multipleOfPrecision,l=e.let("res"),d=u?(0,Io._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${u}`:(0,Io._)`${l} !== parseInt(${l})`;r.fail$data((0,Io._)`(${s} === 0 || (${l} = ${n}/${s}, ${d}))`)}};pf.default=yI});var Ov=T(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});function Sv(r){let e=r.length,n=0,s=0,a;for(;s<e;)n++,a=r.charCodeAt(s++),a>=55296&&a<=56319&&s<e&&(a=r.charCodeAt(s),(a&64512)===56320&&s++);return n}mf.default=Sv;Sv.code='require("ajv/dist/runtime/ucs2length").default'});var Rv=T(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});var Ti=he(),EI=be(),$I=Ov(),wI={message({keyword:r,schemaCode:e}){let n=r==="maxLength"?"more":"fewer";return(0,Ti.str)`must NOT have ${n} than ${e} characters`},params:({schemaCode:r})=>(0,Ti._)`{limit: ${r}}`},bI={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:wI,code(r){let{keyword:e,data:n,schemaCode:s,it:a}=r,u=e==="maxLength"?Ti.operators.GT:Ti.operators.LT,l=a.opts.unicode===!1?(0,Ti._)`${n}.length`:(0,Ti._)`${(0,EI.useFunc)(r.gen,$I.default)}(${n})`;r.fail$data((0,Ti._)`${l} ${u} ${s}`)}};gf.default=bI});var Av=T(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});var SI=_r(),Su=he(),OI={message:({schemaCode:r})=>(0,Su.str)`must match pattern "${r}"`,params:({schemaCode:r})=>(0,Su._)`{pattern: ${r}}`},RI={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:OI,code(r){let{data:e,$data:n,schema:s,schemaCode:a,it:u}=r,l=u.opts.unicodeRegExp?"u":"",d=n?(0,Su._)`(new RegExp(${a}, ${l}))`:(0,SI.usePattern)(r,s);r.fail$data((0,Su._)`!${d}.test(${e})`)}};_f.default=RI});var Pv=T(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});var To=he(),AI={message({keyword:r,schemaCode:e}){let n=r==="maxProperties"?"more":"fewer";return(0,To.str)`must NOT have ${n} than ${e} items`},params:({schemaCode:r})=>(0,To._)`{limit: ${r}}`},PI={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:AI,code(r){let{keyword:e,data:n,schemaCode:s}=r,a=e==="maxProperties"?To.operators.GT:To.operators.LT;r.fail$data((0,To._)`Object.keys(${n}).length ${a} ${s}`)}};vf.default=PI});var Cv=T(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});var No=_r(),xo=he(),CI=be(),II={message:({params:{missingProperty:r}})=>(0,xo.str)`must have required property '${r}'`,params:({params:{missingProperty:r}})=>(0,xo._)`{missingProperty: ${r}}`},TI={keyword:"required",type:"object",schemaType:"array",$data:!0,error:II,code(r){let{gen:e,schema:n,schemaCode:s,data:a,$data:u,it:l}=r,{opts:d}=l;if(!u&&n.length===0)return;let g=n.length>=d.loopRequired;if(l.allErrors?f():_(),d.strictRequired){let A=r.parentSchema.properties,{definedProperties:x}=r.it;for(let L of n)if((A==null?void 0:A[L])===void 0&&!x.has(L)){let j=l.schemaEnv.baseId+l.errSchemaPath,F=`required property "${L}" is not defined at "${j}" (strictRequired)`;(0,CI.checkStrictMode)(l,F,l.opts.strictRequired)}}function f(){if(g||u)r.block$data(xo.nil,w);else for(let A of n)(0,No.checkReportMissingProp)(r,A)}function _(){let A=e.let("missing");if(g||u){let x=e.let("valid",!0);r.block$data(x,()=>R(A,x)),r.ok(x)}else e.if((0,No.checkMissingProp)(r,n,A)),(0,No.reportMissingProp)(r,A),e.else()}function w(){e.forOf("prop",s,A=>{r.setParams({missingProperty:A}),e.if((0,No.noPropertyInData)(e,a,A,d.ownProperties),()=>r.error())})}function R(A,x){r.setParams({missingProperty:A}),e.forOf(A,s,()=>{e.assign(x,(0,No.propertyInData)(e,a,A,d.ownProperties)),e.if((0,xo.not)(x),()=>{r.error(),e.break()})},xo.nil)}}};yf.default=TI});var Iv=T(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});var Do=he(),NI={message({keyword:r,schemaCode:e}){let n=r==="maxItems"?"more":"fewer";return(0,Do.str)`must NOT have ${n} than ${e} items`},params:({schemaCode:r})=>(0,Do._)`{limit: ${r}}`},xI={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:NI,code(r){let{keyword:e,data:n,schemaCode:s}=r,a=e==="maxItems"?Do.operators.GT:Do.operators.LT;r.fail$data((0,Do._)`${n}.length ${a} ${s}`)}};Ef.default=xI});var Ou=T($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});var Tv=Kl();Tv.code='require("ajv/dist/runtime/equal").default';$f.default=Tv});var Nv=T(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});var wf=wo(),ut=he(),DI=be(),qI=Ou(),LI={message:({params:{i:r,j:e}})=>(0,ut.str)`must NOT have duplicate items (items ## ${e} and ${r} are identical)`,params:({params:{i:r,j:e}})=>(0,ut._)`{i: ${r}, j: ${e}}`},MI={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:LI,code(r){let{gen:e,data:n,$data:s,schema:a,parentSchema:u,schemaCode:l,it:d}=r;if(!s&&!a)return;let g=e.let("valid"),f=u.items?(0,wf.getSchemaTypes)(u.items):[];r.block$data(g,_,(0,ut._)`${l} === false`),r.ok(g);function _(){let x=e.let("i",(0,ut._)`${n}.length`),L=e.let("j");r.setParams({i:x,j:L}),e.assign(g,!0),e.if((0,ut._)`${x} > 1`,()=>(w()?R:A)(x,L))}function w(){return f.length>0&&!f.some(x=>x==="object"||x==="array")}function R(x,L){let j=e.name("item"),F=(0,wf.checkDataTypes)(f,j,d.opts.strictNumbers,wf.DataType.Wrong),Z=e.const("indices",(0,ut._)`{}`);e.for((0,ut._)`;${x}--;`,()=>{e.let(j,(0,ut._)`${n}[${x}]`),e.if(F,(0,ut._)`continue`),f.length>1&&e.if((0,ut._)`typeof ${j} == "string"`,(0,ut._)`${j} += "_"`),e.if((0,ut._)`typeof ${Z}[${j}] == "number"`,()=>{e.assign(L,(0,ut._)`${Z}[${j}]`),r.error(),e.assign(g,!1).break()}).code((0,ut._)`${Z}[${j}] = ${x}`)})}function A(x,L){let j=(0,DI.useFunc)(e,qI.default),F=e.name("outer");e.label(F).for((0,ut._)`;${x}--;`,()=>e.for((0,ut._)`${L} = ${x}; ${L}--;`,()=>e.if((0,ut._)`${j}(${n}[${x}], ${n}[${L}])`,()=>{r.error(),e.assign(g,!1).break(F)})))}}};bf.default=MI});var xv=T(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});var Sf=he(),FI=be(),jI=Ou(),kI={message:"must be equal to constant",params:({schemaCode:r})=>(0,Sf._)`{allowedValue: ${r}}`},UI={keyword:"const",$data:!0,error:kI,code(r){let{gen:e,data:n,$data:s,schemaCode:a,schema:u}=r;s||u&&typeof u=="object"?r.fail$data((0,Sf._)`!${(0,FI.useFunc)(e,jI.default)}(${n}, ${a})`):r.fail((0,Sf._)`${u} !== ${n}`)}};Of.default=UI});var Dv=T(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});var qo=he(),HI=be(),VI=Ou(),GI={message:"must be equal to one of the allowed values",params:({schemaCode:r})=>(0,qo._)`{allowedValues: ${r}}`},WI={keyword:"enum",schemaType:"array",$data:!0,error:GI,code(r){let{gen:e,data:n,$data:s,schema:a,schemaCode:u,it:l}=r;if(!s&&a.length===0)throw new Error("enum must have non-empty array");let d=a.length>=l.opts.loopEnum,g=(0,HI.useFunc)(e,VI.default),f;if(d||s)f=e.let("valid"),r.block$data(f,_);else{if(!Array.isArray(a))throw new Error("ajv implementation error");let R=e.const("vSchema",u);f=(0,qo.or)(...a.map((A,x)=>w(R,x)))}r.pass(f);function _(){e.assign(f,!1),e.forOf("v",u,R=>e.if((0,qo._)`${g}(${n}, ${R})`,()=>e.assign(f,!0).break()))}function w(R,A){let x=a[A];return typeof x=="object"&&x!==null?(0,qo._)`${g}(${n}, ${R}[${A}])`:(0,qo._)`${n} === ${x}`}}};Rf.default=WI});var qv=T(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});var zI=wv(),BI=bv(),KI=Rv(),XI=Av(),YI=Pv(),JI=Cv(),ZI=Iv(),QI=Nv(),eT=xv(),tT=Dv(),rT=[zI.default,BI.default,KI.default,XI.default,YI.default,JI.default,ZI.default,QI.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},eT.default,tT.default];Af.default=rT});var Cf=T(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.validateAdditionalItems=void 0;var Ni=he(),Pf=be(),nT={message:({params:{len:r}})=>(0,Ni.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,Ni._)`{limit: ${r}}`},iT={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:nT,code(r){let{parentSchema:e,it:n}=r,{items:s}=e;if(!Array.isArray(s)){(0,Pf.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}Lv(r,s)}};function Lv(r,e){let{gen:n,schema:s,data:a,keyword:u,it:l}=r;l.items=!0;let d=n.const("len",(0,Ni._)`${a}.length`);if(s===!1)r.setParams({len:e.length}),r.pass((0,Ni._)`${d} <= ${e.length}`);else if(typeof s=="object"&&!(0,Pf.alwaysValidSchema)(l,s)){let f=n.var("valid",(0,Ni._)`${d} <= ${e.length}`);n.if((0,Ni.not)(f),()=>g(f)),r.ok(f)}function g(f){n.forRange("i",e.length,d,_=>{r.subschema({keyword:u,dataProp:_,dataPropType:Pf.Type.Num},f),l.allErrors||n.if((0,Ni.not)(f),()=>n.break())})}}Lo.validateAdditionalItems=Lv;Lo.default=iT});var If=T(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.validateTuple=void 0;var Mv=he(),Ru=be(),sT=_r(),oT={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(r){let{schema:e,it:n}=r;if(Array.isArray(e))return Fv(r,"additionalItems",e);n.items=!0,!(0,Ru.alwaysValidSchema)(n,e)&&r.ok((0,sT.validateArray)(r))}};function Fv(r,e,n=r.schema){let{gen:s,parentSchema:a,data:u,keyword:l,it:d}=r;_(a),d.opts.unevaluated&&n.length&&d.items!==!0&&(d.items=Ru.mergeEvaluated.items(s,n.length,d.items));let g=s.name("valid"),f=s.const("len",(0,Mv._)`${u}.length`);n.forEach((w,R)=>{(0,Ru.alwaysValidSchema)(d,w)||(s.if((0,Mv._)`${f} > ${R}`,()=>r.subschema({keyword:l,schemaProp:R,dataProp:R},g)),r.ok(g))});function _(w){let{opts:R,errSchemaPath:A}=d,x=n.length,L=x===w.minItems&&(x===w.maxItems||w[e]===!1);if(R.strictTuples&&!L){let j=`"${l}" is ${x}-tuple, but minItems or maxItems/${e} are not specified or different at path "${A}"`;(0,Ru.checkStrictMode)(d,j,R.strictTuples)}}}Mo.validateTuple=Fv;Mo.default=oT});var jv=T(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});var aT=If(),uT={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,aT.validateTuple)(r,"items")};Tf.default=uT});var Uv=T(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});var kv=he(),cT=be(),lT=_r(),fT=Cf(),hT={message:({params:{len:r}})=>(0,kv.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,kv._)`{limit: ${r}}`},dT={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:hT,code(r){let{schema:e,parentSchema:n,it:s}=r,{prefixItems:a}=n;s.items=!0,!(0,cT.alwaysValidSchema)(s,e)&&(a?(0,fT.validateAdditionalItems)(r,a):r.ok((0,lT.validateArray)(r)))}};Nf.default=dT});var Hv=T(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});var yr=he(),Au=be(),pT={message:({params:{min:r,max:e}})=>e===void 0?(0,yr.str)`must contain at least ${r} valid item(s)`:(0,yr.str)`must contain at least ${r} and no more than ${e} valid item(s)`,params:({params:{min:r,max:e}})=>e===void 0?(0,yr._)`{minContains: ${r}}`:(0,yr._)`{minContains: ${r}, maxContains: ${e}}`},mT={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:pT,code(r){let{gen:e,schema:n,parentSchema:s,data:a,it:u}=r,l,d,{minContains:g,maxContains:f}=s;u.opts.next?(l=g===void 0?1:g,d=f):l=1;let _=e.const("len",(0,yr._)`${a}.length`);if(r.setParams({min:l,max:d}),d===void 0&&l===0){(0,Au.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(d!==void 0&&l>d){(0,Au.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),r.fail();return}if((0,Au.alwaysValidSchema)(u,n)){let L=(0,yr._)`${_} >= ${l}`;d!==void 0&&(L=(0,yr._)`${L} && ${_} <= ${d}`),r.pass(L);return}u.items=!0;let w=e.name("valid");d===void 0&&l===1?A(w,()=>e.if(w,()=>e.break())):l===0?(e.let(w,!0),d!==void 0&&e.if((0,yr._)`${a}.length > 0`,R)):(e.let(w,!1),R()),r.result(w,()=>r.reset());function R(){let L=e.name("_valid"),j=e.let("count",0);A(L,()=>e.if(L,()=>x(j)))}function A(L,j){e.forRange("i",0,_,F=>{r.subschema({keyword:"contains",dataProp:F,dataPropType:Au.Type.Num,compositeRule:!0},L),j()})}function x(L){e.code((0,yr._)`${L}++`),d===void 0?e.if((0,yr._)`${L} >= ${l}`,()=>e.assign(w,!0).break()):(e.if((0,yr._)`${L} > ${d}`,()=>e.assign(w,!1).break()),l===1?e.assign(w,!0):e.if((0,yr._)`${L} >= ${l}`,()=>e.assign(w,!0)))}}};xf.default=mT});var Wv=T(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.validateSchemaDeps=Kr.validatePropertyDeps=Kr.error=void 0;var Df=he(),gT=be(),Fo=_r();Kr.error={message:({params:{property:r,depsCount:e,deps:n}})=>{let s=e===1?"property":"properties";return(0,Df.str)`must have ${s} ${n} when property ${r} is present`},params:({params:{property:r,depsCount:e,deps:n,missingProperty:s}})=>(0,Df._)`{property: ${r},
41
- missingProperty: ${s},
12
+ `)}helpInformation(){if(this._name==="s")return"";let e=[];if(this._description){e=[this._description,""];let u=this._argsDescription;if(u&&this._args.length){let o=this.padWidth(),h=(process.stdout.columns||80)-o-5;e.push("Arguments:"),this._args.forEach(g=>{e.push(" "+Ls(g.name,o)+" "+mo(u[g.name]||"",h,o+4))}),e.push("")}}let t=this._name;this._aliases[0]&&(t=t+"|"+this._aliases[0]);let n="";for(let u=this.parent;u;u=u.parent)n=u.name()+" "+n;let s=["Usage: "+n+t+" "+this.usage(),""],i=[],a=this.commandHelp();a&&(i=[a]);let c=[];return(this._hasHelpOption||this.options.length>0)&&(c=["Options:",""+this.optionHelp().replace(/^/gm," "),""]),s.concat(e).concat(c).concat(i).join(`
13
+ `)}outputHelp(e){e||(e=n=>n);let t=e(this.helpInformation());if(typeof t!="string"&&!Buffer.isBuffer(t))throw new Error("outputHelp callback must return a string or a Buffer");process.stdout.write(t),this.emit(this._helpLongFlag)}helpOption(e,t){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=t||this._helpDescription;let n=go(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e),this._exit(process.exitCode||0,"commander.help","(outputHelp)")}_helpAndError(){this.outputHelp(),this._exit(1,"commander.help","(outputHelp)")}};Mt=vo.exports=new Vr;Mt.program=Mt;Mt.Command=Vr;Mt.Option=jn;Mt.CommanderError=Fr;function vh(r){return r.split("-").reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}function Ls(r,e){let t=Math.max(0,e-r.length);return r+Array(t+1).join(" ")}function mo(r,e,t){let n=new RegExp(".{1,"+(e-1)+"}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)","g");return(r.match(n)||[]).map((i,a)=>(i.slice(-1)===`
14
+ `&&(i=i.slice(0,i.length-1)),(a>0&&t?Array(t+1).join(" "):"")+i.trimRight())).join(`
15
+ `)}function lo(r,e,t){return r.match(/[\n]\s+/)||e<40?r:mo(r,e,t)}function fo(r,e){r._hasHelpOption&&e.find(n=>n===r._helpLongFlag||n===r._helpShortFlag)&&(r.outputHelp(),r._exit(0,"commander.helpDisplayed","(outputHelp)"))}function ho(r){let e=r.name+(r.variadic===!0?"...":"");return r.required?"<"+e+">":"["+e+"]"}function go(r){let e,t,n=r.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),t=n.shift(),!e&&/^-[^-]$/.test(t)&&(e=t,t=void 0),{shortFlag:e,longFlag:t}}function po(r){return r.map(e=>{if(!e.startsWith("--inspect"))return e;let t,n="127.0.0.1",s="9229",i;return(i=e.match(/^(--inspect(-brk)?)$/))!==null?t=i[1]:(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=i[1],/^\d+$/.test(i[3])?s=i[3]:n=i[3]):(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=i[1],n=i[3],s=i[4]),t&&s!=="0"?`${t}=${n}:${parseInt(s)+1}`:e})}});var Ur=y((TE,yo)=>{var _h="2.0.0",yh=Number.MAX_SAFE_INTEGER||9007199254740991,$h=16;yo.exports={SEMVER_SPEC_VERSION:_h,MAX_LENGTH:256,MAX_SAFE_INTEGER:yh,MAX_SAFE_COMPONENT_LENGTH:$h}});var Hr=y((qE,$o)=>{var Eh=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};$o.exports=Eh});var Ft=y((St,Eo)=>{var{MAX_SAFE_COMPONENT_LENGTH:Ms}=Ur(),wh=Hr();St=Eo.exports={};var bh=St.re=[],O=St.src=[],P=St.t={},Sh=0,j=(r,e,t)=>{let n=Sh++;wh(n,e),P[r]=n,O[n]=e,bh[n]=new RegExp(e,t?"g":void 0)};j("NUMERICIDENTIFIER","0|[1-9]\\d*");j("NUMERICIDENTIFIERLOOSE","[0-9]+");j("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");j("MAINVERSION",`(${O[P.NUMERICIDENTIFIER]})\\.(${O[P.NUMERICIDENTIFIER]})\\.(${O[P.NUMERICIDENTIFIER]})`);j("MAINVERSIONLOOSE",`(${O[P.NUMERICIDENTIFIERLOOSE]})\\.(${O[P.NUMERICIDENTIFIERLOOSE]})\\.(${O[P.NUMERICIDENTIFIERLOOSE]})`);j("PRERELEASEIDENTIFIER",`(?:${O[P.NUMERICIDENTIFIER]}|${O[P.NONNUMERICIDENTIFIER]})`);j("PRERELEASEIDENTIFIERLOOSE",`(?:${O[P.NUMERICIDENTIFIERLOOSE]}|${O[P.NONNUMERICIDENTIFIER]})`);j("PRERELEASE",`(?:-(${O[P.PRERELEASEIDENTIFIER]}(?:\\.${O[P.PRERELEASEIDENTIFIER]})*))`);j("PRERELEASELOOSE",`(?:-?(${O[P.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${O[P.PRERELEASEIDENTIFIERLOOSE]})*))`);j("BUILDIDENTIFIER","[0-9A-Za-z-]+");j("BUILD",`(?:\\+(${O[P.BUILDIDENTIFIER]}(?:\\.${O[P.BUILDIDENTIFIER]})*))`);j("FULLPLAIN",`v?${O[P.MAINVERSION]}${O[P.PRERELEASE]}?${O[P.BUILD]}?`);j("FULL",`^${O[P.FULLPLAIN]}$`);j("LOOSEPLAIN",`[v=\\s]*${O[P.MAINVERSIONLOOSE]}${O[P.PRERELEASELOOSE]}?${O[P.BUILD]}?`);j("LOOSE",`^${O[P.LOOSEPLAIN]}$`);j("GTLT","((?:<|>)?=?)");j("XRANGEIDENTIFIERLOOSE",`${O[P.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);j("XRANGEIDENTIFIER",`${O[P.NUMERICIDENTIFIER]}|x|X|\\*`);j("XRANGEPLAIN",`[v=\\s]*(${O[P.XRANGEIDENTIFIER]})(?:\\.(${O[P.XRANGEIDENTIFIER]})(?:\\.(${O[P.XRANGEIDENTIFIER]})(?:${O[P.PRERELEASE]})?${O[P.BUILD]}?)?)?`);j("XRANGEPLAINLOOSE",`[v=\\s]*(${O[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${O[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${O[P.XRANGEIDENTIFIERLOOSE]})(?:${O[P.PRERELEASELOOSE]})?${O[P.BUILD]}?)?)?`);j("XRANGE",`^${O[P.GTLT]}\\s*${O[P.XRANGEPLAIN]}$`);j("XRANGELOOSE",`^${O[P.GTLT]}\\s*${O[P.XRANGEPLAINLOOSE]}$`);j("COERCE",`(^|[^\\d])(\\d{1,${Ms}})(?:\\.(\\d{1,${Ms}}))?(?:\\.(\\d{1,${Ms}}))?(?:$|[^\\d])`);j("COERCERTL",O[P.COERCE],!0);j("LONETILDE","(?:~>?)");j("TILDETRIM",`(\\s*)${O[P.LONETILDE]}\\s+`,!0);St.tildeTrimReplace="$1~";j("TILDE",`^${O[P.LONETILDE]}${O[P.XRANGEPLAIN]}$`);j("TILDELOOSE",`^${O[P.LONETILDE]}${O[P.XRANGEPLAINLOOSE]}$`);j("LONECARET","(?:\\^)");j("CARETTRIM",`(\\s*)${O[P.LONECARET]}\\s+`,!0);St.caretTrimReplace="$1^";j("CARET",`^${O[P.LONECARET]}${O[P.XRANGEPLAIN]}$`);j("CARETLOOSE",`^${O[P.LONECARET]}${O[P.XRANGEPLAINLOOSE]}$`);j("COMPARATORLOOSE",`^${O[P.GTLT]}\\s*(${O[P.LOOSEPLAIN]})$|^$`);j("COMPARATOR",`^${O[P.GTLT]}\\s*(${O[P.FULLPLAIN]})$|^$`);j("COMPARATORTRIM",`(\\s*)${O[P.GTLT]}\\s*(${O[P.LOOSEPLAIN]}|${O[P.XRANGEPLAIN]})`,!0);St.comparatorTrimReplace="$1$2$3";j("HYPHENRANGE",`^\\s*(${O[P.XRANGEPLAIN]})\\s+-\\s+(${O[P.XRANGEPLAIN]})\\s*$`);j("HYPHENRANGELOOSE",`^\\s*(${O[P.XRANGEPLAINLOOSE]})\\s+-\\s+(${O[P.XRANGEPLAINLOOSE]})\\s*$`);j("STAR","(<|>)?=?\\s*\\*");j("GTE0","^\\s*>=\\s*0.0.0\\s*$");j("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var Gr=y((DE,wo)=>{var Oh=["includePrerelease","loose","rtl"],Ph=r=>r?typeof r!="object"?{loose:!0}:Oh.filter(e=>r[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};wo.exports=Ph});var kn=y((jE,Oo)=>{var bo=/^[0-9]+$/,So=(r,e)=>{let t=bo.test(r),n=bo.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},Rh=(r,e)=>So(e,r);Oo.exports={compareIdentifiers:So,rcompareIdentifiers:Rh}});var ve=y((kE,No)=>{var xn=Hr(),{MAX_LENGTH:Po,MAX_SAFE_INTEGER:Ln}=Ur(),{re:Ro,t:Co}=Ft(),Ch=Gr(),{compareIdentifiers:zr}=kn(),Ve=class{constructor(e,t){if(t=Ch(t),e instanceof Ve){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>Po)throw new TypeError(`version is longer than ${Po} characters`);xn("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?Ro[Co.LOOSE]:Ro[Co.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Ln||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ln||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ln||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<Ln)return i}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(xn("SemVer.compare",this.version,this.options,e),!(e instanceof Ve)){if(typeof e=="string"&&e===this.version)return 0;e=new Ve(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof Ve||(e=new Ve(e,this.options)),zr(this.major,e.major)||zr(this.minor,e.minor)||zr(this.patch,e.patch)}comparePre(e){if(e instanceof Ve||(e=new Ve(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(xn("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return zr(n,s)}while(++t)}compareBuild(e){e instanceof Ve||(e=new Ve(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(xn("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return zr(n,s)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};No.exports=Ve});var Vt=y((xE,qo)=>{var{MAX_LENGTH:Nh}=Ur(),{re:Io,t:Ao}=Ft(),To=ve(),Ih=Gr(),Ah=(r,e)=>{if(e=Ih(e),r instanceof To)return r;if(typeof r!="string"||r.length>Nh||!(e.loose?Io[Ao.LOOSE]:Io[Ao.FULL]).test(r))return null;try{return new To(r,e)}catch{return null}};qo.exports=Ah});var jo=y((LE,Do)=>{var Th=Vt(),qh=(r,e)=>{let t=Th(r,e);return t?t.version:null};Do.exports=qh});var xo=y((ME,ko)=>{var Dh=Vt(),jh=(r,e)=>{let t=Dh(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};ko.exports=jh});var Mo=y((FE,Lo)=>{var kh=ve(),xh=(r,e,t,n)=>{typeof t=="string"&&(n=t,t=void 0);try{return new kh(r,t).inc(e,n).version}catch{return null}};Lo.exports=xh});var Ue=y((VE,Vo)=>{var Fo=ve(),Lh=(r,e,t)=>new Fo(r,t).compare(new Fo(e,t));Vo.exports=Lh});var Mn=y((UE,Uo)=>{var Mh=Ue(),Fh=(r,e,t)=>Mh(r,e,t)===0;Uo.exports=Fh});var zo=y((HE,Go)=>{var Ho=Vt(),Vh=Mn(),Uh=(r,e)=>{if(Vh(r,e))return null;{let t=Ho(r),n=Ho(e),s=t.prerelease.length||n.prerelease.length,i=s?"pre":"",a=s?"prerelease":"";for(let c in t)if((c==="major"||c==="minor"||c==="patch")&&t[c]!==n[c])return i+c;return a}};Go.exports=Uh});var Xo=y((GE,Ko)=>{var Hh=ve(),Gh=(r,e)=>new Hh(r,e).major;Ko.exports=Gh});var Wo=y((zE,Bo)=>{var zh=ve(),Kh=(r,e)=>new zh(r,e).minor;Bo.exports=Kh});var Yo=y((KE,Jo)=>{var Xh=ve(),Bh=(r,e)=>new Xh(r,e).patch;Jo.exports=Bh});var Qo=y((XE,Zo)=>{var Wh=Vt(),Jh=(r,e)=>{let t=Wh(r,e);return t&&t.prerelease.length?t.prerelease:null};Zo.exports=Jh});var tc=y((BE,ec)=>{var Yh=Ue(),Zh=(r,e,t)=>Yh(e,r,t);ec.exports=Zh});var nc=y((WE,rc)=>{var Qh=Ue(),ep=(r,e)=>Qh(r,e,!0);rc.exports=ep});var Fn=y((JE,ic)=>{var sc=ve(),tp=(r,e,t)=>{let n=new sc(r,t),s=new sc(e,t);return n.compare(s)||n.compareBuild(s)};ic.exports=tp});var oc=y((YE,ac)=>{var rp=Fn(),np=(r,e)=>r.sort((t,n)=>rp(t,n,e));ac.exports=np});var uc=y((ZE,cc)=>{var sp=Fn(),ip=(r,e)=>r.sort((t,n)=>sp(n,t,e));cc.exports=ip});var Kr=y((QE,lc)=>{var ap=Ue(),op=(r,e,t)=>ap(r,e,t)>0;lc.exports=op});var Vn=y((ew,fc)=>{var cp=Ue(),up=(r,e,t)=>cp(r,e,t)<0;fc.exports=up});var Fs=y((tw,dc)=>{var lp=Ue(),fp=(r,e,t)=>lp(r,e,t)!==0;dc.exports=fp});var Un=y((rw,hc)=>{var dp=Ue(),hp=(r,e,t)=>dp(r,e,t)>=0;hc.exports=hp});var Hn=y((nw,pc)=>{var pp=Ue(),mp=(r,e,t)=>pp(r,e,t)<=0;pc.exports=mp});var Vs=y((sw,mc)=>{var gp=Mn(),vp=Fs(),_p=Kr(),yp=Un(),$p=Vn(),Ep=Hn(),wp=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return gp(r,t,n);case"!=":return vp(r,t,n);case">":return _p(r,t,n);case">=":return yp(r,t,n);case"<":return $p(r,t,n);case"<=":return Ep(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};mc.exports=wp});var vc=y((iw,gc)=>{var bp=ve(),Sp=Vt(),{re:Gn,t:zn}=Ft(),Op=(r,e)=>{if(r instanceof bp)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(Gn[zn.COERCE]);else{let n;for(;(n=Gn[zn.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||n.index+n[0].length!==t.index+t[0].length)&&(t=n),Gn[zn.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;Gn[zn.COERCERTL].lastIndex=-1}return t===null?null:Sp(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};gc.exports=Op});var yc=y((aw,_c)=>{"use strict";_c.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Ec=y((ow,$c)=>{"use strict";$c.exports=X;X.Node=Ut;X.create=X;function X(r){var e=this;if(e instanceof X||(e=new X),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var t=0,n=arguments.length;t<n;t++)e.push(arguments[t]);return e}X.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var e=r.next,t=r.prev;return e&&(e.prev=t),t&&(t.next=e),r===this.head&&(this.head=e),r===this.tail&&(this.tail=t),r.list.length--,r.next=null,r.prev=null,r.list=null,e};X.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var e=this.head;r.list=this,r.next=e,e&&(e.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}};X.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var e=this.tail;r.list=this,r.prev=e,e&&(e.next=r),this.tail=r,this.head||(this.head=r),this.length++}};X.prototype.push=function(){for(var r=0,e=arguments.length;r<e;r++)Rp(this,arguments[r]);return this.length};X.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)Cp(this,arguments[r]);return this.length};X.prototype.pop=function(){if(!!this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}};X.prototype.shift=function(){if(!!this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}};X.prototype.forEach=function(r,e){e=e||this;for(var t=this.head,n=0;t!==null;n++)r.call(e,t.value,n,this),t=t.next};X.prototype.forEachReverse=function(r,e){e=e||this;for(var t=this.tail,n=this.length-1;t!==null;n--)r.call(e,t.value,n,this),t=t.prev};X.prototype.get=function(r){for(var e=0,t=this.head;t!==null&&e<r;e++)t=t.next;if(e===r&&t!==null)return t.value};X.prototype.getReverse=function(r){for(var e=0,t=this.tail;t!==null&&e<r;e++)t=t.prev;if(e===r&&t!==null)return t.value};X.prototype.map=function(r,e){e=e||this;for(var t=new X,n=this.head;n!==null;)t.push(r.call(e,n.value,this)),n=n.next;return t};X.prototype.mapReverse=function(r,e){e=e||this;for(var t=new X,n=this.tail;n!==null;)t.push(r.call(e,n.value,this)),n=n.prev;return t};X.prototype.reduce=function(r,e){var t,n=this.head;if(arguments.length>1)t=e;else if(this.head)n=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;n!==null;s++)t=r(t,n.value,s),n=n.next;return t};X.prototype.reduceReverse=function(r,e){var t,n=this.tail;if(arguments.length>1)t=e;else if(this.tail)n=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;n!==null;s--)t=r(t,n.value,s),n=n.prev;return t};X.prototype.toArray=function(){for(var r=new Array(this.length),e=0,t=this.head;t!==null;e++)r[e]=t.value,t=t.next;return r};X.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,t=this.tail;t!==null;e++)r[e]=t.value,t=t.prev;return r};X.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new X;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=0,s=this.head;s!==null&&n<r;n++)s=s.next;for(;s!==null&&n<e;n++,s=s.next)t.push(s.value);return t};X.prototype.sliceReverse=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new X;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=this.length,s=this.tail;s!==null&&n>e;n--)s=s.prev;for(;s!==null&&n>r;n--,s=s.prev)t.push(s.value);return t};X.prototype.splice=function(r,e,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var n=0,s=this.head;s!==null&&n<r;n++)s=s.next;for(var i=[],n=0;s&&n<e;n++)i.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var n=0;n<t.length;n++)s=Pp(this,s,t[n]);return i};X.prototype.reverse=function(){for(var r=this.head,e=this.tail,t=r;t!==null;t=t.prev){var n=t.prev;t.prev=t.next,t.next=n}return this.head=e,this.tail=r,this};function Pp(r,e,t){var n=e===r.head?new Ut(t,null,e,r):new Ut(t,e,e.next,r);return n.next===null&&(r.tail=n),n.prev===null&&(r.head=n),r.length++,n}function Rp(r,e){r.tail=new Ut(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function Cp(r,e){r.head=new Ut(e,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function Ut(r,e,t,n){if(!(this instanceof Ut))return new Ut(r,e,t,n);this.list=n,this.value=r,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{yc()(X)}catch{}});var Cc=y((cw,Rc)=>{"use strict";var Np=Ec(),Ht=Symbol("max"),_t=Symbol("length"),ur=Symbol("lengthCalculator"),Br=Symbol("allowStale"),Gt=Symbol("maxAge"),vt=Symbol("dispose"),wc=Symbol("noDisposeOnSet"),fe=Symbol("lruList"),Xe=Symbol("cache"),Sc=Symbol("updateAgeOnGet"),Us=()=>1,Oc=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[Ht]=e.max||1/0,n=e.length||Us;if(this[ur]=typeof n!="function"?Us:n,this[Br]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Gt]=e.maxAge||0,this[vt]=e.dispose,this[wc]=e.noDisposeOnSet||!1,this[Sc]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Ht]=e||1/0,Xr(this)}get max(){return this[Ht]}set allowStale(e){this[Br]=!!e}get allowStale(){return this[Br]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Gt]=e,Xr(this)}get maxAge(){return this[Gt]}set lengthCalculator(e){typeof e!="function"&&(e=Us),e!==this[ur]&&(this[ur]=e,this[_t]=0,this[fe].forEach(t=>{t.length=this[ur](t.value,t.key),this[_t]+=t.length})),Xr(this)}get lengthCalculator(){return this[ur]}get length(){return this[_t]}get itemCount(){return this[fe].length}rforEach(e,t){t=t||this;for(let n=this[fe].tail;n!==null;){let s=n.prev;bc(this,e,n,t),n=s}}forEach(e,t){t=t||this;for(let n=this[fe].head;n!==null;){let s=n.next;bc(this,e,n,t),n=s}}keys(){return this[fe].toArray().map(e=>e.key)}values(){return this[fe].toArray().map(e=>e.value)}reset(){this[vt]&&this[fe]&&this[fe].length&&this[fe].forEach(e=>this[vt](e.key,e.value)),this[Xe]=new Map,this[fe]=new Np,this[_t]=0}dump(){return this[fe].map(e=>Kn(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[fe]}set(e,t,n){if(n=n||this[Gt],n&&typeof n!="number")throw new TypeError("maxAge must be a number");let s=n?Date.now():0,i=this[ur](t,e);if(this[Xe].has(e)){if(i>this[Ht])return lr(this,this[Xe].get(e)),!1;let u=this[Xe].get(e).value;return this[vt]&&(this[wc]||this[vt](e,u.value)),u.now=s,u.maxAge=n,u.value=t,this[_t]+=i-u.length,u.length=i,this.get(e),Xr(this),!0}let a=new Pc(e,t,i,s,n);return a.length>this[Ht]?(this[vt]&&this[vt](e,t),!1):(this[_t]+=a.length,this[fe].unshift(a),this[Xe].set(e,this[fe].head),Xr(this),!0)}has(e){if(!this[Xe].has(e))return!1;let t=this[Xe].get(e).value;return!Kn(this,t)}get(e){return Hs(this,e,!0)}peek(e){return Hs(this,e,!1)}pop(){let e=this[fe].tail;return e?(lr(this,e),e.value):null}del(e){lr(this,this[Xe].get(e))}load(e){this.reset();let t=Date.now();for(let n=e.length-1;n>=0;n--){let s=e[n],i=s.e||0;if(i===0)this.set(s.k,s.v);else{let a=i-t;a>0&&this.set(s.k,s.v,a)}}}prune(){this[Xe].forEach((e,t)=>Hs(this,t,!1))}},Hs=(r,e,t)=>{let n=r[Xe].get(e);if(n){let s=n.value;if(Kn(r,s)){if(lr(r,n),!r[Br])return}else t&&(r[Sc]&&(n.value.now=Date.now()),r[fe].unshiftNode(n));return s.value}},Kn=(r,e)=>{if(!e||!e.maxAge&&!r[Gt])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:r[Gt]&&t>r[Gt]},Xr=r=>{if(r[_t]>r[Ht])for(let e=r[fe].tail;r[_t]>r[Ht]&&e!==null;){let t=e.prev;lr(r,e),e=t}},lr=(r,e)=>{if(e){let t=e.value;r[vt]&&r[vt](t.key,t.value),r[_t]-=t.length,r[Xe].delete(t.key),r[fe].removeNode(e)}},Pc=class{constructor(e,t,n,s,i){this.key=e,this.value=t,this.length=n,this.now=s,this.maxAge=i||0}},bc=(r,e,t,n)=>{let s=t.value;Kn(r,s)&&(lr(r,t),r[Br]||(s=void 0)),s&&e.call(n,s.value,s.key,r)};Rc.exports=Oc});var He=y((uw,Tc)=>{var fr=class{constructor(e,t){if(t=Ap(t),e instanceof fr)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new fr(e.raw,t);if(e instanceof Gs)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!Ic(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&kp(s[0])){this.set=[s];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let n=`parseRange:${Object.keys(this.options).join(",")}:${e}`,s=Nc.get(n);if(s)return s;let i=this.options.loose,a=i?_e[de.HYPHENRANGELOOSE]:_e[de.HYPHENRANGE];e=e.replace(a,Kp(this.options.includePrerelease)),ae("hyphen replace",e),e=e.replace(_e[de.COMPARATORTRIM],qp),ae("comparator trim",e,_e[de.COMPARATORTRIM]),e=e.replace(_e[de.TILDETRIM],Dp),e=e.replace(_e[de.CARETTRIM],jp),e=e.split(/\s+/).join(" ");let c=i?_e[de.COMPARATORLOOSE]:_e[de.COMPARATOR],u=e.split(" ").map(g=>xp(g,this.options)).join(" ").split(/\s+/).map(g=>zp(g,this.options)).filter(this.options.loose?g=>!!g.match(c):()=>!0).map(g=>new Gs(g,this.options)),o=u.length,l=new Map;for(let g of u){if(Ic(g))return[g];l.set(g.value,g)}l.size>1&&l.has("")&&l.delete("");let h=[...l.values()];return Nc.set(n,h),h}intersects(e,t){if(!(e instanceof fr))throw new TypeError("a Range is required");return this.set.some(n=>Ac(n,t)&&e.set.some(s=>Ac(s,t)&&n.every(i=>s.every(a=>i.intersects(a,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Tp(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Xp(this.set[t],e,this.options))return!0;return!1}};Tc.exports=fr;var Ip=Cc(),Nc=new Ip({max:1e3}),Ap=Gr(),Gs=Wr(),ae=Hr(),Tp=ve(),{re:_e,t:de,comparatorTrimReplace:qp,tildeTrimReplace:Dp,caretTrimReplace:jp}=Ft(),Ic=r=>r.value==="<0.0.0-0",kp=r=>r.value==="",Ac=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(i=>s.intersects(i,e)),s=n.pop();return t},xp=(r,e)=>(ae("comp",r,e),r=Fp(r,e),ae("caret",r),r=Lp(r,e),ae("tildes",r),r=Up(r,e),ae("xrange",r),r=Gp(r,e),ae("stars",r),r),we=r=>!r||r.toLowerCase()==="x"||r==="*",Lp=(r,e)=>r.trim().split(/\s+/).map(t=>Mp(t,e)).join(" "),Mp=(r,e)=>{let t=e.loose?_e[de.TILDELOOSE]:_e[de.TILDE];return r.replace(t,(n,s,i,a,c)=>{ae("tilde",r,n,s,i,a,c);let u;return we(s)?u="":we(i)?u=`>=${s}.0.0 <${+s+1}.0.0-0`:we(a)?u=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:c?(ae("replaceTilde pr",c),u=`>=${s}.${i}.${a}-${c} <${s}.${+i+1}.0-0`):u=`>=${s}.${i}.${a} <${s}.${+i+1}.0-0`,ae("tilde return",u),u})},Fp=(r,e)=>r.trim().split(/\s+/).map(t=>Vp(t,e)).join(" "),Vp=(r,e)=>{ae("caret",r,e);let t=e.loose?_e[de.CARETLOOSE]:_e[de.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,i,a,c,u)=>{ae("caret",r,s,i,a,c,u);let o;return we(i)?o="":we(a)?o=`>=${i}.0.0${n} <${+i+1}.0.0-0`:we(c)?i==="0"?o=`>=${i}.${a}.0${n} <${i}.${+a+1}.0-0`:o=`>=${i}.${a}.0${n} <${+i+1}.0.0-0`:u?(ae("replaceCaret pr",u),i==="0"?a==="0"?o=`>=${i}.${a}.${c}-${u} <${i}.${a}.${+c+1}-0`:o=`>=${i}.${a}.${c}-${u} <${i}.${+a+1}.0-0`:o=`>=${i}.${a}.${c}-${u} <${+i+1}.0.0-0`):(ae("no pr"),i==="0"?a==="0"?o=`>=${i}.${a}.${c}${n} <${i}.${a}.${+c+1}-0`:o=`>=${i}.${a}.${c}${n} <${i}.${+a+1}.0-0`:o=`>=${i}.${a}.${c} <${+i+1}.0.0-0`),ae("caret return",o),o})},Up=(r,e)=>(ae("replaceXRanges",r,e),r.split(/\s+/).map(t=>Hp(t,e)).join(" ")),Hp=(r,e)=>{r=r.trim();let t=e.loose?_e[de.XRANGELOOSE]:_e[de.XRANGE];return r.replace(t,(n,s,i,a,c,u)=>{ae("xRange",r,n,s,i,a,c,u);let o=we(i),l=o||we(a),h=l||we(c),g=h;return s==="="&&g&&(s=""),u=e.includePrerelease?"-0":"",o?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&g?(l&&(a=0),c=0,s===">"?(s=">=",l?(i=+i+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",l?i=+i+1:a=+a+1),s==="<"&&(u="-0"),n=`${s+i}.${a}.${c}${u}`):l?n=`>=${i}.0.0${u} <${+i+1}.0.0-0`:h&&(n=`>=${i}.${a}.0${u} <${i}.${+a+1}.0-0`),ae("xRange return",n),n})},Gp=(r,e)=>(ae("replaceStars",r,e),r.trim().replace(_e[de.STAR],"")),zp=(r,e)=>(ae("replaceGTE0",r,e),r.trim().replace(_e[e.includePrerelease?de.GTE0PRE:de.GTE0],"")),Kp=r=>(e,t,n,s,i,a,c,u,o,l,h,g,v)=>(we(n)?t="":we(s)?t=`>=${n}.0.0${r?"-0":""}`:we(i)?t=`>=${n}.${s}.0${r?"-0":""}`:a?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,we(o)?u="":we(l)?u=`<${+o+1}.0.0-0`:we(h)?u=`<${o}.${+l+1}.0-0`:g?u=`<=${o}.${l}.${h}-${g}`:r?u=`<${o}.${l}.${+h+1}-0`:u=`<=${u}`,`${t} ${u}`.trim()),Xp=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(ae(r[n].semver),r[n].semver!==Gs.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var Wr=y((lw,xc)=>{var Jr=Symbol("SemVer ANY"),Yr=class{static get ANY(){return Jr}constructor(e,t){if(t=Bp(t),e instanceof Yr){if(e.loose===!!t.loose)return e;e=e.value}Ks("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Jr?this.value="":this.value=this.operator+this.semver.version,Ks("comp",this)}parse(e){let t=this.options.loose?qc[Dc.COMPARATORLOOSE]:qc[Dc.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new jc(n[2],this.options.loose):this.semver=Jr}toString(){return this.value}test(e){if(Ks("Comparator.test",e,this.options.loose),this.semver===Jr||e===Jr)return!0;if(typeof e=="string")try{e=new jc(e,this.options)}catch{return!1}return zs(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Yr))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new kc(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new kc(this.value,t).test(e.semver);let n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),i=this.semver.version===e.semver.version,a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),c=zs(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),u=zs(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||s||i&&a||c||u}};xc.exports=Yr;var Bp=Gr(),{re:qc,t:Dc}=Ft(),zs=Vs(),Ks=Hr(),jc=ve(),kc=He()});var Zr=y((fw,Lc)=>{var Wp=He(),Jp=(r,e,t)=>{try{e=new Wp(e,t)}catch{return!1}return e.test(r)};Lc.exports=Jp});var Fc=y((dw,Mc)=>{var Yp=He(),Zp=(r,e)=>new Yp(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));Mc.exports=Zp});var Uc=y((hw,Vc)=>{var Qp=ve(),em=He(),tm=(r,e,t)=>{let n=null,s=null,i=null;try{i=new em(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new Qp(n,t))}),n};Vc.exports=tm});var Gc=y((pw,Hc)=>{var rm=ve(),nm=He(),sm=(r,e,t)=>{let n=null,s=null,i=null;try{i=new nm(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new rm(n,t))}),n};Hc.exports=sm});var Xc=y((mw,Kc)=>{var Xs=ve(),im=He(),zc=Kr(),am=(r,e)=>{r=new im(r,e);let t=new Xs("0.0.0");if(r.test(t)||(t=new Xs("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){let s=r.set[n],i=null;s.forEach(a=>{let c=new Xs(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!i||zc(c,i))&&(i=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!t||zc(t,i))&&(t=i)}return t&&r.test(t)?t:null};Kc.exports=am});var Wc=y((gw,Bc)=>{var om=He(),cm=(r,e)=>{try{return new om(r,e).range||"*"}catch{return null}};Bc.exports=cm});var Xn=y((vw,Qc)=>{var um=ve(),Zc=Wr(),{ANY:lm}=Zc,fm=He(),dm=Zr(),Jc=Kr(),Yc=Vn(),hm=Hn(),pm=Un(),mm=(r,e,t,n)=>{r=new um(r,n),e=new fm(e,n);let s,i,a,c,u;switch(t){case">":s=Jc,i=hm,a=Yc,c=">",u=">=";break;case"<":s=Yc,i=pm,a=Jc,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(dm(r,e,n))return!1;for(let o=0;o<e.set.length;++o){let l=e.set[o],h=null,g=null;if(l.forEach(v=>{v.semver===lm&&(v=new Zc(">=0.0.0")),h=h||v,g=g||v,s(v.semver,h.semver,n)?h=v:a(v.semver,g.semver,n)&&(g=v)}),h.operator===c||h.operator===u||(!g.operator||g.operator===c)&&i(r,g.semver))return!1;if(g.operator===u&&a(r,g.semver))return!1}return!0};Qc.exports=mm});var tu=y((_w,eu)=>{var gm=Xn(),vm=(r,e,t)=>gm(r,e,">",t);eu.exports=vm});var nu=y((yw,ru)=>{var _m=Xn(),ym=(r,e,t)=>_m(r,e,"<",t);ru.exports=ym});var au=y(($w,iu)=>{var su=He(),$m=(r,e,t)=>(r=new su(r,t),e=new su(e,t),r.intersects(e));iu.exports=$m});var cu=y((Ew,ou)=>{var Em=Zr(),wm=Ue();ou.exports=(r,e,t)=>{let n=[],s=null,i=null,a=r.sort((l,h)=>wm(l,h,t));for(let l of a)Em(l,e,t)?(i=l,s||(s=l)):(i&&n.push([s,i]),i=null,s=null);s&&n.push([s,null]);let c=[];for(let[l,h]of n)l===h?c.push(l):!h&&l===a[0]?c.push("*"):h?l===a[0]?c.push(`<=${h}`):c.push(`${l} - ${h}`):c.push(`>=${l}`);let u=c.join(" || "),o=typeof e.raw=="string"?e.raw:String(e);return u.length<o.length?u:e}});var hu=y((ww,du)=>{var uu=He(),Bn=Wr(),{ANY:Bs}=Bn,Qr=Zr(),Ws=Ue(),bm=(r,e,t={})=>{if(r===e)return!0;r=new uu(r,t),e=new uu(e,t);let n=!1;e:for(let s of r.set){for(let i of e.set){let a=Sm(s,i,t);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},Sm=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===Bs){if(e.length===1&&e[0].semver===Bs)return!0;t.includePrerelease?r=[new Bn(">=0.0.0-0")]:r=[new Bn(">=0.0.0")]}if(e.length===1&&e[0].semver===Bs){if(t.includePrerelease)return!0;e=[new Bn(">=0.0.0")]}let n=new Set,s,i;for(let v of r)v.operator===">"||v.operator===">="?s=lu(s,v,t):v.operator==="<"||v.operator==="<="?i=fu(i,v,t):n.add(v.semver);if(n.size>1)return null;let a;if(s&&i){if(a=Ws(s.semver,i.semver,t),a>0)return null;if(a===0&&(s.operator!==">="||i.operator!=="<="))return null}for(let v of n){if(s&&!Qr(v,String(s),t)||i&&!Qr(v,String(i),t))return null;for(let $ of e)if(!Qr(v,String($),t))return!1;return!0}let c,u,o,l,h=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1,g=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;h&&h.prerelease.length===1&&i.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(let v of e){if(l=l||v.operator===">"||v.operator===">=",o=o||v.operator==="<"||v.operator==="<=",s){if(g&&v.semver.prerelease&&v.semver.prerelease.length&&v.semver.major===g.major&&v.semver.minor===g.minor&&v.semver.patch===g.patch&&(g=!1),v.operator===">"||v.operator===">="){if(c=lu(s,v,t),c===v&&c!==s)return!1}else if(s.operator===">="&&!Qr(s.semver,String(v),t))return!1}if(i){if(h&&v.semver.prerelease&&v.semver.prerelease.length&&v.semver.major===h.major&&v.semver.minor===h.minor&&v.semver.patch===h.patch&&(h=!1),v.operator==="<"||v.operator==="<="){if(u=fu(i,v,t),u===v&&u!==i)return!1}else if(i.operator==="<="&&!Qr(i.semver,String(v),t))return!1}if(!v.operator&&(i||s)&&a!==0)return!1}return!(s&&o&&!i&&a!==0||i&&l&&!s&&a!==0||g||h)},lu=(r,e,t)=>{if(!r)return e;let n=Ws(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},fu=(r,e,t)=>{if(!r)return e;let n=Ws(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};du.exports=bm});var mu=y((bw,pu)=>{var Js=Ft();pu.exports={re:Js.re,src:Js.src,tokens:Js.t,SEMVER_SPEC_VERSION:Ur().SEMVER_SPEC_VERSION,SemVer:ve(),compareIdentifiers:kn().compareIdentifiers,rcompareIdentifiers:kn().rcompareIdentifiers,parse:Vt(),valid:jo(),clean:xo(),inc:Mo(),diff:zo(),major:Xo(),minor:Wo(),patch:Yo(),prerelease:Qo(),compare:Ue(),rcompare:tc(),compareLoose:nc(),compareBuild:Fn(),sort:oc(),rsort:uc(),gt:Kr(),lt:Vn(),eq:Mn(),neq:Fs(),gte:Un(),lte:Hn(),cmp:Vs(),coerce:vc(),Comparator:Wr(),Range:He(),satisfies:Zr(),toComparators:Fc(),maxSatisfying:Uc(),minSatisfying:Gc(),minVersion:Xc(),validRange:Wc(),outside:Xn(),gtr:tu(),ltr:nu(),intersects:au(),simplifyRange:cu(),subset:hu()}});var yt=y(qe=>{"use strict";var Om=qe&&qe.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,s)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Pm=qe&&qe.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Rm=qe&&qe.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Om(e,r,t);return Pm(e,r),e},gu=qe&&qe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(qe,"__esModule",{value:!0});qe.getCoreVersion=void 0;var vu=gu(require("path")),_u=gu(require("fs")),Ys=Rm(require("@serverless-devs/core")),Cm=mu(),yu=vu.default.join(Ys.getRootHome(),"cache","core"),Zs=vu.default.join(yu,"package.json");function Nm(){if(_u.default.existsSync(Zs)){var r=require("@serverless-devs/core/package.json").version,e=$u();return Cm.gt(e,r)?require(yu):Ys}return Ys}function $u(){return _u.default.existsSync(Zs)?require(Zs).version:void 0}qe.getCoreVersion=$u;qe.default=Nm()});var ti=y(Pe=>{"use strict";var Im=Pe&&Pe.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function c(l){try{o(n.next(l))}catch(h){a(h)}}function u(l){try{o(n.throw(l))}catch(h){a(h)}}function o(l){l.done?i(l.value):s(l.value).then(c,u)}o((n=n.apply(r,e||[])).next())})},Am=Pe&&Pe.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(o){return function(l){return u([o,l])}}function u(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(l){o=[6,l],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Eu=Pe&&Pe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.handlerProfileFile=Pe.getConfig=Pe.setConfig=void 0;var wu=Eu(require("path")),ei=Eu(yt()),it=ei.default.fse,Wn=ei.default.jsyaml,Qs=ei.default.getRootHome;function Tm(r){var e=Su();it.writeFileSync(e,Wn.dump(r))}function bu(){var r=Su();if(!it.existsSync(r))return{};try{var e=Wn.load(it.readFileSync(r,"utf8"))||{};return e}catch(t){throw t}}function Su(){var r=wu.default.join(Qs(),"set-config.yml");return it.existsSync(r)||it.createFileSync(r),r}function qm(r,e){var t=bu();t[r]=e,Tm(t)}Pe.setConfig=qm;function Dm(r,e){var t=bu();return t[r]||e}Pe.getConfig=Dm;function jm(r){return Im(this,void 0,void 0,function(){var e,t,n,s,i,a,c;return Am(this,function(u){switch(u.label){case 0:if(e=r.filePath||"set-config.yml",t=wu.default.join(Qs(),e),n=it.existsSync(t),s={},n)return[3,5];i=Qs(),u.label=1;case 1:return u.trys.push([1,2,,4]),it.statSync(i),[3,4];case 2:return a=u.sent(),[4,it.mkdirSync(i)];case 3:return u.sent(),[3,4];case 4:return[3,6];case 5:try{s=Wn.load(it.readFileSync(t,"utf8"))||{}}catch(o){throw o}u.label=6;case 6:return r.read?[2,s]:(c=r.configKey||"",s[c]=r.data,[4,it.writeFileSync(t,Wn.dump(s))]);case 7:return u.sent(),[2,s]}})})}Pe.handlerProfileFile=jm});var Ou=y((Pw,km)=>{km.exports={name:"@serverless-devs/s",version:"2.0.101-beta.1",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1",ajv:"^8.10.0","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.4.7","latest-version":"^5.1.0","lint-staged":"^10.0.8","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.1.3","ts-node":"^9.1.1",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var Yn=y(N=>{"use strict";var xm=N&&N.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,s)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Lm=N&&N.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Mm=N&&N.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&xm(e,r,t);return Lm(e,r),e},tn=N&&N.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function c(l){try{o(n.next(l))}catch(h){a(h)}}function u(l){try{o(n.throw(l))}catch(h){a(h)}}function o(l){l.done?i(l.value):s(l.value).then(c,u)}o((n=n.apply(r,e||[])).next())})},rn=N&&N.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(o){return function(l){return u([o,l])}}function u(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(l){o=[6,l],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},ri=N&&N.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(N,"__esModule",{value:!0});N.emoji=N.mark=N.replaceTemplate=N.replaceFun=N.getLang=N.printn=N.getFolderSize=N.getVersion=N.getPid=N.aiRequest=N.getCredentialWithAll=N.getCredentialWithExisted=N.getProcessArgv=N.bgRed=N.yellow=N.red=void 0;var Fm=ri(require("path")),en=ri(require("fs")),Vm=ri(require("os")),Be=Mm(yt()),Um=ti(),Pu=Ou(),Jn=Be.default.colors,Hm=Be.default.got,Gm=Be.default.getMAC,zm=Be.default.isDocker,Km=Be.default.isCiCdEnv,Xm=Be.default.getGlobalArgs,Ru=Be.default.getCredential,Cu=Be.default.getCredentialAliasList,dr=Be.default.lodash,Bm=dr.get,Wm=dr.trim,Jm=dr.assign,Ym=dr.filter,Nu=dr.includes,Iu=dr.omit;N.red=Jn.hex("#fd5750");N.yellow=Jn.hex("#F3F99D");N.bgRed=Jn.hex("#000").bgHex("#fd5750");var Zm=function(){var r=process.env.serverless_devs_temp_argv;try{var e=JSON.parse(r),t=Xm(e);return process.argv=process.argv.slice(0,2).concat(t._argsObj),Jm({},t,{noHelpArgv:process.argv.slice(0,2).concat(Ym(t._argsObj,function(n){return!Nu(["-h","--help"],n)}))})}catch{return{}}};N.getProcessArgv=Zm;var Qm=function(r){return tn(void 0,void 0,void 0,function(){var e,t;return rn(this,function(n){switch(n.label){case 0:return[4,Cu()];case 1:return e=n.sent(),Nu(e,r)?[4,Ru(r)]:[3,3];case 2:return t=n.sent(),[2,Iu(t,"Alias")];case 3:return[2]}})})};N.getCredentialWithExisted=Qm;var eg=function(){return tn(void 0,void 0,void 0,function(){var r,e,t,n,s,i;return rn(this,function(a){switch(a.label){case 0:return[4,Cu()];case 1:if(r=a.sent(),!(r.length>0))return[3,6];e={},t=0,n=r,a.label=2;case 2:return t<n.length?(s=n[t],[4,Ru(s)]):[3,5];case 3:i=a.sent(),e[i.Alias]=Iu(i,"Alias"),a.label=4;case 4:return t++,[3,2];case 5:return[2,e];case 6:return[2]}})})};N.getCredentialWithAll=eg;var tg=function(r,e){return e===void 0&&(e="unknow"),tn(void 0,void 0,void 0,function(){var t,n,s,i;return rn(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),t=(0,Um.getConfig)("analysis"),t!=="enable"?[2]:zm()||Km()?[2]:[4,Hm("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(e,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0})];case 1:return n=a.sent(),s=Bm(n.body,"shorturl"),s&&console.log(`AI Tips:
16
+ You can try to solve the problem through: `.concat(Jn.underline(s),`
17
+ `)),[3,3];case 2:return i=a.sent(),[3,3];case 3:return[2]}})})};N.aiRequest=tg;var rg=function(){try{return Gm().replace(/:/g,"")}catch{return"unknown"}};N.getPid=rg;function ng(){var r=(0,Be.getCoreVersion)(),e=["".concat(Pu.name,": ").concat(Pu.version),r?"core: ".concat(r):void 0,"s-home: ".concat(Be.default.getRootHome()),"".concat(process.platform,"-").concat(process.arch),"node-".concat(process.version)];return e.filter(function(t){return t}).join(", ")}N.getVersion=ng;function sg(r){return tn(this,void 0,void 0,function(){function e(s){return tn(this,void 0,void 0,function(){var i,a;return rn(this,function(c){switch(c.label){case 0:return i=en.default.lstatSync(s),typeof i!="object"?[2]:(t.set(i.ino,i.size),i.isDirectory()?(a=en.default.readdirSync(s),typeof a!="object"?[2]:[4,Promise.all(a.map(function(u){return e(Fm.default.join(s,u))}))]):[3,2]);case 1:c.sent(),c.label=2;case 2:return[2]}})})}var t,n;return rn(this,function(s){switch(s.label){case 0:return t=new Map,[4,e(r)];case 1:return s.sent(),n=Array.from(t.values()).reduce(function(i,a){return i+a},0),[2,n]}})})}N.getFolderSize=sg;function ig(r,e){e===void 0&&(e=" ");for(var t="",n=0;n<r;n++)t=t+e;return t}N.printn=ig;function ag(){return"en"}N.getLang=ag;function Au(r,e){var t=/\{\{(.*?)\}\}/g,n=r.match(t);if(n)for(var s=0;s<n.length;s++){var i=n[s].replace(/{{|}}/g,""),a=Wm(i.split("|")[0]);e[a]&&(r=r.replace(n[s],e[a]))}return r}N.replaceFun=Au;function og(r,e){r.forEach(function(t){if(en.default.existsSync(t)){var n=en.default.readFileSync(t,"utf-8"),s=Au(n,e);en.default.writeFileSync(t,s,"utf-8")}})}N.replaceTemplate=og;function cg(r){if(!r)return r;var e=r.slice(-4);return"***********".concat(e)}N.mark=cg;function ug(r,e){return Vm.default.platform()==="win32"?e||"\u25C6":"".concat(r," ")}N.emoji=ug});var Tu=y(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.default={clean_up_the_environment:"\u6E05\u7406\u73AF\u5883",display_help_for_command:"\u663E\u793A\u547D\u4EE4\u5E2E\u52A9",remove_components:"\u5220\u9664\u7EC4\u4EF6",delete_the_file_under_the_cache:"\u5220\u9664\u7F13\u5B58\u91CC\u7684\u7684<dirname>\u6587\u4EF6",record_your_log_information:"\u662F\u5426\u8BB0\u5F55\u60A8\u7684\u65E5\u5FD7\u4FE1\u606F\uFF1F",init_pproject_deploy_tip:"\u662F\u5426\u7ACB\u5373\u90E8\u7F72\u8BE5\u9879\u76EE\uFF1F",tip_for_a_serverless_project:"\u68C0\u6D4B\u5230\u5F53\u524D\u76EE\u5F55\u4E0B\u5DF2\u5B58\u5728\u4E00\u4E2AServerless-Devs\u9879\u76EE\uFF0C\u8BF7\u901A\u8FC7 's deploy' \u8FDB\u884C\u90E8\u7F72\u6216\u901A\u8FC7 's -h' \u83B7\u53D6\u66F4\u591A\u4FE1\u606F",create_a_new_project:"\u672A\u68C0\u6D4B\u5230 Serverless-Devs \u9879\u76EE\uFF0C\u662F\u5426\u65B0\u5EFA\u4E00\u4E2A\u9879\u76EE\uFF1F",en:"English (en)",zh:"\u4E2D\u6587 (zh)",select_current_language:"\u8BF7\u9009\u62E9\u5F53\u524D\u8BED\u8A00","app-tip":"\u8BF7\u9009\u62E9\u60A8\u5E0C\u671B\u521B\u5EFA\u7684 Serverless-Devs \u5E94\u7528","template-tip":"\u8BF7\u9009\u62E9\u60A8\u559C\u6B22\u7684\u6A21\u7248","fc-runtime-starter":"fc-runtime-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A FC \u51FD\u6570","fc-custom-container-stater":"fc-custom-container-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A custom-container \u5E94\u7528",web:"web-framework-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Web \u6846\u67B6","static-site":"static-website-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","best-practice":"serverless-best-practice - \u5FEB\u901F\u4F53\u9A8C Serverless \u6700\u4F73\u5B9E\u8DF5","devs-template":"Serverless Devs \u5F00\u53D1\u6A21\u677F","fc-http-nodejs":"fc-http-nodejs - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nodejs12 \u51FD\u6570","fc-http-python":"fc-http-python - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A python3 \u51FD\u6570","fc-http-java":"fc-http-java - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A java8 \u51FD\u6570","fc-custom-container-event-python3":"fc-custom-container-event-python3 - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 python3 \u5E94\u7528","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 cpp \u5E94\u7528","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 springboot \u5E94\u7528","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 aspdotnetcore \u5E94\u7528","express-starter":"express-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A express \u57FA\u7840\u5E94\u7528","koa-starter":"koa-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A koa \u57FA\u7840\u5E94\u7528","nuxtjs-starter":"nuxtjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nuxtjs \u57FA\u7840\u5E94\u7528","eggjs-starter":"eggjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A eggjs \u57FA\u7840\u5E94\u7528","flask-starter":"flask-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A flask \u57FA\u7840\u5E94\u7528","SpringBoot-starter":"SpringBoot-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A SpringBoot \u57FA\u7840\u5E94\u7528","Zblog-starter":"Zblog-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Zblog \u57FA\u7840\u5E94\u7528","website-starter":"website-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","react-starter":"react-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A React.js \u5E94\u7528","vue-starter":"vue-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Vue.js \u5E94\u7528",puppeteer:"puppeteer - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E puppeteer \u622A\u56FE\u7684 Web \u5E94\u7528",ffmpeg:"ffmpeg - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E ffmpeg \u5B9E\u73B0\u97F3\u89C6\u9891\u5904\u7406\u5E94\u7528",pdf2Img:"pdf2Img - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A pdf \u8F6C\u56FE\u7247\u5E94\u7528",tensorflow:"tensorflow - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A tensorflow \u5E94\u7528",todoList:"todoList - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E nodejs \u7684\u7F51\u9875 TodoList \u5E94\u7528"}});var qu=y(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.default={clean_up_the_environment:"Clean up the environment",display_help_for_command:"Display help for command",remove_components:"Remove component (like: fc, fc@0.0.1)",delete_the_file_under_the_cache:"Delete the <dirname> file in the cache",record_your_log_information:"Do you record your log information?",init_pproject_deploy_tip:"Do you want to deploy the project immediately?",tip_for_a_serverless_project:"A Serverless-Devs project is detected in the current directory, please deploy via 's deploy' or get more information via 's -h'",create_a_new_project:"No Serverless-Devs project is currently detected. Do you want to create a new project?",en:"English (en)",zh:"Chinese (zh)",select_current_language:"Please select current language","app-tip":"Hello, serverlesser. Which template do you like?","template-tip":"Which template do you like?","fc-runtime-starter":"fc-runtime-starter - Deploy FC function in 5 minutes","fc-custom-container-stater":"fc-custom-container-stater - Deploy FC function with custom-container",web:"web-framework-stater-Quickly deploy a web framework","static-site":"static-website-stater-Quickly deploy a static website","best-practice":"serverless-best-practice-Quickly experience serverless best practices","devs-template":"Serverless Develop scaffold","fc-http-nodejs":"fc-http-nodejs - Deploy FC nodejs12 runtime function","fc-http-python":"fc-http-python - Deploy FC python3 runtime function","fc-http-java":"fc-http-java - Deploy FC java8 runtime function","fc-custom-container-event-python3":"fc-custom-container-event-python3 - Deploy python3 event-triggered application","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - Deploy cpp event-triggered application","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - Deploy springboot HTTP Request-triggered application","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - Deploy dotnetcore HTTP Request-triggered application","express-starter":"express-starter - Deploy express application","koa-starter":"koa-starter - Deploy koa application","nuxtjs-starter":"nuxtjs-starter - Deploy nuxtjs application","eggjs-starter":"eggjs-starter - Deploy eggjs application","flask-starter":"flask-starter - Deploy flask application","SpringBoot-starter":"SpringBoot-starter - Deploy SpringBoot application","Zblog-starter":"Zblog-starter - Deploy Zblog application","website-starter":"website-starter - Deploy static website","react-starter":"react-starter - Deploy React.js application","vue-starter":"vue-starter - Deploy Vue.js application",puppeteer:"puppeteer - Deploy screenshot application base on puppeteer + fc",ffmpeg:"ffmpeg - Deploy audio and video processing application base on ffmpeg + fc",pdf2Img:"pdf2Img - Deploy pdf to images application",tensorflow:"tensorflow - Deploy tensorflow application",todoList:"todoList - Deploy todoList application"}});var ai=y(nn=>{"use strict";var Du=nn&&nn.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(nn,"__esModule",{value:!0});var lg=Yn(),fg=Du(Tu()),dg=Du(qu()),ii={en:dg.default,zh:fg.default},hg=function(r){var e=(0,lg.getLang)(),t=ii[e]?ii[e][r]:ii.en[r];return t||r};nn.default=hg});var ci=y(sn=>{"use strict";var pg=sn&&sn.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(sn,"__esModule",{value:!0});var mg=pg(yt()),gg=mg.default.Logger,oi=new gg("S-CLI");oi.success=function(r){return oi.log(r,"green")};sn.default=oi});var li=y(ye=>{"use strict";var vg=ye&&ye.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,s)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),ju=ye&&ye.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&vg(e,r,t)},ui=ye&&ye.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ye,"__esModule",{value:!0});ye.registerCommandChecker=ye.i18n=ye.logger=void 0;var _g=ui(ci());ju(Yn(),ye);ju(ti(),ye);var yg=ci();Object.defineProperty(ye,"logger",{enumerable:!0,get:function(){return ui(yg).default}});var $g=ai();Object.defineProperty(ye,"i18n",{enumerable:!0,get:function(){return ui($g).default}});function Eg(r){r.on("command:*",function(e){var t=r.commands.map(function(n){return n.name()});t.includes(e[0])||(_g.default.error(" error: unknown command ".concat(e[0])),r.help())})}ye.registerCommandChecker=Eg});var on=y(H=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0});H.regexpCode=H.getEsmExportName=H.getProperty=H.safeStringify=H.stringify=H.strConcat=H.addCodeArg=H.str=H._=H.nil=H._Code=H.Name=H.IDENTIFIER=H._CodeOrName=void 0;var Zn=class{};H._CodeOrName=Zn;H.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var hr=class extends Zn{constructor(e){super();if(!H.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};H.Name=hr;var We=class extends Zn{constructor(e){super();this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((t,n)=>`${t}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((t,n)=>(n instanceof hr&&(t[n.str]=(t[n.str]||0)+1),t),{})}};H._Code=We;H.nil=new We("");function ku(r,...e){let t=[r[0]],n=0;for(;n<e.length;)di(t,e[n]),t.push(r[++n]);return new We(t)}H._=ku;var fi=new We("+");function xu(r,...e){let t=[an(r[0])],n=0;for(;n<e.length;)t.push(fi),di(t,e[n]),t.push(fi,an(r[++n]));return wg(t),new We(t)}H.str=xu;function di(r,e){e instanceof We?r.push(...e._items):e instanceof hr?r.push(e):r.push(Og(e))}H.addCodeArg=di;function wg(r){let e=1;for(;e<r.length-1;){if(r[e]===fi){let t=bg(r[e-1],r[e+1]);if(t!==void 0){r.splice(e-1,3,t);continue}r[e++]="+"}e++}}function bg(r,e){if(e==='""')return r;if(r==='""')return e;if(typeof r=="string")return e instanceof hr||r[r.length-1]!=='"'?void 0:typeof e!="string"?`${r.slice(0,-1)}${e}"`:e[0]==='"'?r.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(r instanceof hr))return`"${r}${e.slice(1)}`}function Sg(r,e){return e.emptyStr()?r:r.emptyStr()?e:xu`${r}${e}`}H.strConcat=Sg;function Og(r){return typeof r=="number"||typeof r=="boolean"||r===null?r:an(Array.isArray(r)?r.join(","):r)}function Pg(r){return new We(an(r))}H.stringify=Pg;function an(r){return JSON.stringify(r).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}H.safeStringify=an;function Rg(r){return typeof r=="string"&&H.IDENTIFIER.test(r)?new We(`.${r}`):ku`[${r}]`}H.getProperty=Rg;function Cg(r){if(typeof r=="string"&&H.IDENTIFIER.test(r))return new We(`${r}`);throw new Error(`CodeGen: invalid export name: ${r}, use explicit $id name mapping`)}H.getEsmExportName=Cg;function Ng(r){return new We(r.toString())}H.regexpCode=Ng});var gi=y(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.ValueScope=be.ValueScopeName=be.Scope=be.varKinds=be.UsedValueState=void 0;var Re=on(),Lu=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`);this.value=e.value}},hi;(function(r){r[r.Started=0]="Started",r[r.Completed=1]="Completed"})(hi=be.UsedValueState||(be.UsedValueState={}));be.varKinds={const:new Re.Name("const"),let:new Re.Name("let"),var:new Re.Name("var")};var pi=class{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof Re.Name?e:this.name(e)}name(e){return new Re.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){var t,n;if(((n=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||n===void 0?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};be.Scope=pi;var mi=class extends Re.Name{constructor(e,t){super(t);this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=(0,Re._)`.${new Re.Name(t)}[${n}]`}};be.ValueScopeName=mi;var Ig=(0,Re._)`\n`,Mu=class extends pi{constructor(e){super(e);this._values={},this._scope=e.scope,this.opts=Fe(ie({},e),{_n:e.lines?Ig:Re.nil})}get(){return this._scope}name(e){return new mi(e,this._newName(e))}value(e,t){var n;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let s=this.toName(e),{prefix:i}=s,a=(n=t.key)!==null&&n!==void 0?n:t.ref,c=this._values[i];if(c){let l=c.get(a);if(l)return l}else c=this._values[i]=new Map;c.set(a,s);let u=this._scope[i]||(this._scope[i]=[]),o=u.length;return u[o]=t.ref,s.setValue(t,{property:i,itemIndex:o}),s}getValue(e,t){let n=this._values[e];if(!!n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Re._)`${e}${n.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,s=>{if(s.value===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return s.value.code},t,n)}_reduceValues(e,t,n={},s){let i=Re.nil;for(let a in e){let c=e[a];if(!c)continue;let u=n[a]=n[a]||new Map;c.forEach(o=>{if(u.has(o))return;u.set(o,hi.Started);let l=t(o);if(l){let h=this.opts.es5?be.varKinds.var:be.varKinds.const;i=(0,Re._)`${i}${h} ${o} = ${l};${this.opts._n}`}else if(l=s==null?void 0:s(o))i=(0,Re._)`${i}${l}${this.opts._n}`;else throw new Lu(o);u.set(o,hi.Completed)})}return i}};be.ValueScope=Mu});var L=y(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.or=k.and=k.not=k.CodeGen=k.operators=k.varKinds=k.ValueScopeName=k.ValueScope=k.Scope=k.Name=k.regexpCode=k.stringify=k.getProperty=k.nil=k.strConcat=k.str=k._=void 0;var M=on(),Je=gi(),Ot=on();Object.defineProperty(k,"_",{enumerable:!0,get:function(){return Ot._}});Object.defineProperty(k,"str",{enumerable:!0,get:function(){return Ot.str}});Object.defineProperty(k,"strConcat",{enumerable:!0,get:function(){return Ot.strConcat}});Object.defineProperty(k,"nil",{enumerable:!0,get:function(){return Ot.nil}});Object.defineProperty(k,"getProperty",{enumerable:!0,get:function(){return Ot.getProperty}});Object.defineProperty(k,"stringify",{enumerable:!0,get:function(){return Ot.stringify}});Object.defineProperty(k,"regexpCode",{enumerable:!0,get:function(){return Ot.regexpCode}});Object.defineProperty(k,"Name",{enumerable:!0,get:function(){return Ot.Name}});var ss=gi();Object.defineProperty(k,"Scope",{enumerable:!0,get:function(){return ss.Scope}});Object.defineProperty(k,"ValueScope",{enumerable:!0,get:function(){return ss.ValueScope}});Object.defineProperty(k,"ValueScopeName",{enumerable:!0,get:function(){return ss.ValueScopeName}});Object.defineProperty(k,"varKinds",{enumerable:!0,get:function(){return ss.varKinds}});k.operators={GT:new M._Code(">"),GTE:new M._Code(">="),LT:new M._Code("<"),LTE:new M._Code("<="),EQ:new M._Code("==="),NEQ:new M._Code("!=="),NOT:new M._Code("!"),OR:new M._Code("||"),AND:new M._Code("&&"),ADD:new M._Code("+")};var Pt=class{optimizeNodes(){return this}optimizeNames(e,t){return this}},Fu=class extends Pt{constructor(e,t,n){super();this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){let n=e?Je.varKinds.var:this.varKind,s=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${s};`+t}optimizeNames(e,t){if(!!e[this.name.str])return this.rhs&&(this.rhs=mr(this.rhs,e,t)),this}get names(){return this.rhs instanceof M._CodeOrName?this.rhs.names:{}}},yi=class extends Pt{constructor(e,t,n){super();this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof M.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=mr(this.rhs,e,t),this}get names(){let e=this.lhs instanceof M.Name?{}:ie({},this.lhs.names);return ns(e,this.rhs)}},Vu=class extends yi{constructor(e,t,n,s){super(e,n,s);this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Uu=class extends Pt{constructor(e){super();this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},Hu=class extends Pt{constructor(e){super();this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Gu=class extends Pt{constructor(e){super();this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},zu=class extends Pt{constructor(e){super();this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=mr(this.code,e,t),this}get names(){return this.code instanceof M._CodeOrName?this.code.names:{}}},is=class extends Pt{constructor(e=[]){super();this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:n}=this,s=n.length;for(;s--;){let i=n[s];i.optimizeNames(e,t)||(Ag(e,i.names),n.splice(s,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>zt(e,t.names),{})}},Rt=class extends is{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},Ku=class extends is{},cn=class extends Rt{};cn.kind="else";var at=class extends Rt{constructor(e,t){super(t);this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let t=this.else;if(t){let n=t.optimizeNodes();t=this.else=Array.isArray(n)?new cn(n):n}if(t)return e===!1?t instanceof at?t:t.nodes:this.nodes.length?this:new at(Yu(e),t instanceof at?[t]:t.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,t){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,t),!!(super.optimizeNames(e,t)||this.else))return this.condition=mr(this.condition,e,t),this}get names(){let e=super.names;return ns(e,this.condition),this.else&&zt(e,this.else.names),e}};at.kind="if";var pr=class extends Rt{};pr.kind="for";var Xu=class extends pr{constructor(e){super();this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(!!super.optimizeNames(e,t))return this.iteration=mr(this.iteration,e,t),this}get names(){return zt(super.names,this.iteration.names)}},Bu=class extends pr{constructor(e,t,n,s){super();this.varKind=e,this.name=t,this.from=n,this.to=s}render(e){let t=e.es5?Je.varKinds.var:this.varKind,{name:n,from:s,to:i}=this;return`for(${t} ${n}=${s}; ${n}<${i}; ${n}++)`+super.render(e)}get names(){let e=ns(super.names,this.from);return ns(e,this.to)}},vi=class extends pr{constructor(e,t,n,s){super();this.loop=e,this.varKind=t,this.name=n,this.iterable=s}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(!!super.optimizeNames(e,t))return this.iterable=mr(this.iterable,e,t),this}get names(){return zt(super.names,this.iterable.names)}},Qn=class extends Rt{constructor(e,t,n){super();this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};Qn.kind="func";var es=class extends is{render(e){return"return "+super.render(e)}};es.kind="return";var Wu=class extends Rt{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(e,t){var n,s;return super.optimizeNames(e,t),(n=this.catch)===null||n===void 0||n.optimizeNames(e,t),(s=this.finally)===null||s===void 0||s.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&zt(e,this.catch.names),this.finally&&zt(e,this.finally.names),e}},ts=class extends Rt{constructor(e){super();this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};ts.kind="catch";var rs=class extends Rt{render(e){return"finally"+super.render(e)}};rs.kind="finally";var Ju=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=Fe(ie({},t),{_n:t.lines?`
18
+ `:""}),this._extScope=e,this._scope=new Je.Scope({parent:e}),this._nodes=[new Ku]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){let n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,s){let i=this._scope.toName(t);return n!==void 0&&s&&(this._constants[i.str]=n),this._leafNode(new Fu(e,i,n)),i}const(e,t,n){return this._def(Je.varKinds.const,e,t,n)}let(e,t,n){return this._def(Je.varKinds.let,e,t,n)}var(e,t,n){return this._def(Je.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new yi(e,t,n))}add(e,t){return this._leafNode(new Vu(e,k.operators.ADD,t))}code(e){return typeof e=="function"?e():e!==M.nil&&this._leafNode(new zu(e)),this}object(...e){let t=["{"];for(let[n,s]of e)t.length>1&&t.push(","),t.push(n),(n!==s||this.opts.es5)&&(t.push(":"),(0,M.addCodeArg)(t,s));return t.push("}"),new M._Code(t)}if(e,t,n){if(this._blockNode(new at(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new at(e))}else(){return this._elseNode(new cn)}endIf(){return this._endBlockNode(at,cn)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new Xu(e),t)}forRange(e,t,n,s,i=this.opts.es5?Je.varKinds.var:Je.varKinds.let){let a=this._scope.toName(e);return this._for(new Bu(i,a,t,n),()=>s(a))}forOf(e,t,n,s=Je.varKinds.const){let i=this._scope.toName(e);if(this.opts.es5){let a=t instanceof M.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,M._)`${a}.length`,c=>{this.var(i,(0,M._)`${a}[${c}]`),n(i)})}return this._for(new vi("of",s,i,t),()=>n(i))}forIn(e,t,n,s=this.opts.es5?Je.varKinds.var:Je.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,M._)`Object.keys(${t})`,n);let i=this._scope.toName(e);return this._for(new vi("in",s,i,t),()=>n(i))}endFor(){return this._endBlockNode(pr)}label(e){return this._leafNode(new Uu(e))}break(e){return this._leafNode(new Hu(e))}return(e){let t=new es;if(this._blockNode(t),this.code(e),t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(es)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let s=new Wu;if(this._blockNode(s),this.code(e),t){let i=this.name("e");this._currNode=s.catch=new ts(i),t(i)}return n&&(this._currNode=s.finally=new rs,this.code(n)),this._endBlockNode(ts,rs)}throw(e){return this._leafNode(new Gu(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){let t=this._blockStarts.pop();if(t===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-t;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=M.nil,n,s){return this._blockNode(new Qn(e,t,n)),s&&this.code(s).endFunc(),this}endFunc(){return this._endBlockNode(Qn)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){let n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof at))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let t=this._nodes;t[t.length-1]=e}};k.CodeGen=Ju;function zt(r,e){for(let t in e)r[t]=(r[t]||0)+(e[t]||0);return r}function ns(r,e){return e instanceof M._CodeOrName?zt(r,e.names):r}function mr(r,e,t){if(r instanceof M.Name)return n(r);if(!s(r))return r;return new M._Code(r._items.reduce((i,a)=>(a instanceof M.Name&&(a=n(a)),a instanceof M._Code?i.push(...a._items):i.push(a),i),[]));function n(i){let a=t[i.str];return a===void 0||e[i.str]!==1?i:(delete e[i.str],a)}function s(i){return i instanceof M._Code&&i._items.some(a=>a instanceof M.Name&&e[a.str]===1&&t[a.str]!==void 0)}}function Ag(r,e){for(let t in e)r[t]=(r[t]||0)-(e[t]||0)}function Yu(r){return typeof r=="boolean"||typeof r=="number"||r===null?!r:(0,M._)`!${_i(r)}`}k.not=Yu;var Tg=Zu(k.operators.AND);function qg(...r){return r.reduce(Tg)}k.and=qg;var Dg=Zu(k.operators.OR);function jg(...r){return r.reduce(Dg)}k.or=jg;function Zu(r){return(e,t)=>e===M.nil?t:t===M.nil?e:(0,M._)`${_i(e)} ${r} ${_i(t)}`}function _i(r){return r instanceof M.Name?r:(0,M._)`(${r})`}});var G=y(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.checkStrictMode=x.getErrorPath=x.Type=x.useFunc=x.setEvaluated=x.evaluatedPropsToName=x.mergeEvaluated=x.eachItem=x.unescapeJsonPointer=x.escapeJsonPointer=x.escapeFragment=x.unescapeFragment=x.schemaRefOrVal=x.schemaHasRulesButRef=x.schemaHasRules=x.checkUnknownRules=x.alwaysValidSchema=x.toHash=void 0;var Z=L(),kg=on();function xg(r){let e={};for(let t of r)e[t]=!0;return e}x.toHash=xg;function Lg(r,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(tl(r,e),!rl(e,r.self.RULES.all))}x.alwaysValidSchema=Lg;function tl(r,e=r.schema){let{opts:t,self:n}=r;if(!t.strictSchema||typeof e=="boolean")return;let s=n.RULES.keywords;for(let i in e)s[i]||al(r,`unknown keyword: "${i}"`)}x.checkUnknownRules=tl;function rl(r,e){if(typeof r=="boolean")return!r;for(let t in r)if(e[t])return!0;return!1}x.schemaHasRules=rl;function Mg(r,e){if(typeof r=="boolean")return!r;for(let t in r)if(t!=="$ref"&&e.all[t])return!0;return!1}x.schemaHasRulesButRef=Mg;function Fg({topSchemaRef:r,schemaPath:e},t,n,s){if(!s){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,Z._)`${t}`}return(0,Z._)`${r}${e}${(0,Z.getProperty)(n)}`}x.schemaRefOrVal=Fg;function Vg(r){return nl(decodeURIComponent(r))}x.unescapeFragment=Vg;function Ug(r){return encodeURIComponent($i(r))}x.escapeFragment=Ug;function $i(r){return typeof r=="number"?`${r}`:r.replace(/~/g,"~0").replace(/\//g,"~1")}x.escapeJsonPointer=$i;function nl(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}x.unescapeJsonPointer=nl;function Hg(r,e){if(Array.isArray(r))for(let t of r)e(t);else e(r)}x.eachItem=Hg;function Qu({mergeNames:r,mergeToName:e,mergeValues:t,resultToName:n}){return(s,i,a,c)=>{let u=a===void 0?i:a instanceof Z.Name?(i instanceof Z.Name?r(s,i,a):e(s,i,a),a):i instanceof Z.Name?(e(s,a,i),i):t(i,a);return c===Z.Name&&!(u instanceof Z.Name)?n(s,u):u}}x.mergeEvaluated={props:Qu({mergeNames:(r,e,t)=>r.if((0,Z._)`${t} !== true && ${e} !== undefined`,()=>{r.if((0,Z._)`${e} === true`,()=>r.assign(t,!0),()=>r.assign(t,(0,Z._)`${t} || {}`).code((0,Z._)`Object.assign(${t}, ${e})`))}),mergeToName:(r,e,t)=>r.if((0,Z._)`${t} !== true`,()=>{e===!0?r.assign(t,!0):(r.assign(t,(0,Z._)`${t} || {}`),Ei(r,t,e))}),mergeValues:(r,e)=>r===!0?!0:ie(ie({},r),e),resultToName:sl}),items:Qu({mergeNames:(r,e,t)=>r.if((0,Z._)`${t} !== true && ${e} !== undefined`,()=>r.assign(t,(0,Z._)`${e} === true ? true : ${t} > ${e} ? ${t} : ${e}`)),mergeToName:(r,e,t)=>r.if((0,Z._)`${t} !== true`,()=>r.assign(t,e===!0?!0:(0,Z._)`${t} > ${e} ? ${t} : ${e}`)),mergeValues:(r,e)=>r===!0?!0:Math.max(r,e),resultToName:(r,e)=>r.var("items",e)})};function sl(r,e){if(e===!0)return r.var("props",!0);let t=r.var("props",(0,Z._)`{}`);return e!==void 0&&Ei(r,t,e),t}x.evaluatedPropsToName=sl;function Ei(r,e,t){Object.keys(t).forEach(n=>r.assign((0,Z._)`${e}${(0,Z.getProperty)(n)}`,!0))}x.setEvaluated=Ei;var el={};function Gg(r,e){return r.scopeValue("func",{ref:e,code:el[e.code]||(el[e.code]=new kg._Code(e.code))})}x.useFunc=Gg;var il;(function(r){r[r.Num=0]="Num",r[r.Str=1]="Str"})(il=x.Type||(x.Type={}));function zg(r,e,t){if(r instanceof Z.Name){let n=e===il.Num;return t?n?(0,Z._)`"[" + ${r} + "]"`:(0,Z._)`"['" + ${r} + "']"`:n?(0,Z._)`"/" + ${r}`:(0,Z._)`"/" + ${r}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,Z.getProperty)(r).toString():"/"+$i(r)}x.getErrorPath=zg;function al(r,e,t=r.opts.strictSchema){if(!!t){if(e=`strict mode: ${e}`,t===!0)throw new Error(e);r.self.logger.warn(e)}}x.checkStrictMode=al});var $t=y(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});var $e=L(),Kg={data:new $e.Name("data"),valCxt:new $e.Name("valCxt"),instancePath:new $e.Name("instancePath"),parentData:new $e.Name("parentData"),parentDataProperty:new $e.Name("parentDataProperty"),rootData:new $e.Name("rootData"),dynamicAnchors:new $e.Name("dynamicAnchors"),vErrors:new $e.Name("vErrors"),errors:new $e.Name("errors"),this:new $e.Name("this"),self:new $e.Name("self"),scope:new $e.Name("scope"),json:new $e.Name("json"),jsonPos:new $e.Name("jsonPos"),jsonLen:new $e.Name("jsonLen"),jsonPart:new $e.Name("jsonPart")};wi.default=Kg});var un=y(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.extendErrors=Ee.resetErrorsCount=Ee.reportExtraError=Ee.reportError=Ee.keyword$DataError=Ee.keywordError=void 0;var V=L(),as=G(),Se=$t();Ee.keywordError={message:({keyword:r})=>(0,V.str)`must pass "${r}" keyword validation`};Ee.keyword$DataError={message:({keyword:r,schemaType:e})=>e?(0,V.str)`"${r}" keyword must be ${e} ($data)`:(0,V.str)`"${r}" keyword is invalid ($data)`};function Xg(r,e=Ee.keywordError,t,n){let{it:s}=r,{gen:i,compositeRule:a,allErrors:c}=s,u=ul(r,e,t);(n!=null?n:a||c)?ol(i,u):cl(s,(0,V._)`[${u}]`)}Ee.reportError=Xg;function Bg(r,e=Ee.keywordError,t){let{it:n}=r,{gen:s,compositeRule:i,allErrors:a}=n,c=ul(r,e,t);ol(s,c),i||a||cl(n,Se.default.vErrors)}Ee.reportExtraError=Bg;function Wg(r,e){r.assign(Se.default.errors,e),r.if((0,V._)`${Se.default.vErrors} !== null`,()=>r.if(e,()=>r.assign((0,V._)`${Se.default.vErrors}.length`,e),()=>r.assign(Se.default.vErrors,null)))}Ee.resetErrorsCount=Wg;function Jg({gen:r,keyword:e,schemaValue:t,data:n,errsCount:s,it:i}){if(s===void 0)throw new Error("ajv implementation error");let a=r.name("err");r.forRange("i",s,Se.default.errors,c=>{r.const(a,(0,V._)`${Se.default.vErrors}[${c}]`),r.if((0,V._)`${a}.instancePath === undefined`,()=>r.assign((0,V._)`${a}.instancePath`,(0,V.strConcat)(Se.default.instancePath,i.errorPath))),r.assign((0,V._)`${a}.schemaPath`,(0,V.str)`${i.errSchemaPath}/${e}`),i.opts.verbose&&(r.assign((0,V._)`${a}.schema`,t),r.assign((0,V._)`${a}.data`,n))})}Ee.extendErrors=Jg;function ol(r,e){let t=r.const("err",e);r.if((0,V._)`${Se.default.vErrors} === null`,()=>r.assign(Se.default.vErrors,(0,V._)`[${t}]`),(0,V._)`${Se.default.vErrors}.push(${t})`),r.code((0,V._)`${Se.default.errors}++`)}function cl(r,e){let{gen:t,validateName:n,schemaEnv:s}=r;s.$async?t.throw((0,V._)`new ${r.ValidationError}(${e})`):(t.assign((0,V._)`${n}.errors`,e),t.return(!1))}var Kt={keyword:new V.Name("keyword"),schemaPath:new V.Name("schemaPath"),params:new V.Name("params"),propertyName:new V.Name("propertyName"),message:new V.Name("message"),schema:new V.Name("schema"),parentSchema:new V.Name("parentSchema")};function ul(r,e,t){let{createErrors:n}=r.it;return n===!1?(0,V._)`{}`:Yg(r,e,t)}function Yg(r,e,t={}){let{gen:n,it:s}=r,i=[Zg(s,t),Qg(r,t)];return ev(r,e,i),n.object(...i)}function Zg({errorPath:r},{instancePath:e}){let t=e?(0,V.str)`${r}${(0,as.getErrorPath)(e,as.Type.Str)}`:r;return[Se.default.instancePath,(0,V.strConcat)(Se.default.instancePath,t)]}function Qg({keyword:r,it:{errSchemaPath:e}},{schemaPath:t,parentSchema:n}){let s=n?e:(0,V.str)`${e}/${r}`;return t&&(s=(0,V.str)`${s}${(0,as.getErrorPath)(t,as.Type.Str)}`),[Kt.schemaPath,s]}function ev(r,{params:e,message:t},n){let{keyword:s,data:i,schemaValue:a,it:c}=r,{opts:u,propertyName:o,topSchemaRef:l,schemaPath:h}=c;n.push([Kt.keyword,s],[Kt.params,typeof e=="function"?e(r):e||(0,V._)`{}`]),u.messages&&n.push([Kt.message,typeof t=="function"?t(r):t]),u.verbose&&n.push([Kt.schema,a],[Kt.parentSchema,(0,V._)`${l}${h}`],[Se.default.data,i]),o&&n.push([Kt.propertyName,o])}});var fl=y(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.boolOrEmptySchema=gr.topBoolOrEmptySchema=void 0;var tv=un(),rv=L(),nv=$t(),sv={message:"boolean schema is false"};function iv(r){let{gen:e,schema:t,validateName:n}=r;t===!1?ll(r,!1):typeof t=="object"&&t.$async===!0?e.return(nv.default.data):(e.assign((0,rv._)`${n}.errors`,null),e.return(!0))}gr.topBoolOrEmptySchema=iv;function av(r,e){let{gen:t,schema:n}=r;n===!1?(t.var(e,!1),ll(r)):t.var(e,!0)}gr.boolOrEmptySchema=av;function ll(r,e){let{gen:t,data:n}=r,s={gen:t,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:r};(0,tv.reportError)(s,sv,void 0,e)}});var bi=y(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.getRules=vr.isJSONType=void 0;var ov=["string","number","integer","boolean","null","object","array"],cv=new Set(ov);function uv(r){return typeof r=="string"&&cv.has(r)}vr.isJSONType=uv;function lv(){let r={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:Fe(ie({},r),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},r.number,r.string,r.array,r.object],post:{rules:[]},all:{},keywords:{}}}vr.getRules=lv});var Si=y(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.shouldUseRule=Ct.shouldUseGroup=Ct.schemaHasRulesForType=void 0;function fv({schema:r,self:e},t){let n=e.RULES.types[t];return n&&n!==!0&&dl(r,n)}Ct.schemaHasRulesForType=fv;function dl(r,e){return e.rules.some(t=>hl(r,t))}Ct.shouldUseGroup=dl;function hl(r,e){var t;return r[e.keyword]!==void 0||((t=e.definition.implements)===null||t===void 0?void 0:t.some(n=>r[n]!==void 0))}Ct.shouldUseRule=hl});var fn=y(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.reportTypeError=he.checkDataTypes=he.checkDataType=he.coerceAndCheckDataType=he.getJSONTypes=he.getSchemaTypes=he.DataType=void 0;var dv=bi(),hv=Si(),pv=un(),q=L(),pl=G(),ln;(function(r){r[r.Correct=0]="Correct",r[r.Wrong=1]="Wrong"})(ln=he.DataType||(he.DataType={}));function mv(r){let e=ml(r.type);if(e.includes("null")){if(r.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&r.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');r.nullable===!0&&e.push("null")}return e}he.getSchemaTypes=mv;function ml(r){let e=Array.isArray(r)?r:r?[r]:[];if(e.every(dv.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}he.getJSONTypes=ml;function gv(r,e){let{gen:t,data:n,opts:s}=r,i=vv(e,s.coerceTypes),a=e.length>0&&!(i.length===0&&e.length===1&&(0,hv.schemaHasRulesForType)(r,e[0]));if(a){let c=Pi(e,n,s.strictNumbers,ln.Wrong);t.if(c,()=>{i.length?_v(r,e,i):Ri(r)})}return a}he.coerceAndCheckDataType=gv;var gl=new Set(["string","number","integer","boolean","null"]);function vv(r,e){return e?r.filter(t=>gl.has(t)||e==="array"&&t==="array"):[]}function _v(r,e,t){let{gen:n,data:s,opts:i}=r,a=n.let("dataType",(0,q._)`typeof ${s}`),c=n.let("coerced",(0,q._)`undefined`);i.coerceTypes==="array"&&n.if((0,q._)`${a} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,()=>n.assign(s,(0,q._)`${s}[0]`).assign(a,(0,q._)`typeof ${s}`).if(Pi(e,s,i.strictNumbers),()=>n.assign(c,s))),n.if((0,q._)`${c} !== undefined`);for(let o of t)(gl.has(o)||o==="array"&&i.coerceTypes==="array")&&u(o);n.else(),Ri(r),n.endIf(),n.if((0,q._)`${c} !== undefined`,()=>{n.assign(s,c),yv(r,c)});function u(o){switch(o){case"string":n.elseIf((0,q._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,q._)`"" + ${s}`).elseIf((0,q._)`${s} === null`).assign(c,(0,q._)`""`);return;case"number":n.elseIf((0,q._)`${a} == "boolean" || ${s} === null
19
+ || (${a} == "string" && ${s} && ${s} == +${s})`).assign(c,(0,q._)`+${s}`);return;case"integer":n.elseIf((0,q._)`${a} === "boolean" || ${s} === null
20
+ || (${a} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(c,(0,q._)`+${s}`);return;case"boolean":n.elseIf((0,q._)`${s} === "false" || ${s} === 0 || ${s} === null`).assign(c,!1).elseIf((0,q._)`${s} === "true" || ${s} === 1`).assign(c,!0);return;case"null":n.elseIf((0,q._)`${s} === "" || ${s} === 0 || ${s} === false`),n.assign(c,null);return;case"array":n.elseIf((0,q._)`${a} === "string" || ${a} === "number"
21
+ || ${a} === "boolean" || ${s} === null`).assign(c,(0,q._)`[${s}]`)}}}function yv({gen:r,parentData:e,parentDataProperty:t},n){r.if((0,q._)`${e} !== undefined`,()=>r.assign((0,q._)`${e}[${t}]`,n))}function Oi(r,e,t,n=ln.Correct){let s=n===ln.Correct?q.operators.EQ:q.operators.NEQ,i;switch(r){case"null":return(0,q._)`${e} ${s} null`;case"array":i=(0,q._)`Array.isArray(${e})`;break;case"object":i=(0,q._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":i=a((0,q._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":i=a();break;default:return(0,q._)`typeof ${e} ${s} ${r}`}return n===ln.Correct?i:(0,q.not)(i);function a(c=q.nil){return(0,q.and)((0,q._)`typeof ${e} == "number"`,c,t?(0,q._)`isFinite(${e})`:q.nil)}}he.checkDataType=Oi;function Pi(r,e,t,n){if(r.length===1)return Oi(r[0],e,t,n);let s,i=(0,pl.toHash)(r);if(i.array&&i.object){let a=(0,q._)`typeof ${e} != "object"`;s=i.null?a:(0,q._)`!${e} || ${a}`,delete i.null,delete i.array,delete i.object}else s=q.nil;i.number&&delete i.integer;for(let a in i)s=(0,q.and)(s,Oi(a,e,t,n));return s}he.checkDataTypes=Pi;var $v={message:({schema:r})=>`must be ${r}`,params:({schema:r,schemaValue:e})=>typeof r=="string"?(0,q._)`{type: ${r}}`:(0,q._)`{type: ${e}}`};function Ri(r){let e=Ev(r);(0,pv.reportError)(e,$v)}he.reportTypeError=Ri;function Ev(r){let{gen:e,data:t,schema:n}=r,s=(0,pl.schemaRefOrVal)(r,n,"type");return{gen:e,keyword:"type",data:t,schema:n.type,schemaCode:s,schemaValue:s,parentSchema:n,params:{},it:r}}});var _l=y(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.assignDefaults=void 0;var _r=L(),wv=G();function bv(r,e){let{properties:t,items:n}=r.schema;if(e==="object"&&t)for(let s in t)vl(r,s,t[s].default);else e==="array"&&Array.isArray(n)&&n.forEach((s,i)=>vl(r,i,s.default))}os.assignDefaults=bv;function vl(r,e,t){let{gen:n,compositeRule:s,data:i,opts:a}=r;if(t===void 0)return;let c=(0,_r._)`${i}${(0,_r.getProperty)(e)}`;if(s){(0,wv.checkStrictMode)(r,`default is ignored for: ${c}`);return}let u=(0,_r._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,_r._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,_r._)`${c} = ${(0,_r.stringify)(t)}`)}});var Ge=y(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.validateUnion=J.validateArray=J.usePattern=J.callValidateCode=J.schemaProperties=J.allSchemaProperties=J.noPropertyInData=J.propertyInData=J.isOwnProperty=J.hasPropFunc=J.reportMissingProp=J.checkMissingProp=J.checkReportMissingProp=void 0;var ee=L(),Ci=G(),Nt=$t(),Sv=G();function Ov(r,e){let{gen:t,data:n,it:s}=r;t.if(Ii(t,n,e,s.opts.ownProperties),()=>{r.setParams({missingProperty:(0,ee._)`${e}`},!0),r.error()})}J.checkReportMissingProp=Ov;function Pv({gen:r,data:e,it:{opts:t}},n,s){return(0,ee.or)(...n.map(i=>(0,ee.and)(Ii(r,e,i,t.ownProperties),(0,ee._)`${s} = ${i}`)))}J.checkMissingProp=Pv;function Rv(r,e){r.setParams({missingProperty:e},!0),r.error()}J.reportMissingProp=Rv;function yl(r){return r.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ee._)`Object.prototype.hasOwnProperty`})}J.hasPropFunc=yl;function Ni(r,e,t){return(0,ee._)`${yl(r)}.call(${e}, ${t})`}J.isOwnProperty=Ni;function Cv(r,e,t,n){let s=(0,ee._)`${e}${(0,ee.getProperty)(t)} !== undefined`;return n?(0,ee._)`${s} && ${Ni(r,e,t)}`:s}J.propertyInData=Cv;function Ii(r,e,t,n){let s=(0,ee._)`${e}${(0,ee.getProperty)(t)} === undefined`;return n?(0,ee.or)(s,(0,ee.not)(Ni(r,e,t))):s}J.noPropertyInData=Ii;function $l(r){return r?Object.keys(r).filter(e=>e!=="__proto__"):[]}J.allSchemaProperties=$l;function Nv(r,e){return $l(e).filter(t=>!(0,Ci.alwaysValidSchema)(r,e[t]))}J.schemaProperties=Nv;function Iv({schemaCode:r,data:e,it:{gen:t,topSchemaRef:n,schemaPath:s,errorPath:i},it:a},c,u,o){let l=o?(0,ee._)`${r}, ${e}, ${n}${s}`:e,h=[[Nt.default.instancePath,(0,ee.strConcat)(Nt.default.instancePath,i)],[Nt.default.parentData,a.parentData],[Nt.default.parentDataProperty,a.parentDataProperty],[Nt.default.rootData,Nt.default.rootData]];a.opts.dynamicRef&&h.push([Nt.default.dynamicAnchors,Nt.default.dynamicAnchors]);let g=(0,ee._)`${l}, ${t.object(...h)}`;return u!==ee.nil?(0,ee._)`${c}.call(${u}, ${g})`:(0,ee._)`${c}(${g})`}J.callValidateCode=Iv;var Av=(0,ee._)`new RegExp`;function Tv({gen:r,it:{opts:e}},t){let n=e.unicodeRegExp?"u":"",{regExp:s}=e.code,i=s(t,n);return r.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,ee._)`${s.code==="new RegExp"?Av:(0,Sv.useFunc)(r,s)}(${t}, ${n})`})}J.usePattern=Tv;function qv(r){let{gen:e,data:t,keyword:n,it:s}=r,i=e.name("valid");if(s.allErrors){let c=e.let("valid",!0);return a(()=>e.assign(c,!1)),c}return e.var(i,!0),a(()=>e.break()),i;function a(c){let u=e.const("len",(0,ee._)`${t}.length`);e.forRange("i",0,u,o=>{r.subschema({keyword:n,dataProp:o,dataPropType:Ci.Type.Num},i),e.if((0,ee.not)(i),c)})}}J.validateArray=qv;function Dv(r){let{gen:e,schema:t,keyword:n,it:s}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");if(t.some(u=>(0,Ci.alwaysValidSchema)(s,u))&&!s.opts.unevaluated)return;let a=e.let("valid",!1),c=e.name("_valid");e.block(()=>t.forEach((u,o)=>{let l=r.subschema({keyword:n,schemaProp:o,compositeRule:!0},c);e.assign(a,(0,ee._)`${a} || ${c}`),r.mergeValidEvaluated(l,c)||e.if((0,ee.not)(a))})),r.result(a,()=>r.reset(),()=>r.error(!0))}J.validateUnion=Dv});var bl=y(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.validateKeywordUsage=ot.validSchemaType=ot.funcKeywordCode=ot.macroKeywordCode=void 0;var Oe=L(),Xt=$t(),jv=Ge(),kv=un();function xv(r,e){let{gen:t,keyword:n,schema:s,parentSchema:i,it:a}=r,c=e.macro.call(a.self,s,i,a),u=wl(t,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let o=t.name("valid");r.subschema({schema:c,schemaPath:Oe.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},o),r.pass(o,()=>r.error(!0))}ot.macroKeywordCode=xv;function Lv(r,e){var t;let{gen:n,keyword:s,schema:i,parentSchema:a,$data:c,it:u}=r;Fv(u,e);let o=!c&&e.compile?e.compile.call(u.self,i,a,u):e.validate,l=wl(n,s,o),h=n.let("valid");r.block$data(h,g),r.ok((t=e.valid)!==null&&t!==void 0?t:h);function g(){if(e.errors===!1)E(),e.modifying&&El(r),w(()=>r.error());else{let b=e.async?v():$();e.modifying&&El(r),w(()=>Mv(r,b))}}function v(){let b=n.let("ruleErrs",null);return n.try(()=>E((0,Oe._)`await `),D=>n.assign(h,!1).if((0,Oe._)`${D} instanceof ${u.ValidationError}`,()=>n.assign(b,(0,Oe._)`${D}.errors`),()=>n.throw(D))),b}function $(){let b=(0,Oe._)`${l}.errors`;return n.assign(b,null),E(Oe.nil),b}function E(b=e.async?(0,Oe._)`await `:Oe.nil){let D=u.opts.passContext?Xt.default.this:Xt.default.self,A=!("compile"in e&&!c||e.schema===!1);n.assign(h,(0,Oe._)`${b}${(0,jv.callValidateCode)(r,l,D,A)}`,e.modifying)}function w(b){var D;n.if((0,Oe.not)((D=e.valid)!==null&&D!==void 0?D:h),b)}}ot.funcKeywordCode=Lv;function El(r){let{gen:e,data:t,it:n}=r;e.if(n.parentData,()=>e.assign(t,(0,Oe._)`${n.parentData}[${n.parentDataProperty}]`))}function Mv(r,e){let{gen:t}=r;t.if((0,Oe._)`Array.isArray(${e})`,()=>{t.assign(Xt.default.vErrors,(0,Oe._)`${Xt.default.vErrors} === null ? ${e} : ${Xt.default.vErrors}.concat(${e})`).assign(Xt.default.errors,(0,Oe._)`${Xt.default.vErrors}.length`),(0,kv.extendErrors)(r)},()=>r.error())}function Fv({schemaEnv:r},e){if(e.async&&!r.$async)throw new Error("async keyword in sync schema")}function wl(r,e,t){if(t===void 0)throw new Error(`keyword "${e}" failed to compile`);return r.scopeValue("keyword",typeof t=="function"?{ref:t}:{ref:t,code:(0,Oe.stringify)(t)})}function Vv(r,e,t=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(r):n==="object"?r&&typeof r=="object"&&!Array.isArray(r):typeof r==n||t&&typeof r>"u")}ot.validSchemaType=Vv;function Uv({schema:r,opts:e,self:t,errSchemaPath:n},s,i){if(Array.isArray(s.keyword)?!s.keyword.includes(i):s.keyword!==i)throw new Error("ajv implementation error");let a=s.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(r,c)))throw new Error(`parent schema must have dependencies of ${i}: ${a.join(",")}`);if(s.validateSchema&&!s.validateSchema(r[i])){let u=`keyword "${i}" value is invalid at path "${n}": `+t.errorsText(s.validateSchema.errors);if(e.validateSchema==="log")t.logger.error(u);else throw new Error(u)}}ot.validateKeywordUsage=Uv});var Ol=y(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.extendSubschemaMode=It.extendSubschemaData=It.getSubschema=void 0;var ct=L(),Sl=G();function Hv(r,{keyword:e,schemaProp:t,schema:n,schemaPath:s,errSchemaPath:i,topSchemaRef:a}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let c=r.schema[e];return t===void 0?{schema:c,schemaPath:(0,ct._)`${r.schemaPath}${(0,ct.getProperty)(e)}`,errSchemaPath:`${r.errSchemaPath}/${e}`}:{schema:c[t],schemaPath:(0,ct._)`${r.schemaPath}${(0,ct.getProperty)(e)}${(0,ct.getProperty)(t)}`,errSchemaPath:`${r.errSchemaPath}/${e}/${(0,Sl.escapeFragment)(t)}`}}if(n!==void 0){if(s===void 0||i===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:s,topSchemaRef:a,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}It.getSubschema=Hv;function Gv(r,e,{dataProp:t,dataPropType:n,data:s,dataTypes:i,propertyName:a}){if(s!==void 0&&t!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=e;if(t!==void 0){let{errorPath:o,dataPathArr:l,opts:h}=e,g=c.let("data",(0,ct._)`${e.data}${(0,ct.getProperty)(t)}`,!0);u(g),r.errorPath=(0,ct.str)`${o}${(0,Sl.getErrorPath)(t,n,h.jsPropertySyntax)}`,r.parentDataProperty=(0,ct._)`${t}`,r.dataPathArr=[...l,r.parentDataProperty]}if(s!==void 0){let o=s instanceof ct.Name?s:c.let("data",s,!0);u(o),a!==void 0&&(r.propertyName=a)}i&&(r.dataTypes=i);function u(o){r.data=o,r.dataLevel=e.dataLevel+1,r.dataTypes=[],e.definedProperties=new Set,r.parentData=e.data,r.dataNames=[...e.dataNames,o]}}It.extendSubschemaData=Gv;function zv(r,{jtdDiscriminator:e,jtdMetadata:t,compositeRule:n,createErrors:s,allErrors:i}){n!==void 0&&(r.compositeRule=n),s!==void 0&&(r.createErrors=s),i!==void 0&&(r.allErrors=i),r.jtdDiscriminator=e,r.jtdMetadata=t}It.extendSubschemaMode=zv});var Ai=y((Xw,Pl)=>{"use strict";Pl.exports=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,s,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(s=n;s--!==0;)if(!r(e[s],t[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[s]))return!1;for(s=n;s--!==0;){var a=i[s];if(!r(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}});var Cl=y((Bw,Rl)=>{"use strict";var At=Rl.exports=function(r,e,t){typeof e=="function"&&(t=e,e={}),t=e.cb||t;var n=typeof t=="function"?t:t.pre||function(){},s=t.post||function(){};cs(e,n,s,r,"",r)};At.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};At.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};At.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};At.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function cs(r,e,t,n,s,i,a,c,u,o){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,s,i,a,c,u,o);for(var l in n){var h=n[l];if(Array.isArray(h)){if(l in At.arrayKeywords)for(var g=0;g<h.length;g++)cs(r,e,t,h[g],s+"/"+l+"/"+g,i,s,l,n,g)}else if(l in At.propsKeywords){if(h&&typeof h=="object")for(var v in h)cs(r,e,t,h[v],s+"/"+l+"/"+Kv(v),i,s,l,n,v)}else(l in At.keywords||r.allKeys&&!(l in At.skipKeywords))&&cs(r,e,t,h,s+"/"+l,i,s,l,n)}t(n,s,i,a,c,u,o)}}function Kv(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}});var dn=y(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.getSchemaRefs=Ce.resolveUrl=Ce.normalizeId=Ce._getFullPath=Ce.getFullPath=Ce.inlineRef=void 0;var Xv=G(),Bv=Ai(),Wv=Cl(),Jv=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Yv(r,e=!0){return typeof r=="boolean"?!0:e===!0?!Ti(r):e?Nl(r)<=e:!1}Ce.inlineRef=Yv;var Zv=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Ti(r){for(let e in r){if(Zv.has(e))return!0;let t=r[e];if(Array.isArray(t)&&t.some(Ti)||typeof t=="object"&&Ti(t))return!0}return!1}function Nl(r){let e=0;for(let t in r){if(t==="$ref")return 1/0;if(e++,!Jv.has(t)&&(typeof r[t]=="object"&&(0,Xv.eachItem)(r[t],n=>e+=Nl(n)),e===1/0))return 1/0}return e}function Il(r,e="",t){t!==!1&&(e=yr(e));let n=r.parse(e);return Al(r,n)}Ce.getFullPath=Il;function Al(r,e){return r.serialize(e).split("#")[0]+"#"}Ce._getFullPath=Al;var Qv=/#\/?$/;function yr(r){return r?r.replace(Qv,""):""}Ce.normalizeId=yr;function e_(r,e,t){return t=yr(t),r.resolve(e,t)}Ce.resolveUrl=e_;var t_=/^[a-z_][-a-z0-9._]*$/i;function r_(r,e){if(typeof r=="boolean")return{};let{schemaId:t,uriResolver:n}=this.opts,s=yr(r[t]||e),i={"":s},a=Il(n,s,!1),c={},u=new Set;return Wv(r,{allKeys:!0},(h,g,v,$)=>{if($===void 0)return;let E=a+g,w=i[$];typeof h[t]=="string"&&(w=b.call(this,h[t])),D.call(this,h.$anchor),D.call(this,h.$dynamicAnchor),i[g]=w;function b(A){let z=this.opts.uriResolver.resolve;if(A=yr(w?z(w,A):A),u.has(A))throw l(A);u.add(A);let C=this.refs[A];return typeof C=="string"&&(C=this.refs[C]),typeof C=="object"?o(h,C.schema,A):A!==yr(E)&&(A[0]==="#"?(o(h,c[A],A),c[A]=h):this.refs[A]=E),A}function D(A){if(typeof A=="string"){if(!t_.test(A))throw new Error(`invalid anchor "${A}"`);b.call(this,`#${A}`)}}}),c;function o(h,g,v){if(g!==void 0&&!Bv(h,g))throw l(v)}function l(h){return new Error(`reference "${h}" resolves to more than one schema`)}}Ce.getSchemaRefs=r_});var mn=y(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.getData=Tt.KeywordCxt=Tt.validateFunctionCode=void 0;var xl=fl(),Tl=fn(),Di=Si(),us=fn(),n_=_l(),pn=bl(),qi=Ol(),R=L(),I=$t(),s_=dn(),Et=G(),hn=un();function i_(r){if(Fl(r)&&(Vl(r),Ml(r))){c_(r);return}Ll(r,()=>(0,xl.topBoolOrEmptySchema)(r))}Tt.validateFunctionCode=i_;function Ll({gen:r,validateName:e,schema:t,schemaEnv:n,opts:s},i){s.code.es5?r.func(e,(0,R._)`${I.default.data}, ${I.default.valCxt}`,n.$async,()=>{r.code((0,R._)`"use strict"; ${ql(t,s)}`),o_(r,s),r.code(i)}):r.func(e,(0,R._)`${I.default.data}, ${a_(s)}`,n.$async,()=>r.code(ql(t,s)).code(i))}function a_(r){return(0,R._)`{${I.default.instancePath}="", ${I.default.parentData}, ${I.default.parentDataProperty}, ${I.default.rootData}=${I.default.data}${r.dynamicRef?(0,R._)`, ${I.default.dynamicAnchors}={}`:R.nil}}={}`}function o_(r,e){r.if(I.default.valCxt,()=>{r.var(I.default.instancePath,(0,R._)`${I.default.valCxt}.${I.default.instancePath}`),r.var(I.default.parentData,(0,R._)`${I.default.valCxt}.${I.default.parentData}`),r.var(I.default.parentDataProperty,(0,R._)`${I.default.valCxt}.${I.default.parentDataProperty}`),r.var(I.default.rootData,(0,R._)`${I.default.valCxt}.${I.default.rootData}`),e.dynamicRef&&r.var(I.default.dynamicAnchors,(0,R._)`${I.default.valCxt}.${I.default.dynamicAnchors}`)},()=>{r.var(I.default.instancePath,(0,R._)`""`),r.var(I.default.parentData,(0,R._)`undefined`),r.var(I.default.parentDataProperty,(0,R._)`undefined`),r.var(I.default.rootData,I.default.data),e.dynamicRef&&r.var(I.default.dynamicAnchors,(0,R._)`{}`)})}function c_(r){let{schema:e,opts:t,gen:n}=r;Ll(r,()=>{t.$comment&&e.$comment&&Hl(r),h_(r),n.let(I.default.vErrors,null),n.let(I.default.errors,0),t.unevaluated&&u_(r),Ul(r),g_(r)})}function u_(r){let{gen:e,validateName:t}=r;r.evaluated=e.const("evaluated",(0,R._)`${t}.evaluated`),e.if((0,R._)`${r.evaluated}.dynamicProps`,()=>e.assign((0,R._)`${r.evaluated}.props`,(0,R._)`undefined`)),e.if((0,R._)`${r.evaluated}.dynamicItems`,()=>e.assign((0,R._)`${r.evaluated}.items`,(0,R._)`undefined`))}function ql(r,e){let t=typeof r=="object"&&r[e.schemaId];return t&&(e.code.source||e.code.process)?(0,R._)`/*# sourceURL=${t} */`:R.nil}function l_(r,e){if(Fl(r)&&(Vl(r),Ml(r))){f_(r,e);return}(0,xl.boolOrEmptySchema)(r,e)}function Ml({schema:r,self:e}){if(typeof r=="boolean")return!r;for(let t in r)if(e.RULES.all[t])return!0;return!1}function Fl(r){return typeof r.schema!="boolean"}function f_(r,e){let{schema:t,gen:n,opts:s}=r;s.$comment&&t.$comment&&Hl(r),p_(r),m_(r);let i=n.const("_errs",I.default.errors);Ul(r,i),n.var(e,(0,R._)`${i} === ${I.default.errors}`)}function Vl(r){(0,Et.checkUnknownRules)(r),d_(r)}function Ul(r,e){if(r.opts.jtd)return Dl(r,[],!1,e);let t=(0,Tl.getSchemaTypes)(r.schema),n=(0,Tl.coerceAndCheckDataType)(r,t);Dl(r,t,!n,e)}function d_(r){let{schema:e,errSchemaPath:t,opts:n,self:s}=r;e.$ref&&n.ignoreKeywordsWithRef&&(0,Et.schemaHasRulesButRef)(e,s.RULES)&&s.logger.warn(`$ref: keywords ignored in schema at path "${t}"`)}function h_(r){let{schema:e,opts:t}=r;e.default!==void 0&&t.useDefaults&&t.strictSchema&&(0,Et.checkStrictMode)(r,"default is ignored in the schema root")}function p_(r){let e=r.schema[r.opts.schemaId];e&&(r.baseId=(0,s_.resolveUrl)(r.opts.uriResolver,r.baseId,e))}function m_(r){if(r.schema.$async&&!r.schemaEnv.$async)throw new Error("async schema in sync schema")}function Hl({gen:r,schemaEnv:e,schema:t,errSchemaPath:n,opts:s}){let i=t.$comment;if(s.$comment===!0)r.code((0,R._)`${I.default.self}.logger.log(${i})`);else if(typeof s.$comment=="function"){let a=(0,R.str)`${n}/$comment`,c=r.scopeValue("root",{ref:e.root});r.code((0,R._)`${I.default.self}.opts.$comment(${i}, ${a}, ${c}.schema)`)}}function g_(r){let{gen:e,schemaEnv:t,validateName:n,ValidationError:s,opts:i}=r;t.$async?e.if((0,R._)`${I.default.errors} === 0`,()=>e.return(I.default.data),()=>e.throw((0,R._)`new ${s}(${I.default.vErrors})`)):(e.assign((0,R._)`${n}.errors`,I.default.vErrors),i.unevaluated&&v_(r),e.return((0,R._)`${I.default.errors} === 0`))}function v_({gen:r,evaluated:e,props:t,items:n}){t instanceof R.Name&&r.assign((0,R._)`${e}.props`,t),n instanceof R.Name&&r.assign((0,R._)`${e}.items`,n)}function Dl(r,e,t,n){let{gen:s,schema:i,data:a,allErrors:c,opts:u,self:o}=r,{RULES:l}=o;if(i.$ref&&(u.ignoreKeywordsWithRef||!(0,Et.schemaHasRulesButRef)(i,l))){s.block(()=>Gl(r,"$ref",l.all.$ref.definition));return}u.jtd||__(r,e),s.block(()=>{for(let g of l.rules)h(g);h(l.post)});function h(g){!(0,Di.shouldUseGroup)(i,g)||(g.type?(s.if((0,us.checkDataType)(g.type,a,u.strictNumbers)),jl(r,g),e.length===1&&e[0]===g.type&&t&&(s.else(),(0,us.reportTypeError)(r)),s.endIf()):jl(r,g),c||s.if((0,R._)`${I.default.errors} === ${n||0}`))}}function jl(r,e){let{gen:t,schema:n,opts:{useDefaults:s}}=r;s&&(0,n_.assignDefaults)(r,e.type),t.block(()=>{for(let i of e.rules)(0,Di.shouldUseRule)(n,i)&&Gl(r,i.keyword,i.definition,e.type)})}function __(r,e){r.schemaEnv.meta||!r.opts.strictTypes||(y_(r,e),r.opts.allowUnionTypes||$_(r,e),E_(r,r.dataTypes))}function y_(r,e){if(!!e.length){if(!r.dataTypes.length){r.dataTypes=e;return}e.forEach(t=>{kl(r.dataTypes,t)||ji(r,`type "${t}" not allowed by context "${r.dataTypes.join(",")}"`)}),r.dataTypes=r.dataTypes.filter(t=>kl(e,t))}}function $_(r,e){e.length>1&&!(e.length===2&&e.includes("null"))&&ji(r,"use allowUnionTypes to allow union type keyword")}function E_(r,e){let t=r.self.RULES.all;for(let n in t){let s=t[n];if(typeof s=="object"&&(0,Di.shouldUseRule)(r.schema,s)){let{type:i}=s.definition;i.length&&!i.some(a=>w_(e,a))&&ji(r,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function w_(r,e){return r.includes(e)||e==="number"&&r.includes("integer")}function kl(r,e){return r.includes(e)||e==="integer"&&r.includes("number")}function ji(r,e){e+=` at "${r.schemaEnv.baseId+r.errSchemaPath}" (strictTypes)`,(0,Et.checkStrictMode)(r,e,r.opts.strictTypes)}var ki=class{constructor(e,t,n){if((0,pn.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Et.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",zl(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,pn.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:t.errors!==!1)&&(this.errsCount=e.gen.const("_errs",I.default.errors))}result(e,t,n){this.failResult((0,R.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,R.not)(e),void 0,t)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:t}=this;this.fail((0,R._)`${t} !== undefined && (${(0,R.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t){this.setParams(t),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,t){(e?hn.reportExtraError:hn.reportError)(this,this.def.error,t)}$dataError(){(0,hn.reportError)(this,this.def.$dataError||hn.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,hn.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=R.nil){this.gen.block(()=>{this.check$data(e,n),t()})}check$data(e=R.nil,t=R.nil){if(!this.$data)return;let{gen:n,schemaCode:s,schemaType:i,def:a}=this;n.if((0,R.or)((0,R._)`${s} === undefined`,t)),e!==R.nil&&n.assign(e,!0),(i.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==R.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:t,schemaType:n,def:s,it:i}=this;return(0,R.or)(a(),c());function a(){if(n.length){if(!(t instanceof R.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,R._)`${(0,us.checkDataTypes)(u,t,i.opts.strictNumbers,us.DataType.Wrong)}`}return R.nil}function c(){if(s.validateSchema){let u=e.scopeValue("validate$data",{ref:s.validateSchema});return(0,R._)`!${u}(${t})`}return R.nil}}subschema(e,t){let n=(0,qi.getSubschema)(this.it,e);(0,qi.extendSubschemaData)(n,this.it,e),(0,qi.extendSubschemaMode)(n,e);let s=Fe(ie(ie({},this.it),n),{items:void 0,props:void 0});return l_(s,t),s}mergeEvaluated(e,t){let{it:n,gen:s}=this;!n.opts.unevaluated||(n.props!==!0&&e.props!==void 0&&(n.props=Et.mergeEvaluated.props(s,e.props,n.props,t)),n.items!==!0&&e.items!==void 0&&(n.items=Et.mergeEvaluated.items(s,e.items,n.items,t)))}mergeValidEvaluated(e,t){let{it:n,gen:s}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return s.if(t,()=>this.mergeEvaluated(e,R.Name)),!0}};Tt.KeywordCxt=ki;function Gl(r,e,t,n){let s=new ki(r,t,e);"code"in t?t.code(s,n):s.$data&&t.validate?(0,pn.funcKeywordCode)(s,t):"macro"in t?(0,pn.macroKeywordCode)(s,t):(t.compile||t.validate)&&(0,pn.funcKeywordCode)(s,t)}var b_=/^\/(?:[^~]|~0|~1)*$/,S_=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function zl(r,{dataLevel:e,dataNames:t,dataPathArr:n}){let s,i;if(r==="")return I.default.rootData;if(r[0]==="/"){if(!b_.test(r))throw new Error(`Invalid JSON-pointer: ${r}`);s=r,i=I.default.rootData}else{let o=S_.exec(r);if(!o)throw new Error(`Invalid JSON-pointer: ${r}`);let l=+o[1];if(s=o[2],s==="#"){if(l>=e)throw new Error(u("property/index",l));return n[e-l]}if(l>e)throw new Error(u("data",l));if(i=t[e-l],!s)return i}let a=i,c=s.split("/");for(let o of c)o&&(i=(0,R._)`${i}${(0,R.getProperty)((0,Et.unescapeJsonPointer)(o))}`,a=(0,R._)`${a} && ${i}`);return a;function u(o,l){return`Cannot access ${o} ${l} levels up, current level is ${e}`}}Tt.getData=zl});var Li=y(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});var Kl=class extends Error{constructor(e){super("validation failed");this.errors=e,this.ajv=this.validation=!0}};xi.default=Kl});var Vi=y(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});var Mi=dn(),Xl=class extends Error{constructor(e,t,n,s){super(s||`can't resolve reference ${n} from id ${t}`);this.missingRef=(0,Mi.resolveUrl)(e,t,n),this.missingSchema=(0,Mi.normalizeId)((0,Mi.getFullPath)(e,this.missingRef))}};Fi.default=Xl});var fs=y(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.resolveSchema=ze.getCompilingSchema=ze.resolveRef=ze.compileSchema=ze.SchemaEnv=void 0;var Ye=L(),O_=Li(),Bt=$t(),Ze=dn(),Bl=G(),P_=mn(),gn=class{constructor(e){var t;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(t=e.baseId)!==null&&t!==void 0?t:(0,Ze.normalizeId)(n==null?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};ze.SchemaEnv=gn;function Hi(r){let e=Wl.call(this,r);if(e)return e;let t=(0,Ze.getFullPath)(this.opts.uriResolver,r.root.baseId),{es5:n,lines:s}=this.opts.code,{ownProperties:i}=this.opts,a=new Ye.CodeGen(this.scope,{es5:n,lines:s,ownProperties:i}),c;r.$async&&(c=a.scopeValue("Error",{ref:O_.default,code:(0,Ye._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");r.validateName=u;let o={gen:a,allErrors:this.opts.allErrors,data:Bt.default.data,parentData:Bt.default.parentData,parentDataProperty:Bt.default.parentDataProperty,dataNames:[Bt.default.data],dataPathArr:[Ye.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:r.schema,code:(0,Ye.stringify)(r.schema)}:{ref:r.schema}),validateName:u,ValidationError:c,schema:r.schema,schemaEnv:r,rootId:t,baseId:r.baseId||t,schemaPath:Ye.nil,errSchemaPath:r.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ye._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(r),(0,P_.validateFunctionCode)(o),a.optimize(this.opts.code.optimize);let h=a.toString();l=`${a.scopeRefs(Bt.default.scope)}return ${h}`,this.opts.code.process&&(l=this.opts.code.process(l,r));let v=new Function(`${Bt.default.self}`,`${Bt.default.scope}`,l)(this,this.scope.get());if(this.scope.value(u,{ref:v}),v.errors=null,v.schema=r.schema,v.schemaEnv=r,r.$async&&(v.$async=!0),this.opts.code.source===!0&&(v.source={validateName:u,validateCode:h,scopeValues:a._values}),this.opts.unevaluated){let{props:$,items:E}=o;v.evaluated={props:$ instanceof Ye.Name?void 0:$,items:E instanceof Ye.Name?void 0:E,dynamicProps:$ instanceof Ye.Name,dynamicItems:E instanceof Ye.Name},v.source&&(v.source.evaluated=(0,Ye.stringify)(v.evaluated))}return r.validate=v,r}catch(h){throw delete r.validate,delete r.validateName,l&&this.logger.error("Error compiling schema, function code:",l),h}finally{this._compilations.delete(r)}}ze.compileSchema=Hi;function R_(r,e,t){var n;t=(0,Ze.resolveUrl)(this.opts.uriResolver,e,t);let s=r.refs[t];if(s)return s;let i=I_.call(this,r,t);if(i===void 0){let a=(n=r.localRefs)===null||n===void 0?void 0:n[t],{schemaId:c}=this.opts;a&&(i=new gn({schema:a,schemaId:c,root:r,baseId:e}))}if(i!==void 0)return r.refs[t]=C_.call(this,i)}ze.resolveRef=R_;function C_(r){return(0,Ze.inlineRef)(r.schema,this.opts.inlineRefs)?r.schema:r.validate?r:Hi.call(this,r)}function Wl(r){for(let e of this._compilations)if(N_(e,r))return e}ze.getCompilingSchema=Wl;function N_(r,e){return r.schema===e.schema&&r.root===e.root&&r.baseId===e.baseId}function I_(r,e){let t;for(;typeof(t=this.refs[e])=="string";)e=t;return t||this.schemas[e]||ls.call(this,r,e)}function ls(r,e){let t=this.opts.uriResolver.parse(e),n=(0,Ze._getFullPath)(this.opts.uriResolver,t),s=(0,Ze.getFullPath)(this.opts.uriResolver,r.baseId,void 0);if(Object.keys(r.schema).length>0&&n===s)return Ui.call(this,t,r);let i=(0,Ze.normalizeId)(n),a=this.refs[i]||this.schemas[i];if(typeof a=="string"){let c=ls.call(this,r,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Ui.call(this,t,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Hi.call(this,a),i===(0,Ze.normalizeId)(e)){let{schema:c}=a,{schemaId:u}=this.opts,o=c[u];return o&&(s=(0,Ze.resolveUrl)(this.opts.uriResolver,s,o)),new gn({schema:c,schemaId:u,root:r,baseId:s})}return Ui.call(this,t,a)}}ze.resolveSchema=ls;var A_=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Ui(r,{baseId:e,schema:t,root:n}){var s;if(((s=r.fragment)===null||s===void 0?void 0:s[0])!=="/")return;for(let c of r.fragment.slice(1).split("/")){if(typeof t=="boolean")return;let u=t[(0,Bl.unescapeFragment)(c)];if(u===void 0)return;t=u;let o=typeof t=="object"&&t[this.opts.schemaId];!A_.has(c)&&o&&(e=(0,Ze.resolveUrl)(this.opts.uriResolver,e,o))}let i;if(typeof t!="boolean"&&t.$ref&&!(0,Bl.schemaHasRulesButRef)(t,this.RULES)){let c=(0,Ze.resolveUrl)(this.opts.uriResolver,e,t.$ref);i=ls.call(this,n,c)}let{schemaId:a}=this.opts;if(i=i||new gn({schema:t,schemaId:a,root:n,baseId:e}),i.schema!==i.root.schema)return i}});var Jl=y((eb,T_)=>{T_.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Zl=y((ds,Yl)=>{(function(r,e){typeof ds=="object"&&typeof Yl<"u"?e(ds):typeof define=="function"&&define.amd?define(["exports"],e):e(r.URI=r.URI||{})})(ds,function(r){"use strict";function e(){for(var d=arguments.length,f=Array(d),p=0;p<d;p++)f[p]=arguments[p];if(f.length>1){f[0]=f[0].slice(0,-1);for(var m=f.length-1,_=1;_<m;++_)f[_]=f[_].slice(1,-1);return f[m]=f[m].slice(1),f.join("")}else return f[0]}function t(d){return"(?:"+d+")"}function n(d){return d===void 0?"undefined":d===null?"null":Object.prototype.toString.call(d).split(" ").pop().split("]").shift().toLowerCase()}function s(d){return d.toUpperCase()}function i(d){return d!=null?d instanceof Array?d:typeof d.length!="number"||d.split||d.setInterval||d.call?[d]:Array.prototype.slice.call(d):[]}function a(d,f){var p=d;if(f)for(var m in f)p[m]=f[m];return p}function c(d){var f="[A-Za-z]",p="[\\x0D]",m="[0-9]",_="[\\x22]",S=e(m,"[A-Fa-f]"),T="[\\x0A]",U="[\\x20]",B=t(t("%[EFef]"+S+"%"+S+S+"%"+S+S)+"|"+t("%[89A-Fa-f]"+S+"%"+S+S)+"|"+t("%"+S+S)),ce="[\\:\\/\\?\\#\\[\\]\\@]",F="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",ne=e(ce,F),ue=d?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",re=d?"[\\uE000-\\uF8FF]":"[]",K=e(f,m,"[\\-\\.\\_\\~]",ue),se=t(f+e(f,m,"[\\+\\-\\.]")+"*"),W=t(t(B+"|"+e(K,F,"[\\:]"))+"*"),jt=t(t("25[0-5]")+"|"+t("2[0-4]"+m)+"|"+t("1"+m+m)+"|"+t("[1-9]"+m)+"|"+m),Ae=t(t("25[0-5]")+"|"+t("2[0-4]"+m)+"|"+t("1"+m+m)+"|"+t("0?[1-9]"+m)+"|0?0?"+m),Le=t(Ae+"\\."+Ae+"\\."+Ae+"\\."+Ae),Y=t(S+"{1,4}"),Te=t(t(Y+"\\:"+Y)+"|"+Le),Me=t(t(Y+"\\:")+"{6}"+Te),st=t("\\:\\:"+t(Y+"\\:")+"{5}"+Te),kt=t(t(Y)+"?\\:\\:"+t(Y+"\\:")+"{4}"+Te),pt=t(t(t(Y+"\\:")+"{0,1}"+Y)+"?\\:\\:"+t(Y+"\\:")+"{3}"+Te),jr=t(t(t(Y+"\\:")+"{0,2}"+Y)+"?\\:\\:"+t(Y+"\\:")+"{2}"+Te),Tn=t(t(t(Y+"\\:")+"{0,3}"+Y)+"?\\:\\:"+Y+"\\:"+Te),qn=t(t(t(Y+"\\:")+"{0,4}"+Y)+"?\\:\\:"+Te),nr=t(t(t(Y+"\\:")+"{0,5}"+Y)+"?\\:\\:"+Y),sr=t(t(t(Y+"\\:")+"{0,6}"+Y)+"?\\:\\:"),mt=t([Me,st,kt,pt,jr,Tn,qn,nr,sr].join("|")),ir=t(t(K+"|"+B)+"+"),Ds=t(mt+"\\%25"+ir),xt=t(mt+t("\\%25|\\%(?!"+S+"{2})")+ir),sh=t("[vV]"+S+"+\\."+e(K,F,"[\\:]")+"+"),ih=t("\\["+t(xt+"|"+mt+"|"+sh)+"\\]"),so=t(t(B+"|"+e(K,F))+"*"),kr=t(ih+"|"+Le+"(?!"+so+")|"+so),xr=t(m+"*"),io=t(t(W+"@")+"?"+kr+t("\\:"+xr)+"?"),Lr=t(B+"|"+e(K,F,"[\\:\\@]")),ah=t(Lr+"*"),ao=t(Lr+"+"),oh=t(t(B+"|"+e(K,F,"[\\@]"))+"+"),gt=t(t("\\/"+ah)+"*"),ar=t("\\/"+t(ao+gt)+"?"),js=t(oh+gt),Dn=t(ao+gt),or="(?!"+Lr+")",bE=t(gt+"|"+ar+"|"+js+"|"+Dn+"|"+or),cr=t(t(Lr+"|"+e("[\\/\\?]",re))+"*"),Mr=t(t(Lr+"|[\\/\\?]")+"*"),oo=t(t("\\/\\/"+io+gt)+"|"+ar+"|"+Dn+"|"+or),ch=t(se+"\\:"+oo+t("\\?"+cr)+"?"+t("\\#"+Mr)+"?"),uh=t(t("\\/\\/"+io+gt)+"|"+ar+"|"+js+"|"+or),lh=t(uh+t("\\?"+cr)+"?"+t("\\#"+Mr)+"?"),SE=t(ch+"|"+lh),OE=t(se+"\\:"+oo+t("\\?"+cr)+"?"),PE="^("+se+")\\:"+t(t("\\/\\/("+t("("+W+")@")+"?("+kr+")"+t("\\:("+xr+")")+"?)")+"?("+gt+"|"+ar+"|"+Dn+"|"+or+")")+t("\\?("+cr+")")+"?"+t("\\#("+Mr+")")+"?$",RE="^(){0}"+t(t("\\/\\/("+t("("+W+")@")+"?("+kr+")"+t("\\:("+xr+")")+"?)")+"?("+gt+"|"+ar+"|"+js+"|"+or+")")+t("\\?("+cr+")")+"?"+t("\\#("+Mr+")")+"?$",CE="^("+se+")\\:"+t(t("\\/\\/("+t("("+W+")@")+"?("+kr+")"+t("\\:("+xr+")")+"?)")+"?("+gt+"|"+ar+"|"+Dn+"|"+or+")")+t("\\?("+cr+")")+"?$",NE="^"+t("\\#("+Mr+")")+"?$",IE="^"+t("("+W+")@")+"?("+kr+")"+t("\\:("+xr+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",f,m,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",K,F),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",K,F),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",K,F),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",K,F),"g"),NOT_QUERY:new RegExp(e("[^\\%]",K,F,"[\\:\\@\\/\\?]",re),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",K,F,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",K,F),"g"),UNRESERVED:new RegExp(K,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",K,ne),"g"),PCT_ENCODED:new RegExp(B,"g"),IPV4ADDRESS:new RegExp("^("+Le+")$"),IPV6ADDRESS:new RegExp("^\\[?("+mt+")"+t(t("\\%25|\\%(?!"+S+"{2})")+"("+ir+")")+"?\\]?$")}}var u=c(!1),o=c(!0),l=function(){function d(f,p){var m=[],_=!0,S=!1,T=void 0;try{for(var U=f[Symbol.iterator](),B;!(_=(B=U.next()).done)&&(m.push(B.value),!(p&&m.length===p));_=!0);}catch(ce){S=!0,T=ce}finally{try{!_&&U.return&&U.return()}finally{if(S)throw T}}return m}return function(f,p){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f))return d(f,p);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(d){if(Array.isArray(d)){for(var f=0,p=Array(d.length);f<d.length;f++)p[f]=d[f];return p}else return Array.from(d)},g=2147483647,v=36,$=1,E=26,w=38,b=700,D=72,A=128,z="-",C=/^xn--/,ge=/[^\0-\x7E]/,De=/[\x2E\u3002\uFF0E\uFF61]/g,bt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},je=v-$,te=Math.floor,ke=String.fromCharCode;function et(d){throw new RangeError(bt[d])}function In(d,f){for(var p=[],m=d.length;m--;)p[m]=f(d[m]);return p}function An(d,f){var p=d.split("@"),m="";p.length>1&&(m=p[0]+"@",d=p[1]),d=d.replace(De,".");var _=d.split("."),S=In(_,f).join(".");return m+S}function Fa(d){for(var f=[],p=0,m=d.length;p<m;){var _=d.charCodeAt(p++);if(_>=55296&&_<=56319&&p<m){var S=d.charCodeAt(p++);(S&64512)==56320?f.push(((_&1023)<<10)+(S&1023)+65536):(f.push(_),p--)}else f.push(_)}return f}var Dd=function(f){return String.fromCodePoint.apply(String,h(f))},jd=function(f){return f-48<10?f-22:f-65<26?f-65:f-97<26?f-97:v},Va=function(f,p){return f+22+75*(f<26)-((p!=0)<<5)},Ua=function(f,p,m){var _=0;for(f=m?te(f/b):f>>1,f+=te(f/p);f>je*E>>1;_+=v)f=te(f/je);return te(_+(je+1)*f/(f+w))},Ha=function(f){var p=[],m=f.length,_=0,S=A,T=D,U=f.lastIndexOf(z);U<0&&(U=0);for(var B=0;B<U;++B)f.charCodeAt(B)>=128&&et("not-basic"),p.push(f.charCodeAt(B));for(var ce=U>0?U+1:0;ce<m;){for(var F=_,ne=1,ue=v;;ue+=v){ce>=m&&et("invalid-input");var re=jd(f.charCodeAt(ce++));(re>=v||re>te((g-_)/ne))&&et("overflow"),_+=re*ne;var K=ue<=T?$:ue>=T+E?E:ue-T;if(re<K)break;var se=v-K;ne>te(g/se)&&et("overflow"),ne*=se}var W=p.length+1;T=Ua(_-F,W,F==0),te(_/W)>g-S&&et("overflow"),S+=te(_/W),_%=W,p.splice(_++,0,S)}return String.fromCodePoint.apply(String,p)},Ga=function(f){var p=[];f=Fa(f);var m=f.length,_=A,S=0,T=D,U=!0,B=!1,ce=void 0;try{for(var F=f[Symbol.iterator](),ne;!(U=(ne=F.next()).done);U=!0){var ue=ne.value;ue<128&&p.push(ke(ue))}}catch(xt){B=!0,ce=xt}finally{try{!U&&F.return&&F.return()}finally{if(B)throw ce}}var re=p.length,K=re;for(re&&p.push(z);K<m;){var se=g,W=!0,jt=!1,Ae=void 0;try{for(var Le=f[Symbol.iterator](),Y;!(W=(Y=Le.next()).done);W=!0){var Te=Y.value;Te>=_&&Te<se&&(se=Te)}}catch(xt){jt=!0,Ae=xt}finally{try{!W&&Le.return&&Le.return()}finally{if(jt)throw Ae}}var Me=K+1;se-_>te((g-S)/Me)&&et("overflow"),S+=(se-_)*Me,_=se;var st=!0,kt=!1,pt=void 0;try{for(var jr=f[Symbol.iterator](),Tn;!(st=(Tn=jr.next()).done);st=!0){var qn=Tn.value;if(qn<_&&++S>g&&et("overflow"),qn==_){for(var nr=S,sr=v;;sr+=v){var mt=sr<=T?$:sr>=T+E?E:sr-T;if(nr<mt)break;var ir=nr-mt,Ds=v-mt;p.push(ke(Va(mt+ir%Ds,0))),nr=te(ir/Ds)}p.push(ke(Va(nr,0))),T=Ua(S,Me,K==re),S=0,++K}}}catch(xt){kt=!0,pt=xt}finally{try{!st&&jr.return&&jr.return()}finally{if(kt)throw pt}}++S,++_}return p.join("")},kd=function(f){return An(f,function(p){return C.test(p)?Ha(p.slice(4).toLowerCase()):p})},xd=function(f){return An(f,function(p){return ge.test(p)?"xn--"+Ga(p):p})},Qt={version:"2.1.0",ucs2:{decode:Fa,encode:Dd},decode:Ha,encode:Ga,toASCII:xd,toUnicode:kd},xe={};function tt(d){var f=d.charCodeAt(0),p=void 0;return f<16?p="%0"+f.toString(16).toUpperCase():f<128?p="%"+f.toString(16).toUpperCase():f<2048?p="%"+(f>>6|192).toString(16).toUpperCase()+"%"+(f&63|128).toString(16).toUpperCase():p="%"+(f>>12|224).toString(16).toUpperCase()+"%"+(f>>6&63|128).toString(16).toUpperCase()+"%"+(f&63|128).toString(16).toUpperCase(),p}function er(d){for(var f="",p=0,m=d.length;p<m;){var _=parseInt(d.substr(p+1,2),16);if(_<128)f+=String.fromCharCode(_),p+=3;else if(_>=194&&_<224){if(m-p>=6){var S=parseInt(d.substr(p+4,2),16);f+=String.fromCharCode((_&31)<<6|S&63)}else f+=d.substr(p,6);p+=6}else if(_>=224){if(m-p>=9){var T=parseInt(d.substr(p+4,2),16),U=parseInt(d.substr(p+7,2),16);f+=String.fromCharCode((_&15)<<12|(T&63)<<6|U&63)}else f+=d.substr(p,9);p+=9}else f+=d.substr(p,3),p+=3}return f}function Is(d,f){function p(m){var _=er(m);return _.match(f.UNRESERVED)?_:m}return d.scheme&&(d.scheme=String(d.scheme).replace(f.PCT_ENCODED,p).toLowerCase().replace(f.NOT_SCHEME,"")),d.userinfo!==void 0&&(d.userinfo=String(d.userinfo).replace(f.PCT_ENCODED,p).replace(f.NOT_USERINFO,tt).replace(f.PCT_ENCODED,s)),d.host!==void 0&&(d.host=String(d.host).replace(f.PCT_ENCODED,p).toLowerCase().replace(f.NOT_HOST,tt).replace(f.PCT_ENCODED,s)),d.path!==void 0&&(d.path=String(d.path).replace(f.PCT_ENCODED,p).replace(d.scheme?f.NOT_PATH:f.NOT_PATH_NOSCHEME,tt).replace(f.PCT_ENCODED,s)),d.query!==void 0&&(d.query=String(d.query).replace(f.PCT_ENCODED,p).replace(f.NOT_QUERY,tt).replace(f.PCT_ENCODED,s)),d.fragment!==void 0&&(d.fragment=String(d.fragment).replace(f.PCT_ENCODED,p).replace(f.NOT_FRAGMENT,tt).replace(f.PCT_ENCODED,s)),d}function As(d){return d.replace(/^0*(.*)/,"$1")||"0"}function Ts(d,f){var p=d.match(f.IPV4ADDRESS)||[],m=l(p,2),_=m[1];return _?_.split(".").map(As).join("."):d}function za(d,f){var p=d.match(f.IPV6ADDRESS)||[],m=l(p,3),_=m[1],S=m[2];if(_){for(var T=_.toLowerCase().split("::").reverse(),U=l(T,2),B=U[0],ce=U[1],F=ce?ce.split(":").map(As):[],ne=B.split(":").map(As),ue=f.IPV4ADDRESS.test(ne[ne.length-1]),re=ue?7:8,K=ne.length-re,se=Array(re),W=0;W<re;++W)se[W]=F[W]||ne[K+W]||"";ue&&(se[re-1]=Ts(se[re-1],f));var jt=se.reduce(function(Me,st,kt){if(!st||st==="0"){var pt=Me[Me.length-1];pt&&pt.index+pt.length===kt?pt.length++:Me.push({index:kt,length:1})}return Me},[]),Ae=jt.sort(function(Me,st){return st.length-Me.length})[0],Le=void 0;if(Ae&&Ae.length>1){var Y=se.slice(0,Ae.index),Te=se.slice(Ae.index+Ae.length);Le=Y.join(":")+"::"+Te.join(":")}else Le=se.join(":");return S&&(Le+="%"+S),Le}else return d}var Ld=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Md="".match(/(){0}/)[1]===void 0;function dt(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p={},m=f.iri!==!1?o:u;f.reference==="suffix"&&(d=(f.scheme?f.scheme+":":"")+"//"+d);var _=d.match(Ld);if(_){Md?(p.scheme=_[1],p.userinfo=_[3],p.host=_[4],p.port=parseInt(_[5],10),p.path=_[6]||"",p.query=_[7],p.fragment=_[8],isNaN(p.port)&&(p.port=_[5])):(p.scheme=_[1]||void 0,p.userinfo=d.indexOf("@")!==-1?_[3]:void 0,p.host=d.indexOf("//")!==-1?_[4]:void 0,p.port=parseInt(_[5],10),p.path=_[6]||"",p.query=d.indexOf("?")!==-1?_[7]:void 0,p.fragment=d.indexOf("#")!==-1?_[8]:void 0,isNaN(p.port)&&(p.port=d.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?_[4]:void 0)),p.host&&(p.host=za(Ts(p.host,m),m)),p.scheme===void 0&&p.userinfo===void 0&&p.host===void 0&&p.port===void 0&&!p.path&&p.query===void 0?p.reference="same-document":p.scheme===void 0?p.reference="relative":p.fragment===void 0?p.reference="absolute":p.reference="uri",f.reference&&f.reference!=="suffix"&&f.reference!==p.reference&&(p.error=p.error||"URI is not a "+f.reference+" reference.");var S=xe[(f.scheme||p.scheme||"").toLowerCase()];if(!f.unicodeSupport&&(!S||!S.unicodeSupport)){if(p.host&&(f.domainHost||S&&S.domainHost))try{p.host=Qt.toASCII(p.host.replace(m.PCT_ENCODED,er).toLowerCase())}catch(T){p.error=p.error||"Host's domain name can not be converted to ASCII via punycode: "+T}Is(p,u)}else Is(p,m);S&&S.parse&&S.parse(p,f)}else p.error=p.error||"URI can not be parsed.";return p}function Fd(d,f){var p=f.iri!==!1?o:u,m=[];return d.userinfo!==void 0&&(m.push(d.userinfo),m.push("@")),d.host!==void 0&&m.push(za(Ts(String(d.host),p),p).replace(p.IPV6ADDRESS,function(_,S,T){return"["+S+(T?"%25"+T:"")+"]"})),(typeof d.port=="number"||typeof d.port=="string")&&(m.push(":"),m.push(String(d.port))),m.length?m.join(""):void 0}var Ka=/^\.\.?\//,Xa=/^\/\.(\/|$)/,Ba=/^\/\.\.(\/|$)/,Vd=/^\/?(?:.|\n)*?(?=\/|$)/;function tr(d){for(var f=[];d.length;)if(d.match(Ka))d=d.replace(Ka,"");else if(d.match(Xa))d=d.replace(Xa,"/");else if(d.match(Ba))d=d.replace(Ba,"/"),f.pop();else if(d==="."||d==="..")d="";else{var p=d.match(Vd);if(p){var m=p[0];d=d.slice(m.length),f.push(m)}else throw new Error("Unexpected dot segment condition")}return f.join("")}function rt(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=f.iri?o:u,m=[],_=xe[(f.scheme||d.scheme||"").toLowerCase()];if(_&&_.serialize&&_.serialize(d,f),d.host&&!p.IPV6ADDRESS.test(d.host)){if(f.domainHost||_&&_.domainHost)try{d.host=f.iri?Qt.toUnicode(d.host):Qt.toASCII(d.host.replace(p.PCT_ENCODED,er).toLowerCase())}catch(U){d.error=d.error||"Host's domain name can not be converted to "+(f.iri?"Unicode":"ASCII")+" via punycode: "+U}}Is(d,p),f.reference!=="suffix"&&d.scheme&&(m.push(d.scheme),m.push(":"));var S=Fd(d,f);if(S!==void 0&&(f.reference!=="suffix"&&m.push("//"),m.push(S),d.path&&d.path.charAt(0)!=="/"&&m.push("/")),d.path!==void 0){var T=d.path;!f.absolutePath&&(!_||!_.absolutePath)&&(T=tr(T)),S===void 0&&(T=T.replace(/^\/\//,"/%2F")),m.push(T)}return d.query!==void 0&&(m.push("?"),m.push(d.query)),d.fragment!==void 0&&(m.push("#"),m.push(d.fragment)),m.join("")}function Wa(d,f){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},m=arguments[3],_={};return m||(d=dt(rt(d,p),p),f=dt(rt(f,p),p)),p=p||{},!p.tolerant&&f.scheme?(_.scheme=f.scheme,_.userinfo=f.userinfo,_.host=f.host,_.port=f.port,_.path=tr(f.path||""),_.query=f.query):(f.userinfo!==void 0||f.host!==void 0||f.port!==void 0?(_.userinfo=f.userinfo,_.host=f.host,_.port=f.port,_.path=tr(f.path||""),_.query=f.query):(f.path?(f.path.charAt(0)==="/"?_.path=tr(f.path):((d.userinfo!==void 0||d.host!==void 0||d.port!==void 0)&&!d.path?_.path="/"+f.path:d.path?_.path=d.path.slice(0,d.path.lastIndexOf("/")+1)+f.path:_.path=f.path,_.path=tr(_.path)),_.query=f.query):(_.path=d.path,f.query!==void 0?_.query=f.query:_.query=d.query),_.userinfo=d.userinfo,_.host=d.host,_.port=d.port),_.scheme=d.scheme),_.fragment=f.fragment,_}function Ud(d,f,p){var m=a({scheme:"null"},p);return rt(Wa(dt(d,m),dt(f,m),m,!0),m)}function Hd(d,f){return typeof d=="string"?d=rt(dt(d,f),f):n(d)==="object"&&(d=dt(rt(d,f),f)),d}function Gd(d,f,p){return typeof d=="string"?d=rt(dt(d,p),p):n(d)==="object"&&(d=rt(d,p)),typeof f=="string"?f=rt(dt(f,p),p):n(f)==="object"&&(f=rt(f,p)),d===f}function zd(d,f){return d&&d.toString().replace(!f||!f.iri?u.ESCAPE:o.ESCAPE,tt)}function ht(d,f){return d&&d.toString().replace(!f||!f.iri?u.PCT_ENCODED:o.PCT_ENCODED,er)}var qr={scheme:"http",domainHost:!0,parse:function(f,p){return f.host||(f.error=f.error||"HTTP URIs must have a host."),f},serialize:function(f,p){var m=String(f.scheme).toLowerCase()==="https";return(f.port===(m?443:80)||f.port==="")&&(f.port=void 0),f.path||(f.path="/"),f}},Ja={scheme:"https",domainHost:qr.domainHost,parse:qr.parse,serialize:qr.serialize};function Ya(d){return typeof d.secure=="boolean"?d.secure:String(d.scheme).toLowerCase()==="wss"}var Dr={scheme:"ws",domainHost:!0,parse:function(f,p){var m=f;return m.secure=Ya(m),m.resourceName=(m.path||"/")+(m.query?"?"+m.query:""),m.path=void 0,m.query=void 0,m},serialize:function(f,p){if((f.port===(Ya(f)?443:80)||f.port==="")&&(f.port=void 0),typeof f.secure=="boolean"&&(f.scheme=f.secure?"wss":"ws",f.secure=void 0),f.resourceName){var m=f.resourceName.split("?"),_=l(m,2),S=_[0],T=_[1];f.path=S&&S!=="/"?S:void 0,f.query=T,f.resourceName=void 0}return f.fragment=void 0,f}},Za={scheme:"wss",domainHost:Dr.domainHost,parse:Dr.parse,serialize:Dr.serialize},Kd={},Xd=!0,Qa="[A-Za-z0-9\\-\\.\\_\\~"+(Xd?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",nt="[0-9A-Fa-f]",Bd=t(t("%[EFef]"+nt+"%"+nt+nt+"%"+nt+nt)+"|"+t("%[89A-Fa-f]"+nt+"%"+nt+nt)+"|"+t("%"+nt+nt)),Wd="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Jd="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Yd=e(Jd,'[\\"\\\\]'),Zd="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Qd=new RegExp(Qa,"g"),rr=new RegExp(Bd,"g"),eh=new RegExp(e("[^]",Wd,"[\\.]",'[\\"]',Yd),"g"),eo=new RegExp(e("[^]",Qa,Zd),"g"),th=eo;function qs(d){var f=er(d);return f.match(Qd)?f:d}var to={scheme:"mailto",parse:function(f,p){var m=f,_=m.to=m.path?m.path.split(","):[];if(m.path=void 0,m.query){for(var S=!1,T={},U=m.query.split("&"),B=0,ce=U.length;B<ce;++B){var F=U[B].split("=");switch(F[0]){case"to":for(var ne=F[1].split(","),ue=0,re=ne.length;ue<re;++ue)_.push(ne[ue]);break;case"subject":m.subject=ht(F[1],p);break;case"body":m.body=ht(F[1],p);break;default:S=!0,T[ht(F[0],p)]=ht(F[1],p);break}}S&&(m.headers=T)}m.query=void 0;for(var K=0,se=_.length;K<se;++K){var W=_[K].split("@");if(W[0]=ht(W[0]),p.unicodeSupport)W[1]=ht(W[1],p).toLowerCase();else try{W[1]=Qt.toASCII(ht(W[1],p).toLowerCase())}catch(jt){m.error=m.error||"Email address's domain name can not be converted to ASCII via punycode: "+jt}_[K]=W.join("@")}return m},serialize:function(f,p){var m=f,_=i(f.to);if(_){for(var S=0,T=_.length;S<T;++S){var U=String(_[S]),B=U.lastIndexOf("@"),ce=U.slice(0,B).replace(rr,qs).replace(rr,s).replace(eh,tt),F=U.slice(B+1);try{F=p.iri?Qt.toUnicode(F):Qt.toASCII(ht(F,p).toLowerCase())}catch(K){m.error=m.error||"Email address's domain name can not be converted to "+(p.iri?"Unicode":"ASCII")+" via punycode: "+K}_[S]=ce+"@"+F}m.path=_.join(",")}var ne=f.headers=f.headers||{};f.subject&&(ne.subject=f.subject),f.body&&(ne.body=f.body);var ue=[];for(var re in ne)ne[re]!==Kd[re]&&ue.push(re.replace(rr,qs).replace(rr,s).replace(eo,tt)+"="+ne[re].replace(rr,qs).replace(rr,s).replace(th,tt));return ue.length&&(m.query=ue.join("&")),m}},rh=/^([^\:]+)\:(.*)/,ro={scheme:"urn",parse:function(f,p){var m=f.path&&f.path.match(rh),_=f;if(m){var S=p.scheme||_.scheme||"urn",T=m[1].toLowerCase(),U=m[2],B=S+":"+(p.nid||T),ce=xe[B];_.nid=T,_.nss=U,_.path=void 0,ce&&(_=ce.parse(_,p))}else _.error=_.error||"URN can not be parsed.";return _},serialize:function(f,p){var m=p.scheme||f.scheme||"urn",_=f.nid,S=m+":"+(p.nid||_),T=xe[S];T&&(f=T.serialize(f,p));var U=f,B=f.nss;return U.path=(_||p.nid)+":"+B,U}},nh=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,no={scheme:"urn:uuid",parse:function(f,p){var m=f;return m.uuid=m.nss,m.nss=void 0,!p.tolerant&&(!m.uuid||!m.uuid.match(nh))&&(m.error=m.error||"UUID is not valid."),m},serialize:function(f,p){var m=f;return m.nss=(f.uuid||"").toLowerCase(),m}};xe[qr.scheme]=qr,xe[Ja.scheme]=Ja,xe[Dr.scheme]=Dr,xe[Za.scheme]=Za,xe[to.scheme]=to,xe[ro.scheme]=ro,xe[no.scheme]=no,r.SCHEMES=xe,r.pctEncChar=tt,r.pctDecChars=er,r.parse=dt,r.removeDotSegments=tr,r.serialize=rt,r.resolveComponents=Wa,r.resolve=Ud,r.normalize=Hd,r.equal=Gd,r.escapeComponent=zd,r.unescapeComponent=ht,Object.defineProperty(r,"__esModule",{value:!0})})});var ef=y(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});var Ql=Zl();Ql.code='require("ajv/dist/runtime/uri").default';Gi.default=Ql});var uf=y(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.CodeGen=pe.Name=pe.nil=pe.stringify=pe.str=pe._=pe.KeywordCxt=void 0;var q_=mn();Object.defineProperty(pe,"KeywordCxt",{enumerable:!0,get:function(){return q_.KeywordCxt}});var $r=L();Object.defineProperty(pe,"_",{enumerable:!0,get:function(){return $r._}});Object.defineProperty(pe,"str",{enumerable:!0,get:function(){return $r.str}});Object.defineProperty(pe,"stringify",{enumerable:!0,get:function(){return $r.stringify}});Object.defineProperty(pe,"nil",{enumerable:!0,get:function(){return $r.nil}});Object.defineProperty(pe,"Name",{enumerable:!0,get:function(){return $r.Name}});Object.defineProperty(pe,"CodeGen",{enumerable:!0,get:function(){return $r.CodeGen}});var D_=Li(),af=Vi(),j_=bi(),vn=fs(),k_=L(),_n=dn(),hs=fn(),Ki=G(),tf=Jl(),x_=ef(),of=(r,e)=>new RegExp(r,e);of.code="new RegExp";var L_=["removeAdditional","useDefaults","coerceTypes"],M_=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),F_={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},V_={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},rf=200;function U_(r){var e,t,n,s,i,a,c,u,o,l,h,g,v,$,E,w,b,D,A,z,C,ge,De,bt,je;let te=r.strict,ke=(e=r.code)===null||e===void 0?void 0:e.optimize,et=ke===!0||ke===void 0?1:ke||0,In=(n=(t=r.code)===null||t===void 0?void 0:t.regExp)!==null&&n!==void 0?n:of,An=(s=r.uriResolver)!==null&&s!==void 0?s:x_.default;return{strictSchema:(a=(i=r.strictSchema)!==null&&i!==void 0?i:te)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=r.strictNumbers)!==null&&c!==void 0?c:te)!==null&&u!==void 0?u:!0,strictTypes:(l=(o=r.strictTypes)!==null&&o!==void 0?o:te)!==null&&l!==void 0?l:"log",strictTuples:(g=(h=r.strictTuples)!==null&&h!==void 0?h:te)!==null&&g!==void 0?g:"log",strictRequired:($=(v=r.strictRequired)!==null&&v!==void 0?v:te)!==null&&$!==void 0?$:!1,code:r.code?Fe(ie({},r.code),{optimize:et,regExp:In}):{optimize:et,regExp:In},loopRequired:(E=r.loopRequired)!==null&&E!==void 0?E:rf,loopEnum:(w=r.loopEnum)!==null&&w!==void 0?w:rf,meta:(b=r.meta)!==null&&b!==void 0?b:!0,messages:(D=r.messages)!==null&&D!==void 0?D:!0,inlineRefs:(A=r.inlineRefs)!==null&&A!==void 0?A:!0,schemaId:(z=r.schemaId)!==null&&z!==void 0?z:"$id",addUsedSchema:(C=r.addUsedSchema)!==null&&C!==void 0?C:!0,validateSchema:(ge=r.validateSchema)!==null&&ge!==void 0?ge:!0,validateFormats:(De=r.validateFormats)!==null&&De!==void 0?De:!0,unicodeRegExp:(bt=r.unicodeRegExp)!==null&&bt!==void 0?bt:!0,int32range:(je=r.int32range)!==null&&je!==void 0?je:!0,uriResolver:An}}var ps=class{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts=ie(ie({},e),U_(e));let{es5:t,lines:n}=this.opts.code;this.scope=new k_.ValueScope({scope:{},prefixes:M_,es5:t,lines:n}),this.logger=B_(e.logger);let s=e.validateFormats;e.validateFormats=!1,this.RULES=(0,j_.getRules)(),nf.call(this,F_,e,"NOT SUPPORTED"),nf.call(this,V_,e,"DEPRECATED","warn"),this._metaOpts=K_.call(this),e.formats&&G_.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&z_.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),H_.call(this),e.validateFormats=s}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:t,schemaId:n}=this.opts,s=tf;n==="id"&&(s=ie({},tf),s.id=s.$id,delete s.$id),t&&e&&this.addMetaSchema(s,s[n],!1)}defaultMeta(){let{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[t]||e:void 0}validate(e,t){let n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let s=n(t);return"$async"in n||(this.errors=n.errors),s}compile(e,t){let n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return s.call(this,e,t);async function s(l,h){await i.call(this,l.$schema);let g=this._addSchema(l,h);return g.validate||a.call(this,g)}async function i(l){l&&!this.getSchema(l)&&await s.call(this,{$ref:l},!0)}async function a(l){try{return this._compileSchemaEnv(l)}catch(h){if(!(h instanceof af.default))throw h;return c.call(this,h),await u.call(this,h.missingSchema),a.call(this,l)}}function c({missingSchema:l,missingRef:h}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${h} cannot be resolved`)}async function u(l){let h=await o.call(this,l);this.refs[l]||await i.call(this,h.$schema),this.refs[l]||this.addSchema(h,l,t)}async function o(l){let h=this._loading[l];if(h)return h;try{return await(this._loading[l]=n(l))}finally{delete this._loading[l]}}}addSchema(e,t,n,s=this.opts.validateSchema){if(Array.isArray(e)){for(let a of e)this.addSchema(a,void 0,n,s);return this}let i;if(typeof e=="object"){let{schemaId:a}=this.opts;if(i=e[a],i!==void 0&&typeof i!="string")throw new Error(`schema ${a} must be string`)}return t=(0,_n.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,s,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if(typeof e=="boolean")return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let s=this.validate(n,e);if(!s&&t){let i="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(i);else throw new Error(i)}return s}getSchema(e){let t;for(;typeof(t=sf.call(this,e))=="string";)e=t;if(t===void 0){let{schemaId:n}=this.opts,s=new vn.SchemaEnv({schema:{},schemaId:n});if(t=vn.resolveSchema.call(this,s,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let t=sf.call(this,e);return typeof t=="object"&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,_n.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if(typeof e=="string")n=e,typeof t=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else if(typeof e=="object"&&t===void 0){if(t=e,n=t.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(J_.call(this,n,t),!t)return(0,Ki.eachItem)(n,i=>zi.call(this,i)),this;Z_.call(this,t);let s=Fe(ie({},t),{type:(0,hs.getJSONTypes)(t.type),schemaType:(0,hs.getJSONTypes)(t.schemaType)});return(0,Ki.eachItem)(n,s.type.length===0?i=>zi.call(this,i,s):i=>s.type.forEach(a=>zi.call(this,i,s,a))),this}getKeyword(e){let t=this.RULES.all[e];return typeof t=="object"?t.definition:!!t}removeKeyword(e){let{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(let n of t.rules){let s=n.rules.findIndex(i=>i.keyword===e);s>=0&&n.rules.splice(s,1)}return this}addFormat(e,t){return typeof t=="string"&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return!e||e.length===0?"No errors":e.map(s=>`${n}${s.instancePath} ${s.message}`).reduce((s,i)=>s+t+i)}$dataMetaSchema(e,t){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let s of t){let i=s.split("/").slice(1),a=e;for(let c of i)a=a[c];for(let c in n){let u=n[c];if(typeof u!="object")continue;let{$data:o}=u.definition,l=a[c];o&&l&&(a[c]=cf(l))}}return e}_removeAllSchemas(e,t){for(let n in e){let s=e[n];(!t||t.test(n))&&(typeof s=="string"?delete e[n]:s&&!s.meta&&(this._cache.delete(s.schema),delete e[n]))}}_addSchema(e,t,n,s=this.opts.validateSchema,i=this.opts.addUsedSchema){let a,{schemaId:c}=this.opts;if(typeof e=="object")a=e[c];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(e);if(u!==void 0)return u;n=(0,_n.normalizeId)(a||n);let o=_n.getSchemaRefs.call(this,e,n);return u=new vn.SchemaEnv({schema:e,schemaId:c,meta:t,baseId:n,localRefs:o}),this._cache.set(u.schema,u),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),s&&this.validateSchema(e,!0),u}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):vn.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let t=this.opts;this.opts=this._metaOpts;try{vn.compileSchema.call(this,e)}finally{this.opts=t}}};pe.default=ps;ps.ValidationError=D_.default;ps.MissingRefError=af.default;function nf(r,e,t,n="error"){for(let s in r){let i=s;i in e&&this.logger[n](`${t}: option ${s}. ${r[i]}`)}}function sf(r){return r=(0,_n.normalizeId)(r),this.schemas[r]||this.refs[r]}function H_(){let r=this.opts.schemas;if(!!r)if(Array.isArray(r))this.addSchema(r);else for(let e in r)this.addSchema(r[e],e)}function G_(){for(let r in this.opts.formats){let e=this.opts.formats[r];e&&this.addFormat(r,e)}}function z_(r){if(Array.isArray(r)){this.addVocabulary(r);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in r){let t=r[e];t.keyword||(t.keyword=e),this.addKeyword(t)}}function K_(){let r=ie({},this.opts);for(let e of L_)delete r[e];return r}var X_={log(){},warn(){},error(){}};function B_(r){if(r===!1)return X_;if(r===void 0)return console;if(r.log&&r.warn&&r.error)return r;throw new Error("logger must implement log, warn and error methods")}var W_=/^[a-z_$][a-z0-9_$:-]*$/i;function J_(r,e){let{RULES:t}=this;if((0,Ki.eachItem)(r,n=>{if(t.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!W_.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function zi(r,e,t){var n;let s=e==null?void 0:e.post;if(t&&s)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:i}=this,a=s?i.post:i.rules.find(({type:u})=>u===t);if(a||(a={type:t,rules:[]},i.rules.push(a)),i.keywords[r]=!0,!e)return;let c={keyword:r,definition:Fe(ie({},e),{type:(0,hs.getJSONTypes)(e.type),schemaType:(0,hs.getJSONTypes)(e.schemaType)})};e.before?Y_.call(this,a,c,e.before):a.rules.push(c),i.all[r]=c,(n=e.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}function Y_(r,e,t){let n=r.rules.findIndex(s=>s.keyword===t);n>=0?r.rules.splice(n,0,e):(r.rules.push(e),this.logger.warn(`rule ${t} is not defined`))}function Z_(r){let{metaSchema:e}=r;e!==void 0&&(r.$data&&this.opts.$data&&(e=cf(e)),r.validateSchema=this.compile(e,!0))}var Q_={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function cf(r){return{anyOf:[r,Q_]}}});var lf=y(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});var ey={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Xi.default=ey});var pf=y(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.callRef=Wt.getValidate=void 0;var ty=Vi(),ff=Ge(),Ne=L(),Er=$t(),df=fs(),ms=G(),ry={keyword:"$ref",schemaType:"string",code(r){let{gen:e,schema:t,it:n}=r,{baseId:s,schemaEnv:i,validateName:a,opts:c,self:u}=n,{root:o}=i;if((t==="#"||t==="#/")&&s===o.baseId)return h();let l=df.resolveRef.call(u,o,s,t);if(l===void 0)throw new ty.default(n.opts.uriResolver,s,t);if(l instanceof df.SchemaEnv)return g(l);return v(l);function h(){if(i===o)return gs(r,a,i,i.$async);let $=e.scopeValue("root",{ref:o});return gs(r,(0,Ne._)`${$}.validate`,o,o.$async)}function g($){let E=hf(r,$);gs(r,E,$,$.$async)}function v($){let E=e.scopeValue("schema",c.code.source===!0?{ref:$,code:(0,Ne.stringify)($)}:{ref:$}),w=e.name("valid"),b=r.subschema({schema:$,dataTypes:[],schemaPath:Ne.nil,topSchemaRef:E,errSchemaPath:t},w);r.mergeEvaluated(b),r.ok(w)}}};function hf(r,e){let{gen:t}=r;return e.validate?t.scopeValue("validate",{ref:e.validate}):(0,Ne._)`${t.scopeValue("wrapper",{ref:e})}.validate`}Wt.getValidate=hf;function gs(r,e,t,n){let{gen:s,it:i}=r,{allErrors:a,schemaEnv:c,opts:u}=i,o=u.passContext?Er.default.this:Ne.nil;n?l():h();function l(){if(!c.$async)throw new Error("async schema referenced by sync schema");let $=s.let("valid");s.try(()=>{s.code((0,Ne._)`await ${(0,ff.callValidateCode)(r,e,o)}`),v(e),a||s.assign($,!0)},E=>{s.if((0,Ne._)`!(${E} instanceof ${i.ValidationError})`,()=>s.throw(E)),g(E),a||s.assign($,!1)}),r.ok($)}function h(){r.result((0,ff.callValidateCode)(r,e,o),()=>v(e),()=>g(e))}function g($){let E=(0,Ne._)`${$}.errors`;s.assign(Er.default.vErrors,(0,Ne._)`${Er.default.vErrors} === null ? ${E} : ${Er.default.vErrors}.concat(${E})`),s.assign(Er.default.errors,(0,Ne._)`${Er.default.vErrors}.length`)}function v($){var E;if(!i.opts.unevaluated)return;let w=(E=t==null?void 0:t.validate)===null||E===void 0?void 0:E.evaluated;if(i.props!==!0)if(w&&!w.dynamicProps)w.props!==void 0&&(i.props=ms.mergeEvaluated.props(s,w.props,i.props));else{let b=s.var("props",(0,Ne._)`${$}.evaluated.props`);i.props=ms.mergeEvaluated.props(s,b,i.props,Ne.Name)}if(i.items!==!0)if(w&&!w.dynamicItems)w.items!==void 0&&(i.items=ms.mergeEvaluated.items(s,w.items,i.items));else{let b=s.var("items",(0,Ne._)`${$}.evaluated.items`);i.items=ms.mergeEvaluated.items(s,b,i.items,Ne.Name)}}}Wt.callRef=gs;Wt.default=ry});var mf=y(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});var ny=lf(),sy=pf(),iy=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",ny.default,sy.default];Bi.default=iy});var gf=y(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});var vs=L(),qt=vs.operators,_s={maximum:{okStr:"<=",ok:qt.LTE,fail:qt.GT},minimum:{okStr:">=",ok:qt.GTE,fail:qt.LT},exclusiveMaximum:{okStr:"<",ok:qt.LT,fail:qt.GTE},exclusiveMinimum:{okStr:">",ok:qt.GT,fail:qt.LTE}},ay={message:({keyword:r,schemaCode:e})=>(0,vs.str)`must be ${_s[r].okStr} ${e}`,params:({keyword:r,schemaCode:e})=>(0,vs._)`{comparison: ${_s[r].okStr}, limit: ${e}}`},oy={keyword:Object.keys(_s),type:"number",schemaType:"number",$data:!0,error:ay,code(r){let{keyword:e,data:t,schemaCode:n}=r;r.fail$data((0,vs._)`${t} ${_s[e].fail} ${n} || isNaN(${t})`)}};Wi.default=oy});var vf=y(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});var yn=L(),cy={message:({schemaCode:r})=>(0,yn.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,yn._)`{multipleOf: ${r}}`},uy={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:cy,code(r){let{gen:e,data:t,schemaCode:n,it:s}=r,i=s.opts.multipleOfPrecision,a=e.let("res"),c=i?(0,yn._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${i}`:(0,yn._)`${a} !== parseInt(${a})`;r.fail$data((0,yn._)`(${n} === 0 || (${a} = ${t}/${n}, ${c}))`)}};Ji.default=uy});var yf=y(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});function _f(r){let e=r.length,t=0,n=0,s;for(;n<e;)t++,s=r.charCodeAt(n++),s>=55296&&s<=56319&&n<e&&(s=r.charCodeAt(n),(s&64512)===56320&&n++);return t}Yi.default=_f;_f.code='require("ajv/dist/runtime/ucs2length").default'});var $f=y(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});var Jt=L(),ly=G(),fy=yf(),dy={message({keyword:r,schemaCode:e}){let t=r==="maxLength"?"more":"fewer";return(0,Jt.str)`must NOT have ${t} than ${e} characters`},params:({schemaCode:r})=>(0,Jt._)`{limit: ${r}}`},hy={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:dy,code(r){let{keyword:e,data:t,schemaCode:n,it:s}=r,i=e==="maxLength"?Jt.operators.GT:Jt.operators.LT,a=s.opts.unicode===!1?(0,Jt._)`${t}.length`:(0,Jt._)`${(0,ly.useFunc)(r.gen,fy.default)}(${t})`;r.fail$data((0,Jt._)`${a} ${i} ${n}`)}};Zi.default=hy});var Ef=y(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});var py=Ge(),ys=L(),my={message:({schemaCode:r})=>(0,ys.str)`must match pattern "${r}"`,params:({schemaCode:r})=>(0,ys._)`{pattern: ${r}}`},gy={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:my,code(r){let{data:e,$data:t,schema:n,schemaCode:s,it:i}=r,a=i.opts.unicodeRegExp?"u":"",c=t?(0,ys._)`(new RegExp(${s}, ${a}))`:(0,py.usePattern)(r,n);r.fail$data((0,ys._)`!${c}.test(${e})`)}};Qi.default=gy});var wf=y(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});var $n=L(),vy={message({keyword:r,schemaCode:e}){let t=r==="maxProperties"?"more":"fewer";return(0,$n.str)`must NOT have ${t} than ${e} items`},params:({schemaCode:r})=>(0,$n._)`{limit: ${r}}`},_y={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:vy,code(r){let{keyword:e,data:t,schemaCode:n}=r,s=e==="maxProperties"?$n.operators.GT:$n.operators.LT;r.fail$data((0,$n._)`Object.keys(${t}).length ${s} ${n}`)}};ea.default=_y});var bf=y(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});var En=Ge(),wn=L(),yy=G(),$y={message:({params:{missingProperty:r}})=>(0,wn.str)`must have required property '${r}'`,params:({params:{missingProperty:r}})=>(0,wn._)`{missingProperty: ${r}}`},Ey={keyword:"required",type:"object",schemaType:"array",$data:!0,error:$y,code(r){let{gen:e,schema:t,schemaCode:n,data:s,$data:i,it:a}=r,{opts:c}=a;if(!i&&t.length===0)return;let u=t.length>=c.loopRequired;if(a.allErrors?o():l(),c.strictRequired){let v=r.parentSchema.properties,{definedProperties:$}=r.it;for(let E of t)if((v==null?void 0:v[E])===void 0&&!$.has(E)){let w=a.schemaEnv.baseId+a.errSchemaPath,b=`required property "${E}" is not defined at "${w}" (strictRequired)`;(0,yy.checkStrictMode)(a,b,a.opts.strictRequired)}}function o(){if(u||i)r.block$data(wn.nil,h);else for(let v of t)(0,En.checkReportMissingProp)(r,v)}function l(){let v=e.let("missing");if(u||i){let $=e.let("valid",!0);r.block$data($,()=>g(v,$)),r.ok($)}else e.if((0,En.checkMissingProp)(r,t,v)),(0,En.reportMissingProp)(r,v),e.else()}function h(){e.forOf("prop",n,v=>{r.setParams({missingProperty:v}),e.if((0,En.noPropertyInData)(e,s,v,c.ownProperties),()=>r.error())})}function g(v,$){r.setParams({missingProperty:v}),e.forOf(v,n,()=>{e.assign($,(0,En.propertyInData)(e,s,v,c.ownProperties)),e.if((0,wn.not)($),()=>{r.error(),e.break()})},wn.nil)}}};ta.default=Ey});var Sf=y(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});var bn=L(),wy={message({keyword:r,schemaCode:e}){let t=r==="maxItems"?"more":"fewer";return(0,bn.str)`must NOT have ${t} than ${e} items`},params:({schemaCode:r})=>(0,bn._)`{limit: ${r}}`},by={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:wy,code(r){let{keyword:e,data:t,schemaCode:n}=r,s=e==="maxItems"?bn.operators.GT:bn.operators.LT;r.fail$data((0,bn._)`${t}.length ${s} ${n}`)}};ra.default=by});var $s=y(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});var Of=Ai();Of.code='require("ajv/dist/runtime/equal").default';na.default=Of});var Pf=y(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});var sa=fn(),me=L(),Sy=G(),Oy=$s(),Py={message:({params:{i:r,j:e}})=>(0,me.str)`must NOT have duplicate items (items ## ${e} and ${r} are identical)`,params:({params:{i:r,j:e}})=>(0,me._)`{i: ${r}, j: ${e}}`},Ry={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Py,code(r){let{gen:e,data:t,$data:n,schema:s,parentSchema:i,schemaCode:a,it:c}=r;if(!n&&!s)return;let u=e.let("valid"),o=i.items?(0,sa.getSchemaTypes)(i.items):[];r.block$data(u,l,(0,me._)`${a} === false`),r.ok(u);function l(){let $=e.let("i",(0,me._)`${t}.length`),E=e.let("j");r.setParams({i:$,j:E}),e.assign(u,!0),e.if((0,me._)`${$} > 1`,()=>(h()?g:v)($,E))}function h(){return o.length>0&&!o.some($=>$==="object"||$==="array")}function g($,E){let w=e.name("item"),b=(0,sa.checkDataTypes)(o,w,c.opts.strictNumbers,sa.DataType.Wrong),D=e.const("indices",(0,me._)`{}`);e.for((0,me._)`;${$}--;`,()=>{e.let(w,(0,me._)`${t}[${$}]`),e.if(b,(0,me._)`continue`),o.length>1&&e.if((0,me._)`typeof ${w} == "string"`,(0,me._)`${w} += "_"`),e.if((0,me._)`typeof ${D}[${w}] == "number"`,()=>{e.assign(E,(0,me._)`${D}[${w}]`),r.error(),e.assign(u,!1).break()}).code((0,me._)`${D}[${w}] = ${$}`)})}function v($,E){let w=(0,Sy.useFunc)(e,Oy.default),b=e.name("outer");e.label(b).for((0,me._)`;${$}--;`,()=>e.for((0,me._)`${E} = ${$}; ${E}--;`,()=>e.if((0,me._)`${w}(${t}[${$}], ${t}[${E}])`,()=>{r.error(),e.assign(u,!1).break(b)})))}}};ia.default=Ry});var Rf=y(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});var aa=L(),Cy=G(),Ny=$s(),Iy={message:"must be equal to constant",params:({schemaCode:r})=>(0,aa._)`{allowedValue: ${r}}`},Ay={keyword:"const",$data:!0,error:Iy,code(r){let{gen:e,data:t,$data:n,schemaCode:s,schema:i}=r;n||i&&typeof i=="object"?r.fail$data((0,aa._)`!${(0,Cy.useFunc)(e,Ny.default)}(${t}, ${s})`):r.fail((0,aa._)`${i} !== ${t}`)}};oa.default=Ay});var Cf=y(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});var Sn=L(),Ty=G(),qy=$s(),Dy={message:"must be equal to one of the allowed values",params:({schemaCode:r})=>(0,Sn._)`{allowedValues: ${r}}`},jy={keyword:"enum",schemaType:"array",$data:!0,error:Dy,code(r){let{gen:e,data:t,$data:n,schema:s,schemaCode:i,it:a}=r;if(!n&&s.length===0)throw new Error("enum must have non-empty array");let c=s.length>=a.opts.loopEnum,u=(0,Ty.useFunc)(e,qy.default),o;if(c||n)o=e.let("valid"),r.block$data(o,l);else{if(!Array.isArray(s))throw new Error("ajv implementation error");let g=e.const("vSchema",i);o=(0,Sn.or)(...s.map((v,$)=>h(g,$)))}r.pass(o);function l(){e.assign(o,!1),e.forOf("v",i,g=>e.if((0,Sn._)`${u}(${t}, ${g})`,()=>e.assign(o,!0).break()))}function h(g,v){let $=s[v];return typeof $=="object"&&$!==null?(0,Sn._)`${u}(${t}, ${g}[${v}])`:(0,Sn._)`${t} === ${$}`}}};ca.default=jy});var Nf=y(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});var ky=gf(),xy=vf(),Ly=$f(),My=Ef(),Fy=wf(),Vy=bf(),Uy=Sf(),Hy=Pf(),Gy=Rf(),zy=Cf(),Ky=[ky.default,xy.default,Ly.default,My.default,Fy.default,Vy.default,Uy.default,Hy.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Gy.default,zy.default];ua.default=Ky});var fa=y(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.validateAdditionalItems=void 0;var Yt=L(),la=G(),Xy={message:({params:{len:r}})=>(0,Yt.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,Yt._)`{limit: ${r}}`},By={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Xy,code(r){let{parentSchema:e,it:t}=r,{items:n}=e;if(!Array.isArray(n)){(0,la.checkStrictMode)(t,'"additionalItems" is ignored when "items" is not an array of schemas');return}If(r,n)}};function If(r,e){let{gen:t,schema:n,data:s,keyword:i,it:a}=r;a.items=!0;let c=t.const("len",(0,Yt._)`${s}.length`);if(n===!1)r.setParams({len:e.length}),r.pass((0,Yt._)`${c} <= ${e.length}`);else if(typeof n=="object"&&!(0,la.alwaysValidSchema)(a,n)){let o=t.var("valid",(0,Yt._)`${c} <= ${e.length}`);t.if((0,Yt.not)(o),()=>u(o)),r.ok(o)}function u(o){t.forRange("i",e.length,c,l=>{r.subschema({keyword:i,dataProp:l,dataPropType:la.Type.Num},o),a.allErrors||t.if((0,Yt.not)(o),()=>t.break())})}}On.validateAdditionalItems=If;On.default=By});var da=y(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.validateTuple=void 0;var Af=L(),Es=G(),Wy=Ge(),Jy={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(r){let{schema:e,it:t}=r;if(Array.isArray(e))return Tf(r,"additionalItems",e);t.items=!0,!(0,Es.alwaysValidSchema)(t,e)&&r.ok((0,Wy.validateArray)(r))}};function Tf(r,e,t=r.schema){let{gen:n,parentSchema:s,data:i,keyword:a,it:c}=r;l(s),c.opts.unevaluated&&t.length&&c.items!==!0&&(c.items=Es.mergeEvaluated.items(n,t.length,c.items));let u=n.name("valid"),o=n.const("len",(0,Af._)`${i}.length`);t.forEach((h,g)=>{(0,Es.alwaysValidSchema)(c,h)||(n.if((0,Af._)`${o} > ${g}`,()=>r.subschema({keyword:a,schemaProp:g,dataProp:g},u)),r.ok(u))});function l(h){let{opts:g,errSchemaPath:v}=c,$=t.length,E=$===h.minItems&&($===h.maxItems||h[e]===!1);if(g.strictTuples&&!E){let w=`"${a}" is ${$}-tuple, but minItems or maxItems/${e} are not specified or different at path "${v}"`;(0,Es.checkStrictMode)(c,w,g.strictTuples)}}}Pn.validateTuple=Tf;Pn.default=Jy});var qf=y(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});var Yy=da(),Zy={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,Yy.validateTuple)(r,"items")};ha.default=Zy});var jf=y(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});var Df=L(),Qy=G(),e0=Ge(),t0=fa(),r0={message:({params:{len:r}})=>(0,Df.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,Df._)`{limit: ${r}}`},n0={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:r0,code(r){let{schema:e,parentSchema:t,it:n}=r,{prefixItems:s}=t;n.items=!0,!(0,Qy.alwaysValidSchema)(n,e)&&(s?(0,t0.validateAdditionalItems)(r,s):r.ok((0,e0.validateArray)(r)))}};pa.default=n0});var kf=y(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});var Ke=L(),ws=G(),s0={message:({params:{min:r,max:e}})=>e===void 0?(0,Ke.str)`must contain at least ${r} valid item(s)`:(0,Ke.str)`must contain at least ${r} and no more than ${e} valid item(s)`,params:({params:{min:r,max:e}})=>e===void 0?(0,Ke._)`{minContains: ${r}}`:(0,Ke._)`{minContains: ${r}, maxContains: ${e}}`},i0={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:s0,code(r){let{gen:e,schema:t,parentSchema:n,data:s,it:i}=r,a,c,{minContains:u,maxContains:o}=n;i.opts.next?(a=u===void 0?1:u,c=o):a=1;let l=e.const("len",(0,Ke._)`${s}.length`);if(r.setParams({min:a,max:c}),c===void 0&&a===0){(0,ws.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,ws.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),r.fail();return}if((0,ws.alwaysValidSchema)(i,t)){let E=(0,Ke._)`${l} >= ${a}`;c!==void 0&&(E=(0,Ke._)`${E} && ${l} <= ${c}`),r.pass(E);return}i.items=!0;let h=e.name("valid");c===void 0&&a===1?v(h,()=>e.if(h,()=>e.break())):a===0?(e.let(h,!0),c!==void 0&&e.if((0,Ke._)`${s}.length > 0`,g)):(e.let(h,!1),g()),r.result(h,()=>r.reset());function g(){let E=e.name("_valid"),w=e.let("count",0);v(E,()=>e.if(E,()=>$(w)))}function v(E,w){e.forRange("i",0,l,b=>{r.subschema({keyword:"contains",dataProp:b,dataPropType:ws.Type.Num,compositeRule:!0},E),w()})}function $(E){e.code((0,Ke._)`${E}++`),c===void 0?e.if((0,Ke._)`${E} >= ${a}`,()=>e.assign(h,!0).break()):(e.if((0,Ke._)`${E} > ${c}`,()=>e.assign(h,!1).break()),a===1?e.assign(h,!0):e.if((0,Ke._)`${E} >= ${a}`,()=>e.assign(h,!0)))}}};ma.default=i0});var Mf=y(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.validateSchemaDeps=ut.validatePropertyDeps=ut.error=void 0;var ga=L(),a0=G(),Rn=Ge();ut.error={message:({params:{property:r,depsCount:e,deps:t}})=>{let n=e===1?"property":"properties";return(0,ga.str)`must have ${n} ${t} when property ${r} is present`},params:({params:{property:r,depsCount:e,deps:t,missingProperty:n}})=>(0,ga._)`{property: ${r},
22
+ missingProperty: ${n},
42
23
  depsCount: ${e},
43
- deps: ${n}}`};var _T={keyword:"dependencies",type:"object",schemaType:"object",error:Kr.error,code(r){let[e,n]=vT(r);Vv(r,e),Gv(r,n)}};function vT({schema:r}){let e={},n={};for(let s in r){if(s==="__proto__")continue;let a=Array.isArray(r[s])?e:n;a[s]=r[s]}return[e,n]}function Vv(r,e=r.schema){let{gen:n,data:s,it:a}=r;if(Object.keys(e).length===0)return;let u=n.let("missing");for(let l in e){let d=e[l];if(d.length===0)continue;let g=(0,Fo.propertyInData)(n,s,l,a.opts.ownProperties);r.setParams({property:l,depsCount:d.length,deps:d.join(", ")}),a.allErrors?n.if(g,()=>{for(let f of d)(0,Fo.checkReportMissingProp)(r,f)}):(n.if((0,Df._)`${g} && (${(0,Fo.checkMissingProp)(r,d,u)})`),(0,Fo.reportMissingProp)(r,u),n.else())}}Kr.validatePropertyDeps=Vv;function Gv(r,e=r.schema){let{gen:n,data:s,keyword:a,it:u}=r,l=n.name("valid");for(let d in e)(0,gT.alwaysValidSchema)(u,e[d])||(n.if((0,Fo.propertyInData)(n,s,d,u.opts.ownProperties),()=>{let g=r.subschema({keyword:a,schemaProp:d},l);r.mergeValidEvaluated(g,l)},()=>n.var(l,!0)),r.ok(l))}Kr.validateSchemaDeps=Gv;Kr.default=_T});var Bv=T(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var zv=he(),yT=be(),ET={message:"property name must be valid",params:({params:r})=>(0,zv._)`{propertyName: ${r.propertyName}}`},$T={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:ET,code(r){let{gen:e,schema:n,data:s,it:a}=r;if((0,yT.alwaysValidSchema)(a,n))return;let u=e.name("valid");e.forIn("key",s,l=>{r.setParams({propertyName:l}),r.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},u),e.if((0,zv.not)(u),()=>{r.error(!0),a.allErrors||e.break()})}),r.ok(u)}};qf.default=$T});var Mf=T(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var Pu=_r(),Dr=he(),wT=En(),Cu=be(),bT={message:"must NOT have additional properties",params:({params:r})=>(0,Dr._)`{additionalProperty: ${r.additionalProperty}}`},ST={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:bT,code(r){let{gen:e,schema:n,parentSchema:s,data:a,errsCount:u,it:l}=r;if(!u)throw new Error("ajv implementation error");let{allErrors:d,opts:g}=l;if(l.props=!0,g.removeAdditional!=="all"&&(0,Cu.alwaysValidSchema)(l,n))return;let f=(0,Pu.allSchemaProperties)(s.properties),_=(0,Pu.allSchemaProperties)(s.patternProperties);w(),r.ok((0,Dr._)`${u} === ${wT.default.errors}`);function w(){e.forIn("key",a,j=>{!f.length&&!_.length?x(j):e.if(R(j),()=>x(j))})}function R(j){let F;if(f.length>8){let Z=(0,Cu.schemaRefOrVal)(l,s.properties,"properties");F=(0,Pu.isOwnProperty)(e,Z,j)}else f.length?F=(0,Dr.or)(...f.map(Z=>(0,Dr._)`${j} === ${Z}`)):F=Dr.nil;return _.length&&(F=(0,Dr.or)(F,..._.map(Z=>(0,Dr._)`${(0,Pu.usePattern)(r,Z)}.test(${j})`))),(0,Dr.not)(F)}function A(j){e.code((0,Dr._)`delete ${a}[${j}]`)}function x(j){if(g.removeAdditional==="all"||g.removeAdditional&&n===!1){A(j);return}if(n===!1){r.setParams({additionalProperty:j}),r.error(),d||e.break();return}if(typeof n=="object"&&!(0,Cu.alwaysValidSchema)(l,n)){let F=e.name("valid");g.removeAdditional==="failing"?(L(j,F,!1),e.if((0,Dr.not)(F),()=>{r.reset(),A(j)})):(L(j,F),d||e.if((0,Dr.not)(F),()=>e.break()))}}function L(j,F,Z){let K={keyword:"additionalProperties",dataProp:j,dataPropType:Cu.Type.Str};Z===!1&&Object.assign(K,{compositeRule:!0,createErrors:!1,allErrors:!1}),r.subschema(K,F)}}};Lf.default=ST});var Yv=T(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});var OT=Ro(),Kv=_r(),Ff=be(),Xv=Mf(),RT={keyword:"properties",type:"object",schemaType:"object",code(r){let{gen:e,schema:n,parentSchema:s,data:a,it:u}=r;u.opts.removeAdditional==="all"&&s.additionalProperties===void 0&&Xv.default.code(new OT.KeywordCxt(u,Xv.default,"additionalProperties"));let l=(0,Kv.allSchemaProperties)(n);for(let w of l)u.definedProperties.add(w);u.opts.unevaluated&&l.length&&u.props!==!0&&(u.props=Ff.mergeEvaluated.props(e,(0,Ff.toHash)(l),u.props));let d=l.filter(w=>!(0,Ff.alwaysValidSchema)(u,n[w]));if(d.length===0)return;let g=e.name("valid");for(let w of d)f(w)?_(w):(e.if((0,Kv.propertyInData)(e,a,w,u.opts.ownProperties)),_(w),u.allErrors||e.else().var(g,!0),e.endIf()),r.it.definedProperties.add(w),r.ok(g);function f(w){return u.opts.useDefaults&&!u.compositeRule&&n[w].default!==void 0}function _(w){r.subschema({keyword:"properties",schemaProp:w,dataProp:w},g)}}};jf.default=RT});var e0=T(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});var Jv=_r(),Iu=he(),Zv=be(),Qv=be(),AT={keyword:"patternProperties",type:"object",schemaType:"object",code(r){let{gen:e,schema:n,data:s,parentSchema:a,it:u}=r,{opts:l}=u,d=(0,Jv.allSchemaProperties)(n),g=d.filter(L=>(0,Zv.alwaysValidSchema)(u,n[L]));if(d.length===0||g.length===d.length&&(!u.opts.unevaluated||u.props===!0))return;let f=l.strictSchema&&!l.allowMatchingProperties&&a.properties,_=e.name("valid");u.props!==!0&&!(u.props instanceof Iu.Name)&&(u.props=(0,Qv.evaluatedPropsToName)(e,u.props));let{props:w}=u;R();function R(){for(let L of d)f&&A(L),u.allErrors?x(L):(e.var(_,!0),x(L),e.if(_))}function A(L){for(let j in f)new RegExp(L).test(j)&&(0,Zv.checkStrictMode)(u,`property ${j} matches pattern ${L} (use allowMatchingProperties)`)}function x(L){e.forIn("key",s,j=>{e.if((0,Iu._)`${(0,Jv.usePattern)(r,L)}.test(${j})`,()=>{let F=g.includes(L);F||r.subschema({keyword:"patternProperties",schemaProp:L,dataProp:j,dataPropType:Qv.Type.Str},_),u.opts.unevaluated&&w!==!0?e.assign((0,Iu._)`${w}[${j}]`,!0):!F&&!u.allErrors&&e.if((0,Iu.not)(_),()=>e.break())})})}}};kf.default=AT});var t0=T(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});var PT=be(),CT={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){let{gen:e,schema:n,it:s}=r;if((0,PT.alwaysValidSchema)(s,n)){r.fail();return}let a=e.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),r.failResult(a,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};Uf.default=CT});var r0=T(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});var IT=_r(),TT={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:IT.validateUnion,error:{message:"must match a schema in anyOf"}};Hf.default=TT});var n0=T(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});var Tu=he(),NT=be(),xT={message:"must match exactly one schema in oneOf",params:({params:r})=>(0,Tu._)`{passingSchemas: ${r.passing}}`},DT={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:xT,code(r){let{gen:e,schema:n,parentSchema:s,it:a}=r;if(!Array.isArray(n))throw new Error("ajv implementation error");if(a.opts.discriminator&&s.discriminator)return;let u=n,l=e.let("valid",!1),d=e.let("passing",null),g=e.name("_valid");r.setParams({passing:d}),e.block(f),r.result(l,()=>r.reset(),()=>r.error(!0));function f(){u.forEach((_,w)=>{let R;(0,NT.alwaysValidSchema)(a,_)?e.var(g,!0):R=r.subschema({keyword:"oneOf",schemaProp:w,compositeRule:!0},g),w>0&&e.if((0,Tu._)`${g} && ${l}`).assign(l,!1).assign(d,(0,Tu._)`[${d}, ${w}]`).else(),e.if(g,()=>{e.assign(l,!0),e.assign(d,w),R&&r.mergeEvaluated(R,Tu.Name)})})}}};Vf.default=DT});var i0=T(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var qT=be(),LT={keyword:"allOf",schemaType:"array",code(r){let{gen:e,schema:n,it:s}=r;if(!Array.isArray(n))throw new Error("ajv implementation error");let a=e.name("valid");n.forEach((u,l)=>{if((0,qT.alwaysValidSchema)(s,u))return;let d=r.subschema({keyword:"allOf",schemaProp:l},a);r.ok(a),r.mergeEvaluated(d)})}};Gf.default=LT});var a0=T(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});var Nu=he(),o0=be(),MT={message:({params:r})=>(0,Nu.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,Nu._)`{failingKeyword: ${r.ifClause}}`},FT={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:MT,code(r){let{gen:e,parentSchema:n,it:s}=r;n.then===void 0&&n.else===void 0&&(0,o0.checkStrictMode)(s,'"if" without "then" and "else" is ignored');let a=s0(s,"then"),u=s0(s,"else");if(!a&&!u)return;let l=e.let("valid",!0),d=e.name("_valid");if(g(),r.reset(),a&&u){let _=e.let("ifClause");r.setParams({ifClause:_}),e.if(d,f("then",_),f("else",_))}else a?e.if(d,f("then")):e.if((0,Nu.not)(d),f("else"));r.pass(l,()=>r.error(!0));function g(){let _=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},d);r.mergeEvaluated(_)}function f(_,w){return()=>{let R=r.subschema({keyword:_},d);e.assign(l,d),r.mergeValidEvaluated(R,l),w?e.assign(w,(0,Nu._)`${_}`):r.setParams({ifClause:_})}}}};function s0(r,e){let n=r.schema[e];return n!==void 0&&!(0,o0.alwaysValidSchema)(r,n)}Wf.default=FT});var u0=T(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});var jT=be(),kT={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:e,it:n}){e.if===void 0&&(0,jT.checkStrictMode)(n,`"${r}" without "if" is ignored`)}};zf.default=kT});var c0=T(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});var UT=Cf(),HT=jv(),VT=If(),GT=Uv(),WT=Hv(),zT=Wv(),BT=Bv(),KT=Mf(),XT=Yv(),YT=e0(),JT=t0(),ZT=r0(),QT=n0(),eN=i0(),tN=a0(),rN=u0();function nN(r=!1){let e=[JT.default,ZT.default,QT.default,eN.default,tN.default,rN.default,BT.default,KT.default,zT.default,XT.default,YT.default];return r?e.push(HT.default,GT.default):e.push(UT.default,VT.default),e.push(WT.default),e}Bf.default=nN});var l0=T(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});var Je=he(),iN={message:({schemaCode:r})=>(0,Je.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,Je._)`{format: ${r}}`},sN={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:iN,code(r,e){let{gen:n,data:s,$data:a,schema:u,schemaCode:l,it:d}=r,{opts:g,errSchemaPath:f,schemaEnv:_,self:w}=d;if(!g.validateFormats)return;a?R():A();function R(){let x=n.scopeValue("formats",{ref:w.formats,code:g.code.formats}),L=n.const("fDef",(0,Je._)`${x}[${l}]`),j=n.let("fType"),F=n.let("format");n.if((0,Je._)`typeof ${L} == "object" && !(${L} instanceof RegExp)`,()=>n.assign(j,(0,Je._)`${L}.type || "string"`).assign(F,(0,Je._)`${L}.validate`),()=>n.assign(j,(0,Je._)`"string"`).assign(F,L)),r.fail$data((0,Je.or)(Z(),K()));function Z(){return g.strictSchema===!1?Je.nil:(0,Je._)`${l} && !${F}`}function K(){let ue=_.$async?(0,Je._)`(${L}.async ? await ${F}(${s}) : ${F}(${s}))`:(0,Je._)`${F}(${s})`,z=(0,Je._)`(typeof ${F} == "function" ? ${ue} : ${F}.test(${s}))`;return(0,Je._)`${F} && ${F} !== true && ${j} === ${e} && !${z}`}}function A(){let x=w.formats[u];if(!x){Z();return}if(x===!0)return;let[L,j,F]=K(x);L===e&&r.pass(ue());function Z(){if(g.strictSchema===!1){w.logger.warn(z());return}throw new Error(z());function z(){return`unknown format "${u}" ignored in schema at path "${f}"`}}function K(z){let Ve=z instanceof RegExp?(0,Je.regexpCode)(z):g.code.formats?(0,Je._)`${g.code.formats}${(0,Je.getProperty)(u)}`:void 0,ct=n.scopeValue("formats",{key:u,ref:z,code:Ve});return typeof z=="object"&&!(z instanceof RegExp)?[z.type||"string",z.validate,(0,Je._)`${ct}.validate`]:["string",z,ct]}function ue(){if(typeof x=="object"&&!(x instanceof RegExp)&&x.async){if(!_.$async)throw new Error("async format in sync schema");return(0,Je._)`await ${F}(${s})`}return typeof j=="function"?(0,Je._)`${F}(${s})`:(0,Je._)`${F}.test(${s})`}}}};Kf.default=sN});var f0=T(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});var oN=l0(),aN=[oN.default];Xf.default=aN});var h0=T(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.contentVocabulary=hs.metadataVocabulary=void 0;hs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];hs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var p0=T(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});var uN=$v(),cN=qv(),lN=c0(),fN=f0(),d0=h0(),hN=[uN.default,cN.default,(0,lN.default)(),fN.default,d0.metadataVocabulary,d0.contentVocabulary];Yf.default=hN});var m0=T(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.DiscrError=void 0;var dN;(function(r){r.Tag="tag",r.Mapping="mapping"})(dN=jo.DiscrError||(jo.DiscrError={}))});var _0=T(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var ds=he(),Jf=m0(),g0=gu(),pN=be(),mN={message:({params:{discrError:r,tagName:e}})=>r===Jf.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:r,tag:e,tagName:n}})=>(0,ds._)`{error: ${r}, tag: ${n}, tagValue: ${e}}`},gN={keyword:"discriminator",type:"object",schemaType:"object",error:mN,code(r){let{gen:e,data:n,schema:s,parentSchema:a,it:u}=r,{oneOf:l}=a;if(!u.opts.discriminator)throw new Error("discriminator: requires discriminator option");let d=s.propertyName;if(typeof d!="string")throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!l)throw new Error("discriminator: requires oneOf keyword");let g=e.let("valid",!1),f=e.const("tag",(0,ds._)`${n}${(0,ds.getProperty)(d)}`);e.if((0,ds._)`typeof ${f} == "string"`,()=>_(),()=>r.error(!1,{discrError:Jf.DiscrError.Tag,tag:f,tagName:d})),r.ok(g);function _(){let A=R();e.if(!1);for(let x in A)e.elseIf((0,ds._)`${f} === ${x}`),e.assign(g,w(A[x]));e.else(),r.error(!1,{discrError:Jf.DiscrError.Mapping,tag:f,tagName:d}),e.endIf()}function w(A){let x=e.name("valid"),L=r.subschema({keyword:"oneOf",schemaProp:A},x);return r.mergeEvaluated(L,ds.Name),x}function R(){var A;let x={},L=F(a),j=!0;for(let ue=0;ue<l.length;ue++){let z=l[ue];(z==null?void 0:z.$ref)&&!(0,pN.schemaHasRulesButRef)(z,u.self.RULES)&&(z=g0.resolveRef.call(u.self,u.schemaEnv,u.baseId,z==null?void 0:z.$ref),z instanceof g0.SchemaEnv&&(z=z.schema));let Ve=(A=z==null?void 0:z.properties)===null||A===void 0?void 0:A[d];if(typeof Ve!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${d}"`);j=j&&(L||F(z)),Z(Ve,ue)}if(!j)throw new Error(`discriminator: "${d}" must be required`);return x;function F({required:ue}){return Array.isArray(ue)&&ue.includes(d)}function Z(ue,z){if(ue.const)K(ue.const,z);else if(ue.enum)for(let Ve of ue.enum)K(Ve,z);else throw new Error(`discriminator: "properties/${d}" must have "const" or "enum"`)}function K(ue,z){if(typeof ue!="string"||ue in x)throw new Error(`discriminator: "${d}" values must be unique strings`);x[ue]=z}}}};Zf.default=gN});var v0=T((Gq,_N)=>{_N.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var $0=T((et,E0)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.CodeGen=et.Name=et.nil=et.stringify=et.str=et._=et.KeywordCxt=void 0;var vN=mv(),yN=p0(),EN=_0(),y0=v0(),$N=["/properties"],xu="http://json-schema.org/draft-07/schema",Qf=class extends vN.default{_addVocabularies(){super._addVocabularies(),yN.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(EN.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(y0,$N):y0;this.addMetaSchema(e,xu,!1),this.refs["http://json-schema.org/schema"]=xu}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(xu)?xu:void 0)}};E0.exports=et=Qf;Object.defineProperty(et,"__esModule",{value:!0});et.default=Qf;var wN=Ro();Object.defineProperty(et,"KeywordCxt",{enumerable:!0,get:function(){return wN.KeywordCxt}});var ps=he();Object.defineProperty(et,"_",{enumerable:!0,get:function(){return ps._}});Object.defineProperty(et,"str",{enumerable:!0,get:function(){return ps.str}});Object.defineProperty(et,"stringify",{enumerable:!0,get:function(){return ps.stringify}});Object.defineProperty(et,"nil",{enumerable:!0,get:function(){return ps.nil}});Object.defineProperty(et,"Name",{enumerable:!0,get:function(){return ps.Name}});Object.defineProperty(et,"CodeGen",{enumerable:!0,get:function(){return ps.CodeGen}})});var xi=T(ms=>{"use strict";var bN=ms&&ms.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ms,"__esModule",{value:!0});ms.ServerlessError=void 0;var SN=bN(yn()),ON=SN.default.Logger,RN=new ON("S-CLI-ERROR"),AN=function(){function r(e,n,s){RN.error(e+": "+n,s),process.exit(1)}return r}();ms.ServerlessError=AN});var w0=T(gs=>{"use strict";var PN=gs&&gs.__extends||function(){var r=function(e,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(s[u]=a[u])},r(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function s(){this.constructor=e}e.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}}();Object.defineProperty(gs,"__esModule",{value:!0});gs.CommandError=void 0;var CN=xi(),IN=function(r){PN(e,r);function e(n,s){return r.call(this,"Error",n,s)||this}return e}(CN.ServerlessError);gs.CommandError=IN});var b0=T(_s=>{"use strict";var TN=_s&&_s.__extends||function(){var r=function(e,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(s[u]=a[u])},r(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function s(){this.constructor=e}e.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}}();Object.defineProperty(_s,"__esModule",{value:!0});_s.ConfigDeleteError=void 0;var NN=xi(),xN=function(r){TN(e,r);function e(n,s){return r.call(this,"Deletion failed",n,s)||this}return e}(NN.ServerlessError);_s.ConfigDeleteError=xN});var S0=T(vs=>{"use strict";var DN=vs&&vs.__extends||function(){var r=function(e,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(s[u]=a[u])},r(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function s(){this.constructor=e}e.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}}();Object.defineProperty(vs,"__esModule",{value:!0});vs.ConfigError=void 0;var qN=xi(),LN=function(r){DN(e,r);function e(n,s){return r.call(this,"Config failed",n,s)||this}return e}(qN.ServerlessError);vs.ConfigError=LN});var O0=T(ys=>{"use strict";var MN=ys&&ys.__extends||function(){var r=function(e,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(s[u]=a[u])},r(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function s(){this.constructor=e}e.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}}();Object.defineProperty(ys,"__esModule",{value:!0});ys.ConfigGetError=void 0;var FN=xi(),jN=function(r){MN(e,r);function e(n,s){return r.call(this,"Get failed",n,s)||this}return e}(FN.ServerlessError);ys.ConfigGetError=jN});var R0=T(Es=>{"use strict";var kN=Es&&Es.__extends||function(){var r=function(e,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(s[u]=a[u])},r(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function s(){this.constructor=e}e.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}}();Object.defineProperty(Es,"__esModule",{value:!0});Es.InitError=void 0;var UN=xi(),HN=function(r){kN(e,r);function e(n,s){return r.call(this,"Initialization failed",n,s)||this}return e}(UN.ServerlessError);Es.InitError=HN});var P0=T(Xr=>{"use strict";var VN=Xr&&Xr.__awaiter||function(r,e,n,s){function a(u){return u instanceof n?u:new n(function(l){l(u)})}return new(n||(n=Promise))(function(u,l){function d(_){try{f(s.next(_))}catch(w){l(w)}}function g(_){try{f(s.throw(_))}catch(w){l(w)}}function f(_){_.done?u(_.value):a(_.value).then(d,g)}f((s=s.apply(r,e||[])).next())})},GN=Xr&&Xr.__generator||function(r,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},s,a,u,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(f){return function(_){return g([f,_])}}function g(f){if(s)throw new TypeError("Generator is already executing.");for(;n;)try{if(s=1,a&&(u=f[0]&2?a.return:f[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,f[1])).done)return u;switch(a=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,a=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){n.label=f[1];break}if(f[0]===6&&n.label<u[1]){n.label=u[1],u=f;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(f);break}u[2]&&n.ops.pop(),n.trys.pop();continue}f=e.call(r,n)}catch(_){f=[6,_],a=0}finally{s=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},WN=Xr&&Xr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Xr,"__esModule",{value:!0});Xr.HumanError=void 0;var A0=WN(yn()),zN=ru(),BN=A0.default.colors,KN=function(){function r(e){var n=e.errorMessage,s=e.tips;this.errorMessage=n,console.log(`
44
- `.concat((0,zN.bgRed)("ERROR:"))),console.log("TypeError: ".concat(n,`
45
- `)),s&&console.log("".concat(BN.gray(s),`
46
- `))}return r.prototype.report=function(e){return VN(this,void 0,void 0,function(){var n;return GN(this,function(s){switch(s.label){case 0:return n=e.error,[4,A0.default.report({type:"jsError",content:"".concat(this.errorMessage,"||").concat(n.stack)})];case 1:return s.sent(),[2]}})})},r}();Xr.HumanError=KN});var I0=T($s=>{"use strict";var XN=$s&&$s.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($s,"__esModule",{value:!0});$s.HumanWarning=void 0;var YN=XN(yn()),C0=YN.default.colors,JN=function(){function r(e){var n=e.warningMessage,s=e.tips;console.log(`
47
- `.concat(C0.hex("#000").bgYellow("WARNING:"))),console.log("".concat(n,`
48
- `)),s&&console.log("".concat(C0.gray(s),`
49
- `))}return r}();$s.HumanWarning=JN});var T0=T(Le=>{"use strict";var ZN=Le&&Le.__awaiter||function(r,e,n,s){function a(u){return u instanceof n?u:new n(function(l){l(u)})}return new(n||(n=Promise))(function(u,l){function d(_){try{f(s.next(_))}catch(w){l(w)}}function g(_){try{f(s.throw(_))}catch(w){l(w)}}function f(_){_.done?u(_.value):a(_.value).then(d,g)}f((s=s.apply(r,e||[])).next())})},QN=Le&&Le.__generator||function(r,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},s,a,u,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(f){return function(_){return g([f,_])}}function g(f){if(s)throw new TypeError("Generator is already executing.");for(;n;)try{if(s=1,a&&(u=f[0]&2?a.return:f[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,f[1])).done)return u;switch(a=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,a=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){n.label=f[1];break}if(f[0]===6&&n.label<u[1]){n.label=u[1],u=f;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(f);break}u[2]&&n.ops.pop(),n.trys.pop();continue}f=e.call(r,n)}catch(_){f=[6,_],a=0}finally{s=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},ex=Le&&Le.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Le,"__esModule",{value:!0});Le.HandleError=Le.HumanWarning=Le.HumanError=Le.ServerlessError=Le.InitError=Le.ConfigGetError=Le.ConfigError=Le.ConfigDeleteError=Le.CommandError=void 0;var Yr=Al(),Du=ex(yn()),Qn=Du.default.colors,tx=Du.default.report,eh=Du.default.isDebugMode,rx=Du.default.makeUnderLine,nx=w0();Object.defineProperty(Le,"CommandError",{enumerable:!0,get:function(){return nx.CommandError}});var ix=b0();Object.defineProperty(Le,"ConfigDeleteError",{enumerable:!0,get:function(){return ix.ConfigDeleteError}});var sx=S0();Object.defineProperty(Le,"ConfigError",{enumerable:!0,get:function(){return sx.ConfigError}});var ox=O0();Object.defineProperty(Le,"ConfigGetError",{enumerable:!0,get:function(){return ox.ConfigGetError}});var ax=R0();Object.defineProperty(Le,"InitError",{enumerable:!0,get:function(){return ax.InitError}});var ux=xi();Object.defineProperty(Le,"ServerlessError",{enumerable:!0,get:function(){return ux.ServerlessError}});var cx=P0();Object.defineProperty(Le,"HumanError",{enumerable:!0,get:function(){return cx.HumanError}});var lx=I0();Object.defineProperty(Le,"HumanWarning",{enumerable:!0,get:function(){return lx.HumanWarning}});function th(r,e){return"".concat(Qn.gray(r)).concat(Qn.gray.underline(e))}var fx=function(r){return ZN(void 0,void 0,void 0,function(){var e,n,s,a,u,l,d,g;return QN(this,function(f){switch(f.label){case 0:e="Message:",n={traceId:"",catchableError:!1},s=r,a=(0,Yr.getConfig)("analysis"),a!=="disable"&&(n.traceId="".concat((0,Yr.getPid)()).concat(Date.now())),u=r.message?r.message:"";try{l=JSON.parse(u)}catch{}return l&&l.tips?(d=l.message?"Message: ".concat(l.message,`
50
- `):"",g=l.tips?"* ".concat(rx(l.tips.replace(/\n/,`
51
- * `))):"",Yr.logger.log(`
52
- `.concat(Qn.hex("#000").bgYellow("WARNING:"),`
24
+ deps: ${t}}`};var o0={keyword:"dependencies",type:"object",schemaType:"object",error:ut.error,code(r){let[e,t]=c0(r);xf(r,e),Lf(r,t)}};function c0({schema:r}){let e={},t={};for(let n in r){if(n==="__proto__")continue;let s=Array.isArray(r[n])?e:t;s[n]=r[n]}return[e,t]}function xf(r,e=r.schema){let{gen:t,data:n,it:s}=r;if(Object.keys(e).length===0)return;let i=t.let("missing");for(let a in e){let c=e[a];if(c.length===0)continue;let u=(0,Rn.propertyInData)(t,n,a,s.opts.ownProperties);r.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),s.allErrors?t.if(u,()=>{for(let o of c)(0,Rn.checkReportMissingProp)(r,o)}):(t.if((0,ga._)`${u} && (${(0,Rn.checkMissingProp)(r,c,i)})`),(0,Rn.reportMissingProp)(r,i),t.else())}}ut.validatePropertyDeps=xf;function Lf(r,e=r.schema){let{gen:t,data:n,keyword:s,it:i}=r,a=t.name("valid");for(let c in e)(0,a0.alwaysValidSchema)(i,e[c])||(t.if((0,Rn.propertyInData)(t,n,c,i.opts.ownProperties),()=>{let u=r.subschema({keyword:s,schemaProp:c},a);r.mergeValidEvaluated(u,a)},()=>t.var(a,!0)),r.ok(a))}ut.validateSchemaDeps=Lf;ut.default=o0});var Vf=y(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});var Ff=L(),u0=G(),l0={message:"property name must be valid",params:({params:r})=>(0,Ff._)`{propertyName: ${r.propertyName}}`},f0={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:l0,code(r){let{gen:e,schema:t,data:n,it:s}=r;if((0,u0.alwaysValidSchema)(s,t))return;let i=e.name("valid");e.forIn("key",n,a=>{r.setParams({propertyName:a}),r.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},i),e.if((0,Ff.not)(i),()=>{r.error(!0),s.allErrors||e.break()})}),r.ok(i)}};va.default=f0});var ya=y(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});var bs=Ge(),Qe=L(),d0=$t(),Ss=G(),h0={message:"must NOT have additional properties",params:({params:r})=>(0,Qe._)`{additionalProperty: ${r.additionalProperty}}`},p0={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:h0,code(r){let{gen:e,schema:t,parentSchema:n,data:s,errsCount:i,it:a}=r;if(!i)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,Ss.alwaysValidSchema)(a,t))return;let o=(0,bs.allSchemaProperties)(n.properties),l=(0,bs.allSchemaProperties)(n.patternProperties);h(),r.ok((0,Qe._)`${i} === ${d0.default.errors}`);function h(){e.forIn("key",s,w=>{!o.length&&!l.length?$(w):e.if(g(w),()=>$(w))})}function g(w){let b;if(o.length>8){let D=(0,Ss.schemaRefOrVal)(a,n.properties,"properties");b=(0,bs.isOwnProperty)(e,D,w)}else o.length?b=(0,Qe.or)(...o.map(D=>(0,Qe._)`${w} === ${D}`)):b=Qe.nil;return l.length&&(b=(0,Qe.or)(b,...l.map(D=>(0,Qe._)`${(0,bs.usePattern)(r,D)}.test(${w})`))),(0,Qe.not)(b)}function v(w){e.code((0,Qe._)`delete ${s}[${w}]`)}function $(w){if(u.removeAdditional==="all"||u.removeAdditional&&t===!1){v(w);return}if(t===!1){r.setParams({additionalProperty:w}),r.error(),c||e.break();return}if(typeof t=="object"&&!(0,Ss.alwaysValidSchema)(a,t)){let b=e.name("valid");u.removeAdditional==="failing"?(E(w,b,!1),e.if((0,Qe.not)(b),()=>{r.reset(),v(w)})):(E(w,b),c||e.if((0,Qe.not)(b),()=>e.break()))}}function E(w,b,D){let A={keyword:"additionalProperties",dataProp:w,dataPropType:Ss.Type.Str};D===!1&&Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1}),r.subschema(A,b)}}};_a.default=p0});var Gf=y(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var m0=mn(),Uf=Ge(),$a=G(),Hf=ya(),g0={keyword:"properties",type:"object",schemaType:"object",code(r){let{gen:e,schema:t,parentSchema:n,data:s,it:i}=r;i.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Hf.default.code(new m0.KeywordCxt(i,Hf.default,"additionalProperties"));let a=(0,Uf.allSchemaProperties)(t);for(let h of a)i.definedProperties.add(h);i.opts.unevaluated&&a.length&&i.props!==!0&&(i.props=$a.mergeEvaluated.props(e,(0,$a.toHash)(a),i.props));let c=a.filter(h=>!(0,$a.alwaysValidSchema)(i,t[h]));if(c.length===0)return;let u=e.name("valid");for(let h of c)o(h)?l(h):(e.if((0,Uf.propertyInData)(e,s,h,i.opts.ownProperties)),l(h),i.allErrors||e.else().var(u,!0),e.endIf()),r.it.definedProperties.add(h),r.ok(u);function o(h){return i.opts.useDefaults&&!i.compositeRule&&t[h].default!==void 0}function l(h){r.subschema({keyword:"properties",schemaProp:h,dataProp:h},u)}}};Ea.default=g0});var Bf=y(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});var zf=Ge(),Os=L(),Kf=G(),Xf=G(),v0={keyword:"patternProperties",type:"object",schemaType:"object",code(r){let{gen:e,schema:t,data:n,parentSchema:s,it:i}=r,{opts:a}=i,c=(0,zf.allSchemaProperties)(t),u=c.filter(E=>(0,Kf.alwaysValidSchema)(i,t[E]));if(c.length===0||u.length===c.length&&(!i.opts.unevaluated||i.props===!0))return;let o=a.strictSchema&&!a.allowMatchingProperties&&s.properties,l=e.name("valid");i.props!==!0&&!(i.props instanceof Os.Name)&&(i.props=(0,Xf.evaluatedPropsToName)(e,i.props));let{props:h}=i;g();function g(){for(let E of c)o&&v(E),i.allErrors?$(E):(e.var(l,!0),$(E),e.if(l))}function v(E){for(let w in o)new RegExp(E).test(w)&&(0,Kf.checkStrictMode)(i,`property ${w} matches pattern ${E} (use allowMatchingProperties)`)}function $(E){e.forIn("key",n,w=>{e.if((0,Os._)`${(0,zf.usePattern)(r,E)}.test(${w})`,()=>{let b=u.includes(E);b||r.subschema({keyword:"patternProperties",schemaProp:E,dataProp:w,dataPropType:Xf.Type.Str},l),i.opts.unevaluated&&h!==!0?e.assign((0,Os._)`${h}[${w}]`,!0):!b&&!i.allErrors&&e.if((0,Os.not)(l),()=>e.break())})})}}};wa.default=v0});var Wf=y(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var _0=G(),y0={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){let{gen:e,schema:t,it:n}=r;if((0,_0.alwaysValidSchema)(n,t)){r.fail();return}let s=e.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),r.failResult(s,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};ba.default=y0});var Jf=y(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var $0=Ge(),E0={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:$0.validateUnion,error:{message:"must match a schema in anyOf"}};Sa.default=E0});var Yf=y(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var Ps=L(),w0=G(),b0={message:"must match exactly one schema in oneOf",params:({params:r})=>(0,Ps._)`{passingSchemas: ${r.passing}}`},S0={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:b0,code(r){let{gen:e,schema:t,parentSchema:n,it:s}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");if(s.opts.discriminator&&n.discriminator)return;let i=t,a=e.let("valid",!1),c=e.let("passing",null),u=e.name("_valid");r.setParams({passing:c}),e.block(o),r.result(a,()=>r.reset(),()=>r.error(!0));function o(){i.forEach((l,h)=>{let g;(0,w0.alwaysValidSchema)(s,l)?e.var(u,!0):g=r.subschema({keyword:"oneOf",schemaProp:h,compositeRule:!0},u),h>0&&e.if((0,Ps._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Ps._)`[${c}, ${h}]`).else(),e.if(u,()=>{e.assign(a,!0),e.assign(c,h),g&&r.mergeEvaluated(g,Ps.Name)})})}}};Oa.default=S0});var Zf=y(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var O0=G(),P0={keyword:"allOf",schemaType:"array",code(r){let{gen:e,schema:t,it:n}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");let s=e.name("valid");t.forEach((i,a)=>{if((0,O0.alwaysValidSchema)(n,i))return;let c=r.subschema({keyword:"allOf",schemaProp:a},s);r.ok(s),r.mergeEvaluated(c)})}};Pa.default=P0});var td=y(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var Rs=L(),ed=G(),R0={message:({params:r})=>(0,Rs.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,Rs._)`{failingKeyword: ${r.ifClause}}`},C0={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:R0,code(r){let{gen:e,parentSchema:t,it:n}=r;t.then===void 0&&t.else===void 0&&(0,ed.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let s=Qf(n,"then"),i=Qf(n,"else");if(!s&&!i)return;let a=e.let("valid",!0),c=e.name("_valid");if(u(),r.reset(),s&&i){let l=e.let("ifClause");r.setParams({ifClause:l}),e.if(c,o("then",l),o("else",l))}else s?e.if(c,o("then")):e.if((0,Rs.not)(c),o("else"));r.pass(a,()=>r.error(!0));function u(){let l=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);r.mergeEvaluated(l)}function o(l,h){return()=>{let g=r.subschema({keyword:l},c);e.assign(a,c),r.mergeValidEvaluated(g,a),h?e.assign(h,(0,Rs._)`${l}`):r.setParams({ifClause:l})}}}};function Qf(r,e){let t=r.schema[e];return t!==void 0&&!(0,ed.alwaysValidSchema)(r,t)}Ra.default=C0});var rd=y(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var N0=G(),I0={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:e,it:t}){e.if===void 0&&(0,N0.checkStrictMode)(t,`"${r}" without "if" is ignored`)}};Ca.default=I0});var nd=y(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});var A0=fa(),T0=qf(),q0=da(),D0=jf(),j0=kf(),k0=Mf(),x0=Vf(),L0=ya(),M0=Gf(),F0=Bf(),V0=Wf(),U0=Jf(),H0=Yf(),G0=Zf(),z0=td(),K0=rd();function X0(r=!1){let e=[V0.default,U0.default,H0.default,G0.default,z0.default,K0.default,x0.default,L0.default,k0.default,M0.default,F0.default];return r?e.push(T0.default,D0.default):e.push(A0.default,q0.default),e.push(j0.default),e}Na.default=X0});var sd=y(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var oe=L(),B0={message:({schemaCode:r})=>(0,oe.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,oe._)`{format: ${r}}`},W0={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:B0,code(r,e){let{gen:t,data:n,$data:s,schema:i,schemaCode:a,it:c}=r,{opts:u,errSchemaPath:o,schemaEnv:l,self:h}=c;if(!u.validateFormats)return;s?g():v();function g(){let $=t.scopeValue("formats",{ref:h.formats,code:u.code.formats}),E=t.const("fDef",(0,oe._)`${$}[${a}]`),w=t.let("fType"),b=t.let("format");t.if((0,oe._)`typeof ${E} == "object" && !(${E} instanceof RegExp)`,()=>t.assign(w,(0,oe._)`${E}.type || "string"`).assign(b,(0,oe._)`${E}.validate`),()=>t.assign(w,(0,oe._)`"string"`).assign(b,E)),r.fail$data((0,oe.or)(D(),A()));function D(){return u.strictSchema===!1?oe.nil:(0,oe._)`${a} && !${b}`}function A(){let z=l.$async?(0,oe._)`(${E}.async ? await ${b}(${n}) : ${b}(${n}))`:(0,oe._)`${b}(${n})`,C=(0,oe._)`(typeof ${b} == "function" ? ${z} : ${b}.test(${n}))`;return(0,oe._)`${b} && ${b} !== true && ${w} === ${e} && !${C}`}}function v(){let $=h.formats[i];if(!$){D();return}if($===!0)return;let[E,w,b]=A($);E===e&&r.pass(z());function D(){if(u.strictSchema===!1){h.logger.warn(C());return}throw new Error(C());function C(){return`unknown format "${i}" ignored in schema at path "${o}"`}}function A(C){let ge=C instanceof RegExp?(0,oe.regexpCode)(C):u.code.formats?(0,oe._)`${u.code.formats}${(0,oe.getProperty)(i)}`:void 0,De=t.scopeValue("formats",{key:i,ref:C,code:ge});return typeof C=="object"&&!(C instanceof RegExp)?[C.type||"string",C.validate,(0,oe._)`${De}.validate`]:["string",C,De]}function z(){if(typeof $=="object"&&!($ instanceof RegExp)&&$.async){if(!l.$async)throw new Error("async format in sync schema");return(0,oe._)`await ${b}(${n})`}return typeof w=="function"?(0,oe._)`${b}(${n})`:(0,oe._)`${b}.test(${n})`}}}};Ia.default=W0});var id=y(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});var J0=sd(),Y0=[J0.default];Aa.default=Y0});var ad=y(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.contentVocabulary=wr.metadataVocabulary=void 0;wr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];wr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var cd=y(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var Z0=mf(),Q0=Nf(),e$=nd(),t$=id(),od=ad(),r$=[Z0.default,Q0.default,(0,e$.default)(),t$.default,od.metadataVocabulary,od.contentVocabulary];Ta.default=r$});var ud=y(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.DiscrError=void 0;var n$;(function(r){r.Tag="tag",r.Mapping="mapping"})(n$=Cn.DiscrError||(Cn.DiscrError={}))});var fd=y(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var br=L(),qa=ud(),ld=fs(),s$=G(),i$={message:({params:{discrError:r,tagName:e}})=>r===qa.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:r,tag:e,tagName:t}})=>(0,br._)`{error: ${r}, tag: ${t}, tagValue: ${e}}`},a$={keyword:"discriminator",type:"object",schemaType:"object",error:i$,code(r){let{gen:e,data:t,schema:n,parentSchema:s,it:i}=r,{oneOf:a}=s;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=e.let("valid",!1),o=e.const("tag",(0,br._)`${t}${(0,br.getProperty)(c)}`);e.if((0,br._)`typeof ${o} == "string"`,()=>l(),()=>r.error(!1,{discrError:qa.DiscrError.Tag,tag:o,tagName:c})),r.ok(u);function l(){let v=g();e.if(!1);for(let $ in v)e.elseIf((0,br._)`${o} === ${$}`),e.assign(u,h(v[$]));e.else(),r.error(!1,{discrError:qa.DiscrError.Mapping,tag:o,tagName:c}),e.endIf()}function h(v){let $=e.name("valid"),E=r.subschema({keyword:"oneOf",schemaProp:v},$);return r.mergeEvaluated(E,br.Name),$}function g(){var v;let $={},E=b(s),w=!0;for(let z=0;z<a.length;z++){let C=a[z];(C==null?void 0:C.$ref)&&!(0,s$.schemaHasRulesButRef)(C,i.self.RULES)&&(C=ld.resolveRef.call(i.self,i.schemaEnv,i.baseId,C==null?void 0:C.$ref),C instanceof ld.SchemaEnv&&(C=C.schema));let ge=(v=C==null?void 0:C.properties)===null||v===void 0?void 0:v[c];if(typeof ge!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);w=w&&(E||b(C)),D(ge,z)}if(!w)throw new Error(`discriminator: "${c}" must be required`);return $;function b({required:z}){return Array.isArray(z)&&z.includes(c)}function D(z,C){if(z.const)A(z.const,C);else if(z.enum)for(let ge of z.enum)A(ge,C);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function A(z,C){if(typeof z!="string"||z in $)throw new Error(`discriminator: "${c}" values must be unique strings`);$[z]=C}}}};Da.default=a$});var dd=y((Ub,o$)=>{o$.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var md=y((le,pd)=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.CodeGen=le.Name=le.nil=le.stringify=le.str=le._=le.KeywordCxt=void 0;var c$=uf(),u$=cd(),l$=fd(),hd=dd(),f$=["/properties"],Cs="http://json-schema.org/draft-07/schema",ja=class extends c$.default{_addVocabularies(){super._addVocabularies(),u$.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(l$.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(hd,f$):hd;this.addMetaSchema(e,Cs,!1),this.refs["http://json-schema.org/schema"]=Cs}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Cs)?Cs:void 0)}};pd.exports=le=ja;Object.defineProperty(le,"__esModule",{value:!0});le.default=ja;var d$=mn();Object.defineProperty(le,"KeywordCxt",{enumerable:!0,get:function(){return d$.KeywordCxt}});var Sr=L();Object.defineProperty(le,"_",{enumerable:!0,get:function(){return Sr._}});Object.defineProperty(le,"str",{enumerable:!0,get:function(){return Sr.str}});Object.defineProperty(le,"stringify",{enumerable:!0,get:function(){return Sr.stringify}});Object.defineProperty(le,"nil",{enumerable:!0,get:function(){return Sr.nil}});Object.defineProperty(le,"Name",{enumerable:!0,get:function(){return Sr.Name}});Object.defineProperty(le,"CodeGen",{enumerable:!0,get:function(){return Sr.CodeGen}})});var Zt=y(Or=>{"use strict";var h$=Or&&Or.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Or,"__esModule",{value:!0});Or.ServerlessError=void 0;var p$=h$(yt()),m$=p$.default.Logger,g$=new m$("S-CLI-ERROR"),v$=function(){function r(e,t,n){g$.error(e+": "+t,n),process.exit(1)}return r}();Or.ServerlessError=v$});var gd=y(Pr=>{"use strict";var _$=Pr&&Pr.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Pr,"__esModule",{value:!0});Pr.CommandError=void 0;var y$=Zt(),$$=function(r){_$(e,r);function e(t,n){return r.call(this,"Error",t,n)||this}return e}(y$.ServerlessError);Pr.CommandError=$$});var vd=y(Rr=>{"use strict";var E$=Rr&&Rr.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Rr,"__esModule",{value:!0});Rr.ConfigDeleteError=void 0;var w$=Zt(),b$=function(r){E$(e,r);function e(t,n){return r.call(this,"Deletion failed",t,n)||this}return e}(w$.ServerlessError);Rr.ConfigDeleteError=b$});var _d=y(Cr=>{"use strict";var S$=Cr&&Cr.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Cr,"__esModule",{value:!0});Cr.ConfigError=void 0;var O$=Zt(),P$=function(r){S$(e,r);function e(t,n){return r.call(this,"Config failed",t,n)||this}return e}(O$.ServerlessError);Cr.ConfigError=P$});var yd=y(Nr=>{"use strict";var R$=Nr&&Nr.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Nr,"__esModule",{value:!0});Nr.ConfigGetError=void 0;var C$=Zt(),N$=function(r){R$(e,r);function e(t,n){return r.call(this,"Get failed",t,n)||this}return e}(C$.ServerlessError);Nr.ConfigGetError=N$});var $d=y(Ir=>{"use strict";var I$=Ir&&Ir.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ir,"__esModule",{value:!0});Ir.InitError=void 0;var A$=Zt(),T$=function(r){I$(e,r);function e(t,n){return r.call(this,"Initialization failed",t,n)||this}return e}(A$.ServerlessError);Ir.InitError=T$});var wd=y(lt=>{"use strict";var q$=lt&&lt.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function c(l){try{o(n.next(l))}catch(h){a(h)}}function u(l){try{o(n.throw(l))}catch(h){a(h)}}function o(l){l.done?i(l.value):s(l.value).then(c,u)}o((n=n.apply(r,e||[])).next())})},D$=lt&&lt.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(o){return function(l){return u([o,l])}}function u(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(l){o=[6,l],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},j$=lt&&lt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(lt,"__esModule",{value:!0});lt.HumanError=void 0;var Ed=j$(yt()),k$=Yn(),x$=Ed.default.colors,L$=function(){function r(e){var t=e.errorMessage,n=e.tips;this.errorMessage=t,console.log(`
25
+ `.concat((0,k$.bgRed)("ERROR:"))),console.log("TypeError: ".concat(t,`
26
+ `)),n&&console.log("".concat(x$.gray(n),`
27
+ `))}return r.prototype.report=function(e){return q$(this,void 0,void 0,function(){var t;return D$(this,function(n){switch(n.label){case 0:return t=e.error,[4,Ed.default.report({type:"jsError",content:"".concat(this.errorMessage,"||").concat(t.stack)})];case 1:return n.sent(),[2]}})})},r}();lt.HumanError=L$});var Sd=y(Ar=>{"use strict";var M$=Ar&&Ar.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ar,"__esModule",{value:!0});Ar.HumanWarning=void 0;var F$=M$(yt()),bd=F$.default.colors,V$=function(){function r(e){var t=e.warningMessage,n=e.tips;console.log(`
28
+ `.concat(bd.hex("#000").bgYellow("WARNING:"))),console.log("".concat(t,`
29
+ `)),n&&console.log("".concat(bd.gray(n),`
30
+ `))}return r}();Ar.HumanWarning=V$});var Od=y(Q=>{"use strict";var U$=Q&&Q.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function c(l){try{o(n.next(l))}catch(h){a(h)}}function u(l){try{o(n.throw(l))}catch(h){a(h)}}function o(l){l.done?i(l.value):s(l.value).then(c,u)}o((n=n.apply(r,e||[])).next())})},H$=Q&&Q.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(o){return function(l){return u([o,l])}}function u(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(l){o=[6,l],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},G$=Q&&Q.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Q,"__esModule",{value:!0});Q.HandleError=Q.HumanWarning=Q.HumanError=Q.ServerlessError=Q.InitError=Q.ConfigGetError=Q.ConfigError=Q.ConfigDeleteError=Q.CommandError=void 0;var ft=li(),Ns=G$(yt()),Dt=Ns.default.colors,z$=Ns.default.report,ka=Ns.default.isDebugMode,K$=Ns.default.makeUnderLine,X$=gd();Object.defineProperty(Q,"CommandError",{enumerable:!0,get:function(){return X$.CommandError}});var B$=vd();Object.defineProperty(Q,"ConfigDeleteError",{enumerable:!0,get:function(){return B$.ConfigDeleteError}});var W$=_d();Object.defineProperty(Q,"ConfigError",{enumerable:!0,get:function(){return W$.ConfigError}});var J$=yd();Object.defineProperty(Q,"ConfigGetError",{enumerable:!0,get:function(){return J$.ConfigGetError}});var Y$=$d();Object.defineProperty(Q,"InitError",{enumerable:!0,get:function(){return Y$.InitError}});var Z$=Zt();Object.defineProperty(Q,"ServerlessError",{enumerable:!0,get:function(){return Z$.ServerlessError}});var Q$=wd();Object.defineProperty(Q,"HumanError",{enumerable:!0,get:function(){return Q$.HumanError}});var eE=Sd();Object.defineProperty(Q,"HumanWarning",{enumerable:!0,get:function(){return eE.HumanWarning}});function xa(r,e){return"".concat(Dt.gray(r)).concat(Dt.gray.underline(e))}var tE=function(r){return U$(void 0,void 0,void 0,function(){var e,t,n,s,i,a,c,u;return H$(this,function(o){switch(o.label){case 0:e="Message:",t={traceId:"",catchableError:!1},n=r,s=(0,ft.getConfig)("analysis"),s!=="disable"&&(t.traceId="".concat((0,ft.getPid)()).concat(Date.now())),i=r.message?r.message:"";try{a=JSON.parse(i)}catch{}return a&&a.tips?(c=a.message?"Message: ".concat(a.message,`
31
+ `):"",u=a.tips?"* ".concat(K$(a.tips.replace(/\n/,`
32
+ * `))):"",ft.logger.log(`
33
+ `.concat(Dt.hex("#000").bgYellow("WARNING:"),`
53
34
  ======================
54
- `).concat(g,`
55
- `),"yellow"),eh()?console.log(r.stack):console.log(Qn.grey(d)),n.catchableError=!0,s=l,[3,5]):[3,1];case 1:return l&&l.code?(console.log((0,Yr.red)("\u2716 ".concat(l.prefix||e,`
56
- `))),console.log("".concat((0,Yr.bgRed)("ERROR:"),`
57
- `)),eh()?console.log("".concat(l.stack,`
58
- `)):console.log("".concat(l.message,`
59
- `)),[4,(0,Yr.aiRequest)(l.message)]):[3,3];case 2:return f.sent(),s=l,[3,5];case 3:return console.log((0,Yr.red)("\u2716 ".concat(e,`
60
- `))),console.log("".concat((0,Yr.bgRed)("ERROR:"),`
61
- `)),console.log(eh()?r.stack:"".concat(u,`
62
- `)),[4,(0,Yr.aiRequest)(u)];case 4:f.sent(),f.label=5;case 5:return n.catchableError||(n.traceId&&console.log(Qn.gray("TraceId: ".concat(n.traceId))),console.log(Qn.gray("Environment: ".concat((0,Yr.getVersion)()))),console.log(th("Documents: ","https://www.serverless-devs.com")),console.log(th("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(th("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
63
- `)),n.traceId&&console.log(Qn.gray("Please copy traceId: ".concat(n.traceId," and join Dingding group: 33947367 for consultation.")))),console.log(Qn.gray("You can run 's clean --all' to clean Serverless devs.")),n.traceId&&!n.catchableError?[4,tx({type:"jsError",content:"".concat(s.message,"||").concat(s.stack),traceId:n.traceId})]:[3,7];case 6:f.sent(),f.label=7;case 7:return process.exit(s.code||1),[2]}})})};Le.HandleError=fx});var N0=exports&&exports.__awaiter||function(r,e,n,s){function a(u){return u instanceof n?u:new n(function(l){l(u)})}return new(n||(n=Promise))(function(u,l){function d(_){try{f(s.next(_))}catch(w){l(w)}}function g(_){try{f(s.throw(_))}catch(w){l(w)}}function f(_){_.done?u(_.value):a(_.value).then(d,g)}f((s=s.apply(r,e||[])).next())})},x0=exports&&exports.__generator||function(r,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},s,a,u,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(f){return function(_){return g([f,_])}}function g(f){if(s)throw new TypeError("Generator is already executing.");for(;n;)try{if(s=1,a&&(u=f[0]&2?a.return:f[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,f[1])).done)return u;switch(a=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,a=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){n.label=f[1];break}if(f[0]===6&&n.label<u[1]){n.label=u[1],u=f;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(f);break}u[2]&&n.ops.pop(),n.trys.pop();continue}f=e.call(r,n)}catch(_){f=[6,_],a=0}finally{s=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},ko=exports&&exports.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0});var hx=ko(Rp()),wn=ko(yn()),dx=ko(bl()),ws=Al(),px=ko(require("path")),mx=ko($0()),gx=T0(),rh=wn.default.colors,_x=wn.default.getYamlContent,Ut=wn.default.lodash,vx=wn.default.loadComponent,yx=wn.default.fse,Ex=wn.default.parseYaml,$x=wn.default.spinner,D0=Ut.get,wx=Ut.keys,bx=Ut.omit,Sx=Ut.isEmpty,Ox=Ut.replace,q0=Ut.isPlainObject,nh=Ut.isArray,L0=Ut.each,Rx=Ut.last,Ax=Ut.split,Px=Ut.uniq,M0=Ut.map,Cx=Ut.concat,F0=Ut.filter,Ix=`Application verification.
35
+ `).concat(u,`
36
+ `),"yellow"),ka()?console.log(r.stack):console.log(Dt.grey(c)),t.catchableError=!0,n=a,[3,5]):[3,1];case 1:return a&&a.code?(console.log((0,ft.red)("\u2716 ".concat(a.prefix||e,`
37
+ `))),console.log("".concat((0,ft.bgRed)("ERROR:"),`
38
+ `)),ka()?console.log("".concat(a.stack,`
39
+ `)):console.log("".concat(a.message,`
40
+ `)),[4,(0,ft.aiRequest)(a.message)]):[3,3];case 2:return o.sent(),n=a,[3,5];case 3:return console.log((0,ft.red)("\u2716 ".concat(e,`
41
+ `))),console.log("".concat((0,ft.bgRed)("ERROR:"),`
42
+ `)),console.log(ka()?r.stack:"".concat(i,`
43
+ `)),[4,(0,ft.aiRequest)(i)];case 4:o.sent(),o.label=5;case 5:return t.catchableError||(t.traceId&&console.log(Dt.gray("TraceId: ".concat(t.traceId))),console.log(Dt.gray("Environment: ".concat((0,ft.getVersion)()))),console.log(xa("Documents: ","https://www.serverless-devs.com")),console.log(xa("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(xa("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
44
+ `)),t.traceId&&console.log(Dt.gray("Please copy traceId: ".concat(t.traceId," and join Dingding group: 33947367 for consultation.")))),console.log(Dt.gray("You can run 's clean --all' to clean Serverless devs.")),t.traceId&&!t.catchableError?[4,z$({type:"jsError",content:"".concat(n.message,"||").concat(n.stack),traceId:t.traceId})]:[3,7];case 6:o.sent(),o.label=7;case 7:return process.exit(n.code||1),[2]}})})};Q.HandleError=tE});var Pd=exports&&exports.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function c(l){try{o(n.next(l))}catch(h){a(h)}}function u(l){try{o(n.throw(l))}catch(h){a(h)}}function o(l){l.done?i(l.value):s(l.value).then(c,u)}o((n=n.apply(r,e||[])).next())})},Rd=exports&&exports.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(o){return function(l){return u([o,l])}}function u(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(l){o=[6,l],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Nn=exports&&exports.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0});var rE=Nn(_o()),wt=Nn(yt()),nE=Nn(ai()),Tr=li(),sE=Nn(require("path")),iE=Nn(md()),aE=Od(),La=wt.default.colors,oE=wt.default.getYamlContent,Ie=wt.default.lodash,cE=wt.default.loadComponent,uE=wt.default.fse,lE=wt.default.parseYaml,fE=wt.default.spinner,Cd=Ie.get,dE=Ie.keys,hE=Ie.omit,pE=Ie.isEmpty,mE=Ie.replace,Nd=Ie.isPlainObject,Ma=Ie.isArray,Id=Ie.each,gE=Ie.last,vE=Ie.split,_E=Ie.uniq,Ad=Ie.map,yE=Ie.concat,Td=Ie.filter,$E=`Application verification.
64
45
 
65
46
  Example:
66
47
  $ s verify
67
48
 
68
- `.concat((0,ws.emoji)("\u{1F4D6}")," Document: ").concat(rh.underline("https://github.com/Serverless-Devs/Serverless-Devs/tree/master/docs/zh/command/verify.md")),Tx=hx.default.name("s verify").usage("[options]").option("-t, --template [templatePath]","Specify the template file").helpOption("-h, --help",(0,dx.default)("display_help_for_command")).description(Ix).addHelpCommand(!1).parse(process.argv);function j0(r){var e=nh(r)?[]:{};if(typeof r=="object"){var n=wx(r).filter(function(u){return u.startsWith("x-")}),s=bx(r,n);for(var a in s)e[a]=typeof r[a]=="object"?j0(r[a]):r[a]}else e=r;return e}function Nx(r){var e=j0(r),n=[];function s(u,l){if(l===void 0&&(l=""),q0(u)){if(u.required===!0){var d=Ax(l,"."),g=d.slice(0,d.length-2).join(".");n.push({key:g,name:Rx(d)})}typeof u.required=="boolean"&&delete u.required,l!==""&&(l="".concat(l,"."));for(var f in u)s(u[f],"".concat(l).concat(f))}nh(u)&&L0(u,function(_,w){s(_,"".concat(l,"[").concat(w,"]"))})}function a(u,l){if(l===void 0&&(l=""),q0(u)){var d=F0(n,function(_){return _.key===l});if(d.length>0){var g=M0(d,function(_){return _.name});u.required=u.required?Px(Cx(u.required,g)):g}l!==""&&(l="".concat(l,"."));for(var f in u)a(u[f],"".concat(l).concat(f))}nh(u)&&L0(u,function(_,w){a(_,"".concat(l,"[").concat(w,"]"))})}return s(e),a(e),e}(function(){return N0(void 0,void 0,void 0,function(){var r,e,n,s,a,u,l,d,g,f,_,w,R,A,x,L,j,F,Z,K,ue,z,Ve,ct,qr,Ct;return x0(this,function(xe){switch(xe.label){case 0:return r=(0,ws.getProcessArgv)(),e=r.help,n=r.template,e&&Tx.help(),[4,wn.default.getTemplatePath(n)];case 1:return s=xe.sent(),[4,wn.default.transforYamlPath(s)];case 2:a=xe.sent(),u=yx.readFileSync(a,"utf8"),l=Ex(u),d=l.services,g=[];for(f in d)_=d[f],g.push({component:_.component,props:_.props,service:f});w=[],R=0,A=g,xe.label=3;case 3:return R<A.length?(x=A[R],[4,vx(x.component)]):[3,7];case 4:return L=xe.sent(),[4,_x(px.default.join(L.__path,"publish.yaml"))];case 5:if(j=xe.sent(),F=D0(j,"Properties",{}),Sx(F.properties))return[3,6];if(Z=new mx.default({strict:!1}),K=Z.compile(Nx(F)),ue=K(x.props),!ue)return w.push(!0),z=K.errors,Ve=F0(z,function(It){return It.keyword!=="oneOf"}),ws.logger.log("".concat((0,ws.red)("\u2716")," Format verification failed.")),ct=D0(Ve,"[0].instancePath"),ct&&(qr=Ox(ct.slice(1),/\//g,"."),ws.logger.log("The ".concat(rh.yellow(qr)," field under ").concat(rh.yellow(x.service),` service is incorrect.
69
- `))),Ct=M0(Ve,function(It){return{message:It.message,params:It.params}}),ws.logger.output(Ct.length>1?Ct:Ct[0]),[3,7];xe.label=6;case 6:return R++,[3,3];case 7:return w.length===0&&$x("Format verification passed.").succeed(),[2]}})})})().catch(function(r){return N0(void 0,void 0,void 0,function(){return x0(this,function(e){switch(e.label){case 0:return[4,(0,gx.HandleError)(r)];case 1:return e.sent(),[2]}})})});
70
- /**
71
- * @license
72
- * Lodash <https://lodash.com/>
73
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
74
- * Released under MIT license <https://lodash.com/license>
75
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
76
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
77
- */
49
+ `.concat((0,Tr.emoji)("\u{1F4D6}")," Document: ").concat(La.underline("https://github.com/Serverless-Devs/Serverless-Devs/tree/master/docs/zh/command/verify.md")),EE=rE.default.name("s verify").usage("[options]").option("-t, --template [templatePath]","Specify the template file").helpOption("-h, --help",(0,nE.default)("display_help_for_command")).description($E).addHelpCommand(!1).parse(process.argv);function qd(r){var e=Ma(r)?[]:{};if(typeof r=="object"){var t=dE(r).filter(function(i){return i.startsWith("x-")}),n=hE(r,t);for(var s in n)e[s]=typeof r[s]=="object"?qd(r[s]):r[s]}else e=r;return e}function wE(r){var e=qd(r),t=[];function n(i,a){if(a===void 0&&(a=""),Nd(i)){if(i.required===!0){var c=vE(a,"."),u=c.slice(0,c.length-2).join(".");t.push({key:u,name:gE(c)})}typeof i.required=="boolean"&&delete i.required,a!==""&&(a="".concat(a,"."));for(var o in i)n(i[o],"".concat(a).concat(o))}Ma(i)&&Id(i,function(l,h){n(l,"".concat(a,"[").concat(h,"]"))})}function s(i,a){if(a===void 0&&(a=""),Nd(i)){var c=Td(t,function(l){return l.key===a});if(c.length>0){var u=Ad(c,function(l){return l.name});i.required=i.required?_E(yE(i.required,u)):u}a!==""&&(a="".concat(a,"."));for(var o in i)s(i[o],"".concat(a).concat(o))}Ma(i)&&Id(i,function(l,h){s(l,"".concat(a,"[").concat(h,"]"))})}return n(e),s(e),e}(function(){return Pd(void 0,void 0,void 0,function(){var r,e,t,n,s,i,a,c,u,o,l,h,g,v,$,E,w,b,D,A,z,C,ge,De,bt,je;return Rd(this,function(te){switch(te.label){case 0:return r=(0,Tr.getProcessArgv)(),e=r.help,t=r.template,e&&EE.help(),[4,wt.default.getTemplatePath(t)];case 1:return n=te.sent(),[4,wt.default.transforYamlPath(n)];case 2:s=te.sent(),i=uE.readFileSync(s,"utf8"),a=lE(i),c=a.services,u=[];for(o in c)l=c[o],u.push({component:l.component,props:l.props,service:o});h=[],g=0,v=u,te.label=3;case 3:return g<v.length?($=v[g],[4,cE($.component)]):[3,7];case 4:return E=te.sent(),[4,oE(sE.default.join(E.__path,"publish.yaml"))];case 5:if(w=te.sent(),b=Cd(w,"Properties",{}),pE(b.properties))return[3,6];if(D=new iE.default({strict:!1}),A=D.compile(wE(b)),z=A($.props),!z)return h.push(!0),C=A.errors,ge=Td(C,function(ke){return ke.keyword!=="oneOf"}),Tr.logger.log("".concat((0,Tr.red)("\u2716")," Format verification failed.")),De=Cd(ge,"[0].instancePath"),De&&(bt=mE(De.slice(1),/\//g,"."),Tr.logger.log("The ".concat(La.yellow(bt)," field under ").concat(La.yellow($.service),` service is incorrect.
50
+ `))),je=Ad(ge,function(ke){return{message:ke.message,params:ke.params}}),Tr.logger.output(je.length>1?je:je[0]),[3,7];te.label=6;case 6:return g++,[3,3];case 7:return h.length===0&&fE("Format verification passed.").succeed(),[2]}})})})().catch(function(r){return Pd(void 0,void 0,void 0,function(){return Rd(this,function(e){switch(e.label){case 0:return[4,(0,aE.HandleError)(r)];case 1:return e.sent(),[2]}})})});
78
51
  /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */