@povio/openapi-codegen-cli 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,65 +1,65 @@
1
- "use strict";var db=Object.create;var Qn=Object.defineProperty;var hb=Object.getOwnPropertyDescriptor;var mb=Object.getOwnPropertyNames;var gb=Object.getPrototypeOf,yb=Object.prototype.hasOwnProperty;var s=(e,t)=>Qn(e,"name",{value:t,configurable:!0});var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vb=(e,t)=>{for(var r in t)Qn(e,r,{get:t[r],enumerable:!0})},Ap=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mb(t))!yb.call(e,i)&&i!==r&&Qn(e,i,{get:()=>t[i],enumerable:!(n=hb(t,i))||n.enumerable});return e};var Et=(e,t,r)=>(r=e!=null?db(gb(e)):{},Ap(t||!e||!e.__esModule?Qn(r,"default",{value:e,enumerable:!0}):r,e)),_b=e=>Ap(Qn({},"__esModule",{value:!0}),e);var Re=m((ke,kp)=>{"use strict";var po=/^win/.test(process.platform),Sb=/\//g,bb=/^(\w{2,}):\/\//i,Ip=kp.exports,Pb=/~1/g,$b=/~0/g,va=[/\?/g,"%3F",/\#/g,"%23"],_a=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];ke.parse=require("url").parse;ke.resolve=require("url").resolve;ke.cwd=s(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");ke.getProtocol=s(function(t){let r=bb.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");ke.getExtension=s(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");ke.getHash=s(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");ke.stripHash=s(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");ke.isHttp=s(function(t){let r=Ip.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");ke.isFileSystemPath=s(function(t){if(process.browser)return!1;let r=Ip.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");ke.fromFileSystemPath=s(function(t){po&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<va.length;r+=2)t=t.replace(va[r],va[r+1]);return t},"fromFileSystemPath");ke.toFileSystemPath=s(function(t,r){t=decodeURI(t);for(let i=0;i<_a.length;i+=2)t=t.replace(_a[i],_a[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),po&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=po?t:"/"+t)),po&&!n&&(t=t.replace(Sb,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");ke.safePointerToPath=s(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(Pb,"/").replace($b,"~"))},"safePointerToPath")});var ho=m(Jn=>{"use strict";var Rp=require("util"),Ob=Re();Jn.format=Rp.format;Jn.inherits=Rp.inherits;Jn.swaggerParamRegExp=/\{([^/}]+)}/g;var Eb=["get","post","put","delete","patch","options","head","trace"];function Sa(e,t){if(e.url&&e.url.startsWith("/")){let r=Ob.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}s(Sa,"fixServers");function xb(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>Sa(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(o=>{o==="servers"?i[o].map(a=>Sa(a,t)):Eb.includes(o)&&i[o].servers&&i[o].servers.map(a=>Sa(a,t))})})}))}s(xb,"fixOasRelativeServers");Jn.fixOasRelativeServers=xb});var mo=m(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.getDeepKeys=Kr.toJSON=void 0;var wb=["function","symbol","undefined"],Ab=["constructor","prototype","__proto__"],Ib=Object.getPrototypeOf({});function kb(){let e={},t=this;for(let r of Tp(t))if(typeof r=="string"){let n=t[r],i=typeof n;wb.includes(i)||(e[r]=n)}return e}s(kb,"toJSON");Kr.toJSON=kb;function Tp(e,t=[]){let r=[];for(;e&&e!==Ib;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(Ab))n.delete(i);return n}s(Tp,"getDeepKeys");Kr.getDeepKeys=Tp});var ba=m(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.addInspectMethod=Wr.format=void 0;var Np=require("util"),Rb=mo(),Cp=Np.inspect.custom||Symbol.for("nodejs.util.inspect.custom");Wr.format=Np.format;function Tb(e){e[Cp]=Nb}s(Tb,"addInspectMethod");Wr.addInspectMethod=Tb;function Nb(){let e={},t=this;for(let r of Rb.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Cp],e}s(Nb,"inspect")});var Mp=m(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.lazyJoinStacks=st.joinStacks=st.isWritableStack=st.isLazyStack=void 0;var Cb=/\r?\n/,qb=/\bono[ @]/;function jb(e){return!!(e&&e.configurable&&typeof e.get=="function")}s(jb,"isLazyStack");st.isLazyStack=jb;function Mb(e){return!!(!e||e.writable||typeof e.set=="function")}s(Mb,"isWritableStack");st.isWritableStack=Mb;function qp(e,t){let r=jp(e.stack),n=t?t.stack:void 0;return r&&n?r+`
1
+ "use strict";var hb=Object.create;var Qn=Object.defineProperty;var mb=Object.getOwnPropertyDescriptor;var gb=Object.getOwnPropertyNames;var yb=Object.getPrototypeOf,vb=Object.prototype.hasOwnProperty;var s=(e,t)=>Qn(e,"name",{value:t,configurable:!0});var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_b=(e,t)=>{for(var r in t)Qn(e,r,{get:t[r],enumerable:!0})},Ip=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of gb(t))!vb.call(e,i)&&i!==r&&Qn(e,i,{get:()=>t[i],enumerable:!(n=mb(t,i))||n.enumerable});return e};var Et=(e,t,r)=>(r=e!=null?hb(yb(e)):{},Ip(t||!e||!e.__esModule?Qn(r,"default",{value:e,enumerable:!0}):r,e)),Sb=e=>Ip(Qn({},"__esModule",{value:!0}),e);var Re=m((ke,Rp)=>{"use strict";var po=/^win/.test(process.platform),bb=/\//g,Pb=/^(\w{2,}):\/\//i,kp=Rp.exports,$b=/~1/g,Ob=/~0/g,_a=[/\?/g,"%3F",/\#/g,"%23"],Sa=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];ke.parse=require("url").parse;ke.resolve=require("url").resolve;ke.cwd=s(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");ke.getProtocol=s(function(t){let r=Pb.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");ke.getExtension=s(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");ke.getHash=s(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");ke.stripHash=s(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");ke.isHttp=s(function(t){let r=kp.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");ke.isFileSystemPath=s(function(t){if(process.browser)return!1;let r=kp.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");ke.fromFileSystemPath=s(function(t){po&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<_a.length;r+=2)t=t.replace(_a[r],_a[r+1]);return t},"fromFileSystemPath");ke.toFileSystemPath=s(function(t,r){t=decodeURI(t);for(let i=0;i<Sa.length;i+=2)t=t.replace(Sa[i],Sa[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),po&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=po?t:"/"+t)),po&&!n&&(t=t.replace(bb,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");ke.safePointerToPath=s(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace($b,"/").replace(Ob,"~"))},"safePointerToPath")});var ho=m(Jn=>{"use strict";var Tp=require("util"),Eb=Re();Jn.format=Tp.format;Jn.inherits=Tp.inherits;Jn.swaggerParamRegExp=/\{([^/}]+)}/g;var xb=["get","post","put","delete","patch","options","head","trace"];function ba(e,t){if(e.url&&e.url.startsWith("/")){let r=Eb.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}s(ba,"fixServers");function wb(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>ba(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(o=>{o==="servers"?i[o].map(a=>ba(a,t)):xb.includes(o)&&i[o].servers&&i[o].servers.map(a=>ba(a,t))})})}))}s(wb,"fixOasRelativeServers");Jn.fixOasRelativeServers=wb});var mo=m(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.getDeepKeys=Kr.toJSON=void 0;var Ab=["function","symbol","undefined"],Ib=["constructor","prototype","__proto__"],kb=Object.getPrototypeOf({});function Rb(){let e={},t=this;for(let r of Cp(t))if(typeof r=="string"){let n=t[r],i=typeof n;Ab.includes(i)||(e[r]=n)}return e}s(Rb,"toJSON");Kr.toJSON=Rb;function Cp(e,t=[]){let r=[];for(;e&&e!==kb;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(Ib))n.delete(i);return n}s(Cp,"getDeepKeys");Kr.getDeepKeys=Cp});var Pa=m(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.addInspectMethod=Wr.format=void 0;var Np=require("util"),Tb=mo(),qp=Np.inspect.custom||Symbol.for("nodejs.util.inspect.custom");Wr.format=Np.format;function Cb(e){e[qp]=Nb}s(Cb,"addInspectMethod");Wr.addInspectMethod=Cb;function Nb(){let e={},t=this;for(let r of Tb.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[qp],e}s(Nb,"inspect")});var Dp=m(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.lazyJoinStacks=st.joinStacks=st.isWritableStack=st.isLazyStack=void 0;var qb=/\r?\n/,jb=/\bono[ @]/;function Mb(e){return!!(e&&e.configurable&&typeof e.get=="function")}s(Mb,"isLazyStack");st.isLazyStack=Mb;function Db(e){return!!(!e||e.writable||typeof e.set=="function")}s(Db,"isWritableStack");st.isWritableStack=Db;function jp(e,t){let r=Mp(e.stack),n=t?t.stack:void 0;return r&&n?r+`
2
2
 
3
- `+n:r||n}s(qp,"joinStacks");st.joinStacks=qp;function Db(e,t,r){r?Object.defineProperty(t,"stack",{get:s(()=>{let n=e.get.apply(t);return qp({stack:n},r)},"get"),enumerable:!1,configurable:!0}):Lb(t,e)}s(Db,"lazyJoinStacks");st.lazyJoinStacks=Db;function jp(e){if(e){let t=e.split(Cb),r;for(let n=0;n<t.length;n++){let i=t[n];if(qb.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}s(jp,"popStack");function Lb(e,t){Object.defineProperty(e,"stack",{get:s(()=>jp(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}s(Lb,"lazyPopStack")});var Fp=m(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.extendError=void 0;var Dp=ba(),go=Mp(),Lp=mo(),Fb=["name","message","stack"];function Vb(e,t,r){let n=e;return Bb(n,t),t&&typeof t=="object"&&Hb(n,t),n.toJSON=Lp.toJSON,Dp.addInspectMethod&&Dp.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}s(Vb,"extendError");yo.extendError=Vb;function Bb(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");go.isLazyStack(r)?go.lazyJoinStacks(r,e,t):go.isWritableStack(r)&&(e.stack=go.joinStacks(e,t))}s(Bb,"extendStack");function Hb(e,t){let r=Lp.getDeepKeys(t,Fb),n=e,i=t;for(let o of r)if(n[o]===void 0)try{n[o]=i[o]}catch{}}s(Hb,"mergeErrors")});var Vp=m(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.normalizeArgs=Yr.normalizeOptions=void 0;var Ub=ba();function zb(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?Ub.format:typeof e.format=="function"?e.format:!1}}s(zb,"normalizeOptions");Yr.normalizeOptions=zb;function Gb(e,t){let r,n,i,o="";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?o=t.format.apply(void 0,i):o=i.join(" ")),t.concatMessages&&r&&r.message&&(o+=(o?`
5
- `:"")+r.message),{originalError:r,props:n,message:o}}s(Gb,"normalizeArgs");Yr.normalizeArgs=Gb});var $a=m(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.Ono=void 0;var vo=Fp(),Bp=Vp(),Zb=mo(),Kb=Pa;_o.Ono=Kb;function Pa(e,t){t=Bp.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=Bp.normalizeArgs(n,t),u=new e(a);return vo.extendError(u,i,o)}return s(r,"ono"),r[Symbol.species]=e,r}s(Pa,"Ono");Pa.toJSON=s(function(t){return Zb.toJSON.call(t)},"toJSON");Pa.extend=s(function(t,r,n){return n||r instanceof Error?vo.extendError(t,r,n):r?vo.extendError(t,void 0,r):vo.extendError(t)},"extend")});var Hp=m(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.ono=void 0;var dr=$a(),Wb=at;So.ono=Wb;at.error=new dr.Ono(Error);at.eval=new dr.Ono(EvalError);at.range=new dr.Ono(RangeError);at.reference=new dr.Ono(ReferenceError);at.syntax=new dr.Ono(SyntaxError);at.type=new dr.Ono(TypeError);at.uri=new dr.Ono(URIError);var Yb=at;function at(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(Yb))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 at.error.apply(void 0,e)}s(at,"ono")});var zp=m(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});var AC=require("util")});var Ge=m((ze,Qr)=>{"use strict";var Qb=ze&&ze.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:s(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Jb=ze&&ze.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&Qb(t,e,r)};Object.defineProperty(ze,"__esModule",{value:!0});ze.ono=void 0;var Gp=Hp();Object.defineProperty(ze,"ono",{enumerable:!0,get:s(function(){return Gp.ono},"get")});var Xb=$a();Object.defineProperty(ze,"Ono",{enumerable:!0,get:s(function(){return Xb.Ono},"get")});Jb(zp(),ze);ze.default=Gp.ono;typeof Qr=="object"&&typeof Qr.exports=="object"&&(Qr.exports=Object.assign(Qr.exports.default,Qr.exports))});var ti=m(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.regexpCode=q.getEsmExportName=q.getProperty=q.safeStringify=q.stringify=q.strConcat=q.addCodeArg=q.str=q._=q.nil=q._Code=q.Name=q.IDENTIFIER=q._CodeOrName=void 0;var xa=class xa{};s(xa,"_CodeOrName");var Xn=xa;q._CodeOrName=Xn;q.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var wa=class wa extends Xn{constructor(t){if(super(),!q.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}}};s(wa,"Name");var hr=wa;q.Name=hr;var Aa=class Aa extends Xn{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 hr&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s(Aa,"_Code");var je=Aa;q._Code=je;q.nil=new je("");function Zp(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Ea(r,t[n]),r.push(e[++n]);return new je(r)}s(Zp,"_");q._=Zp;var Oa=new je("+");function Kp(e,...t){let r=[ei(e[0])],n=0;for(;n<t.length;)r.push(Oa),Ea(r,t[n]),r.push(Oa,ei(e[++n]));return e2(r),new je(r)}s(Kp,"str");q.str=Kp;function Ea(e,t){t instanceof je?e.push(...t._items):t instanceof hr?e.push(t):e.push(n2(t))}s(Ea,"addCodeArg");q.addCodeArg=Ea;function e2(e){let t=1;for(;t<e.length-1;){if(e[t]===Oa){let r=t2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}s(e2,"optimize");function t2(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof hr||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 hr))return`"${e}${t.slice(1)}`}s(t2,"mergeExprItems");function r2(e,t){return t.emptyStr()?e:e.emptyStr()?t:Kp`${e}${t}`}s(r2,"strConcat");q.strConcat=r2;function n2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ei(Array.isArray(e)?e.join(","):e)}s(n2,"interpolate");function i2(e){return new je(ei(e))}s(i2,"stringify");q.stringify=i2;function ei(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(ei,"safeStringify");q.safeStringify=ei;function o2(e){return typeof e=="string"&&q.IDENTIFIER.test(e)?new je(`.${e}`):Zp`[${e}]`}s(o2,"getProperty");q.getProperty=o2;function s2(e){if(typeof e=="string"&&q.IDENTIFIER.test(e))return new je(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(s2,"getEsmExportName");q.getEsmExportName=s2;function a2(e){return new je(e.toString())}s(a2,"regexpCode");q.regexpCode=a2});var qa=m(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.ValueScope=Ee.ValueScopeName=Ee.Scope=Ee.varKinds=Ee.UsedValueState=void 0;var Oe=ti(),Ra=class Ra extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s(Ra,"ValueError");var Ia=Ra,bo;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(bo||(Ee.UsedValueState=bo={}));Ee.varKinds={const:new Oe.Name("const"),let:new Oe.Name("let"),var:new Oe.Name("var")};var Ta=class Ta{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Oe.Name?t:this.name(t)}name(t){return new Oe.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}}};s(Ta,"Scope");var Po=Ta;Ee.Scope=Po;var Na=class Na extends Oe.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Oe._)`.${new Oe.Name(r)}[${n}]`}};s(Na,"ValueScopeName");var $o=Na;Ee.ValueScopeName=$o;var u2=(0,Oe._)`\n`,Ca=class Ca extends Po{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?u2:Oe.nil}}get(){return this._scope}name(t){return new $o(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:o}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,u=this._values[o];if(u){let p=u.get(a);if(p)return p}else u=this._values[o]=new Map;u.set(a,i);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:o,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,Oe._)`${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 o=Oe.nil;for(let a in t){let u=t[a];if(!u)continue;let c=n[a]=n[a]||new Map;u.forEach(l=>{if(c.has(l))return;c.set(l,bo.Started);let p=r(l);if(p){let f=this.opts.es5?Ee.varKinds.var:Ee.varKinds.const;o=(0,Oe._)`${o}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))o=(0,Oe._)`${o}${p}${this.opts._n}`;else throw new Ia(l);c.set(l,bo.Completed)})}return o}};s(Ca,"ValueScope");var ka=Ca;Ee.ValueScope=ka});var A=m(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.or=k.and=k.not=k.CodeGen=k.operators=k.varKinds=k.ValueScopeName=k.ValueScope=k.Scope=k.Name=k.regexpCode=k.stringify=k.getProperty=k.nil=k.strConcat=k.str=k._=void 0;var N=ti(),Ze=qa(),Dt=ti();Object.defineProperty(k,"_",{enumerable:!0,get:s(function(){return Dt._},"get")});Object.defineProperty(k,"str",{enumerable:!0,get:s(function(){return Dt.str},"get")});Object.defineProperty(k,"strConcat",{enumerable:!0,get:s(function(){return Dt.strConcat},"get")});Object.defineProperty(k,"nil",{enumerable:!0,get:s(function(){return Dt.nil},"get")});Object.defineProperty(k,"getProperty",{enumerable:!0,get:s(function(){return Dt.getProperty},"get")});Object.defineProperty(k,"stringify",{enumerable:!0,get:s(function(){return Dt.stringify},"get")});Object.defineProperty(k,"regexpCode",{enumerable:!0,get:s(function(){return Dt.regexpCode},"get")});Object.defineProperty(k,"Name",{enumerable:!0,get:s(function(){return Dt.Name},"get")});var wo=qa();Object.defineProperty(k,"Scope",{enumerable:!0,get:s(function(){return wo.Scope},"get")});Object.defineProperty(k,"ValueScope",{enumerable:!0,get:s(function(){return wo.ValueScope},"get")});Object.defineProperty(k,"ValueScopeName",{enumerable:!0,get:s(function(){return wo.ValueScopeName},"get")});Object.defineProperty(k,"varKinds",{enumerable:!0,get:s(function(){return wo.varKinds},"get")});k.operators={GT:new N._Code(">"),GTE:new N._Code(">="),LT:new N._Code("<"),LTE:new N._Code("<="),EQ:new N._Code("==="),NEQ:new N._Code("!=="),NOT:new N._Code("!"),OR:new N._Code("||"),AND:new N._Code("&&"),ADD:new N._Code("+")};var Ka=class Ka{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(Ka,"Node");var xt=Ka,Wa=class Wa extends xt{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Ze.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=en(this.rhs,t,r)),this}get names(){return this.rhs instanceof N._CodeOrName?this.rhs.names:{}}};s(Wa,"Def");var ja=Wa,Ya=class Ya extends xt{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 N.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=en(this.rhs,t,r),this}get names(){let t=this.lhs instanceof N.Name?{}:{...this.lhs.names};return xo(t,this.rhs)}};s(Ya,"Assign");var Oo=Ya,Qa=class Qa extends Oo{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(Qa,"AssignOp");var Ma=Qa,Ja=class Ja extends xt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(Ja,"Label");var Da=Ja,Xa=class Xa extends xt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(Xa,"Break");var La=Xa,eu=class eu extends xt{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(eu,"Throw");var Fa=eu,tu=class tu extends xt{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=en(this.code,t,r),this}get names(){return this.code instanceof N._CodeOrName?this.code.names:{}}};s(tu,"AnyCode");var Va=tu,ru=class ru extends xt{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 o=n[i];o.optimizeNames(t,r)||(c2(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>yr(t,r.names),{})}};s(ru,"ParentNode");var ri=ru,nu=class nu extends ri{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(nu,"BlockNode");var wt=nu,iu=class iu extends ri{};s(iu,"Root");var Ba=iu,ou=class ou extends wt{};s(ou,"Else");var Xr=ou;Xr.kind="else";var Jr=class Jr extends wt{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 Xr(n):n}if(r)return t===!1?r instanceof Jr?r:r.nodes:this.nodes.length?this:new Jr(Wp(t),r instanceof Jr?[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=en(this.condition,t,r),this}get names(){let t=super.names;return xo(t,this.condition),this.else&&yr(t,this.else.names),t}};s(Jr,"If");var mr=Jr;mr.kind="if";var su=class su extends wt{};s(su,"For");var gr=su;gr.kind="for";var au=class au extends gr{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=en(this.iteration,t,r),this}get names(){return yr(super.names,this.iteration.names)}};s(au,"ForLoop");var Ha=au,uu=class uu extends gr{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Ze.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=xo(super.names,this.from);return xo(t,this.to)}};s(uu,"ForRange");var Ua=uu,cu=class cu extends gr{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=en(this.iterable,t,r),this}get names(){return yr(super.names,this.iterable.names)}};s(cu,"ForIter");var Eo=cu,lu=class lu extends wt{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)}};s(lu,"Func");var ni=lu;ni.kind="func";var fu=class fu extends ri{render(t){return"return "+super.render(t)}};s(fu,"Return");var ii=fu;ii.kind="return";var pu=class pu extends wt{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&&yr(t,this.catch.names),this.finally&&yr(t,this.finally.names),t}};s(pu,"Try");var za=pu,du=class du extends wt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(du,"Catch");var oi=du;oi.kind="catch";var hu=class hu extends wt{render(t){return"finally"+super.render(t)}};s(hu,"Finally");var si=hu;si.kind="finally";var mu=class mu{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
6
- `:""},this._extScope=t,this._scope=new Ze.Scope({parent:t}),this._nodes=[new Ba]}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 o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new ja(t,o,n)),o}const(t,r,n){return this._def(Ze.varKinds.const,t,r,n)}let(t,r,n){return this._def(Ze.varKinds.let,t,r,n)}var(t,r,n){return this._def(Ze.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Oo(t,r,n))}add(t,r){return this._leafNode(new Ma(t,k.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==N.nil&&this._leafNode(new Va(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,N.addCodeArg)(r,i));return r.push("}"),new N._Code(r)}if(t,r,n){if(this._blockNode(new mr(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 mr(t))}else(){return this._elseNode(new Xr)}endIf(){return this._endBlockNode(mr,Xr)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Ha(t),r)}forRange(t,r,n,i,o=this.opts.es5?Ze.varKinds.var:Ze.varKinds.let){let a=this._scope.toName(t);return this._for(new Ua(o,a,r,n),()=>i(a))}forOf(t,r,n,i=Ze.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof N.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,N._)`${a}.length`,u=>{this.var(o,(0,N._)`${a}[${u}]`),n(o)})}return this._for(new Eo("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?Ze.varKinds.var:Ze.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,N._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new Eo("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(gr)}label(t){return this._leafNode(new Da(t))}break(t){return this._leafNode(new La(t))}return(t){let r=new ii;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ii)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new za;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new oi(o),r(o)}return n&&(this._currNode=i.finally=new si,this.code(n)),this._endBlockNode(oi,si)}throw(t){return this._leafNode(new Fa(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=N.nil,n,i){return this._blockNode(new ni(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(ni)}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 mr))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}};s(mu,"CodeGen");var Ga=mu;k.CodeGen=Ga;function yr(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(yr,"addNames");function xo(e,t){return t instanceof N._CodeOrName?yr(e,t.names):e}s(xo,"addExprNames");function en(e,t,r){if(e instanceof N.Name)return n(e);if(!i(e))return e;return new N._Code(e._items.reduce((o,a)=>(a instanceof N.Name&&(a=n(a)),a instanceof N._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=r[o.str];return a===void 0||t[o.str]!==1?o:(delete t[o.str],a)}function i(o){return o instanceof N._Code&&o._items.some(a=>a instanceof N.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(en,"optimizeExpr");function c2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(c2,"subtractNames");function Wp(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,N._)`!${Za(e)}`}s(Wp,"not");k.not=Wp;var l2=Yp(k.operators.AND);function f2(...e){return e.reduce(l2)}s(f2,"and");k.and=f2;var p2=Yp(k.operators.OR);function d2(...e){return e.reduce(p2)}s(d2,"or");k.or=d2;function Yp(e){return(t,r)=>t===N.nil?r:r===N.nil?t:(0,N._)`${Za(t)} ${e} ${Za(r)}`}s(Yp,"mappend");function Za(e){return e instanceof N.Name?e:(0,N._)`(${e})`}s(Za,"par")});var T=m(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.checkStrictMode=R.getErrorPath=R.Type=R.useFunc=R.setEvaluated=R.evaluatedPropsToName=R.mergeEvaluated=R.eachItem=R.unescapeJsonPointer=R.escapeJsonPointer=R.escapeFragment=R.unescapeFragment=R.schemaRefOrVal=R.schemaHasRulesButRef=R.schemaHasRules=R.checkUnknownRules=R.alwaysValidSchema=R.toHash=void 0;var F=A(),h2=ti();function m2(e){let t={};for(let r of e)t[r]=!0;return t}s(m2,"toHash");R.toHash=m2;function g2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Xp(e,t),!ed(t,e.self.RULES.all))}s(g2,"alwaysValidSchema");R.alwaysValidSchema=g2;function Xp(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||nd(e,`unknown keyword: "${o}"`)}s(Xp,"checkUnknownRules");R.checkUnknownRules=Xp;function ed(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s(ed,"schemaHasRules");R.schemaHasRules=ed;function y2(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}s(y2,"schemaHasRulesButRef");R.schemaHasRulesButRef=y2;function v2({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,F._)`${r}`}return(0,F._)`${e}${t}${(0,F.getProperty)(n)}`}s(v2,"schemaRefOrVal");R.schemaRefOrVal=v2;function _2(e){return td(decodeURIComponent(e))}s(_2,"unescapeFragment");R.unescapeFragment=_2;function S2(e){return encodeURIComponent(yu(e))}s(S2,"escapeFragment");R.escapeFragment=S2;function yu(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(yu,"escapeJsonPointer");R.escapeJsonPointer=yu;function td(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(td,"unescapeJsonPointer");R.unescapeJsonPointer=td;function b2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(b2,"eachItem");R.eachItem=b2;function Qp({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,u)=>{let c=a===void 0?o:a instanceof F.Name?(o instanceof F.Name?e(i,o,a):t(i,o,a),a):o instanceof F.Name?(t(i,a,o),o):r(o,a);return u===F.Name&&!(c instanceof F.Name)?n(i,c):c}}s(Qp,"makeMergeEvaluated");R.mergeEvaluated={props:Qp({mergeNames:s((e,t,r)=>e.if((0,F._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,F._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,F._)`${r} || {}`).code((0,F._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,F._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,F._)`${r} || {}`),vu(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:rd}),items:Qp({mergeNames:s((e,t,r)=>e.if((0,F._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,F._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,F._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,F._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:s((e,t)=>e.var("items",t),"resultToName")})};function rd(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,F._)`{}`);return t!==void 0&&vu(e,r,t),r}s(rd,"evaluatedPropsToName");R.evaluatedPropsToName=rd;function vu(e,t,r){Object.keys(r).forEach(n=>e.assign((0,F._)`${t}${(0,F.getProperty)(n)}`,!0))}s(vu,"setEvaluated");R.setEvaluated=vu;var Jp={};function P2(e,t){return e.scopeValue("func",{ref:t,code:Jp[t.code]||(Jp[t.code]=new h2._Code(t.code))})}s(P2,"useFunc");R.useFunc=P2;var gu;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(gu||(R.Type=gu={}));function $2(e,t,r){if(e instanceof F.Name){let n=t===gu.Num;return r?n?(0,F._)`"[" + ${e} + "]"`:(0,F._)`"['" + ${e} + "']"`:n?(0,F._)`"/" + ${e}`:(0,F._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,F.getProperty)(e).toString():"/"+yu(e)}s($2,"getErrorPath");R.getErrorPath=$2;function nd(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}s(nd,"checkStrictMode");R.checkStrictMode=nd});var Me=m(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});var ce=A(),O2={data:new ce.Name("data"),valCxt:new ce.Name("valCxt"),instancePath:new ce.Name("instancePath"),parentData:new ce.Name("parentData"),parentDataProperty:new ce.Name("parentDataProperty"),rootData:new ce.Name("rootData"),dynamicAnchors:new ce.Name("dynamicAnchors"),vErrors:new ce.Name("vErrors"),errors:new ce.Name("errors"),this:new ce.Name("this"),self:new ce.Name("self"),scope:new ce.Name("scope"),json:new ce.Name("json"),jsonPos:new ce.Name("jsonPos"),jsonLen:new ce.Name("jsonLen"),jsonPart:new ce.Name("jsonPart")};_u.default=O2});var ai=m(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.extendErrors=le.resetErrorsCount=le.reportExtraError=le.reportError=le.keyword$DataError=le.keywordError=void 0;var C=A(),Ao=T(),ye=Me();le.keywordError={message:s(({keyword:e})=>(0,C.str)`must pass "${e}" keyword validation`,"message")};le.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,C.str)`"${e}" keyword must be ${t} ($data)`:(0,C.str)`"${e}" keyword is invalid ($data)`,"message")};function E2(e,t=le.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:u}=i,c=sd(e,t,r);n??(a||u)?id(o,c):od(i,(0,C._)`[${c}]`)}s(E2,"reportError");le.reportError=E2;function x2(e,t=le.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,u=sd(e,t,r);id(i,u),o||a||od(n,ye.default.vErrors)}s(x2,"reportExtraError");le.reportExtraError=x2;function w2(e,t){e.assign(ye.default.errors,t),e.if((0,C._)`${ye.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,C._)`${ye.default.vErrors}.length`,t),()=>e.assign(ye.default.vErrors,null)))}s(w2,"resetErrorsCount");le.resetErrorsCount=w2;function A2({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,ye.default.errors,u=>{e.const(a,(0,C._)`${ye.default.vErrors}[${u}]`),e.if((0,C._)`${a}.instancePath === undefined`,()=>e.assign((0,C._)`${a}.instancePath`,(0,C.strConcat)(ye.default.instancePath,o.errorPath))),e.assign((0,C._)`${a}.schemaPath`,(0,C.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,C._)`${a}.schema`,r),e.assign((0,C._)`${a}.data`,n))})}s(A2,"extendErrors");le.extendErrors=A2;function id(e,t){let r=e.const("err",t);e.if((0,C._)`${ye.default.vErrors} === null`,()=>e.assign(ye.default.vErrors,(0,C._)`[${r}]`),(0,C._)`${ye.default.vErrors}.push(${r})`),e.code((0,C._)`${ye.default.errors}++`)}s(id,"addError");function od(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,C._)`new ${e.ValidationError}(${t})`):(r.assign((0,C._)`${n}.errors`,t),r.return(!1))}s(od,"returnErrors");var vr={keyword:new C.Name("keyword"),schemaPath:new C.Name("schemaPath"),params:new C.Name("params"),propertyName:new C.Name("propertyName"),message:new C.Name("message"),schema:new C.Name("schema"),parentSchema:new C.Name("parentSchema")};function sd(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,C._)`{}`:I2(e,t,r)}s(sd,"errorObjectCode");function I2(e,t,r={}){let{gen:n,it:i}=e,o=[k2(i,r),R2(e,r)];return T2(e,t,o),n.object(...o)}s(I2,"errorObject");function k2({errorPath:e},{instancePath:t}){let r=t?(0,C.str)`${e}${(0,Ao.getErrorPath)(t,Ao.Type.Str)}`:e;return[ye.default.instancePath,(0,C.strConcat)(ye.default.instancePath,r)]}s(k2,"errorInstancePath");function R2({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,C.str)`${t}/${e}`;return r&&(i=(0,C.str)`${i}${(0,Ao.getErrorPath)(r,Ao.Type.Str)}`),[vr.schemaPath,i]}s(R2,"errorSchemaPath");function T2(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:a,it:u}=e,{opts:c,propertyName:l,topSchemaRef:p,schemaPath:f}=u;n.push([vr.keyword,i],[vr.params,typeof t=="function"?t(e):t||(0,C._)`{}`]),c.messages&&n.push([vr.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([vr.schema,a],[vr.parentSchema,(0,C._)`${p}${f}`],[ye.default.data,o]),l&&n.push([vr.propertyName,l])}s(T2,"extraErrorProps")});var ud=m(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.boolOrEmptySchema=tn.topBoolOrEmptySchema=void 0;var N2=ai(),C2=A(),q2=Me(),j2={message:"boolean schema is false"};function M2(e){let{gen:t,schema:r,validateName:n}=e;r===!1?ad(e,!1):typeof r=="object"&&r.$async===!0?t.return(q2.default.data):(t.assign((0,C2._)`${n}.errors`,null),t.return(!0))}s(M2,"topBoolOrEmptySchema");tn.topBoolOrEmptySchema=M2;function D2(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),ad(e)):r.var(t,!0)}s(D2,"boolOrEmptySchema");tn.boolOrEmptySchema=D2;function ad(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,N2.reportError)(i,j2,void 0,t)}s(ad,"falseSchemaError")});var Su=m(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.getRules=rn.isJSONType=void 0;var L2=["string","number","integer","boolean","null","object","array"],F2=new Set(L2);function V2(e){return typeof e=="string"&&F2.has(e)}s(V2,"isJSONType");rn.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:{}}}s(B2,"getRules");rn.getRules=B2});var bu=m(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.shouldUseRule=Lt.shouldUseGroup=Lt.schemaHasRulesForType=void 0;function H2({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&cd(e,n)}s(H2,"schemaHasRulesForType");Lt.schemaHasRulesForType=H2;function cd(e,t){return t.rules.some(r=>ld(e,r))}s(cd,"shouldUseGroup");Lt.shouldUseGroup=cd;function ld(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))}s(ld,"shouldUseRule");Lt.shouldUseRule=ld});var ui=m(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.reportTypeError=fe.checkDataTypes=fe.checkDataType=fe.coerceAndCheckDataType=fe.getJSONTypes=fe.getSchemaTypes=fe.DataType=void 0;var U2=Su(),z2=bu(),G2=ai(),I=A(),fd=T(),nn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(nn||(fe.DataType=nn={}));function Z2(e){let t=pd(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}s(Z2,"getSchemaTypes");fe.getSchemaTypes=Z2;function pd(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(U2.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(pd,"getJSONTypes");fe.getJSONTypes=pd;function K2(e,t){let{gen:r,data:n,opts:i}=e,o=W2(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,z2.schemaHasRulesForType)(e,t[0]));if(a){let u=$u(t,n,i.strictNumbers,nn.Wrong);r.if(u,()=>{o.length?Y2(e,t,o):Ou(e)})}return a}s(K2,"coerceAndCheckDataType");fe.coerceAndCheckDataType=K2;var dd=new Set(["string","number","integer","boolean","null"]);function W2(e,t){return t?e.filter(r=>dd.has(r)||t==="array"&&r==="array"):[]}s(W2,"coerceToTypes");function Y2(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,I._)`typeof ${i}`),u=n.let("coerced",(0,I._)`undefined`);o.coerceTypes==="array"&&n.if((0,I._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,I._)`${i}[0]`).assign(a,(0,I._)`typeof ${i}`).if($u(t,i,o.strictNumbers),()=>n.assign(u,i))),n.if((0,I._)`${u} !== undefined`);for(let l of r)(dd.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),Ou(e),n.endIf(),n.if((0,I._)`${u} !== undefined`,()=>{n.assign(i,u),Q2(e,u)});function c(l){switch(l){case"string":n.elseIf((0,I._)`${a} == "number" || ${a} == "boolean"`).assign(u,(0,I._)`"" + ${i}`).elseIf((0,I._)`${i} === null`).assign(u,(0,I._)`""`);return;case"number":n.elseIf((0,I._)`${a} == "boolean" || ${i} === null
3
+ `+n:r||n}s(jp,"joinStacks");st.joinStacks=jp;function Lb(e,t,r){r?Object.defineProperty(t,"stack",{get:s(()=>{let n=e.get.apply(t);return jp({stack:n},r)},"get"),enumerable:!1,configurable:!0}):Fb(t,e)}s(Lb,"lazyJoinStacks");st.lazyJoinStacks=Lb;function Mp(e){if(e){let t=e.split(qb),r;for(let n=0;n<t.length;n++){let i=t[n];if(jb.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}s(Mp,"popStack");function Fb(e,t){Object.defineProperty(e,"stack",{get:s(()=>Mp(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}s(Fb,"lazyPopStack")});var Vp=m(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.extendError=void 0;var Lp=Pa(),go=Dp(),Fp=mo(),Vb=["name","message","stack"];function Bb(e,t,r){let n=e;return Hb(n,t),t&&typeof t=="object"&&Ub(n,t),n.toJSON=Fp.toJSON,Lp.addInspectMethod&&Lp.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}s(Bb,"extendError");yo.extendError=Bb;function Hb(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");go.isLazyStack(r)?go.lazyJoinStacks(r,e,t):go.isWritableStack(r)&&(e.stack=go.joinStacks(e,t))}s(Hb,"extendStack");function Ub(e,t){let r=Fp.getDeepKeys(t,Vb),n=e,i=t;for(let o of r)if(n[o]===void 0)try{n[o]=i[o]}catch{}}s(Ub,"mergeErrors")});var Bp=m(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.normalizeArgs=Yr.normalizeOptions=void 0;var zb=Pa();function Gb(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?zb.format:typeof e.format=="function"?e.format:!1}}s(Gb,"normalizeOptions");Yr.normalizeOptions=Gb;function Zb(e,t){let r,n,i,o="";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?o=t.format.apply(void 0,i):o=i.join(" ")),t.concatMessages&&r&&r.message&&(o+=(o?`
5
+ `:"")+r.message),{originalError:r,props:n,message:o}}s(Zb,"normalizeArgs");Yr.normalizeArgs=Zb});var Oa=m(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.Ono=void 0;var vo=Vp(),Hp=Bp(),Kb=mo(),Wb=$a;_o.Ono=Wb;function $a(e,t){t=Hp.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=Hp.normalizeArgs(n,t),u=new e(a);return vo.extendError(u,i,o)}return s(r,"ono"),r[Symbol.species]=e,r}s($a,"Ono");$a.toJSON=s(function(t){return Kb.toJSON.call(t)},"toJSON");$a.extend=s(function(t,r,n){return n||r instanceof Error?vo.extendError(t,r,n):r?vo.extendError(t,void 0,r):vo.extendError(t)},"extend")});var Up=m(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.ono=void 0;var dr=Oa(),Yb=at;So.ono=Yb;at.error=new dr.Ono(Error);at.eval=new dr.Ono(EvalError);at.range=new dr.Ono(RangeError);at.reference=new dr.Ono(ReferenceError);at.syntax=new dr.Ono(SyntaxError);at.type=new dr.Ono(TypeError);at.uri=new dr.Ono(URIError);var Qb=at;function at(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(Qb))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 at.error.apply(void 0,e)}s(at,"ono")});var Gp=m(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var IN=require("util")});var Ge=m((ze,Qr)=>{"use strict";var Jb=ze&&ze.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:s(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Xb=ze&&ze.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&Jb(t,e,r)};Object.defineProperty(ze,"__esModule",{value:!0});ze.ono=void 0;var Zp=Up();Object.defineProperty(ze,"ono",{enumerable:!0,get:s(function(){return Zp.ono},"get")});var e2=Oa();Object.defineProperty(ze,"Ono",{enumerable:!0,get:s(function(){return e2.Ono},"get")});Xb(Gp(),ze);ze.default=Zp.ono;typeof Qr=="object"&&typeof Qr.exports=="object"&&(Qr.exports=Object.assign(Qr.exports.default,Qr.exports))});var ti=m(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.regexpCode=q.getEsmExportName=q.getProperty=q.safeStringify=q.stringify=q.strConcat=q.addCodeArg=q.str=q._=q.nil=q._Code=q.Name=q.IDENTIFIER=q._CodeOrName=void 0;var wa=class wa{};s(wa,"_CodeOrName");var Xn=wa;q._CodeOrName=Xn;q.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Aa=class Aa extends Xn{constructor(t){if(super(),!q.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}}};s(Aa,"Name");var hr=Aa;q.Name=hr;var Ia=class Ia extends Xn{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 hr&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s(Ia,"_Code");var je=Ia;q._Code=je;q.nil=new je("");function Kp(e,...t){let r=[e[0]],n=0;for(;n<t.length;)xa(r,t[n]),r.push(e[++n]);return new je(r)}s(Kp,"_");q._=Kp;var Ea=new je("+");function Wp(e,...t){let r=[ei(e[0])],n=0;for(;n<t.length;)r.push(Ea),xa(r,t[n]),r.push(Ea,ei(e[++n]));return t2(r),new je(r)}s(Wp,"str");q.str=Wp;function xa(e,t){t instanceof je?e.push(...t._items):t instanceof hr?e.push(t):e.push(i2(t))}s(xa,"addCodeArg");q.addCodeArg=xa;function t2(e){let t=1;for(;t<e.length-1;){if(e[t]===Ea){let r=r2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}s(t2,"optimize");function r2(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof hr||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 hr))return`"${e}${t.slice(1)}`}s(r2,"mergeExprItems");function n2(e,t){return t.emptyStr()?e:e.emptyStr()?t:Wp`${e}${t}`}s(n2,"strConcat");q.strConcat=n2;function i2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ei(Array.isArray(e)?e.join(","):e)}s(i2,"interpolate");function o2(e){return new je(ei(e))}s(o2,"stringify");q.stringify=o2;function ei(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(ei,"safeStringify");q.safeStringify=ei;function s2(e){return typeof e=="string"&&q.IDENTIFIER.test(e)?new je(`.${e}`):Kp`[${e}]`}s(s2,"getProperty");q.getProperty=s2;function a2(e){if(typeof e=="string"&&q.IDENTIFIER.test(e))return new je(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(a2,"getEsmExportName");q.getEsmExportName=a2;function u2(e){return new je(e.toString())}s(u2,"regexpCode");q.regexpCode=u2});var ja=m(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.ValueScope=Ee.ValueScopeName=Ee.Scope=Ee.varKinds=Ee.UsedValueState=void 0;var Oe=ti(),Ta=class Ta extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s(Ta,"ValueError");var ka=Ta,bo;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(bo||(Ee.UsedValueState=bo={}));Ee.varKinds={const:new Oe.Name("const"),let:new Oe.Name("let"),var:new Oe.Name("var")};var Ca=class Ca{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Oe.Name?t:this.name(t)}name(t){return new Oe.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}}};s(Ca,"Scope");var Po=Ca;Ee.Scope=Po;var Na=class Na extends Oe.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Oe._)`.${new Oe.Name(r)}[${n}]`}};s(Na,"ValueScopeName");var $o=Na;Ee.ValueScopeName=$o;var c2=(0,Oe._)`\n`,qa=class qa extends Po{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?c2:Oe.nil}}get(){return this._scope}name(t){return new $o(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:o}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,u=this._values[o];if(u){let p=u.get(a);if(p)return p}else u=this._values[o]=new Map;u.set(a,i);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:o,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,Oe._)`${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 o=Oe.nil;for(let a in t){let u=t[a];if(!u)continue;let c=n[a]=n[a]||new Map;u.forEach(l=>{if(c.has(l))return;c.set(l,bo.Started);let p=r(l);if(p){let f=this.opts.es5?Ee.varKinds.var:Ee.varKinds.const;o=(0,Oe._)`${o}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))o=(0,Oe._)`${o}${p}${this.opts._n}`;else throw new ka(l);c.set(l,bo.Completed)})}return o}};s(qa,"ValueScope");var Ra=qa;Ee.ValueScope=Ra});var A=m(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.or=k.and=k.not=k.CodeGen=k.operators=k.varKinds=k.ValueScopeName=k.ValueScope=k.Scope=k.Name=k.regexpCode=k.stringify=k.getProperty=k.nil=k.strConcat=k.str=k._=void 0;var C=ti(),Ze=ja(),Lt=ti();Object.defineProperty(k,"_",{enumerable:!0,get:s(function(){return Lt._},"get")});Object.defineProperty(k,"str",{enumerable:!0,get:s(function(){return Lt.str},"get")});Object.defineProperty(k,"strConcat",{enumerable:!0,get:s(function(){return Lt.strConcat},"get")});Object.defineProperty(k,"nil",{enumerable:!0,get:s(function(){return Lt.nil},"get")});Object.defineProperty(k,"getProperty",{enumerable:!0,get:s(function(){return Lt.getProperty},"get")});Object.defineProperty(k,"stringify",{enumerable:!0,get:s(function(){return Lt.stringify},"get")});Object.defineProperty(k,"regexpCode",{enumerable:!0,get:s(function(){return Lt.regexpCode},"get")});Object.defineProperty(k,"Name",{enumerable:!0,get:s(function(){return Lt.Name},"get")});var wo=ja();Object.defineProperty(k,"Scope",{enumerable:!0,get:s(function(){return wo.Scope},"get")});Object.defineProperty(k,"ValueScope",{enumerable:!0,get:s(function(){return wo.ValueScope},"get")});Object.defineProperty(k,"ValueScopeName",{enumerable:!0,get:s(function(){return wo.ValueScopeName},"get")});Object.defineProperty(k,"varKinds",{enumerable:!0,get:s(function(){return wo.varKinds},"get")});k.operators={GT:new C._Code(">"),GTE:new C._Code(">="),LT:new C._Code("<"),LTE:new C._Code("<="),EQ:new C._Code("==="),NEQ:new C._Code("!=="),NOT:new C._Code("!"),OR:new C._Code("||"),AND:new C._Code("&&"),ADD:new C._Code("+")};var Wa=class Wa{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(Wa,"Node");var xt=Wa,Ya=class Ya extends xt{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Ze.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=en(this.rhs,t,r)),this}get names(){return this.rhs instanceof C._CodeOrName?this.rhs.names:{}}};s(Ya,"Def");var Ma=Ya,Qa=class Qa extends xt{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 C.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=en(this.rhs,t,r),this}get names(){let t=this.lhs instanceof C.Name?{}:{...this.lhs.names};return xo(t,this.rhs)}};s(Qa,"Assign");var Oo=Qa,Ja=class Ja extends Oo{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(Ja,"AssignOp");var Da=Ja,Xa=class Xa extends xt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(Xa,"Label");var La=Xa,eu=class eu extends xt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(eu,"Break");var Fa=eu,tu=class tu extends xt{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(tu,"Throw");var Va=tu,ru=class ru extends xt{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=en(this.code,t,r),this}get names(){return this.code instanceof C._CodeOrName?this.code.names:{}}};s(ru,"AnyCode");var Ba=ru,nu=class nu extends xt{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 o=n[i];o.optimizeNames(t,r)||(l2(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>yr(t,r.names),{})}};s(nu,"ParentNode");var ri=nu,iu=class iu extends ri{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(iu,"BlockNode");var wt=iu,ou=class ou extends ri{};s(ou,"Root");var Ha=ou,su=class su extends wt{};s(su,"Else");var Xr=su;Xr.kind="else";var Jr=class Jr extends wt{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 Xr(n):n}if(r)return t===!1?r instanceof Jr?r:r.nodes:this.nodes.length?this:new Jr(Yp(t),r instanceof Jr?[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=en(this.condition,t,r),this}get names(){let t=super.names;return xo(t,this.condition),this.else&&yr(t,this.else.names),t}};s(Jr,"If");var mr=Jr;mr.kind="if";var au=class au extends wt{};s(au,"For");var gr=au;gr.kind="for";var uu=class uu extends gr{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=en(this.iteration,t,r),this}get names(){return yr(super.names,this.iteration.names)}};s(uu,"ForLoop");var Ua=uu,cu=class cu extends gr{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Ze.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=xo(super.names,this.from);return xo(t,this.to)}};s(cu,"ForRange");var za=cu,lu=class lu extends gr{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=en(this.iterable,t,r),this}get names(){return yr(super.names,this.iterable.names)}};s(lu,"ForIter");var Eo=lu,fu=class fu extends wt{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)}};s(fu,"Func");var ni=fu;ni.kind="func";var pu=class pu extends ri{render(t){return"return "+super.render(t)}};s(pu,"Return");var ii=pu;ii.kind="return";var du=class du extends wt{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&&yr(t,this.catch.names),this.finally&&yr(t,this.finally.names),t}};s(du,"Try");var Ga=du,hu=class hu extends wt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(hu,"Catch");var oi=hu;oi.kind="catch";var mu=class mu extends wt{render(t){return"finally"+super.render(t)}};s(mu,"Finally");var si=mu;si.kind="finally";var gu=class gu{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
6
+ `:""},this._extScope=t,this._scope=new Ze.Scope({parent:t}),this._nodes=[new Ha]}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 o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new Ma(t,o,n)),o}const(t,r,n){return this._def(Ze.varKinds.const,t,r,n)}let(t,r,n){return this._def(Ze.varKinds.let,t,r,n)}var(t,r,n){return this._def(Ze.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Oo(t,r,n))}add(t,r){return this._leafNode(new Da(t,k.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==C.nil&&this._leafNode(new Ba(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,C.addCodeArg)(r,i));return r.push("}"),new C._Code(r)}if(t,r,n){if(this._blockNode(new mr(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 mr(t))}else(){return this._elseNode(new Xr)}endIf(){return this._endBlockNode(mr,Xr)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Ua(t),r)}forRange(t,r,n,i,o=this.opts.es5?Ze.varKinds.var:Ze.varKinds.let){let a=this._scope.toName(t);return this._for(new za(o,a,r,n),()=>i(a))}forOf(t,r,n,i=Ze.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof C.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,C._)`${a}.length`,u=>{this.var(o,(0,C._)`${a}[${u}]`),n(o)})}return this._for(new Eo("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?Ze.varKinds.var:Ze.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,C._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new Eo("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(gr)}label(t){return this._leafNode(new La(t))}break(t){return this._leafNode(new Fa(t))}return(t){let r=new ii;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ii)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Ga;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new oi(o),r(o)}return n&&(this._currNode=i.finally=new si,this.code(n)),this._endBlockNode(oi,si)}throw(t){return this._leafNode(new Va(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=C.nil,n,i){return this._blockNode(new ni(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(ni)}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 mr))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}};s(gu,"CodeGen");var Za=gu;k.CodeGen=Za;function yr(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(yr,"addNames");function xo(e,t){return t instanceof C._CodeOrName?yr(e,t.names):e}s(xo,"addExprNames");function en(e,t,r){if(e instanceof C.Name)return n(e);if(!i(e))return e;return new C._Code(e._items.reduce((o,a)=>(a instanceof C.Name&&(a=n(a)),a instanceof C._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=r[o.str];return a===void 0||t[o.str]!==1?o:(delete t[o.str],a)}function i(o){return o instanceof C._Code&&o._items.some(a=>a instanceof C.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(en,"optimizeExpr");function l2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(l2,"subtractNames");function Yp(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,C._)`!${Ka(e)}`}s(Yp,"not");k.not=Yp;var f2=Qp(k.operators.AND);function p2(...e){return e.reduce(f2)}s(p2,"and");k.and=p2;var d2=Qp(k.operators.OR);function h2(...e){return e.reduce(d2)}s(h2,"or");k.or=h2;function Qp(e){return(t,r)=>t===C.nil?r:r===C.nil?t:(0,C._)`${Ka(t)} ${e} ${Ka(r)}`}s(Qp,"mappend");function Ka(e){return e instanceof C.Name?e:(0,C._)`(${e})`}s(Ka,"par")});var T=m(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.checkStrictMode=R.getErrorPath=R.Type=R.useFunc=R.setEvaluated=R.evaluatedPropsToName=R.mergeEvaluated=R.eachItem=R.unescapeJsonPointer=R.escapeJsonPointer=R.escapeFragment=R.unescapeFragment=R.schemaRefOrVal=R.schemaHasRulesButRef=R.schemaHasRules=R.checkUnknownRules=R.alwaysValidSchema=R.toHash=void 0;var F=A(),m2=ti();function g2(e){let t={};for(let r of e)t[r]=!0;return t}s(g2,"toHash");R.toHash=g2;function y2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(ed(e,t),!td(t,e.self.RULES.all))}s(y2,"alwaysValidSchema");R.alwaysValidSchema=y2;function ed(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||id(e,`unknown keyword: "${o}"`)}s(ed,"checkUnknownRules");R.checkUnknownRules=ed;function td(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s(td,"schemaHasRules");R.schemaHasRules=td;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}s(v2,"schemaHasRulesButRef");R.schemaHasRulesButRef=v2;function _2({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,F._)`${r}`}return(0,F._)`${e}${t}${(0,F.getProperty)(n)}`}s(_2,"schemaRefOrVal");R.schemaRefOrVal=_2;function S2(e){return rd(decodeURIComponent(e))}s(S2,"unescapeFragment");R.unescapeFragment=S2;function b2(e){return encodeURIComponent(vu(e))}s(b2,"escapeFragment");R.escapeFragment=b2;function vu(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(vu,"escapeJsonPointer");R.escapeJsonPointer=vu;function rd(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(rd,"unescapeJsonPointer");R.unescapeJsonPointer=rd;function P2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(P2,"eachItem");R.eachItem=P2;function Jp({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,u)=>{let c=a===void 0?o:a instanceof F.Name?(o instanceof F.Name?e(i,o,a):t(i,o,a),a):o instanceof F.Name?(t(i,a,o),o):r(o,a);return u===F.Name&&!(c instanceof F.Name)?n(i,c):c}}s(Jp,"makeMergeEvaluated");R.mergeEvaluated={props:Jp({mergeNames:s((e,t,r)=>e.if((0,F._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,F._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,F._)`${r} || {}`).code((0,F._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,F._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,F._)`${r} || {}`),_u(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:nd}),items:Jp({mergeNames:s((e,t,r)=>e.if((0,F._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,F._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,F._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,F._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:s((e,t)=>e.var("items",t),"resultToName")})};function nd(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,F._)`{}`);return t!==void 0&&_u(e,r,t),r}s(nd,"evaluatedPropsToName");R.evaluatedPropsToName=nd;function _u(e,t,r){Object.keys(r).forEach(n=>e.assign((0,F._)`${t}${(0,F.getProperty)(n)}`,!0))}s(_u,"setEvaluated");R.setEvaluated=_u;var Xp={};function $2(e,t){return e.scopeValue("func",{ref:t,code:Xp[t.code]||(Xp[t.code]=new m2._Code(t.code))})}s($2,"useFunc");R.useFunc=$2;var yu;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(yu||(R.Type=yu={}));function O2(e,t,r){if(e instanceof F.Name){let n=t===yu.Num;return r?n?(0,F._)`"[" + ${e} + "]"`:(0,F._)`"['" + ${e} + "']"`:n?(0,F._)`"/" + ${e}`:(0,F._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,F.getProperty)(e).toString():"/"+vu(e)}s(O2,"getErrorPath");R.getErrorPath=O2;function id(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}s(id,"checkStrictMode");R.checkStrictMode=id});var Me=m(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});var ce=A(),E2={data:new ce.Name("data"),valCxt:new ce.Name("valCxt"),instancePath:new ce.Name("instancePath"),parentData:new ce.Name("parentData"),parentDataProperty:new ce.Name("parentDataProperty"),rootData:new ce.Name("rootData"),dynamicAnchors:new ce.Name("dynamicAnchors"),vErrors:new ce.Name("vErrors"),errors:new ce.Name("errors"),this:new ce.Name("this"),self:new ce.Name("self"),scope:new ce.Name("scope"),json:new ce.Name("json"),jsonPos:new ce.Name("jsonPos"),jsonLen:new ce.Name("jsonLen"),jsonPart:new ce.Name("jsonPart")};Su.default=E2});var ai=m(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.extendErrors=le.resetErrorsCount=le.reportExtraError=le.reportError=le.keyword$DataError=le.keywordError=void 0;var N=A(),Ao=T(),ye=Me();le.keywordError={message:s(({keyword:e})=>(0,N.str)`must pass "${e}" keyword validation`,"message")};le.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,N.str)`"${e}" keyword must be ${t} ($data)`:(0,N.str)`"${e}" keyword is invalid ($data)`,"message")};function x2(e,t=le.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:u}=i,c=ad(e,t,r);n??(a||u)?od(o,c):sd(i,(0,N._)`[${c}]`)}s(x2,"reportError");le.reportError=x2;function w2(e,t=le.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,u=ad(e,t,r);od(i,u),o||a||sd(n,ye.default.vErrors)}s(w2,"reportExtraError");le.reportExtraError=w2;function A2(e,t){e.assign(ye.default.errors,t),e.if((0,N._)`${ye.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,N._)`${ye.default.vErrors}.length`,t),()=>e.assign(ye.default.vErrors,null)))}s(A2,"resetErrorsCount");le.resetErrorsCount=A2;function I2({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,ye.default.errors,u=>{e.const(a,(0,N._)`${ye.default.vErrors}[${u}]`),e.if((0,N._)`${a}.instancePath === undefined`,()=>e.assign((0,N._)`${a}.instancePath`,(0,N.strConcat)(ye.default.instancePath,o.errorPath))),e.assign((0,N._)`${a}.schemaPath`,(0,N.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,N._)`${a}.schema`,r),e.assign((0,N._)`${a}.data`,n))})}s(I2,"extendErrors");le.extendErrors=I2;function od(e,t){let r=e.const("err",t);e.if((0,N._)`${ye.default.vErrors} === null`,()=>e.assign(ye.default.vErrors,(0,N._)`[${r}]`),(0,N._)`${ye.default.vErrors}.push(${r})`),e.code((0,N._)`${ye.default.errors}++`)}s(od,"addError");function sd(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,N._)`new ${e.ValidationError}(${t})`):(r.assign((0,N._)`${n}.errors`,t),r.return(!1))}s(sd,"returnErrors");var vr={keyword:new N.Name("keyword"),schemaPath:new N.Name("schemaPath"),params:new N.Name("params"),propertyName:new N.Name("propertyName"),message:new N.Name("message"),schema:new N.Name("schema"),parentSchema:new N.Name("parentSchema")};function ad(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,N._)`{}`:k2(e,t,r)}s(ad,"errorObjectCode");function k2(e,t,r={}){let{gen:n,it:i}=e,o=[R2(i,r),T2(e,r)];return C2(e,t,o),n.object(...o)}s(k2,"errorObject");function R2({errorPath:e},{instancePath:t}){let r=t?(0,N.str)`${e}${(0,Ao.getErrorPath)(t,Ao.Type.Str)}`:e;return[ye.default.instancePath,(0,N.strConcat)(ye.default.instancePath,r)]}s(R2,"errorInstancePath");function T2({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,N.str)`${t}/${e}`;return r&&(i=(0,N.str)`${i}${(0,Ao.getErrorPath)(r,Ao.Type.Str)}`),[vr.schemaPath,i]}s(T2,"errorSchemaPath");function C2(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:a,it:u}=e,{opts:c,propertyName:l,topSchemaRef:p,schemaPath:f}=u;n.push([vr.keyword,i],[vr.params,typeof t=="function"?t(e):t||(0,N._)`{}`]),c.messages&&n.push([vr.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([vr.schema,a],[vr.parentSchema,(0,N._)`${p}${f}`],[ye.default.data,o]),l&&n.push([vr.propertyName,l])}s(C2,"extraErrorProps")});var cd=m(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.boolOrEmptySchema=tn.topBoolOrEmptySchema=void 0;var N2=ai(),q2=A(),j2=Me(),M2={message:"boolean schema is false"};function D2(e){let{gen:t,schema:r,validateName:n}=e;r===!1?ud(e,!1):typeof r=="object"&&r.$async===!0?t.return(j2.default.data):(t.assign((0,q2._)`${n}.errors`,null),t.return(!0))}s(D2,"topBoolOrEmptySchema");tn.topBoolOrEmptySchema=D2;function L2(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),ud(e)):r.var(t,!0)}s(L2,"boolOrEmptySchema");tn.boolOrEmptySchema=L2;function ud(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,N2.reportError)(i,M2,void 0,t)}s(ud,"falseSchemaError")});var bu=m(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.getRules=rn.isJSONType=void 0;var F2=["string","number","integer","boolean","null","object","array"],V2=new Set(F2);function B2(e){return typeof e=="string"&&V2.has(e)}s(B2,"isJSONType");rn.isJSONType=B2;function H2(){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:{}}}s(H2,"getRules");rn.getRules=H2});var Pu=m(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.shouldUseRule=Ft.shouldUseGroup=Ft.schemaHasRulesForType=void 0;function U2({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&ld(e,n)}s(U2,"schemaHasRulesForType");Ft.schemaHasRulesForType=U2;function ld(e,t){return t.rules.some(r=>fd(e,r))}s(ld,"shouldUseGroup");Ft.shouldUseGroup=ld;function fd(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))}s(fd,"shouldUseRule");Ft.shouldUseRule=fd});var ui=m(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.reportTypeError=fe.checkDataTypes=fe.checkDataType=fe.coerceAndCheckDataType=fe.getJSONTypes=fe.getSchemaTypes=fe.DataType=void 0;var z2=bu(),G2=Pu(),Z2=ai(),I=A(),pd=T(),nn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(nn||(fe.DataType=nn={}));function K2(e){let t=dd(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}s(K2,"getSchemaTypes");fe.getSchemaTypes=K2;function dd(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(z2.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(dd,"getJSONTypes");fe.getJSONTypes=dd;function W2(e,t){let{gen:r,data:n,opts:i}=e,o=Y2(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,G2.schemaHasRulesForType)(e,t[0]));if(a){let u=Ou(t,n,i.strictNumbers,nn.Wrong);r.if(u,()=>{o.length?Q2(e,t,o):Eu(e)})}return a}s(W2,"coerceAndCheckDataType");fe.coerceAndCheckDataType=W2;var hd=new Set(["string","number","integer","boolean","null"]);function Y2(e,t){return t?e.filter(r=>hd.has(r)||t==="array"&&r==="array"):[]}s(Y2,"coerceToTypes");function Q2(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,I._)`typeof ${i}`),u=n.let("coerced",(0,I._)`undefined`);o.coerceTypes==="array"&&n.if((0,I._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,I._)`${i}[0]`).assign(a,(0,I._)`typeof ${i}`).if(Ou(t,i,o.strictNumbers),()=>n.assign(u,i))),n.if((0,I._)`${u} !== undefined`);for(let l of r)(hd.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),Eu(e),n.endIf(),n.if((0,I._)`${u} !== undefined`,()=>{n.assign(i,u),J2(e,u)});function c(l){switch(l){case"string":n.elseIf((0,I._)`${a} == "number" || ${a} == "boolean"`).assign(u,(0,I._)`"" + ${i}`).elseIf((0,I._)`${i} === null`).assign(u,(0,I._)`""`);return;case"number":n.elseIf((0,I._)`${a} == "boolean" || ${i} === null
7
7
  || (${a} == "string" && ${i} && ${i} == +${i})`).assign(u,(0,I._)`+${i}`);return;case"integer":n.elseIf((0,I._)`${a} === "boolean" || ${i} === null
8
8
  || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(u,(0,I._)`+${i}`);return;case"boolean":n.elseIf((0,I._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(u,!1).elseIf((0,I._)`${i} === "true" || ${i} === 1`).assign(u,!0);return;case"null":n.elseIf((0,I._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(u,null);return;case"array":n.elseIf((0,I._)`${a} === "string" || ${a} === "number"
9
- || ${a} === "boolean" || ${i} === null`).assign(u,(0,I._)`[${i}]`)}}s(c,"coerceSpecificType")}s(Y2,"coerceData");function Q2({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,I._)`${t} !== undefined`,()=>e.assign((0,I._)`${t}[${r}]`,n))}s(Q2,"assignParentData");function Pu(e,t,r,n=nn.Correct){let i=n===nn.Correct?I.operators.EQ:I.operators.NEQ,o;switch(e){case"null":return(0,I._)`${t} ${i} null`;case"array":o=(0,I._)`Array.isArray(${t})`;break;case"object":o=(0,I._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,I._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,I._)`typeof ${t} ${i} ${e}`}return n===nn.Correct?o:(0,I.not)(o);function a(u=I.nil){return(0,I.and)((0,I._)`typeof ${t} == "number"`,u,r?(0,I._)`isFinite(${t})`:I.nil)}}s(Pu,"checkDataType");fe.checkDataType=Pu;function $u(e,t,r,n){if(e.length===1)return Pu(e[0],t,r,n);let i,o=(0,fd.toHash)(e);if(o.array&&o.object){let a=(0,I._)`typeof ${t} != "object"`;i=o.null?a:(0,I._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else i=I.nil;o.number&&delete o.integer;for(let a in o)i=(0,I.and)(i,Pu(a,t,r,n));return i}s($u,"checkDataTypes");fe.checkDataTypes=$u;var J2={message:s(({schema:e})=>`must be ${e}`,"message"),params:s(({schema:e,schemaValue:t})=>typeof e=="string"?(0,I._)`{type: ${e}}`:(0,I._)`{type: ${t}}`,"params")};function Ou(e){let t=X2(e);(0,G2.reportError)(t,J2)}s(Ou,"reportTypeError");fe.reportTypeError=Ou;function X2(e){let{gen:t,data:r,schema:n}=e,i=(0,fd.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(X2,"getTypeErrorContext")});var md=m(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.assignDefaults=void 0;var on=A(),e1=T();function t1(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)hd(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>hd(e,o,i.default))}s(t1,"assignDefaults");Io.assignDefaults=t1;function hd(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let u=(0,on._)`${o}${(0,on.getProperty)(t)}`;if(i){(0,e1.checkStrictMode)(e,`default is ignored for: ${u}`);return}let c=(0,on._)`${u} === undefined`;a.useDefaults==="empty"&&(c=(0,on._)`${c} || ${u} === null || ${u} === ""`),n.if(c,(0,on._)`${u} = ${(0,on.stringify)(r)}`)}s(hd,"assignDefault")});var De=m(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.validateUnion=L.validateArray=L.usePattern=L.callValidateCode=L.schemaProperties=L.allSchemaProperties=L.noPropertyInData=L.propertyInData=L.isOwnProperty=L.hasPropFunc=L.reportMissingProp=L.checkMissingProp=L.checkReportMissingProp=void 0;var V=A(),Eu=T(),Ft=Me(),r1=T();function n1(e,t){let{gen:r,data:n,it:i}=e;r.if(wu(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,V._)`${t}`},!0),e.error()})}s(n1,"checkReportMissingProp");L.checkReportMissingProp=n1;function i1({gen:e,data:t,it:{opts:r}},n,i){return(0,V.or)(...n.map(o=>(0,V.and)(wu(e,t,o,r.ownProperties),(0,V._)`${i} = ${o}`)))}s(i1,"checkMissingProp");L.checkMissingProp=i1;function o1(e,t){e.setParams({missingProperty:t},!0),e.error()}s(o1,"reportMissingProp");L.reportMissingProp=o1;function gd(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,V._)`Object.prototype.hasOwnProperty`})}s(gd,"hasPropFunc");L.hasPropFunc=gd;function xu(e,t,r){return(0,V._)`${gd(e)}.call(${t}, ${r})`}s(xu,"isOwnProperty");L.isOwnProperty=xu;function s1(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} !== undefined`;return n?(0,V._)`${i} && ${xu(e,t,r)}`:i}s(s1,"propertyInData");L.propertyInData=s1;function wu(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} === undefined`;return n?(0,V.or)(i,(0,V.not)(xu(e,t,r))):i}s(wu,"noPropertyInData");L.noPropertyInData=wu;function yd(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(yd,"allSchemaProperties");L.allSchemaProperties=yd;function a1(e,t){return yd(t).filter(r=>!(0,Eu.alwaysValidSchema)(e,t[r]))}s(a1,"schemaProperties");L.schemaProperties=a1;function u1({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},u,c,l){let p=l?(0,V._)`${e}, ${t}, ${n}${i}`:t,f=[[Ft.default.instancePath,(0,V.strConcat)(Ft.default.instancePath,o)],[Ft.default.parentData,a.parentData],[Ft.default.parentDataProperty,a.parentDataProperty],[Ft.default.rootData,Ft.default.rootData]];a.opts.dynamicRef&&f.push([Ft.default.dynamicAnchors,Ft.default.dynamicAnchors]);let d=(0,V._)`${p}, ${r.object(...f)}`;return c!==V.nil?(0,V._)`${u}.call(${c}, ${d})`:(0,V._)`${u}(${d})`}s(u1,"callValidateCode");L.callValidateCode=u1;var c1=(0,V._)`new RegExp`;function l1({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,V._)`${i.code==="new RegExp"?c1:(0,r1.useFunc)(e,i)}(${r}, ${n})`})}s(l1,"usePattern");L.usePattern=l1;function f1(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let u=t.let("valid",!0);return a(()=>t.assign(u,!1)),u}return t.var(o,!0),a(()=>t.break()),o;function a(u){let c=t.const("len",(0,V._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Eu.Type.Num},o),t.if((0,V.not)(o),u)})}s(a,"validateItems")}s(f1,"validateArray");L.validateArray=f1;function p1(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Eu.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),u=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},u);t.assign(a,(0,V._)`${a} || ${u}`),e.mergeValidEvaluated(p,u)||t.if((0,V.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(p1,"validateUnion");L.validateUnion=p1});var Sd=m(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.validateKeywordUsage=ut.validSchemaType=ut.funcKeywordCode=ut.macroKeywordCode=void 0;var ve=A(),_r=Me(),d1=De(),h1=ai();function m1(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,u=t.macro.call(a.self,i,o,a),c=_d(r,n,u);a.opts.validateSchema!==!1&&a.self.validateSchema(u,!0);let l=r.name("valid");e.subschema({schema:u,schemaPath:ve.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}s(m1,"macroKeywordCode");ut.macroKeywordCode=m1;function g1(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:u,it:c}=e;v1(c,t);let l=!u&&t.compile?t.compile.call(c.self,o,a,c):t.validate,p=_d(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)y(),t.modifying&&vd(e),v(()=>e.error());else{let _=t.async?h():g();t.modifying&&vd(e),v(()=>y1(e,_))}}s(d,"validateKeyword");function h(){let _=n.let("ruleErrs",null);return n.try(()=>y((0,ve._)`await `),S=>n.assign(f,!1).if((0,ve._)`${S} instanceof ${c.ValidationError}`,()=>n.assign(_,(0,ve._)`${S}.errors`),()=>n.throw(S))),_}s(h,"validateAsync");function g(){let _=(0,ve._)`${p}.errors`;return n.assign(_,null),y(ve.nil),_}s(g,"validateSync");function y(_=t.async?(0,ve._)`await `:ve.nil){let S=c.opts.passContext?_r.default.this:_r.default.self,b=!("compile"in t&&!u||t.schema===!1);n.assign(f,(0,ve._)`${_}${(0,d1.callValidateCode)(e,p,S,b)}`,t.modifying)}s(y,"assignValid");function v(_){var S;n.if((0,ve.not)((S=t.valid)!==null&&S!==void 0?S:f),_)}s(v,"reportErrs")}s(g1,"funcKeywordCode");ut.funcKeywordCode=g1;function vd(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,ve._)`${n.parentData}[${n.parentDataProperty}]`))}s(vd,"modifyData");function y1(e,t){let{gen:r}=e;r.if((0,ve._)`Array.isArray(${t})`,()=>{r.assign(_r.default.vErrors,(0,ve._)`${_r.default.vErrors} === null ? ${t} : ${_r.default.vErrors}.concat(${t})`).assign(_r.default.errors,(0,ve._)`${_r.default.vErrors}.length`),(0,h1.extendErrors)(e)},()=>e.error())}s(y1,"addErrs");function v1({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(v1,"checkAsyncKeyword");function _d(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,ve.stringify)(r)})}s(_d,"useKeyword");function _1(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")}s(_1,"validSchemaType");ut.validSchemaType=_1;function S1({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(u=>!Object.prototype.hasOwnProperty.call(e,u)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let c=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}s(S1,"validateKeywordUsage");ut.validateKeywordUsage=S1});var Pd=m(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.extendSubschemaMode=Vt.extendSubschemaData=Vt.getSubschema=void 0;var ct=A(),bd=T();function b1(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,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 u=e.schema[t];return r===void 0?{schema:u,schemaPath:(0,ct._)`${e.schemaPath}${(0,ct.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:u[r],schemaPath:(0,ct._)`${e.schemaPath}${(0,ct.getProperty)(t)}${(0,ct.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,bd.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}s(b1,"getSubschema");Vt.getSubschema=b1;function P1(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:u}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=u.let("data",(0,ct._)`${t.data}${(0,ct.getProperty)(r)}`,!0);c(d),e.errorPath=(0,ct.str)`${l}${(0,bd.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,ct._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof ct.Name?i:u.let("data",i,!0);c(l),a!==void 0&&(e.propertyName=a)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}s(c,"dataContextProps")}s(P1,"extendSubschemaData");Vt.extendSubschemaData=P1;function $1(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}s($1,"extendSubschemaMode");Vt.extendSubschemaMode=$1});var Au=m((iq,$d)=>{"use strict";$d.exports=s(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,o;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(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var Ed=m((sq,Od)=>{"use strict";var Bt=Od.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(){};ko(t,n,i,e,"",e)};Bt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Bt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Bt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Bt.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 ko(e,t,r,n,i,o,a,u,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,u,c,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in Bt.arrayKeywords)for(var d=0;d<f.length;d++)ko(e,t,r,f[d],i+"/"+p+"/"+d,o,i,p,n,d)}else if(p in Bt.propsKeywords){if(f&&typeof f=="object")for(var h in f)ko(e,t,r,f[h],i+"/"+p+"/"+O1(h),o,i,p,n,h)}else(p in Bt.keywords||e.allKeys&&!(p in Bt.skipKeywords))&&ko(e,t,r,f,i+"/"+p,o,i,p,n)}r(n,i,o,a,u,c,l)}}s(ko,"_traverse");function O1(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(O1,"escapeJsonPtr")});var ci=m(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.getSchemaRefs=xe.resolveUrl=xe.normalizeId=xe._getFullPath=xe.getFullPath=xe.inlineRef=void 0;var E1=T(),x1=Au(),w1=Ed(),A1=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function I1(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Iu(e):t?xd(e)<=t:!1}s(I1,"inlineRef");xe.inlineRef=I1;var k1=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Iu(e){for(let t in e){if(k1.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Iu)||typeof r=="object"&&Iu(r))return!0}return!1}s(Iu,"hasRef");function xd(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!A1.has(r)&&(typeof e[r]=="object"&&(0,E1.eachItem)(e[r],n=>t+=xd(n)),t===1/0))return 1/0}return t}s(xd,"countKeys");function wd(e,t="",r){r!==!1&&(t=sn(t));let n=e.parse(t);return Ad(e,n)}s(wd,"getFullPath");xe.getFullPath=wd;function Ad(e,t){return e.serialize(t).split("#")[0]+"#"}s(Ad,"_getFullPath");xe._getFullPath=Ad;var R1=/#\/?$/;function sn(e){return e?e.replace(R1,""):""}s(sn,"normalizeId");xe.normalizeId=sn;function T1(e,t,r){return r=sn(r),e.resolve(t,r)}s(T1,"resolveUrl");xe.resolveUrl=T1;var N1=/^[a-z_][-a-z0-9._]*$/i;function C1(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=sn(e[r]||t),o={"":i},a=wd(n,i,!1),u={},c=new Set;return w1(e,{allKeys:!0},(f,d,h,g)=>{if(g===void 0)return;let y=a+d,v=o[g];typeof f[r]=="string"&&(v=_.call(this,f[r])),S.call(this,f.$anchor),S.call(this,f.$dynamicAnchor),o[d]=v;function _(b){let E=this.opts.uriResolver.resolve;if(b=sn(v?E(v,b):b),c.has(b))throw p(b);c.add(b);let $=this.refs[b];return typeof $=="string"&&($=this.refs[$]),typeof $=="object"?l(f,$.schema,b):b!==sn(y)&&(b[0]==="#"?(l(f,u[b],b),u[b]=f):this.refs[b]=y),b}s(_,"addRef");function S(b){if(typeof b=="string"){if(!N1.test(b))throw new Error(`invalid anchor "${b}"`);_.call(this,`#${b}`)}}s(S,"addAnchor")}),u;function l(f,d,h){if(d!==void 0&&!x1(f,d))throw p(h)}s(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}s(p,"ambiguos")}s(C1,"getSchemaRefs");xe.getSchemaRefs=C1});var pi=m(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.getData=Ht.KeywordCxt=Ht.validateFunctionCode=void 0;var Nd=ud(),Id=ui(),Ru=bu(),Ro=ui(),q1=md(),fi=Sd(),ku=Pd(),O=A(),w=Me(),j1=ci(),At=T(),li=ai();function M1(e){if(jd(e)&&(Md(e),qd(e))){F1(e);return}Cd(e,()=>(0,Nd.topBoolOrEmptySchema)(e))}s(M1,"validateFunctionCode");Ht.validateFunctionCode=M1;function Cd({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,O._)`${w.default.data}, ${w.default.valCxt}`,n.$async,()=>{e.code((0,O._)`"use strict"; ${kd(r,i)}`),L1(e,i),e.code(o)}):e.func(t,(0,O._)`${w.default.data}, ${D1(i)}`,n.$async,()=>e.code(kd(r,i)).code(o))}s(Cd,"validateFunction");function D1(e){return(0,O._)`{${w.default.instancePath}="", ${w.default.parentData}, ${w.default.parentDataProperty}, ${w.default.rootData}=${w.default.data}${e.dynamicRef?(0,O._)`, ${w.default.dynamicAnchors}={}`:O.nil}}={}`}s(D1,"destructureValCxt");function L1(e,t){e.if(w.default.valCxt,()=>{e.var(w.default.instancePath,(0,O._)`${w.default.valCxt}.${w.default.instancePath}`),e.var(w.default.parentData,(0,O._)`${w.default.valCxt}.${w.default.parentData}`),e.var(w.default.parentDataProperty,(0,O._)`${w.default.valCxt}.${w.default.parentDataProperty}`),e.var(w.default.rootData,(0,O._)`${w.default.valCxt}.${w.default.rootData}`),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,O._)`${w.default.valCxt}.${w.default.dynamicAnchors}`)},()=>{e.var(w.default.instancePath,(0,O._)`""`),e.var(w.default.parentData,(0,O._)`undefined`),e.var(w.default.parentDataProperty,(0,O._)`undefined`),e.var(w.default.rootData,w.default.data),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,O._)`{}`)})}s(L1,"destructureValCxtES5");function F1(e){let{schema:t,opts:r,gen:n}=e;Cd(e,()=>{r.$comment&&t.$comment&&Ld(e),z1(e),n.let(w.default.vErrors,null),n.let(w.default.errors,0),r.unevaluated&&V1(e),Dd(e),K1(e)})}s(F1,"topSchemaObjCode");function V1(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`))}s(V1,"resetEvaluated");function kd(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,O._)`/*# sourceURL=${r} */`:O.nil}s(kd,"funcSourceUrl");function B1(e,t){if(jd(e)&&(Md(e),qd(e))){H1(e,t);return}(0,Nd.boolOrEmptySchema)(e,t)}s(B1,"subschemaCode");function qd({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}s(qd,"schemaCxtHasRules");function jd(e){return typeof e.schema!="boolean"}s(jd,"isSchemaObj");function H1(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Ld(e),G1(e),Z1(e);let o=n.const("_errs",w.default.errors);Dd(e,o),n.var(t,(0,O._)`${o} === ${w.default.errors}`)}s(H1,"subSchemaObjCode");function Md(e){(0,At.checkUnknownRules)(e),U1(e)}s(Md,"checkKeywords");function Dd(e,t){if(e.opts.jtd)return Rd(e,[],!1,t);let r=(0,Id.getSchemaTypes)(e.schema),n=(0,Id.coerceAndCheckDataType)(e,r);Rd(e,r,!n,t)}s(Dd,"typeAndKeywords");function U1(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,At.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s(U1,"checkRefsAndKeywords");function z1(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,At.checkStrictMode)(e,"default is ignored in the schema root")}s(z1,"checkNoDefault");function G1(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,j1.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(G1,"updateContext");function Z1(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s(Z1,"checkAsyncSchema");function Ld({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,O._)`${w.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,O.str)`${n}/$comment`,u=e.scopeValue("root",{ref:t.root});e.code((0,O._)`${w.default.self}.opts.$comment(${o}, ${a}, ${u}.schema)`)}}s(Ld,"commentKeyword");function K1(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,O._)`${w.default.errors} === 0`,()=>t.return(w.default.data),()=>t.throw((0,O._)`new ${i}(${w.default.vErrors})`)):(t.assign((0,O._)`${n}.errors`,w.default.vErrors),o.unevaluated&&W1(e),t.return((0,O._)`${w.default.errors} === 0`))}s(K1,"returnResults");function W1({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)}s(W1,"assignEvaluated");function Rd(e,t,r,n){let{gen:i,schema:o,data:a,allErrors:u,opts:c,self:l}=e,{RULES:p}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,At.schemaHasRulesButRef)(o,p))){i.block(()=>Vd(e,"$ref",p.all.$ref.definition));return}c.jtd||Y1(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,Ru.shouldUseGroup)(o,d)&&(d.type?(i.if((0,Ro.checkDataType)(d.type,a,c.strictNumbers)),Td(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Ro.reportTypeError)(e)),i.endIf()):Td(e,d),u||i.if((0,O._)`${w.default.errors} === ${n||0}`))}s(f,"groupKeywords")}s(Rd,"schemaKeywords");function Td(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,q1.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,Ru.shouldUseRule)(n,o)&&Vd(e,o.keyword,o.definition,t.type)})}s(Td,"iterateKeywords");function Y1(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Q1(e,t),e.opts.allowUnionTypes||J1(e,t),X1(e,e.dataTypes))}s(Y1,"checkStrictTypes");function Q1(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Fd(e.dataTypes,r)||Tu(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),tP(e,t)}}s(Q1,"checkContextTypes");function J1(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Tu(e,"use allowUnionTypes to allow union type keyword")}s(J1,"checkMultipleTypes");function X1(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Ru.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>eP(t,a))&&Tu(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(X1,"checkKeywordTypes");function eP(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(eP,"hasApplicableType");function Fd(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(Fd,"includesType");function tP(e,t){let r=[];for(let n of e.dataTypes)Fd(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s(tP,"narrowSchemaTypes");function Tu(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,At.checkStrictMode)(e,t,e.opts.strictTypes)}s(Tu,"strictTypesError");var Nu=class Nu{constructor(t,r,n){if((0,fi.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,At.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",Bd(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,fi.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",w.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?li.reportExtraError:li.reportError)(this,this.def.error,r)}$dataError(){(0,li.reportError)(this,this.def.$dataError||li.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,li.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:o,def:a}=this;n.if((0,O.or)((0,O._)`${i} === undefined`,r)),t!==O.nil&&n.assign(t,!0),(o.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:o}=this;return(0,O.or)(a(),u());function a(){if(n.length){if(!(r instanceof O.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,O._)`${(0,Ro.checkDataTypes)(c,r,o.opts.strictNumbers,Ro.DataType.Wrong)}`}return O.nil}function u(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,O._)`!${c}(${r})`}return O.nil}}subschema(t,r){let n=(0,ku.getSubschema)(this.it,t);(0,ku.extendSubschemaData)(n,this.it,t),(0,ku.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return B1(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=At.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=At.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}};s(Nu,"KeywordCxt");var To=Nu;Ht.KeywordCxt=To;function Vd(e,t,r,n){let i=new To(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,fi.funcKeywordCode)(i,r):"macro"in r?(0,fi.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,fi.funcKeywordCode)(i,r)}s(Vd,"keywordCode");var rP=/^\/(?:[^~]|~0|~1)*$/,nP=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Bd(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return w.default.rootData;if(e[0]==="/"){if(!rP.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=w.default.rootData}else{let l=nP.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(i=l[2],i==="#"){if(p>=t)throw new Error(c("property/index",p));return n[t-p]}if(p>t)throw new Error(c("data",p));if(o=r[t-p],!i)return o}let a=o,u=i.split("/");for(let l of u)l&&(o=(0,O._)`${o}${(0,O.getProperty)((0,At.unescapeJsonPointer)(l))}`,a=(0,O._)`${a} && ${o}`);return a;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}s(Bd,"getData");Ht.getData=Bd});var No=m(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var ju=class ju extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(ju,"ValidationError");var Cu=ju;qu.default=Cu});var di=m(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var Mu=ci(),Fu=class Fu extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Mu.resolveUrl)(t,r,n),this.missingSchema=(0,Mu.normalizeId)((0,Mu.getFullPath)(t,this.missingRef))}};s(Fu,"MissingRefError");var Du=Fu;Lu.default=Du});var hi=m(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.resolveSchema=Le.getCompilingSchema=Le.resolveRef=Le.compileSchema=Le.SchemaEnv=void 0;var Ke=A(),iP=No(),Sr=Me(),We=ci(),Hd=T(),oP=pi(),Hu=class Hu{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,We.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={}}};s(Hu,"SchemaEnv");var an=Hu;Le.SchemaEnv=an;function Bu(e){let t=Ud.call(this,e);if(t)return t;let r=(0,We.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Ke.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),u;e.$async&&(u=a.scopeValue("Error",{ref:iP.default,code:(0,Ke._)`require("ajv/dist/runtime/validation_error").default`}));let c=a.scopeName("validate");e.validateName=c;let l={gen:a,allErrors:this.opts.allErrors,data:Sr.default.data,parentData:Sr.default.parentData,parentDataProperty:Sr.default.parentDataProperty,dataNames:[Sr.default.data],dataPathArr:[Ke.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ke.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:u,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Ke.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ke._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,oP.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(Sr.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${Sr.default.self}`,`${Sr.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:g,items:y}=l;h.evaluated={props:g instanceof Ke.Name?void 0:g,items:y instanceof Ke.Name?void 0:y,dynamicProps:g instanceof Ke.Name,dynamicItems:y instanceof Ke.Name},h.source&&(h.source.evaluated=(0,Ke.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(e)}}s(Bu,"compileSchema");Le.compileSchema=Bu;function sP(e,t,r){var n;r=(0,We.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=cP.call(this,e,r);if(o===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:u}=this.opts;a&&(o=new an({schema:a,schemaId:u,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=aP.call(this,o)}s(sP,"resolveRef");Le.resolveRef=sP;function aP(e){return(0,We.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Bu.call(this,e)}s(aP,"inlineOrCompile");function Ud(e){for(let t of this._compilations)if(uP(t,e))return t}s(Ud,"getCompilingSchema");Le.getCompilingSchema=Ud;function uP(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(uP,"sameSchemaEnv");function cP(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Co.call(this,e,t)}s(cP,"resolve");function Co(e,t){let r=this.opts.uriResolver.parse(t),n=(0,We._getFullPath)(this.opts.uriResolver,r),i=(0,We.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Vu.call(this,r,e);let o=(0,We.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let u=Co.call(this,e,a);return typeof(u==null?void 0:u.schema)!="object"?void 0:Vu.call(this,r,u)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Bu.call(this,a),o===(0,We.normalizeId)(t)){let{schema:u}=a,{schemaId:c}=this.opts,l=u[c];return l&&(i=(0,We.resolveUrl)(this.opts.uriResolver,i,l)),new an({schema:u,schemaId:c,root:e,baseId:i})}return Vu.call(this,r,a)}}s(Co,"resolveSchema");Le.resolveSchema=Co;var lP=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Vu(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let u of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,Hd.unescapeFragment)(u)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!lP.has(u)&&l&&(t=(0,We.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Hd.schemaHasRulesButRef)(r,this.RULES)){let u=(0,We.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Co.call(this,n,u)}let{schemaId:a}=this.opts;if(o=o||new an({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(Vu,"getJsonPointer")});var zd=m((vq,fP)=>{fP.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 Zd=m((_q,Gd)=>{"use strict";var pP={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};Gd.exports={HEX:pP}});var th=m((Sq,eh)=>{"use strict";var{HEX:dP}=Zd();function Qd(e){if(Xd(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:mP(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(Qd,"normalizeIPv4");function Uu(e,t=!1){let r="",n=!0;for(let i of e){if(dP[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(Uu,"stringArrayToHexStripped");function hP(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,a=!1,u=!1;function c(){if(i.length){if(o===!1){let l=Uu(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}s(c,"consume");for(let l=0;l<e.length;l++){let p=e[l];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(u=!0),!c())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(p==="%"){if(!c())break;o=!0}else{i.push(p);continue}}return i.length&&(o?r.zone=i.join(""):u?n.push(i.join("")):n.push(Uu(i))),r.address=n.join(""),r}s(hP,"getIPV6");function Jd(e,t={}){if(Xd(e,":")<2)return{host:e,isIPV6:!1};let r=hP(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}}}s(Jd,"normalizeIPv6");function mP(e,t){let r="",n=!0,i=e.length;for(let o=0;o<i;o++){let a=e[o];a==="0"&&n?(o+1<=i&&e[o+1]===t||o+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}s(mP,"stripLeadingZeros");function Xd(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(Xd,"findToken");var Kd=/^\.\.?\//u,Wd=/^\/\.(?:\/|$)/u,Yd=/^\/\.\.(?:\/|$)/u,gP=/^\/?(?:.|\n)*?(?=\/|$)/u;function yP(e){let t=[];for(;e.length;)if(e.match(Kd))e=e.replace(Kd,"");else if(e.match(Wd))e=e.replace(Wd,"/");else if(e.match(Yd))e=e.replace(Yd,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(gP);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("")}s(yP,"removeDotSegments");function vP(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}s(vP,"normalizeComponentEncoding");function _P(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=Qd(n);if(i.isIPV4)n=i.host;else{let o=Jd(i.host,{isIPV4:!1});o.isIPV6===!0?n=`[${o.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}s(_P,"recomposeAuthority");eh.exports={recomposeAuthority:_P,normalizeComponentEncoding:vP,removeDotSegments:yP,normalizeIPv4:Qd,normalizeIPv6:Jd,stringArrayToHexStripped:Uu}});var ah=m((Pq,sh)=>{"use strict";var SP=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,bP=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function rh(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s(rh,"isSecure");function nh(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(nh,"httpParse");function ih(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}s(ih,"httpSerialize");function PP(e){return e.secure=rh(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s(PP,"wsParse");function $P(e){if((e.port===(rh(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}s($P,"wsSerialize");function OP(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(bP);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}`,o=zu[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(OP,"urnParse");function EP(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=zu[i];o&&(e=o.serialize(e,t));let a=e,u=e.nss;return a.path=`${n||t.nid}:${u}`,t.skipEscape=!0,a}s(EP,"urnSerialize");function xP(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!SP.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(xP,"urnuuidParse");function wP(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(wP,"urnuuidSerialize");var oh={scheme:"http",domainHost:!0,parse:nh,serialize:ih},AP={scheme:"https",domainHost:oh.domainHost,parse:nh,serialize:ih},qo={scheme:"ws",domainHost:!0,parse:PP,serialize:$P},IP={scheme:"wss",domainHost:qo.domainHost,parse:qo.parse,serialize:qo.serialize},kP={scheme:"urn",parse:OP,serialize:EP,skipNormalize:!0},RP={scheme:"urn:uuid",parse:xP,serialize:wP,skipNormalize:!0},zu={http:oh,https:AP,ws:qo,wss:IP,urn:kP,"urn:uuid":RP};sh.exports=zu});var ch=m((Oq,Mo)=>{"use strict";var{normalizeIPv6:TP,normalizeIPv4:NP,removeDotSegments:mi,recomposeAuthority:CP,normalizeComponentEncoding:jo}=th(),Gu=ah();function qP(e,t){return typeof e=="string"?e=lt(It(e,t),t):typeof e=="object"&&(e=It(lt(e,t),t)),e}s(qP,"normalize");function jP(e,t,r){let n=Object.assign({scheme:"null"},r),i=uh(It(e,n),It(t,n),n,!0);return lt(i,{...n,skipEscape:!0})}s(jP,"resolve");function uh(e,t,r,n){let i={};return n||(e=It(lt(e,r),r),t=It(lt(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=mi(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=mi(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=mi(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=mi(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}s(uh,"resolveComponents");function MP(e,t,r){return typeof e=="string"?(e=unescape(e),e=lt(jo(It(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=lt(jo(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=lt(jo(It(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=lt(jo(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(MP,"equal");function lt(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=[],o=Gu[(n.scheme||r.scheme||"").toLowerCase()];o&&o.serialize&&o.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=CP(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 u=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(u=mi(u)),a===void 0&&(u=u.replace(/^\/\//u,"/%2F")),i.push(u)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}s(lt,"serialize");var DP=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function LP(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||DP[t])return!0;return!1}s(LP,"nonSimpleDomain");var FP=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function It(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,o=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(FP);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 c=NP(n.host);if(c.isIPV4===!1){let l=TP(c.host,{isIPV4:!1});n.host=l.host.toLowerCase(),o=l.isIPV6}else n.host=c.host,o=!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 u=Gu[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!u||!u.unicodeSupport)&&n.host&&(r.domainHost||u&&u.domainHost)&&o===!1&&LP(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(c){n.error=n.error||"Host's domain name can not be converted to ASCII: "+c}(!u||u&&!u.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)))),u&&u.parse&&u.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}s(It,"parse");var Zu={SCHEMES:Gu,normalize:qP,resolve:jP,resolveComponents:uh,equal:MP,serialize:lt,parse:It};Mo.exports=Zu;Mo.exports.default=Zu;Mo.exports.fastUri=Zu});var fh=m(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});var lh=ch();lh.code='require("ajv/dist/runtime/uri").default';Ku.default=lh});var cn=m(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.CodeGen=oe.Name=oe.nil=oe.stringify=oe.str=oe._=oe.KeywordCxt=void 0;var VP=pi();Object.defineProperty(oe,"KeywordCxt",{enumerable:!0,get:s(function(){return VP.KeywordCxt},"get")});var un=A();Object.defineProperty(oe,"_",{enumerable:!0,get:s(function(){return un._},"get")});Object.defineProperty(oe,"str",{enumerable:!0,get:s(function(){return un.str},"get")});Object.defineProperty(oe,"stringify",{enumerable:!0,get:s(function(){return un.stringify},"get")});Object.defineProperty(oe,"nil",{enumerable:!0,get:s(function(){return un.nil},"get")});Object.defineProperty(oe,"Name",{enumerable:!0,get:s(function(){return un.Name},"get")});Object.defineProperty(oe,"CodeGen",{enumerable:!0,get:s(function(){return un.CodeGen},"get")});var BP=No(),gh=di(),HP=Su(),gi=hi(),UP=A(),yi=ci(),Do=ui(),Yu=T(),ph=zd(),zP=fh(),yh=s((e,t)=>new RegExp(e,t),"defaultRegExp");yh.code="new RegExp";var GP=["removeAdditional","useDefaults","coerceTypes"],ZP=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),KP={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."},WP={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},dh=200;function YP(e){var t,r,n,i,o,a,u,c,l,p,f,d,h,g,y,v,_,S,b,E,$,M,j,re,ne;let ue=e.strict,qe=(t=e.code)===null||t===void 0?void 0:t.optimize,$e=qe===!0||qe===void 0?1:qe||0,Mt=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:yh,Zr=(i=e.uriResolver)!==null&&i!==void 0?i:zP.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:ue)!==null&&a!==void 0?a:!0,strictNumbers:(c=(u=e.strictNumbers)!==null&&u!==void 0?u:ue)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:ue)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:ue)!==null&&d!==void 0?d:"log",strictRequired:(g=(h=e.strictRequired)!==null&&h!==void 0?h:ue)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:$e,regExp:Mt}:{optimize:$e,regExp:Mt},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:dh,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:dh,meta:(_=e.meta)!==null&&_!==void 0?_:!0,messages:(S=e.messages)!==null&&S!==void 0?S:!0,inlineRefs:(b=e.inlineRefs)!==null&&b!==void 0?b:!0,schemaId:(E=e.schemaId)!==null&&E!==void 0?E:"$id",addUsedSchema:($=e.addUsedSchema)!==null&&$!==void 0?$:!0,validateSchema:(M=e.validateSchema)!==null&&M!==void 0?M:!0,validateFormats:(j=e.validateFormats)!==null&&j!==void 0?j:!0,unicodeRegExp:(re=e.unicodeRegExp)!==null&&re!==void 0?re:!0,int32range:(ne=e.int32range)!==null&&ne!==void 0?ne:!0,uriResolver:Zr}}s(YP,"requiredOptions");var Qu=class Qu{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...YP(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new UP.ValueScope({scope:{},prefixes:ZP,es5:r,lines:n}),this.logger=r$(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,HP.getRules)(),hh.call(this,KP,t,"NOT SUPPORTED"),hh.call(this,WP,t,"DEPRECATED","warn"),this._metaOpts=e$.call(this),t.formats&&JP.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&XP.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),QP.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=ph;n==="id"&&(i={...ph},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(p,f){await o.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function o(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof gh.default))throw f;return u.call(this,f),await c.call(this,f.missingSchema),a.call(this,p)}}function u({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function c(p){let f=await l.call(this,p);this.refs[p]||await o.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}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 o;if(typeof t=="object"){let{schemaId:a}=this.opts;if(o=t[a],o!==void 0&&typeof o!="string")throw new Error(`schema ${a} must be string`)}return r=(0,yi.normalizeId)(r||o),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 o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}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 gi.SchemaEnv({schema:{},schemaId:n});if(r=gi.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,yi.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(i$.call(this,n,r),!r)return(0,Yu.eachItem)(n,o=>Wu.call(this,o)),this;s$.call(this,r);let i={...r,type:(0,Do.getJSONTypes)(r.type),schemaType:(0,Do.getJSONTypes)(r.schemaType)};return(0,Yu.eachItem)(n,i.type.length===0?o=>Wu.call(this,o,i):o=>i.type.forEach(a=>Wu.call(this,o,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(o=>o.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,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),a=t;for(let u of o)a=a[u];for(let u in n){let c=n[u];if(typeof c!="object")continue;let{$data:l}=c.definition,p=a[u];l&&p&&(a[u]=vh(p))}}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,o=this.opts.addUsedSchema){let a,{schemaId:u}=this.opts;if(typeof t=="object")a=t[u];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 c=this._cache.get(t);if(c!==void 0)return c;n=(0,yi.normalizeId)(a||n);let l=yi.getSchemaRefs.call(this,t,n);return c=new gi.SchemaEnv({schema:t,schemaId:u,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(t,!0),c}_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):gi.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{gi.compileSchema.call(this,t)}finally{this.opts=r}}};s(Qu,"Ajv");var vi=Qu;vi.ValidationError=BP.default;vi.MissingRefError=gh.default;oe.default=vi;function hh(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}s(hh,"checkOptions");function mh(e){return e=(0,yi.normalizeId)(e),this.schemas[e]||this.refs[e]}s(mh,"getSchEnv");function QP(){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)}s(QP,"addInitialSchemas");function JP(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(JP,"addInitialFormats");function XP(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)}}s(XP,"addInitialKeywords");function e$(){let e={...this.opts};for(let t of GP)delete e[t];return e}s(e$,"getMetaSchemaOptions");var t$={log(){},warn(){},error(){}};function r$(e){if(e===!1)return t$;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")}s(r$,"getLogger");var n$=/^[a-z_$][a-z0-9_$:-]*$/i;function i$(e,t){let{RULES:r}=this;if((0,Yu.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!n$.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')}s(i$,"checkKeyword");function Wu(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:o}=this,a=i?o.post:o.rules.find(({type:c})=>c===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;let u={keyword:e,definition:{...t,type:(0,Do.getJSONTypes)(t.type),schemaType:(0,Do.getJSONTypes)(t.schemaType)}};t.before?o$.call(this,a,u,t.before):a.rules.push(u),o.all[e]=u,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}s(Wu,"addRule");function o$(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`))}s(o$,"addBeforeRule");function s$(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=vh(t)),e.validateSchema=this.compile(t,!0))}s(s$,"keywordMetaschema");var a$={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function vh(e){return{anyOf:[e,a$]}}s(vh,"schemaOrData")});var _i=m(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.callRef=br.getValidate=void 0;var u$=di(),_h=De(),we=A(),ln=Me(),Sh=hi(),Lo=T(),c$={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:a,opts:u,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=Sh.resolveRef.call(c,l,i,r);if(p===void 0)throw new u$.default(n.opts.uriResolver,i,r);if(p instanceof Sh.SchemaEnv)return d(p);return h(p);function f(){if(o===l)return Fo(e,a,o,o.$async);let g=t.scopeValue("root",{ref:l});return Fo(e,(0,we._)`${g}.validate`,l,l.$async)}function d(g){let y=bh(e,g);Fo(e,y,g,g.$async)}function h(g){let y=t.scopeValue("schema",u.code.source===!0?{ref:g,code:(0,we.stringify)(g)}:{ref:g}),v=t.name("valid"),_=e.subschema({schema:g,dataTypes:[],schemaPath:we.nil,topSchemaRef:y,errSchemaPath:r},v);e.mergeEvaluated(_),e.ok(v)}}};function bh(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,we._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(bh,"getValidate");br.getValidate=bh;function Fo(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:u,opts:c}=o,l=c.passContext?ln.default.this:we.nil;n?p():f();function p(){if(!u.$async)throw new Error("async schema referenced by sync schema");let g=i.let("valid");i.try(()=>{i.code((0,we._)`await ${(0,_h.callValidateCode)(e,t,l)}`),h(t),a||i.assign(g,!0)},y=>{i.if((0,we._)`!(${y} instanceof ${o.ValidationError})`,()=>i.throw(y)),d(y),a||i.assign(g,!1)}),e.ok(g)}s(p,"callAsyncRef");function f(){e.result((0,_h.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}s(f,"callSyncRef");function d(g){let y=(0,we._)`${g}.errors`;i.assign(ln.default.vErrors,(0,we._)`${ln.default.vErrors} === null ? ${y} : ${ln.default.vErrors}.concat(${y})`),i.assign(ln.default.errors,(0,we._)`${ln.default.vErrors}.length`)}s(d,"addErrorsFrom");function h(g){var y;if(!o.opts.unevaluated)return;let v=(y=r==null?void 0:r.validate)===null||y===void 0?void 0:y.evaluated;if(o.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(o.props=Lo.mergeEvaluated.props(i,v.props,o.props));else{let _=i.var("props",(0,we._)`${g}.evaluated.props`);o.props=Lo.mergeEvaluated.props(i,_,o.props,we.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=Lo.mergeEvaluated.items(i,v.items,o.items));else{let _=i.var("items",(0,we._)`${g}.evaluated.items`);o.items=Lo.mergeEvaluated.items(i,_,o.items,we.Name)}}s(h,"addEvaluatedFrom")}s(Fo,"callRef");br.callRef=Fo;br.default=c$});var Ph=m(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});var l$=_i(),f$=["$schema","id","$defs",{keyword:"$comment"},"definitions",l$.default];Ju.default=f$});var $h=m(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});var Xu=cn(),p$=A(),Ut=p$.operators,ec={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Ut.LTE,fail:Ut.GT},{okStr:"<",ok:Ut.LT,fail:Ut.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Ut.GTE,fail:Ut.LT},{okStr:">",ok:Ut.GT,fail:Ut.LTE}]}},d$={message:s(e=>Xu.str`must be ${tc(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>Xu._`{comparison: ${tc(e).okStr}, limit: ${e.schemaCode}}`,"params")},h$={keyword:Object.keys(ec),type:"number",schemaType:"number",$data:!0,error:d$,code(e){let{data:t,schemaCode:r}=e;e.fail$data(Xu._`${t} ${tc(e).fail} ${r} || isNaN(${t})`)}};function tc(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[ec[r].exclusive]?1:0;return ec[r].ops[n]}s(tc,"kwdOp");rc.default=h$});var Eh=m(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var Oh={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},m$={keyword:Object.keys(Oh),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Oh[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};nc.default=m$});var oc=m(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var Si=A(),g$={message:s(({schemaCode:e})=>(0,Si.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,Si._)`{multipleOf: ${e}}`,"params")},y$={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:g$,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),u=o?(0,Si._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,Si._)`${a} !== parseInt(${a})`;e.fail$data((0,Si._)`(${n} === 0 || (${a} = ${r}/${n}, ${u}))`)}};ic.default=y$});var wh=m(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});function xh(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}s(xh,"ucs2length");sc.default=xh;xh.code='require("ajv/dist/runtime/ucs2length").default'});var uc=m(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var Pr=A(),v$=T(),_$=wh(),S$={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Pr.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,Pr._)`{limit: ${e}}`,"params")},b$={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:S$,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?Pr.operators.GT:Pr.operators.LT,a=i.opts.unicode===!1?(0,Pr._)`${r}.length`:(0,Pr._)`${(0,v$.useFunc)(e.gen,_$.default)}(${r})`;e.fail$data((0,Pr._)`${a} ${o} ${n}`)}};ac.default=b$});var lc=m(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});var P$=De(),Vo=A(),$$={message:s(({schemaCode:e})=>(0,Vo.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,Vo._)`{pattern: ${e}}`,"params")},O$={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:$$,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",u=r?(0,Vo._)`(new RegExp(${i}, ${a}))`:(0,P$.usePattern)(e,n);e.fail$data((0,Vo._)`!${u}.test(${t})`)}};cc.default=O$});var pc=m(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});var bi=A(),E$={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,bi.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,bi._)`{limit: ${e}}`,"params")},x$={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:E$,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?bi.operators.GT:bi.operators.LT;e.fail$data((0,bi._)`Object.keys(${r}).length ${i} ${n}`)}};fc.default=x$});var hc=m(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});var Pi=De(),$i=A(),w$=T(),A$={message:s(({params:{missingProperty:e}})=>(0,$i.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,$i._)`{missingProperty: ${e}}`,"params")},I$={keyword:"required",type:"object",schemaType:"array",$data:!0,error:A$,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:a}=e,{opts:u}=a;if(!o&&r.length===0)return;let c=r.length>=u.loopRequired;if(a.allErrors?l():p(),u.strictRequired){let h=e.parentSchema.properties,{definedProperties:g}=e.it;for(let y of r)if((h==null?void 0:h[y])===void 0&&!g.has(y)){let v=a.schemaEnv.baseId+a.errSchemaPath,_=`required property "${y}" is not defined at "${v}" (strictRequired)`;(0,w$.checkStrictMode)(a,_,a.opts.strictRequired)}}function l(){if(c||o)e.block$data($i.nil,f);else for(let h of r)(0,Pi.checkReportMissingProp)(e,h)}s(l,"allErrorsMode");function p(){let h=t.let("missing");if(c||o){let g=t.let("valid",!0);e.block$data(g,()=>d(h,g)),e.ok(g)}else t.if((0,Pi.checkMissingProp)(e,r,h)),(0,Pi.reportMissingProp)(e,h),t.else()}s(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,Pi.noPropertyInData)(t,i,h,u.ownProperties),()=>e.error())})}s(f,"loopAllRequired");function d(h,g){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(g,(0,Pi.propertyInData)(t,i,h,u.ownProperties)),t.if((0,$i.not)(g),()=>{e.error(),t.break()})},$i.nil)}s(d,"loopUntilMissing")}};dc.default=I$});var gc=m(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var Oi=A(),k$={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Oi.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,Oi._)`{limit: ${e}}`,"params")},R$={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:k$,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Oi.operators.GT:Oi.operators.LT;e.fail$data((0,Oi._)`${r}.length ${i} ${n}`)}};mc.default=R$});var Bo=m(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});var Ah=Au();Ah.code='require("ajv/dist/runtime/equal").default';yc.default=Ah});var Sc=m(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});var vc=ui(),se=A(),T$=T(),N$=Bo(),C$={message:s(({params:{i:e,j:t}})=>(0,se.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,se._)`{i: ${e}, j: ${t}}`,"params")},q$={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:C$,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:u}=e;if(!n&&!i)return;let c=t.let("valid"),l=o.items?(0,vc.getSchemaTypes)(o.items):[];e.block$data(c,p,(0,se._)`${a} === false`),e.ok(c);function p(){let g=t.let("i",(0,se._)`${r}.length`),y=t.let("j");e.setParams({i:g,j:y}),t.assign(c,!0),t.if((0,se._)`${g} > 1`,()=>(f()?d:h)(g,y))}s(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}s(f,"canOptimize");function d(g,y){let v=t.name("item"),_=(0,vc.checkDataTypes)(l,v,u.opts.strictNumbers,vc.DataType.Wrong),S=t.const("indices",(0,se._)`{}`);t.for((0,se._)`;${g}--;`,()=>{t.let(v,(0,se._)`${r}[${g}]`),t.if(_,(0,se._)`continue`),l.length>1&&t.if((0,se._)`typeof ${v} == "string"`,(0,se._)`${v} += "_"`),t.if((0,se._)`typeof ${S}[${v}] == "number"`,()=>{t.assign(y,(0,se._)`${S}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,se._)`${S}[${v}] = ${g}`)})}s(d,"loopN");function h(g,y){let v=(0,T$.useFunc)(t,N$.default),_=t.name("outer");t.label(_).for((0,se._)`;${g}--;`,()=>t.for((0,se._)`${y} = ${g}; ${y}--;`,()=>t.if((0,se._)`${v}(${r}[${g}], ${r}[${y}])`,()=>{e.error(),t.assign(c,!1).break(_)})))}s(h,"loopN2")}};_c.default=q$});var $c=m(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});var bc=A(),j$=T(),M$=Bo(),D$={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,bc._)`{allowedValue: ${e}}`,"params")},L$={keyword:"const",$data:!0,error:D$,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,bc._)`!${(0,j$.useFunc)(t,M$.default)}(${r}, ${i})`):e.fail((0,bc._)`${o} !== ${r}`)}};Pc.default=L$});var Ec=m(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});var Ei=A(),F$=T(),V$=Bo(),B$={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,Ei._)`{allowedValues: ${e}}`,"params")},H$={keyword:"enum",schemaType:"array",$data:!0,error:B$,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let u=i.length>=a.opts.loopEnum,c,l=s(()=>c??(c=(0,F$.useFunc)(t,V$.default)),"getEql"),p;if(u||n)p=t.let("valid"),e.block$data(p,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",o);p=(0,Ei.or)(...i.map((g,y)=>d(h,y)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",o,h=>t.if((0,Ei._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}s(f,"loopEnum");function d(h,g){let y=i[g];return typeof y=="object"&&y!==null?(0,Ei._)`${l()}(${r}, ${h}[${g}])`:(0,Ei._)`${r} === ${y}`}s(d,"equalCode")}};Oc.default=H$});var Ih=m(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});var U$=$h(),z$=Eh(),G$=oc(),Z$=uc(),K$=lc(),W$=pc(),Y$=hc(),Q$=gc(),J$=Sc(),X$=$c(),eO=Ec(),tO=[U$.default,z$.default,G$.default,Z$.default,K$.default,W$.default,Y$.default,Q$.default,J$.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},X$.default,eO.default];xc.default=tO});var Ac=m(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.validateAdditionalItems=void 0;var $r=A(),wc=T(),rO={message:s(({params:{len:e}})=>(0,$r.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,$r._)`{limit: ${e}}`,"params")},nO={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:rO,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,wc.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:o,it:a}=e;a.items=!0;let u=r.const("len",(0,$r._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,$r._)`${u} <= ${t.length}`);else if(typeof n=="object"&&!(0,wc.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,$r._)`${u} <= ${t.length}`);r.if((0,$r.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,u,p=>{e.subschema({keyword:o,dataProp:p,dataPropType:wc.Type.Num},l),a.allErrors||r.if((0,$r.not)(l),()=>r.break())})}s(c,"validateItems")}s(kh,"validateAdditionalItems");xi.validateAdditionalItems=kh;xi.default=nO});var Ic=m(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.validateTuple=void 0;var Rh=A(),Ho=T(),iO=De(),oO={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Th(e,"additionalItems",t);r.items=!0,!(0,Ho.alwaysValidSchema)(r,t)&&e.ok((0,iO.validateArray)(e))}};function Th(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:a,it:u}=e;p(i),u.opts.unevaluated&&r.length&&u.items!==!0&&(u.items=Ho.mergeEvaluated.items(n,r.length,u.items));let c=n.name("valid"),l=n.const("len",(0,Rh._)`${o}.length`);r.forEach((f,d)=>{(0,Ho.alwaysValidSchema)(u,f)||(n.if((0,Rh._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},c)),e.ok(c))});function p(f){let{opts:d,errSchemaPath:h}=u,g=r.length,y=g===f.minItems&&(g===f.maxItems||f[t]===!1);if(d.strictTuples&&!y){let v=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Ho.checkStrictMode)(u,v,d.strictTuples)}}s(p,"checkStrictTuple")}s(Th,"validateTuple");wi.validateTuple=Th;wi.default=oO});var Nh=m(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});var sO=Ic(),aO={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,sO.validateTuple)(e,"items"),"code")};kc.default=aO});var qh=m(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});var Ch=A(),uO=T(),cO=De(),lO=Ac(),fO={message:s(({params:{len:e}})=>(0,Ch.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Ch._)`{limit: ${e}}`,"params")},pO={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:fO,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,uO.alwaysValidSchema)(n,t)&&(i?(0,lO.validateAdditionalItems)(e,i):e.ok((0,cO.validateArray)(e)))}};Rc.default=pO});var jh=m(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});var Fe=A(),Uo=T(),dO={message:s(({params:{min:e,max:t}})=>t===void 0?(0,Fe.str)`must contain at least ${e} valid item(s)`:(0,Fe.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:s(({params:{min:e,max:t}})=>t===void 0?(0,Fe._)`{minContains: ${e}}`:(0,Fe._)`{minContains: ${e}, maxContains: ${t}}`,"params")},hO={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:dO,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,a,u,{minContains:c,maxContains:l}=n;o.opts.next?(a=c===void 0?1:c,u=l):a=1;let p=t.const("len",(0,Fe._)`${i}.length`);if(e.setParams({min:a,max:u}),u===void 0&&a===0){(0,Uo.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&a>u){(0,Uo.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Uo.alwaysValidSchema)(o,r)){let y=(0,Fe._)`${p} >= ${a}`;u!==void 0&&(y=(0,Fe._)`${y} && ${p} <= ${u}`),e.pass(y);return}o.items=!0;let f=t.name("valid");u===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),u!==void 0&&t.if((0,Fe._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let y=t.name("_valid"),v=t.let("count",0);h(y,()=>t.if(y,()=>g(v)))}s(d,"validateItemsWithCount");function h(y,v){t.forRange("i",0,p,_=>{e.subschema({keyword:"contains",dataProp:_,dataPropType:Uo.Type.Num,compositeRule:!0},y),v()})}s(h,"validateItems");function g(y){t.code((0,Fe._)`${y}++`),u===void 0?t.if((0,Fe._)`${y} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,Fe._)`${y} > ${u}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,Fe._)`${y} >= ${a}`,()=>t.assign(f,!0)))}s(g,"checkLimits")}};Tc.default=hO});var zo=m(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.validateSchemaDeps=ft.validatePropertyDeps=ft.error=void 0;var Nc=A(),mO=T(),Ai=De();ft.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Nc.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Nc._)`{property: ${e},
9
+ || ${a} === "boolean" || ${i} === null`).assign(u,(0,I._)`[${i}]`)}}s(c,"coerceSpecificType")}s(Q2,"coerceData");function J2({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,I._)`${t} !== undefined`,()=>e.assign((0,I._)`${t}[${r}]`,n))}s(J2,"assignParentData");function $u(e,t,r,n=nn.Correct){let i=n===nn.Correct?I.operators.EQ:I.operators.NEQ,o;switch(e){case"null":return(0,I._)`${t} ${i} null`;case"array":o=(0,I._)`Array.isArray(${t})`;break;case"object":o=(0,I._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,I._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,I._)`typeof ${t} ${i} ${e}`}return n===nn.Correct?o:(0,I.not)(o);function a(u=I.nil){return(0,I.and)((0,I._)`typeof ${t} == "number"`,u,r?(0,I._)`isFinite(${t})`:I.nil)}}s($u,"checkDataType");fe.checkDataType=$u;function Ou(e,t,r,n){if(e.length===1)return $u(e[0],t,r,n);let i,o=(0,pd.toHash)(e);if(o.array&&o.object){let a=(0,I._)`typeof ${t} != "object"`;i=o.null?a:(0,I._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else i=I.nil;o.number&&delete o.integer;for(let a in o)i=(0,I.and)(i,$u(a,t,r,n));return i}s(Ou,"checkDataTypes");fe.checkDataTypes=Ou;var X2={message:s(({schema:e})=>`must be ${e}`,"message"),params:s(({schema:e,schemaValue:t})=>typeof e=="string"?(0,I._)`{type: ${e}}`:(0,I._)`{type: ${t}}`,"params")};function Eu(e){let t=e1(e);(0,Z2.reportError)(t,X2)}s(Eu,"reportTypeError");fe.reportTypeError=Eu;function e1(e){let{gen:t,data:r,schema:n}=e,i=(0,pd.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(e1,"getTypeErrorContext")});var gd=m(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.assignDefaults=void 0;var on=A(),t1=T();function r1(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)md(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>md(e,o,i.default))}s(r1,"assignDefaults");Io.assignDefaults=r1;function md(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let u=(0,on._)`${o}${(0,on.getProperty)(t)}`;if(i){(0,t1.checkStrictMode)(e,`default is ignored for: ${u}`);return}let c=(0,on._)`${u} === undefined`;a.useDefaults==="empty"&&(c=(0,on._)`${c} || ${u} === null || ${u} === ""`),n.if(c,(0,on._)`${u} = ${(0,on.stringify)(r)}`)}s(md,"assignDefault")});var De=m(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.validateUnion=L.validateArray=L.usePattern=L.callValidateCode=L.schemaProperties=L.allSchemaProperties=L.noPropertyInData=L.propertyInData=L.isOwnProperty=L.hasPropFunc=L.reportMissingProp=L.checkMissingProp=L.checkReportMissingProp=void 0;var V=A(),xu=T(),Vt=Me(),n1=T();function i1(e,t){let{gen:r,data:n,it:i}=e;r.if(Au(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,V._)`${t}`},!0),e.error()})}s(i1,"checkReportMissingProp");L.checkReportMissingProp=i1;function o1({gen:e,data:t,it:{opts:r}},n,i){return(0,V.or)(...n.map(o=>(0,V.and)(Au(e,t,o,r.ownProperties),(0,V._)`${i} = ${o}`)))}s(o1,"checkMissingProp");L.checkMissingProp=o1;function s1(e,t){e.setParams({missingProperty:t},!0),e.error()}s(s1,"reportMissingProp");L.reportMissingProp=s1;function yd(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,V._)`Object.prototype.hasOwnProperty`})}s(yd,"hasPropFunc");L.hasPropFunc=yd;function wu(e,t,r){return(0,V._)`${yd(e)}.call(${t}, ${r})`}s(wu,"isOwnProperty");L.isOwnProperty=wu;function a1(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} !== undefined`;return n?(0,V._)`${i} && ${wu(e,t,r)}`:i}s(a1,"propertyInData");L.propertyInData=a1;function Au(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} === undefined`;return n?(0,V.or)(i,(0,V.not)(wu(e,t,r))):i}s(Au,"noPropertyInData");L.noPropertyInData=Au;function vd(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(vd,"allSchemaProperties");L.allSchemaProperties=vd;function u1(e,t){return vd(t).filter(r=>!(0,xu.alwaysValidSchema)(e,t[r]))}s(u1,"schemaProperties");L.schemaProperties=u1;function c1({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},u,c,l){let p=l?(0,V._)`${e}, ${t}, ${n}${i}`:t,f=[[Vt.default.instancePath,(0,V.strConcat)(Vt.default.instancePath,o)],[Vt.default.parentData,a.parentData],[Vt.default.parentDataProperty,a.parentDataProperty],[Vt.default.rootData,Vt.default.rootData]];a.opts.dynamicRef&&f.push([Vt.default.dynamicAnchors,Vt.default.dynamicAnchors]);let d=(0,V._)`${p}, ${r.object(...f)}`;return c!==V.nil?(0,V._)`${u}.call(${c}, ${d})`:(0,V._)`${u}(${d})`}s(c1,"callValidateCode");L.callValidateCode=c1;var l1=(0,V._)`new RegExp`;function f1({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,V._)`${i.code==="new RegExp"?l1:(0,n1.useFunc)(e,i)}(${r}, ${n})`})}s(f1,"usePattern");L.usePattern=f1;function p1(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let u=t.let("valid",!0);return a(()=>t.assign(u,!1)),u}return t.var(o,!0),a(()=>t.break()),o;function a(u){let c=t.const("len",(0,V._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:xu.Type.Num},o),t.if((0,V.not)(o),u)})}s(a,"validateItems")}s(p1,"validateArray");L.validateArray=p1;function d1(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,xu.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),u=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},u);t.assign(a,(0,V._)`${a} || ${u}`),e.mergeValidEvaluated(p,u)||t.if((0,V.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(d1,"validateUnion");L.validateUnion=d1});var bd=m(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.validateKeywordUsage=ut.validSchemaType=ut.funcKeywordCode=ut.macroKeywordCode=void 0;var ve=A(),_r=Me(),h1=De(),m1=ai();function g1(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,u=t.macro.call(a.self,i,o,a),c=Sd(r,n,u);a.opts.validateSchema!==!1&&a.self.validateSchema(u,!0);let l=r.name("valid");e.subschema({schema:u,schemaPath:ve.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}s(g1,"macroKeywordCode");ut.macroKeywordCode=g1;function y1(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:u,it:c}=e;_1(c,t);let l=!u&&t.compile?t.compile.call(c.self,o,a,c):t.validate,p=Sd(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)y(),t.modifying&&_d(e),v(()=>e.error());else{let _=t.async?h():g();t.modifying&&_d(e),v(()=>v1(e,_))}}s(d,"validateKeyword");function h(){let _=n.let("ruleErrs",null);return n.try(()=>y((0,ve._)`await `),S=>n.assign(f,!1).if((0,ve._)`${S} instanceof ${c.ValidationError}`,()=>n.assign(_,(0,ve._)`${S}.errors`),()=>n.throw(S))),_}s(h,"validateAsync");function g(){let _=(0,ve._)`${p}.errors`;return n.assign(_,null),y(ve.nil),_}s(g,"validateSync");function y(_=t.async?(0,ve._)`await `:ve.nil){let S=c.opts.passContext?_r.default.this:_r.default.self,b=!("compile"in t&&!u||t.schema===!1);n.assign(f,(0,ve._)`${_}${(0,h1.callValidateCode)(e,p,S,b)}`,t.modifying)}s(y,"assignValid");function v(_){var S;n.if((0,ve.not)((S=t.valid)!==null&&S!==void 0?S:f),_)}s(v,"reportErrs")}s(y1,"funcKeywordCode");ut.funcKeywordCode=y1;function _d(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,ve._)`${n.parentData}[${n.parentDataProperty}]`))}s(_d,"modifyData");function v1(e,t){let{gen:r}=e;r.if((0,ve._)`Array.isArray(${t})`,()=>{r.assign(_r.default.vErrors,(0,ve._)`${_r.default.vErrors} === null ? ${t} : ${_r.default.vErrors}.concat(${t})`).assign(_r.default.errors,(0,ve._)`${_r.default.vErrors}.length`),(0,m1.extendErrors)(e)},()=>e.error())}s(v1,"addErrs");function _1({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(_1,"checkAsyncKeyword");function Sd(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,ve.stringify)(r)})}s(Sd,"useKeyword");function S1(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")}s(S1,"validSchemaType");ut.validSchemaType=S1;function b1({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(u=>!Object.prototype.hasOwnProperty.call(e,u)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let c=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}s(b1,"validateKeywordUsage");ut.validateKeywordUsage=b1});var $d=m(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.extendSubschemaMode=Bt.extendSubschemaData=Bt.getSubschema=void 0;var ct=A(),Pd=T();function P1(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,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 u=e.schema[t];return r===void 0?{schema:u,schemaPath:(0,ct._)`${e.schemaPath}${(0,ct.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:u[r],schemaPath:(0,ct._)`${e.schemaPath}${(0,ct.getProperty)(t)}${(0,ct.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Pd.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}s(P1,"getSubschema");Bt.getSubschema=P1;function $1(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:u}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=u.let("data",(0,ct._)`${t.data}${(0,ct.getProperty)(r)}`,!0);c(d),e.errorPath=(0,ct.str)`${l}${(0,Pd.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,ct._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof ct.Name?i:u.let("data",i,!0);c(l),a!==void 0&&(e.propertyName=a)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}s(c,"dataContextProps")}s($1,"extendSubschemaData");Bt.extendSubschemaData=$1;function O1(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}s(O1,"extendSubschemaMode");Bt.extendSubschemaMode=O1});var Iu=m((oq,Od)=>{"use strict";Od.exports=s(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,o;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(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var xd=m((aq,Ed)=>{"use strict";var Ht=Ed.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(){};ko(t,n,i,e,"",e)};Ht.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Ht.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Ht.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Ht.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 ko(e,t,r,n,i,o,a,u,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,u,c,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in Ht.arrayKeywords)for(var d=0;d<f.length;d++)ko(e,t,r,f[d],i+"/"+p+"/"+d,o,i,p,n,d)}else if(p in Ht.propsKeywords){if(f&&typeof f=="object")for(var h in f)ko(e,t,r,f[h],i+"/"+p+"/"+E1(h),o,i,p,n,h)}else(p in Ht.keywords||e.allKeys&&!(p in Ht.skipKeywords))&&ko(e,t,r,f,i+"/"+p,o,i,p,n)}r(n,i,o,a,u,c,l)}}s(ko,"_traverse");function E1(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(E1,"escapeJsonPtr")});var ci=m(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.getSchemaRefs=xe.resolveUrl=xe.normalizeId=xe._getFullPath=xe.getFullPath=xe.inlineRef=void 0;var x1=T(),w1=Iu(),A1=xd(),I1=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function k1(e,t=!0){return typeof e=="boolean"?!0:t===!0?!ku(e):t?wd(e)<=t:!1}s(k1,"inlineRef");xe.inlineRef=k1;var R1=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ku(e){for(let t in e){if(R1.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(ku)||typeof r=="object"&&ku(r))return!0}return!1}s(ku,"hasRef");function wd(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!I1.has(r)&&(typeof e[r]=="object"&&(0,x1.eachItem)(e[r],n=>t+=wd(n)),t===1/0))return 1/0}return t}s(wd,"countKeys");function Ad(e,t="",r){r!==!1&&(t=sn(t));let n=e.parse(t);return Id(e,n)}s(Ad,"getFullPath");xe.getFullPath=Ad;function Id(e,t){return e.serialize(t).split("#")[0]+"#"}s(Id,"_getFullPath");xe._getFullPath=Id;var T1=/#\/?$/;function sn(e){return e?e.replace(T1,""):""}s(sn,"normalizeId");xe.normalizeId=sn;function C1(e,t,r){return r=sn(r),e.resolve(t,r)}s(C1,"resolveUrl");xe.resolveUrl=C1;var N1=/^[a-z_][-a-z0-9._]*$/i;function q1(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=sn(e[r]||t),o={"":i},a=Ad(n,i,!1),u={},c=new Set;return A1(e,{allKeys:!0},(f,d,h,g)=>{if(g===void 0)return;let y=a+d,v=o[g];typeof f[r]=="string"&&(v=_.call(this,f[r])),S.call(this,f.$anchor),S.call(this,f.$dynamicAnchor),o[d]=v;function _(b){let E=this.opts.uriResolver.resolve;if(b=sn(v?E(v,b):b),c.has(b))throw p(b);c.add(b);let $=this.refs[b];return typeof $=="string"&&($=this.refs[$]),typeof $=="object"?l(f,$.schema,b):b!==sn(y)&&(b[0]==="#"?(l(f,u[b],b),u[b]=f):this.refs[b]=y),b}s(_,"addRef");function S(b){if(typeof b=="string"){if(!N1.test(b))throw new Error(`invalid anchor "${b}"`);_.call(this,`#${b}`)}}s(S,"addAnchor")}),u;function l(f,d,h){if(d!==void 0&&!w1(f,d))throw p(h)}s(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}s(p,"ambiguos")}s(q1,"getSchemaRefs");xe.getSchemaRefs=q1});var pi=m(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.getData=Ut.KeywordCxt=Ut.validateFunctionCode=void 0;var Nd=cd(),kd=ui(),Tu=Pu(),Ro=ui(),j1=gd(),fi=bd(),Ru=$d(),O=A(),w=Me(),M1=ci(),At=T(),li=ai();function D1(e){if(Md(e)&&(Dd(e),jd(e))){V1(e);return}qd(e,()=>(0,Nd.topBoolOrEmptySchema)(e))}s(D1,"validateFunctionCode");Ut.validateFunctionCode=D1;function qd({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,O._)`${w.default.data}, ${w.default.valCxt}`,n.$async,()=>{e.code((0,O._)`"use strict"; ${Rd(r,i)}`),F1(e,i),e.code(o)}):e.func(t,(0,O._)`${w.default.data}, ${L1(i)}`,n.$async,()=>e.code(Rd(r,i)).code(o))}s(qd,"validateFunction");function L1(e){return(0,O._)`{${w.default.instancePath}="", ${w.default.parentData}, ${w.default.parentDataProperty}, ${w.default.rootData}=${w.default.data}${e.dynamicRef?(0,O._)`, ${w.default.dynamicAnchors}={}`:O.nil}}={}`}s(L1,"destructureValCxt");function F1(e,t){e.if(w.default.valCxt,()=>{e.var(w.default.instancePath,(0,O._)`${w.default.valCxt}.${w.default.instancePath}`),e.var(w.default.parentData,(0,O._)`${w.default.valCxt}.${w.default.parentData}`),e.var(w.default.parentDataProperty,(0,O._)`${w.default.valCxt}.${w.default.parentDataProperty}`),e.var(w.default.rootData,(0,O._)`${w.default.valCxt}.${w.default.rootData}`),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,O._)`${w.default.valCxt}.${w.default.dynamicAnchors}`)},()=>{e.var(w.default.instancePath,(0,O._)`""`),e.var(w.default.parentData,(0,O._)`undefined`),e.var(w.default.parentDataProperty,(0,O._)`undefined`),e.var(w.default.rootData,w.default.data),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,O._)`{}`)})}s(F1,"destructureValCxtES5");function V1(e){let{schema:t,opts:r,gen:n}=e;qd(e,()=>{r.$comment&&t.$comment&&Fd(e),G1(e),n.let(w.default.vErrors,null),n.let(w.default.errors,0),r.unevaluated&&B1(e),Ld(e),W1(e)})}s(V1,"topSchemaObjCode");function B1(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`))}s(B1,"resetEvaluated");function Rd(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,O._)`/*# sourceURL=${r} */`:O.nil}s(Rd,"funcSourceUrl");function H1(e,t){if(Md(e)&&(Dd(e),jd(e))){U1(e,t);return}(0,Nd.boolOrEmptySchema)(e,t)}s(H1,"subschemaCode");function jd({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}s(jd,"schemaCxtHasRules");function Md(e){return typeof e.schema!="boolean"}s(Md,"isSchemaObj");function U1(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Fd(e),Z1(e),K1(e);let o=n.const("_errs",w.default.errors);Ld(e,o),n.var(t,(0,O._)`${o} === ${w.default.errors}`)}s(U1,"subSchemaObjCode");function Dd(e){(0,At.checkUnknownRules)(e),z1(e)}s(Dd,"checkKeywords");function Ld(e,t){if(e.opts.jtd)return Td(e,[],!1,t);let r=(0,kd.getSchemaTypes)(e.schema),n=(0,kd.coerceAndCheckDataType)(e,r);Td(e,r,!n,t)}s(Ld,"typeAndKeywords");function z1(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,At.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s(z1,"checkRefsAndKeywords");function G1(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,At.checkStrictMode)(e,"default is ignored in the schema root")}s(G1,"checkNoDefault");function Z1(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,M1.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(Z1,"updateContext");function K1(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s(K1,"checkAsyncSchema");function Fd({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,O._)`${w.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,O.str)`${n}/$comment`,u=e.scopeValue("root",{ref:t.root});e.code((0,O._)`${w.default.self}.opts.$comment(${o}, ${a}, ${u}.schema)`)}}s(Fd,"commentKeyword");function W1(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,O._)`${w.default.errors} === 0`,()=>t.return(w.default.data),()=>t.throw((0,O._)`new ${i}(${w.default.vErrors})`)):(t.assign((0,O._)`${n}.errors`,w.default.vErrors),o.unevaluated&&Y1(e),t.return((0,O._)`${w.default.errors} === 0`))}s(W1,"returnResults");function Y1({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)}s(Y1,"assignEvaluated");function Td(e,t,r,n){let{gen:i,schema:o,data:a,allErrors:u,opts:c,self:l}=e,{RULES:p}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,At.schemaHasRulesButRef)(o,p))){i.block(()=>Bd(e,"$ref",p.all.$ref.definition));return}c.jtd||Q1(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,Tu.shouldUseGroup)(o,d)&&(d.type?(i.if((0,Ro.checkDataType)(d.type,a,c.strictNumbers)),Cd(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Ro.reportTypeError)(e)),i.endIf()):Cd(e,d),u||i.if((0,O._)`${w.default.errors} === ${n||0}`))}s(f,"groupKeywords")}s(Td,"schemaKeywords");function Cd(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,j1.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,Tu.shouldUseRule)(n,o)&&Bd(e,o.keyword,o.definition,t.type)})}s(Cd,"iterateKeywords");function Q1(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(J1(e,t),e.opts.allowUnionTypes||X1(e,t),eP(e,e.dataTypes))}s(Q1,"checkStrictTypes");function J1(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Vd(e.dataTypes,r)||Cu(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),rP(e,t)}}s(J1,"checkContextTypes");function X1(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Cu(e,"use allowUnionTypes to allow union type keyword")}s(X1,"checkMultipleTypes");function eP(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Tu.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>tP(t,a))&&Cu(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(eP,"checkKeywordTypes");function tP(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(tP,"hasApplicableType");function Vd(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(Vd,"includesType");function rP(e,t){let r=[];for(let n of e.dataTypes)Vd(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s(rP,"narrowSchemaTypes");function Cu(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,At.checkStrictMode)(e,t,e.opts.strictTypes)}s(Cu,"strictTypesError");var Nu=class Nu{constructor(t,r,n){if((0,fi.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,At.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",Hd(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,fi.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",w.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?li.reportExtraError:li.reportError)(this,this.def.error,r)}$dataError(){(0,li.reportError)(this,this.def.$dataError||li.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,li.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:o,def:a}=this;n.if((0,O.or)((0,O._)`${i} === undefined`,r)),t!==O.nil&&n.assign(t,!0),(o.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:o}=this;return(0,O.or)(a(),u());function a(){if(n.length){if(!(r instanceof O.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,O._)`${(0,Ro.checkDataTypes)(c,r,o.opts.strictNumbers,Ro.DataType.Wrong)}`}return O.nil}function u(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,O._)`!${c}(${r})`}return O.nil}}subschema(t,r){let n=(0,Ru.getSubschema)(this.it,t);(0,Ru.extendSubschemaData)(n,this.it,t),(0,Ru.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return H1(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=At.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=At.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}};s(Nu,"KeywordCxt");var To=Nu;Ut.KeywordCxt=To;function Bd(e,t,r,n){let i=new To(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,fi.funcKeywordCode)(i,r):"macro"in r?(0,fi.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,fi.funcKeywordCode)(i,r)}s(Bd,"keywordCode");var nP=/^\/(?:[^~]|~0|~1)*$/,iP=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Hd(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return w.default.rootData;if(e[0]==="/"){if(!nP.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=w.default.rootData}else{let l=iP.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(i=l[2],i==="#"){if(p>=t)throw new Error(c("property/index",p));return n[t-p]}if(p>t)throw new Error(c("data",p));if(o=r[t-p],!i)return o}let a=o,u=i.split("/");for(let l of u)l&&(o=(0,O._)`${o}${(0,O.getProperty)((0,At.unescapeJsonPointer)(l))}`,a=(0,O._)`${a} && ${o}`);return a;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}s(Hd,"getData");Ut.getData=Hd});var Co=m(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});var Mu=class Mu extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(Mu,"ValidationError");var qu=Mu;ju.default=qu});var di=m(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});var Du=ci(),Vu=class Vu extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Du.resolveUrl)(t,r,n),this.missingSchema=(0,Du.normalizeId)((0,Du.getFullPath)(t,this.missingRef))}};s(Vu,"MissingRefError");var Lu=Vu;Fu.default=Lu});var hi=m(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.resolveSchema=Le.getCompilingSchema=Le.resolveRef=Le.compileSchema=Le.SchemaEnv=void 0;var Ke=A(),oP=Co(),Sr=Me(),We=ci(),Ud=T(),sP=pi(),Uu=class Uu{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,We.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={}}};s(Uu,"SchemaEnv");var an=Uu;Le.SchemaEnv=an;function Hu(e){let t=zd.call(this,e);if(t)return t;let r=(0,We.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Ke.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),u;e.$async&&(u=a.scopeValue("Error",{ref:oP.default,code:(0,Ke._)`require("ajv/dist/runtime/validation_error").default`}));let c=a.scopeName("validate");e.validateName=c;let l={gen:a,allErrors:this.opts.allErrors,data:Sr.default.data,parentData:Sr.default.parentData,parentDataProperty:Sr.default.parentDataProperty,dataNames:[Sr.default.data],dataPathArr:[Ke.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ke.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:u,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Ke.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ke._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,sP.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(Sr.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${Sr.default.self}`,`${Sr.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:g,items:y}=l;h.evaluated={props:g instanceof Ke.Name?void 0:g,items:y instanceof Ke.Name?void 0:y,dynamicProps:g instanceof Ke.Name,dynamicItems:y instanceof Ke.Name},h.source&&(h.source.evaluated=(0,Ke.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(e)}}s(Hu,"compileSchema");Le.compileSchema=Hu;function aP(e,t,r){var n;r=(0,We.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=lP.call(this,e,r);if(o===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:u}=this.opts;a&&(o=new an({schema:a,schemaId:u,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=uP.call(this,o)}s(aP,"resolveRef");Le.resolveRef=aP;function uP(e){return(0,We.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Hu.call(this,e)}s(uP,"inlineOrCompile");function zd(e){for(let t of this._compilations)if(cP(t,e))return t}s(zd,"getCompilingSchema");Le.getCompilingSchema=zd;function cP(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(cP,"sameSchemaEnv");function lP(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||No.call(this,e,t)}s(lP,"resolve");function No(e,t){let r=this.opts.uriResolver.parse(t),n=(0,We._getFullPath)(this.opts.uriResolver,r),i=(0,We.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Bu.call(this,r,e);let o=(0,We.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let u=No.call(this,e,a);return typeof(u==null?void 0:u.schema)!="object"?void 0:Bu.call(this,r,u)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Hu.call(this,a),o===(0,We.normalizeId)(t)){let{schema:u}=a,{schemaId:c}=this.opts,l=u[c];return l&&(i=(0,We.resolveUrl)(this.opts.uriResolver,i,l)),new an({schema:u,schemaId:c,root:e,baseId:i})}return Bu.call(this,r,a)}}s(No,"resolveSchema");Le.resolveSchema=No;var fP=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Bu(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let u of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,Ud.unescapeFragment)(u)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!fP.has(u)&&l&&(t=(0,We.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Ud.schemaHasRulesButRef)(r,this.RULES)){let u=(0,We.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=No.call(this,n,u)}let{schemaId:a}=this.opts;if(o=o||new an({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(Bu,"getJsonPointer")});var Gd=m((_q,pP)=>{pP.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 Kd=m((Sq,Zd)=>{"use strict";var dP={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};Zd.exports={HEX:dP}});var rh=m((bq,th)=>{"use strict";var{HEX:hP}=Kd();function Jd(e){if(eh(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:gP(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(Jd,"normalizeIPv4");function zu(e,t=!1){let r="",n=!0;for(let i of e){if(hP[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(zu,"stringArrayToHexStripped");function mP(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,a=!1,u=!1;function c(){if(i.length){if(o===!1){let l=zu(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}s(c,"consume");for(let l=0;l<e.length;l++){let p=e[l];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(u=!0),!c())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(p==="%"){if(!c())break;o=!0}else{i.push(p);continue}}return i.length&&(o?r.zone=i.join(""):u?n.push(i.join("")):n.push(zu(i))),r.address=n.join(""),r}s(mP,"getIPV6");function Xd(e,t={}){if(eh(e,":")<2)return{host:e,isIPV6:!1};let r=mP(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}}}s(Xd,"normalizeIPv6");function gP(e,t){let r="",n=!0,i=e.length;for(let o=0;o<i;o++){let a=e[o];a==="0"&&n?(o+1<=i&&e[o+1]===t||o+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}s(gP,"stripLeadingZeros");function eh(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(eh,"findToken");var Wd=/^\.\.?\//u,Yd=/^\/\.(?:\/|$)/u,Qd=/^\/\.\.(?:\/|$)/u,yP=/^\/?(?:.|\n)*?(?=\/|$)/u;function vP(e){let t=[];for(;e.length;)if(e.match(Wd))e=e.replace(Wd,"");else if(e.match(Yd))e=e.replace(Yd,"/");else if(e.match(Qd))e=e.replace(Qd,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(yP);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("")}s(vP,"removeDotSegments");function _P(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}s(_P,"normalizeComponentEncoding");function SP(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=Jd(n);if(i.isIPV4)n=i.host;else{let o=Xd(i.host,{isIPV4:!1});o.isIPV6===!0?n=`[${o.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}s(SP,"recomposeAuthority");th.exports={recomposeAuthority:SP,normalizeComponentEncoding:_P,removeDotSegments:vP,normalizeIPv4:Jd,normalizeIPv6:Xd,stringArrayToHexStripped:zu}});var uh=m(($q,ah)=>{"use strict";var bP=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,PP=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function nh(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s(nh,"isSecure");function ih(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(ih,"httpParse");function oh(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}s(oh,"httpSerialize");function $P(e){return e.secure=nh(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s($P,"wsParse");function OP(e){if((e.port===(nh(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}s(OP,"wsSerialize");function EP(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(PP);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}`,o=Gu[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(EP,"urnParse");function xP(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=Gu[i];o&&(e=o.serialize(e,t));let a=e,u=e.nss;return a.path=`${n||t.nid}:${u}`,t.skipEscape=!0,a}s(xP,"urnSerialize");function wP(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!bP.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(wP,"urnuuidParse");function AP(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(AP,"urnuuidSerialize");var sh={scheme:"http",domainHost:!0,parse:ih,serialize:oh},IP={scheme:"https",domainHost:sh.domainHost,parse:ih,serialize:oh},qo={scheme:"ws",domainHost:!0,parse:$P,serialize:OP},kP={scheme:"wss",domainHost:qo.domainHost,parse:qo.parse,serialize:qo.serialize},RP={scheme:"urn",parse:EP,serialize:xP,skipNormalize:!0},TP={scheme:"urn:uuid",parse:wP,serialize:AP,skipNormalize:!0},Gu={http:sh,https:IP,ws:qo,wss:kP,urn:RP,"urn:uuid":TP};ah.exports=Gu});var lh=m((Eq,Mo)=>{"use strict";var{normalizeIPv6:CP,normalizeIPv4:NP,removeDotSegments:mi,recomposeAuthority:qP,normalizeComponentEncoding:jo}=rh(),Zu=uh();function jP(e,t){return typeof e=="string"?e=lt(It(e,t),t):typeof e=="object"&&(e=It(lt(e,t),t)),e}s(jP,"normalize");function MP(e,t,r){let n=Object.assign({scheme:"null"},r),i=ch(It(e,n),It(t,n),n,!0);return lt(i,{...n,skipEscape:!0})}s(MP,"resolve");function ch(e,t,r,n){let i={};return n||(e=It(lt(e,r),r),t=It(lt(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=mi(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=mi(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=mi(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=mi(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}s(ch,"resolveComponents");function DP(e,t,r){return typeof e=="string"?(e=unescape(e),e=lt(jo(It(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=lt(jo(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=lt(jo(It(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=lt(jo(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(DP,"equal");function lt(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=[],o=Zu[(n.scheme||r.scheme||"").toLowerCase()];o&&o.serialize&&o.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=qP(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 u=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(u=mi(u)),a===void 0&&(u=u.replace(/^\/\//u,"/%2F")),i.push(u)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}s(lt,"serialize");var LP=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function FP(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||LP[t])return!0;return!1}s(FP,"nonSimpleDomain");var VP=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function It(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,o=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(VP);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 c=NP(n.host);if(c.isIPV4===!1){let l=CP(c.host,{isIPV4:!1});n.host=l.host.toLowerCase(),o=l.isIPV6}else n.host=c.host,o=!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 u=Zu[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!u||!u.unicodeSupport)&&n.host&&(r.domainHost||u&&u.domainHost)&&o===!1&&FP(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(c){n.error=n.error||"Host's domain name can not be converted to ASCII: "+c}(!u||u&&!u.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)))),u&&u.parse&&u.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}s(It,"parse");var Ku={SCHEMES:Zu,normalize:jP,resolve:MP,resolveComponents:ch,equal:DP,serialize:lt,parse:It};Mo.exports=Ku;Mo.exports.default=Ku;Mo.exports.fastUri=Ku});var ph=m(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var fh=lh();fh.code='require("ajv/dist/runtime/uri").default';Wu.default=fh});var cn=m(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.CodeGen=oe.Name=oe.nil=oe.stringify=oe.str=oe._=oe.KeywordCxt=void 0;var BP=pi();Object.defineProperty(oe,"KeywordCxt",{enumerable:!0,get:s(function(){return BP.KeywordCxt},"get")});var un=A();Object.defineProperty(oe,"_",{enumerable:!0,get:s(function(){return un._},"get")});Object.defineProperty(oe,"str",{enumerable:!0,get:s(function(){return un.str},"get")});Object.defineProperty(oe,"stringify",{enumerable:!0,get:s(function(){return un.stringify},"get")});Object.defineProperty(oe,"nil",{enumerable:!0,get:s(function(){return un.nil},"get")});Object.defineProperty(oe,"Name",{enumerable:!0,get:s(function(){return un.Name},"get")});Object.defineProperty(oe,"CodeGen",{enumerable:!0,get:s(function(){return un.CodeGen},"get")});var HP=Co(),yh=di(),UP=bu(),gi=hi(),zP=A(),yi=ci(),Do=ui(),Qu=T(),dh=Gd(),GP=ph(),vh=s((e,t)=>new RegExp(e,t),"defaultRegExp");vh.code="new RegExp";var ZP=["removeAdditional","useDefaults","coerceTypes"],KP=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),WP={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."},YP={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},hh=200;function QP(e){var t,r,n,i,o,a,u,c,l,p,f,d,h,g,y,v,_,S,b,E,$,M,j,re,ne;let ue=e.strict,qe=(t=e.code)===null||t===void 0?void 0:t.optimize,$e=qe===!0||qe===void 0?1:qe||0,Dt=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:vh,Zr=(i=e.uriResolver)!==null&&i!==void 0?i:GP.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:ue)!==null&&a!==void 0?a:!0,strictNumbers:(c=(u=e.strictNumbers)!==null&&u!==void 0?u:ue)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:ue)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:ue)!==null&&d!==void 0?d:"log",strictRequired:(g=(h=e.strictRequired)!==null&&h!==void 0?h:ue)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:$e,regExp:Dt}:{optimize:$e,regExp:Dt},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:hh,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:hh,meta:(_=e.meta)!==null&&_!==void 0?_:!0,messages:(S=e.messages)!==null&&S!==void 0?S:!0,inlineRefs:(b=e.inlineRefs)!==null&&b!==void 0?b:!0,schemaId:(E=e.schemaId)!==null&&E!==void 0?E:"$id",addUsedSchema:($=e.addUsedSchema)!==null&&$!==void 0?$:!0,validateSchema:(M=e.validateSchema)!==null&&M!==void 0?M:!0,validateFormats:(j=e.validateFormats)!==null&&j!==void 0?j:!0,unicodeRegExp:(re=e.unicodeRegExp)!==null&&re!==void 0?re:!0,int32range:(ne=e.int32range)!==null&&ne!==void 0?ne:!0,uriResolver:Zr}}s(QP,"requiredOptions");var Ju=class Ju{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...QP(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new zP.ValueScope({scope:{},prefixes:KP,es5:r,lines:n}),this.logger=n$(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,UP.getRules)(),mh.call(this,WP,t,"NOT SUPPORTED"),mh.call(this,YP,t,"DEPRECATED","warn"),this._metaOpts=t$.call(this),t.formats&&XP.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&e$.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),JP.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=dh;n==="id"&&(i={...dh},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(p,f){await o.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function o(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof yh.default))throw f;return u.call(this,f),await c.call(this,f.missingSchema),a.call(this,p)}}function u({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function c(p){let f=await l.call(this,p);this.refs[p]||await o.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}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 o;if(typeof t=="object"){let{schemaId:a}=this.opts;if(o=t[a],o!==void 0&&typeof o!="string")throw new Error(`schema ${a} must be string`)}return r=(0,yi.normalizeId)(r||o),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 o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=gh.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new gi.SchemaEnv({schema:{},schemaId:n});if(r=gi.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=gh.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,yi.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(o$.call(this,n,r),!r)return(0,Qu.eachItem)(n,o=>Yu.call(this,o)),this;a$.call(this,r);let i={...r,type:(0,Do.getJSONTypes)(r.type),schemaType:(0,Do.getJSONTypes)(r.schemaType)};return(0,Qu.eachItem)(n,i.type.length===0?o=>Yu.call(this,o,i):o=>i.type.forEach(a=>Yu.call(this,o,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(o=>o.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,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),a=t;for(let u of o)a=a[u];for(let u in n){let c=n[u];if(typeof c!="object")continue;let{$data:l}=c.definition,p=a[u];l&&p&&(a[u]=_h(p))}}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,o=this.opts.addUsedSchema){let a,{schemaId:u}=this.opts;if(typeof t=="object")a=t[u];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 c=this._cache.get(t);if(c!==void 0)return c;n=(0,yi.normalizeId)(a||n);let l=yi.getSchemaRefs.call(this,t,n);return c=new gi.SchemaEnv({schema:t,schemaId:u,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(t,!0),c}_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):gi.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{gi.compileSchema.call(this,t)}finally{this.opts=r}}};s(Ju,"Ajv");var vi=Ju;vi.ValidationError=HP.default;vi.MissingRefError=yh.default;oe.default=vi;function mh(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}s(mh,"checkOptions");function gh(e){return e=(0,yi.normalizeId)(e),this.schemas[e]||this.refs[e]}s(gh,"getSchEnv");function JP(){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)}s(JP,"addInitialSchemas");function XP(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(XP,"addInitialFormats");function e$(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)}}s(e$,"addInitialKeywords");function t$(){let e={...this.opts};for(let t of ZP)delete e[t];return e}s(t$,"getMetaSchemaOptions");var r$={log(){},warn(){},error(){}};function n$(e){if(e===!1)return r$;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")}s(n$,"getLogger");var i$=/^[a-z_$][a-z0-9_$:-]*$/i;function o$(e,t){let{RULES:r}=this;if((0,Qu.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!i$.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')}s(o$,"checkKeyword");function Yu(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:o}=this,a=i?o.post:o.rules.find(({type:c})=>c===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;let u={keyword:e,definition:{...t,type:(0,Do.getJSONTypes)(t.type),schemaType:(0,Do.getJSONTypes)(t.schemaType)}};t.before?s$.call(this,a,u,t.before):a.rules.push(u),o.all[e]=u,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}s(Yu,"addRule");function s$(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`))}s(s$,"addBeforeRule");function a$(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=_h(t)),e.validateSchema=this.compile(t,!0))}s(a$,"keywordMetaschema");var u$={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function _h(e){return{anyOf:[e,u$]}}s(_h,"schemaOrData")});var _i=m(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.callRef=br.getValidate=void 0;var c$=di(),Sh=De(),we=A(),ln=Me(),bh=hi(),Lo=T(),l$={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:a,opts:u,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=bh.resolveRef.call(c,l,i,r);if(p===void 0)throw new c$.default(n.opts.uriResolver,i,r);if(p instanceof bh.SchemaEnv)return d(p);return h(p);function f(){if(o===l)return Fo(e,a,o,o.$async);let g=t.scopeValue("root",{ref:l});return Fo(e,(0,we._)`${g}.validate`,l,l.$async)}function d(g){let y=Ph(e,g);Fo(e,y,g,g.$async)}function h(g){let y=t.scopeValue("schema",u.code.source===!0?{ref:g,code:(0,we.stringify)(g)}:{ref:g}),v=t.name("valid"),_=e.subschema({schema:g,dataTypes:[],schemaPath:we.nil,topSchemaRef:y,errSchemaPath:r},v);e.mergeEvaluated(_),e.ok(v)}}};function Ph(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,we._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(Ph,"getValidate");br.getValidate=Ph;function Fo(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:u,opts:c}=o,l=c.passContext?ln.default.this:we.nil;n?p():f();function p(){if(!u.$async)throw new Error("async schema referenced by sync schema");let g=i.let("valid");i.try(()=>{i.code((0,we._)`await ${(0,Sh.callValidateCode)(e,t,l)}`),h(t),a||i.assign(g,!0)},y=>{i.if((0,we._)`!(${y} instanceof ${o.ValidationError})`,()=>i.throw(y)),d(y),a||i.assign(g,!1)}),e.ok(g)}s(p,"callAsyncRef");function f(){e.result((0,Sh.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}s(f,"callSyncRef");function d(g){let y=(0,we._)`${g}.errors`;i.assign(ln.default.vErrors,(0,we._)`${ln.default.vErrors} === null ? ${y} : ${ln.default.vErrors}.concat(${y})`),i.assign(ln.default.errors,(0,we._)`${ln.default.vErrors}.length`)}s(d,"addErrorsFrom");function h(g){var y;if(!o.opts.unevaluated)return;let v=(y=r==null?void 0:r.validate)===null||y===void 0?void 0:y.evaluated;if(o.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(o.props=Lo.mergeEvaluated.props(i,v.props,o.props));else{let _=i.var("props",(0,we._)`${g}.evaluated.props`);o.props=Lo.mergeEvaluated.props(i,_,o.props,we.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=Lo.mergeEvaluated.items(i,v.items,o.items));else{let _=i.var("items",(0,we._)`${g}.evaluated.items`);o.items=Lo.mergeEvaluated.items(i,_,o.items,we.Name)}}s(h,"addEvaluatedFrom")}s(Fo,"callRef");br.callRef=Fo;br.default=l$});var $h=m(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var f$=_i(),p$=["$schema","id","$defs",{keyword:"$comment"},"definitions",f$.default];Xu.default=p$});var Oh=m(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var ec=cn(),d$=A(),zt=d$.operators,tc={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:zt.LTE,fail:zt.GT},{okStr:"<",ok:zt.LT,fail:zt.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:zt.GTE,fail:zt.LT},{okStr:">",ok:zt.GT,fail:zt.LTE}]}},h$={message:s(e=>ec.str`must be ${rc(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>ec._`{comparison: ${rc(e).okStr}, limit: ${e.schemaCode}}`,"params")},m$={keyword:Object.keys(tc),type:"number",schemaType:"number",$data:!0,error:h$,code(e){let{data:t,schemaCode:r}=e;e.fail$data(ec._`${t} ${rc(e).fail} ${r} || isNaN(${t})`)}};function rc(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[tc[r].exclusive]?1:0;return tc[r].ops[n]}s(rc,"kwdOp");nc.default=m$});var xh=m(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var Eh={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},g$={keyword:Object.keys(Eh),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Eh[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};ic.default=g$});var sc=m(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});var Si=A(),y$={message:s(({schemaCode:e})=>(0,Si.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,Si._)`{multipleOf: ${e}}`,"params")},v$={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:y$,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),u=o?(0,Si._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,Si._)`${a} !== parseInt(${a})`;e.fail$data((0,Si._)`(${n} === 0 || (${a} = ${r}/${n}, ${u}))`)}};oc.default=v$});var Ah=m(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});function wh(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}s(wh,"ucs2length");ac.default=wh;wh.code='require("ajv/dist/runtime/ucs2length").default'});var cc=m(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});var Pr=A(),_$=T(),S$=Ah(),b$={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Pr.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,Pr._)`{limit: ${e}}`,"params")},P$={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:b$,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?Pr.operators.GT:Pr.operators.LT,a=i.opts.unicode===!1?(0,Pr._)`${r}.length`:(0,Pr._)`${(0,_$.useFunc)(e.gen,S$.default)}(${r})`;e.fail$data((0,Pr._)`${a} ${o} ${n}`)}};uc.default=P$});var fc=m(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});var $$=De(),Vo=A(),O$={message:s(({schemaCode:e})=>(0,Vo.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,Vo._)`{pattern: ${e}}`,"params")},E$={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:O$,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",u=r?(0,Vo._)`(new RegExp(${i}, ${a}))`:(0,$$.usePattern)(e,n);e.fail$data((0,Vo._)`!${u}.test(${t})`)}};lc.default=E$});var dc=m(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var bi=A(),x$={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,bi.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,bi._)`{limit: ${e}}`,"params")},w$={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:x$,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?bi.operators.GT:bi.operators.LT;e.fail$data((0,bi._)`Object.keys(${r}).length ${i} ${n}`)}};pc.default=w$});var mc=m(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});var Pi=De(),$i=A(),A$=T(),I$={message:s(({params:{missingProperty:e}})=>(0,$i.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,$i._)`{missingProperty: ${e}}`,"params")},k$={keyword:"required",type:"object",schemaType:"array",$data:!0,error:I$,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:a}=e,{opts:u}=a;if(!o&&r.length===0)return;let c=r.length>=u.loopRequired;if(a.allErrors?l():p(),u.strictRequired){let h=e.parentSchema.properties,{definedProperties:g}=e.it;for(let y of r)if((h==null?void 0:h[y])===void 0&&!g.has(y)){let v=a.schemaEnv.baseId+a.errSchemaPath,_=`required property "${y}" is not defined at "${v}" (strictRequired)`;(0,A$.checkStrictMode)(a,_,a.opts.strictRequired)}}function l(){if(c||o)e.block$data($i.nil,f);else for(let h of r)(0,Pi.checkReportMissingProp)(e,h)}s(l,"allErrorsMode");function p(){let h=t.let("missing");if(c||o){let g=t.let("valid",!0);e.block$data(g,()=>d(h,g)),e.ok(g)}else t.if((0,Pi.checkMissingProp)(e,r,h)),(0,Pi.reportMissingProp)(e,h),t.else()}s(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,Pi.noPropertyInData)(t,i,h,u.ownProperties),()=>e.error())})}s(f,"loopAllRequired");function d(h,g){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(g,(0,Pi.propertyInData)(t,i,h,u.ownProperties)),t.if((0,$i.not)(g),()=>{e.error(),t.break()})},$i.nil)}s(d,"loopUntilMissing")}};hc.default=k$});var yc=m(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});var Oi=A(),R$={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Oi.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,Oi._)`{limit: ${e}}`,"params")},T$={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:R$,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Oi.operators.GT:Oi.operators.LT;e.fail$data((0,Oi._)`${r}.length ${i} ${n}`)}};gc.default=T$});var Bo=m(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});var Ih=Iu();Ih.code='require("ajv/dist/runtime/equal").default';vc.default=Ih});var bc=m(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var _c=ui(),se=A(),C$=T(),N$=Bo(),q$={message:s(({params:{i:e,j:t}})=>(0,se.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,se._)`{i: ${e}, j: ${t}}`,"params")},j$={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:q$,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:u}=e;if(!n&&!i)return;let c=t.let("valid"),l=o.items?(0,_c.getSchemaTypes)(o.items):[];e.block$data(c,p,(0,se._)`${a} === false`),e.ok(c);function p(){let g=t.let("i",(0,se._)`${r}.length`),y=t.let("j");e.setParams({i:g,j:y}),t.assign(c,!0),t.if((0,se._)`${g} > 1`,()=>(f()?d:h)(g,y))}s(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}s(f,"canOptimize");function d(g,y){let v=t.name("item"),_=(0,_c.checkDataTypes)(l,v,u.opts.strictNumbers,_c.DataType.Wrong),S=t.const("indices",(0,se._)`{}`);t.for((0,se._)`;${g}--;`,()=>{t.let(v,(0,se._)`${r}[${g}]`),t.if(_,(0,se._)`continue`),l.length>1&&t.if((0,se._)`typeof ${v} == "string"`,(0,se._)`${v} += "_"`),t.if((0,se._)`typeof ${S}[${v}] == "number"`,()=>{t.assign(y,(0,se._)`${S}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,se._)`${S}[${v}] = ${g}`)})}s(d,"loopN");function h(g,y){let v=(0,C$.useFunc)(t,N$.default),_=t.name("outer");t.label(_).for((0,se._)`;${g}--;`,()=>t.for((0,se._)`${y} = ${g}; ${y}--;`,()=>t.if((0,se._)`${v}(${r}[${g}], ${r}[${y}])`,()=>{e.error(),t.assign(c,!1).break(_)})))}s(h,"loopN2")}};Sc.default=j$});var Oc=m($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});var Pc=A(),M$=T(),D$=Bo(),L$={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,Pc._)`{allowedValue: ${e}}`,"params")},F$={keyword:"const",$data:!0,error:L$,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,Pc._)`!${(0,M$.useFunc)(t,D$.default)}(${r}, ${i})`):e.fail((0,Pc._)`${o} !== ${r}`)}};$c.default=F$});var xc=m(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});var Ei=A(),V$=T(),B$=Bo(),H$={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,Ei._)`{allowedValues: ${e}}`,"params")},U$={keyword:"enum",schemaType:"array",$data:!0,error:H$,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let u=i.length>=a.opts.loopEnum,c,l=s(()=>c??(c=(0,V$.useFunc)(t,B$.default)),"getEql"),p;if(u||n)p=t.let("valid"),e.block$data(p,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",o);p=(0,Ei.or)(...i.map((g,y)=>d(h,y)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",o,h=>t.if((0,Ei._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}s(f,"loopEnum");function d(h,g){let y=i[g];return typeof y=="object"&&y!==null?(0,Ei._)`${l()}(${r}, ${h}[${g}])`:(0,Ei._)`${r} === ${y}`}s(d,"equalCode")}};Ec.default=U$});var kh=m(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});var z$=Oh(),G$=xh(),Z$=sc(),K$=cc(),W$=fc(),Y$=dc(),Q$=mc(),J$=yc(),X$=bc(),eO=Oc(),tO=xc(),rO=[z$.default,G$.default,Z$.default,K$.default,W$.default,Y$.default,Q$.default,J$.default,X$.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},eO.default,tO.default];wc.default=rO});var Ic=m(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.validateAdditionalItems=void 0;var $r=A(),Ac=T(),nO={message:s(({params:{len:e}})=>(0,$r.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,$r._)`{limit: ${e}}`,"params")},iO={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:nO,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Ac.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Rh(e,n)}};function Rh(e,t){let{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;let u=r.const("len",(0,$r._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,$r._)`${u} <= ${t.length}`);else if(typeof n=="object"&&!(0,Ac.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,$r._)`${u} <= ${t.length}`);r.if((0,$r.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,u,p=>{e.subschema({keyword:o,dataProp:p,dataPropType:Ac.Type.Num},l),a.allErrors||r.if((0,$r.not)(l),()=>r.break())})}s(c,"validateItems")}s(Rh,"validateAdditionalItems");xi.validateAdditionalItems=Rh;xi.default=iO});var kc=m(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.validateTuple=void 0;var Th=A(),Ho=T(),oO=De(),sO={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Ch(e,"additionalItems",t);r.items=!0,!(0,Ho.alwaysValidSchema)(r,t)&&e.ok((0,oO.validateArray)(e))}};function Ch(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:a,it:u}=e;p(i),u.opts.unevaluated&&r.length&&u.items!==!0&&(u.items=Ho.mergeEvaluated.items(n,r.length,u.items));let c=n.name("valid"),l=n.const("len",(0,Th._)`${o}.length`);r.forEach((f,d)=>{(0,Ho.alwaysValidSchema)(u,f)||(n.if((0,Th._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},c)),e.ok(c))});function p(f){let{opts:d,errSchemaPath:h}=u,g=r.length,y=g===f.minItems&&(g===f.maxItems||f[t]===!1);if(d.strictTuples&&!y){let v=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Ho.checkStrictMode)(u,v,d.strictTuples)}}s(p,"checkStrictTuple")}s(Ch,"validateTuple");wi.validateTuple=Ch;wi.default=sO});var Nh=m(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});var aO=kc(),uO={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,aO.validateTuple)(e,"items"),"code")};Rc.default=uO});var jh=m(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});var qh=A(),cO=T(),lO=De(),fO=Ic(),pO={message:s(({params:{len:e}})=>(0,qh.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,qh._)`{limit: ${e}}`,"params")},dO={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:pO,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,cO.alwaysValidSchema)(n,t)&&(i?(0,fO.validateAdditionalItems)(e,i):e.ok((0,lO.validateArray)(e)))}};Tc.default=dO});var Mh=m(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});var Fe=A(),Uo=T(),hO={message:s(({params:{min:e,max:t}})=>t===void 0?(0,Fe.str)`must contain at least ${e} valid item(s)`:(0,Fe.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:s(({params:{min:e,max:t}})=>t===void 0?(0,Fe._)`{minContains: ${e}}`:(0,Fe._)`{minContains: ${e}, maxContains: ${t}}`,"params")},mO={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:hO,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,a,u,{minContains:c,maxContains:l}=n;o.opts.next?(a=c===void 0?1:c,u=l):a=1;let p=t.const("len",(0,Fe._)`${i}.length`);if(e.setParams({min:a,max:u}),u===void 0&&a===0){(0,Uo.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&a>u){(0,Uo.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Uo.alwaysValidSchema)(o,r)){let y=(0,Fe._)`${p} >= ${a}`;u!==void 0&&(y=(0,Fe._)`${y} && ${p} <= ${u}`),e.pass(y);return}o.items=!0;let f=t.name("valid");u===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),u!==void 0&&t.if((0,Fe._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let y=t.name("_valid"),v=t.let("count",0);h(y,()=>t.if(y,()=>g(v)))}s(d,"validateItemsWithCount");function h(y,v){t.forRange("i",0,p,_=>{e.subschema({keyword:"contains",dataProp:_,dataPropType:Uo.Type.Num,compositeRule:!0},y),v()})}s(h,"validateItems");function g(y){t.code((0,Fe._)`${y}++`),u===void 0?t.if((0,Fe._)`${y} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,Fe._)`${y} > ${u}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,Fe._)`${y} >= ${a}`,()=>t.assign(f,!0)))}s(g,"checkLimits")}};Cc.default=mO});var zo=m(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.validateSchemaDeps=ft.validatePropertyDeps=ft.error=void 0;var Nc=A(),gO=T(),Ai=De();ft.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Nc.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Nc._)`{property: ${e},
10
10
  missingProperty: ${n},
11
11
  depsCount: ${t},
12
- deps: ${r}}`,"params")};var gO={keyword:"dependencies",type:"object",schemaType:"object",error:ft.error,code(e){let[t,r]=yO(e);Mh(e,t),Dh(e,r)}};function yO({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]}s(yO,"splitDependencies");function Mh(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let a in t){let u=t[a];if(u.length===0)continue;let c=(0,Ai.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:u.length,deps:u.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of u)(0,Ai.checkReportMissingProp)(e,l)}):(r.if((0,Nc._)`${c} && (${(0,Ai.checkMissingProp)(e,u,o)})`),(0,Ai.reportMissingProp)(e,o),r.else())}}s(Mh,"validatePropertyDeps");ft.validatePropertyDeps=Mh;function Dh(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,a=r.name("valid");for(let u in t)(0,mO.alwaysValidSchema)(o,t[u])||(r.if((0,Ai.propertyInData)(r,n,u,o.opts.ownProperties),()=>{let c=e.subschema({keyword:i,schemaProp:u},a);e.mergeValidEvaluated(c,a)},()=>r.var(a,!0)),e.ok(a))}s(Dh,"validateSchemaDeps");ft.validateSchemaDeps=Dh;ft.default=gO});var Fh=m(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});var Lh=A(),vO=T(),_O={message:"property name must be valid",params:s(({params:e})=>(0,Lh._)`{propertyName: ${e.propertyName}}`,"params")},SO={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:_O,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,vO.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,Lh.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};Cc.default=SO});var jc=m(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});var Go=De(),Ye=A(),bO=Me(),Zo=T(),PO={message:"must NOT have additional properties",params:s(({params:e})=>(0,Ye._)`{additionalProperty: ${e.additionalProperty}}`,"params")},$O={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:PO,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:u,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&(0,Zo.alwaysValidSchema)(a,r))return;let l=(0,Go.allSchemaProperties)(n.properties),p=(0,Go.allSchemaProperties)(n.patternProperties);f(),e.ok((0,Ye._)`${o} === ${bO.default.errors}`);function f(){t.forIn("key",i,v=>{!l.length&&!p.length?g(v):t.if(d(v),()=>g(v))})}s(f,"checkAdditionalProperties");function d(v){let _;if(l.length>8){let S=(0,Zo.schemaRefOrVal)(a,n.properties,"properties");_=(0,Go.isOwnProperty)(t,S,v)}else l.length?_=(0,Ye.or)(...l.map(S=>(0,Ye._)`${v} === ${S}`)):_=Ye.nil;return p.length&&(_=(0,Ye.or)(_,...p.map(S=>(0,Ye._)`${(0,Go.usePattern)(e,S)}.test(${v})`))),(0,Ye.not)(_)}s(d,"isAdditional");function h(v){t.code((0,Ye._)`delete ${i}[${v}]`)}s(h,"deleteAdditional");function g(v){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),u||t.break();return}if(typeof r=="object"&&!(0,Zo.alwaysValidSchema)(a,r)){let _=t.name("valid");c.removeAdditional==="failing"?(y(v,_,!1),t.if((0,Ye.not)(_),()=>{e.reset(),h(v)})):(y(v,_),u||t.if((0,Ye.not)(_),()=>t.break()))}}s(g,"additionalPropertyCode");function y(v,_,S){let b={keyword:"additionalProperties",dataProp:v,dataPropType:Zo.Type.Str};S===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(b,_)}s(y,"applyAdditionalSchema")}};qc.default=$O});var Hh=m(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});var OO=pi(),Vh=De(),Mc=T(),Bh=jc(),EO={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Bh.default.code(new OO.KeywordCxt(o,Bh.default,"additionalProperties"));let a=(0,Vh.allSchemaProperties)(r);for(let f of a)o.definedProperties.add(f);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Mc.mergeEvaluated.props(t,(0,Mc.toHash)(a),o.props));let u=a.filter(f=>!(0,Mc.alwaysValidSchema)(o,r[f]));if(u.length===0)return;let c=t.name("valid");for(let f of u)l(f)?p(f):(t.if((0,Vh.propertyInData)(t,i,f,o.opts.ownProperties)),p(f),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(c);function l(f){return o.opts.useDefaults&&!o.compositeRule&&r[f].default!==void 0}s(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}s(p,"applyPropertySchema")}};Dc.default=EO});var Zh=m(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});var Uh=De(),Ko=A(),zh=T(),Gh=T(),xO={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:a}=o,u=(0,Uh.allSchemaProperties)(r),c=u.filter(y=>(0,zh.alwaysValidSchema)(o,r[y]));if(u.length===0||c.length===u.length&&(!o.opts.unevaluated||o.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");o.props!==!0&&!(o.props instanceof Ko.Name)&&(o.props=(0,Gh.evaluatedPropsToName)(t,o.props));let{props:f}=o;d();function d(){for(let y of u)l&&h(y),o.allErrors?g(y):(t.var(p,!0),g(y),t.if(p))}s(d,"validatePatternProperties");function h(y){for(let v in l)new RegExp(y).test(v)&&(0,zh.checkStrictMode)(o,`property ${v} matches pattern ${y} (use allowMatchingProperties)`)}s(h,"checkMatchingProperties");function g(y){t.forIn("key",n,v=>{t.if((0,Ko._)`${(0,Uh.usePattern)(e,y)}.test(${v})`,()=>{let _=c.includes(y);_||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:Gh.Type.Str},p),o.opts.unevaluated&&f!==!0?t.assign((0,Ko._)`${f}[${v}]`,!0):!_&&!o.allErrors&&t.if((0,Ko.not)(p),()=>t.break())})})}s(g,"validateProperties")}};Lc.default=xO});var Kh=m(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});var wO=T(),AO={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,wO.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"}};Fc.default=AO});var Wh=m(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});var IO=De(),kO={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:IO.validateUnion,error:{message:"must match a schema in anyOf"}};Vc.default=kO});var Yh=m(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});var Wo=A(),RO=T(),TO={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,Wo._)`{passingSchemas: ${e.passing}}`,"params")},NO={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:TO,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 o=r,a=t.let("valid",!1),u=t.let("passing",null),c=t.name("_valid");e.setParams({passing:u}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((p,f)=>{let d;(0,RO.alwaysValidSchema)(i,p)?t.var(c,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&t.if((0,Wo._)`${c} && ${a}`).assign(a,!1).assign(u,(0,Wo._)`[${u}, ${f}]`).else(),t.if(c,()=>{t.assign(a,!0),t.assign(u,f),d&&e.mergeEvaluated(d,Wo.Name)})})}s(l,"validateOneOf")}};Bc.default=NO});var Qh=m(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});var CO=T(),qO={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((o,a)=>{if((0,CO.alwaysValidSchema)(n,o))return;let u=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(u)})}};Hc.default=qO});var em=m(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var Yo=A(),Xh=T(),jO={message:s(({params:e})=>(0,Yo.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,Yo._)`{failingKeyword: ${e.ifClause}}`,"params")},MO={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:jO,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Xh.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=Jh(n,"then"),o=Jh(n,"else");if(!i&&!o)return;let a=t.let("valid",!0),u=t.name("_valid");if(c(),e.reset(),i&&o){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(u,l("then",p),l("else",p))}else i?t.if(u,l("then")):t.if((0,Yo.not)(u),l("else"));e.pass(a,()=>e.error(!0));function c(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(p)}s(c,"validateIf");function l(p,f){return()=>{let d=e.subschema({keyword:p},u);t.assign(a,u),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,Yo._)`${p}`):e.setParams({ifClause:p})}}s(l,"validateClause")}};function Jh(e,t){let r=e.schema[t];return r!==void 0&&!(0,Xh.alwaysValidSchema)(e,r)}s(Jh,"hasSchema");Uc.default=MO});var tm=m(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});var DO=T(),LO={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,DO.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};zc.default=LO});var Zc=m(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});var FO=Ac(),VO=Nh(),BO=Ic(),HO=qh(),UO=jh(),zO=zo(),GO=Fh(),ZO=jc(),KO=Hh(),WO=Zh(),YO=Kh(),QO=Wh(),JO=Yh(),XO=Qh(),eE=em(),tE=tm();function rE(e=!1){let t=[YO.default,QO.default,JO.default,XO.default,eE.default,tE.default,GO.default,ZO.default,zO.default,KO.default,WO.default];return e?t.push(VO.default,HO.default):t.push(FO.default,BO.default),t.push(UO.default),t}s(rE,"getApplicator");Gc.default=rE});var rm=m(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});var W=A(),nE={message:s(({schemaCode:e})=>(0,W.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,W._)`{format: ${e}}`,"params")},iE={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:nE,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:u}=e,{opts:c,errSchemaPath:l,schemaEnv:p,self:f}=u;if(!c.validateFormats)return;i?d():h();function d(){let g=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),y=r.const("fDef",(0,W._)`${g}[${a}]`),v=r.let("fType"),_=r.let("format");r.if((0,W._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,W._)`${y}.type || "string"`).assign(_,(0,W._)`${y}.validate`),()=>r.assign(v,(0,W._)`"string"`).assign(_,y)),e.fail$data((0,W.or)(S(),b()));function S(){return c.strictSchema===!1?W.nil:(0,W._)`${a} && !${_}`}s(S,"unknownFmt");function b(){let E=p.$async?(0,W._)`(${y}.async ? await ${_}(${n}) : ${_}(${n}))`:(0,W._)`${_}(${n})`,$=(0,W._)`(typeof ${_} == "function" ? ${E} : ${_}.test(${n}))`;return(0,W._)`${_} && ${_} !== true && ${v} === ${t} && !${$}`}s(b,"invalidFmt")}s(d,"validate$DataFormat");function h(){let g=f.formats[o];if(!g){S();return}if(g===!0)return;let[y,v,_]=b(g);y===t&&e.pass(E());function S(){if(c.strictSchema===!1){f.logger.warn($());return}throw new Error($());function $(){return`unknown format "${o}" ignored in schema at path "${l}"`}}s(S,"unknownFormat");function b($){let M=$ instanceof RegExp?(0,W.regexpCode)($):c.code.formats?(0,W._)`${c.code.formats}${(0,W.getProperty)(o)}`:void 0,j=r.scopeValue("formats",{key:o,ref:$,code:M});return typeof $=="object"&&!($ instanceof RegExp)?[$.type||"string",$.validate,(0,W._)`${j}.validate`]:["string",$,j]}s(b,"getFormat");function E(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!p.$async)throw new Error("async format in sync schema");return(0,W._)`await ${_}(${n})`}return typeof v=="function"?(0,W._)`${_}(${n})`:(0,W._)`${_}.test(${n})`}s(E,"validCondition")}s(h,"validateFormat")}};Kc.default=iE});var Yc=m(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});var oE=rm(),sE=[oE.default];Wc.default=sE});var nm=m(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});var aE=Ph(),uE=Ih(),cE=Zc(),lE=Yc(),fE=["title","description","default"],pE=[aE.default,uE.default,cE.default(),lE.default,fE];Qc.default=pE});var om=m(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.DiscrError=void 0;var im;(function(e){e.Tag="tag",e.Mapping="mapping"})(im||(Qo.DiscrError=im={}))});var el=m(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var fn=A(),Jc=om(),sm=hi(),dE=di(),hE=T(),mE={message:s(({params:{discrError:e,tagName:t}})=>e===Jc.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:s(({params:{discrError:e,tag:t,tagName:r}})=>(0,fn._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},gE={keyword:"discriminator",type:"object",schemaType:"object",error:mE,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let u=n.propertyName;if(typeof u!="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 c=t.let("valid",!1),l=t.const("tag",(0,fn._)`${r}${(0,fn.getProperty)(u)}`);t.if((0,fn._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:Jc.DiscrError.Tag,tag:l,tagName:u})),e.ok(c);function p(){let h=d();t.if(!1);for(let g in h)t.elseIf((0,fn._)`${l} === ${g}`),t.assign(c,f(h[g]));t.else(),e.error(!1,{discrError:Jc.DiscrError.Mapping,tag:l,tagName:u}),t.endIf()}s(p,"validateMapping");function f(h){let g=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:h},g);return e.mergeEvaluated(y,fn.Name),g}s(f,"applyTagSchema");function d(){var h;let g={},y=_(i),v=!0;for(let E=0;E<a.length;E++){let $=a[E];if($!=null&&$.$ref&&!(0,hE.schemaHasRulesButRef)($,o.self.RULES)){let j=$.$ref;if($=sm.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,j),$ instanceof sm.SchemaEnv&&($=$.schema),$===void 0)throw new dE.default(o.opts.uriResolver,o.baseId,j)}let M=(h=$==null?void 0:$.properties)===null||h===void 0?void 0:h[u];if(typeof M!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${u}"`);v=v&&(y||_($)),S(M,E)}if(!v)throw new Error(`discriminator: "${u}" must be required`);return g;function _({required:E}){return Array.isArray(E)&&E.includes(u)}function S(E,$){if(E.const)b(E.const,$);else if(E.enum)for(let M of E.enum)b(M,$);else throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`)}function b(E,$){if(typeof E!="string"||E in g)throw new Error(`discriminator: "${u}" values must be unique strings`);g[E]=$}}s(d,"getMapping")}};Xc.default=gE});var am=m((Fj,yE)=>{yE.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 lm=m((J,cm)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.CodeGen=J.Name=J.nil=J.stringify=J.str=J._=J.KeywordCxt=void 0;var vE=cn(),_E=nm(),SE=el(),um=am(),bE=["/properties"],Jo="http://json-schema.org/draft-04/schema",tl=class tl extends vE.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),_E.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(SE.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(um,bE):um;this.addMetaSchema(t,Jo,!1),this.refs["http://json-schema.org/schema"]=Jo}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Jo)?Jo:void 0)}};s(tl,"Ajv");var Xo=tl;cm.exports=J=Xo;Object.defineProperty(J,"__esModule",{value:!0});J.default=Xo;var PE=cn();Object.defineProperty(J,"KeywordCxt",{enumerable:!0,get:s(function(){return PE.KeywordCxt},"get")});var pn=cn();Object.defineProperty(J,"_",{enumerable:!0,get:s(function(){return pn._},"get")});Object.defineProperty(J,"str",{enumerable:!0,get:s(function(){return pn.str},"get")});Object.defineProperty(J,"stringify",{enumerable:!0,get:s(function(){return pn.stringify},"get")});Object.defineProperty(J,"nil",{enumerable:!0,get:s(function(){return pn.nil},"get")});Object.defineProperty(J,"Name",{enumerable:!0,get:s(function(){return pn.Name},"get")});Object.defineProperty(J,"CodeGen",{enumerable:!0,get:s(function(){return pn.CodeGen},"get")})});var fm=m(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var $E={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};rl.default=$E});var pm=m(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var OE=fm(),EE=_i(),xE=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",OE.default,EE.default];nl.default=xE});var dm=m(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var es=A(),zt=es.operators,ts={maximum:{okStr:"<=",ok:zt.LTE,fail:zt.GT},minimum:{okStr:">=",ok:zt.GTE,fail:zt.LT},exclusiveMaximum:{okStr:"<",ok:zt.LT,fail:zt.GTE},exclusiveMinimum:{okStr:">",ok:zt.GT,fail:zt.LTE}},wE={message:s(({keyword:e,schemaCode:t})=>(0,es.str)`must be ${ts[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,es._)`{comparison: ${ts[e].okStr}, limit: ${t}}`,"params")},AE={keyword:Object.keys(ts),type:"number",schemaType:"number",$data:!0,error:wE,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,es._)`${r} ${ts[t].fail} ${n} || isNaN(${r})`)}};il.default=AE});var hm=m(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var IE=dm(),kE=oc(),RE=uc(),TE=lc(),NE=pc(),CE=hc(),qE=gc(),jE=Sc(),ME=$c(),DE=Ec(),LE=[IE.default,kE.default,RE.default,TE.default,NE.default,CE.default,qE.default,jE.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ME.default,DE.default];ol.default=LE});var al=m(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.dynamicAnchor=void 0;var sl=A(),FE=Me(),mm=hi(),VE=_i(),BE={keyword:"$dynamicAnchor",schemaType:"string",code:s(e=>gm(e,e.schema),"code")};function gm(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,sl._)`${FE.default.dynamicAnchors}${(0,sl.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:HE(e);r.if((0,sl._)`!${i}`,()=>r.assign(i,o))}s(gm,"dynamicAnchor");Ii.dynamicAnchor=gm;function HE(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:a,meta:u}=t.root,{schemaId:c}=n.opts,l=new mm.SchemaEnv({schema:r,schemaId:c,root:i,baseId:o,localRefs:a,meta:u});return mm.compileSchema.call(n,l),(0,VE.getValidate)(e,l)}s(HE,"_getValidate");Ii.default=BE});var ul=m(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.dynamicRef=void 0;var ym=A(),UE=Me(),vm=_i(),zE={keyword:"$dynamicRef",schemaType:"string",code:s(e=>_m(e,e.schema),"code")};function _m(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=t.slice(1);if(i.allErrors)a();else{let c=r.let("valid",!1);a(c),e.ok(c)}function a(c){if(i.schemaEnv.root.dynamicAnchors[o]){let l=r.let("_v",(0,ym._)`${UE.default.dynamicAnchors}${(0,ym.getProperty)(o)}`);r.if(l,u(l,c),u(i.validateName,c))}else u(i.validateName,c)()}s(a,"_dynamicRef");function u(c,l){return l?()=>r.block(()=>{(0,vm.callRef)(e,c),r.let(l,!0)}):()=>(0,vm.callRef)(e,c)}s(u,"_callRef")}s(_m,"dynamicRef");ki.dynamicRef=_m;ki.default=zE});var Sm=m(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var GE=al(),ZE=T(),KE={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,GE.dynamicAnchor)(e,""):(0,ZE.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};cl.default=KE});var bm=m(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var WE=ul(),YE={keyword:"$recursiveRef",schemaType:"string",code:s(e=>(0,WE.dynamicRef)(e,e.schema),"code")};ll.default=YE});var Pm=m(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var QE=al(),JE=ul(),XE=Sm(),ex=bm(),tx=[QE.default,JE.default,XE.default,ex.default];fl.default=tx});var Om=m(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var $m=zo(),rx={keyword:"dependentRequired",type:"object",schemaType:"object",error:$m.error,code:s(e=>(0,$m.validatePropertyDeps)(e),"code")};pl.default=rx});var Em=m(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var nx=zo(),ix={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,nx.validateSchemaDeps)(e),"code")};dl.default=ix});var xm=m(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var ox=T(),sx={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,ox.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};hl.default=sx});var wm=m(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var ax=Om(),ux=Em(),cx=xm(),lx=[ax.default,ux.default,cx.default];ml.default=lx});var Im=m(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var Gt=A(),Am=T(),fx=Me(),px={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,Gt._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},dx={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:px,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:o}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:u}=o;u instanceof Gt.Name?t.if((0,Gt._)`${u} !== true`,()=>t.forIn("key",n,f=>t.if(l(u,f),()=>c(f)))):u!==!0&&t.forIn("key",n,f=>u===void 0?c(f):t.if(p(u,f),()=>c(f))),o.props=!0,e.ok((0,Gt._)`${i} === ${fx.default.errors}`);function c(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,Am.alwaysValidSchema)(o,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:Am.Type.Str},d),a||t.if((0,Gt.not)(d),()=>t.break())}}s(c,"unevaluatedPropCode");function l(f,d){return(0,Gt._)`!${f} || !${f}[${d}]`}s(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let g in f)f[g]===!0&&h.push((0,Gt._)`${d} !== ${g}`);return(0,Gt.and)(...h)}s(p,"unevaluatedStatic")}};gl.default=dx});var Rm=m(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var Or=A(),km=T(),hx={message:s(({params:{len:e}})=>(0,Or.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Or._)`{limit: ${e}}`,"params")},mx={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:hx,code(e){let{gen:t,schema:r,data:n,it:i}=e,o=i.items||0;if(o===!0)return;let a=t.const("len",(0,Or._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,Or._)`${a} > ${o}`);else if(typeof r=="object"&&!(0,km.alwaysValidSchema)(i,r)){let c=t.var("valid",(0,Or._)`${a} <= ${o}`);t.if((0,Or.not)(c),()=>u(c,o)),e.ok(c)}i.items=!0;function u(c,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:km.Type.Num},c),i.allErrors||t.if((0,Or.not)(c),()=>t.break())})}s(u,"validateItems")}};yl.default=mx});var Tm=m(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var gx=Im(),yx=Rm(),vx=[gx.default,yx.default];vl.default=vx});var Nm=m(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.contentVocabulary=dn.metadataVocabulary=void 0;dn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];dn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var qm=m(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var _x=pm(),Sx=hm(),bx=Zc(),Px=Pm(),$x=wm(),Ox=Tm(),Ex=Yc(),Cm=Nm(),xx=[Px.default,_x.default,Sx.default,(0,bx.default)(!0),Ex.default,Cm.metadataVocabulary,Cm.contentVocabulary,$x.default,Ox.default];_l.default=xx});var jm=m((h4,wx)=>{wx.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 Mm=m((m4,Ax)=>{Ax.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 Dm=m((g4,Ix)=>{Ix.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 Lm=m((y4,kx)=>{kx.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 Fm=m((v4,Rx)=>{Rx.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 Vm=m((_4,Tx)=>{Tx.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 Bm=m((S4,Nx)=>{Nx.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 Hm=m((b4,Cx)=>{Cx.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 Um=m(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var qx=jm(),jx=Mm(),Mx=Dm(),Dx=Lm(),Lx=Fm(),Fx=Vm(),Vx=Bm(),Bx=Hm(),Hx=["/properties"];function Ux(e){return[qx,jx,Mx,Dx,Lx,t(this,Fx),Vx,t(this,Bx)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,Hx):n}s(t,"with$data")}s(Ux,"addMetaSchema2020");Sl.default=Ux});var zm=m((B,Pl)=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.MissingRefError=B.ValidationError=B.CodeGen=B.Name=B.nil=B.stringify=B.str=B._=B.KeywordCxt=B.Ajv2020=void 0;var zx=cn(),Gx=qm(),Zx=el(),Kx=Um(),bl="https://json-schema.org/draft/2020-12/schema",$l=class $l extends zx.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),Gx.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Zx.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Kx.default.call(this,t),this.refs["http://json-schema.org/schema"]=bl)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(bl)?bl:void 0)}};s($l,"Ajv2020");var hn=$l;B.Ajv2020=hn;Pl.exports=B=hn;Pl.exports.Ajv2020=hn;Object.defineProperty(B,"__esModule",{value:!0});B.default=hn;var Wx=pi();Object.defineProperty(B,"KeywordCxt",{enumerable:!0,get:s(function(){return Wx.KeywordCxt},"get")});var mn=A();Object.defineProperty(B,"_",{enumerable:!0,get:s(function(){return mn._},"get")});Object.defineProperty(B,"str",{enumerable:!0,get:s(function(){return mn.str},"get")});Object.defineProperty(B,"stringify",{enumerable:!0,get:s(function(){return mn.stringify},"get")});Object.defineProperty(B,"nil",{enumerable:!0,get:s(function(){return mn.nil},"get")});Object.defineProperty(B,"Name",{enumerable:!0,get:s(function(){return mn.Name},"get")});Object.defineProperty(B,"CodeGen",{enumerable:!0,get:s(function(){return mn.CodeGen},"get")});var Yx=No();Object.defineProperty(B,"ValidationError",{enumerable:!0,get:s(function(){return Yx.default},"get")});var Qx=di();Object.defineProperty(B,"MissingRefError",{enumerable:!0,get:s(function(){return Qx.default},"get")})});var Gm=m((E4,Jx)=>{Jx.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 Zm=m((x4,Xx)=>{Xx.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 Km=m((w4,ew)=>{ew.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 Wm=m((A4,tw)=>{tw.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 Ym=m((ie,gn)=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.openapi=ie.openapiV31=ie.openapiV3=ie.openapiV2=ie.openapiV1=void 0;ie.openapiV1=Gm();ie.openapiV2=Zm();ie.openapiV3=Km();ie.openapiV31=Wm();ie.openapi={v1:ie.openapiV1,v2:ie.openapiV2,v3:ie.openapiV3,v31:ie.openapiV31};ie.default=ie.openapi;typeof gn=="object"&&typeof gn.exports=="object"&&(gn.exports=Object.assign(gn.exports.default,gn.exports))});var xl=m((I4,Qm)=>{"use strict";var rw=ho(),{ono:nw}=Ge(),iw=lm(),ow=zm(),{openapi:Ol}=Ym();Qm.exports=sw;function sw(e){let t,r;if(e.swagger)r=Ol.v2,t=El();else if(e.openapi.startsWith("3.1")){r=Ol.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=El(!1)}else r=Ol.v3,t=El();if(!t.validate(r,e)){let i=t.errors,o=`Swagger schema validation failed.
13
- `+aw(i);throw nw.syntax(i,{details:i},o)}}s(sw,"validateSchema");function El(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new iw(t):new ow(t)}s(El,"initializeAjv");function aw(e,t){t=t||" ";let r="";for(let n of e)r+=rw.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
14
- `);return r}s(aw,"formatAjvError")});var Xm=m((R4,Jm)=>{"use strict";Jm.exports=["get","put","post","delete","options","head","patch"]});var Il=m((T4,ng)=>{"use strict";var uw=ho(),{ono:pe}=Ge(),cw=Xm(),wl=["array","boolean","integer","number","string"],tg=["array","boolean","integer","number","string","object","null",void 0];ng.exports=lw;function lw(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let o=e.paths[i],a="/paths"+i;o&&i.indexOf("/")===0&&fw(e,o,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let o=e.definitions[i],a="/definitions/"+i;rg(o,a)}}s(lw,"validateSpec");function fw(e,t,r,n){for(let i of cw){let o=t[i],a=r+"/"+i;if(o){let u=o.operationId;if(u)if(n.indexOf(u)===-1)n.push(u);else throw pe.syntax(`Validation failed. Duplicate operation id '${u}'`);pw(e,t,r,o,a);let c=Object.keys(o.responses||{});for(let l of c){let p=o.responses[l],f=a+"/responses/"+l;gw(l,p||{},f)}}}}s(fw,"validatePath");function pw(e,t,r,n,i){let o=t.parameters||[],a=n.parameters||[];try{eg(o)}catch(c){throw pe.syntax(c,`Validation failed. ${r} has duplicate parameters`)}try{eg(a)}catch(c){throw pe.syntax(c,`Validation failed. ${i} has duplicate parameters`)}let u=o.reduce((c,l)=>(c.some(f=>f.in===l.in&&f.name===l.name)||c.push(l),c),a.slice());dw(u,i),hw(u,r,i),mw(u,e,n,i)}s(pw,"validateParameters");function dw(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw pe.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw pe.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}s(dw,"validateBodyParameters");function hw(e,t,r){let n=t.match(uw.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let o=i+1;o<n.length;o++)if(n[i]===n[o])throw pe.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 pe.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let o=n.indexOf("{"+i.name+"}");if(o===-1)throw pe.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(o,1)}if(n.length>0)throw pe.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}s(hw,"validatePathParameters");function mw(e,t,r,n){for(let i of e){let o=n+"/parameters/"+i.name,a,u;switch(i.in){case"body":a=i.schema,u=tg;break;case"formData":a=i,u=wl.concat("file");break;default:a=i,u=wl}if(Al(a,o,u),rg(a,o),a.type==="file"){let c=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>c.test(d)||l.test(d)))throw pe.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}s(mw,"validateParameterTypes");function eg(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 pe.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}s(eg,"checkForDuplicates");function gw(e,t,r){if(e!=="default"&&(e<100||e>599))throw pe.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let o=t.headers[i],a=r+"/headers/"+i;Al(o,a,wl)}if(t.schema){let i=tg.concat("file");if(i.indexOf(t.schema.type)===-1)throw pe.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Al(t.schema,r+"/schema",i)}}s(gw,"validateResponse");function Al(e,t,r){if(r.indexOf(e.type)===-1)throw pe.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw pe.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}s(Al,"validateSchema");function rg(e,t){function r(n,i){if(n.properties)for(let o in n.properties)n.properties.hasOwnProperty(o)&&(i[o]=n.properties[o]);if(n.allOf)for(let o of n.allOf)r(o,i)}if(s(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw pe.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}s(rg,"validateRequiredPropertiesExist")});var Je=m(Qe=>{"use strict";var{Ono:ig}=Ge(),{stripHash:og,toFileSystemPath:yw}=Re(),yn,Zt=Qe.JSONParserError=(yn=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,ig.extend(this)}},s(yn,"JSONParserError"),yn);Kt(Zt);var Er,sg=Qe.JSONParserErrorGroup=(Er=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${yw(t.$refs._root$Ref.path)}'`,ig.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 Er.getParserErrors(this.files)}},s(Er,"JSONParserErrorGroup"),Er);Kt(sg);var vn,vw=Qe.ParserError=(vn=class extends Zt{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},s(vn,"ParserError"),vn);Kt(vw);var _n,_w=Qe.UnmatchedParserError=(_n=class extends Zt{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},s(_n,"UnmatchedParserError"),_n);Kt(_w);var Sn,Sw=Qe.ResolverError=(Sn=class extends Zt{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},s(Sn,"ResolverError"),Sn);Kt(Sw);var bn,bw=Qe.UnmatchedResolverError=(bn=class extends Zt{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},s(bn,"UnmatchedResolverError"),bn);Kt(bw);var Pn,Pw=Qe.MissingPointerError=(Pn=class extends Zt{constructor(t,r){super(`Token "${t}" does not exist.`,og(r)),this.code="EMISSINGPOINTER"}},s(Pn,"MissingPointerError"),Pn);Kt(Pw);var $n,$w=Qe.InvalidPointerError=($n=class extends Zt{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,og(r)),this.code="EINVALIDPOINTER"}},s($n,"InvalidPointerError"),$n);Kt($w);function Kt(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}s(Kt,"setErrorName");Qe.isHandledError=function(e){return e instanceof Zt||e instanceof sg};Qe.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var ug=m((j4,ag)=>{"use strict";var{ParserError:Ow}=Je();ag.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 Ow(r.message,e.url)}}else return t}}});var wr=m((M4,xr)=>{"use strict";function cg(e){return typeof e>"u"||e===null}s(cg,"isNothing");function Ew(e){return typeof e=="object"&&e!==null}s(Ew,"isObject");function xw(e){return Array.isArray(e)?e:cg(e)?[]:[e]}s(xw,"toArray");function ww(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}s(ww,"extend");function Aw(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}s(Aw,"repeat");function Iw(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}s(Iw,"isNegativeZero");xr.exports.isNothing=cg;xr.exports.isObject=Ew;xr.exports.toArray=xw;xr.exports.repeat=Aw;xr.exports.isNegativeZero=Iw;xr.exports.extend=ww});var On=m((L4,lg)=>{"use strict";function Ri(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||""}s(Ri,"YAMLException");Ri.prototype=Object.create(Error.prototype);Ri.prototype.constructor=Ri;Ri.prototype.toString=s(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");lg.exports=Ri});var dg=m((V4,pg)=>{"use strict";var fg=wr();function kl(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}s(kl,"Mark");kl.prototype.getSnippet=s(function(t,r){var n,i,o,a,u;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 yO={keyword:"dependencies",type:"object",schemaType:"object",error:ft.error,code(e){let[t,r]=vO(e);Dh(e,t),Lh(e,r)}};function vO({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]}s(vO,"splitDependencies");function Dh(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let a in t){let u=t[a];if(u.length===0)continue;let c=(0,Ai.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:u.length,deps:u.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of u)(0,Ai.checkReportMissingProp)(e,l)}):(r.if((0,Nc._)`${c} && (${(0,Ai.checkMissingProp)(e,u,o)})`),(0,Ai.reportMissingProp)(e,o),r.else())}}s(Dh,"validatePropertyDeps");ft.validatePropertyDeps=Dh;function Lh(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,a=r.name("valid");for(let u in t)(0,gO.alwaysValidSchema)(o,t[u])||(r.if((0,Ai.propertyInData)(r,n,u,o.opts.ownProperties),()=>{let c=e.subschema({keyword:i,schemaProp:u},a);e.mergeValidEvaluated(c,a)},()=>r.var(a,!0)),e.ok(a))}s(Lh,"validateSchemaDeps");ft.validateSchemaDeps=Lh;ft.default=yO});var Vh=m(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});var Fh=A(),_O=T(),SO={message:"property name must be valid",params:s(({params:e})=>(0,Fh._)`{propertyName: ${e.propertyName}}`,"params")},bO={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:SO,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,_O.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,Fh.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};qc.default=bO});var Mc=m(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});var Go=De(),Ye=A(),PO=Me(),Zo=T(),$O={message:"must NOT have additional properties",params:s(({params:e})=>(0,Ye._)`{additionalProperty: ${e.additionalProperty}}`,"params")},OO={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:$O,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:u,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&(0,Zo.alwaysValidSchema)(a,r))return;let l=(0,Go.allSchemaProperties)(n.properties),p=(0,Go.allSchemaProperties)(n.patternProperties);f(),e.ok((0,Ye._)`${o} === ${PO.default.errors}`);function f(){t.forIn("key",i,v=>{!l.length&&!p.length?g(v):t.if(d(v),()=>g(v))})}s(f,"checkAdditionalProperties");function d(v){let _;if(l.length>8){let S=(0,Zo.schemaRefOrVal)(a,n.properties,"properties");_=(0,Go.isOwnProperty)(t,S,v)}else l.length?_=(0,Ye.or)(...l.map(S=>(0,Ye._)`${v} === ${S}`)):_=Ye.nil;return p.length&&(_=(0,Ye.or)(_,...p.map(S=>(0,Ye._)`${(0,Go.usePattern)(e,S)}.test(${v})`))),(0,Ye.not)(_)}s(d,"isAdditional");function h(v){t.code((0,Ye._)`delete ${i}[${v}]`)}s(h,"deleteAdditional");function g(v){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),u||t.break();return}if(typeof r=="object"&&!(0,Zo.alwaysValidSchema)(a,r)){let _=t.name("valid");c.removeAdditional==="failing"?(y(v,_,!1),t.if((0,Ye.not)(_),()=>{e.reset(),h(v)})):(y(v,_),u||t.if((0,Ye.not)(_),()=>t.break()))}}s(g,"additionalPropertyCode");function y(v,_,S){let b={keyword:"additionalProperties",dataProp:v,dataPropType:Zo.Type.Str};S===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(b,_)}s(y,"applyAdditionalSchema")}};jc.default=OO});var Uh=m(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});var EO=pi(),Bh=De(),Dc=T(),Hh=Mc(),xO={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Hh.default.code(new EO.KeywordCxt(o,Hh.default,"additionalProperties"));let a=(0,Bh.allSchemaProperties)(r);for(let f of a)o.definedProperties.add(f);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Dc.mergeEvaluated.props(t,(0,Dc.toHash)(a),o.props));let u=a.filter(f=>!(0,Dc.alwaysValidSchema)(o,r[f]));if(u.length===0)return;let c=t.name("valid");for(let f of u)l(f)?p(f):(t.if((0,Bh.propertyInData)(t,i,f,o.opts.ownProperties)),p(f),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(c);function l(f){return o.opts.useDefaults&&!o.compositeRule&&r[f].default!==void 0}s(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}s(p,"applyPropertySchema")}};Lc.default=xO});var Kh=m(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});var zh=De(),Ko=A(),Gh=T(),Zh=T(),wO={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:a}=o,u=(0,zh.allSchemaProperties)(r),c=u.filter(y=>(0,Gh.alwaysValidSchema)(o,r[y]));if(u.length===0||c.length===u.length&&(!o.opts.unevaluated||o.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");o.props!==!0&&!(o.props instanceof Ko.Name)&&(o.props=(0,Zh.evaluatedPropsToName)(t,o.props));let{props:f}=o;d();function d(){for(let y of u)l&&h(y),o.allErrors?g(y):(t.var(p,!0),g(y),t.if(p))}s(d,"validatePatternProperties");function h(y){for(let v in l)new RegExp(y).test(v)&&(0,Gh.checkStrictMode)(o,`property ${v} matches pattern ${y} (use allowMatchingProperties)`)}s(h,"checkMatchingProperties");function g(y){t.forIn("key",n,v=>{t.if((0,Ko._)`${(0,zh.usePattern)(e,y)}.test(${v})`,()=>{let _=c.includes(y);_||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:Zh.Type.Str},p),o.opts.unevaluated&&f!==!0?t.assign((0,Ko._)`${f}[${v}]`,!0):!_&&!o.allErrors&&t.if((0,Ko.not)(p),()=>t.break())})})}s(g,"validateProperties")}};Fc.default=wO});var Wh=m(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});var AO=T(),IO={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,AO.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"}};Vc.default=IO});var Yh=m(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});var kO=De(),RO={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:kO.validateUnion,error:{message:"must match a schema in anyOf"}};Bc.default=RO});var Qh=m(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});var Wo=A(),TO=T(),CO={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,Wo._)`{passingSchemas: ${e.passing}}`,"params")},NO={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:CO,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 o=r,a=t.let("valid",!1),u=t.let("passing",null),c=t.name("_valid");e.setParams({passing:u}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((p,f)=>{let d;(0,TO.alwaysValidSchema)(i,p)?t.var(c,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&t.if((0,Wo._)`${c} && ${a}`).assign(a,!1).assign(u,(0,Wo._)`[${u}, ${f}]`).else(),t.if(c,()=>{t.assign(a,!0),t.assign(u,f),d&&e.mergeEvaluated(d,Wo.Name)})})}s(l,"validateOneOf")}};Hc.default=NO});var Jh=m(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var qO=T(),jO={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((o,a)=>{if((0,qO.alwaysValidSchema)(n,o))return;let u=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(u)})}};Uc.default=jO});var tm=m(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});var Yo=A(),em=T(),MO={message:s(({params:e})=>(0,Yo.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,Yo._)`{failingKeyword: ${e.ifClause}}`,"params")},DO={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:MO,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,em.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=Xh(n,"then"),o=Xh(n,"else");if(!i&&!o)return;let a=t.let("valid",!0),u=t.name("_valid");if(c(),e.reset(),i&&o){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(u,l("then",p),l("else",p))}else i?t.if(u,l("then")):t.if((0,Yo.not)(u),l("else"));e.pass(a,()=>e.error(!0));function c(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(p)}s(c,"validateIf");function l(p,f){return()=>{let d=e.subschema({keyword:p},u);t.assign(a,u),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,Yo._)`${p}`):e.setParams({ifClause:p})}}s(l,"validateClause")}};function Xh(e,t){let r=e.schema[t];return r!==void 0&&!(0,em.alwaysValidSchema)(e,r)}s(Xh,"hasSchema");zc.default=DO});var rm=m(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});var LO=T(),FO={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,LO.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Gc.default=FO});var Kc=m(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});var VO=Ic(),BO=Nh(),HO=kc(),UO=jh(),zO=Mh(),GO=zo(),ZO=Vh(),KO=Mc(),WO=Uh(),YO=Kh(),QO=Wh(),JO=Yh(),XO=Qh(),eE=Jh(),tE=tm(),rE=rm();function nE(e=!1){let t=[QO.default,JO.default,XO.default,eE.default,tE.default,rE.default,ZO.default,KO.default,GO.default,WO.default,YO.default];return e?t.push(BO.default,UO.default):t.push(VO.default,HO.default),t.push(zO.default),t}s(nE,"getApplicator");Zc.default=nE});var nm=m(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});var W=A(),iE={message:s(({schemaCode:e})=>(0,W.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,W._)`{format: ${e}}`,"params")},oE={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:iE,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:u}=e,{opts:c,errSchemaPath:l,schemaEnv:p,self:f}=u;if(!c.validateFormats)return;i?d():h();function d(){let g=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),y=r.const("fDef",(0,W._)`${g}[${a}]`),v=r.let("fType"),_=r.let("format");r.if((0,W._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,W._)`${y}.type || "string"`).assign(_,(0,W._)`${y}.validate`),()=>r.assign(v,(0,W._)`"string"`).assign(_,y)),e.fail$data((0,W.or)(S(),b()));function S(){return c.strictSchema===!1?W.nil:(0,W._)`${a} && !${_}`}s(S,"unknownFmt");function b(){let E=p.$async?(0,W._)`(${y}.async ? await ${_}(${n}) : ${_}(${n}))`:(0,W._)`${_}(${n})`,$=(0,W._)`(typeof ${_} == "function" ? ${E} : ${_}.test(${n}))`;return(0,W._)`${_} && ${_} !== true && ${v} === ${t} && !${$}`}s(b,"invalidFmt")}s(d,"validate$DataFormat");function h(){let g=f.formats[o];if(!g){S();return}if(g===!0)return;let[y,v,_]=b(g);y===t&&e.pass(E());function S(){if(c.strictSchema===!1){f.logger.warn($());return}throw new Error($());function $(){return`unknown format "${o}" ignored in schema at path "${l}"`}}s(S,"unknownFormat");function b($){let M=$ instanceof RegExp?(0,W.regexpCode)($):c.code.formats?(0,W._)`${c.code.formats}${(0,W.getProperty)(o)}`:void 0,j=r.scopeValue("formats",{key:o,ref:$,code:M});return typeof $=="object"&&!($ instanceof RegExp)?[$.type||"string",$.validate,(0,W._)`${j}.validate`]:["string",$,j]}s(b,"getFormat");function E(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!p.$async)throw new Error("async format in sync schema");return(0,W._)`await ${_}(${n})`}return typeof v=="function"?(0,W._)`${_}(${n})`:(0,W._)`${_}.test(${n})`}s(E,"validCondition")}s(h,"validateFormat")}};Wc.default=oE});var Qc=m(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});var sE=nm(),aE=[sE.default];Yc.default=aE});var im=m(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var uE=$h(),cE=kh(),lE=Kc(),fE=Qc(),pE=["title","description","default"],dE=[uE.default,cE.default,lE.default(),fE.default,pE];Jc.default=dE});var sm=m(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.DiscrError=void 0;var om;(function(e){e.Tag="tag",e.Mapping="mapping"})(om||(Qo.DiscrError=om={}))});var tl=m(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var fn=A(),Xc=sm(),am=hi(),hE=di(),mE=T(),gE={message:s(({params:{discrError:e,tagName:t}})=>e===Xc.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:s(({params:{discrError:e,tag:t,tagName:r}})=>(0,fn._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},yE={keyword:"discriminator",type:"object",schemaType:"object",error:gE,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let u=n.propertyName;if(typeof u!="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 c=t.let("valid",!1),l=t.const("tag",(0,fn._)`${r}${(0,fn.getProperty)(u)}`);t.if((0,fn._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:Xc.DiscrError.Tag,tag:l,tagName:u})),e.ok(c);function p(){let h=d();t.if(!1);for(let g in h)t.elseIf((0,fn._)`${l} === ${g}`),t.assign(c,f(h[g]));t.else(),e.error(!1,{discrError:Xc.DiscrError.Mapping,tag:l,tagName:u}),t.endIf()}s(p,"validateMapping");function f(h){let g=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:h},g);return e.mergeEvaluated(y,fn.Name),g}s(f,"applyTagSchema");function d(){var h;let g={},y=_(i),v=!0;for(let E=0;E<a.length;E++){let $=a[E];if($!=null&&$.$ref&&!(0,mE.schemaHasRulesButRef)($,o.self.RULES)){let j=$.$ref;if($=am.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,j),$ instanceof am.SchemaEnv&&($=$.schema),$===void 0)throw new hE.default(o.opts.uriResolver,o.baseId,j)}let M=(h=$==null?void 0:$.properties)===null||h===void 0?void 0:h[u];if(typeof M!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${u}"`);v=v&&(y||_($)),S(M,E)}if(!v)throw new Error(`discriminator: "${u}" must be required`);return g;function _({required:E}){return Array.isArray(E)&&E.includes(u)}function S(E,$){if(E.const)b(E.const,$);else if(E.enum)for(let M of E.enum)b(M,$);else throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`)}function b(E,$){if(typeof E!="string"||E in g)throw new Error(`discriminator: "${u}" values must be unique strings`);g[E]=$}}s(d,"getMapping")}};el.default=yE});var um=m((Vj,vE)=>{vE.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 fm=m((J,lm)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.CodeGen=J.Name=J.nil=J.stringify=J.str=J._=J.KeywordCxt=void 0;var _E=cn(),SE=im(),bE=tl(),cm=um(),PE=["/properties"],Jo="http://json-schema.org/draft-04/schema",rl=class rl extends _E.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),SE.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(bE.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(cm,PE):cm;this.addMetaSchema(t,Jo,!1),this.refs["http://json-schema.org/schema"]=Jo}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Jo)?Jo:void 0)}};s(rl,"Ajv");var Xo=rl;lm.exports=J=Xo;Object.defineProperty(J,"__esModule",{value:!0});J.default=Xo;var $E=cn();Object.defineProperty(J,"KeywordCxt",{enumerable:!0,get:s(function(){return $E.KeywordCxt},"get")});var pn=cn();Object.defineProperty(J,"_",{enumerable:!0,get:s(function(){return pn._},"get")});Object.defineProperty(J,"str",{enumerable:!0,get:s(function(){return pn.str},"get")});Object.defineProperty(J,"stringify",{enumerable:!0,get:s(function(){return pn.stringify},"get")});Object.defineProperty(J,"nil",{enumerable:!0,get:s(function(){return pn.nil},"get")});Object.defineProperty(J,"Name",{enumerable:!0,get:s(function(){return pn.Name},"get")});Object.defineProperty(J,"CodeGen",{enumerable:!0,get:s(function(){return pn.CodeGen},"get")})});var pm=m(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var OE={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};nl.default=OE});var dm=m(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var EE=pm(),xE=_i(),wE=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",EE.default,xE.default];il.default=wE});var hm=m(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var es=A(),Gt=es.operators,ts={maximum:{okStr:"<=",ok:Gt.LTE,fail:Gt.GT},minimum:{okStr:">=",ok:Gt.GTE,fail:Gt.LT},exclusiveMaximum:{okStr:"<",ok:Gt.LT,fail:Gt.GTE},exclusiveMinimum:{okStr:">",ok:Gt.GT,fail:Gt.LTE}},AE={message:s(({keyword:e,schemaCode:t})=>(0,es.str)`must be ${ts[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,es._)`{comparison: ${ts[e].okStr}, limit: ${t}}`,"params")},IE={keyword:Object.keys(ts),type:"number",schemaType:"number",$data:!0,error:AE,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,es._)`${r} ${ts[t].fail} ${n} || isNaN(${r})`)}};ol.default=IE});var mm=m(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});var kE=hm(),RE=sc(),TE=cc(),CE=fc(),NE=dc(),qE=mc(),jE=yc(),ME=bc(),DE=Oc(),LE=xc(),FE=[kE.default,RE.default,TE.default,CE.default,NE.default,qE.default,jE.default,ME.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},DE.default,LE.default];sl.default=FE});var ul=m(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.dynamicAnchor=void 0;var al=A(),VE=Me(),gm=hi(),BE=_i(),HE={keyword:"$dynamicAnchor",schemaType:"string",code:s(e=>ym(e,e.schema),"code")};function ym(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,al._)`${VE.default.dynamicAnchors}${(0,al.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:UE(e);r.if((0,al._)`!${i}`,()=>r.assign(i,o))}s(ym,"dynamicAnchor");Ii.dynamicAnchor=ym;function UE(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:a,meta:u}=t.root,{schemaId:c}=n.opts,l=new gm.SchemaEnv({schema:r,schemaId:c,root:i,baseId:o,localRefs:a,meta:u});return gm.compileSchema.call(n,l),(0,BE.getValidate)(e,l)}s(UE,"_getValidate");Ii.default=HE});var cl=m(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.dynamicRef=void 0;var vm=A(),zE=Me(),_m=_i(),GE={keyword:"$dynamicRef",schemaType:"string",code:s(e=>Sm(e,e.schema),"code")};function Sm(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=t.slice(1);if(i.allErrors)a();else{let c=r.let("valid",!1);a(c),e.ok(c)}function a(c){if(i.schemaEnv.root.dynamicAnchors[o]){let l=r.let("_v",(0,vm._)`${zE.default.dynamicAnchors}${(0,vm.getProperty)(o)}`);r.if(l,u(l,c),u(i.validateName,c))}else u(i.validateName,c)()}s(a,"_dynamicRef");function u(c,l){return l?()=>r.block(()=>{(0,_m.callRef)(e,c),r.let(l,!0)}):()=>(0,_m.callRef)(e,c)}s(u,"_callRef")}s(Sm,"dynamicRef");ki.dynamicRef=Sm;ki.default=GE});var bm=m(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var ZE=ul(),KE=T(),WE={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,ZE.dynamicAnchor)(e,""):(0,KE.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};ll.default=WE});var Pm=m(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var YE=cl(),QE={keyword:"$recursiveRef",schemaType:"string",code:s(e=>(0,YE.dynamicRef)(e,e.schema),"code")};fl.default=QE});var $m=m(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var JE=ul(),XE=cl(),ex=bm(),tx=Pm(),rx=[JE.default,XE.default,ex.default,tx.default];pl.default=rx});var Em=m(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var Om=zo(),nx={keyword:"dependentRequired",type:"object",schemaType:"object",error:Om.error,code:s(e=>(0,Om.validatePropertyDeps)(e),"code")};dl.default=nx});var xm=m(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var ix=zo(),ox={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,ix.validateSchemaDeps)(e),"code")};hl.default=ox});var wm=m(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var sx=T(),ax={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,sx.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};ml.default=ax});var Am=m(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var ux=Em(),cx=xm(),lx=wm(),fx=[ux.default,cx.default,lx.default];gl.default=fx});var km=m(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var Zt=A(),Im=T(),px=Me(),dx={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,Zt._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},hx={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:dx,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:o}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:u}=o;u instanceof Zt.Name?t.if((0,Zt._)`${u} !== true`,()=>t.forIn("key",n,f=>t.if(l(u,f),()=>c(f)))):u!==!0&&t.forIn("key",n,f=>u===void 0?c(f):t.if(p(u,f),()=>c(f))),o.props=!0,e.ok((0,Zt._)`${i} === ${px.default.errors}`);function c(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,Im.alwaysValidSchema)(o,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:Im.Type.Str},d),a||t.if((0,Zt.not)(d),()=>t.break())}}s(c,"unevaluatedPropCode");function l(f,d){return(0,Zt._)`!${f} || !${f}[${d}]`}s(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let g in f)f[g]===!0&&h.push((0,Zt._)`${d} !== ${g}`);return(0,Zt.and)(...h)}s(p,"unevaluatedStatic")}};yl.default=hx});var Tm=m(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var Or=A(),Rm=T(),mx={message:s(({params:{len:e}})=>(0,Or.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Or._)`{limit: ${e}}`,"params")},gx={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:mx,code(e){let{gen:t,schema:r,data:n,it:i}=e,o=i.items||0;if(o===!0)return;let a=t.const("len",(0,Or._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,Or._)`${a} > ${o}`);else if(typeof r=="object"&&!(0,Rm.alwaysValidSchema)(i,r)){let c=t.var("valid",(0,Or._)`${a} <= ${o}`);t.if((0,Or.not)(c),()=>u(c,o)),e.ok(c)}i.items=!0;function u(c,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:Rm.Type.Num},c),i.allErrors||t.if((0,Or.not)(c),()=>t.break())})}s(u,"validateItems")}};vl.default=gx});var Cm=m(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var yx=km(),vx=Tm(),_x=[yx.default,vx.default];_l.default=_x});var Nm=m(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.contentVocabulary=dn.metadataVocabulary=void 0;dn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];dn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var jm=m(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var Sx=dm(),bx=mm(),Px=Kc(),$x=$m(),Ox=Am(),Ex=Cm(),xx=Qc(),qm=Nm(),wx=[$x.default,Sx.default,bx.default,(0,Px.default)(!0),xx.default,qm.metadataVocabulary,qm.contentVocabulary,Ox.default,Ex.default];Sl.default=wx});var Mm=m((m4,Ax)=>{Ax.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 Dm=m((g4,Ix)=>{Ix.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 Lm=m((y4,kx)=>{kx.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 Fm=m((v4,Rx)=>{Rx.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 Vm=m((_4,Tx)=>{Tx.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 Bm=m((S4,Cx)=>{Cx.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 Hm=m((b4,Nx)=>{Nx.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 Um=m((P4,qx)=>{qx.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 zm=m(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var jx=Mm(),Mx=Dm(),Dx=Lm(),Lx=Fm(),Fx=Vm(),Vx=Bm(),Bx=Hm(),Hx=Um(),Ux=["/properties"];function zx(e){return[jx,Mx,Dx,Lx,Fx,t(this,Vx),Bx,t(this,Hx)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,Ux):n}s(t,"with$data")}s(zx,"addMetaSchema2020");bl.default=zx});var Gm=m((B,$l)=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.MissingRefError=B.ValidationError=B.CodeGen=B.Name=B.nil=B.stringify=B.str=B._=B.KeywordCxt=B.Ajv2020=void 0;var Gx=cn(),Zx=jm(),Kx=tl(),Wx=zm(),Pl="https://json-schema.org/draft/2020-12/schema",Ol=class Ol extends Gx.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),Zx.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Kx.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Wx.default.call(this,t),this.refs["http://json-schema.org/schema"]=Pl)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Pl)?Pl:void 0)}};s(Ol,"Ajv2020");var hn=Ol;B.Ajv2020=hn;$l.exports=B=hn;$l.exports.Ajv2020=hn;Object.defineProperty(B,"__esModule",{value:!0});B.default=hn;var Yx=pi();Object.defineProperty(B,"KeywordCxt",{enumerable:!0,get:s(function(){return Yx.KeywordCxt},"get")});var mn=A();Object.defineProperty(B,"_",{enumerable:!0,get:s(function(){return mn._},"get")});Object.defineProperty(B,"str",{enumerable:!0,get:s(function(){return mn.str},"get")});Object.defineProperty(B,"stringify",{enumerable:!0,get:s(function(){return mn.stringify},"get")});Object.defineProperty(B,"nil",{enumerable:!0,get:s(function(){return mn.nil},"get")});Object.defineProperty(B,"Name",{enumerable:!0,get:s(function(){return mn.Name},"get")});Object.defineProperty(B,"CodeGen",{enumerable:!0,get:s(function(){return mn.CodeGen},"get")});var Qx=Co();Object.defineProperty(B,"ValidationError",{enumerable:!0,get:s(function(){return Qx.default},"get")});var Jx=di();Object.defineProperty(B,"MissingRefError",{enumerable:!0,get:s(function(){return Jx.default},"get")})});var Zm=m((x4,Xx)=>{Xx.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 Km=m((w4,ew)=>{ew.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 Wm=m((A4,tw)=>{tw.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 Ym=m((I4,rw)=>{rw.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 Qm=m((ie,gn)=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.openapi=ie.openapiV31=ie.openapiV3=ie.openapiV2=ie.openapiV1=void 0;ie.openapiV1=Zm();ie.openapiV2=Km();ie.openapiV3=Wm();ie.openapiV31=Ym();ie.openapi={v1:ie.openapiV1,v2:ie.openapiV2,v3:ie.openapiV3,v31:ie.openapiV31};ie.default=ie.openapi;typeof gn=="object"&&typeof gn.exports=="object"&&(gn.exports=Object.assign(gn.exports.default,gn.exports))});var wl=m((k4,Jm)=>{"use strict";var nw=ho(),{ono:iw}=Ge(),ow=fm(),sw=Gm(),{openapi:El}=Qm();Jm.exports=aw;function aw(e){let t,r;if(e.swagger)r=El.v2,t=xl();else if(e.openapi.startsWith("3.1")){r=El.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=xl(!1)}else r=El.v3,t=xl();if(!t.validate(r,e)){let i=t.errors,o=`Swagger schema validation failed.
13
+ `+uw(i);throw iw.syntax(i,{details:i},o)}}s(aw,"validateSchema");function xl(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new ow(t):new sw(t)}s(xl,"initializeAjv");function uw(e,t){t=t||" ";let r="";for(let n of e)r+=nw.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
14
+ `);return r}s(uw,"formatAjvError")});var eg=m((T4,Xm)=>{"use strict";Xm.exports=["get","put","post","delete","options","head","patch"]});var kl=m((C4,ig)=>{"use strict";var cw=ho(),{ono:pe}=Ge(),lw=eg(),Al=["array","boolean","integer","number","string"],rg=["array","boolean","integer","number","string","object","null",void 0];ig.exports=fw;function fw(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let o=e.paths[i],a="/paths"+i;o&&i.indexOf("/")===0&&pw(e,o,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let o=e.definitions[i],a="/definitions/"+i;ng(o,a)}}s(fw,"validateSpec");function pw(e,t,r,n){for(let i of lw){let o=t[i],a=r+"/"+i;if(o){let u=o.operationId;if(u)if(n.indexOf(u)===-1)n.push(u);else throw pe.syntax(`Validation failed. Duplicate operation id '${u}'`);dw(e,t,r,o,a);let c=Object.keys(o.responses||{});for(let l of c){let p=o.responses[l],f=a+"/responses/"+l;yw(l,p||{},f)}}}}s(pw,"validatePath");function dw(e,t,r,n,i){let o=t.parameters||[],a=n.parameters||[];try{tg(o)}catch(c){throw pe.syntax(c,`Validation failed. ${r} has duplicate parameters`)}try{tg(a)}catch(c){throw pe.syntax(c,`Validation failed. ${i} has duplicate parameters`)}let u=o.reduce((c,l)=>(c.some(f=>f.in===l.in&&f.name===l.name)||c.push(l),c),a.slice());hw(u,i),mw(u,r,i),gw(u,e,n,i)}s(dw,"validateParameters");function hw(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw pe.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw pe.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}s(hw,"validateBodyParameters");function mw(e,t,r){let n=t.match(cw.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let o=i+1;o<n.length;o++)if(n[i]===n[o])throw pe.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 pe.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let o=n.indexOf("{"+i.name+"}");if(o===-1)throw pe.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(o,1)}if(n.length>0)throw pe.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}s(mw,"validatePathParameters");function gw(e,t,r,n){for(let i of e){let o=n+"/parameters/"+i.name,a,u;switch(i.in){case"body":a=i.schema,u=rg;break;case"formData":a=i,u=Al.concat("file");break;default:a=i,u=Al}if(Il(a,o,u),ng(a,o),a.type==="file"){let c=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>c.test(d)||l.test(d)))throw pe.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}s(gw,"validateParameterTypes");function tg(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 pe.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}s(tg,"checkForDuplicates");function yw(e,t,r){if(e!=="default"&&(e<100||e>599))throw pe.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let o=t.headers[i],a=r+"/headers/"+i;Il(o,a,Al)}if(t.schema){let i=rg.concat("file");if(i.indexOf(t.schema.type)===-1)throw pe.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Il(t.schema,r+"/schema",i)}}s(yw,"validateResponse");function Il(e,t,r){if(r.indexOf(e.type)===-1)throw pe.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw pe.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}s(Il,"validateSchema");function ng(e,t){function r(n,i){if(n.properties)for(let o in n.properties)n.properties.hasOwnProperty(o)&&(i[o]=n.properties[o]);if(n.allOf)for(let o of n.allOf)r(o,i)}if(s(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw pe.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}s(ng,"validateRequiredPropertiesExist")});var Je=m(Qe=>{"use strict";var{Ono:og}=Ge(),{stripHash:sg,toFileSystemPath:vw}=Re(),yn,Kt=Qe.JSONParserError=(yn=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,og.extend(this)}},s(yn,"JSONParserError"),yn);Wt(Kt);var Er,ag=Qe.JSONParserErrorGroup=(Er=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${vw(t.$refs._root$Ref.path)}'`,og.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 Er.getParserErrors(this.files)}},s(Er,"JSONParserErrorGroup"),Er);Wt(ag);var vn,_w=Qe.ParserError=(vn=class extends Kt{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},s(vn,"ParserError"),vn);Wt(_w);var _n,Sw=Qe.UnmatchedParserError=(_n=class extends Kt{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},s(_n,"UnmatchedParserError"),_n);Wt(Sw);var Sn,bw=Qe.ResolverError=(Sn=class extends Kt{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},s(Sn,"ResolverError"),Sn);Wt(bw);var bn,Pw=Qe.UnmatchedResolverError=(bn=class extends Kt{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},s(bn,"UnmatchedResolverError"),bn);Wt(Pw);var Pn,$w=Qe.MissingPointerError=(Pn=class extends Kt{constructor(t,r){super(`Token "${t}" does not exist.`,sg(r)),this.code="EMISSINGPOINTER"}},s(Pn,"MissingPointerError"),Pn);Wt($w);var $n,Ow=Qe.InvalidPointerError=($n=class extends Kt{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,sg(r)),this.code="EINVALIDPOINTER"}},s($n,"InvalidPointerError"),$n);Wt(Ow);function Wt(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}s(Wt,"setErrorName");Qe.isHandledError=function(e){return e instanceof Kt||e instanceof ag};Qe.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var cg=m((M4,ug)=>{"use strict";var{ParserError:Ew}=Je();ug.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 Ew(r.message,e.url)}}else return t}}});var wr=m((D4,xr)=>{"use strict";function lg(e){return typeof e>"u"||e===null}s(lg,"isNothing");function xw(e){return typeof e=="object"&&e!==null}s(xw,"isObject");function ww(e){return Array.isArray(e)?e:lg(e)?[]:[e]}s(ww,"toArray");function Aw(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}s(Aw,"extend");function Iw(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}s(Iw,"repeat");function kw(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}s(kw,"isNegativeZero");xr.exports.isNothing=lg;xr.exports.isObject=xw;xr.exports.toArray=ww;xr.exports.repeat=Iw;xr.exports.isNegativeZero=kw;xr.exports.extend=Aw});var On=m((F4,fg)=>{"use strict";function Ri(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||""}s(Ri,"YAMLException");Ri.prototype=Object.create(Error.prototype);Ri.prototype.constructor=Ri;Ri.prototype.toString=s(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");fg.exports=Ri});var hg=m((B4,dg)=>{"use strict";var pg=wr();function Rl(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}s(Rl,"Mark");Rl.prototype.getSnippet=s(function(t,r){var n,i,o,a,u;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(o="",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){o=" ... ",a-=5;break}return u=this.buffer.slice(i,a),fg.repeat(" ",t)+n+u+o+`
17
- `+fg.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");kl.prototype.toString=s(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");pg.exports=kl});var X=m((H4,mg)=>{"use strict";var hg=On(),kw=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Rw=["scalar","sequence","mapping"];function Tw(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}s(Tw,"compileStyleAliases");function Nw(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(kw.indexOf(r)===-1)throw new hg('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=Tw(t.styleAliases||null),Rw.indexOf(this.kind)===-1)throw new hg('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}s(Nw,"Type");mg.exports=Nw});var Ar=m((z4,yg)=>{"use strict";var gg=wr(),rs=On(),Cw=X();function Rl(e,t,r){var n=[];return e.include.forEach(function(i){r=Rl(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,a){o.tag===i.tag&&o.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}s(Rl,"compileList");function qw(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(s(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}s(qw,"compileMap");function En(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 rs("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Rl(this,"implicit",[]),this.compiledExplicit=Rl(this,"explicit",[]),this.compiledTypeMap=qw(this.compiledImplicit,this.compiledExplicit)}s(En,"Schema");En.DEFAULT=null;En.create=s(function(){var t,r;switch(arguments.length){case 1:t=En.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new rs("Wrong number of arguments for Schema.create function")}if(t=gg.toArray(t),r=gg.toArray(r),!t.every(function(n){return n instanceof En}))throw new rs("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof Cw}))throw new rs("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new En({include:t,explicit:r})},"createSchema");yg.exports=En});var _g=m((Z4,vg)=>{"use strict";var jw=X();vg.exports=new jw("tag:yaml.org,2002:str",{kind:"scalar",construct:s(function(e){return e!==null?e:""},"construct")})});var bg=m((W4,Sg)=>{"use strict";var Mw=X();Sg.exports=new Mw("tag:yaml.org,2002:seq",{kind:"sequence",construct:s(function(e){return e!==null?e:[]},"construct")})});var $g=m((Q4,Pg)=>{"use strict";var Dw=X();Pg.exports=new Dw("tag:yaml.org,2002:map",{kind:"mapping",construct:s(function(e){return e!==null?e:{}},"construct")})});var ns=m((X4,Og)=>{"use strict";var Lw=Ar();Og.exports=new Lw({explicit:[_g(),bg(),$g()]})});var xg=m((eM,Eg)=>{"use strict";var Fw=X();function Vw(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}s(Vw,"resolveYamlNull");function Bw(){return null}s(Bw,"constructYamlNull");function Hw(e){return e===null}s(Hw,"isNull");Eg.exports=new Fw("tag:yaml.org,2002:null",{kind:"scalar",resolve:Vw,construct:Bw,predicate:Hw,represent:{canonical:s(function(){return"~"},"canonical"),lowercase:s(function(){return"null"},"lowercase"),uppercase:s(function(){return"NULL"},"uppercase"),camelcase:s(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var Ag=m((rM,wg)=>{"use strict";var Uw=X();function zw(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")}s(zw,"resolveYamlBoolean");function Gw(e){return e==="true"||e==="True"||e==="TRUE"}s(Gw,"constructYamlBoolean");function Zw(e){return Object.prototype.toString.call(e)==="[object Boolean]"}s(Zw,"isBoolean");wg.exports=new Uw("tag:yaml.org,2002:bool",{kind:"scalar",resolve:zw,construct:Gw,predicate:Zw,represent:{lowercase:s(function(e){return e?"true":"false"},"lowercase"),uppercase:s(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:s(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var kg=m((iM,Ig)=>{"use strict";var Kw=wr(),Ww=X();function Yw(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}s(Yw,"isHexCode");function Qw(e){return 48<=e&&e<=55}s(Qw,"isOctCode");function Jw(e){return 48<=e&&e<=57}s(Jw,"isDecCode");function Xw(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(!Yw(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!Qw(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(!Jw(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}s(Xw,"resolveYamlInteger");function eA(e){var t=e,r=1,n,i,o=[];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){o.unshift(parseInt(a,10))}),t=0,i=1,o.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}s(eA,"constructYamlInteger");function tA(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Kw.isNegativeZero(e)}s(tA,"isInteger");Ig.exports=new Ww("tag:yaml.org,2002:int",{kind:"scalar",resolve:Xw,construct:eA,predicate:tA,represent:{binary:s(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:s(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:s(function(e){return e.toString(10)},"decimal"),hexadecimal:s(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 Ng=m((sM,Tg)=>{"use strict";var Rg=wr(),rA=X(),nA=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 iA(e){return!(e===null||!nA.test(e)||e[e.length-1]==="_")}s(iA,"resolveYamlFloat");function oA(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(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}s(oA,"constructYamlFloat");var sA=/^[-+]?[0-9]+e/;function aA(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(Rg.isNegativeZero(e))return"-0.0";return r=e.toString(10),sA.test(r)?r.replace("e",".e"):r}s(aA,"representYamlFloat");function uA(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Rg.isNegativeZero(e))}s(uA,"isFloat");Tg.exports=new rA("tag:yaml.org,2002:float",{kind:"scalar",resolve:iA,construct:oA,predicate:uA,represent:aA,defaultStyle:"lowercase"})});var Tl=m((uM,Cg)=>{"use strict";var cA=Ar();Cg.exports=new cA({include:[ns()],implicit:[xg(),Ag(),kg(),Ng()]})});var Nl=m((cM,qg)=>{"use strict";var lA=Ar();qg.exports=new lA({include:[Tl()]})});var Lg=m((lM,Dg)=>{"use strict";var fA=X(),jg=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Mg=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 pA(e){return e===null?!1:jg.exec(e)!==null||Mg.exec(e)!==null}s(pA,"resolveYamlTimestamp");function dA(e){var t,r,n,i,o,a,u,c=0,l=null,p,f,d;if(t=jg.exec(e),t===null&&(t=Mg.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(o=+t[4],a=+t[5],u=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(p=+t[10],f=+(t[11]||0),l=(p*60+f)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,o,a,u,c)),l&&d.setTime(d.getTime()-l),d}s(dA,"constructYamlTimestamp");function hA(e){return e.toISOString()}s(hA,"representYamlTimestamp");Dg.exports=new fA("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:pA,construct:dA,instanceOf:Date,represent:hA})});var Vg=m((pM,Fg)=>{"use strict";var mA=X();function gA(e){return e==="<<"||e===null}s(gA,"resolveYamlMerge");Fg.exports=new mA("tag:yaml.org,2002:merge",{kind:"scalar",resolve:gA})});var Ug=m((hM,Hg)=>{"use strict";var Ir;try{Bg=require,Ir=Bg("buffer").Buffer}catch{}var Bg,yA=X(),Cl=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
19
- \r`;function vA(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=Cl;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}s(vA,"resolveYamlBinary");function _A(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=Cl,a=0,u=[];for(t=0;t<i;t++)t%4===0&&t&&(u.push(a>>16&255),u.push(a>>8&255),u.push(a&255)),a=a<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(u.push(a>>16&255),u.push(a>>8&255),u.push(a&255)):r===18?(u.push(a>>10&255),u.push(a>>2&255)):r===12&&u.push(a>>4&255),Ir?Ir.from?Ir.from(u):new Ir(u):u}s(_A,"constructYamlBinary");function SA(e){var t="",r=0,n,i,o=e.length,a=Cl;for(n=0;n<o;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=o%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}s(SA,"representYamlBinary");function bA(e){return Ir&&Ir.isBuffer(e)}s(bA,"isBinary");Hg.exports=new yA("tag:yaml.org,2002:binary",{kind:"scalar",resolve:vA,construct:_A,predicate:bA,represent:SA})});var Gg=m((gM,zg)=>{"use strict";var PA=X(),$A=Object.prototype.hasOwnProperty,OA=Object.prototype.toString;function EA(e){if(e===null)return!0;var t=[],r,n,i,o,a,u=e;for(r=0,n=u.length;r<n;r+=1){if(i=u[r],a=!1,OA.call(i)!=="[object Object]")return!1;for(o in i)if($A.call(i,o))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}s(EA,"resolveYamlOmap");function xA(e){return e!==null?e:[]}s(xA,"constructYamlOmap");zg.exports=new PA("tag:yaml.org,2002:omap",{kind:"sequence",resolve:EA,construct:xA})});var Kg=m((vM,Zg)=>{"use strict";var wA=X(),AA=Object.prototype.toString;function IA(e){if(e===null)return!0;var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],AA.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}s(IA,"resolveYamlPairs");function kA(e){if(e===null)return[];var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}s(kA,"constructYamlPairs");Zg.exports=new wA("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:IA,construct:kA})});var Yg=m((SM,Wg)=>{"use strict";var RA=X(),TA=Object.prototype.hasOwnProperty;function NA(e){if(e===null)return!0;var t,r=e;for(t in r)if(TA.call(r,t)&&r[t]!==null)return!1;return!0}s(NA,"resolveYamlSet");function CA(e){return e!==null?e:{}}s(CA,"constructYamlSet");Wg.exports=new RA("tag:yaml.org,2002:set",{kind:"mapping",resolve:NA,construct:CA})});var xn=m((PM,Qg)=>{"use strict";var qA=Ar();Qg.exports=new qA({include:[Nl()],implicit:[Lg(),Vg()],explicit:[Ug(),Gg(),Kg(),Yg()]})});var Xg=m(($M,Jg)=>{"use strict";var jA=X();function MA(){return!0}s(MA,"resolveJavascriptUndefined");function DA(){}s(DA,"constructJavascriptUndefined");function LA(){return""}s(LA,"representJavascriptUndefined");function FA(e){return typeof e>"u"}s(FA,"isUndefined");Jg.exports=new jA("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:MA,construct:DA,predicate:FA,represent:LA})});var ty=m((EM,ey)=>{"use strict";var VA=X();function BA(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]!=="/"))}s(BA,"resolveJavascriptRegExp");function HA(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)}s(HA,"constructJavascriptRegExp");function UA(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}s(UA,"representJavascriptRegExp");function zA(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s(zA,"isRegExp");ey.exports=new VA("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:BA,construct:HA,predicate:zA,represent:UA})});var iy=m((wM,ny)=>{"use strict";var is;try{ry=require,is=ry("esprima")}catch{typeof window<"u"&&(is=window.esprima)}var ry,GA=X();function ZA(e){if(e===null)return!1;try{var t="("+e+")",r=is.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}}s(ZA,"resolveJavascriptFunction");function KA(e){var t="("+e+")",r=is.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(o){n.push(o.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]))}s(KA,"constructJavascriptFunction");function WA(e){return e.toString()}s(WA,"representJavascriptFunction");function YA(e){return Object.prototype.toString.call(e)==="[object Function]"}s(YA,"isFunction");ny.exports=new GA("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:ZA,construct:KA,predicate:YA,represent:WA})});var Ti=m((IM,sy)=>{"use strict";var oy=Ar();sy.exports=oy.DEFAULT=new oy({include:[xn()],explicit:[Xg(),ty(),iy()]})});var Ey=m((kM,Ni)=>{"use strict";var kt=wr(),dy=On(),QA=dg(),hy=xn(),JA=Ti(),Yt=Object.prototype.hasOwnProperty,os=1,my=2,gy=3,ss=4,ql=1,XA=2,ay=3,eI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,tI=/[\x85\u2028\u2029]/,rI=/[,\[\]\{\}]/,yy=/^(?:!|!!|![a-z\-]+!)$/i,vy=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function uy(e){return Object.prototype.toString.call(e)}s(uy,"_class");function pt(e){return e===10||e===13}s(pt,"is_EOL");function Rr(e){return e===9||e===32}s(Rr,"is_WHITE_SPACE");function Ae(e){return e===9||e===32||e===10||e===13}s(Ae,"is_WS_OR_EOL");function wn(e){return e===44||e===91||e===93||e===123||e===125}s(wn,"is_FLOW_INDICATOR");function nI(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}s(nI,"fromHexCode");function iI(e){return e===120?2:e===117?4:e===85?8:0}s(iI,"escapedHexLen");function oI(e){return 48<=e&&e<=57?e-48:-1}s(oI,"fromDecimalCode");function cy(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":""}s(cy,"simpleEscapeSequence");function sI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}s(sI,"charFromCodepoint");var _y=new Array(256),Sy=new Array(256);for(kr=0;kr<256;kr++)_y[kr]=cy(kr)?1:0,Sy[kr]=cy(kr);var kr;function aI(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||JA,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=[]}s(aI,"State");function by(e,t){return new dy(t,new QA(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}s(by,"generateError");function x(e,t){throw by(e,t)}s(x,"throwError");function as(e,t){e.onWarning&&e.onWarning.call(null,by(e,t))}s(as,"throwWarning");var ly={YAML:s(function(t,r,n){var i,o,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"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&x(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&as(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:s(function(t,r,n){var i,o;n.length!==2&&x(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],yy.test(i)||x(t,"ill-formed tag handle (first argument) of the TAG directive"),Yt.call(t.tagMap,i)&&x(t,'there is a previously declared suffix for "'+i+'" tag handle'),vy.test(o)||x(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o},"handleTagDirective")};function Wt(e,t,r,n){var i,o,a,u;if(t<r){if(u=e.input.slice(t,r),n)for(i=0,o=u.length;i<o;i+=1)a=u.charCodeAt(i),a===9||32<=a&&a<=1114111||x(e,"expected valid JSON character");else eI.test(u)&&x(e,"the stream contains non-printable characters");e.result+=u}}s(Wt,"captureSegment");function fy(e,t,r,n){var i,o,a,u;for(kt.isObject(r)||x(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,u=i.length;a<u;a+=1)o=i[a],Yt.call(t,o)||(t[o]=r[o],n[o]=!0)}s(fy,"mergeMappings");function An(e,t,r,n,i,o,a,u){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&x(e,"nested arrays are not supported inside keys"),typeof i=="object"&&uy(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&uy(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,l=o.length;c<l;c+=1)fy(e,t,o[c],r);else fy(e,t,o,r);else!e.json&&!Yt.call(r,i)&&Yt.call(t,i)&&(e.line=a||e.line,e.position=u||e.position,x(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}s(An,"storeMappingPair");function jl(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}s(jl,"readLineBreak");function Y(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Rr(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(jl(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&&as(e,"deficient indentation"),n}s(Y,"skipSeparationSpace");function us(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||Ae(r)))}s(us,"testDocumentSeparator");function Ml(e,t){t===1?e.result+=" ":t>1&&(e.result+=kt.repeat(`
21
- `,t-1))}s(Ml,"writeFoldedLines");function uI(e,t,r){var n,i,o,a,u,c,l,p,f=e.kind,d=e.result,h;if(h=e.input.charCodeAt(e.position),Ae(h)||wn(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),Ae(i)||r&&wn(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,u=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),Ae(i)||r&&wn(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Ae(n))break}else{if(e.position===e.lineStart&&us(e)||r&&wn(h))break;if(pt(h))if(c=e.line,l=e.lineStart,p=e.lineIndent,Y(e,!1,-1),e.lineIndent>=t){u=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=c,e.lineStart=l,e.lineIndent=p;break}}u&&(Wt(e,o,a,!1),Ml(e,e.line-c),o=a=e.position,u=!1),Rr(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return Wt(e,o,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}s(uI,"readPlainScalar");function cI(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(Wt(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)?(Wt(e,n,i,!0),Ml(e,Y(e,!1,t)),n=i=e.position):e.position===e.lineStart&&us(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")}s(cI,"readSingleQuotedScalar");function lI(e,t){var r,n,i,o,a,u;if(u=e.input.charCodeAt(e.position),u!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(u=e.input.charCodeAt(e.position))!==0;){if(u===34)return Wt(e,r,e.position,!0),e.position++,!0;if(u===92){if(Wt(e,r,e.position,!0),u=e.input.charCodeAt(++e.position),pt(u))Y(e,!1,t);else if(u<256&&_y[u])e.result+=Sy[u],e.position++;else if((a=iI(u))>0){for(i=a,o=0;i>0;i--)u=e.input.charCodeAt(++e.position),(a=nI(u))>=0?o=(o<<4)+a:x(e,"expected hexadecimal character");e.result+=sI(o),e.position++}else x(e,"unknown escape sequence");r=n=e.position}else pt(u)?(Wt(e,r,n,!0),Ml(e,Y(e,!1,t)),r=n=e.position):e.position===e.lineStart&&us(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")}s(lI,"readDoubleQuotedScalar");function fI(e,t){var r=!0,n,i=e.tag,o,a=e.anchor,u,c,l,p,f,d={},h,g,y,v;if(v=e.input.charCodeAt(e.position),v===91)c=93,f=!1,o=[];else if(v===123)c=125,f=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),v=e.input.charCodeAt(++e.position);v!==0;){if(Y(e,!0,t),v=e.input.charCodeAt(e.position),v===c)return e.position++,e.tag=i,e.anchor=a,e.kind=f?"mapping":"sequence",e.result=o,!0;r||x(e,"missed comma between flow collection entries"),g=h=y=null,l=p=!1,v===63&&(u=e.input.charCodeAt(e.position+1),Ae(u)&&(l=p=!0,e.position++,Y(e,!0,t))),n=e.line,In(e,t,os,!1,!0),g=e.tag,h=e.result,Y(e,!0,t),v=e.input.charCodeAt(e.position),(p||e.line===n)&&v===58&&(l=!0,v=e.input.charCodeAt(++e.position),Y(e,!0,t),In(e,t,os,!1,!0),y=e.result),f?An(e,o,d,g,h,y):l?o.push(An(e,null,d,g,h,y)):o.push(h),Y(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")}s(fI,"readFlowCollection");function pI(e,t){var r,n,i=ql,o=!1,a=!1,u=t,c=0,l=!1,p,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)ql===i?i=f===43?ay:XA:x(e,"repeat of a chomping mode identifier");else if((p=oI(f))>=0)p===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"):(u=t+p-1,a=!0);else break;if(Rr(f)){do f=e.input.charCodeAt(++e.position);while(Rr(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!pt(f)&&f!==0)}for(;f!==0;){for(jl(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<u)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>u&&(u=e.lineIndent),pt(f)){c++;continue}if(e.lineIndent<u){i===ay?e.result+=kt.repeat(`
22
- `,o?1+c:c):i===ql&&o&&(e.result+=`
16
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){o=" ... ",a-=5;break}return u=this.buffer.slice(i,a),pg.repeat(" ",t)+n+u+o+`
17
+ `+pg.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Rl.prototype.toString=s(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");dg.exports=Rl});var X=m((U4,gg)=>{"use strict";var mg=On(),Rw=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Tw=["scalar","sequence","mapping"];function Cw(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}s(Cw,"compileStyleAliases");function Nw(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Rw.indexOf(r)===-1)throw new mg('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=Cw(t.styleAliases||null),Tw.indexOf(this.kind)===-1)throw new mg('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}s(Nw,"Type");gg.exports=Nw});var Ar=m((G4,vg)=>{"use strict";var yg=wr(),rs=On(),qw=X();function Tl(e,t,r){var n=[];return e.include.forEach(function(i){r=Tl(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,a){o.tag===i.tag&&o.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}s(Tl,"compileList");function jw(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(s(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}s(jw,"compileMap");function En(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 rs("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Tl(this,"implicit",[]),this.compiledExplicit=Tl(this,"explicit",[]),this.compiledTypeMap=jw(this.compiledImplicit,this.compiledExplicit)}s(En,"Schema");En.DEFAULT=null;En.create=s(function(){var t,r;switch(arguments.length){case 1:t=En.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new rs("Wrong number of arguments for Schema.create function")}if(t=yg.toArray(t),r=yg.toArray(r),!t.every(function(n){return n instanceof En}))throw new rs("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof qw}))throw new rs("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new En({include:t,explicit:r})},"createSchema");vg.exports=En});var Sg=m((K4,_g)=>{"use strict";var Mw=X();_g.exports=new Mw("tag:yaml.org,2002:str",{kind:"scalar",construct:s(function(e){return e!==null?e:""},"construct")})});var Pg=m((Y4,bg)=>{"use strict";var Dw=X();bg.exports=new Dw("tag:yaml.org,2002:seq",{kind:"sequence",construct:s(function(e){return e!==null?e:[]},"construct")})});var Og=m((J4,$g)=>{"use strict";var Lw=X();$g.exports=new Lw("tag:yaml.org,2002:map",{kind:"mapping",construct:s(function(e){return e!==null?e:{}},"construct")})});var ns=m((eM,Eg)=>{"use strict";var Fw=Ar();Eg.exports=new Fw({explicit:[Sg(),Pg(),Og()]})});var wg=m((tM,xg)=>{"use strict";var Vw=X();function Bw(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}s(Bw,"resolveYamlNull");function Hw(){return null}s(Hw,"constructYamlNull");function Uw(e){return e===null}s(Uw,"isNull");xg.exports=new Vw("tag:yaml.org,2002:null",{kind:"scalar",resolve:Bw,construct:Hw,predicate:Uw,represent:{canonical:s(function(){return"~"},"canonical"),lowercase:s(function(){return"null"},"lowercase"),uppercase:s(function(){return"NULL"},"uppercase"),camelcase:s(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var Ig=m((nM,Ag)=>{"use strict";var zw=X();function Gw(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")}s(Gw,"resolveYamlBoolean");function Zw(e){return e==="true"||e==="True"||e==="TRUE"}s(Zw,"constructYamlBoolean");function Kw(e){return Object.prototype.toString.call(e)==="[object Boolean]"}s(Kw,"isBoolean");Ag.exports=new zw("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Gw,construct:Zw,predicate:Kw,represent:{lowercase:s(function(e){return e?"true":"false"},"lowercase"),uppercase:s(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:s(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var Rg=m((oM,kg)=>{"use strict";var Ww=wr(),Yw=X();function Qw(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}s(Qw,"isHexCode");function Jw(e){return 48<=e&&e<=55}s(Jw,"isOctCode");function Xw(e){return 48<=e&&e<=57}s(Xw,"isDecCode");function eA(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(!Qw(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!Jw(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(!Xw(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}s(eA,"resolveYamlInteger");function tA(e){var t=e,r=1,n,i,o=[];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){o.unshift(parseInt(a,10))}),t=0,i=1,o.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}s(tA,"constructYamlInteger");function rA(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ww.isNegativeZero(e)}s(rA,"isInteger");kg.exports=new Yw("tag:yaml.org,2002:int",{kind:"scalar",resolve:eA,construct:tA,predicate:rA,represent:{binary:s(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:s(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:s(function(e){return e.toString(10)},"decimal"),hexadecimal:s(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 Ng=m((aM,Cg)=>{"use strict";var Tg=wr(),nA=X(),iA=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 oA(e){return!(e===null||!iA.test(e)||e[e.length-1]==="_")}s(oA,"resolveYamlFloat");function sA(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(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}s(sA,"constructYamlFloat");var aA=/^[-+]?[0-9]+e/;function uA(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(Tg.isNegativeZero(e))return"-0.0";return r=e.toString(10),aA.test(r)?r.replace("e",".e"):r}s(uA,"representYamlFloat");function cA(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Tg.isNegativeZero(e))}s(cA,"isFloat");Cg.exports=new nA("tag:yaml.org,2002:float",{kind:"scalar",resolve:oA,construct:sA,predicate:cA,represent:uA,defaultStyle:"lowercase"})});var Cl=m((cM,qg)=>{"use strict";var lA=Ar();qg.exports=new lA({include:[ns()],implicit:[wg(),Ig(),Rg(),Ng()]})});var Nl=m((lM,jg)=>{"use strict";var fA=Ar();jg.exports=new fA({include:[Cl()]})});var Fg=m((fM,Lg)=>{"use strict";var pA=X(),Mg=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Dg=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 dA(e){return e===null?!1:Mg.exec(e)!==null||Dg.exec(e)!==null}s(dA,"resolveYamlTimestamp");function hA(e){var t,r,n,i,o,a,u,c=0,l=null,p,f,d;if(t=Mg.exec(e),t===null&&(t=Dg.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(o=+t[4],a=+t[5],u=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(p=+t[10],f=+(t[11]||0),l=(p*60+f)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,o,a,u,c)),l&&d.setTime(d.getTime()-l),d}s(hA,"constructYamlTimestamp");function mA(e){return e.toISOString()}s(mA,"representYamlTimestamp");Lg.exports=new pA("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:dA,construct:hA,instanceOf:Date,represent:mA})});var Bg=m((dM,Vg)=>{"use strict";var gA=X();function yA(e){return e==="<<"||e===null}s(yA,"resolveYamlMerge");Vg.exports=new gA("tag:yaml.org,2002:merge",{kind:"scalar",resolve:yA})});var zg=m((mM,Ug)=>{"use strict";var Ir;try{Hg=require,Ir=Hg("buffer").Buffer}catch{}var Hg,vA=X(),ql=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
19
+ \r`;function _A(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=ql;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}s(_A,"resolveYamlBinary");function SA(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=ql,a=0,u=[];for(t=0;t<i;t++)t%4===0&&t&&(u.push(a>>16&255),u.push(a>>8&255),u.push(a&255)),a=a<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(u.push(a>>16&255),u.push(a>>8&255),u.push(a&255)):r===18?(u.push(a>>10&255),u.push(a>>2&255)):r===12&&u.push(a>>4&255),Ir?Ir.from?Ir.from(u):new Ir(u):u}s(SA,"constructYamlBinary");function bA(e){var t="",r=0,n,i,o=e.length,a=ql;for(n=0;n<o;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=o%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}s(bA,"representYamlBinary");function PA(e){return Ir&&Ir.isBuffer(e)}s(PA,"isBinary");Ug.exports=new vA("tag:yaml.org,2002:binary",{kind:"scalar",resolve:_A,construct:SA,predicate:PA,represent:bA})});var Zg=m((yM,Gg)=>{"use strict";var $A=X(),OA=Object.prototype.hasOwnProperty,EA=Object.prototype.toString;function xA(e){if(e===null)return!0;var t=[],r,n,i,o,a,u=e;for(r=0,n=u.length;r<n;r+=1){if(i=u[r],a=!1,EA.call(i)!=="[object Object]")return!1;for(o in i)if(OA.call(i,o))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}s(xA,"resolveYamlOmap");function wA(e){return e!==null?e:[]}s(wA,"constructYamlOmap");Gg.exports=new $A("tag:yaml.org,2002:omap",{kind:"sequence",resolve:xA,construct:wA})});var Wg=m((_M,Kg)=>{"use strict";var AA=X(),IA=Object.prototype.toString;function kA(e){if(e===null)return!0;var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],IA.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}s(kA,"resolveYamlPairs");function RA(e){if(e===null)return[];var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}s(RA,"constructYamlPairs");Kg.exports=new AA("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:kA,construct:RA})});var Qg=m((bM,Yg)=>{"use strict";var TA=X(),CA=Object.prototype.hasOwnProperty;function NA(e){if(e===null)return!0;var t,r=e;for(t in r)if(CA.call(r,t)&&r[t]!==null)return!1;return!0}s(NA,"resolveYamlSet");function qA(e){return e!==null?e:{}}s(qA,"constructYamlSet");Yg.exports=new TA("tag:yaml.org,2002:set",{kind:"mapping",resolve:NA,construct:qA})});var xn=m(($M,Jg)=>{"use strict";var jA=Ar();Jg.exports=new jA({include:[Nl()],implicit:[Fg(),Bg()],explicit:[zg(),Zg(),Wg(),Qg()]})});var ey=m((OM,Xg)=>{"use strict";var MA=X();function DA(){return!0}s(DA,"resolveJavascriptUndefined");function LA(){}s(LA,"constructJavascriptUndefined");function FA(){return""}s(FA,"representJavascriptUndefined");function VA(e){return typeof e>"u"}s(VA,"isUndefined");Xg.exports=new MA("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:DA,construct:LA,predicate:VA,represent:FA})});var ry=m((xM,ty)=>{"use strict";var BA=X();function HA(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]!=="/"))}s(HA,"resolveJavascriptRegExp");function UA(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)}s(UA,"constructJavascriptRegExp");function zA(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}s(zA,"representJavascriptRegExp");function GA(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s(GA,"isRegExp");ty.exports=new BA("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:HA,construct:UA,predicate:GA,represent:zA})});var oy=m((AM,iy)=>{"use strict";var is;try{ny=require,is=ny("esprima")}catch{typeof window<"u"&&(is=window.esprima)}var ny,ZA=X();function KA(e){if(e===null)return!1;try{var t="("+e+")",r=is.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}}s(KA,"resolveJavascriptFunction");function WA(e){var t="("+e+")",r=is.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(o){n.push(o.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]))}s(WA,"constructJavascriptFunction");function YA(e){return e.toString()}s(YA,"representJavascriptFunction");function QA(e){return Object.prototype.toString.call(e)==="[object Function]"}s(QA,"isFunction");iy.exports=new ZA("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:KA,construct:WA,predicate:QA,represent:YA})});var Ti=m((kM,ay)=>{"use strict";var sy=Ar();ay.exports=sy.DEFAULT=new sy({include:[xn()],explicit:[ey(),ry(),oy()]})});var xy=m((RM,Ci)=>{"use strict";var kt=wr(),hy=On(),JA=hg(),my=xn(),XA=Ti(),Qt=Object.prototype.hasOwnProperty,os=1,gy=2,yy=3,ss=4,jl=1,eI=2,uy=3,tI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,rI=/[\x85\u2028\u2029]/,nI=/[,\[\]\{\}]/,vy=/^(?:!|!!|![a-z\-]+!)$/i,_y=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function cy(e){return Object.prototype.toString.call(e)}s(cy,"_class");function pt(e){return e===10||e===13}s(pt,"is_EOL");function Rr(e){return e===9||e===32}s(Rr,"is_WHITE_SPACE");function Ae(e){return e===9||e===32||e===10||e===13}s(Ae,"is_WS_OR_EOL");function wn(e){return e===44||e===91||e===93||e===123||e===125}s(wn,"is_FLOW_INDICATOR");function iI(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}s(iI,"fromHexCode");function oI(e){return e===120?2:e===117?4:e===85?8:0}s(oI,"escapedHexLen");function sI(e){return 48<=e&&e<=57?e-48:-1}s(sI,"fromDecimalCode");function ly(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":""}s(ly,"simpleEscapeSequence");function aI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}s(aI,"charFromCodepoint");var Sy=new Array(256),by=new Array(256);for(kr=0;kr<256;kr++)Sy[kr]=ly(kr)?1:0,by[kr]=ly(kr);var kr;function uI(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||XA,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=[]}s(uI,"State");function Py(e,t){return new hy(t,new JA(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}s(Py,"generateError");function x(e,t){throw Py(e,t)}s(x,"throwError");function as(e,t){e.onWarning&&e.onWarning.call(null,Py(e,t))}s(as,"throwWarning");var fy={YAML:s(function(t,r,n){var i,o,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"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&x(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&as(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:s(function(t,r,n){var i,o;n.length!==2&&x(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],vy.test(i)||x(t,"ill-formed tag handle (first argument) of the TAG directive"),Qt.call(t.tagMap,i)&&x(t,'there is a previously declared suffix for "'+i+'" tag handle'),_y.test(o)||x(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o},"handleTagDirective")};function Yt(e,t,r,n){var i,o,a,u;if(t<r){if(u=e.input.slice(t,r),n)for(i=0,o=u.length;i<o;i+=1)a=u.charCodeAt(i),a===9||32<=a&&a<=1114111||x(e,"expected valid JSON character");else tI.test(u)&&x(e,"the stream contains non-printable characters");e.result+=u}}s(Yt,"captureSegment");function py(e,t,r,n){var i,o,a,u;for(kt.isObject(r)||x(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,u=i.length;a<u;a+=1)o=i[a],Qt.call(t,o)||(t[o]=r[o],n[o]=!0)}s(py,"mergeMappings");function An(e,t,r,n,i,o,a,u){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&x(e,"nested arrays are not supported inside keys"),typeof i=="object"&&cy(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&cy(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,l=o.length;c<l;c+=1)py(e,t,o[c],r);else py(e,t,o,r);else!e.json&&!Qt.call(r,i)&&Qt.call(t,i)&&(e.line=a||e.line,e.position=u||e.position,x(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}s(An,"storeMappingPair");function Ml(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}s(Ml,"readLineBreak");function Y(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Rr(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(Ml(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&&as(e,"deficient indentation"),n}s(Y,"skipSeparationSpace");function us(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||Ae(r)))}s(us,"testDocumentSeparator");function Dl(e,t){t===1?e.result+=" ":t>1&&(e.result+=kt.repeat(`
21
+ `,t-1))}s(Dl,"writeFoldedLines");function cI(e,t,r){var n,i,o,a,u,c,l,p,f=e.kind,d=e.result,h;if(h=e.input.charCodeAt(e.position),Ae(h)||wn(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),Ae(i)||r&&wn(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,u=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),Ae(i)||r&&wn(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Ae(n))break}else{if(e.position===e.lineStart&&us(e)||r&&wn(h))break;if(pt(h))if(c=e.line,l=e.lineStart,p=e.lineIndent,Y(e,!1,-1),e.lineIndent>=t){u=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=c,e.lineStart=l,e.lineIndent=p;break}}u&&(Yt(e,o,a,!1),Dl(e,e.line-c),o=a=e.position,u=!1),Rr(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return Yt(e,o,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}s(cI,"readPlainScalar");function lI(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(Yt(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)?(Yt(e,n,i,!0),Dl(e,Y(e,!1,t)),n=i=e.position):e.position===e.lineStart&&us(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")}s(lI,"readSingleQuotedScalar");function fI(e,t){var r,n,i,o,a,u;if(u=e.input.charCodeAt(e.position),u!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(u=e.input.charCodeAt(e.position))!==0;){if(u===34)return Yt(e,r,e.position,!0),e.position++,!0;if(u===92){if(Yt(e,r,e.position,!0),u=e.input.charCodeAt(++e.position),pt(u))Y(e,!1,t);else if(u<256&&Sy[u])e.result+=by[u],e.position++;else if((a=oI(u))>0){for(i=a,o=0;i>0;i--)u=e.input.charCodeAt(++e.position),(a=iI(u))>=0?o=(o<<4)+a:x(e,"expected hexadecimal character");e.result+=aI(o),e.position++}else x(e,"unknown escape sequence");r=n=e.position}else pt(u)?(Yt(e,r,n,!0),Dl(e,Y(e,!1,t)),r=n=e.position):e.position===e.lineStart&&us(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")}s(fI,"readDoubleQuotedScalar");function pI(e,t){var r=!0,n,i=e.tag,o,a=e.anchor,u,c,l,p,f,d={},h,g,y,v;if(v=e.input.charCodeAt(e.position),v===91)c=93,f=!1,o=[];else if(v===123)c=125,f=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),v=e.input.charCodeAt(++e.position);v!==0;){if(Y(e,!0,t),v=e.input.charCodeAt(e.position),v===c)return e.position++,e.tag=i,e.anchor=a,e.kind=f?"mapping":"sequence",e.result=o,!0;r||x(e,"missed comma between flow collection entries"),g=h=y=null,l=p=!1,v===63&&(u=e.input.charCodeAt(e.position+1),Ae(u)&&(l=p=!0,e.position++,Y(e,!0,t))),n=e.line,In(e,t,os,!1,!0),g=e.tag,h=e.result,Y(e,!0,t),v=e.input.charCodeAt(e.position),(p||e.line===n)&&v===58&&(l=!0,v=e.input.charCodeAt(++e.position),Y(e,!0,t),In(e,t,os,!1,!0),y=e.result),f?An(e,o,d,g,h,y):l?o.push(An(e,null,d,g,h,y)):o.push(h),Y(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")}s(pI,"readFlowCollection");function dI(e,t){var r,n,i=jl,o=!1,a=!1,u=t,c=0,l=!1,p,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)jl===i?i=f===43?uy:eI:x(e,"repeat of a chomping mode identifier");else if((p=sI(f))>=0)p===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"):(u=t+p-1,a=!0);else break;if(Rr(f)){do f=e.input.charCodeAt(++e.position);while(Rr(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!pt(f)&&f!==0)}for(;f!==0;){for(Ml(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<u)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>u&&(u=e.lineIndent),pt(f)){c++;continue}if(e.lineIndent<u){i===uy?e.result+=kt.repeat(`
22
+ `,o?1+c:c):i===jl&&o&&(e.result+=`
23
23
  `);break}for(n?Rr(f)?(l=!0,e.result+=kt.repeat(`
24
24
  `,o?1+c:c)):l?(l=!1,e.result+=kt.repeat(`
25
25
  `,c+1)):c===0?o&&(e.result+=" "):e.result+=kt.repeat(`
26
26
  `,c):e.result+=kt.repeat(`
27
- `,o?1+c:c),o=!0,a=!0,c=0,r=e.position;!pt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Wt(e,r,e.position,!1)}return!0}s(pI,"readBlockScalar");function py(e,t){var r,n=e.tag,i=e.anchor,o=[],a,u=!1,c;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(a=e.input.charCodeAt(e.position+1),!Ae(a)));){if(u=!0,e.position++,Y(e,!0,-1)&&e.lineIndent<=t){o.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,In(e,t,gy,!1,!0),o.push(e.result),Y(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)x(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return u?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}s(py,"readBlockSequence");function dI(e,t,r){var n,i,o,a,u=e.tag,c=e.anchor,l={},p={},f=null,d=null,h=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),o=e.line,a=e.position,(v===63||v===58)&&Ae(n))v===63?(g&&(An(e,l,p,f,d,null),f=d=h=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(In(e,r,my,!1,!0))if(e.line===o){for(v=e.input.charCodeAt(e.position);Rr(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),Ae(v)||x(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(An(e,l,p,f,d,null),f=d=h=null),y=!0,g=!1,i=!1,f=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=u,e.anchor=c,!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=u,e.anchor=c,!0;else break;if((e.line===o||e.lineIndent>t)&&(In(e,t,ss,!0,i)&&(g?d=e.result:h=e.result),g||(An(e,l,p,f,d,h,o,a),f=d=h=null),Y(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&&An(e,l,p,f,d,null),y&&(e.tag=u,e.anchor=c,e.kind="mapping",e.result=l),y}s(dI,"readBlockMapping");function hI(e){var t,r=!1,n=!1,i,o,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?(o=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&&!Ae(a);)a===33&&(n?x(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),yy.test(i)||x(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),rI.test(o)&&x(e,"tag suffix cannot contain flow indicator characters")}return o&&!vy.test(o)&&x(e,"tag name cannot contain such characters: "+o),r?e.tag=o:Yt.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:x(e,'undeclared tag handle "'+i+'"'),!0}s(hI,"readTagProperty");function mI(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&&!Ae(r)&&!wn(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}s(mI,"readAnchorProperty");function gI(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&&!Ae(n)&&!wn(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),Yt.call(e.anchorMap,r)||x(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Y(e,!0,-1),!0}s(gI,"readAlias");function In(e,t,r,n,i){var o,a,u,c=1,l=!1,p=!1,f,d,h,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=u=ss===r||gy===r,n&&Y(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;hI(e)||mI(e);)Y(e,!0,-1)?(l=!0,u=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):u=!1;if(u&&(u=l||i),(c===1||ss===r)&&(os===r||my===r?g=t:g=t+1,y=e.position-e.lineStart,c===1?u&&(py(e,y)||dI(e,y,g))||fI(e,g)?p=!0:(a&&pI(e,g)||cI(e,g)||lI(e,g)?p=!0:gI(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&x(e,"alias node should not have any properties")):uI(e,g,os===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(p=u&&py(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+'"'),f=0,d=e.implicitTypes.length;f<d;f+=1)if(h=e.implicitTypes[f],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else Yt.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&x(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.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||p}s(In,"composeNode");function yI(e){var t=e.position,r,n,i,o=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(Y(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(o=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Ae(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(;Rr(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&&!Ae(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&jl(e),Yt.call(ly,n)?ly[n](e,n,i):as(e,'unknown document directive "'+n+'"')}if(Y(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,Y(e,!0,-1)):o&&x(e,"directives end mark is expected"),In(e,e.lineIndent-1,ss,!1,!0),Y(e,!0,-1),e.checkLineBreaks&&tI.test(e.input.slice(t,e.position))&&as(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&us(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Y(e,!0,-1));return}if(e.position<e.length-1)x(e,"end of the stream or a document separator is expected");else return}s(yI,"readDocument");function Py(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 aI(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;)yI(r);return r.documents}s(Py,"loadDocuments");function $y(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Py(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}s($y,"loadAll");function Oy(e,t){var r=Py(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new dy("expected a single document in the stream, but found more")}}s(Oy,"load");function vI(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),$y(e,t,kt.extend({schema:hy},r))}s(vI,"safeLoadAll");function _I(e,t){return Oy(e,kt.extend({schema:hy},t))}s(_I,"safeLoad");Ni.exports.loadAll=$y;Ni.exports.load=Oy;Ni.exports.safeLoadAll=vI;Ni.exports.safeLoad=_I});var Ky=m((TM,Vl)=>{"use strict";var qi=wr(),ji=On(),SI=Ti(),bI=xn(),Ny=Object.prototype.toString,Cy=Object.prototype.hasOwnProperty,PI=9,Ci=10,$I=13,OI=32,EI=33,xI=34,qy=35,wI=37,AI=38,II=39,kI=42,jy=44,RI=45,My=58,TI=61,NI=62,CI=63,qI=64,Dy=91,Ly=93,jI=96,Fy=123,MI=124,Vy=125,de={};de[0]="\\0";de[7]="\\a";de[8]="\\b";de[9]="\\t";de[10]="\\n";de[11]="\\v";de[12]="\\f";de[13]="\\r";de[27]="\\e";de[34]='\\"';de[92]="\\\\";de[133]="\\N";de[160]="\\_";de[8232]="\\L";de[8233]="\\P";var DI=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function LI(e,t){var r,n,i,o,a,u,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;i+=1)a=n[i],u=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),c=e.compiledTypeMap.fallback[a],c&&Cy.call(c.styleAliases,u)&&(u=c.styleAliases[u]),r[a]=u;return r}s(LI,"compileStyleMap");function xy(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 ji("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+qi.repeat("0",n-t.length)+t}s(xy,"encodeHex");function FI(e){this.schema=e.schema||SI,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=qi.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=LI(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}s(FI,"State");function wy(e,t){for(var r=qi.repeat(" ",t),n=0,i=-1,o="",a,u=e.length;n<u;)i=e.indexOf(`
27
+ `,o?1+c:c),o=!0,a=!0,c=0,r=e.position;!pt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Yt(e,r,e.position,!1)}return!0}s(dI,"readBlockScalar");function dy(e,t){var r,n=e.tag,i=e.anchor,o=[],a,u=!1,c;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(a=e.input.charCodeAt(e.position+1),!Ae(a)));){if(u=!0,e.position++,Y(e,!0,-1)&&e.lineIndent<=t){o.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,In(e,t,yy,!1,!0),o.push(e.result),Y(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)x(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return u?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}s(dy,"readBlockSequence");function hI(e,t,r){var n,i,o,a,u=e.tag,c=e.anchor,l={},p={},f=null,d=null,h=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),o=e.line,a=e.position,(v===63||v===58)&&Ae(n))v===63?(g&&(An(e,l,p,f,d,null),f=d=h=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(In(e,r,gy,!1,!0))if(e.line===o){for(v=e.input.charCodeAt(e.position);Rr(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),Ae(v)||x(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(An(e,l,p,f,d,null),f=d=h=null),y=!0,g=!1,i=!1,f=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=u,e.anchor=c,!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=u,e.anchor=c,!0;else break;if((e.line===o||e.lineIndent>t)&&(In(e,t,ss,!0,i)&&(g?d=e.result:h=e.result),g||(An(e,l,p,f,d,h,o,a),f=d=h=null),Y(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&&An(e,l,p,f,d,null),y&&(e.tag=u,e.anchor=c,e.kind="mapping",e.result=l),y}s(hI,"readBlockMapping");function mI(e){var t,r=!1,n=!1,i,o,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?(o=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&&!Ae(a);)a===33&&(n?x(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),vy.test(i)||x(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),nI.test(o)&&x(e,"tag suffix cannot contain flow indicator characters")}return o&&!_y.test(o)&&x(e,"tag name cannot contain such characters: "+o),r?e.tag=o:Qt.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:x(e,'undeclared tag handle "'+i+'"'),!0}s(mI,"readTagProperty");function gI(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&&!Ae(r)&&!wn(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}s(gI,"readAnchorProperty");function yI(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&&!Ae(n)&&!wn(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),Qt.call(e.anchorMap,r)||x(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Y(e,!0,-1),!0}s(yI,"readAlias");function In(e,t,r,n,i){var o,a,u,c=1,l=!1,p=!1,f,d,h,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=u=ss===r||yy===r,n&&Y(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;mI(e)||gI(e);)Y(e,!0,-1)?(l=!0,u=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):u=!1;if(u&&(u=l||i),(c===1||ss===r)&&(os===r||gy===r?g=t:g=t+1,y=e.position-e.lineStart,c===1?u&&(dy(e,y)||hI(e,y,g))||pI(e,g)?p=!0:(a&&dI(e,g)||lI(e,g)||fI(e,g)?p=!0:yI(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&x(e,"alias node should not have any properties")):cI(e,g,os===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(p=u&&dy(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+'"'),f=0,d=e.implicitTypes.length;f<d;f+=1)if(h=e.implicitTypes[f],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else Qt.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&x(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.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||p}s(In,"composeNode");function vI(e){var t=e.position,r,n,i,o=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(Y(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(o=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Ae(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(;Rr(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&&!Ae(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Ml(e),Qt.call(fy,n)?fy[n](e,n,i):as(e,'unknown document directive "'+n+'"')}if(Y(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,Y(e,!0,-1)):o&&x(e,"directives end mark is expected"),In(e,e.lineIndent-1,ss,!1,!0),Y(e,!0,-1),e.checkLineBreaks&&rI.test(e.input.slice(t,e.position))&&as(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&us(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Y(e,!0,-1));return}if(e.position<e.length-1)x(e,"end of the stream or a document separator is expected");else return}s(vI,"readDocument");function $y(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 uI(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;)vI(r);return r.documents}s($y,"loadDocuments");function Oy(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=$y(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}s(Oy,"loadAll");function Ey(e,t){var r=$y(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new hy("expected a single document in the stream, but found more")}}s(Ey,"load");function _I(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),Oy(e,t,kt.extend({schema:my},r))}s(_I,"safeLoadAll");function SI(e,t){return Ey(e,kt.extend({schema:my},t))}s(SI,"safeLoad");Ci.exports.loadAll=Oy;Ci.exports.load=Ey;Ci.exports.safeLoadAll=_I;Ci.exports.safeLoad=SI});var Wy=m((CM,Bl)=>{"use strict";var qi=wr(),ji=On(),bI=Ti(),PI=xn(),Ny=Object.prototype.toString,qy=Object.prototype.hasOwnProperty,$I=9,Ni=10,OI=13,EI=32,xI=33,wI=34,jy=35,AI=37,II=38,kI=39,RI=42,My=44,TI=45,Dy=58,CI=61,NI=62,qI=63,jI=64,Ly=91,Fy=93,MI=96,Vy=123,DI=124,By=125,de={};de[0]="\\0";de[7]="\\a";de[8]="\\b";de[9]="\\t";de[10]="\\n";de[11]="\\v";de[12]="\\f";de[13]="\\r";de[27]="\\e";de[34]='\\"';de[92]="\\\\";de[133]="\\N";de[160]="\\_";de[8232]="\\L";de[8233]="\\P";var LI=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function FI(e,t){var r,n,i,o,a,u,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;i+=1)a=n[i],u=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),c=e.compiledTypeMap.fallback[a],c&&qy.call(c.styleAliases,u)&&(u=c.styleAliases[u]),r[a]=u;return r}s(FI,"compileStyleMap");function wy(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 ji("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+qi.repeat("0",n-t.length)+t}s(wy,"encodeHex");function VI(e){this.schema=e.schema||bI,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=qi.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=FI(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}s(VI,"State");function Ay(e,t){for(var r=qi.repeat(" ",t),n=0,i=-1,o="",a,u=e.length;n<u;)i=e.indexOf(`
29
29
  `,n),i===-1?(a=e.slice(n),n=u):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
30
- `&&(o+=r),o+=a;return o}s(wy,"indentString");function Dl(e,t){return`
31
- `+qi.repeat(" ",e.indent*t)}s(Dl,"generateNextLine");function VI(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}s(VI,"testImplicitResolving");function Fl(e){return e===OI||e===PI}s(Fl,"isWhitespace");function kn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}s(kn,"isPrintable");function BI(e){return kn(e)&&!Fl(e)&&e!==65279&&e!==$I&&e!==Ci}s(BI,"isNsChar");function Ay(e,t){return kn(e)&&e!==65279&&e!==jy&&e!==Dy&&e!==Ly&&e!==Fy&&e!==Vy&&e!==My&&(e!==qy||t&&BI(t))}s(Ay,"isPlainSafe");function HI(e){return kn(e)&&e!==65279&&!Fl(e)&&e!==RI&&e!==CI&&e!==My&&e!==jy&&e!==Dy&&e!==Ly&&e!==Fy&&e!==Vy&&e!==qy&&e!==AI&&e!==kI&&e!==EI&&e!==MI&&e!==TI&&e!==NI&&e!==II&&e!==xI&&e!==wI&&e!==qI&&e!==jI}s(HI,"isPlainSafeFirst");function By(e){var t=/^\n* /;return t.test(e)}s(By,"needIndentIndicator");var Hy=1,Uy=2,zy=3,Gy=4,cs=5;function UI(e,t,r,n,i){var o,a,u,c=!1,l=!1,p=n!==-1,f=-1,d=HI(e.charCodeAt(0))&&!Fl(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),!kn(a))return cs;u=o>0?e.charCodeAt(o-1):null,d=d&&Ay(a,u)}else{for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),a===Ci)c=!0,p&&(l=l||o-f-1>n&&e[f+1]!==" ",f=o);else if(!kn(a))return cs;u=o>0?e.charCodeAt(o-1):null,d=d&&Ay(a,u)}l=l||p&&o-f-1>n&&e[f+1]!==" "}return!c&&!l?d&&!i(e)?Hy:Uy:r>9&&By(e)?cs:l?Gy:zy}s(UI,"chooseScalarStyle");function zI(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&DI.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return VI(e,c)}switch(s(u,"testAmbiguity"),UI(t,a,e.indent,o,u)){case Hy:return t;case Uy:return"'"+t.replace(/'/g,"''")+"'";case zy:return"|"+Iy(t,e.indent)+ky(wy(t,i));case Gy:return">"+Iy(t,e.indent)+ky(wy(GI(t,o),i));case cs:return'"'+ZI(t,o)+'"';default:throw new ji("impossible error: invalid scalar style")}}()}s(zI,"writeScalar");function Iy(e,t){var r=By(e)?String(t):"",n=e[e.length-1]===`
30
+ `&&(o+=r),o+=a;return o}s(Ay,"indentString");function Ll(e,t){return`
31
+ `+qi.repeat(" ",e.indent*t)}s(Ll,"generateNextLine");function BI(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}s(BI,"testImplicitResolving");function Vl(e){return e===EI||e===$I}s(Vl,"isWhitespace");function kn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}s(kn,"isPrintable");function HI(e){return kn(e)&&!Vl(e)&&e!==65279&&e!==OI&&e!==Ni}s(HI,"isNsChar");function Iy(e,t){return kn(e)&&e!==65279&&e!==My&&e!==Ly&&e!==Fy&&e!==Vy&&e!==By&&e!==Dy&&(e!==jy||t&&HI(t))}s(Iy,"isPlainSafe");function UI(e){return kn(e)&&e!==65279&&!Vl(e)&&e!==TI&&e!==qI&&e!==Dy&&e!==My&&e!==Ly&&e!==Fy&&e!==Vy&&e!==By&&e!==jy&&e!==II&&e!==RI&&e!==xI&&e!==DI&&e!==CI&&e!==NI&&e!==kI&&e!==wI&&e!==AI&&e!==jI&&e!==MI}s(UI,"isPlainSafeFirst");function Hy(e){var t=/^\n* /;return t.test(e)}s(Hy,"needIndentIndicator");var Uy=1,zy=2,Gy=3,Zy=4,cs=5;function zI(e,t,r,n,i){var o,a,u,c=!1,l=!1,p=n!==-1,f=-1,d=UI(e.charCodeAt(0))&&!Vl(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),!kn(a))return cs;u=o>0?e.charCodeAt(o-1):null,d=d&&Iy(a,u)}else{for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),a===Ni)c=!0,p&&(l=l||o-f-1>n&&e[f+1]!==" ",f=o);else if(!kn(a))return cs;u=o>0?e.charCodeAt(o-1):null,d=d&&Iy(a,u)}l=l||p&&o-f-1>n&&e[f+1]!==" "}return!c&&!l?d&&!i(e)?Uy:zy:r>9&&Hy(e)?cs:l?Zy:Gy}s(zI,"chooseScalarStyle");function GI(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&LI.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return BI(e,c)}switch(s(u,"testAmbiguity"),zI(t,a,e.indent,o,u)){case Uy:return t;case zy:return"'"+t.replace(/'/g,"''")+"'";case Gy:return"|"+ky(t,e.indent)+Ry(Ay(t,i));case Zy:return">"+ky(t,e.indent)+Ry(Ay(ZI(t,o),i));case cs:return'"'+KI(t,o)+'"';default:throw new ji("impossible error: invalid scalar style")}}()}s(GI,"writeScalar");function ky(e,t){var r=Hy(e)?String(t):"",n=e[e.length-1]===`
32
32
  `,i=n&&(e[e.length-2]===`
33
33
  `||e===`
34
34
  `),o=i?"+":n?"":"-";return r+o+`
35
- `}s(Iy,"blockHeader");function ky(e){return e[e.length-1]===`
36
- `?e.slice(0,-1):e}s(ky,"dropEndingNewline");function GI(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,Ry(e.slice(0,l),t)}(),i=e[0]===`
35
+ `}s(ky,"blockHeader");function Ry(e){return e[e.length-1]===`
36
+ `?e.slice(0,-1):e}s(Ry,"dropEndingNewline");function ZI(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,Ty(e.slice(0,l),t)}(),i=e[0]===`
38
38
  `||e[0]===" ",o,a;a=r.exec(e);){var u=a[1],c=a[2];o=c[0]===" ",n+=u+(!i&&!o&&c!==""?`
39
- `:"")+Ry(c,t),i=o}return n}s(GI,"foldString");function Ry(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,o,a=0,u=0,c="";n=r.exec(e);)u=n.index,u-i>t&&(o=a>i?a:u,c+=`
39
+ `:"")+Ty(c,t),i=o}return n}s(ZI,"foldString");function Ty(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,o,a=0,u=0,c="";n=r.exec(e);)u=n.index,u-i>t&&(o=a>i?a:u,c+=`
40
40
  `+e.slice(i,o),i=o+1),a=u;return c+=`
41
41
  `,e.length-i>t&&a>i?c+=e.slice(i,a)+`
42
- `+e.slice(a+1):c+=e.slice(i),c.slice(1)}s(Ry,"foldLine");function ZI(e){for(var t="",r,n,i,o=0;o<e.length;o++){if(r=e.charCodeAt(o),r>=55296&&r<=56319&&(n=e.charCodeAt(o+1),n>=56320&&n<=57343)){t+=xy((r-55296)*1024+n-56320+65536),o++;continue}i=de[r],t+=!i&&kn(r)?e[o]:i||xy(r)}return t}s(ZI,"escapeString");function KI(e,t,r){var n="",i=e.tag,o,a;for(o=0,a=r.length;o<a;o+=1)Tr(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}s(KI,"writeFlowSequence");function WI(e,t,r,n){var i="",o=e.tag,a,u;for(a=0,u=r.length;a<u;a+=1)Tr(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Dl(e,t)),e.dump&&Ci===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}s(WI,"writeBlockSequence");function YI(e,t,r){var n="",i=e.tag,o=Object.keys(r),a,u,c,l,p;for(a=0,u=o.length;a<u;a+=1)p="",a!==0&&(p+=", "),e.condenseFlow&&(p+='"'),c=o[a],l=r[c],Tr(e,t,c,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Tr(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}s(YI,"writeFlowMapping");function QI(e,t,r,n){var i="",o=e.tag,a=Object.keys(r),u,c,l,p,f,d;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new ji("sortKeys must be a boolean or a function");for(u=0,c=a.length;u<c;u+=1)d="",(!n||u!==0)&&(d+=Dl(e,t)),l=a[u],p=r[l],Tr(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Ci===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=Dl(e,t)),Tr(e,t+1,p,!0,f)&&(e.dump&&Ci===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=o,e.dump=i||"{}"}s(QI,"writeBlockMapping");function Ty(e,t,r){var n,i,o,a,u,c;for(i=r?e.explicitTypes:e.implicitTypes,o=0,a=i.length;o<a;o+=1)if(u=i[o],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t=="object"&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(e.tag=r?u.tag:"?",u.represent){if(c=e.styleMap[u.tag]||u.defaultStyle,Ny.call(u.represent)==="[object Function]")n=u.represent(t,c);else if(Cy.call(u.represent,c))n=u.represent[c](t,c);else throw new ji("!<"+u.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}s(Ty,"detectType");function Tr(e,t,r,n,i,o){e.tag=null,e.dump=r,Ty(e,r,!1)||Ty(e,r,!0);var a=Ny.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var u=a==="[object Object]"||a==="[object Array]",c,l;if(u&&(c=e.duplicates.indexOf(r),l=c!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(u&&l&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(QI(e,t,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(YI(e,t,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump));else if(a==="[object Array]"){var p=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(WI(e,p,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(KI(e,p,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&zI(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new ji("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}s(Tr,"writeNode");function JI(e,t){var r=[],n=[],i,o;for(Ll(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}s(JI,"getDuplicateReferences");function Ll(e,t,r){var n,i,o;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,o=e.length;i<o;i+=1)Ll(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)Ll(e[n[i]],t,r)}s(Ll,"inspectNode");function Zy(e,t){t=t||{};var r=new FI(t);return r.noRefs||JI(e,r),Tr(r,0,e,!0,!0)?r.dump+`
43
- `:""}s(Zy,"dump");function XI(e,t){return Zy(e,qi.extend({schema:bI},t))}s(XI,"safeDump");Vl.exports.dump=Zy;Vl.exports.safeDump=XI});var Yy=m((CM,G)=>{"use strict";var ls=Ey(),Wy=Ky();function fs(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}s(fs,"deprecated");G.exports.Type=X();G.exports.Schema=Ar();G.exports.FAILSAFE_SCHEMA=ns();G.exports.JSON_SCHEMA=Tl();G.exports.CORE_SCHEMA=Nl();G.exports.DEFAULT_SAFE_SCHEMA=xn();G.exports.DEFAULT_FULL_SCHEMA=Ti();G.exports.load=ls.load;G.exports.loadAll=ls.loadAll;G.exports.safeLoad=ls.safeLoad;G.exports.safeLoadAll=ls.safeLoadAll;G.exports.dump=Wy.dump;G.exports.safeDump=Wy.safeDump;G.exports.YAMLException=On();G.exports.MINIMAL_SCHEMA=ns();G.exports.SAFE_SCHEMA=xn();G.exports.DEFAULT_SCHEMA=Ti();G.exports.scan=fs("scan");G.exports.parse=fs("parse");G.exports.compose=fs("compose");G.exports.addConstructor=fs("addConstructor")});var Jy=m((jM,Qy)=>{"use strict";var ek=Yy();Qy.exports=ek});var e0=m((MM,Xy)=>{"use strict";var{ParserError:tk}=Je(),rk=Jy();Xy.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 rk.safeLoad(t)}catch(r){throw new tk(r.message,e.url)}else return t}}});var r0=m((DM,t0)=>{"use strict";var{ParserError:nk}=Je(),ik=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;t0.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&ik.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 nk("data is not text",e.url)}}});var i0=m((LM,n0)=>{"use strict";var ok=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;n0.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&ok.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var a0=m((FM,s0)=>{"use strict";var sk=require("fs"),{ono:Bl}=Ge(),o0=Re(),{ResolverError:Hl}=Je();s0.exports={order:100,canRead(e){return o0.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=o0.toFileSystemPath(e.url)}catch(i){r(new Hl(Bl.uri(i,`Malformed URI: ${e.url}`),e.url))}try{sk.readFile(n,(i,o)=>{i?r(new Hl(Bl(i,`Error opening file "${n}"`),n)):t(o)})}catch(i){r(new Hl(Bl(i,`Error opening file "${n}"`),n))}})}}});var f0=m((VM,l0)=>{"use strict";var ak=require("http"),uk=require("https"),{ono:ps}=Ge(),Mi=Re(),{ResolverError:u0}=Je();l0.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Mi.isHttp(e.url)},read(e){let t=Mi.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Mi.parse(location.href).protocol),c0(t,this)}};function c0(e,t,r){return new Promise((n,i)=>{e=Mi.parse(e),r=r||[],r.push(e.href),ck(e,t).then(o=>{if(o.statusCode>=400)throw ps({status:o.statusCode},`HTTP ERROR ${o.statusCode}`);if(o.statusCode>=300)if(r.length>t.redirects)i(new u0(ps({status:o.statusCode},`Error downloading ${r[0]}.
42
+ `+e.slice(a+1):c+=e.slice(i),c.slice(1)}s(Ty,"foldLine");function KI(e){for(var t="",r,n,i,o=0;o<e.length;o++){if(r=e.charCodeAt(o),r>=55296&&r<=56319&&(n=e.charCodeAt(o+1),n>=56320&&n<=57343)){t+=wy((r-55296)*1024+n-56320+65536),o++;continue}i=de[r],t+=!i&&kn(r)?e[o]:i||wy(r)}return t}s(KI,"escapeString");function WI(e,t,r){var n="",i=e.tag,o,a;for(o=0,a=r.length;o<a;o+=1)Tr(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}s(WI,"writeFlowSequence");function YI(e,t,r,n){var i="",o=e.tag,a,u;for(a=0,u=r.length;a<u;a+=1)Tr(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Ll(e,t)),e.dump&&Ni===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}s(YI,"writeBlockSequence");function QI(e,t,r){var n="",i=e.tag,o=Object.keys(r),a,u,c,l,p;for(a=0,u=o.length;a<u;a+=1)p="",a!==0&&(p+=", "),e.condenseFlow&&(p+='"'),c=o[a],l=r[c],Tr(e,t,c,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Tr(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}s(QI,"writeFlowMapping");function JI(e,t,r,n){var i="",o=e.tag,a=Object.keys(r),u,c,l,p,f,d;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new ji("sortKeys must be a boolean or a function");for(u=0,c=a.length;u<c;u+=1)d="",(!n||u!==0)&&(d+=Ll(e,t)),l=a[u],p=r[l],Tr(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Ni===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=Ll(e,t)),Tr(e,t+1,p,!0,f)&&(e.dump&&Ni===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=o,e.dump=i||"{}"}s(JI,"writeBlockMapping");function Cy(e,t,r){var n,i,o,a,u,c;for(i=r?e.explicitTypes:e.implicitTypes,o=0,a=i.length;o<a;o+=1)if(u=i[o],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t=="object"&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(e.tag=r?u.tag:"?",u.represent){if(c=e.styleMap[u.tag]||u.defaultStyle,Ny.call(u.represent)==="[object Function]")n=u.represent(t,c);else if(qy.call(u.represent,c))n=u.represent[c](t,c);else throw new ji("!<"+u.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}s(Cy,"detectType");function Tr(e,t,r,n,i,o){e.tag=null,e.dump=r,Cy(e,r,!1)||Cy(e,r,!0);var a=Ny.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var u=a==="[object Object]"||a==="[object Array]",c,l;if(u&&(c=e.duplicates.indexOf(r),l=c!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(u&&l&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(JI(e,t,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(QI(e,t,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump));else if(a==="[object Array]"){var p=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(YI(e,p,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(WI(e,p,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&GI(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new ji("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}s(Tr,"writeNode");function XI(e,t){var r=[],n=[],i,o;for(Fl(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}s(XI,"getDuplicateReferences");function Fl(e,t,r){var n,i,o;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,o=e.length;i<o;i+=1)Fl(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)Fl(e[n[i]],t,r)}s(Fl,"inspectNode");function Ky(e,t){t=t||{};var r=new VI(t);return r.noRefs||XI(e,r),Tr(r,0,e,!0,!0)?r.dump+`
43
+ `:""}s(Ky,"dump");function ek(e,t){return Ky(e,qi.extend({schema:PI},t))}s(ek,"safeDump");Bl.exports.dump=Ky;Bl.exports.safeDump=ek});var Qy=m((qM,G)=>{"use strict";var ls=xy(),Yy=Wy();function fs(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}s(fs,"deprecated");G.exports.Type=X();G.exports.Schema=Ar();G.exports.FAILSAFE_SCHEMA=ns();G.exports.JSON_SCHEMA=Cl();G.exports.CORE_SCHEMA=Nl();G.exports.DEFAULT_SAFE_SCHEMA=xn();G.exports.DEFAULT_FULL_SCHEMA=Ti();G.exports.load=ls.load;G.exports.loadAll=ls.loadAll;G.exports.safeLoad=ls.safeLoad;G.exports.safeLoadAll=ls.safeLoadAll;G.exports.dump=Yy.dump;G.exports.safeDump=Yy.safeDump;G.exports.YAMLException=On();G.exports.MINIMAL_SCHEMA=ns();G.exports.SAFE_SCHEMA=xn();G.exports.DEFAULT_SCHEMA=Ti();G.exports.scan=fs("scan");G.exports.parse=fs("parse");G.exports.compose=fs("compose");G.exports.addConstructor=fs("addConstructor")});var Xy=m((MM,Jy)=>{"use strict";var tk=Qy();Jy.exports=tk});var t0=m((DM,e0)=>{"use strict";var{ParserError:rk}=Je(),nk=Xy();e0.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 nk.safeLoad(t)}catch(r){throw new rk(r.message,e.url)}else return t}}});var n0=m((LM,r0)=>{"use strict";var{ParserError:ik}=Je(),ok=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;r0.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&ok.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 ik("data is not text",e.url)}}});var o0=m((FM,i0)=>{"use strict";var sk=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;i0.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&sk.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var u0=m((VM,a0)=>{"use strict";var ak=require("fs"),{ono:Hl}=Ge(),s0=Re(),{ResolverError:Ul}=Je();a0.exports={order:100,canRead(e){return s0.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=s0.toFileSystemPath(e.url)}catch(i){r(new Ul(Hl.uri(i,`Malformed URI: ${e.url}`),e.url))}try{ak.readFile(n,(i,o)=>{i?r(new Ul(Hl(i,`Error opening file "${n}"`),n)):t(o)})}catch(i){r(new Ul(Hl(i,`Error opening file "${n}"`),n))}})}}});var p0=m((BM,f0)=>{"use strict";var uk=require("http"),ck=require("https"),{ono:ps}=Ge(),Mi=Re(),{ResolverError:c0}=Je();f0.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Mi.isHttp(e.url)},read(e){let t=Mi.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Mi.parse(location.href).protocol),l0(t,this)}};function l0(e,t,r){return new Promise((n,i)=>{e=Mi.parse(e),r=r||[],r.push(e.href),lk(e,t).then(o=>{if(o.statusCode>=400)throw ps({status:o.statusCode},`HTTP ERROR ${o.statusCode}`);if(o.statusCode>=300)if(r.length>t.redirects)i(new c0(ps({status:o.statusCode},`Error downloading ${r[0]}.
44
44
  Too many redirects:
45
45
  ${r.join(`
46
- `)}`)));else if(o.headers.location){let a=Mi.resolve(e,o.headers.location);c0(a,t,r).then(n,i)}else throw ps({status:o.statusCode},`HTTP ${o.statusCode} redirect with no location header`);else n(o.body||Buffer.alloc(0))}).catch(o=>{i(new u0(ps(o,`Error downloading ${e.href}`),e.href))})})}s(c0,"download");function ck(e,t){return new Promise((r,n)=>{let o=(e.protocol==="https:"?uk:ak).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof o.setTimeout=="function"&&o.setTimeout(t.timeout),o.on("timeout",()=>{o.abort()}),o.on("error",n),o.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",u=>{a.body=Buffer.concat([a.body,Buffer.from(u)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}s(ck,"get")});var Gl=m((HM,d0)=>{"use strict";var lk=ug(),fk=e0(),pk=r0(),dk=i0(),hk=a0(),mk=f0();d0.exports=zl;function zl(e){Ul(this,zl.defaults),Ul(this,e)}s(zl,"$RefParserOptions");zl.defaults={parse:{json:lk,yaml:fk,text:pk,binary:dk},resolve:{file:hk,http:mk,external:!0},continueOnError:!1,dereference:{circular:!0}};function Ul(e,t){if(p0(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i],a=e[i];p0(o)?e[i]=Ul(a||{},o):o!==void 0&&(e[i]=o)}}return e}s(Ul,"merge");function p0(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}s(p0,"isMergeable")});var Zl=m((zM,m0)=>{"use strict";var h0=Gl();m0.exports=gk;function gk(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 h0||(n=new h0(n)),{path:t,schema:r,options:n,callback:i}}s(gk,"normalizeArgs")});var y0=m((ZM,g0)=>{"use strict";var Kl=Gl(),yk=xl(),vk=Il(),_k=require("util");g0.exports=ds;function ds(e){Kl.call(this,ds.defaults),Kl.apply(this,arguments)}s(ds,"ParserOptions");ds.defaults={validate:{schema:yk,spec:vk}};_k.inherits(ds,Kl)});var _0=m((WM,v0)=>{"use strict";function Sk(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:s(function(t){setTimeout(t,0)},"next")}s(Sk,"makeNext");v0.exports=Sk()});var Wl=m((QM,b0)=>{"use strict";var S0=_0();b0.exports=s(function(t,r){if(t){r.then(function(n){S0(function(){t(null,n)})},function(n){S0(function(){t(n)})});return}else return r},"maybe")});var Di=m((XM,O0)=>{"use strict";O0.exports=Qt;var Yl=Rn(),Ql=Re(),{JSONParserError:bk,InvalidPointerError:Pk,MissingPointerError:$k,isHandledError:Ok}=Je(),Ek=/\//g,xk=/~/g,wk=/~1/g,Ak=/~0/g;function Qt(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}s(Qt,"Pointer");Qt.prototype.resolve=function(e,t,r){let n=Qt.parse(this.path,this.originalPath);this.value=$0(e);for(let i=0;i<n.length;i++){if(hs(this,t)&&(this.path=Qt.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let o=n[i];if(this.value[o]===void 0||this.value[o]===null)throw this.value=null,new $k(o,this.originalPath);this.value=this.value[o]}return(!this.value||this.value.$ref&&Ql.resolve(this.path,this.value.$ref)!==r)&&hs(this,t),this};Qt.prototype.set=function(e,t,r){let n=Qt.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=$0(e);for(let o=0;o<n.length-1;o++)hs(this,r),i=n[o],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=P0(this,i,{});return hs(this,r),i=n[n.length-1],P0(this,i,t),e};Qt.parse=function(e,t){let r=Ql.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(wk,"/").replace(Ak,"~"));if(r[0]!=="")throw new Pk(r,t===void 0?e:t);return r.slice(1)};Qt.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(xk,"~0").replace(Ek,"~1"))}return e};function hs(e,t){if(Yl.isAllowed$Ref(e.value,t)){let r=Ql.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,Yl.isExtended$Ref(e.value)?(e.value=Yl.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}s(hs,"resolveIf$Ref");function P0(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 bk(`Error assigning $ref pointer "${e.path}".
47
- Cannot set "${t}" of a non-object.`);return r}s(P0,"setValue");function $0(e){if(Ok(e))throw e;return e}s($0,"unwrapOrThrow")});var Rn=m((t8,w0)=>{"use strict";w0.exports=_e;var x0=Di(),{InvalidPointerError:Ik,isHandledError:kk,normalizeError:E0}=Je(),{safePointerToPath:Rk,stripHash:Tk,getHash:Nk}=Re();function _e(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}s(_e,"$Ref");_e.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(E0)):this.errors.push(E0(e))};_e.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};_e.prototype.get=function(e,t){return this.resolve(e,t).value};_e.prototype.resolve=function(e,t,r,n){let i=new x0(this,e,r);try{return i.resolve(this.value,t,n)}catch(o){if(!t||!t.continueOnError||!kk(o))throw o;return o.path===null&&(o.path=Rk(Nk(n))),o instanceof Ik&&(o.source=Tk(n)),this.addError(o),null}};_e.prototype.set=function(e,t){let r=new x0(this,e);this.value=r.set(this.value,t)};_e.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};_e.isExternal$Ref=function(e){return _e.is$Ref(e)&&e.$ref[0]!=="#"};_e.isAllowed$Ref=function(e,t){if(_e.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};_e.isExtended$Ref=function(e){return _e.is$Ref(e)&&Object.keys(e).length>1};_e.dereference=function(e,t){if(t&&typeof t=="object"&&_e.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 R0=m((n8,k0)=>{"use strict";var{ono:A0}=Ge(),Ck=Rn(),Jt=Re();k0.exports=Xe;function Xe(){this.circular=!1,this._$refs={},this._root$Ref=null}s(Xe,"$Refs");Xe.prototype.paths=function(e){return I0(this._$refs,arguments).map(r=>r.decoded)};Xe.prototype.values=function(e){let t=this._$refs;return I0(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};Xe.prototype.toJSON=Xe.prototype.values;Xe.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};Xe.prototype.get=function(e,t){return this._resolve(e,"",t).value};Xe.prototype.set=function(e,t){let r=Jt.resolve(this._root$Ref.path,e),n=Jt.stripHash(r),i=this._$refs[n];if(!i)throw A0(`Error resolving $ref pointer "${e}".
48
- "${n}" not found.`);i.set(r,t)};Xe.prototype._add=function(e){let t=Jt.stripHash(e),r=new Ck;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};Xe.prototype._resolve=function(e,t,r){let n=Jt.resolve(this._root$Ref.path,e),i=Jt.stripHash(n),o=this._$refs[i];if(!o)throw A0(`Error resolving $ref pointer "${e}".
49
- "${i}" not found.`);return o.resolve(n,r,e,t)};Xe.prototype._get$Ref=function(e){e=Jt.resolve(this._root$Ref.path,e);let t=Jt.stripHash(e);return this._$refs[t]};function I0(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"?Jt.toFileSystemPath(n,!0):n}))}s(I0,"getPaths")});var N0=m(Li=>{"use strict";Li.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Li.filter=function(e,t,r){return e.filter(n=>!!T0(n,t,r))};Li.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)};Li.run=function(e,t,r,n){let i,o,a=0;return new Promise((u,c)=>{l();function l(){if(i=e[a++],!i)return c(o);try{let h=T0(i,t,r,p,n);if(h&&typeof h.then=="function")h.then(f,d);else if(h!==void 0)f(h);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(h){d(h)}}s(l,"runNextPlugin");function p(h,g){h?d(h):f(g)}s(p,"callback");function f(h){u({plugin:i,result:h})}s(f,"onSuccess");function d(h){o={plugin:i,error:h},l()}s(d,"onError")})};function T0(e,t,r,n,i){let o=e[t];if(typeof o=="function")return o.apply(e,[r,n,i]);if(!n){if(o instanceof RegExp)return o.test(r.url);if(typeof o=="string")return o===r.extension;if(Array.isArray(o))return o.indexOf(r.extension)!==-1}return o}s(T0,"getResult")});var Xl=m((a8,M0)=>{"use strict";var{ono:Jl}=Ge(),C0=Re(),Xt=N0(),{ResolverError:q0,ParserError:j0,UnmatchedParserError:qk,UnmatchedResolverError:jk,isHandledError:Mk}=Je();M0.exports=Dk;async function Dk(e,t,r){e=C0.stripHash(e);let n=t._add(e),i={url:e,extension:C0.getExtension(e)};try{let o=await Lk(i,r,t);n.pathType=o.plugin.name,i.data=o.result;let a=await Fk(i,r,t);return n.value=a.result,a.result}catch(o){throw Mk(o)&&(n.value=o),o}}s(Dk,"parse");function Lk(e,t,r){return new Promise((n,i)=>{let o=Xt.all(t.resolve);o=Xt.filter(o,"canRead",e),Xt.sort(o),Xt.run(o,"read",e,r).then(n,a);function a(u){!u&&t.continueOnError?i(new jk(e.url)):!u||!("error"in u)?i(Jl.syntax(`Unable to resolve $ref pointer "${e.url}"`)):u.error instanceof q0?i(u.error):i(new q0(u,e.url))}s(a,"onError")})}s(Lk,"readFile");function Fk(e,t,r){return new Promise((n,i)=>{let o=Xt.all(t.parse),a=Xt.filter(o,"canParse",e),u=a.length>0?a:o;Xt.sort(u),Xt.run(u,"parse",e,r).then(c,l);function c(p){!p.plugin.allowEmpty&&Vk(p.result)?i(Jl.syntax(`Error parsing "${e.url}" as ${p.plugin.name}.
50
- Parsed value is empty`)):n(p)}s(c,"onParsed");function l(p){!p&&t.continueOnError?i(new qk(e.url)):!p||!("error"in p)?i(Jl.syntax(`Unable to parse ${e.url}`)):p.error instanceof j0?i(p.error):i(new j0(p.error.message,e.url))}s(l,"onError")})}s(Fk,"parseFile");function Vk(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}s(Vk,"isEmpty")});var V0=m((c8,F0)=>{"use strict";var D0=Rn(),Bk=Di(),Hk=Xl(),Fi=Re(),{isHandledError:Uk}=Je();F0.exports=zk;function zk(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=ef(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}s(zk,"resolveExternal");function ef(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(D0.isExternal$Ref(e))i.push(L0(e,t,r,n));else for(let o of Object.keys(e)){let a=Bk.join(t,o),u=e[o];D0.isExternal$Ref(u)?i.push(L0(u,a,r,n)):i=i.concat(ef(u,a,r,n))}return i}s(ef,"crawl");async function L0(e,t,r,n){let i=Fi.resolve(t,e.$ref),o=Fi.stripHash(i);if(e=r._$refs[o],e)return Promise.resolve(e.value);try{let a=await Hk(i,r,n),u=ef(a,o+"#",r,n);return Promise.all(u)}catch(a){if(!n.continueOnError||!Uk(a))throw a;return r._$refs[o]&&(a.source=Fi.stripHash(t),a.path=Fi.safePointerToPath(Fi.getHash(t))),[]}}s(L0,"resolve$Ref")});var U0=m((f8,H0)=>{"use strict";var ms=Rn(),Vi=Di(),tf=Re();H0.exports=Gk;function Gk(e,t){let r=[];rf(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),Zk(r)}s(Gk,"bundle");function rf(e,t,r,n,i,o,a,u){let c=t===null?e:e[t];if(c&&typeof c=="object"&&!ArrayBuffer.isView(c))if(ms.isAllowed$Ref(c))B0(e,t,r,n,i,o,a,u);else{let l=Object.keys(c).sort((p,f)=>p==="definitions"?-1:f==="definitions"?1:p.length-f.length);for(let p of l){let f=Vi.join(r,p),d=Vi.join(n,p),h=c[p];ms.isAllowed$Ref(h)?B0(c,p,r,d,i,o,a,u):rf(c,p,f,d,i,o,a,u)}}}s(rf,"crawl");function B0(e,t,r,n,i,o,a,u){let c=t===null?e:e[t],l=tf.resolve(r,c.$ref),p=a._resolve(l,n,u);if(p===null)return;let f=Vi.parse(n).length,d=tf.stripHash(p.path),h=tf.getHash(p.path),g=d!==a._root$Ref.path,y=ms.isExtended$Ref(c);i+=p.indirections;let v=Kk(o,e,t);if(v)if(f<v.depth||i<v.indirections)Wk(o,v);else return;o.push({$ref:c,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:y,external:g,indirections:i}),v||rf(p.value,null,p.path,n,i+1,o,a,u)}s(B0,"inventory$Ref");function Zk(e){e.sort((i,o)=>{if(i.file!==o.file)return i.file<o.file?-1:1;if(i.hash!==o.hash)return i.hash<o.hash?-1:1;if(i.circular!==o.circular)return i.circular?-1:1;if(i.extended!==o.extended)return i.extended?1:-1;if(i.indirections!==o.indirections)return i.indirections-o.indirections;if(i.depth!==o.depth)return i.depth-o.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),u=o.pathFromRoot.lastIndexOf("/definitions");return a!==u?u-a:i.pathFromRoot.length-o.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=Vi.join(n,Vi.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=ms.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}s(Zk,"remap");function Kk(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}s(Kk,"findInInventory");function Wk(e,t){let r=e.indexOf(t);e.splice(r,1)}s(Wk,"removeFromInventory")});var sf=m((d8,K0)=>{"use strict";var nf=Rn(),z0=Di(),{ono:Yk}=Ge(),Qk=Re();K0.exports=Jk;function Jk(e,t){let r=of(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}s(Jk,"dereference");function of(e,t,r,n,i,o){let a,u={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),nf.isAllowed$Ref(e,o))a=G0(e,t,r,n,i,o),u.circular=a.circular,u.value=a.value;else for(let c of Object.keys(e)){let l=z0.join(t,c),p=z0.join(r,c),f=e[c],d=!1;nf.isAllowed$Ref(f,o)?(a=G0(f,l,p,n,i,o),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):n.indexOf(f)===-1?(a=of(f,l,p,n,i,o),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):d=Z0(l,i,o),u.circular=u.circular||d}n.pop()}return u}s(of,"crawl");function G0(e,t,r,n,i,o){let a=Qk.resolve(t,e.$ref),u=i._resolve(a,t,o);if(u===null)return{circular:!1,value:null};let c=u.circular,l=c||n.indexOf(u.value)!==-1;l&&Z0(t,i,o);let p=nf.dereference(e,u.value);if(!l){let f=of(p,u.path,r,n,i,o);l=f.circular,p=f.value}return l&&!c&&o.dereference.circular==="ignore"&&(p=e),c&&(p.$ref=r),{circular:l,value:p}}s(G0,"dereference$Ref");function Z0(e,t,r){if(t.circular=!0,!r.dereference.circular)throw Yk.reference(`Circular $ref pointer found at ${e}`);return!0}s(Z0,"foundCircularReference")});var J0=m((m8,ht)=>{"use strict";var Q0=R0(),Xk=Xl(),gs=Zl(),eR=V0(),tR=U0(),rR=sf(),Tn=Re(),{JSONParserError:nR,InvalidPointerError:iR,MissingPointerError:oR,ResolverError:sR,ParserError:aR,UnmatchedParserError:uR,UnmatchedResolverError:cR,isHandledError:lR,JSONParserErrorGroup:W0}=Je(),et=Wl(),{ono:Y0}=Ge();ht.exports=dt;ht.exports.default=dt;ht.exports.JSONParserError=nR;ht.exports.InvalidPointerError=iR;ht.exports.MissingPointerError=oR;ht.exports.ResolverError=sR;ht.exports.ParserError=aR;ht.exports.UnmatchedParserError=uR;ht.exports.UnmatchedResolverError=cR;function dt(){this.schema=null,this.$refs=new Q0}s(dt,"$RefParser");dt.parse=s(function(t,r,n,i){let o=this,a=new o;return a.parse.apply(a,arguments)},"parse");dt.prototype.parse=s(async function(t,r,n,i){let o=gs(arguments),a;if(!o.path&&!o.schema){let l=Y0(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return et(o.callback,Promise.reject(l))}this.schema=null,this.$refs=new Q0;let u="http";if(Tn.isFileSystemPath(o.path)&&(o.path=Tn.fromFileSystemPath(o.path),u="file"),o.path=Tn.resolve(Tn.cwd(),o.path),o.schema&&typeof o.schema=="object"){let l=this.$refs._add(o.path);l.value=o.schema,l.pathType=u,a=Promise.resolve(o.schema)}else a=Xk(o.path,this.$refs,o.options);let c=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return c.schema=l,et(o.callback,Promise.resolve(c.schema));if(o.options.continueOnError)return c.schema=null,et(o.callback,Promise.resolve(c.schema));throw Y0.syntax(`"${c.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!o.options.continueOnError||!lR(l)?et(o.callback,Promise.reject(l)):(this.$refs._$refs[Tn.stripHash(o.path)]&&this.$refs._$refs[Tn.stripHash(o.path)].addError(l),et(o.callback,Promise.resolve(null)))}},"parse");dt.resolve=s(function(t,r,n,i){let o=this,a=new o;return a.resolve.apply(a,arguments)},"resolve");dt.prototype.resolve=s(async function(t,r,n,i){let o=this,a=gs(arguments);try{return await this.parse(a.path,a.schema,a.options),await eR(o,a.options),af(o),et(a.callback,Promise.resolve(o.$refs))}catch(u){return et(a.callback,Promise.reject(u))}},"resolve");dt.bundle=s(function(t,r,n,i){let o=this,a=new o;return a.bundle.apply(a,arguments)},"bundle");dt.prototype.bundle=s(async function(t,r,n,i){let o=this,a=gs(arguments);try{return await this.resolve(a.path,a.schema,a.options),tR(o,a.options),af(o),et(a.callback,Promise.resolve(o.schema))}catch(u){return et(a.callback,Promise.reject(u))}},"bundle");dt.dereference=s(function(t,r,n,i){let o=this,a=new o;return a.dereference.apply(a,arguments)},"dereference");dt.prototype.dereference=s(async function(t,r,n,i){let o=this,a=gs(arguments);try{return await this.resolve(a.path,a.schema,a.options),rR(o,a.options),af(o),et(a.callback,Promise.resolve(o.schema))}catch(u){return et(a.callback,Promise.reject(u))}},"dereference");function af(e){if(W0.getParserErrors(e).length>0)throw new W0(e)}s(af,"finalize")});var nv=m((y8,rv)=>{"use strict";var fR=xl(),pR=Il(),X0=Zl(),ev=ho(),tv=y0(),ys=Wl(),{ono:tt}=Ge(),Nr=J0(),dR=sf();rv.exports=mt;function mt(){Nr.apply(this,arguments)}s(mt,"SwaggerParser");ev.inherits(mt,Nr);mt.parse=Nr.parse;mt.resolve=Nr.resolve;mt.bundle=Nr.bundle;mt.dereference=Nr.dereference;Object.defineProperty(mt.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});mt.prototype.parse=async function(e,t,r,n){let i=X0(arguments);i.options=new tv(i.options);try{let o=await Nr.prototype.parse.call(this,i.path,i.schema,i.options);if(o.swagger){if(o.swagger===void 0||o.info===void 0||o.paths===void 0)throw tt.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw tt.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw tt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw tt.syntax(`Unrecognized Swagger version: ${o.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(o.openapi===void 0||o.info===void 0)throw tt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(o.paths===void 0)if(o.openapi==="3.1.0"){if(o.webhooks===void 0)throw tt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw tt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw tt.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw tt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(o.openapi)===-1)throw tt.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}ev.fixOasRelativeServers(o,i.path)}return ys(i.callback,Promise.resolve(o))}catch(o){return ys(i.callback,Promise.reject(o))}};mt.validate=function(e,t,r,n){let i=this,o=new i;return o.validate.apply(o,arguments)};mt.prototype.validate=async function(e,t,r,n){let i=this,o=X0(arguments);o.options=new tv(o.options);let a=o.options.dereference.circular;o.options.validate.schema&&(o.options.dereference.circular="ignore");try{if(await this.dereference(o.path,o.schema,o.options),o.options.dereference.circular=a,o.options.validate.schema&&(fR(i.api),i.$refs.circular)){if(a===!0)dR(i,o.options);else if(a===!1)throw tt.reference("The API contains circular references")}return o.options.validate.spec&&pR(i.api),ys(o.callback,Promise.resolve(i.schema))}catch(u){return ys(o.callback,Promise.reject(u))}}});var Pe=m(Ne=>{"use strict";Ne.__esModule=!0;Ne.extend=c_;Ne.indexOf=rT;Ne.escapeExpression=nT;Ne.isEmpty=iT;Ne.createFrame=oT;Ne.blockParams=sT;Ne.appendContextPath=aT;var JR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},XR=/[&<>"'`=]/g,eT=/[&<>"'`=]/;function tT(e){return JR[e]}s(tT,"escapeChar");function c_(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}s(c_,"extend");var Tf=Object.prototype.toString;Ne.toString=Tf;var Rf=s(function(t){return typeof t=="function"},"isFunction");Rf(/x/)&&(Ne.isFunction=Rf=s(function(e){return typeof e=="function"&&Tf.call(e)==="[object Function]"},"isFunction"));Ne.isFunction=Rf;var l_=Array.isArray||function(e){return e&&typeof e=="object"?Tf.call(e)==="[object Array]":!1};Ne.isArray=l_;function rT(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}s(rT,"indexOf");function nT(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return eT.test(e)?e.replace(XR,tT):e}s(nT,"escapeExpression");function iT(e){return!e&&e!==0?!0:!!(l_(e)&&e.length===0)}s(iT,"isEmpty");function oT(e){var t=c_({},e);return t._parent=e,t}s(oT,"createFrame");function sT(e,t){return e.path=t,e}s(sT,"blockParams");function aT(e,t){return(e?e+".":"")+t}s(aT,"appendContextPath")});var Be=m((Cs,f_)=>{"use strict";Cs.__esModule=!0;var Nf=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Cf(e,t){var r=t&&t.loc,n=void 0,i=void 0,o=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,o=r.start.column,a=r.end.column,e+=" - "+n+":"+o);for(var u=Error.prototype.constructor.call(this,e),c=0;c<Nf.length;c++)this[Nf[c]]=u[Nf[c]];Error.captureStackTrace&&Error.captureStackTrace(this,Cf);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:o,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=o,this.endColumn=a))}catch{}}s(Cf,"Exception");Cf.prototype=new Error;Cs.default=Cf;f_.exports=Cs.default});var d_=m((qs,p_)=>{"use strict";qs.__esModule=!0;var qf=Pe();qs.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(qf.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 o=qf.createFrame(r.data);o.contextPath=qf.appendContextPath(r.data.contextPath,r.name),r={data:o}}return i(t,r)})};p_.exports=qs.default});var m_=m((js,h_)=>{"use strict";js.__esModule=!0;function uT(e){return e&&e.__esModule?e:{default:e}}s(uT,"_interopRequireDefault");var Xi=Pe(),cT=Be(),lT=uT(cT);js.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new lT.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,o=0,a="",u=void 0,c=void 0;r.data&&r.ids&&(c=Xi.appendContextPath(r.data.contextPath,r.ids[0])+"."),Xi.isFunction(t)&&(t=t.call(this)),r.data&&(u=Xi.createFrame(r.data));function l(g,y,v){u&&(u.key=g,u.index=y,u.first=y===0,u.last=!!v,c&&(u.contextPath=c+g)),a=a+n(t[g],{data:u,blockParams:Xi.blockParams([t[g],g],[c+g,null])})}if(s(l,"execIteration"),t&&typeof t=="object")if(Xi.isArray(t))for(var p=t.length;o<p;o++)o in t&&l(o,o,o===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;o<p;o++)l(o,o,o===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(y){g!==void 0&&l(g,o-1),g=y,o++}),g!==void 0&&l(g,o-1,!0)})();return o===0&&(a=i(this)),a})};h_.exports=js.default});var y_=m((Ms,g_)=>{"use strict";Ms.__esModule=!0;function fT(e){return e&&e.__esModule?e:{default:e}}s(fT,"_interopRequireDefault");var pT=Be(),dT=fT(pT);Ms.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new dT.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};g_.exports=Ms.default});var b_=m((Ds,S_)=>{"use strict";Ds.__esModule=!0;function hT(e){return e&&e.__esModule?e:{default:e}}s(hT,"_interopRequireDefault");var v_=Pe(),mT=Be(),__=hT(mT);Ds.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new __.default("#if requires exactly one argument");return v_.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||v_.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new __.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};S_.exports=Ds.default});var $_=m((Ls,P_)=>{"use strict";Ls.__esModule=!0;Ls.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=Ls.default});var E_=m((Fs,O_)=>{"use strict";Fs.__esModule=!0;Fs.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};O_.exports=Fs.default});var w_=m((Vs,x_)=>{"use strict";Vs.__esModule=!0;function gT(e){return e&&e.__esModule?e:{default:e}}s(gT,"_interopRequireDefault");var eo=Pe(),yT=Be(),vT=gT(yT);Vs.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new vT.default("#with requires exactly one argument");eo.isFunction(t)&&(t=t.call(this));var n=r.fn;if(eo.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=eo.createFrame(r.data),i.contextPath=eo.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:eo.blockParams([t],[i&&i.contextPath])})})};x_.exports=Vs.default});var jf=m(Bs=>{"use strict";Bs.__esModule=!0;Bs.registerDefaultHelpers=NT;Bs.moveHelperToHooks=CT;function Lr(e){return e&&e.__esModule?e:{default:e}}s(Lr,"_interopRequireDefault");var _T=d_(),ST=Lr(_T),bT=m_(),PT=Lr(bT),$T=y_(),OT=Lr($T),ET=b_(),xT=Lr(ET),wT=$_(),AT=Lr(wT),IT=E_(),kT=Lr(IT),RT=w_(),TT=Lr(RT);function NT(e){ST.default(e),PT.default(e),OT.default(e),xT.default(e),AT.default(e),kT.default(e),TT.default(e)}s(NT,"registerDefaultHelpers");function CT(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}s(CT,"moveHelperToHooks")});var I_=m((Hs,A_)=>{"use strict";Hs.__esModule=!0;var qT=Pe();Hs.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var o=t;return r.partials||(r.partials={},o=s(function(a,u){var c=n.partials;n.partials=qT.extend({},c,r.partials);var l=t(a,u);return n.partials=c,l},"ret")),r.partials[i.args[0]]=i.fn,o})};A_.exports=Hs.default});var k_=m(Mf=>{"use strict";Mf.__esModule=!0;Mf.registerDefaultDecorators=LT;function jT(e){return e&&e.__esModule?e:{default:e}}s(jT,"_interopRequireDefault");var MT=I_(),DT=jT(MT);function LT(e){DT.default(e)}s(LT,"registerDefaultDecorators")});var Df=m((Us,R_)=>{"use strict";Us.__esModule=!0;var FT=Pe(),Ln={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:s(function(t){if(typeof t=="string"){var r=FT.indexOf(Ln.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:s(function(t){if(t=Ln.lookupLevel(t),typeof console<"u"&&Ln.lookupLevel(Ln.level)<=t){var r=Ln.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];console[r].apply(console,i)}},"log")};Us.default=Ln;R_.exports=Us.default});var T_=m(Lf=>{"use strict";Lf.__esModule=!0;Lf.createNewLookupObject=BT;var VT=Pe();function BT(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return VT.extend.apply(void 0,[Object.create(null)].concat(t))}s(BT,"createNewLookupObject")});var Ff=m(to=>{"use strict";to.__esModule=!0;to.createProtoAccessControl=GT;to.resultIsAllowed=ZT;to.resetLoggedProperties=WT;function HT(e){return e&&e.__esModule?e:{default:e}}s(HT,"_interopRequireDefault");var N_=T_(),UT=Df(),zT=HT(UT),zs=Object.create(null);function GT(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:N_.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:N_.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}s(GT,"createProtoAccessControl");function ZT(e,t,r){return C_(typeof e=="function"?t.methods:t.properties,r)}s(ZT,"resultIsAllowed");function C_(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(KT(t),!1)}s(C_,"checkWhiteList");function KT(e){zs[e]!==!0&&(zs[e]=!0,zT.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(o.headers.location){let a=Mi.resolve(e,o.headers.location);l0(a,t,r).then(n,i)}else throw ps({status:o.statusCode},`HTTP ${o.statusCode} redirect with no location header`);else n(o.body||Buffer.alloc(0))}).catch(o=>{i(new c0(ps(o,`Error downloading ${e.href}`),e.href))})})}s(l0,"download");function lk(e,t){return new Promise((r,n)=>{let o=(e.protocol==="https:"?ck:uk).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof o.setTimeout=="function"&&o.setTimeout(t.timeout),o.on("timeout",()=>{o.abort()}),o.on("error",n),o.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",u=>{a.body=Buffer.concat([a.body,Buffer.from(u)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}s(lk,"get")});var Zl=m((UM,h0)=>{"use strict";var fk=cg(),pk=t0(),dk=n0(),hk=o0(),mk=u0(),gk=p0();h0.exports=Gl;function Gl(e){zl(this,Gl.defaults),zl(this,e)}s(Gl,"$RefParserOptions");Gl.defaults={parse:{json:fk,yaml:pk,text:dk,binary:hk},resolve:{file:mk,http:gk,external:!0},continueOnError:!1,dereference:{circular:!0}};function zl(e,t){if(d0(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i],a=e[i];d0(o)?e[i]=zl(a||{},o):o!==void 0&&(e[i]=o)}}return e}s(zl,"merge");function d0(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}s(d0,"isMergeable")});var Kl=m((GM,g0)=>{"use strict";var m0=Zl();g0.exports=yk;function yk(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 m0||(n=new m0(n)),{path:t,schema:r,options:n,callback:i}}s(yk,"normalizeArgs")});var v0=m((KM,y0)=>{"use strict";var Wl=Zl(),vk=wl(),_k=kl(),Sk=require("util");y0.exports=ds;function ds(e){Wl.call(this,ds.defaults),Wl.apply(this,arguments)}s(ds,"ParserOptions");ds.defaults={validate:{schema:vk,spec:_k}};Sk.inherits(ds,Wl)});var S0=m((YM,_0)=>{"use strict";function bk(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:s(function(t){setTimeout(t,0)},"next")}s(bk,"makeNext");_0.exports=bk()});var Yl=m((JM,P0)=>{"use strict";var b0=S0();P0.exports=s(function(t,r){if(t){r.then(function(n){b0(function(){t(null,n)})},function(n){b0(function(){t(n)})});return}else return r},"maybe")});var Di=m((e8,E0)=>{"use strict";E0.exports=Jt;var Ql=Rn(),Jl=Re(),{JSONParserError:Pk,InvalidPointerError:$k,MissingPointerError:Ok,isHandledError:Ek}=Je(),xk=/\//g,wk=/~/g,Ak=/~1/g,Ik=/~0/g;function Jt(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}s(Jt,"Pointer");Jt.prototype.resolve=function(e,t,r){let n=Jt.parse(this.path,this.originalPath);this.value=O0(e);for(let i=0;i<n.length;i++){if(hs(this,t)&&(this.path=Jt.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let o=n[i];if(this.value[o]===void 0||this.value[o]===null)throw this.value=null,new Ok(o,this.originalPath);this.value=this.value[o]}return(!this.value||this.value.$ref&&Jl.resolve(this.path,this.value.$ref)!==r)&&hs(this,t),this};Jt.prototype.set=function(e,t,r){let n=Jt.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=O0(e);for(let o=0;o<n.length-1;o++)hs(this,r),i=n[o],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=$0(this,i,{});return hs(this,r),i=n[n.length-1],$0(this,i,t),e};Jt.parse=function(e,t){let r=Jl.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(Ak,"/").replace(Ik,"~"));if(r[0]!=="")throw new $k(r,t===void 0?e:t);return r.slice(1)};Jt.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(wk,"~0").replace(xk,"~1"))}return e};function hs(e,t){if(Ql.isAllowed$Ref(e.value,t)){let r=Jl.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,Ql.isExtended$Ref(e.value)?(e.value=Ql.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}s(hs,"resolveIf$Ref");function $0(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 Pk(`Error assigning $ref pointer "${e.path}".
47
+ Cannot set "${t}" of a non-object.`);return r}s($0,"setValue");function O0(e){if(Ek(e))throw e;return e}s(O0,"unwrapOrThrow")});var Rn=m((r8,A0)=>{"use strict";A0.exports=_e;var w0=Di(),{InvalidPointerError:kk,isHandledError:Rk,normalizeError:x0}=Je(),{safePointerToPath:Tk,stripHash:Ck,getHash:Nk}=Re();function _e(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}s(_e,"$Ref");_e.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(x0)):this.errors.push(x0(e))};_e.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};_e.prototype.get=function(e,t){return this.resolve(e,t).value};_e.prototype.resolve=function(e,t,r,n){let i=new w0(this,e,r);try{return i.resolve(this.value,t,n)}catch(o){if(!t||!t.continueOnError||!Rk(o))throw o;return o.path===null&&(o.path=Tk(Nk(n))),o instanceof kk&&(o.source=Ck(n)),this.addError(o),null}};_e.prototype.set=function(e,t){let r=new w0(this,e);this.value=r.set(this.value,t)};_e.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};_e.isExternal$Ref=function(e){return _e.is$Ref(e)&&e.$ref[0]!=="#"};_e.isAllowed$Ref=function(e,t){if(_e.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};_e.isExtended$Ref=function(e){return _e.is$Ref(e)&&Object.keys(e).length>1};_e.dereference=function(e,t){if(t&&typeof t=="object"&&_e.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 T0=m((i8,R0)=>{"use strict";var{ono:I0}=Ge(),qk=Rn(),Xt=Re();R0.exports=Xe;function Xe(){this.circular=!1,this._$refs={},this._root$Ref=null}s(Xe,"$Refs");Xe.prototype.paths=function(e){return k0(this._$refs,arguments).map(r=>r.decoded)};Xe.prototype.values=function(e){let t=this._$refs;return k0(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};Xe.prototype.toJSON=Xe.prototype.values;Xe.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};Xe.prototype.get=function(e,t){return this._resolve(e,"",t).value};Xe.prototype.set=function(e,t){let r=Xt.resolve(this._root$Ref.path,e),n=Xt.stripHash(r),i=this._$refs[n];if(!i)throw I0(`Error resolving $ref pointer "${e}".
48
+ "${n}" not found.`);i.set(r,t)};Xe.prototype._add=function(e){let t=Xt.stripHash(e),r=new qk;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};Xe.prototype._resolve=function(e,t,r){let n=Xt.resolve(this._root$Ref.path,e),i=Xt.stripHash(n),o=this._$refs[i];if(!o)throw I0(`Error resolving $ref pointer "${e}".
49
+ "${i}" not found.`);return o.resolve(n,r,e,t)};Xe.prototype._get$Ref=function(e){e=Xt.resolve(this._root$Ref.path,e);let t=Xt.stripHash(e);return this._$refs[t]};function k0(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"?Xt.toFileSystemPath(n,!0):n}))}s(k0,"getPaths")});var N0=m(Li=>{"use strict";Li.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Li.filter=function(e,t,r){return e.filter(n=>!!C0(n,t,r))};Li.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)};Li.run=function(e,t,r,n){let i,o,a=0;return new Promise((u,c)=>{l();function l(){if(i=e[a++],!i)return c(o);try{let h=C0(i,t,r,p,n);if(h&&typeof h.then=="function")h.then(f,d);else if(h!==void 0)f(h);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(h){d(h)}}s(l,"runNextPlugin");function p(h,g){h?d(h):f(g)}s(p,"callback");function f(h){u({plugin:i,result:h})}s(f,"onSuccess");function d(h){o={plugin:i,error:h},l()}s(d,"onError")})};function C0(e,t,r,n,i){let o=e[t];if(typeof o=="function")return o.apply(e,[r,n,i]);if(!n){if(o instanceof RegExp)return o.test(r.url);if(typeof o=="string")return o===r.extension;if(Array.isArray(o))return o.indexOf(r.extension)!==-1}return o}s(C0,"getResult")});var ef=m((u8,D0)=>{"use strict";var{ono:Xl}=Ge(),q0=Re(),er=N0(),{ResolverError:j0,ParserError:M0,UnmatchedParserError:jk,UnmatchedResolverError:Mk,isHandledError:Dk}=Je();D0.exports=Lk;async function Lk(e,t,r){e=q0.stripHash(e);let n=t._add(e),i={url:e,extension:q0.getExtension(e)};try{let o=await Fk(i,r,t);n.pathType=o.plugin.name,i.data=o.result;let a=await Vk(i,r,t);return n.value=a.result,a.result}catch(o){throw Dk(o)&&(n.value=o),o}}s(Lk,"parse");function Fk(e,t,r){return new Promise((n,i)=>{let o=er.all(t.resolve);o=er.filter(o,"canRead",e),er.sort(o),er.run(o,"read",e,r).then(n,a);function a(u){!u&&t.continueOnError?i(new Mk(e.url)):!u||!("error"in u)?i(Xl.syntax(`Unable to resolve $ref pointer "${e.url}"`)):u.error instanceof j0?i(u.error):i(new j0(u,e.url))}s(a,"onError")})}s(Fk,"readFile");function Vk(e,t,r){return new Promise((n,i)=>{let o=er.all(t.parse),a=er.filter(o,"canParse",e),u=a.length>0?a:o;er.sort(u),er.run(u,"parse",e,r).then(c,l);function c(p){!p.plugin.allowEmpty&&Bk(p.result)?i(Xl.syntax(`Error parsing "${e.url}" as ${p.plugin.name}.
50
+ Parsed value is empty`)):n(p)}s(c,"onParsed");function l(p){!p&&t.continueOnError?i(new jk(e.url)):!p||!("error"in p)?i(Xl.syntax(`Unable to parse ${e.url}`)):p.error instanceof M0?i(p.error):i(new M0(p.error.message,e.url))}s(l,"onError")})}s(Vk,"parseFile");function Bk(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}s(Bk,"isEmpty")});var B0=m((l8,V0)=>{"use strict";var L0=Rn(),Hk=Di(),Uk=ef(),Fi=Re(),{isHandledError:zk}=Je();V0.exports=Gk;function Gk(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=tf(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}s(Gk,"resolveExternal");function tf(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(L0.isExternal$Ref(e))i.push(F0(e,t,r,n));else for(let o of Object.keys(e)){let a=Hk.join(t,o),u=e[o];L0.isExternal$Ref(u)?i.push(F0(u,a,r,n)):i=i.concat(tf(u,a,r,n))}return i}s(tf,"crawl");async function F0(e,t,r,n){let i=Fi.resolve(t,e.$ref),o=Fi.stripHash(i);if(e=r._$refs[o],e)return Promise.resolve(e.value);try{let a=await Uk(i,r,n),u=tf(a,o+"#",r,n);return Promise.all(u)}catch(a){if(!n.continueOnError||!zk(a))throw a;return r._$refs[o]&&(a.source=Fi.stripHash(t),a.path=Fi.safePointerToPath(Fi.getHash(t))),[]}}s(F0,"resolve$Ref")});var z0=m((p8,U0)=>{"use strict";var ms=Rn(),Vi=Di(),rf=Re();U0.exports=Zk;function Zk(e,t){let r=[];nf(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),Kk(r)}s(Zk,"bundle");function nf(e,t,r,n,i,o,a,u){let c=t===null?e:e[t];if(c&&typeof c=="object"&&!ArrayBuffer.isView(c))if(ms.isAllowed$Ref(c))H0(e,t,r,n,i,o,a,u);else{let l=Object.keys(c).sort((p,f)=>p==="definitions"?-1:f==="definitions"?1:p.length-f.length);for(let p of l){let f=Vi.join(r,p),d=Vi.join(n,p),h=c[p];ms.isAllowed$Ref(h)?H0(c,p,r,d,i,o,a,u):nf(c,p,f,d,i,o,a,u)}}}s(nf,"crawl");function H0(e,t,r,n,i,o,a,u){let c=t===null?e:e[t],l=rf.resolve(r,c.$ref),p=a._resolve(l,n,u);if(p===null)return;let f=Vi.parse(n).length,d=rf.stripHash(p.path),h=rf.getHash(p.path),g=d!==a._root$Ref.path,y=ms.isExtended$Ref(c);i+=p.indirections;let v=Wk(o,e,t);if(v)if(f<v.depth||i<v.indirections)Yk(o,v);else return;o.push({$ref:c,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:y,external:g,indirections:i}),v||nf(p.value,null,p.path,n,i+1,o,a,u)}s(H0,"inventory$Ref");function Kk(e){e.sort((i,o)=>{if(i.file!==o.file)return i.file<o.file?-1:1;if(i.hash!==o.hash)return i.hash<o.hash?-1:1;if(i.circular!==o.circular)return i.circular?-1:1;if(i.extended!==o.extended)return i.extended?1:-1;if(i.indirections!==o.indirections)return i.indirections-o.indirections;if(i.depth!==o.depth)return i.depth-o.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),u=o.pathFromRoot.lastIndexOf("/definitions");return a!==u?u-a:i.pathFromRoot.length-o.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=Vi.join(n,Vi.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=ms.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}s(Kk,"remap");function Wk(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}s(Wk,"findInInventory");function Yk(e,t){let r=e.indexOf(t);e.splice(r,1)}s(Yk,"removeFromInventory")});var af=m((h8,W0)=>{"use strict";var of=Rn(),G0=Di(),{ono:Qk}=Ge(),Jk=Re();W0.exports=Xk;function Xk(e,t){let r=sf(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}s(Xk,"dereference");function sf(e,t,r,n,i,o){let a,u={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),of.isAllowed$Ref(e,o))a=Z0(e,t,r,n,i,o),u.circular=a.circular,u.value=a.value;else for(let c of Object.keys(e)){let l=G0.join(t,c),p=G0.join(r,c),f=e[c],d=!1;of.isAllowed$Ref(f,o)?(a=Z0(f,l,p,n,i,o),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):n.indexOf(f)===-1?(a=sf(f,l,p,n,i,o),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):d=K0(l,i,o),u.circular=u.circular||d}n.pop()}return u}s(sf,"crawl");function Z0(e,t,r,n,i,o){let a=Jk.resolve(t,e.$ref),u=i._resolve(a,t,o);if(u===null)return{circular:!1,value:null};let c=u.circular,l=c||n.indexOf(u.value)!==-1;l&&K0(t,i,o);let p=of.dereference(e,u.value);if(!l){let f=sf(p,u.path,r,n,i,o);l=f.circular,p=f.value}return l&&!c&&o.dereference.circular==="ignore"&&(p=e),c&&(p.$ref=r),{circular:l,value:p}}s(Z0,"dereference$Ref");function K0(e,t,r){if(t.circular=!0,!r.dereference.circular)throw Qk.reference(`Circular $ref pointer found at ${e}`);return!0}s(K0,"foundCircularReference")});var X0=m((g8,ht)=>{"use strict";var J0=T0(),eR=ef(),gs=Kl(),tR=B0(),rR=z0(),nR=af(),Tn=Re(),{JSONParserError:iR,InvalidPointerError:oR,MissingPointerError:sR,ResolverError:aR,ParserError:uR,UnmatchedParserError:cR,UnmatchedResolverError:lR,isHandledError:fR,JSONParserErrorGroup:Y0}=Je(),et=Yl(),{ono:Q0}=Ge();ht.exports=dt;ht.exports.default=dt;ht.exports.JSONParserError=iR;ht.exports.InvalidPointerError=oR;ht.exports.MissingPointerError=sR;ht.exports.ResolverError=aR;ht.exports.ParserError=uR;ht.exports.UnmatchedParserError=cR;ht.exports.UnmatchedResolverError=lR;function dt(){this.schema=null,this.$refs=new J0}s(dt,"$RefParser");dt.parse=s(function(t,r,n,i){let o=this,a=new o;return a.parse.apply(a,arguments)},"parse");dt.prototype.parse=s(async function(t,r,n,i){let o=gs(arguments),a;if(!o.path&&!o.schema){let l=Q0(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return et(o.callback,Promise.reject(l))}this.schema=null,this.$refs=new J0;let u="http";if(Tn.isFileSystemPath(o.path)&&(o.path=Tn.fromFileSystemPath(o.path),u="file"),o.path=Tn.resolve(Tn.cwd(),o.path),o.schema&&typeof o.schema=="object"){let l=this.$refs._add(o.path);l.value=o.schema,l.pathType=u,a=Promise.resolve(o.schema)}else a=eR(o.path,this.$refs,o.options);let c=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return c.schema=l,et(o.callback,Promise.resolve(c.schema));if(o.options.continueOnError)return c.schema=null,et(o.callback,Promise.resolve(c.schema));throw Q0.syntax(`"${c.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!o.options.continueOnError||!fR(l)?et(o.callback,Promise.reject(l)):(this.$refs._$refs[Tn.stripHash(o.path)]&&this.$refs._$refs[Tn.stripHash(o.path)].addError(l),et(o.callback,Promise.resolve(null)))}},"parse");dt.resolve=s(function(t,r,n,i){let o=this,a=new o;return a.resolve.apply(a,arguments)},"resolve");dt.prototype.resolve=s(async function(t,r,n,i){let o=this,a=gs(arguments);try{return await this.parse(a.path,a.schema,a.options),await tR(o,a.options),uf(o),et(a.callback,Promise.resolve(o.$refs))}catch(u){return et(a.callback,Promise.reject(u))}},"resolve");dt.bundle=s(function(t,r,n,i){let o=this,a=new o;return a.bundle.apply(a,arguments)},"bundle");dt.prototype.bundle=s(async function(t,r,n,i){let o=this,a=gs(arguments);try{return await this.resolve(a.path,a.schema,a.options),rR(o,a.options),uf(o),et(a.callback,Promise.resolve(o.schema))}catch(u){return et(a.callback,Promise.reject(u))}},"bundle");dt.dereference=s(function(t,r,n,i){let o=this,a=new o;return a.dereference.apply(a,arguments)},"dereference");dt.prototype.dereference=s(async function(t,r,n,i){let o=this,a=gs(arguments);try{return await this.resolve(a.path,a.schema,a.options),nR(o,a.options),uf(o),et(a.callback,Promise.resolve(o.schema))}catch(u){return et(a.callback,Promise.reject(u))}},"dereference");function uf(e){if(Y0.getParserErrors(e).length>0)throw new Y0(e)}s(uf,"finalize")});var iv=m((v8,nv)=>{"use strict";var pR=wl(),dR=kl(),ev=Kl(),tv=ho(),rv=v0(),ys=Yl(),{ono:tt}=Ge(),Cr=X0(),hR=af();nv.exports=mt;function mt(){Cr.apply(this,arguments)}s(mt,"SwaggerParser");tv.inherits(mt,Cr);mt.parse=Cr.parse;mt.resolve=Cr.resolve;mt.bundle=Cr.bundle;mt.dereference=Cr.dereference;Object.defineProperty(mt.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});mt.prototype.parse=async function(e,t,r,n){let i=ev(arguments);i.options=new rv(i.options);try{let o=await Cr.prototype.parse.call(this,i.path,i.schema,i.options);if(o.swagger){if(o.swagger===void 0||o.info===void 0||o.paths===void 0)throw tt.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw tt.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw tt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw tt.syntax(`Unrecognized Swagger version: ${o.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(o.openapi===void 0||o.info===void 0)throw tt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(o.paths===void 0)if(o.openapi==="3.1.0"){if(o.webhooks===void 0)throw tt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw tt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw tt.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw tt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(o.openapi)===-1)throw tt.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}tv.fixOasRelativeServers(o,i.path)}return ys(i.callback,Promise.resolve(o))}catch(o){return ys(i.callback,Promise.reject(o))}};mt.validate=function(e,t,r,n){let i=this,o=new i;return o.validate.apply(o,arguments)};mt.prototype.validate=async function(e,t,r,n){let i=this,o=ev(arguments);o.options=new rv(o.options);let a=o.options.dereference.circular;o.options.validate.schema&&(o.options.dereference.circular="ignore");try{if(await this.dereference(o.path,o.schema,o.options),o.options.dereference.circular=a,o.options.validate.schema&&(pR(i.api),i.$refs.circular)){if(a===!0)hR(i,o.options);else if(a===!1)throw tt.reference("The API contains circular references")}return o.options.validate.spec&&dR(i.api),ys(o.callback,Promise.resolve(i.schema))}catch(u){return ys(o.callback,Promise.reject(u))}}});var Pe=m(Ce=>{"use strict";Ce.__esModule=!0;Ce.extend=l_;Ce.indexOf=nT;Ce.escapeExpression=iT;Ce.isEmpty=oT;Ce.createFrame=sT;Ce.blockParams=aT;Ce.appendContextPath=uT;var XR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},eT=/[&<>"'`=]/g,tT=/[&<>"'`=]/;function rT(e){return XR[e]}s(rT,"escapeChar");function l_(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}s(l_,"extend");var Cf=Object.prototype.toString;Ce.toString=Cf;var Tf=s(function(t){return typeof t=="function"},"isFunction");Tf(/x/)&&(Ce.isFunction=Tf=s(function(e){return typeof e=="function"&&Cf.call(e)==="[object Function]"},"isFunction"));Ce.isFunction=Tf;var f_=Array.isArray||function(e){return e&&typeof e=="object"?Cf.call(e)==="[object Array]":!1};Ce.isArray=f_;function nT(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}s(nT,"indexOf");function iT(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return tT.test(e)?e.replace(eT,rT):e}s(iT,"escapeExpression");function oT(e){return!e&&e!==0?!0:!!(f_(e)&&e.length===0)}s(oT,"isEmpty");function sT(e){var t=l_({},e);return t._parent=e,t}s(sT,"createFrame");function aT(e,t){return e.path=t,e}s(aT,"blockParams");function uT(e,t){return(e?e+".":"")+t}s(uT,"appendContextPath")});var Be=m((qs,p_)=>{"use strict";qs.__esModule=!0;var Nf=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function qf(e,t){var r=t&&t.loc,n=void 0,i=void 0,o=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,o=r.start.column,a=r.end.column,e+=" - "+n+":"+o);for(var u=Error.prototype.constructor.call(this,e),c=0;c<Nf.length;c++)this[Nf[c]]=u[Nf[c]];Error.captureStackTrace&&Error.captureStackTrace(this,qf);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:o,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=o,this.endColumn=a))}catch{}}s(qf,"Exception");qf.prototype=new Error;qs.default=qf;p_.exports=qs.default});var h_=m((js,d_)=>{"use strict";js.__esModule=!0;var jf=Pe();js.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(jf.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 o=jf.createFrame(r.data);o.contextPath=jf.appendContextPath(r.data.contextPath,r.name),r={data:o}}return i(t,r)})};d_.exports=js.default});var g_=m((Ms,m_)=>{"use strict";Ms.__esModule=!0;function cT(e){return e&&e.__esModule?e:{default:e}}s(cT,"_interopRequireDefault");var Xi=Pe(),lT=Be(),fT=cT(lT);Ms.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new fT.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,o=0,a="",u=void 0,c=void 0;r.data&&r.ids&&(c=Xi.appendContextPath(r.data.contextPath,r.ids[0])+"."),Xi.isFunction(t)&&(t=t.call(this)),r.data&&(u=Xi.createFrame(r.data));function l(g,y,v){u&&(u.key=g,u.index=y,u.first=y===0,u.last=!!v,c&&(u.contextPath=c+g)),a=a+n(t[g],{data:u,blockParams:Xi.blockParams([t[g],g],[c+g,null])})}if(s(l,"execIteration"),t&&typeof t=="object")if(Xi.isArray(t))for(var p=t.length;o<p;o++)o in t&&l(o,o,o===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;o<p;o++)l(o,o,o===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(y){g!==void 0&&l(g,o-1),g=y,o++}),g!==void 0&&l(g,o-1,!0)})();return o===0&&(a=i(this)),a})};m_.exports=Ms.default});var v_=m((Ds,y_)=>{"use strict";Ds.__esModule=!0;function pT(e){return e&&e.__esModule?e:{default:e}}s(pT,"_interopRequireDefault");var dT=Be(),hT=pT(dT);Ds.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new hT.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};y_.exports=Ds.default});var P_=m((Ls,b_)=>{"use strict";Ls.__esModule=!0;function mT(e){return e&&e.__esModule?e:{default:e}}s(mT,"_interopRequireDefault");var __=Pe(),gT=Be(),S_=mT(gT);Ls.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new S_.default("#if requires exactly one argument");return __.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||__.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new S_.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};b_.exports=Ls.default});var O_=m((Fs,$_)=>{"use strict";Fs.__esModule=!0;Fs.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)})};$_.exports=Fs.default});var x_=m((Vs,E_)=>{"use strict";Vs.__esModule=!0;Vs.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};E_.exports=Vs.default});var A_=m((Bs,w_)=>{"use strict";Bs.__esModule=!0;function yT(e){return e&&e.__esModule?e:{default:e}}s(yT,"_interopRequireDefault");var eo=Pe(),vT=Be(),_T=yT(vT);Bs.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new _T.default("#with requires exactly one argument");eo.isFunction(t)&&(t=t.call(this));var n=r.fn;if(eo.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=eo.createFrame(r.data),i.contextPath=eo.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:eo.blockParams([t],[i&&i.contextPath])})})};w_.exports=Bs.default});var Mf=m(Hs=>{"use strict";Hs.__esModule=!0;Hs.registerDefaultHelpers=NT;Hs.moveHelperToHooks=qT;function Lr(e){return e&&e.__esModule?e:{default:e}}s(Lr,"_interopRequireDefault");var ST=h_(),bT=Lr(ST),PT=g_(),$T=Lr(PT),OT=v_(),ET=Lr(OT),xT=P_(),wT=Lr(xT),AT=O_(),IT=Lr(AT),kT=x_(),RT=Lr(kT),TT=A_(),CT=Lr(TT);function NT(e){bT.default(e),$T.default(e),ET.default(e),wT.default(e),IT.default(e),RT.default(e),CT.default(e)}s(NT,"registerDefaultHelpers");function qT(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}s(qT,"moveHelperToHooks")});var k_=m((Us,I_)=>{"use strict";Us.__esModule=!0;var jT=Pe();Us.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var o=t;return r.partials||(r.partials={},o=s(function(a,u){var c=n.partials;n.partials=jT.extend({},c,r.partials);var l=t(a,u);return n.partials=c,l},"ret")),r.partials[i.args[0]]=i.fn,o})};I_.exports=Us.default});var R_=m(Df=>{"use strict";Df.__esModule=!0;Df.registerDefaultDecorators=FT;function MT(e){return e&&e.__esModule?e:{default:e}}s(MT,"_interopRequireDefault");var DT=k_(),LT=MT(DT);function FT(e){LT.default(e)}s(FT,"registerDefaultDecorators")});var Lf=m((zs,T_)=>{"use strict";zs.__esModule=!0;var VT=Pe(),Ln={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:s(function(t){if(typeof t=="string"){var r=VT.indexOf(Ln.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:s(function(t){if(t=Ln.lookupLevel(t),typeof console<"u"&&Ln.lookupLevel(Ln.level)<=t){var r=Ln.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];console[r].apply(console,i)}},"log")};zs.default=Ln;T_.exports=zs.default});var C_=m(Ff=>{"use strict";Ff.__esModule=!0;Ff.createNewLookupObject=HT;var BT=Pe();function HT(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return BT.extend.apply(void 0,[Object.create(null)].concat(t))}s(HT,"createNewLookupObject")});var Vf=m(to=>{"use strict";to.__esModule=!0;to.createProtoAccessControl=ZT;to.resultIsAllowed=KT;to.resetLoggedProperties=YT;function UT(e){return e&&e.__esModule?e:{default:e}}s(UT,"_interopRequireDefault");var N_=C_(),zT=Lf(),GT=UT(zT),Gs=Object.create(null);function ZT(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:N_.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:N_.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}s(ZT,"createProtoAccessControl");function KT(e,t,r){return q_(typeof e=="function"?t.methods:t.properties,r)}s(KT,"resultIsAllowed");function q_(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(WT(t),!1)}s(q_,"checkWhiteList");function WT(e){Gs[e]!==!0&&(Gs[e]=!0,GT.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`))}s(KT,"logUnexpecedPropertyAccessOnce");function WT(){Object.keys(zs).forEach(function(e){delete zs[e]})}s(WT,"resetLoggedProperties")});var Zs=m($t=>{"use strict";$t.__esModule=!0;$t.HandlebarsEnvironment=Hf;function q_(e){return e&&e.__esModule?e:{default:e}}s(q_,"_interopRequireDefault");var Fr=Pe(),YT=Be(),Vf=q_(YT),QT=jf(),JT=k_(),XT=Df(),Gs=q_(XT),e3=Ff(),t3="4.7.8";$t.VERSION=t3;var r3=8;$t.COMPILER_REVISION=r3;var n3=7;$t.LAST_COMPATIBLE_COMPILER_REVISION=n3;var i3={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"};$t.REVISION_CHANGES=i3;var Bf="[object Object]";function Hf(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},QT.registerDefaultHelpers(this),JT.registerDefaultDecorators(this)}s(Hf,"HandlebarsEnvironment");Hf.prototype={constructor:Hf,logger:Gs.default,log:Gs.default.log,registerHelper:s(function(t,r){if(Fr.toString.call(t)===Bf){if(r)throw new Vf.default("Arg not supported with multiple helpers");Fr.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:s(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:s(function(t,r){if(Fr.toString.call(t)===Bf)Fr.extend(this.partials,t);else{if(typeof r>"u")throw new Vf.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:s(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:s(function(t,r){if(Fr.toString.call(t)===Bf){if(r)throw new Vf.default("Arg not supported with multiple decorators");Fr.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:s(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:s(function(){e3.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var o3=Gs.default.log;$t.log=o3;$t.createFrame=Fr.createFrame;$t.logger=Gs.default});var M_=m((Ks,j_)=>{"use strict";Ks.__esModule=!0;function Uf(e){this.string=e}s(Uf,"SafeString");Uf.prototype.toString=Uf.prototype.toHTML=function(){return""+this.string};Ks.default=Uf;j_.exports=Ks.default});var D_=m(zf=>{"use strict";zf.__esModule=!0;zf.wrapHelper=s3;function s3(e,t){if(typeof e!="function")return e;var r=s(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}s(s3,"wrapHelper")});var H_=m(lr=>{"use strict";lr.__esModule=!0;lr.checkRevision=p3;lr.template=d3;lr.wrapProgram=Ws;lr.resolvePartial=h3;lr.invokePartial=m3;lr.noop=V_;function a3(e){return e&&e.__esModule?e:{default:e}}s(a3,"_interopRequireDefault");function u3(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}s(u3,"_interopRequireWildcard");var c3=Pe(),Nt=u3(c3),l3=Be(),Ct=a3(l3),qt=Zs(),L_=jf(),f3=D_(),F_=Ff();function p3(e){var t=e&&e[0]||1,r=qt.COMPILER_REVISION;if(!(t>=qt.LAST_COMPATIBLE_COMPILER_REVISION&&t<=qt.COMPILER_REVISION))if(t<qt.LAST_COMPATIBLE_COMPILER_REVISION){var n=qt.REVISION_CHANGES[r],i=qt.REVISION_CHANGES[t];throw new Ct.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 Ct.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}s(p3,"checkRevision");function d3(e,t){if(!t)throw new Ct.default("No environment passed to template");if(!e||!e.main)throw new Ct.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,u,c){c.hash&&(u=Nt.extend({},u,c.hash),c.ids&&(c.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,u,c);var l=Nt.extend({},c,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=t.VM.invokePartial.call(this,a,u,l);if(p==null&&t.compile&&(c.partials[c.name]=t.compile(a,e.compilerOptions,t),p=c.partials[c.name](u,l)),p!=null){if(c.indent){for(var f=p.split(`
52
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}s(WT,"logUnexpecedPropertyAccessOnce");function YT(){Object.keys(Gs).forEach(function(e){delete Gs[e]})}s(YT,"resetLoggedProperties")});var Ks=m($t=>{"use strict";$t.__esModule=!0;$t.HandlebarsEnvironment=Uf;function j_(e){return e&&e.__esModule?e:{default:e}}s(j_,"_interopRequireDefault");var Fr=Pe(),QT=Be(),Bf=j_(QT),JT=Mf(),XT=R_(),e3=Lf(),Zs=j_(e3),t3=Vf(),r3="4.7.8";$t.VERSION=r3;var n3=8;$t.COMPILER_REVISION=n3;var i3=7;$t.LAST_COMPATIBLE_COMPILER_REVISION=i3;var o3={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"};$t.REVISION_CHANGES=o3;var Hf="[object Object]";function Uf(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},JT.registerDefaultHelpers(this),XT.registerDefaultDecorators(this)}s(Uf,"HandlebarsEnvironment");Uf.prototype={constructor:Uf,logger:Zs.default,log:Zs.default.log,registerHelper:s(function(t,r){if(Fr.toString.call(t)===Hf){if(r)throw new Bf.default("Arg not supported with multiple helpers");Fr.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:s(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:s(function(t,r){if(Fr.toString.call(t)===Hf)Fr.extend(this.partials,t);else{if(typeof r>"u")throw new Bf.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:s(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:s(function(t,r){if(Fr.toString.call(t)===Hf){if(r)throw new Bf.default("Arg not supported with multiple decorators");Fr.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:s(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:s(function(){t3.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var s3=Zs.default.log;$t.log=s3;$t.createFrame=Fr.createFrame;$t.logger=Zs.default});var D_=m((Ws,M_)=>{"use strict";Ws.__esModule=!0;function zf(e){this.string=e}s(zf,"SafeString");zf.prototype.toString=zf.prototype.toHTML=function(){return""+this.string};Ws.default=zf;M_.exports=Ws.default});var L_=m(Gf=>{"use strict";Gf.__esModule=!0;Gf.wrapHelper=a3;function a3(e,t){if(typeof e!="function")return e;var r=s(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}s(a3,"wrapHelper")});var U_=m(lr=>{"use strict";lr.__esModule=!0;lr.checkRevision=d3;lr.template=h3;lr.wrapProgram=Ys;lr.resolvePartial=m3;lr.invokePartial=g3;lr.noop=B_;function u3(e){return e&&e.__esModule?e:{default:e}}s(u3,"_interopRequireDefault");function c3(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}s(c3,"_interopRequireWildcard");var l3=Pe(),Nt=c3(l3),f3=Be(),qt=u3(f3),jt=Ks(),F_=Mf(),p3=L_(),V_=Vf();function d3(e){var t=e&&e[0]||1,r=jt.COMPILER_REVISION;if(!(t>=jt.LAST_COMPATIBLE_COMPILER_REVISION&&t<=jt.COMPILER_REVISION))if(t<jt.LAST_COMPATIBLE_COMPILER_REVISION){var n=jt.REVISION_CHANGES[r],i=jt.REVISION_CHANGES[t];throw new qt.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 qt.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}s(d3,"checkRevision");function h3(e,t){if(!t)throw new qt.default("No environment passed to template");if(!e||!e.main)throw new qt.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,u,c){c.hash&&(u=Nt.extend({},u,c.hash),c.ids&&(c.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,u,c);var l=Nt.extend({},c,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=t.VM.invokePartial.call(this,a,u,l);if(p==null&&t.compile&&(c.partials[c.name]=t.compile(a,e.compilerOptions,t),p=c.partials[c.name](u,l)),p!=null){if(c.indent){for(var f=p.split(`
53
53
  `),d=0,h=f.length;d<h&&!(!f[d]&&d+1===h);d++)f[d]=c.indent+f[d];p=f.join(`
54
- `)}return p}else throw new Ct.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}s(n,"invokePartialWrapper");var i={strict:s(function(u,c,l){if(!u||!(c in u))throw new Ct.default('"'+c+'" not defined in '+u,{loc:l});return i.lookupProperty(u,c)},"strict"),lookupProperty:s(function(u,c){var l=u[c];if(l==null||Object.prototype.hasOwnProperty.call(u,c)||F_.resultIsAllowed(l,i.protoAccessControl,c))return l},"lookupProperty"),lookup:s(function(u,c){for(var l=u.length,p=0;p<l;p++){var f=u[p]&&i.lookupProperty(u[p],c);if(f!=null)return u[p][c]}},"lookup"),lambda:s(function(u,c){return typeof u=="function"?u.call(c):u},"lambda"),escapeExpression:Nt.escapeExpression,invokePartial:n,fn:s(function(u){var c=e[u];return c.decorator=e[u+"_d"],c},"fn"),programs:[],program:s(function(u,c,l,p,f){var d=this.programs[u],h=this.fn(u);return c||f||p||l?d=Ws(this,u,h,c,l,p,f):d||(d=this.programs[u]=Ws(this,u,h)),d},"program"),data:s(function(u,c){for(;u&&c--;)u=u._parent;return u},"data"),mergeIfNeeded:s(function(u,c){var l=u||c;return u&&c&&u!==c&&(l=Nt.extend({},c,u)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function o(a){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=u.data;o._setup(u),!u.partial&&e.useData&&(c=g3(a,c));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(u.depths?l=a!=u.depths[0]?[a].concat(u.depths):u.depths:l=[a]);function f(d){return""+e.main(i,d,i.helpers,i.partials,c,p,l)}return s(f,"main"),f=B_(e.main,f,i,u.depths||[],c,p),f(a,u)}return s(o,"ret"),o.isTop=!0,o._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 u=Nt.extend({},t.helpers,a.helpers);y3(u,i),i.helpers=u,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Nt.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=F_.createProtoAccessControl(a);var c=a.allowCallsToHelperMissing||r;L_.moveHelperToHooks(i,"helperMissing",c),L_.moveHelperToHooks(i,"blockHelperMissing",c)}},o._child=function(a,u,c,l){if(e.useBlockParams&&!c)throw new Ct.default("must pass block params");if(e.useDepths&&!l)throw new Ct.default("must pass parent depths");return Ws(i,a,e[a],u,0,c,l)},o}s(d3,"template");function Ws(e,t,r,n,i,o,a){function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&c!=a[0]&&!(c===e.nullContext&&a[0]===null)&&(p=[c].concat(a)),r(e,c,e.helpers,e.partials,l.data||n,o&&[l.blockParams].concat(o),p)}return s(u,"prog"),u=B_(r,u,e,a,n,o),u.program=t,u.depth=a?a.length:0,u.blockParams=i||0,u}s(Ws,"wrapProgram");function h3(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}s(h3,"resolvePartial");function m3(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!==V_&&function(){r.data=qt.createFrame(r.data);var o=r.fn;i=r.data["partial-block"]=s(function(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=qt.createFrame(c.data),c.data["partial-block"]=n,o(u,c)},"partialBlockWrapper"),o.partials&&(r.partials=Nt.extend({},r.partials,o.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new Ct.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}s(m3,"invokePartial");function V_(){return""}s(V_,"noop");function g3(e,t){return(!t||!("root"in t))&&(t=t?qt.createFrame(t):{},t.root=e),t}s(g3,"initData");function B_(e,t,r,n,i,o){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,o,n),Nt.extend(t,a)}return t}s(B_,"executeDecorators");function y3(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=v3(n,t)})}s(y3,"wrapHelpersToPassLookupProperty");function v3(e,t){var r=t.lookupProperty;return f3.wrapHelper(e,function(n){return Nt.extend({lookupProperty:r},n)})}s(v3,"passLookupPropertyOption")});var Gf=m((Ys,U_)=>{"use strict";Ys.__esModule=!0;Ys.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}};U_.exports=Ys.default});var W_=m((Qs,K_)=>{"use strict";Qs.__esModule=!0;function Kf(e){return e&&e.__esModule?e:{default:e}}s(Kf,"_interopRequireDefault");function Wf(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}s(Wf,"_interopRequireWildcard");var _3=Zs(),z_=Wf(_3),S3=M_(),b3=Kf(S3),P3=Be(),$3=Kf(P3),O3=Pe(),Zf=Wf(O3),E3=H_(),G_=Wf(E3),x3=Gf(),w3=Kf(x3);function Z_(){var e=new z_.HandlebarsEnvironment;return Zf.extend(e,z_),e.SafeString=b3.default,e.Exception=$3.default,e.Utils=Zf,e.escapeExpression=Zf.escapeExpression,e.VM=G_,e.template=function(t){return G_.template(t,e)},e}s(Z_,"create");var ro=Z_();ro.create=Z_;w3.default(ro);ro.default=ro;Qs.default=ro;K_.exports=Qs.default});var Yf=m((Js,Q_)=>{"use strict";Js.__esModule=!0;var Y_={helpers:{helperExpression:s(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:s(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:s(function(t){return t.parts.length===1&&!Y_.helpers.scopedId(t)&&!t.depth},"simpleId")}};Js.default=Y_;Q_.exports=Js.default});var X_=m((Xs,J_)=>{"use strict";Xs.__esModule=!0;var A3=function(){var e={trace:s(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:s(function(i,o,a,u,c,l,p){var f=l.length-1;switch(c){case 1:return l[f-1];case 2:this.$=u.prepareProgram(l[f]);break;case 3:this.$=l[f];break;case 4:this.$=l[f];break;case 5:this.$=l[f];break;case 6:this.$=l[f];break;case 7:this.$=l[f];break;case 8:this.$=l[f];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(l[f]),strip:u.stripFlags(l[f],l[f]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(l[f-2],l[f-1],l[f],this._$);break;case 12:this.$={path:l[f-3],params:l[f-2],hash:l[f-1]};break;case 13:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!0,this._$);break;case 15:this.$={open:l[f-5],path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 16:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 17:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:u.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=u.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=u.prepareProgram([d],l[f-1].loc);h.chained=!0,this.$={strip:l[f-2].strip,program:h,chain:!0};break;case 20:this.$=l[f];break;case 21:this.$={path:l[f-1],strip:u.stripFlags(l[f-2],l[f])};break;case 22:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[f-3],params:l[f-2],hash:l[f-1],indent:"",strip:u.stripFlags(l[f-4],l[f]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(l[f-2],l[f-1],l[f],this._$);break;case 26:this.$={path:l[f-3],params:l[f-2],hash:l[f-1],strip:u.stripFlags(l[f-4],l[f])};break;case 27:this.$=l[f];break;case 28:this.$=l[f];break;case 29:this.$={type:"SubExpression",path:l[f-3],params:l[f-2],hash:l[f-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(l[f-2]),value:l[f],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(l[f-1]);break;case 33:this.$=l[f];break;case 34:this.$=l[f];break;case 35:this.$={type:"StringLiteral",value:l[f],original:l[f],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=u.preparePath(!0,l[f],this._$);break;case 43:this.$=u.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:u.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:u.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);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:s(function(i,o){throw new Error(i)},"parseError"),parse:s(function(i){var o=this,a=[0],u=[null],c=[],l=this.table,p="",f=0,d=0,h=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;c.push(v);var _=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function S(ot){a.length=a.length-2*ot,u.length=u.length-ot,c.length=c.length-ot}s(S,"popStack");function b(){var ot;return ot=o.lexer.lex()||1,typeof ot!="number"&&(ot=o.symbols_[ot]||ot),ot}s(b,"lex");for(var E,$,M,j,re,ne,ue={},qe,$e,Mt,Zr;;){if(M=a[a.length-1],this.defaultActions[M]?j=this.defaultActions[M]:((E===null||typeof E>"u")&&(E=b()),j=l[M]&&l[M][E]),typeof j>"u"||!j.length||!j[0]){var ya="";if(!h){Zr=[];for(qe in l[M])this.terminals_[qe]&&qe>2&&Zr.push("'"+this.terminals_[qe]+"'");this.lexer.showPosition?ya="Parse error on line "+(f+1)+`:
54
+ `)}return p}else throw new qt.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}s(n,"invokePartialWrapper");var i={strict:s(function(u,c,l){if(!u||!(c in u))throw new qt.default('"'+c+'" not defined in '+u,{loc:l});return i.lookupProperty(u,c)},"strict"),lookupProperty:s(function(u,c){var l=u[c];if(l==null||Object.prototype.hasOwnProperty.call(u,c)||V_.resultIsAllowed(l,i.protoAccessControl,c))return l},"lookupProperty"),lookup:s(function(u,c){for(var l=u.length,p=0;p<l;p++){var f=u[p]&&i.lookupProperty(u[p],c);if(f!=null)return u[p][c]}},"lookup"),lambda:s(function(u,c){return typeof u=="function"?u.call(c):u},"lambda"),escapeExpression:Nt.escapeExpression,invokePartial:n,fn:s(function(u){var c=e[u];return c.decorator=e[u+"_d"],c},"fn"),programs:[],program:s(function(u,c,l,p,f){var d=this.programs[u],h=this.fn(u);return c||f||p||l?d=Ys(this,u,h,c,l,p,f):d||(d=this.programs[u]=Ys(this,u,h)),d},"program"),data:s(function(u,c){for(;u&&c--;)u=u._parent;return u},"data"),mergeIfNeeded:s(function(u,c){var l=u||c;return u&&c&&u!==c&&(l=Nt.extend({},c,u)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function o(a){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=u.data;o._setup(u),!u.partial&&e.useData&&(c=y3(a,c));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(u.depths?l=a!=u.depths[0]?[a].concat(u.depths):u.depths:l=[a]);function f(d){return""+e.main(i,d,i.helpers,i.partials,c,p,l)}return s(f,"main"),f=H_(e.main,f,i,u.depths||[],c,p),f(a,u)}return s(o,"ret"),o.isTop=!0,o._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 u=Nt.extend({},t.helpers,a.helpers);v3(u,i),i.helpers=u,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Nt.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=V_.createProtoAccessControl(a);var c=a.allowCallsToHelperMissing||r;F_.moveHelperToHooks(i,"helperMissing",c),F_.moveHelperToHooks(i,"blockHelperMissing",c)}},o._child=function(a,u,c,l){if(e.useBlockParams&&!c)throw new qt.default("must pass block params");if(e.useDepths&&!l)throw new qt.default("must pass parent depths");return Ys(i,a,e[a],u,0,c,l)},o}s(h3,"template");function Ys(e,t,r,n,i,o,a){function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&c!=a[0]&&!(c===e.nullContext&&a[0]===null)&&(p=[c].concat(a)),r(e,c,e.helpers,e.partials,l.data||n,o&&[l.blockParams].concat(o),p)}return s(u,"prog"),u=H_(r,u,e,a,n,o),u.program=t,u.depth=a?a.length:0,u.blockParams=i||0,u}s(Ys,"wrapProgram");function m3(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}s(m3,"resolvePartial");function g3(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!==B_&&function(){r.data=jt.createFrame(r.data);var o=r.fn;i=r.data["partial-block"]=s(function(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=jt.createFrame(c.data),c.data["partial-block"]=n,o(u,c)},"partialBlockWrapper"),o.partials&&(r.partials=Nt.extend({},r.partials,o.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new qt.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}s(g3,"invokePartial");function B_(){return""}s(B_,"noop");function y3(e,t){return(!t||!("root"in t))&&(t=t?jt.createFrame(t):{},t.root=e),t}s(y3,"initData");function H_(e,t,r,n,i,o){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,o,n),Nt.extend(t,a)}return t}s(H_,"executeDecorators");function v3(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=_3(n,t)})}s(v3,"wrapHelpersToPassLookupProperty");function _3(e,t){var r=t.lookupProperty;return p3.wrapHelper(e,function(n){return Nt.extend({lookupProperty:r},n)})}s(_3,"passLookupPropertyOption")});var Zf=m((Qs,z_)=>{"use strict";Qs.__esModule=!0;Qs.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}};z_.exports=Qs.default});var Y_=m((Js,W_)=>{"use strict";Js.__esModule=!0;function Wf(e){return e&&e.__esModule?e:{default:e}}s(Wf,"_interopRequireDefault");function Yf(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}s(Yf,"_interopRequireWildcard");var S3=Ks(),G_=Yf(S3),b3=D_(),P3=Wf(b3),$3=Be(),O3=Wf($3),E3=Pe(),Kf=Yf(E3),x3=U_(),Z_=Yf(x3),w3=Zf(),A3=Wf(w3);function K_(){var e=new G_.HandlebarsEnvironment;return Kf.extend(e,G_),e.SafeString=P3.default,e.Exception=O3.default,e.Utils=Kf,e.escapeExpression=Kf.escapeExpression,e.VM=Z_,e.template=function(t){return Z_.template(t,e)},e}s(K_,"create");var ro=K_();ro.create=K_;A3.default(ro);ro.default=ro;Js.default=ro;W_.exports=Js.default});var Qf=m((Xs,J_)=>{"use strict";Xs.__esModule=!0;var Q_={helpers:{helperExpression:s(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:s(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:s(function(t){return t.parts.length===1&&!Q_.helpers.scopedId(t)&&!t.depth},"simpleId")}};Xs.default=Q_;J_.exports=Xs.default});var eS=m((ea,X_)=>{"use strict";ea.__esModule=!0;var I3=function(){var e={trace:s(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:s(function(i,o,a,u,c,l,p){var f=l.length-1;switch(c){case 1:return l[f-1];case 2:this.$=u.prepareProgram(l[f]);break;case 3:this.$=l[f];break;case 4:this.$=l[f];break;case 5:this.$=l[f];break;case 6:this.$=l[f];break;case 7:this.$=l[f];break;case 8:this.$=l[f];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(l[f]),strip:u.stripFlags(l[f],l[f]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(l[f-2],l[f-1],l[f],this._$);break;case 12:this.$={path:l[f-3],params:l[f-2],hash:l[f-1]};break;case 13:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!0,this._$);break;case 15:this.$={open:l[f-5],path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 16:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 17:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:u.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=u.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=u.prepareProgram([d],l[f-1].loc);h.chained=!0,this.$={strip:l[f-2].strip,program:h,chain:!0};break;case 20:this.$=l[f];break;case 21:this.$={path:l[f-1],strip:u.stripFlags(l[f-2],l[f])};break;case 22:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[f-3],params:l[f-2],hash:l[f-1],indent:"",strip:u.stripFlags(l[f-4],l[f]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(l[f-2],l[f-1],l[f],this._$);break;case 26:this.$={path:l[f-3],params:l[f-2],hash:l[f-1],strip:u.stripFlags(l[f-4],l[f])};break;case 27:this.$=l[f];break;case 28:this.$=l[f];break;case 29:this.$={type:"SubExpression",path:l[f-3],params:l[f-2],hash:l[f-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(l[f-2]),value:l[f],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(l[f-1]);break;case 33:this.$=l[f];break;case 34:this.$=l[f];break;case 35:this.$={type:"StringLiteral",value:l[f],original:l[f],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=u.preparePath(!0,l[f],this._$);break;case 43:this.$=u.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:u.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:u.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);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:s(function(i,o){throw new Error(i)},"parseError"),parse:s(function(i){var o=this,a=[0],u=[null],c=[],l=this.table,p="",f=0,d=0,h=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;c.push(v);var _=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function S(ot){a.length=a.length-2*ot,u.length=u.length-ot,c.length=c.length-ot}s(S,"popStack");function b(){var ot;return ot=o.lexer.lex()||1,typeof ot!="number"&&(ot=o.symbols_[ot]||ot),ot}s(b,"lex");for(var E,$,M,j,re,ne,ue={},qe,$e,Dt,Zr;;){if(M=a[a.length-1],this.defaultActions[M]?j=this.defaultActions[M]:((E===null||typeof E>"u")&&(E=b()),j=l[M]&&l[M][E]),typeof j>"u"||!j.length||!j[0]){var va="";if(!h){Zr=[];for(qe in l[M])this.terminals_[qe]&&qe>2&&Zr.push("'"+this.terminals_[qe]+"'");this.lexer.showPosition?va="Parse error on line "+(f+1)+`:
55
55
  `+this.lexer.showPosition()+`
56
- Expecting `+Zr.join(", ")+", got '"+(this.terminals_[E]||E)+"'":ya="Parse error on line "+(f+1)+": Unexpected "+(E==1?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(ya,{text:this.lexer.match,token:this.terminals_[E]||E,line:this.lexer.yylineno,loc:v,expected:Zr})}}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+E);switch(j[0]){case 1:a.push(E),u.push(this.lexer.yytext),c.push(this.lexer.yylloc),a.push(j[1]),E=null,$?(E=$,$=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,v=this.lexer.yylloc,h>0&&h--);break;case 2:if($e=this.productions_[j[1]][1],ue.$=u[u.length-$e],ue._$={first_line:c[c.length-($e||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-($e||1)].first_column,last_column:c[c.length-1].last_column},_&&(ue._$.range=[c[c.length-($e||1)].range[0],c[c.length-1].range[1]]),ne=this.performAction.call(ue,p,d,f,this.yy,j[1],u,c),typeof ne<"u")return ne;$e&&(a=a.slice(0,-1*$e*2),u=u.slice(0,-1*$e),c=c.slice(0,-1*$e)),a.push(this.productions_[j[1]][0]),u.push(ue.$),c.push(ue._$),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:s(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);else throw new Error(o)},"parseError"),setInput:s(function(o){return this._input=o,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:s(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.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),o},"input"),unput:s(function(o){var a=o.length,u=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var c=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),u.length-1&&(this.yylineno-=u.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:u?(u.length===c.length?this.yylloc.first_column:0)+c[c.length-u.length].length-u[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:s(function(){return this._more=!0,this},"more"),less:s(function(o){this.unput(this.match.slice(o))},"less"),pastInput:s(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
56
+ Expecting `+Zr.join(", ")+", got '"+(this.terminals_[E]||E)+"'":va="Parse error on line "+(f+1)+": Unexpected "+(E==1?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(va,{text:this.lexer.match,token:this.terminals_[E]||E,line:this.lexer.yylineno,loc:v,expected:Zr})}}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+E);switch(j[0]){case 1:a.push(E),u.push(this.lexer.yytext),c.push(this.lexer.yylloc),a.push(j[1]),E=null,$?(E=$,$=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,v=this.lexer.yylloc,h>0&&h--);break;case 2:if($e=this.productions_[j[1]][1],ue.$=u[u.length-$e],ue._$={first_line:c[c.length-($e||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-($e||1)].first_column,last_column:c[c.length-1].last_column},_&&(ue._$.range=[c[c.length-($e||1)].range[0],c[c.length-1].range[1]]),ne=this.performAction.call(ue,p,d,f,this.yy,j[1],u,c),typeof ne<"u")return ne;$e&&(a=a.slice(0,-1*$e*2),u=u.slice(0,-1*$e),c=c.slice(0,-1*$e)),a.push(this.productions_[j[1]][0]),u.push(ue.$),c.push(ue._$),Dt=l[a[a.length-2]][a[a.length-1]],a.push(Dt);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:s(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);else throw new Error(o)},"parseError"),setInput:s(function(o){return this._input=o,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:s(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.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),o},"input"),unput:s(function(o){var a=o.length,u=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var c=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),u.length-1&&(this.yylineno-=u.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:u?(u.length===c.length?this.yylloc.first_column:0)+c[c.length-u.length].length-u[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:s(function(){return this._more=!0,this},"more"),less:s(function(o){this.unput(this.match.slice(o))},"less"),pastInput:s(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
57
57
  `+a+"^"},"showPosition"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,u,c,l,p;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),d=0;d<f.length&&(u=this._input.match(this.rules[f[d]]),!(u&&(!a||u[0].length>a[0].length)&&(a=u,c=d,!this.options.flex)));d++);return a?(p=a[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.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],o=this.performAction.call(this,this.yy,this,f[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||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:s(function(){var o=this.next();return typeof o<"u"?o:this.lex()},"lex"),begin:s(function(o){this.conditionStack.push(o)},"begin"),popState:s(function(){return this.conditionStack.pop()},"popState"),_currentRules:s(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:s(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:s(function(o){this.begin(o)},"begin")};return n.options={},n.performAction=s(function(o,a,u,c){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}s(l,"strip");var p=c;switch(u){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 s(r,"Parser"),r.prototype=e,e.Parser=r,new r}();Xs.default=A3;J_.exports=Xs.default});var na=m((ra,rS)=>{"use strict";ra.__esModule=!0;function I3(e){return e&&e.__esModule?e:{default:e}}s(I3,"_interopRequireDefault");var k3=Be(),Qf=I3(k3);function ea(){this.parents=[]}s(ea,"Visitor");ea.prototype={constructor:ea,mutating:!1,acceptKey:s(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!ea.prototype[n.type])throw new Qf.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:s(function(t,r){if(this.acceptKey(t,r),!t[r])throw new Qf.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:s(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:s(function(t){if(t){if(!this[t.type])throw new Qf.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:s(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:ta,Decorator:ta,BlockStatement:eS,DecoratorBlock:eS,PartialStatement:tS,PartialBlockStatement:s(function(t){tS.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:s(function(){},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:ta,PathExpression:s(function(){},"PathExpression"),StringLiteral:s(function(){},"StringLiteral"),NumberLiteral:s(function(){},"NumberLiteral"),BooleanLiteral:s(function(){},"BooleanLiteral"),UndefinedLiteral:s(function(){},"UndefinedLiteral"),NullLiteral:s(function(){},"NullLiteral"),Hash:s(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:s(function(t){this.acceptRequired(t,"value")},"HashPair")};function ta(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(ta,"visitSubExpression");function eS(e){ta.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}s(eS,"visitBlock");function tS(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(tS,"visitPartial");ra.default=ea;rS.exports=ra.default});var iS=m((ia,nS)=>{"use strict";ia.__esModule=!0;function R3(e){return e&&e.__esModule?e:{default:e}}s(R3,"_interopRequireDefault");var T3=na(),N3=R3(T3);function Ot(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}s(Ot,"WhitespaceControl");Ot.prototype=new N3.default;Ot.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,o=n.length;i<o;i++){var a=n[i],u=this.accept(a);if(u){var c=Jf(n,i,r),l=Xf(n,i,r),p=u.openStandalone&&c,f=u.closeStandalone&&l,d=u.inlineStandalone&&c&&l;u.close&&Vr(n,i,!0),u.open&&fr(n,i,!0),t&&d&&(Vr(n,i),fr(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Vr((a.program||a.inverse).body),fr(n,i)),t&&f&&(Vr(n,i),fr((a.inverse||a.program).body))}}return e};Ot.prototype.BlockStatement=Ot.prototype.DecoratorBlock=Ot.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 o={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:Xf(t.body),closeStandalone:Jf((n||t).body)};if(e.openStrip.close&&Vr(t.body,null,!0),r){var a=e.inverseStrip;a.open&&fr(t.body,null,!0),a.close&&Vr(n.body,null,!0),e.closeStrip.open&&fr(i.body,null,!0),!this.options.ignoreStandalone&&Jf(t.body)&&Xf(n.body)&&(fr(t.body),Vr(n.body))}else e.closeStrip.open&&fr(t.body,null,!0);return o};Ot.prototype.Decorator=Ot.prototype.MustacheStatement=function(e){return e.strip};Ot.prototype.PartialStatement=Ot.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function Jf(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)}s(Jf,"isPrevWhitespace");function Xf(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)}s(Xf,"isNextWhitespace");function Vr(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}}s(Vr,"omitRight");function fr(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}}s(fr,"omitLeft");ia.default=Ot;nS.exports=ia.default});var oS=m(He=>{"use strict";He.__esModule=!0;He.SourceLocation=j3;He.id=M3;He.stripFlags=D3;He.stripComment=L3;He.preparePath=F3;He.prepareMustache=V3;He.prepareRawBlock=B3;He.prepareBlock=H3;He.prepareProgram=U3;He.preparePartialBlock=z3;function C3(e){return e&&e.__esModule?e:{default:e}}s(C3,"_interopRequireDefault");var q3=Be(),ep=C3(q3);function tp(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new ep.default(e.path.original+" doesn't match "+t,r)}}s(tp,"validateClose");function j3(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}}s(j3,"SourceLocation");function M3(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}s(M3,"id");function D3(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}s(D3,"stripFlags");function L3(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}s(L3,"stripComment");function F3(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],o=0,a=0,u=t.length;a<u;a++){var c=t[a].part,l=t[a].original!==c;if(n+=(t[a].separator||"")+c,!l&&(c===".."||c==="."||c==="this")){if(i.length>0)throw new ep.default("Invalid path: "+n,{loc:r});c===".."&&o++}else i.push(c)}return{type:"PathExpression",data:e,depth:o,parts:i,original:n,loc:r}}s(F3,"preparePath");function V3(e,t,r,n,i,o){var a=n.charAt(3)||n.charAt(2),u=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:u,strip:i,loc:this.locInfo(o)}}s(V3,"prepareMustache");function B3(e,t,r,n){tp(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}}s(B3,"prepareRawBlock");function H3(e,t,r,n,i,o){n&&n.path&&tp(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var u=void 0,c=void 0;if(r){if(a)throw new ep.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,u=r.program}return i&&(i=u,u=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:u,openStrip:e.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(o)}}s(H3,"prepareBlock");function U3(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}}s(U3,"prepareProgram");function z3(e,t,r,n){return tp(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)}}s(z3,"preparePartialBlock")});var uS=m(no=>{"use strict";no.__esModule=!0;no.parseWithoutProcessing=aS;no.parse=X3;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}s(G3,"_interopRequireWildcard");function sS(e){return e&&e.__esModule?e:{default:e}}s(sS,"_interopRequireDefault");var Z3=X_(),rp=sS(Z3),K3=iS(),W3=sS(K3),Y3=oS(),Q3=G3(Y3),J3=Pe();no.parser=rp.default;var oa={};J3.extend(oa,Q3);function aS(e,t){if(e.type==="Program")return e;rp.default.yy=oa,oa.locInfo=function(n){return new oa.SourceLocation(t&&t.srcName,n)};var r=rp.default.parse(e);return r}s(aS,"parseWithoutProcessing");function X3(e,t){var r=aS(e,t),n=new W3.default(t);return n.accept(r)}s(X3,"parse")});var pS=m(ao=>{"use strict";ao.__esModule=!0;ao.Compiler=np;ao.precompile=nN;ao.compile=iN;function lS(e){return e&&e.__esModule?e:{default:e}}s(lS,"_interopRequireDefault");var eN=Be(),oo=lS(eN),so=Pe(),tN=Yf(),io=lS(tN),rN=[].slice;function np(){}s(np,"Compiler");np.prototype={compiler:np,equals:s(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],o=t.opcodes[n];if(i.opcode!==o.opcode||!fS(i.args,o.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:s(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=so.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:s(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:s(function(t){if(!this[t.type])throw new oo.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:s(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:s(function(t){cS(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:s(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:s(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 oo.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,o=t.name.type==="SubExpression";o&&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",o,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:s(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:s(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:s(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:s(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:s(function(t){cS(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:s(function(t,r,n){var i=t.path,o=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",o,a)},"ambiguousSexpr"),simpleSexpr:s(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:s(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),o=t.path,a=o.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new oo.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",i.length,o.original,io.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:s(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=io.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:s(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:s(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:s(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:s(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:s(function(t){this.opcodes.push({opcode:t,args:rN.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:s(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:s(function(t){var r=io.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&io.default.helpers.helperExpression(t),o=!n&&(i||r);if(o&&!i){var a=t.path.parts[0],u=this.options;u.knownHelpers[a]?i=!0:u.knownHelpersOnly&&(o=!1)}return i?"helper":o?"ambiguous":"simple"},"classifySexpr"),pushParams:s(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:s(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&&!io.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:s(function(t,r,n,i){var o=t.params;return this.pushParams(o),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),o},"setupFullMustacheParams"),blockParamIndex:s(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],o=i&&so.indexOf(i,t);if(i&&o>=0)return[r,o]}},"blockParamIndex")};function nN(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new oo.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)}s(nN,"precompile");function iN(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new oo.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=so.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),u=new r.Compiler().compile(a,t),c=new r.JavaScriptCompiler().compile(u,t,void 0,!0);return r.template(c)}s(i,"compileInput");function o(a,u){return n||(n=i()),n.call(this,a,u)}return s(o,"ret"),o._setup=function(a){return n||(n=i()),n._setup(a)},o._child=function(a,u,c,l){return n||(n=i()),n._child(a,u,c,l)},o}s(iN,"compile");function fS(e,t){if(e===t)return!0;if(so.isArray(e)&&so.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!fS(e[r],t[r]))return!1;return!0}}s(fS,"argEquals");function cS(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}}}s(cS,"transformLiteralToPath")});var hS=m(ip=>{var dS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");ip.encode=function(e){if(0<=e&&e<dS.length)return dS[e];throw new TypeError("Must be between 0 and 63: "+e)};ip.decode=function(e){var t=65,r=90,n=97,i=122,o=48,a=57,u=43,c=47,l=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:o<=e&&e<=a?e-o+p:e==u?62:e==c?63:-1}});var ap=m(sp=>{var mS=hS(),op=5,gS=1<<op,yS=gS-1,vS=gS;function oN(e){return e<0?(-e<<1)+1:(e<<1)+0}s(oN,"toVLQSigned");function sN(e){var t=(e&1)===1,r=e>>1;return t?-r:r}s(sN,"fromVLQSigned");sp.encode=s(function(t){var r="",n,i=oN(t);do n=i&yS,i>>>=op,i>0&&(n|=vS),r+=mS.encode(n);while(i>0);return r},"base64VLQ_encode");sp.decode=s(function(t,r,n){var i=t.length,o=0,a=0,u,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=mS.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));u=!!(c&vS),c&=yS,o=o+(c<<a),a+=op}while(u);n.value=sN(o),n.rest=r},"base64VLQ_decode")});var Bn=m(ge=>{function aN(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}s(aN,"getArg");ge.getArg=aN;var _S=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,uN=/^data:.+\,.+$/;function uo(e){var t=e.match(_S);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}s(uo,"urlParse");ge.urlParse=uo;function Fn(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}s(Fn,"urlGenerate");ge.urlGenerate=Fn;function up(e){var t=e,r=uo(e);if(r){if(!r.path)return e;t=r.path}for(var n=ge.isAbsolute(t),i=t.split(/\/+/),o,a=0,u=i.length-1;u>=0;u--)o=i[u],o==="."?i.splice(u,1):o===".."?a++:a>0&&(o===""?(i.splice(u+1,a),a=0):(i.splice(u,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Fn(r)):t}s(up,"normalize");ge.normalize=up;function SS(e,t){e===""&&(e="."),t===""&&(t=".");var r=uo(t),n=uo(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Fn(r);if(r||t.match(uN))return t;if(n&&!n.host&&!n.path)return n.host=t,Fn(n);var i=t.charAt(0)==="/"?t:up(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Fn(n)):i}s(SS,"join");ge.join=SS;ge.isAbsolute=function(e){return e.charAt(0)==="/"||_S.test(e)};function cN(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)}s(cN,"relative");ge.relative=cN;var bS=function(){var e=Object.create(null);return!("__proto__"in e)}();function PS(e){return e}s(PS,"identity");function lN(e){return $S(e)?"$"+e:e}s(lN,"toSetString");ge.toSetString=bS?PS:lN;function fN(e){return $S(e)?e.slice(1):e}s(fN,"fromSetString");ge.fromSetString=bS?PS:fN;function $S(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}s($S,"isProtoString");function pN(e,t,r){var n=Vn(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:Vn(e.name,t.name)}s(pN,"compareByOriginalPositions");ge.compareByOriginalPositions=pN;function dN(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Vn(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Vn(e.name,t.name)}s(dN,"compareByGeneratedPositionsDeflated");ge.compareByGeneratedPositionsDeflated=dN;function Vn(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}s(Vn,"strcmp");function hN(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Vn(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Vn(e.name,t.name)}s(hN,"compareByGeneratedPositionsInflated");ge.compareByGeneratedPositionsInflated=hN;function mN(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}s(mN,"parseSourceMapInput");ge.parseSourceMapInput=mN;function gN(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=uo(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=SS(Fn(n),t)}return up(t)}s(gN,"computeSourceURL");ge.computeSourceURL=gN});var fp=m(OS=>{var cp=Bn(),lp=Object.prototype.hasOwnProperty,Br=typeof Map<"u";function jt(){this._array=[],this._set=Br?new Map:Object.create(null)}s(jt,"ArraySet");jt.fromArray=s(function(t,r){for(var n=new jt,i=0,o=t.length;i<o;i++)n.add(t[i],r);return n},"ArraySet_fromArray");jt.prototype.size=s(function(){return Br?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");jt.prototype.add=s(function(t,r){var n=Br?t:cp.toSetString(t),i=Br?this.has(t):lp.call(this._set,n),o=this._array.length;(!i||r)&&this._array.push(t),i||(Br?this._set.set(t,o):this._set[n]=o)},"ArraySet_add");jt.prototype.has=s(function(t){if(Br)return this._set.has(t);var r=cp.toSetString(t);return lp.call(this._set,r)},"ArraySet_has");jt.prototype.indexOf=s(function(t){if(Br){var r=this._set.get(t);if(r>=0)return r}else{var n=cp.toSetString(t);if(lp.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");jt.prototype.at=s(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=s(function(){return this._array.slice()},"ArraySet_toArray");OS.ArraySet=jt});var wS=m(xS=>{var ES=Bn();function yN(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,o=t.generatedColumn;return n>r||n==r&&o>=i||ES.compareByGeneratedPositionsInflated(e,t)<=0}s(yN,"generatedPositionAfter");function sa(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}s(sa,"MappingList");sa.prototype.unsortedForEach=s(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");sa.prototype.add=s(function(t){yN(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");sa.prototype.toArray=s(function(){return this._sorted||(this._array.sort(ES.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");xS.MappingList=sa});var pp=m(AS=>{var co=ap(),Q=Bn(),aa=fp().ArraySet,vN=wS().MappingList;function Ue(e){e||(e={}),this._file=Q.getArg(e,"file",null),this._sourceRoot=Q.getArg(e,"sourceRoot",null),this._skipValidation=Q.getArg(e,"skipValidation",!1),this._sources=new aa,this._names=new aa,this._mappings=new vN,this._sourcesContents=null}s(Ue,"SourceMapGenerator");Ue.prototype._version=3;Ue.fromSourceMap=s(function(t){var r=t.sourceRoot,n=new Ue({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var o={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(o.source=i.source,r!=null&&(o.source=Q.relative(r,o.source)),o.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(o.name=i.name)),n.addMapping(o)}),t.sources.forEach(function(i){var o=i;r!==null&&(o=Q.relative(r,i)),n._sources.has(o)||n._sources.add(o);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");Ue.prototype.addMapping=s(function(t){var r=Q.getArg(t,"generated"),n=Q.getArg(t,"original",null),i=Q.getArg(t,"source",null),o=Q.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,o),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:o})},"SourceMapGenerator_addMapping");Ue.prototype.setSourceContent=s(function(t,r){var n=t;this._sourceRoot!=null&&(n=Q.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Q.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Q.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");Ue.prototype.applySourceMap=s(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 o=this._sourceRoot;o!=null&&(i=Q.relative(o,i));var a=new aa,u=new aa;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var l=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,n!=null&&(c.source=Q.join(n,c.source)),o!=null&&(c.source=Q.relative(o,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var p=c.source;p!=null&&!a.has(p)&&a.add(p);var f=c.name;f!=null&&!u.has(f)&&u.add(f)},this),this._sources=a,this._names=u,t.sources.forEach(function(c){var l=t.sourceContentFor(c);l!=null&&(n!=null&&(c=Q.join(n,c)),o!=null&&(c=Q.relative(o,c)),this.setSourceContent(c,l))},this)},"SourceMapGenerator_applySourceMap");Ue.prototype._validateMapping=s(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");Ue.prototype._serializeMappings=s(function(){for(var t=0,r=1,n=0,i=0,o=0,a=0,u="",c,l,p,f,d=this._mappings.toArray(),h=0,g=d.length;h<g;h++){if(l=d[h],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(h>0){if(!Q.compareByGeneratedPositionsInflated(l,d[h-1]))continue;c+=","}c+=co.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),c+=co.encode(f-a),a=f,c+=co.encode(l.originalLine-1-i),i=l.originalLine-1,c+=co.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),c+=co.encode(p-o),o=p)),u+=c}return u},"SourceMapGenerator_serializeMappings");Ue.prototype._generateSourcesContent=s(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Q.relative(r,n));var i=Q.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");Ue.prototype.toJSON=s(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");Ue.prototype.toString=s(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");AS.SourceMapGenerator=Ue});var IS=m(Hr=>{Hr.GREATEST_LOWER_BOUND=1;Hr.LEAST_UPPER_BOUND=2;function dp(e,t,r,n,i,o){var a=Math.floor((t-e)/2)+e,u=i(r,n[a],!0);return u===0?a:u>0?t-a>1?dp(a,t,r,n,i,o):o==Hr.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?dp(e,a,r,n,i,o):o==Hr.LEAST_UPPER_BOUND?a:e<0?-1:e}s(dp,"recursiveSearch");Hr.search=s(function(t,r,n,i){if(r.length===0)return-1;var o=dp(-1,r.length,t,r,n,i||Hr.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o},"search")});var RS=m(kS=>{function hp(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}s(hp,"swap");function _N(e,t){return Math.round(e+Math.random()*(t-e))}s(_N,"randomIntInRange");function mp(e,t,r,n){if(r<n){var i=_N(r,n),o=r-1;hp(e,i,n);for(var a=e[n],u=r;u<n;u++)t(e[u],a)<=0&&(o+=1,hp(e,o,u));hp(e,o+1,u);var c=o+1;mp(e,t,r,c-1),mp(e,t,c+1,n)}}s(mp,"doQuickSort");kS.quickSort=function(e,t){mp(e,t,0,e.length-1)}});var NS=m(ua=>{var P=Bn(),gp=IS(),Hn=fp().ArraySet,SN=ap(),lo=RS().quickSort;function U(e,t){var r=e;return typeof e=="string"&&(r=P.parseSourceMapInput(e)),r.sections!=null?new it(r,t):new ae(r,t)}s(U,"SourceMapConsumer");U.fromSourceMap=function(e,t){return ae.fromSourceMap(e,t)};U.prototype._version=3;U.prototype.__generatedMappings=null;Object.defineProperty(U.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});U.prototype.__originalMappings=null;Object.defineProperty(U.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});U.prototype._charIsMappingSeparator=s(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");U.prototype._parseMappings=s(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");U.GENERATED_ORDER=1;U.ORIGINAL_ORDER=2;U.GREATEST_LOWER_BOUND=1;U.LEAST_UPPER_BOUND=2;U.prototype.eachMapping=s(function(t,r,n){var i=r||null,o=n||U.GENERATED_ORDER,a;switch(o){case U.GENERATED_ORDER:a=this._generatedMappings;break;case U.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;a.map(function(c){var l=c.source===null?null:this._sources.at(c.source);return l=P.computeSourceURL(u,l,this._sourceMapURL),{source:l,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");U.prototype.allGeneratedPositionsFor=s(function(t){var r=P.getArg(t,"line"),n={source:P.getArg(t,"source"),originalLine:r,originalColumn:P.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,gp.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(t.column===void 0)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:P.getArg(a,"generatedLine",null),column:P.getArg(a,"generatedColumn",null),lastColumn:P.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var c=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==c;)i.push({line:P.getArg(a,"generatedLine",null),column:P.getArg(a,"generatedColumn",null),lastColumn:P.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return i},"SourceMapConsumer_allGeneratedPositionsFor");ua.SourceMapConsumer=U;function ae(e,t){var r=e;typeof e=="string"&&(r=P.parseSourceMapInput(e));var n=P.getArg(r,"version"),i=P.getArg(r,"sources"),o=P.getArg(r,"names",[]),a=P.getArg(r,"sourceRoot",null),u=P.getArg(r,"sourcesContent",null),c=P.getArg(r,"mappings"),l=P.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=P.normalize(a)),i=i.map(String).map(P.normalize).map(function(p){return a&&P.isAbsolute(a)&&P.isAbsolute(p)?P.relative(a,p):p}),this._names=Hn.fromArray(o.map(String),!0),this._sources=Hn.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return P.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=u,this._mappings=c,this._sourceMapURL=t,this.file=l}s(ae,"BasicSourceMapConsumer");ae.prototype=Object.create(U.prototype);ae.prototype.consumer=U;ae.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=P.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};ae.fromSourceMap=s(function(t,r){var n=Object.create(ae.prototype),i=n._names=Hn.fromArray(t._names.toArray(),!0),o=n._sources=Hn.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(h){return P.computeSourceURL(n.sourceRoot,h,r)});for(var a=t._mappings.toArray().slice(),u=n.__generatedMappings=[],c=n.__originalMappings=[],l=0,p=a.length;l<p;l++){var f=a[l],d=new TS;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=o.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),c.push(d)),u.push(d)}return lo(n.__originalMappings,P.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");ae.prototype._version=3;Object.defineProperty(ae.prototype,"sources",{get:s(function(){return this._absoluteSources.slice()},"get")});function TS(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s(TS,"Mapping");ae.prototype._parseMappings=s(function(t,r){for(var n=1,i=0,o=0,a=0,u=0,c=0,l=t.length,p=0,f={},d={},h=[],g=[],y,v,_,S,b;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(y=new TS,y.generatedLine=n,S=p;S<l&&!this._charIsMappingSeparator(t,S);S++);if(v=t.slice(p,S),_=f[v],_)p+=v.length;else{for(_=[];p<S;)SN.decode(t,p,d),b=d.value,p=d.rest,_.push(b);if(_.length===2)throw new Error("Found a source, but no line and column");if(_.length===3)throw new Error("Found a source and line, but no column");f[v]=_}y.generatedColumn=i+_[0],i=y.generatedColumn,_.length>1&&(y.source=u+_[1],u+=_[1],y.originalLine=o+_[2],o=y.originalLine,y.originalLine+=1,y.originalColumn=a+_[3],a=y.originalColumn,_.length>4&&(y.name=c+_[4],c+=_[4])),g.push(y),typeof y.originalLine=="number"&&h.push(y)}lo(g,P.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,lo(h,P.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");ae.prototype._findMapping=s(function(t,r,n,i,o,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 gp.search(t,r,o,a)},"SourceMapConsumer_findMapping");ae.prototype.computeColumnSpans=s(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");ae.prototype.originalPositionFor=s(function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",P.compareByGeneratedPositionsDeflated,P.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var o=P.getArg(i,"source",null);o!==null&&(o=this._sources.at(o),o=P.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=P.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,line:P.getArg(i,"originalLine",null),column:P.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");ae.prototype.hasContentsOfAllSources=s(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");ae.prototype.sourceContentFor=s(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=P.relative(this.sourceRoot,i));var o;if(this.sourceRoot!=null&&(o=P.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||o.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");ae.prototype.generatedPositionFor=s(function(t){var r=P.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:P.getArg(t,"line"),originalColumn:P.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,P.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:P.getArg(o,"generatedLine",null),column:P.getArg(o,"generatedColumn",null),lastColumn:P.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");ua.BasicSourceMapConsumer=ae;function it(e,t){var r=e;typeof e=="string"&&(r=P.parseSourceMapInput(e));var n=P.getArg(r,"version"),i=P.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Hn,this._names=new Hn;var o={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 u=P.getArg(a,"offset"),c=P.getArg(u,"line"),l=P.getArg(u,"column");if(c<o.line||c===o.line&&l<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=u,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new U(P.getArg(a,"map"),t)}})}s(it,"IndexedSourceMapConsumer");it.prototype=Object.create(U.prototype);it.prototype.constructor=U;it.prototype._version=3;Object.defineProperty(it.prototype,"sources",{get:s(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")});it.prototype.originalPositionFor=s(function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=gp.search(r,this._sections,function(o,a){var u=o.generatedLine-a.generatedOffset.generatedLine;return u||o.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");it.prototype.hasContentsOfAllSources=s(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");it.prototype.sourceContentFor=s(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],o=i.consumer.sourceContentFor(t,!0);if(o)return o}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");it.prototype.generatedPositionFor=s(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(P.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var o={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");it.prototype._parseMappings=s(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],o=i.consumer._generatedMappings,a=0;a<o.length;a++){var u=o[a],c=i.consumer._sources.at(u.source);c=P.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=i.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var p={source:c,generatedLine:u.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(i.generatedOffset.generatedLine===u.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}lo(this.__generatedMappings,P.compareByGeneratedPositionsDeflated),lo(this.__originalMappings,P.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");ua.IndexedSourceMapConsumer=it});var qS=m(CS=>{var bN=pp().SourceMapGenerator,ca=Bn(),PN=/(\r?\n)/,$N=10,Un="$$$isSourceNode$$$";function Ce(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[Un]=!0,n!=null&&this.add(n)}s(Ce,"SourceNode");Ce.fromStringWithSourceMap=s(function(t,r,n){var i=new Ce,o=t.split(PN),a=0,u=s(function(){var d=g(),h=g()||"";return d+h;function g(){return a<o.length?o[a++]:void 0}},"shiftNextLine"),c=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(c<d.generatedLine)f(p,u()),c++,l=0;else{var h=o[a]||"",g=h.substr(0,d.generatedColumn-l);o[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,g),p=d;return}for(;c<d.generatedLine;)i.add(u()),c++;if(l<d.generatedColumn){var h=o[a]||"";i.add(h.substr(0,d.generatedColumn)),o[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<o.length&&(p&&f(p,u()),i.add(o.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=ca.join(n,d)),i.setSourceContent(d,h))}),i;function f(d,h){if(d===null||d.source===void 0)i.add(h);else{var g=n?ca.join(n,d.source):d.source;i.add(new Ce(d.originalLine,d.originalColumn,g,h,d.name))}}s(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Ce.prototype.add=s(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Un]||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");Ce.prototype.prepend=s(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Un]||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");Ce.prototype.walk=s(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Un]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Ce.prototype.join=s(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");Ce.prototype.replaceRight=s(function(t,r){var n=this.children[this.children.length-1];return n[Un]?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");Ce.prototype.setSourceContent=s(function(t,r){this.sourceContents[ca.toSetString(t)]=r},"SourceNode_setSourceContent");Ce.prototype.walkSourceContents=s(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Un]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(ca.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Ce.prototype.toString=s(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Ce.prototype.toStringWithSourceMap=s(function(t){var r={code:"",line:1,column:0},n=new bN(t),i=!1,o=null,a=null,u=null,c=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((o!==p.source||a!==p.line||u!==p.column||c!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),o=p.source,a=p.line,u=p.column,c=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),o=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===$N?(r.line++,r.column=0,f+1===d?(o=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");CS.SourceNode=Ce});var jS=m(la=>{la.SourceMapGenerator=pp().SourceMapGenerator;la.SourceMapConsumer=NS().SourceMapConsumer;la.SourceNode=qS().SourceNode});var FS=m((fa,LS)=>{"use strict";fa.__esModule=!0;var vp=Pe(),Ur=void 0;try{(typeof define!="function"||!define.amd)&&(MS=jS(),Ur=MS.SourceNode)}catch{}var MS;Ur||(Ur=s(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Ur.prototype={add:s(function(t){vp.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:s(function(t){vp.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:s(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:s(function(){return this.src},"toString")});function yp(e,t,r){if(vp.isArray(e)){for(var n=[],i=0,o=e.length;i<o;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}s(yp,"castChunk");function DS(e){this.srcFile=e,this.source=[]}s(DS,"CodeGen");DS.prototype={isEmpty:s(function(){return!this.source.length},"isEmpty"),prepend:s(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:s(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:s(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
59
- `])}),t},"merge"),each:s(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:s(function(){var t=this.currentLocation||{start:{}};return new Ur(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:s(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof Ur?t:(t=yp(t,this,r),new Ur(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:s(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:s(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:s(function(t){var r=this,n=[];Object.keys(t).forEach(function(o){var a=yp(t[o],r);a!=="undefined"&&n.push([r.quotedString(o),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:s(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(yp(t[n],this));return r},"generateList"),generateArray:s(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};fa.default=DS;LS.exports=fa.default});var zS=m((pa,US)=>{"use strict";pa.__esModule=!0;function HS(e){return e&&e.__esModule?e:{default:e}}s(HS,"_interopRequireDefault");var VS=Zs(),ON=Be(),_p=HS(ON),EN=Pe(),xN=FS(),BS=HS(xN);function zn(e){this.value=e}s(zn,"Literal");function Gn(){}s(Gn,"JavaScriptCompiler");Gn.prototype={nameLookup:s(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:s(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:s(function(){var t=VS.COMPILER_REVISION,r=VS.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:s(function(t,r,n){return EN.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:s(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:s(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:s(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 o=t.opcodes,a=void 0,u=void 0,c=void 0,l=void 0;for(c=0,l=o.length;c<l;c++)a=o[c],this.source.currentLocation=a.loc,u=u||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=u,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new _p.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:s(function(){var o=this.next();return typeof o<"u"?o:this.lex()},"lex"),begin:s(function(o){this.conditionStack.push(o)},"begin"),popState:s(function(){return this.conditionStack.pop()},"popState"),_currentRules:s(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:s(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:s(function(o){this.begin(o)},"begin")};return n.options={},n.performAction=s(function(o,a,u,c){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}s(l,"strip");var p=c;switch(u){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 s(r,"Parser"),r.prototype=e,e.Parser=r,new r}();ea.default=I3;X_.exports=ea.default});var ia=m((na,nS)=>{"use strict";na.__esModule=!0;function k3(e){return e&&e.__esModule?e:{default:e}}s(k3,"_interopRequireDefault");var R3=Be(),Jf=k3(R3);function ta(){this.parents=[]}s(ta,"Visitor");ta.prototype={constructor:ta,mutating:!1,acceptKey:s(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!ta.prototype[n.type])throw new Jf.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:s(function(t,r){if(this.acceptKey(t,r),!t[r])throw new Jf.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:s(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:s(function(t){if(t){if(!this[t.type])throw new Jf.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:s(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:ra,Decorator:ra,BlockStatement:tS,DecoratorBlock:tS,PartialStatement:rS,PartialBlockStatement:s(function(t){rS.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:s(function(){},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:ra,PathExpression:s(function(){},"PathExpression"),StringLiteral:s(function(){},"StringLiteral"),NumberLiteral:s(function(){},"NumberLiteral"),BooleanLiteral:s(function(){},"BooleanLiteral"),UndefinedLiteral:s(function(){},"UndefinedLiteral"),NullLiteral:s(function(){},"NullLiteral"),Hash:s(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:s(function(t){this.acceptRequired(t,"value")},"HashPair")};function ra(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(ra,"visitSubExpression");function tS(e){ra.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}s(tS,"visitBlock");function rS(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(rS,"visitPartial");na.default=ta;nS.exports=na.default});var oS=m((oa,iS)=>{"use strict";oa.__esModule=!0;function T3(e){return e&&e.__esModule?e:{default:e}}s(T3,"_interopRequireDefault");var C3=ia(),N3=T3(C3);function Ot(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}s(Ot,"WhitespaceControl");Ot.prototype=new N3.default;Ot.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,o=n.length;i<o;i++){var a=n[i],u=this.accept(a);if(u){var c=Xf(n,i,r),l=ep(n,i,r),p=u.openStandalone&&c,f=u.closeStandalone&&l,d=u.inlineStandalone&&c&&l;u.close&&Vr(n,i,!0),u.open&&fr(n,i,!0),t&&d&&(Vr(n,i),fr(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Vr((a.program||a.inverse).body),fr(n,i)),t&&f&&(Vr(n,i),fr((a.inverse||a.program).body))}}return e};Ot.prototype.BlockStatement=Ot.prototype.DecoratorBlock=Ot.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 o={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:ep(t.body),closeStandalone:Xf((n||t).body)};if(e.openStrip.close&&Vr(t.body,null,!0),r){var a=e.inverseStrip;a.open&&fr(t.body,null,!0),a.close&&Vr(n.body,null,!0),e.closeStrip.open&&fr(i.body,null,!0),!this.options.ignoreStandalone&&Xf(t.body)&&ep(n.body)&&(fr(t.body),Vr(n.body))}else e.closeStrip.open&&fr(t.body,null,!0);return o};Ot.prototype.Decorator=Ot.prototype.MustacheStatement=function(e){return e.strip};Ot.prototype.PartialStatement=Ot.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function Xf(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)}s(Xf,"isPrevWhitespace");function ep(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)}s(ep,"isNextWhitespace");function Vr(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}}s(Vr,"omitRight");function fr(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}}s(fr,"omitLeft");oa.default=Ot;iS.exports=oa.default});var sS=m(He=>{"use strict";He.__esModule=!0;He.SourceLocation=M3;He.id=D3;He.stripFlags=L3;He.stripComment=F3;He.preparePath=V3;He.prepareMustache=B3;He.prepareRawBlock=H3;He.prepareBlock=U3;He.prepareProgram=z3;He.preparePartialBlock=G3;function q3(e){return e&&e.__esModule?e:{default:e}}s(q3,"_interopRequireDefault");var j3=Be(),tp=q3(j3);function rp(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new tp.default(e.path.original+" doesn't match "+t,r)}}s(rp,"validateClose");function M3(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}}s(M3,"SourceLocation");function D3(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}s(D3,"id");function L3(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}s(L3,"stripFlags");function F3(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}s(F3,"stripComment");function V3(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],o=0,a=0,u=t.length;a<u;a++){var c=t[a].part,l=t[a].original!==c;if(n+=(t[a].separator||"")+c,!l&&(c===".."||c==="."||c==="this")){if(i.length>0)throw new tp.default("Invalid path: "+n,{loc:r});c===".."&&o++}else i.push(c)}return{type:"PathExpression",data:e,depth:o,parts:i,original:n,loc:r}}s(V3,"preparePath");function B3(e,t,r,n,i,o){var a=n.charAt(3)||n.charAt(2),u=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:u,strip:i,loc:this.locInfo(o)}}s(B3,"prepareMustache");function H3(e,t,r,n){rp(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}}s(H3,"prepareRawBlock");function U3(e,t,r,n,i,o){n&&n.path&&rp(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var u=void 0,c=void 0;if(r){if(a)throw new tp.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,u=r.program}return i&&(i=u,u=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:u,openStrip:e.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(o)}}s(U3,"prepareBlock");function z3(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}}s(z3,"prepareProgram");function G3(e,t,r,n){return rp(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)}}s(G3,"preparePartialBlock")});var cS=m(no=>{"use strict";no.__esModule=!0;no.parseWithoutProcessing=uS;no.parse=eC;function Z3(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}s(Z3,"_interopRequireWildcard");function aS(e){return e&&e.__esModule?e:{default:e}}s(aS,"_interopRequireDefault");var K3=eS(),np=aS(K3),W3=oS(),Y3=aS(W3),Q3=sS(),J3=Z3(Q3),X3=Pe();no.parser=np.default;var sa={};X3.extend(sa,J3);function uS(e,t){if(e.type==="Program")return e;np.default.yy=sa,sa.locInfo=function(n){return new sa.SourceLocation(t&&t.srcName,n)};var r=np.default.parse(e);return r}s(uS,"parseWithoutProcessing");function eC(e,t){var r=uS(e,t),n=new Y3.default(t);return n.accept(r)}s(eC,"parse")});var dS=m(ao=>{"use strict";ao.__esModule=!0;ao.Compiler=ip;ao.precompile=iC;ao.compile=oC;function fS(e){return e&&e.__esModule?e:{default:e}}s(fS,"_interopRequireDefault");var tC=Be(),oo=fS(tC),so=Pe(),rC=Qf(),io=fS(rC),nC=[].slice;function ip(){}s(ip,"Compiler");ip.prototype={compiler:ip,equals:s(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],o=t.opcodes[n];if(i.opcode!==o.opcode||!pS(i.args,o.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:s(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=so.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:s(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:s(function(t){if(!this[t.type])throw new oo.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:s(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:s(function(t){lS(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:s(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:s(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 oo.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,o=t.name.type==="SubExpression";o&&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",o,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:s(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:s(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:s(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:s(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:s(function(t){lS(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:s(function(t,r,n){var i=t.path,o=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",o,a)},"ambiguousSexpr"),simpleSexpr:s(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:s(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),o=t.path,a=o.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new oo.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",i.length,o.original,io.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:s(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=io.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:s(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:s(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:s(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:s(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:s(function(t){this.opcodes.push({opcode:t,args:nC.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:s(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:s(function(t){var r=io.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&io.default.helpers.helperExpression(t),o=!n&&(i||r);if(o&&!i){var a=t.path.parts[0],u=this.options;u.knownHelpers[a]?i=!0:u.knownHelpersOnly&&(o=!1)}return i?"helper":o?"ambiguous":"simple"},"classifySexpr"),pushParams:s(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:s(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&&!io.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:s(function(t,r,n,i){var o=t.params;return this.pushParams(o),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),o},"setupFullMustacheParams"),blockParamIndex:s(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],o=i&&so.indexOf(i,t);if(i&&o>=0)return[r,o]}},"blockParamIndex")};function iC(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new oo.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)}s(iC,"precompile");function oC(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new oo.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=so.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),u=new r.Compiler().compile(a,t),c=new r.JavaScriptCompiler().compile(u,t,void 0,!0);return r.template(c)}s(i,"compileInput");function o(a,u){return n||(n=i()),n.call(this,a,u)}return s(o,"ret"),o._setup=function(a){return n||(n=i()),n._setup(a)},o._child=function(a,u,c,l){return n||(n=i()),n._child(a,u,c,l)},o}s(oC,"compile");function pS(e,t){if(e===t)return!0;if(so.isArray(e)&&so.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!pS(e[r],t[r]))return!1;return!0}}s(pS,"argEquals");function lS(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}}}s(lS,"transformLiteralToPath")});var mS=m(op=>{var hS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");op.encode=function(e){if(0<=e&&e<hS.length)return hS[e];throw new TypeError("Must be between 0 and 63: "+e)};op.decode=function(e){var t=65,r=90,n=97,i=122,o=48,a=57,u=43,c=47,l=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:o<=e&&e<=a?e-o+p:e==u?62:e==c?63:-1}});var up=m(ap=>{var gS=mS(),sp=5,yS=1<<sp,vS=yS-1,_S=yS;function sC(e){return e<0?(-e<<1)+1:(e<<1)+0}s(sC,"toVLQSigned");function aC(e){var t=(e&1)===1,r=e>>1;return t?-r:r}s(aC,"fromVLQSigned");ap.encode=s(function(t){var r="",n,i=sC(t);do n=i&vS,i>>>=sp,i>0&&(n|=_S),r+=gS.encode(n);while(i>0);return r},"base64VLQ_encode");ap.decode=s(function(t,r,n){var i=t.length,o=0,a=0,u,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=gS.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));u=!!(c&_S),c&=vS,o=o+(c<<a),a+=sp}while(u);n.value=aC(o),n.rest=r},"base64VLQ_decode")});var Bn=m(ge=>{function uC(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}s(uC,"getArg");ge.getArg=uC;var SS=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,cC=/^data:.+\,.+$/;function uo(e){var t=e.match(SS);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}s(uo,"urlParse");ge.urlParse=uo;function Fn(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}s(Fn,"urlGenerate");ge.urlGenerate=Fn;function cp(e){var t=e,r=uo(e);if(r){if(!r.path)return e;t=r.path}for(var n=ge.isAbsolute(t),i=t.split(/\/+/),o,a=0,u=i.length-1;u>=0;u--)o=i[u],o==="."?i.splice(u,1):o===".."?a++:a>0&&(o===""?(i.splice(u+1,a),a=0):(i.splice(u,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Fn(r)):t}s(cp,"normalize");ge.normalize=cp;function bS(e,t){e===""&&(e="."),t===""&&(t=".");var r=uo(t),n=uo(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Fn(r);if(r||t.match(cC))return t;if(n&&!n.host&&!n.path)return n.host=t,Fn(n);var i=t.charAt(0)==="/"?t:cp(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Fn(n)):i}s(bS,"join");ge.join=bS;ge.isAbsolute=function(e){return e.charAt(0)==="/"||SS.test(e)};function lC(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)}s(lC,"relative");ge.relative=lC;var PS=function(){var e=Object.create(null);return!("__proto__"in e)}();function $S(e){return e}s($S,"identity");function fC(e){return OS(e)?"$"+e:e}s(fC,"toSetString");ge.toSetString=PS?$S:fC;function pC(e){return OS(e)?e.slice(1):e}s(pC,"fromSetString");ge.fromSetString=PS?$S:pC;function OS(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}s(OS,"isProtoString");function dC(e,t,r){var n=Vn(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:Vn(e.name,t.name)}s(dC,"compareByOriginalPositions");ge.compareByOriginalPositions=dC;function hC(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Vn(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Vn(e.name,t.name)}s(hC,"compareByGeneratedPositionsDeflated");ge.compareByGeneratedPositionsDeflated=hC;function Vn(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}s(Vn,"strcmp");function mC(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Vn(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Vn(e.name,t.name)}s(mC,"compareByGeneratedPositionsInflated");ge.compareByGeneratedPositionsInflated=mC;function gC(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}s(gC,"parseSourceMapInput");ge.parseSourceMapInput=gC;function yC(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=uo(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=bS(Fn(n),t)}return cp(t)}s(yC,"computeSourceURL");ge.computeSourceURL=yC});var pp=m(ES=>{var lp=Bn(),fp=Object.prototype.hasOwnProperty,Br=typeof Map<"u";function Mt(){this._array=[],this._set=Br?new Map:Object.create(null)}s(Mt,"ArraySet");Mt.fromArray=s(function(t,r){for(var n=new Mt,i=0,o=t.length;i<o;i++)n.add(t[i],r);return n},"ArraySet_fromArray");Mt.prototype.size=s(function(){return Br?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Mt.prototype.add=s(function(t,r){var n=Br?t:lp.toSetString(t),i=Br?this.has(t):fp.call(this._set,n),o=this._array.length;(!i||r)&&this._array.push(t),i||(Br?this._set.set(t,o):this._set[n]=o)},"ArraySet_add");Mt.prototype.has=s(function(t){if(Br)return this._set.has(t);var r=lp.toSetString(t);return fp.call(this._set,r)},"ArraySet_has");Mt.prototype.indexOf=s(function(t){if(Br){var r=this._set.get(t);if(r>=0)return r}else{var n=lp.toSetString(t);if(fp.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");Mt.prototype.at=s(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");Mt.prototype.toArray=s(function(){return this._array.slice()},"ArraySet_toArray");ES.ArraySet=Mt});var AS=m(wS=>{var xS=Bn();function vC(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,o=t.generatedColumn;return n>r||n==r&&o>=i||xS.compareByGeneratedPositionsInflated(e,t)<=0}s(vC,"generatedPositionAfter");function aa(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}s(aa,"MappingList");aa.prototype.unsortedForEach=s(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");aa.prototype.add=s(function(t){vC(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");aa.prototype.toArray=s(function(){return this._sorted||(this._array.sort(xS.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");wS.MappingList=aa});var dp=m(IS=>{var co=up(),Q=Bn(),ua=pp().ArraySet,_C=AS().MappingList;function Ue(e){e||(e={}),this._file=Q.getArg(e,"file",null),this._sourceRoot=Q.getArg(e,"sourceRoot",null),this._skipValidation=Q.getArg(e,"skipValidation",!1),this._sources=new ua,this._names=new ua,this._mappings=new _C,this._sourcesContents=null}s(Ue,"SourceMapGenerator");Ue.prototype._version=3;Ue.fromSourceMap=s(function(t){var r=t.sourceRoot,n=new Ue({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var o={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(o.source=i.source,r!=null&&(o.source=Q.relative(r,o.source)),o.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(o.name=i.name)),n.addMapping(o)}),t.sources.forEach(function(i){var o=i;r!==null&&(o=Q.relative(r,i)),n._sources.has(o)||n._sources.add(o);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");Ue.prototype.addMapping=s(function(t){var r=Q.getArg(t,"generated"),n=Q.getArg(t,"original",null),i=Q.getArg(t,"source",null),o=Q.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,o),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:o})},"SourceMapGenerator_addMapping");Ue.prototype.setSourceContent=s(function(t,r){var n=t;this._sourceRoot!=null&&(n=Q.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Q.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Q.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");Ue.prototype.applySourceMap=s(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 o=this._sourceRoot;o!=null&&(i=Q.relative(o,i));var a=new ua,u=new ua;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var l=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,n!=null&&(c.source=Q.join(n,c.source)),o!=null&&(c.source=Q.relative(o,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var p=c.source;p!=null&&!a.has(p)&&a.add(p);var f=c.name;f!=null&&!u.has(f)&&u.add(f)},this),this._sources=a,this._names=u,t.sources.forEach(function(c){var l=t.sourceContentFor(c);l!=null&&(n!=null&&(c=Q.join(n,c)),o!=null&&(c=Q.relative(o,c)),this.setSourceContent(c,l))},this)},"SourceMapGenerator_applySourceMap");Ue.prototype._validateMapping=s(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");Ue.prototype._serializeMappings=s(function(){for(var t=0,r=1,n=0,i=0,o=0,a=0,u="",c,l,p,f,d=this._mappings.toArray(),h=0,g=d.length;h<g;h++){if(l=d[h],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(h>0){if(!Q.compareByGeneratedPositionsInflated(l,d[h-1]))continue;c+=","}c+=co.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),c+=co.encode(f-a),a=f,c+=co.encode(l.originalLine-1-i),i=l.originalLine-1,c+=co.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),c+=co.encode(p-o),o=p)),u+=c}return u},"SourceMapGenerator_serializeMappings");Ue.prototype._generateSourcesContent=s(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Q.relative(r,n));var i=Q.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");Ue.prototype.toJSON=s(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");Ue.prototype.toString=s(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");IS.SourceMapGenerator=Ue});var kS=m(Hr=>{Hr.GREATEST_LOWER_BOUND=1;Hr.LEAST_UPPER_BOUND=2;function hp(e,t,r,n,i,o){var a=Math.floor((t-e)/2)+e,u=i(r,n[a],!0);return u===0?a:u>0?t-a>1?hp(a,t,r,n,i,o):o==Hr.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?hp(e,a,r,n,i,o):o==Hr.LEAST_UPPER_BOUND?a:e<0?-1:e}s(hp,"recursiveSearch");Hr.search=s(function(t,r,n,i){if(r.length===0)return-1;var o=hp(-1,r.length,t,r,n,i||Hr.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o},"search")});var TS=m(RS=>{function mp(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}s(mp,"swap");function SC(e,t){return Math.round(e+Math.random()*(t-e))}s(SC,"randomIntInRange");function gp(e,t,r,n){if(r<n){var i=SC(r,n),o=r-1;mp(e,i,n);for(var a=e[n],u=r;u<n;u++)t(e[u],a)<=0&&(o+=1,mp(e,o,u));mp(e,o+1,u);var c=o+1;gp(e,t,r,c-1),gp(e,t,c+1,n)}}s(gp,"doQuickSort");RS.quickSort=function(e,t){gp(e,t,0,e.length-1)}});var NS=m(ca=>{var P=Bn(),yp=kS(),Hn=pp().ArraySet,bC=up(),lo=TS().quickSort;function U(e,t){var r=e;return typeof e=="string"&&(r=P.parseSourceMapInput(e)),r.sections!=null?new it(r,t):new ae(r,t)}s(U,"SourceMapConsumer");U.fromSourceMap=function(e,t){return ae.fromSourceMap(e,t)};U.prototype._version=3;U.prototype.__generatedMappings=null;Object.defineProperty(U.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});U.prototype.__originalMappings=null;Object.defineProperty(U.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});U.prototype._charIsMappingSeparator=s(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");U.prototype._parseMappings=s(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");U.GENERATED_ORDER=1;U.ORIGINAL_ORDER=2;U.GREATEST_LOWER_BOUND=1;U.LEAST_UPPER_BOUND=2;U.prototype.eachMapping=s(function(t,r,n){var i=r||null,o=n||U.GENERATED_ORDER,a;switch(o){case U.GENERATED_ORDER:a=this._generatedMappings;break;case U.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;a.map(function(c){var l=c.source===null?null:this._sources.at(c.source);return l=P.computeSourceURL(u,l,this._sourceMapURL),{source:l,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");U.prototype.allGeneratedPositionsFor=s(function(t){var r=P.getArg(t,"line"),n={source:P.getArg(t,"source"),originalLine:r,originalColumn:P.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,yp.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(t.column===void 0)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:P.getArg(a,"generatedLine",null),column:P.getArg(a,"generatedColumn",null),lastColumn:P.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var c=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==c;)i.push({line:P.getArg(a,"generatedLine",null),column:P.getArg(a,"generatedColumn",null),lastColumn:P.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return i},"SourceMapConsumer_allGeneratedPositionsFor");ca.SourceMapConsumer=U;function ae(e,t){var r=e;typeof e=="string"&&(r=P.parseSourceMapInput(e));var n=P.getArg(r,"version"),i=P.getArg(r,"sources"),o=P.getArg(r,"names",[]),a=P.getArg(r,"sourceRoot",null),u=P.getArg(r,"sourcesContent",null),c=P.getArg(r,"mappings"),l=P.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=P.normalize(a)),i=i.map(String).map(P.normalize).map(function(p){return a&&P.isAbsolute(a)&&P.isAbsolute(p)?P.relative(a,p):p}),this._names=Hn.fromArray(o.map(String),!0),this._sources=Hn.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return P.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=u,this._mappings=c,this._sourceMapURL=t,this.file=l}s(ae,"BasicSourceMapConsumer");ae.prototype=Object.create(U.prototype);ae.prototype.consumer=U;ae.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=P.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};ae.fromSourceMap=s(function(t,r){var n=Object.create(ae.prototype),i=n._names=Hn.fromArray(t._names.toArray(),!0),o=n._sources=Hn.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(h){return P.computeSourceURL(n.sourceRoot,h,r)});for(var a=t._mappings.toArray().slice(),u=n.__generatedMappings=[],c=n.__originalMappings=[],l=0,p=a.length;l<p;l++){var f=a[l],d=new CS;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=o.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),c.push(d)),u.push(d)}return lo(n.__originalMappings,P.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");ae.prototype._version=3;Object.defineProperty(ae.prototype,"sources",{get:s(function(){return this._absoluteSources.slice()},"get")});function CS(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s(CS,"Mapping");ae.prototype._parseMappings=s(function(t,r){for(var n=1,i=0,o=0,a=0,u=0,c=0,l=t.length,p=0,f={},d={},h=[],g=[],y,v,_,S,b;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(y=new CS,y.generatedLine=n,S=p;S<l&&!this._charIsMappingSeparator(t,S);S++);if(v=t.slice(p,S),_=f[v],_)p+=v.length;else{for(_=[];p<S;)bC.decode(t,p,d),b=d.value,p=d.rest,_.push(b);if(_.length===2)throw new Error("Found a source, but no line and column");if(_.length===3)throw new Error("Found a source and line, but no column");f[v]=_}y.generatedColumn=i+_[0],i=y.generatedColumn,_.length>1&&(y.source=u+_[1],u+=_[1],y.originalLine=o+_[2],o=y.originalLine,y.originalLine+=1,y.originalColumn=a+_[3],a=y.originalColumn,_.length>4&&(y.name=c+_[4],c+=_[4])),g.push(y),typeof y.originalLine=="number"&&h.push(y)}lo(g,P.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,lo(h,P.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");ae.prototype._findMapping=s(function(t,r,n,i,o,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 yp.search(t,r,o,a)},"SourceMapConsumer_findMapping");ae.prototype.computeColumnSpans=s(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");ae.prototype.originalPositionFor=s(function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",P.compareByGeneratedPositionsDeflated,P.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var o=P.getArg(i,"source",null);o!==null&&(o=this._sources.at(o),o=P.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=P.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,line:P.getArg(i,"originalLine",null),column:P.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");ae.prototype.hasContentsOfAllSources=s(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");ae.prototype.sourceContentFor=s(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=P.relative(this.sourceRoot,i));var o;if(this.sourceRoot!=null&&(o=P.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||o.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");ae.prototype.generatedPositionFor=s(function(t){var r=P.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:P.getArg(t,"line"),originalColumn:P.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,P.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:P.getArg(o,"generatedLine",null),column:P.getArg(o,"generatedColumn",null),lastColumn:P.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");ca.BasicSourceMapConsumer=ae;function it(e,t){var r=e;typeof e=="string"&&(r=P.parseSourceMapInput(e));var n=P.getArg(r,"version"),i=P.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Hn,this._names=new Hn;var o={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 u=P.getArg(a,"offset"),c=P.getArg(u,"line"),l=P.getArg(u,"column");if(c<o.line||c===o.line&&l<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=u,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new U(P.getArg(a,"map"),t)}})}s(it,"IndexedSourceMapConsumer");it.prototype=Object.create(U.prototype);it.prototype.constructor=U;it.prototype._version=3;Object.defineProperty(it.prototype,"sources",{get:s(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")});it.prototype.originalPositionFor=s(function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=yp.search(r,this._sections,function(o,a){var u=o.generatedLine-a.generatedOffset.generatedLine;return u||o.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");it.prototype.hasContentsOfAllSources=s(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");it.prototype.sourceContentFor=s(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],o=i.consumer.sourceContentFor(t,!0);if(o)return o}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");it.prototype.generatedPositionFor=s(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(P.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var o={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");it.prototype._parseMappings=s(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],o=i.consumer._generatedMappings,a=0;a<o.length;a++){var u=o[a],c=i.consumer._sources.at(u.source);c=P.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=i.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var p={source:c,generatedLine:u.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(i.generatedOffset.generatedLine===u.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}lo(this.__generatedMappings,P.compareByGeneratedPositionsDeflated),lo(this.__originalMappings,P.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");ca.IndexedSourceMapConsumer=it});var jS=m(qS=>{var PC=dp().SourceMapGenerator,la=Bn(),$C=/(\r?\n)/,OC=10,Un="$$$isSourceNode$$$";function Ne(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[Un]=!0,n!=null&&this.add(n)}s(Ne,"SourceNode");Ne.fromStringWithSourceMap=s(function(t,r,n){var i=new Ne,o=t.split($C),a=0,u=s(function(){var d=g(),h=g()||"";return d+h;function g(){return a<o.length?o[a++]:void 0}},"shiftNextLine"),c=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(c<d.generatedLine)f(p,u()),c++,l=0;else{var h=o[a]||"",g=h.substr(0,d.generatedColumn-l);o[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,g),p=d;return}for(;c<d.generatedLine;)i.add(u()),c++;if(l<d.generatedColumn){var h=o[a]||"";i.add(h.substr(0,d.generatedColumn)),o[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<o.length&&(p&&f(p,u()),i.add(o.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=la.join(n,d)),i.setSourceContent(d,h))}),i;function f(d,h){if(d===null||d.source===void 0)i.add(h);else{var g=n?la.join(n,d.source):d.source;i.add(new Ne(d.originalLine,d.originalColumn,g,h,d.name))}}s(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Ne.prototype.add=s(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Un]||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");Ne.prototype.prepend=s(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Un]||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");Ne.prototype.walk=s(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Un]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Ne.prototype.join=s(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");Ne.prototype.replaceRight=s(function(t,r){var n=this.children[this.children.length-1];return n[Un]?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");Ne.prototype.setSourceContent=s(function(t,r){this.sourceContents[la.toSetString(t)]=r},"SourceNode_setSourceContent");Ne.prototype.walkSourceContents=s(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Un]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(la.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Ne.prototype.toString=s(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Ne.prototype.toStringWithSourceMap=s(function(t){var r={code:"",line:1,column:0},n=new PC(t),i=!1,o=null,a=null,u=null,c=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((o!==p.source||a!==p.line||u!==p.column||c!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),o=p.source,a=p.line,u=p.column,c=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),o=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===OC?(r.line++,r.column=0,f+1===d?(o=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");qS.SourceNode=Ne});var MS=m(fa=>{fa.SourceMapGenerator=dp().SourceMapGenerator;fa.SourceMapConsumer=NS().SourceMapConsumer;fa.SourceNode=jS().SourceNode});var VS=m((pa,FS)=>{"use strict";pa.__esModule=!0;var _p=Pe(),Ur=void 0;try{(typeof define!="function"||!define.amd)&&(DS=MS(),Ur=DS.SourceNode)}catch{}var DS;Ur||(Ur=s(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Ur.prototype={add:s(function(t){_p.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:s(function(t){_p.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:s(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:s(function(){return this.src},"toString")});function vp(e,t,r){if(_p.isArray(e)){for(var n=[],i=0,o=e.length;i<o;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}s(vp,"castChunk");function LS(e){this.srcFile=e,this.source=[]}s(LS,"CodeGen");LS.prototype={isEmpty:s(function(){return!this.source.length},"isEmpty"),prepend:s(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:s(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:s(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
59
+ `])}),t},"merge"),each:s(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:s(function(){var t=this.currentLocation||{start:{}};return new Ur(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:s(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof Ur?t:(t=vp(t,this,r),new Ur(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:s(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:s(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:s(function(t){var r=this,n=[];Object.keys(t).forEach(function(o){var a=vp(t[o],r);a!=="undefined"&&n.push([r.quotedString(o),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:s(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(vp(t[n],this));return r},"generateList"),generateArray:s(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};pa.default=LS;FS.exports=pa.default});var GS=m((da,zS)=>{"use strict";da.__esModule=!0;function US(e){return e&&e.__esModule?e:{default:e}}s(US,"_interopRequireDefault");var BS=Ks(),EC=Be(),Sp=US(EC),xC=Pe(),wC=VS(),HS=US(wC);function zn(e){this.value=e}s(zn,"Literal");function Gn(){}s(Gn,"JavaScriptCompiler");Gn.prototype={nameLookup:s(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:s(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:s(function(){var t=BS.COMPILER_REVISION,r=BS.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:s(function(t,r,n){return xC.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:s(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:s(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:s(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 o=t.opcodes,a=void 0,u=void 0,c=void 0,l=void 0;for(c=0,l=o.length;c<l;c++)a=o[c],this.source.currentLocation=a.loc,u=u||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=u,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Sp.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 p=this.createFunctionContext(i);if(this.isChild)return p;var f={compiler:this.compilerInfo(),main:p};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var d=this.context,h=d.programs,g=d.decorators;for(c=0,l=h.length;c<l;c++)h[c]&&(f[c]=h[c],g[c]&&(f[c+"_d"]=g[c],f.useDecorators=!0));return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:s(function(){this.lastContext=0,this.source=new BS.default(this.options.srcName),this.decorators=new BS.default(this.options.srcName)},"preamble"),createFunctionContext:s(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var o=0;Object.keys(this.aliases).forEach(function(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(n+=", alias"+ ++o+"="+c,l.children[0]="alias"+o)}),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 u=this.mergeSource(n);return t?(a.push(u),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
62
+ `),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(i);if(this.isChild)return p;var f={compiler:this.compilerInfo(),main:p};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var d=this.context,h=d.programs,g=d.decorators;for(c=0,l=h.length;c<l;c++)h[c]&&(f[c]=h[c],g[c]&&(f[c+"_d"]=g[c],f.useDecorators=!0));return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:s(function(){this.lastContext=0,this.source=new HS.default(this.options.srcName),this.decorators=new HS.default(this.options.srcName)},"preamble"),createFunctionContext:s(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var o=0;Object.keys(this.aliases).forEach(function(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(n+=", alias"+ ++o+"="+c,l.children[0]="alias"+o)}),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 u=this.mergeSource(n);return t?(a.push(u),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
63
63
  `,u,"}"])},"createFunctionContext"),mergeSource:s(function(t){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,o=void 0,a=void 0,u=void 0;return this.source.each(function(c){c.appendToBuffer?(a?c.prepend(" + "):a=c,u=c):(a&&(o?a.prepend("buffer += "):i=!0,u.add(";"),a=u=void 0),o=!0,r||(n=!1))}),n?a?(a.prepend("return "),u.add(";")):o||this.source.push('return "";'):(t+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),u.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(i?"":`;
64
64
  `)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:s(function(){return`
65
65
  lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -68,9 +68,9 @@ Expecting `+Zr.join(", ")+", got '"+(this.terminals_[E]||E)+"'":ya="Parse error
68
68
  }
69
69
  return undefined
70
70
  }
71
- `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:s(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:s(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:s(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:s(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:s(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:s(function(t){this.lastContext=t},"getContext"),pushContext:s(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:s(function(t,r,n,i){var o=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[o++])):this.pushContext(),this.resolvePath("context",t,o,r,n)},"lookupOnContext"),lookupBlockParam:s(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:s(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:s(function(t,r,n,i,o){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(wN(this.options.strict&&o,this,r,n,t));return}for(var u=r.length;n<u;n++)this.replaceStack(function(c){var l=a.nameLookup(c,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",c]})},"resolvePath"),resolvePossibleLambda:s(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:s(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:s(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:s(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:s(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:s(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:s(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:s(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:s(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:s(function(t,r,n){var i=this.popStack(),o=this.setupHelper(t,r),a=[];n&&a.push(o.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var u=["(",this.itemsSeparatedBy(a,"||"),")"],c=this.source.functionCall(u,"call",o.callParams);this.push(c)},"invokeHelper"),itemsSeparatedBy:s(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:s(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:s(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),o=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",o," || ",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:s(function(t,r,n){var i=[],o=this.setupParams(r,1,i);t&&(r=this.popStack(),delete o.name),n&&(o.indent=JSON.stringify(n)),o.helpers="helpers",o.partials="partials",o.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(o.depths="depths"),o=this.objectLiteral(o),i.push(o),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:s(function(t){var r=this.popStack(),n=void 0,i=void 0,o=void 0;this.trackIds&&(o=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),o&&(a.ids[t]=o),a.values[t]=r},"assignToHash"),pushId:s(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:Gn,compileChildren:s(function(t,r){for(var n=t.children,i=void 0,o=void 0,a=0,u=n.length;a<u;a++){i=n[a],o=new this.compiler;var c=this.matchExistingProgram(i);if(c==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=o.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=o.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=c.index,i.name="program"+c.index,this.useDepths=this.useDepths||c.useDepths,this.useBlockParams=this.useBlockParams||c.useBlockParams}},"compileChildren"),matchExistingProgram:s(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:s(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:s(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:s(function(t){return t instanceof zn||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:s(function(t){this.push(new zn(t))},"pushStackLiteral"),pushSource:s(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:s(function(t){var r=["("],n=void 0,i=void 0,o=void 0;if(!this.isInline())throw new _p.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof zn)n=[a.value],r=["(",n],o=!0;else{i=!0;var u=this.incrStack();r=["((",this.push(u)," = ",a,")"],n=this.topStack()}var c=t.call(this,n);o||this.popStack(),i&&this.stackSlot--,this.push(r.concat(c,")"))},"replaceStack"),incrStack:s(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:s(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:s(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof zn)this.compileStack.push(i);else{var o=this.incrStack();this.pushSource([o," = ",i,";"]),this.compileStack.push(o)}}},"flushInline"),isInline:s(function(){return this.inlineStack.length},"isInline"),popStack:s(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof zn)return n.value;if(!r){if(!this.stackSlot)throw new _p.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:s(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof zn?r.value:r},"topStack"),contextName:s(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:s(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:s(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:s(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:s(function(t,r,n){var i=[],o=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),u=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:o,name:a,callParams:[u].concat(i)}},"setupHelper"),setupParams:s(function(t,r,n){var i={},o=[],a=[],u=[],c=!n,l=void 0;c&&(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 p=this.popStack(),f=this.popStack();(f||p)&&(i.fn=f||"container.noop",i.inverse=p||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(u[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),o[d]=this.popStack());return c&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(u)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(o)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:s(function(t,r,n,i){var o=this.setupParams(t,r,n);return o.loc=JSON.stringify(this.source.currentLocation),o=this.objectLiteral(o),i?(this.useRegister("options"),n.push("options"),["options=",o]):n?(n.push(o),""):o},"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=Gn.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Gn.isValidJavaScriptVariableName=function(e){return!Gn.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function wN(e,t,r,n,i){var o=t.popStack(),a=r.length;for(e&&a--;n<a;n++)o=t.nameLookup(o,r[n],i);return e?[t.aliasable("container.strict"),"(",o,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:o}s(wN,"strictLookup");pa.default=Gn;US.exports=pa.default});var KS=m((da,ZS)=>{"use strict";da.__esModule=!0;function fo(e){return e&&e.__esModule?e:{default:e}}s(fo,"_interopRequireDefault");var AN=W_(),IN=fo(AN),kN=Yf(),RN=fo(kN),Sp=uS(),bp=pS(),TN=zS(),NN=fo(TN),CN=na(),qN=fo(CN),jN=Gf(),MN=fo(jN),DN=IN.default.create;function GS(){var e=DN();return e.compile=function(t,r){return bp.compile(t,r,e)},e.precompile=function(t,r){return bp.precompile(t,r,e)},e.AST=RN.default,e.Compiler=bp.Compiler,e.JavaScriptCompiler=NN.default,e.Parser=Sp.parser,e.parse=Sp.parse,e.parseWithoutProcessing=Sp.parseWithoutProcessing,e}s(GS,"create");var Zn=GS();Zn.create=GS;MN.default(Zn);Zn.Visitor=qN.default;Zn.default=Zn;da.default=Zn;ZS.exports=da.default});var WS=m(ha=>{"use strict";ha.__esModule=!0;ha.print=BN;ha.PrintVisitor=K;function LN(e){return e&&e.__esModule?e:{default:e}}s(LN,"_interopRequireDefault");var FN=na(),VN=LN(FN);function BN(e){return new K().accept(e)}s(BN,"print");function K(){this.padding=0}s(K,"PrintVisitor");K.prototype=new VN.default;K.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
72
- `,t};K.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var o="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)o+=" "+e.blockParams[n];o+=" ]",t+=this.pad(o)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};K.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};K.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};K.prototype.BlockStatement=K.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};K.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+" }}")};K.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+" }}")};K.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};K.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};K.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,o=t.length;i<o;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};K.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};K.prototype.StringLiteral=function(e){return'"'+e.value+'"'};K.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};K.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};K.prototype.UndefinedLiteral=function(){return"UNDEFINED"};K.prototype.NullLiteral=function(){return"NULL"};K.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(", ")+"}"};K.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var zr=m((M6,JS)=>{var ma=KS().default,QS=WS();ma.PrintVisitor=QS.PrintVisitor;ma.print=QS.print;JS.exports=ma;function YS(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=ma.compile(n)}s(YS,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=YS,require.extensions[".hbs"]=YS)});var cC={};vb(cC,{getGenerateFilesData:()=>uC,getGenerateMetadata:()=>aC});module.exports=_b(cC);var wp=Et(nv());var iv="Schema",ov="Enum",sv="Body",av="Param",uv="Response",cv="ErrorResponse",uf="z.void()",vs={bindings:["z"],from:"zod"};var Bi={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,importPath:"ts",extractEnums:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:iv,enumSuffix:ov,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var Te=s((...e)=>[...new Set(e.flat())],"getUniqueArray");var he=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Hi=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),_s=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),Ie=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),lv=s(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),cf=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),fv=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),hR=s(e=>{var n;let t=e.reduce((i,o)=>({...i,[o]:(i[o]??0)+1}),{});return(n=Object.entries(t).sort((i,o)=>i[1]===o[1]?o[0].length-i[0].length:o[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),lf=s(e=>{let t=e.map(he).map(mR).map(r=>gR(r)).flat();return hR(t)},"getMostCommonAdjacentCombinationSplit"),mR=s(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),gR=s((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 o=i+1;o<=e.length;o++)t.includes((n=e[o-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,o).join(""));return r},"getAdjacentStringCombinations");var Ss=s(e=>`use${he(Ie(e.operationName))}`,"getQueryName"),ff=s(e=>{let t=e.map(({path:o})=>o),r=/^\/[^\/]*/g,n=Te(t.map(o=>o.match(r)).flat()),i=s(o=>n.length===1?"all":`all${he(_s(o.replace(/\//g,"")??""))}`,"getQueryKeyName");return n.filter(o=>o!==null).map(o=>({path:o,name:i(o??"")}))},"getAllQueryKeys"),pv=s((e,t)=>{let n=ff(t).find(({path:o})=>e.path.startsWith(o));if(!n)return[e.path];let i=e.path.substring(n.path.length);return[`...keys.${n.name}`,...i?[`"${i}"`]:[]]},"getEndpointPathQueryKeys");function er({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Hi(t)}/`:""}${Hi(t)}.${i}`:i}s(er,"getTagFileName");var ee=s(({type:e,tag:t,options:r})=>`${he(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var dv=s(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),gt=s(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var Rt=Symbol.for("@ts-pattern/matcher"),yR=Symbol.for("@ts-pattern/isVariadic"),Ps="@ts-pattern/anonymous-select-key",pf=s(e=>!!(e&&typeof e=="object"),"r"),bs=s(e=>e&&!!e[Rt],"i"),_t=s((e,t,r)=>{if(bs(e)){let n=e[Rt](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(pf(e)){if(!pf(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let a of e.keys()){let u=e[a];bs(u)&&u[yR]?o.push(u):o.length?i.push(u):n.push(u)}if(o.length){if(o.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),u=i.length===0?[]:t.slice(-i.length),c=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,p)=>_t(l,a[p],r))&&i.every((l,p)=>_t(l,u[p],r))&&(o.length===0||_t(o[0],c,r))}return e.length===t.length&&e.every((a,u)=>_t(a,t[u],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||bs(o=i)&&o[Rt]().matcherType==="optional")&&_t(i,t[n],r);var o})}return Object.is(t,e)},"s"),or=s(e=>{var t,r,n;return pf(e)?bs(e)?(t=(r=(n=e[Rt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?zi(e,or):zi(Object.values(e),or):[]},"o"),zi=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Ve(e){return Object.assign(e,{optional:s(()=>vR(e),"optional"),and:s(t=>z(e,t),"and"),or:s(t=>_R(e,t),"or"),select:s(t=>t===void 0?hv(e):hv(t,e),"select")})}s(Ve,"u");function vR(e){return Ve({[Rt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return t===void 0?(or(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:_t(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>or(e),"getSelectionKeys"),matcherType:"optional"})})}s(vR,"h");function z(...e){return Ve({[Rt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>_t(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>zi(e,or),"getSelectionKeys"),matcherType:"and"})})}s(z,"m");function _R(...e){return Ve({[Rt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return zi(e,or).forEach(i=>n(i,void 0)),{matched:e.some(i=>_t(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>zi(e,or),"getSelectionKeys"),matcherType:"or"})})}s(_R,"d");function D(e){return{[Rt]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(D,"p");function hv(...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 Ve({[Rt]:()=>({match:s(n=>{let i={[t??Ps]:n};return{matched:r===void 0||_t(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??Ps].concat(r===void 0?[]:or(r)),"getSelectionKeys")})})}s(hv,"y");function yt(e){return typeof e=="number"}s(yt,"v");function tr(e){return typeof e=="string"}s(tr,"b");function rr(e){return typeof e=="bigint"}s(rr,"w");var M8=Ve(D(function(e){return!0}));var nr=s(e=>Object.assign(Ve(e),{startsWith:s(t=>{return nr(z(e,(r=t,D(n=>tr(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return nr(z(e,(r=t,D(n=>tr(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>nr(z(e,(r=>D(n=>tr(n)&&n.length>=r))(t))),"minLength"),length:s(t=>nr(z(e,(r=>D(n=>tr(n)&&n.length===r))(t))),"length"),maxLength:s(t=>nr(z(e,(r=>D(n=>tr(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return nr(z(e,(r=t,D(n=>tr(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return nr(z(e,(r=t,D(n=>tr(n)&&!!n.match(r)))));var r},"regex")}),"j"),D8=nr(D(tr)),vt=s(e=>Object.assign(Ve(e),{between:s((t,r)=>vt(z(e,((n,i)=>D(o=>yt(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>vt(z(e,(r=>D(n=>yt(n)&&n<r))(t))),"lt"),gt:s(t=>vt(z(e,(r=>D(n=>yt(n)&&n>r))(t))),"gt"),lte:s(t=>vt(z(e,(r=>D(n=>yt(n)&&n<=r))(t))),"lte"),gte:s(t=>vt(z(e,(r=>D(n=>yt(n)&&n>=r))(t))),"gte"),int:s(()=>vt(z(e,D(t=>yt(t)&&Number.isInteger(t)))),"int"),finite:s(()=>vt(z(e,D(t=>yt(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>vt(z(e,D(t=>yt(t)&&t>0))),"positive"),negative:s(()=>vt(z(e,D(t=>yt(t)&&t<0))),"negative")}),"x"),L8=vt(D(yt)),ir=s(e=>Object.assign(Ve(e),{between:s((t,r)=>ir(z(e,((n,i)=>D(o=>rr(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>ir(z(e,(r=>D(n=>rr(n)&&n<r))(t))),"lt"),gt:s(t=>ir(z(e,(r=>D(n=>rr(n)&&n>r))(t))),"gt"),lte:s(t=>ir(z(e,(r=>D(n=>rr(n)&&n<=r))(t))),"lte"),gte:s(t=>ir(z(e,(r=>D(n=>rr(n)&&n>=r))(t))),"gte"),positive:s(()=>ir(z(e,D(t=>rr(t)&&t>0))),"positive"),negative:s(()=>ir(z(e,D(t=>rr(t)&&t<0))),"negative")}),"A"),F8=ir(D(rr)),V8=Ve(D(function(e){return typeof e=="boolean"})),B8=Ve(D(function(e){return typeof e=="symbol"})),H8=Ve(D(function(e){return e==null})),U8=Ve(D(function(e){return e!=null}));var gf=class gf 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}};s(gf,"W");var df=gf,hf={matched:!1,value:void 0};function me(e){return new mf(e,hf)}s(me,"z");var Ui=class Ui{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 o=!1,a={},u=s((l,p)=>{o=!0,a[l]=p},"a"),c=!n.some(l=>_t(l,this.input,u))||i&&!i(this.input)?hf:{matched:!0,value:r(o?Ps in a?a[Ps]:a:this.input,this.input)};return new Ui(this.input,c)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Ui(this.input,n?{matched:!0,value:r(this.input,this.input)}:hf)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new df(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(Ui,"I");var mf=Ui;var mv=["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"];var yf=2,gv=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],yv=["query","header","path"],sr=["get","put","post","delete","options","head","patch","trace"],vv=["string","number","integer","boolean"],$s=["allOf","anyOf","oneOf"];function ar(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(ar,"pick");function St(e){return lv(e)}s(St,"formatTag");function Cr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return St(r??t.defaultTag)}s(Cr,"getOperationTag");function _v(e,t){let r={};for(let n in e.paths){let i=e.paths[n],o=ar(i,sr);for(let a in o){let u=o[a];if(!u||u.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let c=t.splitByTags?Cr(u,t):t.defaultTag;r[c]||(r[c]=[]),r[c].push(u)}}return r}s(_v,"getOperationsByTag");var bv=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),qr=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Nn=s(e=>qr(e).split("/").at(-1),"getSchemaNameByRef");function H(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s(H,"isReferenceObject");function Sf(e){let t=SR(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return Ie(t)}s(Sf,"normalizeString");function Pv(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s(Pv,"wrapWithQuotesIfNeeded");function $v(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s($v,"unwrapQuotesIfNeeded");function SR(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(SR,"prefixStringStartingWithNumberIfNeeded");function bf(e){let t=e.replaceAll("_","#");return Ie(t.replaceAll("-","_")).replaceAll("#","_")}s(bf,"pathParamToVariableName");var Tt=s(e=>vv.includes(e),"isPrimitiveType");function Ov(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,"\\/")}s(Ov,"escapeControlCharacters");function ur(e){return e.includes("application/")&&e.includes("json")||gv.includes(e)||e.includes("text/")}s(ur,"isParamMediaTypeAllowed");function Os(e){return e>=200&&e<300}s(Os,"isMainResponseStatus");function Es(e){return!(e>=200&&e<300)}s(Es,"isErrorStatus");function Cn(e){return e==="application/json"}s(Cn,"isMediaTypeAllowed");function vf({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let o=`${t}${PR(e)}`,a=r.operationId?gt(r.operationId):o;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((c,l)=>l===0?c:he(c)).join("");if(n.removeOperationPrefixEndingWith&&!i){let u=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(u,"")}return mv.includes(a)?o:a}s(vf,"getOperationName");function Gi({path:e,method:t,operation:r,operationsByTag:n,options:i}){let o=i.splitByTags?Cr(r,i):i.defaultTag,a=vf({path:e,method:t,operation:r,options:i});return n[o].filter(c=>vf({path:e,method:t,operation:c,options:i})===a).length===1?a:vf({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}s(Gi,"getUniqueOperationName");function Ev(e,t,r){let n=[];for(let i in e.paths){let o=e.paths[i],a=ar(o,sr);for(let u in a){let c=a[u];if(!c||c.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let l=Gi({path:i,method:u,operation:c,operationsByTag:t,options:r});n.push(l)}}return n}s(Ev,"getUniqueOperationNamesWithoutSplitByTags");var Sv=/({\w+})/g,bR=/[^\w\-]+/g;function PR(e){e=he(_s(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(Sv)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(Sv,"")}By${he(r.slice(1,-1))}`}return e.replace(bR,"_")}s(PR,"pathToVariableName");var _f=/{(\b\w+(?:-\w+)*\b)}/g;function xv(e){let t=e.match(_f);return t===null?e.replaceAll(_f,":$1"):(t.forEach(r=>{let n=bf(r.replaceAll(_f,":$1"));e=e.replaceAll(r,n)}),e)}s(xv,"replaceHyphenatedPath");var qn=s(e=>e.method==="get","isQuery"),xs=s(e=>e.method!=="get","isMutation");var cr=s((e,t)=>cf(he(Sf(e)),t),"getZodSchemaName"),wv=s((e,t,r)=>cf(he(Sf(e)),`${t}${r}`),"getEnumZodSchemaName"),Se=s(e=>!e.startsWith("z."),"isNamedZodSchema"),jr=s((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),ws=s(e=>Ie(`${e}_${sv}`),"getBodyZodSchemaName"),Av=s((e,t)=>Ie(`${e}_${t}${av}`),"getParamZodSchemaName"),$R=s(e=>Ie(`${e}${uv}`),"getMainResponseZodSchemaName"),OR=s((e,t)=>Ie(`${e}_${t}_${cv}`),"getErrorResponseZodSchemaName");function As({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),o=jr(t,r,n);return!Os(i)&&e!=="default"&&Es(i)?OR(o,e):$R(o)}s(As,"getResponseZodSchemaName");var Zi=s((e,t)=>fv(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),Iv=s((e,t)=>Se(t)?`${e.options.includeNamespaces?`${ee({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Is=s((e,t)=>Se(t)?`${e.options.includeNamespaces?`${ee({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${Zi(t,e.options)}`:t,"getImportedZodSchemaInferedTypeName");function ks(e){return me(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(ks,"primitiveTypeToTsType");function jn({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&Se(e)?(n=Is(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&Tt(t==null?void 0:t.type)&&(n=ks(t==null?void 0:t.type));let o=n.split(".");return{type:o[o.length-1],...o.length>1?{namespace:o[0]}:{},...i?{filePath:er({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}s(jn,"getTsTypeBase");function Mr({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of $s){let o=e[i];if(o)if(o.length>1){let a=o.map(u=>{let c=n.resolveObject(u);return Mr({schema:c,parentTypes:r,resolver:n})});return a.every(({metaType:u})=>u==="object")?{metaType:"object",objectProperties:a.reduce((u,{objectProperties:c})=>{let l=c.map(({name:p})=>p);return[...u.filter(({name:p})=>!l.includes(p)),...c]},[])}:{metaType:"composite",[i]:a}}else e=n.resolveObject(o[0])}return e.type==="array"?{metaType:"array",arrayType:kv({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:ER({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}s(Mr,"getSchemaTsMetaType");function kv({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(H(e.items)){let c=e.items.$ref;n=r.getZodSchemaNameByRef(c),i=r.getSchemaByRef(c)}else i=e.items;let o=jn({zodSchemaName:n,schema:i,resolver:r}),a=Rv(o,t),u=Mr({schema:i,isCircular:a,parentTypes:[...t,o],resolver:r});return{...o,...u}}s(kv,"getArraySchemaTsType");function ER({schema:e,parentTypes:t,resolver:r}){return Object.entries((e==null?void 0:e.properties)??{}).map(([n,i])=>{var a;let o=((a=e==null?void 0:e.required)==null?void 0:a.includes(n))??!1;if(H(i)){let u=r.getZodSchemaNameByRef(i.$ref),c=r.getSchemaByRef(i.$ref),l=jn({zodSchemaName:u,schema:c,resolver:r}),p=Rv(l,t),f=Mr({schema:c,isCircular:p,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:o,...l,...f}}else if(i.type==="array"){let u=kv({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:o,type:"array",metaType:"array",arrayType:u}}else if(Tt(i.type))return{name:n,isRequired:o,type:ks(i.type),metaType:"primitive"};return{name:n,isRequired:o,type:"void",metaType:"primitive"}})}s(ER,"getSchemaTsProperties");function Rv(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}s(Rv,"getIsCircular");var Pf={"Content-Type":"application/json",Accept:"application/json"},Tv="data";function bt(e){return!H(e)}s(bt,"isSchemaObject");function Nv(e){return e.type==="array"}s(Nv,"isArraySchemaObject");function Cv(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,o)=>{if(xR(o)){let a=o.required;i[0].push(...a??[])}else i[1].push(o);return i},[[],[]]),n={properties:t.reduce((i,o)=>(i[o]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:s((i,o)=>{if(H(i)){let a=o(i.$ref);a&&n.required.forEach(u=>{var c;n.properties[u]=((c=a==null?void 0:a.properties)==null?void 0:c[u])??{}})}else{let a=i.properties??{};n.required.forEach(u=>{a[u]&&(n.properties[u]=a[u]??{})})}},"patchRequiredSchemaInLoop")}}s(Cv,"inferRequiredSchema");var xR=s(e=>!H(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var Ki=s(e=>Hi(Ie(e.operationName)),"getEndpointName");function qv(e,t){return`${t.includeNamespaces?`${ee({type:"endpoints",tag:Wi(e,t),options:t})}.`:""}${Ki(e)}`}s(qv,"getImportedEndpointName");var jv=s(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function Wi(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return St(r??t.defaultTag)}s(Wi,"getEndpointTag");function $f(e,t){return t.parameters.map(r=>{var i,o,a,u;let n="string";if(Se(r.zodSchema))n=Is(e,r.zodSchema);else if((i=r.parameterObject)!=null&&i.schema&&bt(r.parameterObject.schema)){let c=(a=(o=r.parameterObject)==null?void 0:o.schema)==null?void 0:a.type;c&&Tt(c)&&(n=ks(c))}return{name:gt(r.name),type:n,paramType:r.type,required:((u=r.parameterObject)==null?void 0:u.required)??!0}}).sort((r,n)=>{if(r.required===n.required){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.required?-1:1})}s($f,"mapEndpointParamsToFunctionParams");function Mv(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let o=dv(i.name)?i.name:`"${i.name}"`,a=gt(i.name);return{...i,name:o,value:a}}),r={};return e.requestFormat!==Pf["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==Pf.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=gt(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}s(Mv,"getEndpointConfig");function Dv(e){return{type:"invalid-schema",message:`${e} has both reference and composite keyword`}}s(Dv,"getInvalidSchemaError");function Lv(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}s(Lv,"getInvalidOperationIdError");function Fv(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.join(", ")}]`}}s(Fv,"getMissingPathParameterError");function Vv(e){return{type:"not-allowed-inline-enum",message:e}}s(Vv,"getNotAllowedInlineEnumError");function Pt({schema:e,meta:t,options:r}){let n=[];me(e.type).with("string",()=>n.push(IR(e))).with("number","integer",()=>n.push(RR(e))).with("array",()=>n.push(TR(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
71
+ `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:s(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:s(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:s(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:s(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:s(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:s(function(t){this.lastContext=t},"getContext"),pushContext:s(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:s(function(t,r,n,i){var o=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[o++])):this.pushContext(),this.resolvePath("context",t,o,r,n)},"lookupOnContext"),lookupBlockParam:s(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:s(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:s(function(t,r,n,i,o){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(AC(this.options.strict&&o,this,r,n,t));return}for(var u=r.length;n<u;n++)this.replaceStack(function(c){var l=a.nameLookup(c,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",c]})},"resolvePath"),resolvePossibleLambda:s(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:s(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:s(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:s(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:s(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:s(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:s(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:s(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:s(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:s(function(t,r,n){var i=this.popStack(),o=this.setupHelper(t,r),a=[];n&&a.push(o.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var u=["(",this.itemsSeparatedBy(a,"||"),")"],c=this.source.functionCall(u,"call",o.callParams);this.push(c)},"invokeHelper"),itemsSeparatedBy:s(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:s(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:s(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),o=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",o," || ",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:s(function(t,r,n){var i=[],o=this.setupParams(r,1,i);t&&(r=this.popStack(),delete o.name),n&&(o.indent=JSON.stringify(n)),o.helpers="helpers",o.partials="partials",o.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(o.depths="depths"),o=this.objectLiteral(o),i.push(o),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:s(function(t){var r=this.popStack(),n=void 0,i=void 0,o=void 0;this.trackIds&&(o=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),o&&(a.ids[t]=o),a.values[t]=r},"assignToHash"),pushId:s(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:Gn,compileChildren:s(function(t,r){for(var n=t.children,i=void 0,o=void 0,a=0,u=n.length;a<u;a++){i=n[a],o=new this.compiler;var c=this.matchExistingProgram(i);if(c==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=o.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=o.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=c.index,i.name="program"+c.index,this.useDepths=this.useDepths||c.useDepths,this.useBlockParams=this.useBlockParams||c.useBlockParams}},"compileChildren"),matchExistingProgram:s(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:s(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:s(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:s(function(t){return t instanceof zn||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:s(function(t){this.push(new zn(t))},"pushStackLiteral"),pushSource:s(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:s(function(t){var r=["("],n=void 0,i=void 0,o=void 0;if(!this.isInline())throw new Sp.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof zn)n=[a.value],r=["(",n],o=!0;else{i=!0;var u=this.incrStack();r=["((",this.push(u)," = ",a,")"],n=this.topStack()}var c=t.call(this,n);o||this.popStack(),i&&this.stackSlot--,this.push(r.concat(c,")"))},"replaceStack"),incrStack:s(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:s(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:s(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof zn)this.compileStack.push(i);else{var o=this.incrStack();this.pushSource([o," = ",i,";"]),this.compileStack.push(o)}}},"flushInline"),isInline:s(function(){return this.inlineStack.length},"isInline"),popStack:s(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof zn)return n.value;if(!r){if(!this.stackSlot)throw new Sp.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:s(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof zn?r.value:r},"topStack"),contextName:s(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:s(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:s(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:s(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:s(function(t,r,n){var i=[],o=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),u=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:o,name:a,callParams:[u].concat(i)}},"setupHelper"),setupParams:s(function(t,r,n){var i={},o=[],a=[],u=[],c=!n,l=void 0;c&&(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 p=this.popStack(),f=this.popStack();(f||p)&&(i.fn=f||"container.noop",i.inverse=p||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(u[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),o[d]=this.popStack());return c&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(u)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(o)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:s(function(t,r,n,i){var o=this.setupParams(t,r,n);return o.loc=JSON.stringify(this.source.currentLocation),o=this.objectLiteral(o),i?(this.useRegister("options"),n.push("options"),["options=",o]):n?(n.push(o),""):o},"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=Gn.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Gn.isValidJavaScriptVariableName=function(e){return!Gn.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function AC(e,t,r,n,i){var o=t.popStack(),a=r.length;for(e&&a--;n<a;n++)o=t.nameLookup(o,r[n],i);return e?[t.aliasable("container.strict"),"(",o,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:o}s(AC,"strictLookup");da.default=Gn;zS.exports=da.default});var WS=m((ha,KS)=>{"use strict";ha.__esModule=!0;function fo(e){return e&&e.__esModule?e:{default:e}}s(fo,"_interopRequireDefault");var IC=Y_(),kC=fo(IC),RC=Qf(),TC=fo(RC),bp=cS(),Pp=dS(),CC=GS(),NC=fo(CC),qC=ia(),jC=fo(qC),MC=Zf(),DC=fo(MC),LC=kC.default.create;function ZS(){var e=LC();return e.compile=function(t,r){return Pp.compile(t,r,e)},e.precompile=function(t,r){return Pp.precompile(t,r,e)},e.AST=TC.default,e.Compiler=Pp.Compiler,e.JavaScriptCompiler=NC.default,e.Parser=bp.parser,e.parse=bp.parse,e.parseWithoutProcessing=bp.parseWithoutProcessing,e}s(ZS,"create");var Zn=ZS();Zn.create=ZS;DC.default(Zn);Zn.Visitor=jC.default;Zn.default=Zn;ha.default=Zn;KS.exports=ha.default});var YS=m(ma=>{"use strict";ma.__esModule=!0;ma.print=HC;ma.PrintVisitor=K;function FC(e){return e&&e.__esModule?e:{default:e}}s(FC,"_interopRequireDefault");var VC=ia(),BC=FC(VC);function HC(e){return new K().accept(e)}s(HC,"print");function K(){this.padding=0}s(K,"PrintVisitor");K.prototype=new BC.default;K.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
72
+ `,t};K.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var o="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)o+=" "+e.blockParams[n];o+=" ]",t+=this.pad(o)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};K.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};K.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};K.prototype.BlockStatement=K.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};K.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+" }}")};K.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+" }}")};K.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};K.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};K.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,o=t.length;i<o;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};K.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};K.prototype.StringLiteral=function(e){return'"'+e.value+'"'};K.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};K.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};K.prototype.UndefinedLiteral=function(){return"UNDEFINED"};K.prototype.NullLiteral=function(){return"NULL"};K.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(", ")+"}"};K.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var zr=m((L6,XS)=>{var ga=WS().default,JS=YS();ga.PrintVisitor=JS.PrintVisitor;ga.print=JS.print;XS.exports=ga;function QS(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=ga.compile(n)}s(QS,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=QS,require.extensions[".hbs"]=QS)});var lN={};_b(lN,{getGenerateFilesData:()=>cN,getGenerateMetadata:()=>uN});module.exports=Sb(lN);var Ap=Et(iv());var ov="Schema",sv="Enum",av="Body",uv="Param",cv="Response",lv="ErrorResponse",cf="z.void()",vs={bindings:["z"],from:"zod"};var Bi={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,importPath:"ts",extractEnums:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:ov,enumSuffix:sv,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var Te=s((...e)=>[...new Set(e.flat())],"getUniqueArray");var he=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Hi=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),_s=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),Ie=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),fv=s(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),lf=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),pv=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),mR=s(e=>{var n;let t=e.reduce((i,o)=>({...i,[o]:(i[o]??0)+1}),{});return(n=Object.entries(t).sort((i,o)=>i[1]===o[1]?o[0].length-i[0].length:o[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),ff=s(e=>{let t=e.map(he).map(gR).map(r=>yR(r)).flat();return mR(t)},"getMostCommonAdjacentCombinationSplit"),gR=s(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),yR=s((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 o=i+1;o<=e.length;o++)t.includes((n=e[o-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,o).join(""));return r},"getAdjacentStringCombinations");var Ss=s(e=>`use${he(Ie(e.operationName))}`,"getQueryName"),pf=s(e=>{let t=e.map(({path:o})=>o),r=/^\/[^\/]*/g,n=Te(t.map(o=>o.match(r)).flat()),i=s(o=>n.length===1?"all":`all${he(_s(o.replace(/\//g,"")??""))}`,"getQueryKeyName");return n.filter(o=>o!==null).map(o=>({path:o,name:i(o??"")}))},"getAllQueryKeys"),dv=s((e,t)=>{let n=pf(t).find(({path:o})=>e.path.startsWith(o));if(!n)return[e.path];let i=e.path.substring(n.path.length);return[`...keys.${n.name}`,...i?[`"${i}"`]:[]]},"getEndpointPathQueryKeys");function tr({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Hi(t)}/`:""}${Hi(t)}.${i}`:i}s(tr,"getTagFileName");var ee=s(({type:e,tag:t,options:r})=>`${he(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var hv=s(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),gt=s(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var Rt=Symbol.for("@ts-pattern/matcher"),vR=Symbol.for("@ts-pattern/isVariadic"),Ps="@ts-pattern/anonymous-select-key",df=s(e=>!!(e&&typeof e=="object"),"r"),bs=s(e=>e&&!!e[Rt],"i"),_t=s((e,t,r)=>{if(bs(e)){let n=e[Rt](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(df(e)){if(!df(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let a of e.keys()){let u=e[a];bs(u)&&u[vR]?o.push(u):o.length?i.push(u):n.push(u)}if(o.length){if(o.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),u=i.length===0?[]:t.slice(-i.length),c=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,p)=>_t(l,a[p],r))&&i.every((l,p)=>_t(l,u[p],r))&&(o.length===0||_t(o[0],c,r))}return e.length===t.length&&e.every((a,u)=>_t(a,t[u],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||bs(o=i)&&o[Rt]().matcherType==="optional")&&_t(i,t[n],r);var o})}return Object.is(t,e)},"s"),sr=s(e=>{var t,r,n;return df(e)?bs(e)?(t=(r=(n=e[Rt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?zi(e,sr):zi(Object.values(e),sr):[]},"o"),zi=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Ve(e){return Object.assign(e,{optional:s(()=>_R(e),"optional"),and:s(t=>z(e,t),"and"),or:s(t=>SR(e,t),"or"),select:s(t=>t===void 0?mv(e):mv(t,e),"select")})}s(Ve,"u");function _R(e){return Ve({[Rt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return t===void 0?(sr(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:_t(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>sr(e),"getSelectionKeys"),matcherType:"optional"})})}s(_R,"h");function z(...e){return Ve({[Rt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>_t(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>zi(e,sr),"getSelectionKeys"),matcherType:"and"})})}s(z,"m");function SR(...e){return Ve({[Rt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return zi(e,sr).forEach(i=>n(i,void 0)),{matched:e.some(i=>_t(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>zi(e,sr),"getSelectionKeys"),matcherType:"or"})})}s(SR,"d");function D(e){return{[Rt]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(D,"p");function mv(...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 Ve({[Rt]:()=>({match:s(n=>{let i={[t??Ps]:n};return{matched:r===void 0||_t(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??Ps].concat(r===void 0?[]:sr(r)),"getSelectionKeys")})})}s(mv,"y");function yt(e){return typeof e=="number"}s(yt,"v");function rr(e){return typeof e=="string"}s(rr,"b");function nr(e){return typeof e=="bigint"}s(nr,"w");var D8=Ve(D(function(e){return!0}));var ir=s(e=>Object.assign(Ve(e),{startsWith:s(t=>{return ir(z(e,(r=t,D(n=>rr(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return ir(z(e,(r=t,D(n=>rr(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>ir(z(e,(r=>D(n=>rr(n)&&n.length>=r))(t))),"minLength"),length:s(t=>ir(z(e,(r=>D(n=>rr(n)&&n.length===r))(t))),"length"),maxLength:s(t=>ir(z(e,(r=>D(n=>rr(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return ir(z(e,(r=t,D(n=>rr(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return ir(z(e,(r=t,D(n=>rr(n)&&!!n.match(r)))));var r},"regex")}),"j"),L8=ir(D(rr)),vt=s(e=>Object.assign(Ve(e),{between:s((t,r)=>vt(z(e,((n,i)=>D(o=>yt(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>vt(z(e,(r=>D(n=>yt(n)&&n<r))(t))),"lt"),gt:s(t=>vt(z(e,(r=>D(n=>yt(n)&&n>r))(t))),"gt"),lte:s(t=>vt(z(e,(r=>D(n=>yt(n)&&n<=r))(t))),"lte"),gte:s(t=>vt(z(e,(r=>D(n=>yt(n)&&n>=r))(t))),"gte"),int:s(()=>vt(z(e,D(t=>yt(t)&&Number.isInteger(t)))),"int"),finite:s(()=>vt(z(e,D(t=>yt(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>vt(z(e,D(t=>yt(t)&&t>0))),"positive"),negative:s(()=>vt(z(e,D(t=>yt(t)&&t<0))),"negative")}),"x"),F8=vt(D(yt)),or=s(e=>Object.assign(Ve(e),{between:s((t,r)=>or(z(e,((n,i)=>D(o=>nr(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>or(z(e,(r=>D(n=>nr(n)&&n<r))(t))),"lt"),gt:s(t=>or(z(e,(r=>D(n=>nr(n)&&n>r))(t))),"gt"),lte:s(t=>or(z(e,(r=>D(n=>nr(n)&&n<=r))(t))),"lte"),gte:s(t=>or(z(e,(r=>D(n=>nr(n)&&n>=r))(t))),"gte"),positive:s(()=>or(z(e,D(t=>nr(t)&&t>0))),"positive"),negative:s(()=>or(z(e,D(t=>nr(t)&&t<0))),"negative")}),"A"),V8=or(D(nr)),B8=Ve(D(function(e){return typeof e=="boolean"})),H8=Ve(D(function(e){return typeof e=="symbol"})),U8=Ve(D(function(e){return e==null})),z8=Ve(D(function(e){return e!=null}));var yf=class yf 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}};s(yf,"W");var hf=yf,mf={matched:!1,value:void 0};function me(e){return new gf(e,mf)}s(me,"z");var Ui=class Ui{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 o=!1,a={},u=s((l,p)=>{o=!0,a[l]=p},"a"),c=!n.some(l=>_t(l,this.input,u))||i&&!i(this.input)?mf:{matched:!0,value:r(o?Ps in a?a[Ps]:a:this.input,this.input)};return new Ui(this.input,c)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Ui(this.input,n?{matched:!0,value:r(this.input,this.input)}:mf)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new hf(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(Ui,"I");var gf=Ui;var gv=["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"];var vf=2,yv=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],vv=["query","header","path"],ar=["get","put","post","delete","options","head","patch","trace"],_v=["string","number","integer","boolean"],$s=["allOf","anyOf","oneOf"];function ur(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(ur,"pick");function St(e){return fv(e)}s(St,"formatTag");function Nr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return St(r??t.defaultTag)}s(Nr,"getOperationTag");function Sv(e,t){let r={};for(let n in e.paths){let i=e.paths[n],o=ur(i,ar);for(let a in o){let u=o[a];if(!u||u.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let c=t.splitByTags?Nr(u,t):t.defaultTag;r[c]||(r[c]=[]),r[c].push(u)}}return r}s(Sv,"getOperationsByTag");var Pv=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),qr=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Cn=s(e=>qr(e).split("/").at(-1),"getSchemaNameByRef");function H(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s(H,"isReferenceObject");function bf(e){let t=bR(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return Ie(t)}s(bf,"normalizeString");function $v(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s($v,"wrapWithQuotesIfNeeded");function Ov(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s(Ov,"unwrapQuotesIfNeeded");function bR(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(bR,"prefixStringStartingWithNumberIfNeeded");function Pf(e){let t=e.replaceAll("_","#");return Ie(t.replaceAll("-","_")).replaceAll("#","_")}s(Pf,"pathParamToVariableName");var Tt=s(e=>_v.includes(e),"isPrimitiveType");function Ev(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,"\\/")}s(Ev,"escapeControlCharacters");function cr(e){return e.includes("application/")&&e.includes("json")||yv.includes(e)||e.includes("text/")}s(cr,"isParamMediaTypeAllowed");function Os(e){return e>=200&&e<300}s(Os,"isMainResponseStatus");function Es(e){return!(e>=200&&e<300)}s(Es,"isErrorStatus");function Nn(e){return e==="application/json"}s(Nn,"isMediaTypeAllowed");function _f({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let o=`${t}${$R(e)}`,a=r.operationId?gt(r.operationId):o;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((c,l)=>l===0?c:he(c)).join("");if(n.removeOperationPrefixEndingWith&&!i){let u=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(u,"")}return gv.includes(a)?o:a}s(_f,"getOperationName");function Gi({path:e,method:t,operation:r,operationsByTag:n,options:i}){let o=i.splitByTags?Nr(r,i):i.defaultTag,a=_f({path:e,method:t,operation:r,options:i});return n[o].filter(c=>_f({path:e,method:t,operation:c,options:i})===a).length===1?a:_f({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}s(Gi,"getUniqueOperationName");function xv(e,t,r){let n=[];for(let i in e.paths){let o=e.paths[i],a=ur(o,ar);for(let u in a){let c=a[u];if(!c||c.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let l=Gi({path:i,method:u,operation:c,operationsByTag:t,options:r});n.push(l)}}return n}s(xv,"getUniqueOperationNamesWithoutSplitByTags");var bv=/({\w+})/g,PR=/[^\w\-]+/g;function $R(e){e=he(_s(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(bv)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(bv,"")}By${he(r.slice(1,-1))}`}return e.replace(PR,"_")}s($R,"pathToVariableName");var Sf=/{(\b\w+(?:-\w+)*\b)}/g;function wv(e){let t=e.match(Sf);return t===null?e.replaceAll(Sf,":$1"):(t.forEach(r=>{let n=Pf(r.replaceAll(Sf,":$1"));e=e.replaceAll(r,n)}),e)}s(wv,"replaceHyphenatedPath");var qn=s(e=>e.method==="get","isQuery"),xs=s(e=>e.method!=="get","isMutation");var Ct=s((e,t)=>lf(he(bf(e)),t),"getZodSchemaName"),Av=s((e,t,r)=>lf(he(bf(e)),`${t}${r}`),"getEnumZodSchemaName"),Se=s(e=>!e.startsWith("z."),"isNamedZodSchema"),jr=s((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),ws=s(e=>Ie(`${e}_${av}`),"getBodyZodSchemaName"),Iv=s((e,t)=>Ie(`${e}_${t}${uv}`),"getParamZodSchemaName"),OR=s(e=>Ie(`${e}${cv}`),"getMainResponseZodSchemaName"),ER=s((e,t)=>Ie(`${e}_${t}_${lv}`),"getErrorResponseZodSchemaName");function As({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),o=jr(t,r,n);return!Os(i)&&e!=="default"&&Es(i)?ER(o,e):OR(o)}s(As,"getResponseZodSchemaName");var Zi=s((e,t)=>pv(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),kv=s((e,t)=>Se(t)?`${e.options.includeNamespaces?`${ee({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Is=s((e,t)=>Se(t)?`${e.options.includeNamespaces?`${ee({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${Zi(t,e.options)}`:t,"getImportedZodSchemaInferedTypeName");function ks(e){return me(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(ks,"primitiveTypeToTsType");function jn({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&Se(e)?(n=Is(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&Tt(t==null?void 0:t.type)&&(n=ks(t==null?void 0:t.type));let o=n.split(".");return{type:o[o.length-1],...o.length>1?{namespace:o[0]}:{},...i?{filePath:tr({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}s(jn,"getTsTypeBase");function Mr({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of $s){let o=e[i];if(o)if(o.length>1){let a=o.map(u=>{let c=n.resolveObject(u);return Mr({schema:c,parentTypes:r,resolver:n})});return a.every(({metaType:u})=>u==="object")?{metaType:"object",objectProperties:a.reduce((u,{objectProperties:c})=>{let l=c.map(({name:p})=>p);return[...u.filter(({name:p})=>!l.includes(p)),...c]},[])}:{metaType:"composite",[i]:a}}else e=n.resolveObject(o[0])}return e.type==="array"?{metaType:"array",arrayType:Rv({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:xR({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}s(Mr,"getSchemaTsMetaType");function Rv({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(H(e.items)){let c=e.items.$ref;n=r.getZodSchemaNameByRef(c),i=r.getSchemaByRef(c)}else i=e.items;let o=jn({zodSchemaName:n,schema:i,resolver:r}),a=Tv(o,t),u=Mr({schema:i,isCircular:a,parentTypes:[...t,o],resolver:r});return{...o,...u}}s(Rv,"getArraySchemaTsType");function xR({schema:e,parentTypes:t,resolver:r}){return Object.entries((e==null?void 0:e.properties)??{}).map(([n,i])=>{var a;let o=((a=e==null?void 0:e.required)==null?void 0:a.includes(n))??!1;if(H(i)){let u=r.getZodSchemaNameByRef(i.$ref),c=r.getSchemaByRef(i.$ref),l=jn({zodSchemaName:u,schema:c,resolver:r}),p=Tv(l,t),f=Mr({schema:c,isCircular:p,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:o,...l,...f}}else if(i.type==="array"){let u=Rv({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:o,type:"array",metaType:"array",arrayType:u}}else if(Tt(i.type))return{name:n,isRequired:o,type:ks(i.type),metaType:"primitive"};return{name:n,isRequired:o,type:"void",metaType:"primitive"}})}s(xR,"getSchemaTsProperties");function Tv(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}s(Tv,"getIsCircular");var $f={"Content-Type":"application/json",Accept:"application/json"},Cv="data";function bt(e){return!H(e)}s(bt,"isSchemaObject");function Nv(e){return e.type==="array"}s(Nv,"isArraySchemaObject");function qv(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,o)=>{if(wR(o)){let a=o.required;i[0].push(...a??[])}else i[1].push(o);return i},[[],[]]),n={properties:t.reduce((i,o)=>(i[o]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:s((i,o)=>{if(H(i)){let a=o(i.$ref);a&&n.required.forEach(u=>{var c;n.properties[u]=((c=a==null?void 0:a.properties)==null?void 0:c[u])??{}})}else{let a=i.properties??{};n.required.forEach(u=>{a[u]&&(n.properties[u]=a[u]??{})})}},"patchRequiredSchemaInLoop")}}s(qv,"inferRequiredSchema");var wR=s(e=>!H(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var Ki=s(e=>Hi(Ie(e.operationName)),"getEndpointName");function jv(e,t){return`${t.includeNamespaces?`${ee({type:"endpoints",tag:Wi(e,t),options:t})}.`:""}${Ki(e)}`}s(jv,"getImportedEndpointName");var Mv=s(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function Wi(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return St(r??t.defaultTag)}s(Wi,"getEndpointTag");function Of(e,t){return t.parameters.map(r=>{var i,o,a,u;let n="string";if(Se(r.zodSchema))n=Is(e,r.zodSchema);else if((i=r.parameterObject)!=null&&i.schema&&bt(r.parameterObject.schema)){let c=(a=(o=r.parameterObject)==null?void 0:o.schema)==null?void 0:a.type;c&&Tt(c)&&(n=ks(c))}return{name:gt(r.name),type:n,paramType:r.type,required:((u=r.parameterObject)==null?void 0:u.required)??!0}}).sort((r,n)=>{if(r.required===n.required){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.required?-1:1})}s(Of,"mapEndpointParamsToFunctionParams");function Dv(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let o=hv(i.name)?i.name:`"${i.name}"`,a=gt(i.name);return{...i,name:o,value:a}}),r={};return e.requestFormat!==$f["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==$f.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=gt(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}s(Dv,"getEndpointConfig");function Rs(e){return{type:"invalid-schema",message:e}}s(Rs,"getInvalidSchemaError");function Lv(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}s(Lv,"getInvalidOperationIdError");function Fv(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}s(Fv,"getMissingPathParameterError");function Vv(e){return{type:"not-allowed-inline-enum",message:e}}s(Vv,"getNotAllowedInlineEnumError");function Bv(e){return{type:"not-allowed-circular-schema",message:e}}s(Bv,"getNotAllowedCircularSchemaError");function Pt({schema:e,meta:t,options:r}){let n=[];me(e.type).with("string",()=>n.push(kR(e))).with("number","integer",()=>n.push(TR(e))).with("array",()=>n.push(CR(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
73
73
  `,"\r",`\r
74
- `].some(o=>String.prototype.includes.call(e.description,o))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(wR(e,t),(r==null?void 0:r.withDefaultValues)!==!1?AR(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}s(Pt,"getZodChain");function wR(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}s(wR,"getZodChainablePresence");function AR(e){return e.default!==void 0?`default(${me(e.type).with("number","integer",()=>$v(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}s(AR,"getZodChainableDefault");function IR(e){let t=[];if(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(${kR(e.pattern)})`),e.format){let r=me(e.format).with("email",()=>"email()").with("hostname","uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}s(IR,"getZodChainableStringValidations");function kR(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=Ov(e),`/${e}/`}s(kR,"formatPatternIfNeeded");function RR(e){let t=[];return e.enum?"":(e.type==="integer"&&t.push("int()"),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("."))}s(RR,"getZodChainableNumberValidations");function TR(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}s(TR,"getZodChainableArrayValidations");var Dr=s(e=>e.reduce((t,r)=>t+r,0),"sum");function te(e,t){if(!t)return e;if(H(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?be("oneOf")+te(e,{...t,type:t.type[0]}):e+be("oneOf")+Dr(t.type.map(r=>te(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?be("oneOf")+te(e,t.oneOf[0]):e+be("oneOf")+Dr(t.oneOf.map(r=>te(0,r)));if(t.anyOf)return t.anyOf.length===1?be("anyOf")+te(e,t.anyOf[0]):e+be("anyOf")+Dr(t.anyOf.map(r=>te(0,r)));if(t.allOf)return t.allOf.length===1?be("allOf")+te(e,t.allOf[0]):e+be("allOf")+Dr(t.allOf.map(r=>te(0,r)));if(!t.type)return e;if(Tt(t.type))return t.enum?e+Bv(t)+be("enum")+Dr(t.enum.map(r=>te(0,r))):e+Bv(t);if(t.type==="array")return t.items?be("array")+te(e,t.items):be("array")+te(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?be("record")+te(e):be("record")+te(e,t.additionalProperties);if(t.properties){let r=Object.values(t.properties);return e+be("object")+Dr(r.map(n=>te(0,n)))}return be("empty-object")+te(e)}return e}s(te,"getOpenAPISchemaComplexity");function Bv(e){return me(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}s(Bv,"complexityByType");function be(e){return me(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","record","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}s(be,"complexityByComposite");var Of=class Of{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;H(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 o,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=(o=this.resolver)==null?void 0:o.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.includeNamespaces&&i&&i!==t?`${ee({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return te(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};s(Of,"ZodSchema");var Yi=Of;function Z({schema:e,resolver:t,meta:r,tag:n}){var g;let i=new Yi(e,t,r),o={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:o,tag:n};if(H(e))return NR({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});let u=qR({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(u)return u;let c=CR({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(c)return c;let l=jR({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(l)return l;let p=MR({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(p)return p;let f=DR({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(f)return f;let d=t.options.allReadonly?".readonly()":"";if(Nv(e))return e.items?i.assign(`z.array(${Z({...a,schema:e.items}).getCodeString(n,t.options)}${Pt({schema:e.items,meta:{...o,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(z.any())${d}`);let h=e.type?e.type.toLowerCase():void 0;if(h==="object"||e.properties||e.additionalProperties){let y=t.options.additionalPropertiesDefaultValue!==void 0?t.options.additionalPropertiesDefaultValue:!0,_=(e.additionalProperties===null||e.additionalProperties===void 0?y:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return i.assign(`z.record(${Z({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+Pt({schema:e.additionalProperties,meta:{...o,isRequired:!0},options:t.options})})`);let S=e.required&&e.required.length>0,b=t.options.withImplicitRequiredProps?!1:!((g=e.required)!=null&&g.length),E="{}";e.properties&&(E="{ "+Object.entries(e.properties).map(([re,ne])=>{var Mt;let ue={...o,isRequired:b?!0:S?(Mt=e.required)==null?void 0:Mt.includes(re):t.options.withImplicitRequiredProps,name:re},qe=ne;if(H(ne)&&t&&(qe=t.getSchemaByRef(ne.$ref),!qe))throw new Error(`Schema ${ne.$ref} not found`);let $e=Z({...a,schema:ne,meta:ue}).getCodeString(n,t.options)+Pt({schema:qe,meta:ue,options:t.options});return[re,$e]}).map(([re,ne])=>`${Pv(re)}: ${ne}`).join(", ")+" }");let $=b?".partial()":"",M=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${E})${$}${M}${_}${d}`)}if(!h)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${h}`)}s(Z,"getZodSchema");function NR({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!H(e))return;let o=t.meta.referencedBy.slice(0,-1).map(c=>c.ref?r.getZodSchemaNameByRef(c.ref)??c.ref:void 0).filter(Boolean),a=r.getZodSchemaNameByRef(e.$ref);if(o.length>1&&o.includes(a))return t.assign(r.getCodeByZodSchemaName(t.ref));let u=r.getCodeByZodSchemaName(e.$ref);if(!u){let c=r.getSchemaByRef(e.$ref);if(!c)throw new Error(`Schema ${e.$ref} not found`);u=Z({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,u,i),t}s(NR,"getReferenceZodSchema");function CR({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!bt(e)||!e.oneOf)return;if(e.oneOf.length===1){let u=Z({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(u.getCodeString(i,r.options))}let o=(a=e.oneOf)==null?void 0:a.some(u=>bt(u)&&((u==null?void 0:u.allOf)||[]).length>1);if(e.discriminator&&!o){let u=e.discriminator.propertyName;return t.assign(`
74
+ `].some(o=>String.prototype.includes.call(e.description,o))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(AR(e,t),(r==null?void 0:r.withDefaultValues)!==!1?IR(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}s(Pt,"getZodChain");function AR(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}s(AR,"getZodChainablePresence");function IR(e){return e.default!==void 0?`default(${me(e.type).with("number","integer",()=>Ov(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}s(IR,"getZodChainableDefault");function kR(e){let t=[];if(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(${RR(e.pattern)})`),e.format){let r=me(e.format).with("email",()=>"email()").with("hostname","uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}s(kR,"getZodChainableStringValidations");function RR(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=Ev(e),`/${e}/`}s(RR,"formatPatternIfNeeded");function TR(e){let t=[];return e.enum?"":(e.type==="integer"&&t.push("int()"),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("."))}s(TR,"getZodChainableNumberValidations");function CR(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}s(CR,"getZodChainableArrayValidations");var Dr=s(e=>e.reduce((t,r)=>t+r,0),"sum");function te(e,t){if(!t)return e;if(H(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?be("oneOf")+te(e,{...t,type:t.type[0]}):e+be("oneOf")+Dr(t.type.map(r=>te(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?be("oneOf")+te(e,t.oneOf[0]):e+be("oneOf")+Dr(t.oneOf.map(r=>te(0,r)));if(t.anyOf)return t.anyOf.length===1?be("anyOf")+te(e,t.anyOf[0]):e+be("anyOf")+Dr(t.anyOf.map(r=>te(0,r)));if(t.allOf)return t.allOf.length===1?be("allOf")+te(e,t.allOf[0]):e+be("allOf")+Dr(t.allOf.map(r=>te(0,r)));if(!t.type)return e;if(Tt(t.type))return t.enum?e+Hv(t)+be("enum")+Dr(t.enum.map(r=>te(0,r))):e+Hv(t);if(t.type==="array")return t.items?be("array")+te(e,t.items):be("array")+te(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?be("record")+te(e):be("record")+te(e,t.additionalProperties);if(t.properties){let r=Object.values(t.properties);return e+be("object")+Dr(r.map(n=>te(0,n)))}return be("empty-object")+te(e)}return e}s(te,"getOpenAPISchemaComplexity");function Hv(e){return me(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}s(Hv,"complexityByType");function be(e){return me(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","record","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}s(be,"complexityByComposite");var Ef=class Ef{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;H(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 o,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=(o=this.resolver)==null?void 0:o.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.includeNamespaces&&i&&i!==t?`${ee({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return te(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};s(Ef,"ZodSchema");var Yi=Ef;function Z({schema:e,resolver:t,meta:r,tag:n}){var g;let i=new Yi(e,t,r),o={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:o,tag:n};if(H(e))return NR({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});let u=jR({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(u)return u;let c=qR({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(c)return c;let l=MR({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(l)return l;let p=DR({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(p)return p;let f=LR({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(f)return f;let d=t.options.allReadonly?".readonly()":"";if(Nv(e))return e.items?i.assign(`z.array(${Z({...a,schema:e.items}).getCodeString(n,t.options)}${Pt({schema:e.items,meta:{...o,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(z.any())${d}`);let h=e.type?e.type.toLowerCase():void 0;if(h==="object"||e.properties||e.additionalProperties){let y=t.options.additionalPropertiesDefaultValue!==void 0?t.options.additionalPropertiesDefaultValue:!0,_=(e.additionalProperties===null||e.additionalProperties===void 0?y:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return i.assign(`z.record(${Z({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+Pt({schema:e.additionalProperties,meta:{...o,isRequired:!0},options:t.options})})`);let S=e.required&&e.required.length>0,b=t.options.withImplicitRequiredProps?!1:!((g=e.required)!=null&&g.length),E="{}";e.properties&&(E="{ "+Object.entries(e.properties).map(([re,ne])=>{var Dt;let ue={...o,isRequired:b?!0:S?(Dt=e.required)==null?void 0:Dt.includes(re):t.options.withImplicitRequiredProps,name:re},qe=ne;if(H(ne)&&t&&(qe=t.getSchemaByRef(ne.$ref),!qe))throw new Error(`Schema ${ne.$ref} not found`);let $e=Z({...a,schema:ne,meta:ue}).getCodeString(n,t.options)+Pt({schema:qe,meta:ue,options:t.options});return[re,$e]}).map(([re,ne])=>`${$v(re)}: ${ne}`).join(", ")+" }");let $=b?".partial()":"",M=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${E})${$}${M}${_}${d}`)}if(!h)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${h}`)}s(Z,"getZodSchema");function NR({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!H(e))return;let o=t.meta.referencedBy.slice(0,-1).map(c=>c.ref?r.getZodSchemaNameByRef(c.ref)??c.ref:void 0).filter(Boolean),a=r.getZodSchemaNameByRef(e.$ref);if(o.length>1&&o.includes(a))return t.assign(r.getCodeByZodSchemaName(t.ref));let u=r.getCodeByZodSchemaName(e.$ref);if(!u){let c=r.getSchemaByRef(e.$ref);if(!c)throw new Error(`Schema ${e.$ref} not found`);u=Z({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,u,i),t}s(NR,"getReferenceZodSchema");function qR({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!bt(e)||!e.oneOf)return;if(e.oneOf.length===1){let u=Z({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(u.getCodeString(i,r.options))}let o=(a=e.oneOf)==null?void 0:a.some(u=>bt(u)&&((u==null?void 0:u.allOf)||[]).length>1);if(e.discriminator&&!o){let u=e.discriminator.propertyName;return t.assign(`
75
75
  z.discriminatedUnion("${u}", [${e.oneOf.map(c=>Z({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
76
- `)}return t.assign(`z.union([${e.oneOf.map(u=>Z({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}s(CR,"getOneOfZodSchema");function qR({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!bt(e)||!Array.isArray(e.type)))return e.type.length===1?Z({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(o=>Z({schema:{...e,type:o},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}s(qR,"getArrayZodSchema");function jR({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!bt(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=Z({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let o=e.anyOf.map(a=>Z({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${o}])`)}s(jR,"getAnyOfZodSchema");function MR({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!bt(e)||!e.allOf)return;if(e.allOf.length===1){let f=Z({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(f.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:o,noRequiredOnlyAllof:a,composedRequiredSchema:u}=Cv(e),c=a.map(f=>{let d=Z({schema:f,resolver:r,meta:n,tag:i});return r&&o(f,r.getSchemaByRef.bind(r)),d});u.required.length&&c.push(Z({schema:u,resolver:r,meta:n,tag:i}));let l=c.at(0),p=c.slice(1).map(f=>`merge(${f.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${p}`)}s(MR,"getAllOfZodSchema");function DR({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!bt(e))return;let o=e.type?e.type.toLowerCase():void 0;if(o&&Tt(o)){if(e.enum){if(o==="string")return LR({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(me(o).with("integer",()=>"z.number()").with("string",()=>me(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}s(DR,"getPrimitiveZodSchema");function LR({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){if(!bt(t))return;let o=Ef(t),a=e.getEnumZodSchemaDataByCode(o);if(!e.options.extractEnums||!a)return r.assign(o);if(!a.zodSchemaName||!a.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${o}`);let u=e.options.includeNamespaces&&a.tag!==i?`${ee({type:"models",tag:a.tag,options:e.options})}.`:"";return new Yi(t,e,n,a.zodSchemaName).inherit(r),r.assign(`${u}${a.zodSchemaName}`)}s(LR,"getEnumZodSchema");function Ef(e){var t;return`z.enum([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}s(Ef,"getEnumZodSchemaCode");function Mn({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var u;let o=t.getCodeString();if((!Se(o)||t.ref===void 0)&&r){if(t.complexity<yf)return o;let c=cr(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(c);){if((u=n.getZodSchemaNamesByCompositeCode(o))!=null&&u.includes(c))return c;if(n.getCodeByZodSchemaName(c)===c)return c;throw new Error(`Can't uniquely resolve zod schema name: ${c}`)}return n.setZodSchema(c,o,i),n.addZodSchemaForCompositeCode(o,t,c,e),c}let a=n.getCodeByZodSchemaName(o);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return te(0,n.getSchemaByRef(t.ref))<yf?n.getCodeByZodSchemaName(o):o;throw new Error(`Invalid ref: ${t.ref}`)}s(Mn,"resolveZodSchemaName");function Hv({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var h,g;let o=e.resolveObject(t.requestBody);if(!o)return;let u=Object.keys(o.content??{}).find(ur);if(!u)return;let c=(g=(h=o.content)==null?void 0:h[u])==null?void 0:g.schema;if(!c)return;let l=Z({schema:c,resolver:e,meta:{isRequired:o.required??!0},tag:i}),p=e.resolveObject(c),f=Mn({schema:p,zodSchema:l,fallbackName:ws(jr(r,n,i)),resolver:e,tag:i}),d=Pt({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:Tv,type:"Body",description:o.description,zodSchema:f+d,bodyObject:o},requestFormat:u}}s(Hv,"getEndpointBody");function Uv({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let o=e.resolveObject(t);if(!yv.includes(o.in))return;let a={};if(o.content){let f=Object.keys(o.content??{}),d=f.find(ur);if(!d)throw new Error(`Unsupported media type for param ${o.name}: ${f.join(", ")}`);let h=o.content[d];if(!h)throw new Error(`No content with media type for param ${o.name}: ${d}`);a=(h==null?void 0:h.schema)??h}else o.schema&&(a=o.schema);e.options.withDescription&&a&&(a.description=(o.description??"").trim());let u=Z({schema:a,resolver:e,meta:{isRequired:o.in==="path"?!0:o.required??!1},tag:i}),c=e.resolveObject(a),l=Pt({schema:c,meta:u.meta,options:e.options}),p=Mn({schema:c,zodSchema:u.assign(u.getCodeString(i)+l),fallbackName:Av(jr(r,n,i),o.name),resolver:e,tag:i});return{name:me(o.in).with("path",()=>bf(o.name)).otherwise(()=>o.name),type:me(o.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:p,parameterObject:o}}s(Uv,"getEndpointParameter");function Gv(e){var r,n,i;let t=[];for(let o in e.openApiDoc.paths){let a=e.openApiDoc.paths[o],u=ar(a,sr),c=zv(a.parameters??[]);for(let l in u){let p=u[l];if(!p||p.deprecated&&!e.options.withDeprecatedEndpoints)continue;let f=p.operationId&&p.operationId!==gt(p.operationId);p.operationId&&f&&e.validationErrors.push(Lv(p.operationId));let d=Object.entries({...c,...zv(p.parameters??[])}).map(([,S])=>S),h=Gi({path:o,method:l,operation:p,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(S=>S===h).length<=1,y=Cr(p,e.options),v={method:l,path:xv(o),operationName:h,description:p.description,tags:(r=p.tags)==null?void 0:r.map(St),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(p.requestBody){let S=Hv({resolver:e,operation:p,operationName:h,isUniqueOperationName:g,tag:y});S&&(v.parameters.push(S.endpointParameter),v.requestFormat=S.requestFormat)}for(let S of d){let b=Uv({resolver:e,param:S,operationName:h,isUniqueOperationName:g,tag:y});b&&v.parameters.push(b)}let _=FR(v);_.forEach(S=>{v.parameters.push(S)}),_.length>0&&e.validationErrors.push(Fv(_,o));for(let S in p.responses){let b=e.resolveObject(p.responses[S]),$=Object.keys(b.content??{}).find(Cn),M,j;if($?(v.responseFormat=$,M=(i=(n=b.content)==null?void 0:n[$])==null?void 0:i.schema):j=uf,M){let re=Z({schema:M,resolver:e,meta:{isRequired:!0},tag:y}),ne=e.resolveObject(M);j=Mn({schema:ne,zodSchema:re,fallbackName:re.ref?void 0:As({statusCode:S,operationName:h,isUniqueOperationName:g,tag:y}),resolver:e,tag:y})+Pt({schema:ne,meta:re.meta,options:e.options})}if(j){let re=Number(S);Os(re)?(v.response=j,v.responseObject=b):S!=="default"&&Es(re)&&v.errors.push({zodSchema:j,status:re,description:b.description})}}v.response||(v.response=uf),t.push(v)}}return t}s(Gv,"getEndpointsFromOpenAPIDoc");function zv(e){return Object.fromEntries((e??[]).map(t=>[H(t)?t.$ref:t.name,t]))}s(zv,"getParameters");function FR(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=>VR(r))}s(FR,"getMissingPathParameters");function VR(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}s(VR,"getPathParameterFromName");function nt(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(H(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if($s.some(o=>o in i&&i[o])){let o=i.allOf??i.anyOf??i.oneOf??[];for(let a of o){if((n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))===!0)return;nt(a,{data:r,onSchema:n})}}if(i.properties)for(let[o,a]of Object.entries(i.properties)){if(n({type:"property",parentSchema:e,schema:a,data:r,propertyName:o})===!0)return;nt(a,t)}if(i.additionalProperties)for(let[o,a]of Object.entries(i.additionalProperties)){if(!(a instanceof Object)||n({type:"additionalProperty",parentSchema:e,schema:a,data:r,propertyName:o})===!0)return;nt(a,t)}if(i.type==="array"){let o=e.items;if(n({type:"array",parentSchema:e,schema:o,data:r})===!0)return;nt(o,t)}}s(nt,"iterateSchema");function Zv(e,t){let r=BR(e,t),n=HR(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s(Zv,"getOpenAPISchemaDependencyGraph");function BR(e,t){let r={},n={};return e.forEach(i=>UR({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(BR,"getRefsDependencyGraph");function HR(e,t){let r={},n={},i=s((o,a)=>{n[a].add(o),t[o]&&a!==o&&t[o].forEach(u=>{let c=`${a}__${u}`;r[c]||(r[c]=!0,i(u,a))})},"visit");return e.forEach(o=>{let a=t[o];a&&(n[o]||(n[o]=new Set),a.forEach(u=>i(u,o)))}),n}s(HR,"getDeepRefsDependencyGraph");function UR({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let o=s(a=>{if(a.type!=="reference"||!a.data)return;let{schema:u,data:c}=a;if(i[c.fromRef]||(i[c.fromRef]=new Set),i[c.fromRef].add(u.$ref),n[u.$ref])return!0;n[c.fromRef]=!0,nt(r(u.$ref),{data:{fromRef:u.$ref},onSchema:o})},"onSchema");return nt(e,{data:{fromRef:t},onSchema:o}),{visitedRefs:n,refsDependencyGraph:i}}s(UR,"getSchemaRefsDependencyGraph");function Rs(e,t,r){let n=[];return nt(t,{onSchema:s(i=>{i.type==="reference"?n.push(i.schema):H(i.parentSchema)&&e.validationErrors.push(Dv(r))},"onSchema")}),n}s(Rs,"getSchemaRefObjs");function Kv(e,t){return t.map(i=>qr(i.$ref)).reduce((i,o)=>{let a=e.dependencyGraph.deepDependencyGraph[o];return[...i,o,...Array.from(a??[])]},[])}s(Kv,"getDeepSchemaRefObjs");function Qi({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&Wv({schema:e,nameSegments:t,...n}),nt(e,{data:{nameSegments:t},onSchema:s(i=>{var a;if(i.type==="reference")return!0;let o=[...((a=i.data)==null?void 0:a.nameSegments)??[]];(i.type==="property"||i.type==="additionalProperty")&&o.push(i.propertyName),Wv({schema:i.schema,nameSegments:[...o],...n})},"onSchema")})}s(Qi,"updateEnumZodSchemaData");function Wv({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:o=[]}){if(!t||H(t)||!t.enum)return;let a=Ef(t),u=e.enumZodSchemaData.find(c=>c.code===a);u?(u.meta.zodSchemaNameSegments.push(o),u.meta.tags.push(...i),u.meta.schemaRefs.push(...r?[r]:[])):e.enumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[o],tags:[...i],schemaRefs:r?[r]:[]}}),e.validationErrors.push(Vv(r?`schema ${Nn(r)} property ${o[o.length-1]}`:n??o.join("->")))}s(Wv,"handleEnumZodSchemaDataUpdate");function Qv(e){e.enumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(o=>o[o.length-1]).filter(Boolean),i=lf(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=wv(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!Yv(e);)zR(e,t+2),t++;if(!Yv(e))throw new Error("Failed to resolve unique names for enum zod schemas")}s(Qv,"resolveEnumZodSchemaNames");function Yv(e){return e.enumZodSchemaData.every(t=>e.enumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length==1)}s(Yv,"allEnumZodSchemaNamesAreUnique");function zR(e,t){e.enumZodSchemaData.forEach(r=>{let n=e.enumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&GR(n,t)})}s(zR,"additionalResolveEnumZodSchemaName");function GR(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1)r.zodSchemaName=[he(n[0]),r.zodSchemaName].filter(Boolean).join("");else{let i=lf(n);r.zodSchemaName=[i?he(i):"",r.zodSchemaName].filter(Boolean).join("")}})}s(GR,"suffixWithPreviousSegmentName");function Jv(e){e.enumZodSchemaData.forEach(t=>{let r=Te(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}s(Jv,"resolveEnumZodSchemaTags");var xf=class xf{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=Zv(this.schemaRefs,this.getSchemaByRef.bind(this)),this.operationsByTag=_v(t,r),this.operationNames=Ev(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];enumZodSchemaData=[];dependencyGraph;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(bv)}getSchemaByRef(t){return this.docSchemas[Nn(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(qr(t)))==null?void 0:n.zodSchemaName)??((i=this.enumZodSchemaData.find(o=>o.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 c,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.enumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return St(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((c=this.getSchemaDataByRef(n))==null?void 0:c.tags)??[]:[],o=((l=this.zodSchemaData.find(p=>p.zodSchemaName===t))==null?void 0:l.tags)??[],a=Te(i,o),u=a.length===1?a[0]:this.options.defaultTag;return St(u??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(o=>o.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 o={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(u=>u.code===t);a?a.zodSchemas.push(o):this.compositeZodSchemaData.push({code:t,zodSchemas:[o]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.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(o=>o.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemaData.find(r=>r.code===t)}getEnumZodSchemaNamesReferencedBySchemaRef(t){return this.enumZodSchemaData.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}),{})}getEnumZodSchemas(){return this.enumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return H(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}initialize(){var t,r,n,i,o,a;this.schemaRefs.forEach(u=>{let c=qr(u),l=Nn(c),p=cr(l,this.options.schemaSuffix);this.schemaData.push({ref:c,name:l,zodSchemaName:p,tags:[]})});for(let u in this.openApiDoc.paths){let c=this.openApiDoc.paths[u],l=ar(c,sr);for(let p in l){let f=l[p];if(!f||f.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let d=Cr(f,this.options),h=Gi({path:u,method:p,operation:f,operationsByTag:this.operationsByTag,options:this.options}),g=this.operationNames.filter(S=>S===h).length<=1,y=Ie(jr(h,g,d)),v=[];if((r=f.parameters)==null||r.map(S=>{let b=S,E=b.schema,$=`operation ${f.operationId??u} parameter ${b.name}`;v.push(...Rs(this,E,$)),this.options.extractEnums&&Qi({resolver:this,schema:E,schemaInfo:$,tags:[d],nameSegments:[y,b.name],includeSelf:!0})}),f.requestBody){let S=this.resolveObject(f.requestBody),E=Object.keys(S.content??{}).find(ur);if(E){let $=(i=(n=S.content)==null?void 0:n[E])==null?void 0:i.schema,M=`operation ${f.operationId} request body`;v.push(...Rs(this,$,M)),this.options.extractEnums&&Qi({resolver:this,schema:$,schemaInfo:M,tags:[d],nameSegments:[ws(y)]})}}for(let S in f.responses){let b=this.resolveObject(f.responses[S]),$=Object.keys(b.content??{}).find(Cn);if($){let M=(a=(o=b.content)==null?void 0:o[$])==null?void 0:a.schema,j=`operation ${f.operationId} response body`;v.push(...Rs(this,M,j)),this.options.extractEnums&&Qi({resolver:this,schema:M,schemaInfo:j,tags:[d],nameSegments:[As({statusCode:S,operationName:h,isUniqueOperationName:g,tag:d})]})}}Kv(this,v).forEach(S=>{let b=this.getSchemaDataByRef(S);b&&b.tags.push(d)})}}this.options.extractEnums&&(this.schemaRefs.forEach(u=>{var l;let c=qr(u);Qi({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((l=this.getSchemaDataByRef(c))==null?void 0:l.tags)??[],nameSegments:[Nn(c)]})}),Qv(this),Jv(this))}};s(xf,"SchemaResolver");var Ts=xf;function Xv(e){var r;let t={};return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let o=cr(n,e.options.schemaSuffix);if(!t[o]){let a=e.getTagByZodSchemaName(o);t[o]=Z({schema:i,resolver:e,tag:a}).getCodeString(a)}}),t}s(Xv,"getZodSchemasFromOpenAPIDoc");function e_(e){let t=[],r={};function n(i,o){Array.isArray(o)||(o=[]),o.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{o.includes(a)||r[a]||n(a,o.slice(0))}),t.includes(i)||t.push(i)}return s(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}s(e_,"topologicalSort");function t_(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[o])=>t.indexOf(i)-t.indexOf(o)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}s(t_,"sortObjKeysFromArray");function r_(e,t){let r=e_(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return t_(t,r)}s(r_,"sortZodSchemasByTopology");function n_(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let o=e.getRefByZodSchemaName(n),a=o&&e.isSchemaCircular(o);r[cr(n,e.options.schemaSuffix)]=a?`z.lazy(() => ${i})`:i}),r}s(n_,"wrapCircularZodSchemas");function Ns(e,t){let r=new Ts(e,t),n=Gv(r),o={...Xv(r),...r.getZodSchemas()};return o=n_(r,o),o=r_(r,o),o={...r.getEnumZodSchemas(),...o},{resolver:r,data:ZR({resolver:r,endpoints:n,zodSchemas:o,options:t})}}s(Ns,"getDataFromOpenAPIDoc");function ZR({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=Wi(o,n);i_(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let u=e.getTagByZodSchemaName(o);u&&(i_(u,i).zodSchemas[o]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(ZR,"splitDataByTags");function i_(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(i_,"getTagElement");async function o_(e,t){let{resolver:r,data:n}=await Ns(e,t),i=[],o=[];return n.forEach(({endpoints:u,zodSchemas:c},l)=>{var d;((d=t.excludeTags)==null?void 0:d.findIndex(h=>h.toLowerCase()===l.toLowerCase()))===-1&&(Object.keys(c).forEach(h=>{let g=r.getRefByZodSchemaName(h),y=g?r.getSchemaByRef(g):r.getSchemaByCompositeZodSchemaName(h),v=jn({zodSchemaName:h,schema:y,resolver:r}),_;y&&(_=Mr({schema:y,parentTypes:[v],resolver:r})),i.push({...v,metaType:"primitive",..._})}),u.forEach(h=>{let g="queries",y=St(l);o.push({name:Ss(h),filePath:er({type:g,tag:y,includeTagDir:!0,options:t}),namespace:t.includeNamespaces?ee({type:g,tag:y,options:t}):void 0,isQuery:qn(h),isMutation:xs(h),params:KR({resolver:r,endpoint:h}),response:WR({resolver:r,endpoint:h})})}))}),{openApiDoc:e,models:i,queries:o}}s(o_,"getMetadataFromOpenAPIDoc");function KR({resolver:e,endpoint:t}){return t.parameters.map(r=>{var a,u,c,l;let n;if((a=r.parameterObject)!=null&&a.schema)n=e.resolveObject(r.parameterObject.schema);else if(r.bodyObject){let f=Object.keys(r.bodyObject.content??{}).find(ur);f&&(n=e.resolveObject((c=(u=r.bodyObject.content)==null?void 0:u[f])==null?void 0:c.schema))}let i=jn({zodSchemaName:r.zodSchema,schema:n,resolver:e}),o;return n&&(o=Mr({schema:n,parentTypes:[i],resolver:e})),{name:gt(r.name),isRequired:((l=r.parameterObject)==null?void 0:l.required)??!0,...i,...o,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)}s(KR,"getQueryMetadataParams");function WR({resolver:e,endpoint:t}){var a,u,c,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(Cn);n&&(r=e.resolveObject((l=(c=(u=t.responseObject)==null?void 0:u.content)==null?void 0:c[n])==null?void 0:l.schema));let i=jn({zodSchemaName:t.response,schema:r,resolver:e}),o;return r&&(o=Mr({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...o}}s(WR,"getQueryMetadataResponse");var wf="src/data",Af="@/data",If="AppRestClient",s_={bindings:[If],from:"@/util/rest/clients/app-rest-client"},Ji={query:"AppQueryOptions",mutation:"AppMutationOptions"},a_={bindings:[Ji.query,Ji.mutation],from:"@/types/react-query"};function Dn({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",o=s(c=>e.getTagByZodSchemaName(c),"getTag"),a=kf({type:i,tag:t,entities:r,getTag:o,getEntityName:s(c=>c,"getEntityName"),options:e.options}),u=kf({type:i,tag:t,entities:n,getTag:o,getEntityName:s(c=>Zi(c,e.options),"getEntityName"),options:e.options});return QR(e.options,a,u)}s(Dn,"getModelsImports");function u_({tag:e,endpoints:t,options:r}){return kf({type:"endpoints",tag:e,entities:t,getTag:s(n=>Wi(n,r),"getTag"),getEntityName:Ki,options:r})}s(u_,"getEndpointsImports");function YR(e){let t=Af;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${wf}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${wf}`,"g"),Af)),`${t}/`.replace(/\/\//g,"/")}s(YR,"getImportPath");function kf({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:o}){let a=new Map;return r.forEach(u=>{let c=n(u);if(a.has(c))o.includeNamespaces||a.get(c).bindings.push(i(u));else{let l=t===c;a.set(c,{bindings:[o.includeNamespaces?ee({type:e,tag:c,options:o}):i(u)],from:`${l?"./":YR(o)}${er({type:e,tag:c,includeTagDir:!l,options:o})}`})}}),Array.from(a.values())}s(kf,"getImports");function QR(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.includeNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Te(n.bindings)}))}s(QR,"mergeImports");var xp=Et(zr());var Pp=Et(require("fs")),XS=Et(require("path"));function $p(e){let t=`src/generators/templates/${e}.hbs`;return Pp.default.readFileSync(XS.default.join(__dirname,`../${t}`),"utf-8")}s($p,"readHbsTemplateSync");function eb({output:e,fileName:t}){return`${e}/${t}.ts`}s(eb,"getOutputFileName");var Op=Et(zr());function tb(){HN(),UN()}s(tb,"registerCommonHbsHelpers");function HN(){Op.default.registerHelper("isEqual",(e,t)=>e===t)}s(HN,"registerIsEqualHelper");function UN(){Op.default.registerHelper("commaSeparated",e=>e.join(", "))}s(UN,"registerCommaSeparatedListHelper");var Gr=Et(zr());function rb(e){zN(),GN(e.options),WN(e),ZN(),KN(),YN(e)}s(rb,"registerEndpointsHbsHelpers");function zN(){Gr.default.registerHelper("endpointName",Ki)}s(zN,"registerEndpointNameHelper");function GN(e){Gr.default.registerHelper("importedEndpointName",t=>qv(t,e))}s(GN,"registerImportedEndpointNameHelper");function ZN(){Gr.default.registerHelper("endpointPath",jv)}s(ZN,"registerEndpointPathHelper");function KN(){Gr.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}s(KN,"registerEndpointBodyHelper");function WN(e){Gr.default.registerHelper("endpointParams",t=>$f(e,t))}s(WN,"registerEndpointParamsHelper");function YN(e){Gr.default.registerHelper("endpointArgs",t=>$f(e,t).map(r=>r.name).join(", "))}s(YN,"registerEndpointArgsHelper");var Kn=Et(zr());var pr={query:"useQuery",mutation:"useMutation"},nb={bindings:[pr.query,pr.mutation],from:"@tanstack/react-query"};function ib(){QN(),JN(),XN(),eC(),tC()}s(ib,"registerPartialsHbsHelpers");function QN(){Kn.default.registerHelper("genImport",e=>Wn("import")({import:e}))}s(QN,"registerImportHelper");function JN(){Kn.default.registerHelper("genEndpointParams",e=>Wn("endpoint-params")({endpoint:e}))}s(JN,"registerGenerateEndpointParamsHelper");function XN(){Kn.default.registerHelper("genEndpointConfig",e=>{let t=Mv(e);return Object.keys(t).length===0?"":Wn("endpoint-config")({endpointConfig:t})})}s(XN,"registerGenerateEndpointConfigHelper");function eC(){Kn.default.registerHelper("genQueryKeys",e=>e.length===0?"":Wn("query-keys")({endpoints:e}))}s(eC,"registerGenerateQueryKeysHelper");function tC(){Kn.default.registerHelper("genQuery",e=>{let t,r;return qn(e)?(t="query-use-query",r=pr.query):(t="query-use-mutation",r=pr.mutation),Wn(t)({endpoint:e,queryHook:r})})}s(tC,"registerGenerateQueryHelper");var ga=Et(zr());function ob(){rC(),nC(),iC()}s(ob,"registerQueryHbsHelpers");function rC(){ga.default.registerHelper("queryName",Ss)}s(rC,"registerQueryNameHelper");function nC(){ga.default.registerHelper("allQueryKeys",ff)}s(nC,"registerQueryKeysHelper");function iC(){ga.default.registerHelper("endpointPathQueryKeys",pv)}s(iC,"registerEndpointPathQueryKeysHelper");var Ep=Et(zr());function sb(e){oC(e.options),sC(e)}s(sb,"registerZodHbsHelpers");function oC(e){Ep.default.registerHelper("zodInferedType",t=>Zi(t,e))}s(oC,"registerInferedTypeHelper");function sC(e){Ep.default.registerHelper("importedZodSchemaName",t=>Iv(e,t))}s(sC,"registerImportedZodSchemaNameHelper");function Yn(e,t){let r=$p(t);return tb(),sb(e),rb(e),ob(),ib(),xp.default.compile(r)}s(Yn,"getHbsTemplateDelegate");function Wn(e){let t=$p(`partials/${e}`);return xp.default.compile(t)}s(Wn,"getHbsPartialTemplateDelegate");function ab({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints;if(!n||n.length===0)return;let i=n.map(p=>p.response),o=i.some(p=>!Se(p)),a=n.reduce((p,f)=>[...p,...f.parameters],[]),u=Dn({resolver:e,tag:r,zodSchemas:Te(i.filter(Se)),zodSchemasAsTypes:Te(a.map(p=>p.zodSchema).filter(Se))});return Yn(e,"endpoints")({restClientImport:s_,hasZodImport:o,zodImport:vs,modelsImports:u,includeNamespace:e.options.includeNamespaces,namespace:ee({type:"endpoints",tag:r,options:e.options}),restClientName:If,endpoints:n})}s(ab,"generateEndpoints");function ub(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),o=e.getEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...o]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(cb(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}s(ub,"getZodSchemaRefs");function cb(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&cb(n).forEach(o=>r.add(o)),r},new Set)}s(cb,"getSchemaRefs");function lb({resolver:e,data:t,tag:r=""}){var c;let n=(c=t.get(r))==null?void 0:c.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,p)=>[...l,...ub(e,p)],[]).filter(l=>!n[l]),o=Dn({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[p,f])=>{let d=e.getRefByZodSchemaName(p);return{...l,[p]:{code:f,isCircular:!!d&&e.isSchemaCircular(d)}}},{});return Yn(e,"models")({zodImport:vs,modelsImports:o,includeNamespace:e.options.includeNamespaces,namespace:ee({type:"models",tag:r,options:e.options}),zodSchemasData:a})}s(lb,"generateModels");function fb({resolver:e,data:t,tag:r=""}){var d;let n=(d=t.get(r))==null?void 0:d.endpoints;if(!n||n.length===0)return;let i=n.filter(qn),o=n.filter(xs),a={...nb,bindings:[...i.length>0?[pr.query]:[],...o.length>0?[pr.mutation]:[]]},u={...a_,bindings:[...i.length>0?[Ji.query]:[],...o.length>0?[Ji.mutation]:[]]},c=[...i,...o].reduce((h,g)=>[...h,...g.parameters],[]),l=Dn({resolver:e,tag:r,zodSchemasAsTypes:Te(c.map(h=>h.zodSchema).filter(Se))}),p=u_({tag:r,endpoints:n,options:e.options});return Yn(e,"queries")({queryImport:a,queryTypesImport:u,modelsImports:l,endpointsImports:p,includeNamespace:e.options.includeNamespaces,namespace:ee({type:"queries",tag:r,options:e.options}),endpoints:n,queryEndpoints:i})}s(fb,"generateQueries");function pb(e,t){let r={...Bi,...t},{resolver:n,data:i}=Ns(e,r),o=[],a=["models","endpoints","queries"],u={models:lb,endpoints:ab,queries:fb};return i.forEach((c,l)=>{r.excludeTags.find(f=>f.toLowerCase()===l.toLowerCase())||a.forEach(f=>{let d=u[f]({resolver:n,data:i,tag:l});if(d){let h=eb({output:r.output,fileName:er({tag:l,type:f,options:r})});o.push({fileName:h,content:d})}})}),o}s(pb,"generateCodeFromOpenAPIDoc");async function aC({input:e,options:t}){let r={...Bi,...t},n=await wp.default.bundle(e);return await o_(n,r)}s(aC,"getGenerateMetadata");async function uC({input:e,options:t}){let r={...Bi,...t},n=await wp.default.bundle(e);return pb(n,r)}s(uC,"getGenerateFilesData");0&&(module.exports={getGenerateFilesData,getGenerateMetadata});
76
+ `)}return t.assign(`z.union([${e.oneOf.map(u=>Z({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}s(qR,"getOneOfZodSchema");function jR({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!bt(e)||!Array.isArray(e.type)))return e.type.length===1?Z({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(o=>Z({schema:{...e,type:o},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}s(jR,"getArrayZodSchema");function MR({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!bt(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=Z({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let o=e.anyOf.map(a=>Z({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${o}])`)}s(MR,"getAnyOfZodSchema");function DR({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!bt(e)||!e.allOf)return;if(e.allOf.length===1){let f=Z({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(f.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:o,noRequiredOnlyAllof:a,composedRequiredSchema:u}=qv(e),c=a.map(f=>{let d=Z({schema:f,resolver:r,meta:n,tag:i});return r&&o(f,r.getSchemaByRef.bind(r)),d});u.required.length&&c.push(Z({schema:u,resolver:r,meta:n,tag:i}));let l=c.at(0),p=c.slice(1).map(f=>`merge(${f.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${p}`)}s(DR,"getAllOfZodSchema");function LR({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!bt(e))return;let o=e.type?e.type.toLowerCase():void 0;if(o&&Tt(o)){if(e.enum){if(o==="string")return FR({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(me(o).with("integer",()=>"z.number()").with("string",()=>me(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}s(LR,"getPrimitiveZodSchema");function FR({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){if(!bt(t))return;let o=xf(t),a=e.getEnumZodSchemaDataByCode(o);if(!e.options.extractEnums||!a)return r.assign(o);if(!a.zodSchemaName||!a.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${o}`);let u=e.options.includeNamespaces&&a.tag!==i?`${ee({type:"models",tag:a.tag,options:e.options})}.`:"";return new Yi(t,e,n,a.zodSchemaName).inherit(r),r.assign(`${u}${a.zodSchemaName}`)}s(FR,"getEnumZodSchema");function xf(e){var t;return`z.enum([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}s(xf,"getEnumZodSchemaCode");function Mn({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var u;let o=t.getCodeString();if((!Se(o)||t.ref===void 0)&&r){if(t.complexity<vf)return o;let c=Ct(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(c);){if((u=n.getZodSchemaNamesByCompositeCode(o))!=null&&u.includes(c))return c;if(n.getCodeByZodSchemaName(c)===c)return c;throw new Error(`Can't uniquely resolve zod schema name: ${c}`)}return n.setZodSchema(c,o,i),n.addZodSchemaForCompositeCode(o,t,c,e),c}let a=n.getCodeByZodSchemaName(o);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return te(0,n.getSchemaByRef(t.ref))<vf?n.getCodeByZodSchemaName(o):o;throw new Error(`Invalid ref: ${t.ref}`)}s(Mn,"resolveZodSchemaName");function Uv({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var h,g;let o=e.resolveObject(t.requestBody);if(!o)return;let u=Object.keys(o.content??{}).find(cr);if(!u)return;let c=(g=(h=o.content)==null?void 0:h[u])==null?void 0:g.schema;if(!c)return;let l=Z({schema:c,resolver:e,meta:{isRequired:o.required??!0},tag:i}),p=e.resolveObject(c),f=Mn({schema:p,zodSchema:l,fallbackName:ws(jr(r,n,i)),resolver:e,tag:i}),d=Pt({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:Cv,type:"Body",description:o.description,zodSchema:f+d,bodyObject:o},requestFormat:u}}s(Uv,"getEndpointBody");function zv({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let o=e.resolveObject(t);if(!vv.includes(o.in))return;let a={};if(o.content){let f=Object.keys(o.content??{}),d=f.find(cr);if(!d)throw new Error(`Unsupported media type for param ${o.name}: ${f.join(", ")}`);let h=o.content[d];if(!h)throw new Error(`No content with media type for param ${o.name}: ${d}`);a=(h==null?void 0:h.schema)??h}else o.schema&&(a=o.schema);e.options.withDescription&&a&&(a.description=(o.description??"").trim());let u=Z({schema:a,resolver:e,meta:{isRequired:o.in==="path"?!0:o.required??!1},tag:i}),c=e.resolveObject(a),l=Pt({schema:c,meta:u.meta,options:e.options}),p=Mn({schema:c,zodSchema:u.assign(u.getCodeString(i)+l),fallbackName:Iv(jr(r,n,i),o.name),resolver:e,tag:i});return{name:me(o.in).with("path",()=>Pf(o.name)).otherwise(()=>o.name),type:me(o.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:p,parameterObject:o}}s(zv,"getEndpointParameter");function Zv(e){var r,n,i;let t=[];for(let o in e.openApiDoc.paths){let a=e.openApiDoc.paths[o],u=ur(a,ar),c=Gv(a.parameters??[]);for(let l in u){let p=u[l];if(!p||p.deprecated&&!e.options.withDeprecatedEndpoints)continue;let f=p.operationId&&p.operationId!==gt(p.operationId);p.operationId&&f&&e.validationErrors.push(Lv(p.operationId));let d=Object.entries({...c,...Gv(p.parameters??[])}).map(([,S])=>S),h=Gi({path:o,method:l,operation:p,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(S=>S===h).length<=1,y=Nr(p,e.options),v={method:l,path:wv(o),operationName:h,description:p.description,tags:(r=p.tags)==null?void 0:r.map(St),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(p.requestBody){let S=Uv({resolver:e,operation:p,operationName:h,isUniqueOperationName:g,tag:y});S&&(v.parameters.push(S.endpointParameter),v.requestFormat=S.requestFormat)}for(let S of d){let b=zv({resolver:e,param:S,operationName:h,isUniqueOperationName:g,tag:y});b&&v.parameters.push(b)}let _=VR(v);_.forEach(S=>{v.parameters.push(S)}),_.length>0&&e.validationErrors.push(Fv(_,o));for(let S in p.responses){let b=e.resolveObject(p.responses[S]),$=Object.keys(b.content??{}).find(Nn),M,j;if($?(v.responseFormat=$,M=(i=(n=b.content)==null?void 0:n[$])==null?void 0:i.schema):j=cf,M){let re=Z({schema:M,resolver:e,meta:{isRequired:!0},tag:y}),ne=e.resolveObject(M);j=Mn({schema:ne,zodSchema:re,fallbackName:re.ref?void 0:As({statusCode:S,operationName:h,isUniqueOperationName:g,tag:y}),resolver:e,tag:y})+Pt({schema:ne,meta:re.meta,options:e.options})}if(j){let re=Number(S);Os(re)?(v.response=j,v.responseObject=b):S!=="default"&&Es(re)&&v.errors.push({zodSchema:j,status:re,description:b.description})}}v.response||(v.response=cf),t.push(v)}}return t}s(Zv,"getEndpointsFromOpenAPIDoc");function Gv(e){return Object.fromEntries((e??[]).map(t=>[H(t)?t.$ref:t.name,t]))}s(Gv,"getParameters");function VR(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=>BR(r))}s(VR,"getMissingPathParameters");function BR(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}s(BR,"getPathParameterFromName");function nt(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(H(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if($s.some(o=>o in i&&i[o])){let o=i.allOf??i.anyOf??i.oneOf??[];for(let a of o){if((n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))===!0)return;nt(a,{data:r,onSchema:n})}}if(i.properties)for(let[o,a]of Object.entries(i.properties)){if(n({type:"property",parentSchema:e,schema:a,data:r,propertyName:o})===!0)return;nt(a,t)}if(i.additionalProperties)for(let[o,a]of Object.entries(i.additionalProperties)){if(!(a instanceof Object)||n({type:"additionalProperty",parentSchema:e,schema:a,data:r,propertyName:o})===!0)return;nt(a,t)}if(i.type==="array"){let o=e.items;if(n({type:"array",parentSchema:e,schema:o,data:r})===!0)return;nt(o,t)}}s(nt,"iterateSchema");function Kv(e,t){let r=HR(e,t),n=UR(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s(Kv,"getOpenAPISchemaDependencyGraph");function HR(e,t){let r={},n={};return e.forEach(i=>zR({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(HR,"getRefsDependencyGraph");function UR(e,t){let r={},n={},i=s((o,a)=>{n[a].add(o),t[o]&&a!==o&&t[o].forEach(u=>{let c=`${a}__${u}`;r[c]||(r[c]=!0,i(u,a))})},"visit");return e.forEach(o=>{let a=t[o];a&&(n[o]||(n[o]=new Set),a.forEach(u=>i(u,o)))}),n}s(UR,"getDeepRefsDependencyGraph");function zR({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let o=s(a=>{if(a.type!=="reference"||!a.data)return;let{schema:u,data:c}=a;if(i[c.fromRef]||(i[c.fromRef]=new Set),i[c.fromRef].add(u.$ref),n[u.$ref])return!0;n[c.fromRef]=!0,nt(r(u.$ref),{data:{fromRef:u.$ref},onSchema:o})},"onSchema");return nt(e,{data:{fromRef:t},onSchema:o}),{visitedRefs:n,refsDependencyGraph:i}}s(zR,"getSchemaRefsDependencyGraph");function Ts(e,t,r){let n=[];return nt(t,{onSchema:s(i=>{i.type==="reference"?n.push(i.schema):H(i.parentSchema)&&(i.type==="property"||i.type==="additionalProperty"?e.validationErrors.push(Rs(`${r} has both reference and properties`)):i.type==="array"?e.validationErrors.push(Rs(`${r} is both reference and array schema`)):i.type==="composite"&&e.validationErrors.push(Rs(`${r} has both reference and composite keyword`)))},"onSchema")}),n}s(Ts,"getSchemaRefObjs");function Wv(e,t){return t.map(i=>qr(i.$ref)).reduce((i,o)=>{let a=e.dependencyGraph.deepDependencyGraph[o];return[...i,o,...Array.from(a??[])]},[])}s(Wv,"getDeepSchemaRefObjs");function Qi({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&Yv({schema:e,nameSegments:t,...n}),nt(e,{data:{nameSegments:t},onSchema:s(i=>{var a;if(i.type==="reference")return!0;let o=[...((a=i.data)==null?void 0:a.nameSegments)??[]];(i.type==="property"||i.type==="additionalProperty")&&o.push(i.propertyName),Yv({schema:i.schema,nameSegments:[...o],...n})},"onSchema")})}s(Qi,"updateEnumZodSchemaData");function Yv({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:o=[]}){if(!t||H(t)||!t.enum)return;let a=xf(t),u=e.enumZodSchemaData.find(c=>c.code===a);u?(u.meta.zodSchemaNameSegments.push(o),u.meta.tags.push(...i),u.meta.schemaRefs.push(...r?[r]:[])):e.enumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[o],tags:[...i],schemaRefs:r?[r]:[]}}),e.validationErrors.push(Vv(r?`schema ${Cn(r)} property ${o[o.length-1]}`:n??o.join("->")))}s(Yv,"handleEnumZodSchemaDataUpdate");function Jv(e){e.enumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(o=>o[o.length-1]).filter(Boolean),i=ff(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=Av(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!Qv(e);)GR(e,t+2),t++;if(!Qv(e))throw new Error("Failed to resolve unique names for enum zod schemas")}s(Jv,"resolveEnumZodSchemaNames");function Qv(e){return e.enumZodSchemaData.every(t=>e.enumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length==1)}s(Qv,"allEnumZodSchemaNamesAreUnique");function GR(e,t){e.enumZodSchemaData.forEach(r=>{let n=e.enumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&ZR(n,t)})}s(GR,"additionalResolveEnumZodSchemaName");function ZR(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1)r.zodSchemaName=[he(n[0]),r.zodSchemaName].filter(Boolean).join("");else{let i=ff(n);r.zodSchemaName=[i?he(i):"",r.zodSchemaName].filter(Boolean).join("")}})}s(ZR,"suffixWithPreviousSegmentName");function Xv(e){e.enumZodSchemaData.forEach(t=>{let r=Te(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}s(Xv,"resolveEnumZodSchemaTags");var wf=class wf{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=Kv(this.schemaRefs,this.getSchemaByRef.bind(this)),this.operationsByTag=Sv(t,r),this.operationNames=xv(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];enumZodSchemaData=[];dependencyGraph;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(Pv)}getSchemaByRef(t){return this.docSchemas[Cn(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(qr(t)))==null?void 0:n.zodSchemaName)??((i=this.enumZodSchemaData.find(o=>o.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 c,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.enumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return St(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((c=this.getSchemaDataByRef(n))==null?void 0:c.tags)??[]:[],o=((l=this.zodSchemaData.find(p=>p.zodSchemaName===t))==null?void 0:l.tags)??[],a=Te(i,o),u=a.length===1?a[0]:this.options.defaultTag;return St(u??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(o=>o.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 o={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(u=>u.code===t);a?a.zodSchemas.push(o):this.compositeZodSchemaData.push({code:t,zodSchemas:[o]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.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(o=>o.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemaData.find(r=>r.code===t)}getEnumZodSchemaNamesReferencedBySchemaRef(t){return this.enumZodSchemaData.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}),{})}getEnumZodSchemas(){return this.enumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return H(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=[]){var i,o;return(i=this.dependencyGraph.refsDependencyGraph[r])!=null&&i.has(t)?[...n,r,t]:Array.from(((o=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:o.values())??[]).map(a=>{let u=this.getCircularSchemaChain(t,a,n);return u.length>0?[r,...u]:u}).flat()}initialize(){var t,r,n,i,o,a;this.schemaRefs.forEach(u=>{let c=qr(u),l=Cn(c),p=Ct(l,this.options.schemaSuffix);this.schemaData.push({ref:c,name:l,zodSchemaName:p,tags:[]})});for(let u in this.openApiDoc.paths){let c=this.openApiDoc.paths[u],l=ur(c,ar);for(let p in l){let f=l[p];if(!f||f.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let d=Nr(f,this.options),h=Gi({path:u,method:p,operation:f,operationsByTag:this.operationsByTag,options:this.options}),g=this.operationNames.filter(S=>S===h).length<=1,y=Ie(jr(h,g,d)),v=[];if((r=f.parameters)==null||r.map(S=>{let b=S,E=b.schema,$=`operation ${f.operationId??u} parameter ${b.name}`;v.push(...Ts(this,E,$)),this.options.extractEnums&&Qi({resolver:this,schema:E,schemaInfo:$,tags:[d],nameSegments:[y,b.name],includeSelf:!0})}),f.requestBody){let S=this.resolveObject(f.requestBody),E=Object.keys(S.content??{}).find(cr);if(E){let $=(i=(n=S.content)==null?void 0:n[E])==null?void 0:i.schema,M=`operation ${f.operationId} request body`;v.push(...Ts(this,$,M)),this.options.extractEnums&&Qi({resolver:this,schema:$,schemaInfo:M,tags:[d],nameSegments:[ws(y)]})}}for(let S in f.responses){let b=this.resolveObject(f.responses[S]),$=Object.keys(b.content??{}).find(Nn);if($){let M=(a=(o=b.content)==null?void 0:o[$])==null?void 0:a.schema,j=`operation ${f.operationId} response body`;v.push(...Ts(this,M,j)),this.options.extractEnums&&Qi({resolver:this,schema:M,schemaInfo:j,tags:[d],nameSegments:[As({statusCode:S,operationName:h,isUniqueOperationName:g,tag:d})]})}}Wv(this,v).forEach(S=>{let b=this.getSchemaDataByRef(S);b&&b.tags.push(d)})}}this.options.extractEnums&&(this.schemaRefs.forEach(u=>{var l;let c=qr(u);Qi({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((l=this.getSchemaDataByRef(c))==null?void 0:l.tags)??[],nameSegments:[Cn(c)]})}),Jv(this),Xv(this))}};s(wf,"SchemaResolver");var Cs=wf;function e_(e){var r;let t={};return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let o=Ct(n,e.options.schemaSuffix);if(!t[o]){let a=e.getTagByZodSchemaName(o);t[o]=Z({schema:i,resolver:e,tag:a}).getCodeString(a)}}),t}s(e_,"getZodSchemasFromOpenAPIDoc");function t_(e){let t=[],r={};function n(i,o){Array.isArray(o)||(o=[]),o.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{o.includes(a)||r[a]||n(a,o.slice(0))}),t.includes(i)||t.push(i)}return s(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}s(t_,"topologicalSort");function r_(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[o])=>t.indexOf(i)-t.indexOf(o)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}s(r_,"sortObjKeysFromArray");function n_(e,t){let r=t_(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return r_(t,r)}s(n_,"sortZodSchemasByTopology");function i_(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let o=e.getRefByZodSchemaName(n);o&&e.isSchemaCircular(o)?(e.validationErrors.push(Bv(e.getCircularSchemaChain(o).join(" -> "))),r[Ct(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[Ct(n,e.options.schemaSuffix)]=i}),r}s(i_,"wrapCircularZodSchemas");function Ns(e,t){let r=new Cs(e,t),n=Zv(r),o={...e_(r),...r.getZodSchemas()};return o=i_(r,o),o=n_(r,o),o={...r.getEnumZodSchemas(),...o},{resolver:r,data:KR({resolver:r,endpoints:n,zodSchemas:o,options:t})}}s(Ns,"getDataFromOpenAPIDoc");function KR({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=Wi(o,n);o_(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let u=e.getTagByZodSchemaName(o);u&&(o_(u,i).zodSchemas[o]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(KR,"splitDataByTags");function o_(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(o_,"getTagElement");async function s_(e,t){let{resolver:r,data:n}=await Ns(e,t),i=[],o=[];return n.forEach(({endpoints:u,zodSchemas:c},l)=>{var d;((d=t.excludeTags)==null?void 0:d.findIndex(h=>h.toLowerCase()===l.toLowerCase()))===-1&&(Object.keys(c).forEach(h=>{let g=r.getRefByZodSchemaName(h),y=g?r.getSchemaByRef(g):r.getSchemaByCompositeZodSchemaName(h),v=jn({zodSchemaName:h,schema:y,resolver:r}),_;y&&(_=Mr({schema:y,parentTypes:[v],resolver:r})),i.push({...v,metaType:"primitive",..._})}),u.forEach(h=>{let g="queries",y=St(l);o.push({name:Ss(h),filePath:tr({type:g,tag:y,includeTagDir:!0,options:t}),namespace:t.includeNamespaces?ee({type:g,tag:y,options:t}):void 0,isQuery:qn(h),isMutation:xs(h),params:WR({resolver:r,endpoint:h}),response:YR({resolver:r,endpoint:h})})}))}),{openApiDoc:e,models:i,queries:o}}s(s_,"getMetadataFromOpenAPIDoc");function WR({resolver:e,endpoint:t}){return t.parameters.map(r=>{var a,u,c,l;let n;if((a=r.parameterObject)!=null&&a.schema)n=e.resolveObject(r.parameterObject.schema);else if(r.bodyObject){let f=Object.keys(r.bodyObject.content??{}).find(cr);f&&(n=e.resolveObject((c=(u=r.bodyObject.content)==null?void 0:u[f])==null?void 0:c.schema))}let i=jn({zodSchemaName:r.zodSchema,schema:n,resolver:e}),o;return n&&(o=Mr({schema:n,parentTypes:[i],resolver:e})),{name:gt(r.name),isRequired:((l=r.parameterObject)==null?void 0:l.required)??!0,...i,...o,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)}s(WR,"getQueryMetadataParams");function YR({resolver:e,endpoint:t}){var a,u,c,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(Nn);n&&(r=e.resolveObject((l=(c=(u=t.responseObject)==null?void 0:u.content)==null?void 0:c[n])==null?void 0:l.schema));let i=jn({zodSchemaName:t.response,schema:r,resolver:e}),o;return r&&(o=Mr({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...o}}s(YR,"getQueryMetadataResponse");var Af="src/data",If="@/data",kf="AppRestClient",a_={bindings:[kf],from:"@/util/rest/clients/app-rest-client"},Ji={query:"AppQueryOptions",mutation:"AppMutationOptions"},u_={bindings:[Ji.query,Ji.mutation],from:"@/types/react-query"};function Dn({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",o=s(c=>e.getTagByZodSchemaName(c),"getTag"),a=Rf({type:i,tag:t,entities:r,getTag:o,getEntityName:s(c=>c,"getEntityName"),options:e.options}),u=Rf({type:i,tag:t,entities:n,getTag:o,getEntityName:s(c=>Zi(c,e.options),"getEntityName"),options:e.options});return JR(e.options,a,u)}s(Dn,"getModelsImports");function c_({tag:e,endpoints:t,options:r}){return Rf({type:"endpoints",tag:e,entities:t,getTag:s(n=>Wi(n,r),"getTag"),getEntityName:Ki,options:r})}s(c_,"getEndpointsImports");function QR(e){let t=If;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${Af}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${Af}`,"g"),If)),`${t}/`.replace(/\/\//g,"/")}s(QR,"getImportPath");function Rf({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:o}){let a=new Map;return r.forEach(u=>{let c=n(u);if(a.has(c))o.includeNamespaces||a.get(c).bindings.push(i(u));else{let l=t===c;a.set(c,{bindings:[o.includeNamespaces?ee({type:e,tag:c,options:o}):i(u)],from:`${l?"./":QR(o)}${tr({type:e,tag:c,includeTagDir:!l,options:o})}`})}}),Array.from(a.values())}s(Rf,"getImports");function JR(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.includeNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Te(n.bindings)}))}s(JR,"mergeImports");var wp=Et(zr());var $p=Et(require("fs")),eb=Et(require("path"));function Op(e){let t=`src/generators/templates/${e}.hbs`;return $p.default.readFileSync(eb.default.join(__dirname,`../${t}`),"utf-8")}s(Op,"readHbsTemplateSync");function tb({output:e,fileName:t}){return`${e}/${t}.ts`}s(tb,"getOutputFileName");var Ep=Et(zr());function rb(){UC(),zC()}s(rb,"registerCommonHbsHelpers");function UC(){Ep.default.registerHelper("isEqual",(e,t)=>e===t)}s(UC,"registerIsEqualHelper");function zC(){Ep.default.registerHelper("commaSeparated",e=>e.join(", "))}s(zC,"registerCommaSeparatedListHelper");var Gr=Et(zr());function nb(e){GC(),ZC(e.options),YC(e),KC(),WC(),QC(e)}s(nb,"registerEndpointsHbsHelpers");function GC(){Gr.default.registerHelper("endpointName",Ki)}s(GC,"registerEndpointNameHelper");function ZC(e){Gr.default.registerHelper("importedEndpointName",t=>jv(t,e))}s(ZC,"registerImportedEndpointNameHelper");function KC(){Gr.default.registerHelper("endpointPath",Mv)}s(KC,"registerEndpointPathHelper");function WC(){Gr.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}s(WC,"registerEndpointBodyHelper");function YC(e){Gr.default.registerHelper("endpointParams",t=>Of(e,t))}s(YC,"registerEndpointParamsHelper");function QC(e){Gr.default.registerHelper("endpointArgs",t=>Of(e,t).map(r=>r.name).join(", "))}s(QC,"registerEndpointArgsHelper");var Kn=Et(zr());var pr={query:"useQuery",mutation:"useMutation"},ib={bindings:[pr.query,pr.mutation],from:"@tanstack/react-query"};function ob(){JC(),XC(),eN(),tN(),rN()}s(ob,"registerPartialsHbsHelpers");function JC(){Kn.default.registerHelper("genImport",e=>Wn("import")({import:e}))}s(JC,"registerImportHelper");function XC(){Kn.default.registerHelper("genEndpointParams",e=>Wn("endpoint-params")({endpoint:e}))}s(XC,"registerGenerateEndpointParamsHelper");function eN(){Kn.default.registerHelper("genEndpointConfig",e=>{let t=Dv(e);return Object.keys(t).length===0?"":Wn("endpoint-config")({endpointConfig:t})})}s(eN,"registerGenerateEndpointConfigHelper");function tN(){Kn.default.registerHelper("genQueryKeys",e=>e.length===0?"":Wn("query-keys")({endpoints:e}))}s(tN,"registerGenerateQueryKeysHelper");function rN(){Kn.default.registerHelper("genQuery",e=>{let t,r;return qn(e)?(t="query-use-query",r=pr.query):(t="query-use-mutation",r=pr.mutation),Wn(t)({endpoint:e,queryHook:r})})}s(rN,"registerGenerateQueryHelper");var ya=Et(zr());function sb(){nN(),iN(),oN()}s(sb,"registerQueryHbsHelpers");function nN(){ya.default.registerHelper("queryName",Ss)}s(nN,"registerQueryNameHelper");function iN(){ya.default.registerHelper("allQueryKeys",pf)}s(iN,"registerQueryKeysHelper");function oN(){ya.default.registerHelper("endpointPathQueryKeys",dv)}s(oN,"registerEndpointPathQueryKeysHelper");var xp=Et(zr());function ab(e){sN(e.options),aN(e)}s(ab,"registerZodHbsHelpers");function sN(e){xp.default.registerHelper("zodInferedType",t=>Zi(t,e))}s(sN,"registerInferedTypeHelper");function aN(e){xp.default.registerHelper("importedZodSchemaName",t=>kv(e,t))}s(aN,"registerImportedZodSchemaNameHelper");function Yn(e,t){let r=Op(t);return rb(),ab(e),nb(e),sb(),ob(),wp.default.compile(r)}s(Yn,"getHbsTemplateDelegate");function Wn(e){let t=Op(`partials/${e}`);return wp.default.compile(t)}s(Wn,"getHbsPartialTemplateDelegate");function ub({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints;if(!n||n.length===0)return;let i=n.map(p=>p.response),o=i.some(p=>!Se(p)),a=n.reduce((p,f)=>[...p,...f.parameters],[]),u=Dn({resolver:e,tag:r,zodSchemas:Te(i.filter(Se)),zodSchemasAsTypes:Te(a.map(p=>p.zodSchema).filter(Se))});return Yn(e,"endpoints")({restClientImport:a_,hasZodImport:o,zodImport:vs,modelsImports:u,includeNamespace:e.options.includeNamespaces,namespace:ee({type:"endpoints",tag:r,options:e.options}),restClientName:kf,endpoints:n})}s(ub,"generateEndpoints");function cb(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),o=e.getEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...o]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(lb(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}s(cb,"getZodSchemaRefs");function lb(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&lb(n).forEach(o=>r.add(o)),r},new Set)}s(lb,"getSchemaRefs");function fb({resolver:e,data:t,tag:r=""}){var c;let n=(c=t.get(r))==null?void 0:c.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,p)=>[...l,...cb(e,p)],[]).filter(l=>!n[l]),o=Dn({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[p,f])=>{let d=e.getRefByZodSchemaName(p);return{...l,[p]:{code:f,isCircular:!!d&&e.isSchemaCircular(d)}}},{});return Yn(e,"models")({zodImport:vs,modelsImports:o,includeNamespace:e.options.includeNamespaces,namespace:ee({type:"models",tag:r,options:e.options}),zodSchemasData:a})}s(fb,"generateModels");function pb({resolver:e,data:t,tag:r=""}){var d;let n=(d=t.get(r))==null?void 0:d.endpoints;if(!n||n.length===0)return;let i=n.filter(qn),o=n.filter(xs),a={...ib,bindings:[...i.length>0?[pr.query]:[],...o.length>0?[pr.mutation]:[]]},u={...u_,bindings:[...i.length>0?[Ji.query]:[],...o.length>0?[Ji.mutation]:[]]},c=[...i,...o].reduce((h,g)=>[...h,...g.parameters],[]),l=Dn({resolver:e,tag:r,zodSchemasAsTypes:Te(c.map(h=>h.zodSchema).filter(Se))}),p=c_({tag:r,endpoints:n,options:e.options});return Yn(e,"queries")({queryImport:a,queryTypesImport:u,modelsImports:l,endpointsImports:p,includeNamespace:e.options.includeNamespaces,namespace:ee({type:"queries",tag:r,options:e.options}),endpoints:n,queryEndpoints:i})}s(pb,"generateQueries");function db(e,t){let r={...Bi,...t},{resolver:n,data:i}=Ns(e,r),o=[],a=["models","endpoints","queries"],u={models:fb,endpoints:ub,queries:pb};return i.forEach((c,l)=>{r.excludeTags.find(f=>f.toLowerCase()===l.toLowerCase())||a.forEach(f=>{let d=u[f]({resolver:n,data:i,tag:l});if(d){let h=tb({output:r.output,fileName:tr({tag:l,type:f,options:r})});o.push({fileName:h,content:d})}})}),o}s(db,"generateCodeFromOpenAPIDoc");async function uN({input:e,options:t}){let r={...Bi,...t},n=await Ap.default.bundle(e);return await s_(n,r)}s(uN,"getGenerateMetadata");async function cN({input:e,options:t}){let r={...Bi,...t},n=await Ap.default.bundle(e);return db(n,r)}s(cN,"getGenerateFilesData");0&&(module.exports={getGenerateFilesData,getGenerateMetadata});