@povio/openapi-codegen-cli 1.1.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +4 -0
  2. package/dist/commands/generate.d.ts +1 -1
  3. package/dist/generators/const/buildConfigs.const.d.ts +1 -0
  4. package/dist/generators/const/deps.const.d.ts +6 -9
  5. package/dist/generators/const/endpoints.const.d.ts +1 -0
  6. package/dist/generators/const/openapi.const.d.ts +1 -1
  7. package/dist/generators/const/queries.const.d.ts +0 -8
  8. package/dist/generators/const/zod.const.d.ts +1 -0
  9. package/dist/generators/core/SchemaResolver.class.d.ts +1 -1
  10. package/dist/generators/core/endpoints/getEndpointsFromOpenAPIDoc.d.ts +1 -1
  11. package/dist/generators/core/endpoints/getEndpointsFromOpenAPIDoc.test.d.ts +1 -0
  12. package/dist/generators/core/getMetadataFromOpenAPIDoc.test.d.ts +1 -0
  13. package/dist/generators/core/openapi/getOpenAPISchemaComplexity.test.d.ts +1 -0
  14. package/dist/generators/core/openapi/getOpenAPISchemaDependencyGraph.test.d.ts +1 -0
  15. package/dist/generators/core/zod/getZodSchema.test.d.ts +1 -0
  16. package/dist/generators/generate/generateConfigs.d.ts +2 -0
  17. package/dist/generators/types/builder-config.d.ts +49 -0
  18. package/dist/generators/types/endpoint.d.ts +3 -0
  19. package/dist/generators/types/generate.d.ts +3 -2
  20. package/dist/generators/types/options.d.ts +21 -3
  21. package/dist/generators/utils/endpoint.utils.d.ts +12 -0
  22. package/dist/generators/utils/endpoint.utils.test.d.ts +1 -0
  23. package/dist/generators/utils/generate/generate.configs.utils.d.ts +15 -0
  24. package/dist/generators/utils/generate/generate.endpoints.utils.d.ts +3 -4
  25. package/dist/generators/utils/generate/generate.imports.utils.d.ts +10 -0
  26. package/dist/generators/utils/generate/generate.imports.utils.test.d.ts +1 -0
  27. package/dist/generators/utils/generate/generate.query.utils.d.ts +3 -0
  28. package/dist/generators/utils/generate/generate.utils.d.ts +0 -5
  29. package/dist/generators/utils/generate/generate.zod.utils.d.ts +1 -1
  30. package/dist/generators/utils/hbs/hbs.query.utils.d.ts +2 -1
  31. package/dist/generators/utils/js.utils.test.d.ts +1 -0
  32. package/dist/generators/utils/namespace.utils.d.ts +7 -0
  33. package/dist/generators/utils/object.utils.test.d.ts +1 -0
  34. package/dist/generators/utils/openapi-schema.utils.d.ts +2 -2
  35. package/dist/generators/utils/openapi.utils.test.d.ts +1 -0
  36. package/dist/generators/utils/operation.utils.test.d.ts +1 -0
  37. package/dist/generators/utils/query.utils.d.ts +2 -1
  38. package/dist/generators/utils/string.utils.test.d.ts +1 -0
  39. package/dist/generators/utils/tag.utils.d.ts +2 -0
  40. package/dist/index.js +47 -47
  41. package/dist/sh.js +180 -180
  42. package/dist/tsconfig.tsbuildinfo +1 -0
  43. package/package.json +1 -1
  44. package/src/generators/templates/configs.hbs +79 -0
  45. package/src/generators/templates/partials/columns-config.hbs +11 -0
  46. package/src/generators/templates/partials/inputs-config.hbs +10 -0
package/dist/index.js CHANGED
@@ -1,65 +1,65 @@
1
- "use strict";var mE=Object.create;var Oi=Object.defineProperty;var hE=Object.getOwnPropertyDescriptor;var gE=Object.getOwnPropertyNames;var yE=Object.getPrototypeOf,vE=Object.prototype.hasOwnProperty;var o=(e,t)=>Oi(e,"name",{value:t,configurable:!0});var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),SE=(e,t)=>{for(var r in t)Oi(e,r,{get:t[r],enumerable:!0})},Cd=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of gE(t))!vE.call(e,i)&&i!==r&&Oi(e,i,{get:()=>t[i],enumerable:!(n=hE(t,i))||n.enumerable});return e};var Ge=(e,t,r)=>(r=e!=null?mE(yE(e)):{},Cd(t||!e||!e.__esModule?Oi(r,"default",{value:e,enumerable:!0}):r,e)),bE=e=>Cd(Oi({},"__esModule",{value:!0}),e);var Le=h((De,kd)=>{"use strict";var Wo=/^win/.test(process.platform),_E=/\//g,PE=/^(\w{2,}):\/\//i,Nd=kd.exports,EE=/~1/g,$E=/~0/g,dc=[/\?/g,"%3F",/\#/g,"%23"],mc=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];De.parse=require("url").parse;De.resolve=require("url").resolve;De.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");De.getProtocol=o(function(t){let r=PE.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");De.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");De.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");De.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");De.isHttp=o(function(t){let r=Nd.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");De.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=Nd.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");De.fromFileSystemPath=o(function(t){Wo&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<dc.length;r+=2)t=t.replace(dc[r],dc[r+1]);return t},"fromFileSystemPath");De.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<mc.length;i+=2)t=t.replace(mc[i],mc[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),Wo&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=Wo?t:"/"+t)),Wo&&!n&&(t=t.replace(_E,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");De.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(EE,"/").replace($E,"~"))},"safePointerToPath")});var Yo=h(xi=>{"use strict";var jd=require("util"),OE=Le();xi.format=jd.format;xi.inherits=jd.inherits;xi.swaggerParamRegExp=/\{([^/}]+)}/g;var xE=["get","post","put","delete","patch","options","head","trace"];function hc(e,t){if(e.url&&e.url.startsWith("/")){let r=OE.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(hc,"fixServers");function AE(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>hc(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(s=>{s==="servers"?i[s].map(a=>hc(a,t)):xE.includes(s)&&i[s].servers&&i[s].servers.map(a=>hc(a,t))})})}))}o(AE,"fixOasRelativeServers");xi.fixOasRelativeServers=AE});var Jo=h(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.getDeepKeys=Sn.toJSON=void 0;var wE=["function","symbol","undefined"],IE=["constructor","prototype","__proto__"],TE=Object.getPrototypeOf({});function RE(){let e={},t=this;for(let r of qd(t))if(typeof r=="string"){let n=t[r],i=typeof n;wE.includes(i)||(e[r]=n)}return e}o(RE,"toJSON");Sn.toJSON=RE;function qd(e,t=[]){let r=[];for(;e&&e!==TE;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(IE))n.delete(i);return n}o(qd,"getDeepKeys");Sn.getDeepKeys=qd});var gc=h(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.addInspectMethod=bn.format=void 0;var Md=require("util"),CE=Jo(),Dd=Md.inspect.custom||Symbol.for("nodejs.util.inspect.custom");bn.format=Md.format;function NE(e){e[Dd]=kE}o(NE,"addInspectMethod");bn.addInspectMethod=NE;function kE(){let e={},t=this;for(let r of CE.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Dd],e}o(kE,"inspect")});var Hd=h(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.lazyJoinStacks=gt.joinStacks=gt.isWritableStack=gt.isLazyStack=void 0;var jE=/\r?\n/,qE=/\bono[ @]/;function ME(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(ME,"isLazyStack");gt.isLazyStack=ME;function DE(e){return!!(!e||e.writable||typeof e.set=="function")}o(DE,"isWritableStack");gt.isWritableStack=DE;function Ld(e,t){let r=Fd(e.stack),n=t?t.stack:void 0;return r&&n?r+`
1
+ "use strict";var DP=Object.create;var ji=Object.defineProperty;var LP=Object.getOwnPropertyDescriptor;var FP=Object.getOwnPropertyNames;var HP=Object.getPrototypeOf,VP=Object.prototype.hasOwnProperty;var o=(e,t)=>ji(e,"name",{value:t,configurable:!0});var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),BP=(e,t)=>{for(var r in t)ji(e,r,{get:t[r],enumerable:!0})},Wd=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of FP(t))!VP.call(e,i)&&i!==r&&ji(e,i,{get:()=>t[i],enumerable:!(n=LP(t,i))||n.enumerable});return e};var Re=(e,t,r)=>(r=e!=null?DP(HP(e)):{},Wd(t||!e||!e.__esModule?ji(r,"default",{value:e,enumerable:!0}):r,e)),GP=e=>Wd(ji({},"__esModule",{value:!0}),e);var He=h((Fe,Jd)=>{"use strict";var us=/^win/.test(process.platform),UP=/\//g,ZP=/^(\w{2,}):\/\//i,Yd=Jd.exports,zP=/~1/g,KP=/~0/g,Ic=[/\?/g,"%3F",/\#/g,"%23"],Tc=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Fe.parse=require("url").parse;Fe.resolve=require("url").resolve;Fe.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Fe.getProtocol=o(function(t){let r=ZP.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Fe.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Fe.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Fe.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Fe.isHttp=o(function(t){let r=Yd.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Fe.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=Yd.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Fe.fromFileSystemPath=o(function(t){us&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<Ic.length;r+=2)t=t.replace(Ic[r],Ic[r+1]);return t},"fromFileSystemPath");Fe.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<Tc.length;i+=2)t=t.replace(Tc[i],Tc[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),us&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=us?t:"/"+t)),us&&!n&&(t=t.replace(UP,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Fe.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(zP,"/").replace(KP,"~"))},"safePointerToPath")});var ls=h(qi=>{"use strict";var Xd=require("util"),QP=He();qi.format=Xd.format;qi.inherits=Xd.inherits;qi.swaggerParamRegExp=/\{([^/}]+)}/g;var WP=["get","post","put","delete","patch","options","head","trace"];function Cc(e,t){if(e.url&&e.url.startsWith("/")){let r=QP.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(Cc,"fixServers");function YP(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>Cc(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(s=>{s==="servers"?i[s].map(a=>Cc(a,t)):WP.includes(s)&&i[s].servers&&i[s].servers.map(a=>Cc(a,t))})})}))}o(YP,"fixOasRelativeServers");qi.fixOasRelativeServers=YP});var ps=h(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.getDeepKeys=xn.toJSON=void 0;var JP=["function","symbol","undefined"],XP=["constructor","prototype","__proto__"],e2=Object.getPrototypeOf({});function t2(){let e={},t=this;for(let r of em(t))if(typeof r=="string"){let n=t[r],i=typeof n;JP.includes(i)||(e[r]=n)}return e}o(t2,"toJSON");xn.toJSON=t2;function em(e,t=[]){let r=[];for(;e&&e!==e2;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(XP))n.delete(i);return n}o(em,"getDeepKeys");xn.getDeepKeys=em});var Rc=h(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.addInspectMethod=An.format=void 0;var tm=require("util"),r2=ps(),rm=tm.inspect.custom||Symbol.for("nodejs.util.inspect.custom");An.format=tm.format;function n2(e){e[rm]=i2}o(n2,"addInspectMethod");An.addInspectMethod=n2;function i2(){let e={},t=this;for(let r of r2.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[rm],e}o(i2,"inspect")});var om=h(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.lazyJoinStacks=yt.joinStacks=yt.isWritableStack=yt.isLazyStack=void 0;var o2=/\r?\n/,s2=/\bono[ @]/;function a2(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(a2,"isLazyStack");yt.isLazyStack=a2;function c2(e){return!!(!e||e.writable||typeof e.set=="function")}o(c2,"isWritableStack");yt.isWritableStack=c2;function nm(e,t){let r=im(e.stack),n=t?t.stack:void 0;return r&&n?r+`
2
2
 
3
- `+n:r||n}o(Ld,"joinStacks");gt.joinStacks=Ld;function LE(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return Ld({stack:n},r)},"get"),enumerable:!1,configurable:!0}):FE(t,e)}o(LE,"lazyJoinStacks");gt.lazyJoinStacks=LE;function Fd(e){if(e){let t=e.split(jE),r;for(let n=0;n<t.length;n++){let i=t[n];if(qE.test(i))r===void 0&&(r=n);else if(r!==void 0){t.splice(r,n-r);break}}if(t.length>0)return t.join(`
4
- `)}return e}o(Fd,"popStack");function FE(e,t){Object.defineProperty(e,"stack",{get:o(()=>Fd(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(FE,"lazyPopStack")});var Ud=h(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.extendError=void 0;var Vd=gc(),Xo=Hd(),Bd=Jo(),HE=["name","message","stack"];function VE(e,t,r){let n=e;return BE(n,t),t&&typeof t=="object"&&UE(n,t),n.toJSON=Bd.toJSON,Vd.addInspectMethod&&Vd.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(VE,"extendError");es.extendError=VE;function BE(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");Xo.isLazyStack(r)?Xo.lazyJoinStacks(r,e,t):Xo.isWritableStack(r)&&(e.stack=Xo.joinStacks(e,t))}o(BE,"extendStack");function UE(e,t){let r=Bd.getDeepKeys(t,HE),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o(UE,"mergeErrors")});var Gd=h(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.normalizeArgs=_n.normalizeOptions=void 0;var GE=gc();function ZE(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?GE.format:typeof e.format=="function"?e.format:!1}}o(ZE,"normalizeOptions");_n.normalizeOptions=ZE;function zE(e,t){let r,n,i,s="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?s=t.format.apply(void 0,i):s=i.join(" ")),t.concatMessages&&r&&r.message&&(s+=(s?`
5
- `:"")+r.message),{originalError:r,props:n,message:s}}o(zE,"normalizeArgs");_n.normalizeArgs=zE});var vc=h(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.Ono=void 0;var ts=Ud(),Zd=Gd(),KE=Jo(),QE=yc;rs.Ono=QE;function yc(e,t){t=Zd.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=Zd.normalizeArgs(n,t),c=new e(a);return ts.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(yc,"Ono");yc.toJSON=o(function(t){return KE.toJSON.call(t)},"toJSON");yc.extend=o(function(t,r,n){return n||r instanceof Error?ts.extendError(t,r,n):r?ts.extendError(t,void 0,r):ts.extendError(t)},"extend")});var zd=h(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.ono=void 0;var Nr=vc(),WE=yt;ns.ono=WE;yt.error=new Nr.Ono(Error);yt.eval=new Nr.Ono(EvalError);yt.range=new Nr.Ono(RangeError);yt.reference=new Nr.Ono(ReferenceError);yt.syntax=new Nr.Ono(SyntaxError);yt.type=new Nr.Ono(TypeError);yt.uri=new Nr.Ono(URIError);var YE=yt;function yt(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(YE))if(typeof r=="function"&&r.name==="ono"){let n=r[Symbol.species];if(n&&n!==Error&&(t instanceof n||t.name===n.name))return r.apply(void 0,e)}}return yt.error.apply(void 0,e)}o(yt,"ono")});var Qd=h(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});var oM=require("util")});var it=h((nt,Pn)=>{"use strict";var JE=nt&&nt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:o(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),XE=nt&&nt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&JE(t,e,r)};Object.defineProperty(nt,"__esModule",{value:!0});nt.ono=void 0;var Wd=zd();Object.defineProperty(nt,"ono",{enumerable:!0,get:o(function(){return Wd.ono},"get")});var e2=vc();Object.defineProperty(nt,"Ono",{enumerable:!0,get:o(function(){return e2.Ono},"get")});XE(Qd(),nt);nt.default=Wd.ono;typeof Pn=="object"&&typeof Pn.exports=="object"&&(Pn.exports=Object.assign(Pn.exports.default,Pn.exports))});var Ii=h(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.regexpCode=M.getEsmExportName=M.getProperty=M.safeStringify=M.stringify=M.strConcat=M.addCodeArg=M.str=M._=M.nil=M._Code=M.Name=M.IDENTIFIER=M._CodeOrName=void 0;var _c=class _c{};o(_c,"_CodeOrName");var Ai=_c;M._CodeOrName=Ai;M.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Pc=class Pc extends Ai{constructor(t){if(super(),!M.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};o(Pc,"Name");var kr=Pc;M.Name=kr;var Ec=class Ec extends Ai{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof kr&&(r[n.str]=(r[n.str]||0)+1),r),{})}};o(Ec,"_Code");var Ze=Ec;M._Code=Ze;M.nil=new Ze("");function Yd(e,...t){let r=[e[0]],n=0;for(;n<t.length;)bc(r,t[n]),r.push(e[++n]);return new Ze(r)}o(Yd,"_");M._=Yd;var Sc=new Ze("+");function Jd(e,...t){let r=[wi(e[0])],n=0;for(;n<t.length;)r.push(Sc),bc(r,t[n]),r.push(Sc,wi(e[++n]));return t2(r),new Ze(r)}o(Jd,"str");M.str=Jd;function bc(e,t){t instanceof Ze?e.push(...t._items):t instanceof kr?e.push(t):e.push(i2(t))}o(bc,"addCodeArg");M.addCodeArg=bc;function t2(e){let t=1;for(;t<e.length-1;){if(e[t]===Sc){let r=r2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(t2,"optimize");function r2(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof kr||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof kr))return`"${e}${t.slice(1)}`}o(r2,"mergeExprItems");function n2(e,t){return t.emptyStr()?e:e.emptyStr()?t:Jd`${e}${t}`}o(n2,"strConcat");M.strConcat=n2;function i2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:wi(Array.isArray(e)?e.join(","):e)}o(i2,"interpolate");function o2(e){return new Ze(wi(e))}o(o2,"stringify");M.stringify=o2;function wi(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(wi,"safeStringify");M.safeStringify=wi;function s2(e){return typeof e=="string"&&M.IDENTIFIER.test(e)?new Ze(`.${e}`):Yd`[${e}]`}o(s2,"getProperty");M.getProperty=s2;function a2(e){if(typeof e=="string"&&M.IDENTIFIER.test(e))return new Ze(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(a2,"getEsmExportName");M.getEsmExportName=a2;function c2(e){return new Ze(e.toString())}o(c2,"regexpCode");M.regexpCode=c2});var Tc=h(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.ValueScope=Ne.ValueScopeName=Ne.Scope=Ne.varKinds=Ne.UsedValueState=void 0;var Ce=Ii(),xc=class xc extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(xc,"ValueError");var $c=xc,is;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(is||(Ne.UsedValueState=is={}));Ne.varKinds={const:new Ce.Name("const"),let:new Ce.Name("let"),var:new Ce.Name("var")};var Ac=class Ac{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Ce.Name?t:this.name(t)}name(t){return new Ce.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};o(Ac,"Scope");var os=Ac;Ne.Scope=os;var wc=class wc extends Ce.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Ce._)`.${new Ce.Name(r)}[${n}]`}};o(wc,"ValueScopeName");var ss=wc;Ne.ValueScopeName=ss;var u2=(0,Ce._)`\n`,Ic=class Ic extends os{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?u2:Ce.nil}}get(){return this._scope}name(t){return new ss(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:s}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[s];if(c){let f=c.get(a);if(f)return f}else c=this._values[s]=new Map;c.set(a,i);let u=this._scope[s]||(this._scope[s]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:s,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Ce._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let s=Ce.nil;for(let a in t){let c=t[a];if(!c)continue;let u=n[a]=n[a]||new Map;c.forEach(l=>{if(u.has(l))return;u.set(l,is.Started);let f=r(l);if(f){let p=this.opts.es5?Ne.varKinds.var:Ne.varKinds.const;s=(0,Ce._)`${s}${p} ${l} = ${f};${this.opts._n}`}else if(f=i==null?void 0:i(l))s=(0,Ce._)`${s}${f}${this.opts._n}`;else throw new $c(l);u.set(l,is.Completed)})}return s}};o(Ic,"ValueScope");var Oc=Ic;Ne.ValueScope=Oc});var w=h(C=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});C.or=C.and=C.not=C.CodeGen=C.operators=C.varKinds=C.ValueScopeName=C.ValueScope=C.Scope=C.Name=C.regexpCode=C.stringify=C.getProperty=C.nil=C.strConcat=C.str=C._=void 0;var j=Ii(),ot=Tc(),Xt=Ii();Object.defineProperty(C,"_",{enumerable:!0,get:o(function(){return Xt._},"get")});Object.defineProperty(C,"str",{enumerable:!0,get:o(function(){return Xt.str},"get")});Object.defineProperty(C,"strConcat",{enumerable:!0,get:o(function(){return Xt.strConcat},"get")});Object.defineProperty(C,"nil",{enumerable:!0,get:o(function(){return Xt.nil},"get")});Object.defineProperty(C,"getProperty",{enumerable:!0,get:o(function(){return Xt.getProperty},"get")});Object.defineProperty(C,"stringify",{enumerable:!0,get:o(function(){return Xt.stringify},"get")});Object.defineProperty(C,"regexpCode",{enumerable:!0,get:o(function(){return Xt.regexpCode},"get")});Object.defineProperty(C,"Name",{enumerable:!0,get:o(function(){return Xt.Name},"get")});var ls=Tc();Object.defineProperty(C,"Scope",{enumerable:!0,get:o(function(){return ls.Scope},"get")});Object.defineProperty(C,"ValueScope",{enumerable:!0,get:o(function(){return ls.ValueScope},"get")});Object.defineProperty(C,"ValueScopeName",{enumerable:!0,get:o(function(){return ls.ValueScopeName},"get")});Object.defineProperty(C,"varKinds",{enumerable:!0,get:o(function(){return ls.varKinds},"get")});C.operators={GT:new j._Code(">"),GTE:new j._Code(">="),LT:new j._Code("<"),LTE:new j._Code("<="),EQ:new j._Code("==="),NEQ:new j._Code("!=="),NOT:new j._Code("!"),OR:new j._Code("||"),AND:new j._Code("&&"),ADD:new j._Code("+")};var Bc=class Bc{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(Bc,"Node");var Dt=Bc,Uc=class Uc extends Dt{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?ot.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=On(this.rhs,t,r)),this}get names(){return this.rhs instanceof j._CodeOrName?this.rhs.names:{}}};o(Uc,"Def");var Rc=Uc,Gc=class Gc extends Dt{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof j.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=On(this.rhs,t,r),this}get names(){let t=this.lhs instanceof j.Name?{}:{...this.lhs.names};return us(t,this.rhs)}};o(Gc,"Assign");var as=Gc,Zc=class Zc extends as{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(Zc,"AssignOp");var Cc=Zc,zc=class zc extends Dt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(zc,"Label");var Nc=zc,Kc=class Kc extends Dt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(Kc,"Break");var kc=Kc,Qc=class Qc extends Dt{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(Qc,"Throw");var jc=Qc,Wc=class Wc extends Dt{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=On(this.code,t,r),this}get names(){return this.code instanceof j._CodeOrName?this.code.names:{}}};o(Wc,"AnyCode");var qc=Wc,Yc=class Yc extends Dt{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(t,r)||(l2(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Mr(t,r.names),{})}};o(Yc,"ParentNode");var Ti=Yc,Jc=class Jc extends Ti{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(Jc,"BlockNode");var Lt=Jc,Xc=class Xc extends Ti{};o(Xc,"Root");var Mc=Xc,eu=class eu extends Lt{};o(eu,"Else");var $n=eu;$n.kind="else";var En=class En extends Lt{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new $n(n):n}if(r)return t===!1?r instanceof En?r:r.nodes:this.nodes.length?this:new En(Xd(t),r instanceof En?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=On(this.condition,t,r),this}get names(){let t=super.names;return us(t,this.condition),this.else&&Mr(t,this.else.names),t}};o(En,"If");var jr=En;jr.kind="if";var tu=class tu extends Lt{};o(tu,"For");var qr=tu;qr.kind="for";var ru=class ru extends qr{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=On(this.iteration,t,r),this}get names(){return Mr(super.names,this.iteration.names)}};o(ru,"ForLoop");var Dc=ru,nu=class nu extends qr{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?ot.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=us(super.names,this.from);return us(t,this.to)}};o(nu,"ForRange");var Lc=nu,iu=class iu extends qr{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=On(this.iterable,t,r),this}get names(){return Mr(super.names,this.iterable.names)}};o(iu,"ForIter");var cs=iu,ou=class ou extends Lt{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};o(ou,"Func");var Ri=ou;Ri.kind="func";var su=class su extends Ti{render(t){return"return "+super.render(t)}};o(su,"Return");var Ci=su;Ci.kind="return";var au=class au extends Lt{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Mr(t,this.catch.names),this.finally&&Mr(t,this.finally.names),t}};o(au,"Try");var Fc=au,cu=class cu extends Lt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(cu,"Catch");var Ni=cu;Ni.kind="catch";var uu=class uu extends Lt{render(t){return"finally"+super.render(t)}};o(uu,"Finally");var ki=uu;ki.kind="finally";var lu=class lu{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
6
- `:""},this._extScope=t,this._scope=new ot.Scope({parent:t}),this._nodes=[new Mc]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new Rc(t,s,n)),s}const(t,r,n){return this._def(ot.varKinds.const,t,r,n)}let(t,r,n){return this._def(ot.varKinds.let,t,r,n)}var(t,r,n){return this._def(ot.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new as(t,r,n))}add(t,r){return this._leafNode(new Cc(t,C.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==j.nil&&this._leafNode(new qc(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,j.addCodeArg)(r,i));return r.push("}"),new j._Code(r)}if(t,r,n){if(this._blockNode(new jr(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new jr(t))}else(){return this._elseNode(new $n)}endIf(){return this._endBlockNode(jr,$n)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Dc(t),r)}forRange(t,r,n,i,s=this.opts.es5?ot.varKinds.var:ot.varKinds.let){let a=this._scope.toName(t);return this._for(new Lc(s,a,r,n),()=>i(a))}forOf(t,r,n,i=ot.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof j.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,j._)`${a}.length`,c=>{this.var(s,(0,j._)`${a}[${c}]`),n(s)})}return this._for(new cs("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?ot.varKinds.var:ot.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,j._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new cs("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(qr)}label(t){return this._leafNode(new Nc(t))}break(t){return this._leafNode(new kc(t))}return(t){let r=new Ci;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ci)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Fc;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new Ni(s),r(s)}return n&&(this._currNode=i.finally=new ki,this.code(n)),this._endBlockNode(Ni,ki)}throw(t){return this._leafNode(new jc(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=j.nil,n,i){return this._blockNode(new Ri(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Ri)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof jr))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};o(lu,"CodeGen");var Hc=lu;C.CodeGen=Hc;function Mr(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(Mr,"addNames");function us(e,t){return t instanceof j._CodeOrName?Mr(e,t.names):e}o(us,"addExprNames");function On(e,t,r){if(e instanceof j.Name)return n(e);if(!i(e))return e;return new j._Code(e._items.reduce((s,a)=>(a instanceof j.Name&&(a=n(a)),a instanceof j._Code?s.push(...a._items):s.push(a),s),[]));function n(s){let a=r[s.str];return a===void 0||t[s.str]!==1?s:(delete t[s.str],a)}function i(s){return s instanceof j._Code&&s._items.some(a=>a instanceof j.Name&&t[a.str]===1&&r[a.str]!==void 0)}}o(On,"optimizeExpr");function l2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(l2,"subtractNames");function Xd(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,j._)`!${Vc(e)}`}o(Xd,"not");C.not=Xd;var p2=em(C.operators.AND);function f2(...e){return e.reduce(p2)}o(f2,"and");C.and=f2;var d2=em(C.operators.OR);function m2(...e){return e.reduce(d2)}o(m2,"or");C.or=m2;function em(e){return(t,r)=>t===j.nil?r:r===j.nil?t:(0,j._)`${Vc(t)} ${e} ${Vc(r)}`}o(em,"mappend");function Vc(e){return e instanceof j.Name?e:(0,j._)`(${e})`}o(Vc,"par")});var k=h(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.checkStrictMode=N.getErrorPath=N.Type=N.useFunc=N.setEvaluated=N.evaluatedPropsToName=N.mergeEvaluated=N.eachItem=N.unescapeJsonPointer=N.escapeJsonPointer=N.escapeFragment=N.unescapeFragment=N.schemaRefOrVal=N.schemaHasRulesButRef=N.schemaHasRules=N.checkUnknownRules=N.alwaysValidSchema=N.toHash=void 0;var V=w(),h2=Ii();function g2(e){let t={};for(let r of e)t[r]=!0;return t}o(g2,"toHash");N.toHash=g2;function y2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(nm(e,t),!im(t,e.self.RULES.all))}o(y2,"alwaysValidSchema");N.alwaysValidSchema=y2;function nm(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let s in t)i[s]||am(e,`unknown keyword: "${s}"`)}o(nm,"checkUnknownRules");N.checkUnknownRules=nm;function im(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(im,"schemaHasRules");N.schemaHasRules=im;function v2(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(v2,"schemaHasRulesButRef");N.schemaHasRulesButRef=v2;function S2({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,V._)`${r}`}return(0,V._)`${e}${t}${(0,V.getProperty)(n)}`}o(S2,"schemaRefOrVal");N.schemaRefOrVal=S2;function b2(e){return om(decodeURIComponent(e))}o(b2,"unescapeFragment");N.unescapeFragment=b2;function _2(e){return encodeURIComponent(fu(e))}o(_2,"escapeFragment");N.escapeFragment=_2;function fu(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(fu,"escapeJsonPointer");N.escapeJsonPointer=fu;function om(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(om,"unescapeJsonPointer");N.unescapeJsonPointer=om;function P2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(P2,"eachItem");N.eachItem=P2;function tm({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof V.Name?(s instanceof V.Name?e(i,s,a):t(i,s,a),a):s instanceof V.Name?(t(i,a,s),s):r(s,a);return c===V.Name&&!(u instanceof V.Name)?n(i,u):u}}o(tm,"makeMergeEvaluated");N.mergeEvaluated={props:tm({mergeNames:o((e,t,r)=>e.if((0,V._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,V._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,V._)`${r} || {}`).code((0,V._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,V._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,V._)`${r} || {}`),du(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:sm}),items:tm({mergeNames:o((e,t,r)=>e.if((0,V._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,V._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,V._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,V._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:o((e,t)=>e.var("items",t),"resultToName")})};function sm(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,V._)`{}`);return t!==void 0&&du(e,r,t),r}o(sm,"evaluatedPropsToName");N.evaluatedPropsToName=sm;function du(e,t,r){Object.keys(r).forEach(n=>e.assign((0,V._)`${t}${(0,V.getProperty)(n)}`,!0))}o(du,"setEvaluated");N.setEvaluated=du;var rm={};function E2(e,t){return e.scopeValue("func",{ref:t,code:rm[t.code]||(rm[t.code]=new h2._Code(t.code))})}o(E2,"useFunc");N.useFunc=E2;var pu;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(pu||(N.Type=pu={}));function $2(e,t,r){if(e instanceof V.Name){let n=t===pu.Num;return r?n?(0,V._)`"[" + ${e} + "]"`:(0,V._)`"['" + ${e} + "']"`:n?(0,V._)`"/" + ${e}`:(0,V._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,V.getProperty)(e).toString():"/"+fu(e)}o($2,"getErrorPath");N.getErrorPath=$2;function am(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}o(am,"checkStrictMode");N.checkStrictMode=am});var ze=h(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});var ye=w(),O2={data:new ye.Name("data"),valCxt:new ye.Name("valCxt"),instancePath:new ye.Name("instancePath"),parentData:new ye.Name("parentData"),parentDataProperty:new ye.Name("parentDataProperty"),rootData:new ye.Name("rootData"),dynamicAnchors:new ye.Name("dynamicAnchors"),vErrors:new ye.Name("vErrors"),errors:new ye.Name("errors"),this:new ye.Name("this"),self:new ye.Name("self"),scope:new ye.Name("scope"),json:new ye.Name("json"),jsonPos:new ye.Name("jsonPos"),jsonLen:new ye.Name("jsonLen"),jsonPart:new ye.Name("jsonPart")};mu.default=O2});var ji=h(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.extendErrors=ve.resetErrorsCount=ve.reportExtraError=ve.reportError=ve.keyword$DataError=ve.keywordError=void 0;var q=w(),ps=k(),Oe=ze();ve.keywordError={message:o(({keyword:e})=>(0,q.str)`must pass "${e}" keyword validation`,"message")};ve.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,q.str)`"${e}" keyword must be ${t} ($data)`:(0,q.str)`"${e}" keyword is invalid ($data)`,"message")};function x2(e,t=ve.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=lm(e,t,r);n??(a||c)?cm(s,u):um(i,(0,q._)`[${u}]`)}o(x2,"reportError");ve.reportError=x2;function A2(e,t=ve.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=lm(e,t,r);cm(i,c),s||a||um(n,Oe.default.vErrors)}o(A2,"reportExtraError");ve.reportExtraError=A2;function w2(e,t){e.assign(Oe.default.errors,t),e.if((0,q._)`${Oe.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,q._)`${Oe.default.vErrors}.length`,t),()=>e.assign(Oe.default.vErrors,null)))}o(w2,"resetErrorsCount");ve.resetErrorsCount=w2;function I2({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,Oe.default.errors,c=>{e.const(a,(0,q._)`${Oe.default.vErrors}[${c}]`),e.if((0,q._)`${a}.instancePath === undefined`,()=>e.assign((0,q._)`${a}.instancePath`,(0,q.strConcat)(Oe.default.instancePath,s.errorPath))),e.assign((0,q._)`${a}.schemaPath`,(0,q.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,q._)`${a}.schema`,r),e.assign((0,q._)`${a}.data`,n))})}o(I2,"extendErrors");ve.extendErrors=I2;function cm(e,t){let r=e.const("err",t);e.if((0,q._)`${Oe.default.vErrors} === null`,()=>e.assign(Oe.default.vErrors,(0,q._)`[${r}]`),(0,q._)`${Oe.default.vErrors}.push(${r})`),e.code((0,q._)`${Oe.default.errors}++`)}o(cm,"addError");function um(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,q._)`new ${e.ValidationError}(${t})`):(r.assign((0,q._)`${n}.errors`,t),r.return(!1))}o(um,"returnErrors");var Dr={keyword:new q.Name("keyword"),schemaPath:new q.Name("schemaPath"),params:new q.Name("params"),propertyName:new q.Name("propertyName"),message:new q.Name("message"),schema:new q.Name("schema"),parentSchema:new q.Name("parentSchema")};function lm(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,q._)`{}`:T2(e,t,r)}o(lm,"errorObjectCode");function T2(e,t,r={}){let{gen:n,it:i}=e,s=[R2(i,r),C2(e,r)];return N2(e,t,s),n.object(...s)}o(T2,"errorObject");function R2({errorPath:e},{instancePath:t}){let r=t?(0,q.str)`${e}${(0,ps.getErrorPath)(t,ps.Type.Str)}`:e;return[Oe.default.instancePath,(0,q.strConcat)(Oe.default.instancePath,r)]}o(R2,"errorInstancePath");function C2({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,q.str)`${t}/${e}`;return r&&(i=(0,q.str)`${i}${(0,ps.getErrorPath)(r,ps.Type.Str)}`),[Dr.schemaPath,i]}o(C2,"errorSchemaPath");function N2(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:c}=e,{opts:u,propertyName:l,topSchemaRef:f,schemaPath:p}=c;n.push([Dr.keyword,i],[Dr.params,typeof t=="function"?t(e):t||(0,q._)`{}`]),u.messages&&n.push([Dr.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([Dr.schema,a],[Dr.parentSchema,(0,q._)`${f}${p}`],[Oe.default.data,s]),l&&n.push([Dr.propertyName,l])}o(N2,"extraErrorProps")});var fm=h(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.boolOrEmptySchema=xn.topBoolOrEmptySchema=void 0;var k2=ji(),j2=w(),q2=ze(),M2={message:"boolean schema is false"};function D2(e){let{gen:t,schema:r,validateName:n}=e;r===!1?pm(e,!1):typeof r=="object"&&r.$async===!0?t.return(q2.default.data):(t.assign((0,j2._)`${n}.errors`,null),t.return(!0))}o(D2,"topBoolOrEmptySchema");xn.topBoolOrEmptySchema=D2;function L2(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),pm(e)):r.var(t,!0)}o(L2,"boolOrEmptySchema");xn.boolOrEmptySchema=L2;function pm(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,k2.reportError)(i,M2,void 0,t)}o(pm,"falseSchemaError")});var hu=h(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.getRules=An.isJSONType=void 0;var F2=["string","number","integer","boolean","null","object","array"],H2=new Set(F2);function V2(e){return typeof e=="string"&&H2.has(e)}o(V2,"isJSONType");An.isJSONType=V2;function B2(){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:{}}}o(B2,"getRules");An.getRules=B2});var gu=h(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.shouldUseRule=er.shouldUseGroup=er.schemaHasRulesForType=void 0;function U2({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&dm(e,n)}o(U2,"schemaHasRulesForType");er.schemaHasRulesForType=U2;function dm(e,t){return t.rules.some(r=>mm(e,r))}o(dm,"shouldUseGroup");er.shouldUseGroup=dm;function mm(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}o(mm,"shouldUseRule");er.shouldUseRule=mm});var qi=h(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.reportTypeError=Se.checkDataTypes=Se.checkDataType=Se.coerceAndCheckDataType=Se.getJSONTypes=Se.getSchemaTypes=Se.DataType=void 0;var G2=hu(),Z2=gu(),z2=ji(),R=w(),hm=k(),wn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(wn||(Se.DataType=wn={}));function K2(e){let t=gm(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}o(K2,"getSchemaTypes");Se.getSchemaTypes=K2;function gm(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(G2.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(gm,"getJSONTypes");Se.getJSONTypes=gm;function Q2(e,t){let{gen:r,data:n,opts:i}=e,s=W2(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,Z2.schemaHasRulesForType)(e,t[0]));if(a){let c=vu(t,n,i.strictNumbers,wn.Wrong);r.if(c,()=>{s.length?Y2(e,t,s):Su(e)})}return a}o(Q2,"coerceAndCheckDataType");Se.coerceAndCheckDataType=Q2;var ym=new Set(["string","number","integer","boolean","null"]);function W2(e,t){return t?e.filter(r=>ym.has(r)||t==="array"&&r==="array"):[]}o(W2,"coerceToTypes");function Y2(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,R._)`typeof ${i}`),c=n.let("coerced",(0,R._)`undefined`);s.coerceTypes==="array"&&n.if((0,R._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,R._)`${i}[0]`).assign(a,(0,R._)`typeof ${i}`).if(vu(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,R._)`${c} !== undefined`);for(let l of r)(ym.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),Su(e),n.endIf(),n.if((0,R._)`${c} !== undefined`,()=>{n.assign(i,c),J2(e,c)});function u(l){switch(l){case"string":n.elseIf((0,R._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,R._)`"" + ${i}`).elseIf((0,R._)`${i} === null`).assign(c,(0,R._)`""`);return;case"number":n.elseIf((0,R._)`${a} == "boolean" || ${i} === null
3
+ `+n:r||n}o(nm,"joinStacks");yt.joinStacks=nm;function u2(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return nm({stack:n},r)},"get"),enumerable:!1,configurable:!0}):l2(t,e)}o(u2,"lazyJoinStacks");yt.lazyJoinStacks=u2;function im(e){if(e){let t=e.split(o2),r;for(let n=0;n<t.length;n++){let i=t[n];if(s2.test(i))r===void 0&&(r=n);else if(r!==void 0){t.splice(r,n-r);break}}if(t.length>0)return t.join(`
4
+ `)}return e}o(im,"popStack");function l2(e,t){Object.defineProperty(e,"stack",{get:o(()=>im(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(l2,"lazyPopStack")});var cm=h(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.extendError=void 0;var sm=Rc(),fs=om(),am=ps(),p2=["name","message","stack"];function f2(e,t,r){let n=e;return d2(n,t),t&&typeof t=="object"&&m2(n,t),n.toJSON=am.toJSON,sm.addInspectMethod&&sm.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(f2,"extendError");ds.extendError=f2;function d2(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");fs.isLazyStack(r)?fs.lazyJoinStacks(r,e,t):fs.isWritableStack(r)&&(e.stack=fs.joinStacks(e,t))}o(d2,"extendStack");function m2(e,t){let r=am.getDeepKeys(t,p2),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o(m2,"mergeErrors")});var um=h(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.normalizeArgs=wn.normalizeOptions=void 0;var h2=Rc();function g2(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?h2.format:typeof e.format=="function"?e.format:!1}}o(g2,"normalizeOptions");wn.normalizeOptions=g2;function y2(e,t){let r,n,i,s="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?s=t.format.apply(void 0,i):s=i.join(" ")),t.concatMessages&&r&&r.message&&(s+=(s?`
5
+ `:"")+r.message),{originalError:r,props:n,message:s}}o(y2,"normalizeArgs");wn.normalizeArgs=y2});var kc=h(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.Ono=void 0;var ms=cm(),lm=um(),S2=ps(),v2=Nc;hs.Ono=v2;function Nc(e,t){t=lm.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=lm.normalizeArgs(n,t),c=new e(a);return ms.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(Nc,"Ono");Nc.toJSON=o(function(t){return S2.toJSON.call(t)},"toJSON");Nc.extend=o(function(t,r,n){return n||r instanceof Error?ms.extendError(t,r,n):r?ms.extendError(t,void 0,r):ms.extendError(t)},"extend")});var pm=h(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.ono=void 0;var Dr=kc(),b2=St;gs.ono=b2;St.error=new Dr.Ono(Error);St.eval=new Dr.Ono(EvalError);St.range=new Dr.Ono(RangeError);St.reference=new Dr.Ono(ReferenceError);St.syntax=new Dr.Ono(SyntaxError);St.type=new Dr.Ono(TypeError);St.uri=new Dr.Ono(URIError);var _2=St;function St(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(_2))if(typeof r=="function"&&r.name==="ono"){let n=r[Symbol.species];if(n&&n!==Error&&(t instanceof n||t.name===n.name))return r.apply(void 0,e)}}return St.error.apply(void 0,e)}o(St,"ono")});var dm=h(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});var NM=require("util")});var ot=h((it,In)=>{"use strict";var E2=it&&it.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:o(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),P2=it&&it.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&E2(t,e,r)};Object.defineProperty(it,"__esModule",{value:!0});it.ono=void 0;var mm=pm();Object.defineProperty(it,"ono",{enumerable:!0,get:o(function(){return mm.ono},"get")});var O2=kc();Object.defineProperty(it,"Ono",{enumerable:!0,get:o(function(){return O2.Ono},"get")});P2(dm(),it);it.default=mm.ono;typeof In=="object"&&typeof In.exports=="object"&&(In.exports=Object.assign(In.exports.default,In.exports))});var Li=h(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.regexpCode=F.getEsmExportName=F.getProperty=F.safeStringify=F.stringify=F.strConcat=F.addCodeArg=F.str=F._=F.nil=F._Code=F.Name=F.IDENTIFIER=F._CodeOrName=void 0;var Mc=class Mc{};o(Mc,"_CodeOrName");var Mi=Mc;F._CodeOrName=Mi;F.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Dc=class Dc extends Mi{constructor(t){if(super(),!F.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};o(Dc,"Name");var Lr=Dc;F.Name=Lr;var Lc=class Lc extends Mi{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof Lr&&(r[n.str]=(r[n.str]||0)+1),r),{})}};o(Lc,"_Code");var ze=Lc;F._Code=ze;F.nil=new ze("");function hm(e,...t){let r=[e[0]],n=0;for(;n<t.length;)qc(r,t[n]),r.push(e[++n]);return new ze(r)}o(hm,"_");F._=hm;var jc=new ze("+");function gm(e,...t){let r=[Di(e[0])],n=0;for(;n<t.length;)r.push(jc),qc(r,t[n]),r.push(jc,Di(e[++n]));return $2(r),new ze(r)}o(gm,"str");F.str=gm;function qc(e,t){t instanceof ze?e.push(...t._items):t instanceof Lr?e.push(t):e.push(w2(t))}o(qc,"addCodeArg");F.addCodeArg=qc;function $2(e){let t=1;for(;t<e.length-1;){if(e[t]===jc){let r=x2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o($2,"optimize");function x2(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Lr||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Lr))return`"${e}${t.slice(1)}`}o(x2,"mergeExprItems");function A2(e,t){return t.emptyStr()?e:e.emptyStr()?t:gm`${e}${t}`}o(A2,"strConcat");F.strConcat=A2;function w2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Di(Array.isArray(e)?e.join(","):e)}o(w2,"interpolate");function I2(e){return new ze(Di(e))}o(I2,"stringify");F.stringify=I2;function Di(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(Di,"safeStringify");F.safeStringify=Di;function T2(e){return typeof e=="string"&&F.IDENTIFIER.test(e)?new ze(`.${e}`):hm`[${e}]`}o(T2,"getProperty");F.getProperty=T2;function C2(e){if(typeof e=="string"&&F.IDENTIFIER.test(e))return new ze(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(C2,"getEsmExportName");F.getEsmExportName=C2;function R2(e){return new ze(e.toString())}o(R2,"regexpCode");F.regexpCode=R2});var Zc=h(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.ValueScope=ke.ValueScopeName=ke.Scope=ke.varKinds=ke.UsedValueState=void 0;var Ne=Li(),Vc=class Vc extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(Vc,"ValueError");var Fc=Vc,ys;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(ys||(ke.UsedValueState=ys={}));ke.varKinds={const:new Ne.Name("const"),let:new Ne.Name("let"),var:new Ne.Name("var")};var Bc=class Bc{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Ne.Name?t:this.name(t)}name(t){return new Ne.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};o(Bc,"Scope");var Ss=Bc;ke.Scope=Ss;var Gc=class Gc extends Ne.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Ne._)`.${new Ne.Name(r)}[${n}]`}};o(Gc,"ValueScopeName");var vs=Gc;ke.ValueScopeName=vs;var N2=(0,Ne._)`\n`,Uc=class Uc extends Ss{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?N2:Ne.nil}}get(){return this._scope}name(t){return new vs(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:s}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[s];if(c){let f=c.get(a);if(f)return f}else c=this._values[s]=new Map;c.set(a,i);let u=this._scope[s]||(this._scope[s]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:s,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Ne._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let s=Ne.nil;for(let a in t){let c=t[a];if(!c)continue;let u=n[a]=n[a]||new Map;c.forEach(l=>{if(u.has(l))return;u.set(l,ys.Started);let f=r(l);if(f){let p=this.opts.es5?ke.varKinds.var:ke.varKinds.const;s=(0,Ne._)`${s}${p} ${l} = ${f};${this.opts._n}`}else if(f=i==null?void 0:i(l))s=(0,Ne._)`${s}${f}${this.opts._n}`;else throw new Fc(l);u.set(l,ys.Completed)})}return s}};o(Uc,"ValueScope");var Hc=Uc;ke.ValueScope=Hc});var C=h(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.or=N.and=N.not=N.CodeGen=N.operators=N.varKinds=N.ValueScopeName=N.ValueScope=N.Scope=N.Name=N.regexpCode=N.stringify=N.getProperty=N.nil=N.strConcat=N.str=N._=void 0;var M=Li(),st=Zc(),rr=Li();Object.defineProperty(N,"_",{enumerable:!0,get:o(function(){return rr._},"get")});Object.defineProperty(N,"str",{enumerable:!0,get:o(function(){return rr.str},"get")});Object.defineProperty(N,"strConcat",{enumerable:!0,get:o(function(){return rr.strConcat},"get")});Object.defineProperty(N,"nil",{enumerable:!0,get:o(function(){return rr.nil},"get")});Object.defineProperty(N,"getProperty",{enumerable:!0,get:o(function(){return rr.getProperty},"get")});Object.defineProperty(N,"stringify",{enumerable:!0,get:o(function(){return rr.stringify},"get")});Object.defineProperty(N,"regexpCode",{enumerable:!0,get:o(function(){return rr.regexpCode},"get")});Object.defineProperty(N,"Name",{enumerable:!0,get:o(function(){return rr.Name},"get")});var Ps=Zc();Object.defineProperty(N,"Scope",{enumerable:!0,get:o(function(){return Ps.Scope},"get")});Object.defineProperty(N,"ValueScope",{enumerable:!0,get:o(function(){return Ps.ValueScope},"get")});Object.defineProperty(N,"ValueScopeName",{enumerable:!0,get:o(function(){return Ps.ValueScopeName},"get")});Object.defineProperty(N,"varKinds",{enumerable:!0,get:o(function(){return Ps.varKinds},"get")});N.operators={GT:new M._Code(">"),GTE:new M._Code(">="),LT:new M._Code("<"),LTE:new M._Code("<="),EQ:new M._Code("==="),NEQ:new M._Code("!=="),NOT:new M._Code("!"),OR:new M._Code("||"),AND:new M._Code("&&"),ADD:new M._Code("+")};var ou=class ou{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(ou,"Node");var Lt=ou,su=class su extends Lt{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?st.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=Rn(this.rhs,t,r)),this}get names(){return this.rhs instanceof M._CodeOrName?this.rhs.names:{}}};o(su,"Def");var zc=su,au=class au extends Lt{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof M.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Rn(this.rhs,t,r),this}get names(){let t=this.lhs instanceof M.Name?{}:{...this.lhs.names};return Es(t,this.rhs)}};o(au,"Assign");var bs=au,cu=class cu extends bs{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(cu,"AssignOp");var Kc=cu,uu=class uu extends Lt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(uu,"Label");var Qc=uu,lu=class lu extends Lt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(lu,"Break");var Wc=lu,pu=class pu extends Lt{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(pu,"Throw");var Yc=pu,fu=class fu extends Lt{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=Rn(this.code,t,r),this}get names(){return this.code instanceof M._CodeOrName?this.code.names:{}}};o(fu,"AnyCode");var Jc=fu,du=class du extends Lt{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(t,r)||(k2(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Vr(t,r.names),{})}};o(du,"ParentNode");var Fi=du,mu=class mu extends Fi{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(mu,"BlockNode");var Ft=mu,hu=class hu extends Fi{};o(hu,"Root");var Xc=hu,gu=class gu extends Ft{};o(gu,"Else");var Cn=gu;Cn.kind="else";var Tn=class Tn extends Ft{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Cn(n):n}if(r)return t===!1?r instanceof Tn?r:r.nodes:this.nodes.length?this:new Tn(ym(t),r instanceof Tn?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=Rn(this.condition,t,r),this}get names(){let t=super.names;return Es(t,this.condition),this.else&&Vr(t,this.else.names),t}};o(Tn,"If");var Fr=Tn;Fr.kind="if";var yu=class yu extends Ft{};o(yu,"For");var Hr=yu;Hr.kind="for";var Su=class Su extends Hr{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=Rn(this.iteration,t,r),this}get names(){return Vr(super.names,this.iteration.names)}};o(Su,"ForLoop");var eu=Su,vu=class vu extends Hr{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?st.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=Es(super.names,this.from);return Es(t,this.to)}};o(vu,"ForRange");var tu=vu,bu=class bu extends Hr{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=Rn(this.iterable,t,r),this}get names(){return Vr(super.names,this.iterable.names)}};o(bu,"ForIter");var _s=bu,_u=class _u extends Ft{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};o(_u,"Func");var Hi=_u;Hi.kind="func";var Eu=class Eu extends Fi{render(t){return"return "+super.render(t)}};o(Eu,"Return");var Vi=Eu;Vi.kind="return";var Pu=class Pu extends Ft{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Vr(t,this.catch.names),this.finally&&Vr(t,this.finally.names),t}};o(Pu,"Try");var ru=Pu,Ou=class Ou extends Ft{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(Ou,"Catch");var Bi=Ou;Bi.kind="catch";var $u=class $u extends Ft{render(t){return"finally"+super.render(t)}};o($u,"Finally");var Gi=$u;Gi.kind="finally";var xu=class xu{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
6
+ `:""},this._extScope=t,this._scope=new st.Scope({parent:t}),this._nodes=[new Xc]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new zc(t,s,n)),s}const(t,r,n){return this._def(st.varKinds.const,t,r,n)}let(t,r,n){return this._def(st.varKinds.let,t,r,n)}var(t,r,n){return this._def(st.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new bs(t,r,n))}add(t,r){return this._leafNode(new Kc(t,N.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==M.nil&&this._leafNode(new Jc(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,M.addCodeArg)(r,i));return r.push("}"),new M._Code(r)}if(t,r,n){if(this._blockNode(new Fr(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Fr(t))}else(){return this._elseNode(new Cn)}endIf(){return this._endBlockNode(Fr,Cn)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new eu(t),r)}forRange(t,r,n,i,s=this.opts.es5?st.varKinds.var:st.varKinds.let){let a=this._scope.toName(t);return this._for(new tu(s,a,r,n),()=>i(a))}forOf(t,r,n,i=st.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof M.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,M._)`${a}.length`,c=>{this.var(s,(0,M._)`${a}[${c}]`),n(s)})}return this._for(new _s("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?st.varKinds.var:st.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,M._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new _s("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Hr)}label(t){return this._leafNode(new Qc(t))}break(t){return this._leafNode(new Wc(t))}return(t){let r=new Vi;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Vi)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new ru;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new Bi(s),r(s)}return n&&(this._currNode=i.finally=new Gi,this.code(n)),this._endBlockNode(Bi,Gi)}throw(t){return this._leafNode(new Yc(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=M.nil,n,i){return this._blockNode(new Hi(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Hi)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Fr))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};o(xu,"CodeGen");var nu=xu;N.CodeGen=nu;function Vr(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(Vr,"addNames");function Es(e,t){return t instanceof M._CodeOrName?Vr(e,t.names):e}o(Es,"addExprNames");function Rn(e,t,r){if(e instanceof M.Name)return n(e);if(!i(e))return e;return new M._Code(e._items.reduce((s,a)=>(a instanceof M.Name&&(a=n(a)),a instanceof M._Code?s.push(...a._items):s.push(a),s),[]));function n(s){let a=r[s.str];return a===void 0||t[s.str]!==1?s:(delete t[s.str],a)}function i(s){return s instanceof M._Code&&s._items.some(a=>a instanceof M.Name&&t[a.str]===1&&r[a.str]!==void 0)}}o(Rn,"optimizeExpr");function k2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(k2,"subtractNames");function ym(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,M._)`!${iu(e)}`}o(ym,"not");N.not=ym;var j2=Sm(N.operators.AND);function q2(...e){return e.reduce(j2)}o(q2,"and");N.and=q2;var M2=Sm(N.operators.OR);function D2(...e){return e.reduce(M2)}o(D2,"or");N.or=D2;function Sm(e){return(t,r)=>t===M.nil?r:r===M.nil?t:(0,M._)`${iu(t)} ${e} ${iu(r)}`}o(Sm,"mappend");function iu(e){return e instanceof M.Name?e:(0,M._)`(${e})`}o(iu,"par")});var j=h(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.checkStrictMode=k.getErrorPath=k.Type=k.useFunc=k.setEvaluated=k.evaluatedPropsToName=k.mergeEvaluated=k.eachItem=k.unescapeJsonPointer=k.escapeJsonPointer=k.escapeFragment=k.unescapeFragment=k.schemaRefOrVal=k.schemaHasRulesButRef=k.schemaHasRules=k.checkUnknownRules=k.alwaysValidSchema=k.toHash=void 0;var U=C(),L2=Li();function F2(e){let t={};for(let r of e)t[r]=!0;return t}o(F2,"toHash");k.toHash=F2;function H2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(_m(e,t),!Em(t,e.self.RULES.all))}o(H2,"alwaysValidSchema");k.alwaysValidSchema=H2;function _m(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let s in t)i[s]||$m(e,`unknown keyword: "${s}"`)}o(_m,"checkUnknownRules");k.checkUnknownRules=_m;function Em(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(Em,"schemaHasRules");k.schemaHasRules=Em;function V2(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(V2,"schemaHasRulesButRef");k.schemaHasRulesButRef=V2;function B2({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,U._)`${r}`}return(0,U._)`${e}${t}${(0,U.getProperty)(n)}`}o(B2,"schemaRefOrVal");k.schemaRefOrVal=B2;function G2(e){return Pm(decodeURIComponent(e))}o(G2,"unescapeFragment");k.unescapeFragment=G2;function U2(e){return encodeURIComponent(wu(e))}o(U2,"escapeFragment");k.escapeFragment=U2;function wu(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(wu,"escapeJsonPointer");k.escapeJsonPointer=wu;function Pm(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(Pm,"unescapeJsonPointer");k.unescapeJsonPointer=Pm;function Z2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(Z2,"eachItem");k.eachItem=Z2;function vm({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof U.Name?(s instanceof U.Name?e(i,s,a):t(i,s,a),a):s instanceof U.Name?(t(i,a,s),s):r(s,a);return c===U.Name&&!(u instanceof U.Name)?n(i,u):u}}o(vm,"makeMergeEvaluated");k.mergeEvaluated={props:vm({mergeNames:o((e,t,r)=>e.if((0,U._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,U._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,U._)`${r} || {}`).code((0,U._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,U._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,U._)`${r} || {}`),Iu(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Om}),items:vm({mergeNames:o((e,t,r)=>e.if((0,U._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,U._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,U._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,U._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:o((e,t)=>e.var("items",t),"resultToName")})};function Om(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,U._)`{}`);return t!==void 0&&Iu(e,r,t),r}o(Om,"evaluatedPropsToName");k.evaluatedPropsToName=Om;function Iu(e,t,r){Object.keys(r).forEach(n=>e.assign((0,U._)`${t}${(0,U.getProperty)(n)}`,!0))}o(Iu,"setEvaluated");k.setEvaluated=Iu;var bm={};function z2(e,t){return e.scopeValue("func",{ref:t,code:bm[t.code]||(bm[t.code]=new L2._Code(t.code))})}o(z2,"useFunc");k.useFunc=z2;var Au;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Au||(k.Type=Au={}));function K2(e,t,r){if(e instanceof U.Name){let n=t===Au.Num;return r?n?(0,U._)`"[" + ${e} + "]"`:(0,U._)`"['" + ${e} + "']"`:n?(0,U._)`"/" + ${e}`:(0,U._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,U.getProperty)(e).toString():"/"+wu(e)}o(K2,"getErrorPath");k.getErrorPath=K2;function $m(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}o($m,"checkStrictMode");k.checkStrictMode=$m});var Ke=h(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});var ve=C(),Q2={data:new ve.Name("data"),valCxt:new ve.Name("valCxt"),instancePath:new ve.Name("instancePath"),parentData:new ve.Name("parentData"),parentDataProperty:new ve.Name("parentDataProperty"),rootData:new ve.Name("rootData"),dynamicAnchors:new ve.Name("dynamicAnchors"),vErrors:new ve.Name("vErrors"),errors:new ve.Name("errors"),this:new ve.Name("this"),self:new ve.Name("self"),scope:new ve.Name("scope"),json:new ve.Name("json"),jsonPos:new ve.Name("jsonPos"),jsonLen:new ve.Name("jsonLen"),jsonPart:new ve.Name("jsonPart")};Tu.default=Q2});var Ui=h(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.extendErrors=be.resetErrorsCount=be.reportExtraError=be.reportError=be.keyword$DataError=be.keywordError=void 0;var D=C(),Os=j(),Ae=Ke();be.keywordError={message:o(({keyword:e})=>(0,D.str)`must pass "${e}" keyword validation`,"message")};be.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,D.str)`"${e}" keyword must be ${t} ($data)`:(0,D.str)`"${e}" keyword is invalid ($data)`,"message")};function W2(e,t=be.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=wm(e,t,r);n??(a||c)?xm(s,u):Am(i,(0,D._)`[${u}]`)}o(W2,"reportError");be.reportError=W2;function Y2(e,t=be.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=wm(e,t,r);xm(i,c),s||a||Am(n,Ae.default.vErrors)}o(Y2,"reportExtraError");be.reportExtraError=Y2;function J2(e,t){e.assign(Ae.default.errors,t),e.if((0,D._)`${Ae.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,D._)`${Ae.default.vErrors}.length`,t),()=>e.assign(Ae.default.vErrors,null)))}o(J2,"resetErrorsCount");be.resetErrorsCount=J2;function X2({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,Ae.default.errors,c=>{e.const(a,(0,D._)`${Ae.default.vErrors}[${c}]`),e.if((0,D._)`${a}.instancePath === undefined`,()=>e.assign((0,D._)`${a}.instancePath`,(0,D.strConcat)(Ae.default.instancePath,s.errorPath))),e.assign((0,D._)`${a}.schemaPath`,(0,D.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,D._)`${a}.schema`,r),e.assign((0,D._)`${a}.data`,n))})}o(X2,"extendErrors");be.extendErrors=X2;function xm(e,t){let r=e.const("err",t);e.if((0,D._)`${Ae.default.vErrors} === null`,()=>e.assign(Ae.default.vErrors,(0,D._)`[${r}]`),(0,D._)`${Ae.default.vErrors}.push(${r})`),e.code((0,D._)`${Ae.default.errors}++`)}o(xm,"addError");function Am(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,D._)`new ${e.ValidationError}(${t})`):(r.assign((0,D._)`${n}.errors`,t),r.return(!1))}o(Am,"returnErrors");var Br={keyword:new D.Name("keyword"),schemaPath:new D.Name("schemaPath"),params:new D.Name("params"),propertyName:new D.Name("propertyName"),message:new D.Name("message"),schema:new D.Name("schema"),parentSchema:new D.Name("parentSchema")};function wm(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,D._)`{}`:eO(e,t,r)}o(wm,"errorObjectCode");function eO(e,t,r={}){let{gen:n,it:i}=e,s=[tO(i,r),rO(e,r)];return nO(e,t,s),n.object(...s)}o(eO,"errorObject");function tO({errorPath:e},{instancePath:t}){let r=t?(0,D.str)`${e}${(0,Os.getErrorPath)(t,Os.Type.Str)}`:e;return[Ae.default.instancePath,(0,D.strConcat)(Ae.default.instancePath,r)]}o(tO,"errorInstancePath");function rO({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,D.str)`${t}/${e}`;return r&&(i=(0,D.str)`${i}${(0,Os.getErrorPath)(r,Os.Type.Str)}`),[Br.schemaPath,i]}o(rO,"errorSchemaPath");function nO(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:c}=e,{opts:u,propertyName:l,topSchemaRef:f,schemaPath:p}=c;n.push([Br.keyword,i],[Br.params,typeof t=="function"?t(e):t||(0,D._)`{}`]),u.messages&&n.push([Br.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([Br.schema,a],[Br.parentSchema,(0,D._)`${f}${p}`],[Ae.default.data,s]),l&&n.push([Br.propertyName,l])}o(nO,"extraErrorProps")});var Tm=h(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.boolOrEmptySchema=Nn.topBoolOrEmptySchema=void 0;var iO=Ui(),oO=C(),sO=Ke(),aO={message:"boolean schema is false"};function cO(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Im(e,!1):typeof r=="object"&&r.$async===!0?t.return(sO.default.data):(t.assign((0,oO._)`${n}.errors`,null),t.return(!0))}o(cO,"topBoolOrEmptySchema");Nn.topBoolOrEmptySchema=cO;function uO(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Im(e)):r.var(t,!0)}o(uO,"boolOrEmptySchema");Nn.boolOrEmptySchema=uO;function Im(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,iO.reportError)(i,aO,void 0,t)}o(Im,"falseSchemaError")});var Cu=h(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.getRules=kn.isJSONType=void 0;var lO=["string","number","integer","boolean","null","object","array"],pO=new Set(lO);function fO(e){return typeof e=="string"&&pO.has(e)}o(fO,"isJSONType");kn.isJSONType=fO;function dO(){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:{}}}o(dO,"getRules");kn.getRules=dO});var Ru=h(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.shouldUseRule=nr.shouldUseGroup=nr.schemaHasRulesForType=void 0;function mO({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Cm(e,n)}o(mO,"schemaHasRulesForType");nr.schemaHasRulesForType=mO;function Cm(e,t){return t.rules.some(r=>Rm(e,r))}o(Cm,"shouldUseGroup");nr.shouldUseGroup=Cm;function Rm(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}o(Rm,"shouldUseRule");nr.shouldUseRule=Rm});var Zi=h(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.reportTypeError=_e.checkDataTypes=_e.checkDataType=_e.coerceAndCheckDataType=_e.getJSONTypes=_e.getSchemaTypes=_e.DataType=void 0;var hO=Cu(),gO=Ru(),yO=Ui(),R=C(),Nm=j(),jn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(jn||(_e.DataType=jn={}));function SO(e){let t=km(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}o(SO,"getSchemaTypes");_e.getSchemaTypes=SO;function km(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(hO.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(km,"getJSONTypes");_e.getJSONTypes=km;function vO(e,t){let{gen:r,data:n,opts:i}=e,s=bO(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,gO.schemaHasRulesForType)(e,t[0]));if(a){let c=ku(t,n,i.strictNumbers,jn.Wrong);r.if(c,()=>{s.length?_O(e,t,s):ju(e)})}return a}o(vO,"coerceAndCheckDataType");_e.coerceAndCheckDataType=vO;var jm=new Set(["string","number","integer","boolean","null"]);function bO(e,t){return t?e.filter(r=>jm.has(r)||t==="array"&&r==="array"):[]}o(bO,"coerceToTypes");function _O(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,R._)`typeof ${i}`),c=n.let("coerced",(0,R._)`undefined`);s.coerceTypes==="array"&&n.if((0,R._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,R._)`${i}[0]`).assign(a,(0,R._)`typeof ${i}`).if(ku(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,R._)`${c} !== undefined`);for(let l of r)(jm.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),ju(e),n.endIf(),n.if((0,R._)`${c} !== undefined`,()=>{n.assign(i,c),EO(e,c)});function u(l){switch(l){case"string":n.elseIf((0,R._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,R._)`"" + ${i}`).elseIf((0,R._)`${i} === null`).assign(c,(0,R._)`""`);return;case"number":n.elseIf((0,R._)`${a} == "boolean" || ${i} === null
7
7
  || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,R._)`+${i}`);return;case"integer":n.elseIf((0,R._)`${a} === "boolean" || ${i} === null
8
8
  || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,(0,R._)`+${i}`);return;case"boolean":n.elseIf((0,R._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf((0,R._)`${i} === "true" || ${i} === 1`).assign(c,!0);return;case"null":n.elseIf((0,R._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(c,null);return;case"array":n.elseIf((0,R._)`${a} === "string" || ${a} === "number"
9
- || ${a} === "boolean" || ${i} === null`).assign(c,(0,R._)`[${i}]`)}}o(u,"coerceSpecificType")}o(Y2,"coerceData");function J2({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,R._)`${t} !== undefined`,()=>e.assign((0,R._)`${t}[${r}]`,n))}o(J2,"assignParentData");function yu(e,t,r,n=wn.Correct){let i=n===wn.Correct?R.operators.EQ:R.operators.NEQ,s;switch(e){case"null":return(0,R._)`${t} ${i} null`;case"array":s=(0,R._)`Array.isArray(${t})`;break;case"object":s=(0,R._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,R._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,R._)`typeof ${t} ${i} ${e}`}return n===wn.Correct?s:(0,R.not)(s);function a(c=R.nil){return(0,R.and)((0,R._)`typeof ${t} == "number"`,c,r?(0,R._)`isFinite(${t})`:R.nil)}}o(yu,"checkDataType");Se.checkDataType=yu;function vu(e,t,r,n){if(e.length===1)return yu(e[0],t,r,n);let i,s=(0,hm.toHash)(e);if(s.array&&s.object){let a=(0,R._)`typeof ${t} != "object"`;i=s.null?a:(0,R._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=R.nil;s.number&&delete s.integer;for(let a in s)i=(0,R.and)(i,yu(a,t,r,n));return i}o(vu,"checkDataTypes");Se.checkDataTypes=vu;var X2={message:o(({schema:e})=>`must be ${e}`,"message"),params:o(({schema:e,schemaValue:t})=>typeof e=="string"?(0,R._)`{type: ${e}}`:(0,R._)`{type: ${t}}`,"params")};function Su(e){let t=e$(e);(0,z2.reportError)(t,X2)}o(Su,"reportTypeError");Se.reportTypeError=Su;function e$(e){let{gen:t,data:r,schema:n}=e,i=(0,hm.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(e$,"getTypeErrorContext")});var Sm=h(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.assignDefaults=void 0;var In=w(),t$=k();function r$(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)vm(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>vm(e,s,i.default))}o(r$,"assignDefaults");fs.assignDefaults=r$;function vm(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,In._)`${s}${(0,In.getProperty)(t)}`;if(i){(0,t$.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,In._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,In._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,In._)`${c} = ${(0,In.stringify)(r)}`)}o(vm,"assignDefault")});var Ke=h(H=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0});H.validateUnion=H.validateArray=H.usePattern=H.callValidateCode=H.schemaProperties=H.allSchemaProperties=H.noPropertyInData=H.propertyInData=H.isOwnProperty=H.hasPropFunc=H.reportMissingProp=H.checkMissingProp=H.checkReportMissingProp=void 0;var B=w(),bu=k(),tr=ze(),n$=k();function i$(e,t){let{gen:r,data:n,it:i}=e;r.if(Pu(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,B._)`${t}`},!0),e.error()})}o(i$,"checkReportMissingProp");H.checkReportMissingProp=i$;function o$({gen:e,data:t,it:{opts:r}},n,i){return(0,B.or)(...n.map(s=>(0,B.and)(Pu(e,t,s,r.ownProperties),(0,B._)`${i} = ${s}`)))}o(o$,"checkMissingProp");H.checkMissingProp=o$;function s$(e,t){e.setParams({missingProperty:t},!0),e.error()}o(s$,"reportMissingProp");H.reportMissingProp=s$;function bm(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,B._)`Object.prototype.hasOwnProperty`})}o(bm,"hasPropFunc");H.hasPropFunc=bm;function _u(e,t,r){return(0,B._)`${bm(e)}.call(${t}, ${r})`}o(_u,"isOwnProperty");H.isOwnProperty=_u;function a$(e,t,r,n){let i=(0,B._)`${t}${(0,B.getProperty)(r)} !== undefined`;return n?(0,B._)`${i} && ${_u(e,t,r)}`:i}o(a$,"propertyInData");H.propertyInData=a$;function Pu(e,t,r,n){let i=(0,B._)`${t}${(0,B.getProperty)(r)} === undefined`;return n?(0,B.or)(i,(0,B.not)(_u(e,t,r))):i}o(Pu,"noPropertyInData");H.noPropertyInData=Pu;function _m(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(_m,"allSchemaProperties");H.allSchemaProperties=_m;function c$(e,t){return _m(t).filter(r=>!(0,bu.alwaysValidSchema)(e,t[r]))}o(c$,"schemaProperties");H.schemaProperties=c$;function u$({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let f=l?(0,B._)`${e}, ${t}, ${n}${i}`:t,p=[[tr.default.instancePath,(0,B.strConcat)(tr.default.instancePath,s)],[tr.default.parentData,a.parentData],[tr.default.parentDataProperty,a.parentDataProperty],[tr.default.rootData,tr.default.rootData]];a.opts.dynamicRef&&p.push([tr.default.dynamicAnchors,tr.default.dynamicAnchors]);let d=(0,B._)`${f}, ${r.object(...p)}`;return u!==B.nil?(0,B._)`${c}.call(${u}, ${d})`:(0,B._)`${c}(${d})`}o(u$,"callValidateCode");H.callValidateCode=u$;var l$=(0,B._)`new RegExp`;function p$({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,B._)`${i.code==="new RegExp"?l$:(0,n$.useFunc)(e,i)}(${r}, ${n})`})}o(p$,"usePattern");H.usePattern=p$;function f$(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(s,!0),a(()=>t.break()),s;function a(c){let u=t.const("len",(0,B._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:bu.Type.Num},s),t.if((0,B.not)(s),c)})}o(a,"validateItems")}o(f$,"validateArray");H.validateArray=f$;function d$(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,bu.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let f=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},c);t.assign(a,(0,B._)`${a} || ${c}`),e.mergeValidEvaluated(f,c)||t.if((0,B.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(d$,"validateUnion");H.validateUnion=d$});var $m=h(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.validateKeywordUsage=vt.validSchemaType=vt.funcKeywordCode=vt.macroKeywordCode=void 0;var xe=w(),Lr=ze(),m$=Ke(),h$=ji();function g$(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=Em(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:xe.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(g$,"macroKeywordCode");vt.macroKeywordCode=g$;function y$(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;S$(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,f=Em(n,i,l),p=n.let("valid");e.block$data(p,d),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function d(){if(t.errors===!1)y(),t.modifying&&Pm(e),v(()=>e.error());else{let S=t.async?m():g();t.modifying&&Pm(e),v(()=>v$(e,S))}}o(d,"validateKeyword");function m(){let S=n.let("ruleErrs",null);return n.try(()=>y((0,xe._)`await `),b=>n.assign(p,!1).if((0,xe._)`${b} instanceof ${u.ValidationError}`,()=>n.assign(S,(0,xe._)`${b}.errors`),()=>n.throw(b))),S}o(m,"validateAsync");function g(){let S=(0,xe._)`${f}.errors`;return n.assign(S,null),y(xe.nil),S}o(g,"validateSync");function y(S=t.async?(0,xe._)`await `:xe.nil){let b=u.opts.passContext?Lr.default.this:Lr.default.self,P=!("compile"in t&&!c||t.schema===!1);n.assign(p,(0,xe._)`${S}${(0,m$.callValidateCode)(e,f,b,P)}`,t.modifying)}o(y,"assignValid");function v(S){var b;n.if((0,xe.not)((b=t.valid)!==null&&b!==void 0?b:p),S)}o(v,"reportErrs")}o(y$,"funcKeywordCode");vt.funcKeywordCode=y$;function Pm(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,xe._)`${n.parentData}[${n.parentDataProperty}]`))}o(Pm,"modifyData");function v$(e,t){let{gen:r}=e;r.if((0,xe._)`Array.isArray(${t})`,()=>{r.assign(Lr.default.vErrors,(0,xe._)`${Lr.default.vErrors} === null ? ${t} : ${Lr.default.vErrors}.concat(${t})`).assign(Lr.default.errors,(0,xe._)`${Lr.default.vErrors}.length`),(0,h$.extendErrors)(e)},()=>e.error())}o(v$,"addErrs");function S$({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(S$,"checkAsyncKeyword");function Em(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,xe.stringify)(r)})}o(Em,"useKeyword");function b$(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}o(b$,"validSchemaType");vt.validSchemaType=b$;function _$({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}o(_$,"validateKeywordUsage");vt.validateKeywordUsage=_$});var xm=h(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.extendSubschemaMode=rr.extendSubschemaData=rr.getSubschema=void 0;var St=w(),Om=k();function P$(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,St._)`${e.schemaPath}${(0,St.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,St._)`${e.schemaPath}${(0,St.getProperty)(t)}${(0,St.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Om.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}o(P$,"getSubschema");rr.getSubschema=P$;function E$(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(r!==void 0){let{errorPath:l,dataPathArr:f,opts:p}=t,d=c.let("data",(0,St._)`${t.data}${(0,St.getProperty)(r)}`,!0);u(d),e.errorPath=(0,St.str)`${l}${(0,Om.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,St._)`${r}`,e.dataPathArr=[...f,e.parentDataProperty]}if(i!==void 0){let l=i instanceof St.Name?i:c.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);function u(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}o(u,"dataContextProps")}o(E$,"extendSubschemaData");rr.extendSubschemaData=E$;function $$(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}o($$,"extendSubschemaMode");rr.extendSubschemaMode=$$});var Eu=h((jM,Am)=>{"use strict";Am.exports=o(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))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(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var a=s[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var Im=h((MM,wm)=>{"use strict";var nr=wm.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};ds(t,n,i,e,"",e)};nr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};nr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};nr.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};nr.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function ds(e,t,r,n,i,s,a,c,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,c,u,l);for(var f in n){var p=n[f];if(Array.isArray(p)){if(f in nr.arrayKeywords)for(var d=0;d<p.length;d++)ds(e,t,r,p[d],i+"/"+f+"/"+d,s,i,f,n,d)}else if(f in nr.propsKeywords){if(p&&typeof p=="object")for(var m in p)ds(e,t,r,p[m],i+"/"+f+"/"+O$(m),s,i,f,n,m)}else(f in nr.keywords||e.allKeys&&!(f in nr.skipKeywords))&&ds(e,t,r,p,i+"/"+f,s,i,f,n)}r(n,i,s,a,c,u,l)}}o(ds,"_traverse");function O$(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(O$,"escapeJsonPtr")});var Mi=h(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.getSchemaRefs=ke.resolveUrl=ke.normalizeId=ke._getFullPath=ke.getFullPath=ke.inlineRef=void 0;var x$=k(),A$=Eu(),w$=Im(),I$=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function T$(e,t=!0){return typeof e=="boolean"?!0:t===!0?!$u(e):t?Tm(e)<=t:!1}o(T$,"inlineRef");ke.inlineRef=T$;var R$=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function $u(e){for(let t in e){if(R$.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some($u)||typeof r=="object"&&$u(r))return!0}return!1}o($u,"hasRef");function Tm(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!I$.has(r)&&(typeof e[r]=="object"&&(0,x$.eachItem)(e[r],n=>t+=Tm(n)),t===1/0))return 1/0}return t}o(Tm,"countKeys");function Rm(e,t="",r){r!==!1&&(t=Tn(t));let n=e.parse(t);return Cm(e,n)}o(Rm,"getFullPath");ke.getFullPath=Rm;function Cm(e,t){return e.serialize(t).split("#")[0]+"#"}o(Cm,"_getFullPath");ke._getFullPath=Cm;var C$=/#\/?$/;function Tn(e){return e?e.replace(C$,""):""}o(Tn,"normalizeId");ke.normalizeId=Tn;function N$(e,t,r){return r=Tn(r),e.resolve(t,r)}o(N$,"resolveUrl");ke.resolveUrl=N$;var k$=/^[a-z_][-a-z0-9._]*$/i;function j$(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=Tn(e[r]||t),s={"":i},a=Rm(n,i,!1),c={},u=new Set;return w$(e,{allKeys:!0},(p,d,m,g)=>{if(g===void 0)return;let y=a+d,v=s[g];typeof p[r]=="string"&&(v=S.call(this,p[r])),b.call(this,p.$anchor),b.call(this,p.$dynamicAnchor),s[d]=v;function S(P){let E=this.opts.uriResolver.resolve;if(P=Tn(v?E(v,P):P),u.has(P))throw f(P);u.add(P);let _=this.refs[P];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?l(p,_.schema,P):P!==Tn(y)&&(P[0]==="#"?(l(p,c[P],P),c[P]=p):this.refs[P]=y),P}o(S,"addRef");function b(P){if(typeof P=="string"){if(!k$.test(P))throw new Error(`invalid anchor "${P}"`);S.call(this,`#${P}`)}}o(b,"addAnchor")}),c;function l(p,d,m){if(d!==void 0&&!A$(p,d))throw f(m)}o(l,"checkAmbiguosRef");function f(p){return new Error(`reference "${p}" resolves to more than one schema`)}o(f,"ambiguos")}o(j$,"getSchemaRefs");ke.getSchemaRefs=j$});var Fi=h(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.getData=ir.KeywordCxt=ir.validateFunctionCode=void 0;var Mm=fm(),Nm=qi(),xu=gu(),ms=qi(),q$=Sm(),Li=$m(),Ou=xm(),O=w(),A=ze(),M$=Mi(),Ft=k(),Di=ji();function D$(e){if(Fm(e)&&(Hm(e),Lm(e))){H$(e);return}Dm(e,()=>(0,Mm.topBoolOrEmptySchema)(e))}o(D$,"validateFunctionCode");ir.validateFunctionCode=D$;function Dm({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,O._)`${A.default.data}, ${A.default.valCxt}`,n.$async,()=>{e.code((0,O._)`"use strict"; ${km(r,i)}`),F$(e,i),e.code(s)}):e.func(t,(0,O._)`${A.default.data}, ${L$(i)}`,n.$async,()=>e.code(km(r,i)).code(s))}o(Dm,"validateFunction");function L$(e){return(0,O._)`{${A.default.instancePath}="", ${A.default.parentData}, ${A.default.parentDataProperty}, ${A.default.rootData}=${A.default.data}${e.dynamicRef?(0,O._)`, ${A.default.dynamicAnchors}={}`:O.nil}}={}`}o(L$,"destructureValCxt");function F$(e,t){e.if(A.default.valCxt,()=>{e.var(A.default.instancePath,(0,O._)`${A.default.valCxt}.${A.default.instancePath}`),e.var(A.default.parentData,(0,O._)`${A.default.valCxt}.${A.default.parentData}`),e.var(A.default.parentDataProperty,(0,O._)`${A.default.valCxt}.${A.default.parentDataProperty}`),e.var(A.default.rootData,(0,O._)`${A.default.valCxt}.${A.default.rootData}`),t.dynamicRef&&e.var(A.default.dynamicAnchors,(0,O._)`${A.default.valCxt}.${A.default.dynamicAnchors}`)},()=>{e.var(A.default.instancePath,(0,O._)`""`),e.var(A.default.parentData,(0,O._)`undefined`),e.var(A.default.parentDataProperty,(0,O._)`undefined`),e.var(A.default.rootData,A.default.data),t.dynamicRef&&e.var(A.default.dynamicAnchors,(0,O._)`{}`)})}o(F$,"destructureValCxtES5");function H$(e){let{schema:t,opts:r,gen:n}=e;Dm(e,()=>{r.$comment&&t.$comment&&Bm(e),Z$(e),n.let(A.default.vErrors,null),n.let(A.default.errors,0),r.unevaluated&&V$(e),Vm(e),Q$(e)})}o(H$,"topSchemaObjCode");function V$(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,O._)`${r}.evaluated`),t.if((0,O._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,O._)`${e.evaluated}.props`,(0,O._)`undefined`)),t.if((0,O._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,O._)`${e.evaluated}.items`,(0,O._)`undefined`))}o(V$,"resetEvaluated");function km(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,O._)`/*# sourceURL=${r} */`:O.nil}o(km,"funcSourceUrl");function B$(e,t){if(Fm(e)&&(Hm(e),Lm(e))){U$(e,t);return}(0,Mm.boolOrEmptySchema)(e,t)}o(B$,"subschemaCode");function Lm({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}o(Lm,"schemaCxtHasRules");function Fm(e){return typeof e.schema!="boolean"}o(Fm,"isSchemaObj");function U$(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Bm(e),z$(e),K$(e);let s=n.const("_errs",A.default.errors);Vm(e,s),n.var(t,(0,O._)`${s} === ${A.default.errors}`)}o(U$,"subSchemaObjCode");function Hm(e){(0,Ft.checkUnknownRules)(e),G$(e)}o(Hm,"checkKeywords");function Vm(e,t){if(e.opts.jtd)return jm(e,[],!1,t);let r=(0,Nm.getSchemaTypes)(e.schema),n=(0,Nm.coerceAndCheckDataType)(e,r);jm(e,r,!n,t)}o(Vm,"typeAndKeywords");function G$(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Ft.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(G$,"checkRefsAndKeywords");function Z$(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Ft.checkStrictMode)(e,"default is ignored in the schema root")}o(Z$,"checkNoDefault");function z$(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,M$.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(z$,"updateContext");function K$(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(K$,"checkAsyncSchema");function Bm({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,O._)`${A.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,O.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,O._)`${A.default.self}.opts.$comment(${s}, ${a}, ${c}.schema)`)}}o(Bm,"commentKeyword");function Q$(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,O._)`${A.default.errors} === 0`,()=>t.return(A.default.data),()=>t.throw((0,O._)`new ${i}(${A.default.vErrors})`)):(t.assign((0,O._)`${n}.errors`,A.default.vErrors),s.unevaluated&&W$(e),t.return((0,O._)`${A.default.errors} === 0`))}o(Q$,"returnResults");function W$({gen:e,evaluated:t,props:r,items:n}){r instanceof O.Name&&e.assign((0,O._)`${t}.props`,r),n instanceof O.Name&&e.assign((0,O._)`${t}.items`,n)}o(W$,"assignEvaluated");function jm(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:c,opts:u,self:l}=e,{RULES:f}=l;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,Ft.schemaHasRulesButRef)(s,f))){i.block(()=>Gm(e,"$ref",f.all.$ref.definition));return}u.jtd||Y$(e,t),i.block(()=>{for(let d of f.rules)p(d);p(f.post)});function p(d){(0,xu.shouldUseGroup)(s,d)&&(d.type?(i.if((0,ms.checkDataType)(d.type,a,u.strictNumbers)),qm(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,ms.reportTypeError)(e)),i.endIf()):qm(e,d),c||i.if((0,O._)`${A.default.errors} === ${n||0}`))}o(p,"groupKeywords")}o(jm,"schemaKeywords");function qm(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,q$.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,xu.shouldUseRule)(n,s)&&Gm(e,s.keyword,s.definition,t.type)})}o(qm,"iterateKeywords");function Y$(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(J$(e,t),e.opts.allowUnionTypes||X$(e,t),eO(e,e.dataTypes))}o(Y$,"checkStrictTypes");function J$(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Um(e.dataTypes,r)||Au(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),rO(e,t)}}o(J$,"checkContextTypes");function X$(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Au(e,"use allowUnionTypes to allow union type keyword")}o(X$,"checkMultipleTypes");function eO(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,xu.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>tO(t,a))&&Au(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(eO,"checkKeywordTypes");function tO(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(tO,"hasApplicableType");function Um(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(Um,"includesType");function rO(e,t){let r=[];for(let n of e.dataTypes)Um(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(rO,"narrowSchemaTypes");function Au(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Ft.checkStrictMode)(e,t,e.opts.strictTypes)}o(Au,"strictTypesError");var wu=class wu{constructor(t,r,n){if((0,Li.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ft.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",Zm(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Li.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",A.default.errors))}result(t,r,n){this.failResult((0,O.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,O.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,O._)`${r} !== undefined && (${(0,O.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Di.reportExtraError:Di.reportError)(this,this.def.error,r)}$dataError(){(0,Di.reportError)(this,this.def.$dataError||Di.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Di.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=O.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=O.nil,r=O.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,O.or)((0,O._)`${i} === undefined`,r)),t!==O.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==O.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,O.or)(a(),c());function a(){if(n.length){if(!(r instanceof O.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,O._)`${(0,ms.checkDataTypes)(u,r,s.opts.strictNumbers,ms.DataType.Wrong)}`}return O.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,O._)`!${u}(${r})`}return O.nil}}subschema(t,r){let n=(0,Ou.getSubschema)(this.it,t);(0,Ou.extendSubschemaData)(n,this.it,t),(0,Ou.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return B$(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Ft.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Ft.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,O.Name)),!0}};o(wu,"KeywordCxt");var hs=wu;ir.KeywordCxt=hs;function Gm(e,t,r,n){let i=new hs(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Li.funcKeywordCode)(i,r):"macro"in r?(0,Li.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Li.funcKeywordCode)(i,r)}o(Gm,"keywordCode");var nO=/^\/(?:[^~]|~0|~1)*$/,iO=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Zm(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return A.default.rootData;if(e[0]==="/"){if(!nO.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=A.default.rootData}else{let l=iO.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let f=+l[1];if(i=l[2],i==="#"){if(f>=t)throw new Error(u("property/index",f));return n[t-f]}if(f>t)throw new Error(u("data",f));if(s=r[t-f],!i)return s}let a=s,c=i.split("/");for(let l of c)l&&(s=(0,O._)`${s}${(0,O.getProperty)((0,Ft.unescapeJsonPointer)(l))}`,a=(0,O._)`${a} && ${s}`);return a;function u(l,f){return`Cannot access ${l} ${f} levels up, current level is ${t}`}}o(Zm,"getData");ir.getData=Zm});var gs=h(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});var Ru=class Ru extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(Ru,"ValidationError");var Iu=Ru;Tu.default=Iu});var Hi=h(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var Cu=Mi(),ju=class ju extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Cu.resolveUrl)(t,r,n),this.missingSchema=(0,Cu.normalizeId)((0,Cu.getFullPath)(t,this.missingRef))}};o(ju,"MissingRefError");var Nu=ju;ku.default=Nu});var Vi=h(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.resolveSchema=Qe.getCompilingSchema=Qe.resolveRef=Qe.compileSchema=Qe.SchemaEnv=void 0;var st=w(),oO=gs(),Fr=ze(),at=Mi(),zm=k(),sO=Fi(),Du=class Du{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,at.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};o(Du,"SchemaEnv");var Rn=Du;Qe.SchemaEnv=Rn;function Mu(e){let t=Km.call(this,e);if(t)return t;let r=(0,at.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new st.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:oO.default,code:(0,st._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:Fr.default.data,parentData:Fr.default.parentData,parentDataProperty:Fr.default.parentDataProperty,dataNames:[Fr.default.data],dataPathArr:[st.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,st.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:st.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,st._)`""`,opts:this.opts,self:this},f;try{this._compilations.add(e),(0,sO.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let p=a.toString();f=`${a.scopeRefs(Fr.default.scope)}return ${p}`,this.opts.code.process&&(f=this.opts.code.process(f,e));let m=new Function(`${Fr.default.self}`,`${Fr.default.scope}`,f)(this,this.scope.get());if(this.scope.value(u,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:u,validateCode:p,scopeValues:a._values}),this.opts.unevaluated){let{props:g,items:y}=l;m.evaluated={props:g instanceof st.Name?void 0:g,items:y instanceof st.Name?void 0:y,dynamicProps:g instanceof st.Name,dynamicItems:y instanceof st.Name},m.source&&(m.source.evaluated=(0,st.stringify)(m.evaluated))}return e.validate=m,e}catch(p){throw delete e.validate,delete e.validateName,f&&this.logger.error("Error compiling schema, function code:",f),p}finally{this._compilations.delete(e)}}o(Mu,"compileSchema");Qe.compileSchema=Mu;function aO(e,t,r){var n;r=(0,at.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=lO.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(s=new Rn({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=cO.call(this,s)}o(aO,"resolveRef");Qe.resolveRef=aO;function cO(e){return(0,at.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Mu.call(this,e)}o(cO,"inlineOrCompile");function Km(e){for(let t of this._compilations)if(uO(t,e))return t}o(Km,"getCompilingSchema");Qe.getCompilingSchema=Km;function uO(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(uO,"sameSchemaEnv");function lO(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||ys.call(this,e,t)}o(lO,"resolve");function ys(e,t){let r=this.opts.uriResolver.parse(t),n=(0,at._getFullPath)(this.opts.uriResolver,r),i=(0,at.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return qu.call(this,r,e);let s=(0,at.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=ys.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:qu.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Mu.call(this,a),s===(0,at.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,at.resolveUrl)(this.opts.uriResolver,i,l)),new Rn({schema:c,schemaId:u,root:e,baseId:i})}return qu.call(this,r,a)}}o(ys,"resolveSchema");Qe.resolveSchema=ys;var pO=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function qu(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let c of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let u=r[(0,zm.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!pO.has(c)&&l&&(t=(0,at.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,zm.schemaHasRulesButRef)(r,this.RULES)){let c=(0,at.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=ys.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new Rn({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(qu,"getJsonPointer")});var Qm=h((QM,fO)=>{fO.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Ym=h((WM,Wm)=>{"use strict";var dO={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Wm.exports={HEX:dO}});var oh=h((YM,ih)=>{"use strict";var{HEX:mO}=Ym();function th(e){if(nh(e,".")<3)return{host:e,isIPV4:!1};let t=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[r]=t;return r?{host:gO(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(th,"normalizeIPv4");function Lu(e,t=!1){let r="",n=!0;for(let i of e){if(mO[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(Lu,"stringArrayToHexStripped");function hO(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,c=!1;function u(){if(i.length){if(s===!1){let l=Lu(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}o(u,"consume");for(let l=0;l<e.length;l++){let f=e[l];if(!(f==="["||f==="]"))if(f===":"){if(a===!0&&(c=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(f==="%"){if(!u())break;s=!0}else{i.push(f);continue}}return i.length&&(s?r.zone=i.join(""):c?n.push(i.join("")):n.push(Lu(i))),r.address=n.join(""),r}o(hO,"getIPV6");function rh(e,t={}){if(nh(e,":")<2)return{host:e,isIPV6:!1};let r=hO(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}o(rh,"normalizeIPv6");function gO(e,t){let r="",n=!0,i=e.length;for(let s=0;s<i;s++){let a=e[s];a==="0"&&n?(s+1<=i&&e[s+1]===t||s+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}o(gO,"stripLeadingZeros");function nh(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(nh,"findToken");var Jm=/^\.\.?\//u,Xm=/^\/\.(?:\/|$)/u,eh=/^\/\.\.(?:\/|$)/u,yO=/^\/?(?:.|\n)*?(?=\/|$)/u;function vO(e){let t=[];for(;e.length;)if(e.match(Jm))e=e.replace(Jm,"");else if(e.match(Xm))e=e.replace(Xm,"/");else if(e.match(eh))e=e.replace(eh,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(yO);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}o(vO,"removeDotSegments");function SO(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}o(SO,"normalizeComponentEncoding");function bO(e,t){let r=[];if(e.userinfo!==void 0&&(r.push(e.userinfo),r.push("@")),e.host!==void 0){let n=unescape(e.host),i=th(n);if(i.isIPV4)n=i.host;else{let s=rh(i.host,{isIPV4:!1});s.isIPV6===!0?n=`[${s.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}o(bO,"recomposeAuthority");ih.exports={recomposeAuthority:bO,normalizeComponentEncoding:SO,removeDotSegments:vO,normalizeIPv4:th,normalizeIPv6:rh,stringArrayToHexStripped:Lu}});var ph=h((XM,lh)=>{"use strict";var _O=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,PO=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function sh(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(sh,"isSecure");function ah(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(ah,"httpParse");function ch(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}o(ch,"httpSerialize");function EO(e){return e.secure=sh(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(EO,"wsParse");function $O(e){if((e.port===(sh(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(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}o($O,"wsSerialize");function OO(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(PO);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,s=Fu[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(OO,"urnParse");function xO(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=Fu[i];s&&(e=s.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}o(xO,"urnSerialize");function AO(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!_O.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(AO,"urnuuidParse");function wO(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(wO,"urnuuidSerialize");var uh={scheme:"http",domainHost:!0,parse:ah,serialize:ch},IO={scheme:"https",domainHost:uh.domainHost,parse:ah,serialize:ch},vs={scheme:"ws",domainHost:!0,parse:EO,serialize:$O},TO={scheme:"wss",domainHost:vs.domainHost,parse:vs.parse,serialize:vs.serialize},RO={scheme:"urn",parse:OO,serialize:xO,skipNormalize:!0},CO={scheme:"urn:uuid",parse:AO,serialize:wO,skipNormalize:!0},Fu={http:uh,https:IO,ws:vs,wss:TO,urn:RO,"urn:uuid":CO};lh.exports=Fu});var dh=h((t4,bs)=>{"use strict";var{normalizeIPv6:NO,normalizeIPv4:kO,removeDotSegments:Bi,recomposeAuthority:jO,normalizeComponentEncoding:Ss}=oh(),Hu=ph();function qO(e,t){return typeof e=="string"?e=bt(Ht(e,t),t):typeof e=="object"&&(e=Ht(bt(e,t),t)),e}o(qO,"normalize");function MO(e,t,r){let n=Object.assign({scheme:"null"},r),i=fh(Ht(e,n),Ht(t,n),n,!0);return bt(i,{...n,skipEscape:!0})}o(MO,"resolve");function fh(e,t,r,n){let i={};return n||(e=Ht(bt(e,r),r),t=Ht(bt(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Bi(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Bi(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=Bi(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=Bi(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}o(fh,"resolveComponents");function DO(e,t,r){return typeof e=="string"?(e=unescape(e),e=bt(Ss(Ht(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=bt(Ss(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=bt(Ss(Ht(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=bt(Ss(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(DO,"equal");function bt(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:""},n=Object.assign({},t),i=[],s=Hu[(n.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=jO(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let c=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(c=Bi(c)),a===void 0&&(c=c.replace(/^\/\//u,"/%2F")),i.push(c)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}o(bt,"serialize");var LO=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function FO(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||LO[t])return!0;return!1}o(FO,"nonSimpleDomain");var HO=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Ht(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,s=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(HO);if(a){if(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5]),n.host){let u=kO(n.host);if(u.isIPV4===!1){let l=NO(u.host,{isIPV4:!1});n.host=l.host.toLowerCase(),s=l.isIPV6}else n.host=u.host,s=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=Hu[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&FO(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!c||c&&!c.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}o(Ht,"parse");var Vu={SCHEMES:Hu,normalize:qO,resolve:MO,resolveComponents:fh,equal:DO,serialize:bt,parse:Ht};bs.exports=Vu;bs.exports.default=Vu;bs.exports.fastUri=Vu});var hh=h(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});var mh=dh();mh.code='require("ajv/dist/runtime/uri").default';Bu.default=mh});var Nn=h(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.CodeGen=ce.Name=ce.nil=ce.stringify=ce.str=ce._=ce.KeywordCxt=void 0;var VO=Fi();Object.defineProperty(ce,"KeywordCxt",{enumerable:!0,get:o(function(){return VO.KeywordCxt},"get")});var Cn=w();Object.defineProperty(ce,"_",{enumerable:!0,get:o(function(){return Cn._},"get")});Object.defineProperty(ce,"str",{enumerable:!0,get:o(function(){return Cn.str},"get")});Object.defineProperty(ce,"stringify",{enumerable:!0,get:o(function(){return Cn.stringify},"get")});Object.defineProperty(ce,"nil",{enumerable:!0,get:o(function(){return Cn.nil},"get")});Object.defineProperty(ce,"Name",{enumerable:!0,get:o(function(){return Cn.Name},"get")});Object.defineProperty(ce,"CodeGen",{enumerable:!0,get:o(function(){return Cn.CodeGen},"get")});var BO=gs(),bh=Hi(),UO=hu(),Ui=Vi(),GO=w(),Gi=Mi(),_s=qi(),Gu=k(),gh=Qm(),ZO=hh(),_h=o((e,t)=>new RegExp(e,t),"defaultRegExp");_h.code="new RegExp";var zO=["removeAdditional","useDefaults","coerceTypes"],KO=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),QO={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."},WO={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},yh=200;function YO(e){var t,r,n,i,s,a,c,u,l,f,p,d,m,g,y,v,S,b,P,E,_,I,T,ge,re;let L=e.strict,X=(t=e.code)===null||t===void 0?void 0:t.optimize,oe=X===!0||X===void 0?1:X||0,qt=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:_h,Mt=(i=e.uriResolver)!==null&&i!==void 0?i:ZO.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:L)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:L)!==null&&u!==void 0?u:!0,strictTypes:(f=(l=e.strictTypes)!==null&&l!==void 0?l:L)!==null&&f!==void 0?f:"log",strictTuples:(d=(p=e.strictTuples)!==null&&p!==void 0?p:L)!==null&&d!==void 0?d:"log",strictRequired:(g=(m=e.strictRequired)!==null&&m!==void 0?m:L)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:oe,regExp:qt}:{optimize:oe,regExp:qt},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:yh,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:yh,meta:(S=e.meta)!==null&&S!==void 0?S:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(P=e.inlineRefs)!==null&&P!==void 0?P:!0,schemaId:(E=e.schemaId)!==null&&E!==void 0?E:"$id",addUsedSchema:(_=e.addUsedSchema)!==null&&_!==void 0?_:!0,validateSchema:(I=e.validateSchema)!==null&&I!==void 0?I:!0,validateFormats:(T=e.validateFormats)!==null&&T!==void 0?T:!0,unicodeRegExp:(ge=e.unicodeRegExp)!==null&&ge!==void 0?ge:!0,int32range:(re=e.int32range)!==null&&re!==void 0?re:!0,uriResolver:Mt}}o(YO,"requiredOptions");var Zu=class Zu{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...YO(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new GO.ValueScope({scope:{},prefixes:KO,es5:r,lines:n}),this.logger=n1(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,UO.getRules)(),vh.call(this,QO,t,"NOT SUPPORTED"),vh.call(this,WO,t,"DEPRECATED","warn"),this._metaOpts=t1.call(this),t.formats&&XO.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&e1.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),JO.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=gh;n==="id"&&(i={...gh},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(f,p){await s.call(this,f.$schema);let d=this._addSchema(f,p);return d.validate||a.call(this,d)}async function s(f){f&&!this.getSchema(f)&&await i.call(this,{$ref:f},!0)}async function a(f){try{return this._compileSchemaEnv(f)}catch(p){if(!(p instanceof bh.default))throw p;return c.call(this,p),await u.call(this,p.missingSchema),a.call(this,f)}}function c({missingSchema:f,missingRef:p}){if(this.refs[f])throw new Error(`AnySchema ${f} is loaded but ${p} cannot be resolved`)}async function u(f){let p=await l.call(this,f);this.refs[f]||await s.call(this,p.$schema),this.refs[f]||this.addSchema(p,f,r)}async function l(f){let p=this._loading[f];if(p)return p;try{return await(this._loading[f]=n(f))}finally{delete this._loading[f]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let s;if(typeof t=="object"){let{schemaId:a}=this.opts;if(s=t[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,Gi.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(t){let r;for(;typeof(r=Sh.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new Ui.SchemaEnv({schema:{},schemaId:n});if(r=Ui.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Sh.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,Gi.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(o1.call(this,n,r),!r)return(0,Gu.eachItem)(n,s=>Uu.call(this,s)),this;a1.call(this,r);let i={...r,type:(0,_s.getJSONTypes)(r.type),schemaType:(0,_s.getJSONTypes)(r.schemaType)};return(0,Gu.eachItem)(n,i.type.length===0?s=>Uu.call(this,s,i):s=>i.type.forEach(a=>Uu.call(this,s,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let s=i.split("/").slice(1),a=t;for(let c of s)a=a[c];for(let c in n){let u=n[c];if(typeof u!="object")continue;let{$data:l}=u.definition,f=a[c];l&&f&&(a[c]=Ph(f))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let a,{schemaId:c}=this.opts;if(typeof t=="object")a=t[c];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(t);if(u!==void 0)return u;n=(0,Gi.normalizeId)(a||n);let l=Gi.getSchemaRefs.call(this,t,n);return u=new Ui.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Ui.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{Ui.compileSchema.call(this,t)}finally{this.opts=r}}};o(Zu,"Ajv");var Zi=Zu;Zi.ValidationError=BO.default;Zi.MissingRefError=bh.default;ce.default=Zi;function vh(e,t,r,n="error"){for(let i in e){let s=i;s in t&&this.logger[n](`${r}: option ${i}. ${e[s]}`)}}o(vh,"checkOptions");function Sh(e){return e=(0,Gi.normalizeId)(e),this.schemas[e]||this.refs[e]}o(Sh,"getSchEnv");function JO(){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)}o(JO,"addInitialSchemas");function XO(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(XO,"addInitialFormats");function e1(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}o(e1,"addInitialKeywords");function t1(){let e={...this.opts};for(let t of zO)delete e[t];return e}o(t1,"getMetaSchemaOptions");var r1={log(){},warn(){},error(){}};function n1(e){if(e===!1)return r1;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}o(n1,"getLogger");var i1=/^[a-z_$][a-z0-9_$:-]*$/i;function o1(e,t){let{RULES:r}=this;if((0,Gu.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!i1.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}o(o1,"checkKeyword");function Uu(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,a=i?s.post:s.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,_s.getJSONTypes)(t.type),schemaType:(0,_s.getJSONTypes)(t.schemaType)}};t.before?s1.call(this,a,c,t.before):a.rules.push(c),s.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}o(Uu,"addRule");function s1(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}o(s1,"addBeforeRule");function a1(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Ph(t)),e.validateSchema=this.compile(t,!0))}o(a1,"keywordMetaschema");var c1={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Ph(e){return{anyOf:[e,c1]}}o(Ph,"schemaOrData")});var zi=h(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.callRef=Hr.getValidate=void 0;var u1=Hi(),Eh=Ke(),je=w(),kn=ze(),$h=Vi(),Ps=k(),l1={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:c,self:u}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return p();let f=$h.resolveRef.call(u,l,i,r);if(f===void 0)throw new u1.default(n.opts.uriResolver,i,r);if(f instanceof $h.SchemaEnv)return d(f);return m(f);function p(){if(s===l)return Es(e,a,s,s.$async);let g=t.scopeValue("root",{ref:l});return Es(e,(0,je._)`${g}.validate`,l,l.$async)}function d(g){let y=Oh(e,g);Es(e,y,g,g.$async)}function m(g){let y=t.scopeValue("schema",c.code.source===!0?{ref:g,code:(0,je.stringify)(g)}:{ref:g}),v=t.name("valid"),S=e.subschema({schema:g,dataTypes:[],schemaPath:je.nil,topSchemaRef:y,errSchemaPath:r},v);e.mergeEvaluated(S),e.ok(v)}}};function Oh(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,je._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(Oh,"getValidate");Hr.getValidate=Oh;function Es(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?kn.default.this:je.nil;n?f():p();function f(){if(!c.$async)throw new Error("async schema referenced by sync schema");let g=i.let("valid");i.try(()=>{i.code((0,je._)`await ${(0,Eh.callValidateCode)(e,t,l)}`),m(t),a||i.assign(g,!0)},y=>{i.if((0,je._)`!(${y} instanceof ${s.ValidationError})`,()=>i.throw(y)),d(y),a||i.assign(g,!1)}),e.ok(g)}o(f,"callAsyncRef");function p(){e.result((0,Eh.callValidateCode)(e,t,l),()=>m(t),()=>d(t))}o(p,"callSyncRef");function d(g){let y=(0,je._)`${g}.errors`;i.assign(kn.default.vErrors,(0,je._)`${kn.default.vErrors} === null ? ${y} : ${kn.default.vErrors}.concat(${y})`),i.assign(kn.default.errors,(0,je._)`${kn.default.vErrors}.length`)}o(d,"addErrorsFrom");function m(g){var y;if(!s.opts.unevaluated)return;let v=(y=r==null?void 0:r.validate)===null||y===void 0?void 0:y.evaluated;if(s.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(s.props=Ps.mergeEvaluated.props(i,v.props,s.props));else{let S=i.var("props",(0,je._)`${g}.evaluated.props`);s.props=Ps.mergeEvaluated.props(i,S,s.props,je.Name)}if(s.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(s.items=Ps.mergeEvaluated.items(i,v.items,s.items));else{let S=i.var("items",(0,je._)`${g}.evaluated.items`);s.items=Ps.mergeEvaluated.items(i,S,s.items,je.Name)}}o(m,"addEvaluatedFrom")}o(Es,"callRef");Hr.callRef=Es;Hr.default=l1});var xh=h(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});var p1=zi(),f1=["$schema","id","$defs",{keyword:"$comment"},"definitions",p1.default];zu.default=f1});var Ah=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});var Ku=Nn(),d1=w(),or=d1.operators,Qu={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:or.LTE,fail:or.GT},{okStr:"<",ok:or.LT,fail:or.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:or.GTE,fail:or.LT},{okStr:">",ok:or.GT,fail:or.LTE}]}},m1={message:o(e=>Ku.str`must be ${Wu(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>Ku._`{comparison: ${Wu(e).okStr}, limit: ${e.schemaCode}}`,"params")},h1={keyword:Object.keys(Qu),type:"number",schemaType:"number",$data:!0,error:m1,code(e){let{data:t,schemaCode:r}=e;e.fail$data(Ku._`${t} ${Wu(e).fail} ${r} || isNaN(${t})`)}};function Wu(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[Qu[r].exclusive]?1:0;return Qu[r].ops[n]}o(Wu,"kwdOp");Yu.default=h1});var Ih=h(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});var wh={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},g1={keyword:Object.keys(wh),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=wh[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};Ju.default=g1});var el=h(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var Ki=w(),y1={message:o(({schemaCode:e})=>(0,Ki.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,Ki._)`{multipleOf: ${e}}`,"params")},v1={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:y1,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,Ki._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,Ki._)`${a} !== parseInt(${a})`;e.fail$data((0,Ki._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};Xu.default=v1});var Rh=h(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});function Th(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}o(Th,"ucs2length");tl.default=Th;Th.code='require("ajv/dist/runtime/ucs2length").default'});var nl=h(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var Vr=w(),S1=k(),b1=Rh(),_1={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Vr.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,Vr._)`{limit: ${e}}`,"params")},P1={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:_1,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?Vr.operators.GT:Vr.operators.LT,a=i.opts.unicode===!1?(0,Vr._)`${r}.length`:(0,Vr._)`${(0,S1.useFunc)(e.gen,b1.default)}(${r})`;e.fail$data((0,Vr._)`${a} ${s} ${n}`)}};rl.default=P1});var ol=h(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var E1=Ke(),$s=w(),$1={message:o(({schemaCode:e})=>(0,$s.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,$s._)`{pattern: ${e}}`,"params")},O1={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:$1,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,$s._)`(new RegExp(${i}, ${a}))`:(0,E1.usePattern)(e,n);e.fail$data((0,$s._)`!${c}.test(${t})`)}};il.default=O1});var al=h(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});var Qi=w(),x1={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Qi.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,Qi._)`{limit: ${e}}`,"params")},A1={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:x1,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Qi.operators.GT:Qi.operators.LT;e.fail$data((0,Qi._)`Object.keys(${r}).length ${i} ${n}`)}};sl.default=A1});var ul=h(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var Wi=Ke(),Yi=w(),w1=k(),I1={message:o(({params:{missingProperty:e}})=>(0,Yi.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,Yi._)`{missingProperty: ${e}}`,"params")},T1={keyword:"required",type:"object",schemaType:"array",$data:!0,error:I1,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:c}=a;if(!s&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?l():f(),c.strictRequired){let m=e.parentSchema.properties,{definedProperties:g}=e.it;for(let y of r)if((m==null?void 0:m[y])===void 0&&!g.has(y)){let v=a.schemaEnv.baseId+a.errSchemaPath,S=`required property "${y}" is not defined at "${v}" (strictRequired)`;(0,w1.checkStrictMode)(a,S,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(Yi.nil,p);else for(let m of r)(0,Wi.checkReportMissingProp)(e,m)}o(l,"allErrorsMode");function f(){let m=t.let("missing");if(u||s){let g=t.let("valid",!0);e.block$data(g,()=>d(m,g)),e.ok(g)}else t.if((0,Wi.checkMissingProp)(e,r,m)),(0,Wi.reportMissingProp)(e,m),t.else()}o(f,"exitOnErrorMode");function p(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,Wi.noPropertyInData)(t,i,m,c.ownProperties),()=>e.error())})}o(p,"loopAllRequired");function d(m,g){e.setParams({missingProperty:m}),t.forOf(m,n,()=>{t.assign(g,(0,Wi.propertyInData)(t,i,m,c.ownProperties)),t.if((0,Yi.not)(g),()=>{e.error(),t.break()})},Yi.nil)}o(d,"loopUntilMissing")}};cl.default=T1});var pl=h(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var Ji=w(),R1={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ji.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,Ji._)`{limit: ${e}}`,"params")},C1={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:R1,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Ji.operators.GT:Ji.operators.LT;e.fail$data((0,Ji._)`${r}.length ${i} ${n}`)}};ll.default=C1});var Os=h(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var Ch=Eu();Ch.code='require("ajv/dist/runtime/equal").default';fl.default=Ch});var hl=h(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var dl=qi(),ue=w(),N1=k(),k1=Os(),j1={message:o(({params:{i:e,j:t}})=>(0,ue.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,ue._)`{i: ${e}, j: ${t}}`,"params")},q1={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:j1,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),l=s.items?(0,dl.getSchemaTypes)(s.items):[];e.block$data(u,f,(0,ue._)`${a} === false`),e.ok(u);function f(){let g=t.let("i",(0,ue._)`${r}.length`),y=t.let("j");e.setParams({i:g,j:y}),t.assign(u,!0),t.if((0,ue._)`${g} > 1`,()=>(p()?d:m)(g,y))}o(f,"validateUniqueItems");function p(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}o(p,"canOptimize");function d(g,y){let v=t.name("item"),S=(0,dl.checkDataTypes)(l,v,c.opts.strictNumbers,dl.DataType.Wrong),b=t.const("indices",(0,ue._)`{}`);t.for((0,ue._)`;${g}--;`,()=>{t.let(v,(0,ue._)`${r}[${g}]`),t.if(S,(0,ue._)`continue`),l.length>1&&t.if((0,ue._)`typeof ${v} == "string"`,(0,ue._)`${v} += "_"`),t.if((0,ue._)`typeof ${b}[${v}] == "number"`,()=>{t.assign(y,(0,ue._)`${b}[${v}]`),e.error(),t.assign(u,!1).break()}).code((0,ue._)`${b}[${v}] = ${g}`)})}o(d,"loopN");function m(g,y){let v=(0,N1.useFunc)(t,k1.default),S=t.name("outer");t.label(S).for((0,ue._)`;${g}--;`,()=>t.for((0,ue._)`${y} = ${g}; ${y}--;`,()=>t.if((0,ue._)`${v}(${r}[${g}], ${r}[${y}])`,()=>{e.error(),t.assign(u,!1).break(S)})))}o(m,"loopN2")}};ml.default=q1});var vl=h(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var gl=w(),M1=k(),D1=Os(),L1={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,gl._)`{allowedValue: ${e}}`,"params")},F1={keyword:"const",$data:!0,error:L1,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,gl._)`!${(0,M1.useFunc)(t,D1.default)}(${r}, ${i})`):e.fail((0,gl._)`${s} !== ${r}`)}};yl.default=F1});var bl=h(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var Xi=w(),H1=k(),V1=Os(),B1={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,Xi._)`{allowedValues: ${e}}`,"params")},U1={keyword:"enum",schemaType:"array",$data:!0,error:B1,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,u,l=o(()=>u??(u=(0,H1.useFunc)(t,V1.default)),"getEql"),f;if(c||n)f=t.let("valid"),e.block$data(f,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let m=t.const("vSchema",s);f=(0,Xi.or)(...i.map((g,y)=>d(m,y)))}e.pass(f);function p(){t.assign(f,!1),t.forOf("v",s,m=>t.if((0,Xi._)`${l()}(${r}, ${m})`,()=>t.assign(f,!0).break()))}o(p,"loopEnum");function d(m,g){let y=i[g];return typeof y=="object"&&y!==null?(0,Xi._)`${l()}(${r}, ${m}[${g}])`:(0,Xi._)`${r} === ${y}`}o(d,"equalCode")}};Sl.default=U1});var Nh=h(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var G1=Ah(),Z1=Ih(),z1=el(),K1=nl(),Q1=ol(),W1=al(),Y1=ul(),J1=pl(),X1=hl(),ex=vl(),tx=bl(),rx=[G1.default,Z1.default,z1.default,K1.default,Q1.default,W1.default,Y1.default,J1.default,X1.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ex.default,tx.default];_l.default=rx});var El=h(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.validateAdditionalItems=void 0;var Br=w(),Pl=k(),nx={message:o(({params:{len:e}})=>(0,Br.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Br._)`{limit: ${e}}`,"params")},ix={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:nx,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Pl.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}kh(e,n)}};function kh(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let c=r.const("len",(0,Br._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Br._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,Pl.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,Br._)`${c} <= ${t.length}`);r.if((0,Br.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,f=>{e.subschema({keyword:s,dataProp:f,dataPropType:Pl.Type.Num},l),a.allErrors||r.if((0,Br.not)(l),()=>r.break())})}o(u,"validateItems")}o(kh,"validateAdditionalItems");eo.validateAdditionalItems=kh;eo.default=ix});var $l=h(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.validateTuple=void 0;var jh=w(),xs=k(),ox=Ke(),sx={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return qh(e,"additionalItems",t);r.items=!0,!(0,xs.alwaysValidSchema)(r,t)&&e.ok((0,ox.validateArray)(e))}};function qh(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:c}=e;f(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=xs.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,jh._)`${s}.length`);r.forEach((p,d)=>{(0,xs.alwaysValidSchema)(c,p)||(n.if((0,jh._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function f(p){let{opts:d,errSchemaPath:m}=c,g=r.length,y=g===p.minItems&&(g===p.maxItems||p[t]===!1);if(d.strictTuples&&!y){let v=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,xs.checkStrictMode)(c,v,d.strictTuples)}}o(f,"checkStrictTuple")}o(qh,"validateTuple");to.validateTuple=qh;to.default=sx});var Mh=h(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var ax=$l(),cx={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,ax.validateTuple)(e,"items"),"code")};Ol.default=cx});var Lh=h(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var Dh=w(),ux=k(),lx=Ke(),px=El(),fx={message:o(({params:{len:e}})=>(0,Dh.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Dh._)`{limit: ${e}}`,"params")},dx={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:fx,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,ux.alwaysValidSchema)(n,t)&&(i?(0,px.validateAdditionalItems)(e,i):e.ok((0,lx.validateArray)(e)))}};xl.default=dx});var Fh=h(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var We=w(),As=k(),mx={message:o(({params:{min:e,max:t}})=>t===void 0?(0,We.str)`must contain at least ${e} valid item(s)`:(0,We.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:o(({params:{min:e,max:t}})=>t===void 0?(0,We._)`{minContains: ${e}}`:(0,We._)`{minContains: ${e}, maxContains: ${t}}`,"params")},hx={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:mx,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,c,{minContains:u,maxContains:l}=n;s.opts.next?(a=u===void 0?1:u,c=l):a=1;let f=t.const("len",(0,We._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,As.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,As.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,As.alwaysValidSchema)(s,r)){let y=(0,We._)`${f} >= ${a}`;c!==void 0&&(y=(0,We._)`${y} && ${f} <= ${c}`),e.pass(y);return}s.items=!0;let p=t.name("valid");c===void 0&&a===1?m(p,()=>t.if(p,()=>t.break())):a===0?(t.let(p,!0),c!==void 0&&t.if((0,We._)`${i}.length > 0`,d)):(t.let(p,!1),d()),e.result(p,()=>e.reset());function d(){let y=t.name("_valid"),v=t.let("count",0);m(y,()=>t.if(y,()=>g(v)))}o(d,"validateItemsWithCount");function m(y,v){t.forRange("i",0,f,S=>{e.subschema({keyword:"contains",dataProp:S,dataPropType:As.Type.Num,compositeRule:!0},y),v()})}o(m,"validateItems");function g(y){t.code((0,We._)`${y}++`),c===void 0?t.if((0,We._)`${y} >= ${a}`,()=>t.assign(p,!0).break()):(t.if((0,We._)`${y} > ${c}`,()=>t.assign(p,!1).break()),a===1?t.assign(p,!0):t.if((0,We._)`${y} >= ${a}`,()=>t.assign(p,!0)))}o(g,"checkLimits")}};Al.default=hx});var ws=h(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.validateSchemaDeps=_t.validatePropertyDeps=_t.error=void 0;var wl=w(),gx=k(),ro=Ke();_t.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,wl.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,wl._)`{property: ${e},
9
+ || ${a} === "boolean" || ${i} === null`).assign(c,(0,R._)`[${i}]`)}}o(u,"coerceSpecificType")}o(_O,"coerceData");function EO({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,R._)`${t} !== undefined`,()=>e.assign((0,R._)`${t}[${r}]`,n))}o(EO,"assignParentData");function Nu(e,t,r,n=jn.Correct){let i=n===jn.Correct?R.operators.EQ:R.operators.NEQ,s;switch(e){case"null":return(0,R._)`${t} ${i} null`;case"array":s=(0,R._)`Array.isArray(${t})`;break;case"object":s=(0,R._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,R._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,R._)`typeof ${t} ${i} ${e}`}return n===jn.Correct?s:(0,R.not)(s);function a(c=R.nil){return(0,R.and)((0,R._)`typeof ${t} == "number"`,c,r?(0,R._)`isFinite(${t})`:R.nil)}}o(Nu,"checkDataType");_e.checkDataType=Nu;function ku(e,t,r,n){if(e.length===1)return Nu(e[0],t,r,n);let i,s=(0,Nm.toHash)(e);if(s.array&&s.object){let a=(0,R._)`typeof ${t} != "object"`;i=s.null?a:(0,R._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=R.nil;s.number&&delete s.integer;for(let a in s)i=(0,R.and)(i,Nu(a,t,r,n));return i}o(ku,"checkDataTypes");_e.checkDataTypes=ku;var PO={message:o(({schema:e})=>`must be ${e}`,"message"),params:o(({schema:e,schemaValue:t})=>typeof e=="string"?(0,R._)`{type: ${e}}`:(0,R._)`{type: ${t}}`,"params")};function ju(e){let t=OO(e);(0,yO.reportError)(t,PO)}o(ju,"reportTypeError");_e.reportTypeError=ju;function OO(e){let{gen:t,data:r,schema:n}=e,i=(0,Nm.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(OO,"getTypeErrorContext")});var Mm=h($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.assignDefaults=void 0;var qn=C(),$O=j();function xO(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)qm(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>qm(e,s,i.default))}o(xO,"assignDefaults");$s.assignDefaults=xO;function qm(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,qn._)`${s}${(0,qn.getProperty)(t)}`;if(i){(0,$O.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,qn._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,qn._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,qn._)`${c} = ${(0,qn.stringify)(r)}`)}o(qm,"assignDefault")});var Qe=h(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.validateUnion=G.validateArray=G.usePattern=G.callValidateCode=G.schemaProperties=G.allSchemaProperties=G.noPropertyInData=G.propertyInData=G.isOwnProperty=G.hasPropFunc=G.reportMissingProp=G.checkMissingProp=G.checkReportMissingProp=void 0;var K=C(),qu=j(),ir=Ke(),AO=j();function wO(e,t){let{gen:r,data:n,it:i}=e;r.if(Du(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,K._)`${t}`},!0),e.error()})}o(wO,"checkReportMissingProp");G.checkReportMissingProp=wO;function IO({gen:e,data:t,it:{opts:r}},n,i){return(0,K.or)(...n.map(s=>(0,K.and)(Du(e,t,s,r.ownProperties),(0,K._)`${i} = ${s}`)))}o(IO,"checkMissingProp");G.checkMissingProp=IO;function TO(e,t){e.setParams({missingProperty:t},!0),e.error()}o(TO,"reportMissingProp");G.reportMissingProp=TO;function Dm(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,K._)`Object.prototype.hasOwnProperty`})}o(Dm,"hasPropFunc");G.hasPropFunc=Dm;function Mu(e,t,r){return(0,K._)`${Dm(e)}.call(${t}, ${r})`}o(Mu,"isOwnProperty");G.isOwnProperty=Mu;function CO(e,t,r,n){let i=(0,K._)`${t}${(0,K.getProperty)(r)} !== undefined`;return n?(0,K._)`${i} && ${Mu(e,t,r)}`:i}o(CO,"propertyInData");G.propertyInData=CO;function Du(e,t,r,n){let i=(0,K._)`${t}${(0,K.getProperty)(r)} === undefined`;return n?(0,K.or)(i,(0,K.not)(Mu(e,t,r))):i}o(Du,"noPropertyInData");G.noPropertyInData=Du;function Lm(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(Lm,"allSchemaProperties");G.allSchemaProperties=Lm;function RO(e,t){return Lm(t).filter(r=>!(0,qu.alwaysValidSchema)(e,t[r]))}o(RO,"schemaProperties");G.schemaProperties=RO;function NO({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let f=l?(0,K._)`${e}, ${t}, ${n}${i}`:t,p=[[ir.default.instancePath,(0,K.strConcat)(ir.default.instancePath,s)],[ir.default.parentData,a.parentData],[ir.default.parentDataProperty,a.parentDataProperty],[ir.default.rootData,ir.default.rootData]];a.opts.dynamicRef&&p.push([ir.default.dynamicAnchors,ir.default.dynamicAnchors]);let d=(0,K._)`${f}, ${r.object(...p)}`;return u!==K.nil?(0,K._)`${c}.call(${u}, ${d})`:(0,K._)`${c}(${d})`}o(NO,"callValidateCode");G.callValidateCode=NO;var kO=(0,K._)`new RegExp`;function jO({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,K._)`${i.code==="new RegExp"?kO:(0,AO.useFunc)(e,i)}(${r}, ${n})`})}o(jO,"usePattern");G.usePattern=jO;function qO(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(s,!0),a(()=>t.break()),s;function a(c){let u=t.const("len",(0,K._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:qu.Type.Num},s),t.if((0,K.not)(s),c)})}o(a,"validateItems")}o(qO,"validateArray");G.validateArray=qO;function MO(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,qu.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let f=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},c);t.assign(a,(0,K._)`${a} || ${c}`),e.mergeValidEvaluated(f,c)||t.if((0,K.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(MO,"validateUnion");G.validateUnion=MO});var Vm=h(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.validateKeywordUsage=vt.validSchemaType=vt.funcKeywordCode=vt.macroKeywordCode=void 0;var we=C(),Gr=Ke(),DO=Qe(),LO=Ui();function FO(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=Hm(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:we.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(FO,"macroKeywordCode");vt.macroKeywordCode=FO;function HO(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;BO(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,f=Hm(n,i,l),p=n.let("valid");e.block$data(p,d),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function d(){if(t.errors===!1)y(),t.modifying&&Fm(e),S(()=>e.error());else{let v=t.async?m():g();t.modifying&&Fm(e),S(()=>VO(e,v))}}o(d,"validateKeyword");function m(){let v=n.let("ruleErrs",null);return n.try(()=>y((0,we._)`await `),b=>n.assign(p,!1).if((0,we._)`${b} instanceof ${u.ValidationError}`,()=>n.assign(v,(0,we._)`${b}.errors`),()=>n.throw(b))),v}o(m,"validateAsync");function g(){let v=(0,we._)`${f}.errors`;return n.assign(v,null),y(we.nil),v}o(g,"validateSync");function y(v=t.async?(0,we._)`await `:we.nil){let b=u.opts.passContext?Gr.default.this:Gr.default.self,E=!("compile"in t&&!c||t.schema===!1);n.assign(p,(0,we._)`${v}${(0,DO.callValidateCode)(e,f,b,E)}`,t.modifying)}o(y,"assignValid");function S(v){var b;n.if((0,we.not)((b=t.valid)!==null&&b!==void 0?b:p),v)}o(S,"reportErrs")}o(HO,"funcKeywordCode");vt.funcKeywordCode=HO;function Fm(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,we._)`${n.parentData}[${n.parentDataProperty}]`))}o(Fm,"modifyData");function VO(e,t){let{gen:r}=e;r.if((0,we._)`Array.isArray(${t})`,()=>{r.assign(Gr.default.vErrors,(0,we._)`${Gr.default.vErrors} === null ? ${t} : ${Gr.default.vErrors}.concat(${t})`).assign(Gr.default.errors,(0,we._)`${Gr.default.vErrors}.length`),(0,LO.extendErrors)(e)},()=>e.error())}o(VO,"addErrs");function BO({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(BO,"checkAsyncKeyword");function Hm(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,we.stringify)(r)})}o(Hm,"useKeyword");function GO(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}o(GO,"validSchemaType");vt.validSchemaType=GO;function UO({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}o(UO,"validateKeywordUsage");vt.validateKeywordUsage=UO});var Gm=h(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.extendSubschemaMode=or.extendSubschemaData=or.getSubschema=void 0;var bt=C(),Bm=j();function ZO(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,bt._)`${e.schemaPath}${(0,bt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,bt._)`${e.schemaPath}${(0,bt.getProperty)(t)}${(0,bt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Bm.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}o(ZO,"getSubschema");or.getSubschema=ZO;function zO(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(r!==void 0){let{errorPath:l,dataPathArr:f,opts:p}=t,d=c.let("data",(0,bt._)`${t.data}${(0,bt.getProperty)(r)}`,!0);u(d),e.errorPath=(0,bt.str)`${l}${(0,Bm.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,bt._)`${r}`,e.dataPathArr=[...f,e.parentDataProperty]}if(i!==void 0){let l=i instanceof bt.Name?i:c.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);function u(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}o(u,"dataContextProps")}o(zO,"extendSubschemaData");or.extendSubschemaData=zO;function KO(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}o(KO,"extendSubschemaMode");or.extendSubschemaMode=KO});var Lu=h((uD,Um)=>{"use strict";Um.exports=o(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))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(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var a=s[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var zm=h((pD,Zm)=>{"use strict";var sr=Zm.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};xs(t,n,i,e,"",e)};sr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};sr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};sr.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};sr.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function xs(e,t,r,n,i,s,a,c,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,c,u,l);for(var f in n){var p=n[f];if(Array.isArray(p)){if(f in sr.arrayKeywords)for(var d=0;d<p.length;d++)xs(e,t,r,p[d],i+"/"+f+"/"+d,s,i,f,n,d)}else if(f in sr.propsKeywords){if(p&&typeof p=="object")for(var m in p)xs(e,t,r,p[m],i+"/"+f+"/"+QO(m),s,i,f,n,m)}else(f in sr.keywords||e.allKeys&&!(f in sr.skipKeywords))&&xs(e,t,r,p,i+"/"+f,s,i,f,n)}r(n,i,s,a,c,u,l)}}o(xs,"_traverse");function QO(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(QO,"escapeJsonPtr")});var zi=h(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.getSchemaRefs=je.resolveUrl=je.normalizeId=je._getFullPath=je.getFullPath=je.inlineRef=void 0;var WO=j(),YO=Lu(),JO=zm(),XO=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function e$(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Fu(e):t?Km(e)<=t:!1}o(e$,"inlineRef");je.inlineRef=e$;var t$=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Fu(e){for(let t in e){if(t$.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Fu)||typeof r=="object"&&Fu(r))return!0}return!1}o(Fu,"hasRef");function Km(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!XO.has(r)&&(typeof e[r]=="object"&&(0,WO.eachItem)(e[r],n=>t+=Km(n)),t===1/0))return 1/0}return t}o(Km,"countKeys");function Qm(e,t="",r){r!==!1&&(t=Mn(t));let n=e.parse(t);return Wm(e,n)}o(Qm,"getFullPath");je.getFullPath=Qm;function Wm(e,t){return e.serialize(t).split("#")[0]+"#"}o(Wm,"_getFullPath");je._getFullPath=Wm;var r$=/#\/?$/;function Mn(e){return e?e.replace(r$,""):""}o(Mn,"normalizeId");je.normalizeId=Mn;function n$(e,t,r){return r=Mn(r),e.resolve(t,r)}o(n$,"resolveUrl");je.resolveUrl=n$;var i$=/^[a-z_][-a-z0-9._]*$/i;function o$(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=Mn(e[r]||t),s={"":i},a=Qm(n,i,!1),c={},u=new Set;return JO(e,{allKeys:!0},(p,d,m,g)=>{if(g===void 0)return;let y=a+d,S=s[g];typeof p[r]=="string"&&(S=v.call(this,p[r])),b.call(this,p.$anchor),b.call(this,p.$dynamicAnchor),s[d]=S;function v(E){let P=this.opts.uriResolver.resolve;if(E=Mn(S?P(S,E):E),u.has(E))throw f(E);u.add(E);let _=this.refs[E];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?l(p,_.schema,E):E!==Mn(y)&&(E[0]==="#"?(l(p,c[E],E),c[E]=p):this.refs[E]=y),E}o(v,"addRef");function b(E){if(typeof E=="string"){if(!i$.test(E))throw new Error(`invalid anchor "${E}"`);v.call(this,`#${E}`)}}o(b,"addAnchor")}),c;function l(p,d,m){if(d!==void 0&&!YO(p,d))throw f(m)}o(l,"checkAmbiguosRef");function f(p){return new Error(`reference "${p}" resolves to more than one schema`)}o(f,"ambiguos")}o(o$,"getSchemaRefs");je.getSchemaRefs=o$});var Wi=h(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.getData=ar.KeywordCxt=ar.validateFunctionCode=void 0;var th=Tm(),Ym=Zi(),Vu=Ru(),As=Zi(),s$=Mm(),Qi=Vm(),Hu=Gm(),$=C(),T=Ke(),a$=zi(),Ht=j(),Ki=Ui();function c$(e){if(ih(e)&&(oh(e),nh(e))){p$(e);return}rh(e,()=>(0,th.topBoolOrEmptySchema)(e))}o(c$,"validateFunctionCode");ar.validateFunctionCode=c$;function rh({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,$._)`${T.default.data}, ${T.default.valCxt}`,n.$async,()=>{e.code((0,$._)`"use strict"; ${Jm(r,i)}`),l$(e,i),e.code(s)}):e.func(t,(0,$._)`${T.default.data}, ${u$(i)}`,n.$async,()=>e.code(Jm(r,i)).code(s))}o(rh,"validateFunction");function u$(e){return(0,$._)`{${T.default.instancePath}="", ${T.default.parentData}, ${T.default.parentDataProperty}, ${T.default.rootData}=${T.default.data}${e.dynamicRef?(0,$._)`, ${T.default.dynamicAnchors}={}`:$.nil}}={}`}o(u$,"destructureValCxt");function l$(e,t){e.if(T.default.valCxt,()=>{e.var(T.default.instancePath,(0,$._)`${T.default.valCxt}.${T.default.instancePath}`),e.var(T.default.parentData,(0,$._)`${T.default.valCxt}.${T.default.parentData}`),e.var(T.default.parentDataProperty,(0,$._)`${T.default.valCxt}.${T.default.parentDataProperty}`),e.var(T.default.rootData,(0,$._)`${T.default.valCxt}.${T.default.rootData}`),t.dynamicRef&&e.var(T.default.dynamicAnchors,(0,$._)`${T.default.valCxt}.${T.default.dynamicAnchors}`)},()=>{e.var(T.default.instancePath,(0,$._)`""`),e.var(T.default.parentData,(0,$._)`undefined`),e.var(T.default.parentDataProperty,(0,$._)`undefined`),e.var(T.default.rootData,T.default.data),t.dynamicRef&&e.var(T.default.dynamicAnchors,(0,$._)`{}`)})}o(l$,"destructureValCxtES5");function p$(e){let{schema:t,opts:r,gen:n}=e;rh(e,()=>{r.$comment&&t.$comment&&ah(e),g$(e),n.let(T.default.vErrors,null),n.let(T.default.errors,0),r.unevaluated&&f$(e),sh(e),v$(e)})}o(p$,"topSchemaObjCode");function f$(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,$._)`${r}.evaluated`),t.if((0,$._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,$._)`${e.evaluated}.props`,(0,$._)`undefined`)),t.if((0,$._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,$._)`${e.evaluated}.items`,(0,$._)`undefined`))}o(f$,"resetEvaluated");function Jm(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,$._)`/*# sourceURL=${r} */`:$.nil}o(Jm,"funcSourceUrl");function d$(e,t){if(ih(e)&&(oh(e),nh(e))){m$(e,t);return}(0,th.boolOrEmptySchema)(e,t)}o(d$,"subschemaCode");function nh({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}o(nh,"schemaCxtHasRules");function ih(e){return typeof e.schema!="boolean"}o(ih,"isSchemaObj");function m$(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&ah(e),y$(e),S$(e);let s=n.const("_errs",T.default.errors);sh(e,s),n.var(t,(0,$._)`${s} === ${T.default.errors}`)}o(m$,"subSchemaObjCode");function oh(e){(0,Ht.checkUnknownRules)(e),h$(e)}o(oh,"checkKeywords");function sh(e,t){if(e.opts.jtd)return Xm(e,[],!1,t);let r=(0,Ym.getSchemaTypes)(e.schema),n=(0,Ym.coerceAndCheckDataType)(e,r);Xm(e,r,!n,t)}o(sh,"typeAndKeywords");function h$(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Ht.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(h$,"checkRefsAndKeywords");function g$(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Ht.checkStrictMode)(e,"default is ignored in the schema root")}o(g$,"checkNoDefault");function y$(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,a$.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(y$,"updateContext");function S$(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(S$,"checkAsyncSchema");function ah({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,$._)`${T.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,$.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,$._)`${T.default.self}.opts.$comment(${s}, ${a}, ${c}.schema)`)}}o(ah,"commentKeyword");function v$(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,$._)`${T.default.errors} === 0`,()=>t.return(T.default.data),()=>t.throw((0,$._)`new ${i}(${T.default.vErrors})`)):(t.assign((0,$._)`${n}.errors`,T.default.vErrors),s.unevaluated&&b$(e),t.return((0,$._)`${T.default.errors} === 0`))}o(v$,"returnResults");function b$({gen:e,evaluated:t,props:r,items:n}){r instanceof $.Name&&e.assign((0,$._)`${t}.props`,r),n instanceof $.Name&&e.assign((0,$._)`${t}.items`,n)}o(b$,"assignEvaluated");function Xm(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:c,opts:u,self:l}=e,{RULES:f}=l;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,Ht.schemaHasRulesButRef)(s,f))){i.block(()=>uh(e,"$ref",f.all.$ref.definition));return}u.jtd||_$(e,t),i.block(()=>{for(let d of f.rules)p(d);p(f.post)});function p(d){(0,Vu.shouldUseGroup)(s,d)&&(d.type?(i.if((0,As.checkDataType)(d.type,a,u.strictNumbers)),eh(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,As.reportTypeError)(e)),i.endIf()):eh(e,d),c||i.if((0,$._)`${T.default.errors} === ${n||0}`))}o(p,"groupKeywords")}o(Xm,"schemaKeywords");function eh(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,s$.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,Vu.shouldUseRule)(n,s)&&uh(e,s.keyword,s.definition,t.type)})}o(eh,"iterateKeywords");function _$(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(E$(e,t),e.opts.allowUnionTypes||P$(e,t),O$(e,e.dataTypes))}o(_$,"checkStrictTypes");function E$(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{ch(e.dataTypes,r)||Bu(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),x$(e,t)}}o(E$,"checkContextTypes");function P$(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Bu(e,"use allowUnionTypes to allow union type keyword")}o(P$,"checkMultipleTypes");function O$(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Vu.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>$$(t,a))&&Bu(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(O$,"checkKeywordTypes");function $$(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o($$,"hasApplicableType");function ch(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(ch,"includesType");function x$(e,t){let r=[];for(let n of e.dataTypes)ch(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(x$,"narrowSchemaTypes");function Bu(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Ht.checkStrictMode)(e,t,e.opts.strictTypes)}o(Bu,"strictTypesError");var Gu=class Gu{constructor(t,r,n){if((0,Qi.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ht.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",lh(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Qi.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",T.default.errors))}result(t,r,n){this.failResult((0,$.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,$.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,$._)`${r} !== undefined && (${(0,$.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Ki.reportExtraError:Ki.reportError)(this,this.def.error,r)}$dataError(){(0,Ki.reportError)(this,this.def.$dataError||Ki.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ki.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=$.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=$.nil,r=$.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,$.or)((0,$._)`${i} === undefined`,r)),t!==$.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==$.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,$.or)(a(),c());function a(){if(n.length){if(!(r instanceof $.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,$._)`${(0,As.checkDataTypes)(u,r,s.opts.strictNumbers,As.DataType.Wrong)}`}return $.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,$._)`!${u}(${r})`}return $.nil}}subschema(t,r){let n=(0,Hu.getSubschema)(this.it,t);(0,Hu.extendSubschemaData)(n,this.it,t),(0,Hu.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return d$(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Ht.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Ht.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,$.Name)),!0}};o(Gu,"KeywordCxt");var ws=Gu;ar.KeywordCxt=ws;function uh(e,t,r,n){let i=new ws(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Qi.funcKeywordCode)(i,r):"macro"in r?(0,Qi.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Qi.funcKeywordCode)(i,r)}o(uh,"keywordCode");var A$=/^\/(?:[^~]|~0|~1)*$/,w$=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function lh(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return T.default.rootData;if(e[0]==="/"){if(!A$.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=T.default.rootData}else{let l=w$.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let f=+l[1];if(i=l[2],i==="#"){if(f>=t)throw new Error(u("property/index",f));return n[t-f]}if(f>t)throw new Error(u("data",f));if(s=r[t-f],!i)return s}let a=s,c=i.split("/");for(let l of c)l&&(s=(0,$._)`${s}${(0,$.getProperty)((0,Ht.unescapeJsonPointer)(l))}`,a=(0,$._)`${a} && ${s}`);return a;function u(l,f){return`Cannot access ${l} ${f} levels up, current level is ${t}`}}o(lh,"getData");ar.getData=lh});var Is=h(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});var zu=class zu extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(zu,"ValidationError");var Uu=zu;Zu.default=Uu});var Yi=h(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var Ku=zi(),Yu=class Yu extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Ku.resolveUrl)(t,r,n),this.missingSchema=(0,Ku.normalizeId)((0,Ku.getFullPath)(t,this.missingRef))}};o(Yu,"MissingRefError");var Qu=Yu;Wu.default=Qu});var Ji=h(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.resolveSchema=We.getCompilingSchema=We.resolveRef=We.compileSchema=We.SchemaEnv=void 0;var at=C(),I$=Is(),Ur=Ke(),ct=zi(),ph=j(),T$=Wi(),el=class el{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,ct.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};o(el,"SchemaEnv");var Dn=el;We.SchemaEnv=Dn;function Xu(e){let t=fh.call(this,e);if(t)return t;let r=(0,ct.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new at.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:I$.default,code:(0,at._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:Ur.default.data,parentData:Ur.default.parentData,parentDataProperty:Ur.default.parentDataProperty,dataNames:[Ur.default.data],dataPathArr:[at.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,at.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:at.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,at._)`""`,opts:this.opts,self:this},f;try{this._compilations.add(e),(0,T$.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let p=a.toString();f=`${a.scopeRefs(Ur.default.scope)}return ${p}`,this.opts.code.process&&(f=this.opts.code.process(f,e));let m=new Function(`${Ur.default.self}`,`${Ur.default.scope}`,f)(this,this.scope.get());if(this.scope.value(u,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:u,validateCode:p,scopeValues:a._values}),this.opts.unevaluated){let{props:g,items:y}=l;m.evaluated={props:g instanceof at.Name?void 0:g,items:y instanceof at.Name?void 0:y,dynamicProps:g instanceof at.Name,dynamicItems:y instanceof at.Name},m.source&&(m.source.evaluated=(0,at.stringify)(m.evaluated))}return e.validate=m,e}catch(p){throw delete e.validate,delete e.validateName,f&&this.logger.error("Error compiling schema, function code:",f),p}finally{this._compilations.delete(e)}}o(Xu,"compileSchema");We.compileSchema=Xu;function C$(e,t,r){var n;r=(0,ct.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=k$.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(s=new Dn({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=R$.call(this,s)}o(C$,"resolveRef");We.resolveRef=C$;function R$(e){return(0,ct.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Xu.call(this,e)}o(R$,"inlineOrCompile");function fh(e){for(let t of this._compilations)if(N$(t,e))return t}o(fh,"getCompilingSchema");We.getCompilingSchema=fh;function N$(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(N$,"sameSchemaEnv");function k$(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Ts.call(this,e,t)}o(k$,"resolve");function Ts(e,t){let r=this.opts.uriResolver.parse(t),n=(0,ct._getFullPath)(this.opts.uriResolver,r),i=(0,ct.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Ju.call(this,r,e);let s=(0,ct.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=Ts.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Ju.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Xu.call(this,a),s===(0,ct.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,ct.resolveUrl)(this.opts.uriResolver,i,l)),new Dn({schema:c,schemaId:u,root:e,baseId:i})}return Ju.call(this,r,a)}}o(Ts,"resolveSchema");We.resolveSchema=Ts;var j$=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Ju(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let c of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let u=r[(0,ph.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!j$.has(c)&&l&&(t=(0,ct.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,ph.schemaHasRulesButRef)(r,this.RULES)){let c=(0,ct.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Ts.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new Dn({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(Ju,"getJsonPointer")});var dh=h((PD,q$)=>{q$.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var hh=h((OD,mh)=>{"use strict";var M$={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};mh.exports={HEX:M$}});var Ph=h(($D,Eh)=>{"use strict";var{HEX:D$}=hh();function vh(e){if(_h(e,".")<3)return{host:e,isIPV4:!1};let t=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[r]=t;return r?{host:F$(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(vh,"normalizeIPv4");function tl(e,t=!1){let r="",n=!0;for(let i of e){if(D$[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(tl,"stringArrayToHexStripped");function L$(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,c=!1;function u(){if(i.length){if(s===!1){let l=tl(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}o(u,"consume");for(let l=0;l<e.length;l++){let f=e[l];if(!(f==="["||f==="]"))if(f===":"){if(a===!0&&(c=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(f==="%"){if(!u())break;s=!0}else{i.push(f);continue}}return i.length&&(s?r.zone=i.join(""):c?n.push(i.join("")):n.push(tl(i))),r.address=n.join(""),r}o(L$,"getIPV6");function bh(e,t={}){if(_h(e,":")<2)return{host:e,isIPV6:!1};let r=L$(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}o(bh,"normalizeIPv6");function F$(e,t){let r="",n=!0,i=e.length;for(let s=0;s<i;s++){let a=e[s];a==="0"&&n?(s+1<=i&&e[s+1]===t||s+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}o(F$,"stripLeadingZeros");function _h(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(_h,"findToken");var gh=/^\.\.?\//u,yh=/^\/\.(?:\/|$)/u,Sh=/^\/\.\.(?:\/|$)/u,H$=/^\/?(?:.|\n)*?(?=\/|$)/u;function V$(e){let t=[];for(;e.length;)if(e.match(gh))e=e.replace(gh,"");else if(e.match(yh))e=e.replace(yh,"/");else if(e.match(Sh))e=e.replace(Sh,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(H$);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}o(V$,"removeDotSegments");function B$(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}o(B$,"normalizeComponentEncoding");function G$(e,t){let r=[];if(e.userinfo!==void 0&&(r.push(e.userinfo),r.push("@")),e.host!==void 0){let n=unescape(e.host),i=vh(n);if(i.isIPV4)n=i.host;else{let s=bh(i.host,{isIPV4:!1});s.isIPV6===!0?n=`[${s.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}o(G$,"recomposeAuthority");Eh.exports={recomposeAuthority:G$,normalizeComponentEncoding:B$,removeDotSegments:V$,normalizeIPv4:vh,normalizeIPv6:bh,stringArrayToHexStripped:tl}});var Ih=h((AD,wh)=>{"use strict";var U$=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,Z$=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Oh(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(Oh,"isSecure");function $h(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o($h,"httpParse");function xh(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}o(xh,"httpSerialize");function z$(e){return e.secure=Oh(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(z$,"wsParse");function K$(e){if((e.port===(Oh(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(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}o(K$,"wsSerialize");function Q$(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(Z$);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,s=rl[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(Q$,"urnParse");function W$(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=rl[i];s&&(e=s.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}o(W$,"urnSerialize");function Y$(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!U$.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(Y$,"urnuuidParse");function J$(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(J$,"urnuuidSerialize");var Ah={scheme:"http",domainHost:!0,parse:$h,serialize:xh},X$={scheme:"https",domainHost:Ah.domainHost,parse:$h,serialize:xh},Cs={scheme:"ws",domainHost:!0,parse:z$,serialize:K$},ex={scheme:"wss",domainHost:Cs.domainHost,parse:Cs.parse,serialize:Cs.serialize},tx={scheme:"urn",parse:Q$,serialize:W$,skipNormalize:!0},rx={scheme:"urn:uuid",parse:Y$,serialize:J$,skipNormalize:!0},rl={http:Ah,https:X$,ws:Cs,wss:ex,urn:tx,"urn:uuid":rx};wh.exports=rl});var Ch=h((ID,Ns)=>{"use strict";var{normalizeIPv6:nx,normalizeIPv4:ix,removeDotSegments:Xi,recomposeAuthority:ox,normalizeComponentEncoding:Rs}=Ph(),nl=Ih();function sx(e,t){return typeof e=="string"?e=_t(Vt(e,t),t):typeof e=="object"&&(e=Vt(_t(e,t),t)),e}o(sx,"normalize");function ax(e,t,r){let n=Object.assign({scheme:"null"},r),i=Th(Vt(e,n),Vt(t,n),n,!0);return _t(i,{...n,skipEscape:!0})}o(ax,"resolve");function Th(e,t,r,n){let i={};return n||(e=Vt(_t(e,r),r),t=Vt(_t(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Xi(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Xi(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=Xi(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=Xi(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}o(Th,"resolveComponents");function cx(e,t,r){return typeof e=="string"?(e=unescape(e),e=_t(Rs(Vt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=_t(Rs(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=_t(Rs(Vt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=_t(Rs(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(cx,"equal");function _t(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:""},n=Object.assign({},t),i=[],s=nl[(n.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=ox(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let c=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(c=Xi(c)),a===void 0&&(c=c.replace(/^\/\//u,"/%2F")),i.push(c)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}o(_t,"serialize");var ux=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function lx(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||ux[t])return!0;return!1}o(lx,"nonSimpleDomain");var px=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Vt(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,s=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(px);if(a){if(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5]),n.host){let u=ix(n.host);if(u.isIPV4===!1){let l=nx(u.host,{isIPV4:!1});n.host=l.host.toLowerCase(),s=l.isIPV6}else n.host=u.host,s=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=nl[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&lx(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!c||c&&!c.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}o(Vt,"parse");var il={SCHEMES:nl,normalize:sx,resolve:ax,resolveComponents:Th,equal:cx,serialize:_t,parse:Vt};Ns.exports=il;Ns.exports.default=il;Ns.exports.fastUri=il});var Nh=h(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var Rh=Ch();Rh.code='require("ajv/dist/runtime/uri").default';ol.default=Rh});var Fn=h(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.CodeGen=fe.Name=fe.nil=fe.stringify=fe.str=fe._=fe.KeywordCxt=void 0;var fx=Wi();Object.defineProperty(fe,"KeywordCxt",{enumerable:!0,get:o(function(){return fx.KeywordCxt},"get")});var Ln=C();Object.defineProperty(fe,"_",{enumerable:!0,get:o(function(){return Ln._},"get")});Object.defineProperty(fe,"str",{enumerable:!0,get:o(function(){return Ln.str},"get")});Object.defineProperty(fe,"stringify",{enumerable:!0,get:o(function(){return Ln.stringify},"get")});Object.defineProperty(fe,"nil",{enumerable:!0,get:o(function(){return Ln.nil},"get")});Object.defineProperty(fe,"Name",{enumerable:!0,get:o(function(){return Ln.Name},"get")});Object.defineProperty(fe,"CodeGen",{enumerable:!0,get:o(function(){return Ln.CodeGen},"get")});var dx=Is(),Dh=Yi(),mx=Cu(),eo=Ji(),hx=C(),to=zi(),ks=Zi(),al=j(),kh=dh(),gx=Nh(),Lh=o((e,t)=>new RegExp(e,t),"defaultRegExp");Lh.code="new RegExp";var yx=["removeAdditional","useDefaults","coerceTypes"],Sx=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),vx={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."},bx={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},jh=200;function _x(e){var t,r,n,i,s,a,c,u,l,f,p,d,m,g,y,S,v,b,E,P,_,A,I,J,z;let q=e.strict,Z=(t=e.code)===null||t===void 0?void 0:t.optimize,w=Z===!0||Z===void 0?1:Z||0,Mt=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Lh,Dt=(i=e.uriResolver)!==null&&i!==void 0?i:gx.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:q)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:q)!==null&&u!==void 0?u:!0,strictTypes:(f=(l=e.strictTypes)!==null&&l!==void 0?l:q)!==null&&f!==void 0?f:"log",strictTuples:(d=(p=e.strictTuples)!==null&&p!==void 0?p:q)!==null&&d!==void 0?d:"log",strictRequired:(g=(m=e.strictRequired)!==null&&m!==void 0?m:q)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:w,regExp:Mt}:{optimize:w,regExp:Mt},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:jh,loopEnum:(S=e.loopEnum)!==null&&S!==void 0?S:jh,meta:(v=e.meta)!==null&&v!==void 0?v:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(E=e.inlineRefs)!==null&&E!==void 0?E:!0,schemaId:(P=e.schemaId)!==null&&P!==void 0?P:"$id",addUsedSchema:(_=e.addUsedSchema)!==null&&_!==void 0?_:!0,validateSchema:(A=e.validateSchema)!==null&&A!==void 0?A:!0,validateFormats:(I=e.validateFormats)!==null&&I!==void 0?I:!0,unicodeRegExp:(J=e.unicodeRegExp)!==null&&J!==void 0?J:!0,int32range:(z=e.int32range)!==null&&z!==void 0?z:!0,uriResolver:Dt}}o(_x,"requiredOptions");var cl=class cl{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,..._x(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new hx.ValueScope({scope:{},prefixes:Sx,es5:r,lines:n}),this.logger=Ax(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,mx.getRules)(),qh.call(this,vx,t,"NOT SUPPORTED"),qh.call(this,bx,t,"DEPRECATED","warn"),this._metaOpts=$x.call(this),t.formats&&Px.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&Ox.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),Ex.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=kh;n==="id"&&(i={...kh},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(f,p){await s.call(this,f.$schema);let d=this._addSchema(f,p);return d.validate||a.call(this,d)}async function s(f){f&&!this.getSchema(f)&&await i.call(this,{$ref:f},!0)}async function a(f){try{return this._compileSchemaEnv(f)}catch(p){if(!(p instanceof Dh.default))throw p;return c.call(this,p),await u.call(this,p.missingSchema),a.call(this,f)}}function c({missingSchema:f,missingRef:p}){if(this.refs[f])throw new Error(`AnySchema ${f} is loaded but ${p} cannot be resolved`)}async function u(f){let p=await l.call(this,f);this.refs[f]||await s.call(this,p.$schema),this.refs[f]||this.addSchema(p,f,r)}async function l(f){let p=this._loading[f];if(p)return p;try{return await(this._loading[f]=n(f))}finally{delete this._loading[f]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let s;if(typeof t=="object"){let{schemaId:a}=this.opts;if(s=t[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,to.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(t){let r;for(;typeof(r=Mh.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new eo.SchemaEnv({schema:{},schemaId:n});if(r=eo.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Mh.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,to.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Ix.call(this,n,r),!r)return(0,al.eachItem)(n,s=>sl.call(this,s)),this;Cx.call(this,r);let i={...r,type:(0,ks.getJSONTypes)(r.type),schemaType:(0,ks.getJSONTypes)(r.schemaType)};return(0,al.eachItem)(n,i.type.length===0?s=>sl.call(this,s,i):s=>i.type.forEach(a=>sl.call(this,s,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let s=i.split("/").slice(1),a=t;for(let c of s)a=a[c];for(let c in n){let u=n[c];if(typeof u!="object")continue;let{$data:l}=u.definition,f=a[c];l&&f&&(a[c]=Fh(f))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let a,{schemaId:c}=this.opts;if(typeof t=="object")a=t[c];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(t);if(u!==void 0)return u;n=(0,to.normalizeId)(a||n);let l=to.getSchemaRefs.call(this,t,n);return u=new eo.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):eo.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{eo.compileSchema.call(this,t)}finally{this.opts=r}}};o(cl,"Ajv");var ro=cl;ro.ValidationError=dx.default;ro.MissingRefError=Dh.default;fe.default=ro;function qh(e,t,r,n="error"){for(let i in e){let s=i;s in t&&this.logger[n](`${r}: option ${i}. ${e[s]}`)}}o(qh,"checkOptions");function Mh(e){return e=(0,to.normalizeId)(e),this.schemas[e]||this.refs[e]}o(Mh,"getSchEnv");function Ex(){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)}o(Ex,"addInitialSchemas");function Px(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(Px,"addInitialFormats");function Ox(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}o(Ox,"addInitialKeywords");function $x(){let e={...this.opts};for(let t of yx)delete e[t];return e}o($x,"getMetaSchemaOptions");var xx={log(){},warn(){},error(){}};function Ax(e){if(e===!1)return xx;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}o(Ax,"getLogger");var wx=/^[a-z_$][a-z0-9_$:-]*$/i;function Ix(e,t){let{RULES:r}=this;if((0,al.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!wx.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}o(Ix,"checkKeyword");function sl(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,a=i?s.post:s.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,ks.getJSONTypes)(t.type),schemaType:(0,ks.getJSONTypes)(t.schemaType)}};t.before?Tx.call(this,a,c,t.before):a.rules.push(c),s.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}o(sl,"addRule");function Tx(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}o(Tx,"addBeforeRule");function Cx(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Fh(t)),e.validateSchema=this.compile(t,!0))}o(Cx,"keywordMetaschema");var Rx={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Fh(e){return{anyOf:[e,Rx]}}o(Fh,"schemaOrData")});var no=h(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.callRef=Zr.getValidate=void 0;var Nx=Yi(),Hh=Qe(),qe=C(),Hn=Ke(),Vh=Ji(),js=j(),kx={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:c,self:u}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return p();let f=Vh.resolveRef.call(u,l,i,r);if(f===void 0)throw new Nx.default(n.opts.uriResolver,i,r);if(f instanceof Vh.SchemaEnv)return d(f);return m(f);function p(){if(s===l)return qs(e,a,s,s.$async);let g=t.scopeValue("root",{ref:l});return qs(e,(0,qe._)`${g}.validate`,l,l.$async)}function d(g){let y=Bh(e,g);qs(e,y,g,g.$async)}function m(g){let y=t.scopeValue("schema",c.code.source===!0?{ref:g,code:(0,qe.stringify)(g)}:{ref:g}),S=t.name("valid"),v=e.subschema({schema:g,dataTypes:[],schemaPath:qe.nil,topSchemaRef:y,errSchemaPath:r},S);e.mergeEvaluated(v),e.ok(S)}}};function Bh(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,qe._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(Bh,"getValidate");Zr.getValidate=Bh;function qs(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?Hn.default.this:qe.nil;n?f():p();function f(){if(!c.$async)throw new Error("async schema referenced by sync schema");let g=i.let("valid");i.try(()=>{i.code((0,qe._)`await ${(0,Hh.callValidateCode)(e,t,l)}`),m(t),a||i.assign(g,!0)},y=>{i.if((0,qe._)`!(${y} instanceof ${s.ValidationError})`,()=>i.throw(y)),d(y),a||i.assign(g,!1)}),e.ok(g)}o(f,"callAsyncRef");function p(){e.result((0,Hh.callValidateCode)(e,t,l),()=>m(t),()=>d(t))}o(p,"callSyncRef");function d(g){let y=(0,qe._)`${g}.errors`;i.assign(Hn.default.vErrors,(0,qe._)`${Hn.default.vErrors} === null ? ${y} : ${Hn.default.vErrors}.concat(${y})`),i.assign(Hn.default.errors,(0,qe._)`${Hn.default.vErrors}.length`)}o(d,"addErrorsFrom");function m(g){var y;if(!s.opts.unevaluated)return;let S=(y=r==null?void 0:r.validate)===null||y===void 0?void 0:y.evaluated;if(s.props!==!0)if(S&&!S.dynamicProps)S.props!==void 0&&(s.props=js.mergeEvaluated.props(i,S.props,s.props));else{let v=i.var("props",(0,qe._)`${g}.evaluated.props`);s.props=js.mergeEvaluated.props(i,v,s.props,qe.Name)}if(s.items!==!0)if(S&&!S.dynamicItems)S.items!==void 0&&(s.items=js.mergeEvaluated.items(i,S.items,s.items));else{let v=i.var("items",(0,qe._)`${g}.evaluated.items`);s.items=js.mergeEvaluated.items(i,v,s.items,qe.Name)}}o(m,"addEvaluatedFrom")}o(qs,"callRef");Zr.callRef=qs;Zr.default=kx});var Gh=h(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var jx=no(),qx=["$schema","id","$defs",{keyword:"$comment"},"definitions",jx.default];ul.default=qx});var Uh=h(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var ll=Fn(),Mx=C(),cr=Mx.operators,pl={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:cr.LTE,fail:cr.GT},{okStr:"<",ok:cr.LT,fail:cr.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:cr.GTE,fail:cr.LT},{okStr:">",ok:cr.GT,fail:cr.LTE}]}},Dx={message:o(e=>ll.str`must be ${fl(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>ll._`{comparison: ${fl(e).okStr}, limit: ${e.schemaCode}}`,"params")},Lx={keyword:Object.keys(pl),type:"number",schemaType:"number",$data:!0,error:Dx,code(e){let{data:t,schemaCode:r}=e;e.fail$data(ll._`${t} ${fl(e).fail} ${r} || isNaN(${t})`)}};function fl(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[pl[r].exclusive]?1:0;return pl[r].ops[n]}o(fl,"kwdOp");dl.default=Lx});var zh=h(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var Zh={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},Fx={keyword:Object.keys(Zh),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Zh[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};ml.default=Fx});var gl=h(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var io=C(),Hx={message:o(({schemaCode:e})=>(0,io.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,io._)`{multipleOf: ${e}}`,"params")},Vx={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Hx,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,io._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,io._)`${a} !== parseInt(${a})`;e.fail$data((0,io._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};hl.default=Vx});var Qh=h(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});function Kh(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}o(Kh,"ucs2length");yl.default=Kh;Kh.code='require("ajv/dist/runtime/ucs2length").default'});var vl=h(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var zr=C(),Bx=j(),Gx=Qh(),Ux={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,zr.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,zr._)`{limit: ${e}}`,"params")},Zx={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Ux,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?zr.operators.GT:zr.operators.LT,a=i.opts.unicode===!1?(0,zr._)`${r}.length`:(0,zr._)`${(0,Bx.useFunc)(e.gen,Gx.default)}(${r})`;e.fail$data((0,zr._)`${a} ${s} ${n}`)}};Sl.default=Zx});var _l=h(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var zx=Qe(),Ms=C(),Kx={message:o(({schemaCode:e})=>(0,Ms.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Ms._)`{pattern: ${e}}`,"params")},Qx={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Kx,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,Ms._)`(new RegExp(${i}, ${a}))`:(0,zx.usePattern)(e,n);e.fail$data((0,Ms._)`!${c}.test(${t})`)}};bl.default=Qx});var Pl=h(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var oo=C(),Wx={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,oo.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,oo._)`{limit: ${e}}`,"params")},Yx={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Wx,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?oo.operators.GT:oo.operators.LT;e.fail$data((0,oo._)`Object.keys(${r}).length ${i} ${n}`)}};El.default=Yx});var $l=h(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var so=Qe(),ao=C(),Jx=j(),Xx={message:o(({params:{missingProperty:e}})=>(0,ao.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,ao._)`{missingProperty: ${e}}`,"params")},e1={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Xx,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:c}=a;if(!s&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?l():f(),c.strictRequired){let m=e.parentSchema.properties,{definedProperties:g}=e.it;for(let y of r)if((m==null?void 0:m[y])===void 0&&!g.has(y)){let S=a.schemaEnv.baseId+a.errSchemaPath,v=`required property "${y}" is not defined at "${S}" (strictRequired)`;(0,Jx.checkStrictMode)(a,v,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(ao.nil,p);else for(let m of r)(0,so.checkReportMissingProp)(e,m)}o(l,"allErrorsMode");function f(){let m=t.let("missing");if(u||s){let g=t.let("valid",!0);e.block$data(g,()=>d(m,g)),e.ok(g)}else t.if((0,so.checkMissingProp)(e,r,m)),(0,so.reportMissingProp)(e,m),t.else()}o(f,"exitOnErrorMode");function p(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,so.noPropertyInData)(t,i,m,c.ownProperties),()=>e.error())})}o(p,"loopAllRequired");function d(m,g){e.setParams({missingProperty:m}),t.forOf(m,n,()=>{t.assign(g,(0,so.propertyInData)(t,i,m,c.ownProperties)),t.if((0,ao.not)(g),()=>{e.error(),t.break()})},ao.nil)}o(d,"loopUntilMissing")}};Ol.default=e1});var Al=h(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var co=C(),t1={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,co.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,co._)`{limit: ${e}}`,"params")},r1={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:t1,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?co.operators.GT:co.operators.LT;e.fail$data((0,co._)`${r}.length ${i} ${n}`)}};xl.default=r1});var Ds=h(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var Wh=Lu();Wh.code='require("ajv/dist/runtime/equal").default';wl.default=Wh});var Cl=h(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var Il=Zi(),de=C(),n1=j(),i1=Ds(),o1={message:o(({params:{i:e,j:t}})=>(0,de.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,de._)`{i: ${e}, j: ${t}}`,"params")},s1={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:o1,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),l=s.items?(0,Il.getSchemaTypes)(s.items):[];e.block$data(u,f,(0,de._)`${a} === false`),e.ok(u);function f(){let g=t.let("i",(0,de._)`${r}.length`),y=t.let("j");e.setParams({i:g,j:y}),t.assign(u,!0),t.if((0,de._)`${g} > 1`,()=>(p()?d:m)(g,y))}o(f,"validateUniqueItems");function p(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}o(p,"canOptimize");function d(g,y){let S=t.name("item"),v=(0,Il.checkDataTypes)(l,S,c.opts.strictNumbers,Il.DataType.Wrong),b=t.const("indices",(0,de._)`{}`);t.for((0,de._)`;${g}--;`,()=>{t.let(S,(0,de._)`${r}[${g}]`),t.if(v,(0,de._)`continue`),l.length>1&&t.if((0,de._)`typeof ${S} == "string"`,(0,de._)`${S} += "_"`),t.if((0,de._)`typeof ${b}[${S}] == "number"`,()=>{t.assign(y,(0,de._)`${b}[${S}]`),e.error(),t.assign(u,!1).break()}).code((0,de._)`${b}[${S}] = ${g}`)})}o(d,"loopN");function m(g,y){let S=(0,n1.useFunc)(t,i1.default),v=t.name("outer");t.label(v).for((0,de._)`;${g}--;`,()=>t.for((0,de._)`${y} = ${g}; ${y}--;`,()=>t.if((0,de._)`${S}(${r}[${g}], ${r}[${y}])`,()=>{e.error(),t.assign(u,!1).break(v)})))}o(m,"loopN2")}};Tl.default=s1});var kl=h(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var Rl=C(),a1=j(),c1=Ds(),u1={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,Rl._)`{allowedValue: ${e}}`,"params")},l1={keyword:"const",$data:!0,error:u1,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Rl._)`!${(0,a1.useFunc)(t,c1.default)}(${r}, ${i})`):e.fail((0,Rl._)`${s} !== ${r}`)}};Nl.default=l1});var ql=h(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var uo=C(),p1=j(),f1=Ds(),d1={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,uo._)`{allowedValues: ${e}}`,"params")},m1={keyword:"enum",schemaType:"array",$data:!0,error:d1,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,u,l=o(()=>u??(u=(0,p1.useFunc)(t,f1.default)),"getEql"),f;if(c||n)f=t.let("valid"),e.block$data(f,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let m=t.const("vSchema",s);f=(0,uo.or)(...i.map((g,y)=>d(m,y)))}e.pass(f);function p(){t.assign(f,!1),t.forOf("v",s,m=>t.if((0,uo._)`${l()}(${r}, ${m})`,()=>t.assign(f,!0).break()))}o(p,"loopEnum");function d(m,g){let y=i[g];return typeof y=="object"&&y!==null?(0,uo._)`${l()}(${r}, ${m}[${g}])`:(0,uo._)`${r} === ${y}`}o(d,"equalCode")}};jl.default=m1});var Yh=h(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var h1=Uh(),g1=zh(),y1=gl(),S1=vl(),v1=_l(),b1=Pl(),_1=$l(),E1=Al(),P1=Cl(),O1=kl(),$1=ql(),x1=[h1.default,g1.default,y1.default,S1.default,v1.default,b1.default,_1.default,E1.default,P1.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},O1.default,$1.default];Ml.default=x1});var Ll=h(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.validateAdditionalItems=void 0;var Kr=C(),Dl=j(),A1={message:o(({params:{len:e}})=>(0,Kr.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Kr._)`{limit: ${e}}`,"params")},w1={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:A1,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Dl.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Jh(e,n)}};function Jh(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let c=r.const("len",(0,Kr._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Kr._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,Dl.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,Kr._)`${c} <= ${t.length}`);r.if((0,Kr.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,f=>{e.subschema({keyword:s,dataProp:f,dataPropType:Dl.Type.Num},l),a.allErrors||r.if((0,Kr.not)(l),()=>r.break())})}o(u,"validateItems")}o(Jh,"validateAdditionalItems");lo.validateAdditionalItems=Jh;lo.default=w1});var Fl=h(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.validateTuple=void 0;var Xh=C(),Ls=j(),I1=Qe(),T1={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return eg(e,"additionalItems",t);r.items=!0,!(0,Ls.alwaysValidSchema)(r,t)&&e.ok((0,I1.validateArray)(e))}};function eg(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:c}=e;f(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=Ls.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,Xh._)`${s}.length`);r.forEach((p,d)=>{(0,Ls.alwaysValidSchema)(c,p)||(n.if((0,Xh._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function f(p){let{opts:d,errSchemaPath:m}=c,g=r.length,y=g===p.minItems&&(g===p.maxItems||p[t]===!1);if(d.strictTuples&&!y){let S=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Ls.checkStrictMode)(c,S,d.strictTuples)}}o(f,"checkStrictTuple")}o(eg,"validateTuple");po.validateTuple=eg;po.default=T1});var tg=h(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var C1=Fl(),R1={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,C1.validateTuple)(e,"items"),"code")};Hl.default=R1});var ng=h(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var rg=C(),N1=j(),k1=Qe(),j1=Ll(),q1={message:o(({params:{len:e}})=>(0,rg.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,rg._)`{limit: ${e}}`,"params")},M1={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:q1,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,N1.alwaysValidSchema)(n,t)&&(i?(0,j1.validateAdditionalItems)(e,i):e.ok((0,k1.validateArray)(e)))}};Vl.default=M1});var ig=h(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});var Ye=C(),Fs=j(),D1={message:o(({params:{min:e,max:t}})=>t===void 0?(0,Ye.str)`must contain at least ${e} valid item(s)`:(0,Ye.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:o(({params:{min:e,max:t}})=>t===void 0?(0,Ye._)`{minContains: ${e}}`:(0,Ye._)`{minContains: ${e}, maxContains: ${t}}`,"params")},L1={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:D1,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,c,{minContains:u,maxContains:l}=n;s.opts.next?(a=u===void 0?1:u,c=l):a=1;let f=t.const("len",(0,Ye._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,Fs.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,Fs.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Fs.alwaysValidSchema)(s,r)){let y=(0,Ye._)`${f} >= ${a}`;c!==void 0&&(y=(0,Ye._)`${y} && ${f} <= ${c}`),e.pass(y);return}s.items=!0;let p=t.name("valid");c===void 0&&a===1?m(p,()=>t.if(p,()=>t.break())):a===0?(t.let(p,!0),c!==void 0&&t.if((0,Ye._)`${i}.length > 0`,d)):(t.let(p,!1),d()),e.result(p,()=>e.reset());function d(){let y=t.name("_valid"),S=t.let("count",0);m(y,()=>t.if(y,()=>g(S)))}o(d,"validateItemsWithCount");function m(y,S){t.forRange("i",0,f,v=>{e.subschema({keyword:"contains",dataProp:v,dataPropType:Fs.Type.Num,compositeRule:!0},y),S()})}o(m,"validateItems");function g(y){t.code((0,Ye._)`${y}++`),c===void 0?t.if((0,Ye._)`${y} >= ${a}`,()=>t.assign(p,!0).break()):(t.if((0,Ye._)`${y} > ${c}`,()=>t.assign(p,!1).break()),a===1?t.assign(p,!0):t.if((0,Ye._)`${y} >= ${a}`,()=>t.assign(p,!0)))}o(g,"checkLimits")}};Bl.default=L1});var Hs=h(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.validateSchemaDeps=Et.validatePropertyDeps=Et.error=void 0;var Gl=C(),F1=j(),fo=Qe();Et.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Gl.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Gl._)`{property: ${e},
10
10
  missingProperty: ${n},
11
11
  depsCount: ${t},
12
- deps: ${r}}`,"params")};var yx={keyword:"dependencies",type:"object",schemaType:"object",error:_t.error,code(e){let[t,r]=vx(e);Hh(e,t),Vh(e,r)}};function vx({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}o(vx,"splitDependencies");function Hh(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,ro.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of c)(0,ro.checkReportMissingProp)(e,l)}):(r.if((0,wl._)`${u} && (${(0,ro.checkMissingProp)(e,c,s)})`),(0,ro.reportMissingProp)(e,s),r.else())}}o(Hh,"validatePropertyDeps");_t.validatePropertyDeps=Hh;function Vh(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,gx.alwaysValidSchema)(s,t[c])||(r.if((0,ro.propertyInData)(r,n,c,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}o(Vh,"validateSchemaDeps");_t.validateSchemaDeps=Vh;_t.default=yx});var Uh=h(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var Bh=w(),Sx=k(),bx={message:"property name must be valid",params:o(({params:e})=>(0,Bh._)`{propertyName: ${e.propertyName}}`,"params")},_x={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:bx,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,Sx.alwaysValidSchema)(i,r))return;let s=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),t.if((0,Bh.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};Il.default=_x});var Rl=h(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var Is=Ke(),ct=w(),Px=ze(),Ts=k(),Ex={message:"must NOT have additional properties",params:o(({params:e})=>(0,ct._)`{additionalProperty: ${e.additionalProperty}}`,"params")},$x={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Ex,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,Ts.alwaysValidSchema)(a,r))return;let l=(0,Is.allSchemaProperties)(n.properties),f=(0,Is.allSchemaProperties)(n.patternProperties);p(),e.ok((0,ct._)`${s} === ${Px.default.errors}`);function p(){t.forIn("key",i,v=>{!l.length&&!f.length?g(v):t.if(d(v),()=>g(v))})}o(p,"checkAdditionalProperties");function d(v){let S;if(l.length>8){let b=(0,Ts.schemaRefOrVal)(a,n.properties,"properties");S=(0,Is.isOwnProperty)(t,b,v)}else l.length?S=(0,ct.or)(...l.map(b=>(0,ct._)`${v} === ${b}`)):S=ct.nil;return f.length&&(S=(0,ct.or)(S,...f.map(b=>(0,ct._)`${(0,Is.usePattern)(e,b)}.test(${v})`))),(0,ct.not)(S)}o(d,"isAdditional");function m(v){t.code((0,ct._)`delete ${i}[${v}]`)}o(m,"deleteAdditional");function g(v){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){m(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,Ts.alwaysValidSchema)(a,r)){let S=t.name("valid");u.removeAdditional==="failing"?(y(v,S,!1),t.if((0,ct.not)(S),()=>{e.reset(),m(v)})):(y(v,S),c||t.if((0,ct.not)(S),()=>t.break()))}}o(g,"additionalPropertyCode");function y(v,S,b){let P={keyword:"additionalProperties",dataProp:v,dataPropType:Ts.Type.Str};b===!1&&Object.assign(P,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(P,S)}o(y,"applyAdditionalSchema")}};Tl.default=$x});var zh=h(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var Ox=Fi(),Gh=Ke(),Cl=k(),Zh=Rl(),xx={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Zh.default.code(new Ox.KeywordCxt(s,Zh.default,"additionalProperties"));let a=(0,Gh.allSchemaProperties)(r);for(let p of a)s.definedProperties.add(p);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=Cl.mergeEvaluated.props(t,(0,Cl.toHash)(a),s.props));let c=a.filter(p=>!(0,Cl.alwaysValidSchema)(s,r[p]));if(c.length===0)return;let u=t.name("valid");for(let p of c)l(p)?f(p):(t.if((0,Gh.propertyInData)(t,i,p,s.opts.ownProperties)),f(p),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(u);function l(p){return s.opts.useDefaults&&!s.compositeRule&&r[p].default!==void 0}o(l,"hasDefault");function f(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},u)}o(f,"applyPropertySchema")}};Nl.default=xx});var Yh=h(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var Kh=Ke(),Rs=w(),Qh=k(),Wh=k(),Ax={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,c=(0,Kh.allSchemaProperties)(r),u=c.filter(y=>(0,Qh.alwaysValidSchema)(s,r[y]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,f=t.name("valid");s.props!==!0&&!(s.props instanceof Rs.Name)&&(s.props=(0,Wh.evaluatedPropsToName)(t,s.props));let{props:p}=s;d();function d(){for(let y of c)l&&m(y),s.allErrors?g(y):(t.var(f,!0),g(y),t.if(f))}o(d,"validatePatternProperties");function m(y){for(let v in l)new RegExp(y).test(v)&&(0,Qh.checkStrictMode)(s,`property ${v} matches pattern ${y} (use allowMatchingProperties)`)}o(m,"checkMatchingProperties");function g(y){t.forIn("key",n,v=>{t.if((0,Rs._)`${(0,Kh.usePattern)(e,y)}.test(${v})`,()=>{let S=u.includes(y);S||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:Wh.Type.Str},f),s.opts.unevaluated&&p!==!0?t.assign((0,Rs._)`${p}[${v}]`,!0):!S&&!s.allErrors&&t.if((0,Rs.not)(f),()=>t.break())})})}o(g,"validateProperties")}};kl.default=Ax});var Jh=h(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var wx=k(),Ix={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,wx.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};jl.default=Ix});var Xh=h(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var Tx=Ke(),Rx={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Tx.validateUnion,error:{message:"must match a schema in anyOf"}};ql.default=Rx});var eg=h(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var Cs=w(),Cx=k(),Nx={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,Cs._)`{passingSchemas: ${e.passing}}`,"params")},kx={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Nx,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,a=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((f,p)=>{let d;(0,Cx.alwaysValidSchema)(i,f)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&t.if((0,Cs._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Cs._)`[${c}, ${p}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,p),d&&e.mergeEvaluated(d,Cs.Name)})})}o(l,"validateOneOf")}};Ml.default=kx});var tg=h(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});var jx=k(),qx={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((s,a)=>{if((0,jx.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};Dl.default=qx});var ig=h(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});var Ns=w(),ng=k(),Mx={message:o(({params:e})=>(0,Ns.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,Ns._)`{failingKeyword: ${e.ifClause}}`,"params")},Dx={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Mx,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,ng.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=rg(n,"then"),s=rg(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&s){let f=t.let("ifClause");e.setParams({ifClause:f}),t.if(c,l("then",f),l("else",f))}else i?t.if(c,l("then")):t.if((0,Ns.not)(c),l("else"));e.pass(a,()=>e.error(!0));function u(){let f=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(f)}o(u,"validateIf");function l(f,p){return()=>{let d=e.subschema({keyword:f},c);t.assign(a,c),e.mergeValidEvaluated(d,a),p?t.assign(p,(0,Ns._)`${f}`):e.setParams({ifClause:f})}}o(l,"validateClause")}};function rg(e,t){let r=e.schema[t];return r!==void 0&&!(0,ng.alwaysValidSchema)(e,r)}o(rg,"hasSchema");Ll.default=Dx});var og=h(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var Lx=k(),Fx={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,Lx.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Fl.default=Fx});var Vl=h(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var Hx=El(),Vx=Mh(),Bx=$l(),Ux=Lh(),Gx=Fh(),Zx=ws(),zx=Uh(),Kx=Rl(),Qx=zh(),Wx=Yh(),Yx=Jh(),Jx=Xh(),Xx=eg(),eA=tg(),tA=ig(),rA=og();function nA(e=!1){let t=[Yx.default,Jx.default,Xx.default,eA.default,tA.default,rA.default,zx.default,Kx.default,Zx.default,Qx.default,Wx.default];return e?t.push(Vx.default,Ux.default):t.push(Hx.default,Bx.default),t.push(Gx.default),t}o(nA,"getApplicator");Hl.default=nA});var sg=h(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});var J=w(),iA={message:o(({schemaCode:e})=>(0,J.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,J._)`{format: ${e}}`,"params")},oA={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:iA,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:f,self:p}=c;if(!u.validateFormats)return;i?d():m();function d(){let g=r.scopeValue("formats",{ref:p.formats,code:u.code.formats}),y=r.const("fDef",(0,J._)`${g}[${a}]`),v=r.let("fType"),S=r.let("format");r.if((0,J._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,J._)`${y}.type || "string"`).assign(S,(0,J._)`${y}.validate`),()=>r.assign(v,(0,J._)`"string"`).assign(S,y)),e.fail$data((0,J.or)(b(),P()));function b(){return u.strictSchema===!1?J.nil:(0,J._)`${a} && !${S}`}o(b,"unknownFmt");function P(){let E=f.$async?(0,J._)`(${y}.async ? await ${S}(${n}) : ${S}(${n}))`:(0,J._)`${S}(${n})`,_=(0,J._)`(typeof ${S} == "function" ? ${E} : ${S}.test(${n}))`;return(0,J._)`${S} && ${S} !== true && ${v} === ${t} && !${_}`}o(P,"invalidFmt")}o(d,"validate$DataFormat");function m(){let g=p.formats[s];if(!g){b();return}if(g===!0)return;let[y,v,S]=P(g);y===t&&e.pass(E());function b(){if(u.strictSchema===!1){p.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o(b,"unknownFormat");function P(_){let I=_ instanceof RegExp?(0,J.regexpCode)(_):u.code.formats?(0,J._)`${u.code.formats}${(0,J.getProperty)(s)}`:void 0,T=r.scopeValue("formats",{key:s,ref:_,code:I});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,J._)`${T}.validate`]:["string",_,T]}o(P,"getFormat");function E(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!f.$async)throw new Error("async format in sync schema");return(0,J._)`await ${S}(${n})`}return typeof v=="function"?(0,J._)`${S}(${n})`:(0,J._)`${S}.test(${n})`}o(E,"validCondition")}o(m,"validateFormat")}};Bl.default=oA});var Gl=h(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var sA=sg(),aA=[sA.default];Ul.default=aA});var ag=h(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});var cA=xh(),uA=Nh(),lA=Vl(),pA=Gl(),fA=["title","description","default"],dA=[cA.default,uA.default,lA.default(),pA.default,fA];Zl.default=dA});var ug=h(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.DiscrError=void 0;var cg;(function(e){e.Tag="tag",e.Mapping="mapping"})(cg||(ks.DiscrError=cg={}))});var Ql=h(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var jn=w(),zl=ug(),lg=Vi(),mA=Hi(),hA=k(),gA={message:o(({params:{discrError:e,tagName:t}})=>e===zl.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:o(({params:{discrError:e,tag:t,tagName:r}})=>(0,jn._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},yA={keyword:"discriminator",type:"object",schemaType:"object",error:gA,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:a}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),l=t.const("tag",(0,jn._)`${r}${(0,jn.getProperty)(c)}`);t.if((0,jn._)`typeof ${l} == "string"`,()=>f(),()=>e.error(!1,{discrError:zl.DiscrError.Tag,tag:l,tagName:c})),e.ok(u);function f(){let m=d();t.if(!1);for(let g in m)t.elseIf((0,jn._)`${l} === ${g}`),t.assign(u,p(m[g]));t.else(),e.error(!1,{discrError:zl.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}o(f,"validateMapping");function p(m){let g=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:m},g);return e.mergeEvaluated(y,jn.Name),g}o(p,"applyTagSchema");function d(){var m;let g={},y=S(i),v=!0;for(let E=0;E<a.length;E++){let _=a[E];if(_!=null&&_.$ref&&!(0,hA.schemaHasRulesButRef)(_,s.self.RULES)){let T=_.$ref;if(_=lg.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,T),_ instanceof lg.SchemaEnv&&(_=_.schema),_===void 0)throw new mA.default(s.opts.uriResolver,s.baseId,T)}let I=(m=_==null?void 0:_.properties)===null||m===void 0?void 0:m[c];if(typeof I!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);v=v&&(y||S(_)),b(I,E)}if(!v)throw new Error(`discriminator: "${c}" must be required`);return g;function S({required:E}){return Array.isArray(E)&&E.includes(c)}function b(E,_){if(E.const)P(E.const,_);else if(E.enum)for(let I of E.enum)P(I,_);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function P(E,_){if(typeof E!="string"||E in g)throw new Error(`discriminator: "${c}" values must be unique strings`);g[E]=_}}o(d,"getMapping")}};Kl.default=yA});var pg=h((yD,vA)=>{vA.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}}});var mg=h((ne,dg)=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.CodeGen=ne.Name=ne.nil=ne.stringify=ne.str=ne._=ne.KeywordCxt=void 0;var SA=Nn(),bA=ag(),_A=Ql(),fg=pg(),PA=["/properties"],js="http://json-schema.org/draft-04/schema",Wl=class Wl extends SA.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),bA.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(_A.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(fg,PA):fg;this.addMetaSchema(t,js,!1),this.refs["http://json-schema.org/schema"]=js}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(js)?js:void 0)}};o(Wl,"Ajv");var qs=Wl;dg.exports=ne=qs;Object.defineProperty(ne,"__esModule",{value:!0});ne.default=qs;var EA=Nn();Object.defineProperty(ne,"KeywordCxt",{enumerable:!0,get:o(function(){return EA.KeywordCxt},"get")});var qn=Nn();Object.defineProperty(ne,"_",{enumerable:!0,get:o(function(){return qn._},"get")});Object.defineProperty(ne,"str",{enumerable:!0,get:o(function(){return qn.str},"get")});Object.defineProperty(ne,"stringify",{enumerable:!0,get:o(function(){return qn.stringify},"get")});Object.defineProperty(ne,"nil",{enumerable:!0,get:o(function(){return qn.nil},"get")});Object.defineProperty(ne,"Name",{enumerable:!0,get:o(function(){return qn.Name},"get")});Object.defineProperty(ne,"CodeGen",{enumerable:!0,get:o(function(){return qn.CodeGen},"get")})});var hg=h(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var $A={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Yl.default=$A});var gg=h(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});var OA=hg(),xA=zi(),AA=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",OA.default,xA.default];Jl.default=AA});var yg=h(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var Ms=w(),sr=Ms.operators,Ds={maximum:{okStr:"<=",ok:sr.LTE,fail:sr.GT},minimum:{okStr:">=",ok:sr.GTE,fail:sr.LT},exclusiveMaximum:{okStr:"<",ok:sr.LT,fail:sr.GTE},exclusiveMinimum:{okStr:">",ok:sr.GT,fail:sr.LTE}},wA={message:o(({keyword:e,schemaCode:t})=>(0,Ms.str)`must be ${Ds[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,Ms._)`{comparison: ${Ds[e].okStr}, limit: ${t}}`,"params")},IA={keyword:Object.keys(Ds),type:"number",schemaType:"number",$data:!0,error:wA,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Ms._)`${r} ${Ds[t].fail} ${n} || isNaN(${r})`)}};Xl.default=IA});var vg=h(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});var TA=yg(),RA=el(),CA=nl(),NA=ol(),kA=al(),jA=ul(),qA=pl(),MA=hl(),DA=vl(),LA=bl(),FA=[TA.default,RA.default,CA.default,NA.default,kA.default,jA.default,qA.default,MA.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},DA.default,LA.default];ep.default=FA});var rp=h(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.dynamicAnchor=void 0;var tp=w(),HA=ze(),Sg=Vi(),VA=zi(),BA={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>bg(e,e.schema),"code")};function bg(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,tp._)`${HA.default.dynamicAnchors}${(0,tp.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:UA(e);r.if((0,tp._)`!${i}`,()=>r.assign(i,s))}o(bg,"dynamicAnchor");no.dynamicAnchor=bg;function UA(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:s,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,l=new Sg.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return Sg.compileSchema.call(n,l),(0,VA.getValidate)(e,l)}o(UA,"_getValidate");no.default=BA});var np=h(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.dynamicRef=void 0;var _g=w(),GA=ze(),Pg=zi(),ZA={keyword:"$dynamicRef",schemaType:"string",code:o(e=>Eg(e,e.schema),"code")};function Eg(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let s=t.slice(1);if(i.allErrors)a();else{let u=r.let("valid",!1);a(u),e.ok(u)}function a(u){if(i.schemaEnv.root.dynamicAnchors[s]){let l=r.let("_v",(0,_g._)`${GA.default.dynamicAnchors}${(0,_g.getProperty)(s)}`);r.if(l,c(l,u),c(i.validateName,u))}else c(i.validateName,u)()}o(a,"_dynamicRef");function c(u,l){return l?()=>r.block(()=>{(0,Pg.callRef)(e,u),r.let(l,!0)}):()=>(0,Pg.callRef)(e,u)}o(c,"_callRef")}o(Eg,"dynamicRef");io.dynamicRef=Eg;io.default=ZA});var $g=h(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});var zA=rp(),KA=k(),QA={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,zA.dynamicAnchor)(e,""):(0,KA.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};ip.default=QA});var Og=h(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});var WA=np(),YA={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,WA.dynamicRef)(e,e.schema),"code")};op.default=YA});var xg=h(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});var JA=rp(),XA=np(),ew=$g(),tw=Og(),rw=[JA.default,XA.default,ew.default,tw.default];sp.default=rw});var wg=h(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});var Ag=ws(),nw={keyword:"dependentRequired",type:"object",schemaType:"object",error:Ag.error,code:o(e=>(0,Ag.validatePropertyDeps)(e),"code")};ap.default=nw});var Ig=h(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});var iw=ws(),ow={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,iw.validateSchemaDeps)(e),"code")};cp.default=ow});var Tg=h(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});var sw=k(),aw={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,sw.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};up.default=aw});var Rg=h(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});var cw=wg(),uw=Ig(),lw=Tg(),pw=[cw.default,uw.default,lw.default];lp.default=pw});var Ng=h(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});var ar=w(),Cg=k(),fw=ze(),dw={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,ar._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},mw={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:dw,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=s;c instanceof ar.Name?t.if((0,ar._)`${c} !== true`,()=>t.forIn("key",n,p=>t.if(l(c,p),()=>u(p)))):c!==!0&&t.forIn("key",n,p=>c===void 0?u(p):t.if(f(c,p),()=>u(p))),s.props=!0,e.ok((0,ar._)`${i} === ${fw.default.errors}`);function u(p){if(r===!1){e.setParams({unevaluatedProperty:p}),e.error(),a||t.break();return}if(!(0,Cg.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:p,dataPropType:Cg.Type.Str},d),a||t.if((0,ar.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(p,d){return(0,ar._)`!${p} || !${p}[${d}]`}o(l,"unevaluatedDynamic");function f(p,d){let m=[];for(let g in p)p[g]===!0&&m.push((0,ar._)`${d} !== ${g}`);return(0,ar.and)(...m)}o(f,"unevaluatedStatic")}};pp.default=mw});var jg=h(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});var Ur=w(),kg=k(),hw={message:o(({params:{len:e}})=>(0,Ur.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Ur._)`{limit: ${e}}`,"params")},gw={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:hw,code(e){let{gen:t,schema:r,data:n,it:i}=e,s=i.items||0;if(s===!0)return;let a=t.const("len",(0,Ur._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,Ur._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,kg.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,Ur._)`${a} <= ${s}`);t.if((0,Ur.not)(u),()=>c(u,s)),e.ok(u)}i.items=!0;function c(u,l){t.forRange("i",l,a,f=>{e.subschema({keyword:"unevaluatedItems",dataProp:f,dataPropType:kg.Type.Num},u),i.allErrors||t.if((0,Ur.not)(u),()=>t.break())})}o(c,"validateItems")}};fp.default=gw});var qg=h(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});var yw=Ng(),vw=jg(),Sw=[yw.default,vw.default];dp.default=Sw});var Mg=h(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.contentVocabulary=Mn.metadataVocabulary=void 0;Mn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Mn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Lg=h(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});var bw=gg(),_w=vg(),Pw=Vl(),Ew=xg(),$w=Rg(),Ow=qg(),xw=Gl(),Dg=Mg(),Aw=[Ew.default,bw.default,_w.default,(0,Pw.default)(!0),xw.default,Dg.metadataVocabulary,Dg.contentVocabulary,$w.default,Ow.default];mp.default=Aw});var Fg=h((GD,ww)=>{ww.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var Hg=h((ZD,Iw)=>{Iw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var Vg=h((zD,Tw)=>{Tw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var Bg=h((KD,Rw)=>{Rw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var Ug=h((QD,Cw)=>{Cw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var Gg=h((WD,Nw)=>{Nw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var Zg=h((YD,kw)=>{kw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var zg=h((JD,jw)=>{jw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var Kg=h(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});var qw=Fg(),Mw=Hg(),Dw=Vg(),Lw=Bg(),Fw=Ug(),Hw=Gg(),Vw=Zg(),Bw=zg(),Uw=["/properties"];function Gw(e){return[qw,Mw,Dw,Lw,Fw,t(this,Hw),Vw,t(this,Bw)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,Uw):n}o(t,"with$data")}o(Gw,"addMetaSchema2020");hp.default=Gw});var Qg=h((U,yp)=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.MissingRefError=U.ValidationError=U.CodeGen=U.Name=U.nil=U.stringify=U.str=U._=U.KeywordCxt=U.Ajv2020=void 0;var Zw=Nn(),zw=Lg(),Kw=Ql(),Qw=Kg(),gp="https://json-schema.org/draft/2020-12/schema",vp=class vp extends Zw.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),zw.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Kw.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Qw.default.call(this,t),this.refs["http://json-schema.org/schema"]=gp)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(gp)?gp:void 0)}};o(vp,"Ajv2020");var Dn=vp;U.Ajv2020=Dn;yp.exports=U=Dn;yp.exports.Ajv2020=Dn;Object.defineProperty(U,"__esModule",{value:!0});U.default=Dn;var Ww=Fi();Object.defineProperty(U,"KeywordCxt",{enumerable:!0,get:o(function(){return Ww.KeywordCxt},"get")});var Ln=w();Object.defineProperty(U,"_",{enumerable:!0,get:o(function(){return Ln._},"get")});Object.defineProperty(U,"str",{enumerable:!0,get:o(function(){return Ln.str},"get")});Object.defineProperty(U,"stringify",{enumerable:!0,get:o(function(){return Ln.stringify},"get")});Object.defineProperty(U,"nil",{enumerable:!0,get:o(function(){return Ln.nil},"get")});Object.defineProperty(U,"Name",{enumerable:!0,get:o(function(){return Ln.Name},"get")});Object.defineProperty(U,"CodeGen",{enumerable:!0,get:o(function(){return Ln.CodeGen},"get")});var Yw=gs();Object.defineProperty(U,"ValidationError",{enumerable:!0,get:o(function(){return Yw.default},"get")});var Jw=Hi();Object.defineProperty(U,"MissingRefError",{enumerable:!0,get:o(function(){return Jw.default},"get")})});var Wg=h((r8,Xw)=>{Xw.exports={id:"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v1.2/apiDeclaration.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swaggerVersion","basePath","apis"],properties:{swaggerVersion:{enum:["1.2"]},apiVersion:{type:"string"},basePath:{type:"string",format:"uri",pattern:"^https?://"},resourcePath:{type:"string",format:"uri",pattern:"^/"},apis:{type:"array",items:{$ref:"#/definitions/apiObject"}},models:{type:"object",additionalProperties:{$ref:"modelsObject.json#"}},produces:{$ref:"#/definitions/mimeTypeArray"},consumes:{$ref:"#/definitions/mimeTypeArray"},authorizations:{$ref:"authorizationObject.json#"}},additionalProperties:!1,definitions:{apiObject:{type:"object",required:["path","operations"],properties:{path:{type:"string",format:"uri-template",pattern:"^/"},description:{type:"string"},operations:{type:"array",items:{$ref:"operationObject.json#"}}},additionalProperties:!1},mimeTypeArray:{type:"array",items:{type:"string",format:"mime-type"},uniqueItems:!0}}}});var Yg=h((n8,eI)=>{eI.exports={title:"A JSON Schema for Swagger 2.0 API.",id:"http://swagger.io/v2/schema.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{type:"string",enum:["2.0"],description:"The Swagger version of this document."},info:{$ref:"#/definitions/info"},host:{type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",description:"The host (name or ip) of the API. Example: 'swagger.io'"},basePath:{type:"string",pattern:"^/",description:"The base path to the API. Example: '/api'."},schemes:{$ref:"#/definitions/schemesList"},consumes:{description:"A list of MIME types accepted by the API.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},paths:{$ref:"#/definitions/paths"},definitions:{$ref:"#/definitions/definitions"},parameters:{$ref:"#/definitions/parameterDefinitions"},responses:{$ref:"#/definitions/responseDefinitions"},security:{$ref:"#/definitions/security"},securityDefinitions:{$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},termsOfService:{type:"string",description:"The terms of service for the API."},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:!1,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},paths:{type:"object",description:"Relative paths to the individual endpoints. They must be relative to the 'basePath'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^/":{$ref:"#/definitions/pathItem"}},additionalProperties:!1},definitions:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"One or more JSON objects describing the schemas being consumed and produced by the API."},parameterDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"One or more JSON representations for parameters"},responseDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/response"},description:"One or more JSON representations for responses"},externalDocs:{type:"object",additionalProperties:!1,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},examples:{type:"object",additionalProperties:!0},mimeType:{type:"string",description:"The MIME type of the HTTP message."},operation:{type:"object",required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{type:"string"},uniqueItems:!0},summary:{type:"string",description:"A brief summary of the operation."},description:{type:"string",description:"A longer description of the operation, GitHub Flavored Markdown is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",description:"A unique identifier of the operation."},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},consumes:{description:"A list of MIME types the API can consume.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},parameters:{$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean",default:!1},security:{$ref:"#/definitions/security"}}},pathItem:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{$ref:"#/definitions/operation"},delete:{$ref:"#/definitions/operation"},options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},patch:{$ref:"#/definitions/operation"},parameters:{$ref:"#/definitions/parametersList"}}},responses:{type:"object",description:"Response objects names can either be any valid HTTP status code or 'default'.",minProperties:1,additionalProperties:!1,patternProperties:{"^([0-9]{3})$|^(default)$":{$ref:"#/definitions/responseValue"},"^x-":{$ref:"#/definitions/vendorExtension"}},not:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}}},responseValue:{oneOf:[{$ref:"#/definitions/response"},{$ref:"#/definitions/jsonReference"}]},response:{type:"object",required:["description"],properties:{description:{type:"string"},schema:{oneOf:[{$ref:"#/definitions/schema"},{$ref:"#/definitions/fileSchema"}]},headers:{$ref:"#/definitions/headers"},examples:{$ref:"#/definitions/examples"}},additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},headers:{type:"object",additionalProperties:{$ref:"#/definitions/header"}},header:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:!0,additionalItems:!0},bodyParameter:{type:"object",required:["name","in","schema"],patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},in:{type:"string",description:"Determines the location of the parameter.",enum:["body"]},required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},headerParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["header"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},queryParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean",enum:[!0],description:"Determines whether or not this parameter is required or optional."},in:{type:"string",description:"Determines the location of the parameter.",enum:["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",required:["name","in","type"],oneOf:[{$ref:"#/definitions/headerParameterSubSchema"},{$ref:"#/definitions/formDataParameterSubSchema"},{$ref:"#/definitions/queryParameterSubSchema"},{$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},fileSchema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["type"],properties:{format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{type:"string",enum:["file"]},readOnly:{type:"boolean",default:!1},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},primitivesItems:{type:"object",additionalProperties:!1,properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},security:{type:"array",items:{$ref:"#/definitions/securityRequirement"},uniqueItems:!0},securityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:!0}},xml:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},tag:{type:"object",additionalProperties:!1,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},securityDefinitions:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"},{$ref:"#/definitions/apiKeySecurity"},{$ref:"#/definitions/oauth2ImplicitSecurity"},{$ref:"#/definitions/oauth2PasswordSecurity"},{$ref:"#/definitions/oauth2ApplicationSecurity"},{$ref:"#/definitions/oauth2AccessCodeSecurity"}]}},basicAuthenticationSecurity:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["basic"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},apiKeySecurity:{type:"object",additionalProperties:!1,required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ImplicitSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["implicit"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["application"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["accessCode"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array",items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{type:"array",description:"The parameters needed to send a valid API call.",additionalItems:!1,items:{oneOf:[{$ref:"#/definitions/parameter"},{$ref:"#/definitions/jsonReference"}]},uniqueItems:!0},schemesList:{type:"array",description:"The transfer protocol of the API.",items:{type:"string",enum:["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes"],default:"csv"},collectionFormatWithMulti:{type:"string",enum:["csv","ssv","tsv","pipes","multi"],default:"csv"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{type:"string"}}}}}});var Jg=h((i8,tI)=>{tI.exports={id:"https://spec.openapis.org/oas/3.0/schema/2019-04-02",$schema:"http://json-schema.org/draft-04/schema#",description:"Validation schema for OpenAPI Specification 3.0.X.",type:"object",required:["openapi","info","paths"],properties:{openapi:{type:"string",pattern:"^3\\.0\\.\\d(-.+)?$"},info:{$ref:"#/definitions/Info"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},tags:{type:"array",items:{$ref:"#/definitions/Tag"},uniqueItems:!0},paths:{$ref:"#/definitions/Paths"},components:{$ref:"#/definitions/Components"}},patternProperties:{"^x-":{}},additionalProperties:!1,definitions:{Reference:{type:"object",required:["$ref"],patternProperties:{"^\\$ref$":{type:"string",format:"uri-reference"}}},Info:{type:"object",required:["title","version"],properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri-reference"},contact:{$ref:"#/definitions/Contact"},license:{$ref:"#/definitions/License"},version:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Contact:{type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"},email:{type:"string",format:"email"}},patternProperties:{"^x-":{}},additionalProperties:!1},License:{type:"object",required:["name"],properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Server:{type:"object",required:["url"],properties:{url:{type:"string"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/definitions/ServerVariable"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ServerVariable:{type:"object",required:["default"],properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Components:{type:"object",properties:{schemas:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}}},responses:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Response"}]}}},parameters:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Parameter"}]}}},examples:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Example"}]}}},requestBodies:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/RequestBody"}]}}},headers:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Header"}]}}},securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},links:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Link"}]}}},callbacks:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Callback"}]}}}},patternProperties:{"^x-":{}},additionalProperties:!1},Schema:{type:"object",properties:{title:{type:"string"},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0,default:0},pattern:{type:"string",format:"regex"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0,default:0},uniqueItems:{type:"boolean",default:!1},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0,default:0},required:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},enum:{type:"array",items:{},minItems:1,uniqueItems:!1},type:{type:"string",enum:["array","boolean","integer","number","object","string"]},not:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},allOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},oneOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},anyOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},properties:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"},{type:"boolean"}],default:!0},description:{type:"string"},format:{type:"string"},default:{},nullable:{type:"boolean",default:!1},discriminator:{$ref:"#/definitions/Discriminator"},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},example:{},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},deprecated:{type:"boolean",default:!1},xml:{$ref:"#/definitions/XML"}},patternProperties:{"^x-":{}},additionalProperties:!1},Discriminator:{type:"object",required:["propertyName"],properties:{propertyName:{type:"string"},mapping:{type:"object",additionalProperties:{type:"string"}}}},XML:{type:"object",properties:{name:{type:"string"},namespace:{type:"string",format:"uri"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},Response:{type:"object",required:["description"],properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{$ref:"#/definitions/Reference"}]}},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},links:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Link"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1},MediaType:{type:"object",properties:{schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}},encoding:{type:"object",additionalProperties:{$ref:"#/definitions/Encoding"}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"}]},Example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:{},externalValue:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Header:{type:"object",properties:{description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string",enum:["simple"],default:"simple"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"}]},Paths:{type:"object",patternProperties:{"^\\/":{$ref:"#/definitions/PathItem"},"^x-":{}},additionalProperties:!1},PathItem:{type:"object",properties:{$ref:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/definitions/Operation"},"^x-":{}},additionalProperties:!1},Operation:{type:"object",required:["responses"],properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},operationId:{type:"string"},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0},requestBody:{oneOf:[{$ref:"#/definitions/RequestBody"},{$ref:"#/definitions/Reference"}]},responses:{$ref:"#/definitions/Responses"},callbacks:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Callback"},{$ref:"#/definitions/Reference"}]}},deprecated:{type:"boolean",default:!1},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},servers:{type:"array",items:{$ref:"#/definitions/Server"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Responses:{type:"object",properties:{default:{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]}},patternProperties:{"^[1-5](?:\\d{2}|XX)$":{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]},"^x-":{}},minProperties:1,additionalProperties:!1},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},Tag:{type:"object",required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExternalDocumentation:{type:"object",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExampleXORExamples:{description:"Example and examples are mutually exclusive",not:{required:["example","examples"]}},SchemaXORContent:{description:"Schema and content are mutually exclusive, at least one is required",not:{required:["schema","content"]},oneOf:[{required:["schema"]},{required:["content"],description:"Some properties are not allowed if content is present",allOf:[{not:{required:["style"]}},{not:{required:["explode"]}},{not:{required:["allowReserved"]}},{not:{required:["example"]}},{not:{required:["examples"]}}]}]},Parameter:{type:"object",properties:{name:{type:"string"},in:{type:"string"},description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,required:["name","in"],allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"},{$ref:"#/definitions/ParameterLocation"}]},ParameterLocation:{description:"Parameter location",oneOf:[{description:"Parameter in path",required:["required"],properties:{in:{enum:["path"]},style:{enum:["matrix","label","simple"],default:"simple"},required:{enum:[!0]}}},{description:"Parameter in query",properties:{in:{enum:["query"]},style:{enum:["form","spaceDelimited","pipeDelimited","deepObject"],default:"form"}}},{description:"Parameter in header",properties:{in:{enum:["header"]},style:{enum:["simple"],default:"simple"}}},{description:"Parameter in cookie",properties:{in:{enum:["cookie"]},style:{enum:["form"],default:"form"}}}]},RequestBody:{type:"object",required:["content"],properties:{description:{type:"string"},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},required:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},SecurityScheme:{oneOf:[{$ref:"#/definitions/APIKeySecurityScheme"},{$ref:"#/definitions/HTTPSecurityScheme"},{$ref:"#/definitions/OAuth2SecurityScheme"},{$ref:"#/definitions/OpenIdConnectSecurityScheme"}]},APIKeySecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},HTTPSecurityScheme:{type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},bearerFormat:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-":{}},additionalProperties:!1,oneOf:[{description:"Bearer",properties:{scheme:{enum:["bearer"]}}},{description:"Non Bearer",not:{required:["bearerFormat"]},properties:{scheme:{not:{enum:["bearer"]}}}}]},OAuth2SecurityScheme:{type:"object",required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},flows:{$ref:"#/definitions/OAuthFlows"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OpenIdConnectSecurityScheme:{type:"object",required:["type","openIdConnectUrl"],properties:{type:{type:"string",enum:["openIdConnect"]},openIdConnectUrl:{type:"string",format:"uri-reference"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OAuthFlows:{type:"object",properties:{implicit:{$ref:"#/definitions/ImplicitOAuthFlow"},password:{$ref:"#/definitions/PasswordOAuthFlow"},clientCredentials:{$ref:"#/definitions/ClientCredentialsFlow"},authorizationCode:{$ref:"#/definitions/AuthorizationCodeOAuthFlow"}},patternProperties:{"^x-":{}},additionalProperties:!1},ImplicitOAuthFlow:{type:"object",required:["authorizationUrl","scopes"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},PasswordOAuthFlow:{type:"object",required:["tokenUrl"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ClientCredentialsFlow:{type:"object",required:["tokenUrl"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},AuthorizationCodeOAuthFlow:{type:"object",required:["authorizationUrl","tokenUrl"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Link:{type:"object",properties:{operationId:{type:"string"},operationRef:{type:"string",format:"uri-reference"},parameters:{type:"object",additionalProperties:{}},requestBody:{},description:{type:"string"},server:{$ref:"#/definitions/Server"}},patternProperties:{"^x-":{}},additionalProperties:!1,not:{description:"Operation Id and Operation Ref are mutually exclusive",required:["operationId","operationRef"]}},Callback:{type:"object",additionalProperties:{$ref:"#/definitions/PathItem"},patternProperties:{"^x-":{}}},Encoding:{type:"object",properties:{contentType:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/definitions/Header"}},style:{type:"string",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1}},additionalProperties:!1}}}});var Xg=h((o8,rI)=>{rI.exports={$id:"https://spec.openapis.org/oas/3.1/schema/2021-04-15",$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$"},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{$ref:"#/$defs/uri",default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array",items:{$ref:"#/$defs/server"}},paths:{$ref:"#/$defs/paths"},webhooks:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["openapi","info"],anyOf:[{required:["paths"]},{required:["components"]},{required:["webhooks"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{type:"object",properties:{title:{type:"string"},summary:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:{$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"}},required:["title","version"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},contact:{type:"object",properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},license:{type:"object",properties:{name:{type:"string"},identifier:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["name"],oneOf:[{required:["identifier"]},{required:["url"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},server:{type:"object",properties:{url:{$ref:"#/$defs/uri"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/$defs/server-variable"}}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"server-variable":{type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1},default:{type:"string"},descriptions:{type:"string"}},required:["default"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{type:"object",properties:{schemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"}},responses:{type:"object",additionalProperties:{$ref:"#/$defs/response-or-reference"}},parameters:{type:"object",additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}},requestBodies:{type:"object",additionalProperties:{$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"}},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}}},patternProperties:{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{type:"object",patternProperties:{"^/":{$ref:"#/$defs/path-item"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{type:"object",properties:{summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/$defs/server"}},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/path-item"}},operation:{type:"object",properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"},operationId:{type:"string"},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},requestBody:{$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{type:"array",items:{$ref:"#/$defs/server"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"external-documentation":{type:"object",properties:{description:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},parameter:{type:"object",properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"},content:{$ref:"#/$defs/content"}},required:["in"],oneOf:[{required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{properties:{style:{type:"string"},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],$defs:{"styles-for-path":{if:{properties:{in:{const:"path"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}},"styles-for-header":{if:{properties:{in:{const:"header"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["simple"]}}}},"styles-for-query":{if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]}}}},"styles-for-cookie":{if:{properties:{in:{const:"cookie"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form"]}}}},"styles-for-form":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"parameter-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/parameter"}},"request-body":{type:"object",properties:{description:{type:"string"},content:{$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}},required:["content"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"request-body-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/request-body"}},content:{type:"object",additionalProperties:{$ref:"#/$defs/media-type"},propertyNames:{format:"media-range"}},"media-type":{type:"object",properties:{schema:{$dynamicRef:"#meta"},encoding:{type:"object",additionalProperties:{$ref:"#/$defs/encoding"}}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/examples"}],unevaluatedProperties:!1},encoding:{type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/encoding/$defs/explode-default"}],unevaluatedProperties:!1,$defs:{"explode-default":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}},responses:{type:"object",properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{"^[1-5][0-9X]{2}$":{$ref:"#/$defs/response-or-reference"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},response:{type:"object",properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}}},required:["description"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"response-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{type:"object",$ref:"#/$defs/specification-extensions",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/callbacks"}},example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:!0,externalValue:{$ref:"#/$defs/uri"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"example-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"}},link:{type:"object",properties:{operationRef:{$ref:"#/$defs/uri"},operationId:!0,parameters:{$ref:"#/$defs/map-of-strings"},requestBody:!0,description:{type:"string"},body:{$ref:"#/$defs/server"}},oneOf:[{required:["operationRef"]},{required:["operationId"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"link-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{type:"object",properties:{description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"}},dependentSchemas:{schema:{properties:{style:{default:"simple",enum:["simple"]},explode:{default:!1,type:"boolean"},allowReserved:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"}},$ref:"#/$defs/examples"},content:{properties:{content:{$ref:"#/$defs/content"}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"header-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{type:"object",properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["name"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{type:"object",properties:{$ref:{$ref:"#/$defs/uri"},summary:{type:"string"},description:{type:"string"}},unevaluatedProperties:!1},schema:{$dynamicAnchor:"meta",type:["object","boolean"]},"security-scheme":{type:"object",properties:{type:{enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{type:"string"}},required:["type"],allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/security-scheme/$defs/type-apikey"},{$ref:"#/$defs/security-scheme/$defs/type-http"},{$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1,$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}},required:["type"]},then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}},required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}},required:["type"]},then:{properties:{scheme:{type:"string"}},required:["scheme"]}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{const:"bearer"}},required:["type","scheme"]},then:{properties:{bearerFormat:{type:"string"}},required:["scheme"]}},"type-oauth2":{if:{properties:{type:{const:"oauth2"}},required:["type"]},then:{properties:{flows:{$ref:"#/$defs/oauth-flows"}},required:["flows"]}},"type-oidc":{if:{properties:{type:{const:"openIdConnect"}},required:["type"]},then:{properties:{openIdConnectUrl:{$ref:"#/$defs/uri"}},required:["openIdConnectUrl"]}}}},"security-scheme-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"},password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{$ref:"#/$defs/oauth-flows/$defs/authorization-code"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{implicit:{type:"object",properties:{authorizationUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string"},tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}},"security-requirement":{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},"specification-extensions":{patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}}},uri:{type:"string",format:"uri"},"map-of-strings":{type:"object",additionalProperties:{type:"string"}}}}});var ey=h((se,Fn)=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.openapi=se.openapiV31=se.openapiV3=se.openapiV2=se.openapiV1=void 0;se.openapiV1=Wg();se.openapiV2=Yg();se.openapiV3=Jg();se.openapiV31=Xg();se.openapi={v1:se.openapiV1,v2:se.openapiV2,v3:se.openapiV3,v31:se.openapiV31};se.default=se.openapi;typeof Fn=="object"&&typeof Fn.exports=="object"&&(Fn.exports=Object.assign(Fn.exports.default,Fn.exports))});var _p=h((s8,ty)=>{"use strict";var nI=Yo(),{ono:iI}=it(),oI=mg(),sI=Qg(),{openapi:Sp}=ey();ty.exports=aI;function aI(e){let t,r;if(e.swagger)r=Sp.v2,t=bp();else if(e.openapi.startsWith("3.1")){r=Sp.v31;let i=r.$defs.schema;delete i.$dynamicAnchor,r.$defs.components.properties.schemas.additionalProperties=i,r.$defs.header.dependentSchemas.schema.properties.schema=i,r.$defs["media-type"].properties.schema=i,r.$defs.parameter.properties.schema=i,t=bp(!1)}else r=Sp.v3,t=bp();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
13
- `+cI(i);throw iI.syntax(i,{details:i},s)}}o(aI,"validateSchema");function bp(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new oI(t):new sI(t)}o(bp,"initializeAjv");function cI(e,t){t=t||" ";let r="";for(let n of e)r+=nI.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
14
- `);return r}o(cI,"formatAjvError")});var ny=h((c8,ry)=>{"use strict";ry.exports=["get","put","post","delete","options","head","patch"]});var $p=h((u8,ay)=>{"use strict";var uI=Yo(),{ono:be}=it(),lI=ny(),Pp=["array","boolean","integer","number","string"],oy=["array","boolean","integer","number","string","object","null",void 0];ay.exports=pI;function pI(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let s=e.paths[i],a="/paths"+i;s&&i.indexOf("/")===0&&fI(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;sy(s,a)}}o(pI,"validateSpec");function fI(e,t,r,n){for(let i of lI){let s=t[i],a=r+"/"+i;if(s){let c=s.operationId;if(c)if(n.indexOf(c)===-1)n.push(c);else throw be.syntax(`Validation failed. Duplicate operation id '${c}'`);dI(e,t,r,s,a);let u=Object.keys(s.responses||{});for(let l of u){let f=s.responses[l],p=a+"/responses/"+l;yI(l,f||{},p)}}}}o(fI,"validatePath");function dI(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{iy(s)}catch(u){throw be.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{iy(a)}catch(u){throw be.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=s.reduce((u,l)=>(u.some(p=>p.in===l.in&&p.name===l.name)||u.push(l),u),a.slice());mI(c,i),hI(c,r,i),gI(c,e,n,i)}o(dI,"validateParameters");function mI(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw be.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw be.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(mI,"validateBodyParameters");function hI(e,t,r){let n=t.match(uI.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw be.syntax(`Validation failed. ${r} has multiple path placeholders named ${n[i]}`);e=e.filter(i=>i.in==="path");for(let i of e){if(i.required!==!0)throw be.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let s=n.indexOf("{"+i.name+"}");if(s===-1)throw be.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(s,1)}if(n.length>0)throw be.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(hI,"validatePathParameters");function gI(e,t,r,n){for(let i of e){let s=n+"/parameters/"+i.name,a,c;switch(i.in){case"body":a=i.schema,c=oy;break;case"formData":a=i,c=Pp.concat("file");break;default:a=i,c=Pp}if(Ep(a,s,c),sy(a,s),a.type==="file"){let u=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>u.test(d)||l.test(d)))throw be.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(gI,"validateParameterTypes");function iy(e){for(let t=0;t<e.length-1;t++){let r=e[t];for(let n=t+1;n<e.length;n++){let i=e[n];if(r.name===i.name&&r.in===i.in)throw be.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(iy,"checkForDuplicates");function yI(e,t,r){if(e!=="default"&&(e<100||e>599))throw be.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let s=t.headers[i],a=r+"/headers/"+i;Ep(s,a,Pp)}if(t.schema){let i=oy.concat("file");if(i.indexOf(t.schema.type)===-1)throw be.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Ep(t.schema,r+"/schema",i)}}o(yI,"validateResponse");function Ep(e,t,r){if(r.indexOf(e.type)===-1)throw be.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw be.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(Ep,"validateSchema");function sy(e,t){function r(n,i){if(n.properties)for(let s in n.properties)n.properties.hasOwnProperty(s)&&(i[s]=n.properties[s]);if(n.allOf)for(let s of n.allOf)r(s,i)}if(o(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw be.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(sy,"validateRequiredPropertiesExist")});var lt=h(ut=>{"use strict";var{Ono:cy}=it(),{stripHash:uy,toFileSystemPath:vI}=Le(),Hn,cr=ut.JSONParserError=(Hn=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,cy.extend(this)}},o(Hn,"JSONParserError"),Hn);ur(cr);var Gr,ly=ut.JSONParserErrorGroup=(Gr=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${vI(t.$refs._root$Ref.path)}'`,cy.extend(this)}static getParserErrors(t){let r=[];for(let n of Object.values(t.$refs._$refs))n.errors&&r.push(...n.errors);return r}get errors(){return Gr.getParserErrors(this.files)}},o(Gr,"JSONParserErrorGroup"),Gr);ur(ly);var Vn,SI=ut.ParserError=(Vn=class extends cr{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(Vn,"ParserError"),Vn);ur(SI);var Bn,bI=ut.UnmatchedParserError=(Bn=class extends cr{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(Bn,"UnmatchedParserError"),Bn);ur(bI);var Un,_I=ut.ResolverError=(Un=class extends cr{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(Un,"ResolverError"),Un);ur(_I);var Gn,PI=ut.UnmatchedResolverError=(Gn=class extends cr{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(Gn,"UnmatchedResolverError"),Gn);ur(PI);var Zn,EI=ut.MissingPointerError=(Zn=class extends cr{constructor(t,r){super(`Token "${t}" does not exist.`,uy(r)),this.code="EMISSINGPOINTER"}},o(Zn,"MissingPointerError"),Zn);ur(EI);var zn,$I=ut.InvalidPointerError=(zn=class extends cr{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,uy(r)),this.code="EINVALIDPOINTER"}},o(zn,"InvalidPointerError"),zn);ur($I);function ur(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(ur,"setErrorName");ut.isHandledError=function(e){return e instanceof cr||e instanceof ly};ut.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var fy=h((d8,py)=>{"use strict";var{ParserError:OI}=lt();py.exports={order:100,allowEmpty:!0,canParse:".json",async parse(e){let t=e.data;if(Buffer.isBuffer(t)&&(t=t.toString()),typeof t=="string"){if(t.trim().length===0)return;try{return JSON.parse(t)}catch(r){throw new OI(r.message,e.url)}}else return t}}});var zr=h((m8,Zr)=>{"use strict";function dy(e){return typeof e>"u"||e===null}o(dy,"isNothing");function xI(e){return typeof e=="object"&&e!==null}o(xI,"isObject");function AI(e){return Array.isArray(e)?e:dy(e)?[]:[e]}o(AI,"toArray");function wI(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}o(wI,"extend");function II(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(II,"repeat");function TI(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(TI,"isNegativeZero");Zr.exports.isNothing=dy;Zr.exports.isObject=xI;Zr.exports.toArray=AI;Zr.exports.repeat=II;Zr.exports.isNegativeZero=TI;Zr.exports.extend=wI});var Kn=h((g8,my)=>{"use strict";function oo(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}o(oo,"YAMLException");oo.prototype=Object.create(Error.prototype);oo.prototype.constructor=oo;oo.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");my.exports=oo});var yy=h((v8,gy)=>{"use strict";var hy=zr();function Op(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(Op,"Mark");Op.prototype.getSnippet=o(function(t,r){var n,i,s,a,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
12
+ deps: ${r}}`,"params")};var H1={keyword:"dependencies",type:"object",schemaType:"object",error:Et.error,code(e){let[t,r]=V1(e);og(e,t),sg(e,r)}};function V1({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}o(V1,"splitDependencies");function og(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,fo.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of c)(0,fo.checkReportMissingProp)(e,l)}):(r.if((0,Gl._)`${u} && (${(0,fo.checkMissingProp)(e,c,s)})`),(0,fo.reportMissingProp)(e,s),r.else())}}o(og,"validatePropertyDeps");Et.validatePropertyDeps=og;function sg(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,F1.alwaysValidSchema)(s,t[c])||(r.if((0,fo.propertyInData)(r,n,c,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}o(sg,"validateSchemaDeps");Et.validateSchemaDeps=sg;Et.default=H1});var cg=h(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var ag=C(),B1=j(),G1={message:"property name must be valid",params:o(({params:e})=>(0,ag._)`{propertyName: ${e.propertyName}}`,"params")},U1={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:G1,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,B1.alwaysValidSchema)(i,r))return;let s=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),t.if((0,ag.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};Ul.default=U1});var zl=h(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});var Vs=Qe(),ut=C(),Z1=Ke(),Bs=j(),z1={message:"must NOT have additional properties",params:o(({params:e})=>(0,ut._)`{additionalProperty: ${e.additionalProperty}}`,"params")},K1={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:z1,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,Bs.alwaysValidSchema)(a,r))return;let l=(0,Vs.allSchemaProperties)(n.properties),f=(0,Vs.allSchemaProperties)(n.patternProperties);p(),e.ok((0,ut._)`${s} === ${Z1.default.errors}`);function p(){t.forIn("key",i,S=>{!l.length&&!f.length?g(S):t.if(d(S),()=>g(S))})}o(p,"checkAdditionalProperties");function d(S){let v;if(l.length>8){let b=(0,Bs.schemaRefOrVal)(a,n.properties,"properties");v=(0,Vs.isOwnProperty)(t,b,S)}else l.length?v=(0,ut.or)(...l.map(b=>(0,ut._)`${S} === ${b}`)):v=ut.nil;return f.length&&(v=(0,ut.or)(v,...f.map(b=>(0,ut._)`${(0,Vs.usePattern)(e,b)}.test(${S})`))),(0,ut.not)(v)}o(d,"isAdditional");function m(S){t.code((0,ut._)`delete ${i}[${S}]`)}o(m,"deleteAdditional");function g(S){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){m(S);return}if(r===!1){e.setParams({additionalProperty:S}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,Bs.alwaysValidSchema)(a,r)){let v=t.name("valid");u.removeAdditional==="failing"?(y(S,v,!1),t.if((0,ut.not)(v),()=>{e.reset(),m(S)})):(y(S,v),c||t.if((0,ut.not)(v),()=>t.break()))}}o(g,"additionalPropertyCode");function y(S,v,b){let E={keyword:"additionalProperties",dataProp:S,dataPropType:Bs.Type.Str};b===!1&&Object.assign(E,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(E,v)}o(y,"applyAdditionalSchema")}};Zl.default=K1});var pg=h(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var Q1=Wi(),ug=Qe(),Kl=j(),lg=zl(),W1={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&lg.default.code(new Q1.KeywordCxt(s,lg.default,"additionalProperties"));let a=(0,ug.allSchemaProperties)(r);for(let p of a)s.definedProperties.add(p);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=Kl.mergeEvaluated.props(t,(0,Kl.toHash)(a),s.props));let c=a.filter(p=>!(0,Kl.alwaysValidSchema)(s,r[p]));if(c.length===0)return;let u=t.name("valid");for(let p of c)l(p)?f(p):(t.if((0,ug.propertyInData)(t,i,p,s.opts.ownProperties)),f(p),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(u);function l(p){return s.opts.useDefaults&&!s.compositeRule&&r[p].default!==void 0}o(l,"hasDefault");function f(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},u)}o(f,"applyPropertySchema")}};Ql.default=W1});var hg=h(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var fg=Qe(),Gs=C(),dg=j(),mg=j(),Y1={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,c=(0,fg.allSchemaProperties)(r),u=c.filter(y=>(0,dg.alwaysValidSchema)(s,r[y]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,f=t.name("valid");s.props!==!0&&!(s.props instanceof Gs.Name)&&(s.props=(0,mg.evaluatedPropsToName)(t,s.props));let{props:p}=s;d();function d(){for(let y of c)l&&m(y),s.allErrors?g(y):(t.var(f,!0),g(y),t.if(f))}o(d,"validatePatternProperties");function m(y){for(let S in l)new RegExp(y).test(S)&&(0,dg.checkStrictMode)(s,`property ${S} matches pattern ${y} (use allowMatchingProperties)`)}o(m,"checkMatchingProperties");function g(y){t.forIn("key",n,S=>{t.if((0,Gs._)`${(0,fg.usePattern)(e,y)}.test(${S})`,()=>{let v=u.includes(y);v||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:S,dataPropType:mg.Type.Str},f),s.opts.unevaluated&&p!==!0?t.assign((0,Gs._)`${p}[${S}]`,!0):!v&&!s.allErrors&&t.if((0,Gs.not)(f),()=>t.break())})})}o(g,"validateProperties")}};Wl.default=Y1});var gg=h(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var J1=j(),X1={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,J1.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Yl.default=X1});var yg=h(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});var eA=Qe(),tA={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:eA.validateUnion,error:{message:"must match a schema in anyOf"}};Jl.default=tA});var Sg=h(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var Us=C(),rA=j(),nA={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,Us._)`{passingSchemas: ${e.passing}}`,"params")},iA={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:nA,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,a=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((f,p)=>{let d;(0,rA.alwaysValidSchema)(i,f)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&t.if((0,Us._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Us._)`[${c}, ${p}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,p),d&&e.mergeEvaluated(d,Us.Name)})})}o(l,"validateOneOf")}};Xl.default=iA});var vg=h(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});var oA=j(),sA={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((s,a)=>{if((0,oA.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};ep.default=sA});var Eg=h(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});var Zs=C(),_g=j(),aA={message:o(({params:e})=>(0,Zs.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,Zs._)`{failingKeyword: ${e.ifClause}}`,"params")},cA={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:aA,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,_g.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=bg(n,"then"),s=bg(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&s){let f=t.let("ifClause");e.setParams({ifClause:f}),t.if(c,l("then",f),l("else",f))}else i?t.if(c,l("then")):t.if((0,Zs.not)(c),l("else"));e.pass(a,()=>e.error(!0));function u(){let f=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(f)}o(u,"validateIf");function l(f,p){return()=>{let d=e.subschema({keyword:f},c);t.assign(a,c),e.mergeValidEvaluated(d,a),p?t.assign(p,(0,Zs._)`${f}`):e.setParams({ifClause:f})}}o(l,"validateClause")}};function bg(e,t){let r=e.schema[t];return r!==void 0&&!(0,_g.alwaysValidSchema)(e,r)}o(bg,"hasSchema");tp.default=cA});var Pg=h(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});var uA=j(),lA={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,uA.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};rp.default=lA});var ip=h(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});var pA=Ll(),fA=tg(),dA=Fl(),mA=ng(),hA=ig(),gA=Hs(),yA=cg(),SA=zl(),vA=pg(),bA=hg(),_A=gg(),EA=yg(),PA=Sg(),OA=vg(),$A=Eg(),xA=Pg();function AA(e=!1){let t=[_A.default,EA.default,PA.default,OA.default,$A.default,xA.default,yA.default,SA.default,gA.default,vA.default,bA.default];return e?t.push(fA.default,mA.default):t.push(pA.default,dA.default),t.push(hA.default),t}o(AA,"getApplicator");np.default=AA});var Og=h(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});var re=C(),wA={message:o(({schemaCode:e})=>(0,re.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,re._)`{format: ${e}}`,"params")},IA={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:wA,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:f,self:p}=c;if(!u.validateFormats)return;i?d():m();function d(){let g=r.scopeValue("formats",{ref:p.formats,code:u.code.formats}),y=r.const("fDef",(0,re._)`${g}[${a}]`),S=r.let("fType"),v=r.let("format");r.if((0,re._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(S,(0,re._)`${y}.type || "string"`).assign(v,(0,re._)`${y}.validate`),()=>r.assign(S,(0,re._)`"string"`).assign(v,y)),e.fail$data((0,re.or)(b(),E()));function b(){return u.strictSchema===!1?re.nil:(0,re._)`${a} && !${v}`}o(b,"unknownFmt");function E(){let P=f.$async?(0,re._)`(${y}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,re._)`${v}(${n})`,_=(0,re._)`(typeof ${v} == "function" ? ${P} : ${v}.test(${n}))`;return(0,re._)`${v} && ${v} !== true && ${S} === ${t} && !${_}`}o(E,"invalidFmt")}o(d,"validate$DataFormat");function m(){let g=p.formats[s];if(!g){b();return}if(g===!0)return;let[y,S,v]=E(g);y===t&&e.pass(P());function b(){if(u.strictSchema===!1){p.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o(b,"unknownFormat");function E(_){let A=_ instanceof RegExp?(0,re.regexpCode)(_):u.code.formats?(0,re._)`${u.code.formats}${(0,re.getProperty)(s)}`:void 0,I=r.scopeValue("formats",{key:s,ref:_,code:A});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,re._)`${I}.validate`]:["string",_,I]}o(E,"getFormat");function P(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!f.$async)throw new Error("async format in sync schema");return(0,re._)`await ${v}(${n})`}return typeof S=="function"?(0,re._)`${v}(${n})`:(0,re._)`${v}.test(${n})`}o(P,"validCondition")}o(m,"validateFormat")}};op.default=IA});var ap=h(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});var TA=Og(),CA=[TA.default];sp.default=CA});var $g=h(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});var RA=Gh(),NA=Yh(),kA=ip(),jA=ap(),qA=["title","description","default"],MA=[RA.default,NA.default,kA.default(),jA.default,qA];cp.default=MA});var Ag=h(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.DiscrError=void 0;var xg;(function(e){e.Tag="tag",e.Mapping="mapping"})(xg||(zs.DiscrError=xg={}))});var pp=h(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});var Vn=C(),up=Ag(),wg=Ji(),DA=Yi(),LA=j(),FA={message:o(({params:{discrError:e,tagName:t}})=>e===up.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:o(({params:{discrError:e,tag:t,tagName:r}})=>(0,Vn._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},HA={keyword:"discriminator",type:"object",schemaType:"object",error:FA,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:a}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),l=t.const("tag",(0,Vn._)`${r}${(0,Vn.getProperty)(c)}`);t.if((0,Vn._)`typeof ${l} == "string"`,()=>f(),()=>e.error(!1,{discrError:up.DiscrError.Tag,tag:l,tagName:c})),e.ok(u);function f(){let m=d();t.if(!1);for(let g in m)t.elseIf((0,Vn._)`${l} === ${g}`),t.assign(u,p(m[g]));t.else(),e.error(!1,{discrError:up.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}o(f,"validateMapping");function p(m){let g=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:m},g);return e.mergeEvaluated(y,Vn.Name),g}o(p,"applyTagSchema");function d(){var m;let g={},y=v(i),S=!0;for(let P=0;P<a.length;P++){let _=a[P];if(_!=null&&_.$ref&&!(0,LA.schemaHasRulesButRef)(_,s.self.RULES)){let I=_.$ref;if(_=wg.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,I),_ instanceof wg.SchemaEnv&&(_=_.schema),_===void 0)throw new DA.default(s.opts.uriResolver,s.baseId,I)}let A=(m=_==null?void 0:_.properties)===null||m===void 0?void 0:m[c];if(typeof A!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);S=S&&(y||v(_)),b(A,P)}if(!S)throw new Error(`discriminator: "${c}" must be required`);return g;function v({required:P}){return Array.isArray(P)&&P.includes(c)}function b(P,_){if(P.const)E(P.const,_);else if(P.enum)for(let A of P.enum)E(A,_);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function E(P,_){if(typeof P!="string"||P in g)throw new Error(`discriminator: "${c}" values must be unique strings`);g[P]=_}}o(d,"getMapping")}};lp.default=HA});var Ig=h((U4,VA)=>{VA.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}}});var Rg=h((se,Cg)=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.CodeGen=se.Name=se.nil=se.stringify=se.str=se._=se.KeywordCxt=void 0;var BA=Fn(),GA=$g(),UA=pp(),Tg=Ig(),ZA=["/properties"],Ks="http://json-schema.org/draft-04/schema",fp=class fp extends BA.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),GA.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(UA.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Tg,ZA):Tg;this.addMetaSchema(t,Ks,!1),this.refs["http://json-schema.org/schema"]=Ks}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ks)?Ks:void 0)}};o(fp,"Ajv");var Qs=fp;Cg.exports=se=Qs;Object.defineProperty(se,"__esModule",{value:!0});se.default=Qs;var zA=Fn();Object.defineProperty(se,"KeywordCxt",{enumerable:!0,get:o(function(){return zA.KeywordCxt},"get")});var Bn=Fn();Object.defineProperty(se,"_",{enumerable:!0,get:o(function(){return Bn._},"get")});Object.defineProperty(se,"str",{enumerable:!0,get:o(function(){return Bn.str},"get")});Object.defineProperty(se,"stringify",{enumerable:!0,get:o(function(){return Bn.stringify},"get")});Object.defineProperty(se,"nil",{enumerable:!0,get:o(function(){return Bn.nil},"get")});Object.defineProperty(se,"Name",{enumerable:!0,get:o(function(){return Bn.Name},"get")});Object.defineProperty(se,"CodeGen",{enumerable:!0,get:o(function(){return Bn.CodeGen},"get")})});var Ng=h(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});var KA={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};dp.default=KA});var kg=h(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});var QA=Ng(),WA=no(),YA=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",QA.default,WA.default];mp.default=YA});var jg=h(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});var Ws=C(),ur=Ws.operators,Ys={maximum:{okStr:"<=",ok:ur.LTE,fail:ur.GT},minimum:{okStr:">=",ok:ur.GTE,fail:ur.LT},exclusiveMaximum:{okStr:"<",ok:ur.LT,fail:ur.GTE},exclusiveMinimum:{okStr:">",ok:ur.GT,fail:ur.LTE}},JA={message:o(({keyword:e,schemaCode:t})=>(0,Ws.str)`must be ${Ys[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,Ws._)`{comparison: ${Ys[e].okStr}, limit: ${t}}`,"params")},XA={keyword:Object.keys(Ys),type:"number",schemaType:"number",$data:!0,error:JA,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Ws._)`${r} ${Ys[t].fail} ${n} || isNaN(${r})`)}};hp.default=XA});var qg=h(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});var ew=jg(),tw=gl(),rw=vl(),nw=_l(),iw=Pl(),ow=$l(),sw=Al(),aw=Cl(),cw=kl(),uw=ql(),lw=[ew.default,tw.default,rw.default,nw.default,iw.default,ow.default,sw.default,aw.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},cw.default,uw.default];gp.default=lw});var Sp=h(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.dynamicAnchor=void 0;var yp=C(),pw=Ke(),Mg=Ji(),fw=no(),dw={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>Dg(e,e.schema),"code")};function Dg(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,yp._)`${pw.default.dynamicAnchors}${(0,yp.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:mw(e);r.if((0,yp._)`!${i}`,()=>r.assign(i,s))}o(Dg,"dynamicAnchor");mo.dynamicAnchor=Dg;function mw(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:s,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,l=new Mg.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return Mg.compileSchema.call(n,l),(0,fw.getValidate)(e,l)}o(mw,"_getValidate");mo.default=dw});var vp=h(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.dynamicRef=void 0;var Lg=C(),hw=Ke(),Fg=no(),gw={keyword:"$dynamicRef",schemaType:"string",code:o(e=>Hg(e,e.schema),"code")};function Hg(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let s=t.slice(1);if(i.allErrors)a();else{let u=r.let("valid",!1);a(u),e.ok(u)}function a(u){if(i.schemaEnv.root.dynamicAnchors[s]){let l=r.let("_v",(0,Lg._)`${hw.default.dynamicAnchors}${(0,Lg.getProperty)(s)}`);r.if(l,c(l,u),c(i.validateName,u))}else c(i.validateName,u)()}o(a,"_dynamicRef");function c(u,l){return l?()=>r.block(()=>{(0,Fg.callRef)(e,u),r.let(l,!0)}):()=>(0,Fg.callRef)(e,u)}o(c,"_callRef")}o(Hg,"dynamicRef");ho.dynamicRef=Hg;ho.default=gw});var Vg=h(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});var yw=Sp(),Sw=j(),vw={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,yw.dynamicAnchor)(e,""):(0,Sw.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};bp.default=vw});var Bg=h(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});var bw=vp(),_w={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,bw.dynamicRef)(e,e.schema),"code")};_p.default=_w});var Gg=h(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});var Ew=Sp(),Pw=vp(),Ow=Vg(),$w=Bg(),xw=[Ew.default,Pw.default,Ow.default,$w.default];Ep.default=xw});var Zg=h(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});var Ug=Hs(),Aw={keyword:"dependentRequired",type:"object",schemaType:"object",error:Ug.error,code:o(e=>(0,Ug.validatePropertyDeps)(e),"code")};Pp.default=Aw});var zg=h(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});var ww=Hs(),Iw={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,ww.validateSchemaDeps)(e),"code")};Op.default=Iw});var Kg=h($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var Tw=j(),Cw={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,Tw.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};$p.default=Cw});var Qg=h(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var Rw=Zg(),Nw=zg(),kw=Kg(),jw=[Rw.default,Nw.default,kw.default];xp.default=jw});var Yg=h(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var lr=C(),Wg=j(),qw=Ke(),Mw={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,lr._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},Dw={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Mw,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=s;c instanceof lr.Name?t.if((0,lr._)`${c} !== true`,()=>t.forIn("key",n,p=>t.if(l(c,p),()=>u(p)))):c!==!0&&t.forIn("key",n,p=>c===void 0?u(p):t.if(f(c,p),()=>u(p))),s.props=!0,e.ok((0,lr._)`${i} === ${qw.default.errors}`);function u(p){if(r===!1){e.setParams({unevaluatedProperty:p}),e.error(),a||t.break();return}if(!(0,Wg.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:p,dataPropType:Wg.Type.Str},d),a||t.if((0,lr.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(p,d){return(0,lr._)`!${p} || !${p}[${d}]`}o(l,"unevaluatedDynamic");function f(p,d){let m=[];for(let g in p)p[g]===!0&&m.push((0,lr._)`${d} !== ${g}`);return(0,lr.and)(...m)}o(f,"unevaluatedStatic")}};Ap.default=Dw});var Xg=h(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});var Qr=C(),Jg=j(),Lw={message:o(({params:{len:e}})=>(0,Qr.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Qr._)`{limit: ${e}}`,"params")},Fw={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Lw,code(e){let{gen:t,schema:r,data:n,it:i}=e,s=i.items||0;if(s===!0)return;let a=t.const("len",(0,Qr._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,Qr._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,Jg.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,Qr._)`${a} <= ${s}`);t.if((0,Qr.not)(u),()=>c(u,s)),e.ok(u)}i.items=!0;function c(u,l){t.forRange("i",l,a,f=>{e.subschema({keyword:"unevaluatedItems",dataProp:f,dataPropType:Jg.Type.Num},u),i.allErrors||t.if((0,Qr.not)(u),()=>t.break())})}o(c,"validateItems")}};wp.default=Fw});var ey=h(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});var Hw=Yg(),Vw=Xg(),Bw=[Hw.default,Vw.default];Ip.default=Bw});var ty=h(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.contentVocabulary=Gn.metadataVocabulary=void 0;Gn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Gn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var ny=h(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});var Gw=kg(),Uw=qg(),Zw=ip(),zw=Gg(),Kw=Qg(),Qw=ey(),Ww=ap(),ry=ty(),Yw=[zw.default,Gw.default,Uw.default,(0,Zw.default)(!0),Ww.default,ry.metadataVocabulary,ry.contentVocabulary,Kw.default,Qw.default];Tp.default=Yw});var iy=h((vL,Jw)=>{Jw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var oy=h((bL,Xw)=>{Xw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var sy=h((_L,eI)=>{eI.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var ay=h((EL,tI)=>{tI.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var cy=h((PL,rI)=>{rI.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var uy=h((OL,nI)=>{nI.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var ly=h(($L,iI)=>{iI.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var py=h((xL,oI)=>{oI.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var fy=h(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});var sI=iy(),aI=oy(),cI=sy(),uI=ay(),lI=cy(),pI=uy(),fI=ly(),dI=py(),mI=["/properties"];function hI(e){return[sI,aI,cI,uI,lI,t(this,pI),fI,t(this,dI)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,mI):n}o(t,"with$data")}o(hI,"addMetaSchema2020");Cp.default=hI});var dy=h((Q,Np)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.MissingRefError=Q.ValidationError=Q.CodeGen=Q.Name=Q.nil=Q.stringify=Q.str=Q._=Q.KeywordCxt=Q.Ajv2020=void 0;var gI=Fn(),yI=ny(),SI=pp(),vI=fy(),Rp="https://json-schema.org/draft/2020-12/schema",kp=class kp extends gI.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),yI.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(SI.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(vI.default.call(this,t),this.refs["http://json-schema.org/schema"]=Rp)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Rp)?Rp:void 0)}};o(kp,"Ajv2020");var Un=kp;Q.Ajv2020=Un;Np.exports=Q=Un;Np.exports.Ajv2020=Un;Object.defineProperty(Q,"__esModule",{value:!0});Q.default=Un;var bI=Wi();Object.defineProperty(Q,"KeywordCxt",{enumerable:!0,get:o(function(){return bI.KeywordCxt},"get")});var Zn=C();Object.defineProperty(Q,"_",{enumerable:!0,get:o(function(){return Zn._},"get")});Object.defineProperty(Q,"str",{enumerable:!0,get:o(function(){return Zn.str},"get")});Object.defineProperty(Q,"stringify",{enumerable:!0,get:o(function(){return Zn.stringify},"get")});Object.defineProperty(Q,"nil",{enumerable:!0,get:o(function(){return Zn.nil},"get")});Object.defineProperty(Q,"Name",{enumerable:!0,get:o(function(){return Zn.Name},"get")});Object.defineProperty(Q,"CodeGen",{enumerable:!0,get:o(function(){return Zn.CodeGen},"get")});var _I=Is();Object.defineProperty(Q,"ValidationError",{enumerable:!0,get:o(function(){return _I.default},"get")});var EI=Yi();Object.defineProperty(Q,"MissingRefError",{enumerable:!0,get:o(function(){return EI.default},"get")})});var my=h((TL,PI)=>{PI.exports={id:"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v1.2/apiDeclaration.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swaggerVersion","basePath","apis"],properties:{swaggerVersion:{enum:["1.2"]},apiVersion:{type:"string"},basePath:{type:"string",format:"uri",pattern:"^https?://"},resourcePath:{type:"string",format:"uri",pattern:"^/"},apis:{type:"array",items:{$ref:"#/definitions/apiObject"}},models:{type:"object",additionalProperties:{$ref:"modelsObject.json#"}},produces:{$ref:"#/definitions/mimeTypeArray"},consumes:{$ref:"#/definitions/mimeTypeArray"},authorizations:{$ref:"authorizationObject.json#"}},additionalProperties:!1,definitions:{apiObject:{type:"object",required:["path","operations"],properties:{path:{type:"string",format:"uri-template",pattern:"^/"},description:{type:"string"},operations:{type:"array",items:{$ref:"operationObject.json#"}}},additionalProperties:!1},mimeTypeArray:{type:"array",items:{type:"string",format:"mime-type"},uniqueItems:!0}}}});var hy=h((CL,OI)=>{OI.exports={title:"A JSON Schema for Swagger 2.0 API.",id:"http://swagger.io/v2/schema.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{type:"string",enum:["2.0"],description:"The Swagger version of this document."},info:{$ref:"#/definitions/info"},host:{type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",description:"The host (name or ip) of the API. Example: 'swagger.io'"},basePath:{type:"string",pattern:"^/",description:"The base path to the API. Example: '/api'."},schemes:{$ref:"#/definitions/schemesList"},consumes:{description:"A list of MIME types accepted by the API.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},paths:{$ref:"#/definitions/paths"},definitions:{$ref:"#/definitions/definitions"},parameters:{$ref:"#/definitions/parameterDefinitions"},responses:{$ref:"#/definitions/responseDefinitions"},security:{$ref:"#/definitions/security"},securityDefinitions:{$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},termsOfService:{type:"string",description:"The terms of service for the API."},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:!1,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},paths:{type:"object",description:"Relative paths to the individual endpoints. They must be relative to the 'basePath'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^/":{$ref:"#/definitions/pathItem"}},additionalProperties:!1},definitions:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"One or more JSON objects describing the schemas being consumed and produced by the API."},parameterDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"One or more JSON representations for parameters"},responseDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/response"},description:"One or more JSON representations for responses"},externalDocs:{type:"object",additionalProperties:!1,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},examples:{type:"object",additionalProperties:!0},mimeType:{type:"string",description:"The MIME type of the HTTP message."},operation:{type:"object",required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{type:"string"},uniqueItems:!0},summary:{type:"string",description:"A brief summary of the operation."},description:{type:"string",description:"A longer description of the operation, GitHub Flavored Markdown is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",description:"A unique identifier of the operation."},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},consumes:{description:"A list of MIME types the API can consume.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},parameters:{$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean",default:!1},security:{$ref:"#/definitions/security"}}},pathItem:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{$ref:"#/definitions/operation"},delete:{$ref:"#/definitions/operation"},options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},patch:{$ref:"#/definitions/operation"},parameters:{$ref:"#/definitions/parametersList"}}},responses:{type:"object",description:"Response objects names can either be any valid HTTP status code or 'default'.",minProperties:1,additionalProperties:!1,patternProperties:{"^([0-9]{3})$|^(default)$":{$ref:"#/definitions/responseValue"},"^x-":{$ref:"#/definitions/vendorExtension"}},not:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}}},responseValue:{oneOf:[{$ref:"#/definitions/response"},{$ref:"#/definitions/jsonReference"}]},response:{type:"object",required:["description"],properties:{description:{type:"string"},schema:{oneOf:[{$ref:"#/definitions/schema"},{$ref:"#/definitions/fileSchema"}]},headers:{$ref:"#/definitions/headers"},examples:{$ref:"#/definitions/examples"}},additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},headers:{type:"object",additionalProperties:{$ref:"#/definitions/header"}},header:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:!0,additionalItems:!0},bodyParameter:{type:"object",required:["name","in","schema"],patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},in:{type:"string",description:"Determines the location of the parameter.",enum:["body"]},required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},headerParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["header"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},queryParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean",enum:[!0],description:"Determines whether or not this parameter is required or optional."},in:{type:"string",description:"Determines the location of the parameter.",enum:["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",required:["name","in","type"],oneOf:[{$ref:"#/definitions/headerParameterSubSchema"},{$ref:"#/definitions/formDataParameterSubSchema"},{$ref:"#/definitions/queryParameterSubSchema"},{$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},fileSchema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["type"],properties:{format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{type:"string",enum:["file"]},readOnly:{type:"boolean",default:!1},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},primitivesItems:{type:"object",additionalProperties:!1,properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},security:{type:"array",items:{$ref:"#/definitions/securityRequirement"},uniqueItems:!0},securityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:!0}},xml:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},tag:{type:"object",additionalProperties:!1,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},securityDefinitions:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"},{$ref:"#/definitions/apiKeySecurity"},{$ref:"#/definitions/oauth2ImplicitSecurity"},{$ref:"#/definitions/oauth2PasswordSecurity"},{$ref:"#/definitions/oauth2ApplicationSecurity"},{$ref:"#/definitions/oauth2AccessCodeSecurity"}]}},basicAuthenticationSecurity:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["basic"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},apiKeySecurity:{type:"object",additionalProperties:!1,required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ImplicitSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["implicit"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["application"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["accessCode"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array",items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{type:"array",description:"The parameters needed to send a valid API call.",additionalItems:!1,items:{oneOf:[{$ref:"#/definitions/parameter"},{$ref:"#/definitions/jsonReference"}]},uniqueItems:!0},schemesList:{type:"array",description:"The transfer protocol of the API.",items:{type:"string",enum:["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes"],default:"csv"},collectionFormatWithMulti:{type:"string",enum:["csv","ssv","tsv","pipes","multi"],default:"csv"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{type:"string"}}}}}});var gy=h((RL,$I)=>{$I.exports={id:"https://spec.openapis.org/oas/3.0/schema/2019-04-02",$schema:"http://json-schema.org/draft-04/schema#",description:"Validation schema for OpenAPI Specification 3.0.X.",type:"object",required:["openapi","info","paths"],properties:{openapi:{type:"string",pattern:"^3\\.0\\.\\d(-.+)?$"},info:{$ref:"#/definitions/Info"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},tags:{type:"array",items:{$ref:"#/definitions/Tag"},uniqueItems:!0},paths:{$ref:"#/definitions/Paths"},components:{$ref:"#/definitions/Components"}},patternProperties:{"^x-":{}},additionalProperties:!1,definitions:{Reference:{type:"object",required:["$ref"],patternProperties:{"^\\$ref$":{type:"string",format:"uri-reference"}}},Info:{type:"object",required:["title","version"],properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri-reference"},contact:{$ref:"#/definitions/Contact"},license:{$ref:"#/definitions/License"},version:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Contact:{type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"},email:{type:"string",format:"email"}},patternProperties:{"^x-":{}},additionalProperties:!1},License:{type:"object",required:["name"],properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Server:{type:"object",required:["url"],properties:{url:{type:"string"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/definitions/ServerVariable"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ServerVariable:{type:"object",required:["default"],properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Components:{type:"object",properties:{schemas:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}}},responses:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Response"}]}}},parameters:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Parameter"}]}}},examples:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Example"}]}}},requestBodies:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/RequestBody"}]}}},headers:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Header"}]}}},securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},links:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Link"}]}}},callbacks:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Callback"}]}}}},patternProperties:{"^x-":{}},additionalProperties:!1},Schema:{type:"object",properties:{title:{type:"string"},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0,default:0},pattern:{type:"string",format:"regex"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0,default:0},uniqueItems:{type:"boolean",default:!1},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0,default:0},required:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},enum:{type:"array",items:{},minItems:1,uniqueItems:!1},type:{type:"string",enum:["array","boolean","integer","number","object","string"]},not:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},allOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},oneOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},anyOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},properties:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"},{type:"boolean"}],default:!0},description:{type:"string"},format:{type:"string"},default:{},nullable:{type:"boolean",default:!1},discriminator:{$ref:"#/definitions/Discriminator"},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},example:{},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},deprecated:{type:"boolean",default:!1},xml:{$ref:"#/definitions/XML"}},patternProperties:{"^x-":{}},additionalProperties:!1},Discriminator:{type:"object",required:["propertyName"],properties:{propertyName:{type:"string"},mapping:{type:"object",additionalProperties:{type:"string"}}}},XML:{type:"object",properties:{name:{type:"string"},namespace:{type:"string",format:"uri"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},Response:{type:"object",required:["description"],properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{$ref:"#/definitions/Reference"}]}},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},links:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Link"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1},MediaType:{type:"object",properties:{schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}},encoding:{type:"object",additionalProperties:{$ref:"#/definitions/Encoding"}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"}]},Example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:{},externalValue:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Header:{type:"object",properties:{description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string",enum:["simple"],default:"simple"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"}]},Paths:{type:"object",patternProperties:{"^\\/":{$ref:"#/definitions/PathItem"},"^x-":{}},additionalProperties:!1},PathItem:{type:"object",properties:{$ref:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/definitions/Operation"},"^x-":{}},additionalProperties:!1},Operation:{type:"object",required:["responses"],properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},operationId:{type:"string"},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0},requestBody:{oneOf:[{$ref:"#/definitions/RequestBody"},{$ref:"#/definitions/Reference"}]},responses:{$ref:"#/definitions/Responses"},callbacks:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Callback"},{$ref:"#/definitions/Reference"}]}},deprecated:{type:"boolean",default:!1},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},servers:{type:"array",items:{$ref:"#/definitions/Server"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Responses:{type:"object",properties:{default:{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]}},patternProperties:{"^[1-5](?:\\d{2}|XX)$":{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]},"^x-":{}},minProperties:1,additionalProperties:!1},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},Tag:{type:"object",required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExternalDocumentation:{type:"object",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExampleXORExamples:{description:"Example and examples are mutually exclusive",not:{required:["example","examples"]}},SchemaXORContent:{description:"Schema and content are mutually exclusive, at least one is required",not:{required:["schema","content"]},oneOf:[{required:["schema"]},{required:["content"],description:"Some properties are not allowed if content is present",allOf:[{not:{required:["style"]}},{not:{required:["explode"]}},{not:{required:["allowReserved"]}},{not:{required:["example"]}},{not:{required:["examples"]}}]}]},Parameter:{type:"object",properties:{name:{type:"string"},in:{type:"string"},description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,required:["name","in"],allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"},{$ref:"#/definitions/ParameterLocation"}]},ParameterLocation:{description:"Parameter location",oneOf:[{description:"Parameter in path",required:["required"],properties:{in:{enum:["path"]},style:{enum:["matrix","label","simple"],default:"simple"},required:{enum:[!0]}}},{description:"Parameter in query",properties:{in:{enum:["query"]},style:{enum:["form","spaceDelimited","pipeDelimited","deepObject"],default:"form"}}},{description:"Parameter in header",properties:{in:{enum:["header"]},style:{enum:["simple"],default:"simple"}}},{description:"Parameter in cookie",properties:{in:{enum:["cookie"]},style:{enum:["form"],default:"form"}}}]},RequestBody:{type:"object",required:["content"],properties:{description:{type:"string"},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},required:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},SecurityScheme:{oneOf:[{$ref:"#/definitions/APIKeySecurityScheme"},{$ref:"#/definitions/HTTPSecurityScheme"},{$ref:"#/definitions/OAuth2SecurityScheme"},{$ref:"#/definitions/OpenIdConnectSecurityScheme"}]},APIKeySecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},HTTPSecurityScheme:{type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},bearerFormat:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-":{}},additionalProperties:!1,oneOf:[{description:"Bearer",properties:{scheme:{enum:["bearer"]}}},{description:"Non Bearer",not:{required:["bearerFormat"]},properties:{scheme:{not:{enum:["bearer"]}}}}]},OAuth2SecurityScheme:{type:"object",required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},flows:{$ref:"#/definitions/OAuthFlows"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OpenIdConnectSecurityScheme:{type:"object",required:["type","openIdConnectUrl"],properties:{type:{type:"string",enum:["openIdConnect"]},openIdConnectUrl:{type:"string",format:"uri-reference"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OAuthFlows:{type:"object",properties:{implicit:{$ref:"#/definitions/ImplicitOAuthFlow"},password:{$ref:"#/definitions/PasswordOAuthFlow"},clientCredentials:{$ref:"#/definitions/ClientCredentialsFlow"},authorizationCode:{$ref:"#/definitions/AuthorizationCodeOAuthFlow"}},patternProperties:{"^x-":{}},additionalProperties:!1},ImplicitOAuthFlow:{type:"object",required:["authorizationUrl","scopes"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},PasswordOAuthFlow:{type:"object",required:["tokenUrl"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ClientCredentialsFlow:{type:"object",required:["tokenUrl"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},AuthorizationCodeOAuthFlow:{type:"object",required:["authorizationUrl","tokenUrl"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Link:{type:"object",properties:{operationId:{type:"string"},operationRef:{type:"string",format:"uri-reference"},parameters:{type:"object",additionalProperties:{}},requestBody:{},description:{type:"string"},server:{$ref:"#/definitions/Server"}},patternProperties:{"^x-":{}},additionalProperties:!1,not:{description:"Operation Id and Operation Ref are mutually exclusive",required:["operationId","operationRef"]}},Callback:{type:"object",additionalProperties:{$ref:"#/definitions/PathItem"},patternProperties:{"^x-":{}}},Encoding:{type:"object",properties:{contentType:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/definitions/Header"}},style:{type:"string",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1}},additionalProperties:!1}}}});var yy=h((NL,xI)=>{xI.exports={$id:"https://spec.openapis.org/oas/3.1/schema/2021-04-15",$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$"},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{$ref:"#/$defs/uri",default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array",items:{$ref:"#/$defs/server"}},paths:{$ref:"#/$defs/paths"},webhooks:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["openapi","info"],anyOf:[{required:["paths"]},{required:["components"]},{required:["webhooks"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{type:"object",properties:{title:{type:"string"},summary:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:{$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"}},required:["title","version"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},contact:{type:"object",properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},license:{type:"object",properties:{name:{type:"string"},identifier:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["name"],oneOf:[{required:["identifier"]},{required:["url"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},server:{type:"object",properties:{url:{$ref:"#/$defs/uri"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/$defs/server-variable"}}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"server-variable":{type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1},default:{type:"string"},descriptions:{type:"string"}},required:["default"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{type:"object",properties:{schemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"}},responses:{type:"object",additionalProperties:{$ref:"#/$defs/response-or-reference"}},parameters:{type:"object",additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}},requestBodies:{type:"object",additionalProperties:{$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"}},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}}},patternProperties:{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{type:"object",patternProperties:{"^/":{$ref:"#/$defs/path-item"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{type:"object",properties:{summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/$defs/server"}},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/path-item"}},operation:{type:"object",properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"},operationId:{type:"string"},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},requestBody:{$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{type:"array",items:{$ref:"#/$defs/server"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"external-documentation":{type:"object",properties:{description:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},parameter:{type:"object",properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"},content:{$ref:"#/$defs/content"}},required:["in"],oneOf:[{required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{properties:{style:{type:"string"},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],$defs:{"styles-for-path":{if:{properties:{in:{const:"path"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}},"styles-for-header":{if:{properties:{in:{const:"header"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["simple"]}}}},"styles-for-query":{if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]}}}},"styles-for-cookie":{if:{properties:{in:{const:"cookie"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form"]}}}},"styles-for-form":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"parameter-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/parameter"}},"request-body":{type:"object",properties:{description:{type:"string"},content:{$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}},required:["content"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"request-body-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/request-body"}},content:{type:"object",additionalProperties:{$ref:"#/$defs/media-type"},propertyNames:{format:"media-range"}},"media-type":{type:"object",properties:{schema:{$dynamicRef:"#meta"},encoding:{type:"object",additionalProperties:{$ref:"#/$defs/encoding"}}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/examples"}],unevaluatedProperties:!1},encoding:{type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/encoding/$defs/explode-default"}],unevaluatedProperties:!1,$defs:{"explode-default":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}},responses:{type:"object",properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{"^[1-5][0-9X]{2}$":{$ref:"#/$defs/response-or-reference"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},response:{type:"object",properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}}},required:["description"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"response-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{type:"object",$ref:"#/$defs/specification-extensions",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/callbacks"}},example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:!0,externalValue:{$ref:"#/$defs/uri"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"example-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"}},link:{type:"object",properties:{operationRef:{$ref:"#/$defs/uri"},operationId:!0,parameters:{$ref:"#/$defs/map-of-strings"},requestBody:!0,description:{type:"string"},body:{$ref:"#/$defs/server"}},oneOf:[{required:["operationRef"]},{required:["operationId"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"link-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{type:"object",properties:{description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"}},dependentSchemas:{schema:{properties:{style:{default:"simple",enum:["simple"]},explode:{default:!1,type:"boolean"},allowReserved:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"}},$ref:"#/$defs/examples"},content:{properties:{content:{$ref:"#/$defs/content"}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"header-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{type:"object",properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["name"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{type:"object",properties:{$ref:{$ref:"#/$defs/uri"},summary:{type:"string"},description:{type:"string"}},unevaluatedProperties:!1},schema:{$dynamicAnchor:"meta",type:["object","boolean"]},"security-scheme":{type:"object",properties:{type:{enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{type:"string"}},required:["type"],allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/security-scheme/$defs/type-apikey"},{$ref:"#/$defs/security-scheme/$defs/type-http"},{$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1,$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}},required:["type"]},then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}},required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}},required:["type"]},then:{properties:{scheme:{type:"string"}},required:["scheme"]}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{const:"bearer"}},required:["type","scheme"]},then:{properties:{bearerFormat:{type:"string"}},required:["scheme"]}},"type-oauth2":{if:{properties:{type:{const:"oauth2"}},required:["type"]},then:{properties:{flows:{$ref:"#/$defs/oauth-flows"}},required:["flows"]}},"type-oidc":{if:{properties:{type:{const:"openIdConnect"}},required:["type"]},then:{properties:{openIdConnectUrl:{$ref:"#/$defs/uri"}},required:["openIdConnectUrl"]}}}},"security-scheme-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"},password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{$ref:"#/$defs/oauth-flows/$defs/authorization-code"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{implicit:{type:"object",properties:{authorizationUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string"},tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}},"security-requirement":{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},"specification-extensions":{patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}}},uri:{type:"string",format:"uri"},"map-of-strings":{type:"object",additionalProperties:{type:"string"}}}}});var Sy=h((ue,zn)=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.openapi=ue.openapiV31=ue.openapiV3=ue.openapiV2=ue.openapiV1=void 0;ue.openapiV1=my();ue.openapiV2=hy();ue.openapiV3=gy();ue.openapiV31=yy();ue.openapi={v1:ue.openapiV1,v2:ue.openapiV2,v3:ue.openapiV3,v31:ue.openapiV31};ue.default=ue.openapi;typeof zn=="object"&&typeof zn.exports=="object"&&(zn.exports=Object.assign(zn.exports.default,zn.exports))});var Mp=h((kL,vy)=>{"use strict";var AI=ls(),{ono:wI}=ot(),II=Rg(),TI=dy(),{openapi:jp}=Sy();vy.exports=CI;function CI(e){let t,r;if(e.swagger)r=jp.v2,t=qp();else if(e.openapi.startsWith("3.1")){r=jp.v31;let i=r.$defs.schema;delete i.$dynamicAnchor,r.$defs.components.properties.schemas.additionalProperties=i,r.$defs.header.dependentSchemas.schema.properties.schema=i,r.$defs["media-type"].properties.schema=i,r.$defs.parameter.properties.schema=i,t=qp(!1)}else r=jp.v3,t=qp();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
13
+ `+RI(i);throw wI.syntax(i,{details:i},s)}}o(CI,"validateSchema");function qp(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new II(t):new TI(t)}o(qp,"initializeAjv");function RI(e,t){t=t||" ";let r="";for(let n of e)r+=AI.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
14
+ `);return r}o(RI,"formatAjvError")});var _y=h((qL,by)=>{"use strict";by.exports=["get","put","post","delete","options","head","patch"]});var Fp=h((ML,$y)=>{"use strict";var NI=ls(),{ono:Ee}=ot(),kI=_y(),Dp=["array","boolean","integer","number","string"],Py=["array","boolean","integer","number","string","object","null",void 0];$y.exports=jI;function jI(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let s=e.paths[i],a="/paths"+i;s&&i.indexOf("/")===0&&qI(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;Oy(s,a)}}o(jI,"validateSpec");function qI(e,t,r,n){for(let i of kI){let s=t[i],a=r+"/"+i;if(s){let c=s.operationId;if(c)if(n.indexOf(c)===-1)n.push(c);else throw Ee.syntax(`Validation failed. Duplicate operation id '${c}'`);MI(e,t,r,s,a);let u=Object.keys(s.responses||{});for(let l of u){let f=s.responses[l],p=a+"/responses/"+l;HI(l,f||{},p)}}}}o(qI,"validatePath");function MI(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{Ey(s)}catch(u){throw Ee.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{Ey(a)}catch(u){throw Ee.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=s.reduce((u,l)=>(u.some(p=>p.in===l.in&&p.name===l.name)||u.push(l),u),a.slice());DI(c,i),LI(c,r,i),FI(c,e,n,i)}o(MI,"validateParameters");function DI(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw Ee.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw Ee.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(DI,"validateBodyParameters");function LI(e,t,r){let n=t.match(NI.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw Ee.syntax(`Validation failed. ${r} has multiple path placeholders named ${n[i]}`);e=e.filter(i=>i.in==="path");for(let i of e){if(i.required!==!0)throw Ee.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let s=n.indexOf("{"+i.name+"}");if(s===-1)throw Ee.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(s,1)}if(n.length>0)throw Ee.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(LI,"validatePathParameters");function FI(e,t,r,n){for(let i of e){let s=n+"/parameters/"+i.name,a,c;switch(i.in){case"body":a=i.schema,c=Py;break;case"formData":a=i,c=Dp.concat("file");break;default:a=i,c=Dp}if(Lp(a,s,c),Oy(a,s),a.type==="file"){let u=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>u.test(d)||l.test(d)))throw Ee.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(FI,"validateParameterTypes");function Ey(e){for(let t=0;t<e.length-1;t++){let r=e[t];for(let n=t+1;n<e.length;n++){let i=e[n];if(r.name===i.name&&r.in===i.in)throw Ee.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(Ey,"checkForDuplicates");function HI(e,t,r){if(e!=="default"&&(e<100||e>599))throw Ee.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let s=t.headers[i],a=r+"/headers/"+i;Lp(s,a,Dp)}if(t.schema){let i=Py.concat("file");if(i.indexOf(t.schema.type)===-1)throw Ee.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Lp(t.schema,r+"/schema",i)}}o(HI,"validateResponse");function Lp(e,t,r){if(r.indexOf(e.type)===-1)throw Ee.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw Ee.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(Lp,"validateSchema");function Oy(e,t){function r(n,i){if(n.properties)for(let s in n.properties)n.properties.hasOwnProperty(s)&&(i[s]=n.properties[s]);if(n.allOf)for(let s of n.allOf)r(s,i)}if(o(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw Ee.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(Oy,"validateRequiredPropertiesExist")});var pt=h(lt=>{"use strict";var{Ono:xy}=ot(),{stripHash:Ay,toFileSystemPath:VI}=He(),Kn,pr=lt.JSONParserError=(Kn=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,xy.extend(this)}},o(Kn,"JSONParserError"),Kn);fr(pr);var Wr,wy=lt.JSONParserErrorGroup=(Wr=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${VI(t.$refs._root$Ref.path)}'`,xy.extend(this)}static getParserErrors(t){let r=[];for(let n of Object.values(t.$refs._$refs))n.errors&&r.push(...n.errors);return r}get errors(){return Wr.getParserErrors(this.files)}},o(Wr,"JSONParserErrorGroup"),Wr);fr(wy);var Qn,BI=lt.ParserError=(Qn=class extends pr{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(Qn,"ParserError"),Qn);fr(BI);var Wn,GI=lt.UnmatchedParserError=(Wn=class extends pr{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(Wn,"UnmatchedParserError"),Wn);fr(GI);var Yn,UI=lt.ResolverError=(Yn=class extends pr{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(Yn,"ResolverError"),Yn);fr(UI);var Jn,ZI=lt.UnmatchedResolverError=(Jn=class extends pr{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(Jn,"UnmatchedResolverError"),Jn);fr(ZI);var Xn,zI=lt.MissingPointerError=(Xn=class extends pr{constructor(t,r){super(`Token "${t}" does not exist.`,Ay(r)),this.code="EMISSINGPOINTER"}},o(Xn,"MissingPointerError"),Xn);fr(zI);var ei,KI=lt.InvalidPointerError=(ei=class extends pr{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,Ay(r)),this.code="EINVALIDPOINTER"}},o(ei,"InvalidPointerError"),ei);fr(KI);function fr(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(fr,"setErrorName");lt.isHandledError=function(e){return e instanceof pr||e instanceof wy};lt.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var Ty=h((HL,Iy)=>{"use strict";var{ParserError:QI}=pt();Iy.exports={order:100,allowEmpty:!0,canParse:".json",async parse(e){let t=e.data;if(Buffer.isBuffer(t)&&(t=t.toString()),typeof t=="string"){if(t.trim().length===0)return;try{return JSON.parse(t)}catch(r){throw new QI(r.message,e.url)}}else return t}}});var Jr=h((VL,Yr)=>{"use strict";function Cy(e){return typeof e>"u"||e===null}o(Cy,"isNothing");function WI(e){return typeof e=="object"&&e!==null}o(WI,"isObject");function YI(e){return Array.isArray(e)?e:Cy(e)?[]:[e]}o(YI,"toArray");function JI(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}o(JI,"extend");function XI(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(XI,"repeat");function eT(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(eT,"isNegativeZero");Yr.exports.isNothing=Cy;Yr.exports.isObject=WI;Yr.exports.toArray=YI;Yr.exports.repeat=XI;Yr.exports.isNegativeZero=eT;Yr.exports.extend=JI});var ti=h((GL,Ry)=>{"use strict";function go(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}o(go,"YAMLException");go.prototype=Object.create(Error.prototype);go.prototype.constructor=go;go.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");Ry.exports=go});var jy=h((ZL,ky)=>{"use strict";var Ny=Jr();function Hp(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(Hp,"Mark");Hp.prototype.getSnippet=o(function(t,r){var n,i,s,a,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
15
15
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(s="",a=this.position;a<this.buffer.length&&`\0\r
16
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){s=" ... ",a-=5;break}return c=this.buffer.slice(i,a),hy.repeat(" ",t)+n+c+s+`
17
- `+hy.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Op.prototype.toString=o(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
18
- `+r)),n},"toString");gy.exports=Op});var ie=h((b8,Sy)=>{"use strict";var vy=Kn(),RI=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],CI=["scalar","sequence","mapping"];function NI(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(NI,"compileStyleAliases");function kI(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(RI.indexOf(r)===-1)throw new vy('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=NI(t.styleAliases||null),CI.indexOf(this.kind)===-1)throw new vy('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(kI,"Type");Sy.exports=kI});var Kr=h((P8,_y)=>{"use strict";var by=zr(),Ls=Kn(),jI=ie();function xp(e,t,r){var n=[];return e.include.forEach(function(i){r=xp(i,t,r)}),e[t].forEach(function(i){r.forEach(function(s,a){s.tag===i.tag&&s.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,s){return n.indexOf(s)===-1})}o(xp,"compileList");function qI(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(o(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}o(qI,"compileMap");function Qn(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new Ls("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=xp(this,"implicit",[]),this.compiledExplicit=xp(this,"explicit",[]),this.compiledTypeMap=qI(this.compiledImplicit,this.compiledExplicit)}o(Qn,"Schema");Qn.DEFAULT=null;Qn.create=o(function(){var t,r;switch(arguments.length){case 1:t=Qn.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Ls("Wrong number of arguments for Schema.create function")}if(t=by.toArray(t),r=by.toArray(r),!t.every(function(n){return n instanceof Qn}))throw new Ls("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof jI}))throw new Ls("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Qn({include:t,explicit:r})},"createSchema");_y.exports=Qn});var Ey=h(($8,Py)=>{"use strict";var MI=ie();Py.exports=new MI("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var Oy=h((x8,$y)=>{"use strict";var DI=ie();$y.exports=new DI("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var Ay=h((w8,xy)=>{"use strict";var LI=ie();xy.exports=new LI("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var Fs=h((T8,wy)=>{"use strict";var FI=Kr();wy.exports=new FI({explicit:[Ey(),Oy(),Ay()]})});var Ty=h((R8,Iy)=>{"use strict";var HI=ie();function VI(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(VI,"resolveYamlNull");function BI(){return null}o(BI,"constructYamlNull");function UI(e){return e===null}o(UI,"isNull");Iy.exports=new HI("tag:yaml.org,2002:null",{kind:"scalar",resolve:VI,construct:BI,predicate:UI,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var Cy=h((N8,Ry)=>{"use strict";var GI=ie();function ZI(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}o(ZI,"resolveYamlBoolean");function zI(e){return e==="true"||e==="True"||e==="TRUE"}o(zI,"constructYamlBoolean");function KI(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(KI,"isBoolean");Ry.exports=new GI("tag:yaml.org,2002:bool",{kind:"scalar",resolve:ZI,construct:zI,predicate:KI,represent:{lowercase:o(function(e){return e?"true":"false"},"lowercase"),uppercase:o(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var ky=h((j8,Ny)=>{"use strict";var QI=zr(),WI=ie();function YI(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(YI,"isHexCode");function JI(e){return 48<=e&&e<=55}o(JI,"isOctCode");function XI(e){return 48<=e&&e<=57}o(XI,"isDecCode");function eT(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!YI(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!JI(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(i===":")break;if(!XI(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(eT,"resolveYamlInteger");function tT(e){var t=e,r=1,n,i,s=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){s.unshift(parseInt(a,10))}),t=0,i=1,s.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}o(tT,"constructYamlInteger");function rT(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!QI.isNegativeZero(e)}o(rT,"isInteger");Ny.exports=new WI("tag:yaml.org,2002:int",{kind:"scalar",resolve:eT,construct:tT,predicate:rT,represent:{binary:o(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:o(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:o(function(e){return e.toString(10)},"decimal"),hexadecimal:o(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var My=h((M8,qy)=>{"use strict";var jy=zr(),nT=ie(),iT=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function oT(e){return!(e===null||!iT.test(e)||e[e.length-1]==="_")}o(oT,"resolveYamlFloat");function sT(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(s){i.unshift(parseFloat(s,10))}),t=0,n=1,i.forEach(function(s){t+=s*n,n*=60}),r*t):r*parseFloat(t,10)}o(sT,"constructYamlFloat");var aT=/^[-+]?[0-9]+e/;function cT(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(jy.isNegativeZero(e))return"-0.0";return r=e.toString(10),aT.test(r)?r.replace("e",".e"):r}o(cT,"representYamlFloat");function uT(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||jy.isNegativeZero(e))}o(uT,"isFloat");qy.exports=new nT("tag:yaml.org,2002:float",{kind:"scalar",resolve:oT,construct:sT,predicate:uT,represent:cT,defaultStyle:"lowercase"})});var Ap=h((L8,Dy)=>{"use strict";var lT=Kr();Dy.exports=new lT({include:[Fs()],implicit:[Ty(),Cy(),ky(),My()]})});var wp=h((F8,Ly)=>{"use strict";var pT=Kr();Ly.exports=new pT({include:[Ap()]})});var By=h((H8,Vy)=>{"use strict";var fT=ie(),Fy=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Hy=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function dT(e){return e===null?!1:Fy.exec(e)!==null||Hy.exec(e)!==null}o(dT,"resolveYamlTimestamp");function mT(e){var t,r,n,i,s,a,c,u=0,l=null,f,p,d;if(t=Fy.exec(e),t===null&&(t=Hy.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],a=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],p=+(t[11]||0),l=(f*60+p)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,s,a,c,u)),l&&d.setTime(d.getTime()-l),d}o(mT,"constructYamlTimestamp");function hT(e){return e.toISOString()}o(hT,"representYamlTimestamp");Vy.exports=new fT("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:dT,construct:mT,instanceOf:Date,represent:hT})});var Gy=h((B8,Uy)=>{"use strict";var gT=ie();function yT(e){return e==="<<"||e===null}o(yT,"resolveYamlMerge");Uy.exports=new gT("tag:yaml.org,2002:merge",{kind:"scalar",resolve:yT})});var Ky=h((G8,zy)=>{"use strict";var Qr;try{Zy=require,Qr=Zy("buffer").Buffer}catch{}var Zy,vT=ie(),Ip=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
19
- \r`;function ST(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Ip;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}o(ST,"resolveYamlBinary");function bT(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Ip,a=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),Qr?Qr.from?Qr.from(c):new Qr(c):c}o(bT,"constructYamlBinary");function _T(e){var t="",r=0,n,i,s=e.length,a=Ip;for(n=0;n<s;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}o(_T,"representYamlBinary");function PT(e){return Qr&&Qr.isBuffer(e)}o(PT,"isBinary");zy.exports=new vT("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ST,construct:bT,predicate:PT,represent:_T})});var Wy=h((z8,Qy)=>{"use strict";var ET=ie(),$T=Object.prototype.hasOwnProperty,OT=Object.prototype.toString;function xT(e){if(e===null)return!0;var t=[],r,n,i,s,a,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],a=!1,OT.call(i)!=="[object Object]")return!1;for(s in i)if($T.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}o(xT,"resolveYamlOmap");function AT(e){return e!==null?e:[]}o(AT,"constructYamlOmap");Qy.exports=new ET("tag:yaml.org,2002:omap",{kind:"sequence",resolve:xT,construct:AT})});var Jy=h((Q8,Yy)=>{"use strict";var wT=ie(),IT=Object.prototype.toString;function TT(e){if(e===null)return!0;var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],IT.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(TT,"resolveYamlPairs");function RT(e){if(e===null)return[];var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}o(RT,"constructYamlPairs");Yy.exports=new wT("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:TT,construct:RT})});var e0=h((Y8,Xy)=>{"use strict";var CT=ie(),NT=Object.prototype.hasOwnProperty;function kT(e){if(e===null)return!0;var t,r=e;for(t in r)if(NT.call(r,t)&&r[t]!==null)return!1;return!0}o(kT,"resolveYamlSet");function jT(e){return e!==null?e:{}}o(jT,"constructYamlSet");Xy.exports=new CT("tag:yaml.org,2002:set",{kind:"mapping",resolve:kT,construct:jT})});var Wn=h((X8,t0)=>{"use strict";var qT=Kr();t0.exports=new qT({include:[wp()],implicit:[By(),Gy()],explicit:[Ky(),Wy(),Jy(),e0()]})});var n0=h((eL,r0)=>{"use strict";var MT=ie();function DT(){return!0}o(DT,"resolveJavascriptUndefined");function LT(){}o(LT,"constructJavascriptUndefined");function FT(){return""}o(FT,"representJavascriptUndefined");function HT(e){return typeof e>"u"}o(HT,"isUndefined");r0.exports=new MT("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:DT,construct:LT,predicate:HT,represent:FT})});var o0=h((rL,i0)=>{"use strict";var VT=ie();function BT(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}o(BT,"resolveJavascriptRegExp");function UT(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}o(UT,"constructJavascriptRegExp");function GT(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(GT,"representJavascriptRegExp");function ZT(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(ZT,"isRegExp");i0.exports=new VT("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:BT,construct:UT,predicate:ZT,represent:GT})});var c0=h((iL,a0)=>{"use strict";var Hs;try{s0=require,Hs=s0("esprima")}catch{typeof window<"u"&&(Hs=window.esprima)}var s0,zT=ie();function KT(e){if(e===null)return!1;try{var t="("+e+")",r=Hs.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}o(KT,"resolveJavascriptFunction");function QT(e){var t="("+e+")",r=Hs.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(s){n.push(s.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}o(QT,"constructJavascriptFunction");function WT(e){return e.toString()}o(WT,"representJavascriptFunction");function YT(e){return Object.prototype.toString.call(e)==="[object Function]"}o(YT,"isFunction");a0.exports=new zT("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:KT,construct:QT,predicate:YT,represent:WT})});var so=h((sL,l0)=>{"use strict";var u0=Kr();l0.exports=u0.DEFAULT=new u0({include:[Wn()],explicit:[n0(),o0(),c0()]})});var I0=h((aL,ao)=>{"use strict";var Vt=zr(),y0=Kn(),JT=yy(),v0=Wn(),XT=so(),pr=Object.prototype.hasOwnProperty,Vs=1,S0=2,b0=3,Bs=4,Tp=1,eR=2,p0=3,tR=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,rR=/[\x85\u2028\u2029]/,nR=/[,\[\]\{\}]/,_0=/^(?:!|!!|![a-z\-]+!)$/i,P0=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function f0(e){return Object.prototype.toString.call(e)}o(f0,"_class");function Pt(e){return e===10||e===13}o(Pt,"is_EOL");function Yr(e){return e===9||e===32}o(Yr,"is_WHITE_SPACE");function qe(e){return e===9||e===32||e===10||e===13}o(qe,"is_WS_OR_EOL");function Yn(e){return e===44||e===91||e===93||e===123||e===125}o(Yn,"is_FLOW_INDICATOR");function iR(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(iR,"fromHexCode");function oR(e){return e===120?2:e===117?4:e===85?8:0}o(oR,"escapedHexLen");function sR(e){return 48<=e&&e<=57?e-48:-1}o(sR,"fromDecimalCode");function d0(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
20
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}o(d0,"simpleEscapeSequence");function aR(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(aR,"charFromCodepoint");var E0=new Array(256),$0=new Array(256);for(Wr=0;Wr<256;Wr++)E0[Wr]=d0(Wr)?1:0,$0[Wr]=d0(Wr);var Wr;function cR(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||XT,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}o(cR,"State");function O0(e,t){return new y0(t,new JT(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(O0,"generateError");function x(e,t){throw O0(e,t)}o(x,"throwError");function Us(e,t){e.onWarning&&e.onWarning.call(null,O0(e,t))}o(Us,"throwWarning");var m0={YAML:o(function(t,r,n){var i,s,a;t.version!==null&&x(t,"duplication of %YAML directive"),n.length!==1&&x(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&x(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&x(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Us(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,s;n.length!==2&&x(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],_0.test(i)||x(t,"ill-formed tag handle (first argument) of the TAG directive"),pr.call(t.tagMap,i)&&x(t,'there is a previously declared suffix for "'+i+'" tag handle'),P0.test(s)||x(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function lr(e,t,r,n){var i,s,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,s=c.length;i<s;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||x(e,"expected valid JSON character");else tR.test(c)&&x(e,"the stream contains non-printable characters");e.result+=c}}o(lr,"captureSegment");function h0(e,t,r,n){var i,s,a,c;for(Vt.isObject(r)||x(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)s=i[a],pr.call(t,s)||(t[s]=r[s],n[s]=!0)}o(h0,"mergeMappings");function Jn(e,t,r,n,i,s,a,c){var u,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,l=i.length;u<l;u+=1)Array.isArray(i[u])&&x(e,"nested arrays are not supported inside keys"),typeof i=="object"&&f0(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&f0(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,l=s.length;u<l;u+=1)h0(e,t,s[u],r);else h0(e,t,s,r);else!e.json&&!pr.call(r,i)&&pr.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,x(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(Jn,"storeMappingPair");function Rp(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):x(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}o(Rp,"readLineBreak");function ee(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Yr(i);)i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Pt(i))for(Rp(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Us(e,"deficient indentation"),n}o(ee,"skipSeparationSpace");function Gs(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||qe(r)))}o(Gs,"testDocumentSeparator");function Cp(e,t){t===1?e.result+=" ":t>1&&(e.result+=Vt.repeat(`
21
- `,t-1))}o(Cp,"writeFoldedLines");function uR(e,t,r){var n,i,s,a,c,u,l,f,p=e.kind,d=e.result,m;if(m=e.input.charCodeAt(e.position),qe(m)||Yn(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),qe(i)||r&&Yn(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,c=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),qe(i)||r&&Yn(i))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),qe(n))break}else{if(e.position===e.lineStart&&Gs(e)||r&&Yn(m))break;if(Pt(m))if(u=e.line,l=e.lineStart,f=e.lineIndent,ee(e,!1,-1),e.lineIndent>=t){c=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=l,e.lineIndent=f;break}}c&&(lr(e,s,a,!1),Cp(e,e.line-u),s=a=e.position,c=!1),Yr(m)||(a=e.position+1),m=e.input.charCodeAt(++e.position)}return lr(e,s,a,!1),e.result?!0:(e.kind=p,e.result=d,!1)}o(uR,"readPlainScalar");function lR(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(lr(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Pt(r)?(lr(e,n,i,!0),Cp(e,ee(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Gs(e)?x(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);x(e,"unexpected end of the stream within a single quoted scalar")}o(lR,"readSingleQuotedScalar");function pR(e,t){var r,n,i,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return lr(e,r,e.position,!0),e.position++,!0;if(c===92){if(lr(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Pt(c))ee(e,!1,t);else if(c<256&&E0[c])e.result+=$0[c],e.position++;else if((a=oR(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=iR(c))>=0?s=(s<<4)+a:x(e,"expected hexadecimal character");e.result+=aR(s),e.position++}else x(e,"unknown escape sequence");r=n=e.position}else Pt(c)?(lr(e,r,n,!0),Cp(e,ee(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Gs(e)?x(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}x(e,"unexpected end of the stream within a double quoted scalar")}o(pR,"readDoubleQuotedScalar");function fR(e,t){var r=!0,n,i=e.tag,s,a=e.anchor,c,u,l,f,p,d={},m,g,y,v;if(v=e.input.charCodeAt(e.position),v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(ee(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=i,e.anchor=a,e.kind=p?"mapping":"sequence",e.result=s,!0;r||x(e,"missed comma between flow collection entries"),g=m=y=null,l=f=!1,v===63&&(c=e.input.charCodeAt(e.position+1),qe(c)&&(l=f=!0,e.position++,ee(e,!0,t))),n=e.line,Xn(e,t,Vs,!1,!0),g=e.tag,m=e.result,ee(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===n)&&v===58&&(l=!0,v=e.input.charCodeAt(++e.position),ee(e,!0,t),Xn(e,t,Vs,!1,!0),y=e.result),p?Jn(e,s,d,g,m,y):l?s.push(Jn(e,null,d,g,m,y)):s.push(m),ee(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}x(e,"unexpected end of the stream within a flow collection")}o(fR,"readFlowCollection");function dR(e,t){var r,n,i=Tp,s=!1,a=!1,c=t,u=0,l=!1,f,p;if(p=e.input.charCodeAt(e.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)Tp===i?i=p===43?p0:eR:x(e,"repeat of a chomping mode identifier");else if((f=sR(p))>=0)f===0?x(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?x(e,"repeat of an indentation width identifier"):(c=t+f-1,a=!0);else break;if(Yr(p)){do p=e.input.charCodeAt(++e.position);while(Yr(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!Pt(p)&&p!==0)}for(;p!==0;){for(Rp(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),Pt(p)){u++;continue}if(e.lineIndent<c){i===p0?e.result+=Vt.repeat(`
22
- `,s?1+u:u):i===Tp&&s&&(e.result+=`
23
- `);break}for(n?Yr(p)?(l=!0,e.result+=Vt.repeat(`
24
- `,s?1+u:u)):l?(l=!1,e.result+=Vt.repeat(`
25
- `,u+1)):u===0?s&&(e.result+=" "):e.result+=Vt.repeat(`
26
- `,u):e.result+=Vt.repeat(`
27
- `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!Pt(p)&&p!==0;)p=e.input.charCodeAt(++e.position);lr(e,r,e.position,!1)}return!0}o(dR,"readBlockScalar");function g0(e,t){var r,n=e.tag,i=e.anchor,s=[],a,c=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!qe(a)));){if(c=!0,e.position++,ee(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Xn(e,t,b0,!1,!0),s.push(e.result),ee(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)x(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}o(g0,"readBlockSequence");function mR(e,t,r){var n,i,s,a,c=e.tag,u=e.anchor,l={},f={},p=null,d=null,m=null,g=!1,y=!1,v;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),v=e.input.charCodeAt(e.position);v!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,a=e.position,(v===63||v===58)&&qe(n))v===63?(g&&(Jn(e,l,f,p,d,null),p=d=m=null),y=!0,g=!0,i=!0):g?(g=!1,i=!0):x(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=n;else if(Xn(e,r,S0,!1,!0))if(e.line===s){for(v=e.input.charCodeAt(e.position);Yr(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),qe(v)||x(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(Jn(e,l,f,p,d,null),p=d=m=null),y=!0,g=!1,i=!1,p=e.tag,d=e.result;else if(y)x(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(y)x(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0;else break;if((e.line===s||e.lineIndent>t)&&(Xn(e,t,Bs,!0,i)&&(g?d=e.result:m=e.result),g||(Jn(e,l,f,p,d,m,s,a),p=d=m=null),ee(e,!0,-1),v=e.input.charCodeAt(e.position)),e.lineIndent>t&&v!==0)x(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&Jn(e,l,f,p,d,null),y&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),y}o(mR,"readBlockMapping");function hR(e){var t,r=!1,n=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&x(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):x(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!qe(a);)a===33&&(n?x(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),_0.test(i)||x(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),nR.test(s)&&x(e,"tag suffix cannot contain flow indicator characters")}return s&&!P0.test(s)&&x(e,"tag name cannot contain such characters: "+s),r?e.tag=s:pr.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:x(e,'undeclared tag handle "'+i+'"'),!0}o(hR,"readTagProperty");function gR(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&x(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!qe(r)&&!Yn(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}o(gR,"readAnchorProperty");function yR(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!qe(n)&&!Yn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),pr.call(e.anchorMap,r)||x(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],ee(e,!0,-1),!0}o(yR,"readAlias");function Xn(e,t,r,n,i){var s,a,c,u=1,l=!1,f=!1,p,d,m,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=c=Bs===r||b0===r,n&&ee(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;hR(e)||gR(e);)ee(e,!0,-1)?(l=!0,c=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=l||i),(u===1||Bs===r)&&(Vs===r||S0===r?g=t:g=t+1,y=e.position-e.lineStart,u===1?c&&(g0(e,y)||mR(e,y,g))||fR(e,g)?f=!0:(a&&dR(e,g)||lR(e,g)||pR(e,g)?f=!0:yR(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&x(e,"alias node should not have any properties")):uR(e,g,Vs===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=c&&g0(e,y))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&x(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,d=e.implicitTypes.length;p<d;p+=1)if(m=e.implicitTypes[p],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else pr.call(e.typeMap[e.kind||"fallback"],e.tag)?(m=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&m.kind!==e.kind&&x(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result)?(e.result=m.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):x(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):x(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}o(Xn,"composeNode");function vR(e){var t=e.position,r,n,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(ee(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!qe(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&x(e,"directive name must not be less than one character in length");a!==0;){for(;Yr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Pt(a));break}if(Pt(a))break;for(r=e.position;a!==0&&!qe(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Rp(e),pr.call(m0,n)?m0[n](e,n,i):Us(e,'unknown document directive "'+n+'"')}if(ee(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ee(e,!0,-1)):s&&x(e,"directives end mark is expected"),Xn(e,e.lineIndent-1,Bs,!1,!0),ee(e,!0,-1),e.checkLineBreaks&&rR.test(e.input.slice(t,e.position))&&Us(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Gs(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ee(e,!0,-1));return}if(e.position<e.length-1)x(e,"end of the stream or a document separator is expected");else return}o(vR,"readDocument");function x0(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
28
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new cR(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,x(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)vR(r);return r.documents}o(x0,"loadDocuments");function A0(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=x0(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(A0,"loadAll");function w0(e,t){var r=x0(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new y0("expected a single document in the stream, but found more")}}o(w0,"load");function SR(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),A0(e,t,Vt.extend({schema:v0},r))}o(SR,"safeLoadAll");function bR(e,t){return w0(e,Vt.extend({schema:v0},t))}o(bR,"safeLoad");ao.exports.loadAll=A0;ao.exports.load=w0;ao.exports.safeLoadAll=SR;ao.exports.safeLoad=bR});var J0=h((uL,qp)=>{"use strict";var uo=zr(),lo=Kn(),_R=so(),PR=Wn(),M0=Object.prototype.toString,D0=Object.prototype.hasOwnProperty,ER=9,co=10,$R=13,OR=32,xR=33,AR=34,L0=35,wR=37,IR=38,TR=39,RR=42,F0=44,CR=45,H0=58,NR=61,kR=62,jR=63,qR=64,V0=91,B0=93,MR=96,U0=123,DR=124,G0=125,_e={};_e[0]="\\0";_e[7]="\\a";_e[8]="\\b";_e[9]="\\t";_e[10]="\\n";_e[11]="\\v";_e[12]="\\f";_e[13]="\\r";_e[27]="\\e";_e[34]='\\"';_e[92]="\\\\";_e[133]="\\N";_e[160]="\\_";_e[8232]="\\L";_e[8233]="\\P";var LR=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function FR(e,t){var r,n,i,s,a,c,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)a=n[i],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&D0.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(FR,"compileStyleMap");function T0(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new lo("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+uo.repeat("0",n-t.length)+t}o(T0,"encodeHex");function HR(e){this.schema=e.schema||_R,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=uo.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=FR(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}o(HR,"State");function R0(e,t){for(var r=uo.repeat(" ",t),n=0,i=-1,s="",a,c=e.length;n<c;)i=e.indexOf(`
16
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){s=" ... ",a-=5;break}return c=this.buffer.slice(i,a),Ny.repeat(" ",t)+n+c+s+`
17
+ `+Ny.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Hp.prototype.toString=o(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
18
+ `+r)),n},"toString");ky.exports=Hp});var ae=h((KL,My)=>{"use strict";var qy=ti(),tT=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],rT=["scalar","sequence","mapping"];function nT(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(nT,"compileStyleAliases");function iT(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(tT.indexOf(r)===-1)throw new qy('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=nT(t.styleAliases||null),rT.indexOf(this.kind)===-1)throw new qy('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(iT,"Type");My.exports=iT});var Xr=h((WL,Ly)=>{"use strict";var Dy=Jr(),Js=ti(),oT=ae();function Vp(e,t,r){var n=[];return e.include.forEach(function(i){r=Vp(i,t,r)}),e[t].forEach(function(i){r.forEach(function(s,a){s.tag===i.tag&&s.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,s){return n.indexOf(s)===-1})}o(Vp,"compileList");function sT(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(o(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}o(sT,"compileMap");function ri(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new Js("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Vp(this,"implicit",[]),this.compiledExplicit=Vp(this,"explicit",[]),this.compiledTypeMap=sT(this.compiledImplicit,this.compiledExplicit)}o(ri,"Schema");ri.DEFAULT=null;ri.create=o(function(){var t,r;switch(arguments.length){case 1:t=ri.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Js("Wrong number of arguments for Schema.create function")}if(t=Dy.toArray(t),r=Dy.toArray(r),!t.every(function(n){return n instanceof ri}))throw new Js("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof oT}))throw new Js("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new ri({include:t,explicit:r})},"createSchema");Ly.exports=ri});var Hy=h((JL,Fy)=>{"use strict";var aT=ae();Fy.exports=new aT("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var By=h((e8,Vy)=>{"use strict";var cT=ae();Vy.exports=new cT("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var Uy=h((r8,Gy)=>{"use strict";var uT=ae();Gy.exports=new uT("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var Xs=h((i8,Zy)=>{"use strict";var lT=Xr();Zy.exports=new lT({explicit:[Hy(),By(),Uy()]})});var Ky=h((o8,zy)=>{"use strict";var pT=ae();function fT(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(fT,"resolveYamlNull");function dT(){return null}o(dT,"constructYamlNull");function mT(e){return e===null}o(mT,"isNull");zy.exports=new pT("tag:yaml.org,2002:null",{kind:"scalar",resolve:fT,construct:dT,predicate:mT,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var Wy=h((a8,Qy)=>{"use strict";var hT=ae();function gT(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}o(gT,"resolveYamlBoolean");function yT(e){return e==="true"||e==="True"||e==="TRUE"}o(yT,"constructYamlBoolean");function ST(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(ST,"isBoolean");Qy.exports=new hT("tag:yaml.org,2002:bool",{kind:"scalar",resolve:gT,construct:yT,predicate:ST,represent:{lowercase:o(function(e){return e?"true":"false"},"lowercase"),uppercase:o(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var Jy=h((u8,Yy)=>{"use strict";var vT=Jr(),bT=ae();function _T(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(_T,"isHexCode");function ET(e){return 48<=e&&e<=55}o(ET,"isOctCode");function PT(e){return 48<=e&&e<=57}o(PT,"isDecCode");function OT(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!_T(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!ET(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(i===":")break;if(!PT(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(OT,"resolveYamlInteger");function $T(e){var t=e,r=1,n,i,s=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){s.unshift(parseInt(a,10))}),t=0,i=1,s.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}o($T,"constructYamlInteger");function xT(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!vT.isNegativeZero(e)}o(xT,"isInteger");Yy.exports=new bT("tag:yaml.org,2002:int",{kind:"scalar",resolve:OT,construct:$T,predicate:xT,represent:{binary:o(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:o(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:o(function(e){return e.toString(10)},"decimal"),hexadecimal:o(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var t0=h((p8,e0)=>{"use strict";var Xy=Jr(),AT=ae(),wT=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function IT(e){return!(e===null||!wT.test(e)||e[e.length-1]==="_")}o(IT,"resolveYamlFloat");function TT(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(s){i.unshift(parseFloat(s,10))}),t=0,n=1,i.forEach(function(s){t+=s*n,n*=60}),r*t):r*parseFloat(t,10)}o(TT,"constructYamlFloat");var CT=/^[-+]?[0-9]+e/;function RT(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Xy.isNegativeZero(e))return"-0.0";return r=e.toString(10),CT.test(r)?r.replace("e",".e"):r}o(RT,"representYamlFloat");function NT(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Xy.isNegativeZero(e))}o(NT,"isFloat");e0.exports=new AT("tag:yaml.org,2002:float",{kind:"scalar",resolve:IT,construct:TT,predicate:NT,represent:RT,defaultStyle:"lowercase"})});var Bp=h((d8,r0)=>{"use strict";var kT=Xr();r0.exports=new kT({include:[Xs()],implicit:[Ky(),Wy(),Jy(),t0()]})});var Gp=h((m8,n0)=>{"use strict";var jT=Xr();n0.exports=new jT({include:[Bp()]})});var a0=h((h8,s0)=>{"use strict";var qT=ae(),i0=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),o0=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function MT(e){return e===null?!1:i0.exec(e)!==null||o0.exec(e)!==null}o(MT,"resolveYamlTimestamp");function DT(e){var t,r,n,i,s,a,c,u=0,l=null,f,p,d;if(t=i0.exec(e),t===null&&(t=o0.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],a=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],p=+(t[11]||0),l=(f*60+p)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,s,a,c,u)),l&&d.setTime(d.getTime()-l),d}o(DT,"constructYamlTimestamp");function LT(e){return e.toISOString()}o(LT,"representYamlTimestamp");s0.exports=new qT("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:MT,construct:DT,instanceOf:Date,represent:LT})});var u0=h((y8,c0)=>{"use strict";var FT=ae();function HT(e){return e==="<<"||e===null}o(HT,"resolveYamlMerge");c0.exports=new FT("tag:yaml.org,2002:merge",{kind:"scalar",resolve:HT})});var f0=h((v8,p0)=>{"use strict";var en;try{l0=require,en=l0("buffer").Buffer}catch{}var l0,VT=ae(),Up=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
19
+ \r`;function BT(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Up;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}o(BT,"resolveYamlBinary");function GT(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Up,a=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),en?en.from?en.from(c):new en(c):c}o(GT,"constructYamlBinary");function UT(e){var t="",r=0,n,i,s=e.length,a=Up;for(n=0;n<s;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}o(UT,"representYamlBinary");function ZT(e){return en&&en.isBuffer(e)}o(ZT,"isBinary");p0.exports=new VT("tag:yaml.org,2002:binary",{kind:"scalar",resolve:BT,construct:GT,predicate:ZT,represent:UT})});var m0=h((_8,d0)=>{"use strict";var zT=ae(),KT=Object.prototype.hasOwnProperty,QT=Object.prototype.toString;function WT(e){if(e===null)return!0;var t=[],r,n,i,s,a,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],a=!1,QT.call(i)!=="[object Object]")return!1;for(s in i)if(KT.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}o(WT,"resolveYamlOmap");function YT(e){return e!==null?e:[]}o(YT,"constructYamlOmap");d0.exports=new zT("tag:yaml.org,2002:omap",{kind:"sequence",resolve:WT,construct:YT})});var g0=h((P8,h0)=>{"use strict";var JT=ae(),XT=Object.prototype.toString;function eC(e){if(e===null)return!0;var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],XT.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(eC,"resolveYamlPairs");function tC(e){if(e===null)return[];var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}o(tC,"constructYamlPairs");h0.exports=new JT("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:eC,construct:tC})});var S0=h(($8,y0)=>{"use strict";var rC=ae(),nC=Object.prototype.hasOwnProperty;function iC(e){if(e===null)return!0;var t,r=e;for(t in r)if(nC.call(r,t)&&r[t]!==null)return!1;return!0}o(iC,"resolveYamlSet");function oC(e){return e!==null?e:{}}o(oC,"constructYamlSet");y0.exports=new rC("tag:yaml.org,2002:set",{kind:"mapping",resolve:iC,construct:oC})});var ni=h((A8,v0)=>{"use strict";var sC=Xr();v0.exports=new sC({include:[Gp()],implicit:[a0(),u0()],explicit:[f0(),m0(),g0(),S0()]})});var _0=h((w8,b0)=>{"use strict";var aC=ae();function cC(){return!0}o(cC,"resolveJavascriptUndefined");function uC(){}o(uC,"constructJavascriptUndefined");function lC(){return""}o(lC,"representJavascriptUndefined");function pC(e){return typeof e>"u"}o(pC,"isUndefined");b0.exports=new aC("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:cC,construct:uC,predicate:pC,represent:lC})});var P0=h((T8,E0)=>{"use strict";var fC=ae();function dC(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}o(dC,"resolveJavascriptRegExp");function mC(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}o(mC,"constructJavascriptRegExp");function hC(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(hC,"representJavascriptRegExp");function gC(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(gC,"isRegExp");E0.exports=new fC("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:dC,construct:mC,predicate:gC,represent:hC})});var x0=h((R8,$0)=>{"use strict";var ea;try{O0=require,ea=O0("esprima")}catch{typeof window<"u"&&(ea=window.esprima)}var O0,yC=ae();function SC(e){if(e===null)return!1;try{var t="("+e+")",r=ea.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}o(SC,"resolveJavascriptFunction");function vC(e){var t="("+e+")",r=ea.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(s){n.push(s.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}o(vC,"constructJavascriptFunction");function bC(e){return e.toString()}o(bC,"representJavascriptFunction");function _C(e){return Object.prototype.toString.call(e)==="[object Function]"}o(_C,"isFunction");$0.exports=new yC("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:SC,construct:vC,predicate:_C,represent:bC})});var yo=h((k8,w0)=>{"use strict";var A0=Xr();w0.exports=A0.DEFAULT=new A0({include:[ni()],explicit:[_0(),P0(),x0()]})});var z0=h((j8,So)=>{"use strict";var Bt=Jr(),j0=ti(),EC=jy(),q0=ni(),PC=yo(),mr=Object.prototype.hasOwnProperty,ta=1,M0=2,D0=3,ra=4,Zp=1,OC=2,I0=3,$C=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,xC=/[\x85\u2028\u2029]/,AC=/[,\[\]\{\}]/,L0=/^(?:!|!!|![a-z\-]+!)$/i,F0=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function T0(e){return Object.prototype.toString.call(e)}o(T0,"_class");function Pt(e){return e===10||e===13}o(Pt,"is_EOL");function rn(e){return e===9||e===32}o(rn,"is_WHITE_SPACE");function Me(e){return e===9||e===32||e===10||e===13}o(Me,"is_WS_OR_EOL");function ii(e){return e===44||e===91||e===93||e===123||e===125}o(ii,"is_FLOW_INDICATOR");function wC(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(wC,"fromHexCode");function IC(e){return e===120?2:e===117?4:e===85?8:0}o(IC,"escapedHexLen");function TC(e){return 48<=e&&e<=57?e-48:-1}o(TC,"fromDecimalCode");function C0(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
20
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}o(C0,"simpleEscapeSequence");function CC(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(CC,"charFromCodepoint");var H0=new Array(256),V0=new Array(256);for(tn=0;tn<256;tn++)H0[tn]=C0(tn)?1:0,V0[tn]=C0(tn);var tn;function RC(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||PC,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}o(RC,"State");function B0(e,t){return new j0(t,new EC(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(B0,"generateError");function x(e,t){throw B0(e,t)}o(x,"throwError");function na(e,t){e.onWarning&&e.onWarning.call(null,B0(e,t))}o(na,"throwWarning");var R0={YAML:o(function(t,r,n){var i,s,a;t.version!==null&&x(t,"duplication of %YAML directive"),n.length!==1&&x(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&x(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&x(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&na(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,s;n.length!==2&&x(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],L0.test(i)||x(t,"ill-formed tag handle (first argument) of the TAG directive"),mr.call(t.tagMap,i)&&x(t,'there is a previously declared suffix for "'+i+'" tag handle'),F0.test(s)||x(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function dr(e,t,r,n){var i,s,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,s=c.length;i<s;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||x(e,"expected valid JSON character");else $C.test(c)&&x(e,"the stream contains non-printable characters");e.result+=c}}o(dr,"captureSegment");function N0(e,t,r,n){var i,s,a,c;for(Bt.isObject(r)||x(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)s=i[a],mr.call(t,s)||(t[s]=r[s],n[s]=!0)}o(N0,"mergeMappings");function oi(e,t,r,n,i,s,a,c){var u,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,l=i.length;u<l;u+=1)Array.isArray(i[u])&&x(e,"nested arrays are not supported inside keys"),typeof i=="object"&&T0(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&T0(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,l=s.length;u<l;u+=1)N0(e,t,s[u],r);else N0(e,t,s,r);else!e.json&&!mr.call(r,i)&&mr.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,x(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(oi,"storeMappingPair");function zp(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):x(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}o(zp,"readLineBreak");function ie(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;rn(i);)i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Pt(i))for(zp(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&na(e,"deficient indentation"),n}o(ie,"skipSeparationSpace");function ia(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Me(r)))}o(ia,"testDocumentSeparator");function Kp(e,t){t===1?e.result+=" ":t>1&&(e.result+=Bt.repeat(`
21
+ `,t-1))}o(Kp,"writeFoldedLines");function NC(e,t,r){var n,i,s,a,c,u,l,f,p=e.kind,d=e.result,m;if(m=e.input.charCodeAt(e.position),Me(m)||ii(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),Me(i)||r&&ii(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,c=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),Me(i)||r&&ii(i))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),Me(n))break}else{if(e.position===e.lineStart&&ia(e)||r&&ii(m))break;if(Pt(m))if(u=e.line,l=e.lineStart,f=e.lineIndent,ie(e,!1,-1),e.lineIndent>=t){c=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=l,e.lineIndent=f;break}}c&&(dr(e,s,a,!1),Kp(e,e.line-u),s=a=e.position,c=!1),rn(m)||(a=e.position+1),m=e.input.charCodeAt(++e.position)}return dr(e,s,a,!1),e.result?!0:(e.kind=p,e.result=d,!1)}o(NC,"readPlainScalar");function kC(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(dr(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Pt(r)?(dr(e,n,i,!0),Kp(e,ie(e,!1,t)),n=i=e.position):e.position===e.lineStart&&ia(e)?x(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);x(e,"unexpected end of the stream within a single quoted scalar")}o(kC,"readSingleQuotedScalar");function jC(e,t){var r,n,i,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return dr(e,r,e.position,!0),e.position++,!0;if(c===92){if(dr(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Pt(c))ie(e,!1,t);else if(c<256&&H0[c])e.result+=V0[c],e.position++;else if((a=IC(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=wC(c))>=0?s=(s<<4)+a:x(e,"expected hexadecimal character");e.result+=CC(s),e.position++}else x(e,"unknown escape sequence");r=n=e.position}else Pt(c)?(dr(e,r,n,!0),Kp(e,ie(e,!1,t)),r=n=e.position):e.position===e.lineStart&&ia(e)?x(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}x(e,"unexpected end of the stream within a double quoted scalar")}o(jC,"readDoubleQuotedScalar");function qC(e,t){var r=!0,n,i=e.tag,s,a=e.anchor,c,u,l,f,p,d={},m,g,y,S;if(S=e.input.charCodeAt(e.position),S===91)u=93,p=!1,s=[];else if(S===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),S=e.input.charCodeAt(++e.position);S!==0;){if(ie(e,!0,t),S=e.input.charCodeAt(e.position),S===u)return e.position++,e.tag=i,e.anchor=a,e.kind=p?"mapping":"sequence",e.result=s,!0;r||x(e,"missed comma between flow collection entries"),g=m=y=null,l=f=!1,S===63&&(c=e.input.charCodeAt(e.position+1),Me(c)&&(l=f=!0,e.position++,ie(e,!0,t))),n=e.line,si(e,t,ta,!1,!0),g=e.tag,m=e.result,ie(e,!0,t),S=e.input.charCodeAt(e.position),(f||e.line===n)&&S===58&&(l=!0,S=e.input.charCodeAt(++e.position),ie(e,!0,t),si(e,t,ta,!1,!0),y=e.result),p?oi(e,s,d,g,m,y):l?s.push(oi(e,null,d,g,m,y)):s.push(m),ie(e,!0,t),S=e.input.charCodeAt(e.position),S===44?(r=!0,S=e.input.charCodeAt(++e.position)):r=!1}x(e,"unexpected end of the stream within a flow collection")}o(qC,"readFlowCollection");function MC(e,t){var r,n,i=Zp,s=!1,a=!1,c=t,u=0,l=!1,f,p;if(p=e.input.charCodeAt(e.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)Zp===i?i=p===43?I0:OC:x(e,"repeat of a chomping mode identifier");else if((f=TC(p))>=0)f===0?x(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?x(e,"repeat of an indentation width identifier"):(c=t+f-1,a=!0);else break;if(rn(p)){do p=e.input.charCodeAt(++e.position);while(rn(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!Pt(p)&&p!==0)}for(;p!==0;){for(zp(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),Pt(p)){u++;continue}if(e.lineIndent<c){i===I0?e.result+=Bt.repeat(`
22
+ `,s?1+u:u):i===Zp&&s&&(e.result+=`
23
+ `);break}for(n?rn(p)?(l=!0,e.result+=Bt.repeat(`
24
+ `,s?1+u:u)):l?(l=!1,e.result+=Bt.repeat(`
25
+ `,u+1)):u===0?s&&(e.result+=" "):e.result+=Bt.repeat(`
26
+ `,u):e.result+=Bt.repeat(`
27
+ `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!Pt(p)&&p!==0;)p=e.input.charCodeAt(++e.position);dr(e,r,e.position,!1)}return!0}o(MC,"readBlockScalar");function k0(e,t){var r,n=e.tag,i=e.anchor,s=[],a,c=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!Me(a)));){if(c=!0,e.position++,ie(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,si(e,t,D0,!1,!0),s.push(e.result),ie(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)x(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}o(k0,"readBlockSequence");function DC(e,t,r){var n,i,s,a,c=e.tag,u=e.anchor,l={},f={},p=null,d=null,m=null,g=!1,y=!1,S;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),S=e.input.charCodeAt(e.position);S!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,a=e.position,(S===63||S===58)&&Me(n))S===63?(g&&(oi(e,l,f,p,d,null),p=d=m=null),y=!0,g=!0,i=!0):g?(g=!1,i=!0):x(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,S=n;else if(si(e,r,M0,!1,!0))if(e.line===s){for(S=e.input.charCodeAt(e.position);rn(S);)S=e.input.charCodeAt(++e.position);if(S===58)S=e.input.charCodeAt(++e.position),Me(S)||x(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(oi(e,l,f,p,d,null),p=d=m=null),y=!0,g=!1,i=!1,p=e.tag,d=e.result;else if(y)x(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(y)x(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0;else break;if((e.line===s||e.lineIndent>t)&&(si(e,t,ra,!0,i)&&(g?d=e.result:m=e.result),g||(oi(e,l,f,p,d,m,s,a),p=d=m=null),ie(e,!0,-1),S=e.input.charCodeAt(e.position)),e.lineIndent>t&&S!==0)x(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&oi(e,l,f,p,d,null),y&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),y}o(DC,"readBlockMapping");function LC(e){var t,r=!1,n=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&x(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):x(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Me(a);)a===33&&(n?x(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),L0.test(i)||x(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),AC.test(s)&&x(e,"tag suffix cannot contain flow indicator characters")}return s&&!F0.test(s)&&x(e,"tag name cannot contain such characters: "+s),r?e.tag=s:mr.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:x(e,'undeclared tag handle "'+i+'"'),!0}o(LC,"readTagProperty");function FC(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&x(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Me(r)&&!ii(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}o(FC,"readAnchorProperty");function HC(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Me(n)&&!ii(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),mr.call(e.anchorMap,r)||x(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],ie(e,!0,-1),!0}o(HC,"readAlias");function si(e,t,r,n,i){var s,a,c,u=1,l=!1,f=!1,p,d,m,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=c=ra===r||D0===r,n&&ie(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;LC(e)||FC(e);)ie(e,!0,-1)?(l=!0,c=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=l||i),(u===1||ra===r)&&(ta===r||M0===r?g=t:g=t+1,y=e.position-e.lineStart,u===1?c&&(k0(e,y)||DC(e,y,g))||qC(e,g)?f=!0:(a&&MC(e,g)||kC(e,g)||jC(e,g)?f=!0:HC(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&x(e,"alias node should not have any properties")):NC(e,g,ta===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=c&&k0(e,y))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&x(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,d=e.implicitTypes.length;p<d;p+=1)if(m=e.implicitTypes[p],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else mr.call(e.typeMap[e.kind||"fallback"],e.tag)?(m=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&m.kind!==e.kind&&x(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result)?(e.result=m.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):x(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):x(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}o(si,"composeNode");function VC(e){var t=e.position,r,n,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(ie(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Me(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&x(e,"directive name must not be less than one character in length");a!==0;){for(;rn(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Pt(a));break}if(Pt(a))break;for(r=e.position;a!==0&&!Me(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&zp(e),mr.call(R0,n)?R0[n](e,n,i):na(e,'unknown document directive "'+n+'"')}if(ie(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ie(e,!0,-1)):s&&x(e,"directives end mark is expected"),si(e,e.lineIndent-1,ra,!1,!0),ie(e,!0,-1),e.checkLineBreaks&&xC.test(e.input.slice(t,e.position))&&na(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ia(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ie(e,!0,-1));return}if(e.position<e.length-1)x(e,"end of the stream or a document separator is expected");else return}o(VC,"readDocument");function G0(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
28
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new RC(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,x(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)VC(r);return r.documents}o(G0,"loadDocuments");function U0(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=G0(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(U0,"loadAll");function Z0(e,t){var r=G0(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new j0("expected a single document in the stream, but found more")}}o(Z0,"load");function BC(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),U0(e,t,Bt.extend({schema:q0},r))}o(BC,"safeLoadAll");function GC(e,t){return Z0(e,Bt.extend({schema:q0},t))}o(GC,"safeLoad");So.exports.loadAll=U0;So.exports.load=Z0;So.exports.safeLoadAll=BC;So.exports.safeLoad=GC});var gS=h((M8,Jp)=>{"use strict";var bo=Jr(),_o=ti(),UC=yo(),ZC=ni(),tS=Object.prototype.toString,rS=Object.prototype.hasOwnProperty,zC=9,vo=10,KC=13,QC=32,WC=33,YC=34,nS=35,JC=37,XC=38,eR=39,tR=42,iS=44,rR=45,oS=58,nR=61,iR=62,oR=63,sR=64,sS=91,aS=93,aR=96,cS=123,cR=124,uS=125,Pe={};Pe[0]="\\0";Pe[7]="\\a";Pe[8]="\\b";Pe[9]="\\t";Pe[10]="\\n";Pe[11]="\\v";Pe[12]="\\f";Pe[13]="\\r";Pe[27]="\\e";Pe[34]='\\"';Pe[92]="\\\\";Pe[133]="\\N";Pe[160]="\\_";Pe[8232]="\\L";Pe[8233]="\\P";var uR=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function lR(e,t){var r,n,i,s,a,c,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)a=n[i],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&rS.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(lR,"compileStyleMap");function K0(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new _o("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+bo.repeat("0",n-t.length)+t}o(K0,"encodeHex");function pR(e){this.schema=e.schema||UC,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=bo.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=lR(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}o(pR,"State");function Q0(e,t){for(var r=bo.repeat(" ",t),n=0,i=-1,s="",a,c=e.length;n<c;)i=e.indexOf(`
29
29
  `,n),i===-1?(a=e.slice(n),n=c):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
30
- `&&(s+=r),s+=a;return s}o(R0,"indentString");function Np(e,t){return`
31
- `+uo.repeat(" ",e.indent*t)}o(Np,"generateNextLine");function VR(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}o(VR,"testImplicitResolving");function jp(e){return e===OR||e===ER}o(jp,"isWhitespace");function ei(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}o(ei,"isPrintable");function BR(e){return ei(e)&&!jp(e)&&e!==65279&&e!==$R&&e!==co}o(BR,"isNsChar");function C0(e,t){return ei(e)&&e!==65279&&e!==F0&&e!==V0&&e!==B0&&e!==U0&&e!==G0&&e!==H0&&(e!==L0||t&&BR(t))}o(C0,"isPlainSafe");function UR(e){return ei(e)&&e!==65279&&!jp(e)&&e!==CR&&e!==jR&&e!==H0&&e!==F0&&e!==V0&&e!==B0&&e!==U0&&e!==G0&&e!==L0&&e!==IR&&e!==RR&&e!==xR&&e!==DR&&e!==NR&&e!==kR&&e!==TR&&e!==AR&&e!==wR&&e!==qR&&e!==MR}o(UR,"isPlainSafeFirst");function Z0(e){var t=/^\n* /;return t.test(e)}o(Z0,"needIndentIndicator");var z0=1,K0=2,Q0=3,W0=4,Zs=5;function GR(e,t,r,n,i){var s,a,c,u=!1,l=!1,f=n!==-1,p=-1,d=UR(e.charCodeAt(0))&&!jp(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!ei(a))return Zs;c=s>0?e.charCodeAt(s-1):null,d=d&&C0(a,c)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===co)u=!0,f&&(l=l||s-p-1>n&&e[p+1]!==" ",p=s);else if(!ei(a))return Zs;c=s>0?e.charCodeAt(s-1):null,d=d&&C0(a,c)}l=l||f&&s-p-1>n&&e[p+1]!==" "}return!u&&!l?d&&!i(e)?z0:K0:r>9&&Z0(e)?Zs:l?W0:Q0}o(GR,"chooseScalarStyle");function ZR(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&LR.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return VR(e,u)}switch(o(c,"testAmbiguity"),GR(t,a,e.indent,s,c)){case z0:return t;case K0:return"'"+t.replace(/'/g,"''")+"'";case Q0:return"|"+N0(t,e.indent)+k0(R0(t,i));case W0:return">"+N0(t,e.indent)+k0(R0(zR(t,s),i));case Zs:return'"'+KR(t,s)+'"';default:throw new lo("impossible error: invalid scalar style")}}()}o(ZR,"writeScalar");function N0(e,t){var r=Z0(e)?String(t):"",n=e[e.length-1]===`
30
+ `&&(s+=r),s+=a;return s}o(Q0,"indentString");function Qp(e,t){return`
31
+ `+bo.repeat(" ",e.indent*t)}o(Qp,"generateNextLine");function fR(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}o(fR,"testImplicitResolving");function Yp(e){return e===QC||e===zC}o(Yp,"isWhitespace");function ai(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}o(ai,"isPrintable");function dR(e){return ai(e)&&!Yp(e)&&e!==65279&&e!==KC&&e!==vo}o(dR,"isNsChar");function W0(e,t){return ai(e)&&e!==65279&&e!==iS&&e!==sS&&e!==aS&&e!==cS&&e!==uS&&e!==oS&&(e!==nS||t&&dR(t))}o(W0,"isPlainSafe");function mR(e){return ai(e)&&e!==65279&&!Yp(e)&&e!==rR&&e!==oR&&e!==oS&&e!==iS&&e!==sS&&e!==aS&&e!==cS&&e!==uS&&e!==nS&&e!==XC&&e!==tR&&e!==WC&&e!==cR&&e!==nR&&e!==iR&&e!==eR&&e!==YC&&e!==JC&&e!==sR&&e!==aR}o(mR,"isPlainSafeFirst");function lS(e){var t=/^\n* /;return t.test(e)}o(lS,"needIndentIndicator");var pS=1,fS=2,dS=3,mS=4,oa=5;function hR(e,t,r,n,i){var s,a,c,u=!1,l=!1,f=n!==-1,p=-1,d=mR(e.charCodeAt(0))&&!Yp(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!ai(a))return oa;c=s>0?e.charCodeAt(s-1):null,d=d&&W0(a,c)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===vo)u=!0,f&&(l=l||s-p-1>n&&e[p+1]!==" ",p=s);else if(!ai(a))return oa;c=s>0?e.charCodeAt(s-1):null,d=d&&W0(a,c)}l=l||f&&s-p-1>n&&e[p+1]!==" "}return!u&&!l?d&&!i(e)?pS:fS:r>9&&lS(e)?oa:l?mS:dS}o(hR,"chooseScalarStyle");function gR(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&uR.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return fR(e,u)}switch(o(c,"testAmbiguity"),hR(t,a,e.indent,s,c)){case pS:return t;case fS:return"'"+t.replace(/'/g,"''")+"'";case dS:return"|"+Y0(t,e.indent)+J0(Q0(t,i));case mS:return">"+Y0(t,e.indent)+J0(Q0(yR(t,s),i));case oa:return'"'+SR(t,s)+'"';default:throw new _o("impossible error: invalid scalar style")}}()}o(gR,"writeScalar");function Y0(e,t){var r=lS(e)?String(t):"",n=e[e.length-1]===`
32
32
  `,i=n&&(e[e.length-2]===`
33
33
  `||e===`
34
34
  `),s=i?"+":n?"":"-";return r+s+`
35
- `}o(N0,"blockHeader");function k0(e){return e[e.length-1]===`
36
- `?e.slice(0,-1):e}o(k0,"dropEndingNewline");function zR(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=e.indexOf(`
37
- `);return l=l!==-1?l:e.length,r.lastIndex=l,j0(e.slice(0,l),t)}(),i=e[0]===`
35
+ `}o(Y0,"blockHeader");function J0(e){return e[e.length-1]===`
36
+ `?e.slice(0,-1):e}o(J0,"dropEndingNewline");function yR(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=e.indexOf(`
37
+ `);return l=l!==-1?l:e.length,r.lastIndex=l,X0(e.slice(0,l),t)}(),i=e[0]===`
38
38
  `||e[0]===" ",s,a;a=r.exec(e);){var c=a[1],u=a[2];s=u[0]===" ",n+=c+(!i&&!s&&u!==""?`
39
- `:"")+j0(u,t),i=s}return n}o(zR,"foldString");function j0(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(s=a>i?a:c,u+=`
39
+ `:"")+X0(u,t),i=s}return n}o(yR,"foldString");function X0(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(s=a>i?a:c,u+=`
40
40
  `+e.slice(i,s),i=s+1),a=c;return u+=`
41
41
  `,e.length-i>t&&a>i?u+=e.slice(i,a)+`
42
- `+e.slice(a+1):u+=e.slice(i),u.slice(1)}o(j0,"foldLine");function KR(e){for(var t="",r,n,i,s=0;s<e.length;s++){if(r=e.charCodeAt(s),r>=55296&&r<=56319&&(n=e.charCodeAt(s+1),n>=56320&&n<=57343)){t+=T0((r-55296)*1024+n-56320+65536),s++;continue}i=_e[r],t+=!i&&ei(r)?e[s]:i||T0(r)}return t}o(KR,"escapeString");function QR(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Jr(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(QR,"writeFlowSequence");function WR(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)Jr(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Np(e,t)),e.dump&&co===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(WR,"writeBlockSequence");function YR(e,t,r){var n="",i=e.tag,s=Object.keys(r),a,c,u,l,f;for(a=0,c=s.length;a<c;a+=1)f="",a!==0&&(f+=", "),e.condenseFlow&&(f+='"'),u=s[a],l=r[u],Jr(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Jr(e,t,l,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}o(YR,"writeFlowMapping");function JR(e,t,r,n){var i="",s=e.tag,a=Object.keys(r),c,u,l,f,p,d;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new lo("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=Np(e,t)),l=a[c],f=r[l],Jr(e,t+1,l,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&co===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,p&&(d+=Np(e,t)),Jr(e,t+1,f,!0,p)&&(e.dump&&co===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(JR,"writeBlockMapping");function q0(e,t,r){var n,i,s,a,c,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(c=i[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.tag:"?",c.represent){if(u=e.styleMap[c.tag]||c.defaultStyle,M0.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(D0.call(c.represent,u))n=c.represent[u](t,u);else throw new lo("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(q0,"detectType");function Jr(e,t,r,n,i,s){e.tag=null,e.dump=r,q0(e,r,!1)||q0(e,r,!0);var a=M0.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var c=a==="[object Object]"||a==="[object Array]",u,l;if(c&&(u=e.duplicates.indexOf(r),l=u!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(c&&l&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(JR(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(YR(e,t,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump));else if(a==="[object Array]"){var f=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(WR(e,f,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(QR(e,f,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&ZR(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new lo("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(Jr,"writeNode");function XR(e,t){var r=[],n=[],i,s;for(kp(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(XR,"getDuplicateReferences");function kp(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)kp(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)kp(e[n[i]],t,r)}o(kp,"inspectNode");function Y0(e,t){t=t||{};var r=new HR(t);return r.noRefs||XR(e,r),Jr(r,0,e,!0,!0)?r.dump+`
43
- `:""}o(Y0,"dump");function eC(e,t){return Y0(e,uo.extend({schema:PR},t))}o(eC,"safeDump");qp.exports.dump=Y0;qp.exports.safeDump=eC});var ev=h((pL,Q)=>{"use strict";var zs=I0(),X0=J0();function Ks(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(Ks,"deprecated");Q.exports.Type=ie();Q.exports.Schema=Kr();Q.exports.FAILSAFE_SCHEMA=Fs();Q.exports.JSON_SCHEMA=Ap();Q.exports.CORE_SCHEMA=wp();Q.exports.DEFAULT_SAFE_SCHEMA=Wn();Q.exports.DEFAULT_FULL_SCHEMA=so();Q.exports.load=zs.load;Q.exports.loadAll=zs.loadAll;Q.exports.safeLoad=zs.safeLoad;Q.exports.safeLoadAll=zs.safeLoadAll;Q.exports.dump=X0.dump;Q.exports.safeDump=X0.safeDump;Q.exports.YAMLException=Kn();Q.exports.MINIMAL_SCHEMA=Fs();Q.exports.SAFE_SCHEMA=Wn();Q.exports.DEFAULT_SCHEMA=so();Q.exports.scan=Ks("scan");Q.exports.parse=Ks("parse");Q.exports.compose=Ks("compose");Q.exports.addConstructor=Ks("addConstructor")});var rv=h((dL,tv)=>{"use strict";var tC=ev();tv.exports=tC});var iv=h((mL,nv)=>{"use strict";var{ParserError:rC}=lt(),nC=rv();nv.exports={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(e){let t=e.data;if(Buffer.isBuffer(t)&&(t=t.toString()),typeof t=="string")try{return nC.safeLoad(t)}catch(r){throw new rC(r.message,e.url)}else return t}}});var sv=h((hL,ov)=>{"use strict";var{ParserError:iC}=lt(),oC=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;ov.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&oC.test(e.url)},parse(e){if(typeof e.data=="string")return e.data;if(Buffer.isBuffer(e.data))return e.data.toString(this.encoding);throw new iC("data is not text",e.url)}}});var cv=h((gL,av)=>{"use strict";var sC=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;av.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&sC.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var pv=h((yL,lv)=>{"use strict";var aC=require("fs"),{ono:Mp}=it(),uv=Le(),{ResolverError:Dp}=lt();lv.exports={order:100,canRead(e){return uv.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=uv.toFileSystemPath(e.url)}catch(i){r(new Dp(Mp.uri(i,`Malformed URI: ${e.url}`),e.url))}try{aC.readFile(n,(i,s)=>{i?r(new Dp(Mp(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new Dp(Mp(i,`Error opening file "${n}"`),n))}})}}});var hv=h((vL,mv)=>{"use strict";var cC=require("http"),uC=require("https"),{ono:Qs}=it(),po=Le(),{ResolverError:fv}=lt();mv.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return po.isHttp(e.url)},read(e){let t=po.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=po.parse(location.href).protocol),dv(t,this)}};function dv(e,t,r){return new Promise((n,i)=>{e=po.parse(e),r=r||[],r.push(e.href),lC(e,t).then(s=>{if(s.statusCode>=400)throw Qs({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new fv(Qs({status:s.statusCode},`Error downloading ${r[0]}.
42
+ `+e.slice(a+1):u+=e.slice(i),u.slice(1)}o(X0,"foldLine");function SR(e){for(var t="",r,n,i,s=0;s<e.length;s++){if(r=e.charCodeAt(s),r>=55296&&r<=56319&&(n=e.charCodeAt(s+1),n>=56320&&n<=57343)){t+=K0((r-55296)*1024+n-56320+65536),s++;continue}i=Pe[r],t+=!i&&ai(r)?e[s]:i||K0(r)}return t}o(SR,"escapeString");function vR(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)nn(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(vR,"writeFlowSequence");function bR(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)nn(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Qp(e,t)),e.dump&&vo===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(bR,"writeBlockSequence");function _R(e,t,r){var n="",i=e.tag,s=Object.keys(r),a,c,u,l,f;for(a=0,c=s.length;a<c;a+=1)f="",a!==0&&(f+=", "),e.condenseFlow&&(f+='"'),u=s[a],l=r[u],nn(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),nn(e,t,l,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}o(_R,"writeFlowMapping");function ER(e,t,r,n){var i="",s=e.tag,a=Object.keys(r),c,u,l,f,p,d;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new _o("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=Qp(e,t)),l=a[c],f=r[l],nn(e,t+1,l,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&vo===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,p&&(d+=Qp(e,t)),nn(e,t+1,f,!0,p)&&(e.dump&&vo===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(ER,"writeBlockMapping");function eS(e,t,r){var n,i,s,a,c,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(c=i[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.tag:"?",c.represent){if(u=e.styleMap[c.tag]||c.defaultStyle,tS.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(rS.call(c.represent,u))n=c.represent[u](t,u);else throw new _o("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(eS,"detectType");function nn(e,t,r,n,i,s){e.tag=null,e.dump=r,eS(e,r,!1)||eS(e,r,!0);var a=tS.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var c=a==="[object Object]"||a==="[object Array]",u,l;if(c&&(u=e.duplicates.indexOf(r),l=u!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(c&&l&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(ER(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(_R(e,t,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump));else if(a==="[object Array]"){var f=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(bR(e,f,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(vR(e,f,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&gR(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new _o("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(nn,"writeNode");function PR(e,t){var r=[],n=[],i,s;for(Wp(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(PR,"getDuplicateReferences");function Wp(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Wp(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Wp(e[n[i]],t,r)}o(Wp,"inspectNode");function hS(e,t){t=t||{};var r=new pR(t);return r.noRefs||PR(e,r),nn(r,0,e,!0,!0)?r.dump+`
43
+ `:""}o(hS,"dump");function OR(e,t){return hS(e,bo.extend({schema:ZC},t))}o(OR,"safeDump");Jp.exports.dump=hS;Jp.exports.safeDump=OR});var SS=h((L8,X)=>{"use strict";var sa=z0(),yS=gS();function aa(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(aa,"deprecated");X.exports.Type=ae();X.exports.Schema=Xr();X.exports.FAILSAFE_SCHEMA=Xs();X.exports.JSON_SCHEMA=Bp();X.exports.CORE_SCHEMA=Gp();X.exports.DEFAULT_SAFE_SCHEMA=ni();X.exports.DEFAULT_FULL_SCHEMA=yo();X.exports.load=sa.load;X.exports.loadAll=sa.loadAll;X.exports.safeLoad=sa.safeLoad;X.exports.safeLoadAll=sa.safeLoadAll;X.exports.dump=yS.dump;X.exports.safeDump=yS.safeDump;X.exports.YAMLException=ti();X.exports.MINIMAL_SCHEMA=Xs();X.exports.SAFE_SCHEMA=ni();X.exports.DEFAULT_SCHEMA=yo();X.exports.scan=aa("scan");X.exports.parse=aa("parse");X.exports.compose=aa("compose");X.exports.addConstructor=aa("addConstructor")});var bS=h((H8,vS)=>{"use strict";var $R=SS();vS.exports=$R});var ES=h((V8,_S)=>{"use strict";var{ParserError:xR}=pt(),AR=bS();_S.exports={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(e){let t=e.data;if(Buffer.isBuffer(t)&&(t=t.toString()),typeof t=="string")try{return AR.safeLoad(t)}catch(r){throw new xR(r.message,e.url)}else return t}}});var OS=h((B8,PS)=>{"use strict";var{ParserError:wR}=pt(),IR=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;PS.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&IR.test(e.url)},parse(e){if(typeof e.data=="string")return e.data;if(Buffer.isBuffer(e.data))return e.data.toString(this.encoding);throw new wR("data is not text",e.url)}}});var xS=h((G8,$S)=>{"use strict";var TR=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;$S.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&TR.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var IS=h((U8,wS)=>{"use strict";var CR=require("fs"),{ono:Xp}=ot(),AS=He(),{ResolverError:ef}=pt();wS.exports={order:100,canRead(e){return AS.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=AS.toFileSystemPath(e.url)}catch(i){r(new ef(Xp.uri(i,`Malformed URI: ${e.url}`),e.url))}try{CR.readFile(n,(i,s)=>{i?r(new ef(Xp(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new ef(Xp(i,`Error opening file "${n}"`),n))}})}}});var NS=h((Z8,RS)=>{"use strict";var RR=require("http"),NR=require("https"),{ono:ca}=ot(),Eo=He(),{ResolverError:TS}=pt();RS.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Eo.isHttp(e.url)},read(e){let t=Eo.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Eo.parse(location.href).protocol),CS(t,this)}};function CS(e,t,r){return new Promise((n,i)=>{e=Eo.parse(e),r=r||[],r.push(e.href),kR(e,t).then(s=>{if(s.statusCode>=400)throw ca({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new TS(ca({status:s.statusCode},`Error downloading ${r[0]}.
44
44
  Too many redirects:
45
45
  ${r.join(`
46
- `)}`)));else if(s.headers.location){let a=po.resolve(e,s.headers.location);dv(a,t,r).then(n,i)}else throw Qs({status:s.statusCode},`HTTP ${s.statusCode} redirect with no location header`);else n(s.body||Buffer.alloc(0))}).catch(s=>{i(new fv(Qs(s,`Error downloading ${e.href}`),e.href))})})}o(dv,"download");function lC(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?uC:cC).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof s.setTimeout=="function"&&s.setTimeout(t.timeout),s.on("timeout",()=>{s.abort()}),s.on("error",n),s.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",c=>{a.body=Buffer.concat([a.body,Buffer.from(c)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}o(lC,"get")});var Hp=h((bL,yv)=>{"use strict";var pC=fy(),fC=iv(),dC=sv(),mC=cv(),hC=pv(),gC=hv();yv.exports=Fp;function Fp(e){Lp(this,Fp.defaults),Lp(this,e)}o(Fp,"$RefParserOptions");Fp.defaults={parse:{json:pC,yaml:fC,text:dC,binary:mC},resolve:{file:hC,http:gC,external:!0},continueOnError:!1,dereference:{circular:!0}};function Lp(e,t){if(gv(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];gv(s)?e[i]=Lp(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(Lp,"merge");function gv(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(gv,"isMergeable")});var Vp=h((PL,Sv)=>{"use strict";var vv=Hp();Sv.exports=yC;function yC(e){let t,r,n,i;return e=Array.prototype.slice.call(e),typeof e[e.length-1]=="function"&&(i=e.pop()),typeof e[0]=="string"?(t=e[0],typeof e[2]=="object"?(r=e[1],n=e[2]):(r=void 0,n=e[1])):(t="",r=e[0],n=e[1]),n instanceof vv||(n=new vv(n)),{path:t,schema:r,options:n,callback:i}}o(yC,"normalizeArgs")});var _v=h(($L,bv)=>{"use strict";var Bp=Hp(),vC=_p(),SC=$p(),bC=require("util");bv.exports=Ws;function Ws(e){Bp.call(this,Ws.defaults),Bp.apply(this,arguments)}o(Ws,"ParserOptions");Ws.defaults={validate:{schema:vC,spec:SC}};bC.inherits(Ws,Bp)});var Ev=h((xL,Pv)=>{"use strict";function _C(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(_C,"makeNext");Pv.exports=_C()});var Up=h((wL,Ov)=>{"use strict";var $v=Ev();Ov.exports=o(function(t,r){if(t){r.then(function(n){$v(function(){t(null,n)})},function(n){$v(function(){t(n)})});return}else return r},"maybe")});var fo=h((TL,wv)=>{"use strict";wv.exports=fr;var Gp=ti(),Zp=Le(),{JSONParserError:PC,InvalidPointerError:EC,MissingPointerError:$C,isHandledError:OC}=lt(),xC=/\//g,AC=/~/g,wC=/~1/g,IC=/~0/g;function fr(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(fr,"Pointer");fr.prototype.resolve=function(e,t,r){let n=fr.parse(this.path,this.originalPath);this.value=Av(e);for(let i=0;i<n.length;i++){if(Ys(this,t)&&(this.path=fr.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let s=n[i];if(this.value[s]===void 0||this.value[s]===null)throw this.value=null,new $C(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&Zp.resolve(this.path,this.value.$ref)!==r)&&Ys(this,t),this};fr.prototype.set=function(e,t,r){let n=fr.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=Av(e);for(let s=0;s<n.length-1;s++)Ys(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=xv(this,i,{});return Ys(this,r),i=n[n.length-1],xv(this,i,t),e};fr.parse=function(e,t){let r=Zp.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(wC,"/").replace(IC,"~"));if(r[0]!=="")throw new EC(r,t===void 0?e:t);return r.slice(1)};fr.join=function(e,t){e.indexOf("#")===-1&&(e+="#"),t=Array.isArray(t)?t:[t];for(let r=0;r<t.length;r++){let n=t[r];e+="/"+encodeURIComponent(n.replace(AC,"~0").replace(xC,"~1"))}return e};function Ys(e,t){if(Gp.isAllowed$Ref(e.value,t)){let r=Zp.resolve(e.path,e.value.$ref);if(r===e.path)e.circular=!0;else{let n=e.$ref.$refs._resolve(r,e.path,t);return e.indirections+=n.indirections+1,Gp.isExtended$Ref(e.value)?(e.value=Gp.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(Ys,"resolveIf$Ref");function xv(e,t,r){if(e.value&&typeof e.value=="object")t==="-"&&Array.isArray(e.value)?e.value.push(r):e.value[t]=r;else throw new PC(`Error assigning $ref pointer "${e.path}".
47
- Cannot set "${t}" of a non-object.`);return r}o(xv,"setValue");function Av(e){if(OC(e))throw e;return e}o(Av,"unwrapOrThrow")});var ti=h((CL,Rv)=>{"use strict";Rv.exports=Ae;var Tv=fo(),{InvalidPointerError:TC,isHandledError:RC,normalizeError:Iv}=lt(),{safePointerToPath:CC,stripHash:NC,getHash:kC}=Le();function Ae(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}o(Ae,"$Ref");Ae.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(Iv)):this.errors.push(Iv(e))};Ae.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};Ae.prototype.get=function(e,t){return this.resolve(e,t).value};Ae.prototype.resolve=function(e,t,r,n){let i=new Tv(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!RC(s))throw s;return s.path===null&&(s.path=CC(kC(n))),s instanceof TC&&(s.source=NC(n)),this.addError(s),null}};Ae.prototype.set=function(e,t){let r=new Tv(this,e);this.value=r.set(this.value,t)};Ae.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};Ae.isExternal$Ref=function(e){return Ae.is$Ref(e)&&e.$ref[0]!=="#"};Ae.isAllowed$Ref=function(e,t){if(Ae.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};Ae.isExtended$Ref=function(e){return Ae.is$Ref(e)&&Object.keys(e).length>1};Ae.dereference=function(e,t){if(t&&typeof t=="object"&&Ae.isExtended$Ref(e)){let r={};for(let n of Object.keys(e))n!=="$ref"&&(r[n]=e[n]);for(let n of Object.keys(t))n in r||(r[n]=t[n]);return r}else return t}});var jv=h((kL,kv)=>{"use strict";var{ono:Cv}=it(),jC=ti(),dr=Le();kv.exports=pt;function pt(){this.circular=!1,this._$refs={},this._root$Ref=null}o(pt,"$Refs");pt.prototype.paths=function(e){return Nv(this._$refs,arguments).map(r=>r.decoded)};pt.prototype.values=function(e){let t=this._$refs;return Nv(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};pt.prototype.toJSON=pt.prototype.values;pt.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};pt.prototype.get=function(e,t){return this._resolve(e,"",t).value};pt.prototype.set=function(e,t){let r=dr.resolve(this._root$Ref.path,e),n=dr.stripHash(r),i=this._$refs[n];if(!i)throw Cv(`Error resolving $ref pointer "${e}".
48
- "${n}" not found.`);i.set(r,t)};pt.prototype._add=function(e){let t=dr.stripHash(e),r=new jC;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};pt.prototype._resolve=function(e,t,r){let n=dr.resolve(this._root$Ref.path,e),i=dr.stripHash(n),s=this._$refs[i];if(!s)throw Cv(`Error resolving $ref pointer "${e}".
49
- "${i}" not found.`);return s.resolve(n,r,e,t)};pt.prototype._get$Ref=function(e){e=dr.resolve(this._root$Ref.path,e);let t=dr.stripHash(e);return this._$refs[t]};function Nv(e,t){let r=Object.keys(e);return t=Array.isArray(t[0])?t[0]:Array.prototype.slice.call(t),t.length>0&&t[0]&&(r=r.filter(n=>t.indexOf(e[n].pathType)!==-1)),r.map(n=>({encoded:n,decoded:e[n].pathType==="file"?dr.toFileSystemPath(n,!0):n}))}o(Nv,"getPaths")});var Mv=h(mo=>{"use strict";mo.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};mo.filter=function(e,t,r){return e.filter(n=>!!qv(n,t,r))};mo.sort=function(e){for(let t of e)t.order=t.order||Number.MAX_SAFE_INTEGER;return e.sort((t,r)=>t.order-r.order)};mo.run=function(e,t,r,n){let i,s,a=0;return new Promise((c,u)=>{l();function l(){if(i=e[a++],!i)return u(s);try{let m=qv(i,t,r,f,n);if(m&&typeof m.then=="function")m.then(p,d);else if(m!==void 0)p(m);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(m){d(m)}}o(l,"runNextPlugin");function f(m,g){m?d(m):p(g)}o(f,"callback");function p(m){c({plugin:i,result:m})}o(p,"onSuccess");function d(m){s={plugin:i,error:m},l()}o(d,"onError")})};function qv(e,t,r,n,i){let s=e[t];if(typeof s=="function")return s.apply(e,[r,n,i]);if(!n){if(s instanceof RegExp)return s.test(r.url);if(typeof s=="string")return s===r.extension;if(Array.isArray(s))return s.indexOf(r.extension)!==-1}return s}o(qv,"getResult")});var Kp=h((DL,Hv)=>{"use strict";var{ono:zp}=it(),Dv=Le(),mr=Mv(),{ResolverError:Lv,ParserError:Fv,UnmatchedParserError:qC,UnmatchedResolverError:MC,isHandledError:DC}=lt();Hv.exports=LC;async function LC(e,t,r){e=Dv.stripHash(e);let n=t._add(e),i={url:e,extension:Dv.getExtension(e)};try{let s=await FC(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await HC(i,r,t);return n.value=a.result,a.result}catch(s){throw DC(s)&&(n.value=s),s}}o(LC,"parse");function FC(e,t,r){return new Promise((n,i)=>{let s=mr.all(t.resolve);s=mr.filter(s,"canRead",e),mr.sort(s),mr.run(s,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new MC(e.url)):!c||!("error"in c)?i(zp.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof Lv?i(c.error):i(new Lv(c,e.url))}o(a,"onError")})}o(FC,"readFile");function HC(e,t,r){return new Promise((n,i)=>{let s=mr.all(t.parse),a=mr.filter(s,"canParse",e),c=a.length>0?a:s;mr.sort(c),mr.run(c,"parse",e,r).then(u,l);function u(f){!f.plugin.allowEmpty&&VC(f.result)?i(zp.syntax(`Error parsing "${e.url}" as ${f.plugin.name}.
50
- Parsed value is empty`)):n(f)}o(u,"onParsed");function l(f){!f&&t.continueOnError?i(new qC(e.url)):!f||!("error"in f)?i(zp.syntax(`Unable to parse ${e.url}`)):f.error instanceof Fv?i(f.error):i(new Fv(f.error.message,e.url))}o(l,"onError")})}o(HC,"parseFile");function VC(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}o(VC,"isEmpty")});var Gv=h((FL,Uv)=>{"use strict";var Vv=ti(),BC=fo(),UC=Kp(),ho=Le(),{isHandledError:GC}=lt();Uv.exports=ZC;function ZC(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=Qp(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(ZC,"resolveExternal");function Qp(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(Vv.isExternal$Ref(e))i.push(Bv(e,t,r,n));else for(let s of Object.keys(e)){let a=BC.join(t,s),c=e[s];Vv.isExternal$Ref(c)?i.push(Bv(c,a,r,n)):i=i.concat(Qp(c,a,r,n))}return i}o(Qp,"crawl");async function Bv(e,t,r,n){let i=ho.resolve(t,e.$ref),s=ho.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await UC(i,r,n),c=Qp(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!GC(a))throw a;return r._$refs[s]&&(a.source=ho.stripHash(t),a.path=ho.safePointerToPath(ho.getHash(t))),[]}}o(Bv,"resolve$Ref")});var Kv=h((VL,zv)=>{"use strict";var Js=ti(),go=fo(),Wp=Le();zv.exports=zC;function zC(e,t){let r=[];Yp(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),KC(r)}o(zC,"bundle");function Yp(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(Js.isAllowed$Ref(u))Zv(e,t,r,n,i,s,a,c);else{let l=Object.keys(u).sort((f,p)=>f==="definitions"?-1:p==="definitions"?1:f.length-p.length);for(let f of l){let p=go.join(r,f),d=go.join(n,f),m=u[f];Js.isAllowed$Ref(m)?Zv(u,f,r,d,i,s,a,c):Yp(u,f,p,d,i,s,a,c)}}}o(Yp,"crawl");function Zv(e,t,r,n,i,s,a,c){let u=t===null?e:e[t],l=Wp.resolve(r,u.$ref),f=a._resolve(l,n,c);if(f===null)return;let p=go.parse(n).length,d=Wp.stripHash(f.path),m=Wp.getHash(f.path),g=d!==a._root$Ref.path,y=Js.isExtended$Ref(u);i+=f.indirections;let v=QC(s,e,t);if(v)if(p<v.depth||i<v.indirections)WC(s,v);else return;s.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:p,file:d,hash:m,value:f.value,circular:f.circular,extended:y,external:g,indirections:i}),v||Yp(f.value,null,f.path,n,i+1,s,a,c)}o(Zv,"inventory$Ref");function KC(e){e.sort((i,s)=>{if(i.file!==s.file)return i.file<s.file?-1:1;if(i.hash!==s.hash)return i.hash<s.hash?-1:1;if(i.circular!==s.circular)return i.circular?-1:1;if(i.extended!==s.extended)return i.extended?1:-1;if(i.indirections!==s.indirections)return i.indirections-s.indirections;if(i.depth!==s.depth)return i.depth-s.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=s.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-s.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=go.join(n,go.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Js.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(KC,"remap");function QC(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}o(QC,"findInInventory");function WC(e,t){let r=e.indexOf(t);e.splice(r,1)}o(WC,"removeFromInventory")});var ef=h((UL,Jv)=>{"use strict";var Jp=ti(),Qv=fo(),{ono:YC}=it(),JC=Le();Jv.exports=XC;function XC(e,t){let r=Xp(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(XC,"dereference");function Xp(e,t,r,n,i,s){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),Jp.isAllowed$Ref(e,s))a=Wv(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=Qv.join(t,u),f=Qv.join(r,u),p=e[u],d=!1;Jp.isAllowed$Ref(p,s)?(a=Wv(p,l,f,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(p)===-1?(a=Xp(p,l,f,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=Yv(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(Xp,"crawl");function Wv(e,t,r,n,i,s){let a=JC.resolve(t,e.$ref),c=i._resolve(a,t,s);if(c===null)return{circular:!1,value:null};let u=c.circular,l=u||n.indexOf(c.value)!==-1;l&&Yv(t,i,s);let f=Jp.dereference(e,c.value);if(!l){let p=Xp(f,c.path,r,n,i,s);l=p.circular,f=p.value}return l&&!u&&s.dereference.circular==="ignore"&&(f=e),u&&(f.$ref=r),{circular:l,value:f}}o(Wv,"dereference$Ref");function Yv(e,t,r){if(t.circular=!0,!r.dereference.circular)throw YC.reference(`Circular $ref pointer found at ${e}`);return!0}o(Yv,"foundCircularReference")});var rS=h((ZL,$t)=>{"use strict";var tS=jv(),eN=Kp(),Xs=Vp(),tN=Gv(),rN=Kv(),nN=ef(),ri=Le(),{JSONParserError:iN,InvalidPointerError:oN,MissingPointerError:sN,ResolverError:aN,ParserError:cN,UnmatchedParserError:uN,UnmatchedResolverError:lN,isHandledError:pN,JSONParserErrorGroup:Xv}=lt(),ft=Up(),{ono:eS}=it();$t.exports=Et;$t.exports.default=Et;$t.exports.JSONParserError=iN;$t.exports.InvalidPointerError=oN;$t.exports.MissingPointerError=sN;$t.exports.ResolverError=aN;$t.exports.ParserError=cN;$t.exports.UnmatchedParserError=uN;$t.exports.UnmatchedResolverError=lN;function Et(){this.schema=null,this.$refs=new tS}o(Et,"$RefParser");Et.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");Et.prototype.parse=o(async function(t,r,n,i){let s=Xs(arguments),a;if(!s.path&&!s.schema){let l=eS(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return ft(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new tS;let c="http";if(ri.isFileSystemPath(s.path)&&(s.path=ri.fromFileSystemPath(s.path),c="file"),s.path=ri.resolve(ri.cwd(),s.path),s.schema&&typeof s.schema=="object"){let l=this.$refs._add(s.path);l.value=s.schema,l.pathType=c,a=Promise.resolve(s.schema)}else a=eN(s.path,this.$refs,s.options);let u=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return u.schema=l,ft(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,ft(s.callback,Promise.resolve(u.schema));throw eS.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!pN(l)?ft(s.callback,Promise.reject(l)):(this.$refs._$refs[ri.stripHash(s.path)]&&this.$refs._$refs[ri.stripHash(s.path)].addError(l),ft(s.callback,Promise.resolve(null)))}},"parse");Et.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");Et.prototype.resolve=o(async function(t,r,n,i){let s=this,a=Xs(arguments);try{return await this.parse(a.path,a.schema,a.options),await tN(s,a.options),tf(s),ft(a.callback,Promise.resolve(s.$refs))}catch(c){return ft(a.callback,Promise.reject(c))}},"resolve");Et.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");Et.prototype.bundle=o(async function(t,r,n,i){let s=this,a=Xs(arguments);try{return await this.resolve(a.path,a.schema,a.options),rN(s,a.options),tf(s),ft(a.callback,Promise.resolve(s.schema))}catch(c){return ft(a.callback,Promise.reject(c))}},"bundle");Et.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");Et.prototype.dereference=o(async function(t,r,n,i){let s=this,a=Xs(arguments);try{return await this.resolve(a.path,a.schema,a.options),nN(s,a.options),tf(s),ft(a.callback,Promise.resolve(s.schema))}catch(c){return ft(a.callback,Promise.reject(c))}},"dereference");function tf(e){if(Xv.getParserErrors(e).length>0)throw new Xv(e)}o(tf,"finalize")});var aS=h((KL,sS)=>{"use strict";var fN=_p(),dN=$p(),nS=Vp(),iS=Yo(),oS=_v(),ea=Up(),{ono:dt}=it(),Xr=rS(),mN=ef();sS.exports=Ot;function Ot(){Xr.apply(this,arguments)}o(Ot,"SwaggerParser");iS.inherits(Ot,Xr);Ot.parse=Xr.parse;Ot.resolve=Xr.resolve;Ot.bundle=Xr.bundle;Ot.dereference=Xr.dereference;Object.defineProperty(Ot.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});Ot.prototype.parse=async function(e,t,r,n){let i=nS(arguments);i.options=new oS(i.options);try{let s=await Xr.prototype.parse.call(this,i.path,i.schema,i.options);if(s.swagger){if(s.swagger===void 0||s.info===void 0||s.paths===void 0)throw dt.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw dt.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw dt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw dt.syntax(`Unrecognized Swagger version: ${s.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(s.openapi===void 0||s.info===void 0)throw dt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(s.paths===void 0)if(s.openapi==="3.1.0"){if(s.webhooks===void 0)throw dt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw dt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw dt.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw dt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw dt.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}iS.fixOasRelativeServers(s,i.path)}return ea(i.callback,Promise.resolve(s))}catch(s){return ea(i.callback,Promise.reject(s))}};Ot.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};Ot.prototype.validate=async function(e,t,r,n){let i=this,s=nS(arguments);s.options=new oS(s.options);let a=s.options.dereference.circular;s.options.validate.schema&&(s.options.dereference.circular="ignore");try{if(await this.dereference(s.path,s.schema,s.options),s.options.dereference.circular=a,s.options.validate.schema&&(fN(i.api),i.$refs.circular)){if(a===!0)mN(i,s.options);else if(a===!1)throw dt.reference("The API contains circular references")}return s.options.validate.spec&&dN(i.api),ea(s.callback,Promise.resolve(i.schema))}catch(c){return ea(s.callback,Promise.reject(c))}}});var $S=h(gr=>{"use strict";gr.__esModule=!0;gr.OpenAPIV2=gr.OpenAPIV3=void 0;var hN;(function(e){var t;(function(r){r.GET="get",r.PUT="put",r.POST="post",r.DELETE="delete",r.OPTIONS="options",r.HEAD="head",r.PATCH="patch",r.TRACE="trace"})(t=e.HttpMethods||(e.HttpMethods={}))})(hN=gr.OpenAPIV3||(gr.OpenAPIV3={}));var gN;(function(e){var t;(function(r){r.GET="get",r.PUT="put",r.POST="post",r.DELETE="delete",r.OPTIONS="options",r.HEAD="head",r.PATCH="patch"})(t=e.HttpMethods||(e.HttpMethods={}))})(gN=gr.OpenAPIV2||(gr.OpenAPIV2={}))});var Te=h(Ve=>{"use strict";Ve.__esModule=!0;Ve.extend=Jb;Ve.indexOf=rk;Ve.escapeExpression=nk;Ve.isEmpty=ik;Ve.createFrame=ok;Ve.blockParams=sk;Ve.appendContextPath=ak;var JN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},XN=/[&<>"'`=]/g,ek=/[&<>"'`=]/;function tk(e){return JN[e]}o(tk,"escapeChar");function Jb(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}o(Jb,"extend");var Mf=Object.prototype.toString;Ve.toString=Mf;var qf=o(function(t){return typeof t=="function"},"isFunction");qf(/x/)&&(Ve.isFunction=qf=o(function(e){return typeof e=="function"&&Mf.call(e)==="[object Function]"},"isFunction"));Ve.isFunction=qf;var Xb=Array.isArray||function(e){return e&&typeof e=="object"?Mf.call(e)==="[object Array]":!1};Ve.isArray=Xb;function rk(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(rk,"indexOf");function nk(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return ek.test(e)?e.replace(XN,tk):e}o(nk,"escapeExpression");function ik(e){return!e&&e!==0?!0:!!(Xb(e)&&e.length===0)}o(ik,"isEmpty");function ok(e){var t=Jb({},e);return t._parent=e,t}o(ok,"createFrame");function sk(e,t){return e.path=t,e}o(sk,"blockParams");function ak(e,t){return(e?e+".":"")+t}o(ak,"appendContextPath")});var et=h((Ra,e_)=>{"use strict";Ra.__esModule=!0;var Df=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Lf(e,t){var r=t&&t.loc,n=void 0,i=void 0,s=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,e+=" - "+n+":"+s);for(var c=Error.prototype.constructor.call(this,e),u=0;u<Df.length;u++)this[Df[u]]=c[Df[u]];Error.captureStackTrace&&Error.captureStackTrace(this,Lf);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=s,this.endColumn=a))}catch{}}o(Lf,"Exception");Lf.prototype=new Error;Ra.default=Lf;e_.exports=Ra.default});var r_=h((Ca,t_)=>{"use strict";Ca.__esModule=!0;var Ff=Te();Ca.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var n=r.inverse,i=r.fn;if(t===!0)return i(this);if(t===!1||t==null)return n(this);if(Ff.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var s=Ff.createFrame(r.data);s.contextPath=Ff.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};t_.exports=Ca.default});var i_=h((Na,n_)=>{"use strict";Na.__esModule=!0;function ck(e){return e&&e.__esModule?e:{default:e}}o(ck,"_interopRequireDefault");var qo=Te(),uk=et(),lk=ck(uk);Na.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new lk.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",c=void 0,u=void 0;r.data&&r.ids&&(u=qo.appendContextPath(r.data.contextPath,r.ids[0])+"."),qo.isFunction(t)&&(t=t.call(this)),r.data&&(c=qo.createFrame(r.data));function l(g,y,v){c&&(c.key=g,c.index=y,c.first=y===0,c.last=!!v,u&&(c.contextPath=u+g)),a=a+n(t[g],{data:c,blockParams:qo.blockParams([t[g],g],[u+g,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(qo.isArray(t))for(var f=t.length;s<f;s++)s in t&&l(s,s,s===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var p=[],d=t[Symbol.iterator](),m=d.next();!m.done;m=d.next())p.push(m.value);t=p;for(var f=t.length;s<f;s++)l(s,s,s===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(y){g!==void 0&&l(g,s-1),g=y,s++}),g!==void 0&&l(g,s-1,!0)})();return s===0&&(a=i(this)),a})};n_.exports=Na.default});var s_=h((ka,o_)=>{"use strict";ka.__esModule=!0;function pk(e){return e&&e.__esModule?e:{default:e}}o(pk,"_interopRequireDefault");var fk=et(),dk=pk(fk);ka.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new dk.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};o_.exports=ka.default});var l_=h((ja,u_)=>{"use strict";ja.__esModule=!0;function mk(e){return e&&e.__esModule?e:{default:e}}o(mk,"_interopRequireDefault");var a_=Te(),hk=et(),c_=mk(hk);ja.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new c_.default("#if requires exactly one argument");return a_.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||a_.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new c_.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};u_.exports=ja.default});var f_=h((qa,p_)=>{"use strict";qa.__esModule=!0;qa.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var i=1;r.hash.level!=null?i=r.hash.level:r.data&&r.data.level!=null&&(i=r.data.level),t[0]=i,e.log.apply(e,t)})};p_.exports=qa.default});var m_=h((Ma,d_)=>{"use strict";Ma.__esModule=!0;Ma.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};d_.exports=Ma.default});var g_=h((Da,h_)=>{"use strict";Da.__esModule=!0;function gk(e){return e&&e.__esModule?e:{default:e}}o(gk,"_interopRequireDefault");var Mo=Te(),yk=et(),vk=gk(yk);Da.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new vk.default("#with requires exactly one argument");Mo.isFunction(t)&&(t=t.call(this));var n=r.fn;if(Mo.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=Mo.createFrame(r.data),i.contextPath=Mo.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:Mo.blockParams([t],[i&&i.contextPath])})})};h_.exports=Da.default});var Hf=h(La=>{"use strict";La.__esModule=!0;La.registerDefaultHelpers=Nk;La.moveHelperToHooks=kk;function pn(e){return e&&e.__esModule?e:{default:e}}o(pn,"_interopRequireDefault");var Sk=r_(),bk=pn(Sk),_k=i_(),Pk=pn(_k),Ek=s_(),$k=pn(Ek),Ok=l_(),xk=pn(Ok),Ak=f_(),wk=pn(Ak),Ik=m_(),Tk=pn(Ik),Rk=g_(),Ck=pn(Rk);function Nk(e){bk.default(e),Pk.default(e),$k.default(e),xk.default(e),wk.default(e),Tk.default(e),Ck.default(e)}o(Nk,"registerDefaultHelpers");function kk(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(kk,"moveHelperToHooks")});var v_=h((Fa,y_)=>{"use strict";Fa.__esModule=!0;var jk=Te();Fa.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var s=t;return r.partials||(r.partials={},s=o(function(a,c){var u=n.partials;n.partials=jk.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};y_.exports=Fa.default});var S_=h(Vf=>{"use strict";Vf.__esModule=!0;Vf.registerDefaultDecorators=Lk;function qk(e){return e&&e.__esModule?e:{default:e}}o(qk,"_interopRequireDefault");var Mk=v_(),Dk=qk(Mk);function Lk(e){Dk.default(e)}o(Lk,"registerDefaultDecorators")});var Bf=h((Ha,b_)=>{"use strict";Ha.__esModule=!0;var Fk=Te(),hi={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=Fk.indexOf(hi.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=hi.lookupLevel(t),typeof console<"u"&&hi.lookupLevel(hi.level)<=t){var r=hi.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];console[r].apply(console,i)}},"log")};Ha.default=hi;b_.exports=Ha.default});var __=h(Uf=>{"use strict";Uf.__esModule=!0;Uf.createNewLookupObject=Vk;var Hk=Te();function Vk(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return Hk.extend.apply(void 0,[Object.create(null)].concat(t))}o(Vk,"createNewLookupObject")});var Gf=h(Do=>{"use strict";Do.__esModule=!0;Do.createProtoAccessControl=Zk;Do.resultIsAllowed=zk;Do.resetLoggedProperties=Qk;function Bk(e){return e&&e.__esModule?e:{default:e}}o(Bk,"_interopRequireDefault");var P_=__(),Uk=Bf(),Gk=Bk(Uk),Va=Object.create(null);function Zk(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=Object.create(null);return r.__proto__=!1,{properties:{whitelist:P_.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:P_.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(Zk,"createProtoAccessControl");function zk(e,t,r){return E_(typeof e=="function"?t.methods:t.properties,r)}o(zk,"resultIsAllowed");function E_(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(Kk(t),!1)}o(E_,"checkWhiteList");function Kk(e){Va[e]!==!0&&(Va[e]=!0,Gk.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
46
+ `)}`)));else if(s.headers.location){let a=Eo.resolve(e,s.headers.location);CS(a,t,r).then(n,i)}else throw ca({status:s.statusCode},`HTTP ${s.statusCode} redirect with no location header`);else n(s.body||Buffer.alloc(0))}).catch(s=>{i(new TS(ca(s,`Error downloading ${e.href}`),e.href))})})}o(CS,"download");function kR(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?NR:RR).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof s.setTimeout=="function"&&s.setTimeout(t.timeout),s.on("timeout",()=>{s.abort()}),s.on("error",n),s.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",c=>{a.body=Buffer.concat([a.body,Buffer.from(c)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}o(kR,"get")});var nf=h((K8,jS)=>{"use strict";var jR=Ty(),qR=ES(),MR=OS(),DR=xS(),LR=IS(),FR=NS();jS.exports=rf;function rf(e){tf(this,rf.defaults),tf(this,e)}o(rf,"$RefParserOptions");rf.defaults={parse:{json:jR,yaml:qR,text:MR,binary:DR},resolve:{file:LR,http:FR,external:!0},continueOnError:!1,dereference:{circular:!0}};function tf(e,t){if(kS(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];kS(s)?e[i]=tf(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(tf,"merge");function kS(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(kS,"isMergeable")});var of=h((W8,MS)=>{"use strict";var qS=nf();MS.exports=HR;function HR(e){let t,r,n,i;return e=Array.prototype.slice.call(e),typeof e[e.length-1]=="function"&&(i=e.pop()),typeof e[0]=="string"?(t=e[0],typeof e[2]=="object"?(r=e[1],n=e[2]):(r=void 0,n=e[1])):(t="",r=e[0],n=e[1]),n instanceof qS||(n=new qS(n)),{path:t,schema:r,options:n,callback:i}}o(HR,"normalizeArgs")});var LS=h((J8,DS)=>{"use strict";var sf=nf(),VR=Mp(),BR=Fp(),GR=require("util");DS.exports=ua;function ua(e){sf.call(this,ua.defaults),sf.apply(this,arguments)}o(ua,"ParserOptions");ua.defaults={validate:{schema:VR,spec:BR}};GR.inherits(ua,sf)});var HS=h((e5,FS)=>{"use strict";function UR(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(UR,"makeNext");FS.exports=UR()});var af=h((r5,BS)=>{"use strict";var VS=HS();BS.exports=o(function(t,r){if(t){r.then(function(n){VS(function(){t(null,n)})},function(n){VS(function(){t(n)})});return}else return r},"maybe")});var Po=h((i5,ZS)=>{"use strict";ZS.exports=hr;var cf=ci(),uf=He(),{JSONParserError:ZR,InvalidPointerError:zR,MissingPointerError:KR,isHandledError:QR}=pt(),WR=/\//g,YR=/~/g,JR=/~1/g,XR=/~0/g;function hr(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(hr,"Pointer");hr.prototype.resolve=function(e,t,r){let n=hr.parse(this.path,this.originalPath);this.value=US(e);for(let i=0;i<n.length;i++){if(la(this,t)&&(this.path=hr.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let s=n[i];if(this.value[s]===void 0||this.value[s]===null)throw this.value=null,new KR(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&uf.resolve(this.path,this.value.$ref)!==r)&&la(this,t),this};hr.prototype.set=function(e,t,r){let n=hr.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=US(e);for(let s=0;s<n.length-1;s++)la(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=GS(this,i,{});return la(this,r),i=n[n.length-1],GS(this,i,t),e};hr.parse=function(e,t){let r=uf.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(JR,"/").replace(XR,"~"));if(r[0]!=="")throw new zR(r,t===void 0?e:t);return r.slice(1)};hr.join=function(e,t){e.indexOf("#")===-1&&(e+="#"),t=Array.isArray(t)?t:[t];for(let r=0;r<t.length;r++){let n=t[r];e+="/"+encodeURIComponent(n.replace(YR,"~0").replace(WR,"~1"))}return e};function la(e,t){if(cf.isAllowed$Ref(e.value,t)){let r=uf.resolve(e.path,e.value.$ref);if(r===e.path)e.circular=!0;else{let n=e.$ref.$refs._resolve(r,e.path,t);return e.indirections+=n.indirections+1,cf.isExtended$Ref(e.value)?(e.value=cf.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(la,"resolveIf$Ref");function GS(e,t,r){if(e.value&&typeof e.value=="object")t==="-"&&Array.isArray(e.value)?e.value.push(r):e.value[t]=r;else throw new ZR(`Error assigning $ref pointer "${e.path}".
47
+ Cannot set "${t}" of a non-object.`);return r}o(GS,"setValue");function US(e){if(QR(e))throw e;return e}o(US,"unwrapOrThrow")});var ci=h((s5,QS)=>{"use strict";QS.exports=Ie;var KS=Po(),{InvalidPointerError:eN,isHandledError:tN,normalizeError:zS}=pt(),{safePointerToPath:rN,stripHash:nN,getHash:iN}=He();function Ie(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}o(Ie,"$Ref");Ie.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(zS)):this.errors.push(zS(e))};Ie.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};Ie.prototype.get=function(e,t){return this.resolve(e,t).value};Ie.prototype.resolve=function(e,t,r,n){let i=new KS(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!tN(s))throw s;return s.path===null&&(s.path=rN(iN(n))),s instanceof eN&&(s.source=nN(n)),this.addError(s),null}};Ie.prototype.set=function(e,t){let r=new KS(this,e);this.value=r.set(this.value,t)};Ie.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};Ie.isExternal$Ref=function(e){return Ie.is$Ref(e)&&e.$ref[0]!=="#"};Ie.isAllowed$Ref=function(e,t){if(Ie.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};Ie.isExtended$Ref=function(e){return Ie.is$Ref(e)&&Object.keys(e).length>1};Ie.dereference=function(e,t){if(t&&typeof t=="object"&&Ie.isExtended$Ref(e)){let r={};for(let n of Object.keys(e))n!=="$ref"&&(r[n]=e[n]);for(let n of Object.keys(t))n in r||(r[n]=t[n]);return r}else return t}});var XS=h((c5,JS)=>{"use strict";var{ono:WS}=ot(),oN=ci(),gr=He();JS.exports=ft;function ft(){this.circular=!1,this._$refs={},this._root$Ref=null}o(ft,"$Refs");ft.prototype.paths=function(e){return YS(this._$refs,arguments).map(r=>r.decoded)};ft.prototype.values=function(e){let t=this._$refs;return YS(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};ft.prototype.toJSON=ft.prototype.values;ft.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};ft.prototype.get=function(e,t){return this._resolve(e,"",t).value};ft.prototype.set=function(e,t){let r=gr.resolve(this._root$Ref.path,e),n=gr.stripHash(r),i=this._$refs[n];if(!i)throw WS(`Error resolving $ref pointer "${e}".
48
+ "${n}" not found.`);i.set(r,t)};ft.prototype._add=function(e){let t=gr.stripHash(e),r=new oN;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};ft.prototype._resolve=function(e,t,r){let n=gr.resolve(this._root$Ref.path,e),i=gr.stripHash(n),s=this._$refs[i];if(!s)throw WS(`Error resolving $ref pointer "${e}".
49
+ "${i}" not found.`);return s.resolve(n,r,e,t)};ft.prototype._get$Ref=function(e){e=gr.resolve(this._root$Ref.path,e);let t=gr.stripHash(e);return this._$refs[t]};function YS(e,t){let r=Object.keys(e);return t=Array.isArray(t[0])?t[0]:Array.prototype.slice.call(t),t.length>0&&t[0]&&(r=r.filter(n=>t.indexOf(e[n].pathType)!==-1)),r.map(n=>({encoded:n,decoded:e[n].pathType==="file"?gr.toFileSystemPath(n,!0):n}))}o(YS,"getPaths")});var tv=h(Oo=>{"use strict";Oo.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Oo.filter=function(e,t,r){return e.filter(n=>!!ev(n,t,r))};Oo.sort=function(e){for(let t of e)t.order=t.order||Number.MAX_SAFE_INTEGER;return e.sort((t,r)=>t.order-r.order)};Oo.run=function(e,t,r,n){let i,s,a=0;return new Promise((c,u)=>{l();function l(){if(i=e[a++],!i)return u(s);try{let m=ev(i,t,r,f,n);if(m&&typeof m.then=="function")m.then(p,d);else if(m!==void 0)p(m);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(m){d(m)}}o(l,"runNextPlugin");function f(m,g){m?d(m):p(g)}o(f,"callback");function p(m){c({plugin:i,result:m})}o(p,"onSuccess");function d(m){s={plugin:i,error:m},l()}o(d,"onError")})};function ev(e,t,r,n,i){let s=e[t];if(typeof s=="function")return s.apply(e,[r,n,i]);if(!n){if(s instanceof RegExp)return s.test(r.url);if(typeof s=="string")return s===r.extension;if(Array.isArray(s))return s.indexOf(r.extension)!==-1}return s}o(ev,"getResult")});var pf=h((f5,ov)=>{"use strict";var{ono:lf}=ot(),rv=He(),yr=tv(),{ResolverError:nv,ParserError:iv,UnmatchedParserError:sN,UnmatchedResolverError:aN,isHandledError:cN}=pt();ov.exports=uN;async function uN(e,t,r){e=rv.stripHash(e);let n=t._add(e),i={url:e,extension:rv.getExtension(e)};try{let s=await lN(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await pN(i,r,t);return n.value=a.result,a.result}catch(s){throw cN(s)&&(n.value=s),s}}o(uN,"parse");function lN(e,t,r){return new Promise((n,i)=>{let s=yr.all(t.resolve);s=yr.filter(s,"canRead",e),yr.sort(s),yr.run(s,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new aN(e.url)):!c||!("error"in c)?i(lf.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof nv?i(c.error):i(new nv(c,e.url))}o(a,"onError")})}o(lN,"readFile");function pN(e,t,r){return new Promise((n,i)=>{let s=yr.all(t.parse),a=yr.filter(s,"canParse",e),c=a.length>0?a:s;yr.sort(c),yr.run(c,"parse",e,r).then(u,l);function u(f){!f.plugin.allowEmpty&&fN(f.result)?i(lf.syntax(`Error parsing "${e.url}" as ${f.plugin.name}.
50
+ Parsed value is empty`)):n(f)}o(u,"onParsed");function l(f){!f&&t.continueOnError?i(new sN(e.url)):!f||!("error"in f)?i(lf.syntax(`Unable to parse ${e.url}`)):f.error instanceof iv?i(f.error):i(new iv(f.error.message,e.url))}o(l,"onError")})}o(pN,"parseFile");function fN(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}o(fN,"isEmpty")});var uv=h((m5,cv)=>{"use strict";var sv=ci(),dN=Po(),mN=pf(),$o=He(),{isHandledError:hN}=pt();cv.exports=gN;function gN(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=ff(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(gN,"resolveExternal");function ff(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(sv.isExternal$Ref(e))i.push(av(e,t,r,n));else for(let s of Object.keys(e)){let a=dN.join(t,s),c=e[s];sv.isExternal$Ref(c)?i.push(av(c,a,r,n)):i=i.concat(ff(c,a,r,n))}return i}o(ff,"crawl");async function av(e,t,r,n){let i=$o.resolve(t,e.$ref),s=$o.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await mN(i,r,n),c=ff(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!hN(a))throw a;return r._$refs[s]&&(a.source=$o.stripHash(t),a.path=$o.safePointerToPath($o.getHash(t))),[]}}o(av,"resolve$Ref")});var fv=h((g5,pv)=>{"use strict";var pa=ci(),xo=Po(),df=He();pv.exports=yN;function yN(e,t){let r=[];mf(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),SN(r)}o(yN,"bundle");function mf(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(pa.isAllowed$Ref(u))lv(e,t,r,n,i,s,a,c);else{let l=Object.keys(u).sort((f,p)=>f==="definitions"?-1:p==="definitions"?1:f.length-p.length);for(let f of l){let p=xo.join(r,f),d=xo.join(n,f),m=u[f];pa.isAllowed$Ref(m)?lv(u,f,r,d,i,s,a,c):mf(u,f,p,d,i,s,a,c)}}}o(mf,"crawl");function lv(e,t,r,n,i,s,a,c){let u=t===null?e:e[t],l=df.resolve(r,u.$ref),f=a._resolve(l,n,c);if(f===null)return;let p=xo.parse(n).length,d=df.stripHash(f.path),m=df.getHash(f.path),g=d!==a._root$Ref.path,y=pa.isExtended$Ref(u);i+=f.indirections;let S=vN(s,e,t);if(S)if(p<S.depth||i<S.indirections)bN(s,S);else return;s.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:p,file:d,hash:m,value:f.value,circular:f.circular,extended:y,external:g,indirections:i}),S||mf(f.value,null,f.path,n,i+1,s,a,c)}o(lv,"inventory$Ref");function SN(e){e.sort((i,s)=>{if(i.file!==s.file)return i.file<s.file?-1:1;if(i.hash!==s.hash)return i.hash<s.hash?-1:1;if(i.circular!==s.circular)return i.circular?-1:1;if(i.extended!==s.extended)return i.extended?1:-1;if(i.indirections!==s.indirections)return i.indirections-s.indirections;if(i.depth!==s.depth)return i.depth-s.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=s.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-s.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=xo.join(n,xo.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=pa.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(SN,"remap");function vN(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}o(vN,"findInInventory");function bN(e,t){let r=e.indexOf(t);e.splice(r,1)}o(bN,"removeFromInventory")});var yf=h((S5,gv)=>{"use strict";var hf=ci(),dv=Po(),{ono:_N}=ot(),EN=He();gv.exports=PN;function PN(e,t){let r=gf(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(PN,"dereference");function gf(e,t,r,n,i,s){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),hf.isAllowed$Ref(e,s))a=mv(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=dv.join(t,u),f=dv.join(r,u),p=e[u],d=!1;hf.isAllowed$Ref(p,s)?(a=mv(p,l,f,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(p)===-1?(a=gf(p,l,f,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=hv(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(gf,"crawl");function mv(e,t,r,n,i,s){let a=EN.resolve(t,e.$ref),c=i._resolve(a,t,s);if(c===null)return{circular:!1,value:null};let u=c.circular,l=u||n.indexOf(c.value)!==-1;l&&hv(t,i,s);let f=hf.dereference(e,c.value);if(!l){let p=gf(f,c.path,r,n,i,s);l=p.circular,f=p.value}return l&&!u&&s.dereference.circular==="ignore"&&(f=e),u&&(f.$ref=r),{circular:l,value:f}}o(mv,"dereference$Ref");function hv(e,t,r){if(t.circular=!0,!r.dereference.circular)throw _N.reference(`Circular $ref pointer found at ${e}`);return!0}o(hv,"foundCircularReference")});var bv=h((b5,$t)=>{"use strict";var vv=XS(),ON=pf(),fa=of(),$N=uv(),xN=fv(),AN=yf(),ui=He(),{JSONParserError:wN,InvalidPointerError:IN,MissingPointerError:TN,ResolverError:CN,ParserError:RN,UnmatchedParserError:NN,UnmatchedResolverError:kN,isHandledError:jN,JSONParserErrorGroup:yv}=pt(),dt=af(),{ono:Sv}=ot();$t.exports=Ot;$t.exports.default=Ot;$t.exports.JSONParserError=wN;$t.exports.InvalidPointerError=IN;$t.exports.MissingPointerError=TN;$t.exports.ResolverError=CN;$t.exports.ParserError=RN;$t.exports.UnmatchedParserError=NN;$t.exports.UnmatchedResolverError=kN;function Ot(){this.schema=null,this.$refs=new vv}o(Ot,"$RefParser");Ot.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");Ot.prototype.parse=o(async function(t,r,n,i){let s=fa(arguments),a;if(!s.path&&!s.schema){let l=Sv(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return dt(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new vv;let c="http";if(ui.isFileSystemPath(s.path)&&(s.path=ui.fromFileSystemPath(s.path),c="file"),s.path=ui.resolve(ui.cwd(),s.path),s.schema&&typeof s.schema=="object"){let l=this.$refs._add(s.path);l.value=s.schema,l.pathType=c,a=Promise.resolve(s.schema)}else a=ON(s.path,this.$refs,s.options);let u=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return u.schema=l,dt(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,dt(s.callback,Promise.resolve(u.schema));throw Sv.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!jN(l)?dt(s.callback,Promise.reject(l)):(this.$refs._$refs[ui.stripHash(s.path)]&&this.$refs._$refs[ui.stripHash(s.path)].addError(l),dt(s.callback,Promise.resolve(null)))}},"parse");Ot.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");Ot.prototype.resolve=o(async function(t,r,n,i){let s=this,a=fa(arguments);try{return await this.parse(a.path,a.schema,a.options),await $N(s,a.options),Sf(s),dt(a.callback,Promise.resolve(s.$refs))}catch(c){return dt(a.callback,Promise.reject(c))}},"resolve");Ot.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");Ot.prototype.bundle=o(async function(t,r,n,i){let s=this,a=fa(arguments);try{return await this.resolve(a.path,a.schema,a.options),xN(s,a.options),Sf(s),dt(a.callback,Promise.resolve(s.schema))}catch(c){return dt(a.callback,Promise.reject(c))}},"bundle");Ot.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");Ot.prototype.dereference=o(async function(t,r,n,i){let s=this,a=fa(arguments);try{return await this.resolve(a.path,a.schema,a.options),AN(s,a.options),Sf(s),dt(a.callback,Promise.resolve(s.schema))}catch(c){return dt(a.callback,Promise.reject(c))}},"dereference");function Sf(e){if(yv.getParserErrors(e).length>0)throw new yv(e)}o(Sf,"finalize")});var $v=h((E5,Ov)=>{"use strict";var qN=Mp(),MN=Fp(),_v=of(),Ev=ls(),Pv=LS(),da=af(),{ono:mt}=ot(),on=bv(),DN=yf();Ov.exports=xt;function xt(){on.apply(this,arguments)}o(xt,"SwaggerParser");Ev.inherits(xt,on);xt.parse=on.parse;xt.resolve=on.resolve;xt.bundle=on.bundle;xt.dereference=on.dereference;Object.defineProperty(xt.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});xt.prototype.parse=async function(e,t,r,n){let i=_v(arguments);i.options=new Pv(i.options);try{let s=await on.prototype.parse.call(this,i.path,i.schema,i.options);if(s.swagger){if(s.swagger===void 0||s.info===void 0||s.paths===void 0)throw mt.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw mt.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw mt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw mt.syntax(`Unrecognized Swagger version: ${s.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(s.openapi===void 0||s.info===void 0)throw mt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(s.paths===void 0)if(s.openapi==="3.1.0"){if(s.webhooks===void 0)throw mt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw mt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw mt.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw mt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw mt.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}Ev.fixOasRelativeServers(s,i.path)}return da(i.callback,Promise.resolve(s))}catch(s){return da(i.callback,Promise.reject(s))}};xt.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};xt.prototype.validate=async function(e,t,r,n){let i=this,s=_v(arguments);s.options=new Pv(s.options);let a=s.options.dereference.circular;s.options.validate.schema&&(s.options.dereference.circular="ignore");try{if(await this.dereference(s.path,s.schema,s.options),s.options.dereference.circular=a,s.options.validate.schema&&(qN(i.api),i.$refs.circular)){if(a===!0)DN(i,s.options);else if(a===!1)throw mt.reference("The API contains circular references")}return s.options.validate.spec&&MN(i.api),da(s.callback,Promise.resolve(i.schema))}catch(c){return da(s.callback,Promise.reject(c))}}});var ya=h(br=>{"use strict";br.__esModule=!0;br.OpenAPIV2=br.OpenAPIV3=void 0;var HN;(function(e){var t;(function(r){r.GET="get",r.PUT="put",r.POST="post",r.DELETE="delete",r.OPTIONS="options",r.HEAD="head",r.PATCH="patch",r.TRACE="trace"})(t=e.HttpMethods||(e.HttpMethods={}))})(HN=br.OpenAPIV3||(br.OpenAPIV3={}));var VN;(function(e){var t;(function(r){r.GET="get",r.PUT="put",r.POST="post",r.DELETE="delete",r.OPTIONS="options",r.HEAD="head",r.PATCH="patch"})(t=e.HttpMethods||(e.HttpMethods={}))})(VN=br.OpenAPIV2||(br.OpenAPIV2={}))});var Ce=h(Ge=>{"use strict";Ge.__esModule=!0;Ge.extend=S_;Ge.indexOf=xk;Ge.escapeExpression=Ak;Ge.isEmpty=wk;Ge.createFrame=Ik;Ge.blockParams=Tk;Ge.appendContextPath=Ck;var Ek={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},Pk=/[&<>"'`=]/g,Ok=/[&<>"'`=]/;function $k(e){return Ek[e]}o($k,"escapeChar");function S_(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}o(S_,"extend");var ed=Object.prototype.toString;Ge.toString=ed;var Xf=o(function(t){return typeof t=="function"},"isFunction");Xf(/x/)&&(Ge.isFunction=Xf=o(function(e){return typeof e=="function"&&ed.call(e)==="[object Function]"},"isFunction"));Ge.isFunction=Xf;var v_=Array.isArray||function(e){return e&&typeof e=="object"?ed.call(e)==="[object Array]":!1};Ge.isArray=v_;function xk(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(xk,"indexOf");function Ak(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return Ok.test(e)?e.replace(Pk,$k):e}o(Ak,"escapeExpression");function wk(e){return!e&&e!==0?!0:!!(v_(e)&&e.length===0)}o(wk,"isEmpty");function Ik(e){var t=S_({},e);return t._parent=e,t}o(Ik,"createFrame");function Tk(e,t){return e.path=t,e}o(Tk,"blockParams");function Ck(e,t){return(e?e+".":"")+t}o(Ck,"appendContextPath")});var tt=h((Za,b_)=>{"use strict";Za.__esModule=!0;var td=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function rd(e,t){var r=t&&t.loc,n=void 0,i=void 0,s=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,e+=" - "+n+":"+s);for(var c=Error.prototype.constructor.call(this,e),u=0;u<td.length;u++)this[td[u]]=c[td[u]];Error.captureStackTrace&&Error.captureStackTrace(this,rd);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=s,this.endColumn=a))}catch{}}o(rd,"Exception");rd.prototype=new Error;Za.default=rd;b_.exports=Za.default});var E_=h((za,__)=>{"use strict";za.__esModule=!0;var nd=Ce();za.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var n=r.inverse,i=r.fn;if(t===!0)return i(this);if(t===!1||t==null)return n(this);if(nd.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var s=nd.createFrame(r.data);s.contextPath=nd.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};__.exports=za.default});var O_=h((Ka,P_)=>{"use strict";Ka.__esModule=!0;function Rk(e){return e&&e.__esModule?e:{default:e}}o(Rk,"_interopRequireDefault");var Ko=Ce(),Nk=tt(),kk=Rk(Nk);Ka.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new kk.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",c=void 0,u=void 0;r.data&&r.ids&&(u=Ko.appendContextPath(r.data.contextPath,r.ids[0])+"."),Ko.isFunction(t)&&(t=t.call(this)),r.data&&(c=Ko.createFrame(r.data));function l(g,y,S){c&&(c.key=g,c.index=y,c.first=y===0,c.last=!!S,u&&(c.contextPath=u+g)),a=a+n(t[g],{data:c,blockParams:Ko.blockParams([t[g],g],[u+g,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(Ko.isArray(t))for(var f=t.length;s<f;s++)s in t&&l(s,s,s===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var p=[],d=t[Symbol.iterator](),m=d.next();!m.done;m=d.next())p.push(m.value);t=p;for(var f=t.length;s<f;s++)l(s,s,s===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(y){g!==void 0&&l(g,s-1),g=y,s++}),g!==void 0&&l(g,s-1,!0)})();return s===0&&(a=i(this)),a})};P_.exports=Ka.default});var x_=h((Qa,$_)=>{"use strict";Qa.__esModule=!0;function jk(e){return e&&e.__esModule?e:{default:e}}o(jk,"_interopRequireDefault");var qk=tt(),Mk=jk(qk);Qa.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new Mk.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};$_.exports=Qa.default});var T_=h((Wa,I_)=>{"use strict";Wa.__esModule=!0;function Dk(e){return e&&e.__esModule?e:{default:e}}o(Dk,"_interopRequireDefault");var A_=Ce(),Lk=tt(),w_=Dk(Lk);Wa.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new w_.default("#if requires exactly one argument");return A_.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||A_.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new w_.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};I_.exports=Wa.default});var R_=h((Ya,C_)=>{"use strict";Ya.__esModule=!0;Ya.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var i=1;r.hash.level!=null?i=r.hash.level:r.data&&r.data.level!=null&&(i=r.data.level),t[0]=i,e.log.apply(e,t)})};C_.exports=Ya.default});var k_=h((Ja,N_)=>{"use strict";Ja.__esModule=!0;Ja.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};N_.exports=Ja.default});var q_=h((Xa,j_)=>{"use strict";Xa.__esModule=!0;function Fk(e){return e&&e.__esModule?e:{default:e}}o(Fk,"_interopRequireDefault");var Qo=Ce(),Hk=tt(),Vk=Fk(Hk);Xa.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new Vk.default("#with requires exactly one argument");Qo.isFunction(t)&&(t=t.call(this));var n=r.fn;if(Qo.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=Qo.createFrame(r.data),i.contextPath=Qo.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:Qo.blockParams([t],[i&&i.contextPath])})})};j_.exports=Xa.default});var id=h(ec=>{"use strict";ec.__esModule=!0;ec.registerDefaultHelpers=nj;ec.moveHelperToHooks=ij;function Sn(e){return e&&e.__esModule?e:{default:e}}o(Sn,"_interopRequireDefault");var Bk=E_(),Gk=Sn(Bk),Uk=O_(),Zk=Sn(Uk),zk=x_(),Kk=Sn(zk),Qk=T_(),Wk=Sn(Qk),Yk=R_(),Jk=Sn(Yk),Xk=k_(),ej=Sn(Xk),tj=q_(),rj=Sn(tj);function nj(e){Gk.default(e),Zk.default(e),Kk.default(e),Wk.default(e),Jk.default(e),ej.default(e),rj.default(e)}o(nj,"registerDefaultHelpers");function ij(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(ij,"moveHelperToHooks")});var D_=h((tc,M_)=>{"use strict";tc.__esModule=!0;var oj=Ce();tc.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var s=t;return r.partials||(r.partials={},s=o(function(a,c){var u=n.partials;n.partials=oj.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};M_.exports=tc.default});var L_=h(od=>{"use strict";od.__esModule=!0;od.registerDefaultDecorators=uj;function sj(e){return e&&e.__esModule?e:{default:e}}o(sj,"_interopRequireDefault");var aj=D_(),cj=sj(aj);function uj(e){cj.default(e)}o(uj,"registerDefaultDecorators")});var sd=h((rc,F_)=>{"use strict";rc.__esModule=!0;var lj=Ce(),Oi={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=lj.indexOf(Oi.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=Oi.lookupLevel(t),typeof console<"u"&&Oi.lookupLevel(Oi.level)<=t){var r=Oi.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];console[r].apply(console,i)}},"log")};rc.default=Oi;F_.exports=rc.default});var H_=h(ad=>{"use strict";ad.__esModule=!0;ad.createNewLookupObject=fj;var pj=Ce();function fj(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return pj.extend.apply(void 0,[Object.create(null)].concat(t))}o(fj,"createNewLookupObject")});var cd=h(Wo=>{"use strict";Wo.__esModule=!0;Wo.createProtoAccessControl=gj;Wo.resultIsAllowed=yj;Wo.resetLoggedProperties=vj;function dj(e){return e&&e.__esModule?e:{default:e}}o(dj,"_interopRequireDefault");var V_=H_(),mj=sd(),hj=dj(mj),nc=Object.create(null);function gj(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=Object.create(null);return r.__proto__=!1,{properties:{whitelist:V_.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:V_.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(gj,"createProtoAccessControl");function yj(e,t,r){return B_(typeof e=="function"?t.methods:t.properties,r)}o(yj,"resultIsAllowed");function B_(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(Sj(t),!1)}o(B_,"checkWhiteList");function Sj(e){nc[e]!==!0&&(nc[e]=!0,hj.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
51
51
  You can add a runtime option to disable the check or this warning:
52
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(Kk,"logUnexpecedPropertyAccessOnce");function Qk(){Object.keys(Va).forEach(function(e){delete Va[e]})}o(Qk,"resetLoggedProperties")});var Ua=h(kt=>{"use strict";kt.__esModule=!0;kt.HandlebarsEnvironment=Kf;function $_(e){return e&&e.__esModule?e:{default:e}}o($_,"_interopRequireDefault");var fn=Te(),Wk=et(),Zf=$_(Wk),Yk=Hf(),Jk=S_(),Xk=Bf(),Ba=$_(Xk),ej=Gf(),tj="4.7.8";kt.VERSION=tj;var rj=8;kt.COMPILER_REVISION=rj;var nj=7;kt.LAST_COMPATIBLE_COMPILER_REVISION=nj;var ij={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};kt.REVISION_CHANGES=ij;var zf="[object Object]";function Kf(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},Yk.registerDefaultHelpers(this),Jk.registerDefaultDecorators(this)}o(Kf,"HandlebarsEnvironment");Kf.prototype={constructor:Kf,logger:Ba.default,log:Ba.default.log,registerHelper:o(function(t,r){if(fn.toString.call(t)===zf){if(r)throw new Zf.default("Arg not supported with multiple helpers");fn.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:o(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:o(function(t,r){if(fn.toString.call(t)===zf)fn.extend(this.partials,t);else{if(typeof r>"u")throw new Zf.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:o(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:o(function(t,r){if(fn.toString.call(t)===zf){if(r)throw new Zf.default("Arg not supported with multiple decorators");fn.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){ej.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var oj=Ba.default.log;kt.log=oj;kt.createFrame=fn.createFrame;kt.logger=Ba.default});var x_=h((Ga,O_)=>{"use strict";Ga.__esModule=!0;function Qf(e){this.string=e}o(Qf,"SafeString");Qf.prototype.toString=Qf.prototype.toHTML=function(){return""+this.string};Ga.default=Qf;O_.exports=Ga.default});var A_=h(Wf=>{"use strict";Wf.__esModule=!0;Wf.wrapHelper=sj;function sj(e,t){if(typeof e!="function")return e;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}o(sj,"wrapHelper")});var C_=h(Tr=>{"use strict";Tr.__esModule=!0;Tr.checkRevision=fj;Tr.template=dj;Tr.wrapProgram=Za;Tr.resolvePartial=mj;Tr.invokePartial=hj;Tr.noop=T_;function aj(e){return e&&e.__esModule?e:{default:e}}o(aj,"_interopRequireDefault");function cj(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(cj,"_interopRequireWildcard");var uj=Te(),Zt=cj(uj),lj=et(),zt=aj(lj),Kt=Ua(),w_=Hf(),pj=A_(),I_=Gf();function fj(e){var t=e&&e[0]||1,r=Kt.COMPILER_REVISION;if(!(t>=Kt.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Kt.COMPILER_REVISION))if(t<Kt.LAST_COMPATIBLE_COMPILER_REVISION){var n=Kt.REVISION_CHANGES[r],i=Kt.REVISION_CHANGES[t];throw new zt.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+i+").")}else throw new zt.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}o(fj,"checkRevision");function dj(e,t){if(!t)throw new zt.default("No environment passed to template");if(!e||!e.main)throw new zt.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function n(a,c,u){u.hash&&(c=Zt.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=Zt.extend({},u,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),f=t.VM.invokePartial.call(this,a,c,l);if(f==null&&t.compile&&(u.partials[u.name]=t.compile(a,e.compilerOptions,t),f=u.partials[u.name](c,l)),f!=null){if(u.indent){for(var p=f.split(`
52
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(Sj,"logUnexpecedPropertyAccessOnce");function vj(){Object.keys(nc).forEach(function(e){delete nc[e]})}o(vj,"resetLoggedProperties")});var oc=h(jt=>{"use strict";jt.__esModule=!0;jt.HandlebarsEnvironment=pd;function G_(e){return e&&e.__esModule?e:{default:e}}o(G_,"_interopRequireDefault");var vn=Ce(),bj=tt(),ud=G_(bj),_j=id(),Ej=L_(),Pj=sd(),ic=G_(Pj),Oj=cd(),$j="4.7.8";jt.VERSION=$j;var xj=8;jt.COMPILER_REVISION=xj;var Aj=7;jt.LAST_COMPATIBLE_COMPILER_REVISION=Aj;var wj={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};jt.REVISION_CHANGES=wj;var ld="[object Object]";function pd(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},_j.registerDefaultHelpers(this),Ej.registerDefaultDecorators(this)}o(pd,"HandlebarsEnvironment");pd.prototype={constructor:pd,logger:ic.default,log:ic.default.log,registerHelper:o(function(t,r){if(vn.toString.call(t)===ld){if(r)throw new ud.default("Arg not supported with multiple helpers");vn.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:o(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:o(function(t,r){if(vn.toString.call(t)===ld)vn.extend(this.partials,t);else{if(typeof r>"u")throw new ud.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:o(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:o(function(t,r){if(vn.toString.call(t)===ld){if(r)throw new ud.default("Arg not supported with multiple decorators");vn.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Oj.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Ij=ic.default.log;jt.log=Ij;jt.createFrame=vn.createFrame;jt.logger=ic.default});var Z_=h((sc,U_)=>{"use strict";sc.__esModule=!0;function fd(e){this.string=e}o(fd,"SafeString");fd.prototype.toString=fd.prototype.toHTML=function(){return""+this.string};sc.default=fd;U_.exports=sc.default});var z_=h(dd=>{"use strict";dd.__esModule=!0;dd.wrapHelper=Tj;function Tj(e,t){if(typeof e!="function")return e;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}o(Tj,"wrapHelper")});var J_=h(jr=>{"use strict";jr.__esModule=!0;jr.checkRevision=qj;jr.template=Mj;jr.wrapProgram=ac;jr.resolvePartial=Dj;jr.invokePartial=Lj;jr.noop=W_;function Cj(e){return e&&e.__esModule?e:{default:e}}o(Cj,"_interopRequireDefault");function Rj(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(Rj,"_interopRequireWildcard");var Nj=Ce(),Qt=Rj(Nj),kj=tt(),Wt=Cj(kj),Yt=oc(),K_=id(),jj=z_(),Q_=cd();function qj(e){var t=e&&e[0]||1,r=Yt.COMPILER_REVISION;if(!(t>=Yt.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Yt.COMPILER_REVISION))if(t<Yt.LAST_COMPATIBLE_COMPILER_REVISION){var n=Yt.REVISION_CHANGES[r],i=Yt.REVISION_CHANGES[t];throw new Wt.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+i+").")}else throw new Wt.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}o(qj,"checkRevision");function Mj(e,t){if(!t)throw new Wt.default("No environment passed to template");if(!e||!e.main)throw new Wt.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function n(a,c,u){u.hash&&(c=Qt.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=Qt.extend({},u,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),f=t.VM.invokePartial.call(this,a,c,l);if(f==null&&t.compile&&(u.partials[u.name]=t.compile(a,e.compilerOptions,t),f=u.partials[u.name](c,l)),f!=null){if(u.indent){for(var p=f.split(`
53
53
  `),d=0,m=p.length;d<m&&!(!p[d]&&d+1===m);d++)p[d]=u.indent+p[d];f=p.join(`
54
- `)}return f}else throw new zt.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,u,l){if(!c||!(u in c))throw new zt.default('"'+u+'" not defined in '+c,{loc:l});return i.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||I_.resultIsAllowed(l,i.protoAccessControl,u))return l},"lookupProperty"),lookup:o(function(c,u){for(var l=c.length,f=0;f<l;f++){var p=c[f]&&i.lookupProperty(c[f],u);if(p!=null)return c[f][u]}},"lookup"),lambda:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:Zt.escapeExpression,invokePartial:n,fn:o(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,l,f,p){var d=this.programs[c],m=this.fn(c);return u||p||f||l?d=Za(this,c,m,u,l,f,p):d||(d=this.programs[c]=Za(this,c,m)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=Zt.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&e.useData&&(u=gj(a,u));var l=void 0,f=e.useBlockParams?[]:void 0;e.useDepths&&(c.depths?l=a!=c.depths[0]?[a].concat(c.depths):c.depths:l=[a]);function p(d){return""+e.main(i,d,i.helpers,i.partials,u,f,l)}return o(p,"main"),p=R_(e.main,p,i,c.depths||[],u,f),p(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c=Zt.extend({},t.helpers,a.helpers);yj(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Zt.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=I_.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;w_.moveHelperToHooks(i,"helperMissing",u),w_.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new zt.default("must pass block params");if(e.useDepths&&!l)throw new zt.default("must pass parent depths");return Za(i,a,e[a],c,0,u,l)},s}o(dj,"template");function Za(e,t,r,n,i,s,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a;return a&&u!=a[0]&&!(u===e.nullContext&&a[0]===null)&&(f=[u].concat(a)),r(e,u,e.helpers,e.partials,l.data||n,s&&[l.blockParams].concat(s),f)}return o(c,"prog"),c=R_(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(Za,"wrapProgram");function mj(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}o(mj,"resolvePartial");function hj(e,t,r){var n=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==T_&&function(){r.data=Kt.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=Kt.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=Zt.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new zt.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(hj,"invokePartial");function T_(){return""}o(T_,"noop");function gj(e,t){return(!t||!("root"in t))&&(t=t?Kt.createFrame(t):{},t.root=e),t}o(gj,"initData");function R_(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),Zt.extend(t,a)}return t}o(R_,"executeDecorators");function yj(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=vj(n,t)})}o(yj,"wrapHelpersToPassLookupProperty");function vj(e,t){var r=t.lookupProperty;return pj.wrapHelper(e,function(n){return Zt.extend({lookupProperty:r},n)})}o(vj,"passLookupPropertyOption")});var Yf=h((za,N_)=>{"use strict";za.__esModule=!0;za.default=function(e){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}};N_.exports=za.default});var D_=h((Ka,M_)=>{"use strict";Ka.__esModule=!0;function Xf(e){return e&&e.__esModule?e:{default:e}}o(Xf,"_interopRequireDefault");function ed(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(ed,"_interopRequireWildcard");var Sj=Ua(),k_=ed(Sj),bj=x_(),_j=Xf(bj),Pj=et(),Ej=Xf(Pj),$j=Te(),Jf=ed($j),Oj=C_(),j_=ed(Oj),xj=Yf(),Aj=Xf(xj);function q_(){var e=new k_.HandlebarsEnvironment;return Jf.extend(e,k_),e.SafeString=_j.default,e.Exception=Ej.default,e.Utils=Jf,e.escapeExpression=Jf.escapeExpression,e.VM=j_,e.template=function(t){return j_.template(t,e)},e}o(q_,"create");var Lo=q_();Lo.create=q_;Aj.default(Lo);Lo.default=Lo;Ka.default=Lo;M_.exports=Ka.default});var td=h((Qa,F_)=>{"use strict";Qa.__esModule=!0;var L_={helpers:{helperExpression:o(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:o(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:o(function(t){return t.parts.length===1&&!L_.helpers.scopedId(t)&&!t.depth},"simpleId")}};Qa.default=L_;F_.exports=Qa.default});var V_=h((Wa,H_)=>{"use strict";Wa.__esModule=!0;var wj=function(){var e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:o(function(i,s,a,c,u,l,f){var p=l.length-1;switch(u){case 1:return l[p-1];case 2:this.$=c.prepareProgram(l[p]);break;case 3:this.$=l[p];break;case 4:this.$=l[p];break;case 5:this.$=l[p];break;case 6:this.$=l[p];break;case 7:this.$=l[p];break;case 8:this.$=l[p];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(l[p]),strip:c.stripFlags(l[p],l[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[p],value:l[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(l[p-2],l[p-1],l[p],this._$);break;case 12:this.$={path:l[p-3],params:l[p-2],hash:l[p-1]};break;case 13:this.$=c.prepareBlock(l[p-3],l[p-2],l[p-1],l[p],!1,this._$);break;case 14:this.$=c.prepareBlock(l[p-3],l[p-2],l[p-1],l[p],!0,this._$);break;case 15:this.$={open:l[p-5],path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 16:this.$={path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 17:this.$={path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 18:this.$={strip:c.stripFlags(l[p-1],l[p-1]),program:l[p]};break;case 19:var d=c.prepareBlock(l[p-2],l[p-1],l[p],l[p],!1,this._$),m=c.prepareProgram([d],l[p-1].loc);m.chained=!0,this.$={strip:l[p-2].strip,program:m,chain:!0};break;case 20:this.$=l[p];break;case 21:this.$={path:l[p-1],strip:c.stripFlags(l[p-2],l[p])};break;case 22:this.$=c.prepareMustache(l[p-3],l[p-2],l[p-1],l[p-4],c.stripFlags(l[p-4],l[p]),this._$);break;case 23:this.$=c.prepareMustache(l[p-3],l[p-2],l[p-1],l[p-4],c.stripFlags(l[p-4],l[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[p-3],params:l[p-2],hash:l[p-1],indent:"",strip:c.stripFlags(l[p-4],l[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(l[p-2],l[p-1],l[p],this._$);break;case 26:this.$={path:l[p-3],params:l[p-2],hash:l[p-1],strip:c.stripFlags(l[p-4],l[p])};break;case 27:this.$=l[p];break;case 28:this.$=l[p];break;case 29:this.$={type:"SubExpression",path:l[p-3],params:l[p-2],hash:l[p-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(l[p-2]),value:l[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(l[p-1]);break;case 33:this.$=l[p];break;case 34:this.$=l[p];break;case 35:this.$={type:"StringLiteral",value:l[p],original:l[p],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[p]),original:Number(l[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[p]==="true",original:l[p]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=l[p];break;case 41:this.$=l[p];break;case 42:this.$=c.preparePath(!0,l[p],this._$);break;case 43:this.$=c.preparePath(!1,l[p],this._$);break;case 44:l[p-2].push({part:c.id(l[p]),original:l[p],separator:l[p-1]}),this.$=l[p-2];break;case 45:this.$=[{part:c.id(l[p]),original:l[p]}];break;case 46:this.$=[];break;case 47:l[p-1].push(l[p]);break;case 48:this.$=[];break;case 49:l[p-1].push(l[p]);break;case 50:this.$=[];break;case 51:l[p-1].push(l[p]);break;case 58:this.$=[];break;case 59:l[p-1].push(l[p]);break;case 64:this.$=[];break;case 65:l[p-1].push(l[p]);break;case 70:this.$=[];break;case 71:l[p-1].push(l[p]);break;case 78:this.$=[];break;case 79:l[p-1].push(l[p]);break;case 82:this.$=[];break;case 83:l[p-1].push(l[p]);break;case 86:this.$=[];break;case 87:l[p-1].push(l[p]);break;case 90:this.$=[];break;case 91:l[p-1].push(l[p]);break;case 94:this.$=[];break;case 95:l[p-1].push(l[p]);break;case 98:this.$=[l[p]];break;case 99:l[p-1].push(l[p]);break;case 100:this.$=[l[p]];break;case 101:l[p-1].push(l[p]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=this,a=[0],c=[null],u=[],l=this.table,f="",p=0,d=0,m=0,g=2,y=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var v=this.lexer.yylloc;u.push(v);var S=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function b(Ue){a.length=a.length-2*Ue,c.length=c.length-Ue,u.length=u.length-Ue}o(b,"popStack");function P(){var Ue;return Ue=s.lexer.lex()||1,typeof Ue!="number"&&(Ue=s.symbols_[Ue]||Ue),Ue}o(P,"lex");for(var E,_,I,T,ge,re,L={},X,oe,qt,Mt;;){if(I=a[a.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((E===null||typeof E>"u")&&(E=P()),T=l[I]&&l[I][E]),typeof T>"u"||!T.length||!T[0]){var Qo="";if(!m){Mt=[];for(X in l[I])this.terminals_[X]&&X>2&&Mt.push("'"+this.terminals_[X]+"'");this.lexer.showPosition?Qo="Parse error on line "+(p+1)+`:
54
+ `)}return f}else throw new Wt.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,u,l){if(!c||!(u in c))throw new Wt.default('"'+u+'" not defined in '+c,{loc:l});return i.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||Q_.resultIsAllowed(l,i.protoAccessControl,u))return l},"lookupProperty"),lookup:o(function(c,u){for(var l=c.length,f=0;f<l;f++){var p=c[f]&&i.lookupProperty(c[f],u);if(p!=null)return c[f][u]}},"lookup"),lambda:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:Qt.escapeExpression,invokePartial:n,fn:o(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,l,f,p){var d=this.programs[c],m=this.fn(c);return u||p||f||l?d=ac(this,c,m,u,l,f,p):d||(d=this.programs[c]=ac(this,c,m)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=Qt.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&e.useData&&(u=Fj(a,u));var l=void 0,f=e.useBlockParams?[]:void 0;e.useDepths&&(c.depths?l=a!=c.depths[0]?[a].concat(c.depths):c.depths:l=[a]);function p(d){return""+e.main(i,d,i.helpers,i.partials,u,f,l)}return o(p,"main"),p=Y_(e.main,p,i,c.depths||[],u,f),p(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c=Qt.extend({},t.helpers,a.helpers);Hj(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Qt.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=Q_.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;K_.moveHelperToHooks(i,"helperMissing",u),K_.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new Wt.default("must pass block params");if(e.useDepths&&!l)throw new Wt.default("must pass parent depths");return ac(i,a,e[a],c,0,u,l)},s}o(Mj,"template");function ac(e,t,r,n,i,s,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a;return a&&u!=a[0]&&!(u===e.nullContext&&a[0]===null)&&(f=[u].concat(a)),r(e,u,e.helpers,e.partials,l.data||n,s&&[l.blockParams].concat(s),f)}return o(c,"prog"),c=Y_(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(ac,"wrapProgram");function Dj(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}o(Dj,"resolvePartial");function Lj(e,t,r){var n=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==W_&&function(){r.data=Yt.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=Yt.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=Qt.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new Wt.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(Lj,"invokePartial");function W_(){return""}o(W_,"noop");function Fj(e,t){return(!t||!("root"in t))&&(t=t?Yt.createFrame(t):{},t.root=e),t}o(Fj,"initData");function Y_(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),Qt.extend(t,a)}return t}o(Y_,"executeDecorators");function Hj(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=Vj(n,t)})}o(Hj,"wrapHelpersToPassLookupProperty");function Vj(e,t){var r=t.lookupProperty;return jj.wrapHelper(e,function(n){return Qt.extend({lookupProperty:r},n)})}o(Vj,"passLookupPropertyOption")});var md=h((cc,X_)=>{"use strict";cc.__esModule=!0;cc.default=function(e){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}};X_.exports=cc.default});var iE=h((uc,nE)=>{"use strict";uc.__esModule=!0;function gd(e){return e&&e.__esModule?e:{default:e}}o(gd,"_interopRequireDefault");function yd(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(yd,"_interopRequireWildcard");var Bj=oc(),eE=yd(Bj),Gj=Z_(),Uj=gd(Gj),Zj=tt(),zj=gd(Zj),Kj=Ce(),hd=yd(Kj),Qj=J_(),tE=yd(Qj),Wj=md(),Yj=gd(Wj);function rE(){var e=new eE.HandlebarsEnvironment;return hd.extend(e,eE),e.SafeString=Uj.default,e.Exception=zj.default,e.Utils=hd,e.escapeExpression=hd.escapeExpression,e.VM=tE,e.template=function(t){return tE.template(t,e)},e}o(rE,"create");var Yo=rE();Yo.create=rE;Yj.default(Yo);Yo.default=Yo;uc.default=Yo;nE.exports=uc.default});var Sd=h((lc,sE)=>{"use strict";lc.__esModule=!0;var oE={helpers:{helperExpression:o(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:o(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:o(function(t){return t.parts.length===1&&!oE.helpers.scopedId(t)&&!t.depth},"simpleId")}};lc.default=oE;sE.exports=lc.default});var cE=h((pc,aE)=>{"use strict";pc.__esModule=!0;var Jj=function(){var e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:o(function(i,s,a,c,u,l,f){var p=l.length-1;switch(u){case 1:return l[p-1];case 2:this.$=c.prepareProgram(l[p]);break;case 3:this.$=l[p];break;case 4:this.$=l[p];break;case 5:this.$=l[p];break;case 6:this.$=l[p];break;case 7:this.$=l[p];break;case 8:this.$=l[p];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(l[p]),strip:c.stripFlags(l[p],l[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[p],value:l[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(l[p-2],l[p-1],l[p],this._$);break;case 12:this.$={path:l[p-3],params:l[p-2],hash:l[p-1]};break;case 13:this.$=c.prepareBlock(l[p-3],l[p-2],l[p-1],l[p],!1,this._$);break;case 14:this.$=c.prepareBlock(l[p-3],l[p-2],l[p-1],l[p],!0,this._$);break;case 15:this.$={open:l[p-5],path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 16:this.$={path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 17:this.$={path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 18:this.$={strip:c.stripFlags(l[p-1],l[p-1]),program:l[p]};break;case 19:var d=c.prepareBlock(l[p-2],l[p-1],l[p],l[p],!1,this._$),m=c.prepareProgram([d],l[p-1].loc);m.chained=!0,this.$={strip:l[p-2].strip,program:m,chain:!0};break;case 20:this.$=l[p];break;case 21:this.$={path:l[p-1],strip:c.stripFlags(l[p-2],l[p])};break;case 22:this.$=c.prepareMustache(l[p-3],l[p-2],l[p-1],l[p-4],c.stripFlags(l[p-4],l[p]),this._$);break;case 23:this.$=c.prepareMustache(l[p-3],l[p-2],l[p-1],l[p-4],c.stripFlags(l[p-4],l[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[p-3],params:l[p-2],hash:l[p-1],indent:"",strip:c.stripFlags(l[p-4],l[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(l[p-2],l[p-1],l[p],this._$);break;case 26:this.$={path:l[p-3],params:l[p-2],hash:l[p-1],strip:c.stripFlags(l[p-4],l[p])};break;case 27:this.$=l[p];break;case 28:this.$=l[p];break;case 29:this.$={type:"SubExpression",path:l[p-3],params:l[p-2],hash:l[p-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(l[p-2]),value:l[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(l[p-1]);break;case 33:this.$=l[p];break;case 34:this.$=l[p];break;case 35:this.$={type:"StringLiteral",value:l[p],original:l[p],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[p]),original:Number(l[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[p]==="true",original:l[p]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=l[p];break;case 41:this.$=l[p];break;case 42:this.$=c.preparePath(!0,l[p],this._$);break;case 43:this.$=c.preparePath(!1,l[p],this._$);break;case 44:l[p-2].push({part:c.id(l[p]),original:l[p],separator:l[p-1]}),this.$=l[p-2];break;case 45:this.$=[{part:c.id(l[p]),original:l[p]}];break;case 46:this.$=[];break;case 47:l[p-1].push(l[p]);break;case 48:this.$=[];break;case 49:l[p-1].push(l[p]);break;case 50:this.$=[];break;case 51:l[p-1].push(l[p]);break;case 58:this.$=[];break;case 59:l[p-1].push(l[p]);break;case 64:this.$=[];break;case 65:l[p-1].push(l[p]);break;case 70:this.$=[];break;case 71:l[p-1].push(l[p]);break;case 78:this.$=[];break;case 79:l[p-1].push(l[p]);break;case 82:this.$=[];break;case 83:l[p-1].push(l[p]);break;case 86:this.$=[];break;case 87:l[p-1].push(l[p]);break;case 90:this.$=[];break;case 91:l[p-1].push(l[p]);break;case 94:this.$=[];break;case 95:l[p-1].push(l[p]);break;case 98:this.$=[l[p]];break;case 99:l[p-1].push(l[p]);break;case 100:this.$=[l[p]];break;case 101:l[p-1].push(l[p]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=this,a=[0],c=[null],u=[],l=this.table,f="",p=0,d=0,m=0,g=2,y=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var S=this.lexer.yylloc;u.push(S);var v=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function b(Ze){a.length=a.length-2*Ze,c.length=c.length-Ze,u.length=u.length-Ze}o(b,"popStack");function E(){var Ze;return Ze=s.lexer.lex()||1,typeof Ze!="number"&&(Ze=s.symbols_[Ze]||Ze),Ze}o(E,"lex");for(var P,_,A,I,J,z,q={},Z,w,Mt,Dt;;){if(A=a[a.length-1],this.defaultActions[A]?I=this.defaultActions[A]:((P===null||typeof P>"u")&&(P=E()),I=l[A]&&l[A][P]),typeof I>"u"||!I.length||!I[0]){var cs="";if(!m){Dt=[];for(Z in l[A])this.terminals_[Z]&&Z>2&&Dt.push("'"+this.terminals_[Z]+"'");this.lexer.showPosition?cs="Parse error on line "+(p+1)+`:
55
55
  `+this.lexer.showPosition()+`
56
- Expecting `+Mt.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Qo="Parse error on line "+(p+1)+": Unexpected "+(E==1?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Qo,{text:this.lexer.match,token:this.terminals_[E]||E,line:this.lexer.yylineno,loc:v,expected:Mt})}}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+E);switch(T[0]){case 1:a.push(E),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(T[1]),E=null,_?(E=_,_=null):(d=this.lexer.yyleng,f=this.lexer.yytext,p=this.lexer.yylineno,v=this.lexer.yylloc,m>0&&m--);break;case 2:if(oe=this.productions_[T[1]][1],L.$=c[c.length-oe],L._$={first_line:u[u.length-(oe||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(oe||1)].first_column,last_column:u[u.length-1].last_column},S&&(L._$.range=[u[u.length-(oe||1)].range[0],u[u.length-1].range[1]]),re=this.performAction.call(L,f,d,p,this.yy,T[1],c,u),typeof re<"u")return re;oe&&(a=a.slice(0,-1*oe*2),c=c.slice(0,-1*oe),u=u.slice(0,-1*oe)),a.push(this.productions_[T[1]][0]),c.push(L.$),u.push(L._$),qt=l[a[a.length-2]][a[a.length-1]],a.push(qt);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
56
+ Expecting `+Dt.join(", ")+", got '"+(this.terminals_[P]||P)+"'":cs="Parse error on line "+(p+1)+": Unexpected "+(P==1?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(cs,{text:this.lexer.match,token:this.terminals_[P]||P,line:this.lexer.yylineno,loc:S,expected:Dt})}}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+P);switch(I[0]){case 1:a.push(P),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(I[1]),P=null,_?(P=_,_=null):(d=this.lexer.yyleng,f=this.lexer.yytext,p=this.lexer.yylineno,S=this.lexer.yylloc,m>0&&m--);break;case 2:if(w=this.productions_[I[1]][1],q.$=c[c.length-w],q._$={first_line:u[u.length-(w||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(w||1)].first_column,last_column:u[u.length-1].last_column},v&&(q._$.range=[u[u.length-(w||1)].range[0],u[u.length-1].range[1]]),z=this.performAction.call(q,f,d,p,this.yy,I[1],c,u),typeof z<"u")return z;w&&(a=a.slice(0,-1*w*2),c=c.slice(0,-1*w),u=u.slice(0,-1*w)),a.push(this.productions_[I[1]][0]),c.push(q.$),u.push(q._$),Mt=l[a[a.length-2]][a[a.length-1]],a.push(Mt);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
57
57
  `+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,u,l,f;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),d=0;d<p.length&&(c=this._input.match(this.rules[p[d]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=d,!this.options.flex)));d++);return a?(f=a[0].match(/(?:\r\n?|\n).*/g),f&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,p[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
58
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,u){function l(p,d){return a.yytext=a.yytext.substring(p,a.yyleng-d+p)}o(l,"strip");var f=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return o(r,"Parser"),r.prototype=e,e.Parser=r,new r}();Wa.default=wj;H_.exports=Wa.default});var ec=h((Xa,G_)=>{"use strict";Xa.__esModule=!0;function Ij(e){return e&&e.__esModule?e:{default:e}}o(Ij,"_interopRequireDefault");var Tj=et(),rd=Ij(Tj);function Ya(){this.parents=[]}o(Ya,"Visitor");Ya.prototype={constructor:Ya,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!Ya.prototype[n.type])throw new rd.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:o(function(t,r){if(this.acceptKey(t,r),!t[r])throw new rd.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(t){if(t){if(!this[t.type])throw new rd.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},"accept"),Program:o(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:Ja,Decorator:Ja,BlockStatement:B_,DecoratorBlock:B_,PartialStatement:U_,PartialBlockStatement:o(function(t){U_.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:Ja,PathExpression:o(function(){},"PathExpression"),StringLiteral:o(function(){},"StringLiteral"),NumberLiteral:o(function(){},"NumberLiteral"),BooleanLiteral:o(function(){},"BooleanLiteral"),UndefinedLiteral:o(function(){},"UndefinedLiteral"),NullLiteral:o(function(){},"NullLiteral"),Hash:o(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:o(function(t){this.acceptRequired(t,"value")},"HashPair")};function Ja(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(Ja,"visitSubExpression");function B_(e){Ja.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(B_,"visitBlock");function U_(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(U_,"visitPartial");Xa.default=Ya;G_.exports=Xa.default});var z_=h((tc,Z_)=>{"use strict";tc.__esModule=!0;function Rj(e){return e&&e.__esModule?e:{default:e}}o(Rj,"_interopRequireDefault");var Cj=ec(),Nj=Rj(Cj);function jt(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(jt,"WhitespaceControl");jt.prototype=new Nj.default;jt.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,s=n.length;i<s;i++){var a=n[i],c=this.accept(a);if(c){var u=nd(n,i,r),l=id(n,i,r),f=c.openStandalone&&u,p=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&dn(n,i,!0),c.open&&Rr(n,i,!0),t&&d&&(dn(n,i),Rr(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&f&&(dn((a.program||a.inverse).body),Rr(n,i)),t&&p&&(dn(n,i),Rr((a.inverse||a.program).body))}}return e};jt.prototype.BlockStatement=jt.prototype.DecoratorBlock=jt.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var s={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:id(t.body),closeStandalone:nd((n||t).body)};if(e.openStrip.close&&dn(t.body,null,!0),r){var a=e.inverseStrip;a.open&&Rr(t.body,null,!0),a.close&&dn(n.body,null,!0),e.closeStrip.open&&Rr(i.body,null,!0),!this.options.ignoreStandalone&&nd(t.body)&&id(n.body)&&(Rr(t.body),dn(n.body))}else e.closeStrip.open&&Rr(t.body,null,!0);return s};jt.prototype.Decorator=jt.prototype.MustacheStatement=function(e){return e.strip};jt.prototype.PartialStatement=jt.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function nd(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}o(nd,"isPrevWhitespace");function id(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}o(id,"isNextWhitespace");function dn(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}o(dn,"omitRight");function Rr(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}o(Rr,"omitLeft");tc.default=jt;Z_.exports=tc.default});var K_=h(tt=>{"use strict";tt.__esModule=!0;tt.SourceLocation=qj;tt.id=Mj;tt.stripFlags=Dj;tt.stripComment=Lj;tt.preparePath=Fj;tt.prepareMustache=Hj;tt.prepareRawBlock=Vj;tt.prepareBlock=Bj;tt.prepareProgram=Uj;tt.preparePartialBlock=Gj;function kj(e){return e&&e.__esModule?e:{default:e}}o(kj,"_interopRequireDefault");var jj=et(),od=kj(jj);function sd(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new od.default(e.path.original+" doesn't match "+t,r)}}o(sd,"validateClose");function qj(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}o(qj,"SourceLocation");function Mj(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(Mj,"id");function Dj(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(Dj,"stripFlags");function Lj(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(Lj,"stripComment");function Fj(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],s=0,a=0,c=t.length;a<c;a++){var u=t[a].part,l=t[a].original!==u;if(n+=(t[a].separator||"")+u,!l&&(u===".."||u==="."||u==="this")){if(i.length>0)throw new od.default("Invalid path: "+n,{loc:r});u===".."&&s++}else i.push(u)}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:r}}o(Fj,"preparePath");function Hj(e,t,r,n,i,s){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",u=/\*/.test(n);return{type:u?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:c,strip:i,loc:this.locInfo(s)}}o(Hj,"prepareMustache");function Vj(e,t,r,n){sd(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}o(Vj,"prepareRawBlock");function Bj(e,t,r,n,i,s){n&&n.path&&sd(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new od.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),u=r.strip,c=r.program}return i&&(i=c,c=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(s)}}o(Bj,"prepareBlock");function Uj(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}o(Uj,"prepareProgram");function Gj(e,t,r,n){return sd(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}o(Gj,"preparePartialBlock")});var Y_=h(Fo=>{"use strict";Fo.__esModule=!0;Fo.parseWithoutProcessing=W_;Fo.parse=Xj;function Zj(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(Zj,"_interopRequireWildcard");function Q_(e){return e&&e.__esModule?e:{default:e}}o(Q_,"_interopRequireDefault");var zj=V_(),ad=Q_(zj),Kj=z_(),Qj=Q_(Kj),Wj=K_(),Yj=Zj(Wj),Jj=Te();Fo.parser=ad.default;var rc={};Jj.extend(rc,Yj);function W_(e,t){if(e.type==="Program")return e;ad.default.yy=rc,rc.locInfo=function(n){return new rc.SourceLocation(t&&t.srcName,n)};var r=ad.default.parse(e);return r}o(W_,"parseWithoutProcessing");function Xj(e,t){var r=W_(e,t),n=new Qj.default(t);return n.accept(r)}o(Xj,"parse")});var tP=h(Uo=>{"use strict";Uo.__esModule=!0;Uo.Compiler=cd;Uo.precompile=nq;Uo.compile=iq;function X_(e){return e&&e.__esModule?e:{default:e}}o(X_,"_interopRequireDefault");var eq=et(),Vo=X_(eq),Bo=Te(),tq=td(),Ho=X_(tq),rq=[].slice;function cd(){}o(cd,"Compiler");cd.prototype={compiler:cd,equals:o(function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],s=t.opcodes[n];if(i.opcode!==s.opcode||!eP(i.args,s.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},"equals"),guid:0,compile:o(function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=Bo.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},"compile"),compileProgram:o(function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:o(function(t){if(!this[t.type])throw new Vo.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:o(function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},"Program"),BlockStatement:o(function(t){J_(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:o(function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:o(function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new Vo.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,s=t.name.type==="SubExpression";s&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",s,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:o(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:o(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:o(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:o(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:o(function(t){J_(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:o(function(t,r,n){var i=t.path,s=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",s,a)},"ambiguousSexpr"),simpleSexpr:o(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:o(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),s=t.path,a=s.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new Vo.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",i.length,s.original,Ho.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=Ho.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:o(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:o(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:o(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:o(function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:o(function(t){this.opcodes.push({opcode:t,args:rq.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=Ho.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&Ho.default.helpers.helperExpression(t),s=!n&&(i||r);if(s&&!i){var a=t.path.parts[0],c=this.options;c.knownHelpers[a]?i=!0:c.knownHelpersOnly&&(s=!1)}return i?"helper":s?"ambiguous":"simple"},"classifySexpr"),pushParams:o(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:o(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!Ho.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},"pushParam"),setupFullMustacheParams:o(function(t,r,n,i){var s=t.params;return this.pushParams(s),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),s},"setupFullMustacheParams"),blockParamIndex:o(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],s=i&&Bo.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function nq(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Vo.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}o(nq,"precompile");function iq(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Vo.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Bo.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),c=new r.Compiler().compile(a,t),u=new r.JavaScriptCompiler().compile(c,t,void 0,!0);return r.template(u)}o(i,"compileInput");function s(a,c){return n||(n=i()),n.call(this,a,c)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,c,u,l){return n||(n=i()),n._child(a,c,u,l)},s}o(iq,"compile");function eP(e,t){if(e===t)return!0;if(Bo.isArray(e)&&Bo.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!eP(e[r],t[r]))return!1;return!0}}o(eP,"argEquals");function J_(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}o(J_,"transformLiteralToPath")});var nP=h(ud=>{var rP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");ud.encode=function(e){if(0<=e&&e<rP.length)return rP[e];throw new TypeError("Must be between 0 and 63: "+e)};ud.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,c=43,u=47,l=26,f=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=a?e-s+f:e==c?62:e==u?63:-1}});var fd=h(pd=>{var iP=nP(),ld=5,oP=1<<ld,sP=oP-1,aP=oP;function oq(e){return e<0?(-e<<1)+1:(e<<1)+0}o(oq,"toVLQSigned");function sq(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(sq,"fromVLQSigned");pd.encode=o(function(t){var r="",n,i=oq(t);do n=i&sP,i>>>=ld,i>0&&(n|=aP),r+=iP.encode(n);while(i>0);return r},"base64VLQ_encode");pd.decode=o(function(t,r,n){var i=t.length,s=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=iP.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&aP),u&=sP,s=s+(u<<a),a+=ld}while(c);n.value=sq(s),n.rest=r},"base64VLQ_decode")});var vi=h(Ee=>{function aq(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}o(aq,"getArg");Ee.getArg=aq;var cP=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,cq=/^data:.+\,.+$/;function Go(e){var t=e.match(cP);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(Go,"urlParse");Ee.urlParse=Go;function gi(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}o(gi,"urlGenerate");Ee.urlGenerate=gi;function dd(e){var t=e,r=Go(e);if(r){if(!r.path)return e;t=r.path}for(var n=Ee.isAbsolute(t),i=t.split(/\/+/),s,a=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?a++:a>0&&(s===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,gi(r)):t}o(dd,"normalize");Ee.normalize=dd;function uP(e,t){e===""&&(e="."),t===""&&(t=".");var r=Go(t),n=Go(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),gi(r);if(r||t.match(cq))return t;if(n&&!n.host&&!n.path)return n.host=t,gi(n);var i=t.charAt(0)==="/"?t:dd(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,gi(n)):i}o(uP,"join");Ee.join=uP;Ee.isAbsolute=function(e){return e.charAt(0)==="/"||cP.test(e)};function uq(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}o(uq,"relative");Ee.relative=uq;var lP=function(){var e=Object.create(null);return!("__proto__"in e)}();function pP(e){return e}o(pP,"identity");function lq(e){return fP(e)?"$"+e:e}o(lq,"toSetString");Ee.toSetString=lP?pP:lq;function pq(e){return fP(e)?e.slice(1):e}o(pq,"fromSetString");Ee.fromSetString=lP?pP:pq;function fP(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}o(fP,"isProtoString");function fq(e,t,r){var n=yi(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:yi(e.name,t.name)}o(fq,"compareByOriginalPositions");Ee.compareByOriginalPositions=fq;function dq(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=yi(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:yi(e.name,t.name)}o(dq,"compareByGeneratedPositionsDeflated");Ee.compareByGeneratedPositionsDeflated=dq;function yi(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(yi,"strcmp");function mq(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=yi(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:yi(e.name,t.name)}o(mq,"compareByGeneratedPositionsInflated");Ee.compareByGeneratedPositionsInflated=mq;function hq(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(hq,"parseSourceMapInput");Ee.parseSourceMapInput=hq;function gq(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Go(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}t=uP(gi(n),t)}return dd(t)}o(gq,"computeSourceURL");Ee.computeSourceURL=gq});var gd=h(dP=>{var md=vi(),hd=Object.prototype.hasOwnProperty,mn=typeof Map<"u";function Qt(){this._array=[],this._set=mn?new Map:Object.create(null)}o(Qt,"ArraySet");Qt.fromArray=o(function(t,r){for(var n=new Qt,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");Qt.prototype.size=o(function(){return mn?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Qt.prototype.add=o(function(t,r){var n=mn?t:md.toSetString(t),i=mn?this.has(t):hd.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(mn?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");Qt.prototype.has=o(function(t){if(mn)return this._set.has(t);var r=md.toSetString(t);return hd.call(this._set,r)},"ArraySet_has");Qt.prototype.indexOf=o(function(t){if(mn){var r=this._set.get(t);if(r>=0)return r}else{var n=md.toSetString(t);if(hd.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");Qt.prototype.at=o(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");Qt.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");dP.ArraySet=Qt});var gP=h(hP=>{var mP=vi();function yq(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||mP.compareByGeneratedPositionsInflated(e,t)<=0}o(yq,"generatedPositionAfter");function nc(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(nc,"MappingList");nc.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");nc.prototype.add=o(function(t){yq(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");nc.prototype.toArray=o(function(){return this._sorted||(this._array.sort(mP.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");hP.MappingList=nc});var yd=h(yP=>{var Zo=fd(),te=vi(),ic=gd().ArraySet,vq=gP().MappingList;function rt(e){e||(e={}),this._file=te.getArg(e,"file",null),this._sourceRoot=te.getArg(e,"sourceRoot",null),this._skipValidation=te.getArg(e,"skipValidation",!1),this._sources=new ic,this._names=new ic,this._mappings=new vq,this._sourcesContents=null}o(rt,"SourceMapGenerator");rt.prototype._version=3;rt.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new rt({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=te.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=te.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");rt.prototype.addMapping=o(function(t){var r=te.getArg(t,"generated"),n=te.getArg(t,"original",null),i=te.getArg(t,"source",null),s=te.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})},"SourceMapGenerator_addMapping");rt.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=te.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[te.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[te.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");rt.prototype.applySourceMap=o(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=te.relative(s,i));var a=new ic,c=new ic;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var l=t.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,n!=null&&(u.source=te.join(n,u.source)),s!=null&&(u.source=te.relative(s,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name))}var f=u.source;f!=null&&!a.has(f)&&a.add(f);var p=u.name;p!=null&&!c.has(p)&&c.add(p)},this),this._sources=a,this._names=c,t.sources.forEach(function(u){var l=t.sourceContentFor(u);l!=null&&(n!=null&&(u=te.join(n,u)),s!=null&&(u=te.relative(s,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");rt.prototype._validateMapping=o(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");rt.prototype._serializeMappings=o(function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,c="",u,l,f,p,d=this._mappings.toArray(),m=0,g=d.length;m<g;m++){if(l=d[m],u="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)u+=";",r++;else if(m>0){if(!te.compareByGeneratedPositionsInflated(l,d[m-1]))continue;u+=","}u+=Zo.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),u+=Zo.encode(p-a),a=p,u+=Zo.encode(l.originalLine-1-i),i=l.originalLine-1,u+=Zo.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(f=this._names.indexOf(l.name),u+=Zo.encode(f-s),s=f)),c+=u}return c},"SourceMapGenerator_serializeMappings");rt.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=te.relative(r,n));var i=te.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");rt.prototype.toJSON=o(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");rt.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");yP.SourceMapGenerator=rt});var vP=h(hn=>{hn.GREATEST_LOWER_BOUND=1;hn.LEAST_UPPER_BOUND=2;function vd(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?vd(a,t,r,n,i,s):s==hn.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?vd(e,a,r,n,i,s):s==hn.LEAST_UPPER_BOUND?a:e<0?-1:e}o(vd,"recursiveSearch");hn.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=vd(-1,r.length,t,r,n,i||hn.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s},"search")});var bP=h(SP=>{function Sd(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(Sd,"swap");function Sq(e,t){return Math.round(e+Math.random()*(t-e))}o(Sq,"randomIntInRange");function bd(e,t,r,n){if(r<n){var i=Sq(r,n),s=r-1;Sd(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,Sd(e,s,c));Sd(e,s+1,c);var u=s+1;bd(e,t,r,u-1),bd(e,t,u+1,n)}}o(bd,"doQuickSort");SP.quickSort=function(e,t){bd(e,t,0,e.length-1)}});var PP=h(oc=>{var $=vi(),_d=vP(),Si=gd().ArraySet,bq=fd(),zo=bP().quickSort;function z(e,t){var r=e;return typeof e=="string"&&(r=$.parseSourceMapInput(e)),r.sections!=null?new ht(r,t):new me(r,t)}o(z,"SourceMapConsumer");z.fromSourceMap=function(e,t){return me.fromSourceMap(e,t)};z.prototype._version=3;z.prototype.__generatedMappings=null;Object.defineProperty(z.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});z.prototype.__originalMappings=null;Object.defineProperty(z.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});z.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");z.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");z.GENERATED_ORDER=1;z.ORIGINAL_ORDER=2;z.GREATEST_LOWER_BOUND=1;z.LEAST_UPPER_BOUND=2;z.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||z.GENERATED_ORDER,a;switch(s){case z.GENERATED_ORDER:a=this._generatedMappings;break;case z.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(u){var l=u.source===null?null:this._sources.at(u.source);return l=$.computeSourceURL(c,l,this._sourceMapURL),{source:l,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");z.prototype.allGeneratedPositionsFor=o(function(t){var r=$.getArg(t,"line"),n={source:$.getArg(t,"source"),originalLine:r,originalColumn:$.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",$.compareByOriginalPositions,_d.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:$.getArg(a,"generatedLine",null),column:$.getArg(a,"generatedColumn",null),lastColumn:$.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)i.push({line:$.getArg(a,"generatedLine",null),column:$.getArg(a,"generatedColumn",null),lastColumn:$.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");oc.SourceMapConsumer=z;function me(e,t){var r=e;typeof e=="string"&&(r=$.parseSourceMapInput(e));var n=$.getArg(r,"version"),i=$.getArg(r,"sources"),s=$.getArg(r,"names",[]),a=$.getArg(r,"sourceRoot",null),c=$.getArg(r,"sourcesContent",null),u=$.getArg(r,"mappings"),l=$.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=$.normalize(a)),i=i.map(String).map($.normalize).map(function(f){return a&&$.isAbsolute(a)&&$.isAbsolute(f)?$.relative(a,f):f}),this._names=Si.fromArray(s.map(String),!0),this._sources=Si.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return $.computeSourceURL(a,f,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=l}o(me,"BasicSourceMapConsumer");me.prototype=Object.create(z.prototype);me.prototype.consumer=z;me.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=$.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};me.fromSourceMap=o(function(t,r){var n=Object.create(me.prototype),i=n._names=Si.fromArray(t._names.toArray(),!0),s=n._sources=Si.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(m){return $.computeSourceURL(n.sourceRoot,m,r)});for(var a=t._mappings.toArray().slice(),c=n.__generatedMappings=[],u=n.__originalMappings=[],l=0,f=a.length;l<f;l++){var p=a[l],d=new _P;d.generatedLine=p.generatedLine,d.generatedColumn=p.generatedColumn,p.source&&(d.source=s.indexOf(p.source),d.originalLine=p.originalLine,d.originalColumn=p.originalColumn,p.name&&(d.name=i.indexOf(p.name)),u.push(d)),c.push(d)}return zo(n.__originalMappings,$.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");me.prototype._version=3;Object.defineProperty(me.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function _P(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(_P,"Mapping");me.prototype._parseMappings=o(function(t,r){for(var n=1,i=0,s=0,a=0,c=0,u=0,l=t.length,f=0,p={},d={},m=[],g=[],y,v,S,b,P;f<l;)if(t.charAt(f)===";")n++,f++,i=0;else if(t.charAt(f)===",")f++;else{for(y=new _P,y.generatedLine=n,b=f;b<l&&!this._charIsMappingSeparator(t,b);b++);if(v=t.slice(f,b),S=p[v],S)f+=v.length;else{for(S=[];f<b;)bq.decode(t,f,d),P=d.value,f=d.rest,S.push(P);if(S.length===2)throw new Error("Found a source, but no line and column");if(S.length===3)throw new Error("Found a source and line, but no column");p[v]=S}y.generatedColumn=i+S[0],i=y.generatedColumn,S.length>1&&(y.source=c+S[1],c+=S[1],y.originalLine=s+S[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=a+S[3],a=y.originalColumn,S.length>4&&(y.name=u+S[4],u+=S[4])),g.push(y),typeof y.originalLine=="number"&&m.push(y)}zo(g,$.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,zo(m,$.compareByOriginalPositions),this.__originalMappings=m},"SourceMapConsumer_parseMappings");me.prototype._findMapping=o(function(t,r,n,i,s,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return _d.search(t,r,s,a)},"SourceMapConsumer_findMapping");me.prototype.computeColumnSpans=o(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");me.prototype.originalPositionFor=o(function(t){var r={generatedLine:$.getArg(t,"line"),generatedColumn:$.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",$.compareByGeneratedPositionsDeflated,$.getArg(t,"bias",z.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=$.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=$.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=$.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:$.getArg(i,"originalLine",null),column:$.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");me.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");me.prototype.sourceContentFor=o(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=$.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=$.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");me.prototype.generatedPositionFor=o(function(t){var r=$.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:$.getArg(t,"line"),originalColumn:$.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",$.compareByOriginalPositions,$.getArg(t,"bias",z.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:$.getArg(s,"generatedLine",null),column:$.getArg(s,"generatedColumn",null),lastColumn:$.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");oc.BasicSourceMapConsumer=me;function ht(e,t){var r=e;typeof e=="string"&&(r=$.parseSourceMapInput(e));var n=$.getArg(r,"version"),i=$.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Si,this._names=new Si;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=$.getArg(a,"offset"),u=$.getArg(c,"line"),l=$.getArg(c,"column");if(u<s.line||u===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=c,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new z($.getArg(a,"map"),t)}})}o(ht,"IndexedSourceMapConsumer");ht.prototype=Object.create(z.prototype);ht.prototype.constructor=z;ht.prototype._version=3;Object.defineProperty(ht.prototype,"sources",{get:o(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});ht.prototype.originalPositionFor=o(function(t){var r={generatedLine:$.getArg(t,"line"),generatedColumn:$.getArg(t,"column")},n=_d.search(r,this._sections,function(s,a){var c=s.generatedLine-a.generatedOffset.generatedLine;return c||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");ht.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");ht.prototype.sourceContentFor=o(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");ht.prototype.generatedPositionFor=o(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex($.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");ht.prototype._parseMappings=o(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var c=s[a],u=i.consumer._sources.at(c.source);u=$.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;c.name&&(l=i.consumer._names.at(c.name),this._names.add(l),l=this._names.indexOf(l));var f={source:u,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}zo(this.__generatedMappings,$.compareByGeneratedPositionsDeflated),zo(this.__originalMappings,$.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");oc.IndexedSourceMapConsumer=ht});var $P=h(EP=>{var _q=yd().SourceMapGenerator,sc=vi(),Pq=/(\r?\n)/,Eq=10,bi="$$$isSourceNode$$$";function Be(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[bi]=!0,n!=null&&this.add(n)}o(Be,"SourceNode");Be.fromStringWithSourceMap=o(function(t,r,n){var i=new Be,s=t.split(Pq),a=0,c=o(function(){var d=g(),m=g()||"";return d+m;function g(){return a<s.length?s[a++]:void 0}},"shiftNextLine"),u=1,l=0,f=null;return r.eachMapping(function(d){if(f!==null)if(u<d.generatedLine)p(f,c()),u++,l=0;else{var m=s[a]||"",g=m.substr(0,d.generatedColumn-l);s[a]=m.substr(d.generatedColumn-l),l=d.generatedColumn,p(f,g),f=d;return}for(;u<d.generatedLine;)i.add(c()),u++;if(l<d.generatedColumn){var m=s[a]||"";i.add(m.substr(0,d.generatedColumn)),s[a]=m.substr(d.generatedColumn),l=d.generatedColumn}f=d},this),a<s.length&&(f&&p(f,c()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var m=r.sourceContentFor(d);m!=null&&(n!=null&&(d=sc.join(n,d)),i.setSourceContent(d,m))}),i;function p(d,m){if(d===null||d.source===void 0)i.add(m);else{var g=n?sc.join(n,d.source):d.source;i.add(new Be(d.originalLine,d.originalColumn,g,m,d.name))}}o(p,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Be.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[bi]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_add");Be.prototype.prepend=o(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[bi]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_prepend");Be.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[bi]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Be.prototype.join=o(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");Be.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[bi]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this},"SourceNode_replaceRight");Be.prototype.setSourceContent=o(function(t,r){this.sourceContents[sc.toSetString(t)]=r},"SourceNode_setSourceContent");Be.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][bi]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(sc.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Be.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Be.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new _q(t),i=!1,s=null,a=null,c=null,u=null;return this.walk(function(l,f){r.code+=l,f.source!==null&&f.line!==null&&f.column!==null?((s!==f.source||a!==f.line||c!==f.column||u!==f.name)&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name}),s=f.source,a=f.line,c=f.column,u=f.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var p=0,d=l.length;p<d;p++)l.charCodeAt(p)===Eq?(r.line++,r.column=0,p+1===d?(s=null,i=!1):i&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name})):r.column++}),this.walkSourceContents(function(l,f){n.setSourceContent(l,f)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");EP.SourceNode=Be});var OP=h(ac=>{ac.SourceMapGenerator=yd().SourceMapGenerator;ac.SourceMapConsumer=PP().SourceMapConsumer;ac.SourceNode=$P().SourceNode});var IP=h((cc,wP)=>{"use strict";cc.__esModule=!0;var Ed=Te(),gn=void 0;try{(typeof define!="function"||!define.amd)&&(xP=OP(),gn=xP.SourceNode)}catch{}var xP;gn||(gn=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),gn.prototype={add:o(function(t){Ed.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){Ed.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:o(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:o(function(){return this.src},"toString")});function Pd(e,t,r){if(Ed.isArray(e)){for(var n=[],i=0,s=e.length;i<s;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}o(Pd,"castChunk");function AP(e){this.srcFile=e,this.source=[]}o(AP,"CodeGen");AP.prototype={isEmpty:o(function(){return!this.source.length},"isEmpty"),prepend:o(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:o(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:o(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
59
- `])}),t},"merge"),each:o(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:o(function(){var t=this.currentLocation||{start:{}};return new gn(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:o(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof gn?t:(t=Pd(t,this,r),new gn(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:o(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(t){var r=this,n=[];Object.keys(t).forEach(function(s){var a=Pd(t[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(Pd(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};cc.default=AP;wP.exports=cc.default});var kP=h((uc,NP)=>{"use strict";uc.__esModule=!0;function CP(e){return e&&e.__esModule?e:{default:e}}o(CP,"_interopRequireDefault");var TP=Ua(),$q=et(),$d=CP($q),Oq=Te(),xq=IP(),RP=CP(xq);function _i(e){this.value=e}o(_i,"Literal");function Pi(){}o(Pi,"JavaScriptCompiler");Pi.prototype={nameLookup:o(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:o(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:o(function(){var t=TP.COMPILER_REVISION,r=TP.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return Oq.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(t,r,n,i){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var s=t.opcodes,a=void 0,c=void 0,u=void 0,l=void 0;for(u=0,l=s.length;u<l;u++)a=s[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new $d.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
58
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,u){function l(p,d){return a.yytext=a.yytext.substring(p,a.yyleng-d+p)}o(l,"strip");var f=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return o(r,"Parser"),r.prototype=e,e.Parser=r,new r}();pc.default=Jj;aE.exports=pc.default});var hc=h((mc,pE)=>{"use strict";mc.__esModule=!0;function Xj(e){return e&&e.__esModule?e:{default:e}}o(Xj,"_interopRequireDefault");var e3=tt(),vd=Xj(e3);function fc(){this.parents=[]}o(fc,"Visitor");fc.prototype={constructor:fc,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!fc.prototype[n.type])throw new vd.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:o(function(t,r){if(this.acceptKey(t,r),!t[r])throw new vd.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(t){if(t){if(!this[t.type])throw new vd.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},"accept"),Program:o(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:dc,Decorator:dc,BlockStatement:uE,DecoratorBlock:uE,PartialStatement:lE,PartialBlockStatement:o(function(t){lE.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:dc,PathExpression:o(function(){},"PathExpression"),StringLiteral:o(function(){},"StringLiteral"),NumberLiteral:o(function(){},"NumberLiteral"),BooleanLiteral:o(function(){},"BooleanLiteral"),UndefinedLiteral:o(function(){},"UndefinedLiteral"),NullLiteral:o(function(){},"NullLiteral"),Hash:o(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:o(function(t){this.acceptRequired(t,"value")},"HashPair")};function dc(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(dc,"visitSubExpression");function uE(e){dc.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(uE,"visitBlock");function lE(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(lE,"visitPartial");mc.default=fc;pE.exports=mc.default});var dE=h((gc,fE)=>{"use strict";gc.__esModule=!0;function t3(e){return e&&e.__esModule?e:{default:e}}o(t3,"_interopRequireDefault");var r3=hc(),n3=t3(r3);function qt(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(qt,"WhitespaceControl");qt.prototype=new n3.default;qt.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,s=n.length;i<s;i++){var a=n[i],c=this.accept(a);if(c){var u=bd(n,i,r),l=_d(n,i,r),f=c.openStandalone&&u,p=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&bn(n,i,!0),c.open&&qr(n,i,!0),t&&d&&(bn(n,i),qr(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&f&&(bn((a.program||a.inverse).body),qr(n,i)),t&&p&&(bn(n,i),qr((a.inverse||a.program).body))}}return e};qt.prototype.BlockStatement=qt.prototype.DecoratorBlock=qt.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var s={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:_d(t.body),closeStandalone:bd((n||t).body)};if(e.openStrip.close&&bn(t.body,null,!0),r){var a=e.inverseStrip;a.open&&qr(t.body,null,!0),a.close&&bn(n.body,null,!0),e.closeStrip.open&&qr(i.body,null,!0),!this.options.ignoreStandalone&&bd(t.body)&&_d(n.body)&&(qr(t.body),bn(n.body))}else e.closeStrip.open&&qr(t.body,null,!0);return s};qt.prototype.Decorator=qt.prototype.MustacheStatement=function(e){return e.strip};qt.prototype.PartialStatement=qt.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function bd(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}o(bd,"isPrevWhitespace");function _d(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}o(_d,"isNextWhitespace");function bn(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}o(bn,"omitRight");function qr(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}o(qr,"omitLeft");gc.default=qt;fE.exports=gc.default});var mE=h(rt=>{"use strict";rt.__esModule=!0;rt.SourceLocation=s3;rt.id=a3;rt.stripFlags=c3;rt.stripComment=u3;rt.preparePath=l3;rt.prepareMustache=p3;rt.prepareRawBlock=f3;rt.prepareBlock=d3;rt.prepareProgram=m3;rt.preparePartialBlock=h3;function i3(e){return e&&e.__esModule?e:{default:e}}o(i3,"_interopRequireDefault");var o3=tt(),Ed=i3(o3);function Pd(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new Ed.default(e.path.original+" doesn't match "+t,r)}}o(Pd,"validateClose");function s3(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}o(s3,"SourceLocation");function a3(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(a3,"id");function c3(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(c3,"stripFlags");function u3(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(u3,"stripComment");function l3(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],s=0,a=0,c=t.length;a<c;a++){var u=t[a].part,l=t[a].original!==u;if(n+=(t[a].separator||"")+u,!l&&(u===".."||u==="."||u==="this")){if(i.length>0)throw new Ed.default("Invalid path: "+n,{loc:r});u===".."&&s++}else i.push(u)}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:r}}o(l3,"preparePath");function p3(e,t,r,n,i,s){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",u=/\*/.test(n);return{type:u?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:c,strip:i,loc:this.locInfo(s)}}o(p3,"prepareMustache");function f3(e,t,r,n){Pd(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}o(f3,"prepareRawBlock");function d3(e,t,r,n,i,s){n&&n.path&&Pd(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new Ed.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),u=r.strip,c=r.program}return i&&(i=c,c=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(s)}}o(d3,"prepareBlock");function m3(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}o(m3,"prepareProgram");function h3(e,t,r,n){return Pd(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}o(h3,"preparePartialBlock")});var yE=h(Jo=>{"use strict";Jo.__esModule=!0;Jo.parseWithoutProcessing=gE;Jo.parse=P3;function g3(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(g3,"_interopRequireWildcard");function hE(e){return e&&e.__esModule?e:{default:e}}o(hE,"_interopRequireDefault");var y3=cE(),Od=hE(y3),S3=dE(),v3=hE(S3),b3=mE(),_3=g3(b3),E3=Ce();Jo.parser=Od.default;var yc={};E3.extend(yc,_3);function gE(e,t){if(e.type==="Program")return e;Od.default.yy=yc,yc.locInfo=function(n){return new yc.SourceLocation(t&&t.srcName,n)};var r=Od.default.parse(e);return r}o(gE,"parseWithoutProcessing");function P3(e,t){var r=gE(e,t),n=new v3.default(t);return n.accept(r)}o(P3,"parse")});var _E=h(rs=>{"use strict";rs.__esModule=!0;rs.Compiler=$d;rs.precompile=A3;rs.compile=w3;function vE(e){return e&&e.__esModule?e:{default:e}}o(vE,"_interopRequireDefault");var O3=tt(),es=vE(O3),ts=Ce(),$3=Sd(),Xo=vE($3),x3=[].slice;function $d(){}o($d,"Compiler");$d.prototype={compiler:$d,equals:o(function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],s=t.opcodes[n];if(i.opcode!==s.opcode||!bE(i.args,s.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},"equals"),guid:0,compile:o(function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=ts.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},"compile"),compileProgram:o(function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:o(function(t){if(!this[t.type])throw new es.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:o(function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},"Program"),BlockStatement:o(function(t){SE(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:o(function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:o(function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new es.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,s=t.name.type==="SubExpression";s&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",s,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:o(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:o(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:o(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:o(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:o(function(t){SE(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:o(function(t,r,n){var i=t.path,s=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",s,a)},"ambiguousSexpr"),simpleSexpr:o(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:o(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),s=t.path,a=s.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new es.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",i.length,s.original,Xo.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=Xo.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:o(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:o(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:o(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:o(function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:o(function(t){this.opcodes.push({opcode:t,args:x3.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=Xo.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&Xo.default.helpers.helperExpression(t),s=!n&&(i||r);if(s&&!i){var a=t.path.parts[0],c=this.options;c.knownHelpers[a]?i=!0:c.knownHelpersOnly&&(s=!1)}return i?"helper":s?"ambiguous":"simple"},"classifySexpr"),pushParams:o(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:o(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!Xo.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},"pushParam"),setupFullMustacheParams:o(function(t,r,n,i){var s=t.params;return this.pushParams(s),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),s},"setupFullMustacheParams"),blockParamIndex:o(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],s=i&&ts.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function A3(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new es.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}o(A3,"precompile");function w3(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new es.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=ts.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),c=new r.Compiler().compile(a,t),u=new r.JavaScriptCompiler().compile(c,t,void 0,!0);return r.template(u)}o(i,"compileInput");function s(a,c){return n||(n=i()),n.call(this,a,c)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,c,u,l){return n||(n=i()),n._child(a,c,u,l)},s}o(w3,"compile");function bE(e,t){if(e===t)return!0;if(ts.isArray(e)&&ts.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!bE(e[r],t[r]))return!1;return!0}}o(bE,"argEquals");function SE(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}o(SE,"transformLiteralToPath")});var PE=h(xd=>{var EE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");xd.encode=function(e){if(0<=e&&e<EE.length)return EE[e];throw new TypeError("Must be between 0 and 63: "+e)};xd.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,c=43,u=47,l=26,f=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=a?e-s+f:e==c?62:e==u?63:-1}});var Id=h(wd=>{var OE=PE(),Ad=5,$E=1<<Ad,xE=$E-1,AE=$E;function I3(e){return e<0?(-e<<1)+1:(e<<1)+0}o(I3,"toVLQSigned");function T3(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(T3,"fromVLQSigned");wd.encode=o(function(t){var r="",n,i=I3(t);do n=i&xE,i>>>=Ad,i>0&&(n|=AE),r+=OE.encode(n);while(i>0);return r},"base64VLQ_encode");wd.decode=o(function(t,r,n){var i=t.length,s=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=OE.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&AE),u&=xE,s=s+(u<<a),a+=Ad}while(c);n.value=T3(s),n.rest=r},"base64VLQ_decode")});var Ai=h(xe=>{function C3(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}o(C3,"getArg");xe.getArg=C3;var wE=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,R3=/^data:.+\,.+$/;function ns(e){var t=e.match(wE);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(ns,"urlParse");xe.urlParse=ns;function $i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}o($i,"urlGenerate");xe.urlGenerate=$i;function Td(e){var t=e,r=ns(e);if(r){if(!r.path)return e;t=r.path}for(var n=xe.isAbsolute(t),i=t.split(/\/+/),s,a=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?a++:a>0&&(s===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,$i(r)):t}o(Td,"normalize");xe.normalize=Td;function IE(e,t){e===""&&(e="."),t===""&&(t=".");var r=ns(t),n=ns(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),$i(r);if(r||t.match(R3))return t;if(n&&!n.host&&!n.path)return n.host=t,$i(n);var i=t.charAt(0)==="/"?t:Td(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,$i(n)):i}o(IE,"join");xe.join=IE;xe.isAbsolute=function(e){return e.charAt(0)==="/"||wE.test(e)};function N3(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}o(N3,"relative");xe.relative=N3;var TE=function(){var e=Object.create(null);return!("__proto__"in e)}();function CE(e){return e}o(CE,"identity");function k3(e){return RE(e)?"$"+e:e}o(k3,"toSetString");xe.toSetString=TE?CE:k3;function j3(e){return RE(e)?e.slice(1):e}o(j3,"fromSetString");xe.fromSetString=TE?CE:j3;function RE(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}o(RE,"isProtoString");function q3(e,t,r){var n=xi(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:xi(e.name,t.name)}o(q3,"compareByOriginalPositions");xe.compareByOriginalPositions=q3;function M3(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=xi(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:xi(e.name,t.name)}o(M3,"compareByGeneratedPositionsDeflated");xe.compareByGeneratedPositionsDeflated=M3;function xi(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(xi,"strcmp");function D3(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=xi(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:xi(e.name,t.name)}o(D3,"compareByGeneratedPositionsInflated");xe.compareByGeneratedPositionsInflated=D3;function L3(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(L3,"parseSourceMapInput");xe.parseSourceMapInput=L3;function F3(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=ns(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}t=IE($i(n),t)}return Td(t)}o(F3,"computeSourceURL");xe.computeSourceURL=F3});var Nd=h(NE=>{var Cd=Ai(),Rd=Object.prototype.hasOwnProperty,_n=typeof Map<"u";function Jt(){this._array=[],this._set=_n?new Map:Object.create(null)}o(Jt,"ArraySet");Jt.fromArray=o(function(t,r){for(var n=new Jt,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");Jt.prototype.size=o(function(){return _n?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Jt.prototype.add=o(function(t,r){var n=_n?t:Cd.toSetString(t),i=_n?this.has(t):Rd.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(_n?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");Jt.prototype.has=o(function(t){if(_n)return this._set.has(t);var r=Cd.toSetString(t);return Rd.call(this._set,r)},"ArraySet_has");Jt.prototype.indexOf=o(function(t){if(_n){var r=this._set.get(t);if(r>=0)return r}else{var n=Cd.toSetString(t);if(Rd.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");Jt.prototype.at=o(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");Jt.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");NE.ArraySet=Jt});var qE=h(jE=>{var kE=Ai();function H3(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||kE.compareByGeneratedPositionsInflated(e,t)<=0}o(H3,"generatedPositionAfter");function Sc(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(Sc,"MappingList");Sc.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");Sc.prototype.add=o(function(t){H3(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");Sc.prototype.toArray=o(function(){return this._sorted||(this._array.sort(kE.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");jE.MappingList=Sc});var kd=h(ME=>{var is=Id(),oe=Ai(),vc=Nd().ArraySet,V3=qE().MappingList;function nt(e){e||(e={}),this._file=oe.getArg(e,"file",null),this._sourceRoot=oe.getArg(e,"sourceRoot",null),this._skipValidation=oe.getArg(e,"skipValidation",!1),this._sources=new vc,this._names=new vc,this._mappings=new V3,this._sourcesContents=null}o(nt,"SourceMapGenerator");nt.prototype._version=3;nt.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new nt({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=oe.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=oe.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");nt.prototype.addMapping=o(function(t){var r=oe.getArg(t,"generated"),n=oe.getArg(t,"original",null),i=oe.getArg(t,"source",null),s=oe.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})},"SourceMapGenerator_addMapping");nt.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=oe.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[oe.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[oe.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");nt.prototype.applySourceMap=o(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=oe.relative(s,i));var a=new vc,c=new vc;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var l=t.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,n!=null&&(u.source=oe.join(n,u.source)),s!=null&&(u.source=oe.relative(s,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name))}var f=u.source;f!=null&&!a.has(f)&&a.add(f);var p=u.name;p!=null&&!c.has(p)&&c.add(p)},this),this._sources=a,this._names=c,t.sources.forEach(function(u){var l=t.sourceContentFor(u);l!=null&&(n!=null&&(u=oe.join(n,u)),s!=null&&(u=oe.relative(s,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");nt.prototype._validateMapping=o(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");nt.prototype._serializeMappings=o(function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,c="",u,l,f,p,d=this._mappings.toArray(),m=0,g=d.length;m<g;m++){if(l=d[m],u="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)u+=";",r++;else if(m>0){if(!oe.compareByGeneratedPositionsInflated(l,d[m-1]))continue;u+=","}u+=is.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),u+=is.encode(p-a),a=p,u+=is.encode(l.originalLine-1-i),i=l.originalLine-1,u+=is.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(f=this._names.indexOf(l.name),u+=is.encode(f-s),s=f)),c+=u}return c},"SourceMapGenerator_serializeMappings");nt.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=oe.relative(r,n));var i=oe.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");nt.prototype.toJSON=o(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");nt.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");ME.SourceMapGenerator=nt});var DE=h(En=>{En.GREATEST_LOWER_BOUND=1;En.LEAST_UPPER_BOUND=2;function jd(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?jd(a,t,r,n,i,s):s==En.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?jd(e,a,r,n,i,s):s==En.LEAST_UPPER_BOUND?a:e<0?-1:e}o(jd,"recursiveSearch");En.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=jd(-1,r.length,t,r,n,i||En.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s},"search")});var FE=h(LE=>{function qd(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(qd,"swap");function B3(e,t){return Math.round(e+Math.random()*(t-e))}o(B3,"randomIntInRange");function Md(e,t,r,n){if(r<n){var i=B3(r,n),s=r-1;qd(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,qd(e,s,c));qd(e,s+1,c);var u=s+1;Md(e,t,r,u-1),Md(e,t,u+1,n)}}o(Md,"doQuickSort");LE.quickSort=function(e,t){Md(e,t,0,e.length-1)}});var VE=h(bc=>{var O=Ai(),Dd=DE(),wi=Nd().ArraySet,G3=Id(),os=FE().quickSort;function W(e,t){var r=e;return typeof e=="string"&&(r=O.parseSourceMapInput(e)),r.sections!=null?new ht(r,t):new ye(r,t)}o(W,"SourceMapConsumer");W.fromSourceMap=function(e,t){return ye.fromSourceMap(e,t)};W.prototype._version=3;W.prototype.__generatedMappings=null;Object.defineProperty(W.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});W.prototype.__originalMappings=null;Object.defineProperty(W.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});W.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");W.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");W.GENERATED_ORDER=1;W.ORIGINAL_ORDER=2;W.GREATEST_LOWER_BOUND=1;W.LEAST_UPPER_BOUND=2;W.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||W.GENERATED_ORDER,a;switch(s){case W.GENERATED_ORDER:a=this._generatedMappings;break;case W.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(u){var l=u.source===null?null:this._sources.at(u.source);return l=O.computeSourceURL(c,l,this._sourceMapURL),{source:l,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");W.prototype.allGeneratedPositionsFor=o(function(t){var r=O.getArg(t,"line"),n={source:O.getArg(t,"source"),originalLine:r,originalColumn:O.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",O.compareByOriginalPositions,Dd.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:O.getArg(a,"generatedLine",null),column:O.getArg(a,"generatedColumn",null),lastColumn:O.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)i.push({line:O.getArg(a,"generatedLine",null),column:O.getArg(a,"generatedColumn",null),lastColumn:O.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");bc.SourceMapConsumer=W;function ye(e,t){var r=e;typeof e=="string"&&(r=O.parseSourceMapInput(e));var n=O.getArg(r,"version"),i=O.getArg(r,"sources"),s=O.getArg(r,"names",[]),a=O.getArg(r,"sourceRoot",null),c=O.getArg(r,"sourcesContent",null),u=O.getArg(r,"mappings"),l=O.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=O.normalize(a)),i=i.map(String).map(O.normalize).map(function(f){return a&&O.isAbsolute(a)&&O.isAbsolute(f)?O.relative(a,f):f}),this._names=wi.fromArray(s.map(String),!0),this._sources=wi.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return O.computeSourceURL(a,f,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=l}o(ye,"BasicSourceMapConsumer");ye.prototype=Object.create(W.prototype);ye.prototype.consumer=W;ye.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=O.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};ye.fromSourceMap=o(function(t,r){var n=Object.create(ye.prototype),i=n._names=wi.fromArray(t._names.toArray(),!0),s=n._sources=wi.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(m){return O.computeSourceURL(n.sourceRoot,m,r)});for(var a=t._mappings.toArray().slice(),c=n.__generatedMappings=[],u=n.__originalMappings=[],l=0,f=a.length;l<f;l++){var p=a[l],d=new HE;d.generatedLine=p.generatedLine,d.generatedColumn=p.generatedColumn,p.source&&(d.source=s.indexOf(p.source),d.originalLine=p.originalLine,d.originalColumn=p.originalColumn,p.name&&(d.name=i.indexOf(p.name)),u.push(d)),c.push(d)}return os(n.__originalMappings,O.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");ye.prototype._version=3;Object.defineProperty(ye.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function HE(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(HE,"Mapping");ye.prototype._parseMappings=o(function(t,r){for(var n=1,i=0,s=0,a=0,c=0,u=0,l=t.length,f=0,p={},d={},m=[],g=[],y,S,v,b,E;f<l;)if(t.charAt(f)===";")n++,f++,i=0;else if(t.charAt(f)===",")f++;else{for(y=new HE,y.generatedLine=n,b=f;b<l&&!this._charIsMappingSeparator(t,b);b++);if(S=t.slice(f,b),v=p[S],v)f+=S.length;else{for(v=[];f<b;)G3.decode(t,f,d),E=d.value,f=d.rest,v.push(E);if(v.length===2)throw new Error("Found a source, but no line and column");if(v.length===3)throw new Error("Found a source and line, but no column");p[S]=v}y.generatedColumn=i+v[0],i=y.generatedColumn,v.length>1&&(y.source=c+v[1],c+=v[1],y.originalLine=s+v[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=a+v[3],a=y.originalColumn,v.length>4&&(y.name=u+v[4],u+=v[4])),g.push(y),typeof y.originalLine=="number"&&m.push(y)}os(g,O.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,os(m,O.compareByOriginalPositions),this.__originalMappings=m},"SourceMapConsumer_parseMappings");ye.prototype._findMapping=o(function(t,r,n,i,s,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return Dd.search(t,r,s,a)},"SourceMapConsumer_findMapping");ye.prototype.computeColumnSpans=o(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");ye.prototype.originalPositionFor=o(function(t){var r={generatedLine:O.getArg(t,"line"),generatedColumn:O.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",O.compareByGeneratedPositionsDeflated,O.getArg(t,"bias",W.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=O.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=O.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=O.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:O.getArg(i,"originalLine",null),column:O.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");ye.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");ye.prototype.sourceContentFor=o(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=O.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=O.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");ye.prototype.generatedPositionFor=o(function(t){var r=O.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:O.getArg(t,"line"),originalColumn:O.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",O.compareByOriginalPositions,O.getArg(t,"bias",W.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:O.getArg(s,"generatedLine",null),column:O.getArg(s,"generatedColumn",null),lastColumn:O.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");bc.BasicSourceMapConsumer=ye;function ht(e,t){var r=e;typeof e=="string"&&(r=O.parseSourceMapInput(e));var n=O.getArg(r,"version"),i=O.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new wi,this._names=new wi;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=O.getArg(a,"offset"),u=O.getArg(c,"line"),l=O.getArg(c,"column");if(u<s.line||u===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=c,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new W(O.getArg(a,"map"),t)}})}o(ht,"IndexedSourceMapConsumer");ht.prototype=Object.create(W.prototype);ht.prototype.constructor=W;ht.prototype._version=3;Object.defineProperty(ht.prototype,"sources",{get:o(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});ht.prototype.originalPositionFor=o(function(t){var r={generatedLine:O.getArg(t,"line"),generatedColumn:O.getArg(t,"column")},n=Dd.search(r,this._sections,function(s,a){var c=s.generatedLine-a.generatedOffset.generatedLine;return c||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");ht.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");ht.prototype.sourceContentFor=o(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");ht.prototype.generatedPositionFor=o(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(O.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");ht.prototype._parseMappings=o(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var c=s[a],u=i.consumer._sources.at(c.source);u=O.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;c.name&&(l=i.consumer._names.at(c.name),this._names.add(l),l=this._names.indexOf(l));var f={source:u,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}os(this.__generatedMappings,O.compareByGeneratedPositionsDeflated),os(this.__originalMappings,O.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");bc.IndexedSourceMapConsumer=ht});var GE=h(BE=>{var U3=kd().SourceMapGenerator,_c=Ai(),Z3=/(\r?\n)/,z3=10,Ii="$$$isSourceNode$$$";function Ue(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[Ii]=!0,n!=null&&this.add(n)}o(Ue,"SourceNode");Ue.fromStringWithSourceMap=o(function(t,r,n){var i=new Ue,s=t.split(Z3),a=0,c=o(function(){var d=g(),m=g()||"";return d+m;function g(){return a<s.length?s[a++]:void 0}},"shiftNextLine"),u=1,l=0,f=null;return r.eachMapping(function(d){if(f!==null)if(u<d.generatedLine)p(f,c()),u++,l=0;else{var m=s[a]||"",g=m.substr(0,d.generatedColumn-l);s[a]=m.substr(d.generatedColumn-l),l=d.generatedColumn,p(f,g),f=d;return}for(;u<d.generatedLine;)i.add(c()),u++;if(l<d.generatedColumn){var m=s[a]||"";i.add(m.substr(0,d.generatedColumn)),s[a]=m.substr(d.generatedColumn),l=d.generatedColumn}f=d},this),a<s.length&&(f&&p(f,c()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var m=r.sourceContentFor(d);m!=null&&(n!=null&&(d=_c.join(n,d)),i.setSourceContent(d,m))}),i;function p(d,m){if(d===null||d.source===void 0)i.add(m);else{var g=n?_c.join(n,d.source):d.source;i.add(new Ue(d.originalLine,d.originalColumn,g,m,d.name))}}o(p,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Ue.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Ii]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_add");Ue.prototype.prepend=o(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Ii]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_prepend");Ue.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Ii]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Ue.prototype.join=o(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");Ue.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[Ii]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this},"SourceNode_replaceRight");Ue.prototype.setSourceContent=o(function(t,r){this.sourceContents[_c.toSetString(t)]=r},"SourceNode_setSourceContent");Ue.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Ii]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(_c.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Ue.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Ue.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new U3(t),i=!1,s=null,a=null,c=null,u=null;return this.walk(function(l,f){r.code+=l,f.source!==null&&f.line!==null&&f.column!==null?((s!==f.source||a!==f.line||c!==f.column||u!==f.name)&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name}),s=f.source,a=f.line,c=f.column,u=f.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var p=0,d=l.length;p<d;p++)l.charCodeAt(p)===z3?(r.line++,r.column=0,p+1===d?(s=null,i=!1):i&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name})):r.column++}),this.walkSourceContents(function(l,f){n.setSourceContent(l,f)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");BE.SourceNode=Ue});var UE=h(Ec=>{Ec.SourceMapGenerator=kd().SourceMapGenerator;Ec.SourceMapConsumer=VE().SourceMapConsumer;Ec.SourceNode=GE().SourceNode});var QE=h((Pc,KE)=>{"use strict";Pc.__esModule=!0;var Fd=Ce(),Pn=void 0;try{(typeof define!="function"||!define.amd)&&(ZE=UE(),Pn=ZE.SourceNode)}catch{}var ZE;Pn||(Pn=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Pn.prototype={add:o(function(t){Fd.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){Fd.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:o(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:o(function(){return this.src},"toString")});function Ld(e,t,r){if(Fd.isArray(e)){for(var n=[],i=0,s=e.length;i<s;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}o(Ld,"castChunk");function zE(e){this.srcFile=e,this.source=[]}o(zE,"CodeGen");zE.prototype={isEmpty:o(function(){return!this.source.length},"isEmpty"),prepend:o(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:o(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:o(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
59
+ `])}),t},"merge"),each:o(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:o(function(){var t=this.currentLocation||{start:{}};return new Pn(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:o(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof Pn?t:(t=Ld(t,this,r),new Pn(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:o(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(t){var r=this,n=[];Object.keys(t).forEach(function(s){var a=Ld(t[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(Ld(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};Pc.default=zE;KE.exports=Pc.default});var eP=h((Oc,XE)=>{"use strict";Oc.__esModule=!0;function JE(e){return e&&e.__esModule?e:{default:e}}o(JE,"_interopRequireDefault");var WE=oc(),K3=tt(),Hd=JE(K3),Q3=Ce(),W3=QE(),YE=JE(W3);function Ti(e){this.value=e}o(Ti,"Literal");function Ci(){}o(Ci,"JavaScriptCompiler");Ci.prototype={nameLookup:o(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:o(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:o(function(){var t=WE.COMPILER_REVISION,r=WE.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return Q3.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(t,r,n,i){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var s=t.opcodes,a=void 0,c=void 0,u=void 0,l=void 0;for(u=0,l=s.length;u<l;u++)a=s[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Hd.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
60
60
  `]),this.decorators.push("return fn;"),i?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
61
61
  `),this.decorators.push(`}
62
- `),this.decorators=this.decorators.merge()));var f=this.createFunctionContext(i);if(this.isChild)return f;var p={compiler:this.compilerInfo(),main:f};this.decorators&&(p.main_d=this.decorators,p.useDecorators=!0);var d=this.context,m=d.programs,g=d.decorators;for(u=0,l=m.length;u<l;u++)m[u]&&(p[u]=m[u],g[u]&&(p[u+"_d"]=g[u],p.useDecorators=!0));return this.environment.usePartial&&(p.usePartial=!0),this.options.data&&(p.useData=!0),this.useDepths&&(p.useDepths=!0),this.useBlockParams&&(p.useBlockParams=!0),this.options.compat&&(p.compat=!0),i?p.compilerOptions=this.options:(p.compiler=JSON.stringify(p.compiler),this.source.currentLocation={start:{line:1,column:0}},p=this.objectLiteral(p),r.srcName?(p=p.toStringWithSourceMap({file:r.destName}),p.map=p.map&&p.map.toString()):p=p.toString()),p},"compile"),preamble:o(function(){this.lastContext=0,this.source=new RP.default(this.options.srcName),this.decorators=new RP.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var l=r.aliases[u];l.children&&l.referenceCount>1&&(n+=", alias"+ ++s+"="+u,l.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return t?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
62
+ `),this.decorators=this.decorators.merge()));var f=this.createFunctionContext(i);if(this.isChild)return f;var p={compiler:this.compilerInfo(),main:f};this.decorators&&(p.main_d=this.decorators,p.useDecorators=!0);var d=this.context,m=d.programs,g=d.decorators;for(u=0,l=m.length;u<l;u++)m[u]&&(p[u]=m[u],g[u]&&(p[u+"_d"]=g[u],p.useDecorators=!0));return this.environment.usePartial&&(p.usePartial=!0),this.options.data&&(p.useData=!0),this.useDepths&&(p.useDepths=!0),this.useBlockParams&&(p.useBlockParams=!0),this.options.compat&&(p.compat=!0),i?p.compilerOptions=this.options:(p.compiler=JSON.stringify(p.compiler),this.source.currentLocation={start:{line:1,column:0}},p=this.objectLiteral(p),r.srcName?(p=p.toStringWithSourceMap({file:r.destName}),p.map=p.map&&p.map.toString()):p=p.toString()),p},"compile"),preamble:o(function(){this.lastContext=0,this.source=new YE.default(this.options.srcName),this.decorators=new YE.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var l=r.aliases[u];l.children&&l.referenceCount>1&&(n+=", alias"+ ++s+"="+u,l.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return t?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
63
63
  `,c,"}"])},"createFunctionContext"),mergeSource:o(function(t){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(s?a.prepend("buffer += "):i=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(t+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(i?"":`;
64
64
  `)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
65
65
  lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -68,10 +68,10 @@ Expecting `+Mt.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Qo="Parse error
68
68
  }
69
69
  return undefined
70
70
  }
71
- `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(t){this.lastContext=t},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(t,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[s++])):this.pushContext(),this.resolvePath("context",t,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(t,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(Aq(this.options.strict&&s,this,r,n,t));return}for(var c=r.length;n<c;n++)this.replaceStack(function(u){var l=a.nameLookup(u,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",u]})},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:o(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:o(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:o(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:o(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(t,r,n){var i=this.popStack(),s=this.setupHelper(t,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",s.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:o(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),s=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:o(function(t,r,n){var i=[],s=this.setupParams(r,1,i);t&&(r=this.popStack(),delete s.name),n&&(s.indent=JSON.stringify(n)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),i.push(s),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:o(function(t){var r=this.popStack(),n=void 0,i=void 0,s=void 0;this.trackIds&&(s=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),s&&(a.ids[t]=s),a.values[t]=r},"assignToHash"),pushId:o(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:Pi,compileChildren:o(function(t,r){for(var n=t.children,i=void 0,s=void 0,a=0,c=n.length;a<c;a++){i=n[a],s=new this.compiler;var u=this.matchExistingProgram(i);if(u==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=s.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=s.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=u.index,i.name="program"+u.index,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.useBlockParams}},"compileChildren"),matchExistingProgram:o(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:o(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:o(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:o(function(t){return t instanceof _i||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new _i(t))},"pushStackLiteral"),pushSource:o(function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},"pushSource"),replaceStack:o(function(t){var r=["("],n=void 0,i=void 0,s=void 0;if(!this.isInline())throw new $d.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof _i)n=[a.value],r=["(",n],s=!0;else{i=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);s||this.popStack(),i&&this.stackSlot--,this.push(r.concat(u,")"))},"replaceStack"),incrStack:o(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:o(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:o(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof _i)this.compileStack.push(i);else{var s=this.incrStack();this.pushSource([s," = ",i,";"]),this.compileStack.push(s)}}},"flushInline"),isInline:o(function(){return this.inlineStack.length},"isInline"),popStack:o(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof _i)return n.value;if(!r){if(!this.stackSlot)throw new $d.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:o(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof _i?r.value:r},"topStack"),contextName:o(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:o(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:o(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:o(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:o(function(t,r,n){var i=[],s=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:s,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:o(function(t,r,n){var i={},s=[],a=[],c=[],u=!n,l=void 0;u&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var f=this.popStack(),p=this.popStack();(p||f)&&(i.fn=p||"container.noop",i.inverse=f||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(c[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),s[d]=this.popStack());return u&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(c)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(s)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:o(function(t,r,n,i){var s=this.setupParams(t,r,n);return s.loc=JSON.stringify(this.source.currentLocation),s=this.objectLiteral(s),i?(this.useRegister("options"),n.push("options"),["options=",s]):n?(n.push(s),""):s},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=Pi.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Pi.isValidJavaScriptVariableName=function(e){return!Pi.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function Aq(e,t,r,n,i){var s=t.popStack(),a=r.length;for(e&&a--;n<a;n++)s=t.nameLookup(s,r[n],i);return e?[t.aliasable("container.strict"),"(",s,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:s}o(Aq,"strictLookup");uc.default=Pi;NP.exports=uc.default});var MP=h((lc,qP)=>{"use strict";lc.__esModule=!0;function Ko(e){return e&&e.__esModule?e:{default:e}}o(Ko,"_interopRequireDefault");var wq=D_(),Iq=Ko(wq),Tq=td(),Rq=Ko(Tq),Od=Y_(),xd=tP(),Cq=kP(),Nq=Ko(Cq),kq=ec(),jq=Ko(kq),qq=Yf(),Mq=Ko(qq),Dq=Iq.default.create;function jP(){var e=Dq();return e.compile=function(t,r){return xd.compile(t,r,e)},e.precompile=function(t,r){return xd.precompile(t,r,e)},e.AST=Rq.default,e.Compiler=xd.Compiler,e.JavaScriptCompiler=Nq.default,e.Parser=Od.parser,e.parse=Od.parse,e.parseWithoutProcessing=Od.parseWithoutProcessing,e}o(jP,"create");var Ei=jP();Ei.create=jP;Mq.default(Ei);Ei.Visitor=jq.default;Ei.default=Ei;lc.default=Ei;qP.exports=lc.default});var DP=h(pc=>{"use strict";pc.__esModule=!0;pc.print=Vq;pc.PrintVisitor=Y;function Lq(e){return e&&e.__esModule?e:{default:e}}o(Lq,"_interopRequireDefault");var Fq=ec(),Hq=Lq(Fq);function Vq(e){return new Y().accept(e)}o(Vq,"print");function Y(){this.padding=0}o(Y,"PrintVisitor");Y.prototype=new Hq.default;Y.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
72
- `,t};Y.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)s+=" "+e.blockParams[n];s+=" ]",t+=this.pad(s)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};Y.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Y.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Y.prototype.BlockStatement=Y.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad((e.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t};Y.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")};Y.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};Y.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Y.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Y.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,s=t.length;i<s;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};Y.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Y.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Y.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Y.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Y.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Y.prototype.NullLiteral=function(){return"NULL"};Y.prototype.Hash=function(e){for(var t=e.pairs,r=[],n=0,i=t.length;n<i;n++)r.push(this.accept(t[n]));return"HASH{"+r.join(", ")+"}"};Y.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var Wt=h((AB,HP)=>{var fc=MP().default,FP=DP();fc.PrintVisitor=FP.PrintVisitor;fc.print=FP.print;HP.exports=fc;function LP(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=fc.compile(n)}o(LP,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=LP,require.extensions[".hbs"]=LP)});var F3={};SE(F3,{getGenerateFilesData:()=>L3,getGenerateMetadata:()=>D3});module.exports=bE(F3);var Td=Ge(aS());var yo="AppRestClient",ta={query:"AppQueryOptions",infiniteQuery:"AppInfiniteQueryOptions",mutation:"AppMutationOptions"},rf="src/data",cS="@/data",en={appRestClient:"@/util/rest/clients/app-rest-client",queryTypes:"@/types/react-query",errorHandling:"@/util/vendor/error-handling",abilityContext:"@/data/acl/ability.context"},hr={ErrorHandler:"ErrorHandler",SharedErrorHandler:"SharedErrorHandler"},ra={bindings:[hr.ErrorHandler,hr.SharedErrorHandler],from:en.errorHandling},nf="AbilityContext",uS={bindings:[nf],from:en.abilityContext};var na={reactQueryTypes:{fileName:"react-query.types",extension:"ts"},restClient:{fileName:"rest-client",extension:"ts"},restInterceptor:{fileName:"rest-interceptor",extension:"ts"}},ia={fileName:"app-rest-client",extension:"ts"},of="QueryModule",oa={fileName:"queryModules",extension:"ts"},lS={fileName:"queryConfig.context",extension:"tsx"},ni={optionsType:"MutationEffectsOptions",hookName:"useMutationEffects",runFunctionName:"runMutationEffects"},sa={fileName:"useMutationEffects",extension:"ts"},Ye={namespace:"ZodExtended",exports:{parse:"parse",sortExp:"sortExp"}},aa={fileName:"zod.extended",extension:"ts"};var pS="Schema",fS="Enum",dS="Body",mS="Param",hS="Response",gS="ErrorResponse",vo="z.void()",ca="z.instanceof(Blob)",So="z.enum",yS="z.int()",vS="z.number()",ua="z.string()",SS="z.email()",bS="z.url()",_S="z.uuid()",PS="z.iso.datetime({ offset: true })",ii={bindings:["z"],from:"zod"};var sf={input:"http://localhost:4000/docs-json/",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],excludePathRegex:"",excludeRedundantZodSchemas:!0,tsNamespaces:!0,tsPath:cS,importPath:"ts",configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"},acl:{outputFileNameSuffix:"acl",namespaceSuffix:"Acl"}},standalone:!1,baseUrl:"",schemaSuffix:pS,enumSuffix:fS,withDefaultValues:!0,extractEnums:!0,replaceOptionalWithNullish:!1,restClientImportPath:en.appRestClient,errorHandlingImportPath:en.errorHandling,removeOperationPrefixEndingWith:"Controller_",parseRequestParams:!0,queryTypesImportPath:en.queryTypes,axiosRequestConfig:!1,infiniteQueries:!1,mutationEffects:!0,acl:!0,checkAcl:!0,abilityContextImportPath:en.abilityContext,abilityContextGenericAppAbilities:!1};var mt={query:"useQuery",infiniteQuery:"useInfiniteQuery",mutation:"useMutation"},ES={bindings:[mt.query,mt.infiniteQuery,mt.mutation],from:"@tanstack/react-query"},bo={pageParamName:"page"},la={pageParamName:"page",totalItemsName:"totalItems",limitParamName:"limit"},_o="moduleName";var mb=Ge($S());var af={"Content-Type":"application/json",Accept:"application/json"},pa="data",cf="axios",yr="config",xt="AxiosRequestConfig",fa={defaultImport:cf,bindings:[xt],from:"axios"};var OS=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),At=o(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");function D(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(D,"isReferenceObject");function le(e){return!D(e)}o(le,"isSchemaObject");function da(e){return e.type==="array"}o(da,"isArraySchemaObject");function xS(e){if(!e.allOf)throw new Error("Function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,s)=>{if(yN(s)){let a=s.required;i[0].push(...a??[])}else i[1].push(s);return i},[[],[]]),n={properties:t.reduce((i,s)=>(i[s]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:o((i,s)=>{if(D(i)){let a=s(i.$ref);a&&n.required.forEach(c=>{var u;n.properties[c]=((u=a==null?void 0:a.properties)==null?void 0:u[c])??{}})}else{let a=i.properties??{};n.required.forEach(c=>{a[c]&&(n.properties[c]=a[c]??{})})}},"patchRequiredSchemaInLoop")}}o(xS,"inferRequiredSchema");var yN=o(e=>!D(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var Bt=Symbol.for("@ts-pattern/matcher"),vN=Symbol.for("@ts-pattern/isVariadic"),ha="@ts-pattern/anonymous-select-key",uf=o(e=>!!(e&&typeof e=="object"),"r"),ma=o(e=>e&&!!e[Bt],"i"),Tt=o((e,t,r)=>{if(ma(e)){let n=e[Bt](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(uf(e)){if(!uf(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],s=[];for(let a of e.keys()){let c=e[a];ma(c)&&c[vN]?s.push(c):s.length?i.push(c):n.push(c)}if(s.length){if(s.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),c=i.length===0?[]:t.slice(-i.length),u=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,f)=>Tt(l,a[f],r))&&i.every((l,f)=>Tt(l,c[f],r))&&(s.length===0||Tt(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>Tt(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||ma(s=i)&&s[Bt]().matcherType==="optional")&&Tt(i,t[n],r);var s})}return Object.is(t,e)},"s"),Pr=o(e=>{var t,r,n;return uf(e)?ma(e)?(t=(r=(n=e[Bt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Eo(e,Pr):Eo(Object.values(e),Pr):[]},"o"),Eo=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Je(e){return Object.assign(e,{optional:o(()=>SN(e),"optional"),and:o(t=>K(e,t),"and"),or:o(t=>bN(e,t),"or"),select:o(t=>t===void 0?AS(e):AS(t,e),"select")})}o(Je,"u");function SN(e){return Je({[Bt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(Pr(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Tt(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>Pr(e),"getSelectionKeys"),matcherType:"optional"})})}o(SN,"h");function K(...e){return Je({[Bt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>Tt(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Eo(e,Pr),"getSelectionKeys"),matcherType:"and"})})}o(K,"m");function bN(...e){return Je({[Bt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return Eo(e,Pr).forEach(i=>n(i,void 0)),{matched:e.some(i=>Tt(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Eo(e,Pr),"getSelectionKeys"),matcherType:"or"})})}o(bN,"d");function F(e){return{[Bt]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(F,"p");function AS(...e){let t=typeof e[0]=="string"?e[0]:void 0,r=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return Je({[Bt]:()=>({match:o(n=>{let i={[t??ha]:n};return{matched:r===void 0||Tt(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??ha].concat(r===void 0?[]:Pr(r)),"getSelectionKeys")})})}o(AS,"y");function wt(e){return typeof e=="number"}o(wt,"v");function vr(e){return typeof e=="string"}o(vr,"b");function Sr(e){return typeof e=="bigint"}o(Sr,"w");var l5=Je(F(function(e){return!0}));var br=o(e=>Object.assign(Je(e),{startsWith:o(t=>{return br(K(e,(r=t,F(n=>vr(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return br(K(e,(r=t,F(n=>vr(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>br(K(e,(r=>F(n=>vr(n)&&n.length>=r))(t))),"minLength"),length:o(t=>br(K(e,(r=>F(n=>vr(n)&&n.length===r))(t))),"length"),maxLength:o(t=>br(K(e,(r=>F(n=>vr(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return br(K(e,(r=t,F(n=>vr(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return br(K(e,(r=t,F(n=>vr(n)&&!!n.match(r)))));var r},"regex")}),"j"),p5=br(F(vr)),It=o(e=>Object.assign(Je(e),{between:o((t,r)=>It(K(e,((n,i)=>F(s=>wt(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>It(K(e,(r=>F(n=>wt(n)&&n<r))(t))),"lt"),gt:o(t=>It(K(e,(r=>F(n=>wt(n)&&n>r))(t))),"gt"),lte:o(t=>It(K(e,(r=>F(n=>wt(n)&&n<=r))(t))),"lte"),gte:o(t=>It(K(e,(r=>F(n=>wt(n)&&n>=r))(t))),"gte"),int:o(()=>It(K(e,F(t=>wt(t)&&Number.isInteger(t)))),"int"),finite:o(()=>It(K(e,F(t=>wt(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>It(K(e,F(t=>wt(t)&&t>0))),"positive"),negative:o(()=>It(K(e,F(t=>wt(t)&&t<0))),"negative")}),"x"),f5=It(F(wt)),_r=o(e=>Object.assign(Je(e),{between:o((t,r)=>_r(K(e,((n,i)=>F(s=>Sr(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>_r(K(e,(r=>F(n=>Sr(n)&&n<r))(t))),"lt"),gt:o(t=>_r(K(e,(r=>F(n=>Sr(n)&&n>r))(t))),"gt"),lte:o(t=>_r(K(e,(r=>F(n=>Sr(n)&&n<=r))(t))),"lte"),gte:o(t=>_r(K(e,(r=>F(n=>Sr(n)&&n>=r))(t))),"gte"),positive:o(()=>_r(K(e,F(t=>Sr(t)&&t>0))),"positive"),negative:o(()=>_r(K(e,F(t=>Sr(t)&&t<0))),"negative")}),"A"),d5=_r(F(Sr)),m5=Je(F(function(e){return typeof e=="boolean"})),h5=Je(F(function(e){return typeof e=="symbol"})),g5=Je(F(function(e){return e==null})),y5=Je(F(function(e){return e!=null}));var df=class df extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};o(df,"W");var lf=df,pf={matched:!1,value:void 0};function Pe(e){return new ff(e,pf)}o(Pe,"z");var Po=class Po{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let s=!1,a={},c=o((l,f)=>{s=!0,a[l]=f},"a"),u=!n.some(l=>Tt(l,this.input,c))||i&&!i(this.input)?pf:{matched:!0,value:r(s?ha in a?a[ha]:a:this.input,this.input)};return new Po(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Po(this.input,n?{matched:!0,value:r(this.input,this.input)}:pf)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new lf(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(Po,"I");var ff=Po;var mf=2,wS=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],IS=["query","header","path"],tn=["get","put","post","delete","options","head","patch","trace"],TS=["string","number","integer","boolean"],oi=["allOf","anyOf","oneOf"];var G=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Er=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),RS=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),pe=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),CS=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),hf=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),NS=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),_N=o(e=>{var n;let t=e.reduce((i,s)=>({...i,[s]:(i[s]??0)+1}),{});return(n=Object.entries(t).sort((i,s)=>i[1]===s[1]?s[0].length-i[0].length:s[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),gf=o(e=>{let t=e.map(G).map(kS).map(r=>PN(r)).flat();return _N(t)},"getMostCommonAdjacentCombinationSplit"),kS=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),jS=o(e=>kS(e).join(" "),"camelToSpaceSeparated"),PN=o((e,t=["dto","by","for","of","in","to","and","with"])=>{var n;let r=[];for(let i=0;i<e.length;i++)if(!t.includes(e[i].toLowerCase()))for(let s=i+1;s<=e.length;s++)t.includes((n=e[s-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,s).join(""));return r},"getAdjacentStringCombinations"),qS=o((e,t)=>{let r=t.replace(/es$|s$/g,""),n=new RegExp(`(${Er(r)}|${G(r)})[a-z]*(?=$|[A-Z])`,"g");return e.replace(n,"")},"removeWord");var DS=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),rn=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),si=o(e=>rn(e).split("/").at(-1),"getSchemaNameByRef");function vf(e){let t=EN(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return pe(t)}o(vf,"normalizeString");function Sf(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(Sf,"wrapWithQuotesIfNeeded");function LS(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(LS,"unwrapQuotesIfNeeded");function EN(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(EN,"prefixStringStartingWithNumberIfNeeded");function bf(e){let t=e.replaceAll("_","#");return pe(t.replaceAll("-","_")).replaceAll("#","_")}o(bf,"pathParamToVariableName");var Ut=o(e=>TS.includes(e),"isPrimitiveType");function FS(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}o(FS,"escapeControlCharacters");function Xe(e){return e.includes("application/")&&e.includes("json")||wS.includes(e)||e.includes("text/")}o(Xe,"isParamMediaTypeAllowed");function $o(e){return e>=200&&e<300}o($o,"isMainResponseStatus");function ga(e){return!(e>=200&&e<300)}o(ga,"isErrorStatus");function ai(e){return e.startsWith("application/")}o(ai,"isMediaTypeAllowed");var MS=/({\w+})/g,$N=/[^\w\-]+/g;function HS(e){e=G(RS(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(MS)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(MS,"")}By${G(r.slice(1,-1))}`}return e.replace($N,"_")}o(HS,"pathToVariableName");var yf=/{(\b\w+(?:-\w+)*\b)}/g;function VS(e){let t=e.match(yf);return t===null?e.replaceAll(yf,":$1"):(t.forEach(r=>{let n=bf(r.replaceAll(yf,":$1"));e=e.replaceAll(r,n)}),e)}o(VS,"replaceHyphenatedPath");var BS=o(e=>{let t=e["x-enumNames"],r=Array.isArray(t)&&t.length>0,n=!!e.schema&&le(e.schema)&&e.schema.type==="string";return r&&n},"isSortingParameterObject"),nn=o((e,t)=>t.excludePathRegex?new RegExp(t.excludePathRegex).test(e):!1,"isPathExcluded");function Rt(e){return CS(e)}o(Rt,"formatTag");function $r(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return Rt(r??t.defaultTag)}o($r,"getOperationTag");function US(e,t){return t.excludeTags.some(r=>r.toLowerCase()===e.toLowerCase())}o(US,"isTagExcluded");var ya={fileName:"acl/app.ability",extension:"ts"},Oo="AppAbilities",va={fileName:"acl/useAclCheck",extension:"ts"},Or="useAclCheck",fe={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subjectType:"Subject",subject:"subject"},_f={bindings:[fe.abilityTuple,fe.pureAbility,fe.forcedSubject,fe.subjectType,fe.subject],from:"@casl/ability"};var Fe=o((...e)=>[...new Set(e.flat())],"getUniqueArray");var xo=o(e=>`canUse${G(pe(e.operationName))}`,"getAbilityFunctionName"),GS=o((e,t)=>`${t.tsNamespaces?`${Z({type:"acl",tag:Ar(e,t),options:t})}.`:""}${xo(e)}`,"getImportedAbilityFunctionName"),Pf=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),Ef=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),Ao=o(e=>{var t;return!!((t=ci(e))!=null&&t.length)},"hasAbilityConditions"),ci=o(e=>{var t,r;return(r=(t=e.acl)==null?void 0:t[0].conditionsTypes)==null?void 0:r.sort((n,i)=>n.name.localeCompare(i.name))},"getAbilityConditionsTypes"),ZS=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].description},"getAbilityDescription"),$f=o(e=>{var n;let t=Ef(e),r=[`"${t??""}"`];return Ao(e)&&r.push(`ForcedSubject<"${t}"> & { ${(n=ci(e))==null?void 0:n.map(i=>`${i.name}${i.required?"":"?"}: ${i.type??""}${i.zodSchemaName??""},`).join(" ")} }`),r},"getAbilitySubjectTypes");function Of({resolver:e,data:t,tag:r=""}){var c;let n=(c=t.get(r))==null?void 0:c.endpoints.filter(({acl:u})=>u&&u.length>0);if(!n||n.length===0)return;let i=n.some(({acl:u})=>(u==null?void 0:u[0].conditions)&&Object.keys(u[0].conditions).length>0),s=n.reduce((u,l)=>{var p,d;let f=(d=(p=l.acl)==null?void 0:p[0].conditionsTypes)==null?void 0:d.reduce((m,g)=>[...m,...g!=null&&g.zodSchemaName?[g.zodSchemaName]:[]],[]);return[...u,...f??[]]},[]),a=xr({resolver:e,tag:r,zodSchemasAsTypes:Fe(s)});return{endpoints:n,hasAdditionalAbilityImports:i,modelsImports:a}}o(Of,"getAclData");var zS=o(({resolver:e,data:t})=>{let r=new Map,n=[],i=!1;t.forEach((c,u)=>{let l=Of({resolver:e,data:t,tag:u});if(!l)return;let{modelsImports:f,hasAdditionalAbilityImports:p,endpoints:d}=l;n.push(f),i=i||p,d.forEach(m=>{let g=Pf(m);g&&r.set(g,new Set([...r.get(g)??[],...$f(m)]))})});let s=xf(e.options,...n);return{appAbilitiesType:r.size>0?Object.fromEntries(Array.from(r.entries()).map(([c,u])=>[c,Array.from(u)])):void 0,modelsImports:s,hasAdditionalAbilityImports:i}},"getAppAbilitiesType");function we(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(D(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(oi.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s)(n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))!==!0&&we(a,{data:r,onSchema:n})}if(i.properties)for(let[s,a]of Object.entries(i.properties))n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})!==!0&&we(a,t);if(i.additionalProperties&&typeof i.additionalProperties=="object"){if(n({type:"additionalProperties",parentSchema:e,schema:i.additionalProperties,data:r})===!0)return;we(i.additionalProperties,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;we(s,t)}}o(we,"iterateSchema");var on=o((e,t)=>hf(G(vf(e)),t),"getZodSchemaName"),wo=o((e,t,r)=>hf(G(vf(e)),`${t}${r}`),"getEnumZodSchemaName"),de=o(e=>["z.",`${Ye.namespace}.`].every(t=>!e.startsWith(t)),"isNamedZodSchema"),KS=o(e=>e.startsWith(So),"isEnumZodSchema"),sn=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),Sa=o(e=>pe(`${e}_${dS}`),"getBodyZodSchemaName"),QS=o((e,t)=>pe(`${e}_${t}${mS}`),"getParamZodSchemaName"),ON=o(e=>pe(`${e}${hS}`),"getMainResponseZodSchemaName"),xN=o((e,t)=>pe(`${e}_${t}_${gS}`),"getErrorResponseZodSchemaName");function ba({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=sn(t,r,n);return!$o(i)&&e!=="default"&&ga(i)?xN(s,e):ON(s)}o(ba,"getResponseZodSchemaName");function Io(e){return["minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","default","example"].filter(n=>e[n]).reduce((n,i)=>[...n,`${G(jS(i))}: \`${e[i]}\``],[])}o(Io,"getSchemaDescriptions");var To=o((e,t)=>NS(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),WS=o((e,t)=>de(t)?`${e.options.tsNamespaces?`${Z({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),wr=o((e,t,r)=>{if(!de(t))return t===vo?"void":t;let n=e.getTagByZodSchemaName(t);return`${e.options.tsNamespaces&&n!==r?`${Z({type:"models",tag:n,options:e.options})}.`:""}${To(t,e.options)}`},"getImportedZodSchemaInferedTypeName");function YS(e){var t;return e.isEnum?"enum":((t=e.schemaObj)==null?void 0:t.type)??"object"}o(YS,"getZodSchemaType");function JS(e){if(e.schemaObj)return[e.schemaObj.description,...Io(e.schemaObj)].filter(Boolean).join(". ")}o(JS,"getZodSchemaDescription");function XS(e,t,r){var n;if(D(t)){let i=e.getZodSchemaNameByRef(t.$ref);return i?wr(e,i,r):void 0}if(da(t)){if(!D(t.items))return`${((n=t.items)==null?void 0:n.type)??"unknown"}[]`;let i=e.getZodSchemaNameByRef(t.items.$ref);return i?`${wr(e,i,r)}[]`:void 0}if(oi.some(i=>i in t&&t[i])){let i=t.allOf??t.anyOf??t.oneOf??[];if(i.length>0)return XS(e,i[0],r)}return t.type}o(XS,"getType");function eb(e,t,r){if(!t.schemaObj)return[];let n="[0]",i="[key]",s={},a=o(c=>{var l;if(c.type==="reference")return!0;if(c.type==="composite")return;let u=[...((l=c.data)==null?void 0:l.pathSegments)??[]];if(c.type==="array"?u.push(n):c.type==="property"?u.push(c.propertyName):c.type==="additionalProperties"&&u.push(i),c.schema&&u[u.length-1]!==n){let f=e.resolveObject(c.schema),p=[f.description,...Io(f)].filter(Boolean),d=u.join(".");s[d]&&"type"in c.schema&&c.schema.type==="object"||(delete s[d],s[d]={type:XS(e,c.schema,r)??"unknown",description:p.join(". ")})}return we(c.schema,{data:{pathSegments:[...u]},onSchema:a}),!0},"onSchema");return"allOf"in t.schemaObj&&t.schemaObj.allOf&&t.schemaObj.allOf.forEach(c=>{if(D(c)){let u=e.resolveObject(c);we(u,{data:{pathSegments:[]},onSchema:a})}}),we(t.schemaObj,{data:{pathSegments:[]},onSchema:a}),s}o(eb,"getZodSchemaPropertyDescriptions");function xr({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=_a({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=_a({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>To(u,e.options),"getEntityName"),options:e.options});return xf(e.options,a,c)}o(xr,"getModelsImports");function tb({tag:e,endpoints:t,options:r}){return _a({type:"endpoints",tag:e,entities:t,getTag:o(n=>Ar(n,r),"getTag"),getEntityName:Ro,options:r})}o(tb,"getEndpointsImports");function rb({tag:e,endpoints:t,options:r}){return _a({type:"acl",tag:e,entities:t,getTag:o(n=>Ar(n,r),"getTag"),getEntityName:xo,options:r})}o(rb,"getAclImports");function Gt(e){let t=e.tsPath;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${rf}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${rf}`,"g"),e.tsPath)),`${t}/`.replace(/\/\//g,"/")}o(Gt,"getImportPath");function _a({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))s.tsNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.tsNamespaces?Z({type:e,tag:u,options:s}):i(c)],from:`${l?"./":Gt(s)}${ui({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(_a,"getImports");function xf(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.tsNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Fe(n.bindings)}))}o(xf,"mergeImports");function an({fileName:e,extension:t}){return`${e}.${t}`}o(an,"getFileNameWithExtension");function nb({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Er(t)}/`:""}${Er(t)}.${i}`:i}o(nb,"getTagFileNameWithoutExtension");function ui(...e){return nb(...e)}o(ui,"getTagImportPath");function ib(...e){return`${nb(...e)}.ts`}o(ib,"getTagFileName");var Z=o(({type:e,tag:t,options:r})=>`${G(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");function ob(e){return e.standalone?`${Gt(e)}${ia.fileName}`:e.restClientImportPath}o(ob,"getAppRestClientImportPath");function sb(e){return e.standalone?`${Gt(e)}${na.reactQueryTypes.fileName}`:e.queryTypesImportPath}o(sb,"getQueryTypesImportPath");function ab(e){return`${Gt(e)}${oa.fileName}`}o(ab,"getQueryModulesImportPath");function cb(e){return`${Gt(e)}${sa.fileName}`}o(cb,"getMutationEffectsImportPath");function ub(e){return`${Gt(e)}${va.fileName}`}o(ub,"getAclCheckImportPath");function lb(e){return`${Gt(e)}${aa.fileName}`}o(lb,"getZodExtendedImportPath");function pb(e){return`${Gt(e)}${ya.fileName}`}o(pb,"getAppAbilitiesImportPath");function Pa(e){return Pe(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(Pa,"primitiveTypeToTsType");function li({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&de(e)?(n=wr(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&Ut(t==null?void 0:t.type)&&(n=Pa(t==null?void 0:t.type));let s=n.split(".");return{type:s[s.length-1],...s.length>1?{namespace:s[0]}:{},...i?{importPath:ui({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}o(li,"getTsTypeBase");function cn({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of oi){let s=e[i];if(s)if(s.length>1){let a=s.map(c=>{let u=n.resolveObject(c);return cn({schema:u,parentTypes:r,resolver:n})});return a.every(({metaType:c})=>c==="object")?{metaType:"object",objectProperties:a.reduce((c,{objectProperties:u})=>{let l=u.map(({name:f})=>f);return[...c.filter(({name:f})=>!l.includes(f)),...u]},[])}:{metaType:"composite",[i]:a}}else e=n.resolveObject(s[0])}return e.type==="array"?{metaType:"array",arrayType:fb({arraySchema:e,resolver:n,parentTypes:r})}:(e.type==="object"||e.properties)&&t?{metaType:"object",objectProperties:[],isCircular:!0}:e.type==="object"||e.properties?{metaType:"object",objectProperties:AN({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}o(cn,"getSchemaTsMetaType");function fb({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(D(e.items)){let u=e.items.$ref;n=r.getZodSchemaNameByRef(u),i=r.getSchemaByRef(u)}else i=e.items;let s=li({zodSchemaName:n,schema:i,resolver:r}),a=db(s,t),c=cn({schema:i,isCircular:a,parentTypes:[...t,s],resolver:r});return{...s,...c}}o(fb,"getArraySchemaTsType");function AN({schema:e,parentTypes:t,resolver:r}){return Object.entries((e==null?void 0:e.properties)??{}).map(([n,i])=>{var a;let s=((a=e==null?void 0:e.required)==null?void 0:a.includes(n))??!1;if(D(i)){let c=r.getZodSchemaNameByRef(i.$ref),u=r.getSchemaByRef(i.$ref),l=li({zodSchemaName:c,schema:u,resolver:r}),f=db(l,t),p=cn({schema:u,isCircular:f,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:s,...l,...p}}else if(i.type==="array"){let c=fb({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:s,type:"array",metaType:"array",arrayType:c}}else if(Ut(i.type))return{name:n,isRequired:s,type:Pa(i.type),metaType:"primitive"};return{name:n,isRequired:s,type:"void",metaType:"primitive"}})}o(AN,"getSchemaTsProperties");function db(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}o(db,"getIsCircular");var Ro=o(e=>Er(pe(e.operationName)),"getEndpointName");function hb(e,t){return`${t.tsNamespaces?`${Z({type:"endpoints",tag:Ar(e,t),options:t})}.`:""}${Ro(e)}`}o(hb,"getImportedEndpointName");var gb=o(e=>e.method!==mb.OpenAPIV3.HttpMethods.GET,"requiresBody"),Ea=o(e=>e.parameters.find(t=>t.type==="Body"),"getEndpointBody"),yb=o((e,t)=>{let r=Af(e),n=t.options.axiosRequestConfig;return Object.keys(r).length>0||n},"hasEndpointConfig"),vb=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function Ar(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return Rt(r??t.defaultTag)}o(Ar,"getEndpointTag");function Ir(e,t,r){let n=t.parameters.map(i=>{var a,c,u,l;let s="string";if(de(i.zodSchema))s=wr(e,i.zodSchema);else if((a=i.parameterObject)!=null&&a.schema&&le(i.parameterObject.schema)){let f=(u=(c=i.parameterObject)==null?void 0:c.schema)==null?void 0:u.type;f&&Ut(f)&&(s=Pa(f))}return{name:At(i.name),type:s,paramType:i.type,required:((l=i.parameterObject)==null?void 0:l.required)??!0,parameterObject:i.parameterObject,bodyObject:i.bodyObject}});return r!=null&&r.includeFileParam&&t.mediaUpload&&n.push({name:"file",type:"File",paramType:"Body",required:!0,parameterObject:void 0,bodyObject:void 0}),n.sort((i,s)=>{if(i.required===s.required){let a=["Path","Body","Query","Header"];return a.indexOf(i.paramType)-a.indexOf(s.paramType)}return i.required?-1:1}).filter(i=>(!(r!=null&&r.excludeBodyParam)||i.name!==pa)&&(!(r!=null&&r.excludePageParam)||i.name!==bo.pageParamName)&&(!(r!=null&&r.includeOnlyRequiredParams)||i.required)).map(i=>({...i,name:r!=null&&r.replacePageParam&&i.name===bo.pageParamName?"pageParam":i.name,required:i.required&&(i.paramType==="Path"||!(r!=null&&r.pathParamsRequiredOnly))}))}o(Ir,"mapEndpointParamsToFunctionParams");function Af(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=OS(i.name)?i.name:`"${i.name}"`,a=At(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==af["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==af.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=At(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(Af,"getEndpointConfig");function Sb(e,t){return t.filter(r=>Ie(r)&&r.parameters.filter(n=>{var i;return(i=n.parameterObject)==null?void 0:i.required}).every(n=>e.parameters.some(i=>i.name===n.name))&&r.response===e.response)}o(Sb,"getUpdateQueryEndpoints");var Ie=o(e=>e.method==="get","isQuery"),Ct=o(e=>e.method!=="get"||!!e.mediaDownload,"isMutation"),pi=o((e,t)=>Ie(e)&&(t??Object.values(bo)).every(r=>e.parameters.some(n=>n.name===r&&n.type==="Query")),"isInfiniteQuery"),bb=o((e,t,r)=>{let n=r.reduce((i,s)=>[...i,...Ir(e,s,{includeOnlyRequiredParams:!0}).map(a=>a.name)],[]);return Ir(e,t,{includeOnlyRequiredParams:!0,excludeBodyParam:!0}).filter(i=>n.includes(i.name)).map(i=>i.name)},"getDestructuredVariables");var $a=o((e,t)=>{let r=Ie(e)&&Ct(e)&&t;return`use${G(pe(e.operationName))}${r?"Mutation":""}`},"getQueryName"),_b=o(e=>`use${G(pe(e.operationName))}Infinite`,"getInfiniteQueryName");var wf=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];function un(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(un,"pick");function fi(e,t){let r=e.deprecated&&!t.withDeprecatedEndpoints,n=$r(e,t),i=US(n,t);return r||i}o(fi,"isOperationExcluded");function If({path:e,method:t,operation:r,options:n,tag:i,keepOperationTag:s,keepOperationPrefix:a}){let c=`${t}${HS(e)}`,u=r.operationId?At(r.operationId):c;if(n.removeOperationPrefixEndingWith&&a)u=u.split(n.removeOperationPrefixEndingWith).map((f,p)=>p===0?f:G(f)).join("");else if(n.removeOperationPrefixEndingWith&&!a){let l=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);u=u.replace(l,"")}if(n.tsNamespaces&&!s){let l=qS(u,i);l===""?u=t.toLowerCase():wf.includes(l)||(u=l)}return wf.includes(u)?c:u}o(If,"getOperationName");function Co({operationsByTag:e,...t}){let{operation:r,options:n}=t,i=n.splitByTags?$r(r,n):n.defaultTag,s=o(a=>{let c=If({...t,tag:i,keepOperationTag:a});if(e[i].filter(l=>If({...t,operation:l,tag:i,keepOperationTag:a})===c).length===1)return c},"operationName");return s()??s(!0)??If({...t,tag:i,keepOperationTag:!0,keepOperationPrefix:!0})}o(Co,"getUniqueOperationName");function Pb(e,t,r){let n=[];for(let i in e.paths){if(nn(i,r))continue;let s=e.paths[i],a=un(s,tn);for(let c in a){let u=a[c];if(!u||fi(u,r))continue;let l=Co({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(Pb,"getUniqueOperationNamesWithoutSplitByTags");function Eb(e,t){let r={};for(let n in e.paths){if(nn(n,t))continue;let i=e.paths[n],s=un(i,tn);for(let a in s){let c=s[a];if(!c||fi(c,t))continue;let u=t.splitByTags?$r(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(Eb,"getOperationsByTag");var $b={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Ambiguous",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I Am a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",424:"Failed Dependency",428:"Precondition Required",429:"Too Many Requests",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function No(e){return{type:"invalid-schema",message:e}}o(No,"getInvalidSchemaError");function Ob(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(Ob,"getInvalidOperationIdError");function xb(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o(xb,"getMissingPathParameterError");function Ab(e){return{type:"not-allowed-inline-enum",message:`${e} is missing @IsEnum() and @ApiProperty(enum:, enumName:)`}}o(Ab,"getNotAllowedInlineEnumError");function wb(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${xa(t,r)}`}}o(wb,"getMissingAclConditionPropertyError");function Tf(e,t,r){return{type:"missing-status-code",message:`Missing HTTP status code ${Oa(e)} in operation ${xa(t,r)}`}}o(Tf,"getMissingStatusCodeError");function Ib(e,t,r){return{type:"invalid-status-code",message:`Operation ${xa(t,r)} expected HTTP status code ${Oa(e.expected)} but received ${Oa(e.received)}`}}o(Ib,"getInvalidStatusCodeError");function Tb(e,t,r){return{type:"multiple-success-status-codes",message:`Operation ${xa(t,r)} has multiple success HTTP status codes: ${e.map(Oa).join(", ")}`}}o(Tb,"getMultipleSuccessStatusCodesError");function xa(e,t){return e.operationId??`${t.method} ${t.path}`}o(xa,"getOperationDescriptor");function Oa(e){return`${e} (${$b[e]})`}o(Oa,"getStatusCodeDescription");function Nt({schema:e,meta:t,options:r}){let n=[];Pe(e.type).with("string",()=>n.push(TN(e))).with("number","integer",()=>n.push(CN(e))).with("array",()=>n.push(NN(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&r.withDescription&&([`
71
+ `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(t){this.lastContext=t},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(t,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[s++])):this.pushContext(),this.resolvePath("context",t,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(t,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(Y3(this.options.strict&&s,this,r,n,t));return}for(var c=r.length;n<c;n++)this.replaceStack(function(u){var l=a.nameLookup(u,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",u]})},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:o(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:o(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:o(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:o(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(t,r,n){var i=this.popStack(),s=this.setupHelper(t,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",s.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:o(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),s=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:o(function(t,r,n){var i=[],s=this.setupParams(r,1,i);t&&(r=this.popStack(),delete s.name),n&&(s.indent=JSON.stringify(n)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),i.push(s),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:o(function(t){var r=this.popStack(),n=void 0,i=void 0,s=void 0;this.trackIds&&(s=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),s&&(a.ids[t]=s),a.values[t]=r},"assignToHash"),pushId:o(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:Ci,compileChildren:o(function(t,r){for(var n=t.children,i=void 0,s=void 0,a=0,c=n.length;a<c;a++){i=n[a],s=new this.compiler;var u=this.matchExistingProgram(i);if(u==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=s.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=s.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=u.index,i.name="program"+u.index,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.useBlockParams}},"compileChildren"),matchExistingProgram:o(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:o(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:o(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:o(function(t){return t instanceof Ti||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new Ti(t))},"pushStackLiteral"),pushSource:o(function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},"pushSource"),replaceStack:o(function(t){var r=["("],n=void 0,i=void 0,s=void 0;if(!this.isInline())throw new Hd.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Ti)n=[a.value],r=["(",n],s=!0;else{i=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);s||this.popStack(),i&&this.stackSlot--,this.push(r.concat(u,")"))},"replaceStack"),incrStack:o(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:o(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:o(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof Ti)this.compileStack.push(i);else{var s=this.incrStack();this.pushSource([s," = ",i,";"]),this.compileStack.push(s)}}},"flushInline"),isInline:o(function(){return this.inlineStack.length},"isInline"),popStack:o(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof Ti)return n.value;if(!r){if(!this.stackSlot)throw new Hd.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:o(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof Ti?r.value:r},"topStack"),contextName:o(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:o(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:o(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:o(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:o(function(t,r,n){var i=[],s=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:s,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:o(function(t,r,n){var i={},s=[],a=[],c=[],u=!n,l=void 0;u&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var f=this.popStack(),p=this.popStack();(p||f)&&(i.fn=p||"container.noop",i.inverse=f||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(c[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),s[d]=this.popStack());return u&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(c)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(s)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:o(function(t,r,n,i){var s=this.setupParams(t,r,n);return s.loc=JSON.stringify(this.source.currentLocation),s=this.objectLiteral(s),i?(this.useRegister("options"),n.push("options"),["options=",s]):n?(n.push(s),""):s},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=Ci.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Ci.isValidJavaScriptVariableName=function(e){return!Ci.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function Y3(e,t,r,n,i){var s=t.popStack(),a=r.length;for(e&&a--;n<a;n++)s=t.nameLookup(s,r[n],i);return e?[t.aliasable("container.strict"),"(",s,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:s}o(Y3,"strictLookup");Oc.default=Ci;XE.exports=Oc.default});var nP=h(($c,rP)=>{"use strict";$c.__esModule=!0;function ss(e){return e&&e.__esModule?e:{default:e}}o(ss,"_interopRequireDefault");var J3=iE(),X3=ss(J3),eq=Sd(),tq=ss(eq),Vd=yE(),Bd=_E(),rq=eP(),nq=ss(rq),iq=hc(),oq=ss(iq),sq=md(),aq=ss(sq),cq=X3.default.create;function tP(){var e=cq();return e.compile=function(t,r){return Bd.compile(t,r,e)},e.precompile=function(t,r){return Bd.precompile(t,r,e)},e.AST=tq.default,e.Compiler=Bd.Compiler,e.JavaScriptCompiler=nq.default,e.Parser=Vd.parser,e.parse=Vd.parse,e.parseWithoutProcessing=Vd.parseWithoutProcessing,e}o(tP,"create");var Ri=tP();Ri.create=tP;aq.default(Ri);Ri.Visitor=oq.default;Ri.default=Ri;$c.default=Ri;rP.exports=$c.default});var iP=h(xc=>{"use strict";xc.__esModule=!0;xc.print=fq;xc.PrintVisitor=te;function uq(e){return e&&e.__esModule?e:{default:e}}o(uq,"_interopRequireDefault");var lq=hc(),pq=uq(lq);function fq(e){return new te().accept(e)}o(fq,"print");function te(){this.padding=0}o(te,"PrintVisitor");te.prototype=new pq.default;te.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
72
+ `,t};te.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)s+=" "+e.blockParams[n];s+=" ]",t+=this.pad(s)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};te.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};te.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};te.prototype.BlockStatement=te.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad((e.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t};te.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")};te.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};te.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};te.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};te.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,s=t.length;i<s;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};te.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};te.prototype.StringLiteral=function(e){return'"'+e.value+'"'};te.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};te.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};te.prototype.UndefinedLiteral=function(){return"UNDEFINED"};te.prototype.NullLiteral=function(){return"NULL"};te.prototype.Hash=function(e){for(var t=e.pairs,r=[],n=0,i=t.length;n<i;n++)r.push(this.accept(t[n]));return"HASH{"+r.join(", ")+"}"};te.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var Xt=h((l9,aP)=>{var Ac=nP().default,sP=iP();Ac.PrintVisitor=sP.PrintVisitor;Ac.print=sP.print;aP.exports=Ac;function oP(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Ac.compile(n)}o(oP,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=oP,require.extensions[".hbs"]=oP)});var mM={};BP(mM,{getGenerateFilesData:()=>dM,getGenerateMetadata:()=>fM});module.exports=GP(mM);var Kd=Re($v());var xv="Schema",Av="Enum",wv="Body",Iv="Param",Tv="Response",Cv="ErrorResponse",Ao="z.void()",li="z.any()",ma="z.instanceof(Blob)",wo="z.enum",Rv="z.int()",Nv="z.number()",ha="z.string()",kv="z.email()",jv="z.url()",qv="z.uuid()",Mv="z.iso.datetime({ offset: true })",Sr={bindings:["z"],from:"zod"};var vf={input:"http://localhost:4000/docs-json/",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],excludePathRegex:"",excludeRedundantZodSchemas:!0,tsNamespaces:!0,tsPath:"@/data",importPath:"ts",configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"},acl:{outputFileNameSuffix:"acl",namespaceSuffix:"Acl"},configs:{outputFileNameSuffix:"configs",namespaceSuffix:"Configs"}},standalone:!1,baseUrl:"",schemaSuffix:xv,enumSuffix:Av,withDefaultValues:!0,extractEnums:!0,replaceOptionalWithNullish:!1,restClientImportPath:"@/util/rest/clients/app-rest-client",errorHandlingImportPath:"@/util/vendor/error-handling",removeOperationPrefixEndingWith:"Controller_",parseRequestParams:!0,queryTypesImportPath:"@/types/react-query",axiosRequestConfig:!1,mutationEffects:!0,infiniteQueries:!1,infiniteQueryParamNames:{page:"page"},infiniteQueryResponseParamNames:{page:"page",totalItems:"totalItems",limit:"limit"},acl:!0,checkAcl:!0,abilityContextImportPath:"@/data/acl/ability.context",abilityContextGenericAppAbilities:!1,builderConfigs:!1,filterParamName:"filter",dataResponseParamNames:["data","items"],dynamicInputsImportPath:"@povio/ui",dynamicColumnsImportPath:"@povio/ui"};var B=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),vr=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),Io=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),me=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),Dv=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),bf=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),Lv=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),LN=o(e=>{var n;let t=e.reduce((i,s)=>({...i,[s]:(i[s]??0)+1}),{});return(n=Object.entries(t).sort((i,s)=>i[1]===s[1]?s[0].length-i[0].length:s[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),_f=o(e=>{let t=e.map(B).map(Fv).map(r=>FN(r)).flat();return LN(t)},"getMostCommonAdjacentCombinationSplit"),Fv=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),ga=o(e=>Fv(e).join(" "),"camelToSpaceSeparated"),FN=o((e,t=["dto","by","for","of","in","to","and","with"])=>{var n;let r=[];for(let i=0;i<e.length;i++)if(!t.includes(e[i].toLowerCase()))for(let s=i+1;s<=e.length;s++)t.includes((n=e[s-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,s).join(""));return r},"getAdjacentStringCombinations"),Hv=o((e,t)=>{let r=t.replace(/es$|s$/g,""),n=new RegExp(`(${vr(r)}|${B(r)})[a-z]*(?=$|[A-Z])`,"g");return e.replace(n,"")},"removeWord");var V=o(({type:e,tag:t,options:r})=>`${B(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var _r=Re(ya());var Sa=o(e=>e.method===_r.OpenAPIV3.HttpMethods.GET,"isGetEndpoint"),Ef=o((e,t)=>Sa(e)&&Object.values(t.infiniteQueryParamNames).every(r=>e.parameters.some(n=>n.name===r&&n.type==="Query")),"isPaginatedGetEndpoint"),Vv=o((e,t)=>e.method===_r.OpenAPIV3.HttpMethods.GET&&!pi(e.pathSegments.at(-1))&&Ef(e,t),"isReadAllEndpoint"),Bv=o((e,t)=>e.method===_r.OpenAPIV3.HttpMethods.GET&&Pf(e,t),"isReadEndpoint"),Gv=o((e,t)=>e.method===_r.OpenAPIV3.HttpMethods.POST&&Wv(e,t),"isCreateEndpoint"),Uv=o((e,t)=>e.method===_r.OpenAPIV3.HttpMethods.PATCH&&Pf(e,t),"isUpdateEndpoint"),Zv=o((e,t)=>e.method===_r.OpenAPIV3.HttpMethods.DELETE&&Pf(e,t),"isDeleteEndpoint"),zv=o((e,t)=>e.method===_r.OpenAPIV3.HttpMethods.DELETE&&Wv(e,t),"isBulkDeleteEndpoint"),Kv=o(e=>e.split("/").filter(Boolean),"getPathSegments"),pi=o(e=>e==null?void 0:e.startsWith(":"),"isPathSegmentParam"),Qv=o((e,t)=>t.pathSegments.every((r,n)=>pi(r)&&pi(e.pathSegments[n])||r===e.pathSegments[n]),"hasMatchingPath"),Wv=o((e,t)=>e.pathSegments.length===t.pathSegments.length&&Qv(e,t),"hasMatchingPathWithoutTrailingParam"),Pf=o((e,t)=>e.pathSegments.length-1===t.pathSegments.length&&pi(e.pathSegments.at(-1))&&Qv(e,t),"hasMatchingPathWithTrailingParam");var kb=Re(ya());var sn="application/json",Of={"Content-Type":sn,Accept:sn},va="data",$f="axios",Er="config",At="AxiosRequestConfig",ba={defaultImport:$f,bindings:[At],from:"axios"};var Yv=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),wt=o(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");function L(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(L,"isReferenceObject");function he(e){return!L(e)}o(he,"isSchemaObject");function _a(e){return e.type==="array"}o(_a,"isArraySchemaObject");function Jv(e){if(!e.allOf)throw new Error("Function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,s)=>{if(BN(s)){let a=s.required;i[0].push(...a??[])}else i[1].push(s);return i},[[],[]]),n={properties:t.reduce((i,s)=>(i[s]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:o((i,s)=>{if(L(i)){let a=s(i.$ref);a&&n.required.forEach(c=>{var u;n.properties[c]=((u=a==null?void 0:a.properties)==null?void 0:u[c])??{}})}else{let a=i.properties??{};n.required.forEach(c=>{a[c]&&(n.properties[c]=a[c]??{})})}},"patchRequiredSchemaInLoop")}}o(Jv,"inferRequiredSchema");var BN=o(e=>!L(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var Gt=Symbol.for("@ts-pattern/matcher"),GN=Symbol.for("@ts-pattern/isVariadic"),Pa="@ts-pattern/anonymous-select-key",xf=o(e=>!!(e&&typeof e=="object"),"r"),Ea=o(e=>e&&!!e[Gt],"i"),Ct=o((e,t,r)=>{if(Ea(e)){let n=e[Gt](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(xf(e)){if(!xf(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],s=[];for(let a of e.keys()){let c=e[a];Ea(c)&&c[GN]?s.push(c):s.length?i.push(c):n.push(c)}if(s.length){if(s.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),c=i.length===0?[]:t.slice(-i.length),u=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,f)=>Ct(l,a[f],r))&&i.every((l,f)=>Ct(l,c[f],r))&&(s.length===0||Ct(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>Ct(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Ea(s=i)&&s[Gt]().matcherType==="optional")&&Ct(i,t[n],r);var s})}return Object.is(t,e)},"s"),Ar=o(e=>{var t,r,n;return xf(e)?Ea(e)?(t=(r=(n=e[Gt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Co(e,Ar):Co(Object.values(e),Ar):[]},"o"),Co=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Je(e){return Object.assign(e,{optional:o(()=>UN(e),"optional"),and:o(t=>Y(e,t),"and"),or:o(t=>ZN(e,t),"or"),select:o(t=>t===void 0?Xv(e):Xv(t,e),"select")})}o(Je,"u");function UN(e){return Je({[Gt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(Ar(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Ct(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>Ar(e),"getSelectionKeys"),matcherType:"optional"})})}o(UN,"h");function Y(...e){return Je({[Gt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>Ct(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Co(e,Ar),"getSelectionKeys"),matcherType:"and"})})}o(Y,"m");function ZN(...e){return Je({[Gt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return Co(e,Ar).forEach(i=>n(i,void 0)),{matched:e.some(i=>Ct(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Co(e,Ar),"getSelectionKeys"),matcherType:"or"})})}o(ZN,"d");function H(e){return{[Gt]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(H,"p");function Xv(...e){let t=typeof e[0]=="string"?e[0]:void 0,r=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return Je({[Gt]:()=>({match:o(n=>{let i={[t??Pa]:n};return{matched:r===void 0||Ct(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??Pa].concat(r===void 0?[]:Ar(r)),"getSelectionKeys")})})}o(Xv,"y");function It(e){return typeof e=="number"}o(It,"v");function Pr(e){return typeof e=="string"}o(Pr,"b");function Or(e){return typeof e=="bigint"}o(Or,"w");var V5=Je(H(function(e){return!0}));var $r=o(e=>Object.assign(Je(e),{startsWith:o(t=>{return $r(Y(e,(r=t,H(n=>Pr(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return $r(Y(e,(r=t,H(n=>Pr(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>$r(Y(e,(r=>H(n=>Pr(n)&&n.length>=r))(t))),"minLength"),length:o(t=>$r(Y(e,(r=>H(n=>Pr(n)&&n.length===r))(t))),"length"),maxLength:o(t=>$r(Y(e,(r=>H(n=>Pr(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return $r(Y(e,(r=t,H(n=>Pr(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return $r(Y(e,(r=t,H(n=>Pr(n)&&!!n.match(r)))));var r},"regex")}),"j"),B5=$r(H(Pr)),Tt=o(e=>Object.assign(Je(e),{between:o((t,r)=>Tt(Y(e,((n,i)=>H(s=>It(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Tt(Y(e,(r=>H(n=>It(n)&&n<r))(t))),"lt"),gt:o(t=>Tt(Y(e,(r=>H(n=>It(n)&&n>r))(t))),"gt"),lte:o(t=>Tt(Y(e,(r=>H(n=>It(n)&&n<=r))(t))),"lte"),gte:o(t=>Tt(Y(e,(r=>H(n=>It(n)&&n>=r))(t))),"gte"),int:o(()=>Tt(Y(e,H(t=>It(t)&&Number.isInteger(t)))),"int"),finite:o(()=>Tt(Y(e,H(t=>It(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>Tt(Y(e,H(t=>It(t)&&t>0))),"positive"),negative:o(()=>Tt(Y(e,H(t=>It(t)&&t<0))),"negative")}),"x"),G5=Tt(H(It)),xr=o(e=>Object.assign(Je(e),{between:o((t,r)=>xr(Y(e,((n,i)=>H(s=>Or(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>xr(Y(e,(r=>H(n=>Or(n)&&n<r))(t))),"lt"),gt:o(t=>xr(Y(e,(r=>H(n=>Or(n)&&n>r))(t))),"gt"),lte:o(t=>xr(Y(e,(r=>H(n=>Or(n)&&n<=r))(t))),"lte"),gte:o(t=>xr(Y(e,(r=>H(n=>Or(n)&&n>=r))(t))),"gte"),positive:o(()=>xr(Y(e,H(t=>Or(t)&&t>0))),"positive"),negative:o(()=>xr(Y(e,H(t=>Or(t)&&t<0))),"negative")}),"A"),U5=xr(H(Or)),Z5=Je(H(function(e){return typeof e=="boolean"})),z5=Je(H(function(e){return typeof e=="symbol"})),K5=Je(H(function(e){return e==null})),Q5=Je(H(function(e){return e!=null}));var Tf=class Tf extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};o(Tf,"W");var Af=Tf,wf={matched:!1,value:void 0};function $e(e){return new If(e,wf)}o($e,"z");var To=class To{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let s=!1,a={},c=o((l,f)=>{s=!0,a[l]=f},"a"),u=!n.some(l=>Ct(l,this.input,c))||i&&!i(this.input)?wf:{matched:!0,value:r(s?Pa in a?a[Pa]:a:this.input,this.input)};return new To(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new To(this.input,n?{matched:!0,value:r(this.input,this.input)}:wf)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Af(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(To,"I");var If=To;var Ut=Re(ya()),Cf=2,eb=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],tb=["query","header","path"],an=[Ut.OpenAPIV3.HttpMethods.GET,Ut.OpenAPIV3.HttpMethods.PUT,Ut.OpenAPIV3.HttpMethods.POST,Ut.OpenAPIV3.HttpMethods.DELETE,Ut.OpenAPIV3.HttpMethods.OPTIONS,Ut.OpenAPIV3.HttpMethods.HEAD,Ut.OpenAPIV3.HttpMethods.PATCH,Ut.OpenAPIV3.HttpMethods.TRACE],rb=["string","number","integer","boolean"],fi=["allOf","anyOf","oneOf"];var ib=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),cn=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),di=o(e=>cn(e).split("/").at(-1),"getSchemaNameByRef");function Nf(e){let t=zN(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return me(t)}o(Nf,"normalizeString");function kf(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(kf,"wrapWithQuotesIfNeeded");function ob(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(ob,"unwrapQuotesIfNeeded");function zN(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(zN,"prefixStringStartingWithNumberIfNeeded");function jf(e){let t=e.replaceAll("_","#");return me(t.replaceAll("-","_")).replaceAll("#","_")}o(jf,"pathParamToVariableName");var Zt=o(e=>rb.includes(e),"isPrimitiveType");function sb(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}o(sb,"escapeControlCharacters");function Xe(e){return e.includes("application/")&&e.includes("json")||eb.includes(e)||e.includes("text/")}o(Xe,"isParamMediaTypeAllowed");function Ro(e){return e>=200&&e<300}o(Ro,"isMainResponseStatus");function Oa(e){return!(e>=200&&e<300)}o(Oa,"isErrorStatus");function mi(e){return e.startsWith("application/")}o(mi,"isMediaTypeAllowed");var nb=/({\w+})/g,KN=/[^\w\-]+/g;function ab(e){e=B(Io(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(nb)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(nb,"")}By${B(r.slice(1,-1))}`}return e.replace(KN,"_")}o(ab,"pathToVariableName");var Rf=/{(\b\w+(?:-\w+)*\b)}/g;function cb(e){let t=e.match(Rf);return t===null?e.replaceAll(Rf,":$1"):(t.forEach(r=>{let n=jf(r.replaceAll(Rf,":$1"));e=e.replaceAll(r,n)}),e)}o(cb,"replaceHyphenatedPath");var $a=o(e=>{let t=e["x-enumNames"],r=Array.isArray(t)&&t.length>0,n=!!e.schema&&he(e.schema)&&e.schema.type==="string";return r&&n},"isSortingParameterObject"),un=o((e,t)=>t.excludePathRegex?new RegExp(t.excludePathRegex).test(e):!1,"isPathExcluded");function zt(e){return Dv(e)}o(zt,"formatTag");function wr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return zt(r??t.defaultTag)}o(wr,"getOperationTag");function De(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return zt(r??t.defaultTag)}o(De,"getEndpointTag");function ub(e,t){return t.excludeTags.some(r=>r.toLowerCase()===e.toLowerCase())}o(ub,"isTagExcluded");var xa={fileName:"acl/app.ability",extension:"ts"},No="AppAbilities",Aa={fileName:"acl/useAclCheck",extension:"ts"},Ir="useAclCheck",ge={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subjectType:"Subject",subject:"subject"},qf={bindings:[ge.abilityTuple,ge.pureAbility,ge.forcedSubject,ge.subjectType,ge.subject],from:"@casl/ability"};var ko="AppRestClient",wa={query:"AppQueryOptions",infiniteQuery:"AppInfiniteQueryOptions",mutation:"AppMutationOptions"},Mf="src/data",Tr={ErrorHandler:"ErrorHandler",SharedErrorHandler:"SharedErrorHandler"},Ia={bindings:[Tr.ErrorHandler,Tr.SharedErrorHandler]},Df="AbilityContext",lb={bindings:[Df]},jo={dynamicInputs:"dynamicInputs",dynamicColumns:"dynamicColumns"};var Ta={reactQueryTypes:{fileName:"react-query.types",extension:"ts"},restClient:{fileName:"rest-client",extension:"ts"},restInterceptor:{fileName:"rest-interceptor",extension:"ts"}},Ca={fileName:"app-rest-client",extension:"ts"},Lf="QueryModule",Ra={fileName:"queryModules",extension:"ts"},pb={fileName:"queryConfig.context",extension:"tsx"},hi={optionsType:"MutationEffectsOptions",hookName:"useMutationEffects",runFunctionName:"runMutationEffects"},Na={fileName:"useMutationEffects",extension:"ts"},et={namespace:"ZodExtended",exports:{parse:"parse",sortExp:"sortExp"}},ka={fileName:"zod.extended",extension:"ts"};var Ve=o((...e)=>[...new Set(e.flat())],"getUniqueArray");var qo=o(e=>`canUse${B(me(e.operationName))}`,"getAbilityFunctionName"),ja=o((e,t)=>`${t.tsNamespaces?`${V({type:"acl",tag:De(e,t),options:t})}.`:""}${qo(e)}`,"getImportedAbilityFunctionName"),Ff=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),Hf=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),Mo=o(e=>{var t;return!!((t=gi(e))!=null&&t.length)},"hasAbilityConditions"),gi=o(e=>{var t,r;return(r=(t=e.acl)==null?void 0:t[0].conditionsTypes)==null?void 0:r.sort((n,i)=>n.name.localeCompare(i.name))},"getAbilityConditionsTypes"),fb=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].description},"getAbilityDescription"),Vf=o(e=>{var n;let t=Hf(e),r=[`"${t??""}"`];return Mo(e)&&r.push(`ForcedSubject<"${t}"> & { ${(n=gi(e))==null?void 0:n.map(i=>`${i.name}${i.required?"":"?"}: ${i.type??""}${i.zodSchemaName??""},`).join(" ")} }`),r},"getAbilitySubjectTypes");function Bf({resolver:e,data:t,tag:r}){var c;let n=(c=t.get(r))==null?void 0:c.endpoints.filter(({acl:u})=>u&&u.length>0);if(!n||n.length===0)return;let i=n.some(({acl:u})=>(u==null?void 0:u[0].conditions)&&Object.keys(u[0].conditions).length>0),s=n.reduce((u,l)=>{var p,d;let f=(d=(p=l.acl)==null?void 0:p[0].conditionsTypes)==null?void 0:d.reduce((m,g)=>[...m,...g!=null&&g.zodSchemaName?[g.zodSchemaName]:[]],[]);return[...u,...f??[]]},[]),a=Rt({resolver:e,tag:r,zodSchemasAsTypes:Ve(s)});return{endpoints:n,hasAdditionalAbilityImports:i,modelsImports:a}}o(Bf,"getAclData");var db=o(({resolver:e,data:t})=>{let r=new Map,n=[],i=!1;t.forEach((c,u)=>{let l=Bf({resolver:e,data:t,tag:u});if(!l)return;let{modelsImports:f,hasAdditionalAbilityImports:p,endpoints:d}=l;n.push(f),i=i||p,d.forEach(m=>{let g=Ff(m);g&&r.set(g,new Set([...r.get(g)??[],...Vf(m)]))})});let s=Do(e.options,...n);return{appAbilitiesType:r.size>0?Object.fromEntries(Array.from(r.entries()).map(([c,u])=>[c,Array.from(u)])):void 0,modelsImports:s,hasAdditionalAbilityImports:i}},"getAppAbilitiesType");function Te(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(L(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(fi.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s)(n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))!==!0&&Te(a,{data:r,onSchema:n})}if(i.properties)for(let[s,a]of Object.entries(i.properties))n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})!==!0&&Te(a,t);if(i.additionalProperties&&typeof i.additionalProperties=="object"){if(n({type:"additionalProperties",parentSchema:e,schema:i.additionalProperties,data:r})===!0)return;Te(i.additionalProperties,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;Te(s,t)}}o(Te,"iterateSchema");var ln=o((e,t)=>bf(B(Nf(e)),t),"getZodSchemaName"),Lo=o((e,t,r)=>bf(B(Nf(e)),`${t}${r}`),"getEnumZodSchemaName"),ne=o(e=>["z.",`${et.namespace}.`].every(t=>!e.startsWith(t)),"isNamedZodSchema"),mb=o(e=>e.startsWith(wo),"isEnumZodSchema"),pn=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),qa=o(e=>me(`${e}_${wv}`),"getBodyZodSchemaName"),hb=o((e,t)=>me(`${e}_${t}${Iv}`),"getParamZodSchemaName"),QN=o(e=>me(`${e}${Tv}`),"getMainResponseZodSchemaName"),WN=o((e,t)=>me(`${e}_${t}_${Cv}`),"getErrorResponseZodSchemaName");function Ma({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=pn(t,r,n);return!Ro(i)&&e!=="default"&&Oa(i)?WN(s,e):QN(s)}o(Ma,"getResponseZodSchemaName");function Fo(e){return["minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","default","example"].filter(n=>e[n]).reduce((n,i)=>[...n,`${B(ga(i))}: \`${e[i]}\``],[])}o(Fo,"getSchemaDescriptions");var Ho=o((e,t)=>Lv(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),Rr=o((e,t)=>ne(t)?`${e.options.tsNamespaces?`${V({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Cr=o((e,t,r)=>{if(!ne(t))return t===Ao?"void":t;let n=e.getTagByZodSchemaName(t);return`${e.options.tsNamespaces&&n!==r?`${V({type:"models",tag:n,options:e.options})}.`:""}${Ho(t,e.options)}`},"getImportedZodSchemaInferedTypeName");function gb(e){var t;return e.isEnum?"enum":((t=e.schemaObj)==null?void 0:t.type)??"object"}o(gb,"getZodSchemaType");function yb(e){if(e.schemaObj)return[e.schemaObj.description,...Fo(e.schemaObj)].filter(Boolean).join(". ")}o(yb,"getZodSchemaDescription");function Sb(e,t,r){var n;if(L(t)){let i=e.getZodSchemaNameByRef(t.$ref);return i?Cr(e,i,r):void 0}if(_a(t)){if(!L(t.items))return`${((n=t.items)==null?void 0:n.type)??"unknown"}[]`;let i=e.getZodSchemaNameByRef(t.items.$ref);return i?`${Cr(e,i,r)}[]`:void 0}if(fi.some(i=>i in t&&t[i])){let i=t.allOf??t.anyOf??t.oneOf??[];if(i.length>0)return Sb(e,i[0],r)}return t.type}o(Sb,"getType");function vb(e,t,r){if(!t.schemaObj)return[];let n="[0]",i="[key]",s={},a=o(c=>{var l;if(c.type==="reference")return!0;if(c.type==="composite")return;let u=[...((l=c.data)==null?void 0:l.pathSegments)??[]];if(c.type==="array"?u.push(n):c.type==="property"?u.push(c.propertyName):c.type==="additionalProperties"&&u.push(i),c.schema&&u[u.length-1]!==n){let f=e.resolveObject(c.schema),p=[f.description,...Fo(f)].filter(Boolean),d=u.join(".");s[d]&&"type"in c.schema&&c.schema.type==="object"||(delete s[d],s[d]={type:Sb(e,c.schema,r)??"unknown",description:p.join(". ")})}return Te(c.schema,{data:{pathSegments:[...u]},onSchema:a}),!0},"onSchema");return"allOf"in t.schemaObj&&t.schemaObj.allOf&&t.schemaObj.allOf.forEach(c=>{if(L(c)){let u=e.resolveObject(c);Te(u,{data:{pathSegments:[]},onSchema:a})}}),Te(t.schemaObj,{data:{pathSegments:[]},onSchema:a}),s}o(vb,"getZodSchemaPropertyDescriptions");function Rt({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=yi({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=yi({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>Ho(u,e.options),"getEntityName"),options:e.options});return Do(e.options,a,c)}o(Rt,"getModelsImports");function bb({tag:e,endpoints:t,options:r}){return yi({type:"endpoints",tag:e,entities:t,getTag:o(n=>De(n,r),"getTag"),getEntityName:Vo,options:r})}o(bb,"getEndpointsImports");function _b({tag:e,endpoints:t,options:r}){return yi({type:"queries",tag:e,entities:t,getTag:o(n=>De(n,r),"getTag"),getEntityName:fn,options:r})}o(_b,"getQueriesImports");function Eb({tag:e,endpoints:t,options:r}){return yi({type:"queries",tag:e,entities:t,getTag:o(n=>De(n,r),"getTag"),getEntityName:Bo,options:r})}o(Eb,"getInfiniteQueriesImports");function Da({tag:e,endpoints:t,options:r}){return yi({type:"acl",tag:e,entities:t,getTag:o(n=>De(n,r),"getTag"),getEntityName:qo,options:r})}o(Da,"getAclImports");function Kt(e){let t=e.tsPath;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${Mf}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${Mf}`,"g"),e.tsPath)),`${t}/`.replace(/\/\//g,"/")}o(Kt,"getImportPath");function yi({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))s.tsNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.tsNamespaces?V({type:e,tag:u,options:s}):i(c)],from:`${l?"./":Kt(s)}${Si({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(yi,"getImports");function Do(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.tsNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Ve(n.bindings)}))}o(Do,"mergeImports");function dn({fileName:e,extension:t}){return`${e}.${t}`}o(dn,"getFileNameWithExtension");function Pb({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${vr(t)}/`:""}${vr(t)}.${i}`:i}o(Pb,"getTagFileNameWithoutExtension");function Si(...e){return Pb(...e)}o(Si,"getTagImportPath");function Ob(...e){return`${Pb(...e)}.ts`}o(Ob,"getTagFileName");function $b(e){return e.standalone?`${Kt(e)}${Ca.fileName}`:e.restClientImportPath}o($b,"getAppRestClientImportPath");function xb(e){return e.standalone?`${Kt(e)}${Ta.reactQueryTypes.fileName}`:e.queryTypesImportPath}o(xb,"getQueryTypesImportPath");function Ab(e){return`${Kt(e)}${Ra.fileName}`}o(Ab,"getQueryModulesImportPath");function wb(e){return`${Kt(e)}${Na.fileName}`}o(wb,"getMutationEffectsImportPath");function Ib(e){return`${Kt(e)}${Aa.fileName}`}o(Ib,"getAclCheckImportPath");function Tb(e){return`${Kt(e)}${ka.fileName}`}o(Tb,"getZodExtendedImportPath");function Cb(e){return`${Kt(e)}${xa.fileName}`}o(Cb,"getAppAbilitiesImportPath");function La(e){return $e(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(La,"primitiveTypeToTsType");function vi({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&ne(e)?(n=Cr(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&Zt(t==null?void 0:t.type)&&(n=La(t==null?void 0:t.type));let s=n.split(".");return{type:s[s.length-1],...s.length>1?{namespace:s[0]}:{},...i?{importPath:Si({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}o(vi,"getTsTypeBase");function mn({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of fi){let s=e[i];if(s)if(s.length>1){let a=s.map(c=>{let u=n.resolveObject(c);return mn({schema:u,parentTypes:r,resolver:n})});return a.every(({metaType:c})=>c==="object")?{metaType:"object",objectProperties:a.reduce((c,{objectProperties:u})=>{let l=u.map(({name:f})=>f);return[...c.filter(({name:f})=>!l.includes(f)),...u]},[])}:{metaType:"composite",[i]:a}}else e=n.resolveObject(s[0])}return e.type==="array"?{metaType:"array",arrayType:Rb({arraySchema:e,resolver:n,parentTypes:r})}:(e.type==="object"||e.properties)&&t?{metaType:"object",objectProperties:[],isCircular:!0}:e.type==="object"||e.properties?{metaType:"object",objectProperties:YN({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}o(mn,"getSchemaTsMetaType");function Rb({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(L(e.items)){let u=e.items.$ref;n=r.getZodSchemaNameByRef(u),i=r.getSchemaByRef(u)}else i=e.items;let s=vi({zodSchemaName:n,schema:i,resolver:r}),a=Nb(s,t),c=mn({schema:i,isCircular:a,parentTypes:[...t,s],resolver:r});return{...s,...c}}o(Rb,"getArraySchemaTsType");function YN({schema:e,parentTypes:t,resolver:r}){return Object.entries((e==null?void 0:e.properties)??{}).map(([n,i])=>{var a;let s=((a=e==null?void 0:e.required)==null?void 0:a.includes(n))??!1;if(L(i)){let c=r.getZodSchemaNameByRef(i.$ref),u=r.getSchemaByRef(i.$ref),l=vi({zodSchemaName:c,schema:u,resolver:r}),f=Nb(l,t),p=mn({schema:u,isCircular:f,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:s,...l,...p}}else if(i.type==="array"){let c=Rb({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:s,type:"array",metaType:"array",arrayType:c}}else if(Zt(i.type))return{name:n,isRequired:s,type:La(i.type),metaType:"primitive"};return{name:n,isRequired:s,type:"void",metaType:"primitive"}})}o(YN,"getSchemaTsProperties");function Nb(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}o(Nb,"getIsCircular");var Vo=o(e=>vr(me(e.operationName)),"getEndpointName");function jb(e,t){return`${t.tsNamespaces?`${V({type:"endpoints",tag:De(e,t),options:t})}.`:""}${Vo(e)}`}o(jb,"getImportedEndpointName");var qb=o(e=>e.method!==kb.OpenAPIV3.HttpMethods.GET,"requiresBody"),Nr=o(e=>e.parameters.find(t=>t.type==="Body"),"getEndpointBody"),Mb=o((e,t)=>{let r=Gf(e),n=t.options.axiosRequestConfig;return Object.keys(r).length>0||n},"hasEndpointConfig"),Db=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function kr(e,t,r){let n=t.parameters.map(i=>{var a,c,u,l;let s="string";if(ne(i.zodSchema))s=Cr(e,i.zodSchema);else if((a=i.parameterObject)!=null&&a.schema&&he(i.parameterObject.schema)){let f=(u=(c=i.parameterObject)==null?void 0:c.schema)==null?void 0:u.type;f&&Zt(f)&&(s=La(f))}return{name:wt(i.name),type:s,paramType:i.type,required:((l=i.parameterObject)==null?void 0:l.required)??!0,parameterObject:i.parameterObject,bodyObject:i.bodyObject}});return r!=null&&r.includeFileParam&&t.mediaUpload&&n.push({name:"file",type:"File",paramType:"Body",required:!0,parameterObject:void 0,bodyObject:void 0}),n.sort((i,s)=>{if(i.required===s.required){let a=["Path","Body","Query","Header"];return a.indexOf(i.paramType)-a.indexOf(s.paramType)}return i.required?-1:1}).filter(i=>(!(r!=null&&r.excludeBodyParam)||i.name!==va)&&(!(r!=null&&r.excludePageParam)||i.name!==e.options.infiniteQueryParamNames.page)&&(!(r!=null&&r.includeOnlyRequiredParams)||i.required)).map(i=>({...i,name:r!=null&&r.replacePageParam&&i.name===e.options.infiniteQueryParamNames.page?"pageParam":i.name,required:i.required&&(i.paramType==="Path"||!(r!=null&&r.pathParamsRequiredOnly))}))}o(kr,"mapEndpointParamsToFunctionParams");function Gf(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=Yv(i.name)?i.name:`"${i.name}"`,a=wt(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==Of["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==Of.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=wt(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(Gf,"getEndpointConfig");function Lb(e,t){return t.filter(r=>Le(r)&&r.parameters.filter(n=>{var i;return(i=n.parameterObject)==null?void 0:i.required}).every(n=>e.parameters.some(i=>i.name===n.name))&&r.response===e.response)}o(Lb,"getUpdateQueryEndpoints");var Le=o(e=>Sa(e),"isQuery"),Nt=o(e=>!Sa(e)||!!e.mediaDownload,"isMutation"),bi=o((e,t)=>Ef(e,t),"isInfiniteQuery"),Fb=o((e,t,r)=>{let n=r.reduce((i,s)=>[...i,...kr(e,s,{includeOnlyRequiredParams:!0}).map(a=>a.name)],[]);return kr(e,t,{includeOnlyRequiredParams:!0,excludeBodyParam:!0}).filter(i=>n.includes(i.name)).map(i=>i.name)},"getDestructuredVariables");var fn=o((e,t)=>{let r=Le(e)&&Nt(e)&&t;return`use${B(me(e.operationName))}${r?"Mutation":""}`},"getQueryName"),Bo=o(e=>`use${B(me(e.operationName))}Infinite`,"getInfiniteQueryName"),hn=o((e,t)=>`${t.tsNamespaces?`${V({type:"queries",tag:De(e,t),options:t})}.`:""}${fn(e)}`,"getImportedQueryName"),Hb=o((e,t)=>`${t.tsNamespaces?`${V({type:"queries",tag:De(e,t),options:t})}.`:""}${Bo(e)}`,"getImportedInfiniteQueryName");function kt({schema:e,meta:t,options:r}){let n=[];$e(e.type).with("string",()=>n.push(ek(e))).with("number","integer",()=>n.push(rk(e))).with("array",()=>n.push(nk(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&r.withDescription&&([`
73
73
  `,"\r",`\r
74
- `].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(wN({schema:e,meta:t,options:r}),r.withDefaultValues!==!1?IN(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(Nt,"getZodChain");function wN({schema:e,meta:t,options:r}){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable||r.replaceOptionalWithNullish&&(t!=null&&t.isParentPartial)?"nullable()":t!=null&&t.isRequired?"":r.replaceOptionalWithNullish?"nullish()":"optional()"}o(wN,"getZodChainablePresence");function IN(e){return e.default!==void 0?`default(${Pe(e.type).with("number","integer",()=>LS(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(IN,"getZodChainableDefault");function TN(e){let t=[];return e.enum||(e.minLength!==void 0&&t.push(`min(${e.minLength})`),e.maxLength!==void 0&&t.push(`max(${e.maxLength})`)),e.pattern&&t.push(`regex(${RN(e.pattern)})`),t.join(".")}o(TN,"getZodChainableStringValidations");function RN(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=FS(e),`/${e}/`}o(RN,"formatPatternIfNeeded");function CN(e){let t=[];return e.enum?"":(e.minimum!==void 0?e.exclusiveMinimum===!0?t.push(`gt(${e.minimum})`):t.push(`gte(${e.minimum})`):typeof e.exclusiveMinimum=="number"&&t.push(`gt(${e.exclusiveMinimum})`),e.maximum!==void 0?e.exclusiveMaximum===!0?t.push(`lt(${e.maximum})`):t.push(`lte(${e.maximum})`):typeof e.exclusiveMaximum=="number"&&t.push(`lt(${e.exclusiveMaximum})`),e.multipleOf&&t.push(`multipleOf(${e.multipleOf})`),t.join("."))}o(CN,"getZodChainableNumberValidations");function NN(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(NN,"getZodChainableArrayValidations");var ln=o(e=>e.reduce((t,r)=>t+r,0),"sum");function ae(e,t){if(!t)return e;if(D(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?He("oneOf")+ae(e,{...t,type:t.type[0]}):e+He("oneOf")+ln(t.type.map(r=>ae(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?He("oneOf")+ae(e,t.oneOf[0]):e+He("oneOf")+ln(t.oneOf.map(r=>ae(0,r)));if(t.anyOf)return t.anyOf.length===1?He("anyOf")+ae(e,t.anyOf[0]):e+He("anyOf")+ln(t.anyOf.map(r=>ae(0,r)));if(t.allOf)return t.allOf.length===1?He("allOf")+ae(e,t.allOf[0]):e+He("allOf")+ln(t.allOf.map(r=>ae(0,r)));if(!t.type)return e;if(Ut(t.type))return t.enum?e+Rb(t)+He("enum")+ln(t.enum.map(r=>ae(0,r))):e+Rb(t);if(t.type==="array")return t.items?He("array")+ae(e,t.items):He("array")+ae(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.properties){let r=Object.values(t.properties);e+=He("object")+ln(r.map(n=>ae(0,n)))}else e+=He("empty-object");t.additionalProperties&&(typeof t.additionalProperties=="object"?e+=ae(0,t.additionalProperties):e+=ae(1))}return e}o(ae,"getOpenAPISchemaComplexity");function Rb(e){return Pe(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(Rb,"complexityByType");function He(e){return Pe(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(He,"complexityByComposite");var Cf=class Cf{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;D(t)&&(this.ref=t.$ref),i&&(this.enumRef=i),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;enumRef;children=[];meta;getCodeString(t,r){var s,a;if(!this.ref&&this.code)return this.code;if(!this.ref)throw new Error("Zod schema is missing both ref and code");let n=(s=this.resolver)==null?void 0:s.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.tsNamespaces&&i&&i!==t?`${Z({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return ae(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(Cf,"ZodSchema");var ko=Cf;function Rf(e){var t,r;if(e)return(t=e.parent)!=null&&t.ref?e.parent.ref:Rf((r=e.parent)==null?void 0:r.meta)}o(Rf,"getParentRef");function Cb(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getExtractedEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(Aa(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(Cb,"getZodSchemaRefs");function Aa(e,{skipObjectSchema:t=!1}={}){return e.children.reduce((n,i)=>{let s=i.ref??i.enumRef;return s&&n.add(s),i.children.length>0&&(!t||!le(i.schema)||i.schema.type!=="object")&&Aa(i).forEach(a=>n.add(a)),n},new Set)}o(Aa,"getSchemaRefs");function W({schema:e,resolver:t,meta:r,tag:n}){var g;let i=new ko(e,t,r),s={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:s,tag:n};if(D(e))return kN({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=qN({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let u=jN({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let l=MN({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let f=DN({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let p=LN({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let d=t.options.allReadonly?".readonly()":"";if(da(e))return e.items?i.assign(`z.array(${W({...a,schema:e.items}).getCodeString(n,t.options)}${Nt({schema:e.items,meta:{...s,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(z.any())${d}`);let m=e.type?e.type.toLowerCase():void 0;if(m==="object"||e.properties||e.additionalProperties){let y=e.required&&e.required.length>0,v=t.options.withImplicitRequiredProps?!1:e.properties&&!((g=e.required)!=null&&g.length),S="{}";e.properties&&(S=`{ ${Object.entries(e.properties).map(([I,T])=>{var Mt;let ge={...s,isRequired:v?!0:y?(Mt=e.required)==null?void 0:Mt.includes(I):t.options.withImplicitRequiredProps,name:I,isParentPartial:v},re=T;if(D(T)&&t&&(re=t.getSchemaByRef(T.$ref),!re))throw new Error(`Schema ${T.$ref} not found`);let L=W({...a,schema:T,meta:ge}),X=L.getCodeString(n,t.options)+Nt({schema:re,meta:ge,options:t.options}),oe=!1,qt=Rf(r);return qt&&(oe=[...D(T)?[T.$ref]:[],...Aa(L,{skipObjectSchema:!0})].some(Ue=>{var Rd;return(Rd=t.dependencyGraph.deepDependencyGraph[Ue])==null?void 0:Rd.has(qt)})),[I,X,oe]}).map(([I,T,ge])=>ge?`get ${Sf(I)}() { return ${T} }`:`${Sf(I)}: ${T}`).join(", ")} }`);let b="";e.additionalProperties&&(b=`.catchall(${typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0?W({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+Nt({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options}):"z.any()"})`);let E=`z.object(${S})${v?".partial()":""}${b}${d}`;return i.assign(E)}if(m==="any")return i.assign("z.any()");if(!m)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${m}`)}o(W,"getZodSchema");function kN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!D(e))return;let s=t.meta.referencedBy.slice(0,-1).map(u=>u.ref?r.getZodSchemaNameByRef(u.ref)??u.ref:void 0).filter(Boolean),a=r.getZodSchemaNameByRef(e.$ref);if(s.length>1&&s.includes(a))return t.assign(r.getCodeByZodSchemaName(t.ref));let c=r.getCodeByZodSchemaName(e.$ref);if(!c){let u=r.getSchemaByRef(e.$ref);if(!u)throw new Error(`Schema ${e.$ref} not found`);c=W({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o(kN,"getReferenceZodSchema");function jN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!le(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=W({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(c.getCodeString(i,r.options))}let s=(a=e.oneOf)==null?void 0:a.some(c=>le(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!s){let c=e.discriminator.propertyName;return t.assign(`
75
- z.discriminatedUnion("${c}", [${e.oneOf.map(u=>W({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
76
- `)}return t.assign(`z.union([${e.oneOf.map(c=>W({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(jN,"getOneOfZodSchema");function qN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!le(e)||!Array.isArray(e.type)))return e.type.length===1?W({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>W({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(qN,"getArrayZodSchema");function MN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!le(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=W({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>W({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(MN,"getAnyOfZodSchema");function DN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!le(e)||!e.allOf)return;if(e.allOf.length===1){let p=W({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(p.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:s,noRequiredOnlyAllof:a,composedRequiredSchema:c}=xS(e),u=a.map(p=>{let d=W({schema:p,resolver:r,meta:n,tag:i});return r&&s(p,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(W({schema:c,resolver:r,meta:n,tag:i}));let l=u.at(0),f=u.slice(1).map(p=>`merge(${p.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${f}`)}o(DN,"getAllOfZodSchema");function LN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!le(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&Ut(s)){if(e.enum){if(s==="string")return FN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i});if(e.enum.some(a=>typeof a=="string"))return t.assign("z.never()");if(e.enum.length===1){let a=e.enum[0];return t.assign(`z.literal(${a===null?"null":a})`)}return t.assign(`z.union([${e.enum.map(a=>`z.literal(${a===null?"null":a})`).join(", ")}])`)}return t.assign(Pe(s).with("integer",()=>Pe(e.type).with("integer",()=>yS).otherwise(()=>vS)).with("string",()=>Pe(e.format).with("binary",()=>ca).with("email",()=>SS).with("hostname","uri",()=>bS).with("uuid",()=>_S).with("date-time",()=>PS).otherwise(()=>ua)).otherwise(a=>`z.${a}()`))}}o(LN,"getPrimitiveZodSchema");function FN({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){var l;if(!le(t))return;let s=di(t);if(!e.options.extractEnums)return r.assign(s);let a=e.getEnumZodSchemaDataByCode(s);if(a)return((l=r.meta.parent)==null?void 0:l.ref)===e.getRefByZodSchemaName(a.zodSchemaName)?r.assign(a.code):new ko({$ref:e.getRefByZodSchemaName(a.zodSchemaName)},e,n).inherit(r).assign(s);let c=e.getExtractedEnumZodSchemaDataByCode(s);if(!c)return r.assign(s);if(!c.zodSchemaName||!c.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let u=e.options.tsNamespaces&&c.tag!==i?`${Z({type:"models",tag:c.tag,options:e.options})}.`:"";return r.assign(`${u}${c.zodSchemaName}`)}o(FN,"getEnumZodSchema");function di(e){var t;return`${So}([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(di,"getEnumZodSchemaCode");function Nb(e){return`${So}([${e.map(t=>`"${t}"`).join(", ")}])`}o(Nb,"getEnumZodSchemaCodeFromEnumNames");function mi({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let s=t.getCodeString();if((!de(s)||t.ref===void 0)&&r){if(t.complexity<mf)return s;let u=on(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(u);){if((c=n.getZodSchemaNamesByCompositeCode(s))!=null&&c.includes(u))return u;if(n.getCodeByZodSchemaName(u)===u)return u;throw new Error(`Can't uniquely resolve zod schema name: ${u}`)}return n.setZodSchema(u,s,i),n.addZodSchemaForCompositeCode(s,t,u,e),u}let a=n.getCodeByZodSchemaName(s);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return ae(0,n.getSchemaByRef(t.ref))<mf?n.getCodeByZodSchemaName(s):s;if(t.ref)return n.getZodSchemaNameByRef(t.ref);throw new Error(`Invalid ref: ${t.ref}`)}o(mi,"resolveZodSchemaName");function kb({resolver:e,endpoint:t,operation:r}){let n=r["x-acl"];return n==null?void 0:n.map(i=>{let s=Object.keys(i.conditions??{}).reduce((a,c)=>{let u=HN({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(wb(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o(kb,"getEndpointAcl");function HN({resolver:e,endpoint:t,acl:r,name:n}){var p,d,m,g,y,v,S,b,P,E;let i=(d=(p=r[0])==null?void 0:p.conditions)==null?void 0:d[n];if(!i)return;let s=i.replace(/^\$[^.]*\./,"").split("."),a,c,u,l=0,f=t.parameters.find(({name:_})=>_===s[l]);if(f)c=(m=f.parameterObject)==null?void 0:m.required,a=(g=f.parameterObject)==null?void 0:g.schema,u=`${f.name} ${Er(f.type)} parameter`,l++;else{let _=t.parameters.find(({bodyObject:ge})=>!!ge),T=Object.keys(((y=_==null?void 0:_.bodyObject)==null?void 0:y.content)??{}).find(Xe);T&&(a=(b=(S=(v=_==null?void 0:_.bodyObject)==null?void 0:v.content)==null?void 0:S[T])==null?void 0:b.schema,u=`${Ie(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let _=e.resolveObject(a);a=(P=Object.entries(_.properties??{}).find(([T])=>T===s[l]))==null?void 0:P[1],c=((E=_.required)==null?void 0:E.includes(s[l]))??!1,l++}if(a)return{name:n,type:D(a)?void 0:a.type,zodSchemaName:D(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(HN,"getEndpointAclConditionPropertyType");function jb({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var m,g;let s=e.resolveObject(t.requestBody);if(!s)return;let c=Object.keys(s.content??{}).find(Xe);if(!c)return;let u=(g=(m=s.content)==null?void 0:m[c])==null?void 0:g.schema;if(!u)return;let l=W({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),f=e.resolveObject(u),p=mi({schema:f,zodSchema:l,fallbackName:Sa(sn(r,n,i)),resolver:e,tag:i}),d=Nt({schema:f,meta:l.meta,options:e.options});return{endpointParameter:{name:pa,type:"Body",description:s.description,zodSchema:p+d,bodyObject:s},requestFormat:c}}o(jb,"getEndpointBody");function qb({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!IS.includes(s.in))return;let a={};if(s.content){let m=Object.keys(s.content??{}),g=m.find(Xe);if(!g)throw new Error(`Unsupported media type for param ${s.name}: ${m.join(", ")}`);let y=s.content[g];if(!y)throw new Error(`No content with media type for param ${s.name}: ${g}`);a=(y==null?void 0:y.schema)??y}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let c=QS(sn(r,n,i),s.name),u;if(BS(s)){let m=wo(c,e.options.enumSuffix,e.options.schemaSuffix),g=Nb(s["x-enumNames"]);e.setZodSchema(m,g,i),u=m}let l=W({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),f=e.resolveObject(a),p=Nt({schema:f,meta:l.meta,options:e.options}),d=mi({schema:f,zodSchema:l.assign(l.getCodeString(i)+p),fallbackName:c,resolver:e,tag:i});return{name:Pe(s.in).with("path",()=>bf(s.name)).otherwise(()=>s.name),type:Pe(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:d,parameterObject:s,parameterSortingEnumSchemaName:u}}o(qb,"getEndpointParameter");function Db(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){if(nn(c,e.options))continue;let u=e.openApiDoc.paths[c],l=un(u,tn),f=Mb(u.parameters??[]);for(let p in l){let d=l[p];if(!d||fi(d,e.options))continue;let m=d.operationId&&d.operationId!==At(d.operationId);d.operationId&&m&&e.validationErrors.push(Ob(d.operationId));let g=Object.entries({...f,...Mb(d.parameters??[])}).map(([,_])=>_),y=Co({path:c,method:p,operation:d,operationsByTag:e.operationsByTag,options:e.options}),v=e.operationNames.filter(_=>_===y).length<=1,S=$r(d,e.options),b={method:p,path:VS(c),operationName:y,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(Rt),requestFormat:"application/json",parameters:[],response:"",errors:[],responseStatusCodes:[],mediaUpload:!!d["x-media-upload"],mediaDownload:!!d["x-media-download"]};if(d.requestBody){let _=jb({resolver:e,operation:d,operationName:y,isUniqueOperationName:v,tag:S});_&&(b.parameters.push(_.endpointParameter),b.requestFormat=_.requestFormat)}for(let _ of g){let I=qb({resolver:e,param:_,operationName:y,isUniqueOperationName:v,tag:S});I&&b.parameters.push(I)}let P=VN(b);P.forEach(_=>{b.parameters.push(_)}),P.length>0&&e.validationErrors.push(xb(P,c));for(let _ in d.responses){b.responseStatusCodes.push(_);let I=e.resolveObject(d.responses[_]),ge=Object.keys(I.content??{}).find(ai),re,L;if(ge?(b.responseFormat=ge,re=(i=(n=I.content)==null?void 0:n[ge])==null?void 0:i.schema):(L=vo,_==="200"&&e.validationErrors.push(Ib({received:"200",expected:"204"},d,b))),re){let X=W({schema:re,resolver:e,meta:{isRequired:!0},tag:S}),oe=e.resolveObject(re);L=mi({schema:oe,zodSchema:X,fallbackName:X.ref?void 0:ba({statusCode:_,operationName:y,isUniqueOperationName:v,tag:S}),resolver:e,tag:S})+Nt({schema:oe,meta:X.meta,options:e.options})}if(L){let X=Number(_);$o(X)&&!b.response?(b.response=L,b.responseObject=I,b.responseDescription=I.description):_!=="default"&&ga(X)&&b.errors.push({zodSchema:L,status:X,description:I.description})}}b.response||(b.response=vo);let E=Object.keys(d.responses).map(Number).filter($o);E.length>1&&e.validationErrors.push(Tb(E.map(String),d,b)),b.acl=kb({resolver:e,endpoint:b,operation:d}),(s=d.security)!=null&&s[0].Authorization&&!b.responseStatusCodes.includes("401")&&e.validationErrors.push(Tf("401",d,b)),(a=b.acl)!=null&&a[0]&&!b.responseStatusCodes.includes("403")&&e.validationErrors.push(Tf("403",d,b)),t.push(b)}}return t}o(Db,"getEndpointsFromOpenAPIDoc");function Mb(e){return Object.fromEntries((e??[]).map(t=>[D(t)?t.$ref:t.name,t]))}o(Mb,"getParameters");function VN(e){return[...e.path.matchAll(/:([a-zA-Z0-9_]+)/g)].map(r=>r[1]).filter(r=>e.parameters.findIndex(({name:n})=>n===r)===-1).map(r=>BN(r))}o(VN,"getMissingPathParameters");function BN(e){return{name:e,type:"Path",zodSchema:ua,parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(BN,"getPathParameterFromName");function Lb(e,t){let r=UN(e,t),n=GN(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(Lb,"getOpenAPISchemaDependencyGraph");function UN(e,t){let r={},n={};return e.forEach(i=>ZN({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(UN,"getRefsDependencyGraph");function GN(e,t){let r={},n={},i=o((s,a)=>{n[a].add(s),t[s]&&a!==s&&t[s].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(s=>{let a=t[s];a&&(n[s]||(n[s]=new Set),a.forEach(c=>i(c,s)))}),n}o(GN,"getDeepRefsDependencyGraph");function ZN({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let s=o(a=>{if(a.type!=="reference"||!a.data)return;let{schema:c,data:u}=a;if(i[u.fromRef]||(i[u.fromRef]=new Set),i[u.fromRef].add(c.$ref),n[c.$ref])return!0;n[u.fromRef]=!0,we(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return we(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(ZN,"getSchemaRefsDependencyGraph");function wa(e,t,r){let n=[];return we(t,{onSchema:o(s=>{s.type==="reference"?n.push(s.schema):D(s.parentSchema)&&(s.type==="property"?e.validationErrors.push(No(`${r} has both reference and properties`)):s.type==="additionalProperties"?e.validationErrors.push(No(`${r} has both reference and additionalProperties`)):s.type==="array"?e.validationErrors.push(No(`${r} is both reference and array schema`)):s.type==="composite"&&e.validationErrors.push(No(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(wa,"getSchemaRefObjs");function Fb(e,t){return t.map(i=>rn(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(Fb,"getDeepSchemaRefObjs");function Hb(e){e.extractedEnumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=gf(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=wo(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!Nf(e);)zN(e,t+2),t++;if(Nf(e)||e.extractedEnumZodSchemaData.filter(n=>!Vb(e,n)).forEach(n=>{n.zodSchemaName=wo(n.meta.zodSchemaNameSegments[0].map(i=>kf(G(i))).join(""),e.options.enumSuffix,e.options.schemaSuffix)}),!Nf(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(Hb,"resolveExtractedEnumZodSchemaNames");function Nf(e){return e.extractedEnumZodSchemaData.every(t=>Vb(e,t))}o(Nf,"allExtractedEnumZodSchemaNamesAreUnique");function zN(e,t){e.extractedEnumZodSchemaData.forEach(r=>{let n=e.extractedEnumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&KN(n,t)})}o(zN,"additionalResolveExtractedEnumZodSchemaName");function KN(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1){let i=[kf(G(n[0])),r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=i}else{let i=gf(n),s=[i?kf(G(i)):"",r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=s}})}o(KN,"suffixWithPreviousSegmentName");function Vb(e,t){return e.extractedEnumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length===1}o(Vb,"isUnique");function kf(e){return e.replace(/(Dto|DTO|Response|Request)/g,"")}o(kf,"sanitizeName");function Bb(e){e.extractedEnumZodSchemaData.forEach(t=>{let r=Fe(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(Bb,"resolveExtractedEnumZodSchemaTags");function jo({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&Ub({schema:e,nameSegments:t,...n}),we(e,{data:{nameSegments:t},onSchema:o(s=>{var c;if(s.type==="reference")return!0;let a=[...((c=s.data)==null?void 0:c.nameSegments)??[]];s.type==="property"&&a.push(s.propertyName),Ub({schema:s.schema,nameSegments:[...a],...n})},"onSchema")})}o(jo,"updateExtractedEnumZodSchemaData");function Ub({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||D(t)||!t.enum)return;let a=di(t),c=e.extractedEnumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(s),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[]),c.meta.schemas.push(...t?[t]:[])):e.extractedEnumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[],schemas:t?[t]:[]}}),e.validationErrors.push(Ab(r?`${si(r)}.${s[s.length-1]}`:n??s.join(".")))}o(Ub,"handleExtractedEnumZodSchemaDataUpdate");function Gb(e){var n;let t={},r={};return Object.entries(((n=e.openApiDoc.components)==null?void 0:n.schemas)??{}).forEach(([i,s])=>{let a=e.getSchemaDataByName(i);if(e.options.excludeRedundantZodSchemas&&(!a||a.deepRefOperations.length===0&&a.tags.length===0))return;let c=on(i,e.options.schemaSuffix);if(t[c])return;let u=e.getTagByZodSchemaName(c),l=e.resolveObject(s);l.enum?r[c]=di(l):t[c]=W({schema:s,resolver:e,tag:u}).getCodeString(u)}),{zodSchemas:t,enumZodSchemas:r}}o(Gb,"getZodSchemasFromOpenAPIDoc");function Zb(e){var r;let t=[];return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=on(n,e.options.schemaSuffix),a=e.resolveObject(i);!t.find(c=>c.zodSchemaName===s)&&a.enum&&t.push({zodSchemaName:s,code:di(a)})}),t}o(Zb,"getEnumZodSchemasFromOpenAPIDoc");var jf=class jf{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=Lb(this.schemaRefs,this.getSchemaByRef.bind(this)),this.enumZodSchemas=Zb(this),this.operationsByTag=Eb(t,r),this.operationNames=Pb(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];dependencyGraph;enumZodSchemas=[];extractedEnumZodSchemaData=[];operationsByTag={};operationNames=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(DS)}getSchemaByRef(t){return this.docSchemas[si(t)]}getSchemaDataByName(t){return this.schemaData.find(r=>r.name===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(rn(t)))==null?void 0:n.zodSchemaName)??((i=this.extractedEnumZodSchemaData.find(s=>s.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var u,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.extractedEnumZodSchemaData.find(f=>f.zodSchemaName===t);if(r)return Rt(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((u=this.getSchemaDataByRef(n))==null?void 0:u.tags)??[]:[],s=((l=this.zodSchemaData.find(f=>f.zodSchemaName===t))==null?void 0:l.tags)??[],a=Fe(i,s),c=a.length===1?a[0]:this.options.defaultTag;return Rt(c??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(s=>s.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let s={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(s):this.compositeZodSchemaData.push({code:t,zodSchemas:[s]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemas.find(r=>r.code===t)}getExtractedEnumZodSchemaDataByCode(t){return this.extractedEnumZodSchemaData.find(r=>r.code===t)}getExtractedEnumZodSchemaNamesReferencedBySchemaRef(t){return this.extractedEnumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getExtractedEnumZodSchemas(){return this.extractedEnumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return D(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}getCircularSchemaChain(t,r=t,n=[],i=[]){var s,a;return i.includes(r)?[]:(i.push(r),(s=this.dependencyGraph.refsDependencyGraph[r])!=null&&s.has(t)?[...n,r,t]:Array.from(((a=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:a.values())??[]).map(c=>{let u=this.getCircularSchemaChain(t,c,n,i);return u.length>0?[r,...u]:u}).flat())}getBaseUrl(){var r,n;let t=(n=(r=this.openApiDoc.servers)==null?void 0:r[0])==null?void 0:n.url;return this.options.baseUrl===""&&t?t:this.options.baseUrl}getZodSchemaObj(t){let r=this.getRefByZodSchemaName(t);if(r)return this.getSchemaByRef(r);let n=this.getSchemaByCompositeZodSchemaName(t);if(n)return n;let i=this.getExtractedEnumZodSchemaDataByName(t);if(i)return i.meta.schemas.reduce((s,a)=>({...s,...this.resolveObject(a)}),{})}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getExtractedEnumZodSchemaDataByName(t){return this.extractedEnumZodSchemaData.find(({zodSchemaName:r})=>r===t)}initialize(){var t,r,n,i,s;this.schemaRefs.forEach(a=>{let c=rn(a),u=si(c),l=on(u,this.options.schemaSuffix);this.schemaData.push({ref:c,name:u,zodSchemaName:l,tags:[],deepRefOperations:[]})});for(let a in this.openApiDoc.paths){if(nn(a,this.options))continue;let c=this.openApiDoc.paths[a],u=un(c,tn);for(let l in u){let f=u[l];if(!f||fi(f,this.options))continue;let p=$r(f,this.options),d=Co({path:a,method:l,operation:f,operationsByTag:this.operationsByTag,options:this.options}),m=this.operationNames.filter(S=>S===d).length<=1,g=pe(sn(d,m,p)),y=[];if((t=f.parameters)==null||t.map(S=>{let b=S,P=b.schema,E=`Operation ${f.operationId??a} parameter ${b.name}`;y.push(...wa(this,P,E)),this.options.extractEnums&&jo({resolver:this,schema:P,schemaInfo:E,tags:[p],nameSegments:[g,b.name],includeSelf:!0})}),f.requestBody){let S=this.resolveObject(f.requestBody),P=Object.keys(S.content??{}).find(Xe);if(P){let E=(n=(r=S.content)==null?void 0:r[P])==null?void 0:n.schema,_=`Operation ${f.operationId} request body`;y.push(...wa(this,E,_)),this.options.extractEnums&&jo({resolver:this,schema:E,schemaInfo:_,tags:[p],nameSegments:[Sa(g)]})}}for(let S in f.responses){let b=this.resolveObject(f.responses[S]),E=Object.keys(b.content??{}).find(ai);if(E){let _=(s=(i=b.content)==null?void 0:i[E])==null?void 0:s.schema,I=`Operation ${f.operationId} response body`;y.push(...wa(this,_,I)),this.options.extractEnums&&jo({resolver:this,schema:_,schemaInfo:I,tags:[p],nameSegments:[ba({statusCode:S,operationName:d,isUniqueOperationName:m,tag:p})]})}}Fb(this,y).forEach(S=>{let b=this.getSchemaDataByRef(S);b&&(b.tags.push(p),b.deepRefOperations.push(f))})}}this.options.extractEnums&&(this.schemaRefs.forEach(a=>{var u;let c=rn(a);jo({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((u=this.getSchemaDataByRef(c))==null?void 0:u.tags)??[],nameSegments:[si(c)]})}),Bb(this),this.handleDuplicateEnumZodSchemas(),Hb(this))}handleDuplicateEnumZodSchemas(){let t=this.enumZodSchemas.map(({code:n})=>n),r=this.enumZodSchemas.filter(({code:n})=>t.includes(n));this.schemaData.forEach(n=>{var a,c;let i=(a=r.find(({zodSchemaName:u})=>u===n.zodSchemaName))==null?void 0:a.code;if(!i)return;let s=this.extractedEnumZodSchemaData.find(({code:u})=>u===i);!s||((c=this.getEnumZodSchemaDataByCode(s.code))==null?void 0:c.zodSchemaName)!==n.zodSchemaName||(n.tags.push(...s.meta.tags??[]),s.meta.schemaRefs.forEach(u=>{this.dependencyGraph.refsDependencyGraph[u]||(this.dependencyGraph.refsDependencyGraph[u]=new Set),this.dependencyGraph.refsDependencyGraph[u].add(n.ref),this.dependencyGraph.deepDependencyGraph[u]||(this.dependencyGraph.deepDependencyGraph[u]=new Set),this.dependencyGraph.deepDependencyGraph[u].add(n.ref)}))}),this.extractedEnumZodSchemaData.splice(0,this.extractedEnumZodSchemaData.length,...this.extractedEnumZodSchemaData.filter(({code:n})=>!t.includes(n)))}};o(jf,"SchemaResolver");var Ia=jf;function zb(e){let t=[],r={};function n(i,s){Array.isArray(s)||(s=[]),s.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{s.includes(a)||r[a]||n(a,s.slice(0))}),t.includes(i)||t.push(i)}return o(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}o(zb,"topologicalSort");function Kb(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[s])=>t.indexOf(i)-t.indexOf(s)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}o(Kb,"sortObjKeysFromArray");function Qb(e,t){let r=zb(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return Kb(t,r)}o(Qb,"sortZodSchemasByTopology");function Ta(e,t){let r=new Ia(e,t),n=Db(r),i=Gb(r),s={...i.zodSchemas,...r.getZodSchemas(),...i.enumZodSchemas};return s=Qb(r,s),s={...r.getExtractedEnumZodSchemas(),...s},{resolver:r,data:QN({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(Ta,"getDataFromOpenAPIDoc");function QN({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=Ar(s,n);Wb(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(Wb(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(QN,"splitDataByTags");function Wb(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(Wb,"getTagElement");async function Yb(e,t){let{resolver:r,data:n}=await Ta(e,t),i=[],s=[];return n.forEach(({endpoints:c,zodSchemas:u},l)=>{Object.keys(u).forEach(f=>{let p=r.getRefByZodSchemaName(f),d=p?r.getSchemaByRef(p):r.getSchemaByCompositeZodSchemaName(f),m=li({zodSchemaName:f,schema:d,resolver:r}),g;d&&(g=cn({schema:d,parentTypes:[m],resolver:r})),i.push({...m,metaType:"primitive",...g})}),c.forEach(f=>{let p="queries",d=Rt(l);s.push({name:$a(f),importPath:ui({type:p,tag:d,includeTagDir:!0,options:t}),namespace:t.tsNamespaces?Z({type:p,tag:d,options:t}):void 0,isQuery:Ie(f),isMutation:Ct(f),params:WN({resolver:r,endpoint:f}),response:YN({resolver:r,endpoint:f})})})}),{openApiDoc:e,models:i,queries:s}}o(Yb,"getMetadataFromOpenAPIDoc");function WN({resolver:e,endpoint:t}){return t.parameters.map(r=>{var a,c,u,l;let n;if((a=r.parameterObject)!=null&&a.schema)n=e.resolveObject(r.parameterObject.schema);else if(r.bodyObject){let p=Object.keys(r.bodyObject.content??{}).find(Xe);p&&(n=e.resolveObject((u=(c=r.bodyObject.content)==null?void 0:c[p])==null?void 0:u.schema))}let i=li({zodSchemaName:r.zodSchema,schema:n,resolver:e}),s;return n&&(s=cn({schema:n,parentTypes:[i],resolver:e})),{name:At(r.name),isRequired:((l=r.parameterObject)==null?void 0:l.required)??!0,...i,...s,paramType:r.type}}).sort((r,n)=>{if(r.isRequired===n.isRequired){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.isRequired?-1:1}).map(({paramType:r,...n})=>n)}o(WN,"getQueryMetadataParams");function YN({resolver:e,endpoint:t}){var a,c,u,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(ai);n&&(r=e.resolveObject((l=(u=(c=t.responseObject)==null?void 0:c.content)==null?void 0:u[n])==null?void 0:l.schema));let i=li({zodSchemaName:t.response,schema:r,resolver:e}),s;return r&&(s=cn({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...s}}o(YN,"getQueryMetadataResponse");var Id=Ge(Wt());var Ad=Ge(require("fs")),VP=Ge(require("path"));function BP(e){return Ad.default.readFileSync(VP.default.join(__dirname,`../${e}`),"utf-8")}o(BP,"readFileSync");function wd(e){let t=`src/generators/templates/${e}.hbs`;return BP(t)}o(wd,"readHbsTemplateSync");function UP(e){let t=`src/assets/${e}`;return BP(t)}o(UP,"readAssetSync");function Yt({output:e,fileName:t}){return`${e}/${t}`}o(Yt,"getOutputFileName");var Jt=Ge(Wt());function GP(e){Bq(),Uq(e.options),Gq(),Zq(),zq(),Kq(),Qq(),Wq()}o(GP,"registerAclHbsHelpers");function Bq(){Jt.default.registerHelper("abilityFunctionName",xo)}o(Bq,"registerAbilityFunctionNameHelper");function Uq(e){Jt.default.registerHelper("importedAbilityFunctionName",t=>GS(t,e))}o(Uq,"registerImportedAbilityFunctionNameHelper");function Gq(){Jt.default.registerHelper("ablityAction",Pf)}o(Gq,"registerAbilityActionHelper");function Zq(){Jt.default.registerHelper("ablitySubject",Ef)}o(Zq,"registerAbilitySubjectHelper");function zq(){Jt.default.registerHelper("hasAbilityConditions",Ao)}o(zq,"registerHasAbilityConditionsHelper");function Kq(){Jt.default.registerHelper("abilityConditionsTypes",ci)}o(Kq,"registerAbilityConditionsTypesHelper");function Qq(){Jt.default.registerHelper("abilityDescription",ZS)}o(Qq,"registerAbilityDescriptionHelper");function Wq(){Jt.default.registerHelper("abilitySubjectTypes",$f)}o(Wq,"registerAbilitySubjectTypesHelper");var yn=Ge(Wt());function ZP(){Yq(),Jq(),Xq(),e3(),t3(),r3()}o(ZP,"registerCommonHbsHelpers");function Yq(){yn.default.registerHelper("isEqual",(e,t)=>e===t)}o(Yq,"registerIsEqualHelper");function Jq(){yn.default.registerHelper("commaSeparated",e=>e.join(", "))}o(Jq,"registerCommaSeparatedListHelper");function Xq(){yn.default.registerHelper("union",e=>e.join(" | "))}o(Xq,"registerUnionHelper");function e3(){yn.default.registerHelper("addAsteriskAfterNewLine",e=>e.replace(/\n/g,`
77
- *`))}o(e3,"registerAddAsteriskAfterNewLineHelper");function t3(){yn.default.registerHelper("jsonStringify",e=>JSON.stringify(e,null,2))}o(t3,"registerJsonStringifyHelper");function r3(){yn.default.registerHelper("capitalize",G)}o(r3,"registerCapitalizeHelper");var Cr=Ge(Wt());function zP(e){n3(),i3(e.options),a3(e),o3(),s3(),c3(e),u3()}o(zP,"registerEndpointsHbsHelpers");function n3(){Cr.default.registerHelper("endpointName",Ro)}o(n3,"registerEndpointNameHelper");function i3(e){Cr.default.registerHelper("importedEndpointName",t=>hb(t,e))}o(i3,"registerImportedEndpointNameHelper");function o3(){Cr.default.registerHelper("endpointPath",vb)}o(o3,"registerEndpointPathHelper");function s3(){Cr.default.registerHelper("endpointBody",Ea)}o(s3,"registerEndpointBodyHelper");function a3(e){Cr.default.registerHelper("endpointParams",(t,r)=>Ir(e,t,r.hash))}o(a3,"registerEndpointParamsHelper");function c3(e){Cr.default.registerHelper("endpointArgs",(t,r)=>Ir(e,t,r.hash).map(n=>n.name).join(", "))}o(c3,"registerEndpointArgsHelper");function u3(){Cr.default.registerHelper("endpointParamDescription",e=>{var s,a,c,u,l;let t=[`${e.paramType} parameter`],r=((s=e.parameterObject)==null?void 0:s.description)||((a=e.bodyObject)==null?void 0:a.description);r&&t.push(r);let n,i;if((c=e.parameterObject)!=null&&c.schema&&le(e.parameterObject.schema)&&(n=(u=e.parameterObject)==null?void 0:u.schema),(l=e.bodyObject)!=null&&l.content){let p=Object.keys(e.bodyObject.content??{}).find(Xe);p&&(i=e.bodyObject.content[p],i.schema&&le(i.schema)&&(n=i.schema))}if(n){let f=Io(n);t.push(...f)}return i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(u3,"registerEndpointParamDescriptionHelper");var KP=Ge(Wt());function QP(){l3()}o(QP,"registerImportsHbsHelpers");function l3(){KP.default.registerHelper("importNames",(e,t)=>[...t?[t]:[],...e?[`{ ${e.join(", ")} }`]:[]].join(", "))}o(l3,"registerBindingsHelper");var $e=Ge(Wt());function WP(e){p3(),f3(),d3(),m3(e),h3(e),g3(),y3(e),v3(e),S3(e),b3(e),_3(e),P3(),E3(),$3(),O3()}o(WP,"registerPartialsHbsHelpers");function p3(){$e.default.registerHelper("genModelJsDocs",(e,t,r)=>Re("model-js-docs")({name:e,zodSchema:t,tag:r}))}o(p3,"registerGenerateModelJsDocsHelper");function f3(){$e.default.registerHelper("genImport",e=>Re("import")({import:e}))}o(f3,"registerImportHelper");function d3(){$e.default.registerHelper("genEndpointParams",(e,t)=>Re("endpoint-params")({endpoint:e,options:t}))}o(d3,"registerGenerateEndpointParamsHelper");function m3(e){$e.default.registerHelper("hasUndefinedEndpointBody",t=>gb(t)&&!Ea(t)&&yb(t,e))}o(m3,"registerHasUndefinedEndpointBodyHelper");function h3(e){$e.default.registerHelper("genEndpointConfig",t=>{let r=Af(t),n=e.options.axiosRequestConfig;return Object.keys(r).length===0?n?yr:"":Re("endpoint-config")({endpointConfig:r,hasAxiosRequestConfig:n,hasBlobResponse:t.response===ca,hasFileDownload:t.mediaDownload,axiosRequestConfigName:yr,generateParse:e.options.parseRequestParams})})}o(h3,"registerGenerateEndpointConfigHelper");function g3(){$e.default.registerHelper("genEndpointParamParse",(e,t)=>{var r;return Re("endpoint-param-parse")({param:e,paramName:t,isQuery:e.type==="Query",zodExtendedNamespace:Ye.namespace,parse:Ye.exports.parse,sortExp:Ye.exports.sortExp,addOptional:!((r=e.parameterObject??e.bodyObject)!=null&&r.required)&&(e.parameterSortingEnumSchemaName||de(e.zodSchema))})})}o(g3,"registerGenerateEndpointParamParseHelper");function y3(e){$e.default.registerHelper("genQueryKeys",t=>t.length===0?"":Re("query-keys")({queryEndpoints:t,queriesModuleName:_o,generateInfiniteQueries:e.options.infiniteQueries}))}o(y3,"registerGenerateQueryKeysHelper");function v3(e){$e.default.registerHelper("genQuery",t=>{if(!Ie(t))return;let r=e.options.axiosRequestConfig,n=e.options.checkAcl&&t.acl;return Re("query-use-query")({endpoint:t,queryHook:mt.query,hasQueryFn:Ir(e,t).length>0||r||n,hasQueryFnBody:n,hasAxiosRequestConfig:r,axiosRequestConfigName:yr,axiosRequestConfigType:xt,hasAclCheck:n,aclCheckHook:Or})})}o(v3,"registerGenerateQueryHelper");function S3(e){$e.default.registerHelper("genMutation",(t,r)=>{if(!Ct(t))return;let n=Sb(t,r),i=bb(e,t,n),s=e.options.checkAcl&&t.acl;return Re("query-use-mutation")({endpoint:t,queryHook:mt.mutation,queriesModuleName:_o,hasAxiosRequestConfig:e.options.axiosRequestConfig,hasMutationFnBody:t.mediaUpload||s,axiosRequestConfigName:yr,axiosRequestConfigType:xt,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:ni.optionsType,updateQueryEndpoints:n,destructuredVariables:i,hasAclCheck:s,aclCheckHook:Or})})}o(S3,"registerGenerateMutationHelper");function b3(e){$e.default.registerHelper("genInfiniteQuery",t=>{if(!e.options.infiniteQueries||!pi(t))return;let r=e.options.checkAcl&&t.acl;return Re("query-use-infinite-query")({endpoint:t,infiniteQueryHook:mt.infiniteQuery,hasQueryFnBody:r,pageParamName:la.pageParamName,totalItemsName:la.totalItemsName,limitParamName:la.limitParamName,hasAxiosRequestConfig:e.options.axiosRequestConfig,axiosRequestConfigName:yr,axiosRequestConfigType:xt,hasAclCheck:r,aclCheckHook:Or})})}o(b3,"registerGenerateInfiniteQueryHelper");function _3(e){$e.default.registerHelper("genQueryJsDocs",(t,r)=>Re("query-js-docs")({endpoint:t,query:r.hash.query,mutation:r.hash.mutation,infiniteQuery:r.hash.infiniteQuery,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:ni.optionsType}))}o(_3,"registerGenerateQueryJsDocsHelper");function P3(){$e.default.registerHelper("genCaslAbilityType",e=>Re("casl-ability-type")({endpoint:e,abilityTuple:fe.abilityTuple}))}o(P3,"registerGenerateCaslAbilityTypeHelper");function E3(){$e.default.registerHelper("genCaslAbilityFunction",e=>Re("casl-ability-function")({endpoint:e}))}o(E3,"registerGenerateCaslAbilityFunctionHelper");function $3(){$e.default.registerHelper("genCaslAbilityQuery",e=>Re("casl-ability-query")({endpoint:e}))}o($3,"registerGenerateCaslAbilityQueryHelper");function O3(){$e.default.registerHelper("genAclCheckCall",e=>{var i;let t=(i=ci(e))==null?void 0:i.map(s=>s.name),r=e.parameters.map(s=>s.name),n=t==null?void 0:t.every(s=>r.includes(s));return Re("acl-check-call")({endpoint:e,generateAclCheckParams:Ao(e)&&n})})}o(O3,"registerGenerateAclCheckCallHelper");var $i=Ge(Wt());function YP(){x3(),w3(),I3(),A3(),T3()}o(YP,"registerQueryHbsHelpers");function x3(){$i.default.registerHelper("queryName",(e,t)=>$a(e,t.hash.mutation))}o(x3,"registerQueryNameHelper");function A3(){$i.default.registerHelper("infiniteQueryName",_b)}o(A3,"registerInfiniteQueryNameHelper");function w3(){$i.default.registerHelper("isQuery",Ie)}o(w3,"registerIsQueryHelper");function I3(){$i.default.registerHelper("isMutation",Ct)}o(I3,"registerIsMutationHelper");function T3(){$i.default.registerHelper("isInfiniteQuery",e=>pi(e))}o(T3,"registerIsInfiniteQueryHelper");var vn=Ge(Wt());function JP(e){R3(e.options),C3(e),N3(e),k3(),j3(),q3(e)}o(JP,"registerZodHbsHelpers");function R3(e){vn.default.registerHelper("zodInferedType",t=>To(t,e))}o(R3,"registerInferedTypeHelper");function C3(e){vn.default.registerHelper("importedZodSchemaName",t=>WS(e,t))}o(C3,"registerImportedZodSchemaNameHelper");function N3(e){vn.default.registerHelper("importedZodSchemaInferedType",t=>wr(e,t))}o(N3,"registerImportedZodSchemaInferedTypeHelper");function k3(){vn.default.registerHelper("zodSchemaType",e=>YS(e))}o(k3,"registerZodSchemaTypeHelper");function j3(){vn.default.registerHelper("zodSchemaDescription",e=>JS(e))}o(j3,"registerZodSchemaDescriptionHelper");function q3(e){vn.default.registerHelper("zodSchemaPropertyDescriptions",(t,r)=>eb(e,t,r))}o(q3,"registerZodSchemaPropertyDescriptionsHelper");function he(e,t){let r=wd(t);return ZP(),QP(),JP(e),zP(e),YP(),GP(e),WP(e),Id.default.compile(r)}o(he,"getHbsTemplateDelegate");function Re(e){let t=wd(`partials/${e}`);return Id.default.compile(t)}o(Re,"getHbsPartialTemplateDelegate");function XP({resolver:e,data:t,tag:r=""}){let n=Of({resolver:e,data:t,tag:r});if(!n)return;let{hasAdditionalAbilityImports:i,modelsImports:s,endpoints:a}=n,c={bindings:[fe.abilityTuple,...i?[fe.forcedSubject,fe.subject]:[]],from:_f.from};return he(e,"acl")({caslAbilityTupleImport:c,modelsImports:s,includeNamespace:e.options.tsNamespaces,namespace:Z({type:"acl",tag:r,options:e.options}),endpoints:a})}o(XP,"generateAcl");function eE({resolver:e,data:t}){let{appAbilitiesType:r,hasAdditionalAbilityImports:n,modelsImports:i}=zS({resolver:e,data:t}),s={bindings:[fe.pureAbility,fe.abilityTuple,...r?[]:[fe.subjectType],...n?[fe.forcedSubject]:[]],from:_f.from};return he(e,"app-acl")({caslAbilityTupleImport:s,modelsImports:i,appAbilitiesType:r,appAbilities:Oo,abilityTuple:fe.abilityTuple,subjectType:fe.subjectType})}o(eE,"generateAppAcl");function tE({resolver:e,data:t,tag:r=""}){var b;let n=(b=t.get(r))==null?void 0:b.endpoints;if(!n||n.length===0)return;let i={bindings:[yo],from:ob(e.options)},s=e.options.axiosRequestConfig,a=s,c={bindings:s?[xt]:[],from:fa.from},u=e.options.parseRequestParams,l=n.reduce((P,E)=>[...P,...E.parameters],[]),f=l.filter(P=>!["Path","Header"].includes(P.type)).map(P=>P.parameterSortingEnumSchemaName??P.zodSchema),p=n.map(P=>P.response),d=Fe([...p,...u?f:[]]),m=d.some(P=>!de(P)),g=e.options.parseRequestParams&&f.length>0,y={bindings:[Ye.namespace],from:lb(e.options)},v=xr({resolver:e,tag:r,zodSchemas:d.filter(de),zodSchemasAsTypes:Fe(l.map(P=>P.zodSchema).filter(de))});return he(e,"endpoints")({appRestClientImport:i,hasAxiosImport:a,axiosImport:c,hasZodImport:m,zodImport:ii,hasZodExtendedImport:g,zodExtendedImport:y,modelsImports:v,includeNamespace:e.options.tsNamespaces,namespace:Z({type:"endpoints",tag:r,options:e.options}),restClientName:yo,hasAxiosRequestConfig:s,axiosRequestConfigName:yr,axiosRequestConfigType:xt,endpoints:n,generateParse:u})}o(tE,"generateEndpoints");function rE({resolver:e,data:t,tag:r=""}){var u;let n=(u=t.get(r))==null?void 0:u.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,f)=>[...l,...Cb(e,f)],[]).filter(l=>!n[l]),s=xr({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[f,p])=>{let d=e.getZodSchemaObj(f),m={code:p,isEnum:KS(p),schemaObj:d};return{...l,[f]:m}},{});return he(e,"models")({zodImport:ii,modelsImports:s,includeNamespace:e.options.tsNamespaces,namespace:Z({type:"models",tag:r,options:e.options}),tag:r,zodSchemasData:a})}o(rE,"generateModels");function nE({resolver:e,data:t,tag:r=""}){var re;let n=(re=t.get(r))==null?void 0:re.endpoints;if(!n||n.length===0)return;let i=e.options.axiosRequestConfig,s=n.some(({mediaUpload:L})=>L),a=i||s,c={defaultImport:s?cf:void 0,bindings:i?[xt]:[],from:fa.from},u=n.filter(Ie),l=u.filter(L=>pi(L)),f=n.filter(Ct),p={bindings:[...u.length>0?[mt.query]:[],...e.options.infiniteQueries&&l.length>0?[mt.infiniteQuery]:[],...f.length>0?[mt.mutation]:[]],from:ES.from},d=e.options.mutationEffects,m={bindings:[of],from:ab(e.options)},g=d&&f.length>0,y={bindings:[...f.length>0?[ni.optionsType,ni.hookName]:[]],from:cb(e.options)},v=n.filter(L=>L.acl),S=e.options.checkAcl&&v.length>0,b={bindings:[Or],from:ub(e.options)},P={bindings:[...u.length>0?[ta.query]:[],...e.options.infiniteQueries&&l.length>0?[ta.infiniteQuery]:[],...f.length>0?[ta.mutation]:[]],from:sb(e.options)},E=n.reduce((L,X)=>[...L,...X.parameters],[]),_=xr({resolver:e,tag:r,zodSchemasAsTypes:Fe(E.map(L=>L.zodSchema).filter(de))}),I=tb({tag:r,endpoints:n,options:e.options}),T=rb({tag:r,endpoints:v,options:e.options});return he(e,"queries")({hasAxiosImport:a,axiosImport:c,queryImport:p,hasMutationEffects:d,queryModulesImport:m,hasMutationEffectsImport:g,mutationEffectsImport:y,hasAclCheck:S,aclCheckImport:b,queryTypesImport:P,modelsImports:_,endpointsImports:I,aclImports:T,includeNamespace:e.options.tsNamespaces,tag:r,namespace:Z({type:"queries",tag:r,options:e.options}),queriesModuleName:_o,queryModuleEnum:of,endpoints:n,queryEndpoints:u})}o(nE,"generateQueries");function iE(e){return he(e,"acl-check")({abilityContextImport:{...uS,from:e.options.abilityContextImportPath},appAbilitiesImport:{bindings:[Oo],from:pb(e.options)},errorHandlingImport:{...ra,from:e.options.errorHandlingImportPath},abilityContext:nf,appAbilities:Oo,errorHandler:hr.ErrorHandler,sharedErrorHandler:hr.SharedErrorHandler,aclCheckHook:Or,hasGenericAppAbilities:e.options.abilityContextGenericAppAbilities})}o(iE,"generateAclCheck");function oE(e){return he(e,"app-rest-client")({appRestClientName:yo,baseUrl:e.getBaseUrl()})}o(oE,"generateAppRestClient");function sE({resolver:e,data:t}){let r=[];return t.forEach((i,s)=>{var c;let a=(c=t.get(s))==null?void 0:c.endpoints;!a||a.length===0||r.push({tag:s,namespace:Z({type:"queries",tag:s,options:e.options})})}),he(e,"query-modules")({modules:r})}o(sE,"generateQueryModules");function aE(e){return he(e,"zod-extended")({zodImport:ii,zodExtendedNamespace:Ye.namespace,parse:Ye.exports.parse,sortExp:Ye.exports.sortExp,errorHandler:hr.ErrorHandler,sharedErrorHandler:hr.SharedErrorHandler,errorHandlingImport:{...ra,from:e.options.errorHandlingImportPath}})}o(aE,"generateZodExtended");function cE(e,t){return t.options.acl?[{fileName:Yt({output:t.options.output,fileName:an(ya)}),content:eE({resolver:t,data:e})},...t.options.checkAcl?[{fileName:Yt({output:t.options.output,fileName:an(va)}),content:iE(t)}]:[]]:[]}o(cE,"getAclFiles");function uE(e,t){return t.options.mutationEffects?[...fE([lS,sa],t),{fileName:Yt({output:t.options.output,fileName:an(oa)}),content:sE({resolver:t,data:e})}]:[]}o(uE,"getMutationEffectsFiles");function lE(e){return e.options.standalone?[...fE(Object.values(na),e),{fileName:Yt({output:e.options.output,fileName:an(ia)}),content:oE(e)}]:[]}o(lE,"getStandaloneFiles");function pE(e,t){return t.options.parseRequestParams?[{fileName:Yt({output:t.options.output,fileName:an(aa)}),content:aE(t)}]:[]}o(pE,"getZodExtendedFiles");function fE(e,t){return e.reduce((r,n)=>[...r,M3(n,t)],[])}o(fE,"getAssetFiles");function M3(e,t){let r=an(e);return{fileName:Yt({output:t.options.output,fileName:r}),content:UP(r)}}o(M3,"getAssetFile");function dE(e,t){let r=t.standalone&&t.importPath==="ts"?"relative":t.importPath,{resolver:n,data:i}=Ta(e,{...t,importPath:r}),s=[],a=[],c=["models","endpoints","queries",...n.options.acl?["acl"]:[]],u={models:rE,endpoints:tE,queries:nE,acl:XP};return i.forEach((l,f)=>{c.forEach(p=>{let d=u[p]({resolver:n,data:i,tag:f});if(d){let m=Yt({output:t.output,fileName:ib({tag:f,type:p,options:t})});s.push({fileName:m,content:d}),p==="acl"&&a.push(f)}})}),s.push(...cE(i,n),...uE(i,n),...pE(i,n),...lE(n)),s}o(dE,"generateCodeFromOpenAPIDoc");async function D3({input:e,options:t}){let r={...sf,...t},n=await Td.default.bundle(e);return await Yb(n,r)}o(D3,"getGenerateMetadata");async function L3({input:e,options:t}){let r={...sf,...t},n=await Td.default.bundle(e);return dE(n,r)}o(L3,"getGenerateFilesData");0&&(module.exports={getGenerateFilesData,getGenerateMetadata});
74
+ `].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(JN({schema:e,meta:t,options:r}),r.withDefaultValues!==!1?XN(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(kt,"getZodChain");function JN({schema:e,meta:t,options:r}){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable||r.replaceOptionalWithNullish&&(t!=null&&t.isParentPartial)?"nullable()":t!=null&&t.isRequired?"":r.replaceOptionalWithNullish?"nullish()":"optional()"}o(JN,"getZodChainablePresence");function XN(e){return e.default!==void 0?`default(${$e(e.type).with("number","integer",()=>ob(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(XN,"getZodChainableDefault");function ek(e){let t=[];return e.enum||(e.minLength!==void 0&&t.push(`min(${e.minLength})`),e.maxLength!==void 0&&t.push(`max(${e.maxLength})`)),e.pattern&&t.push(`regex(${tk(e.pattern)})`),t.join(".")}o(ek,"getZodChainableStringValidations");function tk(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=sb(e),`/${e}/`}o(tk,"formatPatternIfNeeded");function rk(e){let t=[];return e.enum?"":(e.minimum!==void 0?e.exclusiveMinimum===!0?t.push(`gt(${e.minimum})`):t.push(`gte(${e.minimum})`):typeof e.exclusiveMinimum=="number"&&t.push(`gt(${e.exclusiveMinimum})`),e.maximum!==void 0?e.exclusiveMaximum===!0?t.push(`lt(${e.maximum})`):t.push(`lte(${e.maximum})`):typeof e.exclusiveMaximum=="number"&&t.push(`lt(${e.exclusiveMaximum})`),e.multipleOf&&t.push(`multipleOf(${e.multipleOf})`),t.join("."))}o(rk,"getZodChainableNumberValidations");function nk(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(nk,"getZodChainableArrayValidations");var gn=o(e=>e.reduce((t,r)=>t+r,0),"sum");function le(e,t){if(!t)return e;if(L(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?Be("oneOf")+le(e,{...t,type:t.type[0]}):e+Be("oneOf")+gn(t.type.map(r=>le(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?Be("oneOf")+le(e,t.oneOf[0]):e+Be("oneOf")+gn(t.oneOf.map(r=>le(0,r)));if(t.anyOf)return t.anyOf.length===1?Be("anyOf")+le(e,t.anyOf[0]):e+Be("anyOf")+gn(t.anyOf.map(r=>le(0,r)));if(t.allOf)return t.allOf.length===1?Be("allOf")+le(e,t.allOf[0]):e+Be("allOf")+gn(t.allOf.map(r=>le(0,r)));if(!t.type)return e;if(Zt(t.type))return t.enum?e+Vb(t)+Be("enum")+gn(t.enum.map(r=>le(0,r))):e+Vb(t);if(t.type==="array")return t.items?Be("array")+le(e,t.items):Be("array")+le(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.properties){let r=Object.values(t.properties);e+=Be("object")+gn(r.map(n=>le(0,n)))}else e+=Be("empty-object");t.additionalProperties&&(typeof t.additionalProperties=="object"?e+=le(0,t.additionalProperties):e+=le(1))}return e}o(le,"getOpenAPISchemaComplexity");function Vb(e){return $e(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(Vb,"complexityByType");function Be(e){return $e(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(Be,"complexityByComposite");var Zf=class Zf{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;L(t)&&(this.ref=t.$ref),i&&(this.enumRef=i),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;enumRef;children=[];meta;getCodeString(t,r){var s,a;if(!this.ref&&this.code)return this.code;if(!this.ref)throw new Error("Zod schema is missing both ref and code");let n=(s=this.resolver)==null?void 0:s.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.tsNamespaces&&i&&i!==t?`${V({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return le(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(Zf,"ZodSchema");var Go=Zf;function Uf(e){var t,r;if(e)return(t=e.parent)!=null&&t.ref?e.parent.ref:Uf((r=e.parent)==null?void 0:r.meta)}o(Uf,"getParentRef");function Bb(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getExtractedEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(Fa(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(Bb,"getZodSchemaRefs");function Fa(e,{skipObjectSchema:t=!1}={}){return e.children.reduce((n,i)=>{let s=i.ref??i.enumRef;return s&&n.add(s),i.children.length>0&&(!t||!he(i.schema)||i.schema.type!=="object")&&Fa(i).forEach(a=>n.add(a)),n},new Set)}o(Fa,"getSchemaRefs");function ee({schema:e,resolver:t,meta:r,tag:n}){var g;let i=new Go(e,t,r),s={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:s,tag:n};if(L(e))return ik({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=sk({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let u=ok({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let l=ak({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let f=ck({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let p=uk({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let d=t.options.allReadonly?".readonly()":"";if(_a(e))return e.items?i.assign(`z.array(${ee({...a,schema:e.items}).getCodeString(n,t.options)}${kt({schema:e.items,meta:{...s,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(${li})${d}`);let m=e.type?e.type.toLowerCase():void 0;if(m==="object"||e.properties||e.additionalProperties){let y=e.required&&e.required.length>0,S=t.options.withImplicitRequiredProps?!1:e.properties&&!((g=e.required)!=null&&g.length),v="{}";e.properties&&(v=`{ ${Object.entries(e.properties).map(([A,I])=>{var Dt;let J={...s,isRequired:S?!0:y?(Dt=e.required)==null?void 0:Dt.includes(A):t.options.withImplicitRequiredProps,name:A,isParentPartial:S},z=I;if(L(I)&&t&&(z=t.getSchemaByRef(I.$ref),!z))throw new Error(`Schema ${I.$ref} not found`);let q=ee({...a,schema:I,meta:J}),Z=q.getCodeString(n,t.options)+kt({schema:z,meta:J,options:t.options}),w=!1,Mt=Uf(r);return Mt&&(w=[...L(I)?[I.$ref]:[],...Fa(q,{skipObjectSchema:!0})].some(Ze=>{var Qd;return(Qd=t.dependencyGraph.deepDependencyGraph[Ze])==null?void 0:Qd.has(Mt)})),[A,Z,w]}).map(([A,I,J])=>J?`get ${kf(A)}() { return ${I} }`:`${kf(A)}: ${I}`).join(", ")} }`);let b="";e.additionalProperties&&(b=`.catchall(${typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0?ee({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+kt({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options}):li})`);let P=`z.object(${v})${S?".partial()":""}${b}${d}`;return i.assign(P)}if(m==="any")return i.assign(li);if(!m)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${m}`)}o(ee,"getZodSchema");function ik({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!L(e))return;let s=t.meta.referencedBy.slice(0,-1).map(u=>u.ref?r.getZodSchemaNameByRef(u.ref)??u.ref:void 0).filter(Boolean),a=r.getZodSchemaNameByRef(e.$ref);if(s.length>1&&s.includes(a))return t.assign(r.getCodeByZodSchemaName(t.ref));let c=r.getCodeByZodSchemaName(e.$ref);if(!c){let u=r.getSchemaByRef(e.$ref);if(!u)throw new Error(`Schema ${e.$ref} not found`);c=ee({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o(ik,"getReferenceZodSchema");function ok({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!he(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=ee({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(c.getCodeString(i,r.options))}let s=(a=e.oneOf)==null?void 0:a.some(c=>he(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!s){let c=e.discriminator.propertyName;return t.assign(`
75
+ z.discriminatedUnion("${c}", [${e.oneOf.map(u=>ee({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
76
+ `)}return t.assign(`z.union([${e.oneOf.map(c=>ee({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(ok,"getOneOfZodSchema");function sk({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!he(e)||!Array.isArray(e.type)))return e.type.length===1?ee({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>ee({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(sk,"getArrayZodSchema");function ak({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!he(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=ee({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>ee({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(ak,"getAnyOfZodSchema");function ck({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!he(e)||!e.allOf)return;if(e.allOf.length===1){let p=ee({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(p.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:s,noRequiredOnlyAllof:a,composedRequiredSchema:c}=Jv(e),u=a.map(p=>{let d=ee({schema:p,resolver:r,meta:n,tag:i});return r&&s(p,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(ee({schema:c,resolver:r,meta:n,tag:i}));let l=u.at(0),f=u.slice(1).map(p=>`merge(${p.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${f}`)}o(ck,"getAllOfZodSchema");function uk({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!he(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&Zt(s)){if(e.enum){if(s==="string")return lk({schema:e,zodSchema:t,resolver:r,meta:n,tag:i});if(e.enum.some(a=>typeof a=="string"))return t.assign("z.never()");if(e.enum.length===1){let a=e.enum[0];return t.assign(`z.literal(${a===null?"null":a})`)}return t.assign(`z.union([${e.enum.map(a=>`z.literal(${a===null?"null":a})`).join(", ")}])`)}return t.assign($e(s).with("integer",()=>$e(e.type).with("integer",()=>Rv).otherwise(()=>Nv)).with("string",()=>$e(e.format).with("binary",()=>ma).with("email",()=>kv).with("hostname","uri",()=>jv).with("uuid",()=>qv).with("date-time",()=>Mv).otherwise(()=>ha)).otherwise(a=>`z.${a}()`))}}o(uk,"getPrimitiveZodSchema");function lk({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){var l;if(!he(t))return;let s=_i(t);if(!e.options.extractEnums)return r.assign(s);let a=e.getEnumZodSchemaDataByCode(s);if(a)return((l=r.meta.parent)==null?void 0:l.ref)===e.getRefByZodSchemaName(a.zodSchemaName)?r.assign(a.code):new Go({$ref:e.getRefByZodSchemaName(a.zodSchemaName)},e,n).inherit(r).assign(s);let c=e.getExtractedEnumZodSchemaDataByCode(s);if(!c)return r.assign(s);if(!c.zodSchemaName||!c.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let u=e.options.tsNamespaces&&c.tag!==i?`${V({type:"models",tag:c.tag,options:e.options})}.`:"";return r.assign(`${u}${c.zodSchemaName}`)}o(lk,"getEnumZodSchema");function _i(e){var t;return`${wo}([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(_i,"getEnumZodSchemaCode");function Gb(e){return`${wo}([${e.map(t=>`"${t}"`).join(", ")}])`}o(Gb,"getEnumZodSchemaCodeFromEnumNames");function Ei({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let s=t.getCodeString();if((!ne(s)||t.ref===void 0)&&r){if(t.complexity<Cf)return s;let u=ln(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(u);){if((c=n.getZodSchemaNamesByCompositeCode(s))!=null&&c.includes(u))return u;if(n.getCodeByZodSchemaName(u)===u)return u;throw new Error(`Can't uniquely resolve zod schema name: ${u}`)}return n.setZodSchema(u,s,i),n.addZodSchemaForCompositeCode(s,t,u,e),u}let a=n.getCodeByZodSchemaName(s);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return le(0,n.getSchemaByRef(t.ref))<Cf?n.getCodeByZodSchemaName(s):s;if(t.ref)return n.getZodSchemaNameByRef(t.ref);throw new Error(`Invalid ref: ${t.ref}`)}o(Ei,"resolveZodSchemaName");function yn(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(yn,"pick");var zf=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];function Pi(e,t){let r=e.deprecated&&!t.withDeprecatedEndpoints,n=wr(e,t),i=ub(n,t);return r||i}o(Pi,"isOperationExcluded");function Kf({path:e,method:t,operation:r,options:n,tag:i,keepOperationTag:s,keepOperationPrefix:a}){let c=`${t}${ab(e)}`,u=r.operationId?wt(r.operationId):c;if(n.removeOperationPrefixEndingWith&&a)u=u.split(n.removeOperationPrefixEndingWith).map((f,p)=>p===0?f:B(f)).join("");else if(n.removeOperationPrefixEndingWith&&!a){let l=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);u=u.replace(l,"")}if(n.tsNamespaces&&!s){let l=Hv(u,i);l===""?u=t.toLowerCase():zf.includes(l)||(u=l)}return zf.includes(u)?c:u}o(Kf,"getOperationName");function Uo({operationsByTag:e,...t}){let{operation:r,options:n}=t,i=n.splitByTags?wr(r,n):n.defaultTag,s=o(a=>{let c=Kf({...t,tag:i,keepOperationTag:a});if(e[i].filter(l=>Kf({...t,operation:l,tag:i,keepOperationTag:a})===c).length===1)return c},"operationName");return s()??s(!0)??Kf({...t,tag:i,keepOperationTag:!0,keepOperationPrefix:!0})}o(Uo,"getUniqueOperationName");function Ub(e,t,r){let n=[];for(let i in e.paths){if(un(i,r))continue;let s=e.paths[i],a=yn(s,an);for(let c in a){let u=a[c];if(!u||Pi(u,r))continue;let l=Uo({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(Ub,"getUniqueOperationNamesWithoutSplitByTags");function Zb(e,t){let r={};for(let n in e.paths){if(un(n,t))continue;let i=e.paths[n],s=yn(i,an);for(let a in s){let c=s[a];if(!c||Pi(c,t))continue;let u=t.splitByTags?wr(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(Zb,"getOperationsByTag");var zb={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Ambiguous",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I Am a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",424:"Failed Dependency",428:"Precondition Required",429:"Too Many Requests",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function Zo(e){return{type:"invalid-schema",message:e}}o(Zo,"getInvalidSchemaError");function Kb(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(Kb,"getInvalidOperationIdError");function Qb(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o(Qb,"getMissingPathParameterError");function Wb(e){return{type:"not-allowed-inline-enum",message:`${e} is missing @IsEnum() and @ApiProperty(enum:, enumName:)`}}o(Wb,"getNotAllowedInlineEnumError");function Yb(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${Va(t,r)}`}}o(Yb,"getMissingAclConditionPropertyError");function Qf(e,t,r){return{type:"missing-status-code",message:`Missing HTTP status code ${Ha(e)} in operation ${Va(t,r)}`}}o(Qf,"getMissingStatusCodeError");function Jb(e,t,r){return{type:"invalid-status-code",message:`Operation ${Va(t,r)} expected HTTP status code ${Ha(e.expected)} but received ${Ha(e.received)}`}}o(Jb,"getInvalidStatusCodeError");function Xb(e,t,r){return{type:"multiple-success-status-codes",message:`Operation ${Va(t,r)} has multiple success HTTP status codes: ${e.map(Ha).join(", ")}`}}o(Xb,"getMultipleSuccessStatusCodesError");function Va(e,t){return e.operationId??`${t.method} ${t.path}`}o(Va,"getOperationDescriptor");function Ha(e){return`${e} (${zb[e]})`}o(Ha,"getStatusCodeDescription");function e_({resolver:e,endpoint:t,operation:r}){let n=r["x-acl"];return n==null?void 0:n.map(i=>{let s=Object.keys(i.conditions??{}).reduce((a,c)=>{let u=pk({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(Yb(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o(e_,"getEndpointAcl");function pk({resolver:e,endpoint:t,acl:r,name:n}){var p,d,m,g,y,S,v,b,E,P;let i=(d=(p=r[0])==null?void 0:p.conditions)==null?void 0:d[n];if(!i)return;let s=i.replace(/^\$[^.]*\./,"").split("."),a,c,u,l=0,f=t.parameters.find(({name:_})=>_===s[l]);if(f)c=(m=f.parameterObject)==null?void 0:m.required,a=(g=f.parameterObject)==null?void 0:g.schema,u=`${f.name} ${vr(f.type)} parameter`,l++;else{let _=t.parameters.find(({bodyObject:J})=>!!J),I=Object.keys(((y=_==null?void 0:_.bodyObject)==null?void 0:y.content)??{}).find(Xe);I&&(a=(b=(v=(S=_==null?void 0:_.bodyObject)==null?void 0:S.content)==null?void 0:v[I])==null?void 0:b.schema,u=`${Le(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let _=e.resolveObject(a);a=(E=Object.entries(_.properties??{}).find(([I])=>I===s[l]))==null?void 0:E[1],c=((P=_.required)==null?void 0:P.includes(s[l]))??!1,l++}if(a)return{name:n,type:L(a)?void 0:a.type,zodSchemaName:L(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(pk,"getEndpointAclConditionPropertyType");function t_({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var m,g;let s=e.resolveObject(t.requestBody);if(!s)return;let c=Object.keys(s.content??{}).find(Xe);if(!c)return;let u=(g=(m=s.content)==null?void 0:m[c])==null?void 0:g.schema;if(!u)return;let l=ee({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),f=e.resolveObject(u),p=Ei({schema:f,zodSchema:l,fallbackName:qa(pn(r,n,i)),resolver:e,tag:i}),d=kt({schema:f,meta:l.meta,options:e.options});return{endpointParameter:{name:va,type:"Body",description:s.description,zodSchema:p+d,bodyObject:s},requestFormat:c}}o(t_,"getEndpointBody");function r_({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!tb.includes(s.in))return;let a={};if(s.content){let m=Object.keys(s.content??{}),g=m.find(Xe);if(!g)throw new Error(`Unsupported media type for param ${s.name}: ${m.join(", ")}`);let y=s.content[g];if(!y)throw new Error(`No content with media type for param ${s.name}: ${g}`);a=(y==null?void 0:y.schema)??y}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let c=hb(pn(r,n,i),s.name),u;if($a(s)){let m=Lo(c,e.options.enumSuffix,e.options.schemaSuffix),g=Gb(s["x-enumNames"]);e.setZodSchema(m,g,i),u=m}let l=ee({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),f=e.resolveObject(a),p=kt({schema:f,meta:l.meta,options:e.options}),d=Ei({schema:f,zodSchema:l.assign(l.getCodeString(i)+p),fallbackName:c,resolver:e,tag:i});return{name:$e(s.in).with("path",()=>jf(s.name)).otherwise(()=>s.name),type:$e(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:d,parameterObject:s,parameterSortingEnumSchemaName:u}}o(r_,"getEndpointParameter");function i_(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){if(un(c,e.options))continue;let u=e.openApiDoc.paths[c],l=yn(u,an),f=n_(u.parameters??[]);for(let p in l){let d=l[p];if(!d||Pi(d,e.options))continue;let m=d.operationId&&d.operationId!==wt(d.operationId);d.operationId&&m&&e.validationErrors.push(Kb(d.operationId));let g=Object.entries({...f,...n_(d.parameters??[])}).map(([,_])=>_),y=Uo({path:c,method:p,operation:d,operationsByTag:e.operationsByTag,options:e.options}),S=e.operationNames.filter(_=>_===y).length<=1,v=wr(d,e.options),b={method:p,path:cb(c),operationName:y,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(zt),requestFormat:sn,parameters:[],response:"",errors:[],responseStatusCodes:[],mediaUpload:!!d["x-media-upload"],mediaDownload:!!d["x-media-download"]};if(d.requestBody){let _=t_({resolver:e,operation:d,operationName:y,isUniqueOperationName:S,tag:v});_&&(b.parameters.push(_.endpointParameter),b.requestFormat=_.requestFormat)}for(let _ of g){let A=r_({resolver:e,param:_,operationName:y,isUniqueOperationName:S,tag:v});A&&b.parameters.push(A)}let E=fk(b);E.forEach(_=>{b.parameters.push(_)}),E.length>0&&e.validationErrors.push(Qb(E,c));for(let _ in d.responses){b.responseStatusCodes.push(_);let A=e.resolveObject(d.responses[_]),J=Object.keys(A.content??{}).find(mi),z,q;if(J?(b.responseFormat=J,z=(i=(n=A.content)==null?void 0:n[J])==null?void 0:i.schema):(q=Ao,_==="200"&&e.validationErrors.push(Jb({received:"200",expected:"204"},d,b))),z){let Z=ee({schema:z,resolver:e,meta:{isRequired:!0},tag:v}),w=e.resolveObject(z);q=Ei({schema:w,zodSchema:Z,fallbackName:Z.ref?void 0:Ma({statusCode:_,operationName:y,isUniqueOperationName:S,tag:v}),resolver:e,tag:v})+kt({schema:w,meta:Z.meta,options:e.options})}if(q){let Z=Number(_);Ro(Z)&&!b.response?(b.response=q,b.responseObject=A,b.responseDescription=A.description):_!=="default"&&Oa(Z)&&b.errors.push({zodSchema:q,status:Z,description:A.description})}}b.response||(b.response=Ao);let P=Object.keys(d.responses).map(Number).filter(Ro);P.length>1&&e.validationErrors.push(Xb(P.map(String),d,b)),b.acl=e_({resolver:e,endpoint:b,operation:d}),(s=d.security)!=null&&s[0].Authorization&&!b.responseStatusCodes.includes("401")&&e.validationErrors.push(Qf("401",d,b)),(a=b.acl)!=null&&a[0]&&!b.responseStatusCodes.includes("403")&&e.validationErrors.push(Qf("403",d,b)),t.push(b)}}return t}o(i_,"getEndpointsFromOpenAPIDoc");function n_(e){return Object.fromEntries((e??[]).map(t=>[L(t)?t.$ref:t.name,t]))}o(n_,"getParameters");function fk(e){return[...e.path.matchAll(/:([a-zA-Z0-9_]+)/g)].map(r=>r[1]).filter(r=>e.parameters.findIndex(({name:n})=>n===r)===-1).map(r=>dk(r))}o(fk,"getMissingPathParameters");function dk(e){return{name:e,type:"Path",zodSchema:ha,parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(dk,"getPathParameterFromName");function o_(e,t){let r=mk(e,t),n=hk(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(o_,"getOpenAPISchemaDependencyGraph");function mk(e,t){let r={},n={};return e.forEach(i=>gk({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(mk,"getRefsDependencyGraph");function hk(e,t){let r={},n={},i=o((s,a)=>{n[a].add(s),t[s]&&a!==s&&t[s].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(s=>{let a=t[s];a&&(n[s]||(n[s]=new Set),a.forEach(c=>i(c,s)))}),n}o(hk,"getDeepRefsDependencyGraph");function gk({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let s=o(a=>{if(a.type!=="reference"||!a.data)return;let{schema:c,data:u}=a;if(i[u.fromRef]||(i[u.fromRef]=new Set),i[u.fromRef].add(c.$ref),n[c.$ref])return!0;n[u.fromRef]=!0,Te(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return Te(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(gk,"getSchemaRefsDependencyGraph");function Ba(e,t,r){let n=[];return Te(t,{onSchema:o(s=>{s.type==="reference"?n.push(s.schema):L(s.parentSchema)&&(s.type==="property"?e.validationErrors.push(Zo(`${r} has both reference and properties`)):s.type==="additionalProperties"?e.validationErrors.push(Zo(`${r} has both reference and additionalProperties`)):s.type==="array"?e.validationErrors.push(Zo(`${r} is both reference and array schema`)):s.type==="composite"&&e.validationErrors.push(Zo(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(Ba,"getSchemaRefObjs");function s_(e,t){return t.map(i=>cn(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(s_,"getDeepSchemaRefObjs");function a_(e){e.extractedEnumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=_f(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=Lo(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!Wf(e);)yk(e,t+2),t++;if(Wf(e)||e.extractedEnumZodSchemaData.filter(n=>!c_(e,n)).forEach(n=>{n.zodSchemaName=Lo(n.meta.zodSchemaNameSegments[0].map(i=>Yf(B(i))).join(""),e.options.enumSuffix,e.options.schemaSuffix)}),!Wf(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(a_,"resolveExtractedEnumZodSchemaNames");function Wf(e){return e.extractedEnumZodSchemaData.every(t=>c_(e,t))}o(Wf,"allExtractedEnumZodSchemaNamesAreUnique");function yk(e,t){e.extractedEnumZodSchemaData.forEach(r=>{let n=e.extractedEnumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&Sk(n,t)})}o(yk,"additionalResolveExtractedEnumZodSchemaName");function Sk(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1){let i=[Yf(B(n[0])),r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=i}else{let i=_f(n),s=[i?Yf(B(i)):"",r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=s}})}o(Sk,"suffixWithPreviousSegmentName");function c_(e,t){return e.extractedEnumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length===1}o(c_,"isUnique");function Yf(e){return e.replace(/(Dto|DTO|Response|Request)/g,"")}o(Yf,"sanitizeName");function u_(e){e.extractedEnumZodSchemaData.forEach(t=>{let r=Ve(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(u_,"resolveExtractedEnumZodSchemaTags");function zo({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&l_({schema:e,nameSegments:t,...n}),Te(e,{data:{nameSegments:t},onSchema:o(s=>{var c;if(s.type==="reference")return!0;let a=[...((c=s.data)==null?void 0:c.nameSegments)??[]];s.type==="property"&&a.push(s.propertyName),l_({schema:s.schema,nameSegments:[...a],...n})},"onSchema")})}o(zo,"updateExtractedEnumZodSchemaData");function l_({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||L(t)||!t.enum)return;let a=_i(t),c=e.extractedEnumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(s),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[]),c.meta.schemas.push(...t?[t]:[])):e.extractedEnumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[],schemas:t?[t]:[]}}),e.validationErrors.push(Wb(r?`${di(r)}.${s[s.length-1]}`:n??s.join(".")))}o(l_,"handleExtractedEnumZodSchemaDataUpdate");function p_(e){var n;let t={},r={};return Object.entries(((n=e.openApiDoc.components)==null?void 0:n.schemas)??{}).forEach(([i,s])=>{let a=e.getSchemaDataByName(i);if(e.options.excludeRedundantZodSchemas&&(!a||a.deepRefOperations.length===0&&a.tags.length===0))return;let c=ln(i,e.options.schemaSuffix);if(t[c])return;let u=e.getTagByZodSchemaName(c),l=e.resolveObject(s);l.enum?r[c]=_i(l):t[c]=ee({schema:s,resolver:e,tag:u}).getCodeString(u)}),{zodSchemas:t,enumZodSchemas:r}}o(p_,"getZodSchemasFromOpenAPIDoc");function f_(e){var r;let t=[];return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=ln(n,e.options.schemaSuffix),a=e.resolveObject(i);!t.find(c=>c.zodSchemaName===s)&&a.enum&&t.push({zodSchemaName:s,code:_i(a)})}),t}o(f_,"getEnumZodSchemasFromOpenAPIDoc");var Jf=class Jf{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=o_(this.schemaRefs,this.getSchemaByRef.bind(this)),this.enumZodSchemas=f_(this),this.operationsByTag=Zb(t,r),this.operationNames=Ub(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];dependencyGraph;enumZodSchemas=[];extractedEnumZodSchemaData=[];operationsByTag={};operationNames=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(ib)}getSchemaByRef(t){return this.docSchemas[di(t)]}getSchemaDataByName(t){return this.schemaData.find(r=>r.name===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(cn(t)))==null?void 0:n.zodSchemaName)??((i=this.extractedEnumZodSchemaData.find(s=>s.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var u,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.extractedEnumZodSchemaData.find(f=>f.zodSchemaName===t);if(r)return zt(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((u=this.getSchemaDataByRef(n))==null?void 0:u.tags)??[]:[],s=((l=this.zodSchemaData.find(f=>f.zodSchemaName===t))==null?void 0:l.tags)??[],a=Ve(i,s),c=a.length===1?a[0]:this.options.defaultTag;return zt(c??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(s=>s.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let s={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(s):this.compositeZodSchemaData.push({code:t,zodSchemas:[s]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemas.find(r=>r.code===t)}getExtractedEnumZodSchemaDataByCode(t){return this.extractedEnumZodSchemaData.find(r=>r.code===t)}getExtractedEnumZodSchemaNamesReferencedBySchemaRef(t){return this.extractedEnumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getExtractedEnumZodSchemas(){return this.extractedEnumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return L(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}getCircularSchemaChain(t,r=t,n=[],i=[]){var s,a;return i.includes(r)?[]:(i.push(r),(s=this.dependencyGraph.refsDependencyGraph[r])!=null&&s.has(t)?[...n,r,t]:Array.from(((a=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:a.values())??[]).map(c=>{let u=this.getCircularSchemaChain(t,c,n,i);return u.length>0?[r,...u]:u}).flat())}getBaseUrl(){var r,n;let t=(n=(r=this.openApiDoc.servers)==null?void 0:r[0])==null?void 0:n.url;return this.options.baseUrl===""&&t?t:this.options.baseUrl}getZodSchemaObj(t){let r=this.getRefByZodSchemaName(t);if(r)return this.getSchemaByRef(r);let n=this.getSchemaByCompositeZodSchemaName(t);if(n)return n;let i=this.getExtractedEnumZodSchemaDataByName(t);if(i)return i.meta.schemas.reduce((s,a)=>({...s,...this.resolveObject(a)}),{})}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getExtractedEnumZodSchemaDataByName(t){return this.extractedEnumZodSchemaData.find(({zodSchemaName:r})=>r===t)}initialize(){var t,r,n,i,s;this.schemaRefs.forEach(a=>{let c=cn(a),u=di(c),l=ln(u,this.options.schemaSuffix);this.schemaData.push({ref:c,name:u,zodSchemaName:l,tags:[],deepRefOperations:[]})});for(let a in this.openApiDoc.paths){if(un(a,this.options))continue;let c=this.openApiDoc.paths[a],u=yn(c,an);for(let l in u){let f=u[l];if(!f||Pi(f,this.options))continue;let p=wr(f,this.options),d=Uo({path:a,method:l,operation:f,operationsByTag:this.operationsByTag,options:this.options}),m=this.operationNames.filter(v=>v===d).length<=1,g=me(pn(d,m,p)),y=[];if((t=f.parameters)==null||t.map(v=>{let b=v,E=b.schema,P=`Operation ${f.operationId??a} parameter ${b.name}`;y.push(...Ba(this,E,P)),this.options.extractEnums&&zo({resolver:this,schema:E,schemaInfo:P,tags:[p],nameSegments:[g,b.name],includeSelf:!0})}),f.requestBody){let v=this.resolveObject(f.requestBody),E=Object.keys(v.content??{}).find(Xe);if(E){let P=(n=(r=v.content)==null?void 0:r[E])==null?void 0:n.schema,_=`Operation ${f.operationId} request body`;y.push(...Ba(this,P,_)),this.options.extractEnums&&zo({resolver:this,schema:P,schemaInfo:_,tags:[p],nameSegments:[qa(g)]})}}for(let v in f.responses){let b=this.resolveObject(f.responses[v]),P=Object.keys(b.content??{}).find(mi);if(P){let _=(s=(i=b.content)==null?void 0:i[P])==null?void 0:s.schema,A=`Operation ${f.operationId} response body`;y.push(...Ba(this,_,A)),this.options.extractEnums&&zo({resolver:this,schema:_,schemaInfo:A,tags:[p],nameSegments:[Ma({statusCode:v,operationName:d,isUniqueOperationName:m,tag:p})]})}}s_(this,y).forEach(v=>{let b=this.getSchemaDataByRef(v);b&&(b.tags.push(p),b.deepRefOperations.push(f))})}}this.options.extractEnums&&(this.schemaRefs.forEach(a=>{var u;let c=cn(a);zo({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((u=this.getSchemaDataByRef(c))==null?void 0:u.tags)??[],nameSegments:[di(c)]})}),u_(this),this.handleDuplicateEnumZodSchemas(),a_(this))}handleDuplicateEnumZodSchemas(){let t=this.enumZodSchemas.map(({code:n})=>n),r=this.enumZodSchemas.filter(({code:n})=>t.includes(n));this.schemaData.forEach(n=>{var a,c;let i=(a=r.find(({zodSchemaName:u})=>u===n.zodSchemaName))==null?void 0:a.code;if(!i)return;let s=this.extractedEnumZodSchemaData.find(({code:u})=>u===i);!s||((c=this.getEnumZodSchemaDataByCode(s.code))==null?void 0:c.zodSchemaName)!==n.zodSchemaName||(n.tags.push(...s.meta.tags??[]),s.meta.schemaRefs.forEach(u=>{this.dependencyGraph.refsDependencyGraph[u]||(this.dependencyGraph.refsDependencyGraph[u]=new Set),this.dependencyGraph.refsDependencyGraph[u].add(n.ref),this.dependencyGraph.deepDependencyGraph[u]||(this.dependencyGraph.deepDependencyGraph[u]=new Set),this.dependencyGraph.deepDependencyGraph[u].add(n.ref)}))}),this.extractedEnumZodSchemaData.splice(0,this.extractedEnumZodSchemaData.length,...this.extractedEnumZodSchemaData.filter(({code:n})=>!t.includes(n)))}};o(Jf,"SchemaResolver");var Ga=Jf;function d_(e){let t=[],r={};function n(i,s){Array.isArray(s)||(s=[]),s.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{s.includes(a)||r[a]||n(a,s.slice(0))}),t.includes(i)||t.push(i)}return o(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}o(d_,"topologicalSort");function m_(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[s])=>t.indexOf(i)-t.indexOf(s)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}o(m_,"sortObjKeysFromArray");function h_(e,t){let r=d_(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return m_(t,r)}o(h_,"sortZodSchemasByTopology");function Ua(e,t){let r=new Ga(e,t),n=i_(r),i=p_(r),s={...i.zodSchemas,...r.getZodSchemas(),...i.enumZodSchemas};return s=h_(r,s),s={...r.getExtractedEnumZodSchemas(),...s},{resolver:r,data:vk({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(Ua,"getDataFromOpenAPIDoc");function vk({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=De(s,n);g_(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(g_(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(vk,"splitDataByTags");function g_(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(g_,"getTagElement");async function y_(e,t){let{resolver:r,data:n}=await Ua(e,t),i=[],s=[];return n.forEach(({endpoints:c,zodSchemas:u},l)=>{Object.keys(u).forEach(f=>{let p=r.getRefByZodSchemaName(f),d=p?r.getSchemaByRef(p):r.getSchemaByCompositeZodSchemaName(f),m=vi({zodSchemaName:f,schema:d,resolver:r}),g;d&&(g=mn({schema:d,parentTypes:[m],resolver:r})),i.push({...m,metaType:"primitive",...g})}),c.forEach(f=>{let p="queries",d=zt(l);s.push({name:fn(f),importPath:Si({type:p,tag:d,includeTagDir:!0,options:t}),namespace:t.tsNamespaces?V({type:p,tag:d,options:t}):void 0,isQuery:Le(f),isMutation:Nt(f),params:bk({resolver:r,endpoint:f}),response:_k({resolver:r,endpoint:f})})})}),{openApiDoc:e,models:i,queries:s}}o(y_,"getMetadataFromOpenAPIDoc");function bk({resolver:e,endpoint:t}){return t.parameters.map(r=>{var a,c,u,l;let n;if((a=r.parameterObject)!=null&&a.schema)n=e.resolveObject(r.parameterObject.schema);else if(r.bodyObject){let p=Object.keys(r.bodyObject.content??{}).find(Xe);p&&(n=e.resolveObject((u=(c=r.bodyObject.content)==null?void 0:c[p])==null?void 0:u.schema))}let i=vi({zodSchemaName:r.zodSchema,schema:n,resolver:e}),s;return n&&(s=mn({schema:n,parentTypes:[i],resolver:e})),{name:wt(r.name),isRequired:((l=r.parameterObject)==null?void 0:l.required)??!0,...i,...s,paramType:r.type}}).sort((r,n)=>{if(r.isRequired===n.isRequired){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.isRequired?-1:1}).map(({paramType:r,...n})=>n)}o(bk,"getQueryMetadataParams");function _k({resolver:e,endpoint:t}){var a,c,u,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(mi);n&&(r=e.resolveObject((l=(u=(c=t.responseObject)==null?void 0:c.content)==null?void 0:u[n])==null?void 0:l.schema));let i=vi({zodSchemaName:t.response,schema:r,resolver:e}),s;return r&&(s=mn({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...s}}o(_k,"getQueryMetadataResponse");var Zd=Re(Xt());var Gd=Re(require("fs")),cP=Re(require("path"));function uP(e){return Gd.default.readFileSync(cP.default.join(__dirname,`../${e}`),"utf-8")}o(uP,"readFileSync");function Ud(e){let t=`src/generators/templates/${e}.hbs`;return uP(t)}o(Ud,"readHbsTemplateSync");function lP(e){let t=`src/assets/${e}`;return uP(t)}o(lP,"readAssetSync");function er({output:e,fileName:t}){return`${e}/${t}`}o(er,"getOutputFileName");var tr=Re(Xt());function pP(e){dq(),mq(e.options),hq(),gq(),yq(),Sq(),vq(),bq()}o(pP,"registerAclHbsHelpers");function dq(){tr.default.registerHelper("abilityFunctionName",qo)}o(dq,"registerAbilityFunctionNameHelper");function mq(e){tr.default.registerHelper("importedAbilityFunctionName",t=>ja(t,e))}o(mq,"registerImportedAbilityFunctionNameHelper");function hq(){tr.default.registerHelper("ablityAction",Ff)}o(hq,"registerAbilityActionHelper");function gq(){tr.default.registerHelper("ablitySubject",Hf)}o(gq,"registerAbilitySubjectHelper");function yq(){tr.default.registerHelper("hasAbilityConditions",Mo)}o(yq,"registerHasAbilityConditionsHelper");function Sq(){tr.default.registerHelper("abilityConditionsTypes",gi)}o(Sq,"registerAbilityConditionsTypesHelper");function vq(){tr.default.registerHelper("abilityDescription",fb)}o(vq,"registerAbilityDescriptionHelper");function bq(){tr.default.registerHelper("abilitySubjectTypes",Vf)}o(bq,"registerAbilitySubjectTypesHelper");var On=Re(Xt());function fP(){_q(),Eq(),Pq(),Oq(),$q(),xq()}o(fP,"registerCommonHbsHelpers");function _q(){On.default.registerHelper("isEqual",(e,t)=>e===t)}o(_q,"registerIsEqualHelper");function Eq(){On.default.registerHelper("commaSeparated",e=>e.join(", "))}o(Eq,"registerCommaSeparatedListHelper");function Pq(){On.default.registerHelper("union",e=>e.join(" | "))}o(Pq,"registerUnionHelper");function Oq(){On.default.registerHelper("addAsteriskAfterNewLine",e=>e.replace(/\n/g,`
77
+ *`))}o(Oq,"registerAddAsteriskAfterNewLineHelper");function $q(){On.default.registerHelper("jsonStringify",e=>JSON.stringify(e,null,2))}o($q,"registerJsonStringifyHelper");function xq(){On.default.registerHelper("capitalize",B)}o(xq,"registerCapitalizeHelper");var Mr=Re(Xt());function dP(e){Aq(),wq(e.options),Cq(e),Iq(),Tq(),Rq(e),Nq()}o(dP,"registerEndpointsHbsHelpers");function Aq(){Mr.default.registerHelper("endpointName",Vo)}o(Aq,"registerEndpointNameHelper");function wq(e){Mr.default.registerHelper("importedEndpointName",t=>jb(t,e))}o(wq,"registerImportedEndpointNameHelper");function Iq(){Mr.default.registerHelper("endpointPath",Db)}o(Iq,"registerEndpointPathHelper");function Tq(){Mr.default.registerHelper("endpointBody",Nr)}o(Tq,"registerEndpointBodyHelper");function Cq(e){Mr.default.registerHelper("endpointParams",(t,r)=>kr(e,t,r.hash))}o(Cq,"registerEndpointParamsHelper");function Rq(e){Mr.default.registerHelper("endpointArgs",(t,r)=>kr(e,t,r.hash).map(n=>n.name).join(", "))}o(Rq,"registerEndpointArgsHelper");function Nq(){Mr.default.registerHelper("endpointParamDescription",e=>{var s,a,c,u,l;let t=[`${e.paramType} parameter`],r=((s=e.parameterObject)==null?void 0:s.description)||((a=e.bodyObject)==null?void 0:a.description);r&&t.push(r);let n,i;if((c=e.parameterObject)!=null&&c.schema&&he(e.parameterObject.schema)&&(n=(u=e.parameterObject)==null?void 0:u.schema),(l=e.bodyObject)!=null&&l.content){let p=Object.keys(e.bodyObject.content??{}).find(Xe);p&&(i=e.bodyObject.content[p],i.schema&&he(i.schema)&&(n=i.schema))}if(n){let f=Fo(n);t.push(...f)}return i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(Nq,"registerEndpointParamDescriptionHelper");var mP=Re(Xt());function hP(){kq()}o(hP,"registerImportsHbsHelpers");function kq(){mP.default.registerHelper("importNames",(e,t)=>[...t?[t]:[],...e?[`{ ${e.join(", ")} }`]:[]].join(", "))}o(kq,"registerBindingsHelper");var pe=Re(Xt());var gt={query:"useQuery",infiniteQuery:"useInfiniteQuery",mutation:"useMutation"},gP={bindings:[gt.query,gt.infiniteQuery,gt.mutation],from:"@tanstack/react-query"},as="moduleName";function yP(e){jq(),qq(),Mq(),Dq(e),Lq(e),Fq(),Hq(e),Vq(e),Bq(e),Gq(e),Uq(e),Zq(),zq(),Kq(),Qq(),Wq(),Yq()}o(yP,"registerPartialsHbsHelpers");function jq(){pe.default.registerHelper("genModelJsDocs",(e,t,r)=>Se("model-js-docs")({name:e,zodSchema:t,tag:r}))}o(jq,"registerGenerateModelJsDocsHelper");function qq(){pe.default.registerHelper("genImport",e=>Se("import")({import:e}))}o(qq,"registerImportHelper");function Mq(){pe.default.registerHelper("genEndpointParams",(e,t)=>Se("endpoint-params")({endpoint:e,options:t}))}o(Mq,"registerGenerateEndpointParamsHelper");function Dq(e){pe.default.registerHelper("hasUndefinedEndpointBody",t=>qb(t)&&!Nr(t)&&Mb(t,e))}o(Dq,"registerHasUndefinedEndpointBodyHelper");function Lq(e){pe.default.registerHelper("genEndpointConfig",t=>{let r=Gf(t),n=e.options.axiosRequestConfig;return Object.keys(r).length===0?n?Er:"":Se("endpoint-config")({endpointConfig:r,hasAxiosRequestConfig:n,hasBlobResponse:t.response===ma,hasFileDownload:t.mediaDownload,axiosRequestConfigName:Er,generateParse:e.options.parseRequestParams})})}o(Lq,"registerGenerateEndpointConfigHelper");function Fq(){pe.default.registerHelper("genEndpointParamParse",(e,t)=>{var r;return Se("endpoint-param-parse")({param:e,paramName:t,isQuery:e.type==="Query",zodExtendedNamespace:et.namespace,parse:et.exports.parse,sortExp:et.exports.sortExp,addOptional:!((r=e.parameterObject??e.bodyObject)!=null&&r.required)&&(e.parameterSortingEnumSchemaName||ne(e.zodSchema))})})}o(Fq,"registerGenerateEndpointParamParseHelper");function Hq(e){pe.default.registerHelper("genQueryKeys",t=>t.length===0?"":Se("query-keys")({queryEndpoints:t,queriesModuleName:as,generateInfiniteQueries:e.options.infiniteQueries}))}o(Hq,"registerGenerateQueryKeysHelper");function Vq(e){pe.default.registerHelper("genQuery",t=>{if(!Le(t))return;let r=e.options.axiosRequestConfig,n=e.options.checkAcl&&t.acl;return Se("query-use-query")({endpoint:t,queryHook:gt.query,hasQueryFn:kr(e,t).length>0||r||n,hasQueryFnBody:n,hasAxiosRequestConfig:r,axiosRequestConfigName:Er,axiosRequestConfigType:At,hasAclCheck:n,aclCheckHook:Ir})})}o(Vq,"registerGenerateQueryHelper");function Bq(e){pe.default.registerHelper("genMutation",(t,r)=>{if(!Nt(t))return;let n=Lb(t,r),i=Fb(e,t,n),s=e.options.checkAcl&&t.acl;return Se("query-use-mutation")({endpoint:t,queryHook:gt.mutation,queriesModuleName:as,hasAxiosRequestConfig:e.options.axiosRequestConfig,hasMutationFnBody:t.mediaUpload||s,axiosRequestConfigName:Er,axiosRequestConfigType:At,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:hi.optionsType,updateQueryEndpoints:n,destructuredVariables:i,hasAclCheck:s,aclCheckHook:Ir})})}o(Bq,"registerGenerateMutationHelper");function Gq(e){pe.default.registerHelper("genInfiniteQuery",t=>{if(!e.options.infiniteQueries||!bi(t,e.options))return;let r=e.options.checkAcl&&t.acl;return Se("query-use-infinite-query")({endpoint:t,infiniteQueryHook:gt.infiniteQuery,hasQueryFnBody:r,pageParamName:e.options.infiniteQueryResponseParamNames.page,totalItemsName:e.options.infiniteQueryResponseParamNames.totalItems,limitParamName:e.options.infiniteQueryResponseParamNames.limit,hasAxiosRequestConfig:e.options.axiosRequestConfig,axiosRequestConfigName:Er,axiosRequestConfigType:At,hasAclCheck:r,aclCheckHook:Ir})})}o(Gq,"registerGenerateInfiniteQueryHelper");function Uq(e){pe.default.registerHelper("genQueryJsDocs",(t,r)=>Se("query-js-docs")({endpoint:t,query:r.hash.query,mutation:r.hash.mutation,infiniteQuery:r.hash.infiniteQuery,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:hi.optionsType}))}o(Uq,"registerGenerateQueryJsDocsHelper");function Zq(){pe.default.registerHelper("genCaslAbilityType",e=>Se("casl-ability-type")({endpoint:e,abilityTuple:ge.abilityTuple}))}o(Zq,"registerGenerateCaslAbilityTypeHelper");function zq(){pe.default.registerHelper("genCaslAbilityFunction",e=>Se("casl-ability-function")({endpoint:e}))}o(zq,"registerGenerateCaslAbilityFunctionHelper");function Kq(){pe.default.registerHelper("genCaslAbilityQuery",e=>Se("casl-ability-query")({endpoint:e}))}o(Kq,"registerGenerateCaslAbilityQueryHelper");function Qq(){pe.default.registerHelper("genAclCheckCall",e=>{var i;let t=(i=gi(e))==null?void 0:i.map(s=>s.name),r=e.parameters.map(s=>s.name),n=t==null?void 0:t.every(s=>r.includes(s));return Se("acl-check-call")({endpoint:e,generateAclCheckParams:Mo(e)&&n})})}o(Qq,"registerGenerateAclCheckCallHelper");function Wq(){pe.default.registerHelper("genInputsConfig",e=>Se("inputs-config")({inputsConfig:e}))}o(Wq,"registerGenerateInputsConfigHelper");function Yq(){pe.default.registerHelper("genColumnsConfig",e=>Se("columns-config")({columnsConfig:e}))}o(Yq,"registerGenerateColumnsConfigHelper");var Ni=Re(Xt());function SP(e){Jq(),eM(),tM(),Xq(),rM(e)}o(SP,"registerQueryHbsHelpers");function Jq(){Ni.default.registerHelper("queryName",(e,t)=>fn(e,t.hash.mutation))}o(Jq,"registerQueryNameHelper");function Xq(){Ni.default.registerHelper("infiniteQueryName",Bo)}o(Xq,"registerInfiniteQueryNameHelper");function eM(){Ni.default.registerHelper("isQuery",Le)}o(eM,"registerIsQueryHelper");function tM(){Ni.default.registerHelper("isMutation",Nt)}o(tM,"registerIsMutationHelper");function rM(e){Ni.default.registerHelper("isInfiniteQuery",t=>bi(t,e.options))}o(rM,"registerIsInfiniteQueryHelper");var $n=Re(Xt());function vP(e){nM(e.options),iM(e),oM(e),sM(),aM(),cM(e)}o(vP,"registerZodHbsHelpers");function nM(e){$n.default.registerHelper("zodInferedType",t=>Ho(t,e))}o(nM,"registerInferedTypeHelper");function iM(e){$n.default.registerHelper("importedZodSchemaName",t=>Rr(e,t))}o(iM,"registerImportedZodSchemaNameHelper");function oM(e){$n.default.registerHelper("importedZodSchemaInferedType",t=>Cr(e,t))}o(oM,"registerImportedZodSchemaInferedTypeHelper");function sM(){$n.default.registerHelper("zodSchemaType",e=>gb(e))}o(sM,"registerZodSchemaTypeHelper");function aM(){$n.default.registerHelper("zodSchemaDescription",e=>yb(e))}o(aM,"registerZodSchemaDescriptionHelper");function cM(e){$n.default.registerHelper("zodSchemaPropertyDescriptions",(t,r)=>vb(e,t,r))}o(cM,"registerZodSchemaPropertyDescriptionsHelper");function ce(e,t){let r=Ud(t);return fP(),hP(),vP(e),dP(e),SP(e),pP(e),yP(e),Zd.default.compile(r)}o(ce,"getHbsTemplateDelegate");function Se(e){let t=Ud(`partials/${e}`);return Zd.default.compile(t)}o(Se,"getHbsPartialTemplateDelegate");function bP({resolver:e,data:t,tag:r}){let n=Bf({resolver:e,data:t,tag:r});if(!n)return;let{hasAdditionalAbilityImports:i,modelsImports:s,endpoints:a}=n,c={bindings:[ge.abilityTuple,...i?[ge.forcedSubject,ge.subject]:[]],from:qf.from};return ce(e,"acl")({caslAbilityTupleImport:c,modelsImports:s,includeNamespace:e.options.tsNamespaces,namespace:V({type:"acl",tag:r,options:e.options}),endpoints:a})}o(bP,"generateAcl");function _P({resolver:e,data:t}){let{appAbilitiesType:r,hasAdditionalAbilityImports:n,modelsImports:i}=db({resolver:e,data:t}),s={bindings:[ge.pureAbility,ge.abilityTuple,...r?[]:[ge.subjectType],...n?[ge.forcedSubject]:[]],from:qf.from};return ce(e,"app-acl")({caslAbilityTupleImport:s,modelsImports:i,appAbilitiesType:r,appAbilities:No,abilityTuple:ge.abilityTuple,subjectType:ge.subjectType})}o(_P,"generateAppAcl");var zd="config";function EP({data:e,tag:t,resolver:r}){var S;let n=(S=e.get(t))==null?void 0:S.endpoints;if(!n||n.length===0)return{configs:[]};let i=n.map(v=>({...v,pathSegments:Kv(v.path)})),s=i.filter(v=>Vv(v,r.options)),a=uM(s),c=!1,u=[],l=[],f=[],p=Object.entries(a).map(([v,b])=>{l.push(b),f.push(b);let E=b.response;ne(E)?(u.push(E),E=Rr(r,E)):c=!0;let P=b.parameters.find(w=>w.name===r.options.filterParamName);P&&u.push(P.zodSchema);let _=lM(r,b);_!=null&&_.zodSchema&&(ne(_.zodSchema)?u.push(_.zodSchema):c=!0),_!=null&&_.sortableEnumSchemaName&&u.push(_.sortableEnumSchemaName);let A={name:v,title:B(ga(v.replace(/config$/i,""))),readAll:{acl:ki(b,r.options),schema:E,paginated:hn(b,r.options),infinite:Hb(b,r.options),filters:wc(r,P),columns:_==null?void 0:_.columns}},I=i.find(w=>Bv(w,b));if(I){l.push(I);let w=I.response;ne(w)?(u.push(w),w=Rr(r,w)):c=!0,A.read={acl:ki(I,r.options),schema:w,query:hn(I,r.options)}}let J=i.find(w=>Gv(w,b));if(J){l.push(J);let w=Nr(J);w&&u.push(w.zodSchema),A.create={acl:ki(J,r.options),mutation:hn(J,r.options),inputDefs:wc(r,w)}}let z=i.find(w=>Uv(w,b));if(z){l.push(z);let w=Nr(z);w&&u.push(w.zodSchema),A.update={acl:ki(z,r.options),mutation:hn(z,r.options),inputDefs:wc(r,w)}}let q=i.find(w=>Zv(w,b));q&&(l.push(q),A.delete={acl:ki(q,r.options),mutation:hn(q,r.options)});let Z=i.find(w=>zv(w,b));if(Z){l.push(Z);let w=Nr(Z);w&&u.push(w.zodSchema),A.bulkDelete={acl:ki(Z,r.options),mutation:hn(Z,r.options),inputDefs:wc(r,w)}}return A}),d=Rt({resolver:r,tag:t,zodSchemas:u}),m=_b({tag:t,endpoints:l,options:r.options}),g=Eb({tag:t,endpoints:f,options:r.options}),y=Da({tag:t,endpoints:l.filter(v=>v.acl),options:r.options});return{configs:p,hasZodImport:c,modelsImports:d,queriesImports:Do(r.options,m,g),aclImports:y}}o(EP,"getBuilderConfigs");function uM(e){let t=e.map(n=>({...n,namePathSegments:n.pathSegments.filter(i=>!pi(i))})).sort((n,i)=>n.namePathSegments.length-i.namePathSegments.length),r={};for(let n of t){let i=n.namePathSegments,s=i.length>0?`${Io(i.pop())}${B(zd)}`:zd;for(;r[s];){if(i.length===0)throw new Error(`Can't uniquely resolve builder config name: ${s}`);s=`${Io(i.pop())}${B(s)}`}r[s]=n}return r}o(uM,"resolveBuilderConfigNames");function ki(e,t){return t.acl&&e.acl?ja(e,t):void 0}o(ki,"getAclConfig");function wc(e,t){var s,a,c;if(!t)return;let r;if(t.type==="Body"?r=(a=(s=t.bodyObject)==null?void 0:s.content[sn])==null?void 0:a.schema:r=(c=t.parameterObject)==null?void 0:c.schema,!r)return;let n=e.resolveObject(r),i=Object.keys((n==null?void 0:n.properties)??{}).reduce((u,l)=>({...u,[l]:!0}),{});return{schema:Rr(e,t.zodSchema),options:{inputs:i}}}o(wc,"getInputsConfig");function lM(e,t){var m,g,y;let r=t.responseObject;if(!r)return;let n=(g=(m=r.content)==null?void 0:m[sn])==null?void 0:g.schema;if(!n)return;let i=PP(e,n),s=Object.keys(i).filter(S=>e.resolveObject(i[S]).type==="array");s.sort((S,v)=>{let b=e.options.dataResponseParamNames.indexOf(S),E=e.options.dataResponseParamNames.indexOf(v);return b!==-1&&E!==-1?b-E:b!==-1?-1:E!==-1?1:S.localeCompare(v)});let a=s[0];if(!a)return;let c=e.resolveObject(i[a]);if(!c||c.type!=="array")return;let u=c.items,l=e.resolveObject(u);if(!l)return;let f=L(u)?e.getZodSchemaNameByRef(u.$ref):li,p=Object.keys((l==null?void 0:l.properties)??{}).reduce((S,v)=>({...S,[v]:!0}),{}),d=(y=t.parameters.find(S=>S.parameterObject&&$a(S.parameterObject)))==null?void 0:y.parameterSortingEnumSchemaName;return{columns:{schema:Rr(e,f),options:{columns:p,sortable:d?Rr(e,d):void 0}},zodSchema:f,sortableEnumSchemaName:d}}o(lM,"getColumnsConfig");function PP(e,t){let r=e.resolveObject(t);return r.properties?r.properties:"allOf"in r&&r.allOf?r.allOf.reduce((n,i)=>({...n,...PP(e,i)}),{}):{}}o(PP,"getSchemaProperties");function OP(e){let{configs:t,hasZodImport:r,modelsImports:n,queriesImports:i,aclImports:s}=EP(e);if(t.length===0)return;let{resolver:a,tag:c}=e,u=t.some(m=>{var g,y;return m.readAll.filters||((g=m.create)==null?void 0:g.inputDefs)||((y=m.update)==null?void 0:y.inputDefs)}),l={bindings:[jo.dynamicInputs],from:a.options.dynamicInputsImportPath},f=t.some(m=>m.readAll.columns),p={bindings:[jo.dynamicColumns],from:a.options.dynamicColumnsImportPath};return ce(a,"configs")({hasZodImport:r,zodImport:Sr,hasDynamicInputsImport:u,dynamicInputsImport:l,hasDynamicColumnsImport:f,dynamicColumnsImport:p,modelsImports:n,queriesImports:i,aclImports:s,includeNamespace:a.options.tsNamespaces,namespace:V({type:"configs",tag:c,options:a.options}),configs:t,dynamicInputs:jo.dynamicInputs,dynamicColumns:jo.dynamicColumns})}o(OP,"generateConfigs");function $P({resolver:e,data:t,tag:r}){var b;let n=(b=t.get(r))==null?void 0:b.endpoints;if(!n||n.length===0)return;let i={bindings:[ko],from:$b(e.options)},s=e.options.axiosRequestConfig,a=s,c={bindings:s?[At]:[],from:ba.from},u=e.options.parseRequestParams,l=n.reduce((E,P)=>[...E,...P.parameters],[]),f=l.filter(E=>!["Path","Header"].includes(E.type)).map(E=>E.parameterSortingEnumSchemaName??E.zodSchema),p=n.map(E=>E.response),d=Ve([...p,...u?f:[]]),m=d.some(E=>!ne(E)),g=e.options.parseRequestParams&&f.length>0,y={bindings:[et.namespace],from:Tb(e.options)},S=Rt({resolver:e,tag:r,zodSchemas:d.filter(ne),zodSchemasAsTypes:Ve(l.map(E=>E.zodSchema).filter(ne))});return ce(e,"endpoints")({appRestClientImport:i,hasAxiosImport:a,axiosImport:c,hasZodImport:m,zodImport:Sr,hasZodExtendedImport:g,zodExtendedImport:y,modelsImports:S,includeNamespace:e.options.tsNamespaces,namespace:V({type:"endpoints",tag:r,options:e.options}),restClientName:ko,hasAxiosRequestConfig:s,axiosRequestConfigName:Er,axiosRequestConfigType:At,endpoints:n,generateParse:u})}o($P,"generateEndpoints");function xP({resolver:e,data:t,tag:r}){var u;let n=(u=t.get(r))==null?void 0:u.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,f)=>[...l,...Bb(e,f)],[]).filter(l=>!n[l]),s=Rt({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[f,p])=>{let d=e.getZodSchemaObj(f),m={code:p,isEnum:mb(p),schemaObj:d};return{...l,[f]:m}},{});return ce(e,"models")({zodImport:Sr,modelsImports:s,includeNamespace:e.options.tsNamespaces,namespace:V({type:"models",tag:r,options:e.options}),tag:r,zodSchemasData:a})}o(xP,"generateModels");function AP({resolver:e,data:t,tag:r}){var z;let n=(z=t.get(r))==null?void 0:z.endpoints;if(!n||n.length===0)return;let i=e.options.axiosRequestConfig,s=n.some(({mediaUpload:q})=>q),a=i||s,c={defaultImport:s?$f:void 0,bindings:i?[At]:[],from:ba.from},u=n.filter(Le),l=u.filter(q=>bi(q,e.options)),f=n.filter(Nt),p={bindings:[...u.length>0?[gt.query]:[],...e.options.infiniteQueries&&l.length>0?[gt.infiniteQuery]:[],...f.length>0?[gt.mutation]:[]],from:gP.from},d=e.options.mutationEffects,m={bindings:[Lf],from:Ab(e.options)},g=d&&f.length>0,y={bindings:[...f.length>0?[hi.optionsType,hi.hookName]:[]],from:wb(e.options)},S=n.filter(q=>q.acl),v=e.options.checkAcl&&S.length>0,b={bindings:[Ir],from:Ib(e.options)},E={bindings:[...u.length>0?[wa.query]:[],...e.options.infiniteQueries&&l.length>0?[wa.infiniteQuery]:[],...f.length>0?[wa.mutation]:[]],from:xb(e.options)},P=n.reduce((q,Z)=>[...q,...Z.parameters],[]),_=Rt({resolver:e,tag:r,zodSchemasAsTypes:Ve(P.map(q=>q.zodSchema).filter(ne))}),A=bb({tag:r,endpoints:n,options:e.options}),I=Da({tag:r,endpoints:S,options:e.options});return ce(e,"queries")({hasAxiosImport:a,axiosImport:c,queryImport:p,hasMutationEffects:d,queryModulesImport:m,hasMutationEffectsImport:g,mutationEffectsImport:y,hasAclCheck:v,aclCheckImport:b,queryTypesImport:E,modelsImports:_,endpointsImports:A,aclImports:I,includeNamespace:e.options.tsNamespaces,tag:r,namespace:V({type:"queries",tag:r,options:e.options}),queriesModuleName:as,queryModuleEnum:Lf,endpoints:n,queryEndpoints:u})}o(AP,"generateQueries");function wP(e){return ce(e,"acl-check")({abilityContextImport:{...lb,from:e.options.abilityContextImportPath},appAbilitiesImport:{bindings:[No],from:Cb(e.options)},errorHandlingImport:{...Ia,from:e.options.errorHandlingImportPath},abilityContext:Df,appAbilities:No,errorHandler:Tr.ErrorHandler,sharedErrorHandler:Tr.SharedErrorHandler,aclCheckHook:Ir,hasGenericAppAbilities:e.options.abilityContextGenericAppAbilities})}o(wP,"generateAclCheck");function IP(e){return ce(e,"app-rest-client")({appRestClientName:ko,baseUrl:e.getBaseUrl()})}o(IP,"generateAppRestClient");function TP({resolver:e,data:t}){let r=[];return t.forEach((i,s)=>{var c;let a=(c=t.get(s))==null?void 0:c.endpoints;!a||a.length===0||r.push({tag:s,namespace:V({type:"queries",tag:s,options:e.options})})}),ce(e,"query-modules")({modules:r})}o(TP,"generateQueryModules");function CP(e){return ce(e,"zod-extended")({zodImport:Sr,zodExtendedNamespace:et.namespace,parse:et.exports.parse,sortExp:et.exports.sortExp,errorHandler:Tr.ErrorHandler,sharedErrorHandler:Tr.SharedErrorHandler,errorHandlingImport:{...Ia,from:e.options.errorHandlingImportPath}})}o(CP,"generateZodExtended");function RP(e,t){return t.options.acl?[{fileName:er({output:t.options.output,fileName:dn(xa)}),content:_P({resolver:t,data:e})},...t.options.checkAcl?[{fileName:er({output:t.options.output,fileName:dn(Aa)}),content:wP(t)}]:[]]:[]}o(RP,"getAclFiles");function NP(e,t){return t.options.mutationEffects?[...qP([pb,Na],t),{fileName:er({output:t.options.output,fileName:dn(Ra)}),content:TP({resolver:t,data:e})}]:[]}o(NP,"getMutationEffectsFiles");function kP(e){return e.options.standalone?[...qP(Object.values(Ta),e),{fileName:er({output:e.options.output,fileName:dn(Ca)}),content:IP(e)}]:[]}o(kP,"getStandaloneFiles");function jP(e,t){return t.options.parseRequestParams?[{fileName:er({output:t.options.output,fileName:dn(ka)}),content:CP(t)}]:[]}o(jP,"getZodExtendedFiles");function qP(e,t){return e.reduce((r,n)=>[...r,pM(n,t)],[])}o(qP,"getAssetFiles");function pM(e,t){let r=dn(e);return{fileName:er({output:t.options.output,fileName:r}),content:lP(r)}}o(pM,"getAssetFile");function MP(e,t){let r=t.standalone&&t.importPath==="ts"?"relative":t.importPath,{resolver:n,data:i}=Ua(e,{...t,importPath:r}),s=[],a=[],c=["models","endpoints","queries",...n.options.acl?["acl"]:[],...n.options.builderConfigs?["configs"]:[]],u={models:xP,endpoints:$P,queries:AP,acl:bP,configs:OP};return i.forEach((l,f)=>{c.forEach(p=>{let d=u[p]({resolver:n,data:i,tag:f});if(d){let m=er({output:t.output,fileName:Ob({tag:f,type:p,options:t})});s.push({fileName:m,content:d}),p==="acl"&&a.push(f)}})}),s.push(...RP(i,n),...NP(i,n),...jP(i,n),...kP(n)),s}o(MP,"generateCodeFromOpenAPIDoc");async function fM({input:e,options:t}){let r={...vf,...t},n=await Kd.default.bundle(e);return await y_(n,r)}o(fM,"getGenerateMetadata");async function dM({input:e,options:t}){let r={...vf,...t},n=await Kd.default.bundle(e);return MP(n,r)}o(dM,"getGenerateFilesData");0&&(module.exports={getGenerateFilesData,getGenerateMetadata});