@povio/openapi-codegen-cli 0.0.12 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sh.js CHANGED
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var D$=Object.create;var oa=Object.defineProperty;var Cm=Object.getOwnPropertyDescriptor;var L$=Object.getOwnPropertyNames;var F$=Object.getPrototypeOf,V$=Object.prototype.hasOwnProperty;var s=(e,t)=>oa(e,"name",{value:t,configurable:!0});var b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var B$=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of L$(t))!V$.call(e,i)&&i!==r&&oa(e,i,{get:()=>t[i],enumerable:!(n=Cm(t,i))||n.enumerable});return e};var Et=(e,t,r)=>(r=e!=null?D$(F$(e)):{},B$(t||!e||!e.__esModule?oa(r,"default",{value:e,enumerable:!0}):r,e));var Vr=(e,t,r,n)=>{for(var i=n>1?void 0:n?Cm(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&oa(t,r,i),i};var Zg=b(()=>{var Kg;(function(e){(function(t){var r=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:u(),n=i(e);typeof r.Reflect<"u"&&(n=i(r.Reflect,n)),t(n,r),typeof r.Reflect>"u"&&(r.Reflect=e);function i(c,l){return function(p,f){Object.defineProperty(c,p,{configurable:!0,writable:!0,value:f}),l&&l(p,f)}}s(i,"makeExporter");function o(){try{return Function("return this;")()}catch{}}s(o,"functionThis");function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}s(a,"indirectEvalThis");function u(){return o()||a()}s(u,"sloppyModeThis")})(function(t,r){var n=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",o=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",u=typeof Object.create=="function",c={__proto__:[]}instanceof Array,l=!u&&!c,p={create:u?function(){return Ic(Object.create(null))}:c?function(){return Ic({__proto__:null})}:function(){return Ic({})},has:l?function(S,O){return n.call(S,O)}:function(S,O){return O in S},get:l?function(S,O){return n.call(S,O)?S[O]:void 0}:function(S,O){return S[O]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:k$(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:N$(),y=typeof WeakMap=="function"?WeakMap:M$(),v=i?Symbol.for("@reflect-metadata:registry"):void 0,g=Ye(),$=ot(g);function A(S,O,E,N){if(Y(E)){if(!Te(S))throw new TypeError;if(!xt(O))throw new TypeError;return R(S,O)}else{if(!Te(S))throw new TypeError;if(!Ae(O))throw new TypeError;if(!Ae(N)&&!Y(N)&&!Ot(N))throw new TypeError;return Ot(N)&&(N=void 0),E=_e(E),q(S,O,E,N)}}s(A,"decorate"),t("decorate",A);function k(S,O){function E(N,J){if(!Ae(N))throw new TypeError;if(!Y(J)&&!xi(J))throw new TypeError;Ve(S,O,N,J)}return s(E,"decorator"),E}s(k,"metadata"),t("metadata",k);function C(S,O,E,N){if(!Ae(E))throw new TypeError;return Y(N)||(N=_e(N)),Ve(S,O,E,N)}s(C,"defineMetadata"),t("defineMetadata",C);function I(S,O,E){if(!Ae(O))throw new TypeError;return Y(E)||(E=_e(E)),Z(S,O,E)}s(I,"hasMetadata"),t("hasMetadata",I);function fe(S,O,E){if(!Ae(O))throw new TypeError;return Y(E)||(E=_e(E)),ue(S,O,E)}s(fe,"hasOwnMetadata"),t("hasOwnMetadata",fe);function ne(S,O,E){if(!Ae(O))throw new TypeError;return Y(E)||(E=_e(E)),be(S,O,E)}s(ne,"getMetadata"),t("getMetadata",ne);function gt(S,O,E){if(!Ae(O))throw new TypeError;return Y(E)||(E=_e(E)),ge(S,O,E)}s(gt,"getOwnMetadata"),t("getOwnMetadata",gt);function Le(S,O){if(!Ae(S))throw new TypeError;return Y(O)||(O=_e(O)),wr(S,O)}s(Le,"getMetadataKeys"),t("getMetadataKeys",Le);function ee(S,O){if(!Ae(S))throw new TypeError;return Y(O)||(O=_e(O)),xe(S,O)}s(ee,"getOwnMetadataKeys"),t("getOwnMetadataKeys",ee);function M(S,O,E){if(!Ae(O))throw new TypeError;if(Y(E)||(E=_e(E)),!Ae(O))throw new TypeError;Y(E)||(E=_e(E));var N=Ls(O,E,!1);return Y(N)?!1:N.OrdinaryDeleteMetadata(S,O,E)}s(M,"deleteMetadata"),t("deleteMetadata",M);function R(S,O){for(var E=S.length-1;E>=0;--E){var N=S[E],J=N(O);if(!Y(J)&&!Ot(J)){if(!xt(J))throw new TypeError;O=J}}return O}s(R,"DecorateConstructor");function q(S,O,E,N){for(var J=S.length-1;J>=0;--J){var Ge=S[J],Xe=Ge(O,E,N);if(!Y(Xe)&&!Ot(Xe)){if(!Ae(Xe))throw new TypeError;N=Xe}}return N}s(q,"DecorateProperty");function Z(S,O,E){var N=ue(S,O,E);if(N)return!0;var J=T(O);return Ot(J)?!1:Z(S,J,E)}s(Z,"OrdinaryHasMetadata");function ue(S,O,E){var N=Ls(O,E,!1);return Y(N)?!1:Ce(N.OrdinaryHasOwnMetadata(S,O,E))}s(ue,"OrdinaryHasOwnMetadata");function be(S,O,E){var N=ue(S,O,E);if(N)return ge(S,O,E);var J=T(O);if(!Ot(J))return be(S,J,E)}s(be,"OrdinaryGetMetadata");function ge(S,O,E){var N=Ls(O,E,!1);if(!Y(N))return N.OrdinaryGetOwnMetadata(S,O,E)}s(ge,"OrdinaryGetOwnMetadata");function Ve(S,O,E,N){var J=Ls(E,N,!0);J.OrdinaryDefineOwnMetadata(S,O,E,N)}s(Ve,"OrdinaryDefineOwnMetadata");function wr(S,O){var E=xe(S,O),N=T(S);if(N===null)return E;var J=wr(N,O);if(J.length<=0)return E;if(E.length<=0)return J;for(var Ge=new h,Xe=[],de=0,D=E;de<D.length;de++){var L=D[de],H=Ge.has(L);H||(Ge.add(L),Xe.push(L))}for(var z=0,me=J;z<me.length;z++){var L=me[z],H=Ge.has(L);H||(Ge.add(L),Xe.push(L))}return Xe}s(wr,"OrdinaryMetadataKeys");function xe(S,O){var E=Ls(S,O,!1);return E?E.OrdinaryOwnMetadataKeys(S,O):[]}s(xe,"OrdinaryOwnMetadataKeys");function Bt(S){if(S===null)return 1;switch(typeof S){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return S===null?1:6;default:return 6}}s(Bt,"Type");function Y(S){return S===void 0}s(Y,"IsUndefined");function Ot(S){return S===null}s(Ot,"IsNull");function te(S){return typeof S=="symbol"}s(te,"IsSymbol");function Ae(S){return typeof S=="object"?S!==null:typeof S=="function"}s(Ae,"IsObject");function Q(S,O){switch(Bt(S)){case 0:return S;case 1:return S;case 2:return S;case 3:return S;case 4:return S;case 5:return S}var E=O===3?"string":O===5?"number":"default",N=P(S,o);if(N!==void 0){var J=N.call(S,E);if(Ae(J))throw new TypeError;return J}return Ee(S,E==="default"?"number":E)}s(Q,"ToPrimitive");function Ee(S,O){if(O==="string"){var E=S.toString;if(nt(E)){var N=E.call(S);if(!Ae(N))return N}var J=S.valueOf;if(nt(J)){var N=J.call(S);if(!Ae(N))return N}}else{var J=S.valueOf;if(nt(J)){var N=J.call(S);if(!Ae(N))return N}var Ge=S.toString;if(nt(Ge)){var N=Ge.call(S);if(!Ae(N))return N}}throw new TypeError}s(Ee,"OrdinaryToPrimitive");function Ce(S){return!!S}s(Ce,"ToBoolean");function pe(S){return""+S}s(pe,"ToString");function _e(S){var O=Q(S,3);return te(O)?O:pe(O)}s(_e,"ToPropertyKey");function Te(S){return Array.isArray?Array.isArray(S):S instanceof Object?S instanceof Array:Object.prototype.toString.call(S)==="[object Array]"}s(Te,"IsArray");function nt(S){return typeof S=="function"}s(nt,"IsCallable");function xt(S){return typeof S=="function"}s(xt,"IsConstructor");function xi(S){switch(Bt(S)){case 3:return!0;case 4:return!0;default:return!1}}s(xi,"IsPropertyKey");function _(S,O){return S===O||S!==S&&O!==O}s(_,"SameValueZero");function P(S,O){var E=S[O];if(E!=null){if(!nt(E))throw new TypeError;return E}}s(P,"GetMethod");function j(S){var O=P(S,a);if(!nt(O))throw new TypeError;var E=O.call(S);if(!Ae(E))throw new TypeError;return E}s(j,"GetIterator");function x(S){return S.value}s(x,"IteratorValue");function w(S){var O=S.next();return O.done?!1:O}s(w,"IteratorStep");function V(S){var O=S.return;O&&O.call(S)}s(V,"IteratorClose");function T(S){var O=Object.getPrototypeOf(S);if(typeof S!="function"||S===f||O!==f)return O;var E=S.prototype,N=E&&Object.getPrototypeOf(E);if(N==null||N===Object.prototype)return O;var J=N.constructor;return typeof J!="function"||J===S?O:J}s(T,"OrdinaryGetPrototypeOf");function G(){var S;!Y(v)&&typeof r.Reflect<"u"&&!(v in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(S=j$(r.Reflect));var O,E,N,J=new y,Ge={registerProvider:Xe,getProvider:D,setProvider:H};return Ge;function Xe(z){if(!Object.isExtensible(Ge))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===z:break;case Y(O):O=z;break;case O===z:break;case Y(E):E=z;break;case E===z:break;default:N===void 0&&(N=new h),N.add(z);break}}function de(z,me){if(!Y(O)){if(O.isProviderFor(z,me))return O;if(!Y(E)){if(E.isProviderFor(z,me))return O;if(!Y(N))for(var Ie=j(N);;){var We=w(Ie);if(!We)return;var ir=x(We);if(ir.isProviderFor(z,me))return V(Ie),ir}}}if(!Y(S)&&S.isProviderFor(z,me))return S}function D(z,me){var Ie=J.get(z),We;return Y(Ie)||(We=Ie.get(me)),Y(We)&&(We=de(z,me),Y(We)||(Y(Ie)&&(Ie=new d,J.set(z,Ie)),Ie.set(me,We))),We}function L(z){if(Y(z))throw new TypeError;return O===z||E===z||!Y(N)&&N.has(z)}function H(z,me,Ie){if(!L(Ie))throw new Error("Metadata provider not registered.");var We=D(z,me);if(We!==Ie){if(!Y(We))return!1;var ir=J.get(z);Y(ir)&&(ir=new d,J.set(z,ir)),ir.set(me,Ie)}return!0}}s(G,"CreateMetadataRegistry");function Ye(){var S;return!Y(v)&&Ae(r.Reflect)&&Object.isExtensible(r.Reflect)&&(S=r.Reflect[v]),Y(S)&&(S=G()),!Y(v)&&Ae(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,v,{enumerable:!1,configurable:!1,writable:!1,value:S}),S}s(Ye,"GetOrCreateMetadataRegistry");function ot(S){var O=new y,E={isProviderFor:s(function(L,H){var z=O.get(L);return Y(z)?!1:z.has(H)},"isProviderFor"),OrdinaryDefineOwnMetadata:Xe,OrdinaryHasOwnMetadata:J,OrdinaryGetOwnMetadata:Ge,OrdinaryOwnMetadataKeys:de,OrdinaryDeleteMetadata:D};return g.registerProvider(E),E;function N(L,H,z){var me=O.get(L),Ie=!1;if(Y(me)){if(!z)return;me=new d,O.set(L,me),Ie=!0}var We=me.get(H);if(Y(We)){if(!z)return;if(We=new d,me.set(H,We),!S.setProvider(L,H,E))throw me.delete(H),Ie&&O.delete(L),new Error("Wrong provider for target.")}return We}s(N,"GetOrCreateMetadataMap");function J(L,H,z){var me=N(H,z,!1);return Y(me)?!1:Ce(me.has(L))}s(J,"OrdinaryHasOwnMetadata");function Ge(L,H,z){var me=N(H,z,!1);if(!Y(me))return me.get(L)}s(Ge,"OrdinaryGetOwnMetadata");function Xe(L,H,z,me){var Ie=N(z,me,!0);Ie.set(L,H)}s(Xe,"OrdinaryDefineOwnMetadata");function de(L,H){var z=[],me=N(L,H,!1);if(Y(me))return z;for(var Ie=me.keys(),We=j(Ie),ir=0;;){var Am=w(We);if(!Am)return z.length=ir,z;var T$=x(Am);try{z[ir]=T$}catch(q$){try{V(We)}finally{throw q$}}ir++}}s(de,"OrdinaryOwnMetadataKeys");function D(L,H,z){var me=N(H,z,!1);if(Y(me)||!me.delete(L))return!1;if(me.size===0){var Ie=O.get(H);Y(Ie)||(Ie.delete(z),Ie.size===0&&O.delete(Ie))}return!0}s(D,"OrdinaryDeleteMetadata")}s(ot,"CreateMetadataProvider");function j$(S){var O=S.defineMetadata,E=S.hasOwnMetadata,N=S.getOwnMetadata,J=S.getOwnMetadataKeys,Ge=S.deleteMetadata,Xe=new y,de={isProviderFor:s(function(D,L){var H=Xe.get(D);return!Y(H)&&H.has(L)?!0:J(D,L).length?(Y(H)&&(H=new h,Xe.set(D,H)),H.add(L),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:O,OrdinaryHasOwnMetadata:E,OrdinaryGetOwnMetadata:N,OrdinaryOwnMetadataKeys:J,OrdinaryDeleteMetadata:Ge};return de}s(j$,"CreateFallbackProvider");function Ls(S,O,E){var N=g.getProvider(S,O);if(!Y(N))return N;if(E){if(g.setProvider(S,O,$))return $;throw new Error("Illegal state.")}}s(Ls,"GetMetadataProvider");function k$(){var S={},O=[],E=function(){function de(D,L,H){this._index=0,this._keys=D,this._values=L,this._selector=H}return s(de,"MapIterator"),de.prototype["@@iterator"]=function(){return this},de.prototype[a]=function(){return this},de.prototype.next=function(){var D=this._index;if(D>=0&&D<this._keys.length){var L=this._selector(this._keys[D],this._values[D]);return D+1>=this._keys.length?(this._index=-1,this._keys=O,this._values=O):this._index++,{value:L,done:!1}}return{value:void 0,done:!0}},de.prototype.throw=function(D){throw this._index>=0&&(this._index=-1,this._keys=O,this._values=O),D},de.prototype.return=function(D){return this._index>=0&&(this._index=-1,this._keys=O,this._values=O),{value:D,done:!0}},de}(),N=function(){function de(){this._keys=[],this._values=[],this._cacheKey=S,this._cacheIndex=-2}return s(de,"Map"),Object.defineProperty(de.prototype,"size",{get:s(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),de.prototype.has=function(D){return this._find(D,!1)>=0},de.prototype.get=function(D){var L=this._find(D,!1);return L>=0?this._values[L]:void 0},de.prototype.set=function(D,L){var H=this._find(D,!0);return this._values[H]=L,this},de.prototype.delete=function(D){var L=this._find(D,!1);if(L>=0){for(var H=this._keys.length,z=L+1;z<H;z++)this._keys[z-1]=this._keys[z],this._values[z-1]=this._values[z];return this._keys.length--,this._values.length--,_(D,this._cacheKey)&&(this._cacheKey=S,this._cacheIndex=-2),!0}return!1},de.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=S,this._cacheIndex=-2},de.prototype.keys=function(){return new E(this._keys,this._values,J)},de.prototype.values=function(){return new E(this._keys,this._values,Ge)},de.prototype.entries=function(){return new E(this._keys,this._values,Xe)},de.prototype["@@iterator"]=function(){return this.entries()},de.prototype[a]=function(){return this.entries()},de.prototype._find=function(D,L){if(!_(this._cacheKey,D)){this._cacheIndex=-1;for(var H=0;H<this._keys.length;H++)if(_(this._keys[H],D)){this._cacheIndex=H;break}}return this._cacheIndex<0&&L&&(this._cacheIndex=this._keys.length,this._keys.push(D),this._values.push(void 0)),this._cacheIndex},de}();return N;function J(de,D){return de}function Ge(de,D){return D}function Xe(de,D){return[de,D]}}s(k$,"CreateMapPolyfill");function N$(){var S=function(){function O(){this._map=new d}return s(O,"Set"),Object.defineProperty(O.prototype,"size",{get:s(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),O.prototype.has=function(E){return this._map.has(E)},O.prototype.add=function(E){return this._map.set(E,E),this},O.prototype.delete=function(E){return this._map.delete(E)},O.prototype.clear=function(){this._map.clear()},O.prototype.keys=function(){return this._map.keys()},O.prototype.values=function(){return this._map.keys()},O.prototype.entries=function(){return this._map.entries()},O.prototype["@@iterator"]=function(){return this.keys()},O.prototype[a]=function(){return this.keys()},O}();return S}s(N$,"CreateSetPolyfill");function M$(){var S=16,O=p.create(),E=N();return function(){function D(){this._key=N()}return s(D,"WeakMap"),D.prototype.has=function(L){var H=J(L,!1);return H!==void 0?p.has(H,this._key):!1},D.prototype.get=function(L){var H=J(L,!1);return H!==void 0?p.get(H,this._key):void 0},D.prototype.set=function(L,H){var z=J(L,!0);return z[this._key]=H,this},D.prototype.delete=function(L){var H=J(L,!1);return H!==void 0?delete H[this._key]:!1},D.prototype.clear=function(){this._key=N()},D}();function N(){var D;do D="@@WeakMap@@"+de();while(p.has(O,D));return O[D]=!0,D}function J(D,L){if(!n.call(D,E)){if(!L)return;Object.defineProperty(D,E,{value:p.create()})}return D[E]}function Ge(D,L){for(var H=0;H<L;++H)D[H]=Math.random()*255|0;return D}function Xe(D){if(typeof Uint8Array=="function"){var L=new Uint8Array(D);return typeof crypto<"u"?crypto.getRandomValues(L):typeof msCrypto<"u"?msCrypto.getRandomValues(L):Ge(L,D),L}return Ge(new Array(D),D)}function de(){var D=Xe(S);D[6]=D[6]&79|64,D[8]=D[8]&191|128;for(var L="",H=0;H<S;++H){var z=D[H];(H===4||H===6||H===8)&&(L+="-"),z<16&&(L+="0"),L+=z.toString(16).toLowerCase()}return L}}s(M$,"CreateWeakMapPolyfill");function Ic(S){return S.__=void 0,delete S.__,S}s(Ic,"MakeDictionary")})})(Kg||(Kg={}))});var Dt=b((qt,Xg)=>{"use strict";var ka=/^win/.test(process.platform),jP=/\//g,kP=/^(\w{2,}):\/\//i,Qg=Xg.exports,NP=/~1/g,MP=/~0/g,Sl=[/\?/g,"%3F",/\#/g,"%23"],wl=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];qt.parse=require("url").parse;qt.resolve=require("url").resolve;qt.cwd=s(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");qt.getProtocol=s(function(t){let r=kP.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");qt.getExtension=s(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");qt.getHash=s(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");qt.stripHash=s(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");qt.isHttp=s(function(t){let r=Qg.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");qt.isFileSystemPath=s(function(t){if(process.browser)return!1;let r=Qg.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");qt.fromFileSystemPath=s(function(t){ka&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<Sl.length;r+=2)t=t.replace(Sl[r],Sl[r+1]);return t},"fromFileSystemPath");qt.toFileSystemPath=s(function(t,r){t=decodeURI(t);for(let i=0;i<wl.length;i+=2)t=t.replace(wl[i],wl[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),ka&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=ka?t:"/"+t)),ka&&!n&&(t=t.replace(jP,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");qt.safePointerToPath=s(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(NP,"/").replace(MP,"~"))},"safePointerToPath")});var Na=b(Zs=>{"use strict";var ey=require("util"),TP=Dt();Zs.format=ey.format;Zs.inherits=ey.inherits;Zs.swaggerParamRegExp=/\{([^/}]+)}/g;var qP=["get","post","put","delete","patch","options","head","trace"];function $l(e,t){if(e.url&&e.url.startsWith("/")){let r=TP.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}s($l,"fixServers");function DP(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>$l(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=>$l(a,t)):qP.includes(o)&&i[o].servers&&i[o].servers.map(a=>$l(a,t))})})}))}s(DP,"fixOasRelativeServers");Zs.fixOasRelativeServers=DP});var Ma=b(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.getDeepKeys=qi.toJSON=void 0;var LP=["function","symbol","undefined"],FP=["constructor","prototype","__proto__"],VP=Object.getPrototypeOf({});function BP(){let e={},t=this;for(let r of ty(t))if(typeof r=="string"){let n=t[r],i=typeof n;LP.includes(i)||(e[r]=n)}return e}s(BP,"toJSON");qi.toJSON=BP;function ty(e,t=[]){let r=[];for(;e&&e!==VP;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(FP))n.delete(i);return n}s(ty,"getDeepKeys");qi.getDeepKeys=ty});var Pl=b(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.addInspectMethod=Di.format=void 0;var ry=require("util"),HP=Ma(),ny=ry.inspect.custom||Symbol.for("nodejs.util.inspect.custom");Di.format=ry.format;function UP(e){e[ny]=zP}s(UP,"addInspectMethod");Di.addInspectMethod=UP;function zP(){let e={},t=this;for(let r of HP.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[ny],e}s(zP,"inspect")});var oy=b(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.lazyJoinStacks=Or.joinStacks=Or.isWritableStack=Or.isLazyStack=void 0;var GP=/\r?\n/,WP=/\bono[ @]/;function KP(e){return!!(e&&e.configurable&&typeof e.get=="function")}s(KP,"isLazyStack");Or.isLazyStack=KP;function ZP(e){return!!(!e||e.writable||typeof e.set=="function")}s(ZP,"isWritableStack");Or.isWritableStack=ZP;function iy(e,t){let r=sy(e.stack),n=t?t.stack:void 0;return r&&n?r+`
2
+ "use strict";var D$=Object.create;var oa=Object.defineProperty;var Cm=Object.getOwnPropertyDescriptor;var L$=Object.getOwnPropertyNames;var F$=Object.getPrototypeOf,V$=Object.prototype.hasOwnProperty;var s=(e,t)=>oa(e,"name",{value:t,configurable:!0});var b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var B$=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of L$(t))!V$.call(e,i)&&i!==r&&oa(e,i,{get:()=>t[i],enumerable:!(n=Cm(t,i))||n.enumerable});return e};var Et=(e,t,r)=>(r=e!=null?D$(F$(e)):{},B$(t||!e||!e.__esModule?oa(r,"default",{value:e,enumerable:!0}):r,e));var Vr=(e,t,r,n)=>{for(var i=n>1?void 0:n?Cm(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&oa(t,r,i),i};var Zg=b(()=>{var Kg;(function(e){(function(t){var r=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:u(),n=i(e);typeof r.Reflect<"u"&&(n=i(r.Reflect,n)),t(n,r),typeof r.Reflect>"u"&&(r.Reflect=e);function i(c,l){return function(p,f){Object.defineProperty(c,p,{configurable:!0,writable:!0,value:f}),l&&l(p,f)}}s(i,"makeExporter");function o(){try{return Function("return this;")()}catch{}}s(o,"functionThis");function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}s(a,"indirectEvalThis");function u(){return o()||a()}s(u,"sloppyModeThis")})(function(t,r){var n=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",o=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",u=typeof Object.create=="function",c={__proto__:[]}instanceof Array,l=!u&&!c,p={create:u?function(){return Ic(Object.create(null))}:c?function(){return Ic({__proto__:null})}:function(){return Ic({})},has:l?function(S,O){return n.call(S,O)}:function(S,O){return O in S},get:l?function(S,O){return n.call(S,O)?S[O]:void 0}:function(S,O){return S[O]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:k$(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:N$(),y=typeof WeakMap=="function"?WeakMap:M$(),v=i?Symbol.for("@reflect-metadata:registry"):void 0,g=Ye(),$=at(g);function A(S,O,E,N){if(Y(E)){if(!qe(S))throw new TypeError;if(!xt(O))throw new TypeError;return R(S,O)}else{if(!qe(S))throw new TypeError;if(!Ae(O))throw new TypeError;if(!Ae(N)&&!Y(N)&&!Ot(N))throw new TypeError;return Ot(N)&&(N=void 0),E=_e(E),q(S,O,E,N)}}s(A,"decorate"),t("decorate",A);function k(S,O){function E(N,J){if(!Ae(N))throw new TypeError;if(!Y(J)&&!xi(J))throw new TypeError;Ve(S,O,N,J)}return s(E,"decorator"),E}s(k,"metadata"),t("metadata",k);function C(S,O,E,N){if(!Ae(E))throw new TypeError;return Y(N)||(N=_e(N)),Ve(S,O,E,N)}s(C,"defineMetadata"),t("defineMetadata",C);function I(S,O,E){if(!Ae(O))throw new TypeError;return Y(E)||(E=_e(E)),Z(S,O,E)}s(I,"hasMetadata"),t("hasMetadata",I);function fe(S,O,E){if(!Ae(O))throw new TypeError;return Y(E)||(E=_e(E)),ue(S,O,E)}s(fe,"hasOwnMetadata"),t("hasOwnMetadata",fe);function ne(S,O,E){if(!Ae(O))throw new TypeError;return Y(E)||(E=_e(E)),be(S,O,E)}s(ne,"getMetadata"),t("getMetadata",ne);function ot(S,O,E){if(!Ae(O))throw new TypeError;return Y(E)||(E=_e(E)),ge(S,O,E)}s(ot,"getOwnMetadata"),t("getOwnMetadata",ot);function Te(S,O){if(!Ae(S))throw new TypeError;return Y(O)||(O=_e(O)),wr(S,O)}s(Te,"getMetadataKeys"),t("getMetadataKeys",Te);function ee(S,O){if(!Ae(S))throw new TypeError;return Y(O)||(O=_e(O)),xe(S,O)}s(ee,"getOwnMetadataKeys"),t("getOwnMetadataKeys",ee);function M(S,O,E){if(!Ae(O))throw new TypeError;if(Y(E)||(E=_e(E)),!Ae(O))throw new TypeError;Y(E)||(E=_e(E));var N=Ls(O,E,!1);return Y(N)?!1:N.OrdinaryDeleteMetadata(S,O,E)}s(M,"deleteMetadata"),t("deleteMetadata",M);function R(S,O){for(var E=S.length-1;E>=0;--E){var N=S[E],J=N(O);if(!Y(J)&&!Ot(J)){if(!xt(J))throw new TypeError;O=J}}return O}s(R,"DecorateConstructor");function q(S,O,E,N){for(var J=S.length-1;J>=0;--J){var Ge=S[J],Xe=Ge(O,E,N);if(!Y(Xe)&&!Ot(Xe)){if(!Ae(Xe))throw new TypeError;N=Xe}}return N}s(q,"DecorateProperty");function Z(S,O,E){var N=ue(S,O,E);if(N)return!0;var J=T(O);return Ot(J)?!1:Z(S,J,E)}s(Z,"OrdinaryHasMetadata");function ue(S,O,E){var N=Ls(O,E,!1);return Y(N)?!1:Ce(N.OrdinaryHasOwnMetadata(S,O,E))}s(ue,"OrdinaryHasOwnMetadata");function be(S,O,E){var N=ue(S,O,E);if(N)return ge(S,O,E);var J=T(O);if(!Ot(J))return be(S,J,E)}s(be,"OrdinaryGetMetadata");function ge(S,O,E){var N=Ls(O,E,!1);if(!Y(N))return N.OrdinaryGetOwnMetadata(S,O,E)}s(ge,"OrdinaryGetOwnMetadata");function Ve(S,O,E,N){var J=Ls(E,N,!0);J.OrdinaryDefineOwnMetadata(S,O,E,N)}s(Ve,"OrdinaryDefineOwnMetadata");function wr(S,O){var E=xe(S,O),N=T(S);if(N===null)return E;var J=wr(N,O);if(J.length<=0)return E;if(E.length<=0)return J;for(var Ge=new h,Xe=[],de=0,D=E;de<D.length;de++){var L=D[de],H=Ge.has(L);H||(Ge.add(L),Xe.push(L))}for(var z=0,me=J;z<me.length;z++){var L=me[z],H=Ge.has(L);H||(Ge.add(L),Xe.push(L))}return Xe}s(wr,"OrdinaryMetadataKeys");function xe(S,O){var E=Ls(S,O,!1);return E?E.OrdinaryOwnMetadataKeys(S,O):[]}s(xe,"OrdinaryOwnMetadataKeys");function Bt(S){if(S===null)return 1;switch(typeof S){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return S===null?1:6;default:return 6}}s(Bt,"Type");function Y(S){return S===void 0}s(Y,"IsUndefined");function Ot(S){return S===null}s(Ot,"IsNull");function te(S){return typeof S=="symbol"}s(te,"IsSymbol");function Ae(S){return typeof S=="object"?S!==null:typeof S=="function"}s(Ae,"IsObject");function Q(S,O){switch(Bt(S)){case 0:return S;case 1:return S;case 2:return S;case 3:return S;case 4:return S;case 5:return S}var E=O===3?"string":O===5?"number":"default",N=P(S,o);if(N!==void 0){var J=N.call(S,E);if(Ae(J))throw new TypeError;return J}return Ee(S,E==="default"?"number":E)}s(Q,"ToPrimitive");function Ee(S,O){if(O==="string"){var E=S.toString;if(nt(E)){var N=E.call(S);if(!Ae(N))return N}var J=S.valueOf;if(nt(J)){var N=J.call(S);if(!Ae(N))return N}}else{var J=S.valueOf;if(nt(J)){var N=J.call(S);if(!Ae(N))return N}var Ge=S.toString;if(nt(Ge)){var N=Ge.call(S);if(!Ae(N))return N}}throw new TypeError}s(Ee,"OrdinaryToPrimitive");function Ce(S){return!!S}s(Ce,"ToBoolean");function pe(S){return""+S}s(pe,"ToString");function _e(S){var O=Q(S,3);return te(O)?O:pe(O)}s(_e,"ToPropertyKey");function qe(S){return Array.isArray?Array.isArray(S):S instanceof Object?S instanceof Array:Object.prototype.toString.call(S)==="[object Array]"}s(qe,"IsArray");function nt(S){return typeof S=="function"}s(nt,"IsCallable");function xt(S){return typeof S=="function"}s(xt,"IsConstructor");function xi(S){switch(Bt(S)){case 3:return!0;case 4:return!0;default:return!1}}s(xi,"IsPropertyKey");function _(S,O){return S===O||S!==S&&O!==O}s(_,"SameValueZero");function P(S,O){var E=S[O];if(E!=null){if(!nt(E))throw new TypeError;return E}}s(P,"GetMethod");function j(S){var O=P(S,a);if(!nt(O))throw new TypeError;var E=O.call(S);if(!Ae(E))throw new TypeError;return E}s(j,"GetIterator");function x(S){return S.value}s(x,"IteratorValue");function w(S){var O=S.next();return O.done?!1:O}s(w,"IteratorStep");function V(S){var O=S.return;O&&O.call(S)}s(V,"IteratorClose");function T(S){var O=Object.getPrototypeOf(S);if(typeof S!="function"||S===f||O!==f)return O;var E=S.prototype,N=E&&Object.getPrototypeOf(E);if(N==null||N===Object.prototype)return O;var J=N.constructor;return typeof J!="function"||J===S?O:J}s(T,"OrdinaryGetPrototypeOf");function G(){var S;!Y(v)&&typeof r.Reflect<"u"&&!(v in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(S=j$(r.Reflect));var O,E,N,J=new y,Ge={registerProvider:Xe,getProvider:D,setProvider:H};return Ge;function Xe(z){if(!Object.isExtensible(Ge))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===z:break;case Y(O):O=z;break;case O===z:break;case Y(E):E=z;break;case E===z:break;default:N===void 0&&(N=new h),N.add(z);break}}function de(z,me){if(!Y(O)){if(O.isProviderFor(z,me))return O;if(!Y(E)){if(E.isProviderFor(z,me))return O;if(!Y(N))for(var Ie=j(N);;){var We=w(Ie);if(!We)return;var ir=x(We);if(ir.isProviderFor(z,me))return V(Ie),ir}}}if(!Y(S)&&S.isProviderFor(z,me))return S}function D(z,me){var Ie=J.get(z),We;return Y(Ie)||(We=Ie.get(me)),Y(We)&&(We=de(z,me),Y(We)||(Y(Ie)&&(Ie=new d,J.set(z,Ie)),Ie.set(me,We))),We}function L(z){if(Y(z))throw new TypeError;return O===z||E===z||!Y(N)&&N.has(z)}function H(z,me,Ie){if(!L(Ie))throw new Error("Metadata provider not registered.");var We=D(z,me);if(We!==Ie){if(!Y(We))return!1;var ir=J.get(z);Y(ir)&&(ir=new d,J.set(z,ir)),ir.set(me,Ie)}return!0}}s(G,"CreateMetadataRegistry");function Ye(){var S;return!Y(v)&&Ae(r.Reflect)&&Object.isExtensible(r.Reflect)&&(S=r.Reflect[v]),Y(S)&&(S=G()),!Y(v)&&Ae(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,v,{enumerable:!1,configurable:!1,writable:!1,value:S}),S}s(Ye,"GetOrCreateMetadataRegistry");function at(S){var O=new y,E={isProviderFor:s(function(L,H){var z=O.get(L);return Y(z)?!1:z.has(H)},"isProviderFor"),OrdinaryDefineOwnMetadata:Xe,OrdinaryHasOwnMetadata:J,OrdinaryGetOwnMetadata:Ge,OrdinaryOwnMetadataKeys:de,OrdinaryDeleteMetadata:D};return g.registerProvider(E),E;function N(L,H,z){var me=O.get(L),Ie=!1;if(Y(me)){if(!z)return;me=new d,O.set(L,me),Ie=!0}var We=me.get(H);if(Y(We)){if(!z)return;if(We=new d,me.set(H,We),!S.setProvider(L,H,E))throw me.delete(H),Ie&&O.delete(L),new Error("Wrong provider for target.")}return We}s(N,"GetOrCreateMetadataMap");function J(L,H,z){var me=N(H,z,!1);return Y(me)?!1:Ce(me.has(L))}s(J,"OrdinaryHasOwnMetadata");function Ge(L,H,z){var me=N(H,z,!1);if(!Y(me))return me.get(L)}s(Ge,"OrdinaryGetOwnMetadata");function Xe(L,H,z,me){var Ie=N(z,me,!0);Ie.set(L,H)}s(Xe,"OrdinaryDefineOwnMetadata");function de(L,H){var z=[],me=N(L,H,!1);if(Y(me))return z;for(var Ie=me.keys(),We=j(Ie),ir=0;;){var Am=w(We);if(!Am)return z.length=ir,z;var T$=x(Am);try{z[ir]=T$}catch(q$){try{V(We)}finally{throw q$}}ir++}}s(de,"OrdinaryOwnMetadataKeys");function D(L,H,z){var me=N(H,z,!1);if(Y(me)||!me.delete(L))return!1;if(me.size===0){var Ie=O.get(H);Y(Ie)||(Ie.delete(z),Ie.size===0&&O.delete(Ie))}return!0}s(D,"OrdinaryDeleteMetadata")}s(at,"CreateMetadataProvider");function j$(S){var O=S.defineMetadata,E=S.hasOwnMetadata,N=S.getOwnMetadata,J=S.getOwnMetadataKeys,Ge=S.deleteMetadata,Xe=new y,de={isProviderFor:s(function(D,L){var H=Xe.get(D);return!Y(H)&&H.has(L)?!0:J(D,L).length?(Y(H)&&(H=new h,Xe.set(D,H)),H.add(L),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:O,OrdinaryHasOwnMetadata:E,OrdinaryGetOwnMetadata:N,OrdinaryOwnMetadataKeys:J,OrdinaryDeleteMetadata:Ge};return de}s(j$,"CreateFallbackProvider");function Ls(S,O,E){var N=g.getProvider(S,O);if(!Y(N))return N;if(E){if(g.setProvider(S,O,$))return $;throw new Error("Illegal state.")}}s(Ls,"GetMetadataProvider");function k$(){var S={},O=[],E=function(){function de(D,L,H){this._index=0,this._keys=D,this._values=L,this._selector=H}return s(de,"MapIterator"),de.prototype["@@iterator"]=function(){return this},de.prototype[a]=function(){return this},de.prototype.next=function(){var D=this._index;if(D>=0&&D<this._keys.length){var L=this._selector(this._keys[D],this._values[D]);return D+1>=this._keys.length?(this._index=-1,this._keys=O,this._values=O):this._index++,{value:L,done:!1}}return{value:void 0,done:!0}},de.prototype.throw=function(D){throw this._index>=0&&(this._index=-1,this._keys=O,this._values=O),D},de.prototype.return=function(D){return this._index>=0&&(this._index=-1,this._keys=O,this._values=O),{value:D,done:!0}},de}(),N=function(){function de(){this._keys=[],this._values=[],this._cacheKey=S,this._cacheIndex=-2}return s(de,"Map"),Object.defineProperty(de.prototype,"size",{get:s(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),de.prototype.has=function(D){return this._find(D,!1)>=0},de.prototype.get=function(D){var L=this._find(D,!1);return L>=0?this._values[L]:void 0},de.prototype.set=function(D,L){var H=this._find(D,!0);return this._values[H]=L,this},de.prototype.delete=function(D){var L=this._find(D,!1);if(L>=0){for(var H=this._keys.length,z=L+1;z<H;z++)this._keys[z-1]=this._keys[z],this._values[z-1]=this._values[z];return this._keys.length--,this._values.length--,_(D,this._cacheKey)&&(this._cacheKey=S,this._cacheIndex=-2),!0}return!1},de.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=S,this._cacheIndex=-2},de.prototype.keys=function(){return new E(this._keys,this._values,J)},de.prototype.values=function(){return new E(this._keys,this._values,Ge)},de.prototype.entries=function(){return new E(this._keys,this._values,Xe)},de.prototype["@@iterator"]=function(){return this.entries()},de.prototype[a]=function(){return this.entries()},de.prototype._find=function(D,L){if(!_(this._cacheKey,D)){this._cacheIndex=-1;for(var H=0;H<this._keys.length;H++)if(_(this._keys[H],D)){this._cacheIndex=H;break}}return this._cacheIndex<0&&L&&(this._cacheIndex=this._keys.length,this._keys.push(D),this._values.push(void 0)),this._cacheIndex},de}();return N;function J(de,D){return de}function Ge(de,D){return D}function Xe(de,D){return[de,D]}}s(k$,"CreateMapPolyfill");function N$(){var S=function(){function O(){this._map=new d}return s(O,"Set"),Object.defineProperty(O.prototype,"size",{get:s(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),O.prototype.has=function(E){return this._map.has(E)},O.prototype.add=function(E){return this._map.set(E,E),this},O.prototype.delete=function(E){return this._map.delete(E)},O.prototype.clear=function(){this._map.clear()},O.prototype.keys=function(){return this._map.keys()},O.prototype.values=function(){return this._map.keys()},O.prototype.entries=function(){return this._map.entries()},O.prototype["@@iterator"]=function(){return this.keys()},O.prototype[a]=function(){return this.keys()},O}();return S}s(N$,"CreateSetPolyfill");function M$(){var S=16,O=p.create(),E=N();return function(){function D(){this._key=N()}return s(D,"WeakMap"),D.prototype.has=function(L){var H=J(L,!1);return H!==void 0?p.has(H,this._key):!1},D.prototype.get=function(L){var H=J(L,!1);return H!==void 0?p.get(H,this._key):void 0},D.prototype.set=function(L,H){var z=J(L,!0);return z[this._key]=H,this},D.prototype.delete=function(L){var H=J(L,!1);return H!==void 0?delete H[this._key]:!1},D.prototype.clear=function(){this._key=N()},D}();function N(){var D;do D="@@WeakMap@@"+de();while(p.has(O,D));return O[D]=!0,D}function J(D,L){if(!n.call(D,E)){if(!L)return;Object.defineProperty(D,E,{value:p.create()})}return D[E]}function Ge(D,L){for(var H=0;H<L;++H)D[H]=Math.random()*255|0;return D}function Xe(D){if(typeof Uint8Array=="function"){var L=new Uint8Array(D);return typeof crypto<"u"?crypto.getRandomValues(L):typeof msCrypto<"u"?msCrypto.getRandomValues(L):Ge(L,D),L}return Ge(new Array(D),D)}function de(){var D=Xe(S);D[6]=D[6]&79|64,D[8]=D[8]&191|128;for(var L="",H=0;H<S;++H){var z=D[H];(H===4||H===6||H===8)&&(L+="-"),z<16&&(L+="0"),L+=z.toString(16).toLowerCase()}return L}}s(M$,"CreateWeakMapPolyfill");function Ic(S){return S.__=void 0,delete S.__,S}s(Ic,"MakeDictionary")})})(Kg||(Kg={}))});var Dt=b((qt,Xg)=>{"use strict";var ka=/^win/.test(process.platform),jP=/\//g,kP=/^(\w{2,}):\/\//i,Qg=Xg.exports,NP=/~1/g,MP=/~0/g,Sl=[/\?/g,"%3F",/\#/g,"%23"],wl=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];qt.parse=require("url").parse;qt.resolve=require("url").resolve;qt.cwd=s(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");qt.getProtocol=s(function(t){let r=kP.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");qt.getExtension=s(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");qt.getHash=s(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");qt.stripHash=s(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");qt.isHttp=s(function(t){let r=Qg.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");qt.isFileSystemPath=s(function(t){if(process.browser)return!1;let r=Qg.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");qt.fromFileSystemPath=s(function(t){ka&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<Sl.length;r+=2)t=t.replace(Sl[r],Sl[r+1]);return t},"fromFileSystemPath");qt.toFileSystemPath=s(function(t,r){t=decodeURI(t);for(let i=0;i<wl.length;i+=2)t=t.replace(wl[i],wl[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),ka&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=ka?t:"/"+t)),ka&&!n&&(t=t.replace(jP,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");qt.safePointerToPath=s(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(NP,"/").replace(MP,"~"))},"safePointerToPath")});var Na=b(Zs=>{"use strict";var ey=require("util"),TP=Dt();Zs.format=ey.format;Zs.inherits=ey.inherits;Zs.swaggerParamRegExp=/\{([^/}]+)}/g;var qP=["get","post","put","delete","patch","options","head","trace"];function $l(e,t){if(e.url&&e.url.startsWith("/")){let r=TP.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}s($l,"fixServers");function DP(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>$l(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=>$l(a,t)):qP.includes(o)&&i[o].servers&&i[o].servers.map(a=>$l(a,t))})})}))}s(DP,"fixOasRelativeServers");Zs.fixOasRelativeServers=DP});var Ma=b(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.getDeepKeys=qi.toJSON=void 0;var LP=["function","symbol","undefined"],FP=["constructor","prototype","__proto__"],VP=Object.getPrototypeOf({});function BP(){let e={},t=this;for(let r of ty(t))if(typeof r=="string"){let n=t[r],i=typeof n;LP.includes(i)||(e[r]=n)}return e}s(BP,"toJSON");qi.toJSON=BP;function ty(e,t=[]){let r=[];for(;e&&e!==VP;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(FP))n.delete(i);return n}s(ty,"getDeepKeys");qi.getDeepKeys=ty});var Pl=b(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.addInspectMethod=Di.format=void 0;var ry=require("util"),HP=Ma(),ny=ry.inspect.custom||Symbol.for("nodejs.util.inspect.custom");Di.format=ry.format;function UP(e){e[ny]=zP}s(UP,"addInspectMethod");Di.addInspectMethod=UP;function zP(){let e={},t=this;for(let r of HP.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[ny],e}s(zP,"inspect")});var oy=b(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.lazyJoinStacks=Or.joinStacks=Or.isWritableStack=Or.isLazyStack=void 0;var GP=/\r?\n/,WP=/\bono[ @]/;function KP(e){return!!(e&&e.configurable&&typeof e.get=="function")}s(KP,"isLazyStack");Or.isLazyStack=KP;function ZP(e){return!!(!e||e.writable||typeof e.set=="function")}s(ZP,"isWritableStack");Or.isWritableStack=ZP;function iy(e,t){let r=sy(e.stack),n=t?t.stack:void 0;return r&&n?r+`
3
3
 
4
4
  `+n:r||n}s(iy,"joinStacks");Or.joinStacks=iy;function YP(e,t,r){r?Object.defineProperty(t,"stack",{get:s(()=>{let n=e.get.apply(t);return iy({stack:n},r)},"get"),enumerable:!1,configurable:!0}):JP(t,e)}s(YP,"lazyJoinStacks");Or.lazyJoinStacks=YP;function sy(e){if(e){let t=e.split(GP),r;for(let n=0;n<t.length;n++){let i=t[n];if(WP.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(`
5
5
  `)}return e}s(sy,"popStack");function JP(e,t){Object.defineProperty(e,"stack",{get:s(()=>sy(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}s(JP,"lazyPopStack")});var cy=b(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.extendError=void 0;var ay=Pl(),Ta=oy(),uy=Ma(),QP=["name","message","stack"];function XP(e,t,r){let n=e;return eO(n,t),t&&typeof t=="object"&&tO(n,t),n.toJSON=uy.toJSON,ay.addInspectMethod&&ay.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}s(XP,"extendError");qa.extendError=XP;function eO(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");Ta.isLazyStack(r)?Ta.lazyJoinStacks(r,e,t):Ta.isWritableStack(r)&&(e.stack=Ta.joinStacks(e,t))}s(eO,"extendStack");function tO(e,t){let r=uy.getDeepKeys(t,QP),n=e,i=t;for(let o of r)if(n[o]===void 0)try{n[o]=i[o]}catch{}}s(tO,"mergeErrors")});var ly=b(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.normalizeArgs=Li.normalizeOptions=void 0;var rO=Pl();function nO(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?rO.format:typeof e.format=="function"?e.format:!1}}s(nO,"normalizeOptions");Li.normalizeOptions=nO;function iO(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?`
6
6
  `:"")+r.message),{originalError:r,props:n,message:o}}s(iO,"normalizeArgs");Li.normalizeArgs=iO});var xl=b(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.Ono=void 0;var Da=cy(),fy=ly(),sO=Ma(),oO=Ol;La.Ono=oO;function Ol(e,t){t=fy.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=fy.normalizeArgs(n,t),u=new e(a);return Da.extendError(u,i,o)}return s(r,"ono"),r[Symbol.species]=e,r}s(Ol,"Ono");Ol.toJSON=s(function(t){return sO.toJSON.call(t)},"toJSON");Ol.extend=s(function(t,r,n){return n||r instanceof Error?Da.extendError(t,r,n):r?Da.extendError(t,void 0,r):Da.extendError(t)},"extend")});var py=b(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.ono=void 0;var Yn=xl(),aO=xr;Fa.ono=aO;xr.error=new Yn.Ono(Error);xr.eval=new Yn.Ono(EvalError);xr.range=new Yn.Ono(RangeError);xr.reference=new Yn.Ono(ReferenceError);xr.syntax=new Yn.Ono(SyntaxError);xr.type=new Yn.Ono(TypeError);xr.uri=new Yn.Ono(URIError);var uO=xr;function xr(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(uO))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 xr.error.apply(void 0,e)}s(xr,"ono")});var hy=b(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});var h5=require("util")});var cr=b((ur,Fi)=>{"use strict";var cO=ur&&ur.__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]}),lO=ur&&ur.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&cO(t,e,r)};Object.defineProperty(ur,"__esModule",{value:!0});ur.ono=void 0;var my=py();Object.defineProperty(ur,"ono",{enumerable:!0,get:s(function(){return my.ono},"get")});var fO=xl();Object.defineProperty(ur,"Ono",{enumerable:!0,get:s(function(){return fO.Ono},"get")});lO(hy(),ur);ur.default=my.ono;typeof Fi=="object"&&typeof Fi.exports=="object"&&(Fi.exports=Object.assign(Fi.exports.default,Fi.exports))});var Qs=b(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.regexpCode=Se.getEsmExportName=Se.getProperty=Se.safeStringify=Se.stringify=Se.strConcat=Se.addCodeArg=Se.str=Se._=Se.nil=Se._Code=Se.Name=Se.IDENTIFIER=Se._CodeOrName=void 0;var Cl=class Cl{};s(Cl,"_CodeOrName");var Ys=Cl;Se._CodeOrName=Ys;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Il=class Il extends Ys{constructor(t){if(super(),!Se.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(Il,"Name");var Jn=Il;Se.Name=Jn;var Rl=class Rl extends Ys{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 Jn&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s(Rl,"_Code");var Zt=Rl;Se._Code=Zt;Se.nil=new Zt("");function gy(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Al(r,t[n]),r.push(e[++n]);return new Zt(r)}s(gy,"_");Se._=gy;var El=new Zt("+");function yy(e,...t){let r=[Js(e[0])],n=0;for(;n<t.length;)r.push(El),Al(r,t[n]),r.push(El,Js(e[++n]));return pO(r),new Zt(r)}s(yy,"str");Se.str=yy;function Al(e,t){t instanceof Zt?e.push(...t._items):t instanceof Jn?e.push(t):e.push(mO(t))}s(Al,"addCodeArg");Se.addCodeArg=Al;function pO(e){let t=1;for(;t<e.length-1;){if(e[t]===El){let r=dO(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}s(pO,"optimize");function dO(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Jn||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 Jn))return`"${e}${t.slice(1)}`}s(dO,"mergeExprItems");function hO(e,t){return t.emptyStr()?e:e.emptyStr()?t:yy`${e}${t}`}s(hO,"strConcat");Se.strConcat=hO;function mO(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Js(Array.isArray(e)?e.join(","):e)}s(mO,"interpolate");function gO(e){return new Zt(Js(e))}s(gO,"stringify");Se.stringify=gO;function Js(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(Js,"safeStringify");Se.safeStringify=Js;function yO(e){return typeof e=="string"&&Se.IDENTIFIER.test(e)?new Zt(`.${e}`):gy`[${e}]`}s(yO,"getProperty");Se.getProperty=yO;function vO(e){if(typeof e=="string"&&Se.IDENTIFIER.test(e))return new Zt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(vO,"getEsmExportName");Se.getEsmExportName=vO;function bO(e){return new Zt(e.toString())}s(bO,"regexpCode");Se.regexpCode=bO});var Dl=b(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.ValueScope=Ct.ValueScopeName=Ct.Scope=Ct.varKinds=Ct.UsedValueState=void 0;var At=Qs(),Nl=class Nl extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s(Nl,"ValueError");var jl=Nl,Va;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Va||(Ct.UsedValueState=Va={}));Ct.varKinds={const:new At.Name("const"),let:new At.Name("let"),var:new At.Name("var")};var Ml=class Ml{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof At.Name?t:this.name(t)}name(t){return new At.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(Ml,"Scope");var Ba=Ml;Ct.Scope=Ba;var Tl=class Tl extends At.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,At._)`.${new At.Name(r)}[${n}]`}};s(Tl,"ValueScopeName");var Ha=Tl;Ct.ValueScopeName=Ha;var _O=(0,At._)`\n`,ql=class ql extends Ba{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?_O:At.nil}}get(){return this._scope}name(t){return new Ha(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,At._)`${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=At.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,Va.Started);let p=r(l);if(p){let f=this.opts.es5?Ct.varKinds.var:Ct.varKinds.const;o=(0,At._)`${o}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))o=(0,At._)`${o}${p}${this.opts._n}`;else throw new jl(l);c.set(l,Va.Completed)})}return o}};s(ql,"ValueScope");var kl=ql;Ct.ValueScope=kl});var oe=b(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.or=ce.and=ce.not=ce.CodeGen=ce.operators=ce.varKinds=ce.ValueScopeName=ce.ValueScope=ce.Scope=ce.Name=ce.regexpCode=ce.stringify=ce.getProperty=ce.nil=ce.strConcat=ce.str=ce._=void 0;var ye=Qs(),lr=Dl(),cn=Qs();Object.defineProperty(ce,"_",{enumerable:!0,get:s(function(){return cn._},"get")});Object.defineProperty(ce,"str",{enumerable:!0,get:s(function(){return cn.str},"get")});Object.defineProperty(ce,"strConcat",{enumerable:!0,get:s(function(){return cn.strConcat},"get")});Object.defineProperty(ce,"nil",{enumerable:!0,get:s(function(){return cn.nil},"get")});Object.defineProperty(ce,"getProperty",{enumerable:!0,get:s(function(){return cn.getProperty},"get")});Object.defineProperty(ce,"stringify",{enumerable:!0,get:s(function(){return cn.stringify},"get")});Object.defineProperty(ce,"regexpCode",{enumerable:!0,get:s(function(){return cn.regexpCode},"get")});Object.defineProperty(ce,"Name",{enumerable:!0,get:s(function(){return cn.Name},"get")});var Wa=Dl();Object.defineProperty(ce,"Scope",{enumerable:!0,get:s(function(){return Wa.Scope},"get")});Object.defineProperty(ce,"ValueScope",{enumerable:!0,get:s(function(){return Wa.ValueScope},"get")});Object.defineProperty(ce,"ValueScopeName",{enumerable:!0,get:s(function(){return Wa.ValueScopeName},"get")});Object.defineProperty(ce,"varKinds",{enumerable:!0,get:s(function(){return Wa.varKinds},"get")});ce.operators={GT:new ye._Code(">"),GTE:new ye._Code(">="),LT:new ye._Code("<"),LTE:new ye._Code("<="),EQ:new ye._Code("==="),NEQ:new ye._Code("!=="),NOT:new ye._Code("!"),OR:new ye._Code("||"),AND:new ye._Code("&&"),ADD:new ye._Code("+")};var Jl=class Jl{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(Jl,"Node");var Ur=Jl,Ql=class Ql extends Ur{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?lr.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=Hi(this.rhs,t,r)),this}get names(){return this.rhs instanceof ye._CodeOrName?this.rhs.names:{}}};s(Ql,"Def");var Ll=Ql,Xl=class Xl extends Ur{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 ye.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Hi(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ye.Name?{}:{...this.lhs.names};return Ga(t,this.rhs)}};s(Xl,"Assign");var Ua=Xl,ef=class ef extends Ua{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(ef,"AssignOp");var Fl=ef,tf=class tf extends Ur{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(tf,"Label");var Vl=tf,rf=class rf extends Ur{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(rf,"Break");var Bl=rf,nf=class nf extends Ur{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(nf,"Throw");var Hl=nf,sf=class sf extends Ur{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=Hi(this.code,t,r),this}get names(){return this.code instanceof ye._CodeOrName?this.code.names:{}}};s(sf,"AnyCode");var Ul=sf,of=class of extends Ur{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)||(SO(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>ei(t,r.names),{})}};s(of,"ParentNode");var Xs=of,af=class af extends Xs{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(af,"BlockNode");var zr=af,uf=class uf extends Xs{};s(uf,"Root");var zl=uf,cf=class cf extends zr{};s(cf,"Else");var Bi=cf;Bi.kind="else";var Vi=class Vi extends zr{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 Bi(n):n}if(r)return t===!1?r instanceof Vi?r:r.nodes:this.nodes.length?this:new Vi(vy(t),r instanceof Vi?[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=Hi(this.condition,t,r),this}get names(){let t=super.names;return Ga(t,this.condition),this.else&&ei(t,this.else.names),t}};s(Vi,"If");var Qn=Vi;Qn.kind="if";var lf=class lf extends zr{};s(lf,"For");var Xn=lf;Xn.kind="for";var ff=class ff extends Xn{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=Hi(this.iteration,t,r),this}get names(){return ei(super.names,this.iteration.names)}};s(ff,"ForLoop");var Gl=ff,pf=class pf extends Xn{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?lr.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=Ga(super.names,this.from);return Ga(t,this.to)}};s(pf,"ForRange");var Wl=pf,df=class df extends Xn{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=Hi(this.iterable,t,r),this}get names(){return ei(super.names,this.iterable.names)}};s(df,"ForIter");var za=df,hf=class hf extends zr{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(hf,"Func");var eo=hf;eo.kind="func";var mf=class mf extends Xs{render(t){return"return "+super.render(t)}};s(mf,"Return");var to=mf;to.kind="return";var gf=class gf extends zr{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&&ei(t,this.catch.names),this.finally&&ei(t,this.finally.names),t}};s(gf,"Try");var Kl=gf,yf=class yf extends zr{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(yf,"Catch");var ro=yf;ro.kind="catch";var vf=class vf extends zr{render(t){return"finally"+super.render(t)}};s(vf,"Finally");var no=vf;no.kind="finally";var bf=class bf{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
7
- `:""},this._extScope=t,this._scope=new lr.Scope({parent:t}),this._nodes=[new zl]}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 Ll(t,o,n)),o}const(t,r,n){return this._def(lr.varKinds.const,t,r,n)}let(t,r,n){return this._def(lr.varKinds.let,t,r,n)}var(t,r,n){return this._def(lr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Ua(t,r,n))}add(t,r){return this._leafNode(new Fl(t,ce.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ye.nil&&this._leafNode(new Ul(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,ye.addCodeArg)(r,i));return r.push("}"),new ye._Code(r)}if(t,r,n){if(this._blockNode(new Qn(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 Qn(t))}else(){return this._elseNode(new Bi)}endIf(){return this._endBlockNode(Qn,Bi)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Gl(t),r)}forRange(t,r,n,i,o=this.opts.es5?lr.varKinds.var:lr.varKinds.let){let a=this._scope.toName(t);return this._for(new Wl(o,a,r,n),()=>i(a))}forOf(t,r,n,i=lr.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof ye.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ye._)`${a}.length`,u=>{this.var(o,(0,ye._)`${a}[${u}]`),n(o)})}return this._for(new za("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?lr.varKinds.var:lr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ye._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new za("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(Xn)}label(t){return this._leafNode(new Vl(t))}break(t){return this._leafNode(new Bl(t))}return(t){let r=new to;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(to)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Kl;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new ro(o),r(o)}return n&&(this._currNode=i.finally=new no,this.code(n)),this._endBlockNode(ro,no)}throw(t){return this._leafNode(new Hl(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=ye.nil,n,i){return this._blockNode(new eo(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(eo)}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 Qn))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(bf,"CodeGen");var Zl=bf;ce.CodeGen=Zl;function ei(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(ei,"addNames");function Ga(e,t){return t instanceof ye._CodeOrName?ei(e,t.names):e}s(Ga,"addExprNames");function Hi(e,t,r){if(e instanceof ye.Name)return n(e);if(!i(e))return e;return new ye._Code(e._items.reduce((o,a)=>(a instanceof ye.Name&&(a=n(a)),a instanceof ye._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 ye._Code&&o._items.some(a=>a instanceof ye.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(Hi,"optimizeExpr");function SO(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(SO,"subtractNames");function vy(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ye._)`!${Yl(e)}`}s(vy,"not");ce.not=vy;var wO=by(ce.operators.AND);function $O(...e){return e.reduce(wO)}s($O,"and");ce.and=$O;var PO=by(ce.operators.OR);function OO(...e){return e.reduce(PO)}s(OO,"or");ce.or=OO;function by(e){return(t,r)=>t===ye.nil?r:r===ye.nil?t:(0,ye._)`${Yl(t)} ${e} ${Yl(r)}`}s(by,"mappend");function Yl(e){return e instanceof ye.Name?e:(0,ye._)`(${e})`}s(Yl,"par")});var he=b(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.checkStrictMode=le.getErrorPath=le.Type=le.useFunc=le.setEvaluated=le.evaluatedPropsToName=le.mergeEvaluated=le.eachItem=le.unescapeJsonPointer=le.escapeJsonPointer=le.escapeFragment=le.unescapeFragment=le.schemaRefOrVal=le.schemaHasRulesButRef=le.schemaHasRules=le.checkUnknownRules=le.alwaysValidSchema=le.toHash=void 0;var Oe=oe(),xO=Qs();function EO(e){let t={};for(let r of e)t[r]=!0;return t}s(EO,"toHash");le.toHash=EO;function AO(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(wy(e,t),!$y(t,e.self.RULES.all))}s(AO,"alwaysValidSchema");le.alwaysValidSchema=AO;function wy(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]||xy(e,`unknown keyword: "${o}"`)}s(wy,"checkUnknownRules");le.checkUnknownRules=wy;function $y(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s($y,"schemaHasRules");le.schemaHasRules=$y;function CO(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}s(CO,"schemaHasRulesButRef");le.schemaHasRulesButRef=CO;function IO({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Oe._)`${r}`}return(0,Oe._)`${e}${t}${(0,Oe.getProperty)(n)}`}s(IO,"schemaRefOrVal");le.schemaRefOrVal=IO;function RO(e){return Py(decodeURIComponent(e))}s(RO,"unescapeFragment");le.unescapeFragment=RO;function jO(e){return encodeURIComponent(Sf(e))}s(jO,"escapeFragment");le.escapeFragment=jO;function Sf(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(Sf,"escapeJsonPointer");le.escapeJsonPointer=Sf;function Py(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(Py,"unescapeJsonPointer");le.unescapeJsonPointer=Py;function kO(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(kO,"eachItem");le.eachItem=kO;function _y({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,u)=>{let c=a===void 0?o:a instanceof Oe.Name?(o instanceof Oe.Name?e(i,o,a):t(i,o,a),a):o instanceof Oe.Name?(t(i,a,o),o):r(o,a);return u===Oe.Name&&!(c instanceof Oe.Name)?n(i,c):c}}s(_y,"makeMergeEvaluated");le.mergeEvaluated={props:_y({mergeNames:s((e,t,r)=>e.if((0,Oe._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Oe._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Oe._)`${r} || {}`).code((0,Oe._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,Oe._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Oe._)`${r} || {}`),wf(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Oy}),items:_y({mergeNames:s((e,t,r)=>e.if((0,Oe._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Oe._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,Oe._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Oe._)`${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 Oy(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Oe._)`{}`);return t!==void 0&&wf(e,r,t),r}s(Oy,"evaluatedPropsToName");le.evaluatedPropsToName=Oy;function wf(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Oe._)`${t}${(0,Oe.getProperty)(n)}`,!0))}s(wf,"setEvaluated");le.setEvaluated=wf;var Sy={};function NO(e,t){return e.scopeValue("func",{ref:t,code:Sy[t.code]||(Sy[t.code]=new xO._Code(t.code))})}s(NO,"useFunc");le.useFunc=NO;var _f;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(_f||(le.Type=_f={}));function MO(e,t,r){if(e instanceof Oe.Name){let n=t===_f.Num;return r?n?(0,Oe._)`"[" + ${e} + "]"`:(0,Oe._)`"['" + ${e} + "']"`:n?(0,Oe._)`"/" + ${e}`:(0,Oe._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Oe.getProperty)(e).toString():"/"+Sf(e)}s(MO,"getErrorPath");le.getErrorPath=MO;function xy(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(xy,"checkStrictMode");le.checkStrictMode=xy});var Yt=b($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});var lt=oe(),TO={data:new lt.Name("data"),valCxt:new lt.Name("valCxt"),instancePath:new lt.Name("instancePath"),parentData:new lt.Name("parentData"),parentDataProperty:new lt.Name("parentDataProperty"),rootData:new lt.Name("rootData"),dynamicAnchors:new lt.Name("dynamicAnchors"),vErrors:new lt.Name("vErrors"),errors:new lt.Name("errors"),this:new lt.Name("this"),self:new lt.Name("self"),scope:new lt.Name("scope"),json:new lt.Name("json"),jsonPos:new lt.Name("jsonPos"),jsonLen:new lt.Name("jsonLen"),jsonPart:new lt.Name("jsonPart")};$f.default=TO});var io=b(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.extendErrors=ft.resetErrorsCount=ft.reportExtraError=ft.reportError=ft.keyword$DataError=ft.keywordError=void 0;var ve=oe(),Ka=he(),vt=Yt();ft.keywordError={message:s(({keyword:e})=>(0,ve.str)`must pass "${e}" keyword validation`,"message")};ft.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,ve.str)`"${e}" keyword must be ${t} ($data)`:(0,ve.str)`"${e}" keyword is invalid ($data)`,"message")};function qO(e,t=ft.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:u}=i,c=Cy(e,t,r);n??(a||u)?Ey(o,c):Ay(i,(0,ve._)`[${c}]`)}s(qO,"reportError");ft.reportError=qO;function DO(e,t=ft.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,u=Cy(e,t,r);Ey(i,u),o||a||Ay(n,vt.default.vErrors)}s(DO,"reportExtraError");ft.reportExtraError=DO;function LO(e,t){e.assign(vt.default.errors,t),e.if((0,ve._)`${vt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ve._)`${vt.default.vErrors}.length`,t),()=>e.assign(vt.default.vErrors,null)))}s(LO,"resetErrorsCount");ft.resetErrorsCount=LO;function FO({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,vt.default.errors,u=>{e.const(a,(0,ve._)`${vt.default.vErrors}[${u}]`),e.if((0,ve._)`${a}.instancePath === undefined`,()=>e.assign((0,ve._)`${a}.instancePath`,(0,ve.strConcat)(vt.default.instancePath,o.errorPath))),e.assign((0,ve._)`${a}.schemaPath`,(0,ve.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,ve._)`${a}.schema`,r),e.assign((0,ve._)`${a}.data`,n))})}s(FO,"extendErrors");ft.extendErrors=FO;function Ey(e,t){let r=e.const("err",t);e.if((0,ve._)`${vt.default.vErrors} === null`,()=>e.assign(vt.default.vErrors,(0,ve._)`[${r}]`),(0,ve._)`${vt.default.vErrors}.push(${r})`),e.code((0,ve._)`${vt.default.errors}++`)}s(Ey,"addError");function Ay(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,ve._)`new ${e.ValidationError}(${t})`):(r.assign((0,ve._)`${n}.errors`,t),r.return(!1))}s(Ay,"returnErrors");var ti={keyword:new ve.Name("keyword"),schemaPath:new ve.Name("schemaPath"),params:new ve.Name("params"),propertyName:new ve.Name("propertyName"),message:new ve.Name("message"),schema:new ve.Name("schema"),parentSchema:new ve.Name("parentSchema")};function Cy(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,ve._)`{}`:VO(e,t,r)}s(Cy,"errorObjectCode");function VO(e,t,r={}){let{gen:n,it:i}=e,o=[BO(i,r),HO(e,r)];return UO(e,t,o),n.object(...o)}s(VO,"errorObject");function BO({errorPath:e},{instancePath:t}){let r=t?(0,ve.str)`${e}${(0,Ka.getErrorPath)(t,Ka.Type.Str)}`:e;return[vt.default.instancePath,(0,ve.strConcat)(vt.default.instancePath,r)]}s(BO,"errorInstancePath");function HO({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,ve.str)`${t}/${e}`;return r&&(i=(0,ve.str)`${i}${(0,Ka.getErrorPath)(r,Ka.Type.Str)}`),[ti.schemaPath,i]}s(HO,"errorSchemaPath");function UO(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([ti.keyword,i],[ti.params,typeof t=="function"?t(e):t||(0,ve._)`{}`]),c.messages&&n.push([ti.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([ti.schema,a],[ti.parentSchema,(0,ve._)`${p}${f}`],[vt.default.data,o]),l&&n.push([ti.propertyName,l])}s(UO,"extraErrorProps")});var Ry=b(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.boolOrEmptySchema=Ui.topBoolOrEmptySchema=void 0;var zO=io(),GO=oe(),WO=Yt(),KO={message:"boolean schema is false"};function ZO(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Iy(e,!1):typeof r=="object"&&r.$async===!0?t.return(WO.default.data):(t.assign((0,GO._)`${n}.errors`,null),t.return(!0))}s(ZO,"topBoolOrEmptySchema");Ui.topBoolOrEmptySchema=ZO;function YO(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Iy(e)):r.var(t,!0)}s(YO,"boolOrEmptySchema");Ui.boolOrEmptySchema=YO;function Iy(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,zO.reportError)(i,KO,void 0,t)}s(Iy,"falseSchemaError")});var Pf=b(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.getRules=zi.isJSONType=void 0;var JO=["string","number","integer","boolean","null","object","array"],QO=new Set(JO);function XO(e){return typeof e=="string"&&QO.has(e)}s(XO,"isJSONType");zi.isJSONType=XO;function ex(){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(ex,"getRules");zi.getRules=ex});var Of=b(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.shouldUseRule=ln.shouldUseGroup=ln.schemaHasRulesForType=void 0;function tx({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&jy(e,n)}s(tx,"schemaHasRulesForType");ln.schemaHasRulesForType=tx;function jy(e,t){return t.rules.some(r=>ky(e,r))}s(jy,"shouldUseGroup");ln.shouldUseGroup=jy;function ky(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(ky,"shouldUseRule");ln.shouldUseRule=ky});var so=b(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.reportTypeError=pt.checkDataTypes=pt.checkDataType=pt.coerceAndCheckDataType=pt.getJSONTypes=pt.getSchemaTypes=pt.DataType=void 0;var rx=Pf(),nx=Of(),ix=io(),ae=oe(),Ny=he(),Gi;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Gi||(pt.DataType=Gi={}));function sx(e){let t=My(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(sx,"getSchemaTypes");pt.getSchemaTypes=sx;function My(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(rx.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(My,"getJSONTypes");pt.getJSONTypes=My;function ox(e,t){let{gen:r,data:n,opts:i}=e,o=ax(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,nx.schemaHasRulesForType)(e,t[0]));if(a){let u=Ef(t,n,i.strictNumbers,Gi.Wrong);r.if(u,()=>{o.length?ux(e,t,o):Af(e)})}return a}s(ox,"coerceAndCheckDataType");pt.coerceAndCheckDataType=ox;var Ty=new Set(["string","number","integer","boolean","null"]);function ax(e,t){return t?e.filter(r=>Ty.has(r)||t==="array"&&r==="array"):[]}s(ax,"coerceToTypes");function ux(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,ae._)`typeof ${i}`),u=n.let("coerced",(0,ae._)`undefined`);o.coerceTypes==="array"&&n.if((0,ae._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,ae._)`${i}[0]`).assign(a,(0,ae._)`typeof ${i}`).if(Ef(t,i,o.strictNumbers),()=>n.assign(u,i))),n.if((0,ae._)`${u} !== undefined`);for(let l of r)(Ty.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),Af(e),n.endIf(),n.if((0,ae._)`${u} !== undefined`,()=>{n.assign(i,u),cx(e,u)});function c(l){switch(l){case"string":n.elseIf((0,ae._)`${a} == "number" || ${a} == "boolean"`).assign(u,(0,ae._)`"" + ${i}`).elseIf((0,ae._)`${i} === null`).assign(u,(0,ae._)`""`);return;case"number":n.elseIf((0,ae._)`${a} == "boolean" || ${i} === null
7
+ `:""},this._extScope=t,this._scope=new lr.Scope({parent:t}),this._nodes=[new zl]}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 Ll(t,o,n)),o}const(t,r,n){return this._def(lr.varKinds.const,t,r,n)}let(t,r,n){return this._def(lr.varKinds.let,t,r,n)}var(t,r,n){return this._def(lr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Ua(t,r,n))}add(t,r){return this._leafNode(new Fl(t,ce.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ye.nil&&this._leafNode(new Ul(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,ye.addCodeArg)(r,i));return r.push("}"),new ye._Code(r)}if(t,r,n){if(this._blockNode(new Qn(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 Qn(t))}else(){return this._elseNode(new Bi)}endIf(){return this._endBlockNode(Qn,Bi)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Gl(t),r)}forRange(t,r,n,i,o=this.opts.es5?lr.varKinds.var:lr.varKinds.let){let a=this._scope.toName(t);return this._for(new Wl(o,a,r,n),()=>i(a))}forOf(t,r,n,i=lr.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof ye.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ye._)`${a}.length`,u=>{this.var(o,(0,ye._)`${a}[${u}]`),n(o)})}return this._for(new za("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?lr.varKinds.var:lr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ye._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new za("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(Xn)}label(t){return this._leafNode(new Vl(t))}break(t){return this._leafNode(new Bl(t))}return(t){let r=new to;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(to)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Kl;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new ro(o),r(o)}return n&&(this._currNode=i.finally=new no,this.code(n)),this._endBlockNode(ro,no)}throw(t){return this._leafNode(new Hl(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=ye.nil,n,i){return this._blockNode(new eo(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(eo)}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 Qn))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(bf,"CodeGen");var Zl=bf;ce.CodeGen=Zl;function ei(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(ei,"addNames");function Ga(e,t){return t instanceof ye._CodeOrName?ei(e,t.names):e}s(Ga,"addExprNames");function Hi(e,t,r){if(e instanceof ye.Name)return n(e);if(!i(e))return e;return new ye._Code(e._items.reduce((o,a)=>(a instanceof ye.Name&&(a=n(a)),a instanceof ye._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 ye._Code&&o._items.some(a=>a instanceof ye.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(Hi,"optimizeExpr");function SO(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(SO,"subtractNames");function vy(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ye._)`!${Yl(e)}`}s(vy,"not");ce.not=vy;var wO=by(ce.operators.AND);function $O(...e){return e.reduce(wO)}s($O,"and");ce.and=$O;var PO=by(ce.operators.OR);function OO(...e){return e.reduce(PO)}s(OO,"or");ce.or=OO;function by(e){return(t,r)=>t===ye.nil?r:r===ye.nil?t:(0,ye._)`${Yl(t)} ${e} ${Yl(r)}`}s(by,"mappend");function Yl(e){return e instanceof ye.Name?e:(0,ye._)`(${e})`}s(Yl,"par")});var he=b(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.checkStrictMode=le.getErrorPath=le.Type=le.useFunc=le.setEvaluated=le.evaluatedPropsToName=le.mergeEvaluated=le.eachItem=le.unescapeJsonPointer=le.escapeJsonPointer=le.escapeFragment=le.unescapeFragment=le.schemaRefOrVal=le.schemaHasRulesButRef=le.schemaHasRules=le.checkUnknownRules=le.alwaysValidSchema=le.toHash=void 0;var Oe=oe(),xO=Qs();function EO(e){let t={};for(let r of e)t[r]=!0;return t}s(EO,"toHash");le.toHash=EO;function AO(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(wy(e,t),!$y(t,e.self.RULES.all))}s(AO,"alwaysValidSchema");le.alwaysValidSchema=AO;function wy(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]||xy(e,`unknown keyword: "${o}"`)}s(wy,"checkUnknownRules");le.checkUnknownRules=wy;function $y(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s($y,"schemaHasRules");le.schemaHasRules=$y;function CO(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}s(CO,"schemaHasRulesButRef");le.schemaHasRulesButRef=CO;function IO({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Oe._)`${r}`}return(0,Oe._)`${e}${t}${(0,Oe.getProperty)(n)}`}s(IO,"schemaRefOrVal");le.schemaRefOrVal=IO;function RO(e){return Py(decodeURIComponent(e))}s(RO,"unescapeFragment");le.unescapeFragment=RO;function jO(e){return encodeURIComponent(Sf(e))}s(jO,"escapeFragment");le.escapeFragment=jO;function Sf(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(Sf,"escapeJsonPointer");le.escapeJsonPointer=Sf;function Py(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(Py,"unescapeJsonPointer");le.unescapeJsonPointer=Py;function kO(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(kO,"eachItem");le.eachItem=kO;function _y({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,u)=>{let c=a===void 0?o:a instanceof Oe.Name?(o instanceof Oe.Name?e(i,o,a):t(i,o,a),a):o instanceof Oe.Name?(t(i,a,o),o):r(o,a);return u===Oe.Name&&!(c instanceof Oe.Name)?n(i,c):c}}s(_y,"makeMergeEvaluated");le.mergeEvaluated={props:_y({mergeNames:s((e,t,r)=>e.if((0,Oe._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Oe._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Oe._)`${r} || {}`).code((0,Oe._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,Oe._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Oe._)`${r} || {}`),wf(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Oy}),items:_y({mergeNames:s((e,t,r)=>e.if((0,Oe._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Oe._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,Oe._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Oe._)`${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 Oy(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Oe._)`{}`);return t!==void 0&&wf(e,r,t),r}s(Oy,"evaluatedPropsToName");le.evaluatedPropsToName=Oy;function wf(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Oe._)`${t}${(0,Oe.getProperty)(n)}`,!0))}s(wf,"setEvaluated");le.setEvaluated=wf;var Sy={};function NO(e,t){return e.scopeValue("func",{ref:t,code:Sy[t.code]||(Sy[t.code]=new xO._Code(t.code))})}s(NO,"useFunc");le.useFunc=NO;var _f;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(_f||(le.Type=_f={}));function MO(e,t,r){if(e instanceof Oe.Name){let n=t===_f.Num;return r?n?(0,Oe._)`"[" + ${e} + "]"`:(0,Oe._)`"['" + ${e} + "']"`:n?(0,Oe._)`"/" + ${e}`:(0,Oe._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Oe.getProperty)(e).toString():"/"+Sf(e)}s(MO,"getErrorPath");le.getErrorPath=MO;function xy(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(xy,"checkStrictMode");le.checkStrictMode=xy});var Yt=b($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});var ft=oe(),TO={data:new ft.Name("data"),valCxt:new ft.Name("valCxt"),instancePath:new ft.Name("instancePath"),parentData:new ft.Name("parentData"),parentDataProperty:new ft.Name("parentDataProperty"),rootData:new ft.Name("rootData"),dynamicAnchors:new ft.Name("dynamicAnchors"),vErrors:new ft.Name("vErrors"),errors:new ft.Name("errors"),this:new ft.Name("this"),self:new ft.Name("self"),scope:new ft.Name("scope"),json:new ft.Name("json"),jsonPos:new ft.Name("jsonPos"),jsonLen:new ft.Name("jsonLen"),jsonPart:new ft.Name("jsonPart")};$f.default=TO});var io=b(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.extendErrors=pt.resetErrorsCount=pt.reportExtraError=pt.reportError=pt.keyword$DataError=pt.keywordError=void 0;var ve=oe(),Ka=he(),vt=Yt();pt.keywordError={message:s(({keyword:e})=>(0,ve.str)`must pass "${e}" keyword validation`,"message")};pt.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,ve.str)`"${e}" keyword must be ${t} ($data)`:(0,ve.str)`"${e}" keyword is invalid ($data)`,"message")};function qO(e,t=pt.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:u}=i,c=Cy(e,t,r);n??(a||u)?Ey(o,c):Ay(i,(0,ve._)`[${c}]`)}s(qO,"reportError");pt.reportError=qO;function DO(e,t=pt.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,u=Cy(e,t,r);Ey(i,u),o||a||Ay(n,vt.default.vErrors)}s(DO,"reportExtraError");pt.reportExtraError=DO;function LO(e,t){e.assign(vt.default.errors,t),e.if((0,ve._)`${vt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ve._)`${vt.default.vErrors}.length`,t),()=>e.assign(vt.default.vErrors,null)))}s(LO,"resetErrorsCount");pt.resetErrorsCount=LO;function FO({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,vt.default.errors,u=>{e.const(a,(0,ve._)`${vt.default.vErrors}[${u}]`),e.if((0,ve._)`${a}.instancePath === undefined`,()=>e.assign((0,ve._)`${a}.instancePath`,(0,ve.strConcat)(vt.default.instancePath,o.errorPath))),e.assign((0,ve._)`${a}.schemaPath`,(0,ve.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,ve._)`${a}.schema`,r),e.assign((0,ve._)`${a}.data`,n))})}s(FO,"extendErrors");pt.extendErrors=FO;function Ey(e,t){let r=e.const("err",t);e.if((0,ve._)`${vt.default.vErrors} === null`,()=>e.assign(vt.default.vErrors,(0,ve._)`[${r}]`),(0,ve._)`${vt.default.vErrors}.push(${r})`),e.code((0,ve._)`${vt.default.errors}++`)}s(Ey,"addError");function Ay(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,ve._)`new ${e.ValidationError}(${t})`):(r.assign((0,ve._)`${n}.errors`,t),r.return(!1))}s(Ay,"returnErrors");var ti={keyword:new ve.Name("keyword"),schemaPath:new ve.Name("schemaPath"),params:new ve.Name("params"),propertyName:new ve.Name("propertyName"),message:new ve.Name("message"),schema:new ve.Name("schema"),parentSchema:new ve.Name("parentSchema")};function Cy(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,ve._)`{}`:VO(e,t,r)}s(Cy,"errorObjectCode");function VO(e,t,r={}){let{gen:n,it:i}=e,o=[BO(i,r),HO(e,r)];return UO(e,t,o),n.object(...o)}s(VO,"errorObject");function BO({errorPath:e},{instancePath:t}){let r=t?(0,ve.str)`${e}${(0,Ka.getErrorPath)(t,Ka.Type.Str)}`:e;return[vt.default.instancePath,(0,ve.strConcat)(vt.default.instancePath,r)]}s(BO,"errorInstancePath");function HO({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,ve.str)`${t}/${e}`;return r&&(i=(0,ve.str)`${i}${(0,Ka.getErrorPath)(r,Ka.Type.Str)}`),[ti.schemaPath,i]}s(HO,"errorSchemaPath");function UO(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([ti.keyword,i],[ti.params,typeof t=="function"?t(e):t||(0,ve._)`{}`]),c.messages&&n.push([ti.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([ti.schema,a],[ti.parentSchema,(0,ve._)`${p}${f}`],[vt.default.data,o]),l&&n.push([ti.propertyName,l])}s(UO,"extraErrorProps")});var Ry=b(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.boolOrEmptySchema=Ui.topBoolOrEmptySchema=void 0;var zO=io(),GO=oe(),WO=Yt(),KO={message:"boolean schema is false"};function ZO(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Iy(e,!1):typeof r=="object"&&r.$async===!0?t.return(WO.default.data):(t.assign((0,GO._)`${n}.errors`,null),t.return(!0))}s(ZO,"topBoolOrEmptySchema");Ui.topBoolOrEmptySchema=ZO;function YO(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Iy(e)):r.var(t,!0)}s(YO,"boolOrEmptySchema");Ui.boolOrEmptySchema=YO;function Iy(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,zO.reportError)(i,KO,void 0,t)}s(Iy,"falseSchemaError")});var Pf=b(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.getRules=zi.isJSONType=void 0;var JO=["string","number","integer","boolean","null","object","array"],QO=new Set(JO);function XO(e){return typeof e=="string"&&QO.has(e)}s(XO,"isJSONType");zi.isJSONType=XO;function ex(){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(ex,"getRules");zi.getRules=ex});var Of=b(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.shouldUseRule=ln.shouldUseGroup=ln.schemaHasRulesForType=void 0;function tx({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&jy(e,n)}s(tx,"schemaHasRulesForType");ln.schemaHasRulesForType=tx;function jy(e,t){return t.rules.some(r=>ky(e,r))}s(jy,"shouldUseGroup");ln.shouldUseGroup=jy;function ky(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(ky,"shouldUseRule");ln.shouldUseRule=ky});var so=b(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.reportTypeError=dt.checkDataTypes=dt.checkDataType=dt.coerceAndCheckDataType=dt.getJSONTypes=dt.getSchemaTypes=dt.DataType=void 0;var rx=Pf(),nx=Of(),ix=io(),ae=oe(),Ny=he(),Gi;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Gi||(dt.DataType=Gi={}));function sx(e){let t=My(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(sx,"getSchemaTypes");dt.getSchemaTypes=sx;function My(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(rx.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(My,"getJSONTypes");dt.getJSONTypes=My;function ox(e,t){let{gen:r,data:n,opts:i}=e,o=ax(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,nx.schemaHasRulesForType)(e,t[0]));if(a){let u=Ef(t,n,i.strictNumbers,Gi.Wrong);r.if(u,()=>{o.length?ux(e,t,o):Af(e)})}return a}s(ox,"coerceAndCheckDataType");dt.coerceAndCheckDataType=ox;var Ty=new Set(["string","number","integer","boolean","null"]);function ax(e,t){return t?e.filter(r=>Ty.has(r)||t==="array"&&r==="array"):[]}s(ax,"coerceToTypes");function ux(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,ae._)`typeof ${i}`),u=n.let("coerced",(0,ae._)`undefined`);o.coerceTypes==="array"&&n.if((0,ae._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,ae._)`${i}[0]`).assign(a,(0,ae._)`typeof ${i}`).if(Ef(t,i,o.strictNumbers),()=>n.assign(u,i))),n.if((0,ae._)`${u} !== undefined`);for(let l of r)(Ty.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),Af(e),n.endIf(),n.if((0,ae._)`${u} !== undefined`,()=>{n.assign(i,u),cx(e,u)});function c(l){switch(l){case"string":n.elseIf((0,ae._)`${a} == "number" || ${a} == "boolean"`).assign(u,(0,ae._)`"" + ${i}`).elseIf((0,ae._)`${i} === null`).assign(u,(0,ae._)`""`);return;case"number":n.elseIf((0,ae._)`${a} == "boolean" || ${i} === null
8
8
  || (${a} == "string" && ${i} && ${i} == +${i})`).assign(u,(0,ae._)`+${i}`);return;case"integer":n.elseIf((0,ae._)`${a} === "boolean" || ${i} === null
9
9
  || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(u,(0,ae._)`+${i}`);return;case"boolean":n.elseIf((0,ae._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(u,!1).elseIf((0,ae._)`${i} === "true" || ${i} === 1`).assign(u,!0);return;case"null":n.elseIf((0,ae._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(u,null);return;case"array":n.elseIf((0,ae._)`${a} === "string" || ${a} === "number"
10
- || ${a} === "boolean" || ${i} === null`).assign(u,(0,ae._)`[${i}]`)}}s(c,"coerceSpecificType")}s(ux,"coerceData");function cx({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ae._)`${t} !== undefined`,()=>e.assign((0,ae._)`${t}[${r}]`,n))}s(cx,"assignParentData");function xf(e,t,r,n=Gi.Correct){let i=n===Gi.Correct?ae.operators.EQ:ae.operators.NEQ,o;switch(e){case"null":return(0,ae._)`${t} ${i} null`;case"array":o=(0,ae._)`Array.isArray(${t})`;break;case"object":o=(0,ae._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,ae._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,ae._)`typeof ${t} ${i} ${e}`}return n===Gi.Correct?o:(0,ae.not)(o);function a(u=ae.nil){return(0,ae.and)((0,ae._)`typeof ${t} == "number"`,u,r?(0,ae._)`isFinite(${t})`:ae.nil)}}s(xf,"checkDataType");pt.checkDataType=xf;function Ef(e,t,r,n){if(e.length===1)return xf(e[0],t,r,n);let i,o=(0,Ny.toHash)(e);if(o.array&&o.object){let a=(0,ae._)`typeof ${t} != "object"`;i=o.null?a:(0,ae._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else i=ae.nil;o.number&&delete o.integer;for(let a in o)i=(0,ae.and)(i,xf(a,t,r,n));return i}s(Ef,"checkDataTypes");pt.checkDataTypes=Ef;var lx={message:s(({schema:e})=>`must be ${e}`,"message"),params:s(({schema:e,schemaValue:t})=>typeof e=="string"?(0,ae._)`{type: ${e}}`:(0,ae._)`{type: ${t}}`,"params")};function Af(e){let t=fx(e);(0,ix.reportError)(t,lx)}s(Af,"reportTypeError");pt.reportTypeError=Af;function fx(e){let{gen:t,data:r,schema:n}=e,i=(0,Ny.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(fx,"getTypeErrorContext")});var Dy=b(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.assignDefaults=void 0;var Wi=oe(),px=he();function dx(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)qy(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>qy(e,o,i.default))}s(dx,"assignDefaults");Za.assignDefaults=dx;function qy(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let u=(0,Wi._)`${o}${(0,Wi.getProperty)(t)}`;if(i){(0,px.checkStrictMode)(e,`default is ignored for: ${u}`);return}let c=(0,Wi._)`${u} === undefined`;a.useDefaults==="empty"&&(c=(0,Wi._)`${c} || ${u} === null || ${u} === ""`),n.if(c,(0,Wi._)`${u} = ${(0,Wi.stringify)(r)}`)}s(qy,"assignDefault")});var Jt=b(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.validateUnion=Pe.validateArray=Pe.usePattern=Pe.callValidateCode=Pe.schemaProperties=Pe.allSchemaProperties=Pe.noPropertyInData=Pe.propertyInData=Pe.isOwnProperty=Pe.hasPropFunc=Pe.reportMissingProp=Pe.checkMissingProp=Pe.checkReportMissingProp=void 0;var ke=oe(),Cf=he(),fn=Yt(),hx=he();function mx(e,t){let{gen:r,data:n,it:i}=e;r.if(Rf(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,ke._)`${t}`},!0),e.error()})}s(mx,"checkReportMissingProp");Pe.checkReportMissingProp=mx;function gx({gen:e,data:t,it:{opts:r}},n,i){return(0,ke.or)(...n.map(o=>(0,ke.and)(Rf(e,t,o,r.ownProperties),(0,ke._)`${i} = ${o}`)))}s(gx,"checkMissingProp");Pe.checkMissingProp=gx;function yx(e,t){e.setParams({missingProperty:t},!0),e.error()}s(yx,"reportMissingProp");Pe.reportMissingProp=yx;function Ly(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ke._)`Object.prototype.hasOwnProperty`})}s(Ly,"hasPropFunc");Pe.hasPropFunc=Ly;function If(e,t,r){return(0,ke._)`${Ly(e)}.call(${t}, ${r})`}s(If,"isOwnProperty");Pe.isOwnProperty=If;function vx(e,t,r,n){let i=(0,ke._)`${t}${(0,ke.getProperty)(r)} !== undefined`;return n?(0,ke._)`${i} && ${If(e,t,r)}`:i}s(vx,"propertyInData");Pe.propertyInData=vx;function Rf(e,t,r,n){let i=(0,ke._)`${t}${(0,ke.getProperty)(r)} === undefined`;return n?(0,ke.or)(i,(0,ke.not)(If(e,t,r))):i}s(Rf,"noPropertyInData");Pe.noPropertyInData=Rf;function Fy(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(Fy,"allSchemaProperties");Pe.allSchemaProperties=Fy;function bx(e,t){return Fy(t).filter(r=>!(0,Cf.alwaysValidSchema)(e,t[r]))}s(bx,"schemaProperties");Pe.schemaProperties=bx;function _x({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},u,c,l){let p=l?(0,ke._)`${e}, ${t}, ${n}${i}`:t,f=[[fn.default.instancePath,(0,ke.strConcat)(fn.default.instancePath,o)],[fn.default.parentData,a.parentData],[fn.default.parentDataProperty,a.parentDataProperty],[fn.default.rootData,fn.default.rootData]];a.opts.dynamicRef&&f.push([fn.default.dynamicAnchors,fn.default.dynamicAnchors]);let d=(0,ke._)`${p}, ${r.object(...f)}`;return c!==ke.nil?(0,ke._)`${u}.call(${c}, ${d})`:(0,ke._)`${u}(${d})`}s(_x,"callValidateCode");Pe.callValidateCode=_x;var Sx=(0,ke._)`new RegExp`;function wx({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,ke._)`${i.code==="new RegExp"?Sx:(0,hx.useFunc)(e,i)}(${r}, ${n})`})}s(wx,"usePattern");Pe.usePattern=wx;function $x(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,ke._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Cf.Type.Num},o),t.if((0,ke.not)(o),u)})}s(a,"validateItems")}s($x,"validateArray");Pe.validateArray=$x;function Px(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,Cf.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,ke._)`${a} || ${u}`),e.mergeValidEvaluated(p,u)||t.if((0,ke.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(Px,"validateUnion");Pe.validateUnion=Px});var Hy=b(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.validateKeywordUsage=Er.validSchemaType=Er.funcKeywordCode=Er.macroKeywordCode=void 0;var bt=oe(),ri=Yt(),Ox=Jt(),xx=io();function Ex(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,u=t.macro.call(a.self,i,o,a),c=By(r,n,u);a.opts.validateSchema!==!1&&a.self.validateSchema(u,!0);let l=r.name("valid");e.subschema({schema:u,schemaPath:bt.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}s(Ex,"macroKeywordCode");Er.macroKeywordCode=Ex;function Ax(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:u,it:c}=e;Ix(c,t);let l=!u&&t.compile?t.compile.call(c.self,o,a,c):t.validate,p=By(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)v(),t.modifying&&Vy(e),g(()=>e.error());else{let $=t.async?h():y();t.modifying&&Vy(e),g(()=>Cx(e,$))}}s(d,"validateKeyword");function h(){let $=n.let("ruleErrs",null);return n.try(()=>v((0,bt._)`await `),A=>n.assign(f,!1).if((0,bt._)`${A} instanceof ${c.ValidationError}`,()=>n.assign($,(0,bt._)`${A}.errors`),()=>n.throw(A))),$}s(h,"validateAsync");function y(){let $=(0,bt._)`${p}.errors`;return n.assign($,null),v(bt.nil),$}s(y,"validateSync");function v($=t.async?(0,bt._)`await `:bt.nil){let A=c.opts.passContext?ri.default.this:ri.default.self,k=!("compile"in t&&!u||t.schema===!1);n.assign(f,(0,bt._)`${$}${(0,Ox.callValidateCode)(e,p,A,k)}`,t.modifying)}s(v,"assignValid");function g($){var A;n.if((0,bt.not)((A=t.valid)!==null&&A!==void 0?A:f),$)}s(g,"reportErrs")}s(Ax,"funcKeywordCode");Er.funcKeywordCode=Ax;function Vy(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,bt._)`${n.parentData}[${n.parentDataProperty}]`))}s(Vy,"modifyData");function Cx(e,t){let{gen:r}=e;r.if((0,bt._)`Array.isArray(${t})`,()=>{r.assign(ri.default.vErrors,(0,bt._)`${ri.default.vErrors} === null ? ${t} : ${ri.default.vErrors}.concat(${t})`).assign(ri.default.errors,(0,bt._)`${ri.default.vErrors}.length`),(0,xx.extendErrors)(e)},()=>e.error())}s(Cx,"addErrs");function Ix({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(Ix,"checkAsyncKeyword");function By(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,bt.stringify)(r)})}s(By,"useKeyword");function Rx(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(Rx,"validSchemaType");Er.validSchemaType=Rx;function jx({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(jx,"validateKeywordUsage");Er.validateKeywordUsage=jx});var zy=b(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.extendSubschemaMode=pn.extendSubschemaData=pn.getSubschema=void 0;var Ar=oe(),Uy=he();function kx(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,Ar._)`${e.schemaPath}${(0,Ar.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:u[r],schemaPath:(0,Ar._)`${e.schemaPath}${(0,Ar.getProperty)(t)}${(0,Ar.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Uy.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(kx,"getSubschema");pn.getSubschema=kx;function Nx(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,Ar._)`${t.data}${(0,Ar.getProperty)(r)}`,!0);c(d),e.errorPath=(0,Ar.str)`${l}${(0,Uy.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,Ar._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Ar.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(Nx,"extendSubschemaData");pn.extendSubschemaData=Nx;function Mx(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(Mx,"extendSubschemaMode");pn.extendSubschemaMode=Mx});var jf=b((U5,Gy)=>{"use strict";Gy.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 Ky=b((G5,Wy)=>{"use strict";var dn=Wy.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(){};Ya(t,n,i,e,"",e)};dn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};dn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};dn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};dn.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 Ya(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 dn.arrayKeywords)for(var d=0;d<f.length;d++)Ya(e,t,r,f[d],i+"/"+p+"/"+d,o,i,p,n,d)}else if(p in dn.propsKeywords){if(f&&typeof f=="object")for(var h in f)Ya(e,t,r,f[h],i+"/"+p+"/"+Tx(h),o,i,p,n,h)}else(p in dn.keywords||e.allKeys&&!(p in dn.skipKeywords))&&Ya(e,t,r,f,i+"/"+p,o,i,p,n)}r(n,i,o,a,u,c,l)}}s(Ya,"_traverse");function Tx(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(Tx,"escapeJsonPtr")});var oo=b(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.getSchemaRefs=It.resolveUrl=It.normalizeId=It._getFullPath=It.getFullPath=It.inlineRef=void 0;var qx=he(),Dx=jf(),Lx=Ky(),Fx=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Vx(e,t=!0){return typeof e=="boolean"?!0:t===!0?!kf(e):t?Zy(e)<=t:!1}s(Vx,"inlineRef");It.inlineRef=Vx;var Bx=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function kf(e){for(let t in e){if(Bx.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(kf)||typeof r=="object"&&kf(r))return!0}return!1}s(kf,"hasRef");function Zy(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!Fx.has(r)&&(typeof e[r]=="object"&&(0,qx.eachItem)(e[r],n=>t+=Zy(n)),t===1/0))return 1/0}return t}s(Zy,"countKeys");function Yy(e,t="",r){r!==!1&&(t=Ki(t));let n=e.parse(t);return Jy(e,n)}s(Yy,"getFullPath");It.getFullPath=Yy;function Jy(e,t){return e.serialize(t).split("#")[0]+"#"}s(Jy,"_getFullPath");It._getFullPath=Jy;var Hx=/#\/?$/;function Ki(e){return e?e.replace(Hx,""):""}s(Ki,"normalizeId");It.normalizeId=Ki;function Ux(e,t,r){return r=Ki(r),e.resolve(t,r)}s(Ux,"resolveUrl");It.resolveUrl=Ux;var zx=/^[a-z_][-a-z0-9._]*$/i;function Gx(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=Ki(e[r]||t),o={"":i},a=Yy(n,i,!1),u={},c=new Set;return Lx(e,{allKeys:!0},(f,d,h,y)=>{if(y===void 0)return;let v=a+d,g=o[y];typeof f[r]=="string"&&(g=$.call(this,f[r])),A.call(this,f.$anchor),A.call(this,f.$dynamicAnchor),o[d]=g;function $(k){let C=this.opts.uriResolver.resolve;if(k=Ki(g?C(g,k):k),c.has(k))throw p(k);c.add(k);let I=this.refs[k];return typeof I=="string"&&(I=this.refs[I]),typeof I=="object"?l(f,I.schema,k):k!==Ki(v)&&(k[0]==="#"?(l(f,u[k],k),u[k]=f):this.refs[k]=v),k}s($,"addRef");function A(k){if(typeof k=="string"){if(!zx.test(k))throw new Error(`invalid anchor "${k}"`);$.call(this,`#${k}`)}}s(A,"addAnchor")}),u;function l(f,d,h){if(d!==void 0&&!Dx(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(Gx,"getSchemaRefs");It.getSchemaRefs=Gx});var co=b(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.getData=hn.KeywordCxt=hn.validateFunctionCode=void 0;var r0=Ry(),Qy=so(),Mf=Of(),Ja=so(),Wx=Dy(),uo=Hy(),Nf=zy(),K=oe(),ie=Yt(),Kx=oo(),Gr=he(),ao=io();function Zx(e){if(s0(e)&&(o0(e),i0(e))){Qx(e);return}n0(e,()=>(0,r0.topBoolOrEmptySchema)(e))}s(Zx,"validateFunctionCode");hn.validateFunctionCode=Zx;function n0({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,K._)`${ie.default.data}, ${ie.default.valCxt}`,n.$async,()=>{e.code((0,K._)`"use strict"; ${Xy(r,i)}`),Jx(e,i),e.code(o)}):e.func(t,(0,K._)`${ie.default.data}, ${Yx(i)}`,n.$async,()=>e.code(Xy(r,i)).code(o))}s(n0,"validateFunction");function Yx(e){return(0,K._)`{${ie.default.instancePath}="", ${ie.default.parentData}, ${ie.default.parentDataProperty}, ${ie.default.rootData}=${ie.default.data}${e.dynamicRef?(0,K._)`, ${ie.default.dynamicAnchors}={}`:K.nil}}={}`}s(Yx,"destructureValCxt");function Jx(e,t){e.if(ie.default.valCxt,()=>{e.var(ie.default.instancePath,(0,K._)`${ie.default.valCxt}.${ie.default.instancePath}`),e.var(ie.default.parentData,(0,K._)`${ie.default.valCxt}.${ie.default.parentData}`),e.var(ie.default.parentDataProperty,(0,K._)`${ie.default.valCxt}.${ie.default.parentDataProperty}`),e.var(ie.default.rootData,(0,K._)`${ie.default.valCxt}.${ie.default.rootData}`),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,K._)`${ie.default.valCxt}.${ie.default.dynamicAnchors}`)},()=>{e.var(ie.default.instancePath,(0,K._)`""`),e.var(ie.default.parentData,(0,K._)`undefined`),e.var(ie.default.parentDataProperty,(0,K._)`undefined`),e.var(ie.default.rootData,ie.default.data),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,K._)`{}`)})}s(Jx,"destructureValCxtES5");function Qx(e){let{schema:t,opts:r,gen:n}=e;n0(e,()=>{r.$comment&&t.$comment&&u0(e),nE(e),n.let(ie.default.vErrors,null),n.let(ie.default.errors,0),r.unevaluated&&Xx(e),a0(e),oE(e)})}s(Qx,"topSchemaObjCode");function Xx(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,K._)`${r}.evaluated`),t.if((0,K._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,K._)`${e.evaluated}.props`,(0,K._)`undefined`)),t.if((0,K._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,K._)`${e.evaluated}.items`,(0,K._)`undefined`))}s(Xx,"resetEvaluated");function Xy(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,K._)`/*# sourceURL=${r} */`:K.nil}s(Xy,"funcSourceUrl");function eE(e,t){if(s0(e)&&(o0(e),i0(e))){tE(e,t);return}(0,r0.boolOrEmptySchema)(e,t)}s(eE,"subschemaCode");function i0({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(i0,"schemaCxtHasRules");function s0(e){return typeof e.schema!="boolean"}s(s0,"isSchemaObj");function tE(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&u0(e),iE(e),sE(e);let o=n.const("_errs",ie.default.errors);a0(e,o),n.var(t,(0,K._)`${o} === ${ie.default.errors}`)}s(tE,"subSchemaObjCode");function o0(e){(0,Gr.checkUnknownRules)(e),rE(e)}s(o0,"checkKeywords");function a0(e,t){if(e.opts.jtd)return e0(e,[],!1,t);let r=(0,Qy.getSchemaTypes)(e.schema),n=(0,Qy.coerceAndCheckDataType)(e,r);e0(e,r,!n,t)}s(a0,"typeAndKeywords");function rE(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Gr.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s(rE,"checkRefsAndKeywords");function nE(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Gr.checkStrictMode)(e,"default is ignored in the schema root")}s(nE,"checkNoDefault");function iE(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Kx.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(iE,"updateContext");function sE(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s(sE,"checkAsyncSchema");function u0({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,K._)`${ie.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,K.str)`${n}/$comment`,u=e.scopeValue("root",{ref:t.root});e.code((0,K._)`${ie.default.self}.opts.$comment(${o}, ${a}, ${u}.schema)`)}}s(u0,"commentKeyword");function oE(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,K._)`${ie.default.errors} === 0`,()=>t.return(ie.default.data),()=>t.throw((0,K._)`new ${i}(${ie.default.vErrors})`)):(t.assign((0,K._)`${n}.errors`,ie.default.vErrors),o.unevaluated&&aE(e),t.return((0,K._)`${ie.default.errors} === 0`))}s(oE,"returnResults");function aE({gen:e,evaluated:t,props:r,items:n}){r instanceof K.Name&&e.assign((0,K._)`${t}.props`,r),n instanceof K.Name&&e.assign((0,K._)`${t}.items`,n)}s(aE,"assignEvaluated");function e0(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,Gr.schemaHasRulesButRef)(o,p))){i.block(()=>l0(e,"$ref",p.all.$ref.definition));return}c.jtd||uE(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,Mf.shouldUseGroup)(o,d)&&(d.type?(i.if((0,Ja.checkDataType)(d.type,a,c.strictNumbers)),t0(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Ja.reportTypeError)(e)),i.endIf()):t0(e,d),u||i.if((0,K._)`${ie.default.errors} === ${n||0}`))}s(f,"groupKeywords")}s(e0,"schemaKeywords");function t0(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,Wx.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,Mf.shouldUseRule)(n,o)&&l0(e,o.keyword,o.definition,t.type)})}s(t0,"iterateKeywords");function uE(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(cE(e,t),e.opts.allowUnionTypes||lE(e,t),fE(e,e.dataTypes))}s(uE,"checkStrictTypes");function cE(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{c0(e.dataTypes,r)||Tf(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),dE(e,t)}}s(cE,"checkContextTypes");function lE(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Tf(e,"use allowUnionTypes to allow union type keyword")}s(lE,"checkMultipleTypes");function fE(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Mf.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>pE(t,a))&&Tf(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(fE,"checkKeywordTypes");function pE(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(pE,"hasApplicableType");function c0(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(c0,"includesType");function dE(e,t){let r=[];for(let n of e.dataTypes)c0(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s(dE,"narrowSchemaTypes");function Tf(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Gr.checkStrictMode)(e,t,e.opts.strictTypes)}s(Tf,"strictTypesError");var qf=class qf{constructor(t,r,n){if((0,uo.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,Gr.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",f0(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,uo.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",ie.default.errors))}result(t,r,n){this.failResult((0,K.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,K.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,K._)`${r} !== undefined && (${(0,K.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?ao.reportExtraError:ao.reportError)(this,this.def.error,r)}$dataError(){(0,ao.reportError)(this,this.def.$dataError||ao.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ao.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=K.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=K.nil,r=K.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,K.or)((0,K._)`${i} === undefined`,r)),t!==K.nil&&n.assign(t,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==K.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,K.or)(a(),u());function a(){if(n.length){if(!(r instanceof K.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,K._)`${(0,Ja.checkDataTypes)(c,r,o.opts.strictNumbers,Ja.DataType.Wrong)}`}return K.nil}function u(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,K._)`!${c}(${r})`}return K.nil}}subschema(t,r){let n=(0,Nf.getSubschema)(this.it,t);(0,Nf.extendSubschemaData)(n,this.it,t),(0,Nf.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return eE(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Gr.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Gr.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,K.Name)),!0}};s(qf,"KeywordCxt");var Qa=qf;hn.KeywordCxt=Qa;function l0(e,t,r,n){let i=new Qa(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,uo.funcKeywordCode)(i,r):"macro"in r?(0,uo.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,uo.funcKeywordCode)(i,r)}s(l0,"keywordCode");var hE=/^\/(?:[^~]|~0|~1)*$/,mE=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function f0(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return ie.default.rootData;if(e[0]==="/"){if(!hE.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=ie.default.rootData}else{let l=mE.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,K._)`${o}${(0,K.getProperty)((0,Gr.unescapeJsonPointer)(l))}`,a=(0,K._)`${a} && ${o}`);return a;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}s(f0,"getData");hn.getData=f0});var Xa=b(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var Ff=class Ff extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(Ff,"ValidationError");var Df=Ff;Lf.default=Df});var lo=b(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});var Vf=oo(),Uf=class Uf extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Vf.resolveUrl)(t,r,n),this.missingSchema=(0,Vf.normalizeId)((0,Vf.getFullPath)(t,this.missingRef))}};s(Uf,"MissingRefError");var Bf=Uf;Hf.default=Bf});var fo=b(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.resolveSchema=Qt.getCompilingSchema=Qt.resolveRef=Qt.compileSchema=Qt.SchemaEnv=void 0;var fr=oe(),gE=Xa(),ni=Yt(),pr=oo(),p0=he(),yE=co(),Wf=class Wf{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,pr.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(Wf,"SchemaEnv");var Zi=Wf;Qt.SchemaEnv=Zi;function Gf(e){let t=d0.call(this,e);if(t)return t;let r=(0,pr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new fr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),u;e.$async&&(u=a.scopeValue("Error",{ref:gE.default,code:(0,fr._)`require("ajv/dist/runtime/validation_error").default`}));let c=a.scopeName("validate");e.validateName=c;let l={gen:a,allErrors:this.opts.allErrors,data:ni.default.data,parentData:ni.default.parentData,parentDataProperty:ni.default.parentDataProperty,dataNames:[ni.default.data],dataPathArr:[fr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,fr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:u,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:fr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,fr._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,yE.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(ni.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${ni.default.self}`,`${ni.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:y,items:v}=l;h.evaluated={props:y instanceof fr.Name?void 0:y,items:v instanceof fr.Name?void 0:v,dynamicProps:y instanceof fr.Name,dynamicItems:v instanceof fr.Name},h.source&&(h.source.evaluated=(0,fr.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(Gf,"compileSchema");Qt.compileSchema=Gf;function vE(e,t,r){var n;r=(0,pr.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=SE.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 Zi({schema:a,schemaId:u,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=bE.call(this,o)}s(vE,"resolveRef");Qt.resolveRef=vE;function bE(e){return(0,pr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Gf.call(this,e)}s(bE,"inlineOrCompile");function d0(e){for(let t of this._compilations)if(_E(t,e))return t}s(d0,"getCompilingSchema");Qt.getCompilingSchema=d0;function _E(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(_E,"sameSchemaEnv");function SE(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||eu.call(this,e,t)}s(SE,"resolve");function eu(e,t){let r=this.opts.uriResolver.parse(t),n=(0,pr._getFullPath)(this.opts.uriResolver,r),i=(0,pr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return zf.call(this,r,e);let o=(0,pr.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let u=eu.call(this,e,a);return typeof(u==null?void 0:u.schema)!="object"?void 0:zf.call(this,r,u)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Gf.call(this,a),o===(0,pr.normalizeId)(t)){let{schema:u}=a,{schemaId:c}=this.opts,l=u[c];return l&&(i=(0,pr.resolveUrl)(this.opts.uriResolver,i,l)),new Zi({schema:u,schemaId:c,root:e,baseId:i})}return zf.call(this,r,a)}}s(eu,"resolveSchema");Qt.resolveSchema=eu;var wE=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function zf(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,p0.unescapeFragment)(u)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!wE.has(u)&&l&&(t=(0,pr.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,p0.schemaHasRulesButRef)(r,this.RULES)){let u=(0,pr.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=eu.call(this,n,u)}let{schemaId:a}=this.opts;if(o=o||new Zi({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(zf,"getJsonPointer")});var h0=b((iF,$E)=>{$E.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 g0=b((sF,m0)=>{"use strict";var PE={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};m0.exports={HEX:PE}});var P0=b((oF,$0)=>{"use strict";var{HEX:OE}=g0();function _0(e){if(w0(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:EE(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(_0,"normalizeIPv4");function Kf(e,t=!1){let r="",n=!0;for(let i of e){if(OE[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(Kf,"stringArrayToHexStripped");function xE(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=Kf(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(Kf(i))),r.address=n.join(""),r}s(xE,"getIPV6");function S0(e,t={}){if(w0(e,":")<2)return{host:e,isIPV6:!1};let r=xE(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(S0,"normalizeIPv6");function EE(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(EE,"stripLeadingZeros");function w0(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(w0,"findToken");var y0=/^\.\.?\//u,v0=/^\/\.(?:\/|$)/u,b0=/^\/\.\.(?:\/|$)/u,AE=/^\/?(?:.|\n)*?(?=\/|$)/u;function CE(e){let t=[];for(;e.length;)if(e.match(y0))e=e.replace(y0,"");else if(e.match(v0))e=e.replace(v0,"/");else if(e.match(b0))e=e.replace(b0,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(AE);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(CE,"removeDotSegments");function IE(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(IE,"normalizeComponentEncoding");function RE(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=_0(n);if(i.isIPV4)n=i.host;else{let o=S0(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(RE,"recomposeAuthority");$0.exports={recomposeAuthority:RE,normalizeComponentEncoding:IE,removeDotSegments:CE,normalizeIPv4:_0,normalizeIPv6:S0,stringArrayToHexStripped:Kf}});var I0=b((uF,C0)=>{"use strict";var jE=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,kE=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function O0(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s(O0,"isSecure");function x0(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(x0,"httpParse");function E0(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(E0,"httpSerialize");function NE(e){return e.secure=O0(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s(NE,"wsParse");function ME(e){if((e.port===(O0(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(ME,"wsSerialize");function TE(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(kE);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=Zf[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(TE,"urnParse");function qE(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=Zf[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(qE,"urnSerialize");function DE(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!jE.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(DE,"urnuuidParse");function LE(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(LE,"urnuuidSerialize");var A0={scheme:"http",domainHost:!0,parse:x0,serialize:E0},FE={scheme:"https",domainHost:A0.domainHost,parse:x0,serialize:E0},tu={scheme:"ws",domainHost:!0,parse:NE,serialize:ME},VE={scheme:"wss",domainHost:tu.domainHost,parse:tu.parse,serialize:tu.serialize},BE={scheme:"urn",parse:TE,serialize:qE,skipNormalize:!0},HE={scheme:"urn:uuid",parse:DE,serialize:LE,skipNormalize:!0},Zf={http:A0,https:FE,ws:tu,wss:VE,urn:BE,"urn:uuid":HE};C0.exports=Zf});var j0=b((lF,nu)=>{"use strict";var{normalizeIPv6:UE,normalizeIPv4:zE,removeDotSegments:po,recomposeAuthority:GE,normalizeComponentEncoding:ru}=P0(),Yf=I0();function WE(e,t){return typeof e=="string"?e=Cr(Wr(e,t),t):typeof e=="object"&&(e=Wr(Cr(e,t),t)),e}s(WE,"normalize");function KE(e,t,r){let n=Object.assign({scheme:"null"},r),i=R0(Wr(e,n),Wr(t,n),n,!0);return Cr(i,{...n,skipEscape:!0})}s(KE,"resolve");function R0(e,t,r,n){let i={};return n||(e=Wr(Cr(e,r),r),t=Wr(Cr(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=po(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=po(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=po(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=po(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(R0,"resolveComponents");function ZE(e,t,r){return typeof e=="string"?(e=unescape(e),e=Cr(ru(Wr(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Cr(ru(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Cr(ru(Wr(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Cr(ru(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(ZE,"equal");function Cr(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=Yf[(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=GE(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=po(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(Cr,"serialize");var YE=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function JE(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||YE[t])return!0;return!1}s(JE,"nonSimpleDomain");var QE=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Wr(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(QE);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=zE(n.host);if(c.isIPV4===!1){let l=UE(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=Yf[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!u||!u.unicodeSupport)&&n.host&&(r.domainHost||u&&u.domainHost)&&o===!1&&JE(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(Wr,"parse");var Jf={SCHEMES:Yf,normalize:WE,resolve:KE,resolveComponents:R0,equal:ZE,serialize:Cr,parse:Wr};nu.exports=Jf;nu.exports.default=Jf;nu.exports.fastUri=Jf});var N0=b(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});var k0=j0();k0.code='require("ajv/dist/runtime/uri").default';Qf.default=k0});var Ji=b(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.CodeGen=at.Name=at.nil=at.stringify=at.str=at._=at.KeywordCxt=void 0;var XE=co();Object.defineProperty(at,"KeywordCxt",{enumerable:!0,get:s(function(){return XE.KeywordCxt},"get")});var Yi=oe();Object.defineProperty(at,"_",{enumerable:!0,get:s(function(){return Yi._},"get")});Object.defineProperty(at,"str",{enumerable:!0,get:s(function(){return Yi.str},"get")});Object.defineProperty(at,"stringify",{enumerable:!0,get:s(function(){return Yi.stringify},"get")});Object.defineProperty(at,"nil",{enumerable:!0,get:s(function(){return Yi.nil},"get")});Object.defineProperty(at,"Name",{enumerable:!0,get:s(function(){return Yi.Name},"get")});Object.defineProperty(at,"CodeGen",{enumerable:!0,get:s(function(){return Yi.CodeGen},"get")});var eA=Xa(),L0=lo(),tA=Pf(),ho=fo(),rA=oe(),mo=oo(),iu=so(),ep=he(),M0=h0(),nA=N0(),F0=s((e,t)=>new RegExp(e,t),"defaultRegExp");F0.code="new RegExp";var iA=["removeAdditional","useDefaults","coerceTypes"],sA=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),oA={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."},aA={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},T0=200;function uA(e){var t,r,n,i,o,a,u,c,l,p,f,d,h,y,v,g,$,A,k,C,I,fe,ne,gt,Le;let ee=e.strict,M=(t=e.code)===null||t===void 0?void 0:t.optimize,R=M===!0||M===void 0?1:M||0,q=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:F0,Z=(i=e.uriResolver)!==null&&i!==void 0?i:nA.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:ee)!==null&&a!==void 0?a:!0,strictNumbers:(c=(u=e.strictNumbers)!==null&&u!==void 0?u:ee)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:ee)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:ee)!==null&&d!==void 0?d:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:ee)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:R,regExp:q}:{optimize:R,regExp:q},loopRequired:(v=e.loopRequired)!==null&&v!==void 0?v:T0,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:T0,meta:($=e.meta)!==null&&$!==void 0?$:!0,messages:(A=e.messages)!==null&&A!==void 0?A:!0,inlineRefs:(k=e.inlineRefs)!==null&&k!==void 0?k:!0,schemaId:(C=e.schemaId)!==null&&C!==void 0?C:"$id",addUsedSchema:(I=e.addUsedSchema)!==null&&I!==void 0?I:!0,validateSchema:(fe=e.validateSchema)!==null&&fe!==void 0?fe:!0,validateFormats:(ne=e.validateFormats)!==null&&ne!==void 0?ne:!0,unicodeRegExp:(gt=e.unicodeRegExp)!==null&&gt!==void 0?gt:!0,int32range:(Le=e.int32range)!==null&&Le!==void 0?Le:!0,uriResolver:Z}}s(uA,"requiredOptions");var tp=class tp{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...uA(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new rA.ValueScope({scope:{},prefixes:sA,es5:r,lines:n}),this.logger=hA(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,tA.getRules)(),q0.call(this,oA,t,"NOT SUPPORTED"),q0.call(this,aA,t,"DEPRECATED","warn"),this._metaOpts=pA.call(this),t.formats&&lA.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&fA.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),cA.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=M0;n==="id"&&(i={...M0},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 L0.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,mo.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=D0.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new ho.SchemaEnv({schema:{},schemaId:n});if(r=ho.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=D0.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,mo.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(gA.call(this,n,r),!r)return(0,ep.eachItem)(n,o=>Xf.call(this,o)),this;vA.call(this,r);let i={...r,type:(0,iu.getJSONTypes)(r.type),schemaType:(0,iu.getJSONTypes)(r.schemaType)};return(0,ep.eachItem)(n,i.type.length===0?o=>Xf.call(this,o,i):o=>i.type.forEach(a=>Xf.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]=V0(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,mo.normalizeId)(a||n);let l=mo.getSchemaRefs.call(this,t,n);return c=new ho.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):ho.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{ho.compileSchema.call(this,t)}finally{this.opts=r}}};s(tp,"Ajv");var go=tp;go.ValidationError=eA.default;go.MissingRefError=L0.default;at.default=go;function q0(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(q0,"checkOptions");function D0(e){return e=(0,mo.normalizeId)(e),this.schemas[e]||this.refs[e]}s(D0,"getSchEnv");function cA(){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(cA,"addInitialSchemas");function lA(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(lA,"addInitialFormats");function fA(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(fA,"addInitialKeywords");function pA(){let e={...this.opts};for(let t of iA)delete e[t];return e}s(pA,"getMetaSchemaOptions");var dA={log(){},warn(){},error(){}};function hA(e){if(e===!1)return dA;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(hA,"getLogger");var mA=/^[a-z_$][a-z0-9_$:-]*$/i;function gA(e,t){let{RULES:r}=this;if((0,ep.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!mA.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(gA,"checkKeyword");function Xf(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,iu.getJSONTypes)(t.type),schemaType:(0,iu.getJSONTypes)(t.schemaType)}};t.before?yA.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(Xf,"addRule");function yA(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(yA,"addBeforeRule");function vA(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=V0(t)),e.validateSchema=this.compile(t,!0))}s(vA,"keywordMetaschema");var bA={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function V0(e){return{anyOf:[e,bA]}}s(V0,"schemaOrData")});var yo=b(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.callRef=ii.getValidate=void 0;var _A=lo(),B0=Jt(),Rt=oe(),Qi=Yt(),H0=fo(),su=he(),SA={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=H0.resolveRef.call(c,l,i,r);if(p===void 0)throw new _A.default(n.opts.uriResolver,i,r);if(p instanceof H0.SchemaEnv)return d(p);return h(p);function f(){if(o===l)return ou(e,a,o,o.$async);let y=t.scopeValue("root",{ref:l});return ou(e,(0,Rt._)`${y}.validate`,l,l.$async)}function d(y){let v=U0(e,y);ou(e,v,y,y.$async)}function h(y){let v=t.scopeValue("schema",u.code.source===!0?{ref:y,code:(0,Rt.stringify)(y)}:{ref:y}),g=t.name("valid"),$=e.subschema({schema:y,dataTypes:[],schemaPath:Rt.nil,topSchemaRef:v,errSchemaPath:r},g);e.mergeEvaluated($),e.ok(g)}}};function U0(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Rt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(U0,"getValidate");ii.getValidate=U0;function ou(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:u,opts:c}=o,l=c.passContext?Qi.default.this:Rt.nil;n?p():f();function p(){if(!u.$async)throw new Error("async schema referenced by sync schema");let y=i.let("valid");i.try(()=>{i.code((0,Rt._)`await ${(0,B0.callValidateCode)(e,t,l)}`),h(t),a||i.assign(y,!0)},v=>{i.if((0,Rt._)`!(${v} instanceof ${o.ValidationError})`,()=>i.throw(v)),d(v),a||i.assign(y,!1)}),e.ok(y)}s(p,"callAsyncRef");function f(){e.result((0,B0.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}s(f,"callSyncRef");function d(y){let v=(0,Rt._)`${y}.errors`;i.assign(Qi.default.vErrors,(0,Rt._)`${Qi.default.vErrors} === null ? ${v} : ${Qi.default.vErrors}.concat(${v})`),i.assign(Qi.default.errors,(0,Rt._)`${Qi.default.vErrors}.length`)}s(d,"addErrorsFrom");function h(y){var v;if(!o.opts.unevaluated)return;let g=(v=r==null?void 0:r.validate)===null||v===void 0?void 0:v.evaluated;if(o.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(o.props=su.mergeEvaluated.props(i,g.props,o.props));else{let $=i.var("props",(0,Rt._)`${y}.evaluated.props`);o.props=su.mergeEvaluated.props(i,$,o.props,Rt.Name)}if(o.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(o.items=su.mergeEvaluated.items(i,g.items,o.items));else{let $=i.var("items",(0,Rt._)`${y}.evaluated.items`);o.items=su.mergeEvaluated.items(i,$,o.items,Rt.Name)}}s(h,"addEvaluatedFrom")}s(ou,"callRef");ii.callRef=ou;ii.default=SA});var z0=b(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});var wA=yo(),$A=["$schema","id","$defs",{keyword:"$comment"},"definitions",wA.default];rp.default=$A});var G0=b(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});var np=Ji(),PA=oe(),mn=PA.operators,ip={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:mn.LTE,fail:mn.GT},{okStr:"<",ok:mn.LT,fail:mn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:mn.GTE,fail:mn.LT},{okStr:">",ok:mn.GT,fail:mn.LTE}]}},OA={message:s(e=>np.str`must be ${sp(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>np._`{comparison: ${sp(e).okStr}, limit: ${e.schemaCode}}`,"params")},xA={keyword:Object.keys(ip),type:"number",schemaType:"number",$data:!0,error:OA,code(e){let{data:t,schemaCode:r}=e;e.fail$data(np._`${t} ${sp(e).fail} ${r} || isNaN(${t})`)}};function sp(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[ip[r].exclusive]?1:0;return ip[r].ops[n]}s(sp,"kwdOp");op.default=xA});var K0=b(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});var W0={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},EA={keyword:Object.keys(W0),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=W0[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};ap.default=EA});var cp=b(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});var vo=oe(),AA={message:s(({schemaCode:e})=>(0,vo.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,vo._)`{multipleOf: ${e}}`,"params")},CA={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:AA,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),u=o?(0,vo._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,vo._)`${a} !== parseInt(${a})`;e.fail$data((0,vo._)`(${n} === 0 || (${a} = ${r}/${n}, ${u}))`)}};up.default=CA});var Y0=b(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});function Z0(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(Z0,"ucs2length");lp.default=Z0;Z0.code='require("ajv/dist/runtime/ucs2length").default'});var pp=b(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});var si=oe(),IA=he(),RA=Y0(),jA={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,si.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,si._)`{limit: ${e}}`,"params")},kA={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:jA,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?si.operators.GT:si.operators.LT,a=i.opts.unicode===!1?(0,si._)`${r}.length`:(0,si._)`${(0,IA.useFunc)(e.gen,RA.default)}(${r})`;e.fail$data((0,si._)`${a} ${o} ${n}`)}};fp.default=kA});var hp=b(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});var NA=Jt(),au=oe(),MA={message:s(({schemaCode:e})=>(0,au.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,au._)`{pattern: ${e}}`,"params")},TA={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:MA,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",u=r?(0,au._)`(new RegExp(${i}, ${a}))`:(0,NA.usePattern)(e,n);e.fail$data((0,au._)`!${u}.test(${t})`)}};dp.default=TA});var gp=b(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});var bo=oe(),qA={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,bo.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,bo._)`{limit: ${e}}`,"params")},DA={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:qA,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?bo.operators.GT:bo.operators.LT;e.fail$data((0,bo._)`Object.keys(${r}).length ${i} ${n}`)}};mp.default=DA});var vp=b(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});var _o=Jt(),So=oe(),LA=he(),FA={message:s(({params:{missingProperty:e}})=>(0,So.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,So._)`{missingProperty: ${e}}`,"params")},VA={keyword:"required",type:"object",schemaType:"array",$data:!0,error:FA,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:y}=e.it;for(let v of r)if((h==null?void 0:h[v])===void 0&&!y.has(v)){let g=a.schemaEnv.baseId+a.errSchemaPath,$=`required property "${v}" is not defined at "${g}" (strictRequired)`;(0,LA.checkStrictMode)(a,$,a.opts.strictRequired)}}function l(){if(c||o)e.block$data(So.nil,f);else for(let h of r)(0,_o.checkReportMissingProp)(e,h)}s(l,"allErrorsMode");function p(){let h=t.let("missing");if(c||o){let y=t.let("valid",!0);e.block$data(y,()=>d(h,y)),e.ok(y)}else t.if((0,_o.checkMissingProp)(e,r,h)),(0,_o.reportMissingProp)(e,h),t.else()}s(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,_o.noPropertyInData)(t,i,h,u.ownProperties),()=>e.error())})}s(f,"loopAllRequired");function d(h,y){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(y,(0,_o.propertyInData)(t,i,h,u.ownProperties)),t.if((0,So.not)(y),()=>{e.error(),t.break()})},So.nil)}s(d,"loopUntilMissing")}};yp.default=VA});var _p=b(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});var wo=oe(),BA={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,wo.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,wo._)`{limit: ${e}}`,"params")},HA={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:BA,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?wo.operators.GT:wo.operators.LT;e.fail$data((0,wo._)`${r}.length ${i} ${n}`)}};bp.default=HA});var uu=b(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});var J0=jf();J0.code='require("ajv/dist/runtime/equal").default';Sp.default=J0});var Pp=b($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var wp=so(),ut=oe(),UA=he(),zA=uu(),GA={message:s(({params:{i:e,j:t}})=>(0,ut.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,ut._)`{i: ${e}, j: ${t}}`,"params")},WA={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:GA,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,wp.getSchemaTypes)(o.items):[];e.block$data(c,p,(0,ut._)`${a} === false`),e.ok(c);function p(){let y=t.let("i",(0,ut._)`${r}.length`),v=t.let("j");e.setParams({i:y,j:v}),t.assign(c,!0),t.if((0,ut._)`${y} > 1`,()=>(f()?d:h)(y,v))}s(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(y=>y==="object"||y==="array")}s(f,"canOptimize");function d(y,v){let g=t.name("item"),$=(0,wp.checkDataTypes)(l,g,u.opts.strictNumbers,wp.DataType.Wrong),A=t.const("indices",(0,ut._)`{}`);t.for((0,ut._)`;${y}--;`,()=>{t.let(g,(0,ut._)`${r}[${y}]`),t.if($,(0,ut._)`continue`),l.length>1&&t.if((0,ut._)`typeof ${g} == "string"`,(0,ut._)`${g} += "_"`),t.if((0,ut._)`typeof ${A}[${g}] == "number"`,()=>{t.assign(v,(0,ut._)`${A}[${g}]`),e.error(),t.assign(c,!1).break()}).code((0,ut._)`${A}[${g}] = ${y}`)})}s(d,"loopN");function h(y,v){let g=(0,UA.useFunc)(t,zA.default),$=t.name("outer");t.label($).for((0,ut._)`;${y}--;`,()=>t.for((0,ut._)`${v} = ${y}; ${v}--;`,()=>t.if((0,ut._)`${g}(${r}[${y}], ${r}[${v}])`,()=>{e.error(),t.assign(c,!1).break($)})))}s(h,"loopN2")}};$p.default=WA});var Ep=b(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var Op=oe(),KA=he(),ZA=uu(),YA={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,Op._)`{allowedValue: ${e}}`,"params")},JA={keyword:"const",$data:!0,error:YA,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,Op._)`!${(0,KA.useFunc)(t,ZA.default)}(${r}, ${i})`):e.fail((0,Op._)`${o} !== ${r}`)}};xp.default=JA});var Cp=b(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var $o=oe(),QA=he(),XA=uu(),eC={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,$o._)`{allowedValues: ${e}}`,"params")},tC={keyword:"enum",schemaType:"array",$data:!0,error:eC,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,QA.useFunc)(t,XA.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,$o.or)(...i.map((y,v)=>d(h,v)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",o,h=>t.if((0,$o._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}s(f,"loopEnum");function d(h,y){let v=i[y];return typeof v=="object"&&v!==null?(0,$o._)`${l()}(${r}, ${h}[${y}])`:(0,$o._)`${r} === ${v}`}s(d,"equalCode")}};Ap.default=tC});var Q0=b(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});var rC=G0(),nC=K0(),iC=cp(),sC=pp(),oC=hp(),aC=gp(),uC=vp(),cC=_p(),lC=Pp(),fC=Ep(),pC=Cp(),dC=[rC.default,nC.default,iC.default,sC.default,oC.default,aC.default,uC.default,cC.default,lC.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},fC.default,pC.default];Ip.default=dC});var jp=b(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.validateAdditionalItems=void 0;var oi=oe(),Rp=he(),hC={message:s(({params:{len:e}})=>(0,oi.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,oi._)`{limit: ${e}}`,"params")},mC={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:hC,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Rp.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}X0(e,n)}};function X0(e,t){let{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;let u=r.const("len",(0,oi._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,oi._)`${u} <= ${t.length}`);else if(typeof n=="object"&&!(0,Rp.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,oi._)`${u} <= ${t.length}`);r.if((0,oi.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,u,p=>{e.subschema({keyword:o,dataProp:p,dataPropType:Rp.Type.Num},l),a.allErrors||r.if((0,oi.not)(l),()=>r.break())})}s(c,"validateItems")}s(X0,"validateAdditionalItems");Po.validateAdditionalItems=X0;Po.default=mC});var kp=b(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.validateTuple=void 0;var ev=oe(),cu=he(),gC=Jt(),yC={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return tv(e,"additionalItems",t);r.items=!0,!(0,cu.alwaysValidSchema)(r,t)&&e.ok((0,gC.validateArray)(e))}};function tv(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=cu.mergeEvaluated.items(n,r.length,u.items));let c=n.name("valid"),l=n.const("len",(0,ev._)`${o}.length`);r.forEach((f,d)=>{(0,cu.alwaysValidSchema)(u,f)||(n.if((0,ev._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},c)),e.ok(c))});function p(f){let{opts:d,errSchemaPath:h}=u,y=r.length,v=y===f.minItems&&(y===f.maxItems||f[t]===!1);if(d.strictTuples&&!v){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,cu.checkStrictMode)(u,g,d.strictTuples)}}s(p,"checkStrictTuple")}s(tv,"validateTuple");Oo.validateTuple=tv;Oo.default=yC});var rv=b(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});var vC=kp(),bC={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,vC.validateTuple)(e,"items"),"code")};Np.default=bC});var iv=b(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});var nv=oe(),_C=he(),SC=Jt(),wC=jp(),$C={message:s(({params:{len:e}})=>(0,nv.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,nv._)`{limit: ${e}}`,"params")},PC={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:$C,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,_C.alwaysValidSchema)(n,t)&&(i?(0,wC.validateAdditionalItems)(e,i):e.ok((0,SC.validateArray)(e)))}};Mp.default=PC});var sv=b(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});var Xt=oe(),lu=he(),OC={message:s(({params:{min:e,max:t}})=>t===void 0?(0,Xt.str)`must contain at least ${e} valid item(s)`:(0,Xt.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,Xt._)`{minContains: ${e}}`:(0,Xt._)`{minContains: ${e}, maxContains: ${t}}`,"params")},xC={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:OC,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,Xt._)`${i}.length`);if(e.setParams({min:a,max:u}),u===void 0&&a===0){(0,lu.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&a>u){(0,lu.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,lu.alwaysValidSchema)(o,r)){let v=(0,Xt._)`${p} >= ${a}`;u!==void 0&&(v=(0,Xt._)`${v} && ${p} <= ${u}`),e.pass(v);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,Xt._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let v=t.name("_valid"),g=t.let("count",0);h(v,()=>t.if(v,()=>y(g)))}s(d,"validateItemsWithCount");function h(v,g){t.forRange("i",0,p,$=>{e.subschema({keyword:"contains",dataProp:$,dataPropType:lu.Type.Num,compositeRule:!0},v),g()})}s(h,"validateItems");function y(v){t.code((0,Xt._)`${v}++`),u===void 0?t.if((0,Xt._)`${v} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,Xt._)`${v} > ${u}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,Xt._)`${v} >= ${a}`,()=>t.assign(f,!0)))}s(y,"checkLimits")}};Tp.default=xC});var fu=b(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.validateSchemaDeps=Ir.validatePropertyDeps=Ir.error=void 0;var qp=oe(),EC=he(),xo=Jt();Ir.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,qp.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,qp._)`{property: ${e},
10
+ || ${a} === "boolean" || ${i} === null`).assign(u,(0,ae._)`[${i}]`)}}s(c,"coerceSpecificType")}s(ux,"coerceData");function cx({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ae._)`${t} !== undefined`,()=>e.assign((0,ae._)`${t}[${r}]`,n))}s(cx,"assignParentData");function xf(e,t,r,n=Gi.Correct){let i=n===Gi.Correct?ae.operators.EQ:ae.operators.NEQ,o;switch(e){case"null":return(0,ae._)`${t} ${i} null`;case"array":o=(0,ae._)`Array.isArray(${t})`;break;case"object":o=(0,ae._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,ae._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,ae._)`typeof ${t} ${i} ${e}`}return n===Gi.Correct?o:(0,ae.not)(o);function a(u=ae.nil){return(0,ae.and)((0,ae._)`typeof ${t} == "number"`,u,r?(0,ae._)`isFinite(${t})`:ae.nil)}}s(xf,"checkDataType");dt.checkDataType=xf;function Ef(e,t,r,n){if(e.length===1)return xf(e[0],t,r,n);let i,o=(0,Ny.toHash)(e);if(o.array&&o.object){let a=(0,ae._)`typeof ${t} != "object"`;i=o.null?a:(0,ae._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else i=ae.nil;o.number&&delete o.integer;for(let a in o)i=(0,ae.and)(i,xf(a,t,r,n));return i}s(Ef,"checkDataTypes");dt.checkDataTypes=Ef;var lx={message:s(({schema:e})=>`must be ${e}`,"message"),params:s(({schema:e,schemaValue:t})=>typeof e=="string"?(0,ae._)`{type: ${e}}`:(0,ae._)`{type: ${t}}`,"params")};function Af(e){let t=fx(e);(0,ix.reportError)(t,lx)}s(Af,"reportTypeError");dt.reportTypeError=Af;function fx(e){let{gen:t,data:r,schema:n}=e,i=(0,Ny.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(fx,"getTypeErrorContext")});var Dy=b(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.assignDefaults=void 0;var Wi=oe(),px=he();function dx(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)qy(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>qy(e,o,i.default))}s(dx,"assignDefaults");Za.assignDefaults=dx;function qy(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let u=(0,Wi._)`${o}${(0,Wi.getProperty)(t)}`;if(i){(0,px.checkStrictMode)(e,`default is ignored for: ${u}`);return}let c=(0,Wi._)`${u} === undefined`;a.useDefaults==="empty"&&(c=(0,Wi._)`${c} || ${u} === null || ${u} === ""`),n.if(c,(0,Wi._)`${u} = ${(0,Wi.stringify)(r)}`)}s(qy,"assignDefault")});var Jt=b(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.validateUnion=Pe.validateArray=Pe.usePattern=Pe.callValidateCode=Pe.schemaProperties=Pe.allSchemaProperties=Pe.noPropertyInData=Pe.propertyInData=Pe.isOwnProperty=Pe.hasPropFunc=Pe.reportMissingProp=Pe.checkMissingProp=Pe.checkReportMissingProp=void 0;var ke=oe(),Cf=he(),fn=Yt(),hx=he();function mx(e,t){let{gen:r,data:n,it:i}=e;r.if(Rf(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,ke._)`${t}`},!0),e.error()})}s(mx,"checkReportMissingProp");Pe.checkReportMissingProp=mx;function gx({gen:e,data:t,it:{opts:r}},n,i){return(0,ke.or)(...n.map(o=>(0,ke.and)(Rf(e,t,o,r.ownProperties),(0,ke._)`${i} = ${o}`)))}s(gx,"checkMissingProp");Pe.checkMissingProp=gx;function yx(e,t){e.setParams({missingProperty:t},!0),e.error()}s(yx,"reportMissingProp");Pe.reportMissingProp=yx;function Ly(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ke._)`Object.prototype.hasOwnProperty`})}s(Ly,"hasPropFunc");Pe.hasPropFunc=Ly;function If(e,t,r){return(0,ke._)`${Ly(e)}.call(${t}, ${r})`}s(If,"isOwnProperty");Pe.isOwnProperty=If;function vx(e,t,r,n){let i=(0,ke._)`${t}${(0,ke.getProperty)(r)} !== undefined`;return n?(0,ke._)`${i} && ${If(e,t,r)}`:i}s(vx,"propertyInData");Pe.propertyInData=vx;function Rf(e,t,r,n){let i=(0,ke._)`${t}${(0,ke.getProperty)(r)} === undefined`;return n?(0,ke.or)(i,(0,ke.not)(If(e,t,r))):i}s(Rf,"noPropertyInData");Pe.noPropertyInData=Rf;function Fy(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(Fy,"allSchemaProperties");Pe.allSchemaProperties=Fy;function bx(e,t){return Fy(t).filter(r=>!(0,Cf.alwaysValidSchema)(e,t[r]))}s(bx,"schemaProperties");Pe.schemaProperties=bx;function _x({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},u,c,l){let p=l?(0,ke._)`${e}, ${t}, ${n}${i}`:t,f=[[fn.default.instancePath,(0,ke.strConcat)(fn.default.instancePath,o)],[fn.default.parentData,a.parentData],[fn.default.parentDataProperty,a.parentDataProperty],[fn.default.rootData,fn.default.rootData]];a.opts.dynamicRef&&f.push([fn.default.dynamicAnchors,fn.default.dynamicAnchors]);let d=(0,ke._)`${p}, ${r.object(...f)}`;return c!==ke.nil?(0,ke._)`${u}.call(${c}, ${d})`:(0,ke._)`${u}(${d})`}s(_x,"callValidateCode");Pe.callValidateCode=_x;var Sx=(0,ke._)`new RegExp`;function wx({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,ke._)`${i.code==="new RegExp"?Sx:(0,hx.useFunc)(e,i)}(${r}, ${n})`})}s(wx,"usePattern");Pe.usePattern=wx;function $x(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,ke._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Cf.Type.Num},o),t.if((0,ke.not)(o),u)})}s(a,"validateItems")}s($x,"validateArray");Pe.validateArray=$x;function Px(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,Cf.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,ke._)`${a} || ${u}`),e.mergeValidEvaluated(p,u)||t.if((0,ke.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(Px,"validateUnion");Pe.validateUnion=Px});var Hy=b(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.validateKeywordUsage=Er.validSchemaType=Er.funcKeywordCode=Er.macroKeywordCode=void 0;var bt=oe(),ri=Yt(),Ox=Jt(),xx=io();function Ex(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,u=t.macro.call(a.self,i,o,a),c=By(r,n,u);a.opts.validateSchema!==!1&&a.self.validateSchema(u,!0);let l=r.name("valid");e.subschema({schema:u,schemaPath:bt.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}s(Ex,"macroKeywordCode");Er.macroKeywordCode=Ex;function Ax(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:u,it:c}=e;Ix(c,t);let l=!u&&t.compile?t.compile.call(c.self,o,a,c):t.validate,p=By(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)v(),t.modifying&&Vy(e),g(()=>e.error());else{let $=t.async?h():y();t.modifying&&Vy(e),g(()=>Cx(e,$))}}s(d,"validateKeyword");function h(){let $=n.let("ruleErrs",null);return n.try(()=>v((0,bt._)`await `),A=>n.assign(f,!1).if((0,bt._)`${A} instanceof ${c.ValidationError}`,()=>n.assign($,(0,bt._)`${A}.errors`),()=>n.throw(A))),$}s(h,"validateAsync");function y(){let $=(0,bt._)`${p}.errors`;return n.assign($,null),v(bt.nil),$}s(y,"validateSync");function v($=t.async?(0,bt._)`await `:bt.nil){let A=c.opts.passContext?ri.default.this:ri.default.self,k=!("compile"in t&&!u||t.schema===!1);n.assign(f,(0,bt._)`${$}${(0,Ox.callValidateCode)(e,p,A,k)}`,t.modifying)}s(v,"assignValid");function g($){var A;n.if((0,bt.not)((A=t.valid)!==null&&A!==void 0?A:f),$)}s(g,"reportErrs")}s(Ax,"funcKeywordCode");Er.funcKeywordCode=Ax;function Vy(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,bt._)`${n.parentData}[${n.parentDataProperty}]`))}s(Vy,"modifyData");function Cx(e,t){let{gen:r}=e;r.if((0,bt._)`Array.isArray(${t})`,()=>{r.assign(ri.default.vErrors,(0,bt._)`${ri.default.vErrors} === null ? ${t} : ${ri.default.vErrors}.concat(${t})`).assign(ri.default.errors,(0,bt._)`${ri.default.vErrors}.length`),(0,xx.extendErrors)(e)},()=>e.error())}s(Cx,"addErrs");function Ix({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(Ix,"checkAsyncKeyword");function By(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,bt.stringify)(r)})}s(By,"useKeyword");function Rx(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(Rx,"validSchemaType");Er.validSchemaType=Rx;function jx({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(jx,"validateKeywordUsage");Er.validateKeywordUsage=jx});var zy=b(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.extendSubschemaMode=pn.extendSubschemaData=pn.getSubschema=void 0;var Ar=oe(),Uy=he();function kx(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,Ar._)`${e.schemaPath}${(0,Ar.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:u[r],schemaPath:(0,Ar._)`${e.schemaPath}${(0,Ar.getProperty)(t)}${(0,Ar.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Uy.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(kx,"getSubschema");pn.getSubschema=kx;function Nx(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,Ar._)`${t.data}${(0,Ar.getProperty)(r)}`,!0);c(d),e.errorPath=(0,Ar.str)`${l}${(0,Uy.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,Ar._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Ar.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(Nx,"extendSubschemaData");pn.extendSubschemaData=Nx;function Mx(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(Mx,"extendSubschemaMode");pn.extendSubschemaMode=Mx});var jf=b((U5,Gy)=>{"use strict";Gy.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 Ky=b((G5,Wy)=>{"use strict";var dn=Wy.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(){};Ya(t,n,i,e,"",e)};dn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};dn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};dn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};dn.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 Ya(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 dn.arrayKeywords)for(var d=0;d<f.length;d++)Ya(e,t,r,f[d],i+"/"+p+"/"+d,o,i,p,n,d)}else if(p in dn.propsKeywords){if(f&&typeof f=="object")for(var h in f)Ya(e,t,r,f[h],i+"/"+p+"/"+Tx(h),o,i,p,n,h)}else(p in dn.keywords||e.allKeys&&!(p in dn.skipKeywords))&&Ya(e,t,r,f,i+"/"+p,o,i,p,n)}r(n,i,o,a,u,c,l)}}s(Ya,"_traverse");function Tx(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(Tx,"escapeJsonPtr")});var oo=b(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.getSchemaRefs=It.resolveUrl=It.normalizeId=It._getFullPath=It.getFullPath=It.inlineRef=void 0;var qx=he(),Dx=jf(),Lx=Ky(),Fx=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Vx(e,t=!0){return typeof e=="boolean"?!0:t===!0?!kf(e):t?Zy(e)<=t:!1}s(Vx,"inlineRef");It.inlineRef=Vx;var Bx=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function kf(e){for(let t in e){if(Bx.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(kf)||typeof r=="object"&&kf(r))return!0}return!1}s(kf,"hasRef");function Zy(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!Fx.has(r)&&(typeof e[r]=="object"&&(0,qx.eachItem)(e[r],n=>t+=Zy(n)),t===1/0))return 1/0}return t}s(Zy,"countKeys");function Yy(e,t="",r){r!==!1&&(t=Ki(t));let n=e.parse(t);return Jy(e,n)}s(Yy,"getFullPath");It.getFullPath=Yy;function Jy(e,t){return e.serialize(t).split("#")[0]+"#"}s(Jy,"_getFullPath");It._getFullPath=Jy;var Hx=/#\/?$/;function Ki(e){return e?e.replace(Hx,""):""}s(Ki,"normalizeId");It.normalizeId=Ki;function Ux(e,t,r){return r=Ki(r),e.resolve(t,r)}s(Ux,"resolveUrl");It.resolveUrl=Ux;var zx=/^[a-z_][-a-z0-9._]*$/i;function Gx(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=Ki(e[r]||t),o={"":i},a=Yy(n,i,!1),u={},c=new Set;return Lx(e,{allKeys:!0},(f,d,h,y)=>{if(y===void 0)return;let v=a+d,g=o[y];typeof f[r]=="string"&&(g=$.call(this,f[r])),A.call(this,f.$anchor),A.call(this,f.$dynamicAnchor),o[d]=g;function $(k){let C=this.opts.uriResolver.resolve;if(k=Ki(g?C(g,k):k),c.has(k))throw p(k);c.add(k);let I=this.refs[k];return typeof I=="string"&&(I=this.refs[I]),typeof I=="object"?l(f,I.schema,k):k!==Ki(v)&&(k[0]==="#"?(l(f,u[k],k),u[k]=f):this.refs[k]=v),k}s($,"addRef");function A(k){if(typeof k=="string"){if(!zx.test(k))throw new Error(`invalid anchor "${k}"`);$.call(this,`#${k}`)}}s(A,"addAnchor")}),u;function l(f,d,h){if(d!==void 0&&!Dx(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(Gx,"getSchemaRefs");It.getSchemaRefs=Gx});var co=b(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.getData=hn.KeywordCxt=hn.validateFunctionCode=void 0;var r0=Ry(),Qy=so(),Mf=Of(),Ja=so(),Wx=Dy(),uo=Hy(),Nf=zy(),K=oe(),ie=Yt(),Kx=oo(),Gr=he(),ao=io();function Zx(e){if(s0(e)&&(o0(e),i0(e))){Qx(e);return}n0(e,()=>(0,r0.topBoolOrEmptySchema)(e))}s(Zx,"validateFunctionCode");hn.validateFunctionCode=Zx;function n0({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,K._)`${ie.default.data}, ${ie.default.valCxt}`,n.$async,()=>{e.code((0,K._)`"use strict"; ${Xy(r,i)}`),Jx(e,i),e.code(o)}):e.func(t,(0,K._)`${ie.default.data}, ${Yx(i)}`,n.$async,()=>e.code(Xy(r,i)).code(o))}s(n0,"validateFunction");function Yx(e){return(0,K._)`{${ie.default.instancePath}="", ${ie.default.parentData}, ${ie.default.parentDataProperty}, ${ie.default.rootData}=${ie.default.data}${e.dynamicRef?(0,K._)`, ${ie.default.dynamicAnchors}={}`:K.nil}}={}`}s(Yx,"destructureValCxt");function Jx(e,t){e.if(ie.default.valCxt,()=>{e.var(ie.default.instancePath,(0,K._)`${ie.default.valCxt}.${ie.default.instancePath}`),e.var(ie.default.parentData,(0,K._)`${ie.default.valCxt}.${ie.default.parentData}`),e.var(ie.default.parentDataProperty,(0,K._)`${ie.default.valCxt}.${ie.default.parentDataProperty}`),e.var(ie.default.rootData,(0,K._)`${ie.default.valCxt}.${ie.default.rootData}`),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,K._)`${ie.default.valCxt}.${ie.default.dynamicAnchors}`)},()=>{e.var(ie.default.instancePath,(0,K._)`""`),e.var(ie.default.parentData,(0,K._)`undefined`),e.var(ie.default.parentDataProperty,(0,K._)`undefined`),e.var(ie.default.rootData,ie.default.data),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,K._)`{}`)})}s(Jx,"destructureValCxtES5");function Qx(e){let{schema:t,opts:r,gen:n}=e;n0(e,()=>{r.$comment&&t.$comment&&u0(e),nE(e),n.let(ie.default.vErrors,null),n.let(ie.default.errors,0),r.unevaluated&&Xx(e),a0(e),oE(e)})}s(Qx,"topSchemaObjCode");function Xx(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,K._)`${r}.evaluated`),t.if((0,K._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,K._)`${e.evaluated}.props`,(0,K._)`undefined`)),t.if((0,K._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,K._)`${e.evaluated}.items`,(0,K._)`undefined`))}s(Xx,"resetEvaluated");function Xy(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,K._)`/*# sourceURL=${r} */`:K.nil}s(Xy,"funcSourceUrl");function eE(e,t){if(s0(e)&&(o0(e),i0(e))){tE(e,t);return}(0,r0.boolOrEmptySchema)(e,t)}s(eE,"subschemaCode");function i0({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(i0,"schemaCxtHasRules");function s0(e){return typeof e.schema!="boolean"}s(s0,"isSchemaObj");function tE(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&u0(e),iE(e),sE(e);let o=n.const("_errs",ie.default.errors);a0(e,o),n.var(t,(0,K._)`${o} === ${ie.default.errors}`)}s(tE,"subSchemaObjCode");function o0(e){(0,Gr.checkUnknownRules)(e),rE(e)}s(o0,"checkKeywords");function a0(e,t){if(e.opts.jtd)return e0(e,[],!1,t);let r=(0,Qy.getSchemaTypes)(e.schema),n=(0,Qy.coerceAndCheckDataType)(e,r);e0(e,r,!n,t)}s(a0,"typeAndKeywords");function rE(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Gr.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s(rE,"checkRefsAndKeywords");function nE(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Gr.checkStrictMode)(e,"default is ignored in the schema root")}s(nE,"checkNoDefault");function iE(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Kx.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(iE,"updateContext");function sE(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s(sE,"checkAsyncSchema");function u0({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,K._)`${ie.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,K.str)`${n}/$comment`,u=e.scopeValue("root",{ref:t.root});e.code((0,K._)`${ie.default.self}.opts.$comment(${o}, ${a}, ${u}.schema)`)}}s(u0,"commentKeyword");function oE(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,K._)`${ie.default.errors} === 0`,()=>t.return(ie.default.data),()=>t.throw((0,K._)`new ${i}(${ie.default.vErrors})`)):(t.assign((0,K._)`${n}.errors`,ie.default.vErrors),o.unevaluated&&aE(e),t.return((0,K._)`${ie.default.errors} === 0`))}s(oE,"returnResults");function aE({gen:e,evaluated:t,props:r,items:n}){r instanceof K.Name&&e.assign((0,K._)`${t}.props`,r),n instanceof K.Name&&e.assign((0,K._)`${t}.items`,n)}s(aE,"assignEvaluated");function e0(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,Gr.schemaHasRulesButRef)(o,p))){i.block(()=>l0(e,"$ref",p.all.$ref.definition));return}c.jtd||uE(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,Mf.shouldUseGroup)(o,d)&&(d.type?(i.if((0,Ja.checkDataType)(d.type,a,c.strictNumbers)),t0(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Ja.reportTypeError)(e)),i.endIf()):t0(e,d),u||i.if((0,K._)`${ie.default.errors} === ${n||0}`))}s(f,"groupKeywords")}s(e0,"schemaKeywords");function t0(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,Wx.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,Mf.shouldUseRule)(n,o)&&l0(e,o.keyword,o.definition,t.type)})}s(t0,"iterateKeywords");function uE(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(cE(e,t),e.opts.allowUnionTypes||lE(e,t),fE(e,e.dataTypes))}s(uE,"checkStrictTypes");function cE(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{c0(e.dataTypes,r)||Tf(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),dE(e,t)}}s(cE,"checkContextTypes");function lE(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Tf(e,"use allowUnionTypes to allow union type keyword")}s(lE,"checkMultipleTypes");function fE(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Mf.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>pE(t,a))&&Tf(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(fE,"checkKeywordTypes");function pE(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(pE,"hasApplicableType");function c0(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(c0,"includesType");function dE(e,t){let r=[];for(let n of e.dataTypes)c0(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s(dE,"narrowSchemaTypes");function Tf(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Gr.checkStrictMode)(e,t,e.opts.strictTypes)}s(Tf,"strictTypesError");var qf=class qf{constructor(t,r,n){if((0,uo.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,Gr.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",f0(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,uo.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",ie.default.errors))}result(t,r,n){this.failResult((0,K.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,K.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,K._)`${r} !== undefined && (${(0,K.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?ao.reportExtraError:ao.reportError)(this,this.def.error,r)}$dataError(){(0,ao.reportError)(this,this.def.$dataError||ao.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ao.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=K.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=K.nil,r=K.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,K.or)((0,K._)`${i} === undefined`,r)),t!==K.nil&&n.assign(t,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==K.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,K.or)(a(),u());function a(){if(n.length){if(!(r instanceof K.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,K._)`${(0,Ja.checkDataTypes)(c,r,o.opts.strictNumbers,Ja.DataType.Wrong)}`}return K.nil}function u(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,K._)`!${c}(${r})`}return K.nil}}subschema(t,r){let n=(0,Nf.getSubschema)(this.it,t);(0,Nf.extendSubschemaData)(n,this.it,t),(0,Nf.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return eE(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Gr.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Gr.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,K.Name)),!0}};s(qf,"KeywordCxt");var Qa=qf;hn.KeywordCxt=Qa;function l0(e,t,r,n){let i=new Qa(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,uo.funcKeywordCode)(i,r):"macro"in r?(0,uo.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,uo.funcKeywordCode)(i,r)}s(l0,"keywordCode");var hE=/^\/(?:[^~]|~0|~1)*$/,mE=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function f0(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return ie.default.rootData;if(e[0]==="/"){if(!hE.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=ie.default.rootData}else{let l=mE.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,K._)`${o}${(0,K.getProperty)((0,Gr.unescapeJsonPointer)(l))}`,a=(0,K._)`${a} && ${o}`);return a;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}s(f0,"getData");hn.getData=f0});var Xa=b(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var Ff=class Ff extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(Ff,"ValidationError");var Df=Ff;Lf.default=Df});var lo=b(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});var Vf=oo(),Uf=class Uf extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Vf.resolveUrl)(t,r,n),this.missingSchema=(0,Vf.normalizeId)((0,Vf.getFullPath)(t,this.missingRef))}};s(Uf,"MissingRefError");var Bf=Uf;Hf.default=Bf});var fo=b(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.resolveSchema=Qt.getCompilingSchema=Qt.resolveRef=Qt.compileSchema=Qt.SchemaEnv=void 0;var fr=oe(),gE=Xa(),ni=Yt(),pr=oo(),p0=he(),yE=co(),Wf=class Wf{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,pr.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(Wf,"SchemaEnv");var Zi=Wf;Qt.SchemaEnv=Zi;function Gf(e){let t=d0.call(this,e);if(t)return t;let r=(0,pr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new fr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),u;e.$async&&(u=a.scopeValue("Error",{ref:gE.default,code:(0,fr._)`require("ajv/dist/runtime/validation_error").default`}));let c=a.scopeName("validate");e.validateName=c;let l={gen:a,allErrors:this.opts.allErrors,data:ni.default.data,parentData:ni.default.parentData,parentDataProperty:ni.default.parentDataProperty,dataNames:[ni.default.data],dataPathArr:[fr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,fr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:u,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:fr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,fr._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,yE.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(ni.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${ni.default.self}`,`${ni.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:y,items:v}=l;h.evaluated={props:y instanceof fr.Name?void 0:y,items:v instanceof fr.Name?void 0:v,dynamicProps:y instanceof fr.Name,dynamicItems:v instanceof fr.Name},h.source&&(h.source.evaluated=(0,fr.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(Gf,"compileSchema");Qt.compileSchema=Gf;function vE(e,t,r){var n;r=(0,pr.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=SE.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 Zi({schema:a,schemaId:u,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=bE.call(this,o)}s(vE,"resolveRef");Qt.resolveRef=vE;function bE(e){return(0,pr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Gf.call(this,e)}s(bE,"inlineOrCompile");function d0(e){for(let t of this._compilations)if(_E(t,e))return t}s(d0,"getCompilingSchema");Qt.getCompilingSchema=d0;function _E(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(_E,"sameSchemaEnv");function SE(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||eu.call(this,e,t)}s(SE,"resolve");function eu(e,t){let r=this.opts.uriResolver.parse(t),n=(0,pr._getFullPath)(this.opts.uriResolver,r),i=(0,pr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return zf.call(this,r,e);let o=(0,pr.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let u=eu.call(this,e,a);return typeof(u==null?void 0:u.schema)!="object"?void 0:zf.call(this,r,u)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Gf.call(this,a),o===(0,pr.normalizeId)(t)){let{schema:u}=a,{schemaId:c}=this.opts,l=u[c];return l&&(i=(0,pr.resolveUrl)(this.opts.uriResolver,i,l)),new Zi({schema:u,schemaId:c,root:e,baseId:i})}return zf.call(this,r,a)}}s(eu,"resolveSchema");Qt.resolveSchema=eu;var wE=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function zf(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,p0.unescapeFragment)(u)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!wE.has(u)&&l&&(t=(0,pr.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,p0.schemaHasRulesButRef)(r,this.RULES)){let u=(0,pr.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=eu.call(this,n,u)}let{schemaId:a}=this.opts;if(o=o||new Zi({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(zf,"getJsonPointer")});var h0=b((iF,$E)=>{$E.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 g0=b((sF,m0)=>{"use strict";var PE={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};m0.exports={HEX:PE}});var P0=b((oF,$0)=>{"use strict";var{HEX:OE}=g0();function _0(e){if(w0(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:EE(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(_0,"normalizeIPv4");function Kf(e,t=!1){let r="",n=!0;for(let i of e){if(OE[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(Kf,"stringArrayToHexStripped");function xE(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=Kf(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(Kf(i))),r.address=n.join(""),r}s(xE,"getIPV6");function S0(e,t={}){if(w0(e,":")<2)return{host:e,isIPV6:!1};let r=xE(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(S0,"normalizeIPv6");function EE(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(EE,"stripLeadingZeros");function w0(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(w0,"findToken");var y0=/^\.\.?\//u,v0=/^\/\.(?:\/|$)/u,b0=/^\/\.\.(?:\/|$)/u,AE=/^\/?(?:.|\n)*?(?=\/|$)/u;function CE(e){let t=[];for(;e.length;)if(e.match(y0))e=e.replace(y0,"");else if(e.match(v0))e=e.replace(v0,"/");else if(e.match(b0))e=e.replace(b0,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(AE);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(CE,"removeDotSegments");function IE(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(IE,"normalizeComponentEncoding");function RE(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=_0(n);if(i.isIPV4)n=i.host;else{let o=S0(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(RE,"recomposeAuthority");$0.exports={recomposeAuthority:RE,normalizeComponentEncoding:IE,removeDotSegments:CE,normalizeIPv4:_0,normalizeIPv6:S0,stringArrayToHexStripped:Kf}});var I0=b((uF,C0)=>{"use strict";var jE=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,kE=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function O0(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s(O0,"isSecure");function x0(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(x0,"httpParse");function E0(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(E0,"httpSerialize");function NE(e){return e.secure=O0(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s(NE,"wsParse");function ME(e){if((e.port===(O0(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(ME,"wsSerialize");function TE(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(kE);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=Zf[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(TE,"urnParse");function qE(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=Zf[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(qE,"urnSerialize");function DE(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!jE.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(DE,"urnuuidParse");function LE(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(LE,"urnuuidSerialize");var A0={scheme:"http",domainHost:!0,parse:x0,serialize:E0},FE={scheme:"https",domainHost:A0.domainHost,parse:x0,serialize:E0},tu={scheme:"ws",domainHost:!0,parse:NE,serialize:ME},VE={scheme:"wss",domainHost:tu.domainHost,parse:tu.parse,serialize:tu.serialize},BE={scheme:"urn",parse:TE,serialize:qE,skipNormalize:!0},HE={scheme:"urn:uuid",parse:DE,serialize:LE,skipNormalize:!0},Zf={http:A0,https:FE,ws:tu,wss:VE,urn:BE,"urn:uuid":HE};C0.exports=Zf});var j0=b((lF,nu)=>{"use strict";var{normalizeIPv6:UE,normalizeIPv4:zE,removeDotSegments:po,recomposeAuthority:GE,normalizeComponentEncoding:ru}=P0(),Yf=I0();function WE(e,t){return typeof e=="string"?e=Cr(Wr(e,t),t):typeof e=="object"&&(e=Wr(Cr(e,t),t)),e}s(WE,"normalize");function KE(e,t,r){let n=Object.assign({scheme:"null"},r),i=R0(Wr(e,n),Wr(t,n),n,!0);return Cr(i,{...n,skipEscape:!0})}s(KE,"resolve");function R0(e,t,r,n){let i={};return n||(e=Wr(Cr(e,r),r),t=Wr(Cr(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=po(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=po(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=po(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=po(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(R0,"resolveComponents");function ZE(e,t,r){return typeof e=="string"?(e=unescape(e),e=Cr(ru(Wr(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Cr(ru(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Cr(ru(Wr(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Cr(ru(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(ZE,"equal");function Cr(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=Yf[(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=GE(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=po(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(Cr,"serialize");var YE=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function JE(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||YE[t])return!0;return!1}s(JE,"nonSimpleDomain");var QE=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Wr(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(QE);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=zE(n.host);if(c.isIPV4===!1){let l=UE(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=Yf[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!u||!u.unicodeSupport)&&n.host&&(r.domainHost||u&&u.domainHost)&&o===!1&&JE(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(Wr,"parse");var Jf={SCHEMES:Yf,normalize:WE,resolve:KE,resolveComponents:R0,equal:ZE,serialize:Cr,parse:Wr};nu.exports=Jf;nu.exports.default=Jf;nu.exports.fastUri=Jf});var N0=b(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});var k0=j0();k0.code='require("ajv/dist/runtime/uri").default';Qf.default=k0});var Ji=b(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.CodeGen=ut.Name=ut.nil=ut.stringify=ut.str=ut._=ut.KeywordCxt=void 0;var XE=co();Object.defineProperty(ut,"KeywordCxt",{enumerable:!0,get:s(function(){return XE.KeywordCxt},"get")});var Yi=oe();Object.defineProperty(ut,"_",{enumerable:!0,get:s(function(){return Yi._},"get")});Object.defineProperty(ut,"str",{enumerable:!0,get:s(function(){return Yi.str},"get")});Object.defineProperty(ut,"stringify",{enumerable:!0,get:s(function(){return Yi.stringify},"get")});Object.defineProperty(ut,"nil",{enumerable:!0,get:s(function(){return Yi.nil},"get")});Object.defineProperty(ut,"Name",{enumerable:!0,get:s(function(){return Yi.Name},"get")});Object.defineProperty(ut,"CodeGen",{enumerable:!0,get:s(function(){return Yi.CodeGen},"get")});var eA=Xa(),L0=lo(),tA=Pf(),ho=fo(),rA=oe(),mo=oo(),iu=so(),ep=he(),M0=h0(),nA=N0(),F0=s((e,t)=>new RegExp(e,t),"defaultRegExp");F0.code="new RegExp";var iA=["removeAdditional","useDefaults","coerceTypes"],sA=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),oA={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."},aA={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},T0=200;function uA(e){var t,r,n,i,o,a,u,c,l,p,f,d,h,y,v,g,$,A,k,C,I,fe,ne,ot,Te;let ee=e.strict,M=(t=e.code)===null||t===void 0?void 0:t.optimize,R=M===!0||M===void 0?1:M||0,q=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:F0,Z=(i=e.uriResolver)!==null&&i!==void 0?i:nA.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:ee)!==null&&a!==void 0?a:!0,strictNumbers:(c=(u=e.strictNumbers)!==null&&u!==void 0?u:ee)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:ee)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:ee)!==null&&d!==void 0?d:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:ee)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:R,regExp:q}:{optimize:R,regExp:q},loopRequired:(v=e.loopRequired)!==null&&v!==void 0?v:T0,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:T0,meta:($=e.meta)!==null&&$!==void 0?$:!0,messages:(A=e.messages)!==null&&A!==void 0?A:!0,inlineRefs:(k=e.inlineRefs)!==null&&k!==void 0?k:!0,schemaId:(C=e.schemaId)!==null&&C!==void 0?C:"$id",addUsedSchema:(I=e.addUsedSchema)!==null&&I!==void 0?I:!0,validateSchema:(fe=e.validateSchema)!==null&&fe!==void 0?fe:!0,validateFormats:(ne=e.validateFormats)!==null&&ne!==void 0?ne:!0,unicodeRegExp:(ot=e.unicodeRegExp)!==null&&ot!==void 0?ot:!0,int32range:(Te=e.int32range)!==null&&Te!==void 0?Te:!0,uriResolver:Z}}s(uA,"requiredOptions");var tp=class tp{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...uA(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new rA.ValueScope({scope:{},prefixes:sA,es5:r,lines:n}),this.logger=hA(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,tA.getRules)(),q0.call(this,oA,t,"NOT SUPPORTED"),q0.call(this,aA,t,"DEPRECATED","warn"),this._metaOpts=pA.call(this),t.formats&&lA.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&fA.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),cA.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=M0;n==="id"&&(i={...M0},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 L0.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,mo.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=D0.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new ho.SchemaEnv({schema:{},schemaId:n});if(r=ho.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=D0.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,mo.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(gA.call(this,n,r),!r)return(0,ep.eachItem)(n,o=>Xf.call(this,o)),this;vA.call(this,r);let i={...r,type:(0,iu.getJSONTypes)(r.type),schemaType:(0,iu.getJSONTypes)(r.schemaType)};return(0,ep.eachItem)(n,i.type.length===0?o=>Xf.call(this,o,i):o=>i.type.forEach(a=>Xf.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]=V0(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,mo.normalizeId)(a||n);let l=mo.getSchemaRefs.call(this,t,n);return c=new ho.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):ho.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{ho.compileSchema.call(this,t)}finally{this.opts=r}}};s(tp,"Ajv");var go=tp;go.ValidationError=eA.default;go.MissingRefError=L0.default;ut.default=go;function q0(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(q0,"checkOptions");function D0(e){return e=(0,mo.normalizeId)(e),this.schemas[e]||this.refs[e]}s(D0,"getSchEnv");function cA(){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(cA,"addInitialSchemas");function lA(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(lA,"addInitialFormats");function fA(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(fA,"addInitialKeywords");function pA(){let e={...this.opts};for(let t of iA)delete e[t];return e}s(pA,"getMetaSchemaOptions");var dA={log(){},warn(){},error(){}};function hA(e){if(e===!1)return dA;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(hA,"getLogger");var mA=/^[a-z_$][a-z0-9_$:-]*$/i;function gA(e,t){let{RULES:r}=this;if((0,ep.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!mA.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(gA,"checkKeyword");function Xf(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,iu.getJSONTypes)(t.type),schemaType:(0,iu.getJSONTypes)(t.schemaType)}};t.before?yA.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(Xf,"addRule");function yA(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(yA,"addBeforeRule");function vA(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=V0(t)),e.validateSchema=this.compile(t,!0))}s(vA,"keywordMetaschema");var bA={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function V0(e){return{anyOf:[e,bA]}}s(V0,"schemaOrData")});var yo=b(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.callRef=ii.getValidate=void 0;var _A=lo(),B0=Jt(),Rt=oe(),Qi=Yt(),H0=fo(),su=he(),SA={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=H0.resolveRef.call(c,l,i,r);if(p===void 0)throw new _A.default(n.opts.uriResolver,i,r);if(p instanceof H0.SchemaEnv)return d(p);return h(p);function f(){if(o===l)return ou(e,a,o,o.$async);let y=t.scopeValue("root",{ref:l});return ou(e,(0,Rt._)`${y}.validate`,l,l.$async)}function d(y){let v=U0(e,y);ou(e,v,y,y.$async)}function h(y){let v=t.scopeValue("schema",u.code.source===!0?{ref:y,code:(0,Rt.stringify)(y)}:{ref:y}),g=t.name("valid"),$=e.subschema({schema:y,dataTypes:[],schemaPath:Rt.nil,topSchemaRef:v,errSchemaPath:r},g);e.mergeEvaluated($),e.ok(g)}}};function U0(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Rt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(U0,"getValidate");ii.getValidate=U0;function ou(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:u,opts:c}=o,l=c.passContext?Qi.default.this:Rt.nil;n?p():f();function p(){if(!u.$async)throw new Error("async schema referenced by sync schema");let y=i.let("valid");i.try(()=>{i.code((0,Rt._)`await ${(0,B0.callValidateCode)(e,t,l)}`),h(t),a||i.assign(y,!0)},v=>{i.if((0,Rt._)`!(${v} instanceof ${o.ValidationError})`,()=>i.throw(v)),d(v),a||i.assign(y,!1)}),e.ok(y)}s(p,"callAsyncRef");function f(){e.result((0,B0.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}s(f,"callSyncRef");function d(y){let v=(0,Rt._)`${y}.errors`;i.assign(Qi.default.vErrors,(0,Rt._)`${Qi.default.vErrors} === null ? ${v} : ${Qi.default.vErrors}.concat(${v})`),i.assign(Qi.default.errors,(0,Rt._)`${Qi.default.vErrors}.length`)}s(d,"addErrorsFrom");function h(y){var v;if(!o.opts.unevaluated)return;let g=(v=r==null?void 0:r.validate)===null||v===void 0?void 0:v.evaluated;if(o.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(o.props=su.mergeEvaluated.props(i,g.props,o.props));else{let $=i.var("props",(0,Rt._)`${y}.evaluated.props`);o.props=su.mergeEvaluated.props(i,$,o.props,Rt.Name)}if(o.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(o.items=su.mergeEvaluated.items(i,g.items,o.items));else{let $=i.var("items",(0,Rt._)`${y}.evaluated.items`);o.items=su.mergeEvaluated.items(i,$,o.items,Rt.Name)}}s(h,"addEvaluatedFrom")}s(ou,"callRef");ii.callRef=ou;ii.default=SA});var z0=b(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});var wA=yo(),$A=["$schema","id","$defs",{keyword:"$comment"},"definitions",wA.default];rp.default=$A});var G0=b(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});var np=Ji(),PA=oe(),mn=PA.operators,ip={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:mn.LTE,fail:mn.GT},{okStr:"<",ok:mn.LT,fail:mn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:mn.GTE,fail:mn.LT},{okStr:">",ok:mn.GT,fail:mn.LTE}]}},OA={message:s(e=>np.str`must be ${sp(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>np._`{comparison: ${sp(e).okStr}, limit: ${e.schemaCode}}`,"params")},xA={keyword:Object.keys(ip),type:"number",schemaType:"number",$data:!0,error:OA,code(e){let{data:t,schemaCode:r}=e;e.fail$data(np._`${t} ${sp(e).fail} ${r} || isNaN(${t})`)}};function sp(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[ip[r].exclusive]?1:0;return ip[r].ops[n]}s(sp,"kwdOp");op.default=xA});var K0=b(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});var W0={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},EA={keyword:Object.keys(W0),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=W0[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};ap.default=EA});var cp=b(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});var vo=oe(),AA={message:s(({schemaCode:e})=>(0,vo.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,vo._)`{multipleOf: ${e}}`,"params")},CA={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:AA,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),u=o?(0,vo._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,vo._)`${a} !== parseInt(${a})`;e.fail$data((0,vo._)`(${n} === 0 || (${a} = ${r}/${n}, ${u}))`)}};up.default=CA});var Y0=b(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});function Z0(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(Z0,"ucs2length");lp.default=Z0;Z0.code='require("ajv/dist/runtime/ucs2length").default'});var pp=b(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});var si=oe(),IA=he(),RA=Y0(),jA={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,si.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,si._)`{limit: ${e}}`,"params")},kA={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:jA,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?si.operators.GT:si.operators.LT,a=i.opts.unicode===!1?(0,si._)`${r}.length`:(0,si._)`${(0,IA.useFunc)(e.gen,RA.default)}(${r})`;e.fail$data((0,si._)`${a} ${o} ${n}`)}};fp.default=kA});var hp=b(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});var NA=Jt(),au=oe(),MA={message:s(({schemaCode:e})=>(0,au.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,au._)`{pattern: ${e}}`,"params")},TA={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:MA,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",u=r?(0,au._)`(new RegExp(${i}, ${a}))`:(0,NA.usePattern)(e,n);e.fail$data((0,au._)`!${u}.test(${t})`)}};dp.default=TA});var gp=b(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});var bo=oe(),qA={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,bo.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,bo._)`{limit: ${e}}`,"params")},DA={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:qA,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?bo.operators.GT:bo.operators.LT;e.fail$data((0,bo._)`Object.keys(${r}).length ${i} ${n}`)}};mp.default=DA});var vp=b(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});var _o=Jt(),So=oe(),LA=he(),FA={message:s(({params:{missingProperty:e}})=>(0,So.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,So._)`{missingProperty: ${e}}`,"params")},VA={keyword:"required",type:"object",schemaType:"array",$data:!0,error:FA,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:y}=e.it;for(let v of r)if((h==null?void 0:h[v])===void 0&&!y.has(v)){let g=a.schemaEnv.baseId+a.errSchemaPath,$=`required property "${v}" is not defined at "${g}" (strictRequired)`;(0,LA.checkStrictMode)(a,$,a.opts.strictRequired)}}function l(){if(c||o)e.block$data(So.nil,f);else for(let h of r)(0,_o.checkReportMissingProp)(e,h)}s(l,"allErrorsMode");function p(){let h=t.let("missing");if(c||o){let y=t.let("valid",!0);e.block$data(y,()=>d(h,y)),e.ok(y)}else t.if((0,_o.checkMissingProp)(e,r,h)),(0,_o.reportMissingProp)(e,h),t.else()}s(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,_o.noPropertyInData)(t,i,h,u.ownProperties),()=>e.error())})}s(f,"loopAllRequired");function d(h,y){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(y,(0,_o.propertyInData)(t,i,h,u.ownProperties)),t.if((0,So.not)(y),()=>{e.error(),t.break()})},So.nil)}s(d,"loopUntilMissing")}};yp.default=VA});var _p=b(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});var wo=oe(),BA={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,wo.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,wo._)`{limit: ${e}}`,"params")},HA={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:BA,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?wo.operators.GT:wo.operators.LT;e.fail$data((0,wo._)`${r}.length ${i} ${n}`)}};bp.default=HA});var uu=b(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});var J0=jf();J0.code='require("ajv/dist/runtime/equal").default';Sp.default=J0});var Pp=b($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var wp=so(),ct=oe(),UA=he(),zA=uu(),GA={message:s(({params:{i:e,j:t}})=>(0,ct.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,ct._)`{i: ${e}, j: ${t}}`,"params")},WA={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:GA,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,wp.getSchemaTypes)(o.items):[];e.block$data(c,p,(0,ct._)`${a} === false`),e.ok(c);function p(){let y=t.let("i",(0,ct._)`${r}.length`),v=t.let("j");e.setParams({i:y,j:v}),t.assign(c,!0),t.if((0,ct._)`${y} > 1`,()=>(f()?d:h)(y,v))}s(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(y=>y==="object"||y==="array")}s(f,"canOptimize");function d(y,v){let g=t.name("item"),$=(0,wp.checkDataTypes)(l,g,u.opts.strictNumbers,wp.DataType.Wrong),A=t.const("indices",(0,ct._)`{}`);t.for((0,ct._)`;${y}--;`,()=>{t.let(g,(0,ct._)`${r}[${y}]`),t.if($,(0,ct._)`continue`),l.length>1&&t.if((0,ct._)`typeof ${g} == "string"`,(0,ct._)`${g} += "_"`),t.if((0,ct._)`typeof ${A}[${g}] == "number"`,()=>{t.assign(v,(0,ct._)`${A}[${g}]`),e.error(),t.assign(c,!1).break()}).code((0,ct._)`${A}[${g}] = ${y}`)})}s(d,"loopN");function h(y,v){let g=(0,UA.useFunc)(t,zA.default),$=t.name("outer");t.label($).for((0,ct._)`;${y}--;`,()=>t.for((0,ct._)`${v} = ${y}; ${v}--;`,()=>t.if((0,ct._)`${g}(${r}[${y}], ${r}[${v}])`,()=>{e.error(),t.assign(c,!1).break($)})))}s(h,"loopN2")}};$p.default=WA});var Ep=b(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var Op=oe(),KA=he(),ZA=uu(),YA={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,Op._)`{allowedValue: ${e}}`,"params")},JA={keyword:"const",$data:!0,error:YA,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,Op._)`!${(0,KA.useFunc)(t,ZA.default)}(${r}, ${i})`):e.fail((0,Op._)`${o} !== ${r}`)}};xp.default=JA});var Cp=b(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var $o=oe(),QA=he(),XA=uu(),eC={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,$o._)`{allowedValues: ${e}}`,"params")},tC={keyword:"enum",schemaType:"array",$data:!0,error:eC,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,QA.useFunc)(t,XA.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,$o.or)(...i.map((y,v)=>d(h,v)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",o,h=>t.if((0,$o._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}s(f,"loopEnum");function d(h,y){let v=i[y];return typeof v=="object"&&v!==null?(0,$o._)`${l()}(${r}, ${h}[${y}])`:(0,$o._)`${r} === ${v}`}s(d,"equalCode")}};Ap.default=tC});var Q0=b(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});var rC=G0(),nC=K0(),iC=cp(),sC=pp(),oC=hp(),aC=gp(),uC=vp(),cC=_p(),lC=Pp(),fC=Ep(),pC=Cp(),dC=[rC.default,nC.default,iC.default,sC.default,oC.default,aC.default,uC.default,cC.default,lC.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},fC.default,pC.default];Ip.default=dC});var jp=b(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.validateAdditionalItems=void 0;var oi=oe(),Rp=he(),hC={message:s(({params:{len:e}})=>(0,oi.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,oi._)`{limit: ${e}}`,"params")},mC={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:hC,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Rp.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}X0(e,n)}};function X0(e,t){let{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;let u=r.const("len",(0,oi._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,oi._)`${u} <= ${t.length}`);else if(typeof n=="object"&&!(0,Rp.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,oi._)`${u} <= ${t.length}`);r.if((0,oi.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,u,p=>{e.subschema({keyword:o,dataProp:p,dataPropType:Rp.Type.Num},l),a.allErrors||r.if((0,oi.not)(l),()=>r.break())})}s(c,"validateItems")}s(X0,"validateAdditionalItems");Po.validateAdditionalItems=X0;Po.default=mC});var kp=b(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.validateTuple=void 0;var ev=oe(),cu=he(),gC=Jt(),yC={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return tv(e,"additionalItems",t);r.items=!0,!(0,cu.alwaysValidSchema)(r,t)&&e.ok((0,gC.validateArray)(e))}};function tv(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=cu.mergeEvaluated.items(n,r.length,u.items));let c=n.name("valid"),l=n.const("len",(0,ev._)`${o}.length`);r.forEach((f,d)=>{(0,cu.alwaysValidSchema)(u,f)||(n.if((0,ev._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},c)),e.ok(c))});function p(f){let{opts:d,errSchemaPath:h}=u,y=r.length,v=y===f.minItems&&(y===f.maxItems||f[t]===!1);if(d.strictTuples&&!v){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,cu.checkStrictMode)(u,g,d.strictTuples)}}s(p,"checkStrictTuple")}s(tv,"validateTuple");Oo.validateTuple=tv;Oo.default=yC});var rv=b(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});var vC=kp(),bC={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,vC.validateTuple)(e,"items"),"code")};Np.default=bC});var iv=b(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});var nv=oe(),_C=he(),SC=Jt(),wC=jp(),$C={message:s(({params:{len:e}})=>(0,nv.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,nv._)`{limit: ${e}}`,"params")},PC={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:$C,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,_C.alwaysValidSchema)(n,t)&&(i?(0,wC.validateAdditionalItems)(e,i):e.ok((0,SC.validateArray)(e)))}};Mp.default=PC});var sv=b(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});var Xt=oe(),lu=he(),OC={message:s(({params:{min:e,max:t}})=>t===void 0?(0,Xt.str)`must contain at least ${e} valid item(s)`:(0,Xt.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,Xt._)`{minContains: ${e}}`:(0,Xt._)`{minContains: ${e}, maxContains: ${t}}`,"params")},xC={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:OC,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,Xt._)`${i}.length`);if(e.setParams({min:a,max:u}),u===void 0&&a===0){(0,lu.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&a>u){(0,lu.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,lu.alwaysValidSchema)(o,r)){let v=(0,Xt._)`${p} >= ${a}`;u!==void 0&&(v=(0,Xt._)`${v} && ${p} <= ${u}`),e.pass(v);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,Xt._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let v=t.name("_valid"),g=t.let("count",0);h(v,()=>t.if(v,()=>y(g)))}s(d,"validateItemsWithCount");function h(v,g){t.forRange("i",0,p,$=>{e.subschema({keyword:"contains",dataProp:$,dataPropType:lu.Type.Num,compositeRule:!0},v),g()})}s(h,"validateItems");function y(v){t.code((0,Xt._)`${v}++`),u===void 0?t.if((0,Xt._)`${v} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,Xt._)`${v} > ${u}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,Xt._)`${v} >= ${a}`,()=>t.assign(f,!0)))}s(y,"checkLimits")}};Tp.default=xC});var fu=b(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.validateSchemaDeps=Ir.validatePropertyDeps=Ir.error=void 0;var qp=oe(),EC=he(),xo=Jt();Ir.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,qp.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,qp._)`{property: ${e},
11
11
  missingProperty: ${n},
12
12
  depsCount: ${t},
13
13
  deps: ${r}}`,"params")};var AC={keyword:"dependencies",type:"object",schemaType:"object",error:Ir.error,code(e){let[t,r]=CC(e);ov(e,t),av(e,r)}};function CC({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(CC,"splitDependencies");function ov(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,xo.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,xo.checkReportMissingProp)(e,l)}):(r.if((0,qp._)`${c} && (${(0,xo.checkMissingProp)(e,u,o)})`),(0,xo.reportMissingProp)(e,o),r.else())}}s(ov,"validatePropertyDeps");Ir.validatePropertyDeps=ov;function av(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,a=r.name("valid");for(let u in t)(0,EC.alwaysValidSchema)(o,t[u])||(r.if((0,xo.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(av,"validateSchemaDeps");Ir.validateSchemaDeps=av;Ir.default=AC});var cv=b(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});var uv=oe(),IC=he(),RC={message:"property name must be valid",params:s(({params:e})=>(0,uv._)`{propertyName: ${e.propertyName}}`,"params")},jC={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:RC,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,IC.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,uv.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};Dp.default=jC});var Fp=b(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var pu=Jt(),dr=oe(),kC=Yt(),du=he(),NC={message:"must NOT have additional properties",params:s(({params:e})=>(0,dr._)`{additionalProperty: ${e.additionalProperty}}`,"params")},MC={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:NC,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,du.alwaysValidSchema)(a,r))return;let l=(0,pu.allSchemaProperties)(n.properties),p=(0,pu.allSchemaProperties)(n.patternProperties);f(),e.ok((0,dr._)`${o} === ${kC.default.errors}`);function f(){t.forIn("key",i,g=>{!l.length&&!p.length?y(g):t.if(d(g),()=>y(g))})}s(f,"checkAdditionalProperties");function d(g){let $;if(l.length>8){let A=(0,du.schemaRefOrVal)(a,n.properties,"properties");$=(0,pu.isOwnProperty)(t,A,g)}else l.length?$=(0,dr.or)(...l.map(A=>(0,dr._)`${g} === ${A}`)):$=dr.nil;return p.length&&($=(0,dr.or)($,...p.map(A=>(0,dr._)`${(0,pu.usePattern)(e,A)}.test(${g})`))),(0,dr.not)($)}s(d,"isAdditional");function h(g){t.code((0,dr._)`delete ${i}[${g}]`)}s(h,"deleteAdditional");function y(g){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(g);return}if(r===!1){e.setParams({additionalProperty:g}),e.error(),u||t.break();return}if(typeof r=="object"&&!(0,du.alwaysValidSchema)(a,r)){let $=t.name("valid");c.removeAdditional==="failing"?(v(g,$,!1),t.if((0,dr.not)($),()=>{e.reset(),h(g)})):(v(g,$),u||t.if((0,dr.not)($),()=>t.break()))}}s(y,"additionalPropertyCode");function v(g,$,A){let k={keyword:"additionalProperties",dataProp:g,dataPropType:du.Type.Str};A===!1&&Object.assign(k,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(k,$)}s(v,"applyAdditionalSchema")}};Lp.default=MC});var pv=b(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});var TC=co(),lv=Jt(),Vp=he(),fv=Fp(),qC={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&&fv.default.code(new TC.KeywordCxt(o,fv.default,"additionalProperties"));let a=(0,lv.allSchemaProperties)(r);for(let f of a)o.definedProperties.add(f);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Vp.mergeEvaluated.props(t,(0,Vp.toHash)(a),o.props));let u=a.filter(f=>!(0,Vp.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,lv.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")}};Bp.default=qC});var gv=b(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});var dv=Jt(),hu=oe(),hv=he(),mv=he(),DC={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,dv.allSchemaProperties)(r),c=u.filter(v=>(0,hv.alwaysValidSchema)(o,r[v]));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 hu.Name)&&(o.props=(0,mv.evaluatedPropsToName)(t,o.props));let{props:f}=o;d();function d(){for(let v of u)l&&h(v),o.allErrors?y(v):(t.var(p,!0),y(v),t.if(p))}s(d,"validatePatternProperties");function h(v){for(let g in l)new RegExp(v).test(g)&&(0,hv.checkStrictMode)(o,`property ${g} matches pattern ${v} (use allowMatchingProperties)`)}s(h,"checkMatchingProperties");function y(v){t.forIn("key",n,g=>{t.if((0,hu._)`${(0,dv.usePattern)(e,v)}.test(${g})`,()=>{let $=c.includes(v);$||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:g,dataPropType:mv.Type.Str},p),o.opts.unevaluated&&f!==!0?t.assign((0,hu._)`${f}[${g}]`,!0):!$&&!o.allErrors&&t.if((0,hu.not)(p),()=>t.break())})})}s(y,"validateProperties")}};Hp.default=DC});var yv=b(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});var LC=he(),FC={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,LC.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"}};Up.default=FC});var vv=b(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var VC=Jt(),BC={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:VC.validateUnion,error:{message:"must match a schema in anyOf"}};zp.default=BC});var bv=b(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});var mu=oe(),HC=he(),UC={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,mu._)`{passingSchemas: ${e.passing}}`,"params")},zC={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:UC,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,HC.alwaysValidSchema)(i,p)?t.var(c,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&t.if((0,mu._)`${c} && ${a}`).assign(a,!1).assign(u,(0,mu._)`[${u}, ${f}]`).else(),t.if(c,()=>{t.assign(a,!0),t.assign(u,f),d&&e.mergeEvaluated(d,mu.Name)})})}s(l,"validateOneOf")}};Gp.default=zC});var _v=b(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});var GC=he(),WC={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,GC.alwaysValidSchema)(n,o))return;let u=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(u)})}};Wp.default=WC});var $v=b(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var gu=oe(),wv=he(),KC={message:s(({params:e})=>(0,gu.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,gu._)`{failingKeyword: ${e.ifClause}}`,"params")},ZC={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:KC,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,wv.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=Sv(n,"then"),o=Sv(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,gu.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,gu._)`${p}`):e.setParams({ifClause:p})}}s(l,"validateClause")}};function Sv(e,t){let r=e.schema[t];return r!==void 0&&!(0,wv.alwaysValidSchema)(e,r)}s(Sv,"hasSchema");Kp.default=ZC});var Pv=b(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});var YC=he(),JC={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,YC.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Zp.default=JC});var Jp=b(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});var QC=jp(),XC=rv(),eI=kp(),tI=iv(),rI=sv(),nI=fu(),iI=cv(),sI=Fp(),oI=pv(),aI=gv(),uI=yv(),cI=vv(),lI=bv(),fI=_v(),pI=$v(),dI=Pv();function hI(e=!1){let t=[uI.default,cI.default,lI.default,fI.default,pI.default,dI.default,iI.default,sI.default,nI.default,oI.default,aI.default];return e?t.push(XC.default,tI.default):t.push(QC.default,eI.default),t.push(rI.default),t}s(hI,"getApplicator");Yp.default=hI});var Ov=b(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});var Ze=oe(),mI={message:s(({schemaCode:e})=>(0,Ze.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,Ze._)`{format: ${e}}`,"params")},gI={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:mI,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 y=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),v=r.const("fDef",(0,Ze._)`${y}[${a}]`),g=r.let("fType"),$=r.let("format");r.if((0,Ze._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>r.assign(g,(0,Ze._)`${v}.type || "string"`).assign($,(0,Ze._)`${v}.validate`),()=>r.assign(g,(0,Ze._)`"string"`).assign($,v)),e.fail$data((0,Ze.or)(A(),k()));function A(){return c.strictSchema===!1?Ze.nil:(0,Ze._)`${a} && !${$}`}s(A,"unknownFmt");function k(){let C=p.$async?(0,Ze._)`(${v}.async ? await ${$}(${n}) : ${$}(${n}))`:(0,Ze._)`${$}(${n})`,I=(0,Ze._)`(typeof ${$} == "function" ? ${C} : ${$}.test(${n}))`;return(0,Ze._)`${$} && ${$} !== true && ${g} === ${t} && !${I}`}s(k,"invalidFmt")}s(d,"validate$DataFormat");function h(){let y=f.formats[o];if(!y){A();return}if(y===!0)return;let[v,g,$]=k(y);v===t&&e.pass(C());function A(){if(c.strictSchema===!1){f.logger.warn(I());return}throw new Error(I());function I(){return`unknown format "${o}" ignored in schema at path "${l}"`}}s(A,"unknownFormat");function k(I){let fe=I instanceof RegExp?(0,Ze.regexpCode)(I):c.code.formats?(0,Ze._)`${c.code.formats}${(0,Ze.getProperty)(o)}`:void 0,ne=r.scopeValue("formats",{key:o,ref:I,code:fe});return typeof I=="object"&&!(I instanceof RegExp)?[I.type||"string",I.validate,(0,Ze._)`${ne}.validate`]:["string",I,ne]}s(k,"getFormat");function C(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Ze._)`await ${$}(${n})`}return typeof g=="function"?(0,Ze._)`${$}(${n})`:(0,Ze._)`${$}.test(${n})`}s(C,"validCondition")}s(h,"validateFormat")}};Qp.default=gI});var ed=b(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var yI=Ov(),vI=[yI.default];Xp.default=vI});var xv=b(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});var bI=z0(),_I=Q0(),SI=Jp(),wI=ed(),$I=["title","description","default"],PI=[bI.default,_I.default,SI.default(),wI.default,$I];td.default=PI});var Av=b(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.DiscrError=void 0;var Ev;(function(e){e.Tag="tag",e.Mapping="mapping"})(Ev||(yu.DiscrError=Ev={}))});var id=b(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});var Xi=oe(),rd=Av(),Cv=fo(),OI=lo(),xI=he(),EI={message:s(({params:{discrError:e,tagName:t}})=>e===rd.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,Xi._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},AI={keyword:"discriminator",type:"object",schemaType:"object",error:EI,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,Xi._)`${r}${(0,Xi.getProperty)(u)}`);t.if((0,Xi._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:rd.DiscrError.Tag,tag:l,tagName:u})),e.ok(c);function p(){let h=d();t.if(!1);for(let y in h)t.elseIf((0,Xi._)`${l} === ${y}`),t.assign(c,f(h[y]));t.else(),e.error(!1,{discrError:rd.DiscrError.Mapping,tag:l,tagName:u}),t.endIf()}s(p,"validateMapping");function f(h){let y=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:h},y);return e.mergeEvaluated(v,Xi.Name),y}s(f,"applyTagSchema");function d(){var h;let y={},v=$(i),g=!0;for(let C=0;C<a.length;C++){let I=a[C];if(I!=null&&I.$ref&&!(0,xI.schemaHasRulesButRef)(I,o.self.RULES)){let ne=I.$ref;if(I=Cv.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,ne),I instanceof Cv.SchemaEnv&&(I=I.schema),I===void 0)throw new OI.default(o.opts.uriResolver,o.baseId,ne)}let fe=(h=I==null?void 0:I.properties)===null||h===void 0?void 0:h[u];if(typeof fe!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${u}"`);g=g&&(v||$(I)),A(fe,C)}if(!g)throw new Error(`discriminator: "${u}" must be required`);return y;function $({required:C}){return Array.isArray(C)&&C.includes(u)}function A(C,I){if(C.const)k(C.const,I);else if(C.enum)for(let fe of C.enum)k(fe,I);else throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`)}function k(C,I){if(typeof C!="string"||C in y)throw new Error(`discriminator: "${u}" values must be unique strings`);y[C]=I}}s(d,"getMapping")}};nd.default=AI});var Iv=b((x6,CI)=>{CI.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 kv=b((et,jv)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.CodeGen=et.Name=et.nil=et.stringify=et.str=et._=et.KeywordCxt=void 0;var II=Ji(),RI=xv(),jI=id(),Rv=Iv(),kI=["/properties"],vu="http://json-schema.org/draft-04/schema",sd=class sd extends II.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),RI.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(jI.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Rv,kI):Rv;this.addMetaSchema(t,vu,!1),this.refs["http://json-schema.org/schema"]=vu}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(vu)?vu:void 0)}};s(sd,"Ajv");var bu=sd;jv.exports=et=bu;Object.defineProperty(et,"__esModule",{value:!0});et.default=bu;var NI=Ji();Object.defineProperty(et,"KeywordCxt",{enumerable:!0,get:s(function(){return NI.KeywordCxt},"get")});var es=Ji();Object.defineProperty(et,"_",{enumerable:!0,get:s(function(){return es._},"get")});Object.defineProperty(et,"str",{enumerable:!0,get:s(function(){return es.str},"get")});Object.defineProperty(et,"stringify",{enumerable:!0,get:s(function(){return es.stringify},"get")});Object.defineProperty(et,"nil",{enumerable:!0,get:s(function(){return es.nil},"get")});Object.defineProperty(et,"Name",{enumerable:!0,get:s(function(){return es.Name},"get")});Object.defineProperty(et,"CodeGen",{enumerable:!0,get:s(function(){return es.CodeGen},"get")})});var Nv=b(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});var MI={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};od.default=MI});var Mv=b(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});var TI=Nv(),qI=yo(),DI=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",TI.default,qI.default];ad.default=DI});var Tv=b(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});var _u=oe(),gn=_u.operators,Su={maximum:{okStr:"<=",ok:gn.LTE,fail:gn.GT},minimum:{okStr:">=",ok:gn.GTE,fail:gn.LT},exclusiveMaximum:{okStr:"<",ok:gn.LT,fail:gn.GTE},exclusiveMinimum:{okStr:">",ok:gn.GT,fail:gn.LTE}},LI={message:s(({keyword:e,schemaCode:t})=>(0,_u.str)`must be ${Su[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,_u._)`{comparison: ${Su[e].okStr}, limit: ${t}}`,"params")},FI={keyword:Object.keys(Su),type:"number",schemaType:"number",$data:!0,error:LI,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,_u._)`${r} ${Su[t].fail} ${n} || isNaN(${r})`)}};ud.default=FI});var qv=b(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});var VI=Tv(),BI=cp(),HI=pp(),UI=hp(),zI=gp(),GI=vp(),WI=_p(),KI=Pp(),ZI=Ep(),YI=Cp(),JI=[VI.default,BI.default,HI.default,UI.default,zI.default,GI.default,WI.default,KI.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ZI.default,YI.default];cd.default=JI});var fd=b(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.dynamicAnchor=void 0;var ld=oe(),QI=Yt(),Dv=fo(),XI=yo(),eR={keyword:"$dynamicAnchor",schemaType:"string",code:s(e=>Lv(e,e.schema),"code")};function Lv(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,ld._)`${QI.default.dynamicAnchors}${(0,ld.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:tR(e);r.if((0,ld._)`!${i}`,()=>r.assign(i,o))}s(Lv,"dynamicAnchor");Eo.dynamicAnchor=Lv;function tR(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 Dv.SchemaEnv({schema:r,schemaId:c,root:i,baseId:o,localRefs:a,meta:u});return Dv.compileSchema.call(n,l),(0,XI.getValidate)(e,l)}s(tR,"_getValidate");Eo.default=eR});var pd=b(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.dynamicRef=void 0;var Fv=oe(),rR=Yt(),Vv=yo(),nR={keyword:"$dynamicRef",schemaType:"string",code:s(e=>Bv(e,e.schema),"code")};function Bv(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,Fv._)`${rR.default.dynamicAnchors}${(0,Fv.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,Vv.callRef)(e,c),r.let(l,!0)}):()=>(0,Vv.callRef)(e,c)}s(u,"_callRef")}s(Bv,"dynamicRef");Ao.dynamicRef=Bv;Ao.default=nR});var Hv=b(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});var iR=fd(),sR=he(),oR={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,iR.dynamicAnchor)(e,""):(0,sR.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};dd.default=oR});var Uv=b(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});var aR=pd(),uR={keyword:"$recursiveRef",schemaType:"string",code:s(e=>(0,aR.dynamicRef)(e,e.schema),"code")};hd.default=uR});var zv=b(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});var cR=fd(),lR=pd(),fR=Hv(),pR=Uv(),dR=[cR.default,lR.default,fR.default,pR.default];md.default=dR});var Wv=b(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});var Gv=fu(),hR={keyword:"dependentRequired",type:"object",schemaType:"object",error:Gv.error,code:s(e=>(0,Gv.validatePropertyDeps)(e),"code")};gd.default=hR});var Kv=b(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});var mR=fu(),gR={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,mR.validateSchemaDeps)(e),"code")};yd.default=gR});var Zv=b(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});var yR=he(),vR={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,yR.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};vd.default=vR});var Yv=b(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});var bR=Wv(),_R=Kv(),SR=Zv(),wR=[bR.default,_R.default,SR.default];bd.default=wR});var Qv=b(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});var yn=oe(),Jv=he(),$R=Yt(),PR={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,yn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},OR={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:PR,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 yn.Name?t.if((0,yn._)`${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,yn._)`${i} === ${$R.default.errors}`);function c(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,Jv.alwaysValidSchema)(o,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:Jv.Type.Str},d),a||t.if((0,yn.not)(d),()=>t.break())}}s(c,"unevaluatedPropCode");function l(f,d){return(0,yn._)`!${f} || !${f}[${d}]`}s(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let y in f)f[y]===!0&&h.push((0,yn._)`${d} !== ${y}`);return(0,yn.and)(...h)}s(p,"unevaluatedStatic")}};_d.default=OR});var eb=b(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});var ai=oe(),Xv=he(),xR={message:s(({params:{len:e}})=>(0,ai.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,ai._)`{limit: ${e}}`,"params")},ER={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:xR,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,ai._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,ai._)`${a} > ${o}`);else if(typeof r=="object"&&!(0,Xv.alwaysValidSchema)(i,r)){let c=t.var("valid",(0,ai._)`${a} <= ${o}`);t.if((0,ai.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:Xv.Type.Num},c),i.allErrors||t.if((0,ai.not)(c),()=>t.break())})}s(u,"validateItems")}};Sd.default=ER});var tb=b(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});var AR=Qv(),CR=eb(),IR=[AR.default,CR.default];wd.default=IR});var rb=b(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.contentVocabulary=ts.metadataVocabulary=void 0;ts.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];ts.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var ib=b($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});var RR=Mv(),jR=qv(),kR=Jp(),NR=zv(),MR=Yv(),TR=tb(),qR=ed(),nb=rb(),DR=[NR.default,RR.default,jR.default,(0,kR.default)(!0),qR.default,nb.metadataVocabulary,nb.contentVocabulary,MR.default,TR.default];$d.default=DR});var sb=b((e7,LR)=>{LR.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 ob=b((t7,FR)=>{FR.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 ab=b((r7,VR)=>{VR.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 ub=b((n7,BR)=>{BR.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 cb=b((i7,HR)=>{HR.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 lb=b((s7,UR)=>{UR.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 fb=b((o7,zR)=>{zR.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 pb=b((a7,GR)=>{GR.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 db=b(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});var WR=sb(),KR=ob(),ZR=ab(),YR=ub(),JR=cb(),QR=lb(),XR=fb(),ej=pb(),tj=["/properties"];function rj(e){return[WR,KR,ZR,YR,JR,t(this,QR),XR,t(this,ej)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,tj):n}s(t,"with$data")}s(rj,"addMetaSchema2020");Pd.default=rj});var hb=b((Ne,xd)=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.MissingRefError=Ne.ValidationError=Ne.CodeGen=Ne.Name=Ne.nil=Ne.stringify=Ne.str=Ne._=Ne.KeywordCxt=Ne.Ajv2020=void 0;var nj=Ji(),ij=ib(),sj=id(),oj=db(),Od="https://json-schema.org/draft/2020-12/schema",Ed=class Ed extends nj.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),ij.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(sj.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(oj.default.call(this,t),this.refs["http://json-schema.org/schema"]=Od)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Od)?Od:void 0)}};s(Ed,"Ajv2020");var rs=Ed;Ne.Ajv2020=rs;xd.exports=Ne=rs;xd.exports.Ajv2020=rs;Object.defineProperty(Ne,"__esModule",{value:!0});Ne.default=rs;var aj=co();Object.defineProperty(Ne,"KeywordCxt",{enumerable:!0,get:s(function(){return aj.KeywordCxt},"get")});var ns=oe();Object.defineProperty(Ne,"_",{enumerable:!0,get:s(function(){return ns._},"get")});Object.defineProperty(Ne,"str",{enumerable:!0,get:s(function(){return ns.str},"get")});Object.defineProperty(Ne,"stringify",{enumerable:!0,get:s(function(){return ns.stringify},"get")});Object.defineProperty(Ne,"nil",{enumerable:!0,get:s(function(){return ns.nil},"get")});Object.defineProperty(Ne,"Name",{enumerable:!0,get:s(function(){return ns.Name},"get")});Object.defineProperty(Ne,"CodeGen",{enumerable:!0,get:s(function(){return ns.CodeGen},"get")});var uj=Xa();Object.defineProperty(Ne,"ValidationError",{enumerable:!0,get:s(function(){return uj.default},"get")});var cj=lo();Object.defineProperty(Ne,"MissingRefError",{enumerable:!0,get:s(function(){return cj.default},"get")})});var mb=b((f7,lj)=>{lj.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 gb=b((p7,fj)=>{fj.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 yb=b((d7,pj)=>{pj.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 vb=b((h7,dj)=>{dj.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 bb=b((st,is)=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.openapi=st.openapiV31=st.openapiV3=st.openapiV2=st.openapiV1=void 0;st.openapiV1=mb();st.openapiV2=gb();st.openapiV3=yb();st.openapiV31=vb();st.openapi={v1:st.openapiV1,v2:st.openapiV2,v3:st.openapiV3,v31:st.openapiV31};st.default=st.openapi;typeof is=="object"&&typeof is.exports=="object"&&(is.exports=Object.assign(is.exports.default,is.exports))});var Id=b((m7,_b)=>{"use strict";var hj=Na(),{ono:mj}=cr(),gj=kv(),yj=hb(),{openapi:Ad}=bb();_b.exports=vj;function vj(e){let t,r;if(e.swagger)r=Ad.v2,t=Cd();else if(e.openapi.startsWith("3.1")){r=Ad.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=Cd(!1)}else r=Ad.v3,t=Cd();if(!t.validate(r,e)){let i=t.errors,o=`Swagger schema validation failed.
14
14
  `+bj(i);throw mj.syntax(i,{details:i},o)}}s(vj,"validateSchema");function Cd(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new gj(t):new yj(t)}s(Cd,"initializeAjv");function bj(e,t){t=t||" ";let r="";for(let n of e)r+=hj.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
15
- `);return r}s(bj,"formatAjvError")});var wb=b((y7,Sb)=>{"use strict";Sb.exports=["get","put","post","delete","options","head","patch"]});var kd=b((v7,xb)=>{"use strict";var _j=Na(),{ono:dt}=cr(),Sj=wb(),Rd=["array","boolean","integer","number","string"],Pb=["array","boolean","integer","number","string","object","null",void 0];xb.exports=wj;function wj(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&&$j(e,o,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let o=e.definitions[i],a="/definitions/"+i;Ob(o,a)}}s(wj,"validateSpec");function $j(e,t,r,n){for(let i of Sj){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 dt.syntax(`Validation failed. Duplicate operation id '${u}'`);Pj(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;Aj(l,p||{},f)}}}}s($j,"validatePath");function Pj(e,t,r,n,i){let o=t.parameters||[],a=n.parameters||[];try{$b(o)}catch(c){throw dt.syntax(c,`Validation failed. ${r} has duplicate parameters`)}try{$b(a)}catch(c){throw dt.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());Oj(u,i),xj(u,r,i),Ej(u,e,n,i)}s(Pj,"validateParameters");function Oj(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw dt.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw dt.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}s(Oj,"validateBodyParameters");function xj(e,t,r){let n=t.match(_j.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let o=i+1;o<n.length;o++)if(n[i]===n[o])throw dt.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 dt.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 dt.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 dt.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}s(xj,"validatePathParameters");function Ej(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=Pb;break;case"formData":a=i,u=Rd.concat("file");break;default:a=i,u=Rd}if(jd(a,o,u),Ob(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 dt.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}s(Ej,"validateParameterTypes");function $b(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 dt.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}s($b,"checkForDuplicates");function Aj(e,t,r){if(e!=="default"&&(e<100||e>599))throw dt.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;jd(o,a,Rd)}if(t.schema){let i=Pb.concat("file");if(i.indexOf(t.schema.type)===-1)throw dt.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);jd(t.schema,r+"/schema",i)}}s(Aj,"validateResponse");function jd(e,t,r){if(r.indexOf(e.type)===-1)throw dt.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw dt.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}s(jd,"validateSchema");function Ob(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 dt.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}s(Ob,"validateRequiredPropertiesExist")});var mr=b(hr=>{"use strict";var{Ono:Eb}=cr(),{stripHash:Ab,toFileSystemPath:Cj}=Dt(),ss,vn=hr.JSONParserError=(ss=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,Eb.extend(this)}},s(ss,"JSONParserError"),ss);bn(vn);var ui,Cb=hr.JSONParserErrorGroup=(ui=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${Cj(t.$refs._root$Ref.path)}'`,Eb.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 ui.getParserErrors(this.files)}},s(ui,"JSONParserErrorGroup"),ui);bn(Cb);var os,Ij=hr.ParserError=(os=class extends vn{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},s(os,"ParserError"),os);bn(Ij);var as,Rj=hr.UnmatchedParserError=(as=class extends vn{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},s(as,"UnmatchedParserError"),as);bn(Rj);var us,jj=hr.ResolverError=(us=class extends vn{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},s(us,"ResolverError"),us);bn(jj);var cs,kj=hr.UnmatchedResolverError=(cs=class extends vn{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},s(cs,"UnmatchedResolverError"),cs);bn(kj);var ls,Nj=hr.MissingPointerError=(ls=class extends vn{constructor(t,r){super(`Token "${t}" does not exist.`,Ab(r)),this.code="EMISSINGPOINTER"}},s(ls,"MissingPointerError"),ls);bn(Nj);var fs,Mj=hr.InvalidPointerError=(fs=class extends vn{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,Ab(r)),this.code="EINVALIDPOINTER"}},s(fs,"InvalidPointerError"),fs);bn(Mj);function bn(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}s(bn,"setErrorName");hr.isHandledError=function(e){return e instanceof vn||e instanceof Cb};hr.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var Rb=b((w7,Ib)=>{"use strict";var{ParserError:Tj}=mr();Ib.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 Tj(r.message,e.url)}}else return t}}});var li=b(($7,ci)=>{"use strict";function jb(e){return typeof e>"u"||e===null}s(jb,"isNothing");function qj(e){return typeof e=="object"&&e!==null}s(qj,"isObject");function Dj(e){return Array.isArray(e)?e:jb(e)?[]:[e]}s(Dj,"toArray");function Lj(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(Lj,"extend");function Fj(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}s(Fj,"repeat");function Vj(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}s(Vj,"isNegativeZero");ci.exports.isNothing=jb;ci.exports.isObject=qj;ci.exports.toArray=Dj;ci.exports.repeat=Fj;ci.exports.isNegativeZero=Vj;ci.exports.extend=Lj});var ps=b((O7,kb)=>{"use strict";function Co(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(Co,"YAMLException");Co.prototype=Object.create(Error.prototype);Co.prototype.constructor=Co;Co.prototype.toString=s(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");kb.exports=Co});var Tb=b((E7,Mb)=>{"use strict";var Nb=li();function Nd(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}s(Nd,"Mark");Nd.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
+ `);return r}s(bj,"formatAjvError")});var wb=b((y7,Sb)=>{"use strict";Sb.exports=["get","put","post","delete","options","head","patch"]});var kd=b((v7,xb)=>{"use strict";var _j=Na(),{ono:ht}=cr(),Sj=wb(),Rd=["array","boolean","integer","number","string"],Pb=["array","boolean","integer","number","string","object","null",void 0];xb.exports=wj;function wj(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&&$j(e,o,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let o=e.definitions[i],a="/definitions/"+i;Ob(o,a)}}s(wj,"validateSpec");function $j(e,t,r,n){for(let i of Sj){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 ht.syntax(`Validation failed. Duplicate operation id '${u}'`);Pj(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;Aj(l,p||{},f)}}}}s($j,"validatePath");function Pj(e,t,r,n,i){let o=t.parameters||[],a=n.parameters||[];try{$b(o)}catch(c){throw ht.syntax(c,`Validation failed. ${r} has duplicate parameters`)}try{$b(a)}catch(c){throw ht.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());Oj(u,i),xj(u,r,i),Ej(u,e,n,i)}s(Pj,"validateParameters");function Oj(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw ht.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw ht.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}s(Oj,"validateBodyParameters");function xj(e,t,r){let n=t.match(_j.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let o=i+1;o<n.length;o++)if(n[i]===n[o])throw ht.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 ht.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 ht.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 ht.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}s(xj,"validatePathParameters");function Ej(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=Pb;break;case"formData":a=i,u=Rd.concat("file");break;default:a=i,u=Rd}if(jd(a,o,u),Ob(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 ht.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}s(Ej,"validateParameterTypes");function $b(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 ht.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}s($b,"checkForDuplicates");function Aj(e,t,r){if(e!=="default"&&(e<100||e>599))throw ht.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;jd(o,a,Rd)}if(t.schema){let i=Pb.concat("file");if(i.indexOf(t.schema.type)===-1)throw ht.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);jd(t.schema,r+"/schema",i)}}s(Aj,"validateResponse");function jd(e,t,r){if(r.indexOf(e.type)===-1)throw ht.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw ht.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}s(jd,"validateSchema");function Ob(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 ht.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}s(Ob,"validateRequiredPropertiesExist")});var mr=b(hr=>{"use strict";var{Ono:Eb}=cr(),{stripHash:Ab,toFileSystemPath:Cj}=Dt(),ss,vn=hr.JSONParserError=(ss=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,Eb.extend(this)}},s(ss,"JSONParserError"),ss);bn(vn);var ui,Cb=hr.JSONParserErrorGroup=(ui=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${Cj(t.$refs._root$Ref.path)}'`,Eb.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 ui.getParserErrors(this.files)}},s(ui,"JSONParserErrorGroup"),ui);bn(Cb);var os,Ij=hr.ParserError=(os=class extends vn{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},s(os,"ParserError"),os);bn(Ij);var as,Rj=hr.UnmatchedParserError=(as=class extends vn{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},s(as,"UnmatchedParserError"),as);bn(Rj);var us,jj=hr.ResolverError=(us=class extends vn{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},s(us,"ResolverError"),us);bn(jj);var cs,kj=hr.UnmatchedResolverError=(cs=class extends vn{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},s(cs,"UnmatchedResolverError"),cs);bn(kj);var ls,Nj=hr.MissingPointerError=(ls=class extends vn{constructor(t,r){super(`Token "${t}" does not exist.`,Ab(r)),this.code="EMISSINGPOINTER"}},s(ls,"MissingPointerError"),ls);bn(Nj);var fs,Mj=hr.InvalidPointerError=(fs=class extends vn{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,Ab(r)),this.code="EINVALIDPOINTER"}},s(fs,"InvalidPointerError"),fs);bn(Mj);function bn(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}s(bn,"setErrorName");hr.isHandledError=function(e){return e instanceof vn||e instanceof Cb};hr.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var Rb=b((w7,Ib)=>{"use strict";var{ParserError:Tj}=mr();Ib.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 Tj(r.message,e.url)}}else return t}}});var li=b(($7,ci)=>{"use strict";function jb(e){return typeof e>"u"||e===null}s(jb,"isNothing");function qj(e){return typeof e=="object"&&e!==null}s(qj,"isObject");function Dj(e){return Array.isArray(e)?e:jb(e)?[]:[e]}s(Dj,"toArray");function Lj(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(Lj,"extend");function Fj(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}s(Fj,"repeat");function Vj(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}s(Vj,"isNegativeZero");ci.exports.isNothing=jb;ci.exports.isObject=qj;ci.exports.toArray=Dj;ci.exports.repeat=Fj;ci.exports.isNegativeZero=Vj;ci.exports.extend=Lj});var ps=b((O7,kb)=>{"use strict";function Co(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(Co,"YAMLException");Co.prototype=Object.create(Error.prototype);Co.prototype.constructor=Co;Co.prototype.toString=s(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");kb.exports=Co});var Tb=b((E7,Mb)=>{"use strict";var Nb=li();function Nd(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}s(Nd,"Mark");Nd.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
16
16
  \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
17
17
  \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),Nb.repeat(" ",t)+n+u+o+`
18
18
  `+Nb.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Nd.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+=`:
@@ -26,7 +26,7 @@
26
26
  `,c+1)):c===0?o&&(e.result+=" "):e.result+=Kr.repeat(`
27
27
  `,c):e.result+=Kr.repeat(`
28
28
  `,o?1+c:c),o=!0,a=!0,c=0,r=e.position;!Rr(f)&&f!==0;)f=e.input.charCodeAt(++e.position);_n(e,r,e.position,!1)}return!0}s(PN,"readBlockScalar");function M_(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),!jt(a)));){if(u=!0,e.position++,Je(e,!0,-1)&&e.lineIndent<=t){o.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,ys(e,t,L_,!1,!0),o.push(e.result),Je(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(M_,"readBlockSequence");function ON(e,t,r){var n,i,o,a,u=e.tag,c=e.anchor,l={},p={},f=null,d=null,h=null,y=!1,v=!1,g;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),g=e.input.charCodeAt(e.position);g!==0;){if(n=e.input.charCodeAt(e.position+1),o=e.line,a=e.position,(g===63||g===58)&&jt(n))g===63?(y&&(gs(e,l,p,f,d,null),f=d=h=null),v=!0,y=!0,i=!0):y?(y=!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,g=n;else if(ys(e,r,D_,!1,!0))if(e.line===o){for(g=e.input.charCodeAt(e.position);hi(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),jt(g)||X(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(gs(e,l,p,f,d,null),f=d=h=null),v=!0,y=!1,i=!1,f=e.tag,d=e.result;else if(v)X(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=c,!0}else if(v)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)&&(ys(e,t,xu,!0,i)&&(y?d=e.result:h=e.result),y||(gs(e,l,p,f,d,h,o,a),f=d=h=null),Je(e,!0,-1),g=e.input.charCodeAt(e.position)),e.lineIndent>t&&g!==0)X(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&gs(e,l,p,f,d,null),v&&(e.tag=u,e.anchor=c,e.kind="mapping",e.result=l),v}s(ON,"readBlockMapping");function xN(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&&!jt(a);)a===33&&(n?X(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),F_.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),hN.test(o)&&X(e,"tag suffix cannot contain flow indicator characters")}return o&&!V_.test(o)&&X(e,"tag name cannot contain such characters: "+o),r?e.tag=o:Sn.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(xN,"readTagProperty");function EN(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&&!jt(r)&&!ms(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(EN,"readAnchorProperty");function AN(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&&!jt(n)&&!ms(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),Sn.call(e.anchorMap,r)||X(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Je(e,!0,-1),!0}s(AN,"readAlias");function ys(e,t,r,n,i){var o,a,u,c=1,l=!1,p=!1,f,d,h,y,v;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=u=xu===r||L_===r,n&&Je(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;xN(e)||EN(e);)Je(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||xu===r)&&(Ou===r||D_===r?y=t:y=t+1,v=e.position-e.lineStart,c===1?u&&(M_(e,v)||ON(e,v,y))||$N(e,y)?p=!0:(a&&PN(e,y)||SN(e,y)||wN(e,y)?p=!0:AN(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&X(e,"alias node should not have any properties")):_N(e,y,Ou===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(p=u&&M_(e,v))),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 Sn.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(ys,"composeNode");function CN(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&&(Je(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&&!jt(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(;hi(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Rr(a));break}if(Rr(a))break;for(r=e.position;a!==0&&!jt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Fd(e),Sn.call(k_,n)?k_[n](e,n,i):Eu(e,'unknown document directive "'+n+'"')}if(Je(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,Je(e,!0,-1)):o&&X(e,"directives end mark is expected"),ys(e,e.lineIndent-1,xu,!1,!0),Je(e,!0,-1),e.checkLineBreaks&&dN.test(e.input.slice(t,e.position))&&Eu(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Au(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Je(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(CN,"readDocument");function z_(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
29
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new bN(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;)CN(r);return r.documents}s(z_,"loadDocuments");function G_(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=z_(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}s(G_,"loadAll");function W_(e,t){var r=z_(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new T_("expected a single document in the stream, but found more")}}s(W_,"load");function IN(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),G_(e,t,Kr.extend({schema:q_},r))}s(IN,"safeLoadAll");function RN(e,t){return W_(e,Kr.extend({schema:q_},t))}s(RN,"safeLoad");Ro.exports.loadAll=G_;Ro.exports.load=W_;Ro.exports.safeLoadAll=IN;Ro.exports.safeLoad=RN});var yS=b((v9,zd)=>{"use strict";var ko=li(),No=ps(),jN=Io(),kN=hs(),rS=Object.prototype.toString,nS=Object.prototype.hasOwnProperty,NN=9,jo=10,MN=13,TN=32,qN=33,DN=34,iS=35,LN=37,FN=38,VN=39,BN=42,sS=44,HN=45,oS=58,UN=61,zN=62,GN=63,WN=64,aS=91,uS=93,KN=96,cS=123,ZN=124,lS=125,ht={};ht[0]="\\0";ht[7]="\\a";ht[8]="\\b";ht[9]="\\t";ht[10]="\\n";ht[11]="\\v";ht[12]="\\f";ht[13]="\\r";ht[27]="\\e";ht[34]='\\"';ht[92]="\\\\";ht[133]="\\N";ht[160]="\\_";ht[8232]="\\L";ht[8233]="\\P";var YN=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function JN(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&&nS.call(c.styleAliases,u)&&(u=c.styleAliases[u]),r[a]=u;return r}s(JN,"compileStyleMap");function Z_(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 No("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ko.repeat("0",n-t.length)+t}s(Z_,"encodeHex");function QN(e){this.schema=e.schema||jN,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ko.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=JN(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(QN,"State");function Y_(e,t){for(var r=ko.repeat(" ",t),n=0,i=-1,o="",a,u=e.length;n<u;)i=e.indexOf(`
29
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new bN(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;)CN(r);return r.documents}s(z_,"loadDocuments");function G_(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=z_(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}s(G_,"loadAll");function W_(e,t){var r=z_(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new T_("expected a single document in the stream, but found more")}}s(W_,"load");function IN(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),G_(e,t,Kr.extend({schema:q_},r))}s(IN,"safeLoadAll");function RN(e,t){return W_(e,Kr.extend({schema:q_},t))}s(RN,"safeLoad");Ro.exports.loadAll=G_;Ro.exports.load=W_;Ro.exports.safeLoadAll=IN;Ro.exports.safeLoad=RN});var yS=b((v9,zd)=>{"use strict";var ko=li(),No=ps(),jN=Io(),kN=hs(),rS=Object.prototype.toString,nS=Object.prototype.hasOwnProperty,NN=9,jo=10,MN=13,TN=32,qN=33,DN=34,iS=35,LN=37,FN=38,VN=39,BN=42,sS=44,HN=45,oS=58,UN=61,zN=62,GN=63,WN=64,aS=91,uS=93,KN=96,cS=123,ZN=124,lS=125,mt={};mt[0]="\\0";mt[7]="\\a";mt[8]="\\b";mt[9]="\\t";mt[10]="\\n";mt[11]="\\v";mt[12]="\\f";mt[13]="\\r";mt[27]="\\e";mt[34]='\\"';mt[92]="\\\\";mt[133]="\\N";mt[160]="\\_";mt[8232]="\\L";mt[8233]="\\P";var YN=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function JN(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&&nS.call(c.styleAliases,u)&&(u=c.styleAliases[u]),r[a]=u;return r}s(JN,"compileStyleMap");function Z_(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 No("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ko.repeat("0",n-t.length)+t}s(Z_,"encodeHex");function QN(e){this.schema=e.schema||jN,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ko.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=JN(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(QN,"State");function Y_(e,t){for(var r=ko.repeat(" ",t),n=0,i=-1,o="",a,u=e.length;n<u;)i=e.indexOf(`
30
30
  `,n),i===-1?(a=e.slice(n),n=u):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
31
31
  `&&(o+=r),o+=a;return o}s(Y_,"indentString");function Bd(e,t){return`
32
32
  `+ko.repeat(" ",e.indent*t)}s(Bd,"generateNextLine");function XN(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(XN,"testImplicitResolving");function Ud(e){return e===TN||e===NN}s(Ud,"isWhitespace");function vs(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(vs,"isPrintable");function e3(e){return vs(e)&&!Ud(e)&&e!==65279&&e!==MN&&e!==jo}s(e3,"isNsChar");function J_(e,t){return vs(e)&&e!==65279&&e!==sS&&e!==aS&&e!==uS&&e!==cS&&e!==lS&&e!==oS&&(e!==iS||t&&e3(t))}s(J_,"isPlainSafe");function t3(e){return vs(e)&&e!==65279&&!Ud(e)&&e!==HN&&e!==GN&&e!==oS&&e!==sS&&e!==aS&&e!==uS&&e!==cS&&e!==lS&&e!==iS&&e!==FN&&e!==BN&&e!==qN&&e!==ZN&&e!==UN&&e!==zN&&e!==VN&&e!==DN&&e!==LN&&e!==WN&&e!==KN}s(t3,"isPlainSafeFirst");function fS(e){var t=/^\n* /;return t.test(e)}s(fS,"needIndentIndicator");var pS=1,dS=2,hS=3,mS=4,Cu=5;function r3(e,t,r,n,i){var o,a,u,c=!1,l=!1,p=n!==-1,f=-1,d=t3(e.charCodeAt(0))&&!Ud(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),!vs(a))return Cu;u=o>0?e.charCodeAt(o-1):null,d=d&&J_(a,u)}else{for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),a===jo)c=!0,p&&(l=l||o-f-1>n&&e[f+1]!==" ",f=o);else if(!vs(a))return Cu;u=o>0?e.charCodeAt(o-1):null,d=d&&J_(a,u)}l=l||p&&o-f-1>n&&e[f+1]!==" "}return!c&&!l?d&&!i(e)?pS:dS:r>9&&fS(e)?Cu:l?mS:hS}s(r3,"chooseScalarStyle");function n3(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&YN.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 XN(e,c)}switch(s(u,"testAmbiguity"),r3(t,a,e.indent,o,u)){case pS:return t;case dS:return"'"+t.replace(/'/g,"''")+"'";case hS:return"|"+Q_(t,e.indent)+X_(Y_(t,i));case mS:return">"+Q_(t,e.indent)+X_(Y_(i3(t,o),i));case Cu:return'"'+s3(t,o)+'"';default:throw new No("impossible error: invalid scalar style")}}()}s(n3,"writeScalar");function Q_(e,t){var r=fS(e)?String(t):"",n=e[e.length-1]===`
@@ -40,7 +40,7 @@
40
40
  `:"")+eS(c,t),i=o}return n}s(i3,"foldString");function eS(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+=`
41
41
  `+e.slice(i,o),i=o+1),a=u;return c+=`
42
42
  `,e.length-i>t&&a>i?c+=e.slice(i,a)+`
43
- `+e.slice(a+1):c+=e.slice(i),c.slice(1)}s(eS,"foldLine");function s3(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+=Z_((r-55296)*1024+n-56320+65536),o++;continue}i=ht[r],t+=!i&&vs(r)?e[o]:i||Z_(r)}return t}s(s3,"escapeString");function o3(e,t,r){var n="",i=e.tag,o,a;for(o=0,a=r.length;o<a;o+=1)mi(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}s(o3,"writeFlowSequence");function a3(e,t,r,n){var i="",o=e.tag,a,u;for(a=0,u=r.length;a<u;a+=1)mi(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Bd(e,t)),e.dump&&jo===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}s(a3,"writeBlockSequence");function u3(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],mi(e,t,c,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),mi(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}s(u3,"writeFlowMapping");function c3(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 No("sortKeys must be a boolean or a function");for(u=0,c=a.length;u<c;u+=1)d="",(!n||u!==0)&&(d+=Bd(e,t)),l=a[u],p=r[l],mi(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&jo===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=Bd(e,t)),mi(e,t+1,p,!0,f)&&(e.dump&&jo===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=o,e.dump=i||"{}"}s(c3,"writeBlockMapping");function tS(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,rS.call(u.represent)==="[object Function]")n=u.represent(t,c);else if(nS.call(u.represent,c))n=u.represent[c](t,c);else throw new No("!<"+u.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}s(tS,"detectType");function mi(e,t,r,n,i,o){e.tag=null,e.dump=r,tS(e,r,!1)||tS(e,r,!0);var a=rS.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?(c3(e,t,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(u3(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?(a3(e,p,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(o3(e,p,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&n3(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new No("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}s(mi,"writeNode");function l3(e,t){var r=[],n=[],i,o;for(Hd(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}s(l3,"getDuplicateReferences");function Hd(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)Hd(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)Hd(e[n[i]],t,r)}s(Hd,"inspectNode");function gS(e,t){t=t||{};var r=new QN(t);return r.noRefs||l3(e,r),mi(r,0,e,!0,!0)?r.dump+`
43
+ `+e.slice(a+1):c+=e.slice(i),c.slice(1)}s(eS,"foldLine");function s3(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+=Z_((r-55296)*1024+n-56320+65536),o++;continue}i=mt[r],t+=!i&&vs(r)?e[o]:i||Z_(r)}return t}s(s3,"escapeString");function o3(e,t,r){var n="",i=e.tag,o,a;for(o=0,a=r.length;o<a;o+=1)mi(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}s(o3,"writeFlowSequence");function a3(e,t,r,n){var i="",o=e.tag,a,u;for(a=0,u=r.length;a<u;a+=1)mi(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Bd(e,t)),e.dump&&jo===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}s(a3,"writeBlockSequence");function u3(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],mi(e,t,c,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),mi(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}s(u3,"writeFlowMapping");function c3(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 No("sortKeys must be a boolean or a function");for(u=0,c=a.length;u<c;u+=1)d="",(!n||u!==0)&&(d+=Bd(e,t)),l=a[u],p=r[l],mi(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&jo===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=Bd(e,t)),mi(e,t+1,p,!0,f)&&(e.dump&&jo===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=o,e.dump=i||"{}"}s(c3,"writeBlockMapping");function tS(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,rS.call(u.represent)==="[object Function]")n=u.represent(t,c);else if(nS.call(u.represent,c))n=u.represent[c](t,c);else throw new No("!<"+u.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}s(tS,"detectType");function mi(e,t,r,n,i,o){e.tag=null,e.dump=r,tS(e,r,!1)||tS(e,r,!0);var a=rS.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?(c3(e,t,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(u3(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?(a3(e,p,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(o3(e,p,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&n3(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new No("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}s(mi,"writeNode");function l3(e,t){var r=[],n=[],i,o;for(Hd(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}s(l3,"getDuplicateReferences");function Hd(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)Hd(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)Hd(e[n[i]],t,r)}s(Hd,"inspectNode");function gS(e,t){t=t||{};var r=new QN(t);return r.noRefs||l3(e,r),mi(r,0,e,!0,!0)?r.dump+`
44
44
  `:""}s(gS,"dump");function f3(e,t){return gS(e,ko.extend({schema:kN},t))}s(f3,"safeDump");zd.exports.dump=gS;zd.exports.safeDump=f3});var bS=b((_9,He)=>{"use strict";var Iu=K_(),vS=yS();function Ru(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}s(Ru,"deprecated");He.exports.Type=tt();He.exports.Schema=fi();He.exports.FAILSAFE_SCHEMA=$u();He.exports.JSON_SCHEMA=Td();He.exports.CORE_SCHEMA=qd();He.exports.DEFAULT_SAFE_SCHEMA=hs();He.exports.DEFAULT_FULL_SCHEMA=Io();He.exports.load=Iu.load;He.exports.loadAll=Iu.loadAll;He.exports.safeLoad=Iu.safeLoad;He.exports.safeLoadAll=Iu.safeLoadAll;He.exports.dump=vS.dump;He.exports.safeDump=vS.safeDump;He.exports.YAMLException=ps();He.exports.MINIMAL_SCHEMA=$u();He.exports.SAFE_SCHEMA=hs();He.exports.DEFAULT_SCHEMA=Io();He.exports.scan=Ru("scan");He.exports.parse=Ru("parse");He.exports.compose=Ru("compose");He.exports.addConstructor=Ru("addConstructor")});var SS=b((w9,_S)=>{"use strict";var p3=bS();_S.exports=p3});var $S=b(($9,wS)=>{"use strict";var{ParserError:d3}=mr(),h3=SS();wS.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 h3.safeLoad(t)}catch(r){throw new d3(r.message,e.url)}else return t}}});var OS=b((P9,PS)=>{"use strict";var{ParserError:m3}=mr(),g3=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;PS.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&g3.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 m3("data is not text",e.url)}}});var ES=b((O9,xS)=>{"use strict";var y3=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;xS.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&y3.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var IS=b((x9,CS)=>{"use strict";var v3=require("fs"),{ono:Gd}=cr(),AS=Dt(),{ResolverError:Wd}=mr();CS.exports={order:100,canRead(e){return AS.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=AS.toFileSystemPath(e.url)}catch(i){r(new Wd(Gd.uri(i,`Malformed URI: ${e.url}`),e.url))}try{v3.readFile(n,(i,o)=>{i?r(new Wd(Gd(i,`Error opening file "${n}"`),n)):t(o)})}catch(i){r(new Wd(Gd(i,`Error opening file "${n}"`),n))}})}}});var NS=b((E9,kS)=>{"use strict";var b3=require("http"),_3=require("https"),{ono:ju}=cr(),Mo=Dt(),{ResolverError:RS}=mr();kS.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Mo.isHttp(e.url)},read(e){let t=Mo.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Mo.parse(location.href).protocol),jS(t,this)}};function jS(e,t,r){return new Promise((n,i)=>{e=Mo.parse(e),r=r||[],r.push(e.href),S3(e,t).then(o=>{if(o.statusCode>=400)throw ju({status:o.statusCode},`HTTP ERROR ${o.statusCode}`);if(o.statusCode>=300)if(r.length>t.redirects)i(new RS(ju({status:o.statusCode},`Error downloading ${r[0]}.
45
45
  Too many redirects:
46
46
  ${r.join(`
@@ -52,11 +52,11 @@ Parsed value is empty`)):n(p)}s(c,"onParsed");function l(p){!p&&t.continueOnErro
52
52
  You can add a runtime option to disable the check or this warning:
53
53
  See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}s(WT,"logUnexpecedPropertyAccessOnce");function KT(){Object.keys(sc).forEach(function(e){delete sc[e]})}s(KT,"resetLoggedProperties")});var ac=b(Lr=>{"use strict";Lr.__esModule=!0;Lr.HandlebarsEnvironment=Bh;function Z2(e){return e&&e.__esModule?e:{default:e}}s(Z2,"_interopRequireDefault");var _i=Pt(),ZT=tr(),Fh=Z2(ZT),YT=Mh(),JT=U2(),QT=qh(),oc=Z2(QT),XT=Lh(),eq="4.7.8";Lr.VERSION=eq;var tq=8;Lr.COMPILER_REVISION=tq;var rq=7;Lr.LAST_COMPATIBLE_COMPILER_REVISION=rq;var nq={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"};Lr.REVISION_CHANGES=nq;var Vh="[object Object]";function Bh(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},YT.registerDefaultHelpers(this),JT.registerDefaultDecorators(this)}s(Bh,"HandlebarsEnvironment");Bh.prototype={constructor:Bh,logger:oc.default,log:oc.default.log,registerHelper:s(function(t,r){if(_i.toString.call(t)===Vh){if(r)throw new Fh.default("Arg not supported with multiple helpers");_i.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(_i.toString.call(t)===Vh)_i.extend(this.partials,t);else{if(typeof r>"u")throw new Fh.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(_i.toString.call(t)===Vh){if(r)throw new Fh.default("Arg not supported with multiple decorators");_i.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:s(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:s(function(){XT.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var iq=oc.default.log;Lr.log=iq;Lr.createFrame=_i.createFrame;Lr.logger=oc.default});var J2=b((uc,Y2)=>{"use strict";uc.__esModule=!0;function Hh(e){this.string=e}s(Hh,"SafeString");Hh.prototype.toString=Hh.prototype.toHTML=function(){return""+this.string};uc.default=Hh;Y2.exports=uc.default});var Q2=b(Uh=>{"use strict";Uh.__esModule=!0;Uh.wrapHelper=sq;function sq(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(sq,"wrapHelper")});var nw=b(jn=>{"use strict";jn.__esModule=!0;jn.checkRevision=fq;jn.template=pq;jn.wrapProgram=cc;jn.resolvePartial=dq;jn.invokePartial=hq;jn.noop=tw;function oq(e){return e&&e.__esModule?e:{default:e}}s(oq,"_interopRequireDefault");function aq(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(aq,"_interopRequireWildcard");var uq=Pt(),Qr=aq(uq),cq=tr(),Xr=oq(cq),en=ac(),X2=Mh(),lq=Q2(),ew=Lh();function fq(e){var t=e&&e[0]||1,r=en.COMPILER_REVISION;if(!(t>=en.LAST_COMPATIBLE_COMPILER_REVISION&&t<=en.COMPILER_REVISION))if(t<en.LAST_COMPATIBLE_COMPILER_REVISION){var n=en.REVISION_CHANGES[r],i=en.REVISION_CHANGES[t];throw new Xr.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 Xr.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(fq,"checkRevision");function pq(e,t){if(!t)throw new Xr.default("No environment passed to template");if(!e||!e.main)throw new Xr.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=Qr.extend({},u,c.hash),c.ids&&(c.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,u,c);var l=Qr.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(`
54
54
  `),d=0,h=f.length;d<h&&!(!f[d]&&d+1===h);d++)f[d]=c.indent+f[d];p=f.join(`
55
- `)}return p}else throw new Xr.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 Xr.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)||ew.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:Qr.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=cc(this,u,h,c,l,p,f):d||(d=this.programs[u]=cc(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=Qr.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=mq(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=rw(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=Qr.extend({},t.helpers,a.helpers);gq(u,i),i.helpers=u,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Qr.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=ew.createProtoAccessControl(a);var c=a.allowCallsToHelperMissing||r;X2.moveHelperToHooks(i,"helperMissing",c),X2.moveHelperToHooks(i,"blockHelperMissing",c)}},o._child=function(a,u,c,l){if(e.useBlockParams&&!c)throw new Xr.default("must pass block params");if(e.useDepths&&!l)throw new Xr.default("must pass parent depths");return cc(i,a,e[a],u,0,c,l)},o}s(pq,"template");function cc(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=rw(r,u,e,a,n,o),u.program=t,u.depth=a?a.length:0,u.blockParams=i||0,u}s(cc,"wrapProgram");function dq(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(dq,"resolvePartial");function hq(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!==tw&&function(){r.data=en.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=en.createFrame(c.data),c.data["partial-block"]=n,o(u,c)},"partialBlockWrapper"),o.partials&&(r.partials=Qr.extend({},r.partials,o.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new Xr.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}s(hq,"invokePartial");function tw(){return""}s(tw,"noop");function mq(e,t){return(!t||!("root"in t))&&(t=t?en.createFrame(t):{},t.root=e),t}s(mq,"initData");function rw(e,t,r,n,i,o){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,o,n),Qr.extend(t,a)}return t}s(rw,"executeDecorators");function gq(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=yq(n,t)})}s(gq,"wrapHelpersToPassLookupProperty");function yq(e,t){var r=t.lookupProperty;return lq.wrapHelper(e,function(n){return Qr.extend({lookupProperty:r},n)})}s(yq,"passLookupPropertyOption")});var zh=b((lc,iw)=>{"use strict";lc.__esModule=!0;lc.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}};iw.exports=lc.default});var cw=b((fc,uw)=>{"use strict";fc.__esModule=!0;function Wh(e){return e&&e.__esModule?e:{default:e}}s(Wh,"_interopRequireDefault");function Kh(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(Kh,"_interopRequireWildcard");var vq=ac(),sw=Kh(vq),bq=J2(),_q=Wh(bq),Sq=tr(),wq=Wh(Sq),$q=Pt(),Gh=Kh($q),Pq=nw(),ow=Kh(Pq),Oq=zh(),xq=Wh(Oq);function aw(){var e=new sw.HandlebarsEnvironment;return Gh.extend(e,sw),e.SafeString=_q.default,e.Exception=wq.default,e.Utils=Gh,e.escapeExpression=Gh.escapeExpression,e.VM=ow,e.template=function(t){return ow.template(t,e)},e}s(aw,"create");var Yo=aw();Yo.create=aw;xq.default(Yo);Yo.default=Yo;fc.default=Yo;uw.exports=fc.default});var Zh=b((pc,fw)=>{"use strict";pc.__esModule=!0;var lw={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&&!lw.helpers.scopedId(t)&&!t.depth},"simpleId")}};pc.default=lw;fw.exports=pc.default});var dw=b((dc,pw)=>{"use strict";dc.__esModule=!0;var Eq=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,y=2,v=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 g=this.lexer.yylloc;c.push(g);var $=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function A(be){a.length=a.length-2*be,u.length=u.length-be,c.length=c.length-be}s(A,"popStack");function k(){var be;return be=o.lexer.lex()||1,typeof be!="number"&&(be=o.symbols_[be]||be),be}s(k,"lex");for(var C,I,fe,ne,gt,Le,ee={},M,R,q,Z;;){if(fe=a[a.length-1],this.defaultActions[fe]?ne=this.defaultActions[fe]:((C===null||typeof C>"u")&&(C=k()),ne=l[fe]&&l[fe][C]),typeof ne>"u"||!ne.length||!ne[0]){var ue="";if(!h){Z=[];for(M in l[fe])this.terminals_[M]&&M>2&&Z.push("'"+this.terminals_[M]+"'");this.lexer.showPosition?ue="Parse error on line "+(f+1)+`:
55
+ `)}return p}else throw new Xr.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 Xr.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)||ew.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:Qr.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=cc(this,u,h,c,l,p,f):d||(d=this.programs[u]=cc(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=Qr.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=mq(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=rw(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=Qr.extend({},t.helpers,a.helpers);gq(u,i),i.helpers=u,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Qr.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=ew.createProtoAccessControl(a);var c=a.allowCallsToHelperMissing||r;X2.moveHelperToHooks(i,"helperMissing",c),X2.moveHelperToHooks(i,"blockHelperMissing",c)}},o._child=function(a,u,c,l){if(e.useBlockParams&&!c)throw new Xr.default("must pass block params");if(e.useDepths&&!l)throw new Xr.default("must pass parent depths");return cc(i,a,e[a],u,0,c,l)},o}s(pq,"template");function cc(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=rw(r,u,e,a,n,o),u.program=t,u.depth=a?a.length:0,u.blockParams=i||0,u}s(cc,"wrapProgram");function dq(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(dq,"resolvePartial");function hq(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!==tw&&function(){r.data=en.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=en.createFrame(c.data),c.data["partial-block"]=n,o(u,c)},"partialBlockWrapper"),o.partials&&(r.partials=Qr.extend({},r.partials,o.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new Xr.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}s(hq,"invokePartial");function tw(){return""}s(tw,"noop");function mq(e,t){return(!t||!("root"in t))&&(t=t?en.createFrame(t):{},t.root=e),t}s(mq,"initData");function rw(e,t,r,n,i,o){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,o,n),Qr.extend(t,a)}return t}s(rw,"executeDecorators");function gq(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=yq(n,t)})}s(gq,"wrapHelpersToPassLookupProperty");function yq(e,t){var r=t.lookupProperty;return lq.wrapHelper(e,function(n){return Qr.extend({lookupProperty:r},n)})}s(yq,"passLookupPropertyOption")});var zh=b((lc,iw)=>{"use strict";lc.__esModule=!0;lc.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}};iw.exports=lc.default});var cw=b((fc,uw)=>{"use strict";fc.__esModule=!0;function Wh(e){return e&&e.__esModule?e:{default:e}}s(Wh,"_interopRequireDefault");function Kh(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(Kh,"_interopRequireWildcard");var vq=ac(),sw=Kh(vq),bq=J2(),_q=Wh(bq),Sq=tr(),wq=Wh(Sq),$q=Pt(),Gh=Kh($q),Pq=nw(),ow=Kh(Pq),Oq=zh(),xq=Wh(Oq);function aw(){var e=new sw.HandlebarsEnvironment;return Gh.extend(e,sw),e.SafeString=_q.default,e.Exception=wq.default,e.Utils=Gh,e.escapeExpression=Gh.escapeExpression,e.VM=ow,e.template=function(t){return ow.template(t,e)},e}s(aw,"create");var Yo=aw();Yo.create=aw;xq.default(Yo);Yo.default=Yo;fc.default=Yo;uw.exports=fc.default});var Zh=b((pc,fw)=>{"use strict";pc.__esModule=!0;var lw={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&&!lw.helpers.scopedId(t)&&!t.depth},"simpleId")}};pc.default=lw;fw.exports=pc.default});var dw=b((dc,pw)=>{"use strict";dc.__esModule=!0;var Eq=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,y=2,v=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 g=this.lexer.yylloc;c.push(g);var $=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function A(be){a.length=a.length-2*be,u.length=u.length-be,c.length=c.length-be}s(A,"popStack");function k(){var be;return be=o.lexer.lex()||1,typeof be!="number"&&(be=o.symbols_[be]||be),be}s(k,"lex");for(var C,I,fe,ne,ot,Te,ee={},M,R,q,Z;;){if(fe=a[a.length-1],this.defaultActions[fe]?ne=this.defaultActions[fe]:((C===null||typeof C>"u")&&(C=k()),ne=l[fe]&&l[fe][C]),typeof ne>"u"||!ne.length||!ne[0]){var ue="";if(!h){Z=[];for(M in l[fe])this.terminals_[M]&&M>2&&Z.push("'"+this.terminals_[M]+"'");this.lexer.showPosition?ue="Parse error on line "+(f+1)+`:
56
56
  `+this.lexer.showPosition()+`
57
- Expecting `+Z.join(", ")+", got '"+(this.terminals_[C]||C)+"'":ue="Parse error on line "+(f+1)+": Unexpected "+(C==1?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(ue,{text:this.lexer.match,token:this.terminals_[C]||C,line:this.lexer.yylineno,loc:g,expected:Z})}}if(ne[0]instanceof Array&&ne.length>1)throw new Error("Parse Error: multiple actions possible at state: "+fe+", token: "+C);switch(ne[0]){case 1:a.push(C),u.push(this.lexer.yytext),c.push(this.lexer.yylloc),a.push(ne[1]),C=null,I?(C=I,I=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,g=this.lexer.yylloc,h>0&&h--);break;case 2:if(R=this.productions_[ne[1]][1],ee.$=u[u.length-R],ee._$={first_line:c[c.length-(R||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(R||1)].first_column,last_column:c[c.length-1].last_column},$&&(ee._$.range=[c[c.length-(R||1)].range[0],c[c.length-1].range[1]]),Le=this.performAction.call(ee,p,d,f,this.yy,ne[1],u,c),typeof Le<"u")return Le;R&&(a=a.slice(0,-1*R*2),u=u.slice(0,-1*R),c=c.slice(0,-1*R)),a.push(this.productions_[ne[1]][0]),u.push(ee.$),c.push(ee._$),q=l[a[a.length-2]][a[a.length-1]],a.push(q);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
+ Expecting `+Z.join(", ")+", got '"+(this.terminals_[C]||C)+"'":ue="Parse error on line "+(f+1)+": Unexpected "+(C==1?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(ue,{text:this.lexer.match,token:this.terminals_[C]||C,line:this.lexer.yylineno,loc:g,expected:Z})}}if(ne[0]instanceof Array&&ne.length>1)throw new Error("Parse Error: multiple actions possible at state: "+fe+", token: "+C);switch(ne[0]){case 1:a.push(C),u.push(this.lexer.yytext),c.push(this.lexer.yylloc),a.push(ne[1]),C=null,I?(C=I,I=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,g=this.lexer.yylloc,h>0&&h--);break;case 2:if(R=this.productions_[ne[1]][1],ee.$=u[u.length-R],ee._$={first_line:c[c.length-(R||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(R||1)].first_column,last_column:c[c.length-1].last_column},$&&(ee._$.range=[c[c.length-(R||1)].range[0],c[c.length-1].range[1]]),Te=this.performAction.call(ee,p,d,f,this.yy,ne[1],u,c),typeof Te<"u")return Te;R&&(a=a.slice(0,-1*R*2),u=u.slice(0,-1*R),c=c.slice(0,-1*R)),a.push(this.productions_[ne[1]][0]),u.push(ee.$),c.push(ee._$),q=l[a[a.length-2]][a[a.length-1]],a.push(q);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()+`
58
58
  `+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.
59
- `+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}();dc.default=Eq;pw.exports=dc.default});var yc=b((gc,gw)=>{"use strict";gc.__esModule=!0;function Aq(e){return e&&e.__esModule?e:{default:e}}s(Aq,"_interopRequireDefault");var Cq=tr(),Yh=Aq(Cq);function hc(){this.parents=[]}s(hc,"Visitor");hc.prototype={constructor:hc,mutating:!1,acceptKey:s(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!hc.prototype[n.type])throw new Yh.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 Yh.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 Yh.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:mc,Decorator:mc,BlockStatement:hw,DecoratorBlock:hw,PartialStatement:mw,PartialBlockStatement:s(function(t){mw.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:s(function(){},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:mc,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 mc(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(mc,"visitSubExpression");function hw(e){mc.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}s(hw,"visitBlock");function mw(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(mw,"visitPartial");gc.default=hc;gw.exports=gc.default});var vw=b((vc,yw)=>{"use strict";vc.__esModule=!0;function Iq(e){return e&&e.__esModule?e:{default:e}}s(Iq,"_interopRequireDefault");var Rq=yc(),jq=Iq(Rq);function Fr(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}s(Fr,"WhitespaceControl");Fr.prototype=new jq.default;Fr.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=Jh(n,i,r),l=Qh(n,i,r),p=u.openStandalone&&c,f=u.closeStandalone&&l,d=u.inlineStandalone&&c&&l;u.close&&Si(n,i,!0),u.open&&kn(n,i,!0),t&&d&&(Si(n,i),kn(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Si((a.program||a.inverse).body),kn(n,i)),t&&f&&(Si(n,i),kn((a.inverse||a.program).body))}}return e};Fr.prototype.BlockStatement=Fr.prototype.DecoratorBlock=Fr.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:Qh(t.body),closeStandalone:Jh((n||t).body)};if(e.openStrip.close&&Si(t.body,null,!0),r){var a=e.inverseStrip;a.open&&kn(t.body,null,!0),a.close&&Si(n.body,null,!0),e.closeStrip.open&&kn(i.body,null,!0),!this.options.ignoreStandalone&&Jh(t.body)&&Qh(n.body)&&(kn(t.body),Si(n.body))}else e.closeStrip.open&&kn(t.body,null,!0);return o};Fr.prototype.Decorator=Fr.prototype.MustacheStatement=function(e){return e.strip};Fr.prototype.PartialStatement=Fr.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function Jh(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(Jh,"isPrevWhitespace");function Qh(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(Qh,"isNextWhitespace");function Si(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(Si,"omitRight");function kn(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(kn,"omitLeft");vc.default=Fr;yw.exports=vc.default});var bw=b(rr=>{"use strict";rr.__esModule=!0;rr.SourceLocation=Mq;rr.id=Tq;rr.stripFlags=qq;rr.stripComment=Dq;rr.preparePath=Lq;rr.prepareMustache=Fq;rr.prepareRawBlock=Vq;rr.prepareBlock=Bq;rr.prepareProgram=Hq;rr.preparePartialBlock=Uq;function kq(e){return e&&e.__esModule?e:{default:e}}s(kq,"_interopRequireDefault");var Nq=tr(),Xh=kq(Nq);function em(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new Xh.default(e.path.original+" doesn't match "+t,r)}}s(em,"validateClose");function Mq(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(Mq,"SourceLocation");function Tq(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}s(Tq,"id");function qq(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}s(qq,"stripFlags");function Dq(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}s(Dq,"stripComment");function Lq(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 Xh.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(Lq,"preparePath");function Fq(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(Fq,"prepareMustache");function Vq(e,t,r,n){em(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(Vq,"prepareRawBlock");function Bq(e,t,r,n,i,o){n&&n.path&&em(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var u=void 0,c=void 0;if(r){if(a)throw new Xh.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(Bq,"prepareBlock");function Hq(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(Hq,"prepareProgram");function Uq(e,t,r,n){return em(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(Uq,"preparePartialBlock")});var ww=b(Jo=>{"use strict";Jo.__esModule=!0;Jo.parseWithoutProcessing=Sw;Jo.parse=Qq;function zq(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(zq,"_interopRequireWildcard");function _w(e){return e&&e.__esModule?e:{default:e}}s(_w,"_interopRequireDefault");var Gq=dw(),tm=_w(Gq),Wq=vw(),Kq=_w(Wq),Zq=bw(),Yq=zq(Zq),Jq=Pt();Jo.parser=tm.default;var bc={};Jq.extend(bc,Yq);function Sw(e,t){if(e.type==="Program")return e;tm.default.yy=bc,bc.locInfo=function(n){return new bc.SourceLocation(t&&t.srcName,n)};var r=tm.default.parse(e);return r}s(Sw,"parseWithoutProcessing");function Qq(e,t){var r=Sw(e,t),n=new Kq.default(t);return n.accept(r)}s(Qq,"parse")});var xw=b(ta=>{"use strict";ta.__esModule=!0;ta.Compiler=rm;ta.precompile=r4;ta.compile=n4;function Pw(e){return e&&e.__esModule?e:{default:e}}s(Pw,"_interopRequireDefault");var Xq=tr(),Xo=Pw(Xq),ea=Pt(),e4=Zh(),Qo=Pw(e4),t4=[].slice;function rm(){}s(rm,"Compiler");rm.prototype={compiler:rm,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||!Ow(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=ea.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 Xo.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){$w(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 Xo.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){$w(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 Xo.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,Qo.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:s(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=Qo.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:t4.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:s(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:s(function(t){var r=Qo.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&Qo.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&&!Qo.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&&ea.indexOf(i,t);if(i&&o>=0)return[r,o]}},"blockParamIndex")};function r4(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Xo.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(r4,"precompile");function n4(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Xo.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=ea.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(n4,"compile");function Ow(e,t){if(e===t)return!0;if(ea.isArray(e)&&ea.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!Ow(e[r],t[r]))return!1;return!0}}s(Ow,"argEquals");function $w(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($w,"transformLiteralToPath")});var Aw=b(nm=>{var Ew="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");nm.encode=function(e){if(0<=e&&e<Ew.length)return Ew[e];throw new TypeError("Must be between 0 and 63: "+e)};nm.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 om=b(sm=>{var Cw=Aw(),im=5,Iw=1<<im,Rw=Iw-1,jw=Iw;function i4(e){return e<0?(-e<<1)+1:(e<<1)+0}s(i4,"toVLQSigned");function s4(e){var t=(e&1)===1,r=e>>1;return t?-r:r}s(s4,"fromVLQSigned");sm.encode=s(function(t){var r="",n,i=i4(t);do n=i&Rw,i>>>=im,i>0&&(n|=jw),r+=Cw.encode(n);while(i>0);return r},"base64VLQ_encode");sm.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=Cw.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));u=!!(c&jw),c&=Rw,o=o+(c<<a),a+=im}while(u);n.value=s4(o),n.rest=r},"base64VLQ_decode")});var Cs=b(mt=>{function o4(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(o4,"getArg");mt.getArg=o4;var kw=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,a4=/^data:.+\,.+$/;function ra(e){var t=e.match(kw);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}s(ra,"urlParse");mt.urlParse=ra;function Es(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(Es,"urlGenerate");mt.urlGenerate=Es;function am(e){var t=e,r=ra(e);if(r){if(!r.path)return e;t=r.path}for(var n=mt.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,Es(r)):t}s(am,"normalize");mt.normalize=am;function Nw(e,t){e===""&&(e="."),t===""&&(t=".");var r=ra(t),n=ra(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Es(r);if(r||t.match(a4))return t;if(n&&!n.host&&!n.path)return n.host=t,Es(n);var i=t.charAt(0)==="/"?t:am(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Es(n)):i}s(Nw,"join");mt.join=Nw;mt.isAbsolute=function(e){return e.charAt(0)==="/"||kw.test(e)};function u4(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(u4,"relative");mt.relative=u4;var Mw=function(){var e=Object.create(null);return!("__proto__"in e)}();function Tw(e){return e}s(Tw,"identity");function c4(e){return qw(e)?"$"+e:e}s(c4,"toSetString");mt.toSetString=Mw?Tw:c4;function l4(e){return qw(e)?e.slice(1):e}s(l4,"fromSetString");mt.fromSetString=Mw?Tw:l4;function qw(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(qw,"isProtoString");function f4(e,t,r){var n=As(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:As(e.name,t.name)}s(f4,"compareByOriginalPositions");mt.compareByOriginalPositions=f4;function p4(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=As(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:As(e.name,t.name)}s(p4,"compareByGeneratedPositionsDeflated");mt.compareByGeneratedPositionsDeflated=p4;function As(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}s(As,"strcmp");function d4(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=As(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:As(e.name,t.name)}s(d4,"compareByGeneratedPositionsInflated");mt.compareByGeneratedPositionsInflated=d4;function h4(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}s(h4,"parseSourceMapInput");mt.parseSourceMapInput=h4;function m4(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=ra(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=Nw(Es(n),t)}return am(t)}s(m4,"computeSourceURL");mt.computeSourceURL=m4});var lm=b(Dw=>{var um=Cs(),cm=Object.prototype.hasOwnProperty,wi=typeof Map<"u";function tn(){this._array=[],this._set=wi?new Map:Object.create(null)}s(tn,"ArraySet");tn.fromArray=s(function(t,r){for(var n=new tn,i=0,o=t.length;i<o;i++)n.add(t[i],r);return n},"ArraySet_fromArray");tn.prototype.size=s(function(){return wi?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");tn.prototype.add=s(function(t,r){var n=wi?t:um.toSetString(t),i=wi?this.has(t):cm.call(this._set,n),o=this._array.length;(!i||r)&&this._array.push(t),i||(wi?this._set.set(t,o):this._set[n]=o)},"ArraySet_add");tn.prototype.has=s(function(t){if(wi)return this._set.has(t);var r=um.toSetString(t);return cm.call(this._set,r)},"ArraySet_has");tn.prototype.indexOf=s(function(t){if(wi){var r=this._set.get(t);if(r>=0)return r}else{var n=um.toSetString(t);if(cm.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");tn.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");tn.prototype.toArray=s(function(){return this._array.slice()},"ArraySet_toArray");Dw.ArraySet=tn});var Vw=b(Fw=>{var Lw=Cs();function g4(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,o=t.generatedColumn;return n>r||n==r&&o>=i||Lw.compareByGeneratedPositionsInflated(e,t)<=0}s(g4,"generatedPositionAfter");function _c(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}s(_c,"MappingList");_c.prototype.unsortedForEach=s(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");_c.prototype.add=s(function(t){g4(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");_c.prototype.toArray=s(function(){return this._sorted||(this._array.sort(Lw.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");Fw.MappingList=_c});var fm=b(Bw=>{var na=om(),Qe=Cs(),Sc=lm().ArraySet,y4=Vw().MappingList;function nr(e){e||(e={}),this._file=Qe.getArg(e,"file",null),this._sourceRoot=Qe.getArg(e,"sourceRoot",null),this._skipValidation=Qe.getArg(e,"skipValidation",!1),this._sources=new Sc,this._names=new Sc,this._mappings=new y4,this._sourcesContents=null}s(nr,"SourceMapGenerator");nr.prototype._version=3;nr.fromSourceMap=s(function(t){var r=t.sourceRoot,n=new nr({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=Qe.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=Qe.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");nr.prototype.addMapping=s(function(t){var r=Qe.getArg(t,"generated"),n=Qe.getArg(t,"original",null),i=Qe.getArg(t,"source",null),o=Qe.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");nr.prototype.setSourceContent=s(function(t,r){var n=t;this._sourceRoot!=null&&(n=Qe.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Qe.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Qe.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");nr.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=Qe.relative(o,i));var a=new Sc,u=new Sc;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=Qe.join(n,c.source)),o!=null&&(c.source=Qe.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=Qe.join(n,c)),o!=null&&(c=Qe.relative(o,c)),this.setSourceContent(c,l))},this)},"SourceMapGenerator_applySourceMap");nr.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");nr.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,y=d.length;h<y;h++){if(l=d[h],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(h>0){if(!Qe.compareByGeneratedPositionsInflated(l,d[h-1]))continue;c+=","}c+=na.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),c+=na.encode(f-a),a=f,c+=na.encode(l.originalLine-1-i),i=l.originalLine-1,c+=na.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),c+=na.encode(p-o),o=p)),u+=c}return u},"SourceMapGenerator_serializeMappings");nr.prototype._generateSourcesContent=s(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Qe.relative(r,n));var i=Qe.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");nr.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");nr.prototype.toString=s(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");Bw.SourceMapGenerator=nr});var Hw=b($i=>{$i.GREATEST_LOWER_BOUND=1;$i.LEAST_UPPER_BOUND=2;function pm(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?pm(a,t,r,n,i,o):o==$i.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?pm(e,a,r,n,i,o):o==$i.LEAST_UPPER_BOUND?a:e<0?-1:e}s(pm,"recursiveSearch");$i.search=s(function(t,r,n,i){if(r.length===0)return-1;var o=pm(-1,r.length,t,r,n,i||$i.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 zw=b(Uw=>{function dm(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}s(dm,"swap");function v4(e,t){return Math.round(e+Math.random()*(t-e))}s(v4,"randomIntInRange");function hm(e,t,r,n){if(r<n){var i=v4(r,n),o=r-1;dm(e,i,n);for(var a=e[n],u=r;u<n;u++)t(e[u],a)<=0&&(o+=1,dm(e,o,u));dm(e,o+1,u);var c=o+1;hm(e,t,r,c-1),hm(e,t,c+1,n)}}s(hm,"doQuickSort");Uw.quickSort=function(e,t){hm(e,t,0,e.length-1)}});var Ww=b(wc=>{var U=Cs(),mm=Hw(),Is=lm().ArraySet,b4=om(),ia=zw().quickSort;function Me(e,t){var r=e;return typeof e=="string"&&(r=U.parseSourceMapInput(e)),r.sections!=null?new _r(r,t):new ct(r,t)}s(Me,"SourceMapConsumer");Me.fromSourceMap=function(e,t){return ct.fromSourceMap(e,t)};Me.prototype._version=3;Me.prototype.__generatedMappings=null;Object.defineProperty(Me.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Me.prototype.__originalMappings=null;Object.defineProperty(Me.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Me.prototype._charIsMappingSeparator=s(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Me.prototype._parseMappings=s(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Me.GENERATED_ORDER=1;Me.ORIGINAL_ORDER=2;Me.GREATEST_LOWER_BOUND=1;Me.LEAST_UPPER_BOUND=2;Me.prototype.eachMapping=s(function(t,r,n){var i=r||null,o=n||Me.GENERATED_ORDER,a;switch(o){case Me.GENERATED_ORDER:a=this._generatedMappings;break;case Me.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=U.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");Me.prototype.allGeneratedPositionsFor=s(function(t){var r=U.getArg(t,"line"),n={source:U.getArg(t,"source"),originalLine:r,originalColumn:U.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",U.compareByOriginalPositions,mm.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:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var c=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==c;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return i},"SourceMapConsumer_allGeneratedPositionsFor");wc.SourceMapConsumer=Me;function ct(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sources"),o=U.getArg(r,"names",[]),a=U.getArg(r,"sourceRoot",null),u=U.getArg(r,"sourcesContent",null),c=U.getArg(r,"mappings"),l=U.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=U.normalize(a)),i=i.map(String).map(U.normalize).map(function(p){return a&&U.isAbsolute(a)&&U.isAbsolute(p)?U.relative(a,p):p}),this._names=Is.fromArray(o.map(String),!0),this._sources=Is.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return U.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=u,this._mappings=c,this._sourceMapURL=t,this.file=l}s(ct,"BasicSourceMapConsumer");ct.prototype=Object.create(Me.prototype);ct.prototype.consumer=Me;ct.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=U.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};ct.fromSourceMap=s(function(t,r){var n=Object.create(ct.prototype),i=n._names=Is.fromArray(t._names.toArray(),!0),o=n._sources=Is.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 U.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 Gw;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 ia(n.__originalMappings,U.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");ct.prototype._version=3;Object.defineProperty(ct.prototype,"sources",{get:s(function(){return this._absoluteSources.slice()},"get")});function Gw(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s(Gw,"Mapping");ct.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=[],y=[],v,g,$,A,k;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(v=new Gw,v.generatedLine=n,A=p;A<l&&!this._charIsMappingSeparator(t,A);A++);if(g=t.slice(p,A),$=f[g],$)p+=g.length;else{for($=[];p<A;)b4.decode(t,p,d),k=d.value,p=d.rest,$.push(k);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[g]=$}v.generatedColumn=i+$[0],i=v.generatedColumn,$.length>1&&(v.source=u+$[1],u+=$[1],v.originalLine=o+$[2],o=v.originalLine,v.originalLine+=1,v.originalColumn=a+$[3],a=v.originalColumn,$.length>4&&(v.name=c+$[4],c+=$[4])),y.push(v),typeof v.originalLine=="number"&&h.push(v)}ia(y,U.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,ia(h,U.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");ct.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 mm.search(t,r,o,a)},"SourceMapConsumer_findMapping");ct.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");ct.prototype.originalPositionFor=s(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",U.compareByGeneratedPositionsDeflated,U.getArg(t,"bias",Me.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var o=U.getArg(i,"source",null);o!==null&&(o=this._sources.at(o),o=U.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=U.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,line:U.getArg(i,"originalLine",null),column:U.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");ct.prototype.hasContentsOfAllSources=s(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");ct.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=U.relative(this.sourceRoot,i));var o;if(this.sourceRoot!=null&&(o=U.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");ct.prototype.generatedPositionFor=s(function(t){var r=U.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:U.getArg(t,"line"),originalColumn:U.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,U.getArg(t,"bias",Me.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:U.getArg(o,"generatedLine",null),column:U.getArg(o,"generatedColumn",null),lastColumn:U.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");wc.BasicSourceMapConsumer=ct;function _r(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Is,this._names=new Is;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=U.getArg(a,"offset"),c=U.getArg(u,"line"),l=U.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 Me(U.getArg(a,"map"),t)}})}s(_r,"IndexedSourceMapConsumer");_r.prototype=Object.create(Me.prototype);_r.prototype.constructor=Me;_r.prototype._version=3;Object.defineProperty(_r.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")});_r.prototype.originalPositionFor=s(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=mm.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");_r.prototype.hasContentsOfAllSources=s(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");_r.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");_r.prototype.generatedPositionFor=s(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(U.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");_r.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=U.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)}ia(this.__generatedMappings,U.compareByGeneratedPositionsDeflated),ia(this.__originalMappings,U.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");wc.IndexedSourceMapConsumer=_r});var Zw=b(Kw=>{var _4=fm().SourceMapGenerator,$c=Cs(),S4=/(\r?\n)/,w4=10,Rs="$$$isSourceNode$$$";function Vt(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[Rs]=!0,n!=null&&this.add(n)}s(Vt,"SourceNode");Vt.fromStringWithSourceMap=s(function(t,r,n){var i=new Vt,o=t.split(S4),a=0,u=s(function(){var d=y(),h=y()||"";return d+h;function y(){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]||"",y=h.substr(0,d.generatedColumn-l);o[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,y),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=$c.join(n,d)),i.setSourceContent(d,h))}),i;function f(d,h){if(d===null||d.source===void 0)i.add(h);else{var y=n?$c.join(n,d.source):d.source;i.add(new Vt(d.originalLine,d.originalColumn,y,h,d.name))}}s(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Vt.prototype.add=s(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Rs]||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");Vt.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[Rs]||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");Vt.prototype.walk=s(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Rs]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Vt.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");Vt.prototype.replaceRight=s(function(t,r){var n=this.children[this.children.length-1];return n[Rs]?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");Vt.prototype.setSourceContent=s(function(t,r){this.sourceContents[$c.toSetString(t)]=r},"SourceNode_setSourceContent");Vt.prototype.walkSourceContents=s(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Rs]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t($c.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Vt.prototype.toString=s(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Vt.prototype.toStringWithSourceMap=s(function(t){var r={code:"",line:1,column:0},n=new _4(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)===w4?(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");Kw.SourceNode=Vt});var Yw=b(Pc=>{Pc.SourceMapGenerator=fm().SourceMapGenerator;Pc.SourceMapConsumer=Ww().SourceMapConsumer;Pc.SourceNode=Zw().SourceNode});var e$=b((Oc,Xw)=>{"use strict";Oc.__esModule=!0;var ym=Pt(),Pi=void 0;try{(typeof define!="function"||!define.amd)&&(Jw=Yw(),Pi=Jw.SourceNode)}catch{}var Jw;Pi||(Pi=s(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Pi.prototype={add:s(function(t){ym.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:s(function(t){ym.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 gm(e,t,r){if(ym.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(gm,"castChunk");function Qw(e){this.srcFile=e,this.source=[]}s(Qw,"CodeGen");Qw.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
+ `+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}();dc.default=Eq;pw.exports=dc.default});var yc=b((gc,gw)=>{"use strict";gc.__esModule=!0;function Aq(e){return e&&e.__esModule?e:{default:e}}s(Aq,"_interopRequireDefault");var Cq=tr(),Yh=Aq(Cq);function hc(){this.parents=[]}s(hc,"Visitor");hc.prototype={constructor:hc,mutating:!1,acceptKey:s(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!hc.prototype[n.type])throw new Yh.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 Yh.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 Yh.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:mc,Decorator:mc,BlockStatement:hw,DecoratorBlock:hw,PartialStatement:mw,PartialBlockStatement:s(function(t){mw.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:s(function(){},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:mc,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 mc(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(mc,"visitSubExpression");function hw(e){mc.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}s(hw,"visitBlock");function mw(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(mw,"visitPartial");gc.default=hc;gw.exports=gc.default});var vw=b((vc,yw)=>{"use strict";vc.__esModule=!0;function Iq(e){return e&&e.__esModule?e:{default:e}}s(Iq,"_interopRequireDefault");var Rq=yc(),jq=Iq(Rq);function Fr(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}s(Fr,"WhitespaceControl");Fr.prototype=new jq.default;Fr.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=Jh(n,i,r),l=Qh(n,i,r),p=u.openStandalone&&c,f=u.closeStandalone&&l,d=u.inlineStandalone&&c&&l;u.close&&Si(n,i,!0),u.open&&kn(n,i,!0),t&&d&&(Si(n,i),kn(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Si((a.program||a.inverse).body),kn(n,i)),t&&f&&(Si(n,i),kn((a.inverse||a.program).body))}}return e};Fr.prototype.BlockStatement=Fr.prototype.DecoratorBlock=Fr.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:Qh(t.body),closeStandalone:Jh((n||t).body)};if(e.openStrip.close&&Si(t.body,null,!0),r){var a=e.inverseStrip;a.open&&kn(t.body,null,!0),a.close&&Si(n.body,null,!0),e.closeStrip.open&&kn(i.body,null,!0),!this.options.ignoreStandalone&&Jh(t.body)&&Qh(n.body)&&(kn(t.body),Si(n.body))}else e.closeStrip.open&&kn(t.body,null,!0);return o};Fr.prototype.Decorator=Fr.prototype.MustacheStatement=function(e){return e.strip};Fr.prototype.PartialStatement=Fr.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function Jh(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(Jh,"isPrevWhitespace");function Qh(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(Qh,"isNextWhitespace");function Si(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(Si,"omitRight");function kn(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(kn,"omitLeft");vc.default=Fr;yw.exports=vc.default});var bw=b(rr=>{"use strict";rr.__esModule=!0;rr.SourceLocation=Mq;rr.id=Tq;rr.stripFlags=qq;rr.stripComment=Dq;rr.preparePath=Lq;rr.prepareMustache=Fq;rr.prepareRawBlock=Vq;rr.prepareBlock=Bq;rr.prepareProgram=Hq;rr.preparePartialBlock=Uq;function kq(e){return e&&e.__esModule?e:{default:e}}s(kq,"_interopRequireDefault");var Nq=tr(),Xh=kq(Nq);function em(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new Xh.default(e.path.original+" doesn't match "+t,r)}}s(em,"validateClose");function Mq(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(Mq,"SourceLocation");function Tq(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}s(Tq,"id");function qq(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}s(qq,"stripFlags");function Dq(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}s(Dq,"stripComment");function Lq(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 Xh.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(Lq,"preparePath");function Fq(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(Fq,"prepareMustache");function Vq(e,t,r,n){em(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(Vq,"prepareRawBlock");function Bq(e,t,r,n,i,o){n&&n.path&&em(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var u=void 0,c=void 0;if(r){if(a)throw new Xh.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(Bq,"prepareBlock");function Hq(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(Hq,"prepareProgram");function Uq(e,t,r,n){return em(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(Uq,"preparePartialBlock")});var ww=b(Jo=>{"use strict";Jo.__esModule=!0;Jo.parseWithoutProcessing=Sw;Jo.parse=Qq;function zq(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(zq,"_interopRequireWildcard");function _w(e){return e&&e.__esModule?e:{default:e}}s(_w,"_interopRequireDefault");var Gq=dw(),tm=_w(Gq),Wq=vw(),Kq=_w(Wq),Zq=bw(),Yq=zq(Zq),Jq=Pt();Jo.parser=tm.default;var bc={};Jq.extend(bc,Yq);function Sw(e,t){if(e.type==="Program")return e;tm.default.yy=bc,bc.locInfo=function(n){return new bc.SourceLocation(t&&t.srcName,n)};var r=tm.default.parse(e);return r}s(Sw,"parseWithoutProcessing");function Qq(e,t){var r=Sw(e,t),n=new Kq.default(t);return n.accept(r)}s(Qq,"parse")});var xw=b(ta=>{"use strict";ta.__esModule=!0;ta.Compiler=rm;ta.precompile=r4;ta.compile=n4;function Pw(e){return e&&e.__esModule?e:{default:e}}s(Pw,"_interopRequireDefault");var Xq=tr(),Xo=Pw(Xq),ea=Pt(),e4=Zh(),Qo=Pw(e4),t4=[].slice;function rm(){}s(rm,"Compiler");rm.prototype={compiler:rm,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||!Ow(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=ea.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 Xo.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){$w(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 Xo.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){$w(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 Xo.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,Qo.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:s(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=Qo.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:t4.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:s(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:s(function(t){var r=Qo.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&Qo.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&&!Qo.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&&ea.indexOf(i,t);if(i&&o>=0)return[r,o]}},"blockParamIndex")};function r4(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Xo.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(r4,"precompile");function n4(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Xo.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=ea.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(n4,"compile");function Ow(e,t){if(e===t)return!0;if(ea.isArray(e)&&ea.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!Ow(e[r],t[r]))return!1;return!0}}s(Ow,"argEquals");function $w(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($w,"transformLiteralToPath")});var Aw=b(nm=>{var Ew="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");nm.encode=function(e){if(0<=e&&e<Ew.length)return Ew[e];throw new TypeError("Must be between 0 and 63: "+e)};nm.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 om=b(sm=>{var Cw=Aw(),im=5,Iw=1<<im,Rw=Iw-1,jw=Iw;function i4(e){return e<0?(-e<<1)+1:(e<<1)+0}s(i4,"toVLQSigned");function s4(e){var t=(e&1)===1,r=e>>1;return t?-r:r}s(s4,"fromVLQSigned");sm.encode=s(function(t){var r="",n,i=i4(t);do n=i&Rw,i>>>=im,i>0&&(n|=jw),r+=Cw.encode(n);while(i>0);return r},"base64VLQ_encode");sm.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=Cw.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));u=!!(c&jw),c&=Rw,o=o+(c<<a),a+=im}while(u);n.value=s4(o),n.rest=r},"base64VLQ_decode")});var Cs=b(gt=>{function o4(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(o4,"getArg");gt.getArg=o4;var kw=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,a4=/^data:.+\,.+$/;function ra(e){var t=e.match(kw);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}s(ra,"urlParse");gt.urlParse=ra;function Es(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(Es,"urlGenerate");gt.urlGenerate=Es;function am(e){var t=e,r=ra(e);if(r){if(!r.path)return e;t=r.path}for(var n=gt.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,Es(r)):t}s(am,"normalize");gt.normalize=am;function Nw(e,t){e===""&&(e="."),t===""&&(t=".");var r=ra(t),n=ra(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Es(r);if(r||t.match(a4))return t;if(n&&!n.host&&!n.path)return n.host=t,Es(n);var i=t.charAt(0)==="/"?t:am(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Es(n)):i}s(Nw,"join");gt.join=Nw;gt.isAbsolute=function(e){return e.charAt(0)==="/"||kw.test(e)};function u4(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(u4,"relative");gt.relative=u4;var Mw=function(){var e=Object.create(null);return!("__proto__"in e)}();function Tw(e){return e}s(Tw,"identity");function c4(e){return qw(e)?"$"+e:e}s(c4,"toSetString");gt.toSetString=Mw?Tw:c4;function l4(e){return qw(e)?e.slice(1):e}s(l4,"fromSetString");gt.fromSetString=Mw?Tw:l4;function qw(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(qw,"isProtoString");function f4(e,t,r){var n=As(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:As(e.name,t.name)}s(f4,"compareByOriginalPositions");gt.compareByOriginalPositions=f4;function p4(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=As(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:As(e.name,t.name)}s(p4,"compareByGeneratedPositionsDeflated");gt.compareByGeneratedPositionsDeflated=p4;function As(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}s(As,"strcmp");function d4(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=As(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:As(e.name,t.name)}s(d4,"compareByGeneratedPositionsInflated");gt.compareByGeneratedPositionsInflated=d4;function h4(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}s(h4,"parseSourceMapInput");gt.parseSourceMapInput=h4;function m4(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=ra(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=Nw(Es(n),t)}return am(t)}s(m4,"computeSourceURL");gt.computeSourceURL=m4});var lm=b(Dw=>{var um=Cs(),cm=Object.prototype.hasOwnProperty,wi=typeof Map<"u";function tn(){this._array=[],this._set=wi?new Map:Object.create(null)}s(tn,"ArraySet");tn.fromArray=s(function(t,r){for(var n=new tn,i=0,o=t.length;i<o;i++)n.add(t[i],r);return n},"ArraySet_fromArray");tn.prototype.size=s(function(){return wi?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");tn.prototype.add=s(function(t,r){var n=wi?t:um.toSetString(t),i=wi?this.has(t):cm.call(this._set,n),o=this._array.length;(!i||r)&&this._array.push(t),i||(wi?this._set.set(t,o):this._set[n]=o)},"ArraySet_add");tn.prototype.has=s(function(t){if(wi)return this._set.has(t);var r=um.toSetString(t);return cm.call(this._set,r)},"ArraySet_has");tn.prototype.indexOf=s(function(t){if(wi){var r=this._set.get(t);if(r>=0)return r}else{var n=um.toSetString(t);if(cm.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");tn.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");tn.prototype.toArray=s(function(){return this._array.slice()},"ArraySet_toArray");Dw.ArraySet=tn});var Vw=b(Fw=>{var Lw=Cs();function g4(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,o=t.generatedColumn;return n>r||n==r&&o>=i||Lw.compareByGeneratedPositionsInflated(e,t)<=0}s(g4,"generatedPositionAfter");function _c(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}s(_c,"MappingList");_c.prototype.unsortedForEach=s(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");_c.prototype.add=s(function(t){g4(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");_c.prototype.toArray=s(function(){return this._sorted||(this._array.sort(Lw.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");Fw.MappingList=_c});var fm=b(Bw=>{var na=om(),Qe=Cs(),Sc=lm().ArraySet,y4=Vw().MappingList;function nr(e){e||(e={}),this._file=Qe.getArg(e,"file",null),this._sourceRoot=Qe.getArg(e,"sourceRoot",null),this._skipValidation=Qe.getArg(e,"skipValidation",!1),this._sources=new Sc,this._names=new Sc,this._mappings=new y4,this._sourcesContents=null}s(nr,"SourceMapGenerator");nr.prototype._version=3;nr.fromSourceMap=s(function(t){var r=t.sourceRoot,n=new nr({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=Qe.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=Qe.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");nr.prototype.addMapping=s(function(t){var r=Qe.getArg(t,"generated"),n=Qe.getArg(t,"original",null),i=Qe.getArg(t,"source",null),o=Qe.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");nr.prototype.setSourceContent=s(function(t,r){var n=t;this._sourceRoot!=null&&(n=Qe.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Qe.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Qe.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");nr.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=Qe.relative(o,i));var a=new Sc,u=new Sc;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=Qe.join(n,c.source)),o!=null&&(c.source=Qe.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=Qe.join(n,c)),o!=null&&(c=Qe.relative(o,c)),this.setSourceContent(c,l))},this)},"SourceMapGenerator_applySourceMap");nr.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");nr.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,y=d.length;h<y;h++){if(l=d[h],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(h>0){if(!Qe.compareByGeneratedPositionsInflated(l,d[h-1]))continue;c+=","}c+=na.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),c+=na.encode(f-a),a=f,c+=na.encode(l.originalLine-1-i),i=l.originalLine-1,c+=na.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),c+=na.encode(p-o),o=p)),u+=c}return u},"SourceMapGenerator_serializeMappings");nr.prototype._generateSourcesContent=s(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Qe.relative(r,n));var i=Qe.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");nr.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");nr.prototype.toString=s(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");Bw.SourceMapGenerator=nr});var Hw=b($i=>{$i.GREATEST_LOWER_BOUND=1;$i.LEAST_UPPER_BOUND=2;function pm(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?pm(a,t,r,n,i,o):o==$i.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?pm(e,a,r,n,i,o):o==$i.LEAST_UPPER_BOUND?a:e<0?-1:e}s(pm,"recursiveSearch");$i.search=s(function(t,r,n,i){if(r.length===0)return-1;var o=pm(-1,r.length,t,r,n,i||$i.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 zw=b(Uw=>{function dm(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}s(dm,"swap");function v4(e,t){return Math.round(e+Math.random()*(t-e))}s(v4,"randomIntInRange");function hm(e,t,r,n){if(r<n){var i=v4(r,n),o=r-1;dm(e,i,n);for(var a=e[n],u=r;u<n;u++)t(e[u],a)<=0&&(o+=1,dm(e,o,u));dm(e,o+1,u);var c=o+1;hm(e,t,r,c-1),hm(e,t,c+1,n)}}s(hm,"doQuickSort");Uw.quickSort=function(e,t){hm(e,t,0,e.length-1)}});var Ww=b(wc=>{var U=Cs(),mm=Hw(),Is=lm().ArraySet,b4=om(),ia=zw().quickSort;function Me(e,t){var r=e;return typeof e=="string"&&(r=U.parseSourceMapInput(e)),r.sections!=null?new _r(r,t):new lt(r,t)}s(Me,"SourceMapConsumer");Me.fromSourceMap=function(e,t){return lt.fromSourceMap(e,t)};Me.prototype._version=3;Me.prototype.__generatedMappings=null;Object.defineProperty(Me.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Me.prototype.__originalMappings=null;Object.defineProperty(Me.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Me.prototype._charIsMappingSeparator=s(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Me.prototype._parseMappings=s(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Me.GENERATED_ORDER=1;Me.ORIGINAL_ORDER=2;Me.GREATEST_LOWER_BOUND=1;Me.LEAST_UPPER_BOUND=2;Me.prototype.eachMapping=s(function(t,r,n){var i=r||null,o=n||Me.GENERATED_ORDER,a;switch(o){case Me.GENERATED_ORDER:a=this._generatedMappings;break;case Me.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=U.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");Me.prototype.allGeneratedPositionsFor=s(function(t){var r=U.getArg(t,"line"),n={source:U.getArg(t,"source"),originalLine:r,originalColumn:U.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",U.compareByOriginalPositions,mm.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:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var c=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==c;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return i},"SourceMapConsumer_allGeneratedPositionsFor");wc.SourceMapConsumer=Me;function lt(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sources"),o=U.getArg(r,"names",[]),a=U.getArg(r,"sourceRoot",null),u=U.getArg(r,"sourcesContent",null),c=U.getArg(r,"mappings"),l=U.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=U.normalize(a)),i=i.map(String).map(U.normalize).map(function(p){return a&&U.isAbsolute(a)&&U.isAbsolute(p)?U.relative(a,p):p}),this._names=Is.fromArray(o.map(String),!0),this._sources=Is.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return U.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=u,this._mappings=c,this._sourceMapURL=t,this.file=l}s(lt,"BasicSourceMapConsumer");lt.prototype=Object.create(Me.prototype);lt.prototype.consumer=Me;lt.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=U.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};lt.fromSourceMap=s(function(t,r){var n=Object.create(lt.prototype),i=n._names=Is.fromArray(t._names.toArray(),!0),o=n._sources=Is.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 U.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 Gw;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 ia(n.__originalMappings,U.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");lt.prototype._version=3;Object.defineProperty(lt.prototype,"sources",{get:s(function(){return this._absoluteSources.slice()},"get")});function Gw(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s(Gw,"Mapping");lt.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=[],y=[],v,g,$,A,k;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(v=new Gw,v.generatedLine=n,A=p;A<l&&!this._charIsMappingSeparator(t,A);A++);if(g=t.slice(p,A),$=f[g],$)p+=g.length;else{for($=[];p<A;)b4.decode(t,p,d),k=d.value,p=d.rest,$.push(k);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[g]=$}v.generatedColumn=i+$[0],i=v.generatedColumn,$.length>1&&(v.source=u+$[1],u+=$[1],v.originalLine=o+$[2],o=v.originalLine,v.originalLine+=1,v.originalColumn=a+$[3],a=v.originalColumn,$.length>4&&(v.name=c+$[4],c+=$[4])),y.push(v),typeof v.originalLine=="number"&&h.push(v)}ia(y,U.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,ia(h,U.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");lt.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 mm.search(t,r,o,a)},"SourceMapConsumer_findMapping");lt.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");lt.prototype.originalPositionFor=s(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",U.compareByGeneratedPositionsDeflated,U.getArg(t,"bias",Me.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var o=U.getArg(i,"source",null);o!==null&&(o=this._sources.at(o),o=U.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=U.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,line:U.getArg(i,"originalLine",null),column:U.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");lt.prototype.hasContentsOfAllSources=s(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");lt.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=U.relative(this.sourceRoot,i));var o;if(this.sourceRoot!=null&&(o=U.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");lt.prototype.generatedPositionFor=s(function(t){var r=U.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:U.getArg(t,"line"),originalColumn:U.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,U.getArg(t,"bias",Me.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:U.getArg(o,"generatedLine",null),column:U.getArg(o,"generatedColumn",null),lastColumn:U.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");wc.BasicSourceMapConsumer=lt;function _r(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Is,this._names=new Is;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=U.getArg(a,"offset"),c=U.getArg(u,"line"),l=U.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 Me(U.getArg(a,"map"),t)}})}s(_r,"IndexedSourceMapConsumer");_r.prototype=Object.create(Me.prototype);_r.prototype.constructor=Me;_r.prototype._version=3;Object.defineProperty(_r.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")});_r.prototype.originalPositionFor=s(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=mm.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");_r.prototype.hasContentsOfAllSources=s(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");_r.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");_r.prototype.generatedPositionFor=s(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(U.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");_r.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=U.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)}ia(this.__generatedMappings,U.compareByGeneratedPositionsDeflated),ia(this.__originalMappings,U.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");wc.IndexedSourceMapConsumer=_r});var Zw=b(Kw=>{var _4=fm().SourceMapGenerator,$c=Cs(),S4=/(\r?\n)/,w4=10,Rs="$$$isSourceNode$$$";function Vt(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[Rs]=!0,n!=null&&this.add(n)}s(Vt,"SourceNode");Vt.fromStringWithSourceMap=s(function(t,r,n){var i=new Vt,o=t.split(S4),a=0,u=s(function(){var d=y(),h=y()||"";return d+h;function y(){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]||"",y=h.substr(0,d.generatedColumn-l);o[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,y),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=$c.join(n,d)),i.setSourceContent(d,h))}),i;function f(d,h){if(d===null||d.source===void 0)i.add(h);else{var y=n?$c.join(n,d.source):d.source;i.add(new Vt(d.originalLine,d.originalColumn,y,h,d.name))}}s(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Vt.prototype.add=s(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Rs]||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");Vt.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[Rs]||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");Vt.prototype.walk=s(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Rs]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Vt.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");Vt.prototype.replaceRight=s(function(t,r){var n=this.children[this.children.length-1];return n[Rs]?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");Vt.prototype.setSourceContent=s(function(t,r){this.sourceContents[$c.toSetString(t)]=r},"SourceNode_setSourceContent");Vt.prototype.walkSourceContents=s(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Rs]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t($c.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Vt.prototype.toString=s(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Vt.prototype.toStringWithSourceMap=s(function(t){var r={code:"",line:1,column:0},n=new _4(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)===w4?(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");Kw.SourceNode=Vt});var Yw=b(Pc=>{Pc.SourceMapGenerator=fm().SourceMapGenerator;Pc.SourceMapConsumer=Ww().SourceMapConsumer;Pc.SourceNode=Zw().SourceNode});var e$=b((Oc,Xw)=>{"use strict";Oc.__esModule=!0;var ym=Pt(),Pi=void 0;try{(typeof define!="function"||!define.amd)&&(Jw=Yw(),Pi=Jw.SourceNode)}catch{}var Jw;Pi||(Pi=s(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Pi.prototype={add:s(function(t){ym.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:s(function(t){ym.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 gm(e,t,r){if(ym.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(gm,"castChunk");function Qw(e){this.srcFile=e,this.source=[]}s(Qw,"CodeGen");Qw.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,`
60
60
  `])}),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 Pi(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 Pi?t:(t=gm(t,this,r),new Pi(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=gm(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(gm(t[n],this));return r},"generateList"),generateArray:s(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};Oc.default=Qw;Xw.exports=Oc.default});var s$=b((xc,i$)=>{"use strict";xc.__esModule=!0;function n$(e){return e&&e.__esModule?e:{default:e}}s(n$,"_interopRequireDefault");var t$=ac(),$4=tr(),vm=n$($4),P4=Pt(),O4=e$(),r$=n$(O4);function js(e){this.value=e}s(js,"Literal");function ks(){}s(ks,"JavaScriptCompiler");ks.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=t$.COMPILER_REVISION,r=t$.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:s(function(t,r,n){return P4.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 vm.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(),`;
61
61
  `]),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) {
62
62
  `),this.decorators.push(`}
@@ -75,11 +75,11 @@ Expecting `+Z.join(", ")+", got '"+(this.terminals_[C]||C)+"'":ue="Parse error o
75
75
  `)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let o="";n.forEach((a,u)=>{let{width:c}=t[u],l=this.negatePadding(t[u]),p=a;if(l>kt.stringWidth(a)&&(p+=" ".repeat(l-kt.stringWidth(a))),t[u].align&&t[u].align!=="left"&&this.wrap){let d=H$[t[u].align];p=d(p,l),kt.stringWidth(p)<l&&(p+=" ".repeat((c||0)-kt.stringWidth(p)-1))}let f=t[u].padding||[0,0,0,0];f[ua]&&(o+=" ".repeat(f[ua])),o+=Im(t[u],p,"| "),o+=p,o+=Im(t[u],p," |"),f[aa]&&(o+=" ".repeat(f[aa])),i===0&&r.length>0&&(o=this.renderInline(o,r[r.length-1]))}),r.push({text:o.replace(/ +$/,""),span:t.span})}),r}renderInline(t,r){let n=t.match(/^ */),i=n?n[0].length:0,o=r.text,a=kt.stringWidth(o.trimRight());return r.span?this.wrap?i<a?t:(r.hidden=!0,o.trimRight()+" ".repeat(i-a)+t.trimLeft()):(r.hidden=!0,o+t):t}rasterize(t){let r=[],n=this.columnWidths(t),i;return t.forEach((o,a)=>{o.width=n[a],this.wrap?i=kt.wrap(o.text,this.negatePadding(o),{hard:!0}).split(`
76
76
  `):i=o.text.split(`
77
77
  `),o.border&&(i.unshift("."+"-".repeat(this.negatePadding(o)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(o)+2)+"'")),o.padding&&(i.unshift(...new Array(o.padding[U$]||0).fill("")),i.push(...new Array(o.padding[z$]||0).fill(""))),i.forEach((u,c)=>{r[c]||r.push([]);let l=r[c];for(let p=0;p<a;p++)l[p]===void 0&&l.push("");l.push(u)})}),r}negatePadding(t){let r=t.width||0;return t.padding&&(r-=(t.padding[ua]||0)+(t.padding[aa]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||kt.stringWidth(a.text));let r=t.length,n=this.width,i=t.map(a=>{if(a.width)return r--,n-=a.width,a.width}),o=r?Math.floor(n/r):0;return i.map((a,u)=>a===void 0?Math.max(o,G$(t[u])):a)}};s(jc,"UI");var Rc=jc;function Im(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}s(Im,"addBorder");function G$(e){let t=e.padding||[],r=1+(t[ua]||0)+(t[aa]||0);return e.border?r+4:r}s(G$,"_minWidth");function W$(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}s(W$,"getWindowWidth");function K$(e,t){e=e.trim();let r=kt.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}s(K$,"alignRight");function Z$(e,t){e=e.trim();let r=kt.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}s(Z$,"alignCenter");var kt;function Rm(e,t){return kt=t,new Rc({width:(e==null?void 0:e.width)||W$(),wrap:e==null?void 0:e.wrap})}s(Rm,"cliui");var jm=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function kc(e){return e.replace(jm,"")}s(kc,"stripAnsi");function km(e,t){let[r,n]=e.match(jm)||["",""];e=kc(e);let i="";for(let o=0;o<e.length;o++)o!==0&&o%t===0&&(i+=`
78
- `),i+=e.charAt(o);return r&&n&&(i=`${r}${i}${n}`),i}s(km,"wrap");function Nc(e){return Rm(e,{stringWidth:s(t=>[...t].length,"stringWidth"),stripAnsi:kc,wrap:km})}s(Nc,"ui");var Ei=require("path"),ca=require("fs");function Mc(e,t){let r=(0,Ei.resolve)(".",e),n;for((0,ca.statSync)(r).isDirectory()||(r=(0,Ei.dirname)(r));;){if(n=t(r,(0,ca.readdirSync)(r)),n)return(0,Ei.resolve)(r,n);if(r=(0,Ei.dirname)(n=r),n===r)break}}s(Mc,"default");var Zm=require("util"),Ym=require("fs"),Jm=require("url");var Dm=require("util"),da=require("path");function Tn(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let o=i?i[0].length:0;o<e.length;o++){let a=e.charAt(o);n&&(n=!1,a=a.toUpperCase()),o!==0&&(a==="-"||a==="_")?n=!0:a!=="-"&&a!=="_"&&(r+=a)}return r}}s(Tn,"camelCase");function la(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let o=r.charAt(i),a=e.charAt(i);o!==a&&i>0?n+=`${t}${r.charAt(i)}`:n+=a}return n}s(la,"decamelize");function fa(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}s(fa,"looksLikeNumber");function Nm(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,r=null,n=null,i=null,o=[];for(let a=0;a<e.length;a++){if(r=n,n=e.charAt(a),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),o[t]||(o[t]=""),o[t]+=n}return o}s(Nm,"tokenizeArgString");var Ht;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Ht||(Ht={}));var Br,qc=class qc{constructor(t){Br=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=Nm(t),o=typeof t=="string",a=Y$(Object.assign(Object.create(null),n.alias)),u=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),c=Object.assign(Object.create(null),n.default),l=n.configObjects||[],p=n.envPrefix,f=u["populate--"],d=f?"--":"_",h=Object.create(null),y=Object.create(null),v=n.__||Br.format,g={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},$=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,A=new RegExp("^--"+u["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(_){let P=typeof _=="object"?_.key:_,j=Object.keys(_).map(function(x){return{boolean:"bools",string:"strings",number:"numbers"}[x]}).filter(Boolean).pop();j&&(g[j][P]=!0),g.arrays[P]=!0,g.keys.push(P)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(_){g.bools[_]=!0,g.keys.push(_)}),[].concat(n.string||[]).filter(Boolean).forEach(function(_){g.strings[_]=!0,g.keys.push(_)}),[].concat(n.number||[]).filter(Boolean).forEach(function(_){g.numbers[_]=!0,g.keys.push(_)}),[].concat(n.count||[]).filter(Boolean).forEach(function(_){g.counts[_]=!0,g.keys.push(_)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(_){g.normalize[_]=!0,g.keys.push(_)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([_,P])=>{typeof P=="number"&&(g.nargs[_]=P,g.keys.push(_))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([_,P])=>{typeof P=="function"&&(g.coercions[_]=P,g.keys.push(_))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(_){g.configs[_]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([_,P])=>{(typeof P=="boolean"||typeof P=="function")&&(g.configs[_]=P)})),Ot(n.key,a,n.default,g.arrays),Object.keys(c).forEach(function(_){(g.aliases[_]||[]).forEach(function(P){c[P]=c[_]})});let k=null;xi();let C=[],I=Object.assign(Object.create(null),{_:[]}),fe={};for(let _=0;_<i.length;_++){let P=i[_],j=P.replace(/^-{3,}/,"---"),x,w,V,T,G,Ye;if(P!=="--"&&/^-/.test(P)&&Ce(P))ne(P);else if(j.match(/^---+(=|$)/)){ne(P);continue}else if(P.match(/^--.+=/)||!u["short-option-groups"]&&P.match(/^-.+=/))T=P.match(/^--?([^=]+)=([\s\S]*)$/),T!==null&&Array.isArray(T)&&T.length>=3&&(te(T[1],g.arrays)?_=Le(_,T[1],i,T[2]):te(T[1],g.nargs)!==!1?_=gt(_,T[1],i,T[2]):ee(T[1],T[2],!0));else if(P.match(A)&&u["boolean-negation"])T=P.match(A),T!==null&&Array.isArray(T)&&T.length>=2&&(w=T[1],ee(w,te(w,g.arrays)?[!1]:!1));else if(P.match(/^--.+/)||!u["short-option-groups"]&&P.match(/^-[^-]+/))T=P.match(/^--?(.+)/),T!==null&&Array.isArray(T)&&T.length>=2&&(w=T[1],te(w,g.arrays)?_=Le(_,w,i):te(w,g.nargs)!==!1?_=gt(_,w,i):(G=i[_+1],G!==void 0&&(!G.match(/^-/)||G.match($))&&!te(w,g.bools)&&!te(w,g.counts)||/^(true|false)$/.test(G)?(ee(w,G),_++):ee(w,_e(w))));else if(P.match(/^-.\..+=/))T=P.match(/^-([^=]+)=([\s\S]*)$/),T!==null&&Array.isArray(T)&&T.length>=3&&ee(T[1],T[2]);else if(P.match(/^-.\..+/)&&!P.match($))G=i[_+1],T=P.match(/^-(.\..+)/),T!==null&&Array.isArray(T)&&T.length>=2&&(w=T[1],G!==void 0&&!G.match(/^-/)&&!te(w,g.bools)&&!te(w,g.counts)?(ee(w,G),_++):ee(w,_e(w)));else if(P.match(/^-[^-]+/)&&!P.match($)){V=P.slice(1,-1).split(""),x=!1;for(let ot=0;ot<V.length;ot++){if(G=P.slice(ot+2),V[ot+1]&&V[ot+1]==="="){Ye=P.slice(ot+3),w=V[ot],te(w,g.arrays)?_=Le(_,w,i,Ye):te(w,g.nargs)!==!1?_=gt(_,w,i,Ye):ee(w,Ye),x=!0;break}if(G==="-"){ee(V[ot],G);continue}if(/[A-Za-z]/.test(V[ot])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(G)&&te(G,g.bools)===!1){ee(V[ot],G),x=!0;break}if(V[ot+1]&&V[ot+1].match(/\W/)){ee(V[ot],G),x=!0;break}else ee(V[ot],_e(V[ot]))}w=P.slice(-1)[0],!x&&w!=="-"&&(te(w,g.arrays)?_=Le(_,w,i):te(w,g.nargs)!==!1?_=gt(_,w,i):(G=i[_+1],G!==void 0&&(!/^(-|--)[^-]/.test(G)||G.match($))&&!te(w,g.bools)&&!te(w,g.counts)||/^(true|false)$/.test(G)?(ee(w,G),_++):ee(w,_e(w))))}else if(P.match(/^-[0-9]$/)&&P.match($)&&te(P.slice(1),g.bools))w=P.slice(1),ee(w,_e(w));else if(P==="--"){C=i.slice(_+1);break}else if(u["halt-at-non-option"]){C=i.slice(_);break}else ne(P)}ge(I,!0),ge(I,!1),Z(I),be(),xe(I,g.aliases,c,!0),Ve(I),u["set-placeholder-key"]&&wr(I),Object.keys(g.counts).forEach(function(_){Bt(I,_.split("."))||ee(_,0)}),f&&C.length&&(I[d]=[]),C.forEach(function(_){I[d].push(_)}),u["camel-case-expansion"]&&u["strip-dashed"]&&Object.keys(I).filter(_=>_!=="--"&&_.includes("-")).forEach(_=>{delete I[_]}),u["strip-aliased"]&&[].concat(...Object.keys(a).map(_=>a[_])).forEach(_=>{u["camel-case-expansion"]&&_.includes("-")&&delete I[_.split(".").map(P=>Tn(P)).join(".")],delete I[_]});function ne(_){let P=q("_",_);(typeof P=="string"||typeof P=="number")&&I._.push(P)}s(ne,"pushPositional");function gt(_,P,j,x){let w,V=te(P,g.nargs);if(V=typeof V!="number"||isNaN(V)?1:V,V===0)return xt(x)||(k=Error(v("Argument unexpected for: %s",P))),ee(P,_e(P)),_;let T=xt(x)?0:1;if(u["nargs-eats-options"])j.length-(_+1)+T<V&&(k=Error(v("Not enough arguments following: %s",P))),T=V;else{for(w=_+1;w<j.length&&(!j[w].match(/^-[^0-9]/)||j[w].match($)||Ce(j[w]));w++)T++;T<V&&(k=Error(v("Not enough arguments following: %s",P)))}let G=Math.min(T,V);for(!xt(x)&&G>0&&(ee(P,x),G--),w=_+1;w<G+_+1;w++)ee(P,j[w]);return _+G}s(gt,"eatNargs");function Le(_,P,j,x){let w=[],V=x||j[_+1],T=te(P,g.nargs);if(te(P,g.bools)&&!/^(true|false)$/.test(V))w.push(!0);else if(xt(V)||xt(x)&&/^-/.test(V)&&!$.test(V)&&!Ce(V)){if(c[P]!==void 0){let G=c[P];w=Array.isArray(G)?G:[G]}}else{xt(x)||w.push(R(P,x,!0));for(let G=_+1;G<j.length&&!(!u["greedy-arrays"]&&w.length>0||T&&typeof T=="number"&&w.length>=T||(V=j[G],/^-/.test(V)&&!$.test(V)&&!Ce(V)));G++)_=G,w.push(R(P,V,o))}return typeof T=="number"&&(T&&w.length<T||isNaN(T)&&w.length===0)&&(k=Error(v("Not enough arguments following: %s",P))),ee(P,w),_}s(Le,"eatArray");function ee(_,P,j=o){if(/-/.test(_)&&u["camel-case-expansion"]){let V=_.split(".").map(function(T){return Tn(T)}).join(".");M(_,V)}let x=R(_,P,j),w=_.split(".");Y(I,w,x),g.aliases[_]&&g.aliases[_].forEach(function(V){let T=V.split(".");Y(I,T,x)}),w.length>1&&u["dot-notation"]&&(g.aliases[w[0]]||[]).forEach(function(V){let T=V.split("."),G=[].concat(w);G.shift(),T=T.concat(G),(g.aliases[_]||[]).includes(T.join("."))||Y(I,T,x)}),te(_,g.normalize)&&!te(_,g.arrays)&&[_].concat(g.aliases[_]||[]).forEach(function(T){Object.defineProperty(fe,T,{enumerable:!0,get(){return P},set(G){P=typeof G=="string"?Br.normalize(G):G}})})}s(ee,"setArg");function M(_,P){g.aliases[_]&&g.aliases[_].length||(g.aliases[_]=[P],h[P]=!0),g.aliases[P]&&g.aliases[P].length||M(P,_)}s(M,"addNewAlias");function R(_,P,j){j&&(P=J$(P)),(te(_,g.bools)||te(_,g.counts))&&typeof P=="string"&&(P=P==="true");let x=Array.isArray(P)?P.map(function(w){return q(_,w)}):q(_,P);return te(_,g.counts)&&(xt(x)||typeof x=="boolean")&&(x=Tc()),te(_,g.normalize)&&te(_,g.arrays)&&(Array.isArray(P)?x=P.map(w=>Br.normalize(w)):x=Br.normalize(P)),x}s(R,"processValue");function q(_,P){return!u["parse-positional-numbers"]&&_==="_"||!te(_,g.strings)&&!te(_,g.bools)&&!Array.isArray(P)&&(fa(P)&&u["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${P}`)))||!xt(P)&&te(_,g.numbers))&&(P=Number(P)),P}s(q,"maybeCoerceNumber");function Z(_){let P=Object.create(null);xe(P,g.aliases,c),Object.keys(g.configs).forEach(function(j){let x=_[j]||P[j];if(x)try{let w=null,V=Br.resolve(Br.cwd(),x),T=g.configs[j];if(typeof T=="function"){try{w=T(V)}catch(G){w=G}if(w instanceof Error){k=w;return}}else w=Br.require(V);ue(w)}catch(w){w.name==="PermissionDenied"?k=w:_[j]&&(k=Error(v("Invalid JSON config file: %s",x)))}})}s(Z,"setConfig");function ue(_,P){Object.keys(_).forEach(function(j){let x=_[j],w=P?P+"."+j:j;typeof x=="object"&&x!==null&&!Array.isArray(x)&&u["dot-notation"]?ue(x,w):(!Bt(I,w.split("."))||te(w,g.arrays)&&u["combine-arrays"])&&ee(w,x)})}s(ue,"setConfigObject");function be(){typeof l<"u"&&l.forEach(function(_){ue(_)})}s(be,"setConfigObjects");function ge(_,P){if(typeof p>"u")return;let j=typeof p=="string"?p:"",x=Br.env();Object.keys(x).forEach(function(w){if(j===""||w.lastIndexOf(j,0)===0){let V=w.split("__").map(function(T,G){return G===0&&(T=T.substring(j.length)),Tn(T)});(P&&g.configs[V.join(".")]||!P)&&!Bt(_,V)&&ee(V.join("."),x[w])}})}s(ge,"applyEnvVars");function Ve(_){let P,j=new Set;Object.keys(_).forEach(function(x){if(!j.has(x)&&(P=te(x,g.coercions),typeof P=="function"))try{let w=q(x,P(_[x]));[].concat(g.aliases[x]||[],x).forEach(V=>{j.add(V),_[V]=w})}catch(w){k=w}})}s(Ve,"applyCoercions");function wr(_){return g.keys.forEach(P=>{~P.indexOf(".")||typeof _[P]>"u"&&(_[P]=void 0)}),_}s(wr,"setPlaceholderKeys");function xe(_,P,j,x=!1){Object.keys(j).forEach(function(w){Bt(_,w.split("."))||(Y(_,w.split("."),j[w]),x&&(y[w]=!0),(P[w]||[]).forEach(function(V){Bt(_,V.split("."))||Y(_,V.split("."),j[w])}))})}s(xe,"applyDefaultsAndAliases");function Bt(_,P){let j=_;u["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(w){j=j[w]||{}});let x=P[P.length-1];return typeof j!="object"?!1:x in j}s(Bt,"hasKey");function Y(_,P,j){let x=_;u["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(Ye){Ye=Mm(Ye),typeof x=="object"&&x[Ye]===void 0&&(x[Ye]={}),typeof x[Ye]!="object"||Array.isArray(x[Ye])?(Array.isArray(x[Ye])?x[Ye].push({}):x[Ye]=[x[Ye],{}],x=x[Ye][x[Ye].length-1]):x=x[Ye]});let w=Mm(P[P.length-1]),V=te(P.join("."),g.arrays),T=Array.isArray(j),G=u["duplicate-arguments-array"];!G&&te(w,g.nargs)&&(G=!0,(!xt(x[w])&&g.nargs[w]===1||Array.isArray(x[w])&&x[w].length===g.nargs[w])&&(x[w]=void 0)),j===Tc()?x[w]=Tc(x[w]):Array.isArray(x[w])?G&&V&&T?x[w]=u["flatten-duplicate-arrays"]?x[w].concat(j):(Array.isArray(x[w][0])?x[w]:[x[w]]).concat([j]):!G&&!!V==!!T?x[w]=j:x[w]=x[w].concat([j]):x[w]===void 0&&V?x[w]=T?j:[j]:G&&!(x[w]===void 0||te(w,g.counts)||te(w,g.bools))?x[w]=[x[w],j]:x[w]=j}s(Y,"setKey");function Ot(..._){_.forEach(function(P){Object.keys(P||{}).forEach(function(j){g.aliases[j]||(g.aliases[j]=[].concat(a[j]||[]),g.aliases[j].concat(j).forEach(function(x){if(/-/.test(x)&&u["camel-case-expansion"]){let w=Tn(x);w!==j&&g.aliases[j].indexOf(w)===-1&&(g.aliases[j].push(w),h[w]=!0)}}),g.aliases[j].concat(j).forEach(function(x){if(x.length>1&&/[A-Z]/.test(x)&&u["camel-case-expansion"]){let w=la(x,"-");w!==j&&g.aliases[j].indexOf(w)===-1&&(g.aliases[j].push(w),h[w]=!0)}}),g.aliases[j].forEach(function(x){g.aliases[x]=[j].concat(g.aliases[j].filter(function(w){return x!==w}))}))})})}s(Ot,"extendAliases");function te(_,P){let j=[].concat(g.aliases[_]||[],_),x=Object.keys(P),w=j.find(V=>x.includes(V));return w?P[w]:!1}s(te,"checkAllAliases");function Ae(_){let P=Object.keys(g);return[].concat(P.map(x=>g[x])).some(function(x){return Array.isArray(x)?x.includes(_):x[_]})}s(Ae,"hasAnyFlag");function Q(_,...P){return[].concat(...P).some(function(x){let w=_.match(x);return w&&Ae(w[1])})}s(Q,"hasFlagsMatching");function Ee(_){if(_.match($)||!_.match(/^-[^-]+/))return!1;let P=!0,j,x=_.slice(1).split("");for(let w=0;w<x.length;w++){if(j=_.slice(w+2),!Ae(x[w])){P=!1;break}if(x[w+1]&&x[w+1]==="="||j==="-"||/[A-Za-z]/.test(x[w])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(j)||x[w+1]&&x[w+1].match(/\W/))break}return P}s(Ee,"hasAllShortFlags");function Ce(_){return u["unknown-options-as-args"]&&pe(_)}s(Ce,"isUnknownOptionAsArg");function pe(_){return _=_.replace(/^-{3,}/,"--"),_.match($)||Ee(_)?!1:!Q(_,/^-+([^=]+?)=[\s\S]*$/,A,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}s(pe,"isUnknownOption");function _e(_){return!te(_,g.bools)&&!te(_,g.counts)&&`${_}`in c?c[_]:Te(nt(_))}s(_e,"defaultValue");function Te(_){return{[Ht.BOOLEAN]:!0,[Ht.STRING]:"",[Ht.NUMBER]:void 0,[Ht.ARRAY]:[]}[_]}s(Te,"defaultForType");function nt(_){let P=Ht.BOOLEAN;return te(_,g.strings)?P=Ht.STRING:te(_,g.numbers)?P=Ht.NUMBER:te(_,g.bools)?P=Ht.BOOLEAN:te(_,g.arrays)&&(P=Ht.ARRAY),P}s(nt,"guessType");function xt(_){return _===void 0}s(xt,"isUndefined");function xi(){Object.keys(g.counts).find(_=>te(_,g.arrays)?(k=Error(v("Invalid configuration: %s, opts.count excludes opts.array.",_)),!0):te(_,g.nargs)?(k=Error(v("Invalid configuration: %s, opts.count excludes opts.narg.",_)),!0):!1)}return s(xi,"checkConfiguration"),{aliases:Object.assign({},g.aliases),argv:Object.assign(fe,I),configuration:u,defaulted:Object.assign({},y),error:k,newAliases:Object.assign({},h)}}};s(qc,"YargsParser");var pa=qc;function Y$(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let o=i+1;o<t.length;o++)if(t[i].filter(function(u){return t[o].indexOf(u)!==-1}).length){t[i]=t[i].concat(t[o]),t.splice(o,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(a,u,c){return c.indexOf(a)===u});let o=i.pop();o!==void 0&&typeof o=="string"&&(r[o]=i)}),r}s(Y$,"combineAliases");function Tc(e){return e!==void 0?e+1:1}s(Tc,"increment");function Mm(e){return e==="__proto__"?"___proto___":e}s(Mm,"sanitizeKey");function J$(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}s(J$,"stripQuotes");var Lm=require("fs");var Dc,Lc,Fc,Tm=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,qm=(Lc=(Dc=process==null?void 0:process.versions)===null||Dc===void 0?void 0:Dc.node)!==null&&Lc!==void 0?Lc:(Fc=process==null?void 0:process.version)===null||Fc===void 0?void 0:Fc.slice(1);if(qm&&Number(qm.match(/^([^.]+)/)[1])<Tm)throw Error(`yargs parser supports a minimum Node.js version of ${Tm}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Q$=process?process.env:{},Fm=new pa({cwd:process.cwd,env:s(()=>Q$,"env"),format:Dm.format,normalize:da.normalize,resolve:da.resolve,require:s(e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,Lm.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")},"require")}),Fs=s(function(t,r){return Fm.parse(t.slice(),r).argv},"Parser");Fs.detailed=function(e,t){return Fm.parse(e.slice(),t)};Fs.camelCase=Tn;Fs.decamelize=la;Fs.looksLikeNumber=fa;var Vc=Fs;var or=require("path");function Vm(){return X$()?0:1}s(Vm,"getProcessArgvBinIndex");function X$(){return eP()&&!process.defaultApp}s(X$,"isBundledElectronApp");function eP(){return!!process.versions.electron}s(eP,"isElectronApp");function Bc(e){return e.slice(Vm()+1)}s(Bc,"hideBin");function Bm(){return process.argv[Vm()]}s(Bm,"getProcessArgvBin");var ha=class ha extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,ha)}};s(ha,"YError");var Re=ha;var Ai=require("fs"),Hm=require("util"),Um=require("path");var zm={fs:{readFileSync:Ai.readFileSync,writeFile:Ai.writeFile},format:Hm.format,resolve:Um.resolve,exists:s(e=>{try{return(0,Ai.statSync)(e).isFile()}catch{return!1}},"exists")};var sr,Uc=class Uc{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:!0,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=t.shift(),n=s(function(){},"cb");return typeof t[t.length-1]=="function"&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),sr.format.apply(sr.format,[this.cache[this.locale][r]||r].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),r=t.shift(),n=t.shift(),i=t.shift(),o=s(function(){},"cb");typeof t[t.length-1]=="function"&&(o=t.pop()),this.cache[this.locale]||this._readLocaleFile();let a=i===1?r:n;this.cache[this.locale][r]&&(a=this.cache[this.locale][r][i===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:o})):o();let u=[a];return~a.indexOf("%d")&&u.push(i),sr.format.apply(sr.format,u.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.cache[this.locale][r]=t[r])}_taggedLiteral(t,...r){let n="";return t.forEach(function(i,o){let a=r[o+1];n+=i,typeof a<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let t=this,r=this.writeQueue[0],n=r.directory,i=r.locale,o=r.cb,a=this._resolveLocaleFile(n,i),u=JSON.stringify(this.cache[i],null,2);sr.fs.writeFile(a,u,"utf-8",function(c){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),o(c)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{sr.fs.readFileSync&&(t=JSON.parse(sr.fs.readFileSync(r,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+r),n.code==="ENOENT")t={};else throw n}this.cache[this.locale]=t}_resolveLocaleFile(t,r){let n=sr.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=sr.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return sr.exists(t)}};s(Uc,"Y18N");var Hc=Uc;function Gm(e,t){sr=t;let r=new Hc(e);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}s(Gm,"y18n");var tP=s(e=>Gm(e,zm),"y18n"),Wm=tP;var iP={};var rP="require is not supported by ESM",Km="loading a directory of commands is not supported yet for ESM",Vs;try{Vs=(0,Jm.fileURLToPath)(iP.url)}catch{Vs=process.cwd()}var nP=Vs.substring(0,Vs.lastIndexOf("node_modules")),zc={assert:{notStrictEqual:ma.notStrictEqual,strictEqual:ma.strictEqual},cliui:Nc,findUp:Mc,getEnv:s(e=>process.env[e],"getEnv"),inspect:Zm.inspect,getCallerFile:s(()=>{throw new Re(Km)},"getCallerFile"),getProcessArgvBin:Bm,mainFilename:nP||process.cwd(),Parser:Vc,path:{basename:or.basename,dirname:or.dirname,extname:or.extname,relative:or.relative,resolve:or.resolve},process:{argv:s(()=>process.argv,"argv"),cwd:process.cwd,emitWarning:s((e,t)=>process.emitWarning(e,t),"emitWarning"),execPath:s(()=>process.execPath,"execPath"),exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:Ym.readFileSync,require:s(()=>{throw new Re(rP)},"require"),requireDirectory:s(()=>{throw new Re(Km)},"requireDirectory"),stringWidth:s(e=>[...e].length,"stringWidth"),y18n:Wm({directory:(0,or.resolve)(Vs,"../../../locales"),updateFiles:!1})};function yt(e,t,r,n){r.assert.notStrictEqual(e,t,n)}s(yt,"assertNotStrictEqual");function Gc(e,t){t.assert.strictEqual(typeof e,"string")}s(Gc,"assertSingleKey");function Ci(e){return Object.keys(e)}s(Ci,"objectKeys");function je(e){return!!e&&!!e.then&&typeof e.then=="function"}s(je,"isPromise");function rn(e){let r=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,i=r.shift();if(!i)throw new Error(`No command found in: ${e}`);let o={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((a,u)=>{let c=!1;a=a.replace(/\s/g,""),/\.+[\]>]/.test(a)&&u===r.length-1&&(c=!0),/^\[/.test(a)?o.optional.push({cmd:a.replace(n,"").split("|"),variadic:c}):o.demanded.push({cmd:a.replace(n,"").split("|"),variadic:c})}),o}s(rn,"parseCommand");var sP=["first","second","third","fourth","fifth","sixth"];function F(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[rn(`cmd ${e}`),t,r]}s(n,"parseArgs");try{let i=0,[o,a,u]=n(),c=[].slice.call(a);for(;c.length&&c[c.length-1]===void 0;)c.pop();let l=u||c.length;if(l<o.demanded.length)throw new Re(`Not enough arguments provided. Expected ${o.demanded.length} but received ${c.length}.`);let p=o.demanded.length+o.optional.length;if(l>p)throw new Re(`Too many arguments provided. Expected max ${p} but received ${l}.`);o.demanded.forEach(f=>{let d=c.shift(),h=Qm(d);f.cmd.filter(v=>v===h||v==="*").length===0&&Xm(h,f.cmd,i),i+=1}),o.optional.forEach(f=>{if(c.length===0)return;let d=c.shift(),h=Qm(d);f.cmd.filter(v=>v===h||v==="*").length===0&&Xm(h,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}s(F,"argsert");function Qm(e){return Array.isArray(e)?"array":e===null?"null":typeof e}s(Qm,"guessType");function Xm(e,t,r){throw new Re(`Invalid ${sP[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}s(Xm,"argumentTypeError");var Wc=class Wc{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,r,n=!0,i=!1){if(F("<array|function> [boolean] [boolean] [boolean]",[t,r,n],arguments.length),Array.isArray(t)){for(let o=0;o<t.length;o++){if(typeof t[o]!="function")throw Error("middleware must be a function");let a=t[o];a.applyBeforeValidation=r,a.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let o=t;o.applyBeforeValidation=r,o.global=n,o.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,r){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let o=[...n[r]||[],r];return i.option?!o.includes(i.option):!0}),t.option=r,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global)}};s(Wc,"GlobalMiddleware");var ga=Wc;function eg(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}s(eg,"commandMiddlewareFactory");function qn(e,t,r,n){return r.reduce((i,o)=>{if(o.applyBeforeValidation!==n)return i;if(o.mutates){if(o.applied)return i;o.applied=!0}if(je(i))return i.then(a=>Promise.all([a,o(a,t)])).then(([a,u])=>Object.assign(a,u));{let a=o(i,t);return je(a)?a.then(u=>Object.assign(i,u)):Object.assign(i,a)}},e)}s(qn,"applyMiddleware");function Dn(e,t,r=n=>{throw n}){try{let n=oP(e)?e():e;return je(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}s(Dn,"maybeAsyncResult");function oP(e){return typeof e=="function"}s(oP,"isFunction");function Kc(e){if(typeof require>"u")return null;for(let t=0,r=Object.keys(require.cache),n;t<r.length;t++)if(n=require.cache[r[t]],n.exports===e)return n;return null}s(Kc,"whichModule");var Ii=/(^\*)|(^\$0)/,Yc=class Yc{constructor(t,r,n,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=n,this.validation=r}addDirectory(t,r,n,i){i=i||{},typeof i.recurse!="boolean"&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);let o=typeof i.visit=="function"?i.visit:a=>a;i.visit=(a,u,c)=>{let l=o(a,u,c);if(l){if(this.requireCache.has(u))return l;this.requireCache.add(u),this.addHandler(l)}return l},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,o,a){let u=[],c=eg(o);if(i=i||(()=>{}),Array.isArray(t))if(aP(t))[t,...u]=t;else for(let l of t)this.addHandler(l);else if(cP(t)){let l=Array.isArray(t.command)||typeof t.command=="string"?t.command:this.moduleName(t);t.aliases&&(l=[].concat(l).concat(t.aliases)),this.addHandler(l,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(tg(n)){this.addHandler([t].concat(u),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=rn(t);u=u.map(d=>rn(d).cmd);let p=!1,f=[l.cmd].concat(u).filter(d=>Ii.test(d)?(p=!0,!1):!0);f.length===0&&p&&f.push("$0"),p&&(l.cmd=f[0],u=f.slice(1),t=t.replace(Ii,l.cmd)),u.forEach(d=>{this.aliasMap[d]=l.cmd}),r!==!1&&this.usage.command(t,r,p,u,a),this.handlers[l.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:c,deprecated:a,demanded:l.demanded,optional:l.optional},p&&(this.defaultCommand=this.handlers[l.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,r,n,i,o,a){let u=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,c=r.getInternalMethods().getContext(),l=c.commands.slice(),p=!t;t&&(c.commands.push(t),c.fullCommands.push(u.original));let f=this.applyBuilderUpdateUsageAndParse(p,u,r,n.aliases,l,i,o,a);return je(f)?f.then(d=>this.applyMiddlewareAndGetResult(p,u,d.innerArgv,c,o,d.aliases,r)):this.applyMiddlewareAndGetResult(p,u,f.innerArgv,c,o,f.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,o,a,u,c){let l=r.builder,p=n;if(ya(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),c);if(je(f))return f.then(d=>(p=ng(d)?d:n,this.parseAndUpdateUsage(t,r,p,o,a,u)))}else uP(l)&&(n.getInternalMethods().getUsageInstance().freeze(),p=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(f=>{p.option(f,l[f])}));return this.parseAndUpdateUsage(t,r,p,o,a,u)}parseAndUpdateUsage(t,r,n,i,o,a){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let u=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,o,a);return je(u)?u.then(c=>({aliases:n.parsed.aliases,innerArgv:c})):{aliases:n.parsed.aliases,innerArgv:u}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=Ii.test(r.original)?r.original.replace(Ii,"").trim():r.original,i=t.filter(o=>!Ii.test(o));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,o,a,u,c){if(!a.getInternalMethods().getHasOutput()){let l=a.getInternalMethods().runValidation(o,c,a.parsed.error,t);n=Dn(n,p=>(l(p),p))}if(r.handler&&!a.getInternalMethods().getHasOutput()){a.getInternalMethods().setHasOutput();let l=!!a.getOptions().configuration["populate--"];a.getInternalMethods().postProcess(n,l,!1,!1),n=qn(n,a,u,!1),n=Dn(n,p=>{let f=r.handler(p);return je(f)?f.then(()=>p):p}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),je(n)&&!a.getInternalMethods().hasParseCallback()&&n.catch(p=>{try{a.getInternalMethods().getUsageInstance().fail(null,p)}catch{}})}return t||(i.commands.pop(),i.fullCommands.pop()),n}applyMiddlewareAndGetResult(t,r,n,i,o,a,u){let c={};if(o)return n;u.getInternalMethods().getHasOutput()||(c=this.populatePositionals(r,n,i,u));let l=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),p=qn(n,u,l,!0);return je(p)?p.then(f=>this.handleValidationAndGetResult(t,r,f,i,a,u,l,c)):this.handleValidationAndGetResult(t,r,p,i,a,u,l,c)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let o=t.demanded.slice(0),a=t.optional.slice(0),u={};for(this.validation.positionalCount(o.length,r._.length);o.length;){let c=o.shift();this.populatePositional(c,r,u)}for(;a.length;){let c=a.shift();this.populatePositional(c,r,u)}return r._=n.commands.concat(r._.map(c=>""+c)),this.postProcessPositionals(r,u,this.cmdToParseOptions(t.original),i),u}populatePositional(t,r,n){let i=t.cmd[0];t.variadic?n[i]=r._.splice(0).map(String):r._.length&&(n[i]=[String(r._.shift())])}cmdToParseOptions(t){let r={array:[],default:{},alias:{},demand:{}},n=rn(t);return n.demanded.forEach(i=>{let[o,...a]=i.cmd;i.variadic&&(r.array.push(o),r.default[o]=[]),r.alias[o]=a,r.demand[o]=!0}),n.optional.forEach(i=>{let[o,...a]=i.cmd;i.variadic&&(r.array.push(o),r.default[o]=[]),r.alias[o]=a}),r}postProcessPositionals(t,r,n,i){let o=Object.assign({},i.getOptions());o.default=Object.assign(n.default,o.default);for(let l of Object.keys(n.alias))o.alias[l]=(o.alias[l]||[]).concat(n.alias[l]);o.array=o.array.concat(n.array),o.config={};let a=[];if(Object.keys(r).forEach(l=>{r[l].map(p=>{o.configuration["unknown-options-as-args"]&&(o.key[l]=!0),a.push(`--${l}`),a.push(p)})}),!a.length)return;let u=Object.assign({},o.configuration,{"populate--":!1}),c=this.shim.Parser.detailed(a,Object.assign({},o,{configuration:u}));if(c.error)i.getInternalMethods().getUsageInstance().fail(c.error.message,c.error);else{let l=Object.keys(r);Object.keys(r).forEach(p=>{l.push(...c.aliases[p])}),Object.keys(c.argv).forEach(p=>{l.includes(p)&&(r[p]||(r[p]=c.argv[p]),!this.isInConfigs(i,p)&&!this.isDefaulted(i,p)&&Object.prototype.hasOwnProperty.call(t,p)&&Object.prototype.hasOwnProperty.call(c.argv,p)&&(Array.isArray(t[p])||Array.isArray(c.argv[p]))?t[p]=[].concat(t[p],c.argv[p]):t[p]=c.argv[p])})}}isDefaulted(t,r){let{default:n}=t.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(t,r){let{configObjects:n}=t.getOptions();return n.some(i=>Object.prototype.hasOwnProperty.call(i,r))||n.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let n=Ii.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}let r=this.defaultCommand.builder;if(ya(r))return r(t,!0);tg(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=Kc(t);if(!r)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);return this.commandFromFilename(r.filename)}commandFromFilename(t){return this.shim.path.basename(t,this.shim.path.extname(t))}extractDesc({describe:t,description:r,desc:n}){for(let i of[t,r,n]){if(typeof i=="string"||i===!1)return i;yt(i,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let t=this.frozens.pop();yt(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};s(Yc,"CommandInstance");var Zc=Yc;function rg(e,t,r,n){return new Zc(e,t,r,n)}s(rg,"command");function tg(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}s(tg,"isCommandBuilderDefinition");function aP(e){return e.every(t=>typeof t=="string")}s(aP,"isCommandAndAliases");function ya(e){return typeof e=="function"}s(ya,"isCommandBuilderCallback");function uP(e){return typeof e=="object"}s(uP,"isCommandBuilderOptionDefinitions");function cP(e){return typeof e=="object"&&!Array.isArray(e)}s(cP,"isCommandHandlerDefinition");function nn(e={},t=()=>!0){let r={};return Ci(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}s(nn,"objFilter");function sn(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let r=t;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(e)})}s(sn,"setBlocking");function lP(e){return typeof e=="boolean"}s(lP,"isBoolean");function sg(e,t){let r=t.y18n.__,n={},i=[];n.failFn=s(function(R){i.push(R)},"failFn");let o=null,a=null,u=!0;n.showHelpOnFail=s(function(R=!0,q){let[Z,ue]=typeof R=="string"?[!0,R]:[R,q];return e.getInternalMethods().isGlobalContext()&&(a=ue),o=ue,u=Z,n},"showHelpOnFailFn");let c=!1;n.fail=s(function(R,q){let Z=e.getInternalMethods().getLoggerInstance();if(i.length)for(let ue=i.length-1;ue>=0;--ue){let be=i[ue];if(lP(be)){if(q)throw q;if(R)throw Error(R)}else be(R,q,n)}else{if(e.getExitProcess()&&sn(!0),!c){c=!0,u&&(e.showHelp("error"),Z.error()),(R||q)&&Z.error(R||q);let ue=o||a;ue&&((R||q)&&Z.error(""),Z.error(ue))}if(q=q||new Re(R),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,q);throw q}},"fail");let l=[],p=!1;n.usage=(M,R)=>M===null?(p=!0,l=[],n):(p=!1,l.push([M,R||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>p,n.getPositionalGroupName=()=>r("Positionals:");let f=[];n.example=(M,R)=>{f.push([M,R||""])};let d=[];n.command=s(function(R,q,Z,ue,be=!1){Z&&(d=d.map(ge=>(ge[2]=!1,ge))),d.push([R,q||"",Z,ue,be])},"command"),n.getCommands=()=>d;let h={};n.describe=s(function(R,q){Array.isArray(R)?R.forEach(Z=>{n.describe(Z,q)}):typeof R=="object"?Object.keys(R).forEach(Z=>{n.describe(Z,R[Z])}):h[R]=q},"describe"),n.getDescriptions=()=>h;let y=[];n.epilog=M=>{y.push(M)};let v=!1,g;n.wrap=M=>{v=!0,g=M},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(v||(g=gt(),v=!0),g);let $="__yargsString__:";n.deferY18nLookup=M=>$+M,n.help=s(function(){if(C)return C;k();let R=e.customScriptName?e.$0:t.path.basename(e.$0),q=e.getDemandedOptions(),Z=e.getDemandedCommands(),ue=e.getDeprecatedOptions(),be=e.getGroups(),ge=e.getOptions(),Ve=[];Ve=Ve.concat(Object.keys(h)),Ve=Ve.concat(Object.keys(q)),Ve=Ve.concat(Object.keys(Z)),Ve=Ve.concat(Object.keys(ge.default)),Ve=Ve.filter(fe),Ve=Object.keys(Ve.reduce((Q,Ee)=>(Ee!=="_"&&(Q[Ee]=!0),Q),{}));let wr=n.getWrap(),xe=t.cliui({width:wr,wrap:!!wr});if(!p){if(l.length)l.forEach(Q=>{xe.div({text:`${Q[0].replace(/\$0/g,R)}`}),Q[1]&&xe.div({text:`${Q[1]}`,padding:[1,0,0,0]})}),xe.div();else if(d.length){let Q=null;Z._?Q=`${R} <${r("command")}>
78
+ `),i+=e.charAt(o);return r&&n&&(i=`${r}${i}${n}`),i}s(km,"wrap");function Nc(e){return Rm(e,{stringWidth:s(t=>[...t].length,"stringWidth"),stripAnsi:kc,wrap:km})}s(Nc,"ui");var Ei=require("path"),ca=require("fs");function Mc(e,t){let r=(0,Ei.resolve)(".",e),n;for((0,ca.statSync)(r).isDirectory()||(r=(0,Ei.dirname)(r));;){if(n=t(r,(0,ca.readdirSync)(r)),n)return(0,Ei.resolve)(r,n);if(r=(0,Ei.dirname)(n=r),n===r)break}}s(Mc,"default");var Zm=require("util"),Ym=require("fs"),Jm=require("url");var Dm=require("util"),da=require("path");function Tn(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let o=i?i[0].length:0;o<e.length;o++){let a=e.charAt(o);n&&(n=!1,a=a.toUpperCase()),o!==0&&(a==="-"||a==="_")?n=!0:a!=="-"&&a!=="_"&&(r+=a)}return r}}s(Tn,"camelCase");function la(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let o=r.charAt(i),a=e.charAt(i);o!==a&&i>0?n+=`${t}${r.charAt(i)}`:n+=a}return n}s(la,"decamelize");function fa(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}s(fa,"looksLikeNumber");function Nm(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,r=null,n=null,i=null,o=[];for(let a=0;a<e.length;a++){if(r=n,n=e.charAt(a),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),o[t]||(o[t]=""),o[t]+=n}return o}s(Nm,"tokenizeArgString");var Ht;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Ht||(Ht={}));var Br,qc=class qc{constructor(t){Br=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=Nm(t),o=typeof t=="string",a=Y$(Object.assign(Object.create(null),n.alias)),u=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),c=Object.assign(Object.create(null),n.default),l=n.configObjects||[],p=n.envPrefix,f=u["populate--"],d=f?"--":"_",h=Object.create(null),y=Object.create(null),v=n.__||Br.format,g={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},$=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,A=new RegExp("^--"+u["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(_){let P=typeof _=="object"?_.key:_,j=Object.keys(_).map(function(x){return{boolean:"bools",string:"strings",number:"numbers"}[x]}).filter(Boolean).pop();j&&(g[j][P]=!0),g.arrays[P]=!0,g.keys.push(P)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(_){g.bools[_]=!0,g.keys.push(_)}),[].concat(n.string||[]).filter(Boolean).forEach(function(_){g.strings[_]=!0,g.keys.push(_)}),[].concat(n.number||[]).filter(Boolean).forEach(function(_){g.numbers[_]=!0,g.keys.push(_)}),[].concat(n.count||[]).filter(Boolean).forEach(function(_){g.counts[_]=!0,g.keys.push(_)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(_){g.normalize[_]=!0,g.keys.push(_)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([_,P])=>{typeof P=="number"&&(g.nargs[_]=P,g.keys.push(_))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([_,P])=>{typeof P=="function"&&(g.coercions[_]=P,g.keys.push(_))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(_){g.configs[_]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([_,P])=>{(typeof P=="boolean"||typeof P=="function")&&(g.configs[_]=P)})),Ot(n.key,a,n.default,g.arrays),Object.keys(c).forEach(function(_){(g.aliases[_]||[]).forEach(function(P){c[P]=c[_]})});let k=null;xi();let C=[],I=Object.assign(Object.create(null),{_:[]}),fe={};for(let _=0;_<i.length;_++){let P=i[_],j=P.replace(/^-{3,}/,"---"),x,w,V,T,G,Ye;if(P!=="--"&&/^-/.test(P)&&Ce(P))ne(P);else if(j.match(/^---+(=|$)/)){ne(P);continue}else if(P.match(/^--.+=/)||!u["short-option-groups"]&&P.match(/^-.+=/))T=P.match(/^--?([^=]+)=([\s\S]*)$/),T!==null&&Array.isArray(T)&&T.length>=3&&(te(T[1],g.arrays)?_=Te(_,T[1],i,T[2]):te(T[1],g.nargs)!==!1?_=ot(_,T[1],i,T[2]):ee(T[1],T[2],!0));else if(P.match(A)&&u["boolean-negation"])T=P.match(A),T!==null&&Array.isArray(T)&&T.length>=2&&(w=T[1],ee(w,te(w,g.arrays)?[!1]:!1));else if(P.match(/^--.+/)||!u["short-option-groups"]&&P.match(/^-[^-]+/))T=P.match(/^--?(.+)/),T!==null&&Array.isArray(T)&&T.length>=2&&(w=T[1],te(w,g.arrays)?_=Te(_,w,i):te(w,g.nargs)!==!1?_=ot(_,w,i):(G=i[_+1],G!==void 0&&(!G.match(/^-/)||G.match($))&&!te(w,g.bools)&&!te(w,g.counts)||/^(true|false)$/.test(G)?(ee(w,G),_++):ee(w,_e(w))));else if(P.match(/^-.\..+=/))T=P.match(/^-([^=]+)=([\s\S]*)$/),T!==null&&Array.isArray(T)&&T.length>=3&&ee(T[1],T[2]);else if(P.match(/^-.\..+/)&&!P.match($))G=i[_+1],T=P.match(/^-(.\..+)/),T!==null&&Array.isArray(T)&&T.length>=2&&(w=T[1],G!==void 0&&!G.match(/^-/)&&!te(w,g.bools)&&!te(w,g.counts)?(ee(w,G),_++):ee(w,_e(w)));else if(P.match(/^-[^-]+/)&&!P.match($)){V=P.slice(1,-1).split(""),x=!1;for(let at=0;at<V.length;at++){if(G=P.slice(at+2),V[at+1]&&V[at+1]==="="){Ye=P.slice(at+3),w=V[at],te(w,g.arrays)?_=Te(_,w,i,Ye):te(w,g.nargs)!==!1?_=ot(_,w,i,Ye):ee(w,Ye),x=!0;break}if(G==="-"){ee(V[at],G);continue}if(/[A-Za-z]/.test(V[at])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(G)&&te(G,g.bools)===!1){ee(V[at],G),x=!0;break}if(V[at+1]&&V[at+1].match(/\W/)){ee(V[at],G),x=!0;break}else ee(V[at],_e(V[at]))}w=P.slice(-1)[0],!x&&w!=="-"&&(te(w,g.arrays)?_=Te(_,w,i):te(w,g.nargs)!==!1?_=ot(_,w,i):(G=i[_+1],G!==void 0&&(!/^(-|--)[^-]/.test(G)||G.match($))&&!te(w,g.bools)&&!te(w,g.counts)||/^(true|false)$/.test(G)?(ee(w,G),_++):ee(w,_e(w))))}else if(P.match(/^-[0-9]$/)&&P.match($)&&te(P.slice(1),g.bools))w=P.slice(1),ee(w,_e(w));else if(P==="--"){C=i.slice(_+1);break}else if(u["halt-at-non-option"]){C=i.slice(_);break}else ne(P)}ge(I,!0),ge(I,!1),Z(I),be(),xe(I,g.aliases,c,!0),Ve(I),u["set-placeholder-key"]&&wr(I),Object.keys(g.counts).forEach(function(_){Bt(I,_.split("."))||ee(_,0)}),f&&C.length&&(I[d]=[]),C.forEach(function(_){I[d].push(_)}),u["camel-case-expansion"]&&u["strip-dashed"]&&Object.keys(I).filter(_=>_!=="--"&&_.includes("-")).forEach(_=>{delete I[_]}),u["strip-aliased"]&&[].concat(...Object.keys(a).map(_=>a[_])).forEach(_=>{u["camel-case-expansion"]&&_.includes("-")&&delete I[_.split(".").map(P=>Tn(P)).join(".")],delete I[_]});function ne(_){let P=q("_",_);(typeof P=="string"||typeof P=="number")&&I._.push(P)}s(ne,"pushPositional");function ot(_,P,j,x){let w,V=te(P,g.nargs);if(V=typeof V!="number"||isNaN(V)?1:V,V===0)return xt(x)||(k=Error(v("Argument unexpected for: %s",P))),ee(P,_e(P)),_;let T=xt(x)?0:1;if(u["nargs-eats-options"])j.length-(_+1)+T<V&&(k=Error(v("Not enough arguments following: %s",P))),T=V;else{for(w=_+1;w<j.length&&(!j[w].match(/^-[^0-9]/)||j[w].match($)||Ce(j[w]));w++)T++;T<V&&(k=Error(v("Not enough arguments following: %s",P)))}let G=Math.min(T,V);for(!xt(x)&&G>0&&(ee(P,x),G--),w=_+1;w<G+_+1;w++)ee(P,j[w]);return _+G}s(ot,"eatNargs");function Te(_,P,j,x){let w=[],V=x||j[_+1],T=te(P,g.nargs);if(te(P,g.bools)&&!/^(true|false)$/.test(V))w.push(!0);else if(xt(V)||xt(x)&&/^-/.test(V)&&!$.test(V)&&!Ce(V)){if(c[P]!==void 0){let G=c[P];w=Array.isArray(G)?G:[G]}}else{xt(x)||w.push(R(P,x,!0));for(let G=_+1;G<j.length&&!(!u["greedy-arrays"]&&w.length>0||T&&typeof T=="number"&&w.length>=T||(V=j[G],/^-/.test(V)&&!$.test(V)&&!Ce(V)));G++)_=G,w.push(R(P,V,o))}return typeof T=="number"&&(T&&w.length<T||isNaN(T)&&w.length===0)&&(k=Error(v("Not enough arguments following: %s",P))),ee(P,w),_}s(Te,"eatArray");function ee(_,P,j=o){if(/-/.test(_)&&u["camel-case-expansion"]){let V=_.split(".").map(function(T){return Tn(T)}).join(".");M(_,V)}let x=R(_,P,j),w=_.split(".");Y(I,w,x),g.aliases[_]&&g.aliases[_].forEach(function(V){let T=V.split(".");Y(I,T,x)}),w.length>1&&u["dot-notation"]&&(g.aliases[w[0]]||[]).forEach(function(V){let T=V.split("."),G=[].concat(w);G.shift(),T=T.concat(G),(g.aliases[_]||[]).includes(T.join("."))||Y(I,T,x)}),te(_,g.normalize)&&!te(_,g.arrays)&&[_].concat(g.aliases[_]||[]).forEach(function(T){Object.defineProperty(fe,T,{enumerable:!0,get(){return P},set(G){P=typeof G=="string"?Br.normalize(G):G}})})}s(ee,"setArg");function M(_,P){g.aliases[_]&&g.aliases[_].length||(g.aliases[_]=[P],h[P]=!0),g.aliases[P]&&g.aliases[P].length||M(P,_)}s(M,"addNewAlias");function R(_,P,j){j&&(P=J$(P)),(te(_,g.bools)||te(_,g.counts))&&typeof P=="string"&&(P=P==="true");let x=Array.isArray(P)?P.map(function(w){return q(_,w)}):q(_,P);return te(_,g.counts)&&(xt(x)||typeof x=="boolean")&&(x=Tc()),te(_,g.normalize)&&te(_,g.arrays)&&(Array.isArray(P)?x=P.map(w=>Br.normalize(w)):x=Br.normalize(P)),x}s(R,"processValue");function q(_,P){return!u["parse-positional-numbers"]&&_==="_"||!te(_,g.strings)&&!te(_,g.bools)&&!Array.isArray(P)&&(fa(P)&&u["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${P}`)))||!xt(P)&&te(_,g.numbers))&&(P=Number(P)),P}s(q,"maybeCoerceNumber");function Z(_){let P=Object.create(null);xe(P,g.aliases,c),Object.keys(g.configs).forEach(function(j){let x=_[j]||P[j];if(x)try{let w=null,V=Br.resolve(Br.cwd(),x),T=g.configs[j];if(typeof T=="function"){try{w=T(V)}catch(G){w=G}if(w instanceof Error){k=w;return}}else w=Br.require(V);ue(w)}catch(w){w.name==="PermissionDenied"?k=w:_[j]&&(k=Error(v("Invalid JSON config file: %s",x)))}})}s(Z,"setConfig");function ue(_,P){Object.keys(_).forEach(function(j){let x=_[j],w=P?P+"."+j:j;typeof x=="object"&&x!==null&&!Array.isArray(x)&&u["dot-notation"]?ue(x,w):(!Bt(I,w.split("."))||te(w,g.arrays)&&u["combine-arrays"])&&ee(w,x)})}s(ue,"setConfigObject");function be(){typeof l<"u"&&l.forEach(function(_){ue(_)})}s(be,"setConfigObjects");function ge(_,P){if(typeof p>"u")return;let j=typeof p=="string"?p:"",x=Br.env();Object.keys(x).forEach(function(w){if(j===""||w.lastIndexOf(j,0)===0){let V=w.split("__").map(function(T,G){return G===0&&(T=T.substring(j.length)),Tn(T)});(P&&g.configs[V.join(".")]||!P)&&!Bt(_,V)&&ee(V.join("."),x[w])}})}s(ge,"applyEnvVars");function Ve(_){let P,j=new Set;Object.keys(_).forEach(function(x){if(!j.has(x)&&(P=te(x,g.coercions),typeof P=="function"))try{let w=q(x,P(_[x]));[].concat(g.aliases[x]||[],x).forEach(V=>{j.add(V),_[V]=w})}catch(w){k=w}})}s(Ve,"applyCoercions");function wr(_){return g.keys.forEach(P=>{~P.indexOf(".")||typeof _[P]>"u"&&(_[P]=void 0)}),_}s(wr,"setPlaceholderKeys");function xe(_,P,j,x=!1){Object.keys(j).forEach(function(w){Bt(_,w.split("."))||(Y(_,w.split("."),j[w]),x&&(y[w]=!0),(P[w]||[]).forEach(function(V){Bt(_,V.split("."))||Y(_,V.split("."),j[w])}))})}s(xe,"applyDefaultsAndAliases");function Bt(_,P){let j=_;u["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(w){j=j[w]||{}});let x=P[P.length-1];return typeof j!="object"?!1:x in j}s(Bt,"hasKey");function Y(_,P,j){let x=_;u["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(Ye){Ye=Mm(Ye),typeof x=="object"&&x[Ye]===void 0&&(x[Ye]={}),typeof x[Ye]!="object"||Array.isArray(x[Ye])?(Array.isArray(x[Ye])?x[Ye].push({}):x[Ye]=[x[Ye],{}],x=x[Ye][x[Ye].length-1]):x=x[Ye]});let w=Mm(P[P.length-1]),V=te(P.join("."),g.arrays),T=Array.isArray(j),G=u["duplicate-arguments-array"];!G&&te(w,g.nargs)&&(G=!0,(!xt(x[w])&&g.nargs[w]===1||Array.isArray(x[w])&&x[w].length===g.nargs[w])&&(x[w]=void 0)),j===Tc()?x[w]=Tc(x[w]):Array.isArray(x[w])?G&&V&&T?x[w]=u["flatten-duplicate-arrays"]?x[w].concat(j):(Array.isArray(x[w][0])?x[w]:[x[w]]).concat([j]):!G&&!!V==!!T?x[w]=j:x[w]=x[w].concat([j]):x[w]===void 0&&V?x[w]=T?j:[j]:G&&!(x[w]===void 0||te(w,g.counts)||te(w,g.bools))?x[w]=[x[w],j]:x[w]=j}s(Y,"setKey");function Ot(..._){_.forEach(function(P){Object.keys(P||{}).forEach(function(j){g.aliases[j]||(g.aliases[j]=[].concat(a[j]||[]),g.aliases[j].concat(j).forEach(function(x){if(/-/.test(x)&&u["camel-case-expansion"]){let w=Tn(x);w!==j&&g.aliases[j].indexOf(w)===-1&&(g.aliases[j].push(w),h[w]=!0)}}),g.aliases[j].concat(j).forEach(function(x){if(x.length>1&&/[A-Z]/.test(x)&&u["camel-case-expansion"]){let w=la(x,"-");w!==j&&g.aliases[j].indexOf(w)===-1&&(g.aliases[j].push(w),h[w]=!0)}}),g.aliases[j].forEach(function(x){g.aliases[x]=[j].concat(g.aliases[j].filter(function(w){return x!==w}))}))})})}s(Ot,"extendAliases");function te(_,P){let j=[].concat(g.aliases[_]||[],_),x=Object.keys(P),w=j.find(V=>x.includes(V));return w?P[w]:!1}s(te,"checkAllAliases");function Ae(_){let P=Object.keys(g);return[].concat(P.map(x=>g[x])).some(function(x){return Array.isArray(x)?x.includes(_):x[_]})}s(Ae,"hasAnyFlag");function Q(_,...P){return[].concat(...P).some(function(x){let w=_.match(x);return w&&Ae(w[1])})}s(Q,"hasFlagsMatching");function Ee(_){if(_.match($)||!_.match(/^-[^-]+/))return!1;let P=!0,j,x=_.slice(1).split("");for(let w=0;w<x.length;w++){if(j=_.slice(w+2),!Ae(x[w])){P=!1;break}if(x[w+1]&&x[w+1]==="="||j==="-"||/[A-Za-z]/.test(x[w])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(j)||x[w+1]&&x[w+1].match(/\W/))break}return P}s(Ee,"hasAllShortFlags");function Ce(_){return u["unknown-options-as-args"]&&pe(_)}s(Ce,"isUnknownOptionAsArg");function pe(_){return _=_.replace(/^-{3,}/,"--"),_.match($)||Ee(_)?!1:!Q(_,/^-+([^=]+?)=[\s\S]*$/,A,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}s(pe,"isUnknownOption");function _e(_){return!te(_,g.bools)&&!te(_,g.counts)&&`${_}`in c?c[_]:qe(nt(_))}s(_e,"defaultValue");function qe(_){return{[Ht.BOOLEAN]:!0,[Ht.STRING]:"",[Ht.NUMBER]:void 0,[Ht.ARRAY]:[]}[_]}s(qe,"defaultForType");function nt(_){let P=Ht.BOOLEAN;return te(_,g.strings)?P=Ht.STRING:te(_,g.numbers)?P=Ht.NUMBER:te(_,g.bools)?P=Ht.BOOLEAN:te(_,g.arrays)&&(P=Ht.ARRAY),P}s(nt,"guessType");function xt(_){return _===void 0}s(xt,"isUndefined");function xi(){Object.keys(g.counts).find(_=>te(_,g.arrays)?(k=Error(v("Invalid configuration: %s, opts.count excludes opts.array.",_)),!0):te(_,g.nargs)?(k=Error(v("Invalid configuration: %s, opts.count excludes opts.narg.",_)),!0):!1)}return s(xi,"checkConfiguration"),{aliases:Object.assign({},g.aliases),argv:Object.assign(fe,I),configuration:u,defaulted:Object.assign({},y),error:k,newAliases:Object.assign({},h)}}};s(qc,"YargsParser");var pa=qc;function Y$(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let o=i+1;o<t.length;o++)if(t[i].filter(function(u){return t[o].indexOf(u)!==-1}).length){t[i]=t[i].concat(t[o]),t.splice(o,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(a,u,c){return c.indexOf(a)===u});let o=i.pop();o!==void 0&&typeof o=="string"&&(r[o]=i)}),r}s(Y$,"combineAliases");function Tc(e){return e!==void 0?e+1:1}s(Tc,"increment");function Mm(e){return e==="__proto__"?"___proto___":e}s(Mm,"sanitizeKey");function J$(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}s(J$,"stripQuotes");var Lm=require("fs");var Dc,Lc,Fc,Tm=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,qm=(Lc=(Dc=process==null?void 0:process.versions)===null||Dc===void 0?void 0:Dc.node)!==null&&Lc!==void 0?Lc:(Fc=process==null?void 0:process.version)===null||Fc===void 0?void 0:Fc.slice(1);if(qm&&Number(qm.match(/^([^.]+)/)[1])<Tm)throw Error(`yargs parser supports a minimum Node.js version of ${Tm}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Q$=process?process.env:{},Fm=new pa({cwd:process.cwd,env:s(()=>Q$,"env"),format:Dm.format,normalize:da.normalize,resolve:da.resolve,require:s(e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,Lm.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")},"require")}),Fs=s(function(t,r){return Fm.parse(t.slice(),r).argv},"Parser");Fs.detailed=function(e,t){return Fm.parse(e.slice(),t)};Fs.camelCase=Tn;Fs.decamelize=la;Fs.looksLikeNumber=fa;var Vc=Fs;var or=require("path");function Vm(){return X$()?0:1}s(Vm,"getProcessArgvBinIndex");function X$(){return eP()&&!process.defaultApp}s(X$,"isBundledElectronApp");function eP(){return!!process.versions.electron}s(eP,"isElectronApp");function Bc(e){return e.slice(Vm()+1)}s(Bc,"hideBin");function Bm(){return process.argv[Vm()]}s(Bm,"getProcessArgvBin");var ha=class ha extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,ha)}};s(ha,"YError");var Re=ha;var Ai=require("fs"),Hm=require("util"),Um=require("path");var zm={fs:{readFileSync:Ai.readFileSync,writeFile:Ai.writeFile},format:Hm.format,resolve:Um.resolve,exists:s(e=>{try{return(0,Ai.statSync)(e).isFile()}catch{return!1}},"exists")};var sr,Uc=class Uc{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:!0,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=t.shift(),n=s(function(){},"cb");return typeof t[t.length-1]=="function"&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),sr.format.apply(sr.format,[this.cache[this.locale][r]||r].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),r=t.shift(),n=t.shift(),i=t.shift(),o=s(function(){},"cb");typeof t[t.length-1]=="function"&&(o=t.pop()),this.cache[this.locale]||this._readLocaleFile();let a=i===1?r:n;this.cache[this.locale][r]&&(a=this.cache[this.locale][r][i===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:o})):o();let u=[a];return~a.indexOf("%d")&&u.push(i),sr.format.apply(sr.format,u.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.cache[this.locale][r]=t[r])}_taggedLiteral(t,...r){let n="";return t.forEach(function(i,o){let a=r[o+1];n+=i,typeof a<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let t=this,r=this.writeQueue[0],n=r.directory,i=r.locale,o=r.cb,a=this._resolveLocaleFile(n,i),u=JSON.stringify(this.cache[i],null,2);sr.fs.writeFile(a,u,"utf-8",function(c){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),o(c)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{sr.fs.readFileSync&&(t=JSON.parse(sr.fs.readFileSync(r,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+r),n.code==="ENOENT")t={};else throw n}this.cache[this.locale]=t}_resolveLocaleFile(t,r){let n=sr.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=sr.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return sr.exists(t)}};s(Uc,"Y18N");var Hc=Uc;function Gm(e,t){sr=t;let r=new Hc(e);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}s(Gm,"y18n");var tP=s(e=>Gm(e,zm),"y18n"),Wm=tP;var iP={};var rP="require is not supported by ESM",Km="loading a directory of commands is not supported yet for ESM",Vs;try{Vs=(0,Jm.fileURLToPath)(iP.url)}catch{Vs=process.cwd()}var nP=Vs.substring(0,Vs.lastIndexOf("node_modules")),zc={assert:{notStrictEqual:ma.notStrictEqual,strictEqual:ma.strictEqual},cliui:Nc,findUp:Mc,getEnv:s(e=>process.env[e],"getEnv"),inspect:Zm.inspect,getCallerFile:s(()=>{throw new Re(Km)},"getCallerFile"),getProcessArgvBin:Bm,mainFilename:nP||process.cwd(),Parser:Vc,path:{basename:or.basename,dirname:or.dirname,extname:or.extname,relative:or.relative,resolve:or.resolve},process:{argv:s(()=>process.argv,"argv"),cwd:process.cwd,emitWarning:s((e,t)=>process.emitWarning(e,t),"emitWarning"),execPath:s(()=>process.execPath,"execPath"),exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:Ym.readFileSync,require:s(()=>{throw new Re(rP)},"require"),requireDirectory:s(()=>{throw new Re(Km)},"requireDirectory"),stringWidth:s(e=>[...e].length,"stringWidth"),y18n:Wm({directory:(0,or.resolve)(Vs,"../../../locales"),updateFiles:!1})};function yt(e,t,r,n){r.assert.notStrictEqual(e,t,n)}s(yt,"assertNotStrictEqual");function Gc(e,t){t.assert.strictEqual(typeof e,"string")}s(Gc,"assertSingleKey");function Ci(e){return Object.keys(e)}s(Ci,"objectKeys");function je(e){return!!e&&!!e.then&&typeof e.then=="function"}s(je,"isPromise");function rn(e){let r=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,i=r.shift();if(!i)throw new Error(`No command found in: ${e}`);let o={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((a,u)=>{let c=!1;a=a.replace(/\s/g,""),/\.+[\]>]/.test(a)&&u===r.length-1&&(c=!0),/^\[/.test(a)?o.optional.push({cmd:a.replace(n,"").split("|"),variadic:c}):o.demanded.push({cmd:a.replace(n,"").split("|"),variadic:c})}),o}s(rn,"parseCommand");var sP=["first","second","third","fourth","fifth","sixth"];function F(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[rn(`cmd ${e}`),t,r]}s(n,"parseArgs");try{let i=0,[o,a,u]=n(),c=[].slice.call(a);for(;c.length&&c[c.length-1]===void 0;)c.pop();let l=u||c.length;if(l<o.demanded.length)throw new Re(`Not enough arguments provided. Expected ${o.demanded.length} but received ${c.length}.`);let p=o.demanded.length+o.optional.length;if(l>p)throw new Re(`Too many arguments provided. Expected max ${p} but received ${l}.`);o.demanded.forEach(f=>{let d=c.shift(),h=Qm(d);f.cmd.filter(v=>v===h||v==="*").length===0&&Xm(h,f.cmd,i),i+=1}),o.optional.forEach(f=>{if(c.length===0)return;let d=c.shift(),h=Qm(d);f.cmd.filter(v=>v===h||v==="*").length===0&&Xm(h,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}s(F,"argsert");function Qm(e){return Array.isArray(e)?"array":e===null?"null":typeof e}s(Qm,"guessType");function Xm(e,t,r){throw new Re(`Invalid ${sP[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}s(Xm,"argumentTypeError");var Wc=class Wc{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,r,n=!0,i=!1){if(F("<array|function> [boolean] [boolean] [boolean]",[t,r,n],arguments.length),Array.isArray(t)){for(let o=0;o<t.length;o++){if(typeof t[o]!="function")throw Error("middleware must be a function");let a=t[o];a.applyBeforeValidation=r,a.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let o=t;o.applyBeforeValidation=r,o.global=n,o.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,r){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let o=[...n[r]||[],r];return i.option?!o.includes(i.option):!0}),t.option=r,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global)}};s(Wc,"GlobalMiddleware");var ga=Wc;function eg(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}s(eg,"commandMiddlewareFactory");function qn(e,t,r,n){return r.reduce((i,o)=>{if(o.applyBeforeValidation!==n)return i;if(o.mutates){if(o.applied)return i;o.applied=!0}if(je(i))return i.then(a=>Promise.all([a,o(a,t)])).then(([a,u])=>Object.assign(a,u));{let a=o(i,t);return je(a)?a.then(u=>Object.assign(i,u)):Object.assign(i,a)}},e)}s(qn,"applyMiddleware");function Dn(e,t,r=n=>{throw n}){try{let n=oP(e)?e():e;return je(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}s(Dn,"maybeAsyncResult");function oP(e){return typeof e=="function"}s(oP,"isFunction");function Kc(e){if(typeof require>"u")return null;for(let t=0,r=Object.keys(require.cache),n;t<r.length;t++)if(n=require.cache[r[t]],n.exports===e)return n;return null}s(Kc,"whichModule");var Ii=/(^\*)|(^\$0)/,Yc=class Yc{constructor(t,r,n,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=n,this.validation=r}addDirectory(t,r,n,i){i=i||{},typeof i.recurse!="boolean"&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);let o=typeof i.visit=="function"?i.visit:a=>a;i.visit=(a,u,c)=>{let l=o(a,u,c);if(l){if(this.requireCache.has(u))return l;this.requireCache.add(u),this.addHandler(l)}return l},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,o,a){let u=[],c=eg(o);if(i=i||(()=>{}),Array.isArray(t))if(aP(t))[t,...u]=t;else for(let l of t)this.addHandler(l);else if(cP(t)){let l=Array.isArray(t.command)||typeof t.command=="string"?t.command:this.moduleName(t);t.aliases&&(l=[].concat(l).concat(t.aliases)),this.addHandler(l,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(tg(n)){this.addHandler([t].concat(u),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=rn(t);u=u.map(d=>rn(d).cmd);let p=!1,f=[l.cmd].concat(u).filter(d=>Ii.test(d)?(p=!0,!1):!0);f.length===0&&p&&f.push("$0"),p&&(l.cmd=f[0],u=f.slice(1),t=t.replace(Ii,l.cmd)),u.forEach(d=>{this.aliasMap[d]=l.cmd}),r!==!1&&this.usage.command(t,r,p,u,a),this.handlers[l.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:c,deprecated:a,demanded:l.demanded,optional:l.optional},p&&(this.defaultCommand=this.handlers[l.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,r,n,i,o,a){let u=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,c=r.getInternalMethods().getContext(),l=c.commands.slice(),p=!t;t&&(c.commands.push(t),c.fullCommands.push(u.original));let f=this.applyBuilderUpdateUsageAndParse(p,u,r,n.aliases,l,i,o,a);return je(f)?f.then(d=>this.applyMiddlewareAndGetResult(p,u,d.innerArgv,c,o,d.aliases,r)):this.applyMiddlewareAndGetResult(p,u,f.innerArgv,c,o,f.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,o,a,u,c){let l=r.builder,p=n;if(ya(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),c);if(je(f))return f.then(d=>(p=ng(d)?d:n,this.parseAndUpdateUsage(t,r,p,o,a,u)))}else uP(l)&&(n.getInternalMethods().getUsageInstance().freeze(),p=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(f=>{p.option(f,l[f])}));return this.parseAndUpdateUsage(t,r,p,o,a,u)}parseAndUpdateUsage(t,r,n,i,o,a){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let u=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,o,a);return je(u)?u.then(c=>({aliases:n.parsed.aliases,innerArgv:c})):{aliases:n.parsed.aliases,innerArgv:u}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=Ii.test(r.original)?r.original.replace(Ii,"").trim():r.original,i=t.filter(o=>!Ii.test(o));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,o,a,u,c){if(!a.getInternalMethods().getHasOutput()){let l=a.getInternalMethods().runValidation(o,c,a.parsed.error,t);n=Dn(n,p=>(l(p),p))}if(r.handler&&!a.getInternalMethods().getHasOutput()){a.getInternalMethods().setHasOutput();let l=!!a.getOptions().configuration["populate--"];a.getInternalMethods().postProcess(n,l,!1,!1),n=qn(n,a,u,!1),n=Dn(n,p=>{let f=r.handler(p);return je(f)?f.then(()=>p):p}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),je(n)&&!a.getInternalMethods().hasParseCallback()&&n.catch(p=>{try{a.getInternalMethods().getUsageInstance().fail(null,p)}catch{}})}return t||(i.commands.pop(),i.fullCommands.pop()),n}applyMiddlewareAndGetResult(t,r,n,i,o,a,u){let c={};if(o)return n;u.getInternalMethods().getHasOutput()||(c=this.populatePositionals(r,n,i,u));let l=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),p=qn(n,u,l,!0);return je(p)?p.then(f=>this.handleValidationAndGetResult(t,r,f,i,a,u,l,c)):this.handleValidationAndGetResult(t,r,p,i,a,u,l,c)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let o=t.demanded.slice(0),a=t.optional.slice(0),u={};for(this.validation.positionalCount(o.length,r._.length);o.length;){let c=o.shift();this.populatePositional(c,r,u)}for(;a.length;){let c=a.shift();this.populatePositional(c,r,u)}return r._=n.commands.concat(r._.map(c=>""+c)),this.postProcessPositionals(r,u,this.cmdToParseOptions(t.original),i),u}populatePositional(t,r,n){let i=t.cmd[0];t.variadic?n[i]=r._.splice(0).map(String):r._.length&&(n[i]=[String(r._.shift())])}cmdToParseOptions(t){let r={array:[],default:{},alias:{},demand:{}},n=rn(t);return n.demanded.forEach(i=>{let[o,...a]=i.cmd;i.variadic&&(r.array.push(o),r.default[o]=[]),r.alias[o]=a,r.demand[o]=!0}),n.optional.forEach(i=>{let[o,...a]=i.cmd;i.variadic&&(r.array.push(o),r.default[o]=[]),r.alias[o]=a}),r}postProcessPositionals(t,r,n,i){let o=Object.assign({},i.getOptions());o.default=Object.assign(n.default,o.default);for(let l of Object.keys(n.alias))o.alias[l]=(o.alias[l]||[]).concat(n.alias[l]);o.array=o.array.concat(n.array),o.config={};let a=[];if(Object.keys(r).forEach(l=>{r[l].map(p=>{o.configuration["unknown-options-as-args"]&&(o.key[l]=!0),a.push(`--${l}`),a.push(p)})}),!a.length)return;let u=Object.assign({},o.configuration,{"populate--":!1}),c=this.shim.Parser.detailed(a,Object.assign({},o,{configuration:u}));if(c.error)i.getInternalMethods().getUsageInstance().fail(c.error.message,c.error);else{let l=Object.keys(r);Object.keys(r).forEach(p=>{l.push(...c.aliases[p])}),Object.keys(c.argv).forEach(p=>{l.includes(p)&&(r[p]||(r[p]=c.argv[p]),!this.isInConfigs(i,p)&&!this.isDefaulted(i,p)&&Object.prototype.hasOwnProperty.call(t,p)&&Object.prototype.hasOwnProperty.call(c.argv,p)&&(Array.isArray(t[p])||Array.isArray(c.argv[p]))?t[p]=[].concat(t[p],c.argv[p]):t[p]=c.argv[p])})}}isDefaulted(t,r){let{default:n}=t.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(t,r){let{configObjects:n}=t.getOptions();return n.some(i=>Object.prototype.hasOwnProperty.call(i,r))||n.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let n=Ii.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}let r=this.defaultCommand.builder;if(ya(r))return r(t,!0);tg(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=Kc(t);if(!r)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);return this.commandFromFilename(r.filename)}commandFromFilename(t){return this.shim.path.basename(t,this.shim.path.extname(t))}extractDesc({describe:t,description:r,desc:n}){for(let i of[t,r,n]){if(typeof i=="string"||i===!1)return i;yt(i,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let t=this.frozens.pop();yt(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};s(Yc,"CommandInstance");var Zc=Yc;function rg(e,t,r,n){return new Zc(e,t,r,n)}s(rg,"command");function tg(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}s(tg,"isCommandBuilderDefinition");function aP(e){return e.every(t=>typeof t=="string")}s(aP,"isCommandAndAliases");function ya(e){return typeof e=="function"}s(ya,"isCommandBuilderCallback");function uP(e){return typeof e=="object"}s(uP,"isCommandBuilderOptionDefinitions");function cP(e){return typeof e=="object"&&!Array.isArray(e)}s(cP,"isCommandHandlerDefinition");function nn(e={},t=()=>!0){let r={};return Ci(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}s(nn,"objFilter");function sn(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let r=t;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(e)})}s(sn,"setBlocking");function lP(e){return typeof e=="boolean"}s(lP,"isBoolean");function sg(e,t){let r=t.y18n.__,n={},i=[];n.failFn=s(function(R){i.push(R)},"failFn");let o=null,a=null,u=!0;n.showHelpOnFail=s(function(R=!0,q){let[Z,ue]=typeof R=="string"?[!0,R]:[R,q];return e.getInternalMethods().isGlobalContext()&&(a=ue),o=ue,u=Z,n},"showHelpOnFailFn");let c=!1;n.fail=s(function(R,q){let Z=e.getInternalMethods().getLoggerInstance();if(i.length)for(let ue=i.length-1;ue>=0;--ue){let be=i[ue];if(lP(be)){if(q)throw q;if(R)throw Error(R)}else be(R,q,n)}else{if(e.getExitProcess()&&sn(!0),!c){c=!0,u&&(e.showHelp("error"),Z.error()),(R||q)&&Z.error(R||q);let ue=o||a;ue&&((R||q)&&Z.error(""),Z.error(ue))}if(q=q||new Re(R),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,q);throw q}},"fail");let l=[],p=!1;n.usage=(M,R)=>M===null?(p=!0,l=[],n):(p=!1,l.push([M,R||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>p,n.getPositionalGroupName=()=>r("Positionals:");let f=[];n.example=(M,R)=>{f.push([M,R||""])};let d=[];n.command=s(function(R,q,Z,ue,be=!1){Z&&(d=d.map(ge=>(ge[2]=!1,ge))),d.push([R,q||"",Z,ue,be])},"command"),n.getCommands=()=>d;let h={};n.describe=s(function(R,q){Array.isArray(R)?R.forEach(Z=>{n.describe(Z,q)}):typeof R=="object"?Object.keys(R).forEach(Z=>{n.describe(Z,R[Z])}):h[R]=q},"describe"),n.getDescriptions=()=>h;let y=[];n.epilog=M=>{y.push(M)};let v=!1,g;n.wrap=M=>{v=!0,g=M},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(v||(g=ot(),v=!0),g);let $="__yargsString__:";n.deferY18nLookup=M=>$+M,n.help=s(function(){if(C)return C;k();let R=e.customScriptName?e.$0:t.path.basename(e.$0),q=e.getDemandedOptions(),Z=e.getDemandedCommands(),ue=e.getDeprecatedOptions(),be=e.getGroups(),ge=e.getOptions(),Ve=[];Ve=Ve.concat(Object.keys(h)),Ve=Ve.concat(Object.keys(q)),Ve=Ve.concat(Object.keys(Z)),Ve=Ve.concat(Object.keys(ge.default)),Ve=Ve.filter(fe),Ve=Object.keys(Ve.reduce((Q,Ee)=>(Ee!=="_"&&(Q[Ee]=!0),Q),{}));let wr=n.getWrap(),xe=t.cliui({width:wr,wrap:!!wr});if(!p){if(l.length)l.forEach(Q=>{xe.div({text:`${Q[0].replace(/\$0/g,R)}`}),Q[1]&&xe.div({text:`${Q[1]}`,padding:[1,0,0,0]})}),xe.div();else if(d.length){let Q=null;Z._?Q=`${R} <${r("command")}>
79
79
  `:Q=`${R} [${r("command")}]
80
- `,xe.div(`${Q}`)}}if(d.length>1||d.length===1&&!d[0][2]){xe.div(r("Commands:"));let Q=e.getInternalMethods().getContext(),Ee=Q.commands.length?`${Q.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(d=d.sort((pe,_e)=>pe[0].localeCompare(_e[0])));let Ce=R?`${R} `:"";d.forEach(pe=>{let _e=`${Ce}${Ee}${pe[0].replace(/^\$0 ?/,"")}`;xe.span({text:_e,padding:[0,2,0,2],width:A(d,wr,`${R}${Ee}`)+4},{text:pe[1]});let Te=[];pe[2]&&Te.push(`[${r("default")}]`),pe[3]&&pe[3].length&&Te.push(`[${r("aliases:")} ${pe[3].join(", ")}]`),pe[4]&&(typeof pe[4]=="string"?Te.push(`[${r("deprecated: %s",pe[4])}]`):Te.push(`[${r("deprecated")}]`)),Te.length?xe.div({text:Te.join(" "),padding:[0,0,0,2],align:"right"}):xe.div()}),xe.div()}let Bt=(Object.keys(ge.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);Ve=Ve.filter(Q=>!e.parsed.newAliases[Q]&&Bt.every(Ee=>(ge.alias[Ee]||[]).indexOf(Q)===-1));let Y=r("Options:");be[Y]||(be[Y]=[]),I(Ve,ge.alias,be,Y);let Ot=s(Q=>/^--/.test(va(Q)),"isLongSwitch"),te=Object.keys(be).filter(Q=>be[Q].length>0).map(Q=>{let Ee=be[Q].filter(fe).map(Ce=>{if(Bt.includes(Ce))return Ce;for(let pe=0,_e;(_e=Bt[pe])!==void 0;pe++)if((ge.alias[_e]||[]).includes(Ce))return _e;return Ce});return{groupName:Q,normalizedKeys:Ee}}).filter(({normalizedKeys:Q})=>Q.length>0).map(({groupName:Q,normalizedKeys:Ee})=>{let Ce=Ee.reduce((pe,_e)=>(pe[_e]=[_e].concat(ge.alias[_e]||[]).map(Te=>Q===n.getPositionalGroupName()?Te:(/^[0-9]$/.test(Te)?ge.boolean.includes(_e)?"-":"--":Te.length>1?"--":"-")+Te).sort((Te,nt)=>Ot(Te)===Ot(nt)?0:Ot(Te)?1:-1).join(", "),pe),{});return{groupName:Q,normalizedKeys:Ee,switches:Ce}});if(te.filter(({groupName:Q})=>Q!==n.getPositionalGroupName()).some(({normalizedKeys:Q,switches:Ee})=>!Q.every(Ce=>Ot(Ee[Ce])))&&te.filter(({groupName:Q})=>Q!==n.getPositionalGroupName()).forEach(({normalizedKeys:Q,switches:Ee})=>{Q.forEach(Ce=>{Ot(Ee[Ce])&&(Ee[Ce]=fP(Ee[Ce],4))})}),te.forEach(({groupName:Q,normalizedKeys:Ee,switches:Ce})=>{xe.div(Q),Ee.forEach(pe=>{let _e=Ce[pe],Te=h[pe]||"",nt=null;Te.includes($)&&(Te=r(Te.substring($.length))),ge.boolean.includes(pe)&&(nt=`[${r("boolean")}]`),ge.count.includes(pe)&&(nt=`[${r("count")}]`),ge.string.includes(pe)&&(nt=`[${r("string")}]`),ge.normalize.includes(pe)&&(nt=`[${r("string")}]`),ge.array.includes(pe)&&(nt=`[${r("array")}]`),ge.number.includes(pe)&&(nt=`[${r("number")}]`);let xt=s(P=>typeof P=="string"?`[${r("deprecated: %s",P)}]`:`[${r("deprecated")}]`,"deprecatedExtra"),xi=[pe in ue?xt(ue[pe]):null,nt,pe in q?`[${r("required")}]`:null,ge.choices&&ge.choices[pe]?`[${r("choices:")} ${n.stringifiedValues(ge.choices[pe])}]`:null,ne(ge.default[pe],ge.defaultDescription[pe])].filter(Boolean).join(" ");xe.span({text:va(_e),padding:[0,2,0,2+ig(_e)],width:A(Ce,wr)+4},Te);let _=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;xi&&!_?xe.div({text:xi,padding:[0,0,0,2],align:"right"}):xe.div()}),xe.div()}),f.length&&(xe.div(r("Examples:")),f.forEach(Q=>{Q[0]=Q[0].replace(/\$0/g,R)}),f.forEach(Q=>{Q[1]===""?xe.div({text:Q[0],padding:[0,2,0,2]}):xe.div({text:Q[0],padding:[0,2,0,2],width:A(f,wr)+4},{text:Q[1]})}),xe.div()),y.length>0){let Q=y.map(Ee=>Ee.replace(/\$0/g,R)).join(`
80
+ `,xe.div(`${Q}`)}}if(d.length>1||d.length===1&&!d[0][2]){xe.div(r("Commands:"));let Q=e.getInternalMethods().getContext(),Ee=Q.commands.length?`${Q.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(d=d.sort((pe,_e)=>pe[0].localeCompare(_e[0])));let Ce=R?`${R} `:"";d.forEach(pe=>{let _e=`${Ce}${Ee}${pe[0].replace(/^\$0 ?/,"")}`;xe.span({text:_e,padding:[0,2,0,2],width:A(d,wr,`${R}${Ee}`)+4},{text:pe[1]});let qe=[];pe[2]&&qe.push(`[${r("default")}]`),pe[3]&&pe[3].length&&qe.push(`[${r("aliases:")} ${pe[3].join(", ")}]`),pe[4]&&(typeof pe[4]=="string"?qe.push(`[${r("deprecated: %s",pe[4])}]`):qe.push(`[${r("deprecated")}]`)),qe.length?xe.div({text:qe.join(" "),padding:[0,0,0,2],align:"right"}):xe.div()}),xe.div()}let Bt=(Object.keys(ge.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);Ve=Ve.filter(Q=>!e.parsed.newAliases[Q]&&Bt.every(Ee=>(ge.alias[Ee]||[]).indexOf(Q)===-1));let Y=r("Options:");be[Y]||(be[Y]=[]),I(Ve,ge.alias,be,Y);let Ot=s(Q=>/^--/.test(va(Q)),"isLongSwitch"),te=Object.keys(be).filter(Q=>be[Q].length>0).map(Q=>{let Ee=be[Q].filter(fe).map(Ce=>{if(Bt.includes(Ce))return Ce;for(let pe=0,_e;(_e=Bt[pe])!==void 0;pe++)if((ge.alias[_e]||[]).includes(Ce))return _e;return Ce});return{groupName:Q,normalizedKeys:Ee}}).filter(({normalizedKeys:Q})=>Q.length>0).map(({groupName:Q,normalizedKeys:Ee})=>{let Ce=Ee.reduce((pe,_e)=>(pe[_e]=[_e].concat(ge.alias[_e]||[]).map(qe=>Q===n.getPositionalGroupName()?qe:(/^[0-9]$/.test(qe)?ge.boolean.includes(_e)?"-":"--":qe.length>1?"--":"-")+qe).sort((qe,nt)=>Ot(qe)===Ot(nt)?0:Ot(qe)?1:-1).join(", "),pe),{});return{groupName:Q,normalizedKeys:Ee,switches:Ce}});if(te.filter(({groupName:Q})=>Q!==n.getPositionalGroupName()).some(({normalizedKeys:Q,switches:Ee})=>!Q.every(Ce=>Ot(Ee[Ce])))&&te.filter(({groupName:Q})=>Q!==n.getPositionalGroupName()).forEach(({normalizedKeys:Q,switches:Ee})=>{Q.forEach(Ce=>{Ot(Ee[Ce])&&(Ee[Ce]=fP(Ee[Ce],4))})}),te.forEach(({groupName:Q,normalizedKeys:Ee,switches:Ce})=>{xe.div(Q),Ee.forEach(pe=>{let _e=Ce[pe],qe=h[pe]||"",nt=null;qe.includes($)&&(qe=r(qe.substring($.length))),ge.boolean.includes(pe)&&(nt=`[${r("boolean")}]`),ge.count.includes(pe)&&(nt=`[${r("count")}]`),ge.string.includes(pe)&&(nt=`[${r("string")}]`),ge.normalize.includes(pe)&&(nt=`[${r("string")}]`),ge.array.includes(pe)&&(nt=`[${r("array")}]`),ge.number.includes(pe)&&(nt=`[${r("number")}]`);let xt=s(P=>typeof P=="string"?`[${r("deprecated: %s",P)}]`:`[${r("deprecated")}]`,"deprecatedExtra"),xi=[pe in ue?xt(ue[pe]):null,nt,pe in q?`[${r("required")}]`:null,ge.choices&&ge.choices[pe]?`[${r("choices:")} ${n.stringifiedValues(ge.choices[pe])}]`:null,ne(ge.default[pe],ge.defaultDescription[pe])].filter(Boolean).join(" ");xe.span({text:va(_e),padding:[0,2,0,2+ig(_e)],width:A(Ce,wr)+4},qe);let _=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;xi&&!_?xe.div({text:xi,padding:[0,0,0,2],align:"right"}):xe.div()}),xe.div()}),f.length&&(xe.div(r("Examples:")),f.forEach(Q=>{Q[0]=Q[0].replace(/\$0/g,R)}),f.forEach(Q=>{Q[1]===""?xe.div({text:Q[0],padding:[0,2,0,2]}):xe.div({text:Q[0],padding:[0,2,0,2],width:A(f,wr)+4},{text:Q[1]})}),xe.div()),y.length>0){let Q=y.map(Ee=>Ee.replace(/\$0/g,R)).join(`
81
81
  `);xe.div(`${Q}
82
- `)}return xe.toString().replace(/\s*$/,"")},"help");function A(M,R,q){let Z=0;return Array.isArray(M)||(M=Object.values(M).map(ue=>[ue])),M.forEach(ue=>{Z=Math.max(t.stringWidth(q?`${q} ${va(ue[0])}`:va(ue[0]))+ig(ue[0]),Z)}),R&&(Z=Math.min(Z,parseInt((R*.5).toString(),10))),Z}s(A,"maxWidth");function k(){let M=e.getDemandedOptions(),R=e.getOptions();(Object.keys(R.alias)||[]).forEach(q=>{R.alias[q].forEach(Z=>{h[Z]&&n.describe(q,h[Z]),Z in M&&e.demandOption(q,M[Z]),R.boolean.includes(Z)&&e.boolean(q),R.count.includes(Z)&&e.count(q),R.string.includes(Z)&&e.string(q),R.normalize.includes(Z)&&e.normalize(q),R.array.includes(Z)&&e.array(q),R.number.includes(Z)&&e.number(q)})})}s(k,"normalizeAliases");let C;n.cacheHelpMessage=function(){C=this.help()},n.clearCachedHelpMessage=function(){C=void 0},n.hasCachedHelpMessage=function(){return!!C};function I(M,R,q,Z){let ue=[],be=null;return Object.keys(q).forEach(ge=>{ue=ue.concat(q[ge])}),M.forEach(ge=>{be=[ge].concat(R[ge]),be.some(Ve=>ue.indexOf(Ve)!==-1)||q[Z].push(ge)}),ue}s(I,"addUngroupedKeys");function fe(M){return e.getOptions().hiddenOptions.indexOf(M)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}s(fe,"filterHiddenOptions"),n.showHelp=M=>{let R=e.getInternalMethods().getLoggerInstance();M||(M="error"),(typeof M=="function"?M:R[M])(n.help())},n.functionDescription=M=>["(",M.name?t.Parser.decamelize(M.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=s(function(R,q){let Z="",ue=q||", ",be=[].concat(R);return!R||!be.length||be.forEach(ge=>{Z.length&&(Z+=ue),Z+=JSON.stringify(ge)}),Z},"stringifiedValues");function ne(M,R){let q=`[${r("default:")} `;if(M===void 0&&!R)return null;if(R)q+=R;else switch(typeof M){case"string":q+=`"${M}"`;break;case"object":q+=JSON.stringify(M);break;default:q+=M}return`${q}]`}s(ne,"defaultString");function gt(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}s(gt,"windowWidth");let Le=null;n.version=M=>{Le=M},n.showVersion=M=>{let R=e.getInternalMethods().getLoggerInstance();M||(M="error"),(typeof M=="function"?M:R[M])(Le)},n.reset=s(function(R){return o=null,c=!1,l=[],p=!1,y=[],f=[],d=[],h=nn(h,q=>!R[q]),n},"reset");let ee=[];return n.freeze=s(function(){ee.push({failMessage:o,failureOutput:c,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h})},"freeze"),n.unfreeze=s(function(R=!1){let q=ee.pop();q&&(R?(h={...q.descriptions,...h},d=[...q.commands,...d],l=[...q.usages,...l],f=[...q.examples,...f],y=[...q.epilogs,...y]):{failMessage:o,failureOutput:c,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h}=q)},"unfreeze"),n}s(sg,"usage");function Jc(e){return typeof e=="object"}s(Jc,"isIndentedText");function fP(e,t){return Jc(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}s(fP,"addIndentation");function ig(e){return Jc(e)?e.indentation:0}s(ig,"getIndentation");function va(e){return Jc(e)?e.text:e}s(va,"getText");var og=`###-begin-{{app_name}}-completions-###
82
+ `)}return xe.toString().replace(/\s*$/,"")},"help");function A(M,R,q){let Z=0;return Array.isArray(M)||(M=Object.values(M).map(ue=>[ue])),M.forEach(ue=>{Z=Math.max(t.stringWidth(q?`${q} ${va(ue[0])}`:va(ue[0]))+ig(ue[0]),Z)}),R&&(Z=Math.min(Z,parseInt((R*.5).toString(),10))),Z}s(A,"maxWidth");function k(){let M=e.getDemandedOptions(),R=e.getOptions();(Object.keys(R.alias)||[]).forEach(q=>{R.alias[q].forEach(Z=>{h[Z]&&n.describe(q,h[Z]),Z in M&&e.demandOption(q,M[Z]),R.boolean.includes(Z)&&e.boolean(q),R.count.includes(Z)&&e.count(q),R.string.includes(Z)&&e.string(q),R.normalize.includes(Z)&&e.normalize(q),R.array.includes(Z)&&e.array(q),R.number.includes(Z)&&e.number(q)})})}s(k,"normalizeAliases");let C;n.cacheHelpMessage=function(){C=this.help()},n.clearCachedHelpMessage=function(){C=void 0},n.hasCachedHelpMessage=function(){return!!C};function I(M,R,q,Z){let ue=[],be=null;return Object.keys(q).forEach(ge=>{ue=ue.concat(q[ge])}),M.forEach(ge=>{be=[ge].concat(R[ge]),be.some(Ve=>ue.indexOf(Ve)!==-1)||q[Z].push(ge)}),ue}s(I,"addUngroupedKeys");function fe(M){return e.getOptions().hiddenOptions.indexOf(M)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}s(fe,"filterHiddenOptions"),n.showHelp=M=>{let R=e.getInternalMethods().getLoggerInstance();M||(M="error"),(typeof M=="function"?M:R[M])(n.help())},n.functionDescription=M=>["(",M.name?t.Parser.decamelize(M.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=s(function(R,q){let Z="",ue=q||", ",be=[].concat(R);return!R||!be.length||be.forEach(ge=>{Z.length&&(Z+=ue),Z+=JSON.stringify(ge)}),Z},"stringifiedValues");function ne(M,R){let q=`[${r("default:")} `;if(M===void 0&&!R)return null;if(R)q+=R;else switch(typeof M){case"string":q+=`"${M}"`;break;case"object":q+=JSON.stringify(M);break;default:q+=M}return`${q}]`}s(ne,"defaultString");function ot(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}s(ot,"windowWidth");let Te=null;n.version=M=>{Te=M},n.showVersion=M=>{let R=e.getInternalMethods().getLoggerInstance();M||(M="error"),(typeof M=="function"?M:R[M])(Te)},n.reset=s(function(R){return o=null,c=!1,l=[],p=!1,y=[],f=[],d=[],h=nn(h,q=>!R[q]),n},"reset");let ee=[];return n.freeze=s(function(){ee.push({failMessage:o,failureOutput:c,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h})},"freeze"),n.unfreeze=s(function(R=!1){let q=ee.pop();q&&(R?(h={...q.descriptions,...h},d=[...q.commands,...d],l=[...q.usages,...l],f=[...q.examples,...f],y=[...q.epilogs,...y]):{failMessage:o,failureOutput:c,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h}=q)},"unfreeze"),n}s(sg,"usage");function Jc(e){return typeof e=="object"}s(Jc,"isIndentedText");function fP(e,t){return Jc(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}s(fP,"addIndentation");function ig(e){return Jc(e)?e.indentation:0}s(ig,"getIndentation");function va(e){return Jc(e)?e.text:e}s(va,"getText");var og=`###-begin-{{app_name}}-completions-###
83
83
  #
84
84
  # yargs command completion script
85
85
  #
@@ -133,15 +133,15 @@ ${y.join(`
133
133
  `;d.forEach(y=>{h+=y}),t.fail(h)}},"implications");let c={};o.conflicts=s(function(f,d){F("<string|object> [array|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{o.conflicts(h,f[h])}):(e.global(f),c[f]||(c[f]=[]),Array.isArray(d)?d.forEach(h=>o.conflicts(f,h)):c[f].push(d))},"conflicts"),o.getConflicting=()=>c,o.conflicting=s(function(f){Object.keys(f).forEach(d=>{c[d]&&c[d].forEach(h=>{h&&f[d]!==void 0&&f[h]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",d,h))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(c).forEach(d=>{c[d].forEach(h=>{h&&f[r.Parser.camelCase(d)]!==void 0&&f[r.Parser.camelCase(h)]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",d,h))})})},"conflictingFn"),o.recommendCommands=s(function(f,d){d=d.sort((g,$)=>$.length-g.length);let y=null,v=1/0;for(let g=0,$;($=d[g])!==void 0;g++){let A=cg(f,$);A<=3&&A<v&&(v=A,y=$)}y&&t.fail(n("Did you mean %s?",y))},"recommendCommands"),o.reset=s(function(f){return a=nn(a,d=>!f[d]),c=nn(c,d=>!f[d]),o},"reset");let l=[];return o.freeze=s(function(){l.push({implied:a,conflicting:c})},"freeze"),o.unfreeze=s(function(){let f=l.pop();yt(f,void 0,r),{implied:a,conflicting:c}=f},"unfreeze"),o}s(fg,"validation");var el=[],Bs;function Hs(e,t,r,n){Bs=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let o=/\.json|\..*rc$/.test(e.extends),a=null;if(o)a=gP(t,e.extends);else try{a=require.resolve(e.extends)}catch{return e}mP(a),el.push(a),i=o?JSON.parse(Bs.readFileSync(a,"utf8")):require(e.extends),delete e.extends,i=Hs(i,Bs.path.dirname(a),r,Bs)}return el=[],r?pg(i,e):Object.assign({},i,e)}s(Hs,"applyExtends");function mP(e){if(el.indexOf(e)>-1)throw new Re(`Circular extended configurations: '${e}'.`)}s(mP,"checkForCircularExtends");function gP(e,t){return Bs.path.resolve(e,t)}s(gP,"getPathToDefaultConfig");function pg(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}s(n,"isObject"),Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=pg(e[i],t[i]):r[i]=t[i];return r}s(pg,"mergeDeep");var B=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},m=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ke,Ln,Us,Ut,Nt,ba,on,Fn,_a,zt,Sa,Gt,$r,Mt,Wt,wa,Ri,it,W,$a,Pa,Tt,Vn,ji,Bn,an,Oa,re,Hn,Un,zn,se,xa,Pr,Be;function jg(e){return(t=[],r=e.process.cwd(),n)=>{let i=new fl(t,r,n,e);return Object.defineProperty(i,"argv",{get:s(()=>i.parse(),"get"),enumerable:!0}),i.help(),i.version(),i}}s(jg,"YargsFactory");var dg=Symbol("copyDoubleDash"),hg=Symbol("copyDoubleDash"),tl=Symbol("deleteFromParserHintObject"),mg=Symbol("emitWarning"),gg=Symbol("freeze"),yg=Symbol("getDollarZero"),Gn=Symbol("getParserConfiguration"),vg=Symbol("getUsageConfiguration"),rl=Symbol("guessLocale"),bg=Symbol("guessVersion"),_g=Symbol("parsePositionalNumbers"),nl=Symbol("pkgUp"),un=Symbol("populateParserHintArray"),ki=Symbol("populateParserHintSingleValueDictionary"),il=Symbol("populateParserHintArrayDictionary"),sl=Symbol("populateParserHintDictionary"),ol=Symbol("sanitizeKey"),al=Symbol("setKey"),ul=Symbol("unfreeze"),Sg=Symbol("validateAsync"),wg=Symbol("getCommandInstance"),$g=Symbol("getContext"),Pg=Symbol("getHasOutput"),Og=Symbol("getLoggerInstance"),xg=Symbol("getParseContext"),Eg=Symbol("getUsageInstance"),Ag=Symbol("getValidationInstance"),Ea=Symbol("hasParseCallback"),Cg=Symbol("isGlobalContext"),Wn=Symbol("postProcess"),Ig=Symbol("rebase"),cl=Symbol("reset"),zs=Symbol("runYargsParserAndExecuteCommands"),ll=Symbol("runValidation"),Rg=Symbol("setHasOutput"),Kn=Symbol("kTrackManuallySetKeys"),pl=class pl{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Ke.set(this,void 0),Ln.set(this,void 0),Us.set(this,{commands:[],fullCommands:[]}),Ut.set(this,null),Nt.set(this,null),ba.set(this,"show-hidden"),on.set(this,null),Fn.set(this,!0),_a.set(this,{}),zt.set(this,!0),Sa.set(this,[]),Gt.set(this,void 0),$r.set(this,{}),Mt.set(this,!1),Wt.set(this,null),wa.set(this,!0),Ri.set(this,void 0),it.set(this,""),W.set(this,void 0),$a.set(this,void 0),Pa.set(this,{}),Tt.set(this,null),Vn.set(this,null),ji.set(this,{}),Bn.set(this,{}),an.set(this,void 0),Oa.set(this,!1),re.set(this,void 0),Hn.set(this,!1),Un.set(this,!1),zn.set(this,!1),se.set(this,void 0),xa.set(this,{}),Pr.set(this,null),Be.set(this,void 0),B(this,re,i,"f"),B(this,an,t,"f"),B(this,Ln,r,"f"),B(this,$a,n,"f"),B(this,Gt,new ga(this),"f"),this.$0=this[yg](),this[cl](),B(this,Ke,m(this,Ke,"f"),"f"),B(this,se,m(this,se,"f"),"f"),B(this,Be,m(this,Be,"f"),"f"),B(this,W,m(this,W,"f"),"f"),m(this,W,"f").showHiddenOpt=m(this,ba,"f"),B(this,Ri,this[hg](),"f")}addHelpOpt(t,r){let n="help";return F("[string|boolean] [string]",[t,r],arguments.length),m(this,Wt,"f")&&(this[tl](m(this,Wt,"f")),B(this,Wt,null,"f")),t===!1&&r===void 0?this:(B(this,Wt,typeof t=="string"?t:n,"f"),this.boolean(m(this,Wt,"f")),this.describe(m(this,Wt,"f"),r||m(this,se,"f").deferY18nLookup("Show help")),this)}help(t,r){return this.addHelpOpt(t,r)}addShowHiddenOpt(t,r){if(F("[string|boolean] [string]",[t,r],arguments.length),t===!1&&r===void 0)return this;let n=typeof t=="string"?t:m(this,ba,"f");return this.boolean(n),this.describe(n,r||m(this,se,"f").deferY18nLookup("Show hidden options")),m(this,W,"f").showHiddenOpt=n,this}showHidden(t,r){return this.addShowHiddenOpt(t,r)}alias(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[il](this.alias.bind(this),"alias",t,r),this}array(t){return F("<array|string>",[t],arguments.length),this[un]("array",t),this[Kn](t),this}boolean(t){return F("<array|string>",[t],arguments.length),this[un]("boolean",t),this[Kn](t),this}check(t,r){return F("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>Dn(()=>t(n,i.getOptions()),o=>(o?(typeof o=="string"||o instanceof Error)&&m(this,se,"f").fail(o.toString(),o):m(this,se,"f").fail(m(this,re,"f").y18n.__("Argument check failed: %s",t.toString())),n),o=>(m(this,se,"f").fail(o.message?o.message:o.toString(),o),n)),!1,r),this}choices(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[il](this.choices.bind(this),"choices",t,r),this}coerce(t,r){if(F("<object|string|array> [function]",[t,r],arguments.length),Array.isArray(t)){if(!r)throw new Re("coerce callback must be provided");for(let n of t)this.coerce(n,r);return this}else if(typeof t=="object"){for(let n of Object.keys(t))this.coerce(n,t[n]);return this}if(!r)throw new Re("coerce callback must be provided");return m(this,W,"f").key[t]=!0,m(this,Gt,"f").addCoerceMiddleware((n,i)=>{let o;return Object.prototype.hasOwnProperty.call(n,t)?Dn(()=>(o=i.getAliases(),r(n[t])),u=>{n[t]=u;let c=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(o[t]&&c!==!0)for(let l of o[t])n[l]=u;return n},u=>{throw new Re(u.message)}):n},t),this}conflicts(t,r){return F("<string|object> [string|array]",[t,r],arguments.length),m(this,Be,"f").conflicts(t,r),this}config(t="config",r,n){return F("[object|string] [string|function] [function]",[t,r,n],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=Hs(t,m(this,Ln,"f"),this[Gn]()["deep-merge-config"]||!1,m(this,re,"f")),m(this,W,"f").configObjects=(m(this,W,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||m(this,se,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{m(this,W,"f").config[i]=n||!0}),this)}completion(t,r,n){return F("[string] [string|boolean|function] [function]",[t,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),B(this,Nt,t||m(this,Nt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(m(this,Nt,"f"),r),n&&m(this,Ut,"f").registerFunction(n),this}command(t,r,n,i,o,a){return F("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,o,a],arguments.length),m(this,Ke,"f").addHandler(t,r,n,i,o,a),this}commands(t,r,n,i,o,a){return this.command(t,r,n,i,o,a)}commandDir(t,r){F("<string> [object]",[t,r],arguments.length);let n=m(this,$a,"f")||m(this,re,"f").require;return m(this,Ke,"f").addDirectory(t,n,m(this,re,"f").getCallerFile(),r),this}count(t){return F("<array|string>",[t],arguments.length),this[un]("count",t),this[Kn](t),this}default(t,r,n){return F("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(Gc(t,m(this,re,"f")),m(this,W,"f").defaultDescription[t]=n),typeof r=="function"&&(Gc(t,m(this,re,"f")),m(this,W,"f").defaultDescription[t]||(m(this,W,"f").defaultDescription[t]=m(this,se,"f").functionDescription(r)),r=r.call()),this[ki](this.default.bind(this),"default",t,r),this}defaults(t,r,n){return this.default(t,r,n)}demandCommand(t=1,r,n,i){return F("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,r,n,i],arguments.length),typeof r!="number"&&(n=r,r=1/0),this.global("_",!1),m(this,W,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{yt(n,!0,m(this,re,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(yt(n,!0,m(this,re,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{yt(n,!0,m(this,re,"f")),this.demandOption(i,n)}):typeof n=="string"?this.demandOption(t,n):(n===!0||typeof n>"u")&&this.demandOption(t),this}demandOption(t,r){return F("<object|string|array> [string]",[t,r],arguments.length),this[ki](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return F("<string> [string|boolean]",[t,r],arguments.length),m(this,W,"f").deprecatedOptions[t]=r,this}describe(t,r){return F("<object|string|array> [string]",[t,r],arguments.length),this[al](t,!0),m(this,se,"f").describe(t,r),this}detectLocale(t){return F("<boolean>",[t],arguments.length),B(this,Fn,t,"f"),this}env(t){return F("[string|boolean]",[t],arguments.length),t===!1?delete m(this,W,"f").envPrefix:m(this,W,"f").envPrefix=t||"",this}epilogue(t){return F("<string>",[t],arguments.length),m(this,se,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,r){return F("<string|array> [string]",[t,r],arguments.length),Array.isArray(t)?t.forEach(n=>this.example(...n)):m(this,se,"f").example(t,r),this}exit(t,r){B(this,Mt,!0,"f"),B(this,on,r,"f"),m(this,zt,"f")&&m(this,re,"f").process.exit(t)}exitProcess(t=!0){return F("[boolean]",[t],arguments.length),B(this,zt,t,"f"),this}fail(t){if(F("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new Re("Invalid first argument. Expected function or boolean 'false'");return m(this,se,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return F("<array> [function]",[t,r],arguments.length),r?m(this,Ut,"f").getCompletion(t,r):new Promise((n,i)=>{m(this,Ut,"f").getCompletion(t,(o,a)=>{o?i(o):n(a)})})}getDemandedOptions(){return F([],0),m(this,W,"f").demandedOptions}getDemandedCommands(){return F([],0),m(this,W,"f").demandedCommands}getDeprecatedOptions(){return F([],0),m(this,W,"f").deprecatedOptions}getDetectLocale(){return m(this,Fn,"f")}getExitProcess(){return m(this,zt,"f")}getGroups(){return Object.assign({},m(this,$r,"f"),m(this,Bn,"f"))}getHelp(){if(B(this,Mt,!0,"f"),!m(this,se,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[zs](m(this,an,"f"),void 0,void 0,0,!0);if(je(r))return r.then(()=>m(this,se,"f").help())}let t=m(this,Ke,"f").runDefaultBuilderOn(this);if(je(t))return t.then(()=>m(this,se,"f").help())}return Promise.resolve(m(this,se,"f").help())}getOptions(){return m(this,W,"f")}getStrict(){return m(this,Hn,"f")}getStrictCommands(){return m(this,Un,"f")}getStrictOptions(){return m(this,zn,"f")}global(t,r){return F("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?m(this,W,"f").local=m(this,W,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{m(this,W,"f").local.includes(n)||m(this,W,"f").local.push(n)}),this}group(t,r){F("<string|array> <string>",[t,r],arguments.length);let n=m(this,Bn,"f")[r]||m(this,$r,"f")[r];m(this,Bn,"f")[r]&&delete m(this,Bn,"f")[r];let i={};return m(this,$r,"f")[r]=(n||[]).concat(t).filter(o=>i[o]?!1:i[o]=!0),this}hide(t){return F("<string>",[t],arguments.length),m(this,W,"f").hiddenOptions.push(t),this}implies(t,r){return F("<string|object> [number|string|array]",[t,r],arguments.length),m(this,Be,"f").implies(t,r),this}locale(t){return F("[string]",[t],arguments.length),t===void 0?(this[rl](),m(this,re,"f").y18n.getLocale()):(B(this,Fn,!1,"f"),m(this,re,"f").y18n.setLocale(t),this)}middleware(t,r,n){return m(this,Gt,"f").addMiddleware(t,!!r,n)}nargs(t,r){return F("<string|object|array> [number]",[t,r],arguments.length),this[ki](this.nargs.bind(this),"narg",t,r),this}normalize(t){return F("<array|string>",[t],arguments.length),this[un]("normalize",t),this}number(t){return F("<array|string>",[t],arguments.length),this[un]("number",t),this[Kn](t),this}option(t,r){if(F("<string|object> [object]",[t,r],arguments.length),typeof t=="object")Object.keys(t).forEach(n=>{this.options(n,t[n])});else{typeof r!="object"&&(r={}),this[Kn](t),m(this,Pr,"f")&&(t==="version"||(r==null?void 0:r.alias)==="version")&&this[mg](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
134
134
  `),void 0,"versionWarning"),m(this,W,"f").key[t]=!0,r.alias&&this.alias(t,r.alias);let n=r.deprecate||r.deprecated;n&&this.deprecateOption(t,n);let i=r.demand||r.required||r.require;i&&this.demand(t,i),r.demandOption&&this.demandOption(t,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(t,r.conflicts),"default"in r&&this.default(t,r.default),r.implies!==void 0&&this.implies(t,r.implies),r.nargs!==void 0&&this.nargs(t,r.nargs),r.config&&this.config(t,r.configParser),r.normalize&&this.normalize(t),r.choices&&this.choices(t,r.choices),r.coerce&&this.coerce(t,r.coerce),r.group&&this.group(t,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(t),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(t),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(t),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(t),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(t),typeof r.global=="boolean"&&this.global(t,r.global),r.defaultDescription&&(m(this,W,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let o=r.describe||r.description||r.desc,a=m(this,se,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(a,t)||typeof o=="string")&&this.describe(t,o),r.hidden&&this.hide(t),r.requiresArg&&this.requiresArg(t)}return this}options(t,r){return this.option(t,r)}parse(t,r,n){F("[string|array] [function|boolean|object] [function]",[t,r,n],arguments.length),this[gg](),typeof t>"u"&&(t=m(this,an,"f")),typeof r=="object"&&(B(this,Vn,r,"f"),r=n),typeof r=="function"&&(B(this,Tt,r,"f"),r=!1),r||B(this,an,t,"f"),m(this,Tt,"f")&&B(this,zt,!1,"f");let i=this[zs](t,!!r),o=this.parsed;return m(this,Ut,"f").setParsed(this.parsed),je(i)?i.then(a=>(m(this,Tt,"f")&&m(this,Tt,"f").call(this,m(this,on,"f"),a,m(this,it,"f")),a)).catch(a=>{throw m(this,Tt,"f")&&m(this,Tt,"f")(a,this.parsed.argv,m(this,it,"f")),a}).finally(()=>{this[ul](),this.parsed=o}):(m(this,Tt,"f")&&m(this,Tt,"f").call(this,m(this,on,"f"),i,m(this,it,"f")),this[ul](),this.parsed=o,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return je(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(je(i))throw new Re(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return F("<object>",[t],arguments.length),B(this,Pa,t,"f"),this}pkgConf(t,r){F("<string> [string]",[t,r],arguments.length);let n=null,i=this[nl](r||m(this,Ln,"f"));return i[t]&&typeof i[t]=="object"&&(n=Hs(i[t],r||m(this,Ln,"f"),this[Gn]()["deep-merge-config"]||!1,m(this,re,"f")),m(this,W,"f").configObjects=(m(this,W,"f").configObjects||[]).concat(n)),this}positional(t,r){F("<string> <object>",[t,r],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=nn(r,(a,u)=>a==="type"&&!["string","number","boolean"].includes(u)?!1:n.includes(a));let i=m(this,Us,"f").fullCommands[m(this,Us,"f").fullCommands.length-1],o=i?m(this,Ke,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return Ci(o).forEach(a=>{let u=o[a];Array.isArray(u)?u.indexOf(t)!==-1&&(r[a]=!0):u[t]&&!(a in r)&&(r[a]=u[t])}),this.group(t,m(this,se,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return F("[boolean]",[t],arguments.length),B(this,Oa,t,"f"),this}required(t,r,n){return this.demand(t,r,n)}require(t,r,n){return this.demand(t,r,n)}requiresArg(t){return F("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&m(this,W,"f").narg[t]?this:(this[ki](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,r){return F("[string] [string]",[t,r],arguments.length),t=t||this.$0,m(this,Ri,"f").log(m(this,Ut,"f").generateCompletionScript(t,r||m(this,Nt,"f")||"completion")),this}showHelp(t){if(F("[string|function]",[t],arguments.length),B(this,Mt,!0,"f"),!m(this,se,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[zs](m(this,an,"f"),void 0,void 0,0,!0);if(je(n))return n.then(()=>{m(this,se,"f").showHelp(t)}),this}let r=m(this,Ke,"f").runDefaultBuilderOn(this);if(je(r))return r.then(()=>{m(this,se,"f").showHelp(t)}),this}return m(this,se,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,r){return F("[boolean|string] [string]",[t,r],arguments.length),m(this,se,"f").showHelpOnFail(t,r),this}showVersion(t){return F("[string|function]",[t],arguments.length),m(this,se,"f").showVersion(t),this}skipValidation(t){return F("<array|string>",[t],arguments.length),this[un]("skipValidation",t),this}strict(t){return F("[boolean]",[t],arguments.length),B(this,Hn,t!==!1,"f"),this}strictCommands(t){return F("[boolean]",[t],arguments.length),B(this,Un,t!==!1,"f"),this}strictOptions(t){return F("[boolean]",[t],arguments.length),B(this,zn,t!==!1,"f"),this}string(t){return F("<array|string>",[t],arguments.length),this[un]("string",t),this[Kn](t),this}terminalWidth(){return F([],0),m(this,re,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return F("<object>",[t],arguments.length),B(this,Fn,!1,"f"),m(this,re,"f").y18n.updateLocale(t),this}usage(t,r,n,i){if(F("<string|null|undefined> [string|boolean] [function|object] [function]",[t,r,n,i],arguments.length),r!==void 0){if(yt(t,null,m(this,re,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new Re(".usage() description must start with $0 if being used as alias for .command()")}else return m(this,se,"f").usage(t),this}usageConfiguration(t){return F("<object>",[t],arguments.length),B(this,xa,t,"f"),this}version(t,r,n){let i="version";if(F("[boolean|string] [string] [string]",[t,r,n],arguments.length),m(this,Pr,"f")&&(this[tl](m(this,Pr,"f")),m(this,se,"f").version(void 0),B(this,Pr,null,"f")),arguments.length===0)n=this[bg](),t=i;else if(arguments.length===1){if(t===!1)return this;n=t,t=i}else arguments.length===2&&(n=r,r=void 0);return B(this,Pr,typeof t=="string"?t:i,"f"),r=r||m(this,se,"f").deferY18nLookup("Show version number"),m(this,se,"f").version(n||void 0),this.boolean(m(this,Pr,"f")),this.describe(m(this,Pr,"f"),r),this}wrap(t){return F("<number|null|undefined>",[t],arguments.length),m(this,se,"f").wrap(t),this}[(Ke=new WeakMap,Ln=new WeakMap,Us=new WeakMap,Ut=new WeakMap,Nt=new WeakMap,ba=new WeakMap,on=new WeakMap,Fn=new WeakMap,_a=new WeakMap,zt=new WeakMap,Sa=new WeakMap,Gt=new WeakMap,$r=new WeakMap,Mt=new WeakMap,Wt=new WeakMap,wa=new WeakMap,Ri=new WeakMap,it=new WeakMap,W=new WeakMap,$a=new WeakMap,Pa=new WeakMap,Tt=new WeakMap,Vn=new WeakMap,ji=new WeakMap,Bn=new WeakMap,an=new WeakMap,Oa=new WeakMap,re=new WeakMap,Hn=new WeakMap,Un=new WeakMap,zn=new WeakMap,se=new WeakMap,xa=new WeakMap,Pr=new WeakMap,Be=new WeakMap,dg)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[hg](){return{log:s((...t)=>{this[Ea]()||console.log(...t),B(this,Mt,!0,"f"),m(this,it,"f").length&&B(this,it,m(this,it,"f")+`
135
135
  `,"f"),B(this,it,m(this,it,"f")+t.join(" "),"f")},"log"),error:s((...t)=>{this[Ea]()||console.error(...t),B(this,Mt,!0,"f"),m(this,it,"f").length&&B(this,it,m(this,it,"f")+`
136
- `,"f"),B(this,it,m(this,it,"f")+t.join(" "),"f")},"error")}}[tl](t){Ci(m(this,W,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=m(this,W,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete m(this,se,"f").getDescriptions()[t]}[mg](t,r,n){m(this,_a,"f")[n]||(m(this,re,"f").process.emitWarning(t,r),m(this,_a,"f")[n]=!0)}[gg](){m(this,Sa,"f").push({options:m(this,W,"f"),configObjects:m(this,W,"f").configObjects.slice(0),exitProcess:m(this,zt,"f"),groups:m(this,$r,"f"),strict:m(this,Hn,"f"),strictCommands:m(this,Un,"f"),strictOptions:m(this,zn,"f"),completionCommand:m(this,Nt,"f"),output:m(this,it,"f"),exitError:m(this,on,"f"),hasOutput:m(this,Mt,"f"),parsed:this.parsed,parseFn:m(this,Tt,"f"),parseContext:m(this,Vn,"f")}),m(this,se,"f").freeze(),m(this,Be,"f").freeze(),m(this,Ke,"f").freeze(),m(this,Gt,"f").freeze()}[yg](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(m(this,re,"f").process.argv()[0])?r=m(this,re,"f").process.argv().slice(1,2):r=m(this,re,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[Ig](m(this,Ln,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),m(this,re,"f").getEnv("_")&&m(this,re,"f").getProcessArgvBin()===m(this,re,"f").getEnv("_")&&(t=m(this,re,"f").getEnv("_").replace(`${m(this,re,"f").path.dirname(m(this,re,"f").process.execPath())}/`,"")),t}[Gn](){return m(this,Pa,"f")}[vg](){return m(this,xa,"f")}[rl](){if(!m(this,Fn,"f"))return;let t=m(this,re,"f").getEnv("LC_ALL")||m(this,re,"f").getEnv("LC_MESSAGES")||m(this,re,"f").getEnv("LANG")||m(this,re,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[bg](){return this[nl]().version||"unknown"}[_g](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)m(this,re,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[nl](t){let r=t||"*";if(m(this,ji,"f")[r])return m(this,ji,"f")[r];let n={};try{let i=t||m(this,re,"f").mainFilename;!t&&m(this,re,"f").path.extname(i)&&(i=m(this,re,"f").path.dirname(i));let o=m(this,re,"f").findUp(i,(a,u)=>{if(u.includes("package.json"))return"package.json"});yt(o,void 0,m(this,re,"f")),n=JSON.parse(m(this,re,"f").readFileSync(o,"utf8"))}catch{}return m(this,ji,"f")[r]=n||{},m(this,ji,"f")[r]}[un](t,r){r=[].concat(r),r.forEach(n=>{n=this[ol](n),m(this,W,"f")[t].push(n)})}[ki](t,r,n,i){this[sl](t,r,n,i,(o,a,u)=>{m(this,W,"f")[o][a]=u})}[il](t,r,n,i){this[sl](t,r,n,i,(o,a,u)=>{m(this,W,"f")[o][a]=(m(this,W,"f")[o][a]||[]).concat(u)})}[sl](t,r,n,i,o){if(Array.isArray(n))n.forEach(a=>{t(a,i)});else if((a=>typeof a=="object")(n))for(let a of Ci(n))t(a,n[a]);else o(r,this[ol](n),i)}[ol](t){return t==="__proto__"?"___proto___":t}[al](t,r){return this[ki](this[al].bind(this),"key",t,r),this}[ul](){var t,r,n,i,o,a,u,c,l,p,f,d;let h=m(this,Sa,"f").pop();yt(h,void 0,m(this,re,"f"));let y;t=this,r=this,n=this,i=this,o=this,a=this,u=this,c=this,l=this,p=this,f=this,d=this,{options:{set value(v){B(t,W,v,"f")}}.value,configObjects:y,exitProcess:{set value(v){B(r,zt,v,"f")}}.value,groups:{set value(v){B(n,$r,v,"f")}}.value,output:{set value(v){B(i,it,v,"f")}}.value,exitError:{set value(v){B(o,on,v,"f")}}.value,hasOutput:{set value(v){B(a,Mt,v,"f")}}.value,parsed:this.parsed,strict:{set value(v){B(u,Hn,v,"f")}}.value,strictCommands:{set value(v){B(c,Un,v,"f")}}.value,strictOptions:{set value(v){B(l,zn,v,"f")}}.value,completionCommand:{set value(v){B(p,Nt,v,"f")}}.value,parseFn:{set value(v){B(f,Tt,v,"f")}}.value,parseContext:{set value(v){B(d,Vn,v,"f")}}.value}=h,m(this,W,"f").configObjects=y,m(this,se,"f").unfreeze(),m(this,Be,"f").unfreeze(),m(this,Ke,"f").unfreeze(),m(this,Gt,"f").unfreeze()}[Sg](t,r){return Dn(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[wg].bind(this),getContext:this[$g].bind(this),getHasOutput:this[Pg].bind(this),getLoggerInstance:this[Og].bind(this),getParseContext:this[xg].bind(this),getParserConfiguration:this[Gn].bind(this),getUsageConfiguration:this[vg].bind(this),getUsageInstance:this[Eg].bind(this),getValidationInstance:this[Ag].bind(this),hasParseCallback:this[Ea].bind(this),isGlobalContext:this[Cg].bind(this),postProcess:this[Wn].bind(this),reset:this[cl].bind(this),runValidation:this[ll].bind(this),runYargsParserAndExecuteCommands:this[zs].bind(this),setHasOutput:this[Rg].bind(this)}}[wg](){return m(this,Ke,"f")}[$g](){return m(this,Us,"f")}[Pg](){return m(this,Mt,"f")}[Og](){return m(this,Ri,"f")}[xg](){return m(this,Vn,"f")||{}}[Eg](){return m(this,se,"f")}[Ag](){return m(this,Be,"f")}[Ea](){return!!m(this,Tt,"f")}[Cg](){return m(this,wa,"f")}[Wn](t,r,n,i){return n||je(t)||(r||(t=this[dg](t)),(this[Gn]()["parse-positional-numbers"]||this[Gn]()["parse-positional-numbers"]===void 0)&&(t=this[_g](t)),i&&(t=qn(t,this,m(this,Gt,"f").getMiddleware(),!1))),t}[cl](t={}){B(this,W,m(this,W,"f")||{},"f");let r={};r.local=m(this,W,"f").local||[],r.configObjects=m(this,W,"f").configObjects||[];let n={};r.local.forEach(a=>{n[a]=!0,(t[a]||[]).forEach(u=>{n[u]=!0})}),Object.assign(m(this,Bn,"f"),Object.keys(m(this,$r,"f")).reduce((a,u)=>{let c=m(this,$r,"f")[u].filter(l=>!(l in n));return c.length>0&&(a[u]=c),a},{})),B(this,$r,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],o=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(a=>{r[a]=(m(this,W,"f")[a]||[]).filter(u=>!n[u])}),o.forEach(a=>{r[a]=nn(m(this,W,"f")[a],u=>!n[u])}),r.envPrefix=m(this,W,"f").envPrefix,B(this,W,r,"f"),B(this,se,m(this,se,"f")?m(this,se,"f").reset(n):sg(this,m(this,re,"f")),"f"),B(this,Be,m(this,Be,"f")?m(this,Be,"f").reset(n):fg(this,m(this,se,"f"),m(this,re,"f")),"f"),B(this,Ke,m(this,Ke,"f")?m(this,Ke,"f").reset():rg(m(this,se,"f"),m(this,Be,"f"),m(this,Gt,"f"),m(this,re,"f")),"f"),m(this,Ut,"f")||B(this,Ut,ug(this,m(this,se,"f"),m(this,Ke,"f"),m(this,re,"f")),"f"),m(this,Gt,"f").reset(),B(this,Nt,null,"f"),B(this,it,"","f"),B(this,on,null,"f"),B(this,Mt,!1,"f"),this.parsed=!1,this}[Ig](t,r){return m(this,re,"f").path.relative(t,r)}[zs](t,r,n,i=0,o=!1){let a=!!n||o;t=t||m(this,an,"f"),m(this,W,"f").__=m(this,re,"f").y18n.__,m(this,W,"f").configuration=this[Gn]();let u=!!m(this,W,"f").configuration["populate--"],c=Object.assign({},m(this,W,"f").configuration,{"populate--":!0}),l=m(this,re,"f").Parser.detailed(t,Object.assign({},m(this,W,"f"),{configuration:{"parse-positional-numbers":!1,...c}})),p=Object.assign(l.argv,m(this,Vn,"f")),f,d=l.aliases,h=!1,y=!1;Object.keys(p).forEach(v=>{v===m(this,Wt,"f")&&p[v]?h=!0:v===m(this,Pr,"f")&&p[v]&&(y=!0)}),p.$0=this.$0,this.parsed=l,i===0&&m(this,se,"f").clearCachedHelpMessage();try{if(this[rl](),r)return this[Wn](p,u,!!n,!1);m(this,Wt,"f")&&[m(this,Wt,"f")].concat(d[m(this,Wt,"f")]||[]).filter(k=>k.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),h=!0),B(this,wa,!1,"f");let v=m(this,Ke,"f").getCommands(),g=m(this,Ut,"f").completionKey in p,$=h||g||o;if(p._.length){if(v.length){let A;for(let k=i||0,C;p._[k]!==void 0;k++)if(C=String(p._[k]),v.includes(C)&&C!==m(this,Nt,"f")){let I=m(this,Ke,"f").runCommand(C,this,l,k+1,o,h||y||o);return this[Wn](I,u,!!n,!1)}else if(!A&&C!==m(this,Nt,"f")){A=C;break}!m(this,Ke,"f").hasDefaultCommand()&&m(this,Oa,"f")&&A&&!$&&m(this,Be,"f").recommendCommands(A,v)}m(this,Nt,"f")&&p._.includes(m(this,Nt,"f"))&&!g&&(m(this,zt,"f")&&sn(!0),this.showCompletionScript(),this.exit(0))}if(m(this,Ke,"f").hasDefaultCommand()&&!$){let A=m(this,Ke,"f").runCommand(null,this,l,0,o,h||y||o);return this[Wn](A,u,!!n,!1)}if(g){m(this,zt,"f")&&sn(!0),t=[].concat(t);let A=t.slice(t.indexOf(`--${m(this,Ut,"f").completionKey}`)+1);return m(this,Ut,"f").getCompletion(A,(k,C)=>{if(k)throw new Re(k.message);(C||[]).forEach(I=>{m(this,Ri,"f").log(I)}),this.exit(0)}),this[Wn](p,!u,!!n,!1)}if(m(this,Mt,"f")||(h?(m(this,zt,"f")&&sn(!0),a=!0,this.showHelp("log"),this.exit(0)):y&&(m(this,zt,"f")&&sn(!0),a=!0,m(this,se,"f").showVersion("log"),this.exit(0))),!a&&m(this,W,"f").skipValidation.length>0&&(a=Object.keys(p).some(A=>m(this,W,"f").skipValidation.indexOf(A)>=0&&p[A]===!0)),!a){if(l.error)throw new Re(l.error.message);if(!g){let A=this[ll](d,{},l.error);n||(f=qn(p,this,m(this,Gt,"f").getMiddleware(),!0)),f=this[Sg](A,f??p),je(f)&&!n&&(f=f.then(()=>qn(p,this,m(this,Gt,"f").getMiddleware(),!1)))}}}catch(v){if(v instanceof Re)m(this,se,"f").fail(v.message,v);else throw v}return this[Wn](f??p,u,!!n,!0)}[ll](t,r,n,i){let o={...this.getDemandedOptions()};return a=>{if(n)throw new Re(n.message);m(this,Be,"f").nonOptionCount(a),m(this,Be,"f").requiredArguments(a,o);let u=!1;m(this,Un,"f")&&(u=m(this,Be,"f").unknownCommands(a)),m(this,Hn,"f")&&!u?m(this,Be,"f").unknownArguments(a,t,r,!!i):m(this,zn,"f")&&m(this,Be,"f").unknownArguments(a,t,{},!1,!1),m(this,Be,"f").limitedChoices(a),m(this,Be,"f").implications(a),m(this,Be,"f").conflicting(a)}}[Rg](){B(this,Mt,!0,"f")}[Kn](t){if(typeof t=="string")m(this,W,"f").key[t]=!0;else for(let r of t)m(this,W,"f").key[r]=!0}};s(pl,"YargsInstance");var fl=pl;function ng(e){return!!e&&typeof e.getInternalMethods=="function"}s(ng,"isYargsInstance");var yP=jg(zc),kg=yP;var Ng=s((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),Mg=s((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),Tg=s((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),qe={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},$L=Object.keys(qe.modifier),vP=Object.keys(qe.color),bP=Object.keys(qe.bgColor),PL=[...vP,...bP];function _P(){let e=new Map;for(let[t,r]of Object.entries(qe)){for(let[n,i]of Object.entries(r))qe[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=qe[n],e.set(i[0],i[1]);Object.defineProperty(qe,t,{value:r,enumerable:!1})}return Object.defineProperty(qe,"codes",{value:e,enumerable:!1}),qe.color.close="\x1B[39m",qe.bgColor.close="\x1B[49m",qe.color.ansi=Ng(),qe.color.ansi256=Mg(),qe.color.ansi16m=Tg(),qe.bgColor.ansi=Ng(10),qe.bgColor.ansi256=Mg(10),qe.bgColor.ansi16m=Tg(10),Object.defineProperties(qe,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:s(t=>qe.rgbToAnsi256(...qe.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let u=t%36;r=Math.floor(t/36)/5,n=Math.floor(u/6)/5,i=u%6/5}let o=Math.max(r,n,i)*2;if(o===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:s((t,r,n)=>qe.ansi256ToAnsi(qe.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:s(t=>qe.ansi256ToAnsi(qe.hexToAnsi256(t)),"value"),enumerable:!1}}),qe}s(_P,"assembleStyles");var SP=_P(),ar=SP;var Ca=Et(require("process"),1),Dg=Et(require("os"),1),dl=Et(require("tty"),1);function Kt(e,t=globalThis.Deno?globalThis.Deno.args:Ca.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}s(Kt,"hasFlag");var{env:Fe}=Ca.default,Aa;Kt("no-color")||Kt("no-colors")||Kt("color=false")||Kt("color=never")?Aa=0:(Kt("color")||Kt("colors")||Kt("color=true")||Kt("color=always"))&&(Aa=1);function wP(){if("FORCE_COLOR"in Fe)return Fe.FORCE_COLOR==="true"?1:Fe.FORCE_COLOR==="false"?0:Fe.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Fe.FORCE_COLOR,10),3)}s(wP,"envForceColor");function $P(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}s($P,"translateLevel");function PP(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=wP();n!==void 0&&(Aa=n);let i=r?Aa:n;if(i===0)return 0;if(r){if(Kt("color=16m")||Kt("color=full")||Kt("color=truecolor"))return 3;if(Kt("color=256"))return 2}if("TF_BUILD"in Fe&&"AGENT_NAME"in Fe)return 1;if(e&&!t&&i===void 0)return 0;let o=i||0;if(Fe.TERM==="dumb")return o;if(Ca.default.platform==="win32"){let a=Dg.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Fe)return"GITHUB_ACTIONS"in Fe||"GITEA_ACTIONS"in Fe?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Fe)||Fe.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in Fe)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Fe.TEAMCITY_VERSION)?1:0;if(Fe.COLORTERM==="truecolor"||Fe.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Fe){let a=Number.parseInt((Fe.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Fe.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Fe.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Fe.TERM)||"COLORTERM"in Fe?1:o}s(PP,"_supportsColor");function qg(e,t={}){let r=PP(e,{streamIsTTY:e&&e.isTTY,...t});return $P(r)}s(qg,"createSupportsColor");var OP={stdout:qg({isTTY:dl.default.isatty(1)}),stderr:qg({isTTY:dl.default.isatty(2)})},Lg=OP;function Fg(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,a="";do a+=e.slice(o,n)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return a+=e.slice(o),a}s(Fg,"stringReplaceAll");function Vg(e,t,r,n){let i=0,o="";do{let a=e[n-1]==="\r";o+=e.slice(i,a?n-1:n)+t+(a?`\r
136
+ `,"f"),B(this,it,m(this,it,"f")+t.join(" "),"f")},"error")}}[tl](t){Ci(m(this,W,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=m(this,W,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete m(this,se,"f").getDescriptions()[t]}[mg](t,r,n){m(this,_a,"f")[n]||(m(this,re,"f").process.emitWarning(t,r),m(this,_a,"f")[n]=!0)}[gg](){m(this,Sa,"f").push({options:m(this,W,"f"),configObjects:m(this,W,"f").configObjects.slice(0),exitProcess:m(this,zt,"f"),groups:m(this,$r,"f"),strict:m(this,Hn,"f"),strictCommands:m(this,Un,"f"),strictOptions:m(this,zn,"f"),completionCommand:m(this,Nt,"f"),output:m(this,it,"f"),exitError:m(this,on,"f"),hasOutput:m(this,Mt,"f"),parsed:this.parsed,parseFn:m(this,Tt,"f"),parseContext:m(this,Vn,"f")}),m(this,se,"f").freeze(),m(this,Be,"f").freeze(),m(this,Ke,"f").freeze(),m(this,Gt,"f").freeze()}[yg](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(m(this,re,"f").process.argv()[0])?r=m(this,re,"f").process.argv().slice(1,2):r=m(this,re,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[Ig](m(this,Ln,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),m(this,re,"f").getEnv("_")&&m(this,re,"f").getProcessArgvBin()===m(this,re,"f").getEnv("_")&&(t=m(this,re,"f").getEnv("_").replace(`${m(this,re,"f").path.dirname(m(this,re,"f").process.execPath())}/`,"")),t}[Gn](){return m(this,Pa,"f")}[vg](){return m(this,xa,"f")}[rl](){if(!m(this,Fn,"f"))return;let t=m(this,re,"f").getEnv("LC_ALL")||m(this,re,"f").getEnv("LC_MESSAGES")||m(this,re,"f").getEnv("LANG")||m(this,re,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[bg](){return this[nl]().version||"unknown"}[_g](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)m(this,re,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[nl](t){let r=t||"*";if(m(this,ji,"f")[r])return m(this,ji,"f")[r];let n={};try{let i=t||m(this,re,"f").mainFilename;!t&&m(this,re,"f").path.extname(i)&&(i=m(this,re,"f").path.dirname(i));let o=m(this,re,"f").findUp(i,(a,u)=>{if(u.includes("package.json"))return"package.json"});yt(o,void 0,m(this,re,"f")),n=JSON.parse(m(this,re,"f").readFileSync(o,"utf8"))}catch{}return m(this,ji,"f")[r]=n||{},m(this,ji,"f")[r]}[un](t,r){r=[].concat(r),r.forEach(n=>{n=this[ol](n),m(this,W,"f")[t].push(n)})}[ki](t,r,n,i){this[sl](t,r,n,i,(o,a,u)=>{m(this,W,"f")[o][a]=u})}[il](t,r,n,i){this[sl](t,r,n,i,(o,a,u)=>{m(this,W,"f")[o][a]=(m(this,W,"f")[o][a]||[]).concat(u)})}[sl](t,r,n,i,o){if(Array.isArray(n))n.forEach(a=>{t(a,i)});else if((a=>typeof a=="object")(n))for(let a of Ci(n))t(a,n[a]);else o(r,this[ol](n),i)}[ol](t){return t==="__proto__"?"___proto___":t}[al](t,r){return this[ki](this[al].bind(this),"key",t,r),this}[ul](){var t,r,n,i,o,a,u,c,l,p,f,d;let h=m(this,Sa,"f").pop();yt(h,void 0,m(this,re,"f"));let y;t=this,r=this,n=this,i=this,o=this,a=this,u=this,c=this,l=this,p=this,f=this,d=this,{options:{set value(v){B(t,W,v,"f")}}.value,configObjects:y,exitProcess:{set value(v){B(r,zt,v,"f")}}.value,groups:{set value(v){B(n,$r,v,"f")}}.value,output:{set value(v){B(i,it,v,"f")}}.value,exitError:{set value(v){B(o,on,v,"f")}}.value,hasOutput:{set value(v){B(a,Mt,v,"f")}}.value,parsed:this.parsed,strict:{set value(v){B(u,Hn,v,"f")}}.value,strictCommands:{set value(v){B(c,Un,v,"f")}}.value,strictOptions:{set value(v){B(l,zn,v,"f")}}.value,completionCommand:{set value(v){B(p,Nt,v,"f")}}.value,parseFn:{set value(v){B(f,Tt,v,"f")}}.value,parseContext:{set value(v){B(d,Vn,v,"f")}}.value}=h,m(this,W,"f").configObjects=y,m(this,se,"f").unfreeze(),m(this,Be,"f").unfreeze(),m(this,Ke,"f").unfreeze(),m(this,Gt,"f").unfreeze()}[Sg](t,r){return Dn(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[wg].bind(this),getContext:this[$g].bind(this),getHasOutput:this[Pg].bind(this),getLoggerInstance:this[Og].bind(this),getParseContext:this[xg].bind(this),getParserConfiguration:this[Gn].bind(this),getUsageConfiguration:this[vg].bind(this),getUsageInstance:this[Eg].bind(this),getValidationInstance:this[Ag].bind(this),hasParseCallback:this[Ea].bind(this),isGlobalContext:this[Cg].bind(this),postProcess:this[Wn].bind(this),reset:this[cl].bind(this),runValidation:this[ll].bind(this),runYargsParserAndExecuteCommands:this[zs].bind(this),setHasOutput:this[Rg].bind(this)}}[wg](){return m(this,Ke,"f")}[$g](){return m(this,Us,"f")}[Pg](){return m(this,Mt,"f")}[Og](){return m(this,Ri,"f")}[xg](){return m(this,Vn,"f")||{}}[Eg](){return m(this,se,"f")}[Ag](){return m(this,Be,"f")}[Ea](){return!!m(this,Tt,"f")}[Cg](){return m(this,wa,"f")}[Wn](t,r,n,i){return n||je(t)||(r||(t=this[dg](t)),(this[Gn]()["parse-positional-numbers"]||this[Gn]()["parse-positional-numbers"]===void 0)&&(t=this[_g](t)),i&&(t=qn(t,this,m(this,Gt,"f").getMiddleware(),!1))),t}[cl](t={}){B(this,W,m(this,W,"f")||{},"f");let r={};r.local=m(this,W,"f").local||[],r.configObjects=m(this,W,"f").configObjects||[];let n={};r.local.forEach(a=>{n[a]=!0,(t[a]||[]).forEach(u=>{n[u]=!0})}),Object.assign(m(this,Bn,"f"),Object.keys(m(this,$r,"f")).reduce((a,u)=>{let c=m(this,$r,"f")[u].filter(l=>!(l in n));return c.length>0&&(a[u]=c),a},{})),B(this,$r,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],o=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(a=>{r[a]=(m(this,W,"f")[a]||[]).filter(u=>!n[u])}),o.forEach(a=>{r[a]=nn(m(this,W,"f")[a],u=>!n[u])}),r.envPrefix=m(this,W,"f").envPrefix,B(this,W,r,"f"),B(this,se,m(this,se,"f")?m(this,se,"f").reset(n):sg(this,m(this,re,"f")),"f"),B(this,Be,m(this,Be,"f")?m(this,Be,"f").reset(n):fg(this,m(this,se,"f"),m(this,re,"f")),"f"),B(this,Ke,m(this,Ke,"f")?m(this,Ke,"f").reset():rg(m(this,se,"f"),m(this,Be,"f"),m(this,Gt,"f"),m(this,re,"f")),"f"),m(this,Ut,"f")||B(this,Ut,ug(this,m(this,se,"f"),m(this,Ke,"f"),m(this,re,"f")),"f"),m(this,Gt,"f").reset(),B(this,Nt,null,"f"),B(this,it,"","f"),B(this,on,null,"f"),B(this,Mt,!1,"f"),this.parsed=!1,this}[Ig](t,r){return m(this,re,"f").path.relative(t,r)}[zs](t,r,n,i=0,o=!1){let a=!!n||o;t=t||m(this,an,"f"),m(this,W,"f").__=m(this,re,"f").y18n.__,m(this,W,"f").configuration=this[Gn]();let u=!!m(this,W,"f").configuration["populate--"],c=Object.assign({},m(this,W,"f").configuration,{"populate--":!0}),l=m(this,re,"f").Parser.detailed(t,Object.assign({},m(this,W,"f"),{configuration:{"parse-positional-numbers":!1,...c}})),p=Object.assign(l.argv,m(this,Vn,"f")),f,d=l.aliases,h=!1,y=!1;Object.keys(p).forEach(v=>{v===m(this,Wt,"f")&&p[v]?h=!0:v===m(this,Pr,"f")&&p[v]&&(y=!0)}),p.$0=this.$0,this.parsed=l,i===0&&m(this,se,"f").clearCachedHelpMessage();try{if(this[rl](),r)return this[Wn](p,u,!!n,!1);m(this,Wt,"f")&&[m(this,Wt,"f")].concat(d[m(this,Wt,"f")]||[]).filter(k=>k.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),h=!0),B(this,wa,!1,"f");let v=m(this,Ke,"f").getCommands(),g=m(this,Ut,"f").completionKey in p,$=h||g||o;if(p._.length){if(v.length){let A;for(let k=i||0,C;p._[k]!==void 0;k++)if(C=String(p._[k]),v.includes(C)&&C!==m(this,Nt,"f")){let I=m(this,Ke,"f").runCommand(C,this,l,k+1,o,h||y||o);return this[Wn](I,u,!!n,!1)}else if(!A&&C!==m(this,Nt,"f")){A=C;break}!m(this,Ke,"f").hasDefaultCommand()&&m(this,Oa,"f")&&A&&!$&&m(this,Be,"f").recommendCommands(A,v)}m(this,Nt,"f")&&p._.includes(m(this,Nt,"f"))&&!g&&(m(this,zt,"f")&&sn(!0),this.showCompletionScript(),this.exit(0))}if(m(this,Ke,"f").hasDefaultCommand()&&!$){let A=m(this,Ke,"f").runCommand(null,this,l,0,o,h||y||o);return this[Wn](A,u,!!n,!1)}if(g){m(this,zt,"f")&&sn(!0),t=[].concat(t);let A=t.slice(t.indexOf(`--${m(this,Ut,"f").completionKey}`)+1);return m(this,Ut,"f").getCompletion(A,(k,C)=>{if(k)throw new Re(k.message);(C||[]).forEach(I=>{m(this,Ri,"f").log(I)}),this.exit(0)}),this[Wn](p,!u,!!n,!1)}if(m(this,Mt,"f")||(h?(m(this,zt,"f")&&sn(!0),a=!0,this.showHelp("log"),this.exit(0)):y&&(m(this,zt,"f")&&sn(!0),a=!0,m(this,se,"f").showVersion("log"),this.exit(0))),!a&&m(this,W,"f").skipValidation.length>0&&(a=Object.keys(p).some(A=>m(this,W,"f").skipValidation.indexOf(A)>=0&&p[A]===!0)),!a){if(l.error)throw new Re(l.error.message);if(!g){let A=this[ll](d,{},l.error);n||(f=qn(p,this,m(this,Gt,"f").getMiddleware(),!0)),f=this[Sg](A,f??p),je(f)&&!n&&(f=f.then(()=>qn(p,this,m(this,Gt,"f").getMiddleware(),!1)))}}}catch(v){if(v instanceof Re)m(this,se,"f").fail(v.message,v);else throw v}return this[Wn](f??p,u,!!n,!0)}[ll](t,r,n,i){let o={...this.getDemandedOptions()};return a=>{if(n)throw new Re(n.message);m(this,Be,"f").nonOptionCount(a),m(this,Be,"f").requiredArguments(a,o);let u=!1;m(this,Un,"f")&&(u=m(this,Be,"f").unknownCommands(a)),m(this,Hn,"f")&&!u?m(this,Be,"f").unknownArguments(a,t,r,!!i):m(this,zn,"f")&&m(this,Be,"f").unknownArguments(a,t,{},!1,!1),m(this,Be,"f").limitedChoices(a),m(this,Be,"f").implications(a),m(this,Be,"f").conflicting(a)}}[Rg](){B(this,Mt,!0,"f")}[Kn](t){if(typeof t=="string")m(this,W,"f").key[t]=!0;else for(let r of t)m(this,W,"f").key[r]=!0}};s(pl,"YargsInstance");var fl=pl;function ng(e){return!!e&&typeof e.getInternalMethods=="function"}s(ng,"isYargsInstance");var yP=jg(zc),kg=yP;var Ng=s((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),Mg=s((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),Tg=s((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),De={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},$L=Object.keys(De.modifier),vP=Object.keys(De.color),bP=Object.keys(De.bgColor),PL=[...vP,...bP];function _P(){let e=new Map;for(let[t,r]of Object.entries(De)){for(let[n,i]of Object.entries(r))De[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=De[n],e.set(i[0],i[1]);Object.defineProperty(De,t,{value:r,enumerable:!1})}return Object.defineProperty(De,"codes",{value:e,enumerable:!1}),De.color.close="\x1B[39m",De.bgColor.close="\x1B[49m",De.color.ansi=Ng(),De.color.ansi256=Mg(),De.color.ansi16m=Tg(),De.bgColor.ansi=Ng(10),De.bgColor.ansi256=Mg(10),De.bgColor.ansi16m=Tg(10),Object.defineProperties(De,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:s(t=>De.rgbToAnsi256(...De.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let u=t%36;r=Math.floor(t/36)/5,n=Math.floor(u/6)/5,i=u%6/5}let o=Math.max(r,n,i)*2;if(o===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:s((t,r,n)=>De.ansi256ToAnsi(De.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:s(t=>De.ansi256ToAnsi(De.hexToAnsi256(t)),"value"),enumerable:!1}}),De}s(_P,"assembleStyles");var SP=_P(),ar=SP;var Ca=Et(require("process"),1),Dg=Et(require("os"),1),dl=Et(require("tty"),1);function Kt(e,t=globalThis.Deno?globalThis.Deno.args:Ca.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}s(Kt,"hasFlag");var{env:Fe}=Ca.default,Aa;Kt("no-color")||Kt("no-colors")||Kt("color=false")||Kt("color=never")?Aa=0:(Kt("color")||Kt("colors")||Kt("color=true")||Kt("color=always"))&&(Aa=1);function wP(){if("FORCE_COLOR"in Fe)return Fe.FORCE_COLOR==="true"?1:Fe.FORCE_COLOR==="false"?0:Fe.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Fe.FORCE_COLOR,10),3)}s(wP,"envForceColor");function $P(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}s($P,"translateLevel");function PP(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=wP();n!==void 0&&(Aa=n);let i=r?Aa:n;if(i===0)return 0;if(r){if(Kt("color=16m")||Kt("color=full")||Kt("color=truecolor"))return 3;if(Kt("color=256"))return 2}if("TF_BUILD"in Fe&&"AGENT_NAME"in Fe)return 1;if(e&&!t&&i===void 0)return 0;let o=i||0;if(Fe.TERM==="dumb")return o;if(Ca.default.platform==="win32"){let a=Dg.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Fe)return"GITHUB_ACTIONS"in Fe||"GITEA_ACTIONS"in Fe?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Fe)||Fe.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in Fe)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Fe.TEAMCITY_VERSION)?1:0;if(Fe.COLORTERM==="truecolor"||Fe.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Fe){let a=Number.parseInt((Fe.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Fe.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Fe.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Fe.TERM)||"COLORTERM"in Fe?1:o}s(PP,"_supportsColor");function qg(e,t={}){let r=PP(e,{streamIsTTY:e&&e.isTTY,...t});return $P(r)}s(qg,"createSupportsColor");var OP={stdout:qg({isTTY:dl.default.isatty(1)}),stderr:qg({isTTY:dl.default.isatty(2)})},Lg=OP;function Fg(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,a="";do a+=e.slice(o,n)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return a+=e.slice(o),a}s(Fg,"stringReplaceAll");function Vg(e,t,r,n){let i=0,o="";do{let a=e[n-1]==="\r";o+=e.slice(i,a?n-1:n)+t+(a?`\r
137
137
  `:`
138
138
  `)+r,i=n+1,n=e.indexOf(`
139
139
  `,i)}while(n!==-1);return o+=e.slice(i),o}s(Vg,"stringEncaseCRLFWithFirstIndex");var{stdout:Bg,stderr:Hg}=Lg,hl=Symbol("GENERATOR"),Ni=Symbol("STYLER"),Gs=Symbol("IS_EMPTY"),Ug=["ansi","ansi","ansi256","ansi16m"],Mi=Object.create(null),xP=s((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Bg?Bg.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),yl=class yl{constructor(t){return zg(t)}};s(yl,"Chalk");var Ia=yl,zg=s(e=>{let t=s((...r)=>r.join(" "),"chalk");return xP(t,e),Object.setPrototypeOf(t,Ws.prototype),t},"chalkFactory");function Ws(e){return zg(e)}s(Ws,"createChalk");Object.setPrototypeOf(Ws.prototype,Function.prototype);for(let[e,t]of Object.entries(ar))Mi[e]={get(){let r=Ra(this,gl(t.open,t.close,this[Ni]),this[Gs]);return Object.defineProperty(this,e,{value:r}),r}};Mi.visible={get(){let e=Ra(this,this[Ni],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var ml=s((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?ar[r].ansi16m(...n):t==="ansi256"?ar[r].ansi256(ar.rgbToAnsi256(...n)):ar[r].ansi(ar.rgbToAnsi(...n)):e==="hex"?ml("rgb",t,r,...ar.hexToRgb(...n)):ar[r][e](...n),"getModelAnsi"),EP=["rgb","hex","ansi256"];for(let e of EP){Mi[e]={get(){let{level:r}=this;return function(...n){let i=gl(ml(e,Ug[r],"color",...n),ar.color.close,this[Ni]);return Ra(this,i,this[Gs])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Mi[t]={get(){let{level:r}=this;return function(...n){let i=gl(ml(e,Ug[r],"bgColor",...n),ar.bgColor.close,this[Ni]);return Ra(this,i,this[Gs])}}}}var AP=Object.defineProperties(()=>{},{...Mi,level:{enumerable:!0,get(){return this[hl].level},set(e){this[hl].level=e}}}),gl=s((e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},"createStyler"),Ra=s((e,t,r)=>{let n=s((...i)=>CP(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,AP),n[hl]=e,n[Ni]=t,n[Gs]=r,n},"createBuilder"),CP=s((e,t)=>{if(e.level<=0||!t)return e[Gs]?"":t;let r=e[Ni];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Fg(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
140
- `);return o!==-1&&(t=Vg(t,i,n,o)),n+t+i},"applyStyle");Object.defineProperties(Ws.prototype,Mi);var NL=Ws(),ML=Ws({level:Hg?Hg.level:0});var Zn=new Ia;function vl(e,t,r){console.log(r!==void 0&&r!==t?`${Zn.yellow(`${e}:`.padEnd(20))}${Zn.magenta(t)}`:`${`${e}:`.padEnd(20)}${t}`)}s(vl,"logVariable");function Ti(e){console.log(`[INFO] ${e}`)}s(Ti,"logInfo");function bl(e){console.log(Zn.green(`[SUCCESS] ${e}`))}s(bl,"logSuccess");function Ks(e,t){e instanceof Error?(console.log(Zn.red(`[ERROR] ${t||e.message}`)),process.env.VERBOSE&&console.error(e)):console.log(Zn.red(`[ERROR] ${e}`))}s(Ks,"logError");function Gg(e){console.log(Zn.bgYellow(`==== ${e} ====`))}s(Gg,"logBanner");var Wg=Et(require("fs"));function ja(){return"0.0.12"}s(ja,"getVersion");var KL=Et(Zg());var _l=Symbol("options_key");function Hr(e){return(t,r)=>{var n,i;if(e!=null){let o={...Reflect.getMetadata(_l,t)||{},[r]:{...e,describe:e.envAlias?`${e.describe||""} [${e.envAlias}]`:e.describe,type:e.type||((i=(n=Reflect.getMetadata("design:type",t,r))==null?void 0:n.name)==null?void 0:i.toLowerCase())}};Reflect.defineMetadata(_l,o,t)}}}s(Hr,"YargOption");function Yg(e){let t=Reflect.getMetadata(_l,e.prototype);if(!t)throw new Error(`Options for ${e.name} were not defined`);return t}s(Yg,"getYargsOption");function Jg(e){return async t=>t.options(IP(e)).middleware(async r=>await RP(e,r),!0)}s(Jg,"getBuilder");function IP(e){return Object.entries(Yg(e)).reduce((t,[r,n])=>(t[r]=Object.fromEntries(Object.entries(n).filter(([i])=>!["envAlias","default"].includes(i))),t),{})}s(IP,"getYargsOptions");async function RP(e,t){let r=new e;for(let[n,i]of Object.entries(Yg(e)))r[n]=t[n]??i.default;return r}s(RP,"loadYargsConfig");var A$=Et(x1()),C$=require("child_process");var E1="Schema",A1="Body",C1="Param",I1="Response",R1="ErrorResponse",fh="z.void()",Du={bindings:["z"],from:"zod"};var j1={output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:E1,additionalPropertiesDefaultValue:!1};var ph={"Content-Type":"application/json",Accept:"application/json"},dh="AppRestClient",k1={bindings:[dh],from:"@/util/rest/clients/app-rest-client"};var N1=s(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),hh=s(e=>e.replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var Zr=Symbol.for("@ts-pattern/matcher"),xM=Symbol.for("@ts-pattern/isVariadic"),Fu="@ts-pattern/anonymous-select-key",mh=s(e=>!!(e&&typeof e=="object"),"r"),Lu=s(e=>e&&!!e[Zr],"i"),qr=s((e,t,r)=>{if(Lu(e)){let n=e[Zr](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(mh(e)){if(!mh(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];Lu(u)&&u[xM]?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)=>qr(l,a[p],r))&&i.every((l,p)=>qr(l,u[p],r))&&(o.length===0||qr(o[0],c,r))}return e.length===t.length&&e.every((a,u)=>qr(a,t[u],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Lu(o=i)&&o[Zr]().matcherType==="optional")&&qr(i,t[n],r);var o})}return Object.is(t,e)},"s"),In=s(e=>{var t,r,n;return mh(e)?Lu(e)?(t=(r=(n=e[Zr]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Vo(e,In):Vo(Object.values(e),In):[]},"o"),Vo=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function er(e){return Object.assign(e,{optional:s(()=>EM(e),"optional"),and:s(t=>De(e,t),"and"),or:s(t=>AM(e,t),"or"),select:s(t=>t===void 0?M1(e):M1(t,e),"select")})}s(er,"u");function EM(e){return er({[Zr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return t===void 0?(In(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:qr(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>In(e),"getSelectionKeys"),matcherType:"optional"})})}s(EM,"h");function De(...e){return er({[Zr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>qr(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Vo(e,In),"getSelectionKeys"),matcherType:"and"})})}s(De,"m");function AM(...e){return er({[Zr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return Vo(e,In).forEach(i=>n(i,void 0)),{matched:e.some(i=>qr(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Vo(e,In),"getSelectionKeys"),matcherType:"or"})})}s(AM,"d");function we(e){return{[Zr]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(we,"p");function M1(...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 er({[Zr]:()=>({match:s(n=>{let i={[t??Fu]:n};return{matched:r===void 0||qr(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??Fu].concat(r===void 0?[]:In(r)),"getSelectionKeys")})})}s(M1,"y");function Mr(e){return typeof e=="number"}s(Mr,"v");function xn(e){return typeof e=="string"}s(xn,"b");function En(e){return typeof e=="bigint"}s(En,"w");var dV=er(we(function(e){return!0}));var An=s(e=>Object.assign(er(e),{startsWith:s(t=>{return An(De(e,(r=t,we(n=>xn(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return An(De(e,(r=t,we(n=>xn(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>An(De(e,(r=>we(n=>xn(n)&&n.length>=r))(t))),"minLength"),length:s(t=>An(De(e,(r=>we(n=>xn(n)&&n.length===r))(t))),"length"),maxLength:s(t=>An(De(e,(r=>we(n=>xn(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return An(De(e,(r=t,we(n=>xn(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return An(De(e,(r=t,we(n=>xn(n)&&!!n.match(r)))));var r},"regex")}),"j"),hV=An(we(xn)),Tr=s(e=>Object.assign(er(e),{between:s((t,r)=>Tr(De(e,((n,i)=>we(o=>Mr(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Tr(De(e,(r=>we(n=>Mr(n)&&n<r))(t))),"lt"),gt:s(t=>Tr(De(e,(r=>we(n=>Mr(n)&&n>r))(t))),"gt"),lte:s(t=>Tr(De(e,(r=>we(n=>Mr(n)&&n<=r))(t))),"lte"),gte:s(t=>Tr(De(e,(r=>we(n=>Mr(n)&&n>=r))(t))),"gte"),int:s(()=>Tr(De(e,we(t=>Mr(t)&&Number.isInteger(t)))),"int"),finite:s(()=>Tr(De(e,we(t=>Mr(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>Tr(De(e,we(t=>Mr(t)&&t>0))),"positive"),negative:s(()=>Tr(De(e,we(t=>Mr(t)&&t<0))),"negative")}),"x"),mV=Tr(we(Mr)),Cn=s(e=>Object.assign(er(e),{between:s((t,r)=>Cn(De(e,((n,i)=>we(o=>En(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Cn(De(e,(r=>we(n=>En(n)&&n<r))(t))),"lt"),gt:s(t=>Cn(De(e,(r=>we(n=>En(n)&&n>r))(t))),"gt"),lte:s(t=>Cn(De(e,(r=>we(n=>En(n)&&n<=r))(t))),"lte"),gte:s(t=>Cn(De(e,(r=>we(n=>En(n)&&n>=r))(t))),"gte"),positive:s(()=>Cn(De(e,we(t=>En(t)&&t>0))),"positive"),negative:s(()=>Cn(De(e,we(t=>En(t)&&t<0))),"negative")}),"A"),gV=Cn(we(En)),yV=er(we(function(e){return typeof e=="boolean"})),vV=er(we(function(e){return typeof e=="symbol"})),bV=er(we(function(e){return e==null})),_V=er(we(function(e){return e!=null}));var bh=class bh 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(bh,"W");var gh=bh,yh={matched:!1,value:void 0};function St(e){return new vh(e,yh)}s(St,"z");var Fo=class Fo{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=>qr(l,this.input,u))||i&&!i(this.input)?yh:{matched:!0,value:r(o?Fu in a?a[Fu]:a:this.input,this.input)};return new Fo(this.input,c)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Fo(this.input,n?{matched:!0,value:r(this.input,this.input)}:yh)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new gh(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(Fo,"I");var vh=Fo;var _h=2,T1=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],q1=["query","header","path"],Vu=["get","put","post","delete","options","head","patch","trace"],D1=["string","number","integer","boolean"];var Yr=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Bo=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),L1=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),br=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),F1=s(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),V1=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),B1=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix");var H1=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),Ho=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),wh=s(e=>Ho(e).split("/").at(-1),"getSchemaNameByRef");function $e(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s($e,"isReferenceObject");function U1(e){return CM(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/-+/g,"_").replace(/[^\w\-]+/g,"_").replace(/--+/g,"-")}s(U1,"normalizeString");function z1(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s(z1,"wrapWithQuotesIfNeeded");function G1(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s(G1,"unwrapQuotesIfNeeded");function CM(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(CM,"prefixStringStartingWithNumberIfNeeded");function $h(e){let t=e.replaceAll("_","#");return br(t.replaceAll("-","_")).replaceAll("#","_")}s($h,"pathParamToVariableName");var Ss=s(e=>D1.includes(e),"isPrimitiveType");function W1(e){return St(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(W1,"primitiveTypeToTsType");function K1(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(K1,"escapeControlCharacters");function ws(e){return e.includes("application/")&&e.includes("json")||T1.includes(e)||e.includes("text/")}s(ws,"isParamMediaTypeAllowed");function Ph(e){return e>=200&&e<300}s(Ph,"isMainResponseStatus");function Oh(e){return!(e>=200&&e<300)}s(Oh,"isErrorStatus");function Bu(e){return e==="application/json"}s(Bu,"isMediaTypeAllowed");function Z1(e,t,r){return r.operationId??t+jM(e)}s(Z1,"getOperationName");function yi(e){return F1(e)}s(yi,"formatTag");function Hu(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return yi(r??t.defaultTag)}s(Hu,"getOperationTag");var IM=/({\w+})/g,RM=/[^\w\-]+/g;function jM(e){return Yr(L1(e.replaceAll("/","-")).replaceAll("-","")).replace(IM,t=>Yr(t.slice(1,-1))).replace(RM,"_")}s(jM,"pathToVariableName");var Sh=/{(\b\w+(?:-\w+)*\b)}/g;function Y1(e){let t=e.match(Sh);return t===null?e.replaceAll(Sh,":$1"):(t.forEach(r=>{let n=$h(r.replaceAll(Sh,":$1"));e=e.replaceAll(r,n)}),e)}s(Y1,"replaceHyphenatedPath");function Jr(e){return!$e(e)}s(Jr,"isSchemaObject");function J1(e){return e.type==="array"}s(J1,"isArraySchemaObject");function Q1(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(kM(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($e(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(Q1,"inferRequiredSchema");var kM=s(e=>!$e(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var Rn=s((e,t)=>V1(Yr(U1(e)),t),"getZodSchemaName"),Lt=s(e=>!e.startsWith("z."),"isNamedZodSchema"),X1=s(e=>br(`${e}_${A1}`),"getBodyZodSchemaName"),e2=s((e,t)=>br(`${e}_${t}${C1}`),"getParamZodSchemaName"),t2=s(e=>br(`${e}${I1}`),"getMainResponseZodSchemaName"),r2=s((e,t)=>br(`${e}_${t}_${R1}`),"getErrorResponseZodSchemaName");function Uu({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Bo(t)}/`:""}${Bo(t)}.${i}`:i}s(Uu,"getTagFileName");var wt=s(({type:e,tag:t,options:r})=>`${Yr(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var Uo=s((e,t)=>B1(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),n2=s(({resolver:e,zodSchemaName:t,options:r})=>Lt(t)?`${r.includeNamespaces?`${wt({type:"models",tag:e.getTagByZodSchemaName(t),options:r})}.`:""}${t}`:t,"getImportedZodSchemaName"),i2=s(({resolver:e,zodSchemaName:t,options:r})=>Lt(t)?`${r.includeNamespaces?`${wt({type:"models",tag:e.getTagByZodSchemaName(t),options:r})}.`:""}${Uo(t,r)}`:t,"getImportedZodSchemaInferedTypeName");var zo=s(e=>Bo(br(e.operationName)),"getEndpointName");function s2(e,t){return`${t.includeNamespaces?`${wt({type:"endpoints",tag:Go(e,t),options:t})}.`:""}${zo(e)}`}s(s2,"getImportedEndpointName");var o2=s(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function Go(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return yi(r??t.defaultTag)}s(Go,"getEndpointTag");function xh({resolver:e,endpoint:t,options:r}){return t.parameters.map(n=>{var o,a,u,c;let i="string";if(Lt(n.zodSchema))i=i2({resolver:e,zodSchemaName:n.zodSchema,options:r});else if((o=n.parameterObject)!=null&&o.schema&&Jr(n.parameterObject.schema)){let l=(u=(a=n.parameterObject)==null?void 0:a.schema)==null?void 0:u.type;l&&Ss(l)&&(i=W1(l))}return{name:hh(n.name),type:i,paramType:n.type,required:((c=n.parameterObject)==null?void 0:c.required)??!0}}).sort((n,i)=>{if(n.required===i.required){let o=["Path","Query","Header","Body"];return o.indexOf(n.paramType)-o.indexOf(i.paramType)}return n.required?-1:1})}s(xh,"mapEndpointParamsToFunctionParams");function a2(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let o=N1(i.name)?i.name:`"${i.name}"`,a=hh(i.name);return{...i,name:o,value:a}}),r={...e.requestFormat!==ph["Content-Type"]?{"Content-Type":e.requestFormat}:{},...e.responseFormat&&e.responseFormat!==ph.Accept?{Accept:e.responseFormat}:{}};return{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}s(a2,"getEndpointConfig");function zu(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(zu,"pick");function Dr({schema:e,meta:t,options:r}){let n=[];St(e.type).with("string",()=>n.push(TM(e))).with("number","integer",()=>n.push(DM(e))).with("array",()=>n.push(LM(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
140
+ `);return o!==-1&&(t=Vg(t,i,n,o)),n+t+i},"applyStyle");Object.defineProperties(Ws.prototype,Mi);var NL=Ws(),ML=Ws({level:Hg?Hg.level:0});var Zn=new Ia;function vl(e,t,r){console.log(r!==void 0&&r!==t?`${Zn.yellow(`${e}:`.padEnd(20))}${Zn.magenta(t)}`:`${`${e}:`.padEnd(20)}${t}`)}s(vl,"logVariable");function Ti(e){console.log(`[INFO] ${e}`)}s(Ti,"logInfo");function bl(e){console.log(Zn.green(`[SUCCESS] ${e}`))}s(bl,"logSuccess");function Ks(e,t){e instanceof Error?(console.log(Zn.red(`[ERROR] ${t||e.message}`)),process.env.VERBOSE&&console.error(e)):console.log(Zn.red(`[ERROR] ${e}`))}s(Ks,"logError");function Gg(e){console.log(Zn.bgYellow(`==== ${e} ====`))}s(Gg,"logBanner");var Wg=Et(require("fs"));function ja(){return"0.1.1"}s(ja,"getVersion");var KL=Et(Zg());var _l=Symbol("options_key");function Hr(e){return(t,r)=>{var n,i;if(e!=null){let o={...Reflect.getMetadata(_l,t)||{},[r]:{...e,describe:e.envAlias?`${e.describe||""} [${e.envAlias}]`:e.describe,type:e.type||((i=(n=Reflect.getMetadata("design:type",t,r))==null?void 0:n.name)==null?void 0:i.toLowerCase())}};Reflect.defineMetadata(_l,o,t)}}}s(Hr,"YargOption");function Yg(e){let t=Reflect.getMetadata(_l,e.prototype);if(!t)throw new Error(`Options for ${e.name} were not defined`);return t}s(Yg,"getYargsOption");function Jg(e){return async t=>t.options(IP(e)).middleware(async r=>await RP(e,r),!0)}s(Jg,"getBuilder");function IP(e){return Object.entries(Yg(e)).reduce((t,[r,n])=>(t[r]=Object.fromEntries(Object.entries(n).filter(([i])=>!["envAlias","default"].includes(i))),t),{})}s(IP,"getYargsOptions");async function RP(e,t){let r=new e;for(let[n,i]of Object.entries(Yg(e)))r[n]=t[n]??i.default;return r}s(RP,"loadYargsConfig");var A$=Et(x1()),C$=require("child_process");var E1="Schema",A1="Body",C1="Param",I1="Response",R1="ErrorResponse",fh="z.void()",Du={bindings:["z"],from:"zod"};var j1={output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:E1,additionalPropertiesDefaultValue:!1};var ph={"Content-Type":"application/json",Accept:"application/json"},dh="AppRestClient",k1={bindings:[dh],from:"@/util/rest/clients/app-rest-client"};var N1=s(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),hh=s(e=>e.replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var Zr=Symbol.for("@ts-pattern/matcher"),xM=Symbol.for("@ts-pattern/isVariadic"),Fu="@ts-pattern/anonymous-select-key",mh=s(e=>!!(e&&typeof e=="object"),"r"),Lu=s(e=>e&&!!e[Zr],"i"),qr=s((e,t,r)=>{if(Lu(e)){let n=e[Zr](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(mh(e)){if(!mh(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];Lu(u)&&u[xM]?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)=>qr(l,a[p],r))&&i.every((l,p)=>qr(l,u[p],r))&&(o.length===0||qr(o[0],c,r))}return e.length===t.length&&e.every((a,u)=>qr(a,t[u],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Lu(o=i)&&o[Zr]().matcherType==="optional")&&qr(i,t[n],r);var o})}return Object.is(t,e)},"s"),In=s(e=>{var t,r,n;return mh(e)?Lu(e)?(t=(r=(n=e[Zr]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Vo(e,In):Vo(Object.values(e),In):[]},"o"),Vo=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function er(e){return Object.assign(e,{optional:s(()=>EM(e),"optional"),and:s(t=>Le(e,t),"and"),or:s(t=>AM(e,t),"or"),select:s(t=>t===void 0?M1(e):M1(t,e),"select")})}s(er,"u");function EM(e){return er({[Zr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return t===void 0?(In(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:qr(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>In(e),"getSelectionKeys"),matcherType:"optional"})})}s(EM,"h");function Le(...e){return er({[Zr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>qr(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Vo(e,In),"getSelectionKeys"),matcherType:"and"})})}s(Le,"m");function AM(...e){return er({[Zr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return Vo(e,In).forEach(i=>n(i,void 0)),{matched:e.some(i=>qr(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Vo(e,In),"getSelectionKeys"),matcherType:"or"})})}s(AM,"d");function we(e){return{[Zr]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(we,"p");function M1(...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 er({[Zr]:()=>({match:s(n=>{let i={[t??Fu]:n};return{matched:r===void 0||qr(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??Fu].concat(r===void 0?[]:In(r)),"getSelectionKeys")})})}s(M1,"y");function Mr(e){return typeof e=="number"}s(Mr,"v");function xn(e){return typeof e=="string"}s(xn,"b");function En(e){return typeof e=="bigint"}s(En,"w");var dV=er(we(function(e){return!0}));var An=s(e=>Object.assign(er(e),{startsWith:s(t=>{return An(Le(e,(r=t,we(n=>xn(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return An(Le(e,(r=t,we(n=>xn(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>An(Le(e,(r=>we(n=>xn(n)&&n.length>=r))(t))),"minLength"),length:s(t=>An(Le(e,(r=>we(n=>xn(n)&&n.length===r))(t))),"length"),maxLength:s(t=>An(Le(e,(r=>we(n=>xn(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return An(Le(e,(r=t,we(n=>xn(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return An(Le(e,(r=t,we(n=>xn(n)&&!!n.match(r)))));var r},"regex")}),"j"),hV=An(we(xn)),Tr=s(e=>Object.assign(er(e),{between:s((t,r)=>Tr(Le(e,((n,i)=>we(o=>Mr(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Tr(Le(e,(r=>we(n=>Mr(n)&&n<r))(t))),"lt"),gt:s(t=>Tr(Le(e,(r=>we(n=>Mr(n)&&n>r))(t))),"gt"),lte:s(t=>Tr(Le(e,(r=>we(n=>Mr(n)&&n<=r))(t))),"lte"),gte:s(t=>Tr(Le(e,(r=>we(n=>Mr(n)&&n>=r))(t))),"gte"),int:s(()=>Tr(Le(e,we(t=>Mr(t)&&Number.isInteger(t)))),"int"),finite:s(()=>Tr(Le(e,we(t=>Mr(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>Tr(Le(e,we(t=>Mr(t)&&t>0))),"positive"),negative:s(()=>Tr(Le(e,we(t=>Mr(t)&&t<0))),"negative")}),"x"),mV=Tr(we(Mr)),Cn=s(e=>Object.assign(er(e),{between:s((t,r)=>Cn(Le(e,((n,i)=>we(o=>En(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Cn(Le(e,(r=>we(n=>En(n)&&n<r))(t))),"lt"),gt:s(t=>Cn(Le(e,(r=>we(n=>En(n)&&n>r))(t))),"gt"),lte:s(t=>Cn(Le(e,(r=>we(n=>En(n)&&n<=r))(t))),"lte"),gte:s(t=>Cn(Le(e,(r=>we(n=>En(n)&&n>=r))(t))),"gte"),positive:s(()=>Cn(Le(e,we(t=>En(t)&&t>0))),"positive"),negative:s(()=>Cn(Le(e,we(t=>En(t)&&t<0))),"negative")}),"A"),gV=Cn(we(En)),yV=er(we(function(e){return typeof e=="boolean"})),vV=er(we(function(e){return typeof e=="symbol"})),bV=er(we(function(e){return e==null})),_V=er(we(function(e){return e!=null}));var bh=class bh 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(bh,"W");var gh=bh,yh={matched:!1,value:void 0};function St(e){return new vh(e,yh)}s(St,"z");var Fo=class Fo{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=>qr(l,this.input,u))||i&&!i(this.input)?yh:{matched:!0,value:r(o?Fu in a?a[Fu]:a:this.input,this.input)};return new Fo(this.input,c)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Fo(this.input,n?{matched:!0,value:r(this.input,this.input)}:yh)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new gh(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(Fo,"I");var vh=Fo;var _h=2,T1=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],q1=["query","header","path"],Vu=["get","put","post","delete","options","head","patch","trace"],D1=["string","number","integer","boolean"];var Yr=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Bo=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),L1=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),br=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),F1=s(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),V1=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),B1=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix");var H1=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),Ho=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),wh=s(e=>Ho(e).split("/").at(-1),"getSchemaNameByRef");function $e(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s($e,"isReferenceObject");function U1(e){return CM(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/-+/g,"_").replace(/[^\w\-]+/g,"_").replace(/--+/g,"-")}s(U1,"normalizeString");function z1(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s(z1,"wrapWithQuotesIfNeeded");function G1(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s(G1,"unwrapQuotesIfNeeded");function CM(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(CM,"prefixStringStartingWithNumberIfNeeded");function $h(e){let t=e.replaceAll("_","#");return br(t.replaceAll("-","_")).replaceAll("#","_")}s($h,"pathParamToVariableName");var Ss=s(e=>D1.includes(e),"isPrimitiveType");function W1(e){return St(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(W1,"primitiveTypeToTsType");function K1(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(K1,"escapeControlCharacters");function ws(e){return e.includes("application/")&&e.includes("json")||T1.includes(e)||e.includes("text/")}s(ws,"isParamMediaTypeAllowed");function Ph(e){return e>=200&&e<300}s(Ph,"isMainResponseStatus");function Oh(e){return!(e>=200&&e<300)}s(Oh,"isErrorStatus");function Bu(e){return e==="application/json"}s(Bu,"isMediaTypeAllowed");function Z1(e,t,r){return r.operationId??t+jM(e)}s(Z1,"getOperationName");function yi(e){return F1(e)}s(yi,"formatTag");function Hu(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return yi(r??t.defaultTag)}s(Hu,"getOperationTag");var IM=/({\w+})/g,RM=/[^\w\-]+/g;function jM(e){return Yr(L1(e.replaceAll("/","-")).replaceAll("-","")).replace(IM,t=>Yr(t.slice(1,-1))).replace(RM,"_")}s(jM,"pathToVariableName");var Sh=/{(\b\w+(?:-\w+)*\b)}/g;function Y1(e){let t=e.match(Sh);return t===null?e.replaceAll(Sh,":$1"):(t.forEach(r=>{let n=$h(r.replaceAll(Sh,":$1"));e=e.replaceAll(r,n)}),e)}s(Y1,"replaceHyphenatedPath");function Jr(e){return!$e(e)}s(Jr,"isSchemaObject");function J1(e){return e.type==="array"}s(J1,"isArraySchemaObject");function Q1(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(kM(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($e(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(Q1,"inferRequiredSchema");var kM=s(e=>!$e(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var Rn=s((e,t)=>V1(Yr(U1(e)),t),"getZodSchemaName"),Lt=s(e=>!e.startsWith("z."),"isNamedZodSchema"),X1=s(e=>br(`${e}_${A1}`),"getBodyZodSchemaName"),e2=s((e,t)=>br(`${e}_${t}${C1}`),"getParamZodSchemaName"),t2=s(e=>br(`${e}${I1}`),"getMainResponseZodSchemaName"),r2=s((e,t)=>br(`${e}_${t}_${R1}`),"getErrorResponseZodSchemaName");function Uu({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Bo(t)}/`:""}${Bo(t)}.${i}`:i}s(Uu,"getTagFileName");var wt=s(({type:e,tag:t,options:r})=>`${Yr(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var Uo=s((e,t)=>B1(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),n2=s(({resolver:e,zodSchemaName:t,options:r})=>Lt(t)?`${r.includeNamespaces?`${wt({type:"models",tag:e.getTagByZodSchemaName(t),options:r})}.`:""}${t}`:t,"getImportedZodSchemaName"),i2=s(({resolver:e,zodSchemaName:t,options:r})=>Lt(t)?`${r.includeNamespaces?`${wt({type:"models",tag:e.getTagByZodSchemaName(t),options:r})}.`:""}${Uo(t,r)}`:t,"getImportedZodSchemaInferedTypeName");var zo=s(e=>Bo(br(e.operationName)),"getEndpointName");function s2(e,t){return`${t.includeNamespaces?`${wt({type:"endpoints",tag:Go(e,t),options:t})}.`:""}${zo(e)}`}s(s2,"getImportedEndpointName");var o2=s(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function Go(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return yi(r??t.defaultTag)}s(Go,"getEndpointTag");function xh({resolver:e,endpoint:t,options:r}){return t.parameters.map(n=>{var o,a,u,c;let i="string";if(Lt(n.zodSchema))i=i2({resolver:e,zodSchemaName:n.zodSchema,options:r});else if((o=n.parameterObject)!=null&&o.schema&&Jr(n.parameterObject.schema)){let l=(u=(a=n.parameterObject)==null?void 0:a.schema)==null?void 0:u.type;l&&Ss(l)&&(i=W1(l))}return{name:hh(n.name),type:i,paramType:n.type,required:((c=n.parameterObject)==null?void 0:c.required)??!0}}).sort((n,i)=>{if(n.required===i.required){let o=["Path","Query","Header","Body"];return o.indexOf(n.paramType)-o.indexOf(i.paramType)}return n.required?-1:1})}s(xh,"mapEndpointParamsToFunctionParams");function a2(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let o=N1(i.name)?i.name:`"${i.name}"`,a=hh(i.name);return{...i,name:o,value:a}}),r={...e.requestFormat!==ph["Content-Type"]?{"Content-Type":e.requestFormat}:{},...e.responseFormat&&e.responseFormat!==ph.Accept?{Accept:e.responseFormat}:{}};return{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}s(a2,"getEndpointConfig");function zu(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(zu,"pick");function Dr({schema:e,meta:t,options:r}){let n=[];St(e.type).with("string",()=>n.push(TM(e))).with("number","integer",()=>n.push(DM(e))).with("array",()=>n.push(LM(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
141
141
  `,"\r",`\r
142
- `].some(o=>String.prototype.includes.call(e.description,o))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(NM(e,t),(r==null?void 0:r.withDefaultValues)!==!1?MM(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}s(Dr,"getZodChain");function NM(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}s(NM,"getZodChainablePresence");function MM(e){return e.default!==void 0?`default(${St(e.type).with("number","integer",()=>G1(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}s(MM,"getZodChainableDefault");function TM(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(${qM(e.pattern)})`),e.format){let r=St(e.format).with("email",()=>"email()").with("hostname",()=>"url()").with("uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}s(TM,"getZodChainableStringValidations");function qM(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=K1(e),`/${e}/`}s(qM,"formatPatternIfNeeded");function DM(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(DM,"getZodChainableNumberValidations");function LM(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}s(LM,"getZodChainableArrayValidations");var vi=s(e=>e.reduce((t,r)=>t+r,0),"sum");function rt({current:e,schema:t}){if(!t)return e;if($e(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?$t("oneOf")+rt({current:e,schema:{...t,type:t.type[0]}}):e+$t("oneOf")+vi(t.type.map(r=>rt({current:0,schema:{...t,type:r}})));if(t.oneOf)return t.oneOf.length===1?$t("oneOf")+rt({current:e,schema:t.oneOf[0]}):e+$t("oneOf")+vi(t.oneOf.map(r=>rt({current:0,schema:r})));if(t.anyOf)return t.anyOf.length===1?$t("anyOf")+rt({current:e,schema:t.anyOf[0]}):e+$t("anyOf")+vi(t.anyOf.map(r=>rt({current:0,schema:r})));if(t.allOf)return t.allOf.length===1?$t("allOf")+rt({current:e,schema:t.allOf[0]}):e+$t("allOf")+vi(t.allOf.map(r=>rt({current:0,schema:r})));if(!t.type)return e;if(Ss(t.type))return t.enum?e+u2(t)+$t("enum")+vi(t.enum.map(r=>rt({current:0,schema:r}))):e+u2(t);if(t.type==="array")return t.items?$t("array")+rt({current:e,schema:t.items}):$t("array")+rt({current:e,schema:void 0});if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?$t("record")+rt({current:e,schema:void 0}):$t("record")+rt({current:e,schema:t.additionalProperties});if(t.properties){let r=Object.values(t.properties);return e+$t("object")+vi(r.map(n=>rt({current:0,schema:n})))}return $t("empty-object")+rt({current:e,schema:void 0})}return e}s(rt,"getOpenAPISchemaComplexity");function u2(e){let t=e.type;return t?St(t).with("string",()=>1).with("number",()=>1).with("integer",()=>1).with("boolean",()=>1).otherwise(()=>0):0}s(u2,"complexityByType");function $t(e){return e?St(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum",()=>1).with("array",()=>1).with("record",()=>1).with("empty-object",()=>1).with("object",()=>2).otherwise(()=>0):0}s($t,"complexityByComposite");var Eh=class Eh{constructor(t,r,n={referencedBy:[]}){this.schema=t;this.resolver=r;$e(t)&&(this.ref=t.$ref),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;children=[];meta;getCodeString(t,r){var o,a;if((!this.ref||!this.resolver)&&this.code)return this.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?`${wt({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return rt({current:0,schema:this.schema})}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};s(Eh,"ZodSchema");var Gu=Eh;function Ue({schema:e,resolver:t,meta:r,tag:n,options:i}){var v;if(!e)throw new Error("Schema is required");let o=new Gu(e,t,r),a={parent:o.inherit(r==null?void 0:r.parent),referencedBy:[...o.meta.referencedBy]},u={resolver:t,meta:a,tag:n,options:i};if($e(e))return FM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});let c=BM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(c)return c;let l=VM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(l)return l;let p=HM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(p)return p;let f=UM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(f)return f;let d=zM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(d)return d;let h=i!=null&&i.allReadonly?".readonly()":"";if(J1(e))return e.items?o.assign(`z.array(${Ue({...u,schema:e.items}).getCodeString(n,i)}${Dr({schema:e.items,meta:{...a,isRequired:!0},options:i})})${h}`):o.assign(`z.array(z.any())${h}`);let y=e.type?e.type.toLowerCase():void 0;if(y==="object"||e.properties||e.additionalProperties){let g=(i==null?void 0:i.additionalPropertiesDefaultValue)!==void 0?i==null?void 0:i.additionalPropertiesDefaultValue:!0,A=(e.additionalProperties===null||e.additionalProperties===void 0?g:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return o.assign(`z.record(${Ue({...u,schema:e.additionalProperties}).getCodeString(n,i)+Dr({schema:e.additionalProperties,meta:{...a,isRequired:!0},options:i})})`);let k=e.required&&e.required.length>0,C=i!=null&&i.withImplicitRequiredProps?!1:!((v=e.required)!=null&&v.length),I="{}";e.properties&&(I="{ "+Object.entries(e.properties).map(([Le,ee])=>{var Z;let M={...a,isRequired:C?!0:k?(Z=e.required)==null?void 0:Z.includes(Le):i==null?void 0:i.withImplicitRequiredProps,name:Le},R=ee;if($e(ee)&&t&&(R=t.getSchemaByRef(ee.$ref),!R))throw new Error(`Schema ${ee.$ref} not found`);let q=Ue({...u,schema:ee,meta:M}).getCodeString(n,i)+Dr({schema:R,meta:M,options:i});return[Le,q]}).map(([Le,ee])=>`${z1(Le)}: ${ee}`).join(", ")+" }");let fe=C?".partial()":"",ne=i!=null&&i.strictObjects?".strict()":"";return o.assign(`z.object(${I})${fe}${ne}${A}${h}`)}if(!y)return o.assign("z.unknown()");throw new Error(`Unsupported schema type: ${y}`)}s(Ue,"getZodSchema");function FM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!$e(e)||!r)return;let a=t.meta.referencedBy.slice(0,-1).map(l=>(r==null?void 0:r.getZodSchemaNameByRef(l.ref))??l.ref),u=r.getZodSchemaNameByRef(e.$ref);if(a.length>1&&a.includes(u))return t.assign(r.getCodeByZodSchemaName(t.ref));let c=r.getCodeByZodSchemaName(e.$ref);if(!c){let l=r.getSchemaByRef(e.$ref);if(!l)throw new Error(`Schema ${e.$ref} not found`);c=Ue({schema:l,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)}return r.getCodeByZodSchemaName(u)||r.setZodSchema(u,c,i),t}s(FM,"getReferenceZodSchema");function VM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){var u;if(!Jr(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=Ue({schema:e.oneOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(c.getCodeString(i,o))}let a=(u=e.oneOf)==null?void 0:u.some(c=>Jr(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!a){let c=e.discriminator.propertyName;return t.assign(`
142
+ `].some(o=>String.prototype.includes.call(e.description,o))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(NM(e,t),(r==null?void 0:r.withDefaultValues)!==!1?MM(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}s(Dr,"getZodChain");function NM(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}s(NM,"getZodChainablePresence");function MM(e){return e.default!==void 0?`default(${St(e.type).with("number","integer",()=>G1(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}s(MM,"getZodChainableDefault");function TM(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(${qM(e.pattern)})`),e.format){let r=St(e.format).with("email",()=>"email()").with("hostname",()=>"url()").with("uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}s(TM,"getZodChainableStringValidations");function qM(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=K1(e),`/${e}/`}s(qM,"formatPatternIfNeeded");function DM(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(DM,"getZodChainableNumberValidations");function LM(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}s(LM,"getZodChainableArrayValidations");var vi=s(e=>e.reduce((t,r)=>t+r,0),"sum");function rt({current:e,schema:t}){if(!t)return e;if($e(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?$t("oneOf")+rt({current:e,schema:{...t,type:t.type[0]}}):e+$t("oneOf")+vi(t.type.map(r=>rt({current:0,schema:{...t,type:r}})));if(t.oneOf)return t.oneOf.length===1?$t("oneOf")+rt({current:e,schema:t.oneOf[0]}):e+$t("oneOf")+vi(t.oneOf.map(r=>rt({current:0,schema:r})));if(t.anyOf)return t.anyOf.length===1?$t("anyOf")+rt({current:e,schema:t.anyOf[0]}):e+$t("anyOf")+vi(t.anyOf.map(r=>rt({current:0,schema:r})));if(t.allOf)return t.allOf.length===1?$t("allOf")+rt({current:e,schema:t.allOf[0]}):e+$t("allOf")+vi(t.allOf.map(r=>rt({current:0,schema:r})));if(!t.type)return e;if(Ss(t.type))return t.enum?e+u2(t)+$t("enum")+vi(t.enum.map(r=>rt({current:0,schema:r}))):e+u2(t);if(t.type==="array")return t.items?$t("array")+rt({current:e,schema:t.items}):$t("array")+rt({current:e,schema:void 0});if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?$t("record")+rt({current:e,schema:void 0}):$t("record")+rt({current:e,schema:t.additionalProperties});if(t.properties){let r=Object.values(t.properties);return e+$t("object")+vi(r.map(n=>rt({current:0,schema:n})))}return $t("empty-object")+rt({current:e,schema:void 0})}return e}s(rt,"getOpenAPISchemaComplexity");function u2(e){let t=e.type;return t?St(t).with("string",()=>1).with("number",()=>1).with("integer",()=>1).with("boolean",()=>1).otherwise(()=>0):0}s(u2,"complexityByType");function $t(e){return e?St(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum",()=>1).with("array",()=>1).with("record",()=>1).with("empty-object",()=>1).with("object",()=>2).otherwise(()=>0):0}s($t,"complexityByComposite");var Eh=class Eh{constructor(t,r,n={referencedBy:[]}){this.schema=t;this.resolver=r;$e(t)&&(this.ref=t.$ref),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;children=[];meta;getCodeString(t,r){var o,a;if((!this.ref||!this.resolver)&&this.code)return this.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?`${wt({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return rt({current:0,schema:this.schema})}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};s(Eh,"ZodSchema");var Gu=Eh;function Ue({schema:e,resolver:t,meta:r,tag:n,options:i}){var v;if(!e)throw new Error("Schema is required");let o=new Gu(e,t,r),a={parent:o.inherit(r==null?void 0:r.parent),referencedBy:[...o.meta.referencedBy]},u={resolver:t,meta:a,tag:n,options:i};if($e(e))return FM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});let c=BM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(c)return c;let l=VM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(l)return l;let p=HM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(p)return p;let f=UM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(f)return f;let d=zM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(d)return d;let h=i!=null&&i.allReadonly?".readonly()":"";if(J1(e))return e.items?o.assign(`z.array(${Ue({...u,schema:e.items}).getCodeString(n,i)}${Dr({schema:e.items,meta:{...a,isRequired:!0},options:i})})${h}`):o.assign(`z.array(z.any())${h}`);let y=e.type?e.type.toLowerCase():void 0;if(y==="object"||e.properties||e.additionalProperties){let g=(i==null?void 0:i.additionalPropertiesDefaultValue)!==void 0?i==null?void 0:i.additionalPropertiesDefaultValue:!0,A=(e.additionalProperties===null||e.additionalProperties===void 0?g:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return o.assign(`z.record(${Ue({...u,schema:e.additionalProperties}).getCodeString(n,i)+Dr({schema:e.additionalProperties,meta:{...a,isRequired:!0},options:i})})`);let k=e.required&&e.required.length>0,C=i!=null&&i.withImplicitRequiredProps?!1:!((v=e.required)!=null&&v.length),I="{}";e.properties&&(I="{ "+Object.entries(e.properties).map(([Te,ee])=>{var Z;let M={...a,isRequired:C?!0:k?(Z=e.required)==null?void 0:Z.includes(Te):i==null?void 0:i.withImplicitRequiredProps,name:Te},R=ee;if($e(ee)&&t&&(R=t.getSchemaByRef(ee.$ref),!R))throw new Error(`Schema ${ee.$ref} not found`);let q=Ue({...u,schema:ee,meta:M}).getCodeString(n,i)+Dr({schema:R,meta:M,options:i});return[Te,q]}).map(([Te,ee])=>`${z1(Te)}: ${ee}`).join(", ")+" }");let fe=C?".partial()":"",ne=i!=null&&i.strictObjects?".strict()":"";return o.assign(`z.object(${I})${fe}${ne}${A}${h}`)}if(!y)return o.assign("z.unknown()");throw new Error(`Unsupported schema type: ${y}`)}s(Ue,"getZodSchema");function FM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!$e(e)||!r)return;let a=t.meta.referencedBy.slice(0,-1).map(l=>(r==null?void 0:r.getZodSchemaNameByRef(l.ref))??l.ref),u=r.getZodSchemaNameByRef(e.$ref);if(a.length>1&&a.includes(u))return t.assign(r.getCodeByZodSchemaName(t.ref));let c=r.getCodeByZodSchemaName(e.$ref);if(!c){let l=r.getSchemaByRef(e.$ref);if(!l)throw new Error(`Schema ${e.$ref} not found`);c=Ue({schema:l,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)}return r.getCodeByZodSchemaName(u)||r.setZodSchema(u,c,i),t}s(FM,"getReferenceZodSchema");function VM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){var u;if(!Jr(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=Ue({schema:e.oneOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(c.getCodeString(i,o))}let a=(u=e.oneOf)==null?void 0:u.some(c=>Jr(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!a){let c=e.discriminator.propertyName;return t.assign(`
143
143
  z.discriminatedUnion("${c}", [${e.oneOf.map(l=>Ue({schema:l,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])
144
- `)}return t.assign(`z.union([${e.oneOf.map(c=>Ue({schema:c,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(VM,"getOneOfZodSchema");function BM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!(!Jr(e)||!Array.isArray(e.type)))return e.type.length===1?Ue({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i,options:o}):t.assign(`z.union([${e.type.map(a=>Ue({schema:{...e,type:a},resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(BM,"getArrayZodSchema");function HM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Jr(e)||!e.anyOf)return;if(e.anyOf.length===1){let u=Ue({schema:e.anyOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(u.getCodeString(i,o))}let a=e.anyOf.map(u=>Ue({schema:u,resolver:r,meta:n,tag:i,options:o})).map(u=>u.getCodeString(i,o)).join(", ");return t.assign(`z.union([${a}])`)}s(HM,"getAnyOfZodSchema");function UM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Jr(e)||!e.allOf)return;if(e.allOf.length===1){let d=Ue({schema:e.allOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(d.getCodeString(i,o))}let{patchRequiredSchemaInLoop:a,noRequiredOnlyAllof:u,composedRequiredSchema:c}=Q1(e),l=u.map(d=>{let h=Ue({schema:d,resolver:r,meta:n,tag:i,options:o});return r&&a(d,r.getSchemaByRef.bind(r)),h});c.required.length&&l.push(Ue({schema:c,resolver:r,meta:n,tag:i,options:o}));let p=l.at(0),f=l.slice(1).map(d=>`and(${d.getCodeString(i,o)})`).join(".");return t.assign(`${p.getCodeString(i,o)}.${f}`)}s(UM,"getAllOfZodSchema");function zM({schema:e,zodSchema:t}){if(!Jr(e))return;let r=e.type?e.type.toLowerCase():void 0;if(r&&Ss(r)){if(e.enum){if(r==="string"){if(e.enum.length===1){let n=e.enum[0],i=n===null?"null":`"${n}"`;return t.assign(`z.literal(${i})`)}return t.assign(`z.enum([${e.enum.map(n=>n===null?"null":`"${n}"`).join(", ")}])`)}if(e.enum.some(n=>typeof n=="string"))return t.assign("z.never()");if(e.enum.length===1){let n=e.enum[0];return t.assign(`z.literal(${n===null?"null":n})`)}return t.assign(`z.union([${e.enum.map(n=>`z.literal(${n===null?"null":n})`).join(", ")}])`)}return t.assign(St(r).with("integer",()=>"z.number()").with("string",()=>St(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(n=>`z.${n}()`))}}s(zM,"getPrimitiveZodSchema");function $s({zodSchema:e,fallbackName:t,resolver:r,tag:n,options:i}){var u;let o=e.getCodeString();if((!Lt(o)||e.ref===void 0)&&t){if(e.complexity<_h)return o;let c=Rn(t,i.schemaSuffix),l=c,p=1;for(;r.getCodeByZodSchemaName(l);){if((u=r.getZodSchemaNamesByDiscriminatorCode(o))!=null&&u.includes(l))return l;if(r.getCodeByZodSchemaName(l)===c)return l;p+=1,l=`${c}__${p}`}return r.setZodSchema(l,o,n),r.addZodSchemaForDiscriminatorCode(o,e,l),l}let a=r.getCodeByZodSchemaName(o);if(!a&&e.ref&&(a=r.getCodeByZodSchemaName(r.getZodSchemaNameByRef(e.ref))),e.ref&&a)return rt({current:0,schema:r.getSchemaByRef(e.ref)})<_h?r.getCodeByZodSchemaName(o):o;throw new Error("Invalid ref: "+e.ref)}s($s,"resolveZodSchemaName");function c2({resolver:e,operation:t,operationName:r,tag:n,options:i}){var d,h;let o=$e(t.requestBody)?e.getSchemaByRef(t.requestBody.$ref):t.requestBody,u=Object.keys(o.content??{}).find(ws);if(!u)return;let c=(h=(d=o.content)==null?void 0:d[u])==null?void 0:h.schema;if(!c)return;let l=Ue({schema:c,resolver:e,meta:{isRequired:o.required??!0},tag:n,options:i}),p=$s({zodSchema:l,fallbackName:X1(r),resolver:e,tag:n,options:i}),f=Dr({schema:$e(c)?e.getSchemaByRef(c.$ref):c,meta:l.meta,options:i});return{endpointParameter:{name:"body",type:"Body",description:o.description,zodSchema:p+f,bodyObject:o},requestFormat:u}}s(c2,"getEndpointBody");function l2({resolver:e,param:t,operationName:r,tag:n,options:i}){let o=$e(t)?e.getSchemaByRef(t.$ref):t;if(!q1.includes(o.in))return;let a={};if(o.content){let p=Object.keys(o.content??{}),f=p.find(ws);if(!f)throw new Error(`Unsupported media type for param ${o.name}: ${p.join(", ")}`);let d=o.content[f];if(!d)throw new Error(`No content with media type for param ${o.name}: ${f}`);a=(d==null?void 0:d.schema)??d}else o.schema&&(a=o.schema);i!=null&&i.withDescription&&a&&(a.description=(o.description??"").trim());let u=Ue({schema:a,resolver:e,meta:{isRequired:o.in==="path"?!0:o.required??!1},tag:n,options:i}),c=Dr({schema:$e(a)?e.getSchemaByRef(a.$ref):a,meta:u.meta,options:i}),l=$s({zodSchema:u.assign(u.getCodeString(n,i)+c),fallbackName:e2(r,o.name),resolver:e,tag:n,options:i});return{name:St(o.in).with("path",()=>$h(o.name)).otherwise(()=>o.name),type:St(o.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:l,parameterObject:o}}s(l2,"getEndpointParameter");function p2({openApiDoc:e,resolver:t,options:r}){var i,o,a;let n=[];for(let u in e.paths){let c=e.paths[u],l=zu(c,Vu),p=f2(c.parameters??[]);for(let f in l){let d=l[f];if(!d||d.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let h=Object.entries({...p,...f2(d.parameters??[])}).map(([,$])=>$),y=Z1(u,f,d),v=Hu(d,r),g={method:f,path:Y1(u),operationName:y,description:d.description,tags:(i=d.tags)==null?void 0:i.map(yi),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(d.requestBody){let $=c2({resolver:t,operation:d,operationName:y,tag:v,options:r});$&&(g.parameters.push($.endpointParameter),g.requestFormat=$.requestFormat)}for(let $ of h){let A=l2({resolver:t,param:$,operationName:y,tag:v,options:r});A&&g.parameters.push(A)}for(let $ in d.responses){let A=$e(d.responses[$])?t.getSchemaByRef(d.responses[$].$ref):d.responses[$],C=Object.keys(A.content??{}).find(Bu),I,fe;if(C?(g.responseFormat=C,I=(a=(o=A.content)==null?void 0:o[C])==null?void 0:a.schema):fe=fh,I){let ne=Ue({schema:I,resolver:t,meta:{isRequired:!0},tag:v,options:r});fe=$s({zodSchema:ne,fallbackName:ne.ref?void 0:GM($,g),resolver:t,tag:v,options:r})+Dr({schema:$e(I)?t.getSchemaByRef(I.$ref):I,meta:ne.meta,options:r})}if(fe){let ne=Number($);Ph(ne)?(g.response=fe,g.responseObject=A):$!=="default"&&Oh(ne)&&g.errors.push({zodSchema:fe,status:ne,description:A.description})}}g.response||(g.response=fh),n.push(g)}}return n}s(p2,"getEndpointsFromOpenAPIDoc");function GM(e,t){let r=Number(e);return(!Ph(r)||t.response)&&e!=="default"&&Oh(r)?r2(t.operationName,e):t2(t.operationName)}s(GM,"getResponseZodSchemaName");function f2(e){return Object.fromEntries((e??[]).map(t=>[$e(t)?t.$ref:t.name,t]))}s(f2,"getParameters");function d2({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){return Ps({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}),{visitedRefs:n,refsDependencyGraph:i}}s(d2,"getSchemaRefsDependencyGraph");function Ps({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}){if(!e)return;let o={fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i};if($e(e)){if(i[t]||(i[t]=new Set),i[t].add(e.$ref),n[e.$ref])return;n[t]=!0,Ps({...o,schema:r(e.$ref),fromRef:e.$ref});return}let a=["allOf","oneOf","anyOf"];for(let u of a)if(e[u])for(let c of e[u])Ps({...o,schema:c});if(!a.some(u=>e[u])){if(e.type==="array"){if(!e.items)return;Ps({...o,schema:e.items});return}if(e.type==="object"||e.properties||e.additionalProperties){if(e.properties)for(let u in e.properties)Ps({...o,schema:e.properties[u]});e.additionalProperties&&typeof e.additionalProperties=="object"&&Ps({...o,schema:e.additionalProperties})}}}s(Ps,"visit");function h2(e,t){let r=WM(e,t),n=KM(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s(h2,"getOpenAPISchemaDependencyGraph");function WM(e,t){let r={},n={};return e.forEach(i=>d2({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(WM,"getRefsDependencyGraph");function KM(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(KM,"getDeepRefsDependencyGraph");var Ah=class Ah{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=h2(this.schemaRefs,this.getSchemaByRef.bind(this)),this.intializeSchemaInfo(),this.initializeSchemaTags()}schemaData=[];zodSchemaData=[];discriminatorZodSchemaData=[];dependencyGraph;get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(H1)}getSchemaByRef(t){return this.docSchemas[wh(t)]}getZodSchemaNameByRef(t){return this.schemaData.find(r=>r.ref===Ho(t)).zodSchemaName}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var n,i;let r;if(this.options.splitByTags){let o=this.getRefByZodSchemaName(t),a=((n=this.schemaData.find(l=>l.ref===o))==null?void 0:n.tags)??[],u=((i=this.zodSchemaData.find(l=>l.zodSchemaName===t))==null?void 0:i.tags)??[],c=new Set([...a,...u]);r=c.size===1?c.values().next().value:this.options.defaultTag}return yi(r??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByDiscriminatorCode(t){var r;return(r=this.discriminatorZodSchemaData.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]})}addZodSchemaForDiscriminatorCode(t,r,n){let i=this.discriminatorZodSchemaData.find(o=>o.code===t);i?i.zodSchemas.push({zodSchemaName:n,zodSchema:r}):this.discriminatorZodSchemaData.push({code:t,zodSchemas:[{zodSchemaName:n,zodSchema:r}]})}getDiscriminatorZodSchemaByZodSchemaName(t){var n;let r=this.discriminatorZodSchemaData.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}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}intializeSchemaInfo(){this.schemaRefs.forEach(t=>{let r=Ho(t),n=wh(r),i=Rn(n,this.options.schemaSuffix);this.schemaData.push({ref:r,name:n,zodSchemaName:i,tags:[]})})}initializeSchemaTags(){var r,n,i,o,a,u;let t=s(c=>(c==null?void 0:c.filter($e))??[],"filterRefObjs");for(let c in this.openApiDoc.paths){let l=this.openApiDoc.paths[c],p=zu(l,Vu);for(let f in p){let d=p[f];if(!d||d.deprecated&&!((r=this.options)!=null&&r.withDeprecatedEndpoints))continue;let h=[];if(h.push(...t((n=d.parameters)==null?void 0:n.map($=>$.schema))),d.requestBody){let $=$e(d.requestBody)?this.getSchemaByRef(d.requestBody.$ref):d.requestBody,k=Object.keys($.content??{}).find(ws);if(k){let C=(o=(i=$.content)==null?void 0:i[k])==null?void 0:o.schema;$e(C)&&h.push(C)}}for(let $ in d.responses){let A=$e(d.responses[$])?this.getSchemaByRef(d.responses[$].$ref):d.responses[$],C=Object.keys(A.content??{}).find(Bu);if(C){let I=(u=(a=A.content)==null?void 0:a[C])==null?void 0:u.schema;$e(I)&&h.push(I)}}let v=h.map($=>Ho($.$ref)).reduce(($,A)=>{let k=this.dependencyGraph.deepDependencyGraph[A];return[...$,A,...Array.from(k??[])]},[]),g=Hu(d,this.options);v.forEach($=>{let A=this.schemaData.find(k=>k.ref===$);A&&A.tags.push(g)})}}}};s(Ah,"SchemaResolver");var Wu=Ah;function m2({resolver:e,openApiDoc:t,options:r}){var i;let n={};return Object.entries(((i=t.components)==null?void 0:i.schemas)??{}).forEach(([o,a])=>{let u=Rn(o,r.schemaSuffix);if(!n[u]){let c=e.getTagByZodSchemaName(u);n[u]=Ue({schema:a,resolver:e,tag:c,options:r}).getCodeString(c,r)}}),n}s(m2,"getZodSchemasFromOpenAPIDoc");function g2(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(g2,"topologicalSort");function y2(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(y2,"sortObjKeysFromArray");function v2({resolver:e,zodSchemas:t}){let r=g2(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return y2(t,r)}s(v2,"sortZodSchemasByTopology");function b2({resolver:e,zodSchemas:t,options:r}){let n={};return Object.entries(t).forEach(([i,o])=>{var c;let a=e.getRefByZodSchemaName(i),u=a&&((c=e.dependencyGraph.deepDependencyGraph[a])==null?void 0:c.has(a));n[Rn(i,r.schemaSuffix)]=u?`z.lazy(() => ${o})`:o}),n}s(b2,"wrapCircularZodSchemas");function S2({openApiDoc:e,options:t}){let r=new Wu(e,t),n=p2({resolver:r,openApiDoc:e,options:t}),o={...m2({resolver:r,openApiDoc:e,options:t}),...r.getZodSchemas()};return o=b2({resolver:r,zodSchemas:o,options:t}),o=v2({resolver:r,zodSchemas:o}),{resolver:r,data:ZM({resolver:r,endpoints:n,zodSchemas:o,options:t})}}s(S2,"getDataFromOpenAPIDoc");function ZM({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=Go(o,n);_2(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let u=e.getTagByZodSchemaName(o);u&&(_2(u,i).zodSchemas[o]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(ZM,"splitDataByTags");function _2(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(_2,"getTagElement");function Os({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[],options:i}){let o="models",a=s(l=>e.getTagByZodSchemaName(l),"getTag"),u=Ch({type:o,tag:t,entities:r,getTag:a,getEntityName:s(l=>l,"getEntityName"),options:i}),c=Ch({type:o,tag:t,entities:n,getTag:a,getEntityName:s(l=>Uo(l,i),"getEntityName"),options:i});return YM(i,u,c)}s(Os,"getModelsImports");function w2({tag:e,endpoints:t,options:r}){return Ch({type:"endpoints",tag:e,entities:t,getTag:s(n=>Go(n,r),"getTag"),getEntityName:zo,options:r})}s(w2,"getEndpointsImports");function Ch({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?wt({type:e,tag:c,options:o}):i(u)],from:`${l?"./":"../"}${Uu({type:e,tag:c,includeTagDir:!l,options:o})}`})}}),Array.from(a.values())}s(Ch,"getImports");function YM(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())}s(YM,"mergeImports");var Om=Et(Oi());var Ms=Et(require("fs")),Sm=Et(require("path"));function wm(e){let t=`src/generators/templates/${e}.hbs`;return Ms.default.readFileSync(Sm.default.join(__dirname,`../${t}`),"utf-8")}s(wm,"readHbsTemplateSync");function d$({output:e,fileName:t,data:r}){B4(`${e}/${t}.ts`,r)}s(d$,"writeTsFileSync");function B4(e,t){let r=Sm.default.dirname(e);Ms.default.existsSync(r)||Ms.default.mkdirSync(r,{recursive:!0}),Ms.default.writeFileSync(e,t,"utf-8")}s(B4,"writeFileWithDirSync");var $m=Et(Oi());function h$(){H4(),U4()}s(h$,"registerCommonHbsHelpers");function H4(){$m.default.registerHelper("isEqual",(e,t)=>e===t)}s(H4,"registerIsEqualHelper");function U4(){$m.default.registerHelper("commaSeparated",e=>e.join(", "))}s(U4,"registerCommaSeparatedListHelper");var Nn=Et(Oi());function m$(e,t){z4(),G4(t),Z4(e,t),W4(),K4(),Y4(e,t),J4()}s(m$,"registerEndpointsHbsHelpers");function z4(){Nn.default.registerHelper("endpointName",zo)}s(z4,"registerEndpointNameHelper");function G4(e){Nn.default.registerHelper("importedEndpointName",t=>s2(t,e))}s(G4,"registerImportedEndpointNameHelper");function W4(){Nn.default.registerHelper("endpointPath",o2)}s(W4,"registerEndpointPathHelper");function K4(){Nn.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}s(K4,"registerEndpointBodyHelper");function Z4(e,t){Nn.default.registerHelper("endpointParams",r=>xh({resolver:e,endpoint:r,options:t}))}s(Z4,"registerEndpointParamsHelper");function Y4(e,t){Nn.default.registerHelper("endpointArgs",r=>xh({resolver:e,endpoint:r,options:t}).map(n=>n.name).join(", "))}s(Y4,"registerEndpointArgsHelper");function J4(){Nn.default.registerHelper("moreThanOneParameter",e=>e.parameters.length>1)}s(J4,"registerMoreThanOneParameterHelper");var Ts=Et(Oi());var Mn={query:"useQuery",mutation:"useMutation"},g$={bindings:[Mn.query,Mn.mutation],from:"@tanstack/react-query"};function y$(){Q4(),X4(),e8(),t8(),r8()}s(y$,"registerPartialsHbsHelpers");function Q4(){Ts.default.registerHelper("genImport",e=>qs("import")({import:e}))}s(Q4,"registerImportHelper");function X4(){Ts.default.registerHelper("genEndpointParams",e=>qs("endpoint-params")({endpoint:e}))}s(X4,"registerGenerateEndpointParamsHelper");function e8(){Ts.default.registerHelper("genEndpointConfig",e=>{let t=a2(e);return Object.keys(t).length===0?"":qs("endpoint-config")({endpointConfig:t})})}s(e8,"registerGenerateEndpointConfigHelper");function t8(){Ts.default.registerHelper("genQueryKeys",e=>e.length===0?"":qs("query-keys")({endpoints:e}))}s(t8,"registerGenerateQueryKeysHelper");function r8(){Ts.default.registerHelper("genQuery",e=>{let t,r;return e.method==="get"?(t="query-use-query",r=Mn.query):(t="query-use-mutation",r=Mn.mutation),qs(t)({endpoint:e,queryHook:r})})}s(r8,"registerGenerateQueryHelper");var b$=Et(Oi());var v$=s(e=>`use${Yr(br(e.operationName))}`,"getQueryName");function _$(){n8()}s(_$,"registerQueryHbsHelpers");function n8(){b$.default.registerHelper("queryName",v$)}s(n8,"registerQueryNameHelper");var Pm=Et(Oi());function S$(e,t){i8(t),s8(e,t)}s(S$,"registerZodHbsHelpers");function i8(e){Pm.default.registerHelper("zodInferedType",t=>Uo(t,e))}s(i8,"registerInferedTypeHelper");function s8(e,t){Pm.default.registerHelper("importedZodSchemaName",r=>n2({resolver:e,zodSchemaName:r,options:t}))}s(s8,"registerImportedZodSchemaNameHelper");function Ds({resolver:e,templateName:t,options:r}){let n=wm(t);return h$(),S$(e,r),m$(e,r),_$(),y$(),Om.default.compile(n)}s(Ds,"getHbsTemplateDelegate");function qs(e){let t=wm(`partials/${e}`);return Om.default.compile(t)}s(qs,"getHbsPartialTemplateDelegate");function w$({resolver:e,data:t,tag:r="",options:n}){var p;let i=(p=t.get(r))==null?void 0:p.endpoints;if(!i||i.length===0)return;let o=i.map(f=>f.response),a=o.some(f=>!Lt(f)),u=i.reduce((f,d)=>[...f,...d.parameters],[]),c=Os({resolver:e,tag:r,zodSchemas:Array.from(new Set(o.filter(Lt))),zodSchemasAsTypes:Array.from(new Set(u.map(f=>f.zodSchema).filter(Lt))),options:n});return Ds({resolver:e,templateName:"endpoints",options:n})({restClientImport:k1,hasZodImport:a,zodImport:Du,modelsImports:c,includeNamespace:n.includeNamespaces,namespace:wt({type:"endpoints",tag:r,options:n}),restClientName:dh,endpoints:i})}s(w$,"generateEndpoints");function $$({resolver:e,zodSchemaName:t}){let r=e.getRefByZodSchemaName(t);if(r)return Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(i=>e.getZodSchemaNameByRef(i));let n=e.getDiscriminatorZodSchemaByZodSchemaName(t);return n?Array.from(P$(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}s($$,"getZodSchemaRefs");function P$(e){return e.children.reduce((r,n)=>(n.ref&&r.add(n.ref),n.children.length>0&&P$(n).forEach(i=>r.add(i)),r),new Set)}s(P$,"getSchemaRefs");function O$({resolver:e,data:t,tag:r="",options:n}){var c;let i=(c=t.get(r))==null?void 0:c.zodSchemas;if(!i||Object.keys(i).length===0)return;let o=Object.keys(i).reduce((l,p)=>[...l,...$$({resolver:e,zodSchemaName:p})],[]).filter(l=>!i[l]),a=Os({resolver:e,tag:r,zodSchemas:o,options:n});return Ds({resolver:e,templateName:"models",options:n})({zodImport:Du,modelsImports:a,includeNamespace:n.includeNamespaces,namespace:wt({type:"models",tag:r,options:n}),zodSchemas:i})}s(O$,"generateModels");function x$({resolver:e,data:t,tag:r="",options:n}){var h;let i=(h=t.get(r))==null?void 0:h.endpoints;if(!i||i.length===0)return;let o=i.filter(y=>y.method==="get"),a=i.filter(y=>y.method!=="get"),u={...g$,bindings:[...o.length>0?[Mn.query]:[],...a.length>0?[Mn.mutation]:[]]},c=a.filter(y=>y.parameters.length>1),l=[...o,...c].reduce((y,v)=>[...y,...v.parameters],[]),p=Os({resolver:e,tag:r,zodSchemasAsTypes:Array.from(new Set(l.map(y=>y.zodSchema).filter(Lt))),options:n}),f=w2({tag:r,endpoints:i,options:n});return Ds({resolver:e,templateName:"queries",options:n})({queryImport:u,modelsImports:p,endpointsImports:f,includeNamespace:n.includeNamespaces,namespace:wt({type:"queries",tag:r,options:n}),endpoints:i,queryEndpoints:o})}s(x$,"generateQueries");function E$({openApiDoc:e,options:t}){let r={...j1,...t},{resolver:n,data:i}=S2({openApiDoc:e,options:r});i.forEach((o,a)=>{var l;((l=r.excludeTags)==null?void 0:l.findIndex(p=>p.toLocaleLowerCase()===a.toLocaleLowerCase()))===-1&&(xm({resolver:n,data:i,type:"models",tag:a,options:r}),xm({resolver:n,data:i,type:"endpoints",tag:a,options:r}),xm({resolver:n,data:i,type:"queries",tag:a,options:r}))})}s(E$,"generateCodeFromOpenAPIDoc");function xm({resolver:e,data:t,type:r,tag:n,options:i}){let o;switch(r){case"models":o=O$({resolver:e,data:t,tag:n,options:i});break;case"endpoints":o=w$({resolver:e,data:t,tag:n,options:i});break;case"queries":o=x$({resolver:e,data:t,tag:n,options:i});break}o&&d$({output:i.output,fileName:Uu({tag:n,type:r,options:i}),data:o})}s(xm,"generateCodeByType");async function I$({input:e,output:t,includeNamespaces:r,splitByTags:n,defaultTag:i,excludeTags:o,prettier:a,verbose:u}){u&&Ti(`Parsing OpenAPI spec from "${e}"`);let c=await A$.default.bundle(e);u&&Ti("Generating code from OpenAPI spec"),E$({openApiDoc:c,options:{output:t,includeNamespaces:r,splitByTags:n,defaultTag:i,excludeTags:o.split(",")}}),u&&bl("Generated code successfully"),a&&o8({output:t,verbose:u})}s(I$,"generate");function o8({output:e,verbose:t}){t&&Ti("Running Prettier"),(0,C$.exec)(`prettier --write ${e}`,r=>{t&&(r?Ks(r,"Prettier error"):bl("Ran Prettier successfully"))})}s(o8,"execPrettier");var Sr=class Sr{input;output;includeNamespaces;splitByTags;defaultTag;excludeTags;prettier;verbose};s(Sr,"GenerateOptions"),Vr([Hr({envAlias:"input",demandOption:!0})],Sr.prototype,"input",2),Vr([Hr({envAlias:"output",default:"output"})],Sr.prototype,"output",2),Vr([Hr({envAlias:"includeNamespaces",default:!0,type:"boolean"})],Sr.prototype,"includeNamespaces",2),Vr([Hr({envAlias:"splitByTags",default:!0,type:"boolean"})],Sr.prototype,"splitByTags",2),Vr([Hr({envAlias:"defaultTag",default:"Common"})],Sr.prototype,"defaultTag",2),Vr([Hr({envAlias:"excludeTags",default:""})],Sr.prototype,"excludeTags",2),Vr([Hr({envAlias:"prettier",default:!0,type:"boolean"})],Sr.prototype,"prettier",2),Vr([Hr({envAlias:"verbose",default:!1,type:"boolean"})],Sr.prototype,"verbose",2);var Em=Sr,R$={command:"generate",describe:"Generate code from OpenAPI spec",builder:Jg(Em),handler:s(async e=>{let t=await e;return t.verbose&&(Gg(`OpenAPI CodeGen ${ja()}`),vl("input",t.input),vl("output",t.output)),I$(t)},"handler")};kg(Bc(process.argv)).version(ja()||"unknown").scriptName("openapi-codegen").command(R$).help().demandCommand(1).strictCommands(!0).showHelpOnFail(!0).fail((e,t)=>{e&&Ks(e),t&&Ks(t),Ti("Use '--help' for more info"),process.exit(1)}).parse();
144
+ `)}return t.assign(`z.union([${e.oneOf.map(c=>Ue({schema:c,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(VM,"getOneOfZodSchema");function BM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!(!Jr(e)||!Array.isArray(e.type)))return e.type.length===1?Ue({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i,options:o}):t.assign(`z.union([${e.type.map(a=>Ue({schema:{...e,type:a},resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(BM,"getArrayZodSchema");function HM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Jr(e)||!e.anyOf)return;if(e.anyOf.length===1){let u=Ue({schema:e.anyOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(u.getCodeString(i,o))}let a=e.anyOf.map(u=>Ue({schema:u,resolver:r,meta:n,tag:i,options:o})).map(u=>u.getCodeString(i,o)).join(", ");return t.assign(`z.union([${a}])`)}s(HM,"getAnyOfZodSchema");function UM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Jr(e)||!e.allOf)return;if(e.allOf.length===1){let d=Ue({schema:e.allOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(d.getCodeString(i,o))}let{patchRequiredSchemaInLoop:a,noRequiredOnlyAllof:u,composedRequiredSchema:c}=Q1(e),l=u.map(d=>{let h=Ue({schema:d,resolver:r,meta:n,tag:i,options:o});return r&&a(d,r.getSchemaByRef.bind(r)),h});c.required.length&&l.push(Ue({schema:c,resolver:r,meta:n,tag:i,options:o}));let p=l.at(0),f=l.slice(1).map(d=>`and(${d.getCodeString(i,o)})`).join(".");return t.assign(`${p.getCodeString(i,o)}.${f}`)}s(UM,"getAllOfZodSchema");function zM({schema:e,zodSchema:t}){if(!Jr(e))return;let r=e.type?e.type.toLowerCase():void 0;if(r&&Ss(r)){if(e.enum){if(r==="string"){if(e.enum.length===1){let n=e.enum[0],i=n===null?"null":`"${n}"`;return t.assign(`z.literal(${i})`)}return t.assign(`z.enum([${e.enum.map(n=>n===null?"null":`"${n}"`).join(", ")}])`)}if(e.enum.some(n=>typeof n=="string"))return t.assign("z.never()");if(e.enum.length===1){let n=e.enum[0];return t.assign(`z.literal(${n===null?"null":n})`)}return t.assign(`z.union([${e.enum.map(n=>`z.literal(${n===null?"null":n})`).join(", ")}])`)}return t.assign(St(r).with("integer",()=>"z.number()").with("string",()=>St(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(n=>`z.${n}()`))}}s(zM,"getPrimitiveZodSchema");function $s({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i,options:o}){var c;let a=t.getCodeString();if((!Lt(a)||t.ref===void 0)&&r){if(t.complexity<_h)return a;let l=Rn(r,o.schemaSuffix),p=l,f=1;for(;n.getCodeByZodSchemaName(p);){if((c=n.getZodSchemaNamesByDiscriminatorCode(a))!=null&&c.includes(p))return p;if(n.getCodeByZodSchemaName(p)===l)return p;f+=1,p=`${l}__${f}`}return n.setZodSchema(p,a,i),n.addZodSchemaForDiscriminatorCode(a,t,p,e),p}let u=n.getCodeByZodSchemaName(a);if(!u&&t.ref&&(u=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&u)return rt({current:0,schema:n.getSchemaByRef(t.ref)})<_h?n.getCodeByZodSchemaName(a):a;throw new Error("Invalid ref: "+t.ref)}s($s,"resolveZodSchemaName");function c2({resolver:e,operation:t,operationName:r,tag:n,options:i}){var h,y;let o=$e(t.requestBody)?e.getSchemaByRef(t.requestBody.$ref):t.requestBody,u=Object.keys(o.content??{}).find(ws);if(!u)return;let c=(y=(h=o.content)==null?void 0:h[u])==null?void 0:y.schema;if(!c)return;let l=Ue({schema:c,resolver:e,meta:{isRequired:o.required??!0},tag:n,options:i}),p=$e(c)?e.getSchemaByRef(c.$ref):c,f=$s({schema:p,zodSchema:l,fallbackName:X1(r),resolver:e,tag:n,options:i}),d=Dr({schema:p,meta:l.meta,options:i});return{endpointParameter:{name:"body",type:"Body",description:o.description,zodSchema:f+d,bodyObject:o},requestFormat:u}}s(c2,"getEndpointBody");function l2({resolver:e,param:t,operationName:r,tag:n,options:i}){let o=$e(t)?e.getSchemaByRef(t.$ref):t;if(!q1.includes(o.in))return;let a={};if(o.content){let f=Object.keys(o.content??{}),d=f.find(ws);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);i!=null&&i.withDescription&&a&&(a.description=(o.description??"").trim());let u=Ue({schema:a,resolver:e,meta:{isRequired:o.in==="path"?!0:o.required??!1},tag:n,options:i}),c=$e(a)?e.getSchemaByRef(a.$ref):a,l=Dr({schema:c,meta:u.meta,options:i}),p=$s({schema:c,zodSchema:u.assign(u.getCodeString(n,i)+l),fallbackName:e2(r,o.name),resolver:e,tag:n,options:i});return{name:St(o.in).with("path",()=>$h(o.name)).otherwise(()=>o.name),type:St(o.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:p,parameterObject:o}}s(l2,"getEndpointParameter");function p2({openApiDoc:e,resolver:t,options:r}){var i,o,a;let n=[];for(let u in e.paths){let c=e.paths[u],l=zu(c,Vu),p=f2(c.parameters??[]);for(let f in l){let d=l[f];if(!d||d.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let h=Object.entries({...p,...f2(d.parameters??[])}).map(([,$])=>$),y=Z1(u,f,d),v=Hu(d,r),g={method:f,path:Y1(u),operationName:y,description:d.description,tags:(i=d.tags)==null?void 0:i.map(yi),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(d.requestBody){let $=c2({resolver:t,operation:d,operationName:y,tag:v,options:r});$&&(g.parameters.push($.endpointParameter),g.requestFormat=$.requestFormat)}for(let $ of h){let A=l2({resolver:t,param:$,operationName:y,tag:v,options:r});A&&g.parameters.push(A)}for(let $ in d.responses){let A=$e(d.responses[$])?t.getSchemaByRef(d.responses[$].$ref):d.responses[$],C=Object.keys(A.content??{}).find(Bu),I,fe;if(C?(g.responseFormat=C,I=(a=(o=A.content)==null?void 0:o[C])==null?void 0:a.schema):fe=fh,I){let ne=Ue({schema:I,resolver:t,meta:{isRequired:!0},tag:v,options:r}),ot=$e(I)?t.getSchemaByRef(I.$ref):I;fe=$s({schema:ot,zodSchema:ne,fallbackName:ne.ref?void 0:GM($,g),resolver:t,tag:v,options:r})+Dr({schema:ot,meta:ne.meta,options:r})}if(fe){let ne=Number($);Ph(ne)?(g.response=fe,g.responseObject=A):$!=="default"&&Oh(ne)&&g.errors.push({zodSchema:fe,status:ne,description:A.description})}}g.response||(g.response=fh),n.push(g)}}return n}s(p2,"getEndpointsFromOpenAPIDoc");function GM(e,t){let r=Number(e);return(!Ph(r)||t.response)&&e!=="default"&&Oh(r)?r2(t.operationName,e):t2(t.operationName)}s(GM,"getResponseZodSchemaName");function f2(e){return Object.fromEntries((e??[]).map(t=>[$e(t)?t.$ref:t.name,t]))}s(f2,"getParameters");function d2({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){return Ps({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}),{visitedRefs:n,refsDependencyGraph:i}}s(d2,"getSchemaRefsDependencyGraph");function Ps({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}){if(!e)return;let o={fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i};if($e(e)){if(i[t]||(i[t]=new Set),i[t].add(e.$ref),n[e.$ref])return;n[t]=!0,Ps({...o,schema:r(e.$ref),fromRef:e.$ref});return}let a=["allOf","oneOf","anyOf"];for(let u of a)if(e[u])for(let c of e[u])Ps({...o,schema:c});if(!a.some(u=>e[u])){if(e.type==="array"){if(!e.items)return;Ps({...o,schema:e.items});return}if(e.type==="object"||e.properties||e.additionalProperties){if(e.properties)for(let u in e.properties)Ps({...o,schema:e.properties[u]});e.additionalProperties&&typeof e.additionalProperties=="object"&&Ps({...o,schema:e.additionalProperties})}}}s(Ps,"visit");function h2(e,t){let r=WM(e,t),n=KM(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s(h2,"getOpenAPISchemaDependencyGraph");function WM(e,t){let r={},n={};return e.forEach(i=>d2({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(WM,"getRefsDependencyGraph");function KM(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(KM,"getDeepRefsDependencyGraph");var Ah=class Ah{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=h2(this.schemaRefs,this.getSchemaByRef.bind(this)),this.intializeSchemaInfo(),this.initializeSchemaTags()}schemaData=[];zodSchemaData=[];discriminatorZodSchemaData=[];dependencyGraph;get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(H1)}getSchemaByRef(t){return this.docSchemas[wh(t)]}getZodSchemaNameByRef(t){return this.schemaData.find(r=>r.ref===Ho(t)).zodSchemaName}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var n,i;let r;if(this.options.splitByTags){let o=this.getRefByZodSchemaName(t),a=((n=this.schemaData.find(l=>l.ref===o))==null?void 0:n.tags)??[],u=((i=this.zodSchemaData.find(l=>l.zodSchemaName===t))==null?void 0:i.tags)??[],c=new Set([...a,...u]);r=c.size===1?c.values().next().value:this.options.defaultTag}return yi(r??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByDiscriminatorCode(t){var r;return(r=this.discriminatorZodSchemaData.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]})}addZodSchemaForDiscriminatorCode(t,r,n,i){let o={zodSchemaName:n,zodSchema:r,schema:i},a=this.discriminatorZodSchemaData.find(u=>u.code===t);a?a.zodSchemas.push(o):this.discriminatorZodSchemaData.push({code:t,zodSchemas:[o]})}getDiscriminatorZodSchemaByZodSchemaName(t){var n;let r=this.discriminatorZodSchemaData.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}getSchemaByDiscriminatorZodSchemaName(t){var r,n;return(n=(r=this.discriminatorZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}intializeSchemaInfo(){this.schemaRefs.forEach(t=>{let r=Ho(t),n=wh(r),i=Rn(n,this.options.schemaSuffix);this.schemaData.push({ref:r,name:n,zodSchemaName:i,tags:[]})})}initializeSchemaTags(){var r,n,i,o,a,u;let t=s(c=>(c==null?void 0:c.filter($e))??[],"filterRefObjs");for(let c in this.openApiDoc.paths){let l=this.openApiDoc.paths[c],p=zu(l,Vu);for(let f in p){let d=p[f];if(!d||d.deprecated&&!((r=this.options)!=null&&r.withDeprecatedEndpoints))continue;let h=[];if(h.push(...t((n=d.parameters)==null?void 0:n.map($=>$.schema))),d.requestBody){let $=$e(d.requestBody)?this.getSchemaByRef(d.requestBody.$ref):d.requestBody,k=Object.keys($.content??{}).find(ws);if(k){let C=(o=(i=$.content)==null?void 0:i[k])==null?void 0:o.schema;$e(C)&&h.push(C)}}for(let $ in d.responses){let A=$e(d.responses[$])?this.getSchemaByRef(d.responses[$].$ref):d.responses[$],C=Object.keys(A.content??{}).find(Bu);if(C){let I=(u=(a=A.content)==null?void 0:a[C])==null?void 0:u.schema;$e(I)&&h.push(I)}}let v=h.map($=>Ho($.$ref)).reduce(($,A)=>{let k=this.dependencyGraph.deepDependencyGraph[A];return[...$,A,...Array.from(k??[])]},[]),g=Hu(d,this.options);v.forEach($=>{let A=this.schemaData.find(k=>k.ref===$);A&&A.tags.push(g)})}}}};s(Ah,"SchemaResolver");var Wu=Ah;function m2({resolver:e,openApiDoc:t,options:r}){var i;let n={};return Object.entries(((i=t.components)==null?void 0:i.schemas)??{}).forEach(([o,a])=>{let u=Rn(o,r.schemaSuffix);if(!n[u]){let c=e.getTagByZodSchemaName(u);n[u]=Ue({schema:a,resolver:e,tag:c,options:r}).getCodeString(c,r)}}),n}s(m2,"getZodSchemasFromOpenAPIDoc");function g2(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(g2,"topologicalSort");function y2(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(y2,"sortObjKeysFromArray");function v2({resolver:e,zodSchemas:t}){let r=g2(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return y2(t,r)}s(v2,"sortZodSchemasByTopology");function b2({resolver:e,zodSchemas:t,options:r}){let n={};return Object.entries(t).forEach(([i,o])=>{var c;let a=e.getRefByZodSchemaName(i),u=a&&((c=e.dependencyGraph.deepDependencyGraph[a])==null?void 0:c.has(a));n[Rn(i,r.schemaSuffix)]=u?`z.lazy(() => ${o})`:o}),n}s(b2,"wrapCircularZodSchemas");function S2({openApiDoc:e,options:t}){let r=new Wu(e,t),n=p2({resolver:r,openApiDoc:e,options:t}),o={...m2({resolver:r,openApiDoc:e,options:t}),...r.getZodSchemas()};return o=b2({resolver:r,zodSchemas:o,options:t}),o=v2({resolver:r,zodSchemas:o}),{resolver:r,data:ZM({resolver:r,endpoints:n,zodSchemas:o,options:t})}}s(S2,"getDataFromOpenAPIDoc");function ZM({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=Go(o,n);_2(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let u=e.getTagByZodSchemaName(o);u&&(_2(u,i).zodSchemas[o]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(ZM,"splitDataByTags");function _2(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(_2,"getTagElement");function Os({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[],options:i}){let o="models",a=s(l=>e.getTagByZodSchemaName(l),"getTag"),u=Ch({type:o,tag:t,entities:r,getTag:a,getEntityName:s(l=>l,"getEntityName"),options:i}),c=Ch({type:o,tag:t,entities:n,getTag:a,getEntityName:s(l=>Uo(l,i),"getEntityName"),options:i});return YM(i,u,c)}s(Os,"getModelsImports");function w2({tag:e,endpoints:t,options:r}){return Ch({type:"endpoints",tag:e,entities:t,getTag:s(n=>Go(n,r),"getTag"),getEntityName:zo,options:r})}s(w2,"getEndpointsImports");function Ch({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?wt({type:e,tag:c,options:o}):i(u)],from:`${l?"./":"../"}${Uu({type:e,tag:c,includeTagDir:!l,options:o})}`})}}),Array.from(a.values())}s(Ch,"getImports");function YM(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())}s(YM,"mergeImports");var Om=Et(Oi());var Ms=Et(require("fs")),Sm=Et(require("path"));function wm(e){let t=`src/generators/templates/${e}.hbs`;return Ms.default.readFileSync(Sm.default.join(__dirname,`../${t}`),"utf-8")}s(wm,"readHbsTemplateSync");function d$({output:e,fileName:t,data:r}){B4(`${e}/${t}.ts`,r)}s(d$,"writeTsFileSync");function B4(e,t){let r=Sm.default.dirname(e);Ms.default.existsSync(r)||Ms.default.mkdirSync(r,{recursive:!0}),Ms.default.writeFileSync(e,t,"utf-8")}s(B4,"writeFileWithDirSync");var $m=Et(Oi());function h$(){H4(),U4()}s(h$,"registerCommonHbsHelpers");function H4(){$m.default.registerHelper("isEqual",(e,t)=>e===t)}s(H4,"registerIsEqualHelper");function U4(){$m.default.registerHelper("commaSeparated",e=>e.join(", "))}s(U4,"registerCommaSeparatedListHelper");var Nn=Et(Oi());function m$(e,t){z4(),G4(t),Z4(e,t),W4(),K4(),Y4(e,t),J4()}s(m$,"registerEndpointsHbsHelpers");function z4(){Nn.default.registerHelper("endpointName",zo)}s(z4,"registerEndpointNameHelper");function G4(e){Nn.default.registerHelper("importedEndpointName",t=>s2(t,e))}s(G4,"registerImportedEndpointNameHelper");function W4(){Nn.default.registerHelper("endpointPath",o2)}s(W4,"registerEndpointPathHelper");function K4(){Nn.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}s(K4,"registerEndpointBodyHelper");function Z4(e,t){Nn.default.registerHelper("endpointParams",r=>xh({resolver:e,endpoint:r,options:t}))}s(Z4,"registerEndpointParamsHelper");function Y4(e,t){Nn.default.registerHelper("endpointArgs",r=>xh({resolver:e,endpoint:r,options:t}).map(n=>n.name).join(", "))}s(Y4,"registerEndpointArgsHelper");function J4(){Nn.default.registerHelper("moreThanOneParameter",e=>e.parameters.length>1)}s(J4,"registerMoreThanOneParameterHelper");var Ts=Et(Oi());var Mn={query:"useQuery",mutation:"useMutation"},g$={bindings:[Mn.query,Mn.mutation],from:"@tanstack/react-query"};function y$(){Q4(),X4(),e8(),t8(),r8()}s(y$,"registerPartialsHbsHelpers");function Q4(){Ts.default.registerHelper("genImport",e=>qs("import")({import:e}))}s(Q4,"registerImportHelper");function X4(){Ts.default.registerHelper("genEndpointParams",e=>qs("endpoint-params")({endpoint:e}))}s(X4,"registerGenerateEndpointParamsHelper");function e8(){Ts.default.registerHelper("genEndpointConfig",e=>{let t=a2(e);return Object.keys(t).length===0?"":qs("endpoint-config")({endpointConfig:t})})}s(e8,"registerGenerateEndpointConfigHelper");function t8(){Ts.default.registerHelper("genQueryKeys",e=>e.length===0?"":qs("query-keys")({endpoints:e}))}s(t8,"registerGenerateQueryKeysHelper");function r8(){Ts.default.registerHelper("genQuery",e=>{let t,r;return e.method==="get"?(t="query-use-query",r=Mn.query):(t="query-use-mutation",r=Mn.mutation),qs(t)({endpoint:e,queryHook:r})})}s(r8,"registerGenerateQueryHelper");var b$=Et(Oi());var v$=s(e=>`use${Yr(br(e.operationName))}`,"getQueryName");function _$(){n8()}s(_$,"registerQueryHbsHelpers");function n8(){b$.default.registerHelper("queryName",v$)}s(n8,"registerQueryNameHelper");var Pm=Et(Oi());function S$(e,t){i8(t),s8(e,t)}s(S$,"registerZodHbsHelpers");function i8(e){Pm.default.registerHelper("zodInferedType",t=>Uo(t,e))}s(i8,"registerInferedTypeHelper");function s8(e,t){Pm.default.registerHelper("importedZodSchemaName",r=>n2({resolver:e,zodSchemaName:r,options:t}))}s(s8,"registerImportedZodSchemaNameHelper");function Ds({resolver:e,templateName:t,options:r}){let n=wm(t);return h$(),S$(e,r),m$(e,r),_$(),y$(),Om.default.compile(n)}s(Ds,"getHbsTemplateDelegate");function qs(e){let t=wm(`partials/${e}`);return Om.default.compile(t)}s(qs,"getHbsPartialTemplateDelegate");function w$({resolver:e,data:t,tag:r="",options:n}){var p;let i=(p=t.get(r))==null?void 0:p.endpoints;if(!i||i.length===0)return;let o=i.map(f=>f.response),a=o.some(f=>!Lt(f)),u=i.reduce((f,d)=>[...f,...d.parameters],[]),c=Os({resolver:e,tag:r,zodSchemas:Array.from(new Set(o.filter(Lt))),zodSchemasAsTypes:Array.from(new Set(u.map(f=>f.zodSchema).filter(Lt))),options:n});return Ds({resolver:e,templateName:"endpoints",options:n})({restClientImport:k1,hasZodImport:a,zodImport:Du,modelsImports:c,includeNamespace:n.includeNamespaces,namespace:wt({type:"endpoints",tag:r,options:n}),restClientName:dh,endpoints:i})}s(w$,"generateEndpoints");function $$({resolver:e,zodSchemaName:t}){let r=e.getRefByZodSchemaName(t);if(r)return Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(i=>e.getZodSchemaNameByRef(i));let n=e.getDiscriminatorZodSchemaByZodSchemaName(t);return n?Array.from(P$(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}s($$,"getZodSchemaRefs");function P$(e){return e.children.reduce((r,n)=>(n.ref&&r.add(n.ref),n.children.length>0&&P$(n).forEach(i=>r.add(i)),r),new Set)}s(P$,"getSchemaRefs");function O$({resolver:e,data:t,tag:r="",options:n}){var c;let i=(c=t.get(r))==null?void 0:c.zodSchemas;if(!i||Object.keys(i).length===0)return;let o=Object.keys(i).reduce((l,p)=>[...l,...$$({resolver:e,zodSchemaName:p})],[]).filter(l=>!i[l]),a=Os({resolver:e,tag:r,zodSchemas:o,options:n});return Ds({resolver:e,templateName:"models",options:n})({zodImport:Du,modelsImports:a,includeNamespace:n.includeNamespaces,namespace:wt({type:"models",tag:r,options:n}),zodSchemas:i})}s(O$,"generateModels");function x$({resolver:e,data:t,tag:r="",options:n}){var h;let i=(h=t.get(r))==null?void 0:h.endpoints;if(!i||i.length===0)return;let o=i.filter(y=>y.method==="get"),a=i.filter(y=>y.method!=="get"),u={...g$,bindings:[...o.length>0?[Mn.query]:[],...a.length>0?[Mn.mutation]:[]]},c=a.filter(y=>y.parameters.length>1),l=[...o,...c].reduce((y,v)=>[...y,...v.parameters],[]),p=Os({resolver:e,tag:r,zodSchemasAsTypes:Array.from(new Set(l.map(y=>y.zodSchema).filter(Lt))),options:n}),f=w2({tag:r,endpoints:i,options:n});return Ds({resolver:e,templateName:"queries",options:n})({queryImport:u,modelsImports:p,endpointsImports:f,includeNamespace:n.includeNamespaces,namespace:wt({type:"queries",tag:r,options:n}),endpoints:i,queryEndpoints:o})}s(x$,"generateQueries");function E$({openApiDoc:e,options:t}){let r={...j1,...t},{resolver:n,data:i}=S2({openApiDoc:e,options:r});i.forEach((o,a)=>{var l;((l=r.excludeTags)==null?void 0:l.findIndex(p=>p.toLocaleLowerCase()===a.toLocaleLowerCase()))===-1&&(xm({resolver:n,data:i,type:"models",tag:a,options:r}),xm({resolver:n,data:i,type:"endpoints",tag:a,options:r}),xm({resolver:n,data:i,type:"queries",tag:a,options:r}))})}s(E$,"generateCodeFromOpenAPIDoc");function xm({resolver:e,data:t,type:r,tag:n,options:i}){let o;switch(r){case"models":o=O$({resolver:e,data:t,tag:n,options:i});break;case"endpoints":o=w$({resolver:e,data:t,tag:n,options:i});break;case"queries":o=x$({resolver:e,data:t,tag:n,options:i});break}o&&d$({output:i.output,fileName:Uu({tag:n,type:r,options:i}),data:o})}s(xm,"generateCodeByType");async function I$({input:e,output:t,includeNamespaces:r,splitByTags:n,defaultTag:i,excludeTags:o,prettier:a,verbose:u}){u&&Ti(`Parsing OpenAPI spec from "${e}"`);let c=await A$.default.bundle(e);u&&Ti("Generating code from OpenAPI spec"),E$({openApiDoc:c,options:{output:t,includeNamespaces:r,splitByTags:n,defaultTag:i,excludeTags:o.split(",")}}),u&&bl("Generated code successfully"),a&&o8({output:t,verbose:u})}s(I$,"generate");function o8({output:e,verbose:t}){t&&Ti("Running Prettier"),(0,C$.exec)(`prettier --write ${e}`,r=>{t&&(r?Ks(r,"Prettier error"):bl("Ran Prettier successfully"))})}s(o8,"execPrettier");var Sr=class Sr{input;output;includeNamespaces;splitByTags;defaultTag;excludeTags;prettier;verbose};s(Sr,"GenerateOptions"),Vr([Hr({envAlias:"input",demandOption:!0})],Sr.prototype,"input",2),Vr([Hr({envAlias:"output",default:"output"})],Sr.prototype,"output",2),Vr([Hr({envAlias:"includeNamespaces",default:!0,type:"boolean"})],Sr.prototype,"includeNamespaces",2),Vr([Hr({envAlias:"splitByTags",default:!0,type:"boolean"})],Sr.prototype,"splitByTags",2),Vr([Hr({envAlias:"defaultTag",default:"Common"})],Sr.prototype,"defaultTag",2),Vr([Hr({envAlias:"excludeTags",default:""})],Sr.prototype,"excludeTags",2),Vr([Hr({envAlias:"prettier",default:!0,type:"boolean"})],Sr.prototype,"prettier",2),Vr([Hr({envAlias:"verbose",default:!1,type:"boolean"})],Sr.prototype,"verbose",2);var Em=Sr,R$={command:"generate",describe:"Generate code from OpenAPI spec",builder:Jg(Em),handler:s(async e=>{let t=await e;return t.verbose&&(Gg(`OpenAPI CodeGen ${ja()}`),vl("input",t.input),vl("output",t.output)),I$(t)},"handler")};kg(Bc(process.argv)).version(ja()||"unknown").scriptName("openapi-codegen").command(R$).help().demandCommand(1).strictCommands(!0).showHelpOnFail(!0).fail((e,t)=>{e&&Ks(e),t&&Ks(t),Ti("Use '--help' for more info"),process.exit(1)}).parse();
145
145
  /*! Bundled license information:
146
146
 
147
147
  reflect-metadata/Reflect.js: