@fugood/bricks-cli 2.25.0-beta.60 → 2.25.0-beta.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/759.js ADDED
@@ -0,0 +1 @@
1
+ export const __rspack_esm_id=759;export const __rspack_esm_ids=[759];export const __webpack_modules__={22658(t,e,s){s.d(e,{FileBlob:()=>h});var a=s(79896),r=s(91943),i=s(2203),n=s(87016),h=class extends Blob{static async create(t){t=t instanceof URL?(0,n.fileURLToPath)(t):t;let{size:e}=await (0,r.stat)(t);return new h(t,0,e)}path;start;end;constructor(t,e,s){super(),this.path=t,this.start=e,this.end=s}get size(){return this.end-this.start}slice(t=0,e=this.size){return(t<0||e<0)&&TypeError("Unsupported negative start/end on FileBlob.slice"),new h(this.path,this.start+t,Math.min(this.start+e,this.end))}async arrayBuffer(){return(await this.execute(t=>t.read(Buffer.alloc(this.size),0,this.size,this.start))).buffer}async text(){return(await this.arrayBuffer()).toString("utf8")}stream(){return i.Readable.toWeb((0,a.createReadStream)(this.path,{start:this.start,end:this.end-1}))}async execute(t){let e=await (0,r.open)(this.path,"r");try{return await t(e)}finally{await e.close()}}}}};
package/lib/785.js ADDED
@@ -0,0 +1 @@
1
+ export const __rspack_esm_id=785;export const __rspack_esm_ids=[785];export const __webpack_modules__={20124(e,t,r){let s;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let s=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(s++,"%c"===e&&(o=s))}),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"u">typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),s=!1,t.destroy=()=>{s||(s=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(27891)(t);let{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},27891(e,t,r){e.exports=function(e){function t(e){let r,o,n,i=null;function c(...e){if(!c.enabled)return;let s=Number(new Date);c.diff=s-(r||s),c.prev=r,c.curr=s,r=s,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,s)=>{if("%%"===r)return"%";o++;let n=t.formatters[s];if("function"==typeof n){let t=e[o];r=n.call(c,t),e.splice(o,1),o--}return r}),t.formatArgs.call(c,e),(c.log||t.log).apply(c,e)}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=s,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(o!==t.namespaces&&(o=t.namespaces,n=t.enabled(e)),n),set:e=>{i=e}}),"function"==typeof t.init&&t.init(c),c}function s(e,r){let s=t(this.namespace+(void 0===r?":":r)+e);return s.log=this.log,s}function o(e,t){let r=0,s=0,o=-1,n=0;for(;r<e.length;)if(s<t.length&&(t[s]===e[r]||"*"===t[s]))"*"===t[s]?(o=s,n=r):r++,s++;else{if(-1===o)return!1;s=o+1,r=++n}for(;s<t.length&&"*"===t[s];)s++;return s===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(o(e,r))return!1;for(let r of t.names)if(o(e,r))return!0;return!1},t.humanize=r(27250),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},3680(e,t,r){"u"<typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=r(20124):e.exports=r(85038)},85038(e,t,r){let s=r(52018),o=r(39023);t.init=function(e){e.inspectOpts={};let r=Object.keys(t.inspectOpts);for(let s=0;s<r.length;s++)e.inspectOpts[r[s]]=t.inspectOpts[r[s]]},t.log=function(...e){return process.stderr.write(o.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(r){let{namespace:s,useColors:o}=this;if(o){let t=this.color,o="\x1b[3"+(t<8?t:"8;5;"+t),n=` ${o};1m${s} \u001B[0m`;r[0]=n+r[0].split("\n").join("\n"+n),r.push(o+"m+"+e.exports.humanize(this.diff)+"\x1b[0m")}else r[0]=(t.inspectOpts.hideDate?"":new Date().toISOString()+" ")+s+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:s.isatty(process.stderr.fd)},t.destroy=o.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{let e=r(35600);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),s=process.env[t];return s=!!/^(yes|on|true|enabled)$/i.test(s)||!/^(no|off|false|disabled)$/i.test(s)&&("null"===s?null:Number(s)),e[r]=s,e},{}),e.exports=r(27891)(t);let{formatters:n}=e.exports;n.o=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},n.O=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts)}},56071(e){e.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":1===e.length?"-":"--",s=t.indexOf(r+e),o=t.indexOf("--");return -1!==s&&(-1===o||s<o)}},27250(e){function t(e,t,r,s){return Math.round(e/r)+" "+s+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var s,o,n,i,c=typeof e;if("string"===c&&e.length>0){var a=e;if(!((a=String(a)).length>100)){var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(l){var u=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*u;case"weeks":case"week":case"w":return 6048e5*u;case"days":case"day":case"d":return 864e5*u;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*u;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*u;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:break}}}return}if("number"===c&&isFinite(e)){return r.long?(o=Math.abs(s=e))>=864e5?t(s,o,864e5,"day"):o>=36e5?t(s,o,36e5,"hour"):o>=6e4?t(s,o,6e4,"minute"):o>=1e3?t(s,o,1e3,"second"):s+" ms":(i=Math.abs(n=e))>=864e5?Math.round(n/864e5)+"d":i>=36e5?Math.round(n/36e5)+"h":i>=6e4?Math.round(n/6e4)+"m":i>=1e3?Math.round(n/1e3)+"s":n+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},35600(e,t,r){let s,o=r(70857),n=r(52018),i=r(56071),{env:c}=process;function a(e,t={}){var r;return 0!==(r=function(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=function(){if("FORCE_COLOR"in c)return"true"===c.FORCE_COLOR?1:"false"===c.FORCE_COLOR?0:0===c.FORCE_COLOR.length?1:Math.min(Number.parseInt(c.FORCE_COLOR,10),3)}();void 0!==n&&(s=n);let a=r?s:n;if(0===a)return 0;if(r){if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2}if(e&&!t&&void 0===a)return 0;let l=a||0;if("dumb"===c.TERM)return l;if("win32"===process.platform){let e=o.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in c)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(e=>e in c)||"codeship"===c.CI_NAME?1:l;if("TEAMCITY_VERSION"in c)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c.TEAMCITY_VERSION);if("truecolor"===c.COLORTERM)return 3;if("TERM_PROGRAM"in c){let e=Number.parseInt((c.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(c.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c.TERM)||"COLORTERM"in c?1:l}(e,{streamIsTTY:e&&e.isTTY,...t}))&&{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}i("no-color")||i("no-colors")||i("color=false")||i("color=never")?s=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(s=1),e.exports={supportsColor:a,stdout:a({isTTY:n.isatty(1)}),stderr:a({isTTY:n.isatty(2)})}}};
package/lib/818.js ADDED
@@ -0,0 +1 @@
1
+ export const __rspack_esm_id=818;export const __rspack_esm_ids=[818];export const __webpack_modules__={53241(e,t,r){r.r(t),r.d(t,{detectChannel:()=>i,detectInstallMethod:()=>o});var a=r(73024),n=r(76760),s=r(48161),l=e=>{if(!e)return e;try{return a.realpathSync(e)}catch{return e}},i=({version:e,execPath:t}={})=>{var r=t||process.execPath;return r&&/[\\/]bricks-beta(?:\.exe)?$/i.test(r)||/-(beta|alpha|rc|next)\b/i.test(e||"2.25.0-beta.62")?"beta":"release"},o=({execPath:e=process.execPath,scriptPath:t=process.argv[1],homeDir:r=s.homedir(),realpath:a=l}={})=>{let i;var o=(i=e)?n.basename(i).replace(/\.exe$/i,""):"";if("bricks"===o||"bricks-beta"===o)return{method:"binary",execPath:e,installDir:n.dirname(e)};var c=a(t),p=((e,t)=>{if(!e)return null;var r=n.sep,a=`${r}node_modules${r}${t.replace(/\//g,r)}${r}`,s=e.indexOf(a);return -1===s?null:e.slice(0,s)})(c,"@fugood/bricks-cli");if(p){var b=n.sep,d=n.join(r,".bun","install","global");return p===d||p.startsWith(d+b)?{method:"bun",installRoot:p}:/[\\/](?:\.pnpm|pnpm[\\/]global)[\\/]/.test(p)?{method:"pnpm",installRoot:p}:/[\\/](?:\.yarn|yarn[\\/]global)[\\/]/.test(p)?{method:"yarn",installRoot:p}:{method:"npm",installRoot:p.endsWith(`${b}lib`)?p.slice(0,-`${b}lib`.length):p}}return{method:"unknown",execPath:e,scriptPath:c}}}};
package/lib/831.js ADDED
@@ -0,0 +1 @@
1
+ export const __rspack_esm_id=831;export const __rspack_esm_ids=[831];export const __webpack_modules__={60450(e,r,i){i.r(r),i.d(r,{buildScreenshotUrl:()=>p,downloadScreenshot:()=>_,fetchAndSaveScreenshot:()=>f,getDeviceScreenshot:()=>y,getSystemMediaBoxId:()=>h,isMediaEnabled:()=>c});var t,n,o,a=i(99436),s=i(79657),l=i(73024),u=i(76760),d=i(48161),c=e=>e?.media_resource?.enable_media_workspace===!0,h=e=>c(e)&&e.media_resource?.system_media_box_id||null,y=(t=a(function*(e,r,i){var t=yield e.mediaFiles({boxId:r,userTags:[`bricks_screenshot_${i}`],limit:1});return t?.[0]||null}),function(e,r,i){return t.apply(this,arguments)}),p=(e,{preferThumbnail:r=!1}={})=>{if(!e?.meta?.storageEndpoint)return null;var i=e.meta,t=i.storageEndpoint,n=i.originalFileKey,o=(r?(e=>{var r=e?.meta;if(!r)return null;if("Video"===e.fileType&&r.videoThumbOriginalFileKey)return r.videoThumbOriginalFileKey;var i=r.imageVersions||[];if(!Array.isArray(i)||0===i.length)return null;var t=i.filter(e=>e?.strategy==="BOUNDED"&&"number"==typeof e.width).sort((e,r)=>e.width-r.width);return(t[0]||i[0])?.key||null})(e):null)||n;return o?`${t}/${o}`:null},_=(n=a(function*(e,r=null){var i=yield(0,s.Ay)(e);if(!i.ok)throw Error(`Failed to download screenshot: ${i.statusText}`);var t=yield i.buffer(),n=r||u.join(d.tmpdir(),`bricks-screenshot-${Date.now()}.png`),o=u.dirname(n);return l.existsSync(o)||l.mkdirSync(o,{recursive:!0}),l.writeFileSync(n,t),n}),function(e){return n.apply(this,arguments)}),f=(o=a(function*(e,r,i,t=null,n={}){var o=h(r);if(!o)return{error:"Media workspace not enabled for this workspace"};var a=yield y(e,o,i);if(!a)return{error:"No screenshot available for this device"};var s=p(a,n);return s?{path:yield _(s,t),file:a,url:s}:{error:"Could not build screenshot URL"}}),function(e,r,i){return o.apply(this,arguments)})}};
package/lib/866.js ADDED
@@ -0,0 +1,7 @@
1
+ export const __rspack_esm_id=866;export const __rspack_esm_ids=[866];export const __webpack_modules__={11601(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;let a=r(65319),s=r(2431),o=r(11672),i=r(33928),n=["/properties"],l="http://json-schema.org/draft-07/schema";class c extends a.default{_addVocabularies(){super._addVocabularies(),s.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(i,n):i;this.addMetaSchema(e,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=r(96223);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=r(17898);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var f=r(95031);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var h=r(85748);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})},83277(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class a extends r{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=a;class s extends r{constructor(e){super(),this._items="string"==typeof e?[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 null!=(e=this._str)?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!=(e=this._names)?e:this._names=this._items.reduce((e,t)=>(t instanceof a&&(e[t.str]=(e[t.str]||0)+1),e),{})}}function o(e,...t){let r=[e[0]],a=0;for(;a<t.length;)l(r,t[a]),r.push(e[++a]);return new s(r)}t._Code=s,t.nil=new s(""),t._=o;let i=new s("+");function n(e,...t){let r=[c(e[0])],o=0;for(;o<t.length;)r.push(i),l(r,t[o]),r.push(i,c(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===i){var r,s;let o=(r=e[t-1],'""'===(s=e[t+1])?r:'""'===r?s:"string"==typeof r?s instanceof a||'"'!==r[r.length-1]?void 0:"string"!=typeof s?`${r.slice(0,-1)}${s}"`:'"'===s[0]?r.slice(0,-1)+s.slice(1):void 0:"string"!=typeof s||'"'!==s[0]||r instanceof a?void 0:`"${r}${s.slice(1)}`);if(void 0!==o){e.splice(t-1,3,o);continue}e[t++]="+"}t++}}(r),new s(r)}function l(e,t){var r;t instanceof s?e.push(...t._items):t instanceof a?e.push(t):e.push("number"==typeof(r=t)||"boolean"==typeof r||null===r?r:c(Array.isArray(r)?r.join(","):r))}function c(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=n,t.addCodeArg=l,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:n`${e}${t}`},t.stringify=function(e){return new s(c(e))},t.safeStringify=c,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new s(`.${e}`):o`[${e}]`},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new s(`${e}`);throw Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function(e){return new s(e.toString())}},17898(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;let a=r(83277),s=r(76930);var o=r(83277);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var i=r(76930);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),t.operators={GT:new a._Code(">"),GTE:new a._Code(">="),LT:new a._Code("<"),LTE:new a._Code("<="),EQ:new a._Code("==="),NEQ:new a._Code("!=="),NOT:new a._Code("!"),OR:new a._Code("||"),AND:new a._Code("&&"),ADD:new a._Code("+")};class n{optimizeNodes(){return this}optimizeNames(e,t){return this}}class l extends n{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){let r=e?s.varKinds.var:this.varKind,a=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${a};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,e,t)),this}get names(){return this.rhs instanceof a._CodeOrName?this.rhs.names:{}}}class c extends n{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof a.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=I(this.rhs,e,t),this}get names(){return T(this.lhs instanceof a.Name?{}:{...this.lhs.names},this.rhs)}}class u extends c{constructor(e,t,r,a){super(e,r,a),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class d extends n{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class f extends n{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){let t=this.label?` ${this.label}`:"";return`break${t};`+e}}class h extends n{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends n{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=I(this.code,e,t),this}get names(){return this.code instanceof a._CodeOrName?this.code.names:{}}}class m extends n{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,r)=>t+r.render(e),"")}optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:r}=this,a=r.length;for(;a--;){let s=r[a];s.optimizeNames(e,t)||(function(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}(e,s.names),r.splice(a,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>x(e,t.names),{})}}class y extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class $ extends m{}class g extends y{}g.kind="else";class v extends y{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(!0===e)return this.nodes;let t=this.else;if(t){let e=t.optimizeNodes();t=this.else=Array.isArray(e)?new g(e):e}return t?!1===e?t instanceof v?t:t.nodes:this.nodes.length?this:new v(R(e),t instanceof v?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null==(r=this.else)?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=I(this.condition,e,t),this}get names(){let e=super.names;return T(e,this.condition),this.else&&x(e,this.else.names),e}}v.kind="if";class _ extends y{}_.kind="for";class w extends _{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=I(this.iteration,e,t),this}get names(){return x(super.names,this.iteration.names)}}class b extends _{constructor(e,t,r,a){super(),this.varKind=e,this.name=t,this.from=r,this.to=a}render(e){let t=e.es5?s.varKinds.var:this.varKind,{name:r,from:a,to:o}=this;return`for(${t} ${r}=${a}; ${r}<${o}; ${r}++)`+super.render(e)}get names(){let e=T(super.names,this.from);return T(e,this.to)}}class E extends _{constructor(e,t,r,a){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=a}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=I(this.iterable,e,t),this}get names(){return x(super.names,this.iterable.names)}}class S extends y{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){let t=this.async?"async ":"";return`${t}function ${this.name}(${this.args})`+super.render(e)}}S.kind="func";class k extends m{render(e){return"return "+super.render(e)}}k.kind="return";class P extends y{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(),null==(e=this.catch)||e.optimizeNodes(),null==(t=this.finally)||t.optimizeNodes(),this}optimizeNames(e,t){var r,a;return super.optimizeNames(e,t),null==(r=this.catch)||r.optimizeNames(e,t),null==(a=this.finally)||a.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&x(e,this.catch.names),this.finally&&x(e,this.finally.names),e}}class N extends y{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}N.kind="catch";class j extends y{render(e){return"finally"+super.render(e)}}function x(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function T(e,t){return t instanceof a._CodeOrName?x(e,t.names):e}function I(e,t,r){var s;if(e instanceof a.Name)return o(e);if(!((s=e)instanceof a._Code&&s._items.some(e=>e instanceof a.Name&&1===t[e.str]&&void 0!==r[e.str])))return e;return new a._Code(e._items.reduce((e,t)=>(t instanceof a.Name&&(t=o(t)),t instanceof a._Code?e.push(...t._items):e.push(t),e),[]));function o(e){let a=r[e.str];return void 0===a||1!==t[e.str]?e:(delete t[e.str],a)}}function R(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:(0,a._)`!${D(e)}`}j.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new s.Scope({parent:e}),this._nodes=[new $]}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 r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}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,r,a){let s=this._scope.toName(t);return void 0!==r&&a&&(this._constants[s.str]=r),this._leafNode(new l(e,s,r)),s}const(e,t,r){return this._def(s.varKinds.const,e,t,r)}let(e,t,r){return this._def(s.varKinds.let,e,t,r)}var(e,t,r){return this._def(s.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new c(e,t,r))}add(e,r){return this._leafNode(new u(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==a.nil&&this._leafNode(new p(e)),this}object(...e){let t=["{"];for(let[r,s]of e)t.length>1&&t.push(","),t.push(r),(r!==s||this.opts.es5)&&(t.push(":"),(0,a.addCodeArg)(t,s));return t.push("}"),new a._Code(t)}if(e,t,r){if(this._blockNode(new v(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new v(e))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(v,g)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new w(e),t)}forRange(e,t,r,a,o=this.opts.es5?s.varKinds.var:s.varKinds.let){let i=this._scope.toName(e);return this._for(new b(o,i,t,r),()=>a(i))}forOf(e,t,r,o=s.varKinds.const){let i=this._scope.toName(e);if(this.opts.es5){let e=t instanceof a.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,a._)`${e}.length`,t=>{this.var(i,(0,a._)`${e}[${t}]`),r(i)})}return this._for(new E("of",o,i,t),()=>r(i))}forIn(e,t,r,o=this.opts.es5?s.varKinds.var:s.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,a._)`Object.keys(${t})`,r);let i=this._scope.toName(e);return this._for(new E("in",o,i,t),()=>r(i))}endFor(){return this._endBlockNode(_)}label(e){return this._leafNode(new d(e))}break(e){return this._leafNode(new f(e))}return(e){let t=new k;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(k)}try(e,t,r){if(!t&&!r)throw Error('CodeGen: "try" without "catch" and "finally"');let a=new P;if(this._blockNode(a),this.code(e),t){let e=this.name("e");this._currNode=a.catch=new N(e),t(e)}return r&&(this._currNode=a.finally=new j,this.code(r)),this._endBlockNode(N,j)}throw(e){return this._leafNode(new h(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(void 0===t)throw Error("CodeGen: not in self-balancing block");let r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=a.nil,r,s){return this._blockNode(new S(e,t,r)),s&&this.code(s).endFunc(),this}endFunc(){return this._endBlockNode(S)}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 r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof v))throw 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}},t.not=R;let O=A(t.operators.AND);t.and=function(...e){return e.reduce(O)};let C=A(t.operators.OR);function A(e){return(t,r)=>t===a.nil?r:r===a.nil?t:(0,a._)`${D(t)} ${e} ${D(r)}`}function D(e){return e instanceof a.Name?e:(0,a._)`(${e})`}t.or=function(...e){return e.reduce(C)}},76930(e,t,r){var a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;let o=r(83277);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}(s=a||(t.UsedValueState=a={}))[s.Started=0]="Started",s[s.Completed=1]="Completed",t.varKinds={const:new o.Name("const"),let:new o.Name("let"),var:new o.Name("var")};class n{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof o.Name?e:this.name(e)}name(e){return new o.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){var t,r;if((null==(r=null==(t=this._parent)?void 0:t._prefixes)?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=n;class l extends o.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=(0,o._)`.${new o.Name(t)}[${r}]`}}t.ValueScopeName=l;let c=(0,o._)`\n`;t.ValueScope=class extends n{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:o.nil}}get(){return this._scope}name(e){return new l(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw Error("CodeGen: ref must be passed in value");let a=this.toName(e),{prefix:s}=a,o=null!=(r=t.key)?r:t.ref,i=this._values[s];if(i){let e=i.get(o);if(e)return e}else i=this._values[s]=new Map;i.set(o,a);let n=this._scope[s]||(this._scope[s]=[]),l=n.length;return n[l]=t.ref,a.setValue(t,{property:s,itemIndex:l}),a}getValue(e,t){let r=this._values[e];if(r)return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,t=>{if(void 0===t.scopePath)throw Error(`CodeGen: name "${t}" has no value`);return(0,o._)`${e}${t.scopePath}`})}scopeCode(e=this._values,t,r){return this._reduceValues(e,e=>{if(void 0===e.value)throw Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,r)}_reduceValues(e,r,s={},n){let l=o.nil;for(let c in e){let u=e[c];if(!u)continue;let d=s[c]=s[c]||new Map;u.forEach(e=>{if(d.has(e))return;d.set(e,a.Started);let s=r(e);if(s){let r=this.opts.es5?t.varKinds.var:t.varKinds.const;l=(0,o._)`${l}${r} ${e} = ${s};${this.opts._n}`}else if(s=null==n?void 0:n(e))l=(0,o._)`${l}${s}${this.opts._n}`;else throw new i(e);d.set(e,a.Completed)})}return l}}},49409(e,t,r){t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.y=void 0;let a=r(17898),s=r(50458),o=r(63036);function i(e,t){let r=e.const("err",t);e.if((0,a._)`${o.default.vErrors} === null`,()=>e.assign(o.default.vErrors,(0,a._)`[${r}]`),(0,a._)`${o.default.vErrors}.push(${r})`),e.code((0,a._)`${o.default.errors}++`)}function n(e,t){let{gen:r,validateName:s,schemaEnv:o}=e;o.$async?r.throw((0,a._)`new ${e.ValidationError}(${t})`):(r.assign((0,a._)`${s}.errors`,t),r.return(!1))}t.y={message:({keyword:e})=>(0,a.str)`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,a.str)`"${e}" keyword must be ${t} ($data)`:(0,a.str)`"${e}" keyword is invalid ($data)`},t.reportError=function(e,r=t.y,s,o){let{it:l}=e,{gen:u,compositeRule:d,allErrors:f}=l,h=c(e,r,s);(null!=o?o:d||f)?i(u,h):n(l,(0,a._)`[${h}]`)},t.reportExtraError=function(e,r=t.y,a){let{it:s}=e,{gen:l,compositeRule:u,allErrors:d}=s;i(l,c(e,r,a)),u||d||n(s,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if((0,a._)`${o.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,a._)`${o.default.vErrors}.length`,t),()=>e.assign(o.default.vErrors,null)))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:s,errsCount:i,it:n}){if(void 0===i)throw Error("ajv implementation error");let l=e.name("err");e.forRange("i",i,o.default.errors,i=>{e.const(l,(0,a._)`${o.default.vErrors}[${i}]`),e.if((0,a._)`${l}.instancePath === undefined`,()=>e.assign((0,a._)`${l}.instancePath`,(0,a.strConcat)(o.default.instancePath,n.errorPath))),e.assign((0,a._)`${l}.schemaPath`,(0,a.str)`${n.errSchemaPath}/${t}`),n.opts.verbose&&(e.assign((0,a._)`${l}.schema`,r),e.assign((0,a._)`${l}.data`,s))})};let l={keyword:new a.Name("keyword"),schemaPath:new a.Name("schemaPath"),params:new a.Name("params"),propertyName:new a.Name("propertyName"),message:new a.Name("message"),schema:new a.Name("schema"),parentSchema:new a.Name("parentSchema")};function c(e,t,r){let{createErrors:i}=e.it;return!1===i?(0,a._)`{}`:function(e,t,r={}){let{gen:i,it:n}=e,c=[function({errorPath:e},{instancePath:t}){let r=t?(0,a.str)`${e}${(0,s.getErrorPath)(t,s.Type.Str)}`:e;return[o.default.instancePath,(0,a.strConcat)(o.default.instancePath,r)]}(n,r),function({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:o}){let i=o?t:(0,a.str)`${t}/${e}`;return r&&(i=(0,a.str)`${i}${(0,s.getErrorPath)(r,s.Type.Str)}`),[l.schemaPath,i]}(e,r)];return function(e,{params:t,message:r},s){let{keyword:i,data:n,schemaValue:c,it:u}=e,{opts:d,propertyName:f,topSchemaRef:h,schemaPath:p}=u;s.push([l.keyword,i],[l.params,"function"==typeof t?t(e):t||(0,a._)`{}`]),d.messages&&s.push([l.message,"function"==typeof r?r(e):r]),d.verbose&&s.push([l.schema,c],[l.parentSchema,(0,a._)`${h}${p}`],[o.default.data,n]),f&&s.push([l.propertyName,f])}(e,t,c),i.object(...c)}(e,t,r)}},49392(e,t,r){t.resolveSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;let a=r(17898),s=r(95031),o=r(63036),i=r(14856),n=r(50458),l=r(96223);class c{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!=(t=e.baseId)?t:(0,i.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function u(e){let t,r,n=f.call(this,e);if(n)return n;let c=(0,i.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:u,lines:d}=this.opts.code,{ownProperties:h}=this.opts,p=new a.CodeGen(this.scope,{es5:u,lines:d,ownProperties:h});e.$async&&(t=p.scopeValue("Error",{ref:s.default,code:(0,a._)`require("ajv/dist/runtime/validation_error").default`}));let m=p.scopeName("validate");e.validateName=m;let y={gen:p,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[a.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:p.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,a.stringify)(e.schema)}:{ref:e.schema}),validateName:m,ValidationError:t,schema:e.schema,schemaEnv:e,rootId:c,baseId:e.baseId||c,schemaPath:a.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,a._)`""`,opts:this.opts,self:this};try{this._compilations.add(e),(0,l.validateFunctionCode)(y),p.optimize(this.opts.code.optimize);let t=p.toString();r=`${p.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(r=this.opts.code.process(r,e));let s=Function(`${o.default.self}`,`${o.default.scope}`,r)(this,this.scope.get());if(this.scope.value(m,{ref:s}),s.errors=null,s.schema=e.schema,s.schemaEnv=e,e.$async&&(s.$async=!0),!0===this.opts.code.source&&(s.source={validateName:m,validateCode:t,scopeValues:p._values}),this.opts.unevaluated){let{props:e,items:t}=y;s.evaluated={props:e instanceof a.Name?void 0:e,items:t instanceof a.Name?void 0:t,dynamicProps:e instanceof a.Name,dynamicItems:t instanceof a.Name},s.source&&(s.source.evaluated=(0,a.stringify)(s.evaluated))}return e.validate=s,e}catch(t){throw delete e.validate,delete e.validateName,r&&this.logger.error("Error compiling schema, function code:",r),t}finally{this._compilations.delete(e)}}function d(e){return(0,i.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:u.call(this,e)}function f(e){for(let a of this._compilations){var t,r;if(t=a,r=e,t.schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return a}}function h(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||p.call(this,e,t)}function p(e,t){let r=this.opts.uriResolver.parse(t),a=(0,i._getFullPath)(this.opts.uriResolver,r),s=(0,i.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&a===s)return y.call(this,r,e);let o=(0,i.normalizeId)(a),n=this.refs[o]||this.schemas[o];if("string"==typeof n){let t=p.call(this,e,n);if("object"!=typeof(null==t?void 0:t.schema))return;return y.call(this,r,t)}if("object"==typeof(null==n?void 0:n.schema)){if(n.validate||u.call(this,n),o===(0,i.normalizeId)(t)){let{schema:t}=n,{schemaId:r}=this.opts,a=t[r];return a&&(s=(0,i.resolveUrl)(this.opts.uriResolver,s,a)),new c({schema:t,schemaId:r,root:e,baseId:s})}return y.call(this,r,n)}}t.SchemaEnv=c,t.compileSchema=u,t.resolveRef=function(e,t,r){var a;r=(0,i.resolveUrl)(this.opts.uriResolver,t,r);let s=e.refs[r];if(s)return s;let o=h.call(this,e,r);if(void 0===o){let s=null==(a=e.localRefs)?void 0:a[r],{schemaId:i}=this.opts;s&&(o=new c({schema:s,schemaId:i,root:e,baseId:t}))}if(void 0!==o)return e.refs[r]=d.call(this,o)},t.resolveSchema=p;let m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:r,root:a}){var s;let o;if((null==(s=e.fragment)?void 0:s[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;let e=r[(0,n.unescapeFragment)(a)];if(void 0===e)return;let s="object"==typeof(r=e)&&r[this.opts.schemaId];!m.has(a)&&s&&(t=(0,i.resolveUrl)(this.opts.uriResolver,t,s))}if("boolean"!=typeof r&&r.$ref&&!(0,n.schemaHasRulesButRef)(r,this.RULES)){let e=(0,i.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=p.call(this,a,e)}let{schemaId:l}=this.opts;if((o=o||new c({schema:r,schemaId:l,root:a,baseId:t})).schema!==o.root.schema)return o}},63036(e,t,r){let a=r(17898);t.default={data:new a.Name("data"),valCxt:new a.Name("valCxt"),instancePath:new a.Name("instancePath"),parentData:new a.Name("parentData"),parentDataProperty:new a.Name("parentDataProperty"),rootData:new a.Name("rootData"),dynamicAnchors:new a.Name("dynamicAnchors"),vErrors:new a.Name("vErrors"),errors:new a.Name("errors"),this:new a.Name("this"),self:new a.Name("self"),scope:new a.Name("scope"),json:new a.Name("json"),jsonPos:new a.Name("jsonPos"),jsonLen:new a.Name("jsonLen"),jsonPart:new a.Name("jsonPart")}},85748(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});let a=r(14856);t.default=class extends Error{constructor(e,t,r,s){super(s||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,a.resolveUrl)(e,t,r),this.missingSchema=(0,a.normalizeId)((0,a.getFullPath)(e,this.missingRef))}}},14856(e,t,r){t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;let a=r(50458),s=r(38792),o=r(1645),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!function e(t){for(let r in t){if(n.has(r))return!0;let a=t[r];if(Array.isArray(a)&&a.some(e)||"object"==typeof a&&e(a))return!0}return!1}(e):!!t&&function e(t){let r=0;for(let s in t)if("$ref"===s||(r++,!i.has(s)&&("object"==typeof t[s]&&(0,a.eachItem)(t[s],t=>r+=e(t)),r===1/0)))return 1/0;return r}(e)<=t)};let n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(e,t="",r){!1!==r&&(t=d(t));let a=e.parse(t);return c(e,a)}function c(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=l,t._getFullPath=c;let u=/#\/?$/;function d(e){return e?e.replace(u,""):""}t.normalizeId=d,t.resolveUrl=function(e,t,r){return r=d(r),e.resolve(t,r)};let f=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};let{schemaId:r,uriResolver:a}=this.opts,i=d(e[r]||t),n={"":i},c=l(a,i,!1),u={},h=new Set;return o(e,{allKeys:!0},(e,t,a,s)=>{if(void 0===s)return;let o=c+t,i=n[s];function l(t){let r=this.opts.uriResolver.resolve;if(t=d(i?r(i,t):t),h.has(t))throw m(t);h.add(t);let a=this.refs[t];return"string"==typeof a&&(a=this.refs[a]),"object"==typeof a?p(e,a.schema,t):t!==d(o)&&("#"===t[0]?(p(e,u[t],t),u[t]=e):this.refs[t]=o),t}function y(e){if("string"==typeof e){if(!f.test(e))throw Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}"string"==typeof e[r]&&(i=l.call(this,e[r])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),n[t]=i}),u;function p(e,t,r){if(void 0!==t&&!s(e,t))throw m(r)}function m(e){return Error(`reference "${e}" resolves to more than one schema`)}}},90383(e,t){t.getRules=t.isJSONType=void 0;let r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},50458(e,t,r){var a,s;t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;let o=r(17898),i=r(83277);function n(e,t=e.schema){let{opts:r,self:a}=e;if(!r.strictSchema||"boolean"==typeof t)return;let s=a.RULES.keywords;for(let r in t)s[r]||p(e,`unknown keyword: "${r}"`)}function l(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function u({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:a}){return(s,i,n,l)=>{let c=void 0===n?i:n instanceof o.Name?(i instanceof o.Name?e(s,i,n):t(s,i,n),n):i instanceof o.Name?(t(s,n,i),i):r(i,n);return l!==o.Name||c instanceof o.Name?c:a(s,c)}}function d(e,t){if(!0===t)return e.var("props",!0);let r=e.var("props",(0,o._)`{}`);return void 0!==t&&f(e,r,t),r}function f(e,t,r){Object.keys(r).forEach(r=>e.assign((0,o._)`${t}${(0,o.getProperty)(r)}`,!0))}t.toHash=function(e){let t={};for(let r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(n(e,t),!function(e,t){if("boolean"==typeof e)return!e;for(let r in e)if(t[r])return!0;return!1}(t,e.self.RULES.all))},t.checkUnknownRules=n,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(let r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},r,a,s){if(!s){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return(0,o._)`${r}`}return(0,o._)`${e}${t}${(0,o.getProperty)(a)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(l(e))},t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)},t.mergeEvaluated={props:u({mergeNames:(e,t,r)=>e.if((0,o._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,o._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,o._)`${r} || {}`).code((0,o._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,o._)`${r} !== true`,()=>{!0===t?e.assign(r,!0):(e.assign(r,(0,o._)`${r} || {}`),f(e,r,t))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:d}),items:u({mergeNames:(e,t,r)=>e.if((0,o._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,o._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,o._)`${r} !== true`,()=>e.assign(r,!0===t||(0,o._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=d;let h={};function p(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:h[t.code]||(h[t.code]=new i._Code(t.code))})},(s=a||(t.Type=a={}))[s.Num=0]="Num",s[s.Str=1]="Str",t.getErrorPath=function(e,t,r){if(e instanceof o.Name){let s=t===a.Num;return r?s?(0,o._)`"[" + ${e} + "]"`:(0,o._)`"['" + ${e} + "']"`:s?(0,o._)`"/" + ${e}`:(0,o._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,o.getProperty)(e).toString():"/"+l(e)},t.checkStrictMode=p},74758(e,t){function r(e,t){return t.rules.some(t=>a(e,t))}function a(e,t){var r;return void 0!==e[t.keyword]||(null==(r=t.definition.implements)?void 0:r.some(t=>void 0!==e[t]))}t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},a){let s=t.RULES.types[a];return s&&!0!==s&&r(e,s)},t.shouldUseGroup=r,t.shouldUseRule=a},15948(e,t,r){t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;let a=r(49409),s=r(17898),o=r(63036),i={message:"boolean schema is false"};function n(e,t){let{gen:r,data:s}=e;(0,a.reportError)({gen:r,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e},i,void 0,t)}t.topBoolOrEmptySchema=function(e){let{gen:t,schema:r,validateName:a}=e;!1===r?n(e,!1):"object"==typeof r&&!0===r.$async?t.return(o.default.data):(t.assign((0,s._)`${a}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){let{gen:r,schema:a}=e;!1===a?(r.var(t,!1),n(e)):r.var(t,!0)}},69003(e,t,r){var a,s;t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;let o=r(90383),i=r(74758),n=r(49409),l=r(17898),c=r(50458);function u(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(o.isJSONType))return t;throw Error("type must be JSONType or JSONType[]: "+t.join(","))}(s=a||(t.DataType=a={}))[s.Correct=0]="Correct",s[s.Wrong=1]="Wrong",t.getSchemaTypes=function(e){let t=u(e.type);if(t.includes("null")){if(!1===e.nullable)throw Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=u,t.coerceAndCheckDataType=function(e,t){var r,s;let{gen:o,data:n,opts:c}=e,u=(r=t,(s=c.coerceTypes)?r.filter(e=>d.has(e)||"array"===s&&"array"===e):[]),f=t.length>0&&!(0===u.length&&1===t.length&&(0,i.schemaHasRulesForType)(e,t[0]));if(f){let r=h(t,n,c.strictNumbers,a.Wrong);o.if(r,()=>{u.length?function(e,t,r){let{gen:a,data:s,opts:o}=e,i=a.let("dataType",(0,l._)`typeof ${s}`),n=a.let("coerced",(0,l._)`undefined`);for(let e of("array"===o.coerceTypes&&a.if((0,l._)`${i} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,()=>a.assign(s,(0,l._)`${s}[0]`).assign(i,(0,l._)`typeof ${s}`).if(h(t,s,o.strictNumbers),()=>a.assign(n,s))),a.if((0,l._)`${n} !== undefined`),r))(d.has(e)||"array"===e&&"array"===o.coerceTypes)&&function(e){switch(e){case"string":a.elseIf((0,l._)`${i} == "number" || ${i} == "boolean"`).assign(n,(0,l._)`"" + ${s}`).elseIf((0,l._)`${s} === null`).assign(n,(0,l._)`""`);return;case"number":a.elseIf((0,l._)`${i} == "boolean" || ${s} === null
2
+ || (${i} == "string" && ${s} && ${s} == +${s})`).assign(n,(0,l._)`+${s}`);return;case"integer":a.elseIf((0,l._)`${i} === "boolean" || ${s} === null
3
+ || (${i} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(n,(0,l._)`+${s}`);return;case"boolean":a.elseIf((0,l._)`${s} === "false" || ${s} === 0 || ${s} === null`).assign(n,!1).elseIf((0,l._)`${s} === "true" || ${s} === 1`).assign(n,!0);return;case"null":a.elseIf((0,l._)`${s} === "" || ${s} === 0 || ${s} === false`),a.assign(n,null);return;case"array":a.elseIf((0,l._)`${i} === "string" || ${i} === "number"
4
+ || ${i} === "boolean" || ${s} === null`).assign(n,(0,l._)`[${s}]`)}}(e);a.else(),m(e),a.endIf(),a.if((0,l._)`${n} !== undefined`,()=>{a.assign(s,n),function({gen:e,parentData:t,parentDataProperty:r},a){e.if((0,l._)`${t} !== undefined`,()=>e.assign((0,l._)`${t}[${r}]`,a))}(e,n)})}(e,t,u):m(e)})}return f};let d=new Set(["string","number","integer","boolean","null"]);function f(e,t,r,s=a.Correct){let o,i=s===a.Correct?l.operators.EQ:l.operators.NEQ;switch(e){case"null":return(0,l._)`${t} ${i} null`;case"array":o=(0,l._)`Array.isArray(${t})`;break;case"object":o=(0,l._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=n((0,l._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=n();break;default:return(0,l._)`typeof ${t} ${i} ${e}`}return s===a.Correct?o:(0,l.not)(o);function n(e=l.nil){return(0,l.and)((0,l._)`typeof ${t} == "number"`,e,r?(0,l._)`isFinite(${t})`:l.nil)}}function h(e,t,r,a){let s;if(1===e.length)return f(e[0],t,r,a);let o=(0,c.toHash)(e);if(o.array&&o.object){let e=(0,l._)`typeof ${t} != "object"`;s=o.null?e:(0,l._)`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else s=l.nil;for(let e in o.number&&delete o.integer,o)s=(0,l.and)(s,f(e,t,r,a));return s}t.checkDataType=f,t.checkDataTypes=h;let p={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?(0,l._)`{type: ${e}}`:(0,l._)`{type: ${t}}`};function m(e){let t=function(e){let{gen:t,data:r,schema:a}=e,s=(0,c.schemaRefOrVal)(e,a,"type");return{gen:t,keyword:"type",data:r,schema:a.type,schemaCode:s,schemaValue:s,parentSchema:a,params:{},it:e}}(e);(0,n.reportError)(t,p)}t.reportTypeError=m},96841(e,t,r){t.assignDefaults=void 0;let a=r(17898),s=r(50458);function o(e,t,r){let{gen:o,compositeRule:i,data:n,opts:l}=e;if(void 0===r)return;let c=(0,a._)`${n}${(0,a.getProperty)(t)}`;if(i)return void(0,s.checkStrictMode)(e,`default is ignored for: ${c}`);let u=(0,a._)`${c} === undefined`;"empty"===l.useDefaults&&(u=(0,a._)`${u} || ${c} === null || ${c} === ""`),o.if(u,(0,a._)`${c} = ${(0,a.stringify)(r)}`)}t.assignDefaults=function(e,t){let{properties:r,items:a}=e.schema;if("object"===t&&r)for(let t in r)o(e,t,r[t].default);else"array"===t&&Array.isArray(a)&&a.forEach((t,r)=>o(e,r,t.default))}},96223(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;let a=r(15948),s=r(69003),o=r(74758),i=r(69003),n=r(96841),l=r(49348),c=r(53322),u=r(17898),d=r(63036),f=r(14856),h=r(50458),p=r(49409);function m({gen:e,validateName:t,schema:r,schemaEnv:a,opts:s},o){var i;s.code.es5?e.func(t,(0,u._)`${d.default.data}, ${d.default.valCxt}`,a.$async,()=>{var t,a;e.code((0,u._)`"use strict"; ${y(r,s)}`),t=e,a=s,t.if(d.default.valCxt,()=>{t.var(d.default.instancePath,(0,u._)`${d.default.valCxt}.${d.default.instancePath}`),t.var(d.default.parentData,(0,u._)`${d.default.valCxt}.${d.default.parentData}`),t.var(d.default.parentDataProperty,(0,u._)`${d.default.valCxt}.${d.default.parentDataProperty}`),t.var(d.default.rootData,(0,u._)`${d.default.valCxt}.${d.default.rootData}`),a.dynamicRef&&t.var(d.default.dynamicAnchors,(0,u._)`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{t.var(d.default.instancePath,(0,u._)`""`),t.var(d.default.parentData,(0,u._)`undefined`),t.var(d.default.parentDataProperty,(0,u._)`undefined`),t.var(d.default.rootData,d.default.data),a.dynamicRef&&t.var(d.default.dynamicAnchors,(0,u._)`{}`)}),e.code(o)}):e.func(t,(0,u._)`${d.default.data}, ${(i=s,(0,u._)`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${i.dynamicRef?(0,u._)`, ${d.default.dynamicAnchors}={}`:u.nil}}={}`)}`,a.$async,()=>e.code(y(r,s)).code(o))}function y(e,t){let r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,u._)`/*# sourceURL=${r} */`:u.nil}function $({schema:e,self:t}){if("boolean"==typeof e)return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function g(e){return"boolean"!=typeof e.schema}function v(e){(0,h.checkUnknownRules)(e),function(e){let{schema:t,errSchemaPath:r,opts:a,self:s}=e;t.$ref&&a.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(t,s.RULES)&&s.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function _(e,t){if(e.opts.jtd)return b(e,[],!1,t);let r=(0,s.getSchemaTypes)(e.schema),a=(0,s.coerceAndCheckDataType)(e,r);b(e,r,!a,t)}function w({gen:e,schemaEnv:t,schema:r,errSchemaPath:a,opts:s}){let o=r.$comment;if(!0===s.$comment)e.code((0,u._)`${d.default.self}.logger.log(${o})`);else if("function"==typeof s.$comment){let r=(0,u.str)`${a}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,u._)`${d.default.self}.opts.$comment(${o}, ${r}, ${s}.schema)`)}}function b(e,t,r,a){var s,n,l,c;let{gen:f,schema:p,data:m,allErrors:y,opts:$,self:g}=e,{RULES:v}=g;if(p.$ref&&($.ignoreKeywordsWithRef||!(0,h.schemaHasRulesButRef)(p,v)))return void f.block(()=>N(e,"$ref",v.all.$ref.definition));function _(s){(0,o.shouldUseGroup)(p,s)&&(s.type?(f.if((0,i.checkDataType)(s.type,m,$.strictNumbers)),E(e,s),1===t.length&&t[0]===s.type&&r&&(f.else(),(0,i.reportTypeError)(e)),f.endIf()):E(e,s),y||f.if((0,u._)`${d.default.errors} === ${a||0}`))}$.jtd||(s=e,n=t,!s.schemaEnv.meta&&s.opts.strictTypes&&(function(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(t=>{S(e.dataTypes,t)||k(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),function(e,t){let r=[];for(let a of e.dataTypes)S(t,a)?r.push(a):t.includes("integer")&&"number"===a&&r.push("integer");e.dataTypes=r}(e,t)}}(s,n),s.opts.allowUnionTypes||(l=s,(c=n).length>1&&!(2===c.length&&c.includes("null"))&&k(l,"use allowUnionTypes to allow union type keyword")),function(e,t){let r=e.self.RULES.all;for(let a in r){let s=r[a];if("object"==typeof s&&(0,o.shouldUseRule)(e.schema,s)){let{type:r}=s.definition;r.length&&!r.some(e=>{var r,a;return r=t,a=e,r.includes(a)||"number"===a&&r.includes("integer")})&&k(e,`missing type "${r.join(",")}" for keyword "${a}"`)}}}(s,s.dataTypes))),f.block(()=>{for(let e of v.rules)_(e);_(v.post)})}function E(e,t){let{gen:r,schema:a,opts:{useDefaults:s}}=e;s&&(0,n.assignDefaults)(e,t.type),r.block(()=>{for(let r of t.rules)(0,o.shouldUseRule)(a,r)&&N(e,r.keyword,r.definition,t.type)})}function S(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function k(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,h.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){g(e)&&(v(e),$(e))?function(e){let{schema:t,opts:r,gen:a}=e;m(e,()=>{r.$comment&&t.$comment&&w(e),function(e){let{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,h.checkStrictMode)(e,"default is ignored in the schema root")}(e),a.let(d.default.vErrors,null),a.let(d.default.errors,0),r.unevaluated&&function(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,u._)`${r}.evaluated`),t.if((0,u._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,u._)`${e.evaluated}.props`,(0,u._)`undefined`)),t.if((0,u._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,u._)`${e.evaluated}.items`,(0,u._)`undefined`))}(e),_(e),function(e){let{gen:t,schemaEnv:r,validateName:a,ValidationError:s,opts:o}=e;r.$async?t.if((0,u._)`${d.default.errors} === 0`,()=>t.return(d.default.data),()=>t.throw((0,u._)`new ${s}(${d.default.vErrors})`)):(t.assign((0,u._)`${a}.errors`,d.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:r,items:a}){r instanceof u.Name&&e.assign((0,u._)`${t}.props`,r),a instanceof u.Name&&e.assign((0,u._)`${t}.items`,a)}(e),t.return((0,u._)`${d.default.errors} === 0`))}(e)})}(e):m(e,()=>(0,a.topBoolOrEmptySchema)(e))};class P{constructor(e,t,r){if((0,l.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,h.schemaRefOrVal)(e,this.schema,r,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",T(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,l.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",d.default.errors))}result(e,t,r){this.failResult((0,u.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():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,u.not)(e),void 0,t)}fail(e){if(void 0===e){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,u._)`${t} !== undefined && (${(0,u.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t){this.setParams(t),this._error(e,r),this.setParams({});return}this._error(e,r)}_error(e,t){(e?p.reportExtraError:p.reportError)(this,this.def.error,t)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(void 0===this.errsCount)throw Error('add "trackErrors" to keyword definition');(0,p.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,r=u.nil){this.gen.block(()=>{this.check$data(e,r),t()})}check$data(e=u.nil,t=u.nil){if(!this.$data)return;let{gen:r,schemaCode:a,schemaType:s,def:o}=this;r.if((0,u.or)((0,u._)`${a} === undefined`,t)),e!==u.nil&&r.assign(e,!0),(s.length||o.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==u.nil&&r.assign(e,!1)),r.else()}invalid$data(){let{gen:e,schemaCode:t,schemaType:r,def:a,it:s}=this;return(0,u.or)(function(){if(r.length){if(!(t instanceof u.Name))throw Error("ajv implementation error");let e=Array.isArray(r)?r:[r];return(0,u._)`${(0,i.checkDataTypes)(e,t,s.opts.strictNumbers,i.DataType.Wrong)}`}return u.nil}(),function(){if(a.validateSchema){let r=e.scopeValue("validate$data",{ref:a.validateSchema});return(0,u._)`!${r}(${t})`}return u.nil}())}subschema(e,t){let r=(0,c.getSubschema)(this.it,e);(0,c.extendSubschemaData)(r,this.it,e),(0,c.extendSubschemaMode)(r,e);let s={...this.it,...r,items:void 0,props:void 0};return!function(e,t){if(g(e)&&(v(e),$(e)))return function(e,t){var r;let a,{schema:s,gen:o,opts:i}=e;i.$comment&&s.$comment&&w(e),(a=(r=e).schema[r.opts.schemaId])&&(r.baseId=(0,f.resolveUrl)(r.opts.uriResolver,r.baseId,a)),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw Error("async schema in sync schema")}(e);let n=o.const("_errs",d.default.errors);_(e,n),o.var(t,(0,u._)`${n} === ${d.default.errors}`)}(e,t);(0,a.boolOrEmptySchema)(e,t)}(s,t),s}mergeEvaluated(e,t){let{it:r,gen:a}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=h.mergeEvaluated.props(a,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=h.mergeEvaluated.items(a,e.items,r.items,t)))}mergeValidEvaluated(e,t){let{it:r,gen:a}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return a.if(t,()=>this.mergeEvaluated(e,u.Name)),!0}}function N(e,t,r,a){let s=new P(e,r,t);"code"in r?r.code(s,a):s.$data&&r.validate?(0,l.funcKeywordCode)(s,r):"macro"in r?(0,l.macroKeywordCode)(s,r):(r.compile||r.validate)&&(0,l.funcKeywordCode)(s,r)}t.KeywordCxt=P;let j=/^\/(?:[^~]|~0|~1)*$/,x=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function T(e,{dataLevel:t,dataNames:r,dataPathArr:a}){let s,o;if(""===e)return d.default.rootData;if("/"===e[0]){if(!j.test(e))throw Error(`Invalid JSON-pointer: ${e}`);s=e,o=d.default.rootData}else{let i=x.exec(e);if(!i)throw Error(`Invalid JSON-pointer: ${e}`);let l=+i[1];if("#"===(s=i[2])){if(l>=t)throw Error(n("property/index",l));return a[t-l]}if(l>t)throw Error(n("data",l));if(o=r[t-l],!s)return o}let i=o;for(let e of s.split("/"))e&&(o=(0,u._)`${o}${(0,u.getProperty)((0,h.unescapeJsonPointer)(e))}`,i=(0,u._)`${i} && ${o}`);return i;function n(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=T},49348(e,t,r){t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;let a=r(17898),s=r(63036),o=r(94450),i=r(49409);function n(e){let{gen:t,data:r,it:s}=e;t.if(s.parentData,()=>t.assign(r,(0,a._)`${s.parentData}[${s.parentDataProperty}]`))}function l(e,t,r){if(void 0===r)throw Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,a.stringify)(r)})}t.macroKeywordCode=function(e,t){let{gen:r,keyword:s,schema:o,parentSchema:i,it:n}=e,c=t.macro.call(n.self,o,i,n),u=l(r,s,c);!1!==n.opts.validateSchema&&n.self.validateSchema(c,!0);let d=r.name("valid");e.subschema({schema:c,schemaPath:a.nil,errSchemaPath:`${n.errSchemaPath}/${s}`,topSchemaRef:u,compositeRule:!0},d),e.pass(d,()=>e.error(!0))},t.funcKeywordCode=function(e,t){var r;let{gen:c,keyword:u,schema:d,parentSchema:f,$data:h,it:p}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw Error("async keyword in sync schema")}(p,t);let m=l(c,u,!h&&t.compile?t.compile.call(p.self,d,f,p):t.validate),y=c.let("valid");function $(r=t.async?(0,a._)`await `:a.nil){let i=p.opts.passContext?s.default.this:s.default.self,n=!("compile"in t&&!h||!1===t.schema);c.assign(y,(0,a._)`${r}${(0,o.callValidateCode)(e,m,i,n)}`,t.modifying)}function g(e){var r;c.if((0,a.not)(null!=(r=t.valid)?r:y),e)}e.block$data(y,function(){if(!1===t.errors)$(),t.modifying&&n(e),g(()=>e.error());else{let r,o,l=t.async?(r=c.let("ruleErrs",null),c.try(()=>$((0,a._)`await `),e=>c.assign(y,!1).if((0,a._)`${e} instanceof ${p.ValidationError}`,()=>c.assign(r,(0,a._)`${e}.errors`),()=>c.throw(e))),r):(o=(0,a._)`${m}.errors`,c.assign(o,null),$(a.nil),o);t.modifying&&n(e),g(()=>(function(e,t){let{gen:r}=e;r.if((0,a._)`Array.isArray(${t})`,()=>{r.assign(s.default.vErrors,(0,a._)`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`).assign(s.default.errors,(0,a._)`${s.default.vErrors}.length`),(0,i.extendErrors)(e)},()=>e.error())})(e,l))}}),e.ok(null!=(r=t.valid)?r:y)},t.validSchemaType=function(e,t,r=!1){return!t.length||t.some(t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e)},t.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:a},s,o){if(Array.isArray(s.keyword)?!s.keyword.includes(o):s.keyword!==o)throw Error("ajv implementation error");let i=s.dependencies;if(null==i?void 0:i.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw Error(`parent schema must have dependencies of ${o}: ${i.join(",")}`);if(s.validateSchema&&!s.validateSchema(e[o])){let e=`keyword "${o}" value is invalid at path "${a}": `+r.errorsText(s.validateSchema.errors);if("log"===t.validateSchema)r.logger.error(e);else throw Error(e)}}},53322(e,t,r){t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;let a=r(17898),s=r(50458);t.getSubschema=function(e,{keyword:t,schemaProp:r,schema:o,schemaPath:i,errSchemaPath:n,topSchemaRef:l}){if(void 0!==t&&void 0!==o)throw Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){let o=e.schema[t];return void 0===r?{schema:o,schemaPath:(0,a._)`${e.schemaPath}${(0,a.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:(0,a._)`${e.schemaPath}${(0,a.getProperty)(t)}${(0,a.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,s.escapeFragment)(r)}`}}if(void 0!==o){if(void 0===i||void 0===n||void 0===l)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:i,topSchemaRef:l,errSchemaPath:n}}throw Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:o,data:i,dataTypes:n,propertyName:l}){if(void 0!==i&&void 0!==r)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(void 0!==r){let{errorPath:i,dataPathArr:n,opts:l}=t;u(c.let("data",(0,a._)`${t.data}${(0,a.getProperty)(r)}`,!0)),e.errorPath=(0,a.str)`${i}${(0,s.getErrorPath)(r,o,l.jsPropertySyntax)}`,e.parentDataProperty=(0,a._)`${r}`,e.dataPathArr=[...n,e.parentDataProperty]}function u(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}void 0!==i&&(u(i instanceof a.Name?i:c.let("data",i,!0)),void 0!==l&&(e.propertyName=l)),n&&(e.dataTypes=n)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:a,createErrors:s,allErrors:o}){void 0!==a&&(e.compositeRule=a),void 0!==s&&(e.createErrors=s),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}},65319(e,t,r){r(96223),r(17898);let a=r(95031),s=r(85748),o=r(90383),i=r(49392),n=r(17898),l=r(14856),c=r(69003),u=r(50458),d=r(93770),f=r(7903),h=(e,t)=>new RegExp(e,t);h.code="new RegExp";let p=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={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."},$={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};class g{constructor(e={}){var t,r,a,s,i,l,c,u,d,p,g,_,P,N,j,x,T,I,R,O,C,A,D,V,M,z;let q,U,K,F,L;this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...(q=(t=e).strict,K=!0===(U=null==(r=t.code)?void 0:r.optimize)||void 0===U?1:U||0,F=null!=(s=null==(a=t.code)?void 0:a.regExp)?s:h,L=null!=(i=t.uriResolver)?i:f.default,{strictSchema:null==(c=null!=(l=t.strictSchema)?l:q)||c,strictNumbers:null==(d=null!=(u=t.strictNumbers)?u:q)||d,strictTypes:null!=(g=null!=(p=t.strictTypes)?p:q)?g:"log",strictTuples:null!=(P=null!=(_=t.strictTuples)?_:q)?P:"log",strictRequired:null!=(j=null!=(N=t.strictRequired)?N:q)&&j,code:t.code?{...t.code,optimize:K,regExp:F}:{optimize:K,regExp:F},loopRequired:null!=(x=t.loopRequired)?x:200,loopEnum:null!=(T=t.loopEnum)?T:200,meta:null==(I=t.meta)||I,messages:null==(R=t.messages)||R,inlineRefs:null==(O=t.inlineRefs)||O,schemaId:null!=(C=t.schemaId)?C:"$id",addUsedSchema:null==(A=t.addUsedSchema)||A,validateSchema:null==(D=t.validateSchema)||D,validateFormats:null==(V=t.validateFormats)||V,unicodeRegExp:null==(M=t.unicodeRegExp)||M,int32range:null==(z=t.int32range)||z,uriResolver:L})};let{es5:G,lines:H}=this.opts.code;this.scope=new n.ValueScope({scope:{},prefixes:m,es5:G,lines:H}),this.logger=function(e){if(!1===e)return k;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw Error("logger must implement log, warn and error methods")}(e.logger);let J=e.validateFormats;e.validateFormats=!1,this.RULES=(0,o.getRules)(),v.call(this,y,e,"NOT SUPPORTED"),v.call(this,$,e,"DEPRECATED","warn"),this._metaOpts=S.call(this),e.formats&&b.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&E.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),w.call(this),e.validateFormats=J}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:t,schemaId:r}=this.opts,a=d;"id"===r&&((a={...d}).id=a.$id,delete a.$id),t&&e&&this.addMetaSchema(a,a[r],!1)}defaultMeta(){let{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);let a=r(t);return"$async"in r||(this.errors=r.errors),a}compile(e,t){let r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw Error("options.loadSchema should be a function");let{loadSchema:r}=this.opts;return a.call(this,e,t);async function a(e,t){await o.call(this,e.$schema);let r=this._addSchema(e,t);return r.validate||i.call(this,r)}async function o(e){e&&!this.getSchema(e)&&await a.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof s.default))throw t;return n.call(this,t),await l.call(this,t.missingSchema),i.call(this,e)}}function n({missingSchema:e,missingRef:t}){if(this.refs[e])throw Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){let r=await c.call(this,e);this.refs[e]||await o.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function c(e){let t=this._loading[e];if(t)return t;try{return await (this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,a=this.opts.validateSchema){let s;if(Array.isArray(e)){for(let t of e)this.addSchema(t,void 0,r,a);return this}if("object"==typeof e){let{schemaId:t}=this.opts;if(void 0!==(s=e[t])&&"string"!=typeof s)throw Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||s),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,a,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){let r;if("boolean"==typeof e)return!0;if(void 0!==(r=e.$schema)&&"string"!=typeof r)throw Error("$schema must be a string");if(!(r=r||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;let a=this.validate(r,e);if(!a&&t){let e="schema is invalid: "+this.errorsText();if("log"===this.opts.validateSchema)this.logger.error(e);else throw Error(e)}return a}getSchema(e){let t;for(;"string"==typeof(t=_.call(this,e));)e=t;if(void 0===t){let{schemaId:r}=this.opts,a=new i.SchemaEnv({schema:{},schemaId:r});if(!(t=i.resolveSchema.call(this,a,e)))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=_.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{this._cache.delete(e);let t=e[this.opts.schemaId];return t&&(t=(0,l.normalizeId)(t),delete this.schemas[t],delete this.refs[t]),this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else if("object"==typeof e&&void 0===t){if(Array.isArray(r=(t=e).keyword)&&!r.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(N.call(this,r,t),!t)return(0,u.eachItem)(r,e=>j.call(this,e)),this;T.call(this,t);let a={...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)};return(0,u.eachItem)(r,0===a.type.length?e=>j.call(this,e,a):e=>a.type.forEach(t=>j.call(this,e,a,t))),this}getKeyword(e){let t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){let{RULES:t}=this;for(let r of(delete t.keywords[e],delete t.all[e],t.rules)){let t=r.rules.findIndex(t=>t.keyword===e);t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map(e=>`${r}${e.instancePath} ${e.message}`).reduce((e,r)=>e+t+r):"No errors"}$dataMetaSchema(e,t){let r=this.RULES.all;for(let a of(e=JSON.parse(JSON.stringify(e)),t)){let t=a.split("/").slice(1),s=e;for(let e of t)s=s[e];for(let e in r){let t=r[e];if("object"!=typeof t)continue;let{$data:a}=t.definition,o=s[e];a&&o&&(s[e]=R(o))}}return e}_removeAllSchemas(e,t){for(let r in e){let a=e[r];(!t||t.test(r))&&("string"==typeof a?delete e[r]:a&&!a.meta&&(this._cache.delete(a.schema),delete e[r]))}}_addSchema(e,t,r,a=this.opts.validateSchema,s=this.opts.addUsedSchema){let o,{schemaId:n}=this.opts;if("object"==typeof e)o=e[n];else if(this.opts.jtd)throw Error("schema must be object");else if("boolean"!=typeof e)throw Error("schema must be object or boolean");let c=this._cache.get(e);if(void 0!==c)return c;r=(0,l.normalizeId)(o||r);let u=l.getSchemaRefs.call(this,e,r);return c=new i.SchemaEnv({schema:e,schemaId:n,meta:t,baseId:r,localRefs:u}),this._cache.set(c.schema,c),s&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=c),a&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):i.compileSchema.call(this,e),!e.validate)throw Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let t=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,e)}finally{this.opts=t}}}function v(e,t,r,a="error"){for(let s in e)s in t&&this.logger[a](`${r}: option ${s}. ${e[s]}`)}function _(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function w(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function b(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function E(e){if(Array.isArray(e))return void this.addVocabulary(e);for(let t in this.logger.warn("keywords option as map is deprecated, pass array"),e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function S(){let e={...this.opts};for(let t of p)delete e[t];return e}g.ValidationError=a.default,g.MissingRefError=s.default,t.default=g;let k={log(){},warn(){},error(){}},P=/^[a-z_$][a-z0-9_$:-]*$/i;function N(e,t){let{RULES:r}=this;if((0,u.eachItem)(e,e=>{if(r.keywords[e])throw Error(`Keyword ${e} is already defined`);if(!P.test(e))throw Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!("code"in t||"validate"in t))throw Error('$data keyword must have "code" or "validate" function')}function j(e,t,r){var a;let s=null==t?void 0:t.post;if(r&&s)throw Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,i=s?o.post:o.rules.find(({type:e})=>e===r);if(i||(i={type:r,rules:[]},o.rules.push(i)),o.keywords[e]=!0,!t)return;let n={keyword:e,definition:{...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)}};t.before?x.call(this,i,n,t.before):i.rules.push(n),o.all[e]=n,null==(a=t.implements)||a.forEach(e=>this.addKeyword(e))}function x(e,t,r){let a=e.rules.findIndex(e=>e.keyword===r);a>=0?e.rules.splice(a,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function T(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=R(t)),e.validateSchema=this.compile(t,!0))}let I={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function R(e){return{anyOf:[e,I]}}},72725(e,t,r){let a=r(38792);a.code='require("ajv/dist/runtime/equal").default',t.default=a},26308(e,t){function r(e){let t,r=e.length,a=0,s=0;for(;s<r;)a++,(t=e.charCodeAt(s++))>=55296&&t<=56319&&s<r&&(64512&(t=e.charCodeAt(s)))==56320&&s++;return a}t.default=r,r.code='require("ajv/dist/runtime/ucs2length").default'},7903(e,t,r){let a=r(84800);a.code='require("ajv/dist/runtime/uri").default',t.default=a},95031(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}},93426(e,t,r){t.validateAdditionalItems=void 0;let a=r(17898),s=r(50458);function o(e,t){let{gen:r,schema:o,data:i,keyword:n,it:l}=e;l.items=!0;let c=r.const("len",(0,a._)`${i}.length`);if(!1===o)e.setParams({len:t.length}),e.pass((0,a._)`${c} <= ${t.length}`);else if("object"==typeof o&&!(0,s.alwaysValidSchema)(l,o)){let o=r.var("valid",(0,a._)`${c} <= ${t.length}`);r.if((0,a.not)(o),()=>{var i;return i=o,void r.forRange("i",t.length,c,t=>{e.subschema({keyword:n,dataProp:t,dataPropType:s.Type.Num},i),l.allErrors||r.if((0,a.not)(i),()=>r.break())})}),e.ok(o)}}t.validateAdditionalItems=o,t.default={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>(0,a.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,a._)`{limit: ${e}}`},code(e){let{parentSchema:t,it:r}=e,{items:a}=t;Array.isArray(a)?o(e,a):(0,s.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}}},92697(e,t,r){let a=r(94450),s=r(17898),o=r(63036),i=r(50458);t.default={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>(0,s._)`{additionalProperty: ${e.additionalProperty}}`},code(e){let{gen:t,schema:r,parentSchema:n,data:l,errsCount:c,it:u}=e;if(!c)throw Error("ajv implementation error");let{allErrors:d,opts:f}=u;if(u.props=!0,"all"!==f.removeAdditional&&(0,i.alwaysValidSchema)(u,r))return;let h=(0,a.allSchemaProperties)(n.properties),p=(0,a.allSchemaProperties)(n.patternProperties);function m(e){t.code((0,s._)`delete ${l}[${e}]`)}function y(a){if("all"===f.removeAdditional||f.removeAdditional&&!1===r)return void m(a);if(!1===r){e.setParams({additionalProperty:a}),e.error(),d||t.break();return}if("object"==typeof r&&!(0,i.alwaysValidSchema)(u,r)){let r=t.name("valid");"failing"===f.removeAdditional?($(a,r,!1),t.if((0,s.not)(r),()=>{e.reset(),m(a)})):($(a,r),d||t.if((0,s.not)(r),()=>t.break()))}}function $(t,r,a){let s={keyword:"additionalProperties",dataProp:t,dataPropType:i.Type.Str};!1===a&&Object.assign(s,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(s,r)}t.forIn("key",l,r=>{h.length||p.length?t.if(function(r){let o;if(h.length>8){let e=(0,i.schemaRefOrVal)(u,n.properties,"properties");o=(0,a.isOwnProperty)(t,e,r)}else o=h.length?(0,s.or)(...h.map(e=>(0,s._)`${r} === ${e}`)):s.nil;return p.length&&(o=(0,s.or)(o,...p.map(t=>(0,s._)`${(0,a.usePattern)(e,t)}.test(${r})`))),(0,s.not)(o)}(r),()=>y(r)):y(r)}),e.ok((0,s._)`${c} === ${o.default.errors}`)}}},79355(e,t,r){let a=r(50458);t.default={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:s}=e;if(!Array.isArray(r))throw Error("ajv implementation error");let o=t.name("valid");r.forEach((t,r)=>{if((0,a.alwaysValidSchema)(s,t))return;let i=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(i)})}}},19430(e,t,r){t.default={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(94450).validateUnion,error:{message:"must match a schema in anyOf"}}},35724(e,t,r){let a=r(17898),s=r(50458);t.default={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?(0,a.str)`must contain at least ${e} valid item(s)`:(0,a.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?(0,a._)`{minContains: ${e}}`:(0,a._)`{minContains: ${e}, maxContains: ${t}}`},code(e){let t,r,{gen:o,schema:i,parentSchema:n,data:l,it:c}=e,{minContains:u,maxContains:d}=n;c.opts.next?(t=void 0===u?1:u,r=d):t=1;let f=o.const("len",(0,a._)`${l}.length`);if(e.setParams({min:t,max:r}),void 0===r&&0===t)return void(0,s.checkStrictMode)(c,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==r&&t>r){(0,s.checkStrictMode)(c,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,s.alwaysValidSchema)(c,i)){let s=(0,a._)`${f} >= ${t}`;void 0!==r&&(s=(0,a._)`${s} && ${f} <= ${r}`),e.pass(s);return}c.items=!0;let h=o.name("valid");function p(){let e=o.name("_valid"),s=o.let("count",0);m(e,()=>o.if(e,()=>{var e;return e=s,void(o.code((0,a._)`${e}++`),void 0===r?o.if((0,a._)`${e} >= ${t}`,()=>o.assign(h,!0).break()):(o.if((0,a._)`${e} > ${r}`,()=>o.assign(h,!1).break()),1===t?o.assign(h,!0):o.if((0,a._)`${e} >= ${t}`,()=>o.assign(h,!0))))}))}function m(t,r){o.forRange("i",0,f,a=>{e.subschema({keyword:"contains",dataProp:a,dataPropType:s.Type.Num,compositeRule:!0},t),r()})}void 0===r&&1===t?m(h,()=>o.if(h,()=>o.break())):0===t?(o.let(h,!0),void 0!==r&&o.if((0,a._)`${l}.length > 0`,p)):(o.let(h,!1),p()),e.result(h,()=>e.reset())}}},99868(e,t,r){t.z3=void 0;let a=r(17898),s=r(50458),o=r(94450);t.z3={message:({params:{property:e,depsCount:t,deps:r}})=>(0,a.str)`must have ${1===t?"property":"properties"} ${r} when property ${e} is present`,params:({params:{property:e,depsCount:t,deps:r,missingProperty:s}})=>(0,a._)`{property: ${e},
5
+ missingProperty: ${s},
6
+ depsCount: ${t},
7
+ deps: ${r}}`};let i={keyword:"dependencies",type:"object",schemaType:"object",error:t.z3,code(e){let[t,r]=function({schema:e}){let t={},r={};for(let a in e)"__proto__"!==a&&((Array.isArray(e[a])?t:r)[a]=e[a]);return[t,r]}(e);(function(e,t=e.schema){let{gen:r,data:s,it:i}=e;if(0===Object.keys(t).length)return;let n=r.let("missing");for(let l in t){let c=t[l];if(0===c.length)continue;let u=(0,o.propertyInData)(r,s,l,i.opts.ownProperties);e.setParams({property:l,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let t of c)(0,o.checkReportMissingProp)(e,t)}):(r.if((0,a._)`${u} && (${(0,o.checkMissingProp)(e,c,n)})`),(0,o.reportMissingProp)(e,n),r.else())}})(e,t),function(e,t=e.schema){let{gen:r,data:a,keyword:i,it:n}=e,l=r.name("valid");for(let c in t)(0,s.alwaysValidSchema)(n,t[c])||(r.if((0,o.propertyInData)(r,a,c,n.opts.ownProperties),()=>{let t=e.subschema({keyword:i,schemaProp:c},l);e.mergeValidEvaluated(t,l)},()=>r.var(l,!0)),e.ok(l))}(e,r)}};t.default=i},70510(e,t,r){let a=r(17898),s=r(50458);function o(e,t){let r=e.schema[t];return void 0!==r&&!(0,s.alwaysValidSchema)(e,r)}t.default={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>(0,a.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,a._)`{failingKeyword: ${e.ifClause}}`},code(e){let t,{gen:r,parentSchema:i,it:n}=e;void 0===i.then&&void 0===i.else&&(0,s.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let l=o(n,"then"),c=o(n,"else");if(!l&&!c)return;let u=r.let("valid",!0),d=r.name("_valid");if(t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},d),e.mergeEvaluated(t),e.reset(),l&&c){let t=r.let("ifClause");e.setParams({ifClause:t}),r.if(d,f("then",t),f("else",t))}else l?r.if(d,f("then")):r.if((0,a.not)(d),f("else"));function f(t,s){return()=>{let o=e.subschema({keyword:t},d);r.assign(u,d),e.mergeValidEvaluated(o,u),s?r.assign(s,(0,a._)`${t}`):e.setParams({ifClause:t})}}e.pass(u,()=>e.error(!0))}}},18225(e,t,r){let a=r(93426),s=r(61349),o=r(44153),i=r(19753),n=r(35724),l=r(99868),c=r(67486),u=r(92697),d=r(19660),f=r(98422),h=r(65532),p=r(19430),m=r(98768),y=r(79355),$=r(70510),g=r(45255);t.default=function(e=!1){let t=[h.default,p.default,m.default,y.default,$.default,g.default,c.default,u.default,l.default,d.default,f.default];return e?t.push(s.default,i.default):t.push(a.default,o.default),t.push(n.default),t}},44153(e,t,r){t.validateTuple=void 0;let a=r(17898),s=r(50458),o=r(94450);function i(e,t,r=e.schema){let{gen:o,parentSchema:n,data:l,keyword:c,it:u}=e;(function(e){let{opts:a,errSchemaPath:o}=u,i=r.length,n=i===e.minItems&&(i===e.maxItems||!1===e[t]);if(a.strictTuples&&!n){let e=`"${c}" is ${i}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,s.checkStrictMode)(u,e,a.strictTuples)}})(n),u.opts.unevaluated&&r.length&&!0!==u.items&&(u.items=s.mergeEvaluated.items(o,r.length,u.items));let d=o.name("valid"),f=o.const("len",(0,a._)`${l}.length`);r.forEach((t,r)=>{(0,s.alwaysValidSchema)(u,t)||(o.if((0,a._)`${f} > ${r}`,()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},d)),e.ok(d))})}t.validateTuple=i,t.default={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return i(e,"additionalItems",t);r.items=!0,(0,s.alwaysValidSchema)(r,t)||e.ok((0,o.validateArray)(e))}}},19753(e,t,r){let a=r(17898),s=r(50458),o=r(94450),i=r(93426);t.default={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>(0,a.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,a._)`{limit: ${e}}`},code(e){let{schema:t,parentSchema:r,it:a}=e,{prefixItems:n}=r;a.items=!0,(0,s.alwaysValidSchema)(a,t)||(n?(0,i.validateAdditionalItems)(e,n):e.ok((0,o.validateArray)(e)))}}},65532(e,t,r){let a=r(50458);t.default={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:s}=e;if((0,a.alwaysValidSchema)(s,r))return void e.fail();let o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}}},98768(e,t,r){let a=r(17898),s=r(50458);t.default={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>(0,a._)`{passingSchemas: ${e.passing}}`},code(e){let{gen:t,schema:r,parentSchema:o,it:i}=e;if(!Array.isArray(r))throw Error("ajv implementation error");if(i.opts.discriminator&&o.discriminator)return;let n=t.let("valid",!1),l=t.let("passing",null),c=t.name("_valid");e.setParams({passing:l}),t.block(function(){r.forEach((r,o)=>{let u;(0,s.alwaysValidSchema)(i,r)?t.var(c,!0):u=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},c),o>0&&t.if((0,a._)`${c} && ${n}`).assign(n,!1).assign(l,(0,a._)`[${l}, ${o}]`).else(),t.if(c,()=>{t.assign(n,!0),t.assign(l,o),u&&e.mergeEvaluated(u,a.Name)})})}),e.result(n,()=>e.reset(),()=>e.error(!0))}}},98422(e,t,r){let a=r(94450),s=r(17898),o=r(50458),i=r(50458);t.default={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:l,it:c}=e,{opts:u}=c,d=(0,a.allSchemaProperties)(r),f=d.filter(e=>(0,o.alwaysValidSchema)(c,r[e]));if(0===d.length||f.length===d.length&&(!c.opts.unevaluated||!0===c.props))return;let h=u.strictSchema&&!u.allowMatchingProperties&&l.properties,p=t.name("valid");!0===c.props||c.props instanceof s.Name||(c.props=(0,i.evaluatedPropsToName)(t,c.props));let{props:m}=c;for(let e of d)h&&function(e){for(let t in h)new RegExp(e).test(t)&&(0,o.checkStrictMode)(c,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}(e),c.allErrors?y(e):(t.var(p,!0),y(e),t.if(p));function y(r){t.forIn("key",n,o=>{t.if((0,s._)`${(0,a.usePattern)(e,r)}.test(${o})`,()=>{let a=f.includes(r);a||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:o,dataPropType:i.Type.Str},p),c.opts.unevaluated&&!0!==m?t.assign((0,s._)`${m}[${o}]`,!0):a||c.allErrors||t.if((0,s.not)(p),()=>t.break())})})}}}},61349(e,t,r){let a=r(44153);t.default={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,a.validateTuple)(e,"items")}},19660(e,t,r){let a=r(96223),s=r(94450),o=r(50458),i=r(92697);t.default={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:l,it:c}=e;"all"===c.opts.removeAdditional&&void 0===n.additionalProperties&&i.default.code(new a.KeywordCxt(c,i.default,"additionalProperties"));let u=(0,s.allSchemaProperties)(r);for(let e of u)c.definedProperties.add(e);c.opts.unevaluated&&u.length&&!0!==c.props&&(c.props=o.mergeEvaluated.props(t,(0,o.toHash)(u),c.props));let d=u.filter(e=>!(0,o.alwaysValidSchema)(c,r[e]));if(0===d.length)return;let f=t.name("valid");for(let a of d){var h;(h=a,c.opts.useDefaults&&!c.compositeRule&&void 0!==r[h].default)?p(a):(t.if((0,s.propertyInData)(t,l,a,c.opts.ownProperties)),p(a),c.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(a),e.ok(f)}function p(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}}},67486(e,t,r){let a=r(17898),s=r(50458);t.default={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>(0,a._)`{propertyName: ${e.propertyName}}`},code(e){let{gen:t,schema:r,data:o,it:i}=e;if((0,s.alwaysValidSchema)(i,r))return;let n=t.name("valid");t.forIn("key",o,r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},n),t.if((0,a.not)(n),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(n)}}},45255(e,t,r){let a=r(50458);t.default={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,a.checkStrictMode)(r,`"${e}" without "if" is ignored`)}}},94450(e,t,r){t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;let a=r(17898),s=r(50458),o=r(63036),i=r(50458);function n(e,t,r){return(0,a._)`${e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,a._)`Object.prototype.hasOwnProperty`})}.call(${t}, ${r})`}function l(e,t,r,s){let o=(0,a._)`${t}${(0,a.getProperty)(r)} === undefined`;return s?(0,a.or)(o,(0,a.not)(n(e,t,r))):o}t.checkReportMissingProp=function(e,t){let{gen:r,data:s,it:o}=e;r.if(l(r,s,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,a._)`${t}`},!0),e.error()})},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},s,o){return(0,a.or)(...s.map(s=>(0,a.and)(l(e,t,s,r.ownProperties),(0,a._)`${o} = ${s}`)))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.isOwnProperty=n;t.propertyInData=function(e,t,r,s){let o=(0,a._)`${t}${(0,a.getProperty)(r)} !== undefined`;return s?(0,a._)`${o} && ${n(e,t,r)}`:o},t.noPropertyInData=l,t.allSchemaProperties=function(e){return e?Object.keys(e).filter(e=>"__proto__"!==e):[]},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:s,schemaPath:i,errorPath:n},it:l},c,u,d){let f=d?(0,a._)`${e}, ${t}, ${s}${i}`:t,h=[[o.default.instancePath,(0,a.strConcat)(o.default.instancePath,n)],[o.default.parentData,l.parentData],[o.default.parentDataProperty,l.parentDataProperty],[o.default.rootData,o.default.rootData]];l.opts.dynamicRef&&h.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);let p=(0,a._)`${f}, ${r.object(...h)}`;return u!==a.nil?(0,a._)`${c}.call(${u}, ${p})`:(0,a._)`${c}(${p})`};let c=(0,a._)`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){let s=t.unicodeRegExp?"u":"",{regExp:o}=t.code,n=o(r,s);return e.scopeValue("pattern",{key:n.toString(),ref:n,code:(0,a._)`${"new RegExp"===o.code?c:(0,i.useFunc)(e,o)}(${r}, ${s})`})},t.validateArray=function(e){let{gen:t,data:r,keyword:o,it:i}=e,n=t.name("valid");if(i.allErrors){let e=t.let("valid",!0);return l(()=>t.assign(e,!1)),e}return t.var(n,!0),l(()=>t.break()),n;function l(i){let l=t.const("len",(0,a._)`${r}.length`);t.forRange("i",0,l,r=>{e.subschema({keyword:o,dataProp:r,dataPropType:s.Type.Num},n),t.if((0,a.not)(n),i)})}},t.validateUnion=function(e){let{gen:t,schema:r,keyword:o,it:i}=e;if(!Array.isArray(r))throw Error("ajv implementation error");if(r.some(e=>(0,s.alwaysValidSchema)(i,e))&&!i.opts.unevaluated)return;let n=t.let("valid",!1),l=t.name("_valid");t.block(()=>r.forEach((r,s)=>{let i=e.subschema({keyword:o,schemaProp:s,compositeRule:!0},l);t.assign(n,(0,a._)`${n} || ${l}`),e.mergeValidEvaluated(i,l)||t.if((0,a.not)(n))})),e.result(n,()=>e.reset(),()=>e.error(!0))}},73946(e,t){t.default={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}}},3839(e,t,r){let a=r(73946),s=r(26138);t.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",a.default,s.default]},26138(e,t,r){let a=r(85748),s=r(94450),o=r(17898),i=r(63036),n=r(49392),l=r(50458);function c(e,t,r,a){let{gen:n,it:c}=e,{allErrors:u,schemaEnv:d,opts:f}=c,h=f.passContext?i.default.this:o.nil;function p(e){let t=(0,o._)`${e}.errors`;n.assign(i.default.vErrors,(0,o._)`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`),n.assign(i.default.errors,(0,o._)`${i.default.vErrors}.length`)}function m(e){var t;if(!c.opts.unevaluated)return;let a=null==(t=null==r?void 0:r.validate)?void 0:t.evaluated;if(!0!==c.props)if(a&&!a.dynamicProps)void 0!==a.props&&(c.props=l.mergeEvaluated.props(n,a.props,c.props));else{let t=n.var("props",(0,o._)`${e}.evaluated.props`);c.props=l.mergeEvaluated.props(n,t,c.props,o.Name)}if(!0!==c.items)if(a&&!a.dynamicItems)void 0!==a.items&&(c.items=l.mergeEvaluated.items(n,a.items,c.items));else{let t=n.var("items",(0,o._)`${e}.evaluated.items`);c.items=l.mergeEvaluated.items(n,t,c.items,o.Name)}}a?function(){if(!d.$async)throw Error("async schema referenced by sync schema");let r=n.let("valid");n.try(()=>{n.code((0,o._)`await ${(0,s.callValidateCode)(e,t,h)}`),m(t),u||n.assign(r,!0)},e=>{n.if((0,o._)`!(${e} instanceof ${c.ValidationError})`,()=>n.throw(e)),p(e),u||n.assign(r,!1)}),e.ok(r)}():e.result((0,s.callValidateCode)(e,t,h),()=>m(t),()=>p(t))}t.default={keyword:"$ref",schemaType:"string",code(e){var t,r;let s,i,l,u,{gen:d,schema:f,it:h}=e,{baseId:p,schemaEnv:m,validateName:y,opts:$,self:g}=h,{root:v}=m;if(("#"===f||"#/"===f)&&p===v.baseId){if(m===v)return c(e,y,m,m.$async);let t=d.scopeValue("root",{ref:v});return c(e,(0,o._)`${t}.validate`,v,v.$async)}let _=n.resolveRef.call(g,v,p,f);if(void 0===_)throw new a.default(h.opts.uriResolver,p,f);return _ instanceof n.SchemaEnv?(s=function(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,o._)`${r.scopeValue("wrapper",{ref:t})}.validate`}(e,t=_),void c(e,s,t,t.$async)):(r=_,i=d.scopeValue("schema",!0===$.code.source?{ref:r,code:(0,o.stringify)(r)}:{ref:r}),l=d.name("valid"),u=e.subschema({schema:r,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:f},l),void(e.mergeEvaluated(u),e.ok(l)))}}},11672(e,t,r){let a=r(17898),s=r(88925),o=r(49392),i=r(85748),n=r(50458);t.default={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===s.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,a._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){let{gen:t,data:r,schema:l,parentSchema:c,it:u}=e,{oneOf:d}=c;if(!u.opts.discriminator)throw Error("discriminator: requires discriminator option");let f=l.propertyName;if("string"!=typeof f)throw Error("discriminator: requires propertyName");if(l.mapping)throw Error("discriminator: mapping is not supported");if(!d)throw Error("discriminator: requires oneOf keyword");let h=t.let("valid",!1),p=t.const("tag",(0,a._)`${r}${(0,a.getProperty)(f)}`);t.if((0,a._)`typeof ${p} == "string"`,()=>(function(){let r=function(){var e;let t={},r=s(c),a=!0;for(let t=0;t<d.length;t++){let c=d[t];if((null==c?void 0:c.$ref)&&!(0,n.schemaHasRulesButRef)(c,u.self.RULES)){let e=c.$ref;if((c=o.resolveRef.call(u.self,u.schemaEnv.root,u.baseId,e))instanceof o.SchemaEnv&&(c=c.schema),void 0===c)throw new i.default(u.opts.uriResolver,u.baseId,e)}let h=null==(e=null==c?void 0:c.properties)?void 0:e[f];if("object"!=typeof h)throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);a=a&&(r||s(c)),function(e,t){if(e.const)l(e.const,t);else if(e.enum)for(let r of e.enum)l(r,t);else throw Error(`discriminator: "properties/${f}" must have "const" or "enum"`)}(h,t)}if(!a)throw Error(`discriminator: "${f}" must be required`);return t;function s({required:e}){return Array.isArray(e)&&e.includes(f)}function l(e,r){if("string"!=typeof e||e in t)throw Error(`discriminator: "${f}" values must be unique strings`);t[e]=r}}();for(let s in t.if(!1),r)t.elseIf((0,a._)`${p} === ${s}`),t.assign(h,function(r){let s=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},s);return e.mergeEvaluated(o,a.Name),s}(r[s]));t.else(),e.error(!1,{discrError:s.DiscrError.Mapping,tag:p,tagName:f}),t.endIf()})(),()=>e.error(!1,{discrError:s.DiscrError.Tag,tag:p,tagName:f})),e.ok(h)}}},88925(e,t){var r,a;t.DiscrError=void 0,(a=r||(t.DiscrError=r={})).Tag="tag",a.Mapping="mapping"},2431(e,t,r){let a=r(3839),s=r(17851),o=r(18225),i=r(26699),n=r(34882);t.default=[a.default,s.default,(0,o.default)(),i.default,n.metadataVocabulary,n.contentVocabulary]},37072(e,t,r){let a=r(17898);t.default={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>(0,a.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,a._)`{format: ${e}}`},code(e,t){let r,s,o,i,n,l,{gen:c,data:u,$data:d,schema:f,schemaCode:h,it:p}=e,{opts:m,errSchemaPath:y,schemaEnv:$,self:g}=p;m.validateFormats&&(d?(r=c.scopeValue("formats",{ref:g.formats,code:m.code.formats}),s=c.const("fDef",(0,a._)`${r}[${h}]`),o=c.let("fType"),i=c.let("format"),c.if((0,a._)`typeof ${s} == "object" && !(${s} instanceof RegExp)`,()=>c.assign(o,(0,a._)`${s}.type || "string"`).assign(i,(0,a._)`${s}.validate`),()=>c.assign(o,(0,a._)`"string"`).assign(i,s)),e.fail$data((0,a.or)(!1===m.strictSchema?a.nil:(0,a._)`${h} && !${i}`,(n=$.$async?(0,a._)`(${s}.async ? await ${i}(${u}) : ${i}(${u}))`:(0,a._)`${i}(${u})`,l=(0,a._)`(typeof ${i} == "function" ? ${n} : ${i}.test(${u}))`,(0,a._)`${i} && ${i} !== true && ${o} === ${t} && !${l}`)))):function(){var r;let s,o,i=g.formats[f];if(!i){if(!1===m.strictSchema)return g.logger.warn(n());throw Error(n());function n(){return`unknown format "${f}" ignored in schema at path "${y}"`}}if(!0===i)return;let[l,d,h]=(s=(r=i)instanceof RegExp?(0,a.regexpCode)(r):m.code.formats?(0,a._)`${m.code.formats}${(0,a.getProperty)(f)}`:void 0,o=c.scopeValue("formats",{key:f,ref:r,code:s}),"object"!=typeof r||r instanceof RegExp?["string",r,o]:[r.type||"string",r.validate,(0,a._)`${o}.validate`]);l===t&&e.pass(function(){if("object"==typeof i&&!(i instanceof RegExp)&&i.async){if(!$.$async)throw Error("async format in sync schema");return(0,a._)`await ${h}(${u})`}return"function"==typeof d?(0,a._)`${h}(${u})`:(0,a._)`${h}.test(${u})`}())}())}}},26699(e,t,r){t.default=[r(37072).default]},34882(e,t){t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},79520(e,t,r){let a=r(17898),s=r(50458),o=r(72725);t.default={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>(0,a._)`{allowedValue: ${e}}`},code(e){let{gen:t,data:r,$data:i,schemaCode:n,schema:l}=e;i||l&&"object"==typeof l?e.fail$data((0,a._)`!${(0,s.useFunc)(t,o.default)}(${r}, ${n})`):e.fail((0,a._)`${l} !== ${r}`)}}},36742(e,t,r){let a=r(17898),s=r(50458),o=r(72725);t.default={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,a._)`{allowedValues: ${e}}`},code(e){let t,r,{gen:i,data:n,$data:l,schema:c,schemaCode:u,it:d}=e;if(!l&&0===c.length)throw Error("enum must have non-empty array");let f=c.length>=d.opts.loopEnum,h=()=>null!=t?t:t=(0,s.useFunc)(i,o.default);if(f||l)r=i.let("valid"),e.block$data(r,function(){i.assign(r,!1),i.forOf("v",u,e=>i.if((0,a._)`${h()}(${n}, ${e})`,()=>i.assign(r,!0).break()))});else{if(!Array.isArray(c))throw Error("ajv implementation error");let e=i.const("vSchema",u);r=(0,a.or)(...c.map((t,r)=>{var s,o;let i;return s=e,"object"==typeof(i=c[o=r])&&null!==i?(0,a._)`${h()}(${n}, ${s}[${o}])`:(0,a._)`${n} === ${i}`}))}e.pass(r)}}},17851(e,t,r){let a=r(72333),s=r(21230),o=r(3936),i=r(81005),n=r(71589),l=r(29594),c=r(38558),u=r(44058),d=r(79520),f=r(36742);t.default=[a.default,s.default,o.default,i.default,n.default,l.default,c.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,f.default]},38558(e,t,r){let a=r(17898);t.default={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,a.str)`must NOT have ${"maxItems"===e?"more":"fewer"} than ${t} items`,params:({schemaCode:e})=>(0,a._)`{limit: ${e}}`},code(e){let{keyword:t,data:r,schemaCode:s}=e,o="maxItems"===t?a.operators.GT:a.operators.LT;e.fail$data((0,a._)`${r}.length ${o} ${s}`)}}},3936(e,t,r){let a=r(17898),s=r(50458),o=r(26308);t.default={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,a.str)`must NOT have ${"maxLength"===e?"more":"fewer"} than ${t} characters`,params:({schemaCode:e})=>(0,a._)`{limit: ${e}}`},code(e){let{keyword:t,data:r,schemaCode:i,it:n}=e,l="maxLength"===t?a.operators.GT:a.operators.LT,c=!1===n.opts.unicode?(0,a._)`${r}.length`:(0,a._)`${(0,s.useFunc)(e.gen,o.default)}(${r})`;e.fail$data((0,a._)`${c} ${l} ${i}`)}}},72333(e,t,r){let a=r(17898),s=a.operators,o={maximum:{okStr:"<=",ok:s.LTE,fail:s.GT},minimum:{okStr:">=",ok:s.GTE,fail:s.LT},exclusiveMaximum:{okStr:"<",ok:s.LT,fail:s.GTE},exclusiveMinimum:{okStr:">",ok:s.GT,fail:s.LTE}};t.default={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,a.str)`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,a._)`{comparison: ${o[e].okStr}, limit: ${t}}`},code(e){let{keyword:t,data:r,schemaCode:s}=e;e.fail$data((0,a._)`${r} ${o[t].fail} ${s} || isNaN(${r})`)}}},71589(e,t,r){let a=r(17898);t.default={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,a.str)`must NOT have ${"maxProperties"===e?"more":"fewer"} than ${t} properties`,params:({schemaCode:e})=>(0,a._)`{limit: ${e}}`},code(e){let{keyword:t,data:r,schemaCode:s}=e,o="maxProperties"===t?a.operators.GT:a.operators.LT;e.fail$data((0,a._)`Object.keys(${r}).length ${o} ${s}`)}}},21230(e,t,r){let a=r(17898);t.default={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>(0,a.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,a._)`{multipleOf: ${e}}`},code(e){let{gen:t,data:r,schemaCode:s,it:o}=e,i=o.opts.multipleOfPrecision,n=t.let("res"),l=i?(0,a._)`Math.abs(Math.round(${n}) - ${n}) > 1e-${i}`:(0,a._)`${n} !== parseInt(${n})`;e.fail$data((0,a._)`(${s} === 0 || (${n} = ${r}/${s}, ${l}))`)}}},81005(e,t,r){let a=r(94450),s=r(17898);t.default={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>(0,s.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,s._)`{pattern: ${e}}`},code(e){let{data:t,$data:r,schema:o,schemaCode:i,it:n}=e,l=n.opts.unicodeRegExp?"u":"",c=r?(0,s._)`(new RegExp(${i}, ${l}))`:(0,a.usePattern)(e,o);e.fail$data((0,s._)`!${c}.test(${t})`)}}},29594(e,t,r){let a=r(94450),s=r(17898),o=r(50458);t.default={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>(0,s.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,s._)`{missingProperty: ${e}}`},code(e){let{gen:t,schema:r,schemaCode:i,data:n,$data:l,it:c}=e,{opts:u}=c;if(!l&&0===r.length)return;let d=r.length>=u.loopRequired;if(c.allErrors?function(){if(d||l)e.block$data(s.nil,f);else for(let t of r)(0,a.checkReportMissingProp)(e,t)}():function(){let o=t.let("missing");if(d||l){let r=t.let("valid",!0);e.block$data(r,()=>{var l,c;return l=o,c=r,void(e.setParams({missingProperty:l}),t.forOf(l,i,()=>{t.assign(c,(0,a.propertyInData)(t,n,l,u.ownProperties)),t.if((0,s.not)(c),()=>{e.error(),t.break()})},s.nil))}),e.ok(r)}else t.if((0,a.checkMissingProp)(e,r,o)),(0,a.reportMissingProp)(e,o),t.else()}(),u.strictRequired){let t=e.parentSchema.properties,{definedProperties:a}=e.it;for(let e of r)if((null==t?void 0:t[e])===void 0&&!a.has(e)){let t=c.schemaEnv.baseId+c.errSchemaPath,r=`required property "${e}" is not defined at "${t}" (strictRequired)`;(0,o.checkStrictMode)(c,r,c.opts.strictRequired)}}function f(){t.forOf("prop",i,r=>{e.setParams({missingProperty:r}),t.if((0,a.noPropertyInData)(t,n,r,u.ownProperties),()=>e.error())})}}}},44058(e,t,r){let a=r(69003),s=r(17898),o=r(50458),i=r(72725);t.default={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>(0,s.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,s._)`{i: ${e}, j: ${t}}`},code(e){let{gen:t,data:r,$data:n,schema:l,parentSchema:c,schemaCode:u,it:d}=e;if(!n&&!l)return;let f=t.let("valid"),h=c.items?(0,a.getSchemaTypes)(c.items):[];e.block$data(f,function(){let n=t.let("i",(0,s._)`${r}.length`),l=t.let("j");e.setParams({i:n,j:l}),t.assign(f,!0),t.if((0,s._)`${n} > 1`,()=>(h.length>0&&!h.some(e=>"object"===e||"array"===e)?function(o,i){let n=t.name("item"),l=(0,a.checkDataTypes)(h,n,d.opts.strictNumbers,a.DataType.Wrong),c=t.const("indices",(0,s._)`{}`);t.for((0,s._)`;${o}--;`,()=>{t.let(n,(0,s._)`${r}[${o}]`),t.if(l,(0,s._)`continue`),h.length>1&&t.if((0,s._)`typeof ${n} == "string"`,(0,s._)`${n} += "_"`),t.if((0,s._)`typeof ${c}[${n}] == "number"`,()=>{t.assign(i,(0,s._)`${c}[${n}]`),e.error(),t.assign(f,!1).break()}).code((0,s._)`${c}[${n}] = ${o}`)})}:function(a,n){let l=(0,o.useFunc)(t,i.default),c=t.name("outer");t.label(c).for((0,s._)`;${a}--;`,()=>t.for((0,s._)`${n} = ${a}; ${n}--;`,()=>t.if((0,s._)`${l}(${r}[${a}], ${r}[${n}])`,()=>{e.error(),t.assign(f,!1).break(c)})))})(n,l))},(0,s._)`${u} === false`),e.ok(f)}}},38792(e){e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((a=t.length)!=r.length)return!1;for(s=a;0!=s--;)if(!e(t[s],r[s]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((a=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(s=a;0!=s--;)if(!Object.prototype.hasOwnProperty.call(r,o[s]))return!1;for(s=a;0!=s--;){var a,s,o,i=o[s];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r}},1645(e){var t=e.exports=function(e,r,a){"function"==typeof r&&(a=r,r={});var s="function"==typeof(a=r.cb||a)?a:a.pre||function(){};!function e(r,a,s,o,i,n,l,c,u,d){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var f in a(o,i,n,l,c,u,d),o){var h=o[f];if(Array.isArray(h)){if(f in t.arrayKeywords)for(var p=0;p<h.length;p++)e(r,a,s,h[p],i+"/"+f+"/"+p,n,i,f,o,p)}else if(f in t.propsKeywords){if(h&&"object"==typeof h)for(var m in h)e(r,a,s,h[m],i+"/"+f+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),n,i,f,o,m)}else(f in t.keywords||r.allKeys&&!(f in t.skipKeywords))&&e(r,a,s,h,i+"/"+f,n,i,f,o)}s(o,i,n,l,c,u,d)}}(r,s,a.post||function(){},e,"",e)};t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.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}},84800(e,t,r){let{normalizeIPv6:a,removeDotSegments:s,recomposeAuthority:o,normalizeComponentEncoding:i,isIPv4:n,nonSimpleDomain:l}=r(75365),{SCHEMES:c,getSchemeHandler:u}=r(13956);function d(e,t,r,a){let o={};return a||(e=p(f(e,r),r),t=p(f(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=s(t.path||""),o.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=s(t.path||""),o.query=t.query):(t.path?("/"===t.path[0]?o.path=s(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path:o.path="/"+t.path,o.path=s(o.path)),o.query=t.query):(o.path=e.path,void 0!==t.query?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function f(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},a=Object.assign({},t),i=[],n=u(a.scheme||r.scheme);n&&n.serialize&&n.serialize(r,a),void 0!==r.path&&(a.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),void 0!==r.scheme&&(r.path=r.path.split("%3A").join(":")))),"suffix"!==a.reference&&r.scheme&&i.push(r.scheme,":");let l=o(r);if(void 0!==l&&("suffix"!==a.reference&&i.push("//"),i.push(l),r.path&&"/"!==r.path[0]&&i.push("/")),void 0!==r.path){let e=r.path;a.absolutePath||n&&n.absolutePath||(e=s(e)),void 0===l&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),i.push(e)}return void 0!==r.query&&i.push("?",r.query),void 0!==r.fragment&&i.push("#",r.fragment),i.join("")}let h=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function p(e,t){let r=Object.assign({},t),s={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},o=!1;"suffix"===r.reference&&(e=r.scheme?r.scheme+":"+e:"//"+e);let i=e.match(h);if(i){if(s.scheme=i[1],s.userinfo=i[3],s.host=i[4],s.port=parseInt(i[5],10),s.path=i[6]||"",s.query=i[7],s.fragment=i[8],isNaN(s.port)&&(s.port=i[5]),s.host)if(!1===n(s.host)){let e=a(s.host);s.host=e.host.toLowerCase(),o=e.isIPV6}else o=!0;void 0!==s.scheme||void 0!==s.userinfo||void 0!==s.host||void 0!==s.port||void 0!==s.query||s.path?void 0===s.scheme?s.reference="relative":void 0===s.fragment?s.reference="absolute":s.reference="uri":s.reference="same-document",r.reference&&"suffix"!==r.reference&&r.reference!==s.reference&&(s.error=s.error||"URI is not a "+r.reference+" reference.");let t=u(r.scheme||s.scheme);if(!r.unicodeSupport&&(!t||!t.unicodeSupport)&&s.host&&(r.domainHost||t&&t.domainHost)&&!1===o&&l(s.host))try{s.host=URL.domainToASCII(s.host.toLowerCase())}catch(e){s.error=s.error||"Host's domain name can not be converted to ASCII: "+e}(!t||t&&!t.skipNormalize)&&(-1!==e.indexOf("%")&&(void 0!==s.scheme&&(s.scheme=unescape(s.scheme)),void 0!==s.host&&(s.host=unescape(s.host))),s.path&&(s.path=escape(unescape(s.path))),s.fragment&&(s.fragment=encodeURI(decodeURIComponent(s.fragment)))),t&&t.parse&&t.parse(s,r)}else s.error=s.error||"URI can not be parsed.";return s}let m={SCHEMES:c,normalize:function(e,t){return"string"==typeof e?e=f(p(e,t),t):"object"==typeof e&&(e=p(f(e,t),t)),e},resolve:function(e,t,r){let a=r?Object.assign({scheme:"null"},r):{scheme:"null"},s=d(p(e,a),p(t,a),a,!0);return a.skipEscape=!0,f(s,a)},resolveComponent:d,equal:function(e,t,r){return"string"==typeof e?e=f(i(p(e=unescape(e),r),!0),{...r,skipEscape:!0}):"object"==typeof e&&(e=f(i(e,!0),{...r,skipEscape:!0})),"string"==typeof t?t=f(i(p(t=unescape(t),r),!0),{...r,skipEscape:!0}):"object"==typeof t&&(t=f(i(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:f,parse:p};e.exports=m,e.exports.default=m,e.exports.fastUri=m},13956(e,t,r){let{isUUID:a}=r(75365),s=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,o=["http","https","ws","wss","urn","urn:uuid"];function i(e){return!0===e.secure||!1!==e.secure&&!!e.scheme&&3===e.scheme.length&&("w"===e.scheme[0]||"W"===e.scheme[0])&&("s"===e.scheme[1]||"S"===e.scheme[1])&&("s"===e.scheme[2]||"S"===e.scheme[2])}function n(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function l(e){let t="https"===String(e.scheme).toLowerCase();return(e.port===(t?443:80)||""===e.port)&&(e.port=void 0),e.path||(e.path="/"),e}let c={scheme:"http",domainHost:!0,parse:n,serialize:l},u={scheme:"https",domainHost:c.domainHost,parse:n,serialize:l},d={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=i(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if((e.port===(i(e)?443:80)||""===e.port)&&(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}},f={scheme:"wss",domainHost:d.domainHost,parse:d.parse,serialize:d.serialize},h={http:c,https:u,ws:d,wss:f,urn:{scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(s);if(r){let a=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let s=p(`${a}:${t.nid||e.nid}`);e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){if(void 0===e.nid)throw Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",a=e.nid.toLowerCase(),s=p(`${r}:${t.nid||a}`);s&&(e=s.serialize(e,t));let o=e,i=e.nss;return o.path=`${a||t.nid}:${i}`,t.skipEscape=!0,o},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(e,t){return e.uuid=e.nss,e.nss=void 0,t.tolerant||e.uuid&&a(e.uuid)||(e.error=e.error||"UUID is not valid."),e},serialize:function(e){return e.nss=(e.uuid||"").toLowerCase(),e},skipNormalize:!0}};function p(e){return e&&(h[e]||h[e.toLowerCase()])||void 0}Object.setPrototypeOf(h,null),e.exports={wsIsSecure:i,SCHEMES:h,isValidSchemeName:function(e){return -1!==o.indexOf(e)},getSchemeHandler:p}},75365(e){let t=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,r=/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u,a=/[^!"$&'()*+,\-.;=_`a-z{}~]/u,s=e=>r.test(e);function o(e){let t="",r=0,a=0;for(a=0;a<e.length;a++)if(48!==(r=e[a].charCodeAt(0))){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[a];break}for(a+=1;a<e.length;a++){if(!((r=e[a].charCodeAt(0))>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[a]}return t}function i(e){return e.length=0,!0}function n(e,t,r){if(e.length){let a=o(e);if(""===a)return r.error=!0,!1;t.push(a),e.length=0}return!0}function l(e){if(2>function(e){let t=0;for(let r=0;r<e.length;r++)":"===e[r]&&t++;return t}(e))return{host:e,isIPV6:!1};let t=function(e){let t=0,r={error:!1,address:"",zone:""},a=[],s=[],l=!1,c=!1,u=n;for(let o=0;o<e.length;o++){let n=e[o];if("["!==n&&"]"!==n)if(":"===n){if(!0===l&&(c=!0),!u(s,a,r))break;if(++t>7){r.error=!0;break}o>0&&":"===e[o-1]&&(l=!0),a.push(":");continue}else if("%"===n){if(!u(s,a,r))break;u=i}else{s.push(n);continue}}return s.length&&(u===i?r.zone=s.join(""):c?a.push(s.join("")):a.push(o(s))),r.address=a.join(""),r}(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,r=t.address;return t.zone&&(e+="%"+t.zone,r+="%25"+t.zone),{host:e,isIPV6:!0,escapedHost:r}}}e.exports={nonSimpleDomain:e=>a.test(e),recomposeAuthority:function(e){let t=[];if(void 0!==e.userinfo&&(t.push(e.userinfo),t.push("@")),void 0!==e.host){let r=unescape(e.host);if(!s(r)){let t=l(r);r=!0===t.isIPV6?`[${t.escapedHost}]`:e.host}t.push(r)}return("number"==typeof e.port||"string"==typeof e.port)&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0},normalizeComponentEncoding:function(e,t){let r=!0!==t?escape:unescape;return void 0!==e.scheme&&(e.scheme=r(e.scheme)),void 0!==e.userinfo&&(e.userinfo=r(e.userinfo)),void 0!==e.host&&(e.host=r(e.host)),void 0!==e.path&&(e.path=r(e.path)),void 0!==e.query&&(e.query=r(e.query)),void 0!==e.fragment&&(e.fragment=r(e.fragment)),e},removeDotSegments:function(e){let t=e,r=[],a=-1,s=0;for(;s=t.length;){if(1===s)if("."===t)break;else if("/"===t){r.push("/");break}else{r.push(t);break}if(2===s){if("."===t[0]){if("."===t[1])break;else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&("."===t[1]||"/"===t[1])){r.push("/");break}}else if(3===s&&"/.."===t){0!==r.length&&r.pop(),r.push("/");break}if("."===t[0]){if("."===t[1]){if("/"===t[2]){t=t.slice(3);continue}}else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&"."===t[1]){if("/"===t[2]){t=t.slice(2);continue}else if("."===t[2]&&"/"===t[3]){t=t.slice(3),0!==r.length&&r.pop();continue}}if(-1===(a=t.indexOf("/",1))){r.push(t);break}r.push(t.slice(0,a)),t=t.slice(a)}return r.join("")},isIPv4:s,isUUID:e=>t.test(e),normalizeIPv6:l,stringArrayToHexStripped:o}},93770(e){e.exports=JSON.parse('{"$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":false}')},33928(e){e.exports=JSON.parse('{"$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":true,"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":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"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":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"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":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"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":true}')}};