@povio/openapi-codegen-cli 0.8.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sh.js CHANGED
@@ -1,66 +1,66 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var Tx=Object.create;var za=Object.defineProperty;var Mg=Object.getOwnPropertyDescriptor;var Rx=Object.getOwnPropertyNames;var Nx=Object.getPrototypeOf,jx=Object.prototype.hasOwnProperty;var o=(e,t)=>za(e,"name",{value:t,configurable:!0});var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Mx=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Rx(t))!jx.call(e,i)&&i!==r&&za(e,i,{get:()=>t[i],enumerable:!(n=Mg(t,i))||n.enumerable});return e};var mt=(e,t,r)=>(r=e!=null?Tx(Nx(e)):{},Mx(t||!e||!e.__esModule?za(r,"default",{value:e,enumerable:!0}):r,e));var De=(e,t,r,n)=>{for(var i=n>1?void 0:n?Mg(t,r):t,s=e.length-1,a;s>=0;s--)(a=e[s])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&za(t,r,i),i};var eb=v(()=>{var Xy;(function(e){(function(t){var r=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:c(),n=i(e);typeof r.Reflect<"u"&&(n=i(r.Reflect,n)),t(n,r),typeof r.Reflect>"u"&&(r.Reflect=e);function i(u,l){return function(p,f){Object.defineProperty(u,p,{configurable:!0,writable:!0,value:f}),l&&l(p,f)}}o(i,"makeExporter");function s(){try{return Function("return this;")()}catch{}}o(s,"functionThis");function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(a,"indirectEvalThis");function c(){return s()||a()}o(c,"sloppyModeThis")})(function(t,r){var n=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",s=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",u={__proto__:[]}instanceof Array,l=!c&&!u,p={create:c?function(){return Cl(Object.create(null))}:u?function(){return Cl({__proto__:null})}:function(){return Cl({})},has:l?function(S,x){return n.call(S,x)}:function(S,x){return x in S},get:l?function(S,x){return n.call(S,x)?S[x]:void 0}:function(S,x){return S[x]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:$x(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:wx(),y=typeof WeakMap=="function"?WeakMap:Ax(),b=i?Symbol.for("@reflect-metadata:registry"):void 0,g=tt(),E=ht(g);function $(S,x,A,j){if(K(A)){if(!qe(S))throw new TypeError;if(!Nt(x))throw new TypeError;return R(S,x)}else{if(!qe(S))throw new TypeError;if(!Ie(x))throw new TypeError;if(!Ie(j)&&!K(j)&&!Rt(j))throw new TypeError;return Rt(j)&&(j=void 0),A=_e(A),D(S,x,A,j)}}o($,"decorate"),t("decorate",$);function T(S,x){function A(j,Q){if(!Ie(j))throw new TypeError;if(!K(Q)&&!to(Q))throw new TypeError;ze(S,x,j,Q)}return o(A,"decorator"),A}o(T,"metadata"),t("metadata",T);function I(S,x,A,j){if(!Ie(A))throw new TypeError;return K(j)||(j=_e(j)),ze(S,x,A,j)}o(I,"defineMetadata"),t("defineMetadata",I);function C(S,x,A){if(!Ie(x))throw new TypeError;return K(A)||(A=_e(A)),Y(S,x,A)}o(C,"hasMetadata"),t("hasMetadata",C);function ae(S,x,A){if(!Ie(x))throw new TypeError;return K(A)||(A=_e(A)),ue(S,x,A)}o(ae,"hasOwnMetadata"),t("hasOwnMetadata",ae);function J(S,x,A){if(!Ie(x))throw new TypeError;return K(A)||(A=_e(A)),ve(S,x,A)}o(J,"getMetadata"),t("getMetadata",J);function Be(S,x,A){if(!Ie(x))throw new TypeError;return K(A)||(A=_e(A)),ge(S,x,A)}o(Be,"getOwnMetadata"),t("getOwnMetadata",Be);function xe(S,x){if(!Ie(S))throw new TypeError;return K(x)||(x=_e(x)),qr(S,x)}o(xe,"getMetadataKeys"),t("getMetadataKeys",xe);function X(S,x){if(!Ie(S))throw new TypeError;return K(x)||(x=_e(x)),we(S,x)}o(X,"getOwnMetadataKeys"),t("getOwnMetadataKeys",X);function M(S,x,A){if(!Ie(x))throw new TypeError;if(K(A)||(A=_e(A)),!Ie(x))throw new TypeError;K(A)||(A=_e(A));var j=ds(x,A,!1);return K(j)?!1:j.OrdinaryDeleteMetadata(S,x,A)}o(M,"deleteMetadata"),t("deleteMetadata",M);function R(S,x){for(var A=S.length-1;A>=0;--A){var j=S[A],Q=j(x);if(!K(Q)&&!Rt(Q)){if(!Nt(Q))throw new TypeError;x=Q}}return x}o(R,"DecorateConstructor");function D(S,x,A,j){for(var Q=S.length-1;Q>=0;--Q){var Qe=S[Q],ot=Qe(x,A,j);if(!K(ot)&&!Rt(ot)){if(!Ie(ot))throw new TypeError;j=ot}}return j}o(D,"DecorateProperty");function Y(S,x,A){var j=ue(S,x,A);if(j)return!0;var Q=k(x);return Rt(Q)?!1:Y(S,Q,A)}o(Y,"OrdinaryHasMetadata");function ue(S,x,A){var j=ds(x,A,!1);return K(j)?!1:Ce(j.OrdinaryHasOwnMetadata(S,x,A))}o(ue,"OrdinaryHasOwnMetadata");function ve(S,x,A){var j=ue(S,x,A);if(j)return ge(S,x,A);var Q=k(x);if(!Rt(Q))return ve(S,Q,A)}o(ve,"OrdinaryGetMetadata");function ge(S,x,A){var j=ds(x,A,!1);if(!K(j))return j.OrdinaryGetOwnMetadata(S,x,A)}o(ge,"OrdinaryGetOwnMetadata");function ze(S,x,A,j){var Q=ds(A,j,!0);Q.OrdinaryDefineOwnMetadata(S,x,A,j)}o(ze,"OrdinaryDefineOwnMetadata");function qr(S,x){var A=we(S,x),j=k(S);if(j===null)return A;var Q=qr(j,x);if(Q.length<=0)return A;if(A.length<=0)return Q;for(var Qe=new h,ot=[],de=0,q=A;de<q.length;de++){var L=q[de],B=Qe.has(L);B||(Qe.add(L),ot.push(L))}for(var G=0,me=Q;G<me.length;G++){var L=me[G],B=Qe.has(L);B||(Qe.add(L),ot.push(L))}return ot}o(qr,"OrdinaryMetadataKeys");function we(S,x){var A=ds(S,x,!1);return A?A.OrdinaryOwnMetadataKeys(S,x):[]}o(we,"OrdinaryOwnMetadataKeys");function rr(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}}o(rr,"Type");function K(S){return S===void 0}o(K,"IsUndefined");function Rt(S){return S===null}o(Rt,"IsNull");function re(S){return typeof S=="symbol"}o(re,"IsSymbol");function Ie(S){return typeof S=="object"?S!==null:typeof S=="function"}o(Ie,"IsObject");function ee(S,x){switch(rr(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 A=x===3?"string":x===5?"number":"default",j=P(S,s);if(j!==void 0){var Q=j.call(S,A);if(Ie(Q))throw new TypeError;return Q}return Ae(S,A==="default"?"number":A)}o(ee,"ToPrimitive");function Ae(S,x){if(x==="string"){var A=S.toString;if(ut(A)){var j=A.call(S);if(!Ie(j))return j}var Q=S.valueOf;if(ut(Q)){var j=Q.call(S);if(!Ie(j))return j}}else{var Q=S.valueOf;if(ut(Q)){var j=Q.call(S);if(!Ie(j))return j}var Qe=S.toString;if(ut(Qe)){var j=Qe.call(S);if(!Ie(j))return j}}throw new TypeError}o(Ae,"OrdinaryToPrimitive");function Ce(S){return!!S}o(Ce,"ToBoolean");function pe(S){return""+S}o(pe,"ToString");function _e(S){var x=ee(S,3);return re(x)?x:pe(x)}o(_e,"ToPropertyKey");function qe(S){return Array.isArray?Array.isArray(S):S instanceof Object?S instanceof Array:Object.prototype.toString.call(S)==="[object Array]"}o(qe,"IsArray");function ut(S){return typeof S=="function"}o(ut,"IsCallable");function Nt(S){return typeof S=="function"}o(Nt,"IsConstructor");function to(S){switch(rr(S)){case 3:return!0;case 4:return!0;default:return!1}}o(to,"IsPropertyKey");function _(S,x){return S===x||S!==S&&x!==x}o(_,"SameValueZero");function P(S,x){var A=S[x];if(A!=null){if(!ut(A))throw new TypeError;return A}}o(P,"GetMethod");function N(S){var x=P(S,a);if(!ut(x))throw new TypeError;var A=x.call(S);if(!Ie(A))throw new TypeError;return A}o(N,"GetIterator");function w(S){return S.value}o(w,"IteratorValue");function O(S){var x=S.next();return x.done?!1:x}o(O,"IteratorStep");function V(S){var x=S.return;x&&x.call(S)}o(V,"IteratorClose");function k(S){var x=Object.getPrototypeOf(S);if(typeof S!="function"||S===f||x!==f)return x;var A=S.prototype,j=A&&Object.getPrototypeOf(A);if(j==null||j===Object.prototype)return x;var Q=j.constructor;return typeof Q!="function"||Q===S?x:Q}o(k,"OrdinaryGetPrototypeOf");function z(){var S;!K(b)&&typeof r.Reflect<"u"&&!(b in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(S=xx(r.Reflect));var x,A,j,Q=new y,Qe={registerProvider:ot,getProvider:q,setProvider:B};return Qe;function ot(G){if(!Object.isExtensible(Qe))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===G:break;case K(x):x=G;break;case x===G:break;case K(A):A=G;break;case A===G:break;default:j===void 0&&(j=new h),j.add(G);break}}function de(G,me){if(!K(x)){if(x.isProviderFor(G,me))return x;if(!K(A)){if(A.isProviderFor(G,me))return x;if(!K(j))for(var Te=N(j);;){var Je=O(Te);if(!Je)return;var vr=w(Je);if(vr.isProviderFor(G,me))return V(Te),vr}}}if(!K(S)&&S.isProviderFor(G,me))return S}function q(G,me){var Te=Q.get(G),Je;return K(Te)||(Je=Te.get(me)),K(Je)&&(Je=de(G,me),K(Je)||(K(Te)&&(Te=new d,Q.set(G,Te)),Te.set(me,Je))),Je}function L(G){if(K(G))throw new TypeError;return x===G||A===G||!K(j)&&j.has(G)}function B(G,me,Te){if(!L(Te))throw new Error("Metadata provider not registered.");var Je=q(G,me);if(Je!==Te){if(!K(Je))return!1;var vr=Q.get(G);K(vr)&&(vr=new d,Q.set(G,vr)),vr.set(me,Te)}return!0}}o(z,"CreateMetadataRegistry");function tt(){var S;return!K(b)&&Ie(r.Reflect)&&Object.isExtensible(r.Reflect)&&(S=r.Reflect[b]),K(S)&&(S=z()),!K(b)&&Ie(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:S}),S}o(tt,"GetOrCreateMetadataRegistry");function ht(S){var x=new y,A={isProviderFor:o(function(L,B){var G=x.get(L);return K(G)?!1:G.has(B)},"isProviderFor"),OrdinaryDefineOwnMetadata:ot,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:Qe,OrdinaryOwnMetadataKeys:de,OrdinaryDeleteMetadata:q};return g.registerProvider(A),A;function j(L,B,G){var me=x.get(L),Te=!1;if(K(me)){if(!G)return;me=new d,x.set(L,me),Te=!0}var Je=me.get(B);if(K(Je)){if(!G)return;if(Je=new d,me.set(B,Je),!S.setProvider(L,B,A))throw me.delete(B),Te&&x.delete(L),new Error("Wrong provider for target.")}return Je}o(j,"GetOrCreateMetadataMap");function Q(L,B,G){var me=j(B,G,!1);return K(me)?!1:Ce(me.has(L))}o(Q,"OrdinaryHasOwnMetadata");function Qe(L,B,G){var me=j(B,G,!1);if(!K(me))return me.get(L)}o(Qe,"OrdinaryGetOwnMetadata");function ot(L,B,G,me){var Te=j(G,me,!0);Te.set(L,B)}o(ot,"OrdinaryDefineOwnMetadata");function de(L,B){var G=[],me=j(L,B,!1);if(K(me))return G;for(var Te=me.keys(),Je=N(Te),vr=0;;){var jg=O(Je);if(!jg)return G.length=vr,G;var Ix=w(jg);try{G[vr]=Ix}catch(Cx){try{V(Je)}finally{throw Cx}}vr++}}o(de,"OrdinaryOwnMetadataKeys");function q(L,B,G){var me=j(B,G,!1);if(K(me)||!me.delete(L))return!1;if(me.size===0){var Te=x.get(B);K(Te)||(Te.delete(G),Te.size===0&&x.delete(Te))}return!0}o(q,"OrdinaryDeleteMetadata")}o(ht,"CreateMetadataProvider");function xx(S){var x=S.defineMetadata,A=S.hasOwnMetadata,j=S.getOwnMetadata,Q=S.getOwnMetadataKeys,Qe=S.deleteMetadata,ot=new y,de={isProviderFor:o(function(q,L){var B=ot.get(q);return!K(B)&&B.has(L)?!0:Q(q,L).length?(K(B)&&(B=new h,ot.set(q,B)),B.add(L),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:x,OrdinaryHasOwnMetadata:A,OrdinaryGetOwnMetadata:j,OrdinaryOwnMetadataKeys:Q,OrdinaryDeleteMetadata:Qe};return de}o(xx,"CreateFallbackProvider");function ds(S,x,A){var j=g.getProvider(S,x);if(!K(j))return j;if(A){if(g.setProvider(S,x,E))return E;throw new Error("Illegal state.")}}o(ds,"GetMetadataProvider");function $x(){var S={},x=[],A=function(){function de(q,L,B){this._index=0,this._keys=q,this._values=L,this._selector=B}return o(de,"MapIterator"),de.prototype["@@iterator"]=function(){return this},de.prototype[a]=function(){return this},de.prototype.next=function(){var q=this._index;if(q>=0&&q<this._keys.length){var L=this._selector(this._keys[q],this._values[q]);return q+1>=this._keys.length?(this._index=-1,this._keys=x,this._values=x):this._index++,{value:L,done:!1}}return{value:void 0,done:!0}},de.prototype.throw=function(q){throw this._index>=0&&(this._index=-1,this._keys=x,this._values=x),q},de.prototype.return=function(q){return this._index>=0&&(this._index=-1,this._keys=x,this._values=x),{value:q,done:!0}},de}(),j=function(){function de(){this._keys=[],this._values=[],this._cacheKey=S,this._cacheIndex=-2}return o(de,"Map"),Object.defineProperty(de.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),de.prototype.has=function(q){return this._find(q,!1)>=0},de.prototype.get=function(q){var L=this._find(q,!1);return L>=0?this._values[L]:void 0},de.prototype.set=function(q,L){var B=this._find(q,!0);return this._values[B]=L,this},de.prototype.delete=function(q){var L=this._find(q,!1);if(L>=0){for(var B=this._keys.length,G=L+1;G<B;G++)this._keys[G-1]=this._keys[G],this._values[G-1]=this._values[G];return this._keys.length--,this._values.length--,_(q,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 A(this._keys,this._values,Q)},de.prototype.values=function(){return new A(this._keys,this._values,Qe)},de.prototype.entries=function(){return new A(this._keys,this._values,ot)},de.prototype["@@iterator"]=function(){return this.entries()},de.prototype[a]=function(){return this.entries()},de.prototype._find=function(q,L){if(!_(this._cacheKey,q)){this._cacheIndex=-1;for(var B=0;B<this._keys.length;B++)if(_(this._keys[B],q)){this._cacheIndex=B;break}}return this._cacheIndex<0&&L&&(this._cacheIndex=this._keys.length,this._keys.push(q),this._values.push(void 0)),this._cacheIndex},de}();return j;function Q(de,q){return de}function Qe(de,q){return q}function ot(de,q){return[de,q]}}o($x,"CreateMapPolyfill");function wx(){var S=function(){function x(){this._map=new d}return o(x,"Set"),Object.defineProperty(x.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),x.prototype.has=function(A){return this._map.has(A)},x.prototype.add=function(A){return this._map.set(A,A),this},x.prototype.delete=function(A){return this._map.delete(A)},x.prototype.clear=function(){this._map.clear()},x.prototype.keys=function(){return this._map.keys()},x.prototype.values=function(){return this._map.keys()},x.prototype.entries=function(){return this._map.entries()},x.prototype["@@iterator"]=function(){return this.keys()},x.prototype[a]=function(){return this.keys()},x}();return S}o(wx,"CreateSetPolyfill");function Ax(){var S=16,x=p.create(),A=j();return function(){function q(){this._key=j()}return o(q,"WeakMap"),q.prototype.has=function(L){var B=Q(L,!1);return B!==void 0?p.has(B,this._key):!1},q.prototype.get=function(L){var B=Q(L,!1);return B!==void 0?p.get(B,this._key):void 0},q.prototype.set=function(L,B){var G=Q(L,!0);return G[this._key]=B,this},q.prototype.delete=function(L){var B=Q(L,!1);return B!==void 0?delete B[this._key]:!1},q.prototype.clear=function(){this._key=j()},q}();function j(){var q;do q="@@WeakMap@@"+de();while(p.has(x,q));return x[q]=!0,q}function Q(q,L){if(!n.call(q,A)){if(!L)return;Object.defineProperty(q,A,{value:p.create()})}return q[A]}function Qe(q,L){for(var B=0;B<L;++B)q[B]=Math.random()*255|0;return q}function ot(q){if(typeof Uint8Array=="function"){var L=new Uint8Array(q);return typeof crypto<"u"?crypto.getRandomValues(L):typeof msCrypto<"u"?msCrypto.getRandomValues(L):Qe(L,q),L}return Qe(new Array(q),q)}function de(){var q=ot(S);q[6]=q[6]&79|64,q[8]=q[8]&191|128;for(var L="",B=0;B<S;++B){var G=q[B];(B===4||B===6||B===8)&&(L+="-"),G<16&&(L+="0"),L+=G.toString(16).toLowerCase()}return L}}o(Ax,"CreateWeakMapPolyfill");function Cl(S){return S.__=void 0,delete S.__,S}o(Cl,"MakeDictionary")})})(Xy||(Xy={}))});var Gt=v((Ut,nb)=>{"use strict";var _c=/^win/.test(process.platform),x$=/\//g,$$=/^(\w{2,}):\/\//i,rb=nb.exports,w$=/~1/g,A$=/~0/g,_f=[/\?/g,"%3F",/\#/g,"%23"],Sf=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Ut.parse=require("url").parse;Ut.resolve=require("url").resolve;Ut.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Ut.getProtocol=o(function(t){let r=$$.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Ut.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Ut.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Ut.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Ut.isHttp=o(function(t){let r=rb.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Ut.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=rb.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Ut.fromFileSystemPath=o(function(t){_c&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<_f.length;r+=2)t=t.replace(_f[r],_f[r+1]);return t},"fromFileSystemPath");Ut.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<Sf.length;i+=2)t=t.replace(Sf[i],Sf[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),_c&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=_c?t:"/"+t)),_c&&!n&&(t=t.replace(x$,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Ut.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(w$,"/").replace(A$,"~"))},"safePointerToPath")});var Sc=v(Es=>{"use strict";var ib=require("util"),I$=Gt();Es.format=ib.format;Es.inherits=ib.inherits;Es.swaggerParamRegExp=/\{([^/}]+)}/g;var C$=["get","post","put","delete","patch","options","head","trace"];function Of(e,t){if(e.url&&e.url.startsWith("/")){let r=I$.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(Of,"fixServers");function T$(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>Of(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(s=>{s==="servers"?i[s].map(a=>Of(a,t)):C$.includes(s)&&i[s].servers&&i[s].servers.map(a=>Of(a,t))})})}))}o(T$,"fixOasRelativeServers");Es.fixOasRelativeServers=T$});var Oc=v(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.getDeepKeys=po.toJSON=void 0;var R$=["function","symbol","undefined"],N$=["constructor","prototype","__proto__"],j$=Object.getPrototypeOf({});function M$(){let e={},t=this;for(let r of ob(t))if(typeof r=="string"){let n=t[r],i=typeof n;R$.includes(i)||(e[r]=n)}return e}o(M$,"toJSON");po.toJSON=M$;function ob(e,t=[]){let r=[];for(;e&&e!==j$;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(N$))n.delete(i);return n}o(ob,"getDeepKeys");po.getDeepKeys=ob});var Pf=v(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.addInspectMethod=ho.format=void 0;var sb=require("util"),k$=Oc(),ab=sb.inspect.custom||Symbol.for("nodejs.util.inspect.custom");ho.format=sb.format;function q$(e){e[ab]=D$}o(q$,"addInspectMethod");ho.addInspectMethod=q$;function D$(){let e={},t=this;for(let r of k$.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[ab],e}o(D$,"inspect")});var lb=v(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.lazyJoinStacks=Vr.joinStacks=Vr.isWritableStack=Vr.isLazyStack=void 0;var L$=/\r?\n/,F$=/\bono[ @]/;function V$(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(V$,"isLazyStack");Vr.isLazyStack=V$;function H$(e){return!!(!e||e.writable||typeof e.set=="function")}o(H$,"isWritableStack");Vr.isWritableStack=H$;function cb(e,t){let r=ub(e.stack),n=t?t.stack:void 0;return r&&n?r+`
2
+ "use strict";var D2=Object.create;var Ka=Object.defineProperty;var Lg=Object.getOwnPropertyDescriptor;var L2=Object.getOwnPropertyNames;var F2=Object.getPrototypeOf,V2=Object.prototype.hasOwnProperty;var o=(e,t)=>Ka(e,"name",{value:t,configurable:!0});var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var H2=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of L2(t))!V2.call(e,i)&&i!==r&&Ka(e,i,{get:()=>t[i],enumerable:!(n=Lg(t,i))||n.enumerable});return e};var mt=(e,t,r)=>(r=e!=null?D2(F2(e)):{},H2(t||!e||!e.__esModule?Ka(r,"default",{value:e,enumerable:!0}):r,e));var De=(e,t,r,n)=>{for(var i=n>1?void 0:n?Lg(t,r):t,s=e.length-1,a;s>=0;s--)(a=e[s])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&Ka(t,r,i),i};var ib=v(()=>{var nb;(function(e){(function(t){var r=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:c(),n=i(e);typeof r.Reflect<"u"&&(n=i(r.Reflect,n)),t(n,r),typeof r.Reflect>"u"&&(r.Reflect=e);function i(u,l){return function(p,f){Object.defineProperty(u,p,{configurable:!0,writable:!0,value:f}),l&&l(p,f)}}o(i,"makeExporter");function s(){try{return Function("return this;")()}catch{}}o(s,"functionThis");function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(a,"indirectEvalThis");function c(){return s()||a()}o(c,"sloppyModeThis")})(function(t,r){var n=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",s=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",u={__proto__:[]}instanceof Array,l=!c&&!u,p={create:c?function(){return jl(Object.create(null))}:u?function(){return jl({__proto__:null})}:function(){return jl({})},has:l?function(S,x){return n.call(S,x)}:function(S,x){return x in S},get:l?function(S,x){return n.call(S,x)?S[x]:void 0}:function(S,x){return S[x]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:R2(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:j2(),y=typeof WeakMap=="function"?WeakMap:M2(),b=i?Symbol.for("@reflect-metadata:registry"):void 0,m=tt(),P=ht(m);function $(S,x,A,j){if(K(A)){if(!qe(S))throw new TypeError;if(!jt(x))throw new TypeError;return N(S,x)}else{if(!qe(S))throw new TypeError;if(!Ie(x))throw new TypeError;if(!Ie(j)&&!K(j)&&!Rt(j))throw new TypeError;return Rt(j)&&(j=void 0),A=_e(A),D(S,x,A,j)}}o($,"decorate"),t("decorate",$);function T(S,x){function A(j,Q){if(!Ie(j))throw new TypeError;if(!K(Q)&&!ro(Q))throw new TypeError;ze(S,x,j,Q)}return o(A,"decorator"),A}o(T,"metadata"),t("metadata",T);function I(S,x,A,j){if(!Ie(A))throw new TypeError;return K(j)||(j=_e(j)),ze(S,x,A,j)}o(I,"defineMetadata"),t("defineMetadata",I);function C(S,x,A){if(!Ie(x))throw new TypeError;return K(A)||(A=_e(A)),Y(S,x,A)}o(C,"hasMetadata"),t("hasMetadata",C);function ae(S,x,A){if(!Ie(x))throw new TypeError;return K(A)||(A=_e(A)),ue(S,x,A)}o(ae,"hasOwnMetadata"),t("hasOwnMetadata",ae);function J(S,x,A){if(!Ie(x))throw new TypeError;return K(A)||(A=_e(A)),ve(S,x,A)}o(J,"getMetadata"),t("getMetadata",J);function Be(S,x,A){if(!Ie(x))throw new TypeError;return K(A)||(A=_e(A)),ge(S,x,A)}o(Be,"getOwnMetadata"),t("getOwnMetadata",Be);function xe(S,x){if(!Ie(S))throw new TypeError;return K(x)||(x=_e(x)),qr(S,x)}o(xe,"getMetadataKeys"),t("getMetadataKeys",xe);function X(S,x){if(!Ie(S))throw new TypeError;return K(x)||(x=_e(x)),we(S,x)}o(X,"getOwnMetadataKeys"),t("getOwnMetadataKeys",X);function M(S,x,A){if(!Ie(x))throw new TypeError;if(K(A)||(A=_e(A)),!Ie(x))throw new TypeError;K(A)||(A=_e(A));var j=hs(x,A,!1);return K(j)?!1:j.OrdinaryDeleteMetadata(S,x,A)}o(M,"deleteMetadata"),t("deleteMetadata",M);function N(S,x){for(var A=S.length-1;A>=0;--A){var j=S[A],Q=j(x);if(!K(Q)&&!Rt(Q)){if(!jt(Q))throw new TypeError;x=Q}}return x}o(N,"DecorateConstructor");function D(S,x,A,j){for(var Q=S.length-1;Q>=0;--Q){var Qe=S[Q],ot=Qe(x,A,j);if(!K(ot)&&!Rt(ot)){if(!Ie(ot))throw new TypeError;j=ot}}return j}o(D,"DecorateProperty");function Y(S,x,A){var j=ue(S,x,A);if(j)return!0;var Q=k(x);return Rt(Q)?!1:Y(S,Q,A)}o(Y,"OrdinaryHasMetadata");function ue(S,x,A){var j=hs(x,A,!1);return K(j)?!1:Ce(j.OrdinaryHasOwnMetadata(S,x,A))}o(ue,"OrdinaryHasOwnMetadata");function ve(S,x,A){var j=ue(S,x,A);if(j)return ge(S,x,A);var Q=k(x);if(!Rt(Q))return ve(S,Q,A)}o(ve,"OrdinaryGetMetadata");function ge(S,x,A){var j=hs(x,A,!1);if(!K(j))return j.OrdinaryGetOwnMetadata(S,x,A)}o(ge,"OrdinaryGetOwnMetadata");function ze(S,x,A,j){var Q=hs(A,j,!0);Q.OrdinaryDefineOwnMetadata(S,x,A,j)}o(ze,"OrdinaryDefineOwnMetadata");function qr(S,x){var A=we(S,x),j=k(S);if(j===null)return A;var Q=qr(j,x);if(Q.length<=0)return A;if(A.length<=0)return Q;for(var Qe=new h,ot=[],de=0,q=A;de<q.length;de++){var L=q[de],B=Qe.has(L);B||(Qe.add(L),ot.push(L))}for(var G=0,me=Q;G<me.length;G++){var L=me[G],B=Qe.has(L);B||(Qe.add(L),ot.push(L))}return ot}o(qr,"OrdinaryMetadataKeys");function we(S,x){var A=hs(S,x,!1);return A?A.OrdinaryOwnMetadataKeys(S,x):[]}o(we,"OrdinaryOwnMetadataKeys");function rr(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}}o(rr,"Type");function K(S){return S===void 0}o(K,"IsUndefined");function Rt(S){return S===null}o(Rt,"IsNull");function re(S){return typeof S=="symbol"}o(re,"IsSymbol");function Ie(S){return typeof S=="object"?S!==null:typeof S=="function"}o(Ie,"IsObject");function ee(S,x){switch(rr(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 A=x===3?"string":x===5?"number":"default",j=E(S,s);if(j!==void 0){var Q=j.call(S,A);if(Ie(Q))throw new TypeError;return Q}return Ae(S,A==="default"?"number":A)}o(ee,"ToPrimitive");function Ae(S,x){if(x==="string"){var A=S.toString;if(ut(A)){var j=A.call(S);if(!Ie(j))return j}var Q=S.valueOf;if(ut(Q)){var j=Q.call(S);if(!Ie(j))return j}}else{var Q=S.valueOf;if(ut(Q)){var j=Q.call(S);if(!Ie(j))return j}var Qe=S.toString;if(ut(Qe)){var j=Qe.call(S);if(!Ie(j))return j}}throw new TypeError}o(Ae,"OrdinaryToPrimitive");function Ce(S){return!!S}o(Ce,"ToBoolean");function pe(S){return""+S}o(pe,"ToString");function _e(S){var x=ee(S,3);return re(x)?x:pe(x)}o(_e,"ToPropertyKey");function qe(S){return Array.isArray?Array.isArray(S):S instanceof Object?S instanceof Array:Object.prototype.toString.call(S)==="[object Array]"}o(qe,"IsArray");function ut(S){return typeof S=="function"}o(ut,"IsCallable");function jt(S){return typeof S=="function"}o(jt,"IsConstructor");function ro(S){switch(rr(S)){case 3:return!0;case 4:return!0;default:return!1}}o(ro,"IsPropertyKey");function _(S,x){return S===x||S!==S&&x!==x}o(_,"SameValueZero");function E(S,x){var A=S[x];if(A!=null){if(!ut(A))throw new TypeError;return A}}o(E,"GetMethod");function R(S){var x=E(S,a);if(!ut(x))throw new TypeError;var A=x.call(S);if(!Ie(A))throw new TypeError;return A}o(R,"GetIterator");function w(S){return S.value}o(w,"IteratorValue");function O(S){var x=S.next();return x.done?!1:x}o(O,"IteratorStep");function V(S){var x=S.return;x&&x.call(S)}o(V,"IteratorClose");function k(S){var x=Object.getPrototypeOf(S);if(typeof S!="function"||S===f||x!==f)return x;var A=S.prototype,j=A&&Object.getPrototypeOf(A);if(j==null||j===Object.prototype)return x;var Q=j.constructor;return typeof Q!="function"||Q===S?x:Q}o(k,"OrdinaryGetPrototypeOf");function z(){var S;!K(b)&&typeof r.Reflect<"u"&&!(b in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(S=N2(r.Reflect));var x,A,j,Q=new y,Qe={registerProvider:ot,getProvider:q,setProvider:B};return Qe;function ot(G){if(!Object.isExtensible(Qe))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===G:break;case K(x):x=G;break;case x===G:break;case K(A):A=G;break;case A===G:break;default:j===void 0&&(j=new h),j.add(G);break}}function de(G,me){if(!K(x)){if(x.isProviderFor(G,me))return x;if(!K(A)){if(A.isProviderFor(G,me))return x;if(!K(j))for(var Te=R(j);;){var Je=O(Te);if(!Je)return;var vr=w(Je);if(vr.isProviderFor(G,me))return V(Te),vr}}}if(!K(S)&&S.isProviderFor(G,me))return S}function q(G,me){var Te=Q.get(G),Je;return K(Te)||(Je=Te.get(me)),K(Je)&&(Je=de(G,me),K(Je)||(K(Te)&&(Te=new d,Q.set(G,Te)),Te.set(me,Je))),Je}function L(G){if(K(G))throw new TypeError;return x===G||A===G||!K(j)&&j.has(G)}function B(G,me,Te){if(!L(Te))throw new Error("Metadata provider not registered.");var Je=q(G,me);if(Je!==Te){if(!K(Je))return!1;var vr=Q.get(G);K(vr)&&(vr=new d,Q.set(G,vr)),vr.set(me,Te)}return!0}}o(z,"CreateMetadataRegistry");function tt(){var S;return!K(b)&&Ie(r.Reflect)&&Object.isExtensible(r.Reflect)&&(S=r.Reflect[b]),K(S)&&(S=z()),!K(b)&&Ie(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:S}),S}o(tt,"GetOrCreateMetadataRegistry");function ht(S){var x=new y,A={isProviderFor:o(function(L,B){var G=x.get(L);return K(G)?!1:G.has(B)},"isProviderFor"),OrdinaryDefineOwnMetadata:ot,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:Qe,OrdinaryOwnMetadataKeys:de,OrdinaryDeleteMetadata:q};return m.registerProvider(A),A;function j(L,B,G){var me=x.get(L),Te=!1;if(K(me)){if(!G)return;me=new d,x.set(L,me),Te=!0}var Je=me.get(B);if(K(Je)){if(!G)return;if(Je=new d,me.set(B,Je),!S.setProvider(L,B,A))throw me.delete(B),Te&&x.delete(L),new Error("Wrong provider for target.")}return Je}o(j,"GetOrCreateMetadataMap");function Q(L,B,G){var me=j(B,G,!1);return K(me)?!1:Ce(me.has(L))}o(Q,"OrdinaryHasOwnMetadata");function Qe(L,B,G){var me=j(B,G,!1);if(!K(me))return me.get(L)}o(Qe,"OrdinaryGetOwnMetadata");function ot(L,B,G,me){var Te=j(G,me,!0);Te.set(L,B)}o(ot,"OrdinaryDefineOwnMetadata");function de(L,B){var G=[],me=j(L,B,!1);if(K(me))return G;for(var Te=me.keys(),Je=R(Te),vr=0;;){var Dg=O(Je);if(!Dg)return G.length=vr,G;var k2=w(Dg);try{G[vr]=k2}catch(q2){try{V(Je)}finally{throw q2}}vr++}}o(de,"OrdinaryOwnMetadataKeys");function q(L,B,G){var me=j(B,G,!1);if(K(me)||!me.delete(L))return!1;if(me.size===0){var Te=x.get(B);K(Te)||(Te.delete(G),Te.size===0&&x.delete(Te))}return!0}o(q,"OrdinaryDeleteMetadata")}o(ht,"CreateMetadataProvider");function N2(S){var x=S.defineMetadata,A=S.hasOwnMetadata,j=S.getOwnMetadata,Q=S.getOwnMetadataKeys,Qe=S.deleteMetadata,ot=new y,de={isProviderFor:o(function(q,L){var B=ot.get(q);return!K(B)&&B.has(L)?!0:Q(q,L).length?(K(B)&&(B=new h,ot.set(q,B)),B.add(L),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:x,OrdinaryHasOwnMetadata:A,OrdinaryGetOwnMetadata:j,OrdinaryOwnMetadataKeys:Q,OrdinaryDeleteMetadata:Qe};return de}o(N2,"CreateFallbackProvider");function hs(S,x,A){var j=m.getProvider(S,x);if(!K(j))return j;if(A){if(m.setProvider(S,x,P))return P;throw new Error("Illegal state.")}}o(hs,"GetMetadataProvider");function R2(){var S={},x=[],A=function(){function de(q,L,B){this._index=0,this._keys=q,this._values=L,this._selector=B}return o(de,"MapIterator"),de.prototype["@@iterator"]=function(){return this},de.prototype[a]=function(){return this},de.prototype.next=function(){var q=this._index;if(q>=0&&q<this._keys.length){var L=this._selector(this._keys[q],this._values[q]);return q+1>=this._keys.length?(this._index=-1,this._keys=x,this._values=x):this._index++,{value:L,done:!1}}return{value:void 0,done:!0}},de.prototype.throw=function(q){throw this._index>=0&&(this._index=-1,this._keys=x,this._values=x),q},de.prototype.return=function(q){return this._index>=0&&(this._index=-1,this._keys=x,this._values=x),{value:q,done:!0}},de}(),j=function(){function de(){this._keys=[],this._values=[],this._cacheKey=S,this._cacheIndex=-2}return o(de,"Map"),Object.defineProperty(de.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),de.prototype.has=function(q){return this._find(q,!1)>=0},de.prototype.get=function(q){var L=this._find(q,!1);return L>=0?this._values[L]:void 0},de.prototype.set=function(q,L){var B=this._find(q,!0);return this._values[B]=L,this},de.prototype.delete=function(q){var L=this._find(q,!1);if(L>=0){for(var B=this._keys.length,G=L+1;G<B;G++)this._keys[G-1]=this._keys[G],this._values[G-1]=this._values[G];return this._keys.length--,this._values.length--,_(q,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 A(this._keys,this._values,Q)},de.prototype.values=function(){return new A(this._keys,this._values,Qe)},de.prototype.entries=function(){return new A(this._keys,this._values,ot)},de.prototype["@@iterator"]=function(){return this.entries()},de.prototype[a]=function(){return this.entries()},de.prototype._find=function(q,L){if(!_(this._cacheKey,q)){this._cacheIndex=-1;for(var B=0;B<this._keys.length;B++)if(_(this._keys[B],q)){this._cacheIndex=B;break}}return this._cacheIndex<0&&L&&(this._cacheIndex=this._keys.length,this._keys.push(q),this._values.push(void 0)),this._cacheIndex},de}();return j;function Q(de,q){return de}function Qe(de,q){return q}function ot(de,q){return[de,q]}}o(R2,"CreateMapPolyfill");function j2(){var S=function(){function x(){this._map=new d}return o(x,"Set"),Object.defineProperty(x.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),x.prototype.has=function(A){return this._map.has(A)},x.prototype.add=function(A){return this._map.set(A,A),this},x.prototype.delete=function(A){return this._map.delete(A)},x.prototype.clear=function(){this._map.clear()},x.prototype.keys=function(){return this._map.keys()},x.prototype.values=function(){return this._map.keys()},x.prototype.entries=function(){return this._map.entries()},x.prototype["@@iterator"]=function(){return this.keys()},x.prototype[a]=function(){return this.keys()},x}();return S}o(j2,"CreateSetPolyfill");function M2(){var S=16,x=p.create(),A=j();return function(){function q(){this._key=j()}return o(q,"WeakMap"),q.prototype.has=function(L){var B=Q(L,!1);return B!==void 0?p.has(B,this._key):!1},q.prototype.get=function(L){var B=Q(L,!1);return B!==void 0?p.get(B,this._key):void 0},q.prototype.set=function(L,B){var G=Q(L,!0);return G[this._key]=B,this},q.prototype.delete=function(L){var B=Q(L,!1);return B!==void 0?delete B[this._key]:!1},q.prototype.clear=function(){this._key=j()},q}();function j(){var q;do q="@@WeakMap@@"+de();while(p.has(x,q));return x[q]=!0,q}function Q(q,L){if(!n.call(q,A)){if(!L)return;Object.defineProperty(q,A,{value:p.create()})}return q[A]}function Qe(q,L){for(var B=0;B<L;++B)q[B]=Math.random()*255|0;return q}function ot(q){if(typeof Uint8Array=="function"){var L=new Uint8Array(q);return typeof crypto<"u"?crypto.getRandomValues(L):typeof msCrypto<"u"?msCrypto.getRandomValues(L):Qe(L,q),L}return Qe(new Array(q),q)}function de(){var q=ot(S);q[6]=q[6]&79|64,q[8]=q[8]&191|128;for(var L="",B=0;B<S;++B){var G=q[B];(B===4||B===6||B===8)&&(L+="-"),G<16&&(L+="0"),L+=G.toString(16).toLowerCase()}return L}}o(M2,"CreateWeakMapPolyfill");function jl(S){return S.__=void 0,delete S.__,S}o(jl,"MakeDictionary")})})(nb||(nb={}))});var Wt=v((Zt,ab)=>{"use strict";var Ec=/^win/.test(process.platform),N$=/\//g,R$=/^(\w{2,}):\/\//i,sb=ab.exports,j$=/~1/g,M$=/~0/g,Pf=[/\?/g,"%3F",/\#/g,"%23"],xf=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Zt.parse=require("url").parse;Zt.resolve=require("url").resolve;Zt.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Zt.getProtocol=o(function(t){let r=R$.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Zt.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Zt.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Zt.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Zt.isHttp=o(function(t){let r=sb.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Zt.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=sb.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Zt.fromFileSystemPath=o(function(t){Ec&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<Pf.length;r+=2)t=t.replace(Pf[r],Pf[r+1]);return t},"fromFileSystemPath");Zt.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<xf.length;i+=2)t=t.replace(xf[i],xf[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),Ec&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=Ec?t:"/"+t)),Ec&&!n&&(t=t.replace(N$,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Zt.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(j$,"/").replace(M$,"~"))},"safePointerToPath")});var Pc=v(xs=>{"use strict";var cb=require("util"),k$=Wt();xs.format=cb.format;xs.inherits=cb.inherits;xs.swaggerParamRegExp=/\{([^/}]+)}/g;var q$=["get","post","put","delete","patch","options","head","trace"];function $f(e,t){if(e.url&&e.url.startsWith("/")){let r=k$.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o($f,"fixServers");function D$(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>$f(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(s=>{s==="servers"?i[s].map(a=>$f(a,t)):q$.includes(s)&&i[s].servers&&i[s].servers.map(a=>$f(a,t))})})}))}o(D$,"fixOasRelativeServers");xs.fixOasRelativeServers=D$});var xc=v(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.getDeepKeys=ho.toJSON=void 0;var L$=["function","symbol","undefined"],F$=["constructor","prototype","__proto__"],V$=Object.getPrototypeOf({});function H$(){let e={},t=this;for(let r of ub(t))if(typeof r=="string"){let n=t[r],i=typeof n;L$.includes(i)||(e[r]=n)}return e}o(H$,"toJSON");ho.toJSON=H$;function ub(e,t=[]){let r=[];for(;e&&e!==V$;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(F$))n.delete(i);return n}o(ub,"getDeepKeys");ho.getDeepKeys=ub});var wf=v(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.addInspectMethod=mo.format=void 0;var lb=require("util"),B$=xc(),fb=lb.inspect.custom||Symbol.for("nodejs.util.inspect.custom");mo.format=lb.format;function U$(e){e[fb]=G$}o(U$,"addInspectMethod");mo.addInspectMethod=U$;function G$(){let e={},t=this;for(let r of B$.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[fb],e}o(G$,"inspect")});var hb=v(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.lazyJoinStacks=Vr.joinStacks=Vr.isWritableStack=Vr.isLazyStack=void 0;var z$=/\r?\n/,Z$=/\bono[ @]/;function W$(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(W$,"isLazyStack");Vr.isLazyStack=W$;function K$(e){return!!(!e||e.writable||typeof e.set=="function")}o(K$,"isWritableStack");Vr.isWritableStack=K$;function pb(e,t){let r=db(e.stack),n=t?t.stack:void 0;return r&&n?r+`
3
3
 
4
- `+n:r||n}o(cb,"joinStacks");Vr.joinStacks=cb;function B$(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return cb({stack:n},r)},"get"),enumerable:!1,configurable:!0}):U$(t,e)}o(B$,"lazyJoinStacks");Vr.lazyJoinStacks=B$;function ub(e){if(e){let t=e.split(L$),r;for(let n=0;n<t.length;n++){let i=t[n];if(F$.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
- `)}return e}o(ub,"popStack");function U$(e,t){Object.defineProperty(e,"stack",{get:o(()=>ub(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(U$,"lazyPopStack")});var db=v(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.extendError=void 0;var fb=Pf(),Pc=lb(),pb=Oc(),G$=["name","message","stack"];function z$(e,t,r){let n=e;return Z$(n,t),t&&typeof t=="object"&&W$(n,t),n.toJSON=pb.toJSON,fb.addInspectMethod&&fb.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(z$,"extendError");Ec.extendError=z$;function Z$(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");Pc.isLazyStack(r)?Pc.lazyJoinStacks(r,e,t):Pc.isWritableStack(r)&&(e.stack=Pc.joinStacks(e,t))}o(Z$,"extendStack");function W$(e,t){let r=pb.getDeepKeys(t,G$),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o(W$,"mergeErrors")});var hb=v(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.normalizeArgs=mo.normalizeOptions=void 0;var K$=Pf();function Y$(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?K$.format:typeof e.format=="function"?e.format:!1}}o(Y$,"normalizeOptions");mo.normalizeOptions=Y$;function Q$(e,t){let r,n,i,s="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?s=t.format.apply(void 0,i):s=i.join(" ")),t.concatMessages&&r&&r.message&&(s+=(s?`
6
- `:"")+r.message),{originalError:r,props:n,message:s}}o(Q$,"normalizeArgs");mo.normalizeArgs=Q$});var xf=v($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.Ono=void 0;var xc=db(),mb=hb(),J$=Oc(),X$=Ef;$c.Ono=X$;function Ef(e,t){t=mb.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=mb.normalizeArgs(n,t),c=new e(a);return xc.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(Ef,"Ono");Ef.toJSON=o(function(t){return J$.toJSON.call(t)},"toJSON");Ef.extend=o(function(t,r,n){return n||r instanceof Error?xc.extendError(t,r,n):r?xc.extendError(t,void 0,r):xc.extendError(t)},"extend")});var gb=v(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});wc.ono=void 0;var Si=xf(),ew=Hr;wc.ono=ew;Hr.error=new Si.Ono(Error);Hr.eval=new Si.Ono(EvalError);Hr.range=new Si.Ono(RangeError);Hr.reference=new Si.Ono(ReferenceError);Hr.syntax=new Si.Ono(SyntaxError);Hr.type=new Si.Ono(TypeError);Hr.uri=new Si.Ono(URIError);var tw=Hr;function Hr(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(tw))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 Hr.error.apply(void 0,e)}o(Hr,"ono")});var bb=v(yb=>{"use strict";Object.defineProperty(yb,"__esModule",{value:!0});var z6=require("util")});var Er=v((Pr,go)=>{"use strict";var rw=Pr&&Pr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:o(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),nw=Pr&&Pr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&rw(t,e,r)};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.ono=void 0;var vb=gb();Object.defineProperty(Pr,"ono",{enumerable:!0,get:o(function(){return vb.ono},"get")});var iw=xf();Object.defineProperty(Pr,"Ono",{enumerable:!0,get:o(function(){return iw.Ono},"get")});nw(bb(),Pr);Pr.default=vb.ono;typeof go=="object"&&typeof go.exports=="object"&&(go.exports=Object.assign(go.exports.default,go.exports))});var ws=v(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 Af=class Af{};o(Af,"_CodeOrName");var xs=Af;Se._CodeOrName=xs;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var If=class If extends xs{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}}};o(If,"Name");var Oi=If;Se.Name=Oi;var Cf=class Cf extends xs{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 Oi&&(r[n.str]=(r[n.str]||0)+1),r),{})}};o(Cf,"_Code");var lr=Cf;Se._Code=lr;Se.nil=new lr("");function _b(e,...t){let r=[e[0]],n=0;for(;n<t.length;)wf(r,t[n]),r.push(e[++n]);return new lr(r)}o(_b,"_");Se._=_b;var $f=new lr("+");function Sb(e,...t){let r=[$s(e[0])],n=0;for(;n<t.length;)r.push($f),wf(r,t[n]),r.push($f,$s(e[++n]));return ow(r),new lr(r)}o(Sb,"str");Se.str=Sb;function wf(e,t){t instanceof lr?e.push(...t._items):t instanceof Oi?e.push(t):e.push(cw(t))}o(wf,"addCodeArg");Se.addCodeArg=wf;function ow(e){let t=1;for(;t<e.length-1;){if(e[t]===$f){let r=sw(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(ow,"optimize");function sw(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Oi||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 Oi))return`"${e}${t.slice(1)}`}o(sw,"mergeExprItems");function aw(e,t){return t.emptyStr()?e:e.emptyStr()?t:Sb`${e}${t}`}o(aw,"strConcat");Se.strConcat=aw;function cw(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:$s(Array.isArray(e)?e.join(","):e)}o(cw,"interpolate");function uw(e){return new lr($s(e))}o(uw,"stringify");Se.stringify=uw;function $s(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o($s,"safeStringify");Se.safeStringify=$s;function lw(e){return typeof e=="string"&&Se.IDENTIFIER.test(e)?new lr(`.${e}`):_b`[${e}]`}o(lw,"getProperty");Se.getProperty=lw;function fw(e){if(typeof e=="string"&&Se.IDENTIFIER.test(e))return new lr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(fw,"getEsmExportName");Se.getEsmExportName=fw;function pw(e){return new lr(e.toString())}o(pw,"regexpCode");Se.regexpCode=pw});var qf=v(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.ValueScope=Mt.ValueScopeName=Mt.Scope=Mt.varKinds=Mt.UsedValueState=void 0;var jt=ws(),Nf=class Nf extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(Nf,"ValueError");var Tf=Nf,Ac;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Ac||(Mt.UsedValueState=Ac={}));Mt.varKinds={const:new jt.Name("const"),let:new jt.Name("let"),var:new jt.Name("var")};var jf=class jf{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof jt.Name?t:this.name(t)}name(t){return new jt.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};o(jf,"Scope");var Ic=jf;Mt.Scope=Ic;var Mf=class Mf extends jt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,jt._)`.${new jt.Name(r)}[${n}]`}};o(Mf,"ValueScopeName");var Cc=Mf;Mt.ValueScopeName=Cc;var dw=(0,jt._)`\n`,kf=class kf extends Ic{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?dw:jt.nil}}get(){return this._scope}name(t){return new Cc(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:s}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[s];if(c){let p=c.get(a);if(p)return p}else c=this._values[s]=new Map;c.set(a,i);let u=this._scope[s]||(this._scope[s]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:s,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,jt._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let s=jt.nil;for(let a in t){let c=t[a];if(!c)continue;let u=n[a]=n[a]||new Map;c.forEach(l=>{if(u.has(l))return;u.set(l,Ac.Started);let p=r(l);if(p){let f=this.opts.es5?Mt.varKinds.var:Mt.varKinds.const;s=(0,jt._)`${s}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))s=(0,jt._)`${s}${p}${this.opts._n}`;else throw new Tf(l);u.set(l,Ac.Completed)})}return s}};o(kf,"ValueScope");var Rf=kf;Mt.ValueScope=Rf});var se=v(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.or=le.and=le.not=le.CodeGen=le.operators=le.varKinds=le.ValueScopeName=le.ValueScope=le.Scope=le.Name=le.regexpCode=le.stringify=le.getProperty=le.nil=le.strConcat=le.str=le._=void 0;var ye=ws(),xr=qf(),wn=ws();Object.defineProperty(le,"_",{enumerable:!0,get:o(function(){return wn._},"get")});Object.defineProperty(le,"str",{enumerable:!0,get:o(function(){return wn.str},"get")});Object.defineProperty(le,"strConcat",{enumerable:!0,get:o(function(){return wn.strConcat},"get")});Object.defineProperty(le,"nil",{enumerable:!0,get:o(function(){return wn.nil},"get")});Object.defineProperty(le,"getProperty",{enumerable:!0,get:o(function(){return wn.getProperty},"get")});Object.defineProperty(le,"stringify",{enumerable:!0,get:o(function(){return wn.stringify},"get")});Object.defineProperty(le,"regexpCode",{enumerable:!0,get:o(function(){return wn.regexpCode},"get")});Object.defineProperty(le,"Name",{enumerable:!0,get:o(function(){return wn.Name},"get")});var jc=qf();Object.defineProperty(le,"Scope",{enumerable:!0,get:o(function(){return jc.Scope},"get")});Object.defineProperty(le,"ValueScope",{enumerable:!0,get:o(function(){return jc.ValueScope},"get")});Object.defineProperty(le,"ValueScopeName",{enumerable:!0,get:o(function(){return jc.ValueScopeName},"get")});Object.defineProperty(le,"varKinds",{enumerable:!0,get:o(function(){return jc.varKinds},"get")});le.operators={GT:new ye._Code(">"),GTE:new ye._Code(">="),LT:new ye._Code("<"),LTE:new ye._Code("<="),EQ:new ye._Code("==="),NEQ:new ye._Code("!=="),NOT:new ye._Code("!"),OR:new ye._Code("||"),AND:new ye._Code("&&"),ADD:new ye._Code("+")};var Yf=class Yf{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(Yf,"Node");var cn=Yf,Qf=class Qf extends cn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?xr.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=vo(this.rhs,t,r)),this}get names(){return this.rhs instanceof ye._CodeOrName?this.rhs.names:{}}};o(Qf,"Def");var Df=Qf,Jf=class Jf extends cn{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=vo(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ye.Name?{}:{...this.lhs.names};return Nc(t,this.rhs)}};o(Jf,"Assign");var Tc=Jf,Xf=class Xf extends Tc{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(Xf,"AssignOp");var Lf=Xf,ep=class ep extends cn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(ep,"Label");var Ff=ep,tp=class tp extends cn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(tp,"Break");var Vf=tp,rp=class rp extends cn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(rp,"Throw");var Hf=rp,np=class np extends cn{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=vo(this.code,t,r),this}get names(){return this.code instanceof ye._CodeOrName?this.code.names:{}}};o(np,"AnyCode");var Bf=np,ip=class ip extends cn{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(t,r)||(hw(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>xi(t,r.names),{})}};o(ip,"ParentNode");var As=ip,op=class op extends As{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(op,"BlockNode");var un=op,sp=class sp extends As{};o(sp,"Root");var Uf=sp,ap=class ap extends un{};o(ap,"Else");var bo=ap;bo.kind="else";var yo=class yo extends un{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 bo(n):n}if(r)return t===!1?r instanceof yo?r:r.nodes:this.nodes.length?this:new yo(Ob(t),r instanceof yo?[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=vo(this.condition,t,r),this}get names(){let t=super.names;return Nc(t,this.condition),this.else&&xi(t,this.else.names),t}};o(yo,"If");var Pi=yo;Pi.kind="if";var cp=class cp extends un{};o(cp,"For");var Ei=cp;Ei.kind="for";var up=class up extends Ei{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=vo(this.iteration,t,r),this}get names(){return xi(super.names,this.iteration.names)}};o(up,"ForLoop");var Gf=up,lp=class lp extends Ei{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?xr.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=Nc(super.names,this.from);return Nc(t,this.to)}};o(lp,"ForRange");var zf=lp,fp=class fp extends Ei{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=vo(this.iterable,t,r),this}get names(){return xi(super.names,this.iterable.names)}};o(fp,"ForIter");var Rc=fp,pp=class pp extends un{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};o(pp,"Func");var Is=pp;Is.kind="func";var dp=class dp extends As{render(t){return"return "+super.render(t)}};o(dp,"Return");var Cs=dp;Cs.kind="return";var hp=class hp extends un{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&&xi(t,this.catch.names),this.finally&&xi(t,this.finally.names),t}};o(hp,"Try");var Zf=hp,mp=class mp extends un{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(mp,"Catch");var Ts=mp;Ts.kind="catch";var gp=class gp extends un{render(t){return"finally"+super.render(t)}};o(gp,"Finally");var Rs=gp;Rs.kind="finally";var yp=class yp{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
7
- `:""},this._extScope=t,this._scope=new xr.Scope({parent:t}),this._nodes=[new Uf]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new Df(t,s,n)),s}const(t,r,n){return this._def(xr.varKinds.const,t,r,n)}let(t,r,n){return this._def(xr.varKinds.let,t,r,n)}var(t,r,n){return this._def(xr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Tc(t,r,n))}add(t,r){return this._leafNode(new Lf(t,le.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ye.nil&&this._leafNode(new Bf(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 Pi(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 Pi(t))}else(){return this._elseNode(new bo)}endIf(){return this._endBlockNode(Pi,bo)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Gf(t),r)}forRange(t,r,n,i,s=this.opts.es5?xr.varKinds.var:xr.varKinds.let){let a=this._scope.toName(t);return this._for(new zf(s,a,r,n),()=>i(a))}forOf(t,r,n,i=xr.varKinds.const){let s=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`,c=>{this.var(s,(0,ye._)`${a}[${c}]`),n(s)})}return this._for(new Rc("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?xr.varKinds.var:xr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ye._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new Rc("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Ei)}label(t){return this._leafNode(new Ff(t))}break(t){return this._leafNode(new Vf(t))}return(t){let r=new Cs;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Cs)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Zf;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new Ts(s),r(s)}return n&&(this._currNode=i.finally=new Rs,this.code(n)),this._endBlockNode(Ts,Rs)}throw(t){return this._leafNode(new Hf(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 Is(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Is)}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 Pi))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};o(yp,"CodeGen");var Wf=yp;le.CodeGen=Wf;function xi(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(xi,"addNames");function Nc(e,t){return t instanceof ye._CodeOrName?xi(e,t.names):e}o(Nc,"addExprNames");function vo(e,t,r){if(e instanceof ye.Name)return n(e);if(!i(e))return e;return new ye._Code(e._items.reduce((s,a)=>(a instanceof ye.Name&&(a=n(a)),a instanceof ye._Code?s.push(...a._items):s.push(a),s),[]));function n(s){let a=r[s.str];return a===void 0||t[s.str]!==1?s:(delete t[s.str],a)}function i(s){return s instanceof ye._Code&&s._items.some(a=>a instanceof ye.Name&&t[a.str]===1&&r[a.str]!==void 0)}}o(vo,"optimizeExpr");function hw(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(hw,"subtractNames");function Ob(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ye._)`!${Kf(e)}`}o(Ob,"not");le.not=Ob;var mw=Pb(le.operators.AND);function gw(...e){return e.reduce(mw)}o(gw,"and");le.and=gw;var yw=Pb(le.operators.OR);function bw(...e){return e.reduce(yw)}o(bw,"or");le.or=bw;function Pb(e){return(t,r)=>t===ye.nil?r:r===ye.nil?t:(0,ye._)`${Kf(t)} ${e} ${Kf(r)}`}o(Pb,"mappend");function Kf(e){return e instanceof ye.Name?e:(0,ye._)`(${e})`}o(Kf,"par")});var he=v(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.checkStrictMode=fe.getErrorPath=fe.Type=fe.useFunc=fe.setEvaluated=fe.evaluatedPropsToName=fe.mergeEvaluated=fe.eachItem=fe.unescapeJsonPointer=fe.escapeJsonPointer=fe.escapeFragment=fe.unescapeFragment=fe.schemaRefOrVal=fe.schemaHasRulesButRef=fe.schemaHasRules=fe.checkUnknownRules=fe.alwaysValidSchema=fe.toHash=void 0;var $e=se(),vw=ws();function _w(e){let t={};for(let r of e)t[r]=!0;return t}o(_w,"toHash");fe.toHash=_w;function Sw(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:($b(e,t),!wb(t,e.self.RULES.all))}o(Sw,"alwaysValidSchema");fe.alwaysValidSchema=Sw;function $b(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let s in t)i[s]||Cb(e,`unknown keyword: "${s}"`)}o($b,"checkUnknownRules");fe.checkUnknownRules=$b;function wb(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(wb,"schemaHasRules");fe.schemaHasRules=wb;function Ow(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(Ow,"schemaHasRulesButRef");fe.schemaHasRulesButRef=Ow;function Pw({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,$e._)`${r}`}return(0,$e._)`${e}${t}${(0,$e.getProperty)(n)}`}o(Pw,"schemaRefOrVal");fe.schemaRefOrVal=Pw;function Ew(e){return Ab(decodeURIComponent(e))}o(Ew,"unescapeFragment");fe.unescapeFragment=Ew;function xw(e){return encodeURIComponent(vp(e))}o(xw,"escapeFragment");fe.escapeFragment=xw;function vp(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(vp,"escapeJsonPointer");fe.escapeJsonPointer=vp;function Ab(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(Ab,"unescapeJsonPointer");fe.unescapeJsonPointer=Ab;function $w(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o($w,"eachItem");fe.eachItem=$w;function Eb({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof $e.Name?(s instanceof $e.Name?e(i,s,a):t(i,s,a),a):s instanceof $e.Name?(t(i,a,s),s):r(s,a);return c===$e.Name&&!(u instanceof $e.Name)?n(i,u):u}}o(Eb,"makeMergeEvaluated");fe.mergeEvaluated={props:Eb({mergeNames:o((e,t,r)=>e.if((0,$e._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,$e._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,$e._)`${r} || {}`).code((0,$e._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,$e._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,$e._)`${r} || {}`),_p(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Ib}),items:Eb({mergeNames:o((e,t,r)=>e.if((0,$e._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,$e._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,$e._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,$e._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:o((e,t)=>e.var("items",t),"resultToName")})};function Ib(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,$e._)`{}`);return t!==void 0&&_p(e,r,t),r}o(Ib,"evaluatedPropsToName");fe.evaluatedPropsToName=Ib;function _p(e,t,r){Object.keys(r).forEach(n=>e.assign((0,$e._)`${t}${(0,$e.getProperty)(n)}`,!0))}o(_p,"setEvaluated");fe.setEvaluated=_p;var xb={};function ww(e,t){return e.scopeValue("func",{ref:t,code:xb[t.code]||(xb[t.code]=new vw._Code(t.code))})}o(ww,"useFunc");fe.useFunc=ww;var bp;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(bp||(fe.Type=bp={}));function Aw(e,t,r){if(e instanceof $e.Name){let n=t===bp.Num;return r?n?(0,$e._)`"[" + ${e} + "]"`:(0,$e._)`"['" + ${e} + "']"`:n?(0,$e._)`"/" + ${e}`:(0,$e._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,$e.getProperty)(e).toString():"/"+vp(e)}o(Aw,"getErrorPath");fe.getErrorPath=Aw;function Cb(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}o(Cb,"checkStrictMode");fe.checkStrictMode=Cb});var fr=v(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});var vt=se(),Iw={data:new vt.Name("data"),valCxt:new vt.Name("valCxt"),instancePath:new vt.Name("instancePath"),parentData:new vt.Name("parentData"),parentDataProperty:new vt.Name("parentDataProperty"),rootData:new vt.Name("rootData"),dynamicAnchors:new vt.Name("dynamicAnchors"),vErrors:new vt.Name("vErrors"),errors:new vt.Name("errors"),this:new vt.Name("this"),self:new vt.Name("self"),scope:new vt.Name("scope"),json:new vt.Name("json"),jsonPos:new vt.Name("jsonPos"),jsonLen:new vt.Name("jsonLen"),jsonPart:new vt.Name("jsonPart")};Sp.default=Iw});var Ns=v(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.extendErrors=_t.resetErrorsCount=_t.reportExtraError=_t.reportError=_t.keyword$DataError=_t.keywordError=void 0;var be=se(),Mc=he(),wt=fr();_t.keywordError={message:o(({keyword:e})=>(0,be.str)`must pass "${e}" keyword validation`,"message")};_t.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,be.str)`"${e}" keyword must be ${t} ($data)`:(0,be.str)`"${e}" keyword is invalid ($data)`,"message")};function Cw(e,t=_t.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=Nb(e,t,r);n??(a||c)?Tb(s,u):Rb(i,(0,be._)`[${u}]`)}o(Cw,"reportError");_t.reportError=Cw;function Tw(e,t=_t.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=Nb(e,t,r);Tb(i,c),s||a||Rb(n,wt.default.vErrors)}o(Tw,"reportExtraError");_t.reportExtraError=Tw;function Rw(e,t){e.assign(wt.default.errors,t),e.if((0,be._)`${wt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,be._)`${wt.default.vErrors}.length`,t),()=>e.assign(wt.default.vErrors,null)))}o(Rw,"resetErrorsCount");_t.resetErrorsCount=Rw;function Nw({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,wt.default.errors,c=>{e.const(a,(0,be._)`${wt.default.vErrors}[${c}]`),e.if((0,be._)`${a}.instancePath === undefined`,()=>e.assign((0,be._)`${a}.instancePath`,(0,be.strConcat)(wt.default.instancePath,s.errorPath))),e.assign((0,be._)`${a}.schemaPath`,(0,be.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,be._)`${a}.schema`,r),e.assign((0,be._)`${a}.data`,n))})}o(Nw,"extendErrors");_t.extendErrors=Nw;function Tb(e,t){let r=e.const("err",t);e.if((0,be._)`${wt.default.vErrors} === null`,()=>e.assign(wt.default.vErrors,(0,be._)`[${r}]`),(0,be._)`${wt.default.vErrors}.push(${r})`),e.code((0,be._)`${wt.default.errors}++`)}o(Tb,"addError");function Rb(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,be._)`new ${e.ValidationError}(${t})`):(r.assign((0,be._)`${n}.errors`,t),r.return(!1))}o(Rb,"returnErrors");var $i={keyword:new be.Name("keyword"),schemaPath:new be.Name("schemaPath"),params:new be.Name("params"),propertyName:new be.Name("propertyName"),message:new be.Name("message"),schema:new be.Name("schema"),parentSchema:new be.Name("parentSchema")};function Nb(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,be._)`{}`:jw(e,t,r)}o(Nb,"errorObjectCode");function jw(e,t,r={}){let{gen:n,it:i}=e,s=[Mw(i,r),kw(e,r)];return qw(e,t,s),n.object(...s)}o(jw,"errorObject");function Mw({errorPath:e},{instancePath:t}){let r=t?(0,be.str)`${e}${(0,Mc.getErrorPath)(t,Mc.Type.Str)}`:e;return[wt.default.instancePath,(0,be.strConcat)(wt.default.instancePath,r)]}o(Mw,"errorInstancePath");function kw({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,be.str)`${t}/${e}`;return r&&(i=(0,be.str)`${i}${(0,Mc.getErrorPath)(r,Mc.Type.Str)}`),[$i.schemaPath,i]}o(kw,"errorSchemaPath");function qw(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:c}=e,{opts:u,propertyName:l,topSchemaRef:p,schemaPath:f}=c;n.push([$i.keyword,i],[$i.params,typeof t=="function"?t(e):t||(0,be._)`{}`]),u.messages&&n.push([$i.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([$i.schema,a],[$i.parentSchema,(0,be._)`${p}${f}`],[wt.default.data,s]),l&&n.push([$i.propertyName,l])}o(qw,"extraErrorProps")});var Mb=v(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.boolOrEmptySchema=_o.topBoolOrEmptySchema=void 0;var Dw=Ns(),Lw=se(),Fw=fr(),Vw={message:"boolean schema is false"};function Hw(e){let{gen:t,schema:r,validateName:n}=e;r===!1?jb(e,!1):typeof r=="object"&&r.$async===!0?t.return(Fw.default.data):(t.assign((0,Lw._)`${n}.errors`,null),t.return(!0))}o(Hw,"topBoolOrEmptySchema");_o.topBoolOrEmptySchema=Hw;function Bw(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),jb(e)):r.var(t,!0)}o(Bw,"boolOrEmptySchema");_o.boolOrEmptySchema=Bw;function jb(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,Dw.reportError)(i,Vw,void 0,t)}o(jb,"falseSchemaError")});var Op=v(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.getRules=So.isJSONType=void 0;var Uw=["string","number","integer","boolean","null","object","array"],Gw=new Set(Uw);function zw(e){return typeof e=="string"&&Gw.has(e)}o(zw,"isJSONType");So.isJSONType=zw;function Zw(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}o(Zw,"getRules");So.getRules=Zw});var Pp=v(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.shouldUseRule=An.shouldUseGroup=An.schemaHasRulesForType=void 0;function Ww({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&kb(e,n)}o(Ww,"schemaHasRulesForType");An.schemaHasRulesForType=Ww;function kb(e,t){return t.rules.some(r=>qb(e,r))}o(kb,"shouldUseGroup");An.shouldUseGroup=kb;function qb(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}o(qb,"shouldUseRule");An.shouldUseRule=qb});var js=v(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.reportTypeError=St.checkDataTypes=St.checkDataType=St.coerceAndCheckDataType=St.getJSONTypes=St.getSchemaTypes=St.DataType=void 0;var Kw=Op(),Yw=Pp(),Qw=Ns(),ce=se(),Db=he(),Oo;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Oo||(St.DataType=Oo={}));function Jw(e){let t=Lb(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}o(Jw,"getSchemaTypes");St.getSchemaTypes=Jw;function Lb(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(Kw.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(Lb,"getJSONTypes");St.getJSONTypes=Lb;function Xw(e,t){let{gen:r,data:n,opts:i}=e,s=eA(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,Yw.schemaHasRulesForType)(e,t[0]));if(a){let c=xp(t,n,i.strictNumbers,Oo.Wrong);r.if(c,()=>{s.length?tA(e,t,s):$p(e)})}return a}o(Xw,"coerceAndCheckDataType");St.coerceAndCheckDataType=Xw;var Fb=new Set(["string","number","integer","boolean","null"]);function eA(e,t){return t?e.filter(r=>Fb.has(r)||t==="array"&&r==="array"):[]}o(eA,"coerceToTypes");function tA(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,ce._)`typeof ${i}`),c=n.let("coerced",(0,ce._)`undefined`);s.coerceTypes==="array"&&n.if((0,ce._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,ce._)`${i}[0]`).assign(a,(0,ce._)`typeof ${i}`).if(xp(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,ce._)`${c} !== undefined`);for(let l of r)(Fb.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),$p(e),n.endIf(),n.if((0,ce._)`${c} !== undefined`,()=>{n.assign(i,c),rA(e,c)});function u(l){switch(l){case"string":n.elseIf((0,ce._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,ce._)`"" + ${i}`).elseIf((0,ce._)`${i} === null`).assign(c,(0,ce._)`""`);return;case"number":n.elseIf((0,ce._)`${a} == "boolean" || ${i} === null
4
+ `+n:r||n}o(pb,"joinStacks");Vr.joinStacks=pb;function Y$(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return pb({stack:n},r)},"get"),enumerable:!1,configurable:!0}):Q$(t,e)}o(Y$,"lazyJoinStacks");Vr.lazyJoinStacks=Y$;function db(e){if(e){let t=e.split(z$),r;for(let n=0;n<t.length;n++){let i=t[n];if(Z$.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
+ `)}return e}o(db,"popStack");function Q$(e,t){Object.defineProperty(e,"stack",{get:o(()=>db(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(Q$,"lazyPopStack")});var yb=v(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});wc.extendError=void 0;var mb=wf(),$c=hb(),gb=xc(),J$=["name","message","stack"];function X$(e,t,r){let n=e;return ew(n,t),t&&typeof t=="object"&&tw(n,t),n.toJSON=gb.toJSON,mb.addInspectMethod&&mb.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(X$,"extendError");wc.extendError=X$;function ew(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");$c.isLazyStack(r)?$c.lazyJoinStacks(r,e,t):$c.isWritableStack(r)&&(e.stack=$c.joinStacks(e,t))}o(ew,"extendStack");function tw(e,t){let r=gb.getDeepKeys(t,J$),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o(tw,"mergeErrors")});var bb=v(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.normalizeArgs=go.normalizeOptions=void 0;var rw=wf();function nw(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?rw.format:typeof e.format=="function"?e.format:!1}}o(nw,"normalizeOptions");go.normalizeOptions=nw;function iw(e,t){let r,n,i,s="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?s=t.format.apply(void 0,i):s=i.join(" ")),t.concatMessages&&r&&r.message&&(s+=(s?`
6
+ `:"")+r.message),{originalError:r,props:n,message:s}}o(iw,"normalizeArgs");go.normalizeArgs=iw});var If=v(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.Ono=void 0;var Ac=yb(),vb=bb(),ow=xc(),sw=Af;Ic.Ono=sw;function Af(e,t){t=vb.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=vb.normalizeArgs(n,t),c=new e(a);return Ac.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(Af,"Ono");Af.toJSON=o(function(t){return ow.toJSON.call(t)},"toJSON");Af.extend=o(function(t,r,n){return n||r instanceof Error?Ac.extendError(t,r,n):r?Ac.extendError(t,void 0,r):Ac.extendError(t)},"extend")});var _b=v(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.ono=void 0;var Si=If(),aw=Hr;Cc.ono=aw;Hr.error=new Si.Ono(Error);Hr.eval=new Si.Ono(EvalError);Hr.range=new Si.Ono(RangeError);Hr.reference=new Si.Ono(ReferenceError);Hr.syntax=new Si.Ono(SyntaxError);Hr.type=new Si.Ono(TypeError);Hr.uri=new Si.Ono(URIError);var cw=Hr;function Hr(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(cw))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 Hr.error.apply(void 0,e)}o(Hr,"ono")});var Ob=v(Sb=>{"use strict";Object.defineProperty(Sb,"__esModule",{value:!0});var t7=require("util")});var Pr=v((Er,yo)=>{"use strict";var uw=Er&&Er.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:o(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),lw=Er&&Er.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&uw(t,e,r)};Object.defineProperty(Er,"__esModule",{value:!0});Er.ono=void 0;var Eb=_b();Object.defineProperty(Er,"ono",{enumerable:!0,get:o(function(){return Eb.ono},"get")});var fw=If();Object.defineProperty(Er,"Ono",{enumerable:!0,get:o(function(){return fw.Ono},"get")});lw(Ob(),Er);Er.default=Eb.ono;typeof yo=="object"&&typeof yo.exports=="object"&&(yo.exports=Object.assign(yo.exports.default,yo.exports))});var As=v(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 Nf=class Nf{};o(Nf,"_CodeOrName");var $s=Nf;Se._CodeOrName=$s;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Rf=class Rf extends $s{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}}};o(Rf,"Name");var Oi=Rf;Se.Name=Oi;var jf=class jf extends $s{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 Oi&&(r[n.str]=(r[n.str]||0)+1),r),{})}};o(jf,"_Code");var lr=jf;Se._Code=lr;Se.nil=new lr("");function Pb(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Tf(r,t[n]),r.push(e[++n]);return new lr(r)}o(Pb,"_");Se._=Pb;var Cf=new lr("+");function xb(e,...t){let r=[ws(e[0])],n=0;for(;n<t.length;)r.push(Cf),Tf(r,t[n]),r.push(Cf,ws(e[++n]));return pw(r),new lr(r)}o(xb,"str");Se.str=xb;function Tf(e,t){t instanceof lr?e.push(...t._items):t instanceof Oi?e.push(t):e.push(mw(t))}o(Tf,"addCodeArg");Se.addCodeArg=Tf;function pw(e){let t=1;for(;t<e.length-1;){if(e[t]===Cf){let r=dw(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(pw,"optimize");function dw(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Oi||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 Oi))return`"${e}${t.slice(1)}`}o(dw,"mergeExprItems");function hw(e,t){return t.emptyStr()?e:e.emptyStr()?t:xb`${e}${t}`}o(hw,"strConcat");Se.strConcat=hw;function mw(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ws(Array.isArray(e)?e.join(","):e)}o(mw,"interpolate");function gw(e){return new lr(ws(e))}o(gw,"stringify");Se.stringify=gw;function ws(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(ws,"safeStringify");Se.safeStringify=ws;function yw(e){return typeof e=="string"&&Se.IDENTIFIER.test(e)?new lr(`.${e}`):Pb`[${e}]`}o(yw,"getProperty");Se.getProperty=yw;function bw(e){if(typeof e=="string"&&Se.IDENTIFIER.test(e))return new lr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(bw,"getEsmExportName");Se.getEsmExportName=bw;function vw(e){return new lr(e.toString())}o(vw,"regexpCode");Se.regexpCode=vw});var Vf=v(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.ValueScope=kt.ValueScopeName=kt.Scope=kt.varKinds=kt.UsedValueState=void 0;var Mt=As(),qf=class qf extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(qf,"ValueError");var Mf=qf,Tc;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Tc||(kt.UsedValueState=Tc={}));kt.varKinds={const:new Mt.Name("const"),let:new Mt.Name("let"),var:new Mt.Name("var")};var Df=class Df{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Mt.Name?t:this.name(t)}name(t){return new Mt.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};o(Df,"Scope");var Nc=Df;kt.Scope=Nc;var Lf=class Lf extends Mt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Mt._)`.${new Mt.Name(r)}[${n}]`}};o(Lf,"ValueScopeName");var Rc=Lf;kt.ValueScopeName=Rc;var _w=(0,Mt._)`\n`,Ff=class Ff extends Nc{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?_w:Mt.nil}}get(){return this._scope}name(t){return new Rc(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:s}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[s];if(c){let p=c.get(a);if(p)return p}else c=this._values[s]=new Map;c.set(a,i);let u=this._scope[s]||(this._scope[s]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:s,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Mt._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let s=Mt.nil;for(let a in t){let c=t[a];if(!c)continue;let u=n[a]=n[a]||new Map;c.forEach(l=>{if(u.has(l))return;u.set(l,Tc.Started);let p=r(l);if(p){let f=this.opts.es5?kt.varKinds.var:kt.varKinds.const;s=(0,Mt._)`${s}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))s=(0,Mt._)`${s}${p}${this.opts._n}`;else throw new Mf(l);u.set(l,Tc.Completed)})}return s}};o(Ff,"ValueScope");var kf=Ff;kt.ValueScope=kf});var se=v(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.or=le.and=le.not=le.CodeGen=le.operators=le.varKinds=le.ValueScopeName=le.ValueScope=le.Scope=le.Name=le.regexpCode=le.stringify=le.getProperty=le.nil=le.strConcat=le.str=le._=void 0;var ye=As(),xr=Vf(),An=As();Object.defineProperty(le,"_",{enumerable:!0,get:o(function(){return An._},"get")});Object.defineProperty(le,"str",{enumerable:!0,get:o(function(){return An.str},"get")});Object.defineProperty(le,"strConcat",{enumerable:!0,get:o(function(){return An.strConcat},"get")});Object.defineProperty(le,"nil",{enumerable:!0,get:o(function(){return An.nil},"get")});Object.defineProperty(le,"getProperty",{enumerable:!0,get:o(function(){return An.getProperty},"get")});Object.defineProperty(le,"stringify",{enumerable:!0,get:o(function(){return An.stringify},"get")});Object.defineProperty(le,"regexpCode",{enumerable:!0,get:o(function(){return An.regexpCode},"get")});Object.defineProperty(le,"Name",{enumerable:!0,get:o(function(){return An.Name},"get")});var qc=Vf();Object.defineProperty(le,"Scope",{enumerable:!0,get:o(function(){return qc.Scope},"get")});Object.defineProperty(le,"ValueScope",{enumerable:!0,get:o(function(){return qc.ValueScope},"get")});Object.defineProperty(le,"ValueScopeName",{enumerable:!0,get:o(function(){return qc.ValueScopeName},"get")});Object.defineProperty(le,"varKinds",{enumerable:!0,get:o(function(){return qc.varKinds},"get")});le.operators={GT:new ye._Code(">"),GTE:new ye._Code(">="),LT:new ye._Code("<"),LTE:new ye._Code("<="),EQ:new ye._Code("==="),NEQ:new ye._Code("!=="),NOT:new ye._Code("!"),OR:new ye._Code("||"),AND:new ye._Code("&&"),ADD:new ye._Code("+")};var ep=class ep{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(ep,"Node");var cn=ep,tp=class tp extends cn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?xr.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=_o(this.rhs,t,r)),this}get names(){return this.rhs instanceof ye._CodeOrName?this.rhs.names:{}}};o(tp,"Def");var Hf=tp,rp=class rp extends cn{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=_o(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ye.Name?{}:{...this.lhs.names};return kc(t,this.rhs)}};o(rp,"Assign");var jc=rp,np=class np extends jc{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(np,"AssignOp");var Bf=np,ip=class ip extends cn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(ip,"Label");var Uf=ip,op=class op extends cn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(op,"Break");var Gf=op,sp=class sp extends cn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(sp,"Throw");var zf=sp,ap=class ap extends cn{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=_o(this.code,t,r),this}get names(){return this.code instanceof ye._CodeOrName?this.code.names:{}}};o(ap,"AnyCode");var Zf=ap,cp=class cp extends cn{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(t,r)||(Sw(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>xi(t,r.names),{})}};o(cp,"ParentNode");var Is=cp,up=class up extends Is{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(up,"BlockNode");var un=up,lp=class lp extends Is{};o(lp,"Root");var Wf=lp,fp=class fp extends un{};o(fp,"Else");var vo=fp;vo.kind="else";var bo=class bo extends un{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 vo(n):n}if(r)return t===!1?r instanceof bo?r:r.nodes:this.nodes.length?this:new bo($b(t),r instanceof bo?[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=_o(this.condition,t,r),this}get names(){let t=super.names;return kc(t,this.condition),this.else&&xi(t,this.else.names),t}};o(bo,"If");var Ei=bo;Ei.kind="if";var pp=class pp extends un{};o(pp,"For");var Pi=pp;Pi.kind="for";var dp=class dp extends Pi{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=_o(this.iteration,t,r),this}get names(){return xi(super.names,this.iteration.names)}};o(dp,"ForLoop");var Kf=dp,hp=class hp extends Pi{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?xr.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=kc(super.names,this.from);return kc(t,this.to)}};o(hp,"ForRange");var Yf=hp,mp=class mp extends Pi{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=_o(this.iterable,t,r),this}get names(){return xi(super.names,this.iterable.names)}};o(mp,"ForIter");var Mc=mp,gp=class gp extends un{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};o(gp,"Func");var Cs=gp;Cs.kind="func";var yp=class yp extends Is{render(t){return"return "+super.render(t)}};o(yp,"Return");var Ts=yp;Ts.kind="return";var bp=class bp extends un{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&&xi(t,this.catch.names),this.finally&&xi(t,this.finally.names),t}};o(bp,"Try");var Qf=bp,vp=class vp extends un{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(vp,"Catch");var Ns=vp;Ns.kind="catch";var _p=class _p extends un{render(t){return"finally"+super.render(t)}};o(_p,"Finally");var Rs=_p;Rs.kind="finally";var Sp=class Sp{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
7
+ `:""},this._extScope=t,this._scope=new xr.Scope({parent:t}),this._nodes=[new Wf]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new Hf(t,s,n)),s}const(t,r,n){return this._def(xr.varKinds.const,t,r,n)}let(t,r,n){return this._def(xr.varKinds.let,t,r,n)}var(t,r,n){return this._def(xr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new jc(t,r,n))}add(t,r){return this._leafNode(new Bf(t,le.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ye.nil&&this._leafNode(new Zf(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 Ei(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 Ei(t))}else(){return this._elseNode(new vo)}endIf(){return this._endBlockNode(Ei,vo)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Kf(t),r)}forRange(t,r,n,i,s=this.opts.es5?xr.varKinds.var:xr.varKinds.let){let a=this._scope.toName(t);return this._for(new Yf(s,a,r,n),()=>i(a))}forOf(t,r,n,i=xr.varKinds.const){let s=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`,c=>{this.var(s,(0,ye._)`${a}[${c}]`),n(s)})}return this._for(new Mc("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?xr.varKinds.var:xr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ye._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new Mc("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Pi)}label(t){return this._leafNode(new Uf(t))}break(t){return this._leafNode(new Gf(t))}return(t){let r=new Ts;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ts)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Qf;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new Ns(s),r(s)}return n&&(this._currNode=i.finally=new Rs,this.code(n)),this._endBlockNode(Ns,Rs)}throw(t){return this._leafNode(new zf(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 Cs(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Cs)}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 Ei))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};o(Sp,"CodeGen");var Jf=Sp;le.CodeGen=Jf;function xi(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(xi,"addNames");function kc(e,t){return t instanceof ye._CodeOrName?xi(e,t.names):e}o(kc,"addExprNames");function _o(e,t,r){if(e instanceof ye.Name)return n(e);if(!i(e))return e;return new ye._Code(e._items.reduce((s,a)=>(a instanceof ye.Name&&(a=n(a)),a instanceof ye._Code?s.push(...a._items):s.push(a),s),[]));function n(s){let a=r[s.str];return a===void 0||t[s.str]!==1?s:(delete t[s.str],a)}function i(s){return s instanceof ye._Code&&s._items.some(a=>a instanceof ye.Name&&t[a.str]===1&&r[a.str]!==void 0)}}o(_o,"optimizeExpr");function Sw(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(Sw,"subtractNames");function $b(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ye._)`!${Xf(e)}`}o($b,"not");le.not=$b;var Ow=wb(le.operators.AND);function Ew(...e){return e.reduce(Ow)}o(Ew,"and");le.and=Ew;var Pw=wb(le.operators.OR);function xw(...e){return e.reduce(Pw)}o(xw,"or");le.or=xw;function wb(e){return(t,r)=>t===ye.nil?r:r===ye.nil?t:(0,ye._)`${Xf(t)} ${e} ${Xf(r)}`}o(wb,"mappend");function Xf(e){return e instanceof ye.Name?e:(0,ye._)`(${e})`}o(Xf,"par")});var he=v(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.checkStrictMode=fe.getErrorPath=fe.Type=fe.useFunc=fe.setEvaluated=fe.evaluatedPropsToName=fe.mergeEvaluated=fe.eachItem=fe.unescapeJsonPointer=fe.escapeJsonPointer=fe.escapeFragment=fe.unescapeFragment=fe.schemaRefOrVal=fe.schemaHasRulesButRef=fe.schemaHasRules=fe.checkUnknownRules=fe.alwaysValidSchema=fe.toHash=void 0;var $e=se(),$w=As();function ww(e){let t={};for(let r of e)t[r]=!0;return t}o(ww,"toHash");fe.toHash=ww;function Aw(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Cb(e,t),!Tb(t,e.self.RULES.all))}o(Aw,"alwaysValidSchema");fe.alwaysValidSchema=Aw;function Cb(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let s in t)i[s]||jb(e,`unknown keyword: "${s}"`)}o(Cb,"checkUnknownRules");fe.checkUnknownRules=Cb;function Tb(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(Tb,"schemaHasRules");fe.schemaHasRules=Tb;function Iw(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(Iw,"schemaHasRulesButRef");fe.schemaHasRulesButRef=Iw;function Cw({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,$e._)`${r}`}return(0,$e._)`${e}${t}${(0,$e.getProperty)(n)}`}o(Cw,"schemaRefOrVal");fe.schemaRefOrVal=Cw;function Tw(e){return Nb(decodeURIComponent(e))}o(Tw,"unescapeFragment");fe.unescapeFragment=Tw;function Nw(e){return encodeURIComponent(Ep(e))}o(Nw,"escapeFragment");fe.escapeFragment=Nw;function Ep(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(Ep,"escapeJsonPointer");fe.escapeJsonPointer=Ep;function Nb(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(Nb,"unescapeJsonPointer");fe.unescapeJsonPointer=Nb;function Rw(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(Rw,"eachItem");fe.eachItem=Rw;function Ab({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof $e.Name?(s instanceof $e.Name?e(i,s,a):t(i,s,a),a):s instanceof $e.Name?(t(i,a,s),s):r(s,a);return c===$e.Name&&!(u instanceof $e.Name)?n(i,u):u}}o(Ab,"makeMergeEvaluated");fe.mergeEvaluated={props:Ab({mergeNames:o((e,t,r)=>e.if((0,$e._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,$e._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,$e._)`${r} || {}`).code((0,$e._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,$e._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,$e._)`${r} || {}`),Pp(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Rb}),items:Ab({mergeNames:o((e,t,r)=>e.if((0,$e._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,$e._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,$e._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,$e._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:o((e,t)=>e.var("items",t),"resultToName")})};function Rb(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,$e._)`{}`);return t!==void 0&&Pp(e,r,t),r}o(Rb,"evaluatedPropsToName");fe.evaluatedPropsToName=Rb;function Pp(e,t,r){Object.keys(r).forEach(n=>e.assign((0,$e._)`${t}${(0,$e.getProperty)(n)}`,!0))}o(Pp,"setEvaluated");fe.setEvaluated=Pp;var Ib={};function jw(e,t){return e.scopeValue("func",{ref:t,code:Ib[t.code]||(Ib[t.code]=new $w._Code(t.code))})}o(jw,"useFunc");fe.useFunc=jw;var Op;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Op||(fe.Type=Op={}));function Mw(e,t,r){if(e instanceof $e.Name){let n=t===Op.Num;return r?n?(0,$e._)`"[" + ${e} + "]"`:(0,$e._)`"['" + ${e} + "']"`:n?(0,$e._)`"/" + ${e}`:(0,$e._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,$e.getProperty)(e).toString():"/"+Ep(e)}o(Mw,"getErrorPath");fe.getErrorPath=Mw;function jb(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}o(jb,"checkStrictMode");fe.checkStrictMode=jb});var fr=v(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var vt=se(),kw={data:new vt.Name("data"),valCxt:new vt.Name("valCxt"),instancePath:new vt.Name("instancePath"),parentData:new vt.Name("parentData"),parentDataProperty:new vt.Name("parentDataProperty"),rootData:new vt.Name("rootData"),dynamicAnchors:new vt.Name("dynamicAnchors"),vErrors:new vt.Name("vErrors"),errors:new vt.Name("errors"),this:new vt.Name("this"),self:new vt.Name("self"),scope:new vt.Name("scope"),json:new vt.Name("json"),jsonPos:new vt.Name("jsonPos"),jsonLen:new vt.Name("jsonLen"),jsonPart:new vt.Name("jsonPart")};xp.default=kw});var js=v(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.extendErrors=_t.resetErrorsCount=_t.reportExtraError=_t.reportError=_t.keyword$DataError=_t.keywordError=void 0;var be=se(),Dc=he(),wt=fr();_t.keywordError={message:o(({keyword:e})=>(0,be.str)`must pass "${e}" keyword validation`,"message")};_t.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,be.str)`"${e}" keyword must be ${t} ($data)`:(0,be.str)`"${e}" keyword is invalid ($data)`,"message")};function qw(e,t=_t.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=qb(e,t,r);n??(a||c)?Mb(s,u):kb(i,(0,be._)`[${u}]`)}o(qw,"reportError");_t.reportError=qw;function Dw(e,t=_t.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=qb(e,t,r);Mb(i,c),s||a||kb(n,wt.default.vErrors)}o(Dw,"reportExtraError");_t.reportExtraError=Dw;function Lw(e,t){e.assign(wt.default.errors,t),e.if((0,be._)`${wt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,be._)`${wt.default.vErrors}.length`,t),()=>e.assign(wt.default.vErrors,null)))}o(Lw,"resetErrorsCount");_t.resetErrorsCount=Lw;function Fw({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,wt.default.errors,c=>{e.const(a,(0,be._)`${wt.default.vErrors}[${c}]`),e.if((0,be._)`${a}.instancePath === undefined`,()=>e.assign((0,be._)`${a}.instancePath`,(0,be.strConcat)(wt.default.instancePath,s.errorPath))),e.assign((0,be._)`${a}.schemaPath`,(0,be.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,be._)`${a}.schema`,r),e.assign((0,be._)`${a}.data`,n))})}o(Fw,"extendErrors");_t.extendErrors=Fw;function Mb(e,t){let r=e.const("err",t);e.if((0,be._)`${wt.default.vErrors} === null`,()=>e.assign(wt.default.vErrors,(0,be._)`[${r}]`),(0,be._)`${wt.default.vErrors}.push(${r})`),e.code((0,be._)`${wt.default.errors}++`)}o(Mb,"addError");function kb(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,be._)`new ${e.ValidationError}(${t})`):(r.assign((0,be._)`${n}.errors`,t),r.return(!1))}o(kb,"returnErrors");var $i={keyword:new be.Name("keyword"),schemaPath:new be.Name("schemaPath"),params:new be.Name("params"),propertyName:new be.Name("propertyName"),message:new be.Name("message"),schema:new be.Name("schema"),parentSchema:new be.Name("parentSchema")};function qb(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,be._)`{}`:Vw(e,t,r)}o(qb,"errorObjectCode");function Vw(e,t,r={}){let{gen:n,it:i}=e,s=[Hw(i,r),Bw(e,r)];return Uw(e,t,s),n.object(...s)}o(Vw,"errorObject");function Hw({errorPath:e},{instancePath:t}){let r=t?(0,be.str)`${e}${(0,Dc.getErrorPath)(t,Dc.Type.Str)}`:e;return[wt.default.instancePath,(0,be.strConcat)(wt.default.instancePath,r)]}o(Hw,"errorInstancePath");function Bw({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,be.str)`${t}/${e}`;return r&&(i=(0,be.str)`${i}${(0,Dc.getErrorPath)(r,Dc.Type.Str)}`),[$i.schemaPath,i]}o(Bw,"errorSchemaPath");function Uw(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:c}=e,{opts:u,propertyName:l,topSchemaRef:p,schemaPath:f}=c;n.push([$i.keyword,i],[$i.params,typeof t=="function"?t(e):t||(0,be._)`{}`]),u.messages&&n.push([$i.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([$i.schema,a],[$i.parentSchema,(0,be._)`${p}${f}`],[wt.default.data,s]),l&&n.push([$i.propertyName,l])}o(Uw,"extraErrorProps")});var Lb=v(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.boolOrEmptySchema=So.topBoolOrEmptySchema=void 0;var Gw=js(),zw=se(),Zw=fr(),Ww={message:"boolean schema is false"};function Kw(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Db(e,!1):typeof r=="object"&&r.$async===!0?t.return(Zw.default.data):(t.assign((0,zw._)`${n}.errors`,null),t.return(!0))}o(Kw,"topBoolOrEmptySchema");So.topBoolOrEmptySchema=Kw;function Yw(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Db(e)):r.var(t,!0)}o(Yw,"boolOrEmptySchema");So.boolOrEmptySchema=Yw;function Db(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,Gw.reportError)(i,Ww,void 0,t)}o(Db,"falseSchemaError")});var $p=v(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.getRules=Oo.isJSONType=void 0;var Qw=["string","number","integer","boolean","null","object","array"],Jw=new Set(Qw);function Xw(e){return typeof e=="string"&&Jw.has(e)}o(Xw,"isJSONType");Oo.isJSONType=Xw;function eA(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}o(eA,"getRules");Oo.getRules=eA});var wp=v(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.shouldUseRule=In.shouldUseGroup=In.schemaHasRulesForType=void 0;function tA({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Fb(e,n)}o(tA,"schemaHasRulesForType");In.schemaHasRulesForType=tA;function Fb(e,t){return t.rules.some(r=>Vb(e,r))}o(Fb,"shouldUseGroup");In.shouldUseGroup=Fb;function Vb(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}o(Vb,"shouldUseRule");In.shouldUseRule=Vb});var Ms=v(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.reportTypeError=St.checkDataTypes=St.checkDataType=St.coerceAndCheckDataType=St.getJSONTypes=St.getSchemaTypes=St.DataType=void 0;var rA=$p(),nA=wp(),iA=js(),ce=se(),Hb=he(),Eo;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Eo||(St.DataType=Eo={}));function oA(e){let t=Bb(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}o(oA,"getSchemaTypes");St.getSchemaTypes=oA;function Bb(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(rA.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(Bb,"getJSONTypes");St.getJSONTypes=Bb;function sA(e,t){let{gen:r,data:n,opts:i}=e,s=aA(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,nA.schemaHasRulesForType)(e,t[0]));if(a){let c=Ip(t,n,i.strictNumbers,Eo.Wrong);r.if(c,()=>{s.length?cA(e,t,s):Cp(e)})}return a}o(sA,"coerceAndCheckDataType");St.coerceAndCheckDataType=sA;var Ub=new Set(["string","number","integer","boolean","null"]);function aA(e,t){return t?e.filter(r=>Ub.has(r)||t==="array"&&r==="array"):[]}o(aA,"coerceToTypes");function cA(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,ce._)`typeof ${i}`),c=n.let("coerced",(0,ce._)`undefined`);s.coerceTypes==="array"&&n.if((0,ce._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,ce._)`${i}[0]`).assign(a,(0,ce._)`typeof ${i}`).if(Ip(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,ce._)`${c} !== undefined`);for(let l of r)(Ub.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),Cp(e),n.endIf(),n.if((0,ce._)`${c} !== undefined`,()=>{n.assign(i,c),uA(e,c)});function u(l){switch(l){case"string":n.elseIf((0,ce._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,ce._)`"" + ${i}`).elseIf((0,ce._)`${i} === null`).assign(c,(0,ce._)`""`);return;case"number":n.elseIf((0,ce._)`${a} == "boolean" || ${i} === null
8
8
  || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,ce._)`+${i}`);return;case"integer":n.elseIf((0,ce._)`${a} === "boolean" || ${i} === null
9
9
  || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,(0,ce._)`+${i}`);return;case"boolean":n.elseIf((0,ce._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf((0,ce._)`${i} === "true" || ${i} === 1`).assign(c,!0);return;case"null":n.elseIf((0,ce._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(c,null);return;case"array":n.elseIf((0,ce._)`${a} === "string" || ${a} === "number"
10
- || ${a} === "boolean" || ${i} === null`).assign(c,(0,ce._)`[${i}]`)}}o(u,"coerceSpecificType")}o(tA,"coerceData");function rA({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ce._)`${t} !== undefined`,()=>e.assign((0,ce._)`${t}[${r}]`,n))}o(rA,"assignParentData");function Ep(e,t,r,n=Oo.Correct){let i=n===Oo.Correct?ce.operators.EQ:ce.operators.NEQ,s;switch(e){case"null":return(0,ce._)`${t} ${i} null`;case"array":s=(0,ce._)`Array.isArray(${t})`;break;case"object":s=(0,ce._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,ce._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,ce._)`typeof ${t} ${i} ${e}`}return n===Oo.Correct?s:(0,ce.not)(s);function a(c=ce.nil){return(0,ce.and)((0,ce._)`typeof ${t} == "number"`,c,r?(0,ce._)`isFinite(${t})`:ce.nil)}}o(Ep,"checkDataType");St.checkDataType=Ep;function xp(e,t,r,n){if(e.length===1)return Ep(e[0],t,r,n);let i,s=(0,Db.toHash)(e);if(s.array&&s.object){let a=(0,ce._)`typeof ${t} != "object"`;i=s.null?a:(0,ce._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=ce.nil;s.number&&delete s.integer;for(let a in s)i=(0,ce.and)(i,Ep(a,t,r,n));return i}o(xp,"checkDataTypes");St.checkDataTypes=xp;var nA={message:o(({schema:e})=>`must be ${e}`,"message"),params:o(({schema:e,schemaValue:t})=>typeof e=="string"?(0,ce._)`{type: ${e}}`:(0,ce._)`{type: ${t}}`,"params")};function $p(e){let t=iA(e);(0,Qw.reportError)(t,nA)}o($p,"reportTypeError");St.reportTypeError=$p;function iA(e){let{gen:t,data:r,schema:n}=e,i=(0,Db.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(iA,"getTypeErrorContext")});var Hb=v(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.assignDefaults=void 0;var Po=se(),oA=he();function sA(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)Vb(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>Vb(e,s,i.default))}o(sA,"assignDefaults");kc.assignDefaults=sA;function Vb(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,Po._)`${s}${(0,Po.getProperty)(t)}`;if(i){(0,oA.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,Po._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,Po._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,Po._)`${c} = ${(0,Po.stringify)(r)}`)}o(Vb,"assignDefault")});var pr=v(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.validateUnion=Ee.validateArray=Ee.usePattern=Ee.callValidateCode=Ee.schemaProperties=Ee.allSchemaProperties=Ee.noPropertyInData=Ee.propertyInData=Ee.isOwnProperty=Ee.hasPropFunc=Ee.reportMissingProp=Ee.checkMissingProp=Ee.checkReportMissingProp=void 0;var je=se(),wp=he(),In=fr(),aA=he();function cA(e,t){let{gen:r,data:n,it:i}=e;r.if(Ip(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,je._)`${t}`},!0),e.error()})}o(cA,"checkReportMissingProp");Ee.checkReportMissingProp=cA;function uA({gen:e,data:t,it:{opts:r}},n,i){return(0,je.or)(...n.map(s=>(0,je.and)(Ip(e,t,s,r.ownProperties),(0,je._)`${i} = ${s}`)))}o(uA,"checkMissingProp");Ee.checkMissingProp=uA;function lA(e,t){e.setParams({missingProperty:t},!0),e.error()}o(lA,"reportMissingProp");Ee.reportMissingProp=lA;function Bb(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,je._)`Object.prototype.hasOwnProperty`})}o(Bb,"hasPropFunc");Ee.hasPropFunc=Bb;function Ap(e,t,r){return(0,je._)`${Bb(e)}.call(${t}, ${r})`}o(Ap,"isOwnProperty");Ee.isOwnProperty=Ap;function fA(e,t,r,n){let i=(0,je._)`${t}${(0,je.getProperty)(r)} !== undefined`;return n?(0,je._)`${i} && ${Ap(e,t,r)}`:i}o(fA,"propertyInData");Ee.propertyInData=fA;function Ip(e,t,r,n){let i=(0,je._)`${t}${(0,je.getProperty)(r)} === undefined`;return n?(0,je.or)(i,(0,je.not)(Ap(e,t,r))):i}o(Ip,"noPropertyInData");Ee.noPropertyInData=Ip;function Ub(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(Ub,"allSchemaProperties");Ee.allSchemaProperties=Ub;function pA(e,t){return Ub(t).filter(r=>!(0,wp.alwaysValidSchema)(e,t[r]))}o(pA,"schemaProperties");Ee.schemaProperties=pA;function dA({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let p=l?(0,je._)`${e}, ${t}, ${n}${i}`:t,f=[[In.default.instancePath,(0,je.strConcat)(In.default.instancePath,s)],[In.default.parentData,a.parentData],[In.default.parentDataProperty,a.parentDataProperty],[In.default.rootData,In.default.rootData]];a.opts.dynamicRef&&f.push([In.default.dynamicAnchors,In.default.dynamicAnchors]);let d=(0,je._)`${p}, ${r.object(...f)}`;return u!==je.nil?(0,je._)`${c}.call(${u}, ${d})`:(0,je._)`${c}(${d})`}o(dA,"callValidateCode");Ee.callValidateCode=dA;var hA=(0,je._)`new RegExp`;function mA({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,je._)`${i.code==="new RegExp"?hA:(0,aA.useFunc)(e,i)}(${r}, ${n})`})}o(mA,"usePattern");Ee.usePattern=mA;function gA(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(s,!0),a(()=>t.break()),s;function a(c){let u=t.const("len",(0,je._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:wp.Type.Num},s),t.if((0,je.not)(s),c)})}o(a,"validateItems")}o(gA,"validateArray");Ee.validateArray=gA;function yA(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,wp.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},c);t.assign(a,(0,je._)`${a} || ${c}`),e.mergeValidEvaluated(p,c)||t.if((0,je.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(yA,"validateUnion");Ee.validateUnion=yA});var Zb=v(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.validateKeywordUsage=Br.validSchemaType=Br.funcKeywordCode=Br.macroKeywordCode=void 0;var At=se(),wi=fr(),bA=pr(),vA=Ns();function _A(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=zb(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:At.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(_A,"macroKeywordCode");Br.macroKeywordCode=_A;function SA(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;PA(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,p=zb(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)b(),t.modifying&&Gb(e),g(()=>e.error());else{let E=t.async?h():y();t.modifying&&Gb(e),g(()=>OA(e,E))}}o(d,"validateKeyword");function h(){let E=n.let("ruleErrs",null);return n.try(()=>b((0,At._)`await `),$=>n.assign(f,!1).if((0,At._)`${$} instanceof ${u.ValidationError}`,()=>n.assign(E,(0,At._)`${$}.errors`),()=>n.throw($))),E}o(h,"validateAsync");function y(){let E=(0,At._)`${p}.errors`;return n.assign(E,null),b(At.nil),E}o(y,"validateSync");function b(E=t.async?(0,At._)`await `:At.nil){let $=u.opts.passContext?wi.default.this:wi.default.self,T=!("compile"in t&&!c||t.schema===!1);n.assign(f,(0,At._)`${E}${(0,bA.callValidateCode)(e,p,$,T)}`,t.modifying)}o(b,"assignValid");function g(E){var $;n.if((0,At.not)(($=t.valid)!==null&&$!==void 0?$:f),E)}o(g,"reportErrs")}o(SA,"funcKeywordCode");Br.funcKeywordCode=SA;function Gb(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,At._)`${n.parentData}[${n.parentDataProperty}]`))}o(Gb,"modifyData");function OA(e,t){let{gen:r}=e;r.if((0,At._)`Array.isArray(${t})`,()=>{r.assign(wi.default.vErrors,(0,At._)`${wi.default.vErrors} === null ? ${t} : ${wi.default.vErrors}.concat(${t})`).assign(wi.default.errors,(0,At._)`${wi.default.vErrors}.length`),(0,vA.extendErrors)(e)},()=>e.error())}o(OA,"addErrs");function PA({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(PA,"checkAsyncKeyword");function zb(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,At.stringify)(r)})}o(zb,"useKeyword");function EA(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}o(EA,"validSchemaType");Br.validSchemaType=EA;function xA({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}o(xA,"validateKeywordUsage");Br.validateKeywordUsage=xA});var Kb=v(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.extendSubschemaMode=Cn.extendSubschemaData=Cn.getSubschema=void 0;var Ur=se(),Wb=he();function $A(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,Ur._)`${e.schemaPath}${(0,Ur.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,Ur._)`${e.schemaPath}${(0,Ur.getProperty)(t)}${(0,Ur.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Wb.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}o($A,"getSubschema");Cn.getSubschema=$A;function wA(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=c.let("data",(0,Ur._)`${t.data}${(0,Ur.getProperty)(r)}`,!0);u(d),e.errorPath=(0,Ur.str)`${l}${(0,Wb.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,Ur._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Ur.Name?i:c.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);function u(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}o(u,"dataContextProps")}o(wA,"extendSubschemaData");Cn.extendSubschemaData=wA;function AA(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}o(AA,"extendSubschemaMode");Cn.extendSubschemaMode=AA});var Cp=v((O7,Yb)=>{"use strict";Yb.exports=o(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var a=s[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var Jb=v((E7,Qb)=>{"use strict";var Tn=Qb.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(){};qc(t,n,i,e,"",e)};Tn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Tn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Tn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Tn.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 qc(e,t,r,n,i,s,a,c,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,c,u,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in Tn.arrayKeywords)for(var d=0;d<f.length;d++)qc(e,t,r,f[d],i+"/"+p+"/"+d,s,i,p,n,d)}else if(p in Tn.propsKeywords){if(f&&typeof f=="object")for(var h in f)qc(e,t,r,f[h],i+"/"+p+"/"+IA(h),s,i,p,n,h)}else(p in Tn.keywords||e.allKeys&&!(p in Tn.skipKeywords))&&qc(e,t,r,f,i+"/"+p,s,i,p,n)}r(n,i,s,a,c,u,l)}}o(qc,"_traverse");function IA(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(IA,"escapeJsonPtr")});var Ms=v(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.getSchemaRefs=kt.resolveUrl=kt.normalizeId=kt._getFullPath=kt.getFullPath=kt.inlineRef=void 0;var CA=he(),TA=Cp(),RA=Jb(),NA=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function jA(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Tp(e):t?Xb(e)<=t:!1}o(jA,"inlineRef");kt.inlineRef=jA;var MA=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Tp(e){for(let t in e){if(MA.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Tp)||typeof r=="object"&&Tp(r))return!0}return!1}o(Tp,"hasRef");function Xb(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!NA.has(r)&&(typeof e[r]=="object"&&(0,CA.eachItem)(e[r],n=>t+=Xb(n)),t===1/0))return 1/0}return t}o(Xb,"countKeys");function e0(e,t="",r){r!==!1&&(t=Eo(t));let n=e.parse(t);return t0(e,n)}o(e0,"getFullPath");kt.getFullPath=e0;function t0(e,t){return e.serialize(t).split("#")[0]+"#"}o(t0,"_getFullPath");kt._getFullPath=t0;var kA=/#\/?$/;function Eo(e){return e?e.replace(kA,""):""}o(Eo,"normalizeId");kt.normalizeId=Eo;function qA(e,t,r){return r=Eo(r),e.resolve(t,r)}o(qA,"resolveUrl");kt.resolveUrl=qA;var DA=/^[a-z_][-a-z0-9._]*$/i;function LA(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=Eo(e[r]||t),s={"":i},a=e0(n,i,!1),c={},u=new Set;return RA(e,{allKeys:!0},(f,d,h,y)=>{if(y===void 0)return;let b=a+d,g=s[y];typeof f[r]=="string"&&(g=E.call(this,f[r])),$.call(this,f.$anchor),$.call(this,f.$dynamicAnchor),s[d]=g;function E(T){let I=this.opts.uriResolver.resolve;if(T=Eo(g?I(g,T):T),u.has(T))throw p(T);u.add(T);let C=this.refs[T];return typeof C=="string"&&(C=this.refs[C]),typeof C=="object"?l(f,C.schema,T):T!==Eo(b)&&(T[0]==="#"?(l(f,c[T],T),c[T]=f):this.refs[T]=b),T}o(E,"addRef");function $(T){if(typeof T=="string"){if(!DA.test(T))throw new Error(`invalid anchor "${T}"`);E.call(this,`#${T}`)}}o($,"addAnchor")}),c;function l(f,d,h){if(d!==void 0&&!TA(f,d))throw p(h)}o(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}o(p,"ambiguos")}o(LA,"getSchemaRefs");kt.getSchemaRefs=LA});var Ds=v(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.getData=Rn.KeywordCxt=Rn.validateFunctionCode=void 0;var s0=Mb(),r0=js(),Np=Pp(),Dc=js(),FA=Hb(),qs=Zb(),Rp=Kb(),W=se(),ie=fr(),VA=Ms(),ln=he(),ks=Ns();function HA(e){if(u0(e)&&(l0(e),c0(e))){GA(e);return}a0(e,()=>(0,s0.topBoolOrEmptySchema)(e))}o(HA,"validateFunctionCode");Rn.validateFunctionCode=HA;function a0({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,W._)`${ie.default.data}, ${ie.default.valCxt}`,n.$async,()=>{e.code((0,W._)`"use strict"; ${n0(r,i)}`),UA(e,i),e.code(s)}):e.func(t,(0,W._)`${ie.default.data}, ${BA(i)}`,n.$async,()=>e.code(n0(r,i)).code(s))}o(a0,"validateFunction");function BA(e){return(0,W._)`{${ie.default.instancePath}="", ${ie.default.parentData}, ${ie.default.parentDataProperty}, ${ie.default.rootData}=${ie.default.data}${e.dynamicRef?(0,W._)`, ${ie.default.dynamicAnchors}={}`:W.nil}}={}`}o(BA,"destructureValCxt");function UA(e,t){e.if(ie.default.valCxt,()=>{e.var(ie.default.instancePath,(0,W._)`${ie.default.valCxt}.${ie.default.instancePath}`),e.var(ie.default.parentData,(0,W._)`${ie.default.valCxt}.${ie.default.parentData}`),e.var(ie.default.parentDataProperty,(0,W._)`${ie.default.valCxt}.${ie.default.parentDataProperty}`),e.var(ie.default.rootData,(0,W._)`${ie.default.valCxt}.${ie.default.rootData}`),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,W._)`${ie.default.valCxt}.${ie.default.dynamicAnchors}`)},()=>{e.var(ie.default.instancePath,(0,W._)`""`),e.var(ie.default.parentData,(0,W._)`undefined`),e.var(ie.default.parentDataProperty,(0,W._)`undefined`),e.var(ie.default.rootData,ie.default.data),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,W._)`{}`)})}o(UA,"destructureValCxtES5");function GA(e){let{schema:t,opts:r,gen:n}=e;a0(e,()=>{r.$comment&&t.$comment&&p0(e),YA(e),n.let(ie.default.vErrors,null),n.let(ie.default.errors,0),r.unevaluated&&zA(e),f0(e),XA(e)})}o(GA,"topSchemaObjCode");function zA(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,W._)`${r}.evaluated`),t.if((0,W._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,W._)`${e.evaluated}.props`,(0,W._)`undefined`)),t.if((0,W._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,W._)`${e.evaluated}.items`,(0,W._)`undefined`))}o(zA,"resetEvaluated");function n0(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,W._)`/*# sourceURL=${r} */`:W.nil}o(n0,"funcSourceUrl");function ZA(e,t){if(u0(e)&&(l0(e),c0(e))){WA(e,t);return}(0,s0.boolOrEmptySchema)(e,t)}o(ZA,"subschemaCode");function c0({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}o(c0,"schemaCxtHasRules");function u0(e){return typeof e.schema!="boolean"}o(u0,"isSchemaObj");function WA(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&p0(e),QA(e),JA(e);let s=n.const("_errs",ie.default.errors);f0(e,s),n.var(t,(0,W._)`${s} === ${ie.default.errors}`)}o(WA,"subSchemaObjCode");function l0(e){(0,ln.checkUnknownRules)(e),KA(e)}o(l0,"checkKeywords");function f0(e,t){if(e.opts.jtd)return i0(e,[],!1,t);let r=(0,r0.getSchemaTypes)(e.schema),n=(0,r0.coerceAndCheckDataType)(e,r);i0(e,r,!n,t)}o(f0,"typeAndKeywords");function KA(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,ln.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(KA,"checkRefsAndKeywords");function YA(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,ln.checkStrictMode)(e,"default is ignored in the schema root")}o(YA,"checkNoDefault");function QA(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,VA.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(QA,"updateContext");function JA(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(JA,"checkAsyncSchema");function p0({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,W._)`${ie.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,W.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,W._)`${ie.default.self}.opts.$comment(${s}, ${a}, ${c}.schema)`)}}o(p0,"commentKeyword");function XA(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,W._)`${ie.default.errors} === 0`,()=>t.return(ie.default.data),()=>t.throw((0,W._)`new ${i}(${ie.default.vErrors})`)):(t.assign((0,W._)`${n}.errors`,ie.default.vErrors),s.unevaluated&&eI(e),t.return((0,W._)`${ie.default.errors} === 0`))}o(XA,"returnResults");function eI({gen:e,evaluated:t,props:r,items:n}){r instanceof W.Name&&e.assign((0,W._)`${t}.props`,r),n instanceof W.Name&&e.assign((0,W._)`${t}.items`,n)}o(eI,"assignEvaluated");function i0(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:c,opts:u,self:l}=e,{RULES:p}=l;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,ln.schemaHasRulesButRef)(s,p))){i.block(()=>h0(e,"$ref",p.all.$ref.definition));return}u.jtd||tI(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,Np.shouldUseGroup)(s,d)&&(d.type?(i.if((0,Dc.checkDataType)(d.type,a,u.strictNumbers)),o0(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Dc.reportTypeError)(e)),i.endIf()):o0(e,d),c||i.if((0,W._)`${ie.default.errors} === ${n||0}`))}o(f,"groupKeywords")}o(i0,"schemaKeywords");function o0(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,FA.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,Np.shouldUseRule)(n,s)&&h0(e,s.keyword,s.definition,t.type)})}o(o0,"iterateKeywords");function tI(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(rI(e,t),e.opts.allowUnionTypes||nI(e,t),iI(e,e.dataTypes))}o(tI,"checkStrictTypes");function rI(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{d0(e.dataTypes,r)||jp(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),sI(e,t)}}o(rI,"checkContextTypes");function nI(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&jp(e,"use allowUnionTypes to allow union type keyword")}o(nI,"checkMultipleTypes");function iI(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Np.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>oI(t,a))&&jp(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(iI,"checkKeywordTypes");function oI(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(oI,"hasApplicableType");function d0(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(d0,"includesType");function sI(e,t){let r=[];for(let n of e.dataTypes)d0(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(sI,"narrowSchemaTypes");function jp(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,ln.checkStrictMode)(e,t,e.opts.strictTypes)}o(jp,"strictTypesError");var Mp=class Mp{constructor(t,r,n){if((0,qs.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,ln.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",m0(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,qs.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,W.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,W.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,W._)`${r} !== undefined && (${(0,W.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?ks.reportExtraError:ks.reportError)(this,this.def.error,r)}$dataError(){(0,ks.reportError)(this,this.def.$dataError||ks.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ks.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=W.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=W.nil,r=W.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,W.or)((0,W._)`${i} === undefined`,r)),t!==W.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==W.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,W.or)(a(),c());function a(){if(n.length){if(!(r instanceof W.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,W._)`${(0,Dc.checkDataTypes)(u,r,s.opts.strictNumbers,Dc.DataType.Wrong)}`}return W.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,W._)`!${u}(${r})`}return W.nil}}subschema(t,r){let n=(0,Rp.getSubschema)(this.it,t);(0,Rp.extendSubschemaData)(n,this.it,t),(0,Rp.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return ZA(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=ln.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=ln.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,W.Name)),!0}};o(Mp,"KeywordCxt");var Lc=Mp;Rn.KeywordCxt=Lc;function h0(e,t,r,n){let i=new Lc(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,qs.funcKeywordCode)(i,r):"macro"in r?(0,qs.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,qs.funcKeywordCode)(i,r)}o(h0,"keywordCode");var aI=/^\/(?:[^~]|~0|~1)*$/,cI=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function m0(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return ie.default.rootData;if(e[0]==="/"){if(!aI.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=ie.default.rootData}else{let l=cI.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(u("property/index",p));return n[t-p]}if(p>t)throw new Error(u("data",p));if(s=r[t-p],!i)return s}let a=s,c=i.split("/");for(let l of c)l&&(s=(0,W._)`${s}${(0,W.getProperty)((0,ln.unescapeJsonPointer)(l))}`,a=(0,W._)`${a} && ${s}`);return a;function u(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}o(m0,"getData");Rn.getData=m0});var Fc=v(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});var Dp=class Dp extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(Dp,"ValidationError");var kp=Dp;qp.default=kp});var Ls=v(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var Lp=Ms(),Hp=class Hp extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Lp.resolveUrl)(t,r,n),this.missingSchema=(0,Lp.normalizeId)((0,Lp.getFullPath)(t,this.missingRef))}};o(Hp,"MissingRefError");var Fp=Hp;Vp.default=Fp});var Fs=v(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.resolveSchema=dr.getCompilingSchema=dr.resolveRef=dr.compileSchema=dr.SchemaEnv=void 0;var $r=se(),uI=Fc(),Ai=fr(),wr=Ms(),g0=he(),lI=Ds(),Gp=class Gp{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,wr.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};o(Gp,"SchemaEnv");var xo=Gp;dr.SchemaEnv=xo;function Up(e){let t=y0.call(this,e);if(t)return t;let r=(0,wr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new $r.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:uI.default,code:(0,$r._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:Ai.default.data,parentData:Ai.default.parentData,parentDataProperty:Ai.default.parentDataProperty,dataNames:[Ai.default.data],dataPathArr:[$r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,$r.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:$r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,$r._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,lI.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(Ai.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${Ai.default.self}`,`${Ai.default.scope}`,p)(this,this.scope.get());if(this.scope.value(u,{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:u,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:y,items:b}=l;h.evaluated={props:y instanceof $r.Name?void 0:y,items:b instanceof $r.Name?void 0:b,dynamicProps:y instanceof $r.Name,dynamicItems:b instanceof $r.Name},h.source&&(h.source.evaluated=(0,$r.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)}}o(Up,"compileSchema");dr.compileSchema=Up;function fI(e,t,r){var n;r=(0,wr.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=hI.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(s=new xo({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=pI.call(this,s)}o(fI,"resolveRef");dr.resolveRef=fI;function pI(e){return(0,wr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Up.call(this,e)}o(pI,"inlineOrCompile");function y0(e){for(let t of this._compilations)if(dI(t,e))return t}o(y0,"getCompilingSchema");dr.getCompilingSchema=y0;function dI(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(dI,"sameSchemaEnv");function hI(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Vc.call(this,e,t)}o(hI,"resolve");function Vc(e,t){let r=this.opts.uriResolver.parse(t),n=(0,wr._getFullPath)(this.opts.uriResolver,r),i=(0,wr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Bp.call(this,r,e);let s=(0,wr.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=Vc.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Bp.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Up.call(this,a),s===(0,wr.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,wr.resolveUrl)(this.opts.uriResolver,i,l)),new xo({schema:c,schemaId:u,root:e,baseId:i})}return Bp.call(this,r,a)}}o(Vc,"resolveSchema");dr.resolveSchema=Vc;var mI=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Bp(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let c of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let u=r[(0,g0.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!mI.has(c)&&l&&(t=(0,wr.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,g0.schemaHasRulesButRef)(r,this.RULES)){let c=(0,wr.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Vc.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new xo({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(Bp,"getJsonPointer")});var b0=v((k7,gI)=>{gI.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 _0=v((q7,v0)=>{"use strict";var yI={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};v0.exports={HEX:yI}});var A0=v((D7,w0)=>{"use strict";var{HEX:bI}=_0();function E0(e){if($0(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:_I(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(E0,"normalizeIPv4");function zp(e,t=!1){let r="",n=!0;for(let i of e){if(bI[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(zp,"stringArrayToHexStripped");function vI(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,c=!1;function u(){if(i.length){if(s===!1){let l=zp(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}o(u,"consume");for(let l=0;l<e.length;l++){let p=e[l];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(c=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(p==="%"){if(!u())break;s=!0}else{i.push(p);continue}}return i.length&&(s?r.zone=i.join(""):c?n.push(i.join("")):n.push(zp(i))),r.address=n.join(""),r}o(vI,"getIPV6");function x0(e,t={}){if($0(e,":")<2)return{host:e,isIPV6:!1};let r=vI(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}o(x0,"normalizeIPv6");function _I(e,t){let r="",n=!0,i=e.length;for(let s=0;s<i;s++){let a=e[s];a==="0"&&n?(s+1<=i&&e[s+1]===t||s+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}o(_I,"stripLeadingZeros");function $0(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o($0,"findToken");var S0=/^\.\.?\//u,O0=/^\/\.(?:\/|$)/u,P0=/^\/\.\.(?:\/|$)/u,SI=/^\/?(?:.|\n)*?(?=\/|$)/u;function OI(e){let t=[];for(;e.length;)if(e.match(S0))e=e.replace(S0,"");else if(e.match(O0))e=e.replace(O0,"/");else if(e.match(P0))e=e.replace(P0,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(SI);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}o(OI,"removeDotSegments");function PI(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}o(PI,"normalizeComponentEncoding");function EI(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=E0(n);if(i.isIPV4)n=i.host;else{let s=x0(i.host,{isIPV4:!1});s.isIPV6===!0?n=`[${s.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}o(EI,"recomposeAuthority");w0.exports={recomposeAuthority:EI,normalizeComponentEncoding:PI,removeDotSegments:OI,normalizeIPv4:E0,normalizeIPv6:x0,stringArrayToHexStripped:zp}});var j0=v((F7,N0)=>{"use strict";var xI=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,$I=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function I0(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(I0,"isSecure");function C0(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(C0,"httpParse");function T0(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}o(T0,"httpSerialize");function wI(e){return e.secure=I0(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(wI,"wsParse");function AI(e){if((e.port===(I0(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}o(AI,"wsSerialize");function II(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match($I);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,s=Zp[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(II,"urnParse");function CI(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=Zp[i];s&&(e=s.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}o(CI,"urnSerialize");function TI(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!xI.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(TI,"urnuuidParse");function RI(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(RI,"urnuuidSerialize");var R0={scheme:"http",domainHost:!0,parse:C0,serialize:T0},NI={scheme:"https",domainHost:R0.domainHost,parse:C0,serialize:T0},Hc={scheme:"ws",domainHost:!0,parse:wI,serialize:AI},jI={scheme:"wss",domainHost:Hc.domainHost,parse:Hc.parse,serialize:Hc.serialize},MI={scheme:"urn",parse:II,serialize:CI,skipNormalize:!0},kI={scheme:"urn:uuid",parse:TI,serialize:RI,skipNormalize:!0},Zp={http:R0,https:NI,ws:Hc,wss:jI,urn:MI,"urn:uuid":kI};N0.exports=Zp});var k0=v((H7,Uc)=>{"use strict";var{normalizeIPv6:qI,normalizeIPv4:DI,removeDotSegments:Vs,recomposeAuthority:LI,normalizeComponentEncoding:Bc}=A0(),Wp=j0();function FI(e,t){return typeof e=="string"?e=Gr(fn(e,t),t):typeof e=="object"&&(e=fn(Gr(e,t),t)),e}o(FI,"normalize");function VI(e,t,r){let n=Object.assign({scheme:"null"},r),i=M0(fn(e,n),fn(t,n),n,!0);return Gr(i,{...n,skipEscape:!0})}o(VI,"resolve");function M0(e,t,r,n){let i={};return n||(e=fn(Gr(e,r),r),t=fn(Gr(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=Vs(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=Vs(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=Vs(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=Vs(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}o(M0,"resolveComponents");function HI(e,t,r){return typeof e=="string"?(e=unescape(e),e=Gr(Bc(fn(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Gr(Bc(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Gr(Bc(fn(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Gr(Bc(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(HI,"equal");function Gr(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],s=Wp[(n.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=LI(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let c=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(c=Vs(c)),a===void 0&&(c=c.replace(/^\/\//u,"/%2F")),i.push(c)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}o(Gr,"serialize");var BI=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function UI(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||BI[t])return!0;return!1}o(UI,"nonSimpleDomain");var GI=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function fn(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,s=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(GI);if(a){if(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5]),n.host){let u=DI(n.host);if(u.isIPV4===!1){let l=qI(u.host,{isIPV4:!1});n.host=l.host.toLowerCase(),s=l.isIPV6}else n.host=u.host,s=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=Wp[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&UI(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!c||c&&!c.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}o(fn,"parse");var Kp={SCHEMES:Wp,normalize:FI,resolve:VI,resolveComponents:M0,equal:HI,serialize:Gr,parse:fn};Uc.exports=Kp;Uc.exports.default=Kp;Uc.exports.fastUri=Kp});var D0=v(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});var q0=k0();q0.code='require("ajv/dist/runtime/uri").default';Yp.default=q0});var wo=v(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.CodeGen=gt.Name=gt.nil=gt.stringify=gt.str=gt._=gt.KeywordCxt=void 0;var zI=Ds();Object.defineProperty(gt,"KeywordCxt",{enumerable:!0,get:o(function(){return zI.KeywordCxt},"get")});var $o=se();Object.defineProperty(gt,"_",{enumerable:!0,get:o(function(){return $o._},"get")});Object.defineProperty(gt,"str",{enumerable:!0,get:o(function(){return $o.str},"get")});Object.defineProperty(gt,"stringify",{enumerable:!0,get:o(function(){return $o.stringify},"get")});Object.defineProperty(gt,"nil",{enumerable:!0,get:o(function(){return $o.nil},"get")});Object.defineProperty(gt,"Name",{enumerable:!0,get:o(function(){return $o.Name},"get")});Object.defineProperty(gt,"CodeGen",{enumerable:!0,get:o(function(){return $o.CodeGen},"get")});var ZI=Fc(),B0=Ls(),WI=Op(),Hs=Fs(),KI=se(),Bs=Ms(),Gc=js(),Jp=he(),L0=b0(),YI=D0(),U0=o((e,t)=>new RegExp(e,t),"defaultRegExp");U0.code="new RegExp";var QI=["removeAdditional","useDefaults","coerceTypes"],JI=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),XI={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."},eC={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},F0=200;function tC(e){var t,r,n,i,s,a,c,u,l,p,f,d,h,y,b,g,E,$,T,I,C,ae,J,Be,xe;let X=e.strict,M=(t=e.code)===null||t===void 0?void 0:t.optimize,R=M===!0||M===void 0?1:M||0,D=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:U0,Y=(i=e.uriResolver)!==null&&i!==void 0?i:YI.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:X)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:X)!==null&&u!==void 0?u:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:X)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:X)!==null&&d!==void 0?d:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:X)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:R,regExp:D}:{optimize:R,regExp:D},loopRequired:(b=e.loopRequired)!==null&&b!==void 0?b:F0,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:F0,meta:(E=e.meta)!==null&&E!==void 0?E:!0,messages:($=e.messages)!==null&&$!==void 0?$:!0,inlineRefs:(T=e.inlineRefs)!==null&&T!==void 0?T:!0,schemaId:(I=e.schemaId)!==null&&I!==void 0?I:"$id",addUsedSchema:(C=e.addUsedSchema)!==null&&C!==void 0?C:!0,validateSchema:(ae=e.validateSchema)!==null&&ae!==void 0?ae:!0,validateFormats:(J=e.validateFormats)!==null&&J!==void 0?J:!0,unicodeRegExp:(Be=e.unicodeRegExp)!==null&&Be!==void 0?Be:!0,int32range:(xe=e.int32range)!==null&&xe!==void 0?xe:!0,uriResolver:Y}}o(tC,"requiredOptions");var Xp=class Xp{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...tC(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new KI.ValueScope({scope:{},prefixes:JI,es5:r,lines:n}),this.logger=aC(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,WI.getRules)(),V0.call(this,XI,t,"NOT SUPPORTED"),V0.call(this,eC,t,"DEPRECATED","warn"),this._metaOpts=oC.call(this),t.formats&&nC.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&iC.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),rC.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=L0;n==="id"&&(i={...L0},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 s.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function s(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 B0.default))throw f;return c.call(this,f),await u.call(this,f.missingSchema),a.call(this,p)}}function c({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function u(p){let f=await l.call(this,p);this.refs[p]||await s.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 s;if(typeof t=="object"){let{schemaId:a}=this.opts;if(s=t[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,Bs.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(t){let r;for(;typeof(r=H0.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new Hs.SchemaEnv({schema:{},schemaId:n});if(r=Hs.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=H0.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,Bs.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(uC.call(this,n,r),!r)return(0,Jp.eachItem)(n,s=>Qp.call(this,s)),this;fC.call(this,r);let i={...r,type:(0,Gc.getJSONTypes)(r.type),schemaType:(0,Gc.getJSONTypes)(r.schemaType)};return(0,Jp.eachItem)(n,i.type.length===0?s=>Qp.call(this,s,i):s=>i.type.forEach(a=>Qp.call(this,s,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let s=i.split("/").slice(1),a=t;for(let c of s)a=a[c];for(let c in n){let u=n[c];if(typeof u!="object")continue;let{$data:l}=u.definition,p=a[c];l&&p&&(a[c]=G0(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,s=this.opts.addUsedSchema){let a,{schemaId:c}=this.opts;if(typeof t=="object")a=t[c];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(t);if(u!==void 0)return u;n=(0,Bs.normalizeId)(a||n);let l=Bs.getSchemaRefs.call(this,t,n);return u=new Hs.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Hs.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{Hs.compileSchema.call(this,t)}finally{this.opts=r}}};o(Xp,"Ajv");var Us=Xp;Us.ValidationError=ZI.default;Us.MissingRefError=B0.default;gt.default=Us;function V0(e,t,r,n="error"){for(let i in e){let s=i;s in t&&this.logger[n](`${r}: option ${i}. ${e[s]}`)}}o(V0,"checkOptions");function H0(e){return e=(0,Bs.normalizeId)(e),this.schemas[e]||this.refs[e]}o(H0,"getSchEnv");function rC(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}o(rC,"addInitialSchemas");function nC(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(nC,"addInitialFormats");function iC(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}o(iC,"addInitialKeywords");function oC(){let e={...this.opts};for(let t of QI)delete e[t];return e}o(oC,"getMetaSchemaOptions");var sC={log(){},warn(){},error(){}};function aC(e){if(e===!1)return sC;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}o(aC,"getLogger");var cC=/^[a-z_$][a-z0-9_$:-]*$/i;function uC(e,t){let{RULES:r}=this;if((0,Jp.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!cC.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}o(uC,"checkKeyword");function Qp(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,a=i?s.post:s.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,Gc.getJSONTypes)(t.type),schemaType:(0,Gc.getJSONTypes)(t.schemaType)}};t.before?lC.call(this,a,c,t.before):a.rules.push(c),s.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}o(Qp,"addRule");function lC(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}o(lC,"addBeforeRule");function fC(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=G0(t)),e.validateSchema=this.compile(t,!0))}o(fC,"keywordMetaschema");var pC={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function G0(e){return{anyOf:[e,pC]}}o(G0,"schemaOrData")});var Gs=v(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.callRef=Ii.getValidate=void 0;var dC=Ls(),z0=pr(),qt=se(),Ao=fr(),Z0=Fs(),zc=he(),hC={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:c,self:u}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=Z0.resolveRef.call(u,l,i,r);if(p===void 0)throw new dC.default(n.opts.uriResolver,i,r);if(p instanceof Z0.SchemaEnv)return d(p);return h(p);function f(){if(s===l)return Zc(e,a,s,s.$async);let y=t.scopeValue("root",{ref:l});return Zc(e,(0,qt._)`${y}.validate`,l,l.$async)}function d(y){let b=W0(e,y);Zc(e,b,y,y.$async)}function h(y){let b=t.scopeValue("schema",c.code.source===!0?{ref:y,code:(0,qt.stringify)(y)}:{ref:y}),g=t.name("valid"),E=e.subschema({schema:y,dataTypes:[],schemaPath:qt.nil,topSchemaRef:b,errSchemaPath:r},g);e.mergeEvaluated(E),e.ok(g)}}};function W0(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,qt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(W0,"getValidate");Ii.getValidate=W0;function Zc(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?Ao.default.this:qt.nil;n?p():f();function p(){if(!c.$async)throw new Error("async schema referenced by sync schema");let y=i.let("valid");i.try(()=>{i.code((0,qt._)`await ${(0,z0.callValidateCode)(e,t,l)}`),h(t),a||i.assign(y,!0)},b=>{i.if((0,qt._)`!(${b} instanceof ${s.ValidationError})`,()=>i.throw(b)),d(b),a||i.assign(y,!1)}),e.ok(y)}o(p,"callAsyncRef");function f(){e.result((0,z0.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}o(f,"callSyncRef");function d(y){let b=(0,qt._)`${y}.errors`;i.assign(Ao.default.vErrors,(0,qt._)`${Ao.default.vErrors} === null ? ${b} : ${Ao.default.vErrors}.concat(${b})`),i.assign(Ao.default.errors,(0,qt._)`${Ao.default.vErrors}.length`)}o(d,"addErrorsFrom");function h(y){var b;if(!s.opts.unevaluated)return;let g=(b=r==null?void 0:r.validate)===null||b===void 0?void 0:b.evaluated;if(s.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(s.props=zc.mergeEvaluated.props(i,g.props,s.props));else{let E=i.var("props",(0,qt._)`${y}.evaluated.props`);s.props=zc.mergeEvaluated.props(i,E,s.props,qt.Name)}if(s.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(s.items=zc.mergeEvaluated.items(i,g.items,s.items));else{let E=i.var("items",(0,qt._)`${y}.evaluated.items`);s.items=zc.mergeEvaluated.items(i,E,s.items,qt.Name)}}o(h,"addEvaluatedFrom")}o(Zc,"callRef");Ii.callRef=Zc;Ii.default=hC});var K0=v(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});var mC=Gs(),gC=["$schema","id","$defs",{keyword:"$comment"},"definitions",mC.default];ed.default=gC});var Y0=v(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});var td=wo(),yC=se(),Nn=yC.operators,rd={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Nn.LTE,fail:Nn.GT},{okStr:"<",ok:Nn.LT,fail:Nn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Nn.GTE,fail:Nn.LT},{okStr:">",ok:Nn.GT,fail:Nn.LTE}]}},bC={message:o(e=>td.str`must be ${nd(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>td._`{comparison: ${nd(e).okStr}, limit: ${e.schemaCode}}`,"params")},vC={keyword:Object.keys(rd),type:"number",schemaType:"number",$data:!0,error:bC,code(e){let{data:t,schemaCode:r}=e;e.fail$data(td._`${t} ${nd(e).fail} ${r} || isNaN(${t})`)}};function nd(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[rd[r].exclusive]?1:0;return rd[r].ops[n]}o(nd,"kwdOp");id.default=vC});var J0=v(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});var Q0={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},_C={keyword:Object.keys(Q0),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Q0[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};od.default=_C});var ad=v(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});var zs=se(),SC={message:o(({schemaCode:e})=>(0,zs.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,zs._)`{multipleOf: ${e}}`,"params")},OC={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:SC,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,zs._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,zs._)`${a} !== parseInt(${a})`;e.fail$data((0,zs._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};sd.default=OC});var ev=v(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});function X0(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}o(X0,"ucs2length");cd.default=X0;X0.code='require("ajv/dist/runtime/ucs2length").default'});var ld=v(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});var Ci=se(),PC=he(),EC=ev(),xC={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Ci.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,Ci._)`{limit: ${e}}`,"params")},$C={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:xC,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?Ci.operators.GT:Ci.operators.LT,a=i.opts.unicode===!1?(0,Ci._)`${r}.length`:(0,Ci._)`${(0,PC.useFunc)(e.gen,EC.default)}(${r})`;e.fail$data((0,Ci._)`${a} ${s} ${n}`)}};ud.default=$C});var pd=v(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});var wC=pr(),Wc=se(),AC={message:o(({schemaCode:e})=>(0,Wc.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Wc._)`{pattern: ${e}}`,"params")},IC={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:AC,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,Wc._)`(new RegExp(${i}, ${a}))`:(0,wC.usePattern)(e,n);e.fail$data((0,Wc._)`!${c}.test(${t})`)}};fd.default=IC});var hd=v(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});var Zs=se(),CC={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Zs.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,Zs._)`{limit: ${e}}`,"params")},TC={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:CC,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Zs.operators.GT:Zs.operators.LT;e.fail$data((0,Zs._)`Object.keys(${r}).length ${i} ${n}`)}};dd.default=TC});var gd=v(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});var Ws=pr(),Ks=se(),RC=he(),NC={message:o(({params:{missingProperty:e}})=>(0,Ks.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,Ks._)`{missingProperty: ${e}}`,"params")},jC={keyword:"required",type:"object",schemaType:"array",$data:!0,error:NC,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:c}=a;if(!s&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?l():p(),c.strictRequired){let h=e.parentSchema.properties,{definedProperties:y}=e.it;for(let b of r)if((h==null?void 0:h[b])===void 0&&!y.has(b)){let g=a.schemaEnv.baseId+a.errSchemaPath,E=`required property "${b}" is not defined at "${g}" (strictRequired)`;(0,RC.checkStrictMode)(a,E,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(Ks.nil,f);else for(let h of r)(0,Ws.checkReportMissingProp)(e,h)}o(l,"allErrorsMode");function p(){let h=t.let("missing");if(u||s){let y=t.let("valid",!0);e.block$data(y,()=>d(h,y)),e.ok(y)}else t.if((0,Ws.checkMissingProp)(e,r,h)),(0,Ws.reportMissingProp)(e,h),t.else()}o(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,Ws.noPropertyInData)(t,i,h,c.ownProperties),()=>e.error())})}o(f,"loopAllRequired");function d(h,y){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(y,(0,Ws.propertyInData)(t,i,h,c.ownProperties)),t.if((0,Ks.not)(y),()=>{e.error(),t.break()})},Ks.nil)}o(d,"loopUntilMissing")}};md.default=jC});var bd=v(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});var Ys=se(),MC={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ys.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,Ys._)`{limit: ${e}}`,"params")},kC={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:MC,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Ys.operators.GT:Ys.operators.LT;e.fail$data((0,Ys._)`${r}.length ${i} ${n}`)}};yd.default=kC});var Kc=v(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});var tv=Cp();tv.code='require("ajv/dist/runtime/equal").default';vd.default=tv});var Od=v(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});var _d=js(),yt=se(),qC=he(),DC=Kc(),LC={message:o(({params:{i:e,j:t}})=>(0,yt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,yt._)`{i: ${e}, j: ${t}}`,"params")},FC={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:LC,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),l=s.items?(0,_d.getSchemaTypes)(s.items):[];e.block$data(u,p,(0,yt._)`${a} === false`),e.ok(u);function p(){let y=t.let("i",(0,yt._)`${r}.length`),b=t.let("j");e.setParams({i:y,j:b}),t.assign(u,!0),t.if((0,yt._)`${y} > 1`,()=>(f()?d:h)(y,b))}o(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(y=>y==="object"||y==="array")}o(f,"canOptimize");function d(y,b){let g=t.name("item"),E=(0,_d.checkDataTypes)(l,g,c.opts.strictNumbers,_d.DataType.Wrong),$=t.const("indices",(0,yt._)`{}`);t.for((0,yt._)`;${y}--;`,()=>{t.let(g,(0,yt._)`${r}[${y}]`),t.if(E,(0,yt._)`continue`),l.length>1&&t.if((0,yt._)`typeof ${g} == "string"`,(0,yt._)`${g} += "_"`),t.if((0,yt._)`typeof ${$}[${g}] == "number"`,()=>{t.assign(b,(0,yt._)`${$}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,yt._)`${$}[${g}] = ${y}`)})}o(d,"loopN");function h(y,b){let g=(0,qC.useFunc)(t,DC.default),E=t.name("outer");t.label(E).for((0,yt._)`;${y}--;`,()=>t.for((0,yt._)`${b} = ${y}; ${b}--;`,()=>t.if((0,yt._)`${g}(${r}[${y}], ${r}[${b}])`,()=>{e.error(),t.assign(u,!1).break(E)})))}o(h,"loopN2")}};Sd.default=FC});var xd=v(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var Pd=se(),VC=he(),HC=Kc(),BC={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,Pd._)`{allowedValue: ${e}}`,"params")},UC={keyword:"const",$data:!0,error:BC,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Pd._)`!${(0,VC.useFunc)(t,HC.default)}(${r}, ${i})`):e.fail((0,Pd._)`${s} !== ${r}`)}};Ed.default=UC});var wd=v($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});var Qs=se(),GC=he(),zC=Kc(),ZC={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,Qs._)`{allowedValues: ${e}}`,"params")},WC={keyword:"enum",schemaType:"array",$data:!0,error:ZC,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,u,l=o(()=>u??(u=(0,GC.useFunc)(t,zC.default)),"getEql"),p;if(c||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",s);p=(0,Qs.or)(...i.map((y,b)=>d(h,b)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",s,h=>t.if((0,Qs._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}o(f,"loopEnum");function d(h,y){let b=i[y];return typeof b=="object"&&b!==null?(0,Qs._)`${l()}(${r}, ${h}[${y}])`:(0,Qs._)`${r} === ${b}`}o(d,"equalCode")}};$d.default=WC});var rv=v(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var KC=Y0(),YC=J0(),QC=ad(),JC=ld(),XC=pd(),eT=hd(),tT=gd(),rT=bd(),nT=Od(),iT=xd(),oT=wd(),sT=[KC.default,YC.default,QC.default,JC.default,XC.default,eT.default,tT.default,rT.default,nT.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},iT.default,oT.default];Ad.default=sT});var Cd=v(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.validateAdditionalItems=void 0;var Ti=se(),Id=he(),aT={message:o(({params:{len:e}})=>(0,Ti.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Ti._)`{limit: ${e}}`,"params")},cT={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:aT,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Id.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}nv(e,n)}};function nv(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let c=r.const("len",(0,Ti._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Ti._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,Id.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,Ti._)`${c} <= ${t.length}`);r.if((0,Ti.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,p=>{e.subschema({keyword:s,dataProp:p,dataPropType:Id.Type.Num},l),a.allErrors||r.if((0,Ti.not)(l),()=>r.break())})}o(u,"validateItems")}o(nv,"validateAdditionalItems");Js.validateAdditionalItems=nv;Js.default=cT});var Td=v(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.validateTuple=void 0;var iv=se(),Yc=he(),uT=pr(),lT={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return ov(e,"additionalItems",t);r.items=!0,!(0,Yc.alwaysValidSchema)(r,t)&&e.ok((0,uT.validateArray)(e))}};function ov(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:c}=e;p(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=Yc.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,iv._)`${s}.length`);r.forEach((f,d)=>{(0,Yc.alwaysValidSchema)(c,f)||(n.if((0,iv._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function p(f){let{opts:d,errSchemaPath:h}=c,y=r.length,b=y===f.minItems&&(y===f.maxItems||f[t]===!1);if(d.strictTuples&&!b){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Yc.checkStrictMode)(c,g,d.strictTuples)}}o(p,"checkStrictTuple")}o(ov,"validateTuple");Xs.validateTuple=ov;Xs.default=lT});var sv=v(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});var fT=Td(),pT={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,fT.validateTuple)(e,"items"),"code")};Rd.default=pT});var cv=v(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});var av=se(),dT=he(),hT=pr(),mT=Cd(),gT={message:o(({params:{len:e}})=>(0,av.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,av._)`{limit: ${e}}`,"params")},yT={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:gT,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,dT.alwaysValidSchema)(n,t)&&(i?(0,mT.validateAdditionalItems)(e,i):e.ok((0,hT.validateArray)(e)))}};Nd.default=yT});var uv=v(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});var hr=se(),Qc=he(),bT={message:o(({params:{min:e,max:t}})=>t===void 0?(0,hr.str)`must contain at least ${e} valid item(s)`:(0,hr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:o(({params:{min:e,max:t}})=>t===void 0?(0,hr._)`{minContains: ${e}}`:(0,hr._)`{minContains: ${e}, maxContains: ${t}}`,"params")},vT={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:bT,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,c,{minContains:u,maxContains:l}=n;s.opts.next?(a=u===void 0?1:u,c=l):a=1;let p=t.const("len",(0,hr._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,Qc.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,Qc.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Qc.alwaysValidSchema)(s,r)){let b=(0,hr._)`${p} >= ${a}`;c!==void 0&&(b=(0,hr._)`${b} && ${p} <= ${c}`),e.pass(b);return}s.items=!0;let f=t.name("valid");c===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),c!==void 0&&t.if((0,hr._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let b=t.name("_valid"),g=t.let("count",0);h(b,()=>t.if(b,()=>y(g)))}o(d,"validateItemsWithCount");function h(b,g){t.forRange("i",0,p,E=>{e.subschema({keyword:"contains",dataProp:E,dataPropType:Qc.Type.Num,compositeRule:!0},b),g()})}o(h,"validateItems");function y(b){t.code((0,hr._)`${b}++`),c===void 0?t.if((0,hr._)`${b} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,hr._)`${b} > ${c}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,hr._)`${b} >= ${a}`,()=>t.assign(f,!0)))}o(y,"checkLimits")}};jd.default=vT});var Jc=v(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.validateSchemaDeps=zr.validatePropertyDeps=zr.error=void 0;var Md=se(),_T=he(),ea=pr();zr.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Md.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Md._)`{property: ${e},
10
+ || ${a} === "boolean" || ${i} === null`).assign(c,(0,ce._)`[${i}]`)}}o(u,"coerceSpecificType")}o(cA,"coerceData");function uA({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ce._)`${t} !== undefined`,()=>e.assign((0,ce._)`${t}[${r}]`,n))}o(uA,"assignParentData");function Ap(e,t,r,n=Eo.Correct){let i=n===Eo.Correct?ce.operators.EQ:ce.operators.NEQ,s;switch(e){case"null":return(0,ce._)`${t} ${i} null`;case"array":s=(0,ce._)`Array.isArray(${t})`;break;case"object":s=(0,ce._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,ce._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,ce._)`typeof ${t} ${i} ${e}`}return n===Eo.Correct?s:(0,ce.not)(s);function a(c=ce.nil){return(0,ce.and)((0,ce._)`typeof ${t} == "number"`,c,r?(0,ce._)`isFinite(${t})`:ce.nil)}}o(Ap,"checkDataType");St.checkDataType=Ap;function Ip(e,t,r,n){if(e.length===1)return Ap(e[0],t,r,n);let i,s=(0,Hb.toHash)(e);if(s.array&&s.object){let a=(0,ce._)`typeof ${t} != "object"`;i=s.null?a:(0,ce._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=ce.nil;s.number&&delete s.integer;for(let a in s)i=(0,ce.and)(i,Ap(a,t,r,n));return i}o(Ip,"checkDataTypes");St.checkDataTypes=Ip;var lA={message:o(({schema:e})=>`must be ${e}`,"message"),params:o(({schema:e,schemaValue:t})=>typeof e=="string"?(0,ce._)`{type: ${e}}`:(0,ce._)`{type: ${t}}`,"params")};function Cp(e){let t=fA(e);(0,iA.reportError)(t,lA)}o(Cp,"reportTypeError");St.reportTypeError=Cp;function fA(e){let{gen:t,data:r,schema:n}=e,i=(0,Hb.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(fA,"getTypeErrorContext")});var zb=v(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.assignDefaults=void 0;var Po=se(),pA=he();function dA(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)Gb(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>Gb(e,s,i.default))}o(dA,"assignDefaults");Lc.assignDefaults=dA;function Gb(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,Po._)`${s}${(0,Po.getProperty)(t)}`;if(i){(0,pA.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,Po._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,Po._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,Po._)`${c} = ${(0,Po.stringify)(r)}`)}o(Gb,"assignDefault")});var pr=v(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 je=se(),Tp=he(),Cn=fr(),hA=he();function mA(e,t){let{gen:r,data:n,it:i}=e;r.if(Rp(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,je._)`${t}`},!0),e.error()})}o(mA,"checkReportMissingProp");Pe.checkReportMissingProp=mA;function gA({gen:e,data:t,it:{opts:r}},n,i){return(0,je.or)(...n.map(s=>(0,je.and)(Rp(e,t,s,r.ownProperties),(0,je._)`${i} = ${s}`)))}o(gA,"checkMissingProp");Pe.checkMissingProp=gA;function yA(e,t){e.setParams({missingProperty:t},!0),e.error()}o(yA,"reportMissingProp");Pe.reportMissingProp=yA;function Zb(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,je._)`Object.prototype.hasOwnProperty`})}o(Zb,"hasPropFunc");Pe.hasPropFunc=Zb;function Np(e,t,r){return(0,je._)`${Zb(e)}.call(${t}, ${r})`}o(Np,"isOwnProperty");Pe.isOwnProperty=Np;function bA(e,t,r,n){let i=(0,je._)`${t}${(0,je.getProperty)(r)} !== undefined`;return n?(0,je._)`${i} && ${Np(e,t,r)}`:i}o(bA,"propertyInData");Pe.propertyInData=bA;function Rp(e,t,r,n){let i=(0,je._)`${t}${(0,je.getProperty)(r)} === undefined`;return n?(0,je.or)(i,(0,je.not)(Np(e,t,r))):i}o(Rp,"noPropertyInData");Pe.noPropertyInData=Rp;function Wb(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(Wb,"allSchemaProperties");Pe.allSchemaProperties=Wb;function vA(e,t){return Wb(t).filter(r=>!(0,Tp.alwaysValidSchema)(e,t[r]))}o(vA,"schemaProperties");Pe.schemaProperties=vA;function _A({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let p=l?(0,je._)`${e}, ${t}, ${n}${i}`:t,f=[[Cn.default.instancePath,(0,je.strConcat)(Cn.default.instancePath,s)],[Cn.default.parentData,a.parentData],[Cn.default.parentDataProperty,a.parentDataProperty],[Cn.default.rootData,Cn.default.rootData]];a.opts.dynamicRef&&f.push([Cn.default.dynamicAnchors,Cn.default.dynamicAnchors]);let d=(0,je._)`${p}, ${r.object(...f)}`;return u!==je.nil?(0,je._)`${c}.call(${u}, ${d})`:(0,je._)`${c}(${d})`}o(_A,"callValidateCode");Pe.callValidateCode=_A;var SA=(0,je._)`new RegExp`;function OA({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,je._)`${i.code==="new RegExp"?SA:(0,hA.useFunc)(e,i)}(${r}, ${n})`})}o(OA,"usePattern");Pe.usePattern=OA;function EA(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(s,!0),a(()=>t.break()),s;function a(c){let u=t.const("len",(0,je._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Tp.Type.Num},s),t.if((0,je.not)(s),c)})}o(a,"validateItems")}o(EA,"validateArray");Pe.validateArray=EA;function PA(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,Tp.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},c);t.assign(a,(0,je._)`${a} || ${c}`),e.mergeValidEvaluated(p,c)||t.if((0,je.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(PA,"validateUnion");Pe.validateUnion=PA});var Qb=v(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.validateKeywordUsage=Br.validSchemaType=Br.funcKeywordCode=Br.macroKeywordCode=void 0;var At=se(),wi=fr(),xA=pr(),$A=js();function wA(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=Yb(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:At.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(wA,"macroKeywordCode");Br.macroKeywordCode=wA;function AA(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;CA(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,p=Yb(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)b(),t.modifying&&Kb(e),m(()=>e.error());else{let P=t.async?h():y();t.modifying&&Kb(e),m(()=>IA(e,P))}}o(d,"validateKeyword");function h(){let P=n.let("ruleErrs",null);return n.try(()=>b((0,At._)`await `),$=>n.assign(f,!1).if((0,At._)`${$} instanceof ${u.ValidationError}`,()=>n.assign(P,(0,At._)`${$}.errors`),()=>n.throw($))),P}o(h,"validateAsync");function y(){let P=(0,At._)`${p}.errors`;return n.assign(P,null),b(At.nil),P}o(y,"validateSync");function b(P=t.async?(0,At._)`await `:At.nil){let $=u.opts.passContext?wi.default.this:wi.default.self,T=!("compile"in t&&!c||t.schema===!1);n.assign(f,(0,At._)`${P}${(0,xA.callValidateCode)(e,p,$,T)}`,t.modifying)}o(b,"assignValid");function m(P){var $;n.if((0,At.not)(($=t.valid)!==null&&$!==void 0?$:f),P)}o(m,"reportErrs")}o(AA,"funcKeywordCode");Br.funcKeywordCode=AA;function Kb(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,At._)`${n.parentData}[${n.parentDataProperty}]`))}o(Kb,"modifyData");function IA(e,t){let{gen:r}=e;r.if((0,At._)`Array.isArray(${t})`,()=>{r.assign(wi.default.vErrors,(0,At._)`${wi.default.vErrors} === null ? ${t} : ${wi.default.vErrors}.concat(${t})`).assign(wi.default.errors,(0,At._)`${wi.default.vErrors}.length`),(0,$A.extendErrors)(e)},()=>e.error())}o(IA,"addErrs");function CA({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(CA,"checkAsyncKeyword");function Yb(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,At.stringify)(r)})}o(Yb,"useKeyword");function TA(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}o(TA,"validSchemaType");Br.validSchemaType=TA;function NA({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}o(NA,"validateKeywordUsage");Br.validateKeywordUsage=NA});var Xb=v(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.extendSubschemaMode=Tn.extendSubschemaData=Tn.getSubschema=void 0;var Ur=se(),Jb=he();function RA(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,Ur._)`${e.schemaPath}${(0,Ur.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,Ur._)`${e.schemaPath}${(0,Ur.getProperty)(t)}${(0,Ur.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Jb.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}o(RA,"getSubschema");Tn.getSubschema=RA;function jA(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=c.let("data",(0,Ur._)`${t.data}${(0,Ur.getProperty)(r)}`,!0);u(d),e.errorPath=(0,Ur.str)`${l}${(0,Jb.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,Ur._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Ur.Name?i:c.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);function u(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}o(u,"dataContextProps")}o(jA,"extendSubschemaData");Tn.extendSubschemaData=jA;function MA(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}o(MA,"extendSubschemaMode");Tn.extendSubschemaMode=MA});var jp=v((T7,e0)=>{"use strict";e0.exports=o(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var a=s[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var r0=v((R7,t0)=>{"use strict";var Nn=t0.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(){};Fc(t,n,i,e,"",e)};Nn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Nn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Nn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Nn.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 Fc(e,t,r,n,i,s,a,c,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,c,u,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in Nn.arrayKeywords)for(var d=0;d<f.length;d++)Fc(e,t,r,f[d],i+"/"+p+"/"+d,s,i,p,n,d)}else if(p in Nn.propsKeywords){if(f&&typeof f=="object")for(var h in f)Fc(e,t,r,f[h],i+"/"+p+"/"+kA(h),s,i,p,n,h)}else(p in Nn.keywords||e.allKeys&&!(p in Nn.skipKeywords))&&Fc(e,t,r,f,i+"/"+p,s,i,p,n)}r(n,i,s,a,c,u,l)}}o(Fc,"_traverse");function kA(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(kA,"escapeJsonPtr")});var ks=v(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.getSchemaRefs=qt.resolveUrl=qt.normalizeId=qt._getFullPath=qt.getFullPath=qt.inlineRef=void 0;var qA=he(),DA=jp(),LA=r0(),FA=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function VA(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Mp(e):t?n0(e)<=t:!1}o(VA,"inlineRef");qt.inlineRef=VA;var HA=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Mp(e){for(let t in e){if(HA.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Mp)||typeof r=="object"&&Mp(r))return!0}return!1}o(Mp,"hasRef");function n0(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!FA.has(r)&&(typeof e[r]=="object"&&(0,qA.eachItem)(e[r],n=>t+=n0(n)),t===1/0))return 1/0}return t}o(n0,"countKeys");function i0(e,t="",r){r!==!1&&(t=xo(t));let n=e.parse(t);return o0(e,n)}o(i0,"getFullPath");qt.getFullPath=i0;function o0(e,t){return e.serialize(t).split("#")[0]+"#"}o(o0,"_getFullPath");qt._getFullPath=o0;var BA=/#\/?$/;function xo(e){return e?e.replace(BA,""):""}o(xo,"normalizeId");qt.normalizeId=xo;function UA(e,t,r){return r=xo(r),e.resolve(t,r)}o(UA,"resolveUrl");qt.resolveUrl=UA;var GA=/^[a-z_][-a-z0-9._]*$/i;function zA(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=xo(e[r]||t),s={"":i},a=i0(n,i,!1),c={},u=new Set;return LA(e,{allKeys:!0},(f,d,h,y)=>{if(y===void 0)return;let b=a+d,m=s[y];typeof f[r]=="string"&&(m=P.call(this,f[r])),$.call(this,f.$anchor),$.call(this,f.$dynamicAnchor),s[d]=m;function P(T){let I=this.opts.uriResolver.resolve;if(T=xo(m?I(m,T):T),u.has(T))throw p(T);u.add(T);let C=this.refs[T];return typeof C=="string"&&(C=this.refs[C]),typeof C=="object"?l(f,C.schema,T):T!==xo(b)&&(T[0]==="#"?(l(f,c[T],T),c[T]=f):this.refs[T]=b),T}o(P,"addRef");function $(T){if(typeof T=="string"){if(!GA.test(T))throw new Error(`invalid anchor "${T}"`);P.call(this,`#${T}`)}}o($,"addAnchor")}),c;function l(f,d,h){if(d!==void 0&&!DA(f,d))throw p(h)}o(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}o(p,"ambiguos")}o(zA,"getSchemaRefs");qt.getSchemaRefs=zA});var Ls=v(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.getData=Rn.KeywordCxt=Rn.validateFunctionCode=void 0;var l0=Lb(),s0=Ms(),qp=wp(),Vc=Ms(),ZA=zb(),Ds=Qb(),kp=Xb(),W=se(),ie=fr(),WA=ks(),ln=he(),qs=js();function KA(e){if(d0(e)&&(h0(e),p0(e))){JA(e);return}f0(e,()=>(0,l0.topBoolOrEmptySchema)(e))}o(KA,"validateFunctionCode");Rn.validateFunctionCode=KA;function f0({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,W._)`${ie.default.data}, ${ie.default.valCxt}`,n.$async,()=>{e.code((0,W._)`"use strict"; ${a0(r,i)}`),QA(e,i),e.code(s)}):e.func(t,(0,W._)`${ie.default.data}, ${YA(i)}`,n.$async,()=>e.code(a0(r,i)).code(s))}o(f0,"validateFunction");function YA(e){return(0,W._)`{${ie.default.instancePath}="", ${ie.default.parentData}, ${ie.default.parentDataProperty}, ${ie.default.rootData}=${ie.default.data}${e.dynamicRef?(0,W._)`, ${ie.default.dynamicAnchors}={}`:W.nil}}={}`}o(YA,"destructureValCxt");function QA(e,t){e.if(ie.default.valCxt,()=>{e.var(ie.default.instancePath,(0,W._)`${ie.default.valCxt}.${ie.default.instancePath}`),e.var(ie.default.parentData,(0,W._)`${ie.default.valCxt}.${ie.default.parentData}`),e.var(ie.default.parentDataProperty,(0,W._)`${ie.default.valCxt}.${ie.default.parentDataProperty}`),e.var(ie.default.rootData,(0,W._)`${ie.default.valCxt}.${ie.default.rootData}`),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,W._)`${ie.default.valCxt}.${ie.default.dynamicAnchors}`)},()=>{e.var(ie.default.instancePath,(0,W._)`""`),e.var(ie.default.parentData,(0,W._)`undefined`),e.var(ie.default.parentDataProperty,(0,W._)`undefined`),e.var(ie.default.rootData,ie.default.data),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,W._)`{}`)})}o(QA,"destructureValCxtES5");function JA(e){let{schema:t,opts:r,gen:n}=e;f0(e,()=>{r.$comment&&t.$comment&&g0(e),nI(e),n.let(ie.default.vErrors,null),n.let(ie.default.errors,0),r.unevaluated&&XA(e),m0(e),sI(e)})}o(JA,"topSchemaObjCode");function XA(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,W._)`${r}.evaluated`),t.if((0,W._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,W._)`${e.evaluated}.props`,(0,W._)`undefined`)),t.if((0,W._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,W._)`${e.evaluated}.items`,(0,W._)`undefined`))}o(XA,"resetEvaluated");function a0(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,W._)`/*# sourceURL=${r} */`:W.nil}o(a0,"funcSourceUrl");function eI(e,t){if(d0(e)&&(h0(e),p0(e))){tI(e,t);return}(0,l0.boolOrEmptySchema)(e,t)}o(eI,"subschemaCode");function p0({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}o(p0,"schemaCxtHasRules");function d0(e){return typeof e.schema!="boolean"}o(d0,"isSchemaObj");function tI(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&g0(e),iI(e),oI(e);let s=n.const("_errs",ie.default.errors);m0(e,s),n.var(t,(0,W._)`${s} === ${ie.default.errors}`)}o(tI,"subSchemaObjCode");function h0(e){(0,ln.checkUnknownRules)(e),rI(e)}o(h0,"checkKeywords");function m0(e,t){if(e.opts.jtd)return c0(e,[],!1,t);let r=(0,s0.getSchemaTypes)(e.schema),n=(0,s0.coerceAndCheckDataType)(e,r);c0(e,r,!n,t)}o(m0,"typeAndKeywords");function rI(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,ln.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(rI,"checkRefsAndKeywords");function nI(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,ln.checkStrictMode)(e,"default is ignored in the schema root")}o(nI,"checkNoDefault");function iI(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,WA.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(iI,"updateContext");function oI(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(oI,"checkAsyncSchema");function g0({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,W._)`${ie.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,W.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,W._)`${ie.default.self}.opts.$comment(${s}, ${a}, ${c}.schema)`)}}o(g0,"commentKeyword");function sI(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,W._)`${ie.default.errors} === 0`,()=>t.return(ie.default.data),()=>t.throw((0,W._)`new ${i}(${ie.default.vErrors})`)):(t.assign((0,W._)`${n}.errors`,ie.default.vErrors),s.unevaluated&&aI(e),t.return((0,W._)`${ie.default.errors} === 0`))}o(sI,"returnResults");function aI({gen:e,evaluated:t,props:r,items:n}){r instanceof W.Name&&e.assign((0,W._)`${t}.props`,r),n instanceof W.Name&&e.assign((0,W._)`${t}.items`,n)}o(aI,"assignEvaluated");function c0(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:c,opts:u,self:l}=e,{RULES:p}=l;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,ln.schemaHasRulesButRef)(s,p))){i.block(()=>b0(e,"$ref",p.all.$ref.definition));return}u.jtd||cI(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,qp.shouldUseGroup)(s,d)&&(d.type?(i.if((0,Vc.checkDataType)(d.type,a,u.strictNumbers)),u0(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Vc.reportTypeError)(e)),i.endIf()):u0(e,d),c||i.if((0,W._)`${ie.default.errors} === ${n||0}`))}o(f,"groupKeywords")}o(c0,"schemaKeywords");function u0(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,ZA.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,qp.shouldUseRule)(n,s)&&b0(e,s.keyword,s.definition,t.type)})}o(u0,"iterateKeywords");function cI(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(uI(e,t),e.opts.allowUnionTypes||lI(e,t),fI(e,e.dataTypes))}o(cI,"checkStrictTypes");function uI(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{y0(e.dataTypes,r)||Dp(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),dI(e,t)}}o(uI,"checkContextTypes");function lI(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Dp(e,"use allowUnionTypes to allow union type keyword")}o(lI,"checkMultipleTypes");function fI(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,qp.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>pI(t,a))&&Dp(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(fI,"checkKeywordTypes");function pI(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(pI,"hasApplicableType");function y0(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(y0,"includesType");function dI(e,t){let r=[];for(let n of e.dataTypes)y0(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(dI,"narrowSchemaTypes");function Dp(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,ln.checkStrictMode)(e,t,e.opts.strictTypes)}o(Dp,"strictTypesError");var Lp=class Lp{constructor(t,r,n){if((0,Ds.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,ln.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",v0(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ds.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,W.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,W.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,W._)`${r} !== undefined && (${(0,W.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?qs.reportExtraError:qs.reportError)(this,this.def.error,r)}$dataError(){(0,qs.reportError)(this,this.def.$dataError||qs.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,qs.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=W.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=W.nil,r=W.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,W.or)((0,W._)`${i} === undefined`,r)),t!==W.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==W.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,W.or)(a(),c());function a(){if(n.length){if(!(r instanceof W.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,W._)`${(0,Vc.checkDataTypes)(u,r,s.opts.strictNumbers,Vc.DataType.Wrong)}`}return W.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,W._)`!${u}(${r})`}return W.nil}}subschema(t,r){let n=(0,kp.getSubschema)(this.it,t);(0,kp.extendSubschemaData)(n,this.it,t),(0,kp.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return eI(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=ln.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=ln.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,W.Name)),!0}};o(Lp,"KeywordCxt");var Hc=Lp;Rn.KeywordCxt=Hc;function b0(e,t,r,n){let i=new Hc(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Ds.funcKeywordCode)(i,r):"macro"in r?(0,Ds.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Ds.funcKeywordCode)(i,r)}o(b0,"keywordCode");var hI=/^\/(?:[^~]|~0|~1)*$/,mI=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function v0(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return ie.default.rootData;if(e[0]==="/"){if(!hI.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=ie.default.rootData}else{let l=mI.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(u("property/index",p));return n[t-p]}if(p>t)throw new Error(u("data",p));if(s=r[t-p],!i)return s}let a=s,c=i.split("/");for(let l of c)l&&(s=(0,W._)`${s}${(0,W.getProperty)((0,ln.unescapeJsonPointer)(l))}`,a=(0,W._)`${a} && ${s}`);return a;function u(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}o(v0,"getData");Rn.getData=v0});var Bc=v(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var Hp=class Hp extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(Hp,"ValidationError");var Fp=Hp;Vp.default=Fp});var Fs=v(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});var Bp=ks(),zp=class zp extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Bp.resolveUrl)(t,r,n),this.missingSchema=(0,Bp.normalizeId)((0,Bp.getFullPath)(t,this.missingRef))}};o(zp,"MissingRefError");var Up=zp;Gp.default=Up});var Vs=v(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.resolveSchema=dr.getCompilingSchema=dr.resolveRef=dr.compileSchema=dr.SchemaEnv=void 0;var $r=se(),gI=Bc(),Ai=fr(),wr=ks(),_0=he(),yI=Ls(),Kp=class Kp{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,wr.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};o(Kp,"SchemaEnv");var $o=Kp;dr.SchemaEnv=$o;function Wp(e){let t=S0.call(this,e);if(t)return t;let r=(0,wr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new $r.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:gI.default,code:(0,$r._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:Ai.default.data,parentData:Ai.default.parentData,parentDataProperty:Ai.default.parentDataProperty,dataNames:[Ai.default.data],dataPathArr:[$r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,$r.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:$r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,$r._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,yI.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(Ai.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${Ai.default.self}`,`${Ai.default.scope}`,p)(this,this.scope.get());if(this.scope.value(u,{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:u,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:y,items:b}=l;h.evaluated={props:y instanceof $r.Name?void 0:y,items:b instanceof $r.Name?void 0:b,dynamicProps:y instanceof $r.Name,dynamicItems:b instanceof $r.Name},h.source&&(h.source.evaluated=(0,$r.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)}}o(Wp,"compileSchema");dr.compileSchema=Wp;function bI(e,t,r){var n;r=(0,wr.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=SI.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(s=new $o({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=vI.call(this,s)}o(bI,"resolveRef");dr.resolveRef=bI;function vI(e){return(0,wr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Wp.call(this,e)}o(vI,"inlineOrCompile");function S0(e){for(let t of this._compilations)if(_I(t,e))return t}o(S0,"getCompilingSchema");dr.getCompilingSchema=S0;function _I(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(_I,"sameSchemaEnv");function SI(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Uc.call(this,e,t)}o(SI,"resolve");function Uc(e,t){let r=this.opts.uriResolver.parse(t),n=(0,wr._getFullPath)(this.opts.uriResolver,r),i=(0,wr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Zp.call(this,r,e);let s=(0,wr.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=Uc.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Zp.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Wp.call(this,a),s===(0,wr.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,wr.resolveUrl)(this.opts.uriResolver,i,l)),new $o({schema:c,schemaId:u,root:e,baseId:i})}return Zp.call(this,r,a)}}o(Uc,"resolveSchema");dr.resolveSchema=Uc;var OI=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Zp(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let c of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let u=r[(0,_0.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!OI.has(c)&&l&&(t=(0,wr.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,_0.schemaHasRulesButRef)(r,this.RULES)){let c=(0,wr.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Uc.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new $o({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(Zp,"getJsonPointer")});var O0=v((G7,EI)=>{EI.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 P0=v((z7,E0)=>{"use strict";var PI={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};E0.exports={HEX:PI}});var N0=v((Z7,T0)=>{"use strict";var{HEX:xI}=P0();function A0(e){if(C0(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:wI(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(A0,"normalizeIPv4");function Yp(e,t=!1){let r="",n=!0;for(let i of e){if(xI[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(Yp,"stringArrayToHexStripped");function $I(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,c=!1;function u(){if(i.length){if(s===!1){let l=Yp(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}o(u,"consume");for(let l=0;l<e.length;l++){let p=e[l];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(c=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(p==="%"){if(!u())break;s=!0}else{i.push(p);continue}}return i.length&&(s?r.zone=i.join(""):c?n.push(i.join("")):n.push(Yp(i))),r.address=n.join(""),r}o($I,"getIPV6");function I0(e,t={}){if(C0(e,":")<2)return{host:e,isIPV6:!1};let r=$I(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}o(I0,"normalizeIPv6");function wI(e,t){let r="",n=!0,i=e.length;for(let s=0;s<i;s++){let a=e[s];a==="0"&&n?(s+1<=i&&e[s+1]===t||s+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}o(wI,"stripLeadingZeros");function C0(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(C0,"findToken");var x0=/^\.\.?\//u,$0=/^\/\.(?:\/|$)/u,w0=/^\/\.\.(?:\/|$)/u,AI=/^\/?(?:.|\n)*?(?=\/|$)/u;function II(e){let t=[];for(;e.length;)if(e.match(x0))e=e.replace(x0,"");else if(e.match($0))e=e.replace($0,"/");else if(e.match(w0))e=e.replace(w0,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(AI);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}o(II,"removeDotSegments");function CI(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}o(CI,"normalizeComponentEncoding");function TI(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=A0(n);if(i.isIPV4)n=i.host;else{let s=I0(i.host,{isIPV4:!1});s.isIPV6===!0?n=`[${s.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}o(TI,"recomposeAuthority");T0.exports={recomposeAuthority:TI,normalizeComponentEncoding:CI,removeDotSegments:II,normalizeIPv4:A0,normalizeIPv6:I0,stringArrayToHexStripped:Yp}});var D0=v((K7,q0)=>{"use strict";var NI=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,RI=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function R0(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(R0,"isSecure");function j0(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(j0,"httpParse");function M0(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}o(M0,"httpSerialize");function jI(e){return e.secure=R0(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(jI,"wsParse");function MI(e){if((e.port===(R0(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}o(MI,"wsSerialize");function kI(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(RI);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,s=Qp[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(kI,"urnParse");function qI(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=Qp[i];s&&(e=s.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}o(qI,"urnSerialize");function DI(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!NI.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(DI,"urnuuidParse");function LI(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(LI,"urnuuidSerialize");var k0={scheme:"http",domainHost:!0,parse:j0,serialize:M0},FI={scheme:"https",domainHost:k0.domainHost,parse:j0,serialize:M0},Gc={scheme:"ws",domainHost:!0,parse:jI,serialize:MI},VI={scheme:"wss",domainHost:Gc.domainHost,parse:Gc.parse,serialize:Gc.serialize},HI={scheme:"urn",parse:kI,serialize:qI,skipNormalize:!0},BI={scheme:"urn:uuid",parse:DI,serialize:LI,skipNormalize:!0},Qp={http:k0,https:FI,ws:Gc,wss:VI,urn:HI,"urn:uuid":BI};q0.exports=Qp});var F0=v((Q7,Zc)=>{"use strict";var{normalizeIPv6:UI,normalizeIPv4:GI,removeDotSegments:Hs,recomposeAuthority:zI,normalizeComponentEncoding:zc}=N0(),Jp=D0();function ZI(e,t){return typeof e=="string"?e=Gr(fn(e,t),t):typeof e=="object"&&(e=fn(Gr(e,t),t)),e}o(ZI,"normalize");function WI(e,t,r){let n=Object.assign({scheme:"null"},r),i=L0(fn(e,n),fn(t,n),n,!0);return Gr(i,{...n,skipEscape:!0})}o(WI,"resolve");function L0(e,t,r,n){let i={};return n||(e=fn(Gr(e,r),r),t=fn(Gr(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=Hs(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=Hs(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=Hs(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=Hs(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}o(L0,"resolveComponents");function KI(e,t,r){return typeof e=="string"?(e=unescape(e),e=Gr(zc(fn(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Gr(zc(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Gr(zc(fn(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Gr(zc(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(KI,"equal");function Gr(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],s=Jp[(n.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=zI(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let c=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(c=Hs(c)),a===void 0&&(c=c.replace(/^\/\//u,"/%2F")),i.push(c)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}o(Gr,"serialize");var YI=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function QI(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||YI[t])return!0;return!1}o(QI,"nonSimpleDomain");var JI=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function fn(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,s=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(JI);if(a){if(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5]),n.host){let u=GI(n.host);if(u.isIPV4===!1){let l=UI(u.host,{isIPV4:!1});n.host=l.host.toLowerCase(),s=l.isIPV6}else n.host=u.host,s=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=Jp[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&QI(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!c||c&&!c.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}o(fn,"parse");var Xp={SCHEMES:Jp,normalize:ZI,resolve:WI,resolveComponents:L0,equal:KI,serialize:Gr,parse:fn};Zc.exports=Xp;Zc.exports.default=Xp;Zc.exports.fastUri=Xp});var H0=v(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});var V0=F0();V0.code='require("ajv/dist/runtime/uri").default';ed.default=V0});var Ao=v(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.CodeGen=gt.Name=gt.nil=gt.stringify=gt.str=gt._=gt.KeywordCxt=void 0;var XI=Ls();Object.defineProperty(gt,"KeywordCxt",{enumerable:!0,get:o(function(){return XI.KeywordCxt},"get")});var wo=se();Object.defineProperty(gt,"_",{enumerable:!0,get:o(function(){return wo._},"get")});Object.defineProperty(gt,"str",{enumerable:!0,get:o(function(){return wo.str},"get")});Object.defineProperty(gt,"stringify",{enumerable:!0,get:o(function(){return wo.stringify},"get")});Object.defineProperty(gt,"nil",{enumerable:!0,get:o(function(){return wo.nil},"get")});Object.defineProperty(gt,"Name",{enumerable:!0,get:o(function(){return wo.Name},"get")});Object.defineProperty(gt,"CodeGen",{enumerable:!0,get:o(function(){return wo.CodeGen},"get")});var eC=Bc(),Z0=Fs(),tC=$p(),Bs=Vs(),rC=se(),Us=ks(),Wc=Ms(),rd=he(),B0=O0(),nC=H0(),W0=o((e,t)=>new RegExp(e,t),"defaultRegExp");W0.code="new RegExp";var iC=["removeAdditional","useDefaults","coerceTypes"],oC=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),sC={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."},aC={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},U0=200;function cC(e){var t,r,n,i,s,a,c,u,l,p,f,d,h,y,b,m,P,$,T,I,C,ae,J,Be,xe;let X=e.strict,M=(t=e.code)===null||t===void 0?void 0:t.optimize,N=M===!0||M===void 0?1:M||0,D=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:W0,Y=(i=e.uriResolver)!==null&&i!==void 0?i:nC.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:X)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:X)!==null&&u!==void 0?u:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:X)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:X)!==null&&d!==void 0?d:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:X)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:N,regExp:D}:{optimize:N,regExp:D},loopRequired:(b=e.loopRequired)!==null&&b!==void 0?b:U0,loopEnum:(m=e.loopEnum)!==null&&m!==void 0?m:U0,meta:(P=e.meta)!==null&&P!==void 0?P:!0,messages:($=e.messages)!==null&&$!==void 0?$:!0,inlineRefs:(T=e.inlineRefs)!==null&&T!==void 0?T:!0,schemaId:(I=e.schemaId)!==null&&I!==void 0?I:"$id",addUsedSchema:(C=e.addUsedSchema)!==null&&C!==void 0?C:!0,validateSchema:(ae=e.validateSchema)!==null&&ae!==void 0?ae:!0,validateFormats:(J=e.validateFormats)!==null&&J!==void 0?J:!0,unicodeRegExp:(Be=e.unicodeRegExp)!==null&&Be!==void 0?Be:!0,int32range:(xe=e.int32range)!==null&&xe!==void 0?xe:!0,uriResolver:Y}}o(cC,"requiredOptions");var nd=class nd{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...cC(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new rC.ValueScope({scope:{},prefixes:oC,es5:r,lines:n}),this.logger=hC(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,tC.getRules)(),G0.call(this,sC,t,"NOT SUPPORTED"),G0.call(this,aC,t,"DEPRECATED","warn"),this._metaOpts=pC.call(this),t.formats&&lC.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&fC.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),uC.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=B0;n==="id"&&(i={...B0},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 s.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function s(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 Z0.default))throw f;return c.call(this,f),await u.call(this,f.missingSchema),a.call(this,p)}}function c({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function u(p){let f=await l.call(this,p);this.refs[p]||await s.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 s;if(typeof t=="object"){let{schemaId:a}=this.opts;if(s=t[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,Us.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(t){let r;for(;typeof(r=z0.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new Bs.SchemaEnv({schema:{},schemaId:n});if(r=Bs.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=z0.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,Us.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(gC.call(this,n,r),!r)return(0,rd.eachItem)(n,s=>td.call(this,s)),this;bC.call(this,r);let i={...r,type:(0,Wc.getJSONTypes)(r.type),schemaType:(0,Wc.getJSONTypes)(r.schemaType)};return(0,rd.eachItem)(n,i.type.length===0?s=>td.call(this,s,i):s=>i.type.forEach(a=>td.call(this,s,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let s=i.split("/").slice(1),a=t;for(let c of s)a=a[c];for(let c in n){let u=n[c];if(typeof u!="object")continue;let{$data:l}=u.definition,p=a[c];l&&p&&(a[c]=K0(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,s=this.opts.addUsedSchema){let a,{schemaId:c}=this.opts;if(typeof t=="object")a=t[c];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(t);if(u!==void 0)return u;n=(0,Us.normalizeId)(a||n);let l=Us.getSchemaRefs.call(this,t,n);return u=new Bs.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Bs.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{Bs.compileSchema.call(this,t)}finally{this.opts=r}}};o(nd,"Ajv");var Gs=nd;Gs.ValidationError=eC.default;Gs.MissingRefError=Z0.default;gt.default=Gs;function G0(e,t,r,n="error"){for(let i in e){let s=i;s in t&&this.logger[n](`${r}: option ${i}. ${e[s]}`)}}o(G0,"checkOptions");function z0(e){return e=(0,Us.normalizeId)(e),this.schemas[e]||this.refs[e]}o(z0,"getSchEnv");function uC(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}o(uC,"addInitialSchemas");function lC(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(lC,"addInitialFormats");function fC(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}o(fC,"addInitialKeywords");function pC(){let e={...this.opts};for(let t of iC)delete e[t];return e}o(pC,"getMetaSchemaOptions");var dC={log(){},warn(){},error(){}};function hC(e){if(e===!1)return dC;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}o(hC,"getLogger");var mC=/^[a-z_$][a-z0-9_$:-]*$/i;function gC(e,t){let{RULES:r}=this;if((0,rd.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!mC.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}o(gC,"checkKeyword");function td(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,a=i?s.post:s.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,Wc.getJSONTypes)(t.type),schemaType:(0,Wc.getJSONTypes)(t.schemaType)}};t.before?yC.call(this,a,c,t.before):a.rules.push(c),s.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}o(td,"addRule");function yC(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}o(yC,"addBeforeRule");function bC(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=K0(t)),e.validateSchema=this.compile(t,!0))}o(bC,"keywordMetaschema");var vC={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function K0(e){return{anyOf:[e,vC]}}o(K0,"schemaOrData")});var zs=v(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.callRef=Ii.getValidate=void 0;var _C=Fs(),Y0=pr(),Dt=se(),Io=fr(),Q0=Vs(),Kc=he(),SC={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:c,self:u}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=Q0.resolveRef.call(u,l,i,r);if(p===void 0)throw new _C.default(n.opts.uriResolver,i,r);if(p instanceof Q0.SchemaEnv)return d(p);return h(p);function f(){if(s===l)return Yc(e,a,s,s.$async);let y=t.scopeValue("root",{ref:l});return Yc(e,(0,Dt._)`${y}.validate`,l,l.$async)}function d(y){let b=J0(e,y);Yc(e,b,y,y.$async)}function h(y){let b=t.scopeValue("schema",c.code.source===!0?{ref:y,code:(0,Dt.stringify)(y)}:{ref:y}),m=t.name("valid"),P=e.subschema({schema:y,dataTypes:[],schemaPath:Dt.nil,topSchemaRef:b,errSchemaPath:r},m);e.mergeEvaluated(P),e.ok(m)}}};function J0(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Dt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(J0,"getValidate");Ii.getValidate=J0;function Yc(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?Io.default.this:Dt.nil;n?p():f();function p(){if(!c.$async)throw new Error("async schema referenced by sync schema");let y=i.let("valid");i.try(()=>{i.code((0,Dt._)`await ${(0,Y0.callValidateCode)(e,t,l)}`),h(t),a||i.assign(y,!0)},b=>{i.if((0,Dt._)`!(${b} instanceof ${s.ValidationError})`,()=>i.throw(b)),d(b),a||i.assign(y,!1)}),e.ok(y)}o(p,"callAsyncRef");function f(){e.result((0,Y0.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}o(f,"callSyncRef");function d(y){let b=(0,Dt._)`${y}.errors`;i.assign(Io.default.vErrors,(0,Dt._)`${Io.default.vErrors} === null ? ${b} : ${Io.default.vErrors}.concat(${b})`),i.assign(Io.default.errors,(0,Dt._)`${Io.default.vErrors}.length`)}o(d,"addErrorsFrom");function h(y){var b;if(!s.opts.unevaluated)return;let m=(b=r==null?void 0:r.validate)===null||b===void 0?void 0:b.evaluated;if(s.props!==!0)if(m&&!m.dynamicProps)m.props!==void 0&&(s.props=Kc.mergeEvaluated.props(i,m.props,s.props));else{let P=i.var("props",(0,Dt._)`${y}.evaluated.props`);s.props=Kc.mergeEvaluated.props(i,P,s.props,Dt.Name)}if(s.items!==!0)if(m&&!m.dynamicItems)m.items!==void 0&&(s.items=Kc.mergeEvaluated.items(i,m.items,s.items));else{let P=i.var("items",(0,Dt._)`${y}.evaluated.items`);s.items=Kc.mergeEvaluated.items(i,P,s.items,Dt.Name)}}o(h,"addEvaluatedFrom")}o(Yc,"callRef");Ii.callRef=Yc;Ii.default=SC});var X0=v(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});var OC=zs(),EC=["$schema","id","$defs",{keyword:"$comment"},"definitions",OC.default];id.default=EC});var ev=v(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});var od=Ao(),PC=se(),jn=PC.operators,sd={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:jn.LTE,fail:jn.GT},{okStr:"<",ok:jn.LT,fail:jn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:jn.GTE,fail:jn.LT},{okStr:">",ok:jn.GT,fail:jn.LTE}]}},xC={message:o(e=>od.str`must be ${ad(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>od._`{comparison: ${ad(e).okStr}, limit: ${e.schemaCode}}`,"params")},$C={keyword:Object.keys(sd),type:"number",schemaType:"number",$data:!0,error:xC,code(e){let{data:t,schemaCode:r}=e;e.fail$data(od._`${t} ${ad(e).fail} ${r} || isNaN(${t})`)}};function ad(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[sd[r].exclusive]?1:0;return sd[r].ops[n]}o(ad,"kwdOp");cd.default=$C});var rv=v(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});var tv={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},wC={keyword:Object.keys(tv),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=tv[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};ud.default=wC});var fd=v(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});var Zs=se(),AC={message:o(({schemaCode:e})=>(0,Zs.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,Zs._)`{multipleOf: ${e}}`,"params")},IC={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:AC,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,Zs._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,Zs._)`${a} !== parseInt(${a})`;e.fail$data((0,Zs._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};ld.default=IC});var iv=v(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});function nv(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}o(nv,"ucs2length");pd.default=nv;nv.code='require("ajv/dist/runtime/ucs2length").default'});var hd=v(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});var Ci=se(),CC=he(),TC=iv(),NC={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Ci.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,Ci._)`{limit: ${e}}`,"params")},RC={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:NC,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?Ci.operators.GT:Ci.operators.LT,a=i.opts.unicode===!1?(0,Ci._)`${r}.length`:(0,Ci._)`${(0,CC.useFunc)(e.gen,TC.default)}(${r})`;e.fail$data((0,Ci._)`${a} ${s} ${n}`)}};dd.default=RC});var gd=v(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});var jC=pr(),Qc=se(),MC={message:o(({schemaCode:e})=>(0,Qc.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Qc._)`{pattern: ${e}}`,"params")},kC={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:MC,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,Qc._)`(new RegExp(${i}, ${a}))`:(0,jC.usePattern)(e,n);e.fail$data((0,Qc._)`!${c}.test(${t})`)}};md.default=kC});var bd=v(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});var Ws=se(),qC={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Ws.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,Ws._)`{limit: ${e}}`,"params")},DC={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:qC,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Ws.operators.GT:Ws.operators.LT;e.fail$data((0,Ws._)`Object.keys(${r}).length ${i} ${n}`)}};yd.default=DC});var _d=v(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});var Ks=pr(),Ys=se(),LC=he(),FC={message:o(({params:{missingProperty:e}})=>(0,Ys.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,Ys._)`{missingProperty: ${e}}`,"params")},VC={keyword:"required",type:"object",schemaType:"array",$data:!0,error:FC,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:c}=a;if(!s&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?l():p(),c.strictRequired){let h=e.parentSchema.properties,{definedProperties:y}=e.it;for(let b of r)if((h==null?void 0:h[b])===void 0&&!y.has(b)){let m=a.schemaEnv.baseId+a.errSchemaPath,P=`required property "${b}" is not defined at "${m}" (strictRequired)`;(0,LC.checkStrictMode)(a,P,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(Ys.nil,f);else for(let h of r)(0,Ks.checkReportMissingProp)(e,h)}o(l,"allErrorsMode");function p(){let h=t.let("missing");if(u||s){let y=t.let("valid",!0);e.block$data(y,()=>d(h,y)),e.ok(y)}else t.if((0,Ks.checkMissingProp)(e,r,h)),(0,Ks.reportMissingProp)(e,h),t.else()}o(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,Ks.noPropertyInData)(t,i,h,c.ownProperties),()=>e.error())})}o(f,"loopAllRequired");function d(h,y){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(y,(0,Ks.propertyInData)(t,i,h,c.ownProperties)),t.if((0,Ys.not)(y),()=>{e.error(),t.break()})},Ys.nil)}o(d,"loopUntilMissing")}};vd.default=VC});var Od=v(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});var Qs=se(),HC={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Qs.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,Qs._)`{limit: ${e}}`,"params")},BC={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:HC,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Qs.operators.GT:Qs.operators.LT;e.fail$data((0,Qs._)`${r}.length ${i} ${n}`)}};Sd.default=BC});var Jc=v(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var ov=jp();ov.code='require("ajv/dist/runtime/equal").default';Ed.default=ov});var $d=v(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});var Pd=Ms(),yt=se(),UC=he(),GC=Jc(),zC={message:o(({params:{i:e,j:t}})=>(0,yt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,yt._)`{i: ${e}, j: ${t}}`,"params")},ZC={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:zC,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),l=s.items?(0,Pd.getSchemaTypes)(s.items):[];e.block$data(u,p,(0,yt._)`${a} === false`),e.ok(u);function p(){let y=t.let("i",(0,yt._)`${r}.length`),b=t.let("j");e.setParams({i:y,j:b}),t.assign(u,!0),t.if((0,yt._)`${y} > 1`,()=>(f()?d:h)(y,b))}o(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(y=>y==="object"||y==="array")}o(f,"canOptimize");function d(y,b){let m=t.name("item"),P=(0,Pd.checkDataTypes)(l,m,c.opts.strictNumbers,Pd.DataType.Wrong),$=t.const("indices",(0,yt._)`{}`);t.for((0,yt._)`;${y}--;`,()=>{t.let(m,(0,yt._)`${r}[${y}]`),t.if(P,(0,yt._)`continue`),l.length>1&&t.if((0,yt._)`typeof ${m} == "string"`,(0,yt._)`${m} += "_"`),t.if((0,yt._)`typeof ${$}[${m}] == "number"`,()=>{t.assign(b,(0,yt._)`${$}[${m}]`),e.error(),t.assign(u,!1).break()}).code((0,yt._)`${$}[${m}] = ${y}`)})}o(d,"loopN");function h(y,b){let m=(0,UC.useFunc)(t,GC.default),P=t.name("outer");t.label(P).for((0,yt._)`;${y}--;`,()=>t.for((0,yt._)`${b} = ${y}; ${b}--;`,()=>t.if((0,yt._)`${m}(${r}[${y}], ${r}[${b}])`,()=>{e.error(),t.assign(u,!1).break(P)})))}o(h,"loopN2")}};xd.default=ZC});var Id=v(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var wd=se(),WC=he(),KC=Jc(),YC={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,wd._)`{allowedValue: ${e}}`,"params")},QC={keyword:"const",$data:!0,error:YC,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,wd._)`!${(0,WC.useFunc)(t,KC.default)}(${r}, ${i})`):e.fail((0,wd._)`${s} !== ${r}`)}};Ad.default=QC});var Td=v(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});var Js=se(),JC=he(),XC=Jc(),eT={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,Js._)`{allowedValues: ${e}}`,"params")},tT={keyword:"enum",schemaType:"array",$data:!0,error:eT,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,u,l=o(()=>u??(u=(0,JC.useFunc)(t,XC.default)),"getEql"),p;if(c||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",s);p=(0,Js.or)(...i.map((y,b)=>d(h,b)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",s,h=>t.if((0,Js._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}o(f,"loopEnum");function d(h,y){let b=i[y];return typeof b=="object"&&b!==null?(0,Js._)`${l()}(${r}, ${h}[${y}])`:(0,Js._)`${r} === ${b}`}o(d,"equalCode")}};Cd.default=tT});var sv=v(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});var rT=ev(),nT=rv(),iT=fd(),oT=hd(),sT=gd(),aT=bd(),cT=_d(),uT=Od(),lT=$d(),fT=Id(),pT=Td(),dT=[rT.default,nT.default,iT.default,oT.default,sT.default,aT.default,cT.default,uT.default,lT.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},fT.default,pT.default];Nd.default=dT});var jd=v(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.validateAdditionalItems=void 0;var Ti=se(),Rd=he(),hT={message:o(({params:{len:e}})=>(0,Ti.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Ti._)`{limit: ${e}}`,"params")},mT={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:hT,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Rd.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}av(e,n)}};function av(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let c=r.const("len",(0,Ti._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Ti._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,Rd.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,Ti._)`${c} <= ${t.length}`);r.if((0,Ti.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,p=>{e.subschema({keyword:s,dataProp:p,dataPropType:Rd.Type.Num},l),a.allErrors||r.if((0,Ti.not)(l),()=>r.break())})}o(u,"validateItems")}o(av,"validateAdditionalItems");Xs.validateAdditionalItems=av;Xs.default=mT});var Md=v(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.validateTuple=void 0;var cv=se(),Xc=he(),gT=pr(),yT={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return uv(e,"additionalItems",t);r.items=!0,!(0,Xc.alwaysValidSchema)(r,t)&&e.ok((0,gT.validateArray)(e))}};function uv(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:c}=e;p(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=Xc.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,cv._)`${s}.length`);r.forEach((f,d)=>{(0,Xc.alwaysValidSchema)(c,f)||(n.if((0,cv._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function p(f){let{opts:d,errSchemaPath:h}=c,y=r.length,b=y===f.minItems&&(y===f.maxItems||f[t]===!1);if(d.strictTuples&&!b){let m=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Xc.checkStrictMode)(c,m,d.strictTuples)}}o(p,"checkStrictTuple")}o(uv,"validateTuple");ea.validateTuple=uv;ea.default=yT});var lv=v(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});var bT=Md(),vT={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,bT.validateTuple)(e,"items"),"code")};kd.default=vT});var pv=v(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});var fv=se(),_T=he(),ST=pr(),OT=jd(),ET={message:o(({params:{len:e}})=>(0,fv.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,fv._)`{limit: ${e}}`,"params")},PT={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:ET,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,_T.alwaysValidSchema)(n,t)&&(i?(0,OT.validateAdditionalItems)(e,i):e.ok((0,ST.validateArray)(e)))}};qd.default=PT});var dv=v(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});var hr=se(),eu=he(),xT={message:o(({params:{min:e,max:t}})=>t===void 0?(0,hr.str)`must contain at least ${e} valid item(s)`:(0,hr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:o(({params:{min:e,max:t}})=>t===void 0?(0,hr._)`{minContains: ${e}}`:(0,hr._)`{minContains: ${e}, maxContains: ${t}}`,"params")},$T={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:xT,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,c,{minContains:u,maxContains:l}=n;s.opts.next?(a=u===void 0?1:u,c=l):a=1;let p=t.const("len",(0,hr._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,eu.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,eu.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,eu.alwaysValidSchema)(s,r)){let b=(0,hr._)`${p} >= ${a}`;c!==void 0&&(b=(0,hr._)`${b} && ${p} <= ${c}`),e.pass(b);return}s.items=!0;let f=t.name("valid");c===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),c!==void 0&&t.if((0,hr._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let b=t.name("_valid"),m=t.let("count",0);h(b,()=>t.if(b,()=>y(m)))}o(d,"validateItemsWithCount");function h(b,m){t.forRange("i",0,p,P=>{e.subschema({keyword:"contains",dataProp:P,dataPropType:eu.Type.Num,compositeRule:!0},b),m()})}o(h,"validateItems");function y(b){t.code((0,hr._)`${b}++`),c===void 0?t.if((0,hr._)`${b} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,hr._)`${b} > ${c}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,hr._)`${b} >= ${a}`,()=>t.assign(f,!0)))}o(y,"checkLimits")}};Dd.default=$T});var tu=v(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.validateSchemaDeps=zr.validatePropertyDeps=zr.error=void 0;var Ld=se(),wT=he(),ta=pr();zr.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Ld.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Ld._)`{property: ${e},
11
11
  missingProperty: ${n},
12
12
  depsCount: ${t},
13
- deps: ${r}}`,"params")};var ST={keyword:"dependencies",type:"object",schemaType:"object",error:zr.error,code(e){let[t,r]=OT(e);lv(e,t),fv(e,r)}};function OT({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}o(OT,"splitDependencies");function lv(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,ea.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of c)(0,ea.checkReportMissingProp)(e,l)}):(r.if((0,Md._)`${u} && (${(0,ea.checkMissingProp)(e,c,s)})`),(0,ea.reportMissingProp)(e,s),r.else())}}o(lv,"validatePropertyDeps");zr.validatePropertyDeps=lv;function fv(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,_T.alwaysValidSchema)(s,t[c])||(r.if((0,ea.propertyInData)(r,n,c,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}o(fv,"validateSchemaDeps");zr.validateSchemaDeps=fv;zr.default=ST});var dv=v(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});var pv=se(),PT=he(),ET={message:"property name must be valid",params:o(({params:e})=>(0,pv._)`{propertyName: ${e.propertyName}}`,"params")},xT={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:ET,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,PT.alwaysValidSchema)(i,r))return;let s=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),t.if((0,pv.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};kd.default=xT});var Dd=v(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});var Xc=pr(),Ar=se(),$T=fr(),eu=he(),wT={message:"must NOT have additional properties",params:o(({params:e})=>(0,Ar._)`{additionalProperty: ${e.additionalProperty}}`,"params")},AT={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:wT,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,eu.alwaysValidSchema)(a,r))return;let l=(0,Xc.allSchemaProperties)(n.properties),p=(0,Xc.allSchemaProperties)(n.patternProperties);f(),e.ok((0,Ar._)`${s} === ${$T.default.errors}`);function f(){t.forIn("key",i,g=>{!l.length&&!p.length?y(g):t.if(d(g),()=>y(g))})}o(f,"checkAdditionalProperties");function d(g){let E;if(l.length>8){let $=(0,eu.schemaRefOrVal)(a,n.properties,"properties");E=(0,Xc.isOwnProperty)(t,$,g)}else l.length?E=(0,Ar.or)(...l.map($=>(0,Ar._)`${g} === ${$}`)):E=Ar.nil;return p.length&&(E=(0,Ar.or)(E,...p.map($=>(0,Ar._)`${(0,Xc.usePattern)(e,$)}.test(${g})`))),(0,Ar.not)(E)}o(d,"isAdditional");function h(g){t.code((0,Ar._)`delete ${i}[${g}]`)}o(h,"deleteAdditional");function y(g){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(g);return}if(r===!1){e.setParams({additionalProperty:g}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,eu.alwaysValidSchema)(a,r)){let E=t.name("valid");u.removeAdditional==="failing"?(b(g,E,!1),t.if((0,Ar.not)(E),()=>{e.reset(),h(g)})):(b(g,E),c||t.if((0,Ar.not)(E),()=>t.break()))}}o(y,"additionalPropertyCode");function b(g,E,$){let T={keyword:"additionalProperties",dataProp:g,dataPropType:eu.Type.Str};$===!1&&Object.assign(T,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(T,E)}o(b,"applyAdditionalSchema")}};qd.default=AT});var gv=v(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});var IT=Ds(),hv=pr(),Ld=he(),mv=Dd(),CT={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&mv.default.code(new IT.KeywordCxt(s,mv.default,"additionalProperties"));let a=(0,hv.allSchemaProperties)(r);for(let f of a)s.definedProperties.add(f);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=Ld.mergeEvaluated.props(t,(0,Ld.toHash)(a),s.props));let c=a.filter(f=>!(0,Ld.alwaysValidSchema)(s,r[f]));if(c.length===0)return;let u=t.name("valid");for(let f of c)l(f)?p(f):(t.if((0,hv.propertyInData)(t,i,f,s.opts.ownProperties)),p(f),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(u);function l(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}o(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}o(p,"applyPropertySchema")}};Fd.default=CT});var _v=v(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});var yv=pr(),tu=se(),bv=he(),vv=he(),TT={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,c=(0,yv.allSchemaProperties)(r),u=c.filter(b=>(0,bv.alwaysValidSchema)(s,r[b]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");s.props!==!0&&!(s.props instanceof tu.Name)&&(s.props=(0,vv.evaluatedPropsToName)(t,s.props));let{props:f}=s;d();function d(){for(let b of c)l&&h(b),s.allErrors?y(b):(t.var(p,!0),y(b),t.if(p))}o(d,"validatePatternProperties");function h(b){for(let g in l)new RegExp(b).test(g)&&(0,bv.checkStrictMode)(s,`property ${g} matches pattern ${b} (use allowMatchingProperties)`)}o(h,"checkMatchingProperties");function y(b){t.forIn("key",n,g=>{t.if((0,tu._)`${(0,yv.usePattern)(e,b)}.test(${g})`,()=>{let E=u.includes(b);E||e.subschema({keyword:"patternProperties",schemaProp:b,dataProp:g,dataPropType:vv.Type.Str},p),s.opts.unevaluated&&f!==!0?t.assign((0,tu._)`${f}[${g}]`,!0):!E&&!s.allErrors&&t.if((0,tu.not)(p),()=>t.break())})})}o(y,"validateProperties")}};Vd.default=TT});var Sv=v(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});var RT=he(),NT={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,RT.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"}};Hd.default=NT});var Ov=v(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});var jT=pr(),MT={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:jT.validateUnion,error:{message:"must match a schema in anyOf"}};Bd.default=MT});var Pv=v(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});var ru=se(),kT=he(),qT={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,ru._)`{passingSchemas: ${e.passing}}`,"params")},DT={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:qT,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,a=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((p,f)=>{let d;(0,kT.alwaysValidSchema)(i,p)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,ru._)`${u} && ${a}`).assign(a,!1).assign(c,(0,ru._)`[${c}, ${f}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,f),d&&e.mergeEvaluated(d,ru.Name)})})}o(l,"validateOneOf")}};Ud.default=DT});var Ev=v(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});var LT=he(),FT={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((s,a)=>{if((0,LT.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};Gd.default=FT});var wv=v(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});var nu=se(),$v=he(),VT={message:o(({params:e})=>(0,nu.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,nu._)`{failingKeyword: ${e.ifClause}}`,"params")},HT={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:VT,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,$v.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=xv(n,"then"),s=xv(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&s){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(c,l("then",p),l("else",p))}else i?t.if(c,l("then")):t.if((0,nu.not)(c),l("else"));e.pass(a,()=>e.error(!0));function u(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(p)}o(u,"validateIf");function l(p,f){return()=>{let d=e.subschema({keyword:p},c);t.assign(a,c),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,nu._)`${p}`):e.setParams({ifClause:p})}}o(l,"validateClause")}};function xv(e,t){let r=e.schema[t];return r!==void 0&&!(0,$v.alwaysValidSchema)(e,r)}o(xv,"hasSchema");zd.default=HT});var Av=v(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});var BT=he(),UT={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,BT.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Zd.default=UT});var Kd=v(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});var GT=Cd(),zT=sv(),ZT=Td(),WT=cv(),KT=uv(),YT=Jc(),QT=dv(),JT=Dd(),XT=gv(),eR=_v(),tR=Sv(),rR=Ov(),nR=Pv(),iR=Ev(),oR=wv(),sR=Av();function aR(e=!1){let t=[tR.default,rR.default,nR.default,iR.default,oR.default,sR.default,QT.default,JT.default,YT.default,XT.default,eR.default];return e?t.push(zT.default,WT.default):t.push(GT.default,ZT.default),t.push(KT.default),t}o(aR,"getApplicator");Wd.default=aR});var Iv=v(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});var et=se(),cR={message:o(({schemaCode:e})=>(0,et.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,et._)`{format: ${e}}`,"params")},uR={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:cR,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:p,self:f}=c;if(!u.validateFormats)return;i?d():h();function d(){let y=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),b=r.const("fDef",(0,et._)`${y}[${a}]`),g=r.let("fType"),E=r.let("format");r.if((0,et._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>r.assign(g,(0,et._)`${b}.type || "string"`).assign(E,(0,et._)`${b}.validate`),()=>r.assign(g,(0,et._)`"string"`).assign(E,b)),e.fail$data((0,et.or)($(),T()));function $(){return u.strictSchema===!1?et.nil:(0,et._)`${a} && !${E}`}o($,"unknownFmt");function T(){let I=p.$async?(0,et._)`(${b}.async ? await ${E}(${n}) : ${E}(${n}))`:(0,et._)`${E}(${n})`,C=(0,et._)`(typeof ${E} == "function" ? ${I} : ${E}.test(${n}))`;return(0,et._)`${E} && ${E} !== true && ${g} === ${t} && !${C}`}o(T,"invalidFmt")}o(d,"validate$DataFormat");function h(){let y=f.formats[s];if(!y){$();return}if(y===!0)return;let[b,g,E]=T(y);b===t&&e.pass(I());function $(){if(u.strictSchema===!1){f.logger.warn(C());return}throw new Error(C());function C(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o($,"unknownFormat");function T(C){let ae=C instanceof RegExp?(0,et.regexpCode)(C):u.code.formats?(0,et._)`${u.code.formats}${(0,et.getProperty)(s)}`:void 0,J=r.scopeValue("formats",{key:s,ref:C,code:ae});return typeof C=="object"&&!(C instanceof RegExp)?[C.type||"string",C.validate,(0,et._)`${J}.validate`]:["string",C,J]}o(T,"getFormat");function I(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!p.$async)throw new Error("async format in sync schema");return(0,et._)`await ${E}(${n})`}return typeof g=="function"?(0,et._)`${E}(${n})`:(0,et._)`${E}.test(${n})`}o(I,"validCondition")}o(h,"validateFormat")}};Yd.default=uR});var Jd=v(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});var lR=Iv(),fR=[lR.default];Qd.default=fR});var Cv=v(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});var pR=K0(),dR=rv(),hR=Kd(),mR=Jd(),gR=["title","description","default"],yR=[pR.default,dR.default,hR.default(),mR.default,gR];Xd.default=yR});var Rv=v(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.DiscrError=void 0;var Tv;(function(e){e.Tag="tag",e.Mapping="mapping"})(Tv||(iu.DiscrError=Tv={}))});var rh=v(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});var Io=se(),eh=Rv(),Nv=Fs(),bR=Ls(),vR=he(),_R={message:o(({params:{discrError:e,tagName:t}})=>e===eh.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:o(({params:{discrError:e,tag:t,tagName:r}})=>(0,Io._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},SR={keyword:"discriminator",type:"object",schemaType:"object",error:_R,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:a}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),l=t.const("tag",(0,Io._)`${r}${(0,Io.getProperty)(c)}`);t.if((0,Io._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:eh.DiscrError.Tag,tag:l,tagName:c})),e.ok(u);function p(){let h=d();t.if(!1);for(let y in h)t.elseIf((0,Io._)`${l} === ${y}`),t.assign(u,f(h[y]));t.else(),e.error(!1,{discrError:eh.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}o(p,"validateMapping");function f(h){let y=t.name("valid"),b=e.subschema({keyword:"oneOf",schemaProp:h},y);return e.mergeEvaluated(b,Io.Name),y}o(f,"applyTagSchema");function d(){var h;let y={},b=E(i),g=!0;for(let I=0;I<a.length;I++){let C=a[I];if(C!=null&&C.$ref&&!(0,vR.schemaHasRulesButRef)(C,s.self.RULES)){let J=C.$ref;if(C=Nv.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,J),C instanceof Nv.SchemaEnv&&(C=C.schema),C===void 0)throw new bR.default(s.opts.uriResolver,s.baseId,J)}let ae=(h=C==null?void 0:C.properties)===null||h===void 0?void 0:h[c];if(typeof ae!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);g=g&&(b||E(C)),$(ae,I)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return y;function E({required:I}){return Array.isArray(I)&&I.includes(c)}function $(I,C){if(I.const)T(I.const,C);else if(I.enum)for(let ae of I.enum)T(ae,C);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function T(I,C){if(typeof I!="string"||I in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[I]=C}}o(d,"getMapping")}};th.default=SR});var jv=v((iH,OR)=>{OR.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 qv=v((st,kv)=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.CodeGen=st.Name=st.nil=st.stringify=st.str=st._=st.KeywordCxt=void 0;var PR=wo(),ER=Cv(),xR=rh(),Mv=jv(),$R=["/properties"],ou="http://json-schema.org/draft-04/schema",nh=class nh extends PR.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),ER.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(xR.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Mv,$R):Mv;this.addMetaSchema(t,ou,!1),this.refs["http://json-schema.org/schema"]=ou}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ou)?ou:void 0)}};o(nh,"Ajv");var su=nh;kv.exports=st=su;Object.defineProperty(st,"__esModule",{value:!0});st.default=su;var wR=wo();Object.defineProperty(st,"KeywordCxt",{enumerable:!0,get:o(function(){return wR.KeywordCxt},"get")});var Co=wo();Object.defineProperty(st,"_",{enumerable:!0,get:o(function(){return Co._},"get")});Object.defineProperty(st,"str",{enumerable:!0,get:o(function(){return Co.str},"get")});Object.defineProperty(st,"stringify",{enumerable:!0,get:o(function(){return Co.stringify},"get")});Object.defineProperty(st,"nil",{enumerable:!0,get:o(function(){return Co.nil},"get")});Object.defineProperty(st,"Name",{enumerable:!0,get:o(function(){return Co.Name},"get")});Object.defineProperty(st,"CodeGen",{enumerable:!0,get:o(function(){return Co.CodeGen},"get")})});var Dv=v(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});var AR={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};ih.default=AR});var Lv=v(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var IR=Dv(),CR=Gs(),TR=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",IR.default,CR.default];oh.default=TR});var Fv=v(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});var au=se(),jn=au.operators,cu={maximum:{okStr:"<=",ok:jn.LTE,fail:jn.GT},minimum:{okStr:">=",ok:jn.GTE,fail:jn.LT},exclusiveMaximum:{okStr:"<",ok:jn.LT,fail:jn.GTE},exclusiveMinimum:{okStr:">",ok:jn.GT,fail:jn.LTE}},RR={message:o(({keyword:e,schemaCode:t})=>(0,au.str)`must be ${cu[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,au._)`{comparison: ${cu[e].okStr}, limit: ${t}}`,"params")},NR={keyword:Object.keys(cu),type:"number",schemaType:"number",$data:!0,error:RR,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,au._)`${r} ${cu[t].fail} ${n} || isNaN(${r})`)}};sh.default=NR});var Vv=v(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});var jR=Fv(),MR=ad(),kR=ld(),qR=pd(),DR=hd(),LR=gd(),FR=bd(),VR=Od(),HR=xd(),BR=wd(),UR=[jR.default,MR.default,kR.default,qR.default,DR.default,LR.default,FR.default,VR.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},HR.default,BR.default];ah.default=UR});var uh=v(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.dynamicAnchor=void 0;var ch=se(),GR=fr(),Hv=Fs(),zR=Gs(),ZR={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>Bv(e,e.schema),"code")};function Bv(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,ch._)`${GR.default.dynamicAnchors}${(0,ch.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:WR(e);r.if((0,ch._)`!${i}`,()=>r.assign(i,s))}o(Bv,"dynamicAnchor");ta.dynamicAnchor=Bv;function WR(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:s,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,l=new Hv.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return Hv.compileSchema.call(n,l),(0,zR.getValidate)(e,l)}o(WR,"_getValidate");ta.default=ZR});var lh=v(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.dynamicRef=void 0;var Uv=se(),KR=fr(),Gv=Gs(),YR={keyword:"$dynamicRef",schemaType:"string",code:o(e=>zv(e,e.schema),"code")};function zv(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let s=t.slice(1);if(i.allErrors)a();else{let u=r.let("valid",!1);a(u),e.ok(u)}function a(u){if(i.schemaEnv.root.dynamicAnchors[s]){let l=r.let("_v",(0,Uv._)`${KR.default.dynamicAnchors}${(0,Uv.getProperty)(s)}`);r.if(l,c(l,u),c(i.validateName,u))}else c(i.validateName,u)()}o(a,"_dynamicRef");function c(u,l){return l?()=>r.block(()=>{(0,Gv.callRef)(e,u),r.let(l,!0)}):()=>(0,Gv.callRef)(e,u)}o(c,"_callRef")}o(zv,"dynamicRef");ra.dynamicRef=zv;ra.default=YR});var Zv=v(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});var QR=uh(),JR=he(),XR={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,QR.dynamicAnchor)(e,""):(0,JR.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};fh.default=XR});var Wv=v(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});var eN=lh(),tN={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,eN.dynamicRef)(e,e.schema),"code")};ph.default=tN});var Kv=v(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});var rN=uh(),nN=lh(),iN=Zv(),oN=Wv(),sN=[rN.default,nN.default,iN.default,oN.default];dh.default=sN});var Qv=v(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});var Yv=Jc(),aN={keyword:"dependentRequired",type:"object",schemaType:"object",error:Yv.error,code:o(e=>(0,Yv.validatePropertyDeps)(e),"code")};hh.default=aN});var Jv=v(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});var cN=Jc(),uN={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,cN.validateSchemaDeps)(e),"code")};mh.default=uN});var Xv=v(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});var lN=he(),fN={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,lN.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};gh.default=fN});var e_=v(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});var pN=Qv(),dN=Jv(),hN=Xv(),mN=[pN.default,dN.default,hN.default];yh.default=mN});var r_=v(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});var Mn=se(),t_=he(),gN=fr(),yN={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,Mn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},bN={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:yN,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=s;c instanceof Mn.Name?t.if((0,Mn._)`${c} !== true`,()=>t.forIn("key",n,f=>t.if(l(c,f),()=>u(f)))):c!==!0&&t.forIn("key",n,f=>c===void 0?u(f):t.if(p(c,f),()=>u(f))),s.props=!0,e.ok((0,Mn._)`${i} === ${gN.default.errors}`);function u(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,t_.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:t_.Type.Str},d),a||t.if((0,Mn.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(f,d){return(0,Mn._)`!${f} || !${f}[${d}]`}o(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let y in f)f[y]===!0&&h.push((0,Mn._)`${d} !== ${y}`);return(0,Mn.and)(...h)}o(p,"unevaluatedStatic")}};bh.default=bN});var i_=v(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});var Ri=se(),n_=he(),vN={message:o(({params:{len:e}})=>(0,Ri.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Ri._)`{limit: ${e}}`,"params")},_N={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:vN,code(e){let{gen:t,schema:r,data:n,it:i}=e,s=i.items||0;if(s===!0)return;let a=t.const("len",(0,Ri._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,Ri._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,n_.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,Ri._)`${a} <= ${s}`);t.if((0,Ri.not)(u),()=>c(u,s)),e.ok(u)}i.items=!0;function c(u,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:n_.Type.Num},u),i.allErrors||t.if((0,Ri.not)(u),()=>t.break())})}o(c,"validateItems")}};vh.default=_N});var o_=v(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});var SN=r_(),ON=i_(),PN=[SN.default,ON.default];_h.default=PN});var s_=v(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.contentVocabulary=To.metadataVocabulary=void 0;To.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];To.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var c_=v(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});var EN=Lv(),xN=Vv(),$N=Kd(),wN=Kv(),AN=e_(),IN=o_(),CN=Jd(),a_=s_(),TN=[wN.default,EN.default,xN.default,(0,$N.default)(!0),CN.default,a_.metadataVocabulary,a_.contentVocabulary,AN.default,IN.default];Sh.default=TN});var u_=v((RH,RN)=>{RN.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 l_=v((NH,NN)=>{NN.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 f_=v((jH,jN)=>{jN.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 p_=v((MH,MN)=>{MN.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 d_=v((kH,kN)=>{kN.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 h_=v((qH,qN)=>{qN.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 m_=v((DH,DN)=>{DN.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 g_=v((LH,LN)=>{LN.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 y_=v(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});var FN=u_(),VN=l_(),HN=f_(),BN=p_(),UN=d_(),GN=h_(),zN=m_(),ZN=g_(),WN=["/properties"];function KN(e){return[FN,VN,HN,BN,UN,t(this,GN),zN,t(this,ZN)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,WN):n}o(t,"with$data")}o(KN,"addMetaSchema2020");Oh.default=KN});var b_=v((Me,Eh)=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.MissingRefError=Me.ValidationError=Me.CodeGen=Me.Name=Me.nil=Me.stringify=Me.str=Me._=Me.KeywordCxt=Me.Ajv2020=void 0;var YN=wo(),QN=c_(),JN=rh(),XN=y_(),Ph="https://json-schema.org/draft/2020-12/schema",xh=class xh extends YN.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),QN.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(JN.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(XN.default.call(this,t),this.refs["http://json-schema.org/schema"]=Ph)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ph)?Ph:void 0)}};o(xh,"Ajv2020");var Ro=xh;Me.Ajv2020=Ro;Eh.exports=Me=Ro;Eh.exports.Ajv2020=Ro;Object.defineProperty(Me,"__esModule",{value:!0});Me.default=Ro;var ej=Ds();Object.defineProperty(Me,"KeywordCxt",{enumerable:!0,get:o(function(){return ej.KeywordCxt},"get")});var No=se();Object.defineProperty(Me,"_",{enumerable:!0,get:o(function(){return No._},"get")});Object.defineProperty(Me,"str",{enumerable:!0,get:o(function(){return No.str},"get")});Object.defineProperty(Me,"stringify",{enumerable:!0,get:o(function(){return No.stringify},"get")});Object.defineProperty(Me,"nil",{enumerable:!0,get:o(function(){return No.nil},"get")});Object.defineProperty(Me,"Name",{enumerable:!0,get:o(function(){return No.Name},"get")});Object.defineProperty(Me,"CodeGen",{enumerable:!0,get:o(function(){return No.CodeGen},"get")});var tj=Fc();Object.defineProperty(Me,"ValidationError",{enumerable:!0,get:o(function(){return tj.default},"get")});var rj=Ls();Object.defineProperty(Me,"MissingRefError",{enumerable:!0,get:o(function(){return rj.default},"get")})});var v_=v((BH,nj)=>{nj.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 __=v((UH,ij)=>{ij.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 S_=v((GH,oj)=>{oj.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 O_=v((zH,sj)=>{sj.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 P_=v((ft,jo)=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.openapi=ft.openapiV31=ft.openapiV3=ft.openapiV2=ft.openapiV1=void 0;ft.openapiV1=v_();ft.openapiV2=__();ft.openapiV3=S_();ft.openapiV31=O_();ft.openapi={v1:ft.openapiV1,v2:ft.openapiV2,v3:ft.openapiV3,v31:ft.openapiV31};ft.default=ft.openapi;typeof jo=="object"&&typeof jo.exports=="object"&&(jo.exports=Object.assign(jo.exports.default,jo.exports))});var Ah=v((ZH,E_)=>{"use strict";var aj=Sc(),{ono:cj}=Er(),uj=qv(),lj=b_(),{openapi:$h}=P_();E_.exports=fj;function fj(e){let t,r;if(e.swagger)r=$h.v2,t=wh();else if(e.openapi.startsWith("3.1")){r=$h.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=wh(!1)}else r=$h.v3,t=wh();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
14
- `+pj(i);throw cj.syntax(i,{details:i},s)}}o(fj,"validateSchema");function wh(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new uj(t):new lj(t)}o(wh,"initializeAjv");function pj(e,t){t=t||" ";let r="";for(let n of e)r+=aj.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
15
- `);return r}o(pj,"formatAjvError")});var $_=v((KH,x_)=>{"use strict";x_.exports=["get","put","post","delete","options","head","patch"]});var Th=v((YH,C_)=>{"use strict";var dj=Sc(),{ono:Ot}=Er(),hj=$_(),Ih=["array","boolean","integer","number","string"],A_=["array","boolean","integer","number","string","object","null",void 0];C_.exports=mj;function mj(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let s=e.paths[i],a="/paths"+i;s&&i.indexOf("/")===0&&gj(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;I_(s,a)}}o(mj,"validateSpec");function gj(e,t,r,n){for(let i of hj){let s=t[i],a=r+"/"+i;if(s){let c=s.operationId;if(c)if(n.indexOf(c)===-1)n.push(c);else throw Ot.syntax(`Validation failed. Duplicate operation id '${c}'`);yj(e,t,r,s,a);let u=Object.keys(s.responses||{});for(let l of u){let p=s.responses[l],f=a+"/responses/"+l;Sj(l,p||{},f)}}}}o(gj,"validatePath");function yj(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{w_(s)}catch(u){throw Ot.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{w_(a)}catch(u){throw Ot.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=s.reduce((u,l)=>(u.some(f=>f.in===l.in&&f.name===l.name)||u.push(l),u),a.slice());bj(c,i),vj(c,r,i),_j(c,e,n,i)}o(yj,"validateParameters");function bj(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw Ot.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw Ot.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(bj,"validateBodyParameters");function vj(e,t,r){let n=t.match(dj.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw Ot.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 Ot.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let s=n.indexOf("{"+i.name+"}");if(s===-1)throw Ot.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(s,1)}if(n.length>0)throw Ot.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(vj,"validatePathParameters");function _j(e,t,r,n){for(let i of e){let s=n+"/parameters/"+i.name,a,c;switch(i.in){case"body":a=i.schema,c=A_;break;case"formData":a=i,c=Ih.concat("file");break;default:a=i,c=Ih}if(Ch(a,s,c),I_(a,s),a.type==="file"){let u=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>u.test(d)||l.test(d)))throw Ot.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(_j,"validateParameterTypes");function w_(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 Ot.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(w_,"checkForDuplicates");function Sj(e,t,r){if(e!=="default"&&(e<100||e>599))throw Ot.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let s=t.headers[i],a=r+"/headers/"+i;Ch(s,a,Ih)}if(t.schema){let i=A_.concat("file");if(i.indexOf(t.schema.type)===-1)throw Ot.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Ch(t.schema,r+"/schema",i)}}o(Sj,"validateResponse");function Ch(e,t,r){if(r.indexOf(e.type)===-1)throw Ot.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw Ot.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(Ch,"validateSchema");function I_(e,t){function r(n,i){if(n.properties)for(let s in n.properties)n.properties.hasOwnProperty(s)&&(i[s]=n.properties[s]);if(n.allOf)for(let s of n.allOf)r(s,i)}if(o(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw Ot.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(I_,"validateRequiredPropertiesExist")});var Cr=v(Ir=>{"use strict";var{Ono:T_}=Er(),{stripHash:R_,toFileSystemPath:Oj}=Gt(),Mo,kn=Ir.JSONParserError=(Mo=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,T_.extend(this)}},o(Mo,"JSONParserError"),Mo);qn(kn);var Ni,N_=Ir.JSONParserErrorGroup=(Ni=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${Oj(t.$refs._root$Ref.path)}'`,T_.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 Ni.getParserErrors(this.files)}},o(Ni,"JSONParserErrorGroup"),Ni);qn(N_);var ko,Pj=Ir.ParserError=(ko=class extends kn{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(ko,"ParserError"),ko);qn(Pj);var qo,Ej=Ir.UnmatchedParserError=(qo=class extends kn{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(qo,"UnmatchedParserError"),qo);qn(Ej);var Do,xj=Ir.ResolverError=(Do=class extends kn{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(Do,"ResolverError"),Do);qn(xj);var Lo,$j=Ir.UnmatchedResolverError=(Lo=class extends kn{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(Lo,"UnmatchedResolverError"),Lo);qn($j);var Fo,wj=Ir.MissingPointerError=(Fo=class extends kn{constructor(t,r){super(`Token "${t}" does not exist.`,R_(r)),this.code="EMISSINGPOINTER"}},o(Fo,"MissingPointerError"),Fo);qn(wj);var Vo,Aj=Ir.InvalidPointerError=(Vo=class extends kn{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,R_(r)),this.code="EINVALIDPOINTER"}},o(Vo,"InvalidPointerError"),Vo);qn(Aj);function qn(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(qn,"setErrorName");Ir.isHandledError=function(e){return e instanceof kn||e instanceof N_};Ir.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var M_=v((eB,j_)=>{"use strict";var{ParserError:Ij}=Cr();j_.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 Ij(r.message,e.url)}}else return t}}});var Mi=v((tB,ji)=>{"use strict";function k_(e){return typeof e>"u"||e===null}o(k_,"isNothing");function Cj(e){return typeof e=="object"&&e!==null}o(Cj,"isObject");function Tj(e){return Array.isArray(e)?e:k_(e)?[]:[e]}o(Tj,"toArray");function Rj(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}o(Rj,"extend");function Nj(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(Nj,"repeat");function jj(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(jj,"isNegativeZero");ji.exports.isNothing=k_;ji.exports.isObject=Cj;ji.exports.toArray=Tj;ji.exports.repeat=Nj;ji.exports.isNegativeZero=jj;ji.exports.extend=Rj});var Ho=v((nB,q_)=>{"use strict";function na(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}o(na,"YAMLException");na.prototype=Object.create(Error.prototype);na.prototype.constructor=na;na.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");q_.exports=na});var F_=v((oB,L_)=>{"use strict";var D_=Mi();function Rh(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(Rh,"Mark");Rh.prototype.getSnippet=o(function(t,r){var n,i,s,a,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
13
+ deps: ${r}}`,"params")};var AT={keyword:"dependencies",type:"object",schemaType:"object",error:zr.error,code(e){let[t,r]=IT(e);hv(e,t),mv(e,r)}};function IT({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}o(IT,"splitDependencies");function hv(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,ta.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of c)(0,ta.checkReportMissingProp)(e,l)}):(r.if((0,Ld._)`${u} && (${(0,ta.checkMissingProp)(e,c,s)})`),(0,ta.reportMissingProp)(e,s),r.else())}}o(hv,"validatePropertyDeps");zr.validatePropertyDeps=hv;function mv(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,wT.alwaysValidSchema)(s,t[c])||(r.if((0,ta.propertyInData)(r,n,c,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}o(mv,"validateSchemaDeps");zr.validateSchemaDeps=mv;zr.default=AT});var yv=v(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});var gv=se(),CT=he(),TT={message:"property name must be valid",params:o(({params:e})=>(0,gv._)`{propertyName: ${e.propertyName}}`,"params")},NT={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:TT,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,CT.alwaysValidSchema)(i,r))return;let s=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),t.if((0,gv.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};Fd.default=NT});var Hd=v(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});var ru=pr(),Ar=se(),RT=fr(),nu=he(),jT={message:"must NOT have additional properties",params:o(({params:e})=>(0,Ar._)`{additionalProperty: ${e.additionalProperty}}`,"params")},MT={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:jT,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,nu.alwaysValidSchema)(a,r))return;let l=(0,ru.allSchemaProperties)(n.properties),p=(0,ru.allSchemaProperties)(n.patternProperties);f(),e.ok((0,Ar._)`${s} === ${RT.default.errors}`);function f(){t.forIn("key",i,m=>{!l.length&&!p.length?y(m):t.if(d(m),()=>y(m))})}o(f,"checkAdditionalProperties");function d(m){let P;if(l.length>8){let $=(0,nu.schemaRefOrVal)(a,n.properties,"properties");P=(0,ru.isOwnProperty)(t,$,m)}else l.length?P=(0,Ar.or)(...l.map($=>(0,Ar._)`${m} === ${$}`)):P=Ar.nil;return p.length&&(P=(0,Ar.or)(P,...p.map($=>(0,Ar._)`${(0,ru.usePattern)(e,$)}.test(${m})`))),(0,Ar.not)(P)}o(d,"isAdditional");function h(m){t.code((0,Ar._)`delete ${i}[${m}]`)}o(h,"deleteAdditional");function y(m){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(m);return}if(r===!1){e.setParams({additionalProperty:m}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,nu.alwaysValidSchema)(a,r)){let P=t.name("valid");u.removeAdditional==="failing"?(b(m,P,!1),t.if((0,Ar.not)(P),()=>{e.reset(),h(m)})):(b(m,P),c||t.if((0,Ar.not)(P),()=>t.break()))}}o(y,"additionalPropertyCode");function b(m,P,$){let T={keyword:"additionalProperties",dataProp:m,dataPropType:nu.Type.Str};$===!1&&Object.assign(T,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(T,P)}o(b,"applyAdditionalSchema")}};Vd.default=MT});var _v=v(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});var kT=Ls(),bv=pr(),Bd=he(),vv=Hd(),qT={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&vv.default.code(new kT.KeywordCxt(s,vv.default,"additionalProperties"));let a=(0,bv.allSchemaProperties)(r);for(let f of a)s.definedProperties.add(f);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=Bd.mergeEvaluated.props(t,(0,Bd.toHash)(a),s.props));let c=a.filter(f=>!(0,Bd.alwaysValidSchema)(s,r[f]));if(c.length===0)return;let u=t.name("valid");for(let f of c)l(f)?p(f):(t.if((0,bv.propertyInData)(t,i,f,s.opts.ownProperties)),p(f),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(u);function l(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}o(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}o(p,"applyPropertySchema")}};Ud.default=qT});var Pv=v(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});var Sv=pr(),iu=se(),Ov=he(),Ev=he(),DT={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,c=(0,Sv.allSchemaProperties)(r),u=c.filter(b=>(0,Ov.alwaysValidSchema)(s,r[b]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");s.props!==!0&&!(s.props instanceof iu.Name)&&(s.props=(0,Ev.evaluatedPropsToName)(t,s.props));let{props:f}=s;d();function d(){for(let b of c)l&&h(b),s.allErrors?y(b):(t.var(p,!0),y(b),t.if(p))}o(d,"validatePatternProperties");function h(b){for(let m in l)new RegExp(b).test(m)&&(0,Ov.checkStrictMode)(s,`property ${m} matches pattern ${b} (use allowMatchingProperties)`)}o(h,"checkMatchingProperties");function y(b){t.forIn("key",n,m=>{t.if((0,iu._)`${(0,Sv.usePattern)(e,b)}.test(${m})`,()=>{let P=u.includes(b);P||e.subschema({keyword:"patternProperties",schemaProp:b,dataProp:m,dataPropType:Ev.Type.Str},p),s.opts.unevaluated&&f!==!0?t.assign((0,iu._)`${f}[${m}]`,!0):!P&&!s.allErrors&&t.if((0,iu.not)(p),()=>t.break())})})}o(y,"validateProperties")}};Gd.default=DT});var xv=v(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});var LT=he(),FT={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,LT.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"}};zd.default=FT});var $v=v(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});var VT=pr(),HT={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:VT.validateUnion,error:{message:"must match a schema in anyOf"}};Zd.default=HT});var wv=v(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});var ou=se(),BT=he(),UT={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,ou._)`{passingSchemas: ${e.passing}}`,"params")},GT={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:UT,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,a=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((p,f)=>{let d;(0,BT.alwaysValidSchema)(i,p)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,ou._)`${u} && ${a}`).assign(a,!1).assign(c,(0,ou._)`[${c}, ${f}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,f),d&&e.mergeEvaluated(d,ou.Name)})})}o(l,"validateOneOf")}};Wd.default=GT});var Av=v(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});var zT=he(),ZT={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((s,a)=>{if((0,zT.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};Kd.default=ZT});var Tv=v(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});var su=se(),Cv=he(),WT={message:o(({params:e})=>(0,su.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,su._)`{failingKeyword: ${e.ifClause}}`,"params")},KT={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:WT,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Cv.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=Iv(n,"then"),s=Iv(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&s){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(c,l("then",p),l("else",p))}else i?t.if(c,l("then")):t.if((0,su.not)(c),l("else"));e.pass(a,()=>e.error(!0));function u(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(p)}o(u,"validateIf");function l(p,f){return()=>{let d=e.subschema({keyword:p},c);t.assign(a,c),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,su._)`${p}`):e.setParams({ifClause:p})}}o(l,"validateClause")}};function Iv(e,t){let r=e.schema[t];return r!==void 0&&!(0,Cv.alwaysValidSchema)(e,r)}o(Iv,"hasSchema");Yd.default=KT});var Nv=v(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});var YT=he(),QT={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,YT.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Qd.default=QT});var Xd=v(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});var JT=jd(),XT=lv(),eN=Md(),tN=pv(),rN=dv(),nN=tu(),iN=yv(),oN=Hd(),sN=_v(),aN=Pv(),cN=xv(),uN=$v(),lN=wv(),fN=Av(),pN=Tv(),dN=Nv();function hN(e=!1){let t=[cN.default,uN.default,lN.default,fN.default,pN.default,dN.default,iN.default,oN.default,nN.default,sN.default,aN.default];return e?t.push(XT.default,tN.default):t.push(JT.default,eN.default),t.push(rN.default),t}o(hN,"getApplicator");Jd.default=hN});var Rv=v(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var et=se(),mN={message:o(({schemaCode:e})=>(0,et.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,et._)`{format: ${e}}`,"params")},gN={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:mN,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:p,self:f}=c;if(!u.validateFormats)return;i?d():h();function d(){let y=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),b=r.const("fDef",(0,et._)`${y}[${a}]`),m=r.let("fType"),P=r.let("format");r.if((0,et._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>r.assign(m,(0,et._)`${b}.type || "string"`).assign(P,(0,et._)`${b}.validate`),()=>r.assign(m,(0,et._)`"string"`).assign(P,b)),e.fail$data((0,et.or)($(),T()));function $(){return u.strictSchema===!1?et.nil:(0,et._)`${a} && !${P}`}o($,"unknownFmt");function T(){let I=p.$async?(0,et._)`(${b}.async ? await ${P}(${n}) : ${P}(${n}))`:(0,et._)`${P}(${n})`,C=(0,et._)`(typeof ${P} == "function" ? ${I} : ${P}.test(${n}))`;return(0,et._)`${P} && ${P} !== true && ${m} === ${t} && !${C}`}o(T,"invalidFmt")}o(d,"validate$DataFormat");function h(){let y=f.formats[s];if(!y){$();return}if(y===!0)return;let[b,m,P]=T(y);b===t&&e.pass(I());function $(){if(u.strictSchema===!1){f.logger.warn(C());return}throw new Error(C());function C(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o($,"unknownFormat");function T(C){let ae=C instanceof RegExp?(0,et.regexpCode)(C):u.code.formats?(0,et._)`${u.code.formats}${(0,et.getProperty)(s)}`:void 0,J=r.scopeValue("formats",{key:s,ref:C,code:ae});return typeof C=="object"&&!(C instanceof RegExp)?[C.type||"string",C.validate,(0,et._)`${J}.validate`]:["string",C,J]}o(T,"getFormat");function I(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!p.$async)throw new Error("async format in sync schema");return(0,et._)`await ${P}(${n})`}return typeof m=="function"?(0,et._)`${P}(${n})`:(0,et._)`${P}.test(${n})`}o(I,"validCondition")}o(h,"validateFormat")}};eh.default=gN});var rh=v(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});var yN=Rv(),bN=[yN.default];th.default=bN});var jv=v(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});var vN=X0(),_N=sv(),SN=Xd(),ON=rh(),EN=["title","description","default"],PN=[vN.default,_N.default,SN.default(),ON.default,EN];nh.default=PN});var kv=v(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.DiscrError=void 0;var Mv;(function(e){e.Tag="tag",e.Mapping="mapping"})(Mv||(au.DiscrError=Mv={}))});var sh=v(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var Co=se(),ih=kv(),qv=Vs(),xN=Fs(),$N=he(),wN={message:o(({params:{discrError:e,tagName:t}})=>e===ih.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:o(({params:{discrError:e,tag:t,tagName:r}})=>(0,Co._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},AN={keyword:"discriminator",type:"object",schemaType:"object",error:wN,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:a}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),l=t.const("tag",(0,Co._)`${r}${(0,Co.getProperty)(c)}`);t.if((0,Co._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:ih.DiscrError.Tag,tag:l,tagName:c})),e.ok(u);function p(){let h=d();t.if(!1);for(let y in h)t.elseIf((0,Co._)`${l} === ${y}`),t.assign(u,f(h[y]));t.else(),e.error(!1,{discrError:ih.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}o(p,"validateMapping");function f(h){let y=t.name("valid"),b=e.subschema({keyword:"oneOf",schemaProp:h},y);return e.mergeEvaluated(b,Co.Name),y}o(f,"applyTagSchema");function d(){var h;let y={},b=P(i),m=!0;for(let I=0;I<a.length;I++){let C=a[I];if(C!=null&&C.$ref&&!(0,$N.schemaHasRulesButRef)(C,s.self.RULES)){let J=C.$ref;if(C=qv.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,J),C instanceof qv.SchemaEnv&&(C=C.schema),C===void 0)throw new xN.default(s.opts.uriResolver,s.baseId,J)}let ae=(h=C==null?void 0:C.properties)===null||h===void 0?void 0:h[c];if(typeof ae!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);m=m&&(b||P(C)),$(ae,I)}if(!m)throw new Error(`discriminator: "${c}" must be required`);return y;function P({required:I}){return Array.isArray(I)&&I.includes(c)}function $(I,C){if(I.const)T(I.const,C);else if(I.enum)for(let ae of I.enum)T(ae,C);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function T(I,C){if(typeof I!="string"||I in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[I]=C}}o(d,"getMapping")}};oh.default=AN});var Dv=v((dH,IN)=>{IN.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 Vv=v((st,Fv)=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.CodeGen=st.Name=st.nil=st.stringify=st.str=st._=st.KeywordCxt=void 0;var CN=Ao(),TN=jv(),NN=sh(),Lv=Dv(),RN=["/properties"],cu="http://json-schema.org/draft-04/schema",ah=class ah extends CN.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),TN.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(NN.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Lv,RN):Lv;this.addMetaSchema(t,cu,!1),this.refs["http://json-schema.org/schema"]=cu}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(cu)?cu:void 0)}};o(ah,"Ajv");var uu=ah;Fv.exports=st=uu;Object.defineProperty(st,"__esModule",{value:!0});st.default=uu;var jN=Ao();Object.defineProperty(st,"KeywordCxt",{enumerable:!0,get:o(function(){return jN.KeywordCxt},"get")});var To=Ao();Object.defineProperty(st,"_",{enumerable:!0,get:o(function(){return To._},"get")});Object.defineProperty(st,"str",{enumerable:!0,get:o(function(){return To.str},"get")});Object.defineProperty(st,"stringify",{enumerable:!0,get:o(function(){return To.stringify},"get")});Object.defineProperty(st,"nil",{enumerable:!0,get:o(function(){return To.nil},"get")});Object.defineProperty(st,"Name",{enumerable:!0,get:o(function(){return To.Name},"get")});Object.defineProperty(st,"CodeGen",{enumerable:!0,get:o(function(){return To.CodeGen},"get")})});var Hv=v(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var MN={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};ch.default=MN});var Bv=v(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});var kN=Hv(),qN=zs(),DN=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",kN.default,qN.default];uh.default=DN});var Uv=v(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});var lu=se(),Mn=lu.operators,fu={maximum:{okStr:"<=",ok:Mn.LTE,fail:Mn.GT},minimum:{okStr:">=",ok:Mn.GTE,fail:Mn.LT},exclusiveMaximum:{okStr:"<",ok:Mn.LT,fail:Mn.GTE},exclusiveMinimum:{okStr:">",ok:Mn.GT,fail:Mn.LTE}},LN={message:o(({keyword:e,schemaCode:t})=>(0,lu.str)`must be ${fu[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,lu._)`{comparison: ${fu[e].okStr}, limit: ${t}}`,"params")},FN={keyword:Object.keys(fu),type:"number",schemaType:"number",$data:!0,error:LN,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,lu._)`${r} ${fu[t].fail} ${n} || isNaN(${r})`)}};lh.default=FN});var Gv=v(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});var VN=Uv(),HN=fd(),BN=hd(),UN=gd(),GN=bd(),zN=_d(),ZN=Od(),WN=$d(),KN=Id(),YN=Td(),QN=[VN.default,HN.default,BN.default,UN.default,GN.default,zN.default,ZN.default,WN.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},KN.default,YN.default];fh.default=QN});var dh=v(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.dynamicAnchor=void 0;var ph=se(),JN=fr(),zv=Vs(),XN=zs(),eR={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>Zv(e,e.schema),"code")};function Zv(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,ph._)`${JN.default.dynamicAnchors}${(0,ph.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:tR(e);r.if((0,ph._)`!${i}`,()=>r.assign(i,s))}o(Zv,"dynamicAnchor");ra.dynamicAnchor=Zv;function tR(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:s,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,l=new zv.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return zv.compileSchema.call(n,l),(0,XN.getValidate)(e,l)}o(tR,"_getValidate");ra.default=eR});var hh=v(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.dynamicRef=void 0;var Wv=se(),rR=fr(),Kv=zs(),nR={keyword:"$dynamicRef",schemaType:"string",code:o(e=>Yv(e,e.schema),"code")};function Yv(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let s=t.slice(1);if(i.allErrors)a();else{let u=r.let("valid",!1);a(u),e.ok(u)}function a(u){if(i.schemaEnv.root.dynamicAnchors[s]){let l=r.let("_v",(0,Wv._)`${rR.default.dynamicAnchors}${(0,Wv.getProperty)(s)}`);r.if(l,c(l,u),c(i.validateName,u))}else c(i.validateName,u)()}o(a,"_dynamicRef");function c(u,l){return l?()=>r.block(()=>{(0,Kv.callRef)(e,u),r.let(l,!0)}):()=>(0,Kv.callRef)(e,u)}o(c,"_callRef")}o(Yv,"dynamicRef");na.dynamicRef=Yv;na.default=nR});var Qv=v(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});var iR=dh(),oR=he(),sR={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,iR.dynamicAnchor)(e,""):(0,oR.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};mh.default=sR});var Jv=v(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});var aR=hh(),cR={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,aR.dynamicRef)(e,e.schema),"code")};gh.default=cR});var Xv=v(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});var uR=dh(),lR=hh(),fR=Qv(),pR=Jv(),dR=[uR.default,lR.default,fR.default,pR.default];yh.default=dR});var t_=v(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});var e_=tu(),hR={keyword:"dependentRequired",type:"object",schemaType:"object",error:e_.error,code:o(e=>(0,e_.validatePropertyDeps)(e),"code")};bh.default=hR});var r_=v(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});var mR=tu(),gR={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,mR.validateSchemaDeps)(e),"code")};vh.default=gR});var n_=v(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});var yR=he(),bR={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`)}};_h.default=bR});var i_=v(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});var vR=t_(),_R=r_(),SR=n_(),OR=[vR.default,_R.default,SR.default];Sh.default=OR});var s_=v(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});var kn=se(),o_=he(),ER=fr(),PR={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,kn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},xR={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:PR,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=s;c instanceof kn.Name?t.if((0,kn._)`${c} !== true`,()=>t.forIn("key",n,f=>t.if(l(c,f),()=>u(f)))):c!==!0&&t.forIn("key",n,f=>c===void 0?u(f):t.if(p(c,f),()=>u(f))),s.props=!0,e.ok((0,kn._)`${i} === ${ER.default.errors}`);function u(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,o_.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:o_.Type.Str},d),a||t.if((0,kn.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(f,d){return(0,kn._)`!${f} || !${f}[${d}]`}o(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let y in f)f[y]===!0&&h.push((0,kn._)`${d} !== ${y}`);return(0,kn.and)(...h)}o(p,"unevaluatedStatic")}};Oh.default=xR});var c_=v(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});var Ni=se(),a_=he(),$R={message:o(({params:{len:e}})=>(0,Ni.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Ni._)`{limit: ${e}}`,"params")},wR={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:$R,code(e){let{gen:t,schema:r,data:n,it:i}=e,s=i.items||0;if(s===!0)return;let a=t.const("len",(0,Ni._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,Ni._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,a_.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,Ni._)`${a} <= ${s}`);t.if((0,Ni.not)(u),()=>c(u,s)),e.ok(u)}i.items=!0;function c(u,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:a_.Type.Num},u),i.allErrors||t.if((0,Ni.not)(u),()=>t.break())})}o(c,"validateItems")}};Eh.default=wR});var u_=v(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});var AR=s_(),IR=c_(),CR=[AR.default,IR.default];Ph.default=CR});var l_=v(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.contentVocabulary=No.metadataVocabulary=void 0;No.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];No.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var p_=v(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});var TR=Bv(),NR=Gv(),RR=Xd(),jR=Xv(),MR=i_(),kR=u_(),qR=rh(),f_=l_(),DR=[jR.default,TR.default,NR.default,(0,RR.default)(!0),qR.default,f_.metadataVocabulary,f_.contentVocabulary,MR.default,kR.default];xh.default=DR});var d_=v((VH,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 h_=v((HH,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 m_=v((BH,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 g_=v((UH,HR)=>{HR.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 y_=v((GH,BR)=>{BR.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 b_=v((zH,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 v_=v((ZH,GR)=>{GR.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 __=v((WH,zR)=>{zR.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 S_=v($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});var ZR=d_(),WR=h_(),KR=m_(),YR=g_(),QR=y_(),JR=b_(),XR=v_(),ej=__(),tj=["/properties"];function rj(e){return[ZR,WR,KR,YR,QR,t(this,JR),XR,t(this,ej)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,tj):n}o(t,"with$data")}o(rj,"addMetaSchema2020");$h.default=rj});var O_=v((Me,Ah)=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.MissingRefError=Me.ValidationError=Me.CodeGen=Me.Name=Me.nil=Me.stringify=Me.str=Me._=Me.KeywordCxt=Me.Ajv2020=void 0;var nj=Ao(),ij=p_(),oj=sh(),sj=S_(),wh="https://json-schema.org/draft/2020-12/schema",Ih=class Ih 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(oj.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(sj.default.call(this,t),this.refs["http://json-schema.org/schema"]=wh)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(wh)?wh:void 0)}};o(Ih,"Ajv2020");var Ro=Ih;Me.Ajv2020=Ro;Ah.exports=Me=Ro;Ah.exports.Ajv2020=Ro;Object.defineProperty(Me,"__esModule",{value:!0});Me.default=Ro;var aj=Ls();Object.defineProperty(Me,"KeywordCxt",{enumerable:!0,get:o(function(){return aj.KeywordCxt},"get")});var jo=se();Object.defineProperty(Me,"_",{enumerable:!0,get:o(function(){return jo._},"get")});Object.defineProperty(Me,"str",{enumerable:!0,get:o(function(){return jo.str},"get")});Object.defineProperty(Me,"stringify",{enumerable:!0,get:o(function(){return jo.stringify},"get")});Object.defineProperty(Me,"nil",{enumerable:!0,get:o(function(){return jo.nil},"get")});Object.defineProperty(Me,"Name",{enumerable:!0,get:o(function(){return jo.Name},"get")});Object.defineProperty(Me,"CodeGen",{enumerable:!0,get:o(function(){return jo.CodeGen},"get")});var cj=Bc();Object.defineProperty(Me,"ValidationError",{enumerable:!0,get:o(function(){return cj.default},"get")});var uj=Fs();Object.defineProperty(Me,"MissingRefError",{enumerable:!0,get:o(function(){return uj.default},"get")})});var E_=v((JH,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 P_=v((XH,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 x_=v((eB,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 $_=v((tB,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 w_=v((ft,Mo)=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.openapi=ft.openapiV31=ft.openapiV3=ft.openapiV2=ft.openapiV1=void 0;ft.openapiV1=E_();ft.openapiV2=P_();ft.openapiV3=x_();ft.openapiV31=$_();ft.openapi={v1:ft.openapiV1,v2:ft.openapiV2,v3:ft.openapiV3,v31:ft.openapiV31};ft.default=ft.openapi;typeof Mo=="object"&&typeof Mo.exports=="object"&&(Mo.exports=Object.assign(Mo.exports.default,Mo.exports))});var Nh=v((rB,A_)=>{"use strict";var hj=Pc(),{ono:mj}=Pr(),gj=Vv(),yj=O_(),{openapi:Ch}=w_();A_.exports=bj;function bj(e){let t,r;if(e.swagger)r=Ch.v2,t=Th();else if(e.openapi.startsWith("3.1")){r=Ch.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=Th(!1)}else r=Ch.v3,t=Th();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
14
+ `+vj(i);throw mj.syntax(i,{details:i},s)}}o(bj,"validateSchema");function Th(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new gj(t):new yj(t)}o(Th,"initializeAjv");function vj(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}o(vj,"formatAjvError")});var C_=v((iB,I_)=>{"use strict";I_.exports=["get","put","post","delete","options","head","patch"]});var Mh=v((oB,j_)=>{"use strict";var _j=Pc(),{ono:Ot}=Pr(),Sj=C_(),Rh=["array","boolean","integer","number","string"],N_=["array","boolean","integer","number","string","object","null",void 0];j_.exports=Oj;function Oj(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let s=e.paths[i],a="/paths"+i;s&&i.indexOf("/")===0&&Ej(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;R_(s,a)}}o(Oj,"validateSpec");function Ej(e,t,r,n){for(let i of Sj){let s=t[i],a=r+"/"+i;if(s){let c=s.operationId;if(c)if(n.indexOf(c)===-1)n.push(c);else throw Ot.syntax(`Validation failed. Duplicate operation id '${c}'`);Pj(e,t,r,s,a);let u=Object.keys(s.responses||{});for(let l of u){let p=s.responses[l],f=a+"/responses/"+l;Aj(l,p||{},f)}}}}o(Ej,"validatePath");function Pj(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{T_(s)}catch(u){throw Ot.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{T_(a)}catch(u){throw Ot.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=s.reduce((u,l)=>(u.some(f=>f.in===l.in&&f.name===l.name)||u.push(l),u),a.slice());xj(c,i),$j(c,r,i),wj(c,e,n,i)}o(Pj,"validateParameters");function xj(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw Ot.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw Ot.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(xj,"validateBodyParameters");function $j(e,t,r){let n=t.match(_j.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw Ot.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 Ot.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let s=n.indexOf("{"+i.name+"}");if(s===-1)throw Ot.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(s,1)}if(n.length>0)throw Ot.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o($j,"validatePathParameters");function wj(e,t,r,n){for(let i of e){let s=n+"/parameters/"+i.name,a,c;switch(i.in){case"body":a=i.schema,c=N_;break;case"formData":a=i,c=Rh.concat("file");break;default:a=i,c=Rh}if(jh(a,s,c),R_(a,s),a.type==="file"){let u=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>u.test(d)||l.test(d)))throw Ot.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(wj,"validateParameterTypes");function T_(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 Ot.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(T_,"checkForDuplicates");function Aj(e,t,r){if(e!=="default"&&(e<100||e>599))throw Ot.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let s=t.headers[i],a=r+"/headers/"+i;jh(s,a,Rh)}if(t.schema){let i=N_.concat("file");if(i.indexOf(t.schema.type)===-1)throw Ot.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);jh(t.schema,r+"/schema",i)}}o(Aj,"validateResponse");function jh(e,t,r){if(r.indexOf(e.type)===-1)throw Ot.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw Ot.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(jh,"validateSchema");function R_(e,t){function r(n,i){if(n.properties)for(let s in n.properties)n.properties.hasOwnProperty(s)&&(i[s]=n.properties[s]);if(n.allOf)for(let s of n.allOf)r(s,i)}if(o(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw Ot.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(R_,"validateRequiredPropertiesExist")});var Cr=v(Ir=>{"use strict";var{Ono:M_}=Pr(),{stripHash:k_,toFileSystemPath:Ij}=Wt(),ko,qn=Ir.JSONParserError=(ko=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,M_.extend(this)}},o(ko,"JSONParserError"),ko);Dn(qn);var Ri,q_=Ir.JSONParserErrorGroup=(Ri=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${Ij(t.$refs._root$Ref.path)}'`,M_.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 Ri.getParserErrors(this.files)}},o(Ri,"JSONParserErrorGroup"),Ri);Dn(q_);var qo,Cj=Ir.ParserError=(qo=class extends qn{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(qo,"ParserError"),qo);Dn(Cj);var Do,Tj=Ir.UnmatchedParserError=(Do=class extends qn{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(Do,"UnmatchedParserError"),Do);Dn(Tj);var Lo,Nj=Ir.ResolverError=(Lo=class extends qn{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(Lo,"ResolverError"),Lo);Dn(Nj);var Fo,Rj=Ir.UnmatchedResolverError=(Fo=class extends qn{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(Fo,"UnmatchedResolverError"),Fo);Dn(Rj);var Vo,jj=Ir.MissingPointerError=(Vo=class extends qn{constructor(t,r){super(`Token "${t}" does not exist.`,k_(r)),this.code="EMISSINGPOINTER"}},o(Vo,"MissingPointerError"),Vo);Dn(jj);var Ho,Mj=Ir.InvalidPointerError=(Ho=class extends qn{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,k_(r)),this.code="EINVALIDPOINTER"}},o(Ho,"InvalidPointerError"),Ho);Dn(Mj);function Dn(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(Dn,"setErrorName");Ir.isHandledError=function(e){return e instanceof qn||e instanceof q_};Ir.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var L_=v((uB,D_)=>{"use strict";var{ParserError:kj}=Cr();D_.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 kj(r.message,e.url)}}else return t}}});var Mi=v((lB,ji)=>{"use strict";function F_(e){return typeof e>"u"||e===null}o(F_,"isNothing");function qj(e){return typeof e=="object"&&e!==null}o(qj,"isObject");function Dj(e){return Array.isArray(e)?e:F_(e)?[]:[e]}o(Dj,"toArray");function Lj(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}o(Lj,"extend");function Fj(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(Fj,"repeat");function Vj(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(Vj,"isNegativeZero");ji.exports.isNothing=F_;ji.exports.isObject=qj;ji.exports.toArray=Dj;ji.exports.repeat=Fj;ji.exports.isNegativeZero=Vj;ji.exports.extend=Lj});var Bo=v((pB,V_)=>{"use strict";function ia(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}o(ia,"YAMLException");ia.prototype=Object.create(Error.prototype);ia.prototype.constructor=ia;ia.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");V_.exports=ia});var U_=v((hB,B_)=>{"use strict";var H_=Mi();function kh(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(kh,"Mark");kh.prototype.getSnippet=o(function(t,r){var n,i,s,a,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
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(s="",a=this.position;a<this.buffer.length&&`\0\r
17
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){s=" ... ",a-=5;break}return c=this.buffer.slice(i,a),D_.repeat(" ",t)+n+c+s+`
18
- `+D_.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Rh.prototype.toString=o(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
19
- `+r)),n},"toString");L_.exports=Rh});var at=v((aB,H_)=>{"use strict";var V_=Ho(),Mj=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],kj=["scalar","sequence","mapping"];function qj(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(qj,"compileStyleAliases");function Dj(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Mj.indexOf(r)===-1)throw new V_('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=qj(t.styleAliases||null),kj.indexOf(this.kind)===-1)throw new V_('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(Dj,"Type");H_.exports=Dj});var ki=v((uB,U_)=>{"use strict";var B_=Mi(),uu=Ho(),Lj=at();function Nh(e,t,r){var n=[];return e.include.forEach(function(i){r=Nh(i,t,r)}),e[t].forEach(function(i){r.forEach(function(s,a){s.tag===i.tag&&s.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,s){return n.indexOf(s)===-1})}o(Nh,"compileList");function Fj(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(o(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}o(Fj,"compileMap");function Bo(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new uu("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Nh(this,"implicit",[]),this.compiledExplicit=Nh(this,"explicit",[]),this.compiledTypeMap=Fj(this.compiledImplicit,this.compiledExplicit)}o(Bo,"Schema");Bo.DEFAULT=null;Bo.create=o(function(){var t,r;switch(arguments.length){case 1:t=Bo.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new uu("Wrong number of arguments for Schema.create function")}if(t=B_.toArray(t),r=B_.toArray(r),!t.every(function(n){return n instanceof Bo}))throw new uu("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof Lj}))throw new uu("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Bo({include:t,explicit:r})},"createSchema");U_.exports=Bo});var z_=v((fB,G_)=>{"use strict";var Vj=at();G_.exports=new Vj("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var W_=v((dB,Z_)=>{"use strict";var Hj=at();Z_.exports=new Hj("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var Y_=v((mB,K_)=>{"use strict";var Bj=at();K_.exports=new Bj("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var lu=v((yB,Q_)=>{"use strict";var Uj=ki();Q_.exports=new Uj({explicit:[z_(),W_(),Y_()]})});var X_=v((bB,J_)=>{"use strict";var Gj=at();function zj(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(zj,"resolveYamlNull");function Zj(){return null}o(Zj,"constructYamlNull");function Wj(e){return e===null}o(Wj,"isNull");J_.exports=new Gj("tag:yaml.org,2002:null",{kind:"scalar",resolve:zj,construct:Zj,predicate:Wj,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var tS=v((_B,eS)=>{"use strict";var Kj=at();function Yj(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}o(Yj,"resolveYamlBoolean");function Qj(e){return e==="true"||e==="True"||e==="TRUE"}o(Qj,"constructYamlBoolean");function Jj(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(Jj,"isBoolean");eS.exports=new Kj("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Yj,construct:Qj,predicate:Jj,represent:{lowercase:o(function(e){return e?"true":"false"},"lowercase"),uppercase:o(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var nS=v((OB,rS)=>{"use strict";var Xj=Mi(),eM=at();function tM(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(tM,"isHexCode");function rM(e){return 48<=e&&e<=55}o(rM,"isOctCode");function nM(e){return 48<=e&&e<=57}o(nM,"isDecCode");function iM(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!tM(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!rM(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(i===":")break;if(!nM(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(iM,"resolveYamlInteger");function oM(e){var t=e,r=1,n,i,s=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){s.unshift(parseInt(a,10))}),t=0,i=1,s.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}o(oM,"constructYamlInteger");function sM(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Xj.isNegativeZero(e)}o(sM,"isInteger");rS.exports=new eM("tag:yaml.org,2002:int",{kind:"scalar",resolve:iM,construct:oM,predicate:sM,represent:{binary:o(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:o(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:o(function(e){return e.toString(10)},"decimal"),hexadecimal:o(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var sS=v((EB,oS)=>{"use strict";var iS=Mi(),aM=at(),cM=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function uM(e){return!(e===null||!cM.test(e)||e[e.length-1]==="_")}o(uM,"resolveYamlFloat");function lM(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(s){i.unshift(parseFloat(s,10))}),t=0,n=1,i.forEach(function(s){t+=s*n,n*=60}),r*t):r*parseFloat(t,10)}o(lM,"constructYamlFloat");var fM=/^[-+]?[0-9]+e/;function pM(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(iS.isNegativeZero(e))return"-0.0";return r=e.toString(10),fM.test(r)?r.replace("e",".e"):r}o(pM,"representYamlFloat");function dM(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||iS.isNegativeZero(e))}o(dM,"isFloat");oS.exports=new aM("tag:yaml.org,2002:float",{kind:"scalar",resolve:uM,construct:lM,predicate:dM,represent:pM,defaultStyle:"lowercase"})});var jh=v(($B,aS)=>{"use strict";var hM=ki();aS.exports=new hM({include:[lu()],implicit:[X_(),tS(),nS(),sS()]})});var Mh=v((wB,cS)=>{"use strict";var mM=ki();cS.exports=new mM({include:[jh()]})});var pS=v((AB,fS)=>{"use strict";var gM=at(),uS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),lS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function yM(e){return e===null?!1:uS.exec(e)!==null||lS.exec(e)!==null}o(yM,"resolveYamlTimestamp");function bM(e){var t,r,n,i,s,a,c,u=0,l=null,p,f,d;if(t=uS.exec(e),t===null&&(t=lS.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],a=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(p=+t[10],f=+(t[11]||0),l=(p*60+f)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,s,a,c,u)),l&&d.setTime(d.getTime()-l),d}o(bM,"constructYamlTimestamp");function vM(e){return e.toISOString()}o(vM,"representYamlTimestamp");fS.exports=new gM("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:yM,construct:bM,instanceOf:Date,represent:vM})});var hS=v((CB,dS)=>{"use strict";var _M=at();function SM(e){return e==="<<"||e===null}o(SM,"resolveYamlMerge");dS.exports=new _M("tag:yaml.org,2002:merge",{kind:"scalar",resolve:SM})});var yS=v((RB,gS)=>{"use strict";var qi;try{mS=require,qi=mS("buffer").Buffer}catch{}var mS,OM=at(),kh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
20
- \r`;function PM(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=kh;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}o(PM,"resolveYamlBinary");function EM(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=kh,a=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),qi?qi.from?qi.from(c):new qi(c):c}o(EM,"constructYamlBinary");function xM(e){var t="",r=0,n,i,s=e.length,a=kh;for(n=0;n<s;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}o(xM,"representYamlBinary");function $M(e){return qi&&qi.isBuffer(e)}o($M,"isBinary");gS.exports=new OM("tag:yaml.org,2002:binary",{kind:"scalar",resolve:PM,construct:EM,predicate:$M,represent:xM})});var vS=v((jB,bS)=>{"use strict";var wM=at(),AM=Object.prototype.hasOwnProperty,IM=Object.prototype.toString;function CM(e){if(e===null)return!0;var t=[],r,n,i,s,a,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],a=!1,IM.call(i)!=="[object Object]")return!1;for(s in i)if(AM.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}o(CM,"resolveYamlOmap");function TM(e){return e!==null?e:[]}o(TM,"constructYamlOmap");bS.exports=new wM("tag:yaml.org,2002:omap",{kind:"sequence",resolve:CM,construct:TM})});var SS=v((kB,_S)=>{"use strict";var RM=at(),NM=Object.prototype.toString;function jM(e){if(e===null)return!0;var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],NM.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(jM,"resolveYamlPairs");function MM(e){if(e===null)return[];var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}o(MM,"constructYamlPairs");_S.exports=new RM("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:jM,construct:MM})});var PS=v((DB,OS)=>{"use strict";var kM=at(),qM=Object.prototype.hasOwnProperty;function DM(e){if(e===null)return!0;var t,r=e;for(t in r)if(qM.call(r,t)&&r[t]!==null)return!1;return!0}o(DM,"resolveYamlSet");function LM(e){return e!==null?e:{}}o(LM,"constructYamlSet");OS.exports=new kM("tag:yaml.org,2002:set",{kind:"mapping",resolve:DM,construct:LM})});var Uo=v((FB,ES)=>{"use strict";var FM=ki();ES.exports=new FM({include:[Mh()],implicit:[pS(),hS()],explicit:[yS(),vS(),SS(),PS()]})});var $S=v((VB,xS)=>{"use strict";var VM=at();function HM(){return!0}o(HM,"resolveJavascriptUndefined");function BM(){}o(BM,"constructJavascriptUndefined");function UM(){return""}o(UM,"representJavascriptUndefined");function GM(e){return typeof e>"u"}o(GM,"isUndefined");xS.exports=new VM("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:HM,construct:BM,predicate:GM,represent:UM})});var AS=v((BB,wS)=>{"use strict";var zM=at();function ZM(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}o(ZM,"resolveJavascriptRegExp");function WM(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}o(WM,"constructJavascriptRegExp");function KM(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(KM,"representJavascriptRegExp");function YM(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(YM,"isRegExp");wS.exports=new zM("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:ZM,construct:WM,predicate:YM,represent:KM})});var TS=v((GB,CS)=>{"use strict";var fu;try{IS=require,fu=IS("esprima")}catch{typeof window<"u"&&(fu=window.esprima)}var IS,QM=at();function JM(e){if(e===null)return!1;try{var t="("+e+")",r=fu.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}o(JM,"resolveJavascriptFunction");function XM(e){var t="("+e+")",r=fu.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(s){n.push(s.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}o(XM,"constructJavascriptFunction");function ek(e){return e.toString()}o(ek,"representJavascriptFunction");function tk(e){return Object.prototype.toString.call(e)==="[object Function]"}o(tk,"isFunction");CS.exports=new QM("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:JM,construct:XM,predicate:tk,represent:ek})});var ia=v((ZB,NS)=>{"use strict";var RS=ki();NS.exports=RS.DEFAULT=new RS({include:[Uo()],explicit:[$S(),AS(),TS()]})});var JS=v((WB,oa)=>{"use strict";var pn=Mi(),FS=Ho(),rk=F_(),VS=Uo(),nk=ia(),Ln=Object.prototype.hasOwnProperty,pu=1,HS=2,BS=3,du=4,qh=1,ik=2,jS=3,ok=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,sk=/[\x85\u2028\u2029]/,ak=/[,\[\]\{\}]/,US=/^(?:!|!!|![a-z\-]+!)$/i,GS=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function MS(e){return Object.prototype.toString.call(e)}o(MS,"_class");function Zr(e){return e===10||e===13}o(Zr,"is_EOL");function Li(e){return e===9||e===32}o(Li,"is_WHITE_SPACE");function Dt(e){return e===9||e===32||e===10||e===13}o(Dt,"is_WS_OR_EOL");function Go(e){return e===44||e===91||e===93||e===123||e===125}o(Go,"is_FLOW_INDICATOR");function ck(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(ck,"fromHexCode");function uk(e){return e===120?2:e===117?4:e===85?8:0}o(uk,"escapedHexLen");function lk(e){return 48<=e&&e<=57?e-48:-1}o(lk,"fromDecimalCode");function kS(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
21
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}o(kS,"simpleEscapeSequence");function fk(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(fk,"charFromCodepoint");var zS=new Array(256),ZS=new Array(256);for(Di=0;Di<256;Di++)zS[Di]=kS(Di)?1:0,ZS[Di]=kS(Di);var Di;function pk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||nk,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}o(pk,"State");function WS(e,t){return new FS(t,new rk(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(WS,"generateError");function te(e,t){throw WS(e,t)}o(te,"throwError");function hu(e,t){e.onWarning&&e.onWarning.call(null,WS(e,t))}o(hu,"throwWarning");var qS={YAML:o(function(t,r,n){var i,s,a;t.version!==null&&te(t,"duplication of %YAML directive"),n.length!==1&&te(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&te(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&te(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&hu(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,s;n.length!==2&&te(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],US.test(i)||te(t,"ill-formed tag handle (first argument) of the TAG directive"),Ln.call(t.tagMap,i)&&te(t,'there is a previously declared suffix for "'+i+'" tag handle'),GS.test(s)||te(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function Dn(e,t,r,n){var i,s,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,s=c.length;i<s;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||te(e,"expected valid JSON character");else ok.test(c)&&te(e,"the stream contains non-printable characters");e.result+=c}}o(Dn,"captureSegment");function DS(e,t,r,n){var i,s,a,c;for(pn.isObject(r)||te(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)s=i[a],Ln.call(t,s)||(t[s]=r[s],n[s]=!0)}o(DS,"mergeMappings");function zo(e,t,r,n,i,s,a,c){var u,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,l=i.length;u<l;u+=1)Array.isArray(i[u])&&te(e,"nested arrays are not supported inside keys"),typeof i=="object"&&MS(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&MS(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,l=s.length;u<l;u+=1)DS(e,t,s[u],r);else DS(e,t,s,r);else!e.json&&!Ln.call(r,i)&&Ln.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,te(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(zo,"storeMappingPair");function Dh(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):te(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}o(Dh,"readLineBreak");function rt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Li(i);)i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Zr(i))for(Dh(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&hu(e,"deficient indentation"),n}o(rt,"skipSeparationSpace");function mu(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Dt(r)))}o(mu,"testDocumentSeparator");function Lh(e,t){t===1?e.result+=" ":t>1&&(e.result+=pn.repeat(`
22
- `,t-1))}o(Lh,"writeFoldedLines");function dk(e,t,r){var n,i,s,a,c,u,l,p,f=e.kind,d=e.result,h;if(h=e.input.charCodeAt(e.position),Dt(h)||Go(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),Dt(i)||r&&Go(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,c=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),Dt(i)||r&&Go(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Dt(n))break}else{if(e.position===e.lineStart&&mu(e)||r&&Go(h))break;if(Zr(h))if(u=e.line,l=e.lineStart,p=e.lineIndent,rt(e,!1,-1),e.lineIndent>=t){c=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=l,e.lineIndent=p;break}}c&&(Dn(e,s,a,!1),Lh(e,e.line-u),s=a=e.position,c=!1),Li(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return Dn(e,s,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}o(dk,"readPlainScalar");function hk(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Dn(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Zr(r)?(Dn(e,n,i,!0),Lh(e,rt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&mu(e)?te(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);te(e,"unexpected end of the stream within a single quoted scalar")}o(hk,"readSingleQuotedScalar");function mk(e,t){var r,n,i,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Dn(e,r,e.position,!0),e.position++,!0;if(c===92){if(Dn(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Zr(c))rt(e,!1,t);else if(c<256&&zS[c])e.result+=ZS[c],e.position++;else if((a=uk(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=ck(c))>=0?s=(s<<4)+a:te(e,"expected hexadecimal character");e.result+=fk(s),e.position++}else te(e,"unknown escape sequence");r=n=e.position}else Zr(c)?(Dn(e,r,n,!0),Lh(e,rt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&mu(e)?te(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}te(e,"unexpected end of the stream within a double quoted scalar")}o(mk,"readDoubleQuotedScalar");function gk(e,t){var r=!0,n,i=e.tag,s,a=e.anchor,c,u,l,p,f,d={},h,y,b,g;if(g=e.input.charCodeAt(e.position),g===91)u=93,f=!1,s=[];else if(g===123)u=125,f=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),g=e.input.charCodeAt(++e.position);g!==0;){if(rt(e,!0,t),g=e.input.charCodeAt(e.position),g===u)return e.position++,e.tag=i,e.anchor=a,e.kind=f?"mapping":"sequence",e.result=s,!0;r||te(e,"missed comma between flow collection entries"),y=h=b=null,l=p=!1,g===63&&(c=e.input.charCodeAt(e.position+1),Dt(c)&&(l=p=!0,e.position++,rt(e,!0,t))),n=e.line,Zo(e,t,pu,!1,!0),y=e.tag,h=e.result,rt(e,!0,t),g=e.input.charCodeAt(e.position),(p||e.line===n)&&g===58&&(l=!0,g=e.input.charCodeAt(++e.position),rt(e,!0,t),Zo(e,t,pu,!1,!0),b=e.result),f?zo(e,s,d,y,h,b):l?s.push(zo(e,null,d,y,h,b)):s.push(h),rt(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(r=!0,g=e.input.charCodeAt(++e.position)):r=!1}te(e,"unexpected end of the stream within a flow collection")}o(gk,"readFlowCollection");function yk(e,t){var r,n,i=qh,s=!1,a=!1,c=t,u=0,l=!1,p,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)qh===i?i=f===43?jS:ik:te(e,"repeat of a chomping mode identifier");else if((p=lk(f))>=0)p===0?te(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?te(e,"repeat of an indentation width identifier"):(c=t+p-1,a=!0);else break;if(Li(f)){do f=e.input.charCodeAt(++e.position);while(Li(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Zr(f)&&f!==0)}for(;f!==0;){for(Dh(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),Zr(f)){u++;continue}if(e.lineIndent<c){i===jS?e.result+=pn.repeat(`
23
- `,s?1+u:u):i===qh&&s&&(e.result+=`
17
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){s=" ... ",a-=5;break}return c=this.buffer.slice(i,a),H_.repeat(" ",t)+n+c+s+`
18
+ `+H_.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");kh.prototype.toString=o(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
19
+ `+r)),n},"toString");B_.exports=kh});var at=v((gB,z_)=>{"use strict";var G_=Bo(),Hj=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Bj=["scalar","sequence","mapping"];function Uj(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(Uj,"compileStyleAliases");function Gj(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Hj.indexOf(r)===-1)throw new G_('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=Uj(t.styleAliases||null),Bj.indexOf(this.kind)===-1)throw new G_('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(Gj,"Type");z_.exports=Gj});var ki=v((bB,W_)=>{"use strict";var Z_=Mi(),pu=Bo(),zj=at();function qh(e,t,r){var n=[];return e.include.forEach(function(i){r=qh(i,t,r)}),e[t].forEach(function(i){r.forEach(function(s,a){s.tag===i.tag&&s.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,s){return n.indexOf(s)===-1})}o(qh,"compileList");function Zj(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(o(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}o(Zj,"compileMap");function Uo(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new pu("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=qh(this,"implicit",[]),this.compiledExplicit=qh(this,"explicit",[]),this.compiledTypeMap=Zj(this.compiledImplicit,this.compiledExplicit)}o(Uo,"Schema");Uo.DEFAULT=null;Uo.create=o(function(){var t,r;switch(arguments.length){case 1:t=Uo.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new pu("Wrong number of arguments for Schema.create function")}if(t=Z_.toArray(t),r=Z_.toArray(r),!t.every(function(n){return n instanceof Uo}))throw new pu("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof zj}))throw new pu("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Uo({include:t,explicit:r})},"createSchema");W_.exports=Uo});var Y_=v((_B,K_)=>{"use strict";var Wj=at();K_.exports=new Wj("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var J_=v((OB,Q_)=>{"use strict";var Kj=at();Q_.exports=new Kj("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var eS=v((PB,X_)=>{"use strict";var Yj=at();X_.exports=new Yj("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var du=v(($B,tS)=>{"use strict";var Qj=ki();tS.exports=new Qj({explicit:[Y_(),J_(),eS()]})});var nS=v((wB,rS)=>{"use strict";var Jj=at();function Xj(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(Xj,"resolveYamlNull");function eM(){return null}o(eM,"constructYamlNull");function tM(e){return e===null}o(tM,"isNull");rS.exports=new Jj("tag:yaml.org,2002:null",{kind:"scalar",resolve:Xj,construct:eM,predicate:tM,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var oS=v((IB,iS)=>{"use strict";var rM=at();function nM(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}o(nM,"resolveYamlBoolean");function iM(e){return e==="true"||e==="True"||e==="TRUE"}o(iM,"constructYamlBoolean");function oM(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(oM,"isBoolean");iS.exports=new rM("tag:yaml.org,2002:bool",{kind:"scalar",resolve:nM,construct:iM,predicate:oM,represent:{lowercase:o(function(e){return e?"true":"false"},"lowercase"),uppercase:o(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var aS=v((TB,sS)=>{"use strict";var sM=Mi(),aM=at();function cM(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(cM,"isHexCode");function uM(e){return 48<=e&&e<=55}o(uM,"isOctCode");function lM(e){return 48<=e&&e<=57}o(lM,"isDecCode");function fM(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!cM(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!uM(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(i===":")break;if(!lM(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(fM,"resolveYamlInteger");function pM(e){var t=e,r=1,n,i,s=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){s.unshift(parseInt(a,10))}),t=0,i=1,s.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}o(pM,"constructYamlInteger");function dM(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!sM.isNegativeZero(e)}o(dM,"isInteger");sS.exports=new aM("tag:yaml.org,2002:int",{kind:"scalar",resolve:fM,construct:pM,predicate:dM,represent:{binary:o(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:o(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:o(function(e){return e.toString(10)},"decimal"),hexadecimal:o(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var lS=v((RB,uS)=>{"use strict";var cS=Mi(),hM=at(),mM=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function gM(e){return!(e===null||!mM.test(e)||e[e.length-1]==="_")}o(gM,"resolveYamlFloat");function yM(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(s){i.unshift(parseFloat(s,10))}),t=0,n=1,i.forEach(function(s){t+=s*n,n*=60}),r*t):r*parseFloat(t,10)}o(yM,"constructYamlFloat");var bM=/^[-+]?[0-9]+e/;function vM(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(cS.isNegativeZero(e))return"-0.0";return r=e.toString(10),bM.test(r)?r.replace("e",".e"):r}o(vM,"representYamlFloat");function _M(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||cS.isNegativeZero(e))}o(_M,"isFloat");uS.exports=new hM("tag:yaml.org,2002:float",{kind:"scalar",resolve:gM,construct:yM,predicate:_M,represent:vM,defaultStyle:"lowercase"})});var Dh=v((MB,fS)=>{"use strict";var SM=ki();fS.exports=new SM({include:[du()],implicit:[nS(),oS(),aS(),lS()]})});var Lh=v((kB,pS)=>{"use strict";var OM=ki();pS.exports=new OM({include:[Dh()]})});var gS=v((qB,mS)=>{"use strict";var EM=at(),dS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),hS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function PM(e){return e===null?!1:dS.exec(e)!==null||hS.exec(e)!==null}o(PM,"resolveYamlTimestamp");function xM(e){var t,r,n,i,s,a,c,u=0,l=null,p,f,d;if(t=dS.exec(e),t===null&&(t=hS.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],a=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(p=+t[10],f=+(t[11]||0),l=(p*60+f)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,s,a,c,u)),l&&d.setTime(d.getTime()-l),d}o(xM,"constructYamlTimestamp");function $M(e){return e.toISOString()}o($M,"representYamlTimestamp");mS.exports=new EM("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:PM,construct:xM,instanceOf:Date,represent:$M})});var bS=v((LB,yS)=>{"use strict";var wM=at();function AM(e){return e==="<<"||e===null}o(AM,"resolveYamlMerge");yS.exports=new wM("tag:yaml.org,2002:merge",{kind:"scalar",resolve:AM})});var SS=v((VB,_S)=>{"use strict";var qi;try{vS=require,qi=vS("buffer").Buffer}catch{}var vS,IM=at(),Fh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
20
+ \r`;function CM(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Fh;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}o(CM,"resolveYamlBinary");function TM(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Fh,a=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),qi?qi.from?qi.from(c):new qi(c):c}o(TM,"constructYamlBinary");function NM(e){var t="",r=0,n,i,s=e.length,a=Fh;for(n=0;n<s;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}o(NM,"representYamlBinary");function RM(e){return qi&&qi.isBuffer(e)}o(RM,"isBinary");_S.exports=new IM("tag:yaml.org,2002:binary",{kind:"scalar",resolve:CM,construct:TM,predicate:RM,represent:NM})});var ES=v((BB,OS)=>{"use strict";var jM=at(),MM=Object.prototype.hasOwnProperty,kM=Object.prototype.toString;function qM(e){if(e===null)return!0;var t=[],r,n,i,s,a,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],a=!1,kM.call(i)!=="[object Object]")return!1;for(s in i)if(MM.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}o(qM,"resolveYamlOmap");function DM(e){return e!==null?e:[]}o(DM,"constructYamlOmap");OS.exports=new jM("tag:yaml.org,2002:omap",{kind:"sequence",resolve:qM,construct:DM})});var xS=v((GB,PS)=>{"use strict";var LM=at(),FM=Object.prototype.toString;function VM(e){if(e===null)return!0;var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],FM.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(VM,"resolveYamlPairs");function HM(e){if(e===null)return[];var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}o(HM,"constructYamlPairs");PS.exports=new LM("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:VM,construct:HM})});var wS=v((ZB,$S)=>{"use strict";var BM=at(),UM=Object.prototype.hasOwnProperty;function GM(e){if(e===null)return!0;var t,r=e;for(t in r)if(UM.call(r,t)&&r[t]!==null)return!1;return!0}o(GM,"resolveYamlSet");function zM(e){return e!==null?e:{}}o(zM,"constructYamlSet");$S.exports=new BM("tag:yaml.org,2002:set",{kind:"mapping",resolve:GM,construct:zM})});var Go=v((KB,AS)=>{"use strict";var ZM=ki();AS.exports=new ZM({include:[Lh()],implicit:[gS(),bS()],explicit:[SS(),ES(),xS(),wS()]})});var CS=v((YB,IS)=>{"use strict";var WM=at();function KM(){return!0}o(KM,"resolveJavascriptUndefined");function YM(){}o(YM,"constructJavascriptUndefined");function QM(){return""}o(QM,"representJavascriptUndefined");function JM(e){return typeof e>"u"}o(JM,"isUndefined");IS.exports=new WM("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:KM,construct:YM,predicate:JM,represent:QM})});var NS=v((JB,TS)=>{"use strict";var XM=at();function ek(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}o(ek,"resolveJavascriptRegExp");function tk(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}o(tk,"constructJavascriptRegExp");function rk(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(rk,"representJavascriptRegExp");function nk(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(nk,"isRegExp");TS.exports=new XM("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:ek,construct:tk,predicate:nk,represent:rk})});var MS=v((e9,jS)=>{"use strict";var hu;try{RS=require,hu=RS("esprima")}catch{typeof window<"u"&&(hu=window.esprima)}var RS,ik=at();function ok(e){if(e===null)return!1;try{var t="("+e+")",r=hu.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}o(ok,"resolveJavascriptFunction");function sk(e){var t="("+e+")",r=hu.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(s){n.push(s.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}o(sk,"constructJavascriptFunction");function ak(e){return e.toString()}o(ak,"representJavascriptFunction");function ck(e){return Object.prototype.toString.call(e)==="[object Function]"}o(ck,"isFunction");jS.exports=new ik("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:ok,construct:sk,predicate:ck,represent:ak})});var oa=v((r9,qS)=>{"use strict";var kS=ki();qS.exports=kS.DEFAULT=new kS({include:[Go()],explicit:[CS(),NS(),MS()]})});var rO=v((n9,sa)=>{"use strict";var pn=Mi(),US=Bo(),uk=U_(),GS=Go(),lk=oa(),Fn=Object.prototype.hasOwnProperty,mu=1,zS=2,ZS=3,gu=4,Vh=1,fk=2,DS=3,pk=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,dk=/[\x85\u2028\u2029]/,hk=/[,\[\]\{\}]/,WS=/^(?:!|!!|![a-z\-]+!)$/i,KS=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function LS(e){return Object.prototype.toString.call(e)}o(LS,"_class");function Zr(e){return e===10||e===13}o(Zr,"is_EOL");function Li(e){return e===9||e===32}o(Li,"is_WHITE_SPACE");function Lt(e){return e===9||e===32||e===10||e===13}o(Lt,"is_WS_OR_EOL");function zo(e){return e===44||e===91||e===93||e===123||e===125}o(zo,"is_FLOW_INDICATOR");function mk(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(mk,"fromHexCode");function gk(e){return e===120?2:e===117?4:e===85?8:0}o(gk,"escapedHexLen");function yk(e){return 48<=e&&e<=57?e-48:-1}o(yk,"fromDecimalCode");function FS(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
21
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}o(FS,"simpleEscapeSequence");function bk(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(bk,"charFromCodepoint");var YS=new Array(256),QS=new Array(256);for(Di=0;Di<256;Di++)YS[Di]=FS(Di)?1:0,QS[Di]=FS(Di);var Di;function vk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||lk,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}o(vk,"State");function JS(e,t){return new US(t,new uk(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(JS,"generateError");function te(e,t){throw JS(e,t)}o(te,"throwError");function yu(e,t){e.onWarning&&e.onWarning.call(null,JS(e,t))}o(yu,"throwWarning");var VS={YAML:o(function(t,r,n){var i,s,a;t.version!==null&&te(t,"duplication of %YAML directive"),n.length!==1&&te(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&te(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&te(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&yu(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,s;n.length!==2&&te(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],WS.test(i)||te(t,"ill-formed tag handle (first argument) of the TAG directive"),Fn.call(t.tagMap,i)&&te(t,'there is a previously declared suffix for "'+i+'" tag handle'),KS.test(s)||te(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function Ln(e,t,r,n){var i,s,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,s=c.length;i<s;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||te(e,"expected valid JSON character");else pk.test(c)&&te(e,"the stream contains non-printable characters");e.result+=c}}o(Ln,"captureSegment");function HS(e,t,r,n){var i,s,a,c;for(pn.isObject(r)||te(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)s=i[a],Fn.call(t,s)||(t[s]=r[s],n[s]=!0)}o(HS,"mergeMappings");function Zo(e,t,r,n,i,s,a,c){var u,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,l=i.length;u<l;u+=1)Array.isArray(i[u])&&te(e,"nested arrays are not supported inside keys"),typeof i=="object"&&LS(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&LS(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,l=s.length;u<l;u+=1)HS(e,t,s[u],r);else HS(e,t,s,r);else!e.json&&!Fn.call(r,i)&&Fn.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,te(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(Zo,"storeMappingPair");function Hh(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):te(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}o(Hh,"readLineBreak");function rt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Li(i);)i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Zr(i))for(Hh(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&yu(e,"deficient indentation"),n}o(rt,"skipSeparationSpace");function bu(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Lt(r)))}o(bu,"testDocumentSeparator");function Bh(e,t){t===1?e.result+=" ":t>1&&(e.result+=pn.repeat(`
22
+ `,t-1))}o(Bh,"writeFoldedLines");function _k(e,t,r){var n,i,s,a,c,u,l,p,f=e.kind,d=e.result,h;if(h=e.input.charCodeAt(e.position),Lt(h)||zo(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),Lt(i)||r&&zo(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,c=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),Lt(i)||r&&zo(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Lt(n))break}else{if(e.position===e.lineStart&&bu(e)||r&&zo(h))break;if(Zr(h))if(u=e.line,l=e.lineStart,p=e.lineIndent,rt(e,!1,-1),e.lineIndent>=t){c=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=l,e.lineIndent=p;break}}c&&(Ln(e,s,a,!1),Bh(e,e.line-u),s=a=e.position,c=!1),Li(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return Ln(e,s,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}o(_k,"readPlainScalar");function Sk(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Ln(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Zr(r)?(Ln(e,n,i,!0),Bh(e,rt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&bu(e)?te(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);te(e,"unexpected end of the stream within a single quoted scalar")}o(Sk,"readSingleQuotedScalar");function Ok(e,t){var r,n,i,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Ln(e,r,e.position,!0),e.position++,!0;if(c===92){if(Ln(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Zr(c))rt(e,!1,t);else if(c<256&&YS[c])e.result+=QS[c],e.position++;else if((a=gk(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=mk(c))>=0?s=(s<<4)+a:te(e,"expected hexadecimal character");e.result+=bk(s),e.position++}else te(e,"unknown escape sequence");r=n=e.position}else Zr(c)?(Ln(e,r,n,!0),Bh(e,rt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&bu(e)?te(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}te(e,"unexpected end of the stream within a double quoted scalar")}o(Ok,"readDoubleQuotedScalar");function Ek(e,t){var r=!0,n,i=e.tag,s,a=e.anchor,c,u,l,p,f,d={},h,y,b,m;if(m=e.input.charCodeAt(e.position),m===91)u=93,f=!1,s=[];else if(m===123)u=125,f=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),m=e.input.charCodeAt(++e.position);m!==0;){if(rt(e,!0,t),m=e.input.charCodeAt(e.position),m===u)return e.position++,e.tag=i,e.anchor=a,e.kind=f?"mapping":"sequence",e.result=s,!0;r||te(e,"missed comma between flow collection entries"),y=h=b=null,l=p=!1,m===63&&(c=e.input.charCodeAt(e.position+1),Lt(c)&&(l=p=!0,e.position++,rt(e,!0,t))),n=e.line,Wo(e,t,mu,!1,!0),y=e.tag,h=e.result,rt(e,!0,t),m=e.input.charCodeAt(e.position),(p||e.line===n)&&m===58&&(l=!0,m=e.input.charCodeAt(++e.position),rt(e,!0,t),Wo(e,t,mu,!1,!0),b=e.result),f?Zo(e,s,d,y,h,b):l?s.push(Zo(e,null,d,y,h,b)):s.push(h),rt(e,!0,t),m=e.input.charCodeAt(e.position),m===44?(r=!0,m=e.input.charCodeAt(++e.position)):r=!1}te(e,"unexpected end of the stream within a flow collection")}o(Ek,"readFlowCollection");function Pk(e,t){var r,n,i=Vh,s=!1,a=!1,c=t,u=0,l=!1,p,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Vh===i?i=f===43?DS:fk:te(e,"repeat of a chomping mode identifier");else if((p=yk(f))>=0)p===0?te(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?te(e,"repeat of an indentation width identifier"):(c=t+p-1,a=!0);else break;if(Li(f)){do f=e.input.charCodeAt(++e.position);while(Li(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Zr(f)&&f!==0)}for(;f!==0;){for(Hh(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),Zr(f)){u++;continue}if(e.lineIndent<c){i===DS?e.result+=pn.repeat(`
23
+ `,s?1+u:u):i===Vh&&s&&(e.result+=`
24
24
  `);break}for(n?Li(f)?(l=!0,e.result+=pn.repeat(`
25
25
  `,s?1+u:u)):l?(l=!1,e.result+=pn.repeat(`
26
26
  `,u+1)):u===0?s&&(e.result+=" "):e.result+=pn.repeat(`
27
27
  `,u):e.result+=pn.repeat(`
28
- `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!Zr(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Dn(e,r,e.position,!1)}return!0}o(yk,"readBlockScalar");function LS(e,t){var r,n=e.tag,i=e.anchor,s=[],a,c=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!Dt(a)));){if(c=!0,e.position++,rt(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Zo(e,t,BS,!1,!0),s.push(e.result),rt(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)te(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}o(LS,"readBlockSequence");function bk(e,t,r){var n,i,s,a,c=e.tag,u=e.anchor,l={},p={},f=null,d=null,h=null,y=!1,b=!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),s=e.line,a=e.position,(g===63||g===58)&&Dt(n))g===63?(y&&(zo(e,l,p,f,d,null),f=d=h=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):te(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(Zo(e,r,HS,!1,!0))if(e.line===s){for(g=e.input.charCodeAt(e.position);Li(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),Dt(g)||te(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(zo(e,l,p,f,d,null),f=d=h=null),b=!0,y=!1,i=!1,f=e.tag,d=e.result;else if(b)te(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(b)te(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0;else break;if((e.line===s||e.lineIndent>t)&&(Zo(e,t,du,!0,i)&&(y?d=e.result:h=e.result),y||(zo(e,l,p,f,d,h,s,a),f=d=h=null),rt(e,!0,-1),g=e.input.charCodeAt(e.position)),e.lineIndent>t&&g!==0)te(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&zo(e,l,p,f,d,null),b&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),b}o(bk,"readBlockMapping");function vk(e){var t,r=!1,n=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&te(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):te(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Dt(a);)a===33&&(n?te(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),US.test(i)||te(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),ak.test(s)&&te(e,"tag suffix cannot contain flow indicator characters")}return s&&!GS.test(s)&&te(e,"tag name cannot contain such characters: "+s),r?e.tag=s:Ln.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:te(e,'undeclared tag handle "'+i+'"'),!0}o(vk,"readTagProperty");function _k(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&te(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Dt(r)&&!Go(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&te(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}o(_k,"readAnchorProperty");function Sk(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&&!Dt(n)&&!Go(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&te(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Ln.call(e.anchorMap,r)||te(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],rt(e,!0,-1),!0}o(Sk,"readAlias");function Zo(e,t,r,n,i){var s,a,c,u=1,l=!1,p=!1,f,d,h,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=c=du===r||BS===r,n&&rt(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;vk(e)||_k(e);)rt(e,!0,-1)?(l=!0,c=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=l||i),(u===1||du===r)&&(pu===r||HS===r?y=t:y=t+1,b=e.position-e.lineStart,u===1?c&&(LS(e,b)||bk(e,b,y))||gk(e,y)?p=!0:(a&&yk(e,y)||hk(e,y)||mk(e,y)?p=!0:Sk(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&te(e,"alias node should not have any properties")):dk(e,y,pu===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(p=c&&LS(e,b))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&te(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 Ln.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&te(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)):te(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):te(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}o(Zo,"composeNode");function Ok(e){var t=e.position,r,n,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(rt(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Dt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&te(e,"directive name must not be less than one character in length");a!==0;){for(;Li(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Zr(a));break}if(Zr(a))break;for(r=e.position;a!==0&&!Dt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Dh(e),Ln.call(qS,n)?qS[n](e,n,i):hu(e,'unknown document directive "'+n+'"')}if(rt(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,rt(e,!0,-1)):s&&te(e,"directives end mark is expected"),Zo(e,e.lineIndent-1,du,!1,!0),rt(e,!0,-1),e.checkLineBreaks&&sk.test(e.input.slice(t,e.position))&&hu(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&mu(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,rt(e,!0,-1));return}if(e.position<e.length-1)te(e,"end of the stream or a document separator is expected");else return}o(Ok,"readDocument");function KS(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 pk(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,te(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;)Ok(r);return r.documents}o(KS,"loadDocuments");function YS(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=KS(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(YS,"loadAll");function QS(e,t){var r=KS(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new FS("expected a single document in the stream, but found more")}}o(QS,"load");function Pk(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),YS(e,t,pn.extend({schema:VS},r))}o(Pk,"safeLoadAll");function Ek(e,t){return QS(e,pn.extend({schema:VS},t))}o(Ek,"safeLoad");oa.exports.loadAll=YS;oa.exports.load=QS;oa.exports.safeLoadAll=Pk;oa.exports.safeLoad=Ek});var SO=v((YB,Bh)=>{"use strict";var aa=Mi(),ca=Ho(),xk=ia(),$k=Uo(),sO=Object.prototype.toString,aO=Object.prototype.hasOwnProperty,wk=9,sa=10,Ak=13,Ik=32,Ck=33,Tk=34,cO=35,Rk=37,Nk=38,jk=39,Mk=42,uO=44,kk=45,lO=58,qk=61,Dk=62,Lk=63,Fk=64,fO=91,pO=93,Vk=96,dO=123,Hk=124,hO=125,Pt={};Pt[0]="\\0";Pt[7]="\\a";Pt[8]="\\b";Pt[9]="\\t";Pt[10]="\\n";Pt[11]="\\v";Pt[12]="\\f";Pt[13]="\\r";Pt[27]="\\e";Pt[34]='\\"';Pt[92]="\\\\";Pt[133]="\\N";Pt[160]="\\_";Pt[8232]="\\L";Pt[8233]="\\P";var Bk=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Uk(e,t){var r,n,i,s,a,c,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)a=n[i],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&aO.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(Uk,"compileStyleMap");function XS(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 ca("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+aa.repeat("0",n-t.length)+t}o(XS,"encodeHex");function Gk(e){this.schema=e.schema||xk,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=aa.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Uk(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}o(Gk,"State");function eO(e,t){for(var r=aa.repeat(" ",t),n=0,i=-1,s="",a,c=e.length;n<c;)i=e.indexOf(`
28
+ `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!Zr(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Ln(e,r,e.position,!1)}return!0}o(Pk,"readBlockScalar");function BS(e,t){var r,n=e.tag,i=e.anchor,s=[],a,c=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!Lt(a)));){if(c=!0,e.position++,rt(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Wo(e,t,ZS,!1,!0),s.push(e.result),rt(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)te(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}o(BS,"readBlockSequence");function xk(e,t,r){var n,i,s,a,c=e.tag,u=e.anchor,l={},p={},f=null,d=null,h=null,y=!1,b=!1,m;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),m=e.input.charCodeAt(e.position);m!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,a=e.position,(m===63||m===58)&&Lt(n))m===63?(y&&(Zo(e,l,p,f,d,null),f=d=h=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):te(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,m=n;else if(Wo(e,r,zS,!1,!0))if(e.line===s){for(m=e.input.charCodeAt(e.position);Li(m);)m=e.input.charCodeAt(++e.position);if(m===58)m=e.input.charCodeAt(++e.position),Lt(m)||te(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Zo(e,l,p,f,d,null),f=d=h=null),b=!0,y=!1,i=!1,f=e.tag,d=e.result;else if(b)te(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(b)te(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0;else break;if((e.line===s||e.lineIndent>t)&&(Wo(e,t,gu,!0,i)&&(y?d=e.result:h=e.result),y||(Zo(e,l,p,f,d,h,s,a),f=d=h=null),rt(e,!0,-1),m=e.input.charCodeAt(e.position)),e.lineIndent>t&&m!==0)te(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Zo(e,l,p,f,d,null),b&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),b}o(xk,"readBlockMapping");function $k(e){var t,r=!1,n=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&te(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):te(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Lt(a);)a===33&&(n?te(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),WS.test(i)||te(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),hk.test(s)&&te(e,"tag suffix cannot contain flow indicator characters")}return s&&!KS.test(s)&&te(e,"tag name cannot contain such characters: "+s),r?e.tag=s:Fn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:te(e,'undeclared tag handle "'+i+'"'),!0}o($k,"readTagProperty");function wk(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&te(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Lt(r)&&!zo(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&te(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}o(wk,"readAnchorProperty");function Ak(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&&!Lt(n)&&!zo(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&te(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Fn.call(e.anchorMap,r)||te(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],rt(e,!0,-1),!0}o(Ak,"readAlias");function Wo(e,t,r,n,i){var s,a,c,u=1,l=!1,p=!1,f,d,h,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=c=gu===r||ZS===r,n&&rt(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;$k(e)||wk(e);)rt(e,!0,-1)?(l=!0,c=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=l||i),(u===1||gu===r)&&(mu===r||zS===r?y=t:y=t+1,b=e.position-e.lineStart,u===1?c&&(BS(e,b)||xk(e,b,y))||Ek(e,y)?p=!0:(a&&Pk(e,y)||Sk(e,y)||Ok(e,y)?p=!0:Ak(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&te(e,"alias node should not have any properties")):_k(e,y,mu===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(p=c&&BS(e,b))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&te(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 Fn.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&te(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)):te(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):te(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}o(Wo,"composeNode");function Ik(e){var t=e.position,r,n,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(rt(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Lt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&te(e,"directive name must not be less than one character in length");a!==0;){for(;Li(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Zr(a));break}if(Zr(a))break;for(r=e.position;a!==0&&!Lt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Hh(e),Fn.call(VS,n)?VS[n](e,n,i):yu(e,'unknown document directive "'+n+'"')}if(rt(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,rt(e,!0,-1)):s&&te(e,"directives end mark is expected"),Wo(e,e.lineIndent-1,gu,!1,!0),rt(e,!0,-1),e.checkLineBreaks&&dk.test(e.input.slice(t,e.position))&&yu(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&bu(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,rt(e,!0,-1));return}if(e.position<e.length-1)te(e,"end of the stream or a document separator is expected");else return}o(Ik,"readDocument");function XS(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 vk(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,te(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;)Ik(r);return r.documents}o(XS,"loadDocuments");function eO(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=XS(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(eO,"loadAll");function tO(e,t){var r=XS(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new US("expected a single document in the stream, but found more")}}o(tO,"load");function Ck(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),eO(e,t,pn.extend({schema:GS},r))}o(Ck,"safeLoadAll");function Tk(e,t){return tO(e,pn.extend({schema:GS},t))}o(Tk,"safeLoad");sa.exports.loadAll=eO;sa.exports.load=tO;sa.exports.safeLoadAll=Ck;sa.exports.safeLoad=Tk});var xO=v((o9,Zh)=>{"use strict";var ca=Mi(),ua=Bo(),Nk=oa(),Rk=Go(),lO=Object.prototype.toString,fO=Object.prototype.hasOwnProperty,jk=9,aa=10,Mk=13,kk=32,qk=33,Dk=34,pO=35,Lk=37,Fk=38,Vk=39,Hk=42,dO=44,Bk=45,hO=58,Uk=61,Gk=62,zk=63,Zk=64,mO=91,gO=93,Wk=96,yO=123,Kk=124,bO=125,Et={};Et[0]="\\0";Et[7]="\\a";Et[8]="\\b";Et[9]="\\t";Et[10]="\\n";Et[11]="\\v";Et[12]="\\f";Et[13]="\\r";Et[27]="\\e";Et[34]='\\"';Et[92]="\\\\";Et[133]="\\N";Et[160]="\\_";Et[8232]="\\L";Et[8233]="\\P";var Yk=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Qk(e,t){var r,n,i,s,a,c,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)a=n[i],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&fO.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(Qk,"compileStyleMap");function nO(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 ua("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ca.repeat("0",n-t.length)+t}o(nO,"encodeHex");function Jk(e){this.schema=e.schema||Nk,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ca.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Qk(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}o(Jk,"State");function iO(e,t){for(var r=ca.repeat(" ",t),n=0,i=-1,s="",a,c=e.length;n<c;)i=e.indexOf(`
30
30
  `,n),i===-1?(a=e.slice(n),n=c):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
31
- `&&(s+=r),s+=a;return s}o(eO,"indentString");function Fh(e,t){return`
32
- `+aa.repeat(" ",e.indent*t)}o(Fh,"generateNextLine");function zk(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}o(zk,"testImplicitResolving");function Hh(e){return e===Ik||e===wk}o(Hh,"isWhitespace");function Wo(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}o(Wo,"isPrintable");function Zk(e){return Wo(e)&&!Hh(e)&&e!==65279&&e!==Ak&&e!==sa}o(Zk,"isNsChar");function tO(e,t){return Wo(e)&&e!==65279&&e!==uO&&e!==fO&&e!==pO&&e!==dO&&e!==hO&&e!==lO&&(e!==cO||t&&Zk(t))}o(tO,"isPlainSafe");function Wk(e){return Wo(e)&&e!==65279&&!Hh(e)&&e!==kk&&e!==Lk&&e!==lO&&e!==uO&&e!==fO&&e!==pO&&e!==dO&&e!==hO&&e!==cO&&e!==Nk&&e!==Mk&&e!==Ck&&e!==Hk&&e!==qk&&e!==Dk&&e!==jk&&e!==Tk&&e!==Rk&&e!==Fk&&e!==Vk}o(Wk,"isPlainSafeFirst");function mO(e){var t=/^\n* /;return t.test(e)}o(mO,"needIndentIndicator");var gO=1,yO=2,bO=3,vO=4,gu=5;function Kk(e,t,r,n,i){var s,a,c,u=!1,l=!1,p=n!==-1,f=-1,d=Wk(e.charCodeAt(0))&&!Hh(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!Wo(a))return gu;c=s>0?e.charCodeAt(s-1):null,d=d&&tO(a,c)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===sa)u=!0,p&&(l=l||s-f-1>n&&e[f+1]!==" ",f=s);else if(!Wo(a))return gu;c=s>0?e.charCodeAt(s-1):null,d=d&&tO(a,c)}l=l||p&&s-f-1>n&&e[f+1]!==" "}return!u&&!l?d&&!i(e)?gO:yO:r>9&&mO(e)?gu:l?vO:bO}o(Kk,"chooseScalarStyle");function Yk(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&Bk.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return zk(e,u)}switch(o(c,"testAmbiguity"),Kk(t,a,e.indent,s,c)){case gO:return t;case yO:return"'"+t.replace(/'/g,"''")+"'";case bO:return"|"+rO(t,e.indent)+nO(eO(t,i));case vO:return">"+rO(t,e.indent)+nO(eO(Qk(t,s),i));case gu:return'"'+Jk(t,s)+'"';default:throw new ca("impossible error: invalid scalar style")}}()}o(Yk,"writeScalar");function rO(e,t){var r=mO(e)?String(t):"",n=e[e.length-1]===`
31
+ `&&(s+=r),s+=a;return s}o(iO,"indentString");function Uh(e,t){return`
32
+ `+ca.repeat(" ",e.indent*t)}o(Uh,"generateNextLine");function Xk(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}o(Xk,"testImplicitResolving");function zh(e){return e===kk||e===jk}o(zh,"isWhitespace");function Ko(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}o(Ko,"isPrintable");function e3(e){return Ko(e)&&!zh(e)&&e!==65279&&e!==Mk&&e!==aa}o(e3,"isNsChar");function oO(e,t){return Ko(e)&&e!==65279&&e!==dO&&e!==mO&&e!==gO&&e!==yO&&e!==bO&&e!==hO&&(e!==pO||t&&e3(t))}o(oO,"isPlainSafe");function t3(e){return Ko(e)&&e!==65279&&!zh(e)&&e!==Bk&&e!==zk&&e!==hO&&e!==dO&&e!==mO&&e!==gO&&e!==yO&&e!==bO&&e!==pO&&e!==Fk&&e!==Hk&&e!==qk&&e!==Kk&&e!==Uk&&e!==Gk&&e!==Vk&&e!==Dk&&e!==Lk&&e!==Zk&&e!==Wk}o(t3,"isPlainSafeFirst");function vO(e){var t=/^\n* /;return t.test(e)}o(vO,"needIndentIndicator");var _O=1,SO=2,OO=3,EO=4,vu=5;function r3(e,t,r,n,i){var s,a,c,u=!1,l=!1,p=n!==-1,f=-1,d=t3(e.charCodeAt(0))&&!zh(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!Ko(a))return vu;c=s>0?e.charCodeAt(s-1):null,d=d&&oO(a,c)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===aa)u=!0,p&&(l=l||s-f-1>n&&e[f+1]!==" ",f=s);else if(!Ko(a))return vu;c=s>0?e.charCodeAt(s-1):null,d=d&&oO(a,c)}l=l||p&&s-f-1>n&&e[f+1]!==" "}return!u&&!l?d&&!i(e)?_O:SO:r>9&&vO(e)?vu:l?EO:OO}o(r3,"chooseScalarStyle");function n3(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&Yk.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return Xk(e,u)}switch(o(c,"testAmbiguity"),r3(t,a,e.indent,s,c)){case _O:return t;case SO:return"'"+t.replace(/'/g,"''")+"'";case OO:return"|"+sO(t,e.indent)+aO(iO(t,i));case EO:return">"+sO(t,e.indent)+aO(iO(i3(t,s),i));case vu:return'"'+o3(t,s)+'"';default:throw new ua("impossible error: invalid scalar style")}}()}o(n3,"writeScalar");function sO(e,t){var r=vO(e)?String(t):"",n=e[e.length-1]===`
33
33
  `,i=n&&(e[e.length-2]===`
34
34
  `||e===`
35
35
  `),s=i?"+":n?"":"-";return r+s+`
36
- `}o(rO,"blockHeader");function nO(e){return e[e.length-1]===`
37
- `?e.slice(0,-1):e}o(nO,"dropEndingNewline");function Qk(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=e.indexOf(`
38
- `);return l=l!==-1?l:e.length,r.lastIndex=l,iO(e.slice(0,l),t)}(),i=e[0]===`
36
+ `}o(sO,"blockHeader");function aO(e){return e[e.length-1]===`
37
+ `?e.slice(0,-1):e}o(aO,"dropEndingNewline");function i3(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=e.indexOf(`
38
+ `);return l=l!==-1?l:e.length,r.lastIndex=l,cO(e.slice(0,l),t)}(),i=e[0]===`
39
39
  `||e[0]===" ",s,a;a=r.exec(e);){var c=a[1],u=a[2];s=u[0]===" ",n+=c+(!i&&!s&&u!==""?`
40
- `:"")+iO(u,t),i=s}return n}o(Qk,"foldString");function iO(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(s=a>i?a:c,u+=`
40
+ `:"")+cO(u,t),i=s}return n}o(i3,"foldString");function cO(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(s=a>i?a:c,u+=`
41
41
  `+e.slice(i,s),i=s+1),a=c;return u+=`
42
42
  `,e.length-i>t&&a>i?u+=e.slice(i,a)+`
43
- `+e.slice(a+1):u+=e.slice(i),u.slice(1)}o(iO,"foldLine");function Jk(e){for(var t="",r,n,i,s=0;s<e.length;s++){if(r=e.charCodeAt(s),r>=55296&&r<=56319&&(n=e.charCodeAt(s+1),n>=56320&&n<=57343)){t+=XS((r-55296)*1024+n-56320+65536),s++;continue}i=Pt[r],t+=!i&&Wo(r)?e[s]:i||XS(r)}return t}o(Jk,"escapeString");function Xk(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Fi(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(Xk,"writeFlowSequence");function e3(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)Fi(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Fh(e,t)),e.dump&&sa===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(e3,"writeBlockSequence");function t3(e,t,r){var n="",i=e.tag,s=Object.keys(r),a,c,u,l,p;for(a=0,c=s.length;a<c;a+=1)p="",a!==0&&(p+=", "),e.condenseFlow&&(p+='"'),u=s[a],l=r[u],Fi(e,t,u,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Fi(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}o(t3,"writeFlowMapping");function r3(e,t,r,n){var i="",s=e.tag,a=Object.keys(r),c,u,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 ca("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=Fh(e,t)),l=a[c],p=r[l],Fi(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&sa===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=Fh(e,t)),Fi(e,t+1,p,!0,f)&&(e.dump&&sa===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(r3,"writeBlockMapping");function oO(e,t,r){var n,i,s,a,c,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(c=i[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.tag:"?",c.represent){if(u=e.styleMap[c.tag]||c.defaultStyle,sO.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(aO.call(c.represent,u))n=c.represent[u](t,u);else throw new ca("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(oO,"detectType");function Fi(e,t,r,n,i,s){e.tag=null,e.dump=r,oO(e,r,!1)||oO(e,r,!0);var a=sO.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var c=a==="[object Object]"||a==="[object Array]",u,l;if(c&&(u=e.duplicates.indexOf(r),l=u!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(c&&l&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(r3(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(t3(e,t,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump));else if(a==="[object Array]"){var p=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(e3(e,p,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(Xk(e,p,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&Yk(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new ca("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(Fi,"writeNode");function n3(e,t){var r=[],n=[],i,s;for(Vh(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(n3,"getDuplicateReferences");function Vh(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Vh(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Vh(e[n[i]],t,r)}o(Vh,"inspectNode");function _O(e,t){t=t||{};var r=new Gk(t);return r.noRefs||n3(e,r),Fi(r,0,e,!0,!0)?r.dump+`
44
- `:""}o(_O,"dump");function i3(e,t){return _O(e,aa.extend({schema:$k},t))}o(i3,"safeDump");Bh.exports.dump=_O;Bh.exports.safeDump=i3});var PO=v((JB,We)=>{"use strict";var yu=JS(),OO=SO();function bu(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(bu,"deprecated");We.exports.Type=at();We.exports.Schema=ki();We.exports.FAILSAFE_SCHEMA=lu();We.exports.JSON_SCHEMA=jh();We.exports.CORE_SCHEMA=Mh();We.exports.DEFAULT_SAFE_SCHEMA=Uo();We.exports.DEFAULT_FULL_SCHEMA=ia();We.exports.load=yu.load;We.exports.loadAll=yu.loadAll;We.exports.safeLoad=yu.safeLoad;We.exports.safeLoadAll=yu.safeLoadAll;We.exports.dump=OO.dump;We.exports.safeDump=OO.safeDump;We.exports.YAMLException=Ho();We.exports.MINIMAL_SCHEMA=lu();We.exports.SAFE_SCHEMA=Uo();We.exports.DEFAULT_SCHEMA=ia();We.exports.scan=bu("scan");We.exports.parse=bu("parse");We.exports.compose=bu("compose");We.exports.addConstructor=bu("addConstructor")});var xO=v((e9,EO)=>{"use strict";var o3=PO();EO.exports=o3});var wO=v((t9,$O)=>{"use strict";var{ParserError:s3}=Cr(),a3=xO();$O.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 a3.safeLoad(t)}catch(r){throw new s3(r.message,e.url)}else return t}}});var IO=v((r9,AO)=>{"use strict";var{ParserError:c3}=Cr(),u3=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;AO.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&u3.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 c3("data is not text",e.url)}}});var TO=v((n9,CO)=>{"use strict";var l3=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;CO.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&l3.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var jO=v((i9,NO)=>{"use strict";var f3=require("fs"),{ono:Uh}=Er(),RO=Gt(),{ResolverError:Gh}=Cr();NO.exports={order:100,canRead(e){return RO.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=RO.toFileSystemPath(e.url)}catch(i){r(new Gh(Uh.uri(i,`Malformed URI: ${e.url}`),e.url))}try{f3.readFile(n,(i,s)=>{i?r(new Gh(Uh(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new Gh(Uh(i,`Error opening file "${n}"`),n))}})}}});var DO=v((o9,qO)=>{"use strict";var p3=require("http"),d3=require("https"),{ono:vu}=Er(),ua=Gt(),{ResolverError:MO}=Cr();qO.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return ua.isHttp(e.url)},read(e){let t=ua.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=ua.parse(location.href).protocol),kO(t,this)}};function kO(e,t,r){return new Promise((n,i)=>{e=ua.parse(e),r=r||[],r.push(e.href),h3(e,t).then(s=>{if(s.statusCode>=400)throw vu({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new MO(vu({status:s.statusCode},`Error downloading ${r[0]}.
43
+ `+e.slice(a+1):u+=e.slice(i),u.slice(1)}o(cO,"foldLine");function o3(e){for(var t="",r,n,i,s=0;s<e.length;s++){if(r=e.charCodeAt(s),r>=55296&&r<=56319&&(n=e.charCodeAt(s+1),n>=56320&&n<=57343)){t+=nO((r-55296)*1024+n-56320+65536),s++;continue}i=Et[r],t+=!i&&Ko(r)?e[s]:i||nO(r)}return t}o(o3,"escapeString");function s3(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Fi(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(s3,"writeFlowSequence");function a3(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)Fi(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Uh(e,t)),e.dump&&aa===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(a3,"writeBlockSequence");function c3(e,t,r){var n="",i=e.tag,s=Object.keys(r),a,c,u,l,p;for(a=0,c=s.length;a<c;a+=1)p="",a!==0&&(p+=", "),e.condenseFlow&&(p+='"'),u=s[a],l=r[u],Fi(e,t,u,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Fi(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}o(c3,"writeFlowMapping");function u3(e,t,r,n){var i="",s=e.tag,a=Object.keys(r),c,u,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 ua("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=Uh(e,t)),l=a[c],p=r[l],Fi(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&aa===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=Uh(e,t)),Fi(e,t+1,p,!0,f)&&(e.dump&&aa===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(u3,"writeBlockMapping");function uO(e,t,r){var n,i,s,a,c,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(c=i[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.tag:"?",c.represent){if(u=e.styleMap[c.tag]||c.defaultStyle,lO.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(fO.call(c.represent,u))n=c.represent[u](t,u);else throw new ua("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(uO,"detectType");function Fi(e,t,r,n,i,s){e.tag=null,e.dump=r,uO(e,r,!1)||uO(e,r,!0);var a=lO.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var c=a==="[object Object]"||a==="[object Array]",u,l;if(c&&(u=e.duplicates.indexOf(r),l=u!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(c&&l&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(u3(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(c3(e,t,e.dump),l&&(e.dump="&ref_"+u+" "+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_"+u+e.dump)):(s3(e,p,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&n3(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new ua("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(Fi,"writeNode");function l3(e,t){var r=[],n=[],i,s;for(Gh(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(l3,"getDuplicateReferences");function Gh(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Gh(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Gh(e[n[i]],t,r)}o(Gh,"inspectNode");function PO(e,t){t=t||{};var r=new Jk(t);return r.noRefs||l3(e,r),Fi(r,0,e,!0,!0)?r.dump+`
44
+ `:""}o(PO,"dump");function f3(e,t){return PO(e,ca.extend({schema:Rk},t))}o(f3,"safeDump");Zh.exports.dump=PO;Zh.exports.safeDump=f3});var wO=v((a9,We)=>{"use strict";var _u=rO(),$O=xO();function Su(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(Su,"deprecated");We.exports.Type=at();We.exports.Schema=ki();We.exports.FAILSAFE_SCHEMA=du();We.exports.JSON_SCHEMA=Dh();We.exports.CORE_SCHEMA=Lh();We.exports.DEFAULT_SAFE_SCHEMA=Go();We.exports.DEFAULT_FULL_SCHEMA=oa();We.exports.load=_u.load;We.exports.loadAll=_u.loadAll;We.exports.safeLoad=_u.safeLoad;We.exports.safeLoadAll=_u.safeLoadAll;We.exports.dump=$O.dump;We.exports.safeDump=$O.safeDump;We.exports.YAMLException=Bo();We.exports.MINIMAL_SCHEMA=du();We.exports.SAFE_SCHEMA=Go();We.exports.DEFAULT_SCHEMA=oa();We.exports.scan=Su("scan");We.exports.parse=Su("parse");We.exports.compose=Su("compose");We.exports.addConstructor=Su("addConstructor")});var IO=v((u9,AO)=>{"use strict";var p3=wO();AO.exports=p3});var TO=v((l9,CO)=>{"use strict";var{ParserError:d3}=Cr(),h3=IO();CO.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 RO=v((f9,NO)=>{"use strict";var{ParserError:m3}=Cr(),g3=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;NO.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 MO=v((p9,jO)=>{"use strict";var y3=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;jO.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 DO=v((d9,qO)=>{"use strict";var b3=require("fs"),{ono:Wh}=Pr(),kO=Wt(),{ResolverError:Kh}=Cr();qO.exports={order:100,canRead(e){return kO.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=kO.toFileSystemPath(e.url)}catch(i){r(new Kh(Wh.uri(i,`Malformed URI: ${e.url}`),e.url))}try{b3.readFile(n,(i,s)=>{i?r(new Kh(Wh(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new Kh(Wh(i,`Error opening file "${n}"`),n))}})}}});var HO=v((h9,VO)=>{"use strict";var v3=require("http"),_3=require("https"),{ono:Ou}=Pr(),la=Wt(),{ResolverError:LO}=Cr();VO.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return la.isHttp(e.url)},read(e){let t=la.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=la.parse(location.href).protocol),FO(t,this)}};function FO(e,t,r){return new Promise((n,i)=>{e=la.parse(e),r=r||[],r.push(e.href),S3(e,t).then(s=>{if(s.statusCode>=400)throw Ou({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new LO(Ou({status:s.statusCode},`Error downloading ${r[0]}.
45
45
  Too many redirects:
46
46
  ${r.join(`
47
- `)}`)));else if(s.headers.location){let a=ua.resolve(e,s.headers.location);kO(a,t,r).then(n,i)}else throw vu({status:s.statusCode},`HTTP ${s.statusCode} redirect with no location header`);else n(s.body||Buffer.alloc(0))}).catch(s=>{i(new MO(vu(s,`Error downloading ${e.href}`),e.href))})})}o(kO,"download");function h3(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?d3:p3).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof s.setTimeout=="function"&&s.setTimeout(t.timeout),s.on("timeout",()=>{s.abort()}),s.on("error",n),s.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",c=>{a.body=Buffer.concat([a.body,Buffer.from(c)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}o(h3,"get")});var Wh=v((a9,FO)=>{"use strict";var m3=M_(),g3=wO(),y3=IO(),b3=TO(),v3=jO(),_3=DO();FO.exports=Zh;function Zh(e){zh(this,Zh.defaults),zh(this,e)}o(Zh,"$RefParserOptions");Zh.defaults={parse:{json:m3,yaml:g3,text:y3,binary:b3},resolve:{file:v3,http:_3,external:!0},continueOnError:!1,dereference:{circular:!0}};function zh(e,t){if(LO(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];LO(s)?e[i]=zh(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(zh,"merge");function LO(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(LO,"isMergeable")});var Kh=v((u9,HO)=>{"use strict";var VO=Wh();HO.exports=S3;function S3(e){let t,r,n,i;return e=Array.prototype.slice.call(e),typeof e[e.length-1]=="function"&&(i=e.pop()),typeof e[0]=="string"?(t=e[0],typeof e[2]=="object"?(r=e[1],n=e[2]):(r=void 0,n=e[1])):(t="",r=e[0],n=e[1]),n instanceof VO||(n=new VO(n)),{path:t,schema:r,options:n,callback:i}}o(S3,"normalizeArgs")});var UO=v((f9,BO)=>{"use strict";var Yh=Wh(),O3=Ah(),P3=Th(),E3=require("util");BO.exports=_u;function _u(e){Yh.call(this,_u.defaults),Yh.apply(this,arguments)}o(_u,"ParserOptions");_u.defaults={validate:{schema:O3,spec:P3}};E3.inherits(_u,Yh)});var zO=v((d9,GO)=>{"use strict";function x3(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(x3,"makeNext");GO.exports=x3()});var Qh=v((m9,WO)=>{"use strict";var ZO=zO();WO.exports=o(function(t,r){if(t){r.then(function(n){ZO(function(){t(null,n)})},function(n){ZO(function(){t(n)})});return}else return r},"maybe")});var la=v((y9,QO)=>{"use strict";QO.exports=Fn;var Jh=Ko(),Xh=Gt(),{JSONParserError:$3,InvalidPointerError:w3,MissingPointerError:A3,isHandledError:I3}=Cr(),C3=/\//g,T3=/~/g,R3=/~1/g,N3=/~0/g;function Fn(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(Fn,"Pointer");Fn.prototype.resolve=function(e,t,r){let n=Fn.parse(this.path,this.originalPath);this.value=YO(e);for(let i=0;i<n.length;i++){if(Su(this,t)&&(this.path=Fn.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let s=n[i];if(this.value[s]===void 0||this.value[s]===null)throw this.value=null,new A3(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&Xh.resolve(this.path,this.value.$ref)!==r)&&Su(this,t),this};Fn.prototype.set=function(e,t,r){let n=Fn.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=YO(e);for(let s=0;s<n.length-1;s++)Su(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=KO(this,i,{});return Su(this,r),i=n[n.length-1],KO(this,i,t),e};Fn.parse=function(e,t){let r=Xh.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(R3,"/").replace(N3,"~"));if(r[0]!=="")throw new w3(r,t===void 0?e:t);return r.slice(1)};Fn.join=function(e,t){e.indexOf("#")===-1&&(e+="#"),t=Array.isArray(t)?t:[t];for(let r=0;r<t.length;r++){let n=t[r];e+="/"+encodeURIComponent(n.replace(T3,"~0").replace(C3,"~1"))}return e};function Su(e,t){if(Jh.isAllowed$Ref(e.value,t)){let r=Xh.resolve(e.path,e.value.$ref);if(r===e.path)e.circular=!0;else{let n=e.$ref.$refs._resolve(r,e.path,t);return e.indirections+=n.indirections+1,Jh.isExtended$Ref(e.value)?(e.value=Jh.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(Su,"resolveIf$Ref");function KO(e,t,r){if(e.value&&typeof e.value=="object")t==="-"&&Array.isArray(e.value)?e.value.push(r):e.value[t]=r;else throw new $3(`Error assigning $ref pointer "${e.path}".
48
- Cannot set "${t}" of a non-object.`);return r}o(KO,"setValue");function YO(e){if(I3(e))throw e;return e}o(YO,"unwrapOrThrow")});var Ko=v((v9,eP)=>{"use strict";eP.exports=It;var XO=la(),{InvalidPointerError:j3,isHandledError:M3,normalizeError:JO}=Cr(),{safePointerToPath:k3,stripHash:q3,getHash:D3}=Gt();function It(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}o(It,"$Ref");It.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(JO)):this.errors.push(JO(e))};It.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};It.prototype.get=function(e,t){return this.resolve(e,t).value};It.prototype.resolve=function(e,t,r,n){let i=new XO(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!M3(s))throw s;return s.path===null&&(s.path=k3(D3(n))),s instanceof j3&&(s.source=q3(n)),this.addError(s),null}};It.prototype.set=function(e,t){let r=new XO(this,e);this.value=r.set(this.value,t)};It.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};It.isExternal$Ref=function(e){return It.is$Ref(e)&&e.$ref[0]!=="#"};It.isAllowed$Ref=function(e,t){if(It.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};It.isExtended$Ref=function(e){return It.is$Ref(e)&&Object.keys(e).length>1};It.dereference=function(e,t){if(t&&typeof t=="object"&&It.isExtended$Ref(e)){let r={};for(let n of Object.keys(e))n!=="$ref"&&(r[n]=e[n]);for(let n of Object.keys(t))n in r||(r[n]=t[n]);return r}else return t}});var iP=v((S9,nP)=>{"use strict";var{ono:tP}=Er(),L3=Ko(),Vn=Gt();nP.exports=Tr;function Tr(){this.circular=!1,this._$refs={},this._root$Ref=null}o(Tr,"$Refs");Tr.prototype.paths=function(e){return rP(this._$refs,arguments).map(r=>r.decoded)};Tr.prototype.values=function(e){let t=this._$refs;return rP(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};Tr.prototype.toJSON=Tr.prototype.values;Tr.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};Tr.prototype.get=function(e,t){return this._resolve(e,"",t).value};Tr.prototype.set=function(e,t){let r=Vn.resolve(this._root$Ref.path,e),n=Vn.stripHash(r),i=this._$refs[n];if(!i)throw tP(`Error resolving $ref pointer "${e}".
49
- "${n}" not found.`);i.set(r,t)};Tr.prototype._add=function(e){let t=Vn.stripHash(e),r=new L3;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};Tr.prototype._resolve=function(e,t,r){let n=Vn.resolve(this._root$Ref.path,e),i=Vn.stripHash(n),s=this._$refs[i];if(!s)throw tP(`Error resolving $ref pointer "${e}".
50
- "${i}" not found.`);return s.resolve(n,r,e,t)};Tr.prototype._get$Ref=function(e){e=Vn.resolve(this._root$Ref.path,e);let t=Vn.stripHash(e);return this._$refs[t]};function rP(e,t){let r=Object.keys(e);return t=Array.isArray(t[0])?t[0]:Array.prototype.slice.call(t),t.length>0&&t[0]&&(r=r.filter(n=>t.indexOf(e[n].pathType)!==-1)),r.map(n=>({encoded:n,decoded:e[n].pathType==="file"?Vn.toFileSystemPath(n,!0):n}))}o(rP,"getPaths")});var sP=v(fa=>{"use strict";fa.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};fa.filter=function(e,t,r){return e.filter(n=>!!oP(n,t,r))};fa.sort=function(e){for(let t of e)t.order=t.order||Number.MAX_SAFE_INTEGER;return e.sort((t,r)=>t.order-r.order)};fa.run=function(e,t,r,n){let i,s,a=0;return new Promise((c,u)=>{l();function l(){if(i=e[a++],!i)return u(s);try{let h=oP(i,t,r,p,n);if(h&&typeof h.then=="function")h.then(f,d);else if(h!==void 0)f(h);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(h){d(h)}}o(l,"runNextPlugin");function p(h,y){h?d(h):f(y)}o(p,"callback");function f(h){c({plugin:i,result:h})}o(f,"onSuccess");function d(h){s={plugin:i,error:h},l()}o(d,"onError")})};function oP(e,t,r,n,i){let s=e[t];if(typeof s=="function")return s.apply(e,[r,n,i]);if(!n){if(s instanceof RegExp)return s.test(r.url);if(typeof s=="string")return s===r.extension;if(Array.isArray(s))return s.indexOf(r.extension)!==-1}return s}o(oP,"getResult")});var tm=v((x9,lP)=>{"use strict";var{ono:em}=Er(),aP=Gt(),Hn=sP(),{ResolverError:cP,ParserError:uP,UnmatchedParserError:F3,UnmatchedResolverError:V3,isHandledError:H3}=Cr();lP.exports=B3;async function B3(e,t,r){e=aP.stripHash(e);let n=t._add(e),i={url:e,extension:aP.getExtension(e)};try{let s=await U3(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await G3(i,r,t);return n.value=a.result,a.result}catch(s){throw H3(s)&&(n.value=s),s}}o(B3,"parse");function U3(e,t,r){return new Promise((n,i)=>{let s=Hn.all(t.resolve);s=Hn.filter(s,"canRead",e),Hn.sort(s),Hn.run(s,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new V3(e.url)):!c||!("error"in c)?i(em.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof cP?i(c.error):i(new cP(c,e.url))}o(a,"onError")})}o(U3,"readFile");function G3(e,t,r){return new Promise((n,i)=>{let s=Hn.all(t.parse),a=Hn.filter(s,"canParse",e),c=a.length>0?a:s;Hn.sort(c),Hn.run(c,"parse",e,r).then(u,l);function u(p){!p.plugin.allowEmpty&&z3(p.result)?i(em.syntax(`Error parsing "${e.url}" as ${p.plugin.name}.
51
- Parsed value is empty`)):n(p)}o(u,"onParsed");function l(p){!p&&t.continueOnError?i(new F3(e.url)):!p||!("error"in p)?i(em.syntax(`Unable to parse ${e.url}`)):p.error instanceof uP?i(p.error):i(new uP(p.error.message,e.url))}o(l,"onError")})}o(G3,"parseFile");function z3(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}o(z3,"isEmpty")});var hP=v((w9,dP)=>{"use strict";var fP=Ko(),Z3=la(),W3=tm(),pa=Gt(),{isHandledError:K3}=Cr();dP.exports=Y3;function Y3(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=rm(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(Y3,"resolveExternal");function rm(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(fP.isExternal$Ref(e))i.push(pP(e,t,r,n));else for(let s of Object.keys(e)){let a=Z3.join(t,s),c=e[s];fP.isExternal$Ref(c)?i.push(pP(c,a,r,n)):i=i.concat(rm(c,a,r,n))}return i}o(rm,"crawl");async function pP(e,t,r,n){let i=pa.resolve(t,e.$ref),s=pa.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await W3(i,r,n),c=rm(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!K3(a))throw a;return r._$refs[s]&&(a.source=pa.stripHash(t),a.path=pa.safePointerToPath(pa.getHash(t))),[]}}o(pP,"resolve$Ref")});var yP=v((I9,gP)=>{"use strict";var Ou=Ko(),da=la(),nm=Gt();gP.exports=Q3;function Q3(e,t){let r=[];im(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),J3(r)}o(Q3,"bundle");function im(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(Ou.isAllowed$Ref(u))mP(e,t,r,n,i,s,a,c);else{let l=Object.keys(u).sort((p,f)=>p==="definitions"?-1:f==="definitions"?1:p.length-f.length);for(let p of l){let f=da.join(r,p),d=da.join(n,p),h=u[p];Ou.isAllowed$Ref(h)?mP(u,p,r,d,i,s,a,c):im(u,p,f,d,i,s,a,c)}}}o(im,"crawl");function mP(e,t,r,n,i,s,a,c){let u=t===null?e:e[t],l=nm.resolve(r,u.$ref),p=a._resolve(l,n,c);if(p===null)return;let f=da.parse(n).length,d=nm.stripHash(p.path),h=nm.getHash(p.path),y=d!==a._root$Ref.path,b=Ou.isExtended$Ref(u);i+=p.indirections;let g=X3(s,e,t);if(g)if(f<g.depth||i<g.indirections)eq(s,g);else return;s.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:b,external:y,indirections:i}),g||im(p.value,null,p.path,n,i+1,s,a,c)}o(mP,"inventory$Ref");function J3(e){e.sort((i,s)=>{if(i.file!==s.file)return i.file<s.file?-1:1;if(i.hash!==s.hash)return i.hash<s.hash?-1:1;if(i.circular!==s.circular)return i.circular?-1:1;if(i.extended!==s.extended)return i.extended?1:-1;if(i.indirections!==s.indirections)return i.indirections-s.indirections;if(i.depth!==s.depth)return i.depth-s.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=s.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-s.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=da.join(n,da.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Ou.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(J3,"remap");function X3(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}o(X3,"findInInventory");function eq(e,t){let r=e.indexOf(t);e.splice(r,1)}o(eq,"removeFromInventory")});var am=v((T9,SP)=>{"use strict";var om=Ko(),bP=la(),{ono:tq}=Er(),rq=Gt();SP.exports=nq;function nq(e,t){let r=sm(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(nq,"dereference");function sm(e,t,r,n,i,s){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),om.isAllowed$Ref(e,s))a=vP(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=bP.join(t,u),p=bP.join(r,u),f=e[u],d=!1;om.isAllowed$Ref(f,s)?(a=vP(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(f)===-1?(a=sm(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=_P(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(sm,"crawl");function vP(e,t,r,n,i,s){let a=rq.resolve(t,e.$ref),c=i._resolve(a,t,s);if(c===null)return{circular:!1,value:null};let u=c.circular,l=u||n.indexOf(c.value)!==-1;l&&_P(t,i,s);let p=om.dereference(e,c.value);if(!l){let f=sm(p,c.path,r,n,i,s);l=f.circular,p=f.value}return l&&!u&&s.dereference.circular==="ignore"&&(p=e),u&&(p.$ref=r),{circular:l,value:p}}o(vP,"dereference$Ref");function _P(e,t,r){if(t.circular=!0,!r.dereference.circular)throw tq.reference(`Circular $ref pointer found at ${e}`);return!0}o(_P,"foundCircularReference")});var xP=v((N9,Kr)=>{"use strict";var EP=iP(),iq=tm(),Pu=Kh(),oq=hP(),sq=yP(),aq=am(),Yo=Gt(),{JSONParserError:cq,InvalidPointerError:uq,MissingPointerError:lq,ResolverError:fq,ParserError:pq,UnmatchedParserError:dq,UnmatchedResolverError:hq,isHandledError:mq,JSONParserErrorGroup:OP}=Cr(),Rr=Qh(),{ono:PP}=Er();Kr.exports=Wr;Kr.exports.default=Wr;Kr.exports.JSONParserError=cq;Kr.exports.InvalidPointerError=uq;Kr.exports.MissingPointerError=lq;Kr.exports.ResolverError=fq;Kr.exports.ParserError=pq;Kr.exports.UnmatchedParserError=dq;Kr.exports.UnmatchedResolverError=hq;function Wr(){this.schema=null,this.$refs=new EP}o(Wr,"$RefParser");Wr.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");Wr.prototype.parse=o(async function(t,r,n,i){let s=Pu(arguments),a;if(!s.path&&!s.schema){let l=PP(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return Rr(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new EP;let c="http";if(Yo.isFileSystemPath(s.path)&&(s.path=Yo.fromFileSystemPath(s.path),c="file"),s.path=Yo.resolve(Yo.cwd(),s.path),s.schema&&typeof s.schema=="object"){let l=this.$refs._add(s.path);l.value=s.schema,l.pathType=c,a=Promise.resolve(s.schema)}else a=iq(s.path,this.$refs,s.options);let u=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return u.schema=l,Rr(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,Rr(s.callback,Promise.resolve(u.schema));throw PP.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!mq(l)?Rr(s.callback,Promise.reject(l)):(this.$refs._$refs[Yo.stripHash(s.path)]&&this.$refs._$refs[Yo.stripHash(s.path)].addError(l),Rr(s.callback,Promise.resolve(null)))}},"parse");Wr.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");Wr.prototype.resolve=o(async function(t,r,n,i){let s=this,a=Pu(arguments);try{return await this.parse(a.path,a.schema,a.options),await oq(s,a.options),cm(s),Rr(a.callback,Promise.resolve(s.$refs))}catch(c){return Rr(a.callback,Promise.reject(c))}},"resolve");Wr.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");Wr.prototype.bundle=o(async function(t,r,n,i){let s=this,a=Pu(arguments);try{return await this.resolve(a.path,a.schema,a.options),sq(s,a.options),cm(s),Rr(a.callback,Promise.resolve(s.schema))}catch(c){return Rr(a.callback,Promise.reject(c))}},"bundle");Wr.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");Wr.prototype.dereference=o(async function(t,r,n,i){let s=this,a=Pu(arguments);try{return await this.resolve(a.path,a.schema,a.options),aq(s,a.options),cm(s),Rr(a.callback,Promise.resolve(s.schema))}catch(c){return Rr(a.callback,Promise.reject(c))}},"dereference");function cm(e){if(OP.getParserErrors(e).length>0)throw new OP(e)}o(cm,"finalize")});var um=v((M9,IP)=>{"use strict";var gq=Ah(),yq=Th(),$P=Kh(),wP=Sc(),AP=UO(),Eu=Qh(),{ono:Nr}=Er(),Vi=xP(),bq=am();IP.exports=Yr;function Yr(){Vi.apply(this,arguments)}o(Yr,"SwaggerParser");wP.inherits(Yr,Vi);Yr.parse=Vi.parse;Yr.resolve=Vi.resolve;Yr.bundle=Vi.bundle;Yr.dereference=Vi.dereference;Object.defineProperty(Yr.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});Yr.prototype.parse=async function(e,t,r,n){let i=$P(arguments);i.options=new AP(i.options);try{let s=await Vi.prototype.parse.call(this,i.path,i.schema,i.options);if(s.swagger){if(s.swagger===void 0||s.info===void 0||s.paths===void 0)throw Nr.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw Nr.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw Nr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw Nr.syntax(`Unrecognized Swagger version: ${s.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(s.openapi===void 0||s.info===void 0)throw Nr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(s.paths===void 0)if(s.openapi==="3.1.0"){if(s.webhooks===void 0)throw Nr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw Nr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw Nr.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw Nr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw Nr.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}wP.fixOasRelativeServers(s,i.path)}return Eu(i.callback,Promise.resolve(s))}catch(s){return Eu(i.callback,Promise.reject(s))}};Yr.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};Yr.prototype.validate=async function(e,t,r,n){let i=this,s=$P(arguments);s.options=new AP(s.options);let a=s.options.dereference.circular;s.options.validate.schema&&(s.options.dereference.circular="ignore");try{if(await this.dereference(s.path,s.schema,s.options),s.options.dereference.circular=a,s.options.validate.schema&&(gq(i.api),i.$refs.circular)){if(a===!0)bq(i,s.options);else if(a===!1)throw Nr.reference("The API contains circular references")}return s.options.validate.spec&&yq(i.api),Eu(s.callback,Promise.resolve(i.schema))}catch(c){return Eu(s.callback,Promise.reject(c))}}});var Tt=v(Qt=>{"use strict";Qt.__esModule=!0;Qt.extend=f1;Qt.indexOf=a4;Qt.escapeExpression=c4;Qt.isEmpty=u4;Qt.createFrame=l4;Qt.blockParams=f4;Qt.appendContextPath=p4;var n4={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},i4=/[&<>"'`=]/g,o4=/[&<>"'`=]/;function s4(e){return n4[e]}o(s4,"escapeChar");function f1(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}o(f1,"extend");var Hm=Object.prototype.toString;Qt.toString=Hm;var Vm=o(function(t){return typeof t=="function"},"isFunction");Vm(/x/)&&(Qt.isFunction=Vm=o(function(e){return typeof e=="function"&&Hm.call(e)==="[object Function]"},"isFunction"));Qt.isFunction=Vm;var p1=Array.isArray||function(e){return e&&typeof e=="object"?Hm.call(e)==="[object Array]":!1};Qt.isArray=p1;function a4(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(a4,"indexOf");function c4(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return o4.test(e)?e.replace(i4,s4):e}o(c4,"escapeExpression");function u4(e){return!e&&e!==0?!0:!!(p1(e)&&e.length===0)}o(u4,"isEmpty");function l4(e){var t=f1({},e);return t._parent=e,t}o(l4,"createFrame");function f4(e,t){return e.path=t,e}o(f4,"blockParams");function p4(e,t){return(e?e+".":"")+t}o(p4,"appendContextPath")});var gr=v((Wu,d1)=>{"use strict";Wu.__esModule=!0;var Bm=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Um(e,t){var r=t&&t.loc,n=void 0,i=void 0,s=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,e+=" - "+n+":"+s);for(var c=Error.prototype.constructor.call(this,e),u=0;u<Bm.length;u++)this[Bm[u]]=c[Bm[u]];Error.captureStackTrace&&Error.captureStackTrace(this,Um);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=s,this.endColumn=a))}catch{}}o(Um,"Exception");Um.prototype=new Error;Wu.default=Um;d1.exports=Wu.default});var m1=v((Ku,h1)=>{"use strict";Ku.__esModule=!0;var Gm=Tt();Ku.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var n=r.inverse,i=r.fn;if(t===!0)return i(this);if(t===!1||t==null)return n(this);if(Gm.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var s=Gm.createFrame(r.data);s.contextPath=Gm.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};h1.exports=Ku.default});var y1=v((Yu,g1)=>{"use strict";Yu.__esModule=!0;function d4(e){return e&&e.__esModule?e:{default:e}}o(d4,"_interopRequireDefault");var Ra=Tt(),h4=gr(),m4=d4(h4);Yu.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new m4.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",c=void 0,u=void 0;r.data&&r.ids&&(u=Ra.appendContextPath(r.data.contextPath,r.ids[0])+"."),Ra.isFunction(t)&&(t=t.call(this)),r.data&&(c=Ra.createFrame(r.data));function l(y,b,g){c&&(c.key=y,c.index=b,c.first=b===0,c.last=!!g,u&&(c.contextPath=u+y)),a=a+n(t[y],{data:c,blockParams:Ra.blockParams([t[y],y],[u+y,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(Ra.isArray(t))for(var p=t.length;s<p;s++)s in t&&l(s,s,s===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;s<p;s++)l(s,s,s===t.length-1)}else(function(){var y=void 0;Object.keys(t).forEach(function(b){y!==void 0&&l(y,s-1),y=b,s++}),y!==void 0&&l(y,s-1,!0)})();return s===0&&(a=i(this)),a})};g1.exports=Yu.default});var v1=v((Qu,b1)=>{"use strict";Qu.__esModule=!0;function g4(e){return e&&e.__esModule?e:{default:e}}o(g4,"_interopRequireDefault");var y4=gr(),b4=g4(y4);Qu.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new b4.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};b1.exports=Qu.default});var P1=v((Ju,O1)=>{"use strict";Ju.__esModule=!0;function v4(e){return e&&e.__esModule?e:{default:e}}o(v4,"_interopRequireDefault");var _1=Tt(),_4=gr(),S1=v4(_4);Ju.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new S1.default("#if requires exactly one argument");return _1.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||_1.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new S1.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};O1.exports=Ju.default});var x1=v((Xu,E1)=>{"use strict";Xu.__esModule=!0;Xu.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var i=1;r.hash.level!=null?i=r.hash.level:r.data&&r.data.level!=null&&(i=r.data.level),t[0]=i,e.log.apply(e,t)})};E1.exports=Xu.default});var w1=v((el,$1)=>{"use strict";el.__esModule=!0;el.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};$1.exports=el.default});var I1=v((tl,A1)=>{"use strict";tl.__esModule=!0;function S4(e){return e&&e.__esModule?e:{default:e}}o(S4,"_interopRequireDefault");var Na=Tt(),O4=gr(),P4=S4(O4);tl.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new P4.default("#with requires exactly one argument");Na.isFunction(t)&&(t=t.call(this));var n=r.fn;if(Na.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=Na.createFrame(r.data),i.contextPath=Na.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:Na.blockParams([t],[i&&i.contextPath])})})};A1.exports=tl.default});var zm=v(rl=>{"use strict";rl.__esModule=!0;rl.registerDefaultHelpers=D4;rl.moveHelperToHooks=L4;function Wi(e){return e&&e.__esModule?e:{default:e}}o(Wi,"_interopRequireDefault");var E4=m1(),x4=Wi(E4),$4=y1(),w4=Wi($4),A4=v1(),I4=Wi(A4),C4=P1(),T4=Wi(C4),R4=x1(),N4=Wi(R4),j4=w1(),M4=Wi(j4),k4=I1(),q4=Wi(k4);function D4(e){x4.default(e),w4.default(e),I4.default(e),T4.default(e),N4.default(e),M4.default(e),q4.default(e)}o(D4,"registerDefaultHelpers");function L4(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(L4,"moveHelperToHooks")});var T1=v((nl,C1)=>{"use strict";nl.__esModule=!0;var F4=Tt();nl.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var s=t;return r.partials||(r.partials={},s=o(function(a,c){var u=n.partials;n.partials=F4.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};C1.exports=nl.default});var R1=v(Zm=>{"use strict";Zm.__esModule=!0;Zm.registerDefaultDecorators=U4;function V4(e){return e&&e.__esModule?e:{default:e}}o(V4,"_interopRequireDefault");var H4=T1(),B4=V4(H4);function U4(e){B4.default(e)}o(U4,"registerDefaultDecorators")});var Wm=v((il,N1)=>{"use strict";il.__esModule=!0;var G4=Tt(),ns={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=G4.indexOf(ns.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=ns.lookupLevel(t),typeof console<"u"&&ns.lookupLevel(ns.level)<=t){var r=ns.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];console[r].apply(console,i)}},"log")};il.default=ns;N1.exports=il.default});var j1=v(Km=>{"use strict";Km.__esModule=!0;Km.createNewLookupObject=Z4;var z4=Tt();function Z4(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return z4.extend.apply(void 0,[Object.create(null)].concat(t))}o(Z4,"createNewLookupObject")});var Ym=v(ja=>{"use strict";ja.__esModule=!0;ja.createProtoAccessControl=Q4;ja.resultIsAllowed=J4;ja.resetLoggedProperties=eD;function W4(e){return e&&e.__esModule?e:{default:e}}o(W4,"_interopRequireDefault");var M1=j1(),K4=Wm(),Y4=W4(K4),ol=Object.create(null);function Q4(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=Object.create(null);return r.__proto__=!1,{properties:{whitelist:M1.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:M1.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(Q4,"createProtoAccessControl");function J4(e,t,r){return k1(typeof e=="function"?t.methods:t.properties,r)}o(J4,"resultIsAllowed");function k1(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(X4(t),!1)}o(k1,"checkWhiteList");function X4(e){ol[e]!==!0&&(ol[e]=!0,Y4.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
47
+ `)}`)));else if(s.headers.location){let a=la.resolve(e,s.headers.location);FO(a,t,r).then(n,i)}else throw Ou({status:s.statusCode},`HTTP ${s.statusCode} redirect with no location header`);else n(s.body||Buffer.alloc(0))}).catch(s=>{i(new LO(Ou(s,`Error downloading ${e.href}`),e.href))})})}o(FO,"download");function S3(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?_3:v3).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof s.setTimeout=="function"&&s.setTimeout(t.timeout),s.on("timeout",()=>{s.abort()}),s.on("error",n),s.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",c=>{a.body=Buffer.concat([a.body,Buffer.from(c)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}o(S3,"get")});var Jh=v((g9,UO)=>{"use strict";var O3=L_(),E3=TO(),P3=RO(),x3=MO(),$3=DO(),w3=HO();UO.exports=Qh;function Qh(e){Yh(this,Qh.defaults),Yh(this,e)}o(Qh,"$RefParserOptions");Qh.defaults={parse:{json:O3,yaml:E3,text:P3,binary:x3},resolve:{file:$3,http:w3,external:!0},continueOnError:!1,dereference:{circular:!0}};function Yh(e,t){if(BO(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];BO(s)?e[i]=Yh(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(Yh,"merge");function BO(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(BO,"isMergeable")});var Xh=v((b9,zO)=>{"use strict";var GO=Jh();zO.exports=A3;function A3(e){let t,r,n,i;return e=Array.prototype.slice.call(e),typeof e[e.length-1]=="function"&&(i=e.pop()),typeof e[0]=="string"?(t=e[0],typeof e[2]=="object"?(r=e[1],n=e[2]):(r=void 0,n=e[1])):(t="",r=e[0],n=e[1]),n instanceof GO||(n=new GO(n)),{path:t,schema:r,options:n,callback:i}}o(A3,"normalizeArgs")});var WO=v((_9,ZO)=>{"use strict";var em=Jh(),I3=Nh(),C3=Mh(),T3=require("util");ZO.exports=Eu;function Eu(e){em.call(this,Eu.defaults),em.apply(this,arguments)}o(Eu,"ParserOptions");Eu.defaults={validate:{schema:I3,spec:C3}};T3.inherits(Eu,em)});var YO=v((O9,KO)=>{"use strict";function N3(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(N3,"makeNext");KO.exports=N3()});var tm=v((P9,JO)=>{"use strict";var QO=YO();JO.exports=o(function(t,r){if(t){r.then(function(n){QO(function(){t(null,n)})},function(n){QO(function(){t(n)})});return}else return r},"maybe")});var fa=v(($9,tE)=>{"use strict";tE.exports=Vn;var rm=Yo(),nm=Wt(),{JSONParserError:R3,InvalidPointerError:j3,MissingPointerError:M3,isHandledError:k3}=Cr(),q3=/\//g,D3=/~/g,L3=/~1/g,F3=/~0/g;function Vn(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(Vn,"Pointer");Vn.prototype.resolve=function(e,t,r){let n=Vn.parse(this.path,this.originalPath);this.value=eE(e);for(let i=0;i<n.length;i++){if(Pu(this,t)&&(this.path=Vn.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let s=n[i];if(this.value[s]===void 0||this.value[s]===null)throw this.value=null,new M3(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&nm.resolve(this.path,this.value.$ref)!==r)&&Pu(this,t),this};Vn.prototype.set=function(e,t,r){let n=Vn.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=eE(e);for(let s=0;s<n.length-1;s++)Pu(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=XO(this,i,{});return Pu(this,r),i=n[n.length-1],XO(this,i,t),e};Vn.parse=function(e,t){let r=nm.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(L3,"/").replace(F3,"~"));if(r[0]!=="")throw new j3(r,t===void 0?e:t);return r.slice(1)};Vn.join=function(e,t){e.indexOf("#")===-1&&(e+="#"),t=Array.isArray(t)?t:[t];for(let r=0;r<t.length;r++){let n=t[r];e+="/"+encodeURIComponent(n.replace(D3,"~0").replace(q3,"~1"))}return e};function Pu(e,t){if(rm.isAllowed$Ref(e.value,t)){let r=nm.resolve(e.path,e.value.$ref);if(r===e.path)e.circular=!0;else{let n=e.$ref.$refs._resolve(r,e.path,t);return e.indirections+=n.indirections+1,rm.isExtended$Ref(e.value)?(e.value=rm.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(Pu,"resolveIf$Ref");function XO(e,t,r){if(e.value&&typeof e.value=="object")t==="-"&&Array.isArray(e.value)?e.value.push(r):e.value[t]=r;else throw new R3(`Error assigning $ref pointer "${e.path}".
48
+ Cannot set "${t}" of a non-object.`);return r}o(XO,"setValue");function eE(e){if(k3(e))throw e;return e}o(eE,"unwrapOrThrow")});var Yo=v((A9,iE)=>{"use strict";iE.exports=It;var nE=fa(),{InvalidPointerError:V3,isHandledError:H3,normalizeError:rE}=Cr(),{safePointerToPath:B3,stripHash:U3,getHash:G3}=Wt();function It(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}o(It,"$Ref");It.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(rE)):this.errors.push(rE(e))};It.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};It.prototype.get=function(e,t){return this.resolve(e,t).value};It.prototype.resolve=function(e,t,r,n){let i=new nE(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!H3(s))throw s;return s.path===null&&(s.path=B3(G3(n))),s instanceof V3&&(s.source=U3(n)),this.addError(s),null}};It.prototype.set=function(e,t){let r=new nE(this,e);this.value=r.set(this.value,t)};It.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};It.isExternal$Ref=function(e){return It.is$Ref(e)&&e.$ref[0]!=="#"};It.isAllowed$Ref=function(e,t){if(It.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};It.isExtended$Ref=function(e){return It.is$Ref(e)&&Object.keys(e).length>1};It.dereference=function(e,t){if(t&&typeof t=="object"&&It.isExtended$Ref(e)){let r={};for(let n of Object.keys(e))n!=="$ref"&&(r[n]=e[n]);for(let n of Object.keys(t))n in r||(r[n]=t[n]);return r}else return t}});var cE=v((C9,aE)=>{"use strict";var{ono:oE}=Pr(),z3=Yo(),Hn=Wt();aE.exports=Tr;function Tr(){this.circular=!1,this._$refs={},this._root$Ref=null}o(Tr,"$Refs");Tr.prototype.paths=function(e){return sE(this._$refs,arguments).map(r=>r.decoded)};Tr.prototype.values=function(e){let t=this._$refs;return sE(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};Tr.prototype.toJSON=Tr.prototype.values;Tr.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};Tr.prototype.get=function(e,t){return this._resolve(e,"",t).value};Tr.prototype.set=function(e,t){let r=Hn.resolve(this._root$Ref.path,e),n=Hn.stripHash(r),i=this._$refs[n];if(!i)throw oE(`Error resolving $ref pointer "${e}".
49
+ "${n}" not found.`);i.set(r,t)};Tr.prototype._add=function(e){let t=Hn.stripHash(e),r=new z3;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};Tr.prototype._resolve=function(e,t,r){let n=Hn.resolve(this._root$Ref.path,e),i=Hn.stripHash(n),s=this._$refs[i];if(!s)throw oE(`Error resolving $ref pointer "${e}".
50
+ "${i}" not found.`);return s.resolve(n,r,e,t)};Tr.prototype._get$Ref=function(e){e=Hn.resolve(this._root$Ref.path,e);let t=Hn.stripHash(e);return this._$refs[t]};function sE(e,t){let r=Object.keys(e);return t=Array.isArray(t[0])?t[0]:Array.prototype.slice.call(t),t.length>0&&t[0]&&(r=r.filter(n=>t.indexOf(e[n].pathType)!==-1)),r.map(n=>({encoded:n,decoded:e[n].pathType==="file"?Hn.toFileSystemPath(n,!0):n}))}o(sE,"getPaths")});var lE=v(pa=>{"use strict";pa.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};pa.filter=function(e,t,r){return e.filter(n=>!!uE(n,t,r))};pa.sort=function(e){for(let t of e)t.order=t.order||Number.MAX_SAFE_INTEGER;return e.sort((t,r)=>t.order-r.order)};pa.run=function(e,t,r,n){let i,s,a=0;return new Promise((c,u)=>{l();function l(){if(i=e[a++],!i)return u(s);try{let h=uE(i,t,r,p,n);if(h&&typeof h.then=="function")h.then(f,d);else if(h!==void 0)f(h);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(h){d(h)}}o(l,"runNextPlugin");function p(h,y){h?d(h):f(y)}o(p,"callback");function f(h){c({plugin:i,result:h})}o(f,"onSuccess");function d(h){s={plugin:i,error:h},l()}o(d,"onError")})};function uE(e,t,r,n,i){let s=e[t];if(typeof s=="function")return s.apply(e,[r,n,i]);if(!n){if(s instanceof RegExp)return s.test(r.url);if(typeof s=="string")return s===r.extension;if(Array.isArray(s))return s.indexOf(r.extension)!==-1}return s}o(uE,"getResult")});var om=v((j9,hE)=>{"use strict";var{ono:im}=Pr(),fE=Wt(),Bn=lE(),{ResolverError:pE,ParserError:dE,UnmatchedParserError:Z3,UnmatchedResolverError:W3,isHandledError:K3}=Cr();hE.exports=Y3;async function Y3(e,t,r){e=fE.stripHash(e);let n=t._add(e),i={url:e,extension:fE.getExtension(e)};try{let s=await Q3(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await J3(i,r,t);return n.value=a.result,a.result}catch(s){throw K3(s)&&(n.value=s),s}}o(Y3,"parse");function Q3(e,t,r){return new Promise((n,i)=>{let s=Bn.all(t.resolve);s=Bn.filter(s,"canRead",e),Bn.sort(s),Bn.run(s,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new W3(e.url)):!c||!("error"in c)?i(im.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof pE?i(c.error):i(new pE(c,e.url))}o(a,"onError")})}o(Q3,"readFile");function J3(e,t,r){return new Promise((n,i)=>{let s=Bn.all(t.parse),a=Bn.filter(s,"canParse",e),c=a.length>0?a:s;Bn.sort(c),Bn.run(c,"parse",e,r).then(u,l);function u(p){!p.plugin.allowEmpty&&X3(p.result)?i(im.syntax(`Error parsing "${e.url}" as ${p.plugin.name}.
51
+ Parsed value is empty`)):n(p)}o(u,"onParsed");function l(p){!p&&t.continueOnError?i(new Z3(e.url)):!p||!("error"in p)?i(im.syntax(`Unable to parse ${e.url}`)):p.error instanceof dE?i(p.error):i(new dE(p.error.message,e.url))}o(l,"onError")})}o(J3,"parseFile");function X3(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}o(X3,"isEmpty")});var bE=v((k9,yE)=>{"use strict";var mE=Yo(),eq=fa(),tq=om(),da=Wt(),{isHandledError:rq}=Cr();yE.exports=nq;function nq(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=sm(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(nq,"resolveExternal");function sm(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(mE.isExternal$Ref(e))i.push(gE(e,t,r,n));else for(let s of Object.keys(e)){let a=eq.join(t,s),c=e[s];mE.isExternal$Ref(c)?i.push(gE(c,a,r,n)):i=i.concat(sm(c,a,r,n))}return i}o(sm,"crawl");async function gE(e,t,r,n){let i=da.resolve(t,e.$ref),s=da.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await tq(i,r,n),c=sm(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!rq(a))throw a;return r._$refs[s]&&(a.source=da.stripHash(t),a.path=da.safePointerToPath(da.getHash(t))),[]}}o(gE,"resolve$Ref")});var SE=v((D9,_E)=>{"use strict";var xu=Yo(),ha=fa(),am=Wt();_E.exports=iq;function iq(e,t){let r=[];cm(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),oq(r)}o(iq,"bundle");function cm(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(xu.isAllowed$Ref(u))vE(e,t,r,n,i,s,a,c);else{let l=Object.keys(u).sort((p,f)=>p==="definitions"?-1:f==="definitions"?1:p.length-f.length);for(let p of l){let f=ha.join(r,p),d=ha.join(n,p),h=u[p];xu.isAllowed$Ref(h)?vE(u,p,r,d,i,s,a,c):cm(u,p,f,d,i,s,a,c)}}}o(cm,"crawl");function vE(e,t,r,n,i,s,a,c){let u=t===null?e:e[t],l=am.resolve(r,u.$ref),p=a._resolve(l,n,c);if(p===null)return;let f=ha.parse(n).length,d=am.stripHash(p.path),h=am.getHash(p.path),y=d!==a._root$Ref.path,b=xu.isExtended$Ref(u);i+=p.indirections;let m=sq(s,e,t);if(m)if(f<m.depth||i<m.indirections)aq(s,m);else return;s.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:b,external:y,indirections:i}),m||cm(p.value,null,p.path,n,i+1,s,a,c)}o(vE,"inventory$Ref");function oq(e){e.sort((i,s)=>{if(i.file!==s.file)return i.file<s.file?-1:1;if(i.hash!==s.hash)return i.hash<s.hash?-1:1;if(i.circular!==s.circular)return i.circular?-1:1;if(i.extended!==s.extended)return i.extended?1:-1;if(i.indirections!==s.indirections)return i.indirections-s.indirections;if(i.depth!==s.depth)return i.depth-s.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=s.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-s.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=ha.join(n,ha.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=xu.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(oq,"remap");function sq(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}o(sq,"findInInventory");function aq(e,t){let r=e.indexOf(t);e.splice(r,1)}o(aq,"removeFromInventory")});var fm=v((F9,xE)=>{"use strict";var um=Yo(),OE=fa(),{ono:cq}=Pr(),uq=Wt();xE.exports=lq;function lq(e,t){let r=lm(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(lq,"dereference");function lm(e,t,r,n,i,s){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),um.isAllowed$Ref(e,s))a=EE(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=OE.join(t,u),p=OE.join(r,u),f=e[u],d=!1;um.isAllowed$Ref(f,s)?(a=EE(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(f)===-1?(a=lm(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=PE(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(lm,"crawl");function EE(e,t,r,n,i,s){let a=uq.resolve(t,e.$ref),c=i._resolve(a,t,s);if(c===null)return{circular:!1,value:null};let u=c.circular,l=u||n.indexOf(c.value)!==-1;l&&PE(t,i,s);let p=um.dereference(e,c.value);if(!l){let f=lm(p,c.path,r,n,i,s);l=f.circular,p=f.value}return l&&!u&&s.dereference.circular==="ignore"&&(p=e),u&&(p.$ref=r),{circular:l,value:p}}o(EE,"dereference$Ref");function PE(e,t,r){if(t.circular=!0,!r.dereference.circular)throw cq.reference(`Circular $ref pointer found at ${e}`);return!0}o(PE,"foundCircularReference")});var IE=v((H9,Kr)=>{"use strict";var AE=cE(),fq=om(),$u=Xh(),pq=bE(),dq=SE(),hq=fm(),Qo=Wt(),{JSONParserError:mq,InvalidPointerError:gq,MissingPointerError:yq,ResolverError:bq,ParserError:vq,UnmatchedParserError:_q,UnmatchedResolverError:Sq,isHandledError:Oq,JSONParserErrorGroup:$E}=Cr(),Nr=tm(),{ono:wE}=Pr();Kr.exports=Wr;Kr.exports.default=Wr;Kr.exports.JSONParserError=mq;Kr.exports.InvalidPointerError=gq;Kr.exports.MissingPointerError=yq;Kr.exports.ResolverError=bq;Kr.exports.ParserError=vq;Kr.exports.UnmatchedParserError=_q;Kr.exports.UnmatchedResolverError=Sq;function Wr(){this.schema=null,this.$refs=new AE}o(Wr,"$RefParser");Wr.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");Wr.prototype.parse=o(async function(t,r,n,i){let s=$u(arguments),a;if(!s.path&&!s.schema){let l=wE(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return Nr(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new AE;let c="http";if(Qo.isFileSystemPath(s.path)&&(s.path=Qo.fromFileSystemPath(s.path),c="file"),s.path=Qo.resolve(Qo.cwd(),s.path),s.schema&&typeof s.schema=="object"){let l=this.$refs._add(s.path);l.value=s.schema,l.pathType=c,a=Promise.resolve(s.schema)}else a=fq(s.path,this.$refs,s.options);let u=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return u.schema=l,Nr(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,Nr(s.callback,Promise.resolve(u.schema));throw wE.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!Oq(l)?Nr(s.callback,Promise.reject(l)):(this.$refs._$refs[Qo.stripHash(s.path)]&&this.$refs._$refs[Qo.stripHash(s.path)].addError(l),Nr(s.callback,Promise.resolve(null)))}},"parse");Wr.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");Wr.prototype.resolve=o(async function(t,r,n,i){let s=this,a=$u(arguments);try{return await this.parse(a.path,a.schema,a.options),await pq(s,a.options),pm(s),Nr(a.callback,Promise.resolve(s.$refs))}catch(c){return Nr(a.callback,Promise.reject(c))}},"resolve");Wr.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");Wr.prototype.bundle=o(async function(t,r,n,i){let s=this,a=$u(arguments);try{return await this.resolve(a.path,a.schema,a.options),dq(s,a.options),pm(s),Nr(a.callback,Promise.resolve(s.schema))}catch(c){return Nr(a.callback,Promise.reject(c))}},"bundle");Wr.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");Wr.prototype.dereference=o(async function(t,r,n,i){let s=this,a=$u(arguments);try{return await this.resolve(a.path,a.schema,a.options),hq(s,a.options),pm(s),Nr(a.callback,Promise.resolve(s.schema))}catch(c){return Nr(a.callback,Promise.reject(c))}},"dereference");function pm(e){if($E.getParserErrors(e).length>0)throw new $E(e)}o(pm,"finalize")});var dm=v((U9,RE)=>{"use strict";var Eq=Nh(),Pq=Mh(),CE=Xh(),TE=Pc(),NE=WO(),wu=tm(),{ono:Rr}=Pr(),Vi=IE(),xq=fm();RE.exports=Yr;function Yr(){Vi.apply(this,arguments)}o(Yr,"SwaggerParser");TE.inherits(Yr,Vi);Yr.parse=Vi.parse;Yr.resolve=Vi.resolve;Yr.bundle=Vi.bundle;Yr.dereference=Vi.dereference;Object.defineProperty(Yr.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});Yr.prototype.parse=async function(e,t,r,n){let i=CE(arguments);i.options=new NE(i.options);try{let s=await Vi.prototype.parse.call(this,i.path,i.schema,i.options);if(s.swagger){if(s.swagger===void 0||s.info===void 0||s.paths===void 0)throw Rr.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw Rr.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw Rr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw Rr.syntax(`Unrecognized Swagger version: ${s.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(s.openapi===void 0||s.info===void 0)throw Rr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(s.paths===void 0)if(s.openapi==="3.1.0"){if(s.webhooks===void 0)throw Rr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw Rr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw Rr.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw Rr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw Rr.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}TE.fixOasRelativeServers(s,i.path)}return wu(i.callback,Promise.resolve(s))}catch(s){return wu(i.callback,Promise.reject(s))}};Yr.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};Yr.prototype.validate=async function(e,t,r,n){let i=this,s=CE(arguments);s.options=new NE(s.options);let a=s.options.dereference.circular;s.options.validate.schema&&(s.options.dereference.circular="ignore");try{if(await this.dereference(s.path,s.schema,s.options),s.options.dereference.circular=a,s.options.validate.schema&&(Eq(i.api),i.$refs.circular)){if(a===!0)xq(i,s.options);else if(a===!1)throw Rr.reference("The API contains circular references")}return s.options.validate.spec&&Pq(i.api),wu(s.callback,Promise.resolve(i.schema))}catch(c){return wu(s.callback,Promise.reject(c))}}});var Nt=v(Xt=>{"use strict";Xt.__esModule=!0;Xt.extend=b1;Xt.indexOf=hD;Xt.escapeExpression=mD;Xt.isEmpty=gD;Xt.createFrame=yD;Xt.blockParams=bD;Xt.appendContextPath=vD;var lD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},fD=/[&<>"'`=]/g,pD=/[&<>"'`=]/;function dD(e){return lD[e]}o(dD,"escapeChar");function b1(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}o(b1,"extend");var zm=Object.prototype.toString;Xt.toString=zm;var Gm=o(function(t){return typeof t=="function"},"isFunction");Gm(/x/)&&(Xt.isFunction=Gm=o(function(e){return typeof e=="function"&&zm.call(e)==="[object Function]"},"isFunction"));Xt.isFunction=Gm;var v1=Array.isArray||function(e){return e&&typeof e=="object"?zm.call(e)==="[object Array]":!1};Xt.isArray=v1;function hD(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(hD,"indexOf");function mD(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return pD.test(e)?e.replace(fD,dD):e}o(mD,"escapeExpression");function gD(e){return!e&&e!==0?!0:!!(v1(e)&&e.length===0)}o(gD,"isEmpty");function yD(e){var t=b1({},e);return t._parent=e,t}o(yD,"createFrame");function bD(e,t){return e.path=t,e}o(bD,"blockParams");function vD(e,t){return(e?e+".":"")+t}o(vD,"appendContextPath")});var gr=v((Ju,_1)=>{"use strict";Ju.__esModule=!0;var Zm=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Wm(e,t){var r=t&&t.loc,n=void 0,i=void 0,s=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,e+=" - "+n+":"+s);for(var c=Error.prototype.constructor.call(this,e),u=0;u<Zm.length;u++)this[Zm[u]]=c[Zm[u]];Error.captureStackTrace&&Error.captureStackTrace(this,Wm);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=s,this.endColumn=a))}catch{}}o(Wm,"Exception");Wm.prototype=new Error;Ju.default=Wm;_1.exports=Ju.default});var O1=v((Xu,S1)=>{"use strict";Xu.__esModule=!0;var Km=Nt();Xu.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var n=r.inverse,i=r.fn;if(t===!0)return i(this);if(t===!1||t==null)return n(this);if(Km.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var s=Km.createFrame(r.data);s.contextPath=Km.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};S1.exports=Xu.default});var P1=v((el,E1)=>{"use strict";el.__esModule=!0;function _D(e){return e&&e.__esModule?e:{default:e}}o(_D,"_interopRequireDefault");var Ma=Nt(),SD=gr(),OD=_D(SD);el.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new OD.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",c=void 0,u=void 0;r.data&&r.ids&&(u=Ma.appendContextPath(r.data.contextPath,r.ids[0])+"."),Ma.isFunction(t)&&(t=t.call(this)),r.data&&(c=Ma.createFrame(r.data));function l(y,b,m){c&&(c.key=y,c.index=b,c.first=b===0,c.last=!!m,u&&(c.contextPath=u+y)),a=a+n(t[y],{data:c,blockParams:Ma.blockParams([t[y],y],[u+y,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(Ma.isArray(t))for(var p=t.length;s<p;s++)s in t&&l(s,s,s===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;s<p;s++)l(s,s,s===t.length-1)}else(function(){var y=void 0;Object.keys(t).forEach(function(b){y!==void 0&&l(y,s-1),y=b,s++}),y!==void 0&&l(y,s-1,!0)})();return s===0&&(a=i(this)),a})};E1.exports=el.default});var $1=v((tl,x1)=>{"use strict";tl.__esModule=!0;function ED(e){return e&&e.__esModule?e:{default:e}}o(ED,"_interopRequireDefault");var PD=gr(),xD=ED(PD);tl.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new xD.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};x1.exports=tl.default});var C1=v((rl,I1)=>{"use strict";rl.__esModule=!0;function $D(e){return e&&e.__esModule?e:{default:e}}o($D,"_interopRequireDefault");var w1=Nt(),wD=gr(),A1=$D(wD);rl.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new A1.default("#if requires exactly one argument");return w1.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||w1.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new A1.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};I1.exports=rl.default});var N1=v((nl,T1)=>{"use strict";nl.__esModule=!0;nl.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var i=1;r.hash.level!=null?i=r.hash.level:r.data&&r.data.level!=null&&(i=r.data.level),t[0]=i,e.log.apply(e,t)})};T1.exports=nl.default});var j1=v((il,R1)=>{"use strict";il.__esModule=!0;il.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};R1.exports=il.default});var k1=v((ol,M1)=>{"use strict";ol.__esModule=!0;function AD(e){return e&&e.__esModule?e:{default:e}}o(AD,"_interopRequireDefault");var ka=Nt(),ID=gr(),CD=AD(ID);ol.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new CD.default("#with requires exactly one argument");ka.isFunction(t)&&(t=t.call(this));var n=r.fn;if(ka.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=ka.createFrame(r.data),i.contextPath=ka.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:ka.blockParams([t],[i&&i.contextPath])})})};M1.exports=ol.default});var Ym=v(sl=>{"use strict";sl.__esModule=!0;sl.registerDefaultHelpers=GD;sl.moveHelperToHooks=zD;function Ki(e){return e&&e.__esModule?e:{default:e}}o(Ki,"_interopRequireDefault");var TD=O1(),ND=Ki(TD),RD=P1(),jD=Ki(RD),MD=$1(),kD=Ki(MD),qD=C1(),DD=Ki(qD),LD=N1(),FD=Ki(LD),VD=j1(),HD=Ki(VD),BD=k1(),UD=Ki(BD);function GD(e){ND.default(e),jD.default(e),kD.default(e),DD.default(e),FD.default(e),HD.default(e),UD.default(e)}o(GD,"registerDefaultHelpers");function zD(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(zD,"moveHelperToHooks")});var D1=v((al,q1)=>{"use strict";al.__esModule=!0;var ZD=Nt();al.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var s=t;return r.partials||(r.partials={},s=o(function(a,c){var u=n.partials;n.partials=ZD.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};q1.exports=al.default});var L1=v(Qm=>{"use strict";Qm.__esModule=!0;Qm.registerDefaultDecorators=QD;function WD(e){return e&&e.__esModule?e:{default:e}}o(WD,"_interopRequireDefault");var KD=D1(),YD=WD(KD);function QD(e){YD.default(e)}o(QD,"registerDefaultDecorators")});var Jm=v((cl,F1)=>{"use strict";cl.__esModule=!0;var JD=Nt(),is={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=JD.indexOf(is.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=is.lookupLevel(t),typeof console<"u"&&is.lookupLevel(is.level)<=t){var r=is.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];console[r].apply(console,i)}},"log")};cl.default=is;F1.exports=cl.default});var V1=v(Xm=>{"use strict";Xm.__esModule=!0;Xm.createNewLookupObject=e4;var XD=Nt();function e4(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return XD.extend.apply(void 0,[Object.create(null)].concat(t))}o(e4,"createNewLookupObject")});var eg=v(qa=>{"use strict";qa.__esModule=!0;qa.createProtoAccessControl=i4;qa.resultIsAllowed=o4;qa.resetLoggedProperties=a4;function t4(e){return e&&e.__esModule?e:{default:e}}o(t4,"_interopRequireDefault");var H1=V1(),r4=Jm(),n4=t4(r4),ul=Object.create(null);function i4(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=Object.create(null);return r.__proto__=!1,{properties:{whitelist:H1.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:H1.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(i4,"createProtoAccessControl");function o4(e,t,r){return B1(typeof e=="function"?t.methods:t.properties,r)}o(o4,"resultIsAllowed");function B1(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(s4(t),!1)}o(B1,"checkWhiteList");function s4(e){ul[e]!==!0&&(ul[e]=!0,n4.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
52
52
  You can add a runtime option to disable the check or this warning:
53
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(X4,"logUnexpecedPropertyAccessOnce");function eD(){Object.keys(ol).forEach(function(e){delete ol[e]})}o(eD,"resetLoggedProperties")});var al=v(on=>{"use strict";on.__esModule=!0;on.HandlebarsEnvironment=Xm;function q1(e){return e&&e.__esModule?e:{default:e}}o(q1,"_interopRequireDefault");var Ki=Tt(),tD=gr(),Qm=q1(tD),rD=zm(),nD=R1(),iD=Wm(),sl=q1(iD),oD=Ym(),sD="4.7.8";on.VERSION=sD;var aD=8;on.COMPILER_REVISION=aD;var cD=7;on.LAST_COMPATIBLE_COMPILER_REVISION=cD;var uD={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"};on.REVISION_CHANGES=uD;var Jm="[object Object]";function Xm(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},rD.registerDefaultHelpers(this),nD.registerDefaultDecorators(this)}o(Xm,"HandlebarsEnvironment");Xm.prototype={constructor:Xm,logger:sl.default,log:sl.default.log,registerHelper:o(function(t,r){if(Ki.toString.call(t)===Jm){if(r)throw new Qm.default("Arg not supported with multiple helpers");Ki.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:o(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:o(function(t,r){if(Ki.toString.call(t)===Jm)Ki.extend(this.partials,t);else{if(typeof r>"u")throw new Qm.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:o(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:o(function(t,r){if(Ki.toString.call(t)===Jm){if(r)throw new Qm.default("Arg not supported with multiple decorators");Ki.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){oD.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var lD=sl.default.log;on.log=lD;on.createFrame=Ki.createFrame;on.logger=sl.default});var L1=v((cl,D1)=>{"use strict";cl.__esModule=!0;function eg(e){this.string=e}o(eg,"SafeString");eg.prototype.toString=eg.prototype.toHTML=function(){return""+this.string};cl.default=eg;D1.exports=cl.default});var F1=v(tg=>{"use strict";tg.__esModule=!0;tg.wrapHelper=fD;function fD(e,t){if(typeof e!="function")return e;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}o(fD,"wrapHelper")});var G1=v(oi=>{"use strict";oi.__esModule=!0;oi.checkRevision=yD;oi.template=bD;oi.wrapProgram=ul;oi.resolvePartial=vD;oi.invokePartial=_D;oi.noop=B1;function pD(e){return e&&e.__esModule?e:{default:e}}o(pD,"_interopRequireDefault");function dD(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(dD,"_interopRequireWildcard");var hD=Tt(),hn=dD(hD),mD=gr(),mn=pD(mD),gn=al(),V1=zm(),gD=F1(),H1=Ym();function yD(e){var t=e&&e[0]||1,r=gn.COMPILER_REVISION;if(!(t>=gn.LAST_COMPATIBLE_COMPILER_REVISION&&t<=gn.COMPILER_REVISION))if(t<gn.LAST_COMPATIBLE_COMPILER_REVISION){var n=gn.REVISION_CHANGES[r],i=gn.REVISION_CHANGES[t];throw new mn.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 mn.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}o(yD,"checkRevision");function bD(e,t){if(!t)throw new mn.default("No environment passed to template");if(!e||!e.main)throw new mn.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function n(a,c,u){u.hash&&(c=hn.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=hn.extend({},u,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=t.VM.invokePartial.call(this,a,c,l);if(p==null&&t.compile&&(u.partials[u.name]=t.compile(a,e.compilerOptions,t),p=u.partials[u.name](c,l)),p!=null){if(u.indent){for(var f=p.split(`
53
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(s4,"logUnexpecedPropertyAccessOnce");function a4(){Object.keys(ul).forEach(function(e){delete ul[e]})}o(a4,"resetLoggedProperties")});var fl=v(on=>{"use strict";on.__esModule=!0;on.HandlebarsEnvironment=ng;function U1(e){return e&&e.__esModule?e:{default:e}}o(U1,"_interopRequireDefault");var Yi=Nt(),c4=gr(),tg=U1(c4),u4=Ym(),l4=L1(),f4=Jm(),ll=U1(f4),p4=eg(),d4="4.7.8";on.VERSION=d4;var h4=8;on.COMPILER_REVISION=h4;var m4=7;on.LAST_COMPATIBLE_COMPILER_REVISION=m4;var g4={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"};on.REVISION_CHANGES=g4;var rg="[object Object]";function ng(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},u4.registerDefaultHelpers(this),l4.registerDefaultDecorators(this)}o(ng,"HandlebarsEnvironment");ng.prototype={constructor:ng,logger:ll.default,log:ll.default.log,registerHelper:o(function(t,r){if(Yi.toString.call(t)===rg){if(r)throw new tg.default("Arg not supported with multiple helpers");Yi.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:o(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:o(function(t,r){if(Yi.toString.call(t)===rg)Yi.extend(this.partials,t);else{if(typeof r>"u")throw new tg.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:o(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:o(function(t,r){if(Yi.toString.call(t)===rg){if(r)throw new tg.default("Arg not supported with multiple decorators");Yi.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){p4.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var y4=ll.default.log;on.log=y4;on.createFrame=Yi.createFrame;on.logger=ll.default});var z1=v((pl,G1)=>{"use strict";pl.__esModule=!0;function ig(e){this.string=e}o(ig,"SafeString");ig.prototype.toString=ig.prototype.toHTML=function(){return""+this.string};pl.default=ig;G1.exports=pl.default});var Z1=v(og=>{"use strict";og.__esModule=!0;og.wrapHelper=b4;function b4(e,t){if(typeof e!="function")return e;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}o(b4,"wrapHelper")});var J1=v(oi=>{"use strict";oi.__esModule=!0;oi.checkRevision=P4;oi.template=x4;oi.wrapProgram=dl;oi.resolvePartial=$4;oi.invokePartial=w4;oi.noop=Y1;function v4(e){return e&&e.__esModule?e:{default:e}}o(v4,"_interopRequireDefault");function _4(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(_4,"_interopRequireWildcard");var S4=Nt(),mn=_4(S4),O4=gr(),gn=v4(O4),yn=fl(),W1=Ym(),E4=Z1(),K1=eg();function P4(e){var t=e&&e[0]||1,r=yn.COMPILER_REVISION;if(!(t>=yn.LAST_COMPATIBLE_COMPILER_REVISION&&t<=yn.COMPILER_REVISION))if(t<yn.LAST_COMPATIBLE_COMPILER_REVISION){var n=yn.REVISION_CHANGES[r],i=yn.REVISION_CHANGES[t];throw new gn.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 gn.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}o(P4,"checkRevision");function x4(e,t){if(!t)throw new gn.default("No environment passed to template");if(!e||!e.main)throw new gn.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function n(a,c,u){u.hash&&(c=mn.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=mn.extend({},u,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=t.VM.invokePartial.call(this,a,c,l);if(p==null&&t.compile&&(u.partials[u.name]=t.compile(a,e.compilerOptions,t),p=u.partials[u.name](c,l)),p!=null){if(u.indent){for(var f=p.split(`
54
54
  `),d=0,h=f.length;d<h&&!(!f[d]&&d+1===h);d++)f[d]=u.indent+f[d];p=f.join(`
55
- `)}return p}else throw new mn.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,u,l){if(!c||!(u in c))throw new mn.default('"'+u+'" not defined in '+c,{loc:l});return i.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||H1.resultIsAllowed(l,i.protoAccessControl,u))return l},"lookupProperty"),lookup:o(function(c,u){for(var l=c.length,p=0;p<l;p++){var f=c[p]&&i.lookupProperty(c[p],u);if(f!=null)return c[p][u]}},"lookup"),lambda:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:hn.escapeExpression,invokePartial:n,fn:o(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,l,p,f){var d=this.programs[c],h=this.fn(c);return u||f||p||l?d=ul(this,c,h,u,l,p,f):d||(d=this.programs[c]=ul(this,c,h)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=hn.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&e.useData&&(u=SD(a,u));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(c.depths?l=a!=c.depths[0]?[a].concat(c.depths):c.depths:l=[a]);function f(d){return""+e.main(i,d,i.helpers,i.partials,u,p,l)}return o(f,"main"),f=U1(e.main,f,i,c.depths||[],u,p),f(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c=hn.extend({},t.helpers,a.helpers);OD(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=hn.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=H1.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;V1.moveHelperToHooks(i,"helperMissing",u),V1.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new mn.default("must pass block params");if(e.useDepths&&!l)throw new mn.default("must pass parent depths");return ul(i,a,e[a],c,0,u,l)},s}o(bD,"template");function ul(e,t,r,n,i,s,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&u!=a[0]&&!(u===e.nullContext&&a[0]===null)&&(p=[u].concat(a)),r(e,u,e.helpers,e.partials,l.data||n,s&&[l.blockParams].concat(s),p)}return o(c,"prog"),c=U1(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(ul,"wrapProgram");function vD(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}o(vD,"resolvePartial");function _D(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!==B1&&function(){r.data=gn.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=gn.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=hn.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new mn.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(_D,"invokePartial");function B1(){return""}o(B1,"noop");function SD(e,t){return(!t||!("root"in t))&&(t=t?gn.createFrame(t):{},t.root=e),t}o(SD,"initData");function U1(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),hn.extend(t,a)}return t}o(U1,"executeDecorators");function OD(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=PD(n,t)})}o(OD,"wrapHelpersToPassLookupProperty");function PD(e,t){var r=t.lookupProperty;return gD.wrapHelper(e,function(n){return hn.extend({lookupProperty:r},n)})}o(PD,"passLookupPropertyOption")});var rg=v((ll,z1)=>{"use strict";ll.__esModule=!0;ll.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}};z1.exports=ll.default});var Q1=v((fl,Y1)=>{"use strict";fl.__esModule=!0;function ig(e){return e&&e.__esModule?e:{default:e}}o(ig,"_interopRequireDefault");function og(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(og,"_interopRequireWildcard");var ED=al(),Z1=og(ED),xD=L1(),$D=ig(xD),wD=gr(),AD=ig(wD),ID=Tt(),ng=og(ID),CD=G1(),W1=og(CD),TD=rg(),RD=ig(TD);function K1(){var e=new Z1.HandlebarsEnvironment;return ng.extend(e,Z1),e.SafeString=$D.default,e.Exception=AD.default,e.Utils=ng,e.escapeExpression=ng.escapeExpression,e.VM=W1,e.template=function(t){return W1.template(t,e)},e}o(K1,"create");var Ma=K1();Ma.create=K1;RD.default(Ma);Ma.default=Ma;fl.default=Ma;Y1.exports=fl.default});var sg=v((pl,X1)=>{"use strict";pl.__esModule=!0;var J1={helpers:{helperExpression:o(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:o(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:o(function(t){return t.parts.length===1&&!J1.helpers.scopedId(t)&&!t.depth},"simpleId")}};pl.default=J1;X1.exports=pl.default});var t2=v((dl,e2)=>{"use strict";dl.__esModule=!0;var ND=function(){var e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:o(function(i,s,a,c,u,l,p){var f=l.length-1;switch(u){case 1:return l[f-1];case 2:this.$=c.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:c.stripComment(l[f]),strip:c.stripFlags(l[f],l[f]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:c.locInfo(this._$)};break;case 11:this.$=c.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.$=c.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=c.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:c.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:c.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:c.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:c.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=c.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=c.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:c.stripFlags(l[f-2],l[f])};break;case 22:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.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:c.stripFlags(l[f-4],l[f]),loc:c.locInfo(this._$)};break;case 25:this.$=c.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:c.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:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(l[f-2]),value:l[f],loc:c.locInfo(this._$)};break;case 32:this.$=c.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:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=c.preparePath(!0,l[f],this._$);break;case 43:this.$=c.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:c.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:c.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:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=this,a=[0],c=[null],u=[],l=this.table,p="",f=0,d=0,h=0,y=2,b=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;u.push(g);var E=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function $(ve){a.length=a.length-2*ve,c.length=c.length-ve,u.length=u.length-ve}o($,"popStack");function T(){var ve;return ve=s.lexer.lex()||1,typeof ve!="number"&&(ve=s.symbols_[ve]||ve),ve}o(T,"lex");for(var I,C,ae,J,Be,xe,X={},M,R,D,Y;;){if(ae=a[a.length-1],this.defaultActions[ae]?J=this.defaultActions[ae]:((I===null||typeof I>"u")&&(I=T()),J=l[ae]&&l[ae][I]),typeof J>"u"||!J.length||!J[0]){var ue="";if(!h){Y=[];for(M in l[ae])this.terminals_[M]&&M>2&&Y.push("'"+this.terminals_[M]+"'");this.lexer.showPosition?ue="Parse error on line "+(f+1)+`:
55
+ `)}return p}else throw new gn.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,u,l){if(!c||!(u in c))throw new gn.default('"'+u+'" not defined in '+c,{loc:l});return i.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||K1.resultIsAllowed(l,i.protoAccessControl,u))return l},"lookupProperty"),lookup:o(function(c,u){for(var l=c.length,p=0;p<l;p++){var f=c[p]&&i.lookupProperty(c[p],u);if(f!=null)return c[p][u]}},"lookup"),lambda:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:mn.escapeExpression,invokePartial:n,fn:o(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,l,p,f){var d=this.programs[c],h=this.fn(c);return u||f||p||l?d=dl(this,c,h,u,l,p,f):d||(d=this.programs[c]=dl(this,c,h)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=mn.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&e.useData&&(u=A4(a,u));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(c.depths?l=a!=c.depths[0]?[a].concat(c.depths):c.depths:l=[a]);function f(d){return""+e.main(i,d,i.helpers,i.partials,u,p,l)}return o(f,"main"),f=Q1(e.main,f,i,c.depths||[],u,p),f(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c=mn.extend({},t.helpers,a.helpers);I4(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=mn.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=K1.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;W1.moveHelperToHooks(i,"helperMissing",u),W1.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new gn.default("must pass block params");if(e.useDepths&&!l)throw new gn.default("must pass parent depths");return dl(i,a,e[a],c,0,u,l)},s}o(x4,"template");function dl(e,t,r,n,i,s,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&u!=a[0]&&!(u===e.nullContext&&a[0]===null)&&(p=[u].concat(a)),r(e,u,e.helpers,e.partials,l.data||n,s&&[l.blockParams].concat(s),p)}return o(c,"prog"),c=Q1(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(dl,"wrapProgram");function $4(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}o($4,"resolvePartial");function w4(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!==Y1&&function(){r.data=yn.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=yn.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=mn.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new gn.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(w4,"invokePartial");function Y1(){return""}o(Y1,"noop");function A4(e,t){return(!t||!("root"in t))&&(t=t?yn.createFrame(t):{},t.root=e),t}o(A4,"initData");function Q1(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),mn.extend(t,a)}return t}o(Q1,"executeDecorators");function I4(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=C4(n,t)})}o(I4,"wrapHelpersToPassLookupProperty");function C4(e,t){var r=t.lookupProperty;return E4.wrapHelper(e,function(n){return mn.extend({lookupProperty:r},n)})}o(C4,"passLookupPropertyOption")});var sg=v((hl,X1)=>{"use strict";hl.__esModule=!0;hl.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}};X1.exports=hl.default});var ix=v((ml,nx)=>{"use strict";ml.__esModule=!0;function cg(e){return e&&e.__esModule?e:{default:e}}o(cg,"_interopRequireDefault");function ug(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(ug,"_interopRequireWildcard");var T4=fl(),ex=ug(T4),N4=z1(),R4=cg(N4),j4=gr(),M4=cg(j4),k4=Nt(),ag=ug(k4),q4=J1(),tx=ug(q4),D4=sg(),L4=cg(D4);function rx(){var e=new ex.HandlebarsEnvironment;return ag.extend(e,ex),e.SafeString=R4.default,e.Exception=M4.default,e.Utils=ag,e.escapeExpression=ag.escapeExpression,e.VM=tx,e.template=function(t){return tx.template(t,e)},e}o(rx,"create");var Da=rx();Da.create=rx;L4.default(Da);Da.default=Da;ml.default=Da;nx.exports=ml.default});var lg=v((gl,sx)=>{"use strict";gl.__esModule=!0;var ox={helpers:{helperExpression:o(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:o(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:o(function(t){return t.parts.length===1&&!ox.helpers.scopedId(t)&&!t.depth},"simpleId")}};gl.default=ox;sx.exports=gl.default});var cx=v((yl,ax)=>{"use strict";yl.__esModule=!0;var F4=function(){var e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:o(function(i,s,a,c,u,l,p){var f=l.length-1;switch(u){case 1:return l[f-1];case 2:this.$=c.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:c.stripComment(l[f]),strip:c.stripFlags(l[f],l[f]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:c.locInfo(this._$)};break;case 11:this.$=c.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.$=c.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=c.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:c.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:c.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:c.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:c.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=c.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=c.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:c.stripFlags(l[f-2],l[f])};break;case 22:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.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:c.stripFlags(l[f-4],l[f]),loc:c.locInfo(this._$)};break;case 25:this.$=c.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:c.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:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(l[f-2]),value:l[f],loc:c.locInfo(this._$)};break;case 32:this.$=c.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:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=c.preparePath(!0,l[f],this._$);break;case 43:this.$=c.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:c.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:c.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:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=this,a=[0],c=[null],u=[],l=this.table,p="",f=0,d=0,h=0,y=2,b=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 m=this.lexer.yylloc;u.push(m);var P=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function $(ve){a.length=a.length-2*ve,c.length=c.length-ve,u.length=u.length-ve}o($,"popStack");function T(){var ve;return ve=s.lexer.lex()||1,typeof ve!="number"&&(ve=s.symbols_[ve]||ve),ve}o(T,"lex");for(var I,C,ae,J,Be,xe,X={},M,N,D,Y;;){if(ae=a[a.length-1],this.defaultActions[ae]?J=this.defaultActions[ae]:((I===null||typeof I>"u")&&(I=T()),J=l[ae]&&l[ae][I]),typeof J>"u"||!J.length||!J[0]){var ue="";if(!h){Y=[];for(M in l[ae])this.terminals_[M]&&M>2&&Y.push("'"+this.terminals_[M]+"'");this.lexer.showPosition?ue="Parse error on line "+(f+1)+`:
56
56
  `+this.lexer.showPosition()+`
57
- Expecting `+Y.join(", ")+", got '"+(this.terminals_[I]||I)+"'":ue="Parse error on line "+(f+1)+": Unexpected "+(I==1?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(ue,{text:this.lexer.match,token:this.terminals_[I]||I,line:this.lexer.yylineno,loc:g,expected:Y})}}if(J[0]instanceof Array&&J.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ae+", token: "+I);switch(J[0]){case 1:a.push(I),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(J[1]),I=null,C?(I=C,C=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_[J[1]][1],X.$=c[c.length-R],X._$={first_line:u[u.length-(R||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(R||1)].first_column,last_column:u[u.length-1].last_column},E&&(X._$.range=[u[u.length-(R||1)].range[0],u[u.length-1].range[1]]),xe=this.performAction.call(X,p,d,f,this.yy,J[1],c,u),typeof xe<"u")return xe;R&&(a=a.slice(0,-1*R*2),c=c.slice(0,-1*R),u=u.slice(0,-1*R)),a.push(this.productions_[J[1]][0]),c.push(X.$),u.push(X._$),D=l[a[a.length-2]][a[a.length-1]],a.push(D);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
57
+ Expecting `+Y.join(", ")+", got '"+(this.terminals_[I]||I)+"'":ue="Parse error on line "+(f+1)+": Unexpected "+(I==1?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(ue,{text:this.lexer.match,token:this.terminals_[I]||I,line:this.lexer.yylineno,loc:m,expected:Y})}}if(J[0]instanceof Array&&J.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ae+", token: "+I);switch(J[0]){case 1:a.push(I),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(J[1]),I=null,C?(I=C,C=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,m=this.lexer.yylloc,h>0&&h--);break;case 2:if(N=this.productions_[J[1]][1],X.$=c[c.length-N],X._$={first_line:u[u.length-(N||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(N||1)].first_column,last_column:u[u.length-1].last_column},P&&(X._$.range=[u[u.length-(N||1)].range[0],u[u.length-1].range[1]]),xe=this.performAction.call(X,p,d,f,this.yy,J[1],c,u),typeof xe<"u")return xe;N&&(a=a.slice(0,-1*N*2),c=c.slice(0,-1*N),u=u.slice(0,-1*N)),a.push(this.productions_[J[1]][0]),c.push(X.$),u.push(X._$),D=l[a[a.length-2]][a[a.length-1]],a.push(D);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
58
58
  `+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,u,l,p;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),d=0;d<f.length&&(c=this._input.match(this.rules[f[d]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=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],s=this.performAction.call(this,this.yy,this,f[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
59
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,u){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}o(l,"strip");var p=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return o(r,"Parser"),r.prototype=e,e.Parser=r,new r}();dl.default=ND;e2.exports=dl.default});var yl=v((gl,i2)=>{"use strict";gl.__esModule=!0;function jD(e){return e&&e.__esModule?e:{default:e}}o(jD,"_interopRequireDefault");var MD=gr(),ag=jD(MD);function hl(){this.parents=[]}o(hl,"Visitor");hl.prototype={constructor:hl,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!hl.prototype[n.type])throw new ag.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:o(function(t,r){if(this.acceptKey(t,r),!t[r])throw new ag.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(t){if(t){if(!this[t.type])throw new ag.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},"accept"),Program:o(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:ml,Decorator:ml,BlockStatement:r2,DecoratorBlock:r2,PartialStatement:n2,PartialBlockStatement:o(function(t){n2.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:ml,PathExpression:o(function(){},"PathExpression"),StringLiteral:o(function(){},"StringLiteral"),NumberLiteral:o(function(){},"NumberLiteral"),BooleanLiteral:o(function(){},"BooleanLiteral"),UndefinedLiteral:o(function(){},"UndefinedLiteral"),NullLiteral:o(function(){},"NullLiteral"),Hash:o(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:o(function(t){this.acceptRequired(t,"value")},"HashPair")};function ml(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(ml,"visitSubExpression");function r2(e){ml.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(r2,"visitBlock");function n2(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(n2,"visitPartial");gl.default=hl;i2.exports=gl.default});var s2=v((bl,o2)=>{"use strict";bl.__esModule=!0;function kD(e){return e&&e.__esModule?e:{default:e}}o(kD,"_interopRequireDefault");var qD=yl(),DD=kD(qD);function sn(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(sn,"WhitespaceControl");sn.prototype=new DD.default;sn.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,s=n.length;i<s;i++){var a=n[i],c=this.accept(a);if(c){var u=cg(n,i,r),l=ug(n,i,r),p=c.openStandalone&&u,f=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&Yi(n,i,!0),c.open&&si(n,i,!0),t&&d&&(Yi(n,i),si(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Yi((a.program||a.inverse).body),si(n,i)),t&&f&&(Yi(n,i),si((a.inverse||a.program).body))}}return e};sn.prototype.BlockStatement=sn.prototype.DecoratorBlock=sn.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var s={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:ug(t.body),closeStandalone:cg((n||t).body)};if(e.openStrip.close&&Yi(t.body,null,!0),r){var a=e.inverseStrip;a.open&&si(t.body,null,!0),a.close&&Yi(n.body,null,!0),e.closeStrip.open&&si(i.body,null,!0),!this.options.ignoreStandalone&&cg(t.body)&&ug(n.body)&&(si(t.body),Yi(n.body))}else e.closeStrip.open&&si(t.body,null,!0);return s};sn.prototype.Decorator=sn.prototype.MustacheStatement=function(e){return e.strip};sn.prototype.PartialStatement=sn.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function cg(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}o(cg,"isPrevWhitespace");function ug(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}o(ug,"isNextWhitespace");function Yi(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}o(Yi,"omitRight");function si(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}o(si,"omitLeft");bl.default=sn;o2.exports=bl.default});var a2=v(yr=>{"use strict";yr.__esModule=!0;yr.SourceLocation=VD;yr.id=HD;yr.stripFlags=BD;yr.stripComment=UD;yr.preparePath=GD;yr.prepareMustache=zD;yr.prepareRawBlock=ZD;yr.prepareBlock=WD;yr.prepareProgram=KD;yr.preparePartialBlock=YD;function LD(e){return e&&e.__esModule?e:{default:e}}o(LD,"_interopRequireDefault");var FD=gr(),lg=LD(FD);function fg(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new lg.default(e.path.original+" doesn't match "+t,r)}}o(fg,"validateClose");function VD(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}o(VD,"SourceLocation");function HD(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(HD,"id");function BD(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(BD,"stripFlags");function UD(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(UD,"stripComment");function GD(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],s=0,a=0,c=t.length;a<c;a++){var u=t[a].part,l=t[a].original!==u;if(n+=(t[a].separator||"")+u,!l&&(u===".."||u==="."||u==="this")){if(i.length>0)throw new lg.default("Invalid path: "+n,{loc:r});u===".."&&s++}else i.push(u)}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:r}}o(GD,"preparePath");function zD(e,t,r,n,i,s){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",u=/\*/.test(n);return{type:u?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:c,strip:i,loc:this.locInfo(s)}}o(zD,"prepareMustache");function ZD(e,t,r,n){fg(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}o(ZD,"prepareRawBlock");function WD(e,t,r,n,i,s){n&&n.path&&fg(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new lg.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),u=r.strip,c=r.program}return i&&(i=c,c=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(s)}}o(WD,"prepareBlock");function KD(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}o(KD,"prepareProgram");function YD(e,t,r,n){return fg(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}o(YD,"preparePartialBlock")});var l2=v(ka=>{"use strict";ka.__esModule=!0;ka.parseWithoutProcessing=u2;ka.parse=iL;function QD(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(QD,"_interopRequireWildcard");function c2(e){return e&&e.__esModule?e:{default:e}}o(c2,"_interopRequireDefault");var JD=t2(),pg=c2(JD),XD=s2(),eL=c2(XD),tL=a2(),rL=QD(tL),nL=Tt();ka.parser=pg.default;var vl={};nL.extend(vl,rL);function u2(e,t){if(e.type==="Program")return e;pg.default.yy=vl,vl.locInfo=function(n){return new vl.SourceLocation(t&&t.srcName,n)};var r=pg.default.parse(e);return r}o(u2,"parseWithoutProcessing");function iL(e,t){var r=u2(e,t),n=new eL.default(t);return n.accept(r)}o(iL,"parse")});var h2=v(Fa=>{"use strict";Fa.__esModule=!0;Fa.Compiler=dg;Fa.precompile=cL;Fa.compile=uL;function p2(e){return e&&e.__esModule?e:{default:e}}o(p2,"_interopRequireDefault");var oL=gr(),Da=p2(oL),La=Tt(),sL=sg(),qa=p2(sL),aL=[].slice;function dg(){}o(dg,"Compiler");dg.prototype={compiler:dg,equals:o(function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],s=t.opcodes[n];if(i.opcode!==s.opcode||!d2(i.args,s.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},"equals"),guid:0,compile:o(function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=La.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},"compile"),compileProgram:o(function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:o(function(t){if(!this[t.type])throw new Da.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:o(function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},"Program"),BlockStatement:o(function(t){f2(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:o(function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:o(function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new Da.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,s=t.name.type==="SubExpression";s&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",s,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:o(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:o(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:o(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:o(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:o(function(t){f2(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:o(function(t,r,n){var i=t.path,s=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",s,a)},"ambiguousSexpr"),simpleSexpr:o(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:o(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),s=t.path,a=s.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new Da.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",i.length,s.original,qa.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=qa.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:o(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:o(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:o(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:o(function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:o(function(t){this.opcodes.push({opcode:t,args:aL.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=qa.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&qa.default.helpers.helperExpression(t),s=!n&&(i||r);if(s&&!i){var a=t.path.parts[0],c=this.options;c.knownHelpers[a]?i=!0:c.knownHelpersOnly&&(s=!1)}return i?"helper":s?"ambiguous":"simple"},"classifySexpr"),pushParams:o(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:o(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!qa.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},"pushParam"),setupFullMustacheParams:o(function(t,r,n,i){var s=t.params;return this.pushParams(s),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),s},"setupFullMustacheParams"),blockParamIndex:o(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],s=i&&La.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function cL(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Da.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}o(cL,"precompile");function uL(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Da.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=La.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),c=new r.Compiler().compile(a,t),u=new r.JavaScriptCompiler().compile(c,t,void 0,!0);return r.template(u)}o(i,"compileInput");function s(a,c){return n||(n=i()),n.call(this,a,c)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,c,u,l){return n||(n=i()),n._child(a,c,u,l)},s}o(uL,"compile");function d2(e,t){if(e===t)return!0;if(La.isArray(e)&&La.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!d2(e[r],t[r]))return!1;return!0}}o(d2,"argEquals");function f2(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}o(f2,"transformLiteralToPath")});var g2=v(hg=>{var m2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");hg.encode=function(e){if(0<=e&&e<m2.length)return m2[e];throw new TypeError("Must be between 0 and 63: "+e)};hg.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,c=43,u=47,l=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=a?e-s+p:e==c?62:e==u?63:-1}});var yg=v(gg=>{var y2=g2(),mg=5,b2=1<<mg,v2=b2-1,_2=b2;function lL(e){return e<0?(-e<<1)+1:(e<<1)+0}o(lL,"toVLQSigned");function fL(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(fL,"fromVLQSigned");gg.encode=o(function(t){var r="",n,i=lL(t);do n=i&v2,i>>>=mg,i>0&&(n|=_2),r+=y2.encode(n);while(i>0);return r},"base64VLQ_encode");gg.decode=o(function(t,r,n){var i=t.length,s=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=y2.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&_2),u&=v2,s=s+(u<<a),a+=mg}while(c);n.value=fL(s),n.rest=r},"base64VLQ_decode")});var ss=v(xt=>{function pL(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}o(pL,"getArg");xt.getArg=pL;var S2=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,dL=/^data:.+\,.+$/;function Va(e){var t=e.match(S2);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(Va,"urlParse");xt.urlParse=Va;function is(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}o(is,"urlGenerate");xt.urlGenerate=is;function bg(e){var t=e,r=Va(e);if(r){if(!r.path)return e;t=r.path}for(var n=xt.isAbsolute(t),i=t.split(/\/+/),s,a=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?a++:a>0&&(s===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,is(r)):t}o(bg,"normalize");xt.normalize=bg;function O2(e,t){e===""&&(e="."),t===""&&(t=".");var r=Va(t),n=Va(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),is(r);if(r||t.match(dL))return t;if(n&&!n.host&&!n.path)return n.host=t,is(n);var i=t.charAt(0)==="/"?t:bg(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,is(n)):i}o(O2,"join");xt.join=O2;xt.isAbsolute=function(e){return e.charAt(0)==="/"||S2.test(e)};function hL(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}o(hL,"relative");xt.relative=hL;var P2=function(){var e=Object.create(null);return!("__proto__"in e)}();function E2(e){return e}o(E2,"identity");function mL(e){return x2(e)?"$"+e:e}o(mL,"toSetString");xt.toSetString=P2?E2:mL;function gL(e){return x2(e)?e.slice(1):e}o(gL,"fromSetString");xt.fromSetString=P2?E2:gL;function x2(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}o(x2,"isProtoString");function yL(e,t,r){var n=os(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:os(e.name,t.name)}o(yL,"compareByOriginalPositions");xt.compareByOriginalPositions=yL;function bL(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=os(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:os(e.name,t.name)}o(bL,"compareByGeneratedPositionsDeflated");xt.compareByGeneratedPositionsDeflated=bL;function os(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(os,"strcmp");function vL(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=os(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:os(e.name,t.name)}o(vL,"compareByGeneratedPositionsInflated");xt.compareByGeneratedPositionsInflated=vL;function _L(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(_L,"parseSourceMapInput");xt.parseSourceMapInput=_L;function SL(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Va(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=O2(is(n),t)}return bg(t)}o(SL,"computeSourceURL");xt.computeSourceURL=SL});var Sg=v($2=>{var vg=ss(),_g=Object.prototype.hasOwnProperty,Qi=typeof Map<"u";function yn(){this._array=[],this._set=Qi?new Map:Object.create(null)}o(yn,"ArraySet");yn.fromArray=o(function(t,r){for(var n=new yn,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");yn.prototype.size=o(function(){return Qi?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");yn.prototype.add=o(function(t,r){var n=Qi?t:vg.toSetString(t),i=Qi?this.has(t):_g.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(Qi?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");yn.prototype.has=o(function(t){if(Qi)return this._set.has(t);var r=vg.toSetString(t);return _g.call(this._set,r)},"ArraySet_has");yn.prototype.indexOf=o(function(t){if(Qi){var r=this._set.get(t);if(r>=0)return r}else{var n=vg.toSetString(t);if(_g.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");yn.prototype.at=o(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");yn.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");$2.ArraySet=yn});var I2=v(A2=>{var w2=ss();function OL(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||w2.compareByGeneratedPositionsInflated(e,t)<=0}o(OL,"generatedPositionAfter");function _l(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(_l,"MappingList");_l.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");_l.prototype.add=o(function(t){OL(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");_l.prototype.toArray=o(function(){return this._sorted||(this._array.sort(w2.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");A2.MappingList=_l});var Og=v(C2=>{var Ha=yg(),nt=ss(),Sl=Sg().ArraySet,PL=I2().MappingList;function br(e){e||(e={}),this._file=nt.getArg(e,"file",null),this._sourceRoot=nt.getArg(e,"sourceRoot",null),this._skipValidation=nt.getArg(e,"skipValidation",!1),this._sources=new Sl,this._names=new Sl,this._mappings=new PL,this._sourcesContents=null}o(br,"SourceMapGenerator");br.prototype._version=3;br.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new br({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=nt.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=nt.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");br.prototype.addMapping=o(function(t){var r=nt.getArg(t,"generated"),n=nt.getArg(t,"original",null),i=nt.getArg(t,"source",null),s=nt.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})},"SourceMapGenerator_addMapping");br.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=nt.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[nt.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[nt.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");br.prototype.applySourceMap=o(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=nt.relative(s,i));var a=new Sl,c=new Sl;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var l=t.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,n!=null&&(u.source=nt.join(n,u.source)),s!=null&&(u.source=nt.relative(s,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name))}var p=u.source;p!=null&&!a.has(p)&&a.add(p);var f=u.name;f!=null&&!c.has(f)&&c.add(f)},this),this._sources=a,this._names=c,t.sources.forEach(function(u){var l=t.sourceContentFor(u);l!=null&&(n!=null&&(u=nt.join(n,u)),s!=null&&(u=nt.relative(s,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");br.prototype._validateMapping=o(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");br.prototype._serializeMappings=o(function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,c="",u,l,p,f,d=this._mappings.toArray(),h=0,y=d.length;h<y;h++){if(l=d[h],u="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)u+=";",r++;else if(h>0){if(!nt.compareByGeneratedPositionsInflated(l,d[h-1]))continue;u+=","}u+=Ha.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),u+=Ha.encode(f-a),a=f,u+=Ha.encode(l.originalLine-1-i),i=l.originalLine-1,u+=Ha.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),u+=Ha.encode(p-s),s=p)),c+=u}return c},"SourceMapGenerator_serializeMappings");br.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=nt.relative(r,n));var i=nt.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");br.prototype.toJSON=o(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");br.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");C2.SourceMapGenerator=br});var T2=v(Ji=>{Ji.GREATEST_LOWER_BOUND=1;Ji.LEAST_UPPER_BOUND=2;function Pg(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?Pg(a,t,r,n,i,s):s==Ji.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?Pg(e,a,r,n,i,s):s==Ji.LEAST_UPPER_BOUND?a:e<0?-1:e}o(Pg,"recursiveSearch");Ji.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=Pg(-1,r.length,t,r,n,i||Ji.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s},"search")});var N2=v(R2=>{function Eg(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(Eg,"swap");function EL(e,t){return Math.round(e+Math.random()*(t-e))}o(EL,"randomIntInRange");function xg(e,t,r,n){if(r<n){var i=EL(r,n),s=r-1;Eg(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,Eg(e,s,c));Eg(e,s+1,c);var u=s+1;xg(e,t,r,u-1),xg(e,t,u+1,n)}}o(xg,"doQuickSort");R2.quickSort=function(e,t){xg(e,t,0,e.length-1)}});var M2=v(Ol=>{var U=ss(),$g=T2(),as=Sg().ArraySet,xL=yg(),Ba=N2().quickSort;function ke(e,t){var r=e;return typeof e=="string"&&(r=U.parseSourceMapInput(e)),r.sections!=null?new kr(r,t):new bt(r,t)}o(ke,"SourceMapConsumer");ke.fromSourceMap=function(e,t){return bt.fromSourceMap(e,t)};ke.prototype._version=3;ke.prototype.__generatedMappings=null;Object.defineProperty(ke.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});ke.prototype.__originalMappings=null;Object.defineProperty(ke.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});ke.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");ke.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");ke.GENERATED_ORDER=1;ke.ORIGINAL_ORDER=2;ke.GREATEST_LOWER_BOUND=1;ke.LEAST_UPPER_BOUND=2;ke.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||ke.GENERATED_ORDER,a;switch(s){case ke.GENERATED_ORDER:a=this._generatedMappings;break;case ke.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(u){var l=u.source===null?null:this._sources.at(u.source);return l=U.computeSourceURL(c,l,this._sourceMapURL),{source:l,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");ke.prototype.allGeneratedPositionsFor=o(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=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,$g.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");Ol.SourceMapConsumer=ke;function bt(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sources"),s=U.getArg(r,"names",[]),a=U.getArg(r,"sourceRoot",null),c=U.getArg(r,"sourcesContent",null),u=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=as.fromArray(s.map(String),!0),this._sources=as.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return U.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=l}o(bt,"BasicSourceMapConsumer");bt.prototype=Object.create(ke.prototype);bt.prototype.consumer=ke;bt.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};bt.fromSourceMap=o(function(t,r){var n=Object.create(bt.prototype),i=n._names=as.fromArray(t._names.toArray(),!0),s=n._sources=as.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(),c=n.__generatedMappings=[],u=n.__originalMappings=[],l=0,p=a.length;l<p;l++){var f=a[l],d=new j2;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=s.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),u.push(d)),c.push(d)}return Ba(n.__originalMappings,U.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");bt.prototype._version=3;Object.defineProperty(bt.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function j2(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(j2,"Mapping");bt.prototype._parseMappings=o(function(t,r){for(var n=1,i=0,s=0,a=0,c=0,u=0,l=t.length,p=0,f={},d={},h=[],y=[],b,g,E,$,T;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(b=new j2,b.generatedLine=n,$=p;$<l&&!this._charIsMappingSeparator(t,$);$++);if(g=t.slice(p,$),E=f[g],E)p+=g.length;else{for(E=[];p<$;)xL.decode(t,p,d),T=d.value,p=d.rest,E.push(T);if(E.length===2)throw new Error("Found a source, but no line and column");if(E.length===3)throw new Error("Found a source and line, but no column");f[g]=E}b.generatedColumn=i+E[0],i=b.generatedColumn,E.length>1&&(b.source=c+E[1],c+=E[1],b.originalLine=s+E[2],s=b.originalLine,b.originalLine+=1,b.originalColumn=a+E[3],a=b.originalColumn,E.length>4&&(b.name=u+E[4],u+=E[4])),y.push(b),typeof b.originalLine=="number"&&h.push(b)}Ba(y,U.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,Ba(h,U.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");bt.prototype._findMapping=o(function(t,r,n,i,s,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return $g.search(t,r,s,a)},"SourceMapConsumer_findMapping");bt.prototype.computeColumnSpans=o(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");bt.prototype.originalPositionFor=o(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",ke.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=U.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=U.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=U.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,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");bt.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");bt.prototype.sourceContentFor=o(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=U.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=U.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");bt.prototype.generatedPositionFor=o(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",ke.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:U.getArg(s,"generatedLine",null),column:U.getArg(s,"generatedColumn",null),lastColumn:U.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");Ol.BasicSourceMapConsumer=bt;function kr(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 as,this._names=new as;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=U.getArg(a,"offset"),u=U.getArg(c,"line"),l=U.getArg(c,"column");if(u<s.line||u===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=c,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new ke(U.getArg(a,"map"),t)}})}o(kr,"IndexedSourceMapConsumer");kr.prototype=Object.create(ke.prototype);kr.prototype.constructor=ke;kr.prototype._version=3;Object.defineProperty(kr.prototype,"sources",{get:o(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});kr.prototype.originalPositionFor=o(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=$g.search(r,this._sections,function(s,a){var c=s.generatedLine-a.generatedOffset.generatedLine;return c||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");kr.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");kr.prototype.sourceContentFor=o(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");kr.prototype.generatedPositionFor=o(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 s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");kr.prototype._parseMappings=o(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var c=s[a],u=i.consumer._sources.at(c.source);u=U.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;c.name&&(l=i.consumer._names.at(c.name),this._names.add(l),l=this._names.indexOf(l));var p={source:u,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}Ba(this.__generatedMappings,U.compareByGeneratedPositionsDeflated),Ba(this.__originalMappings,U.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");Ol.IndexedSourceMapConsumer=kr});var q2=v(k2=>{var $L=Og().SourceMapGenerator,Pl=ss(),wL=/(\r?\n)/,AL=10,cs="$$$isSourceNode$$$";function Jt(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[cs]=!0,n!=null&&this.add(n)}o(Jt,"SourceNode");Jt.fromStringWithSourceMap=o(function(t,r,n){var i=new Jt,s=t.split(wL),a=0,c=o(function(){var d=y(),h=y()||"";return d+h;function y(){return a<s.length?s[a++]:void 0}},"shiftNextLine"),u=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(u<d.generatedLine)f(p,c()),u++,l=0;else{var h=s[a]||"",y=h.substr(0,d.generatedColumn-l);s[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,y),p=d;return}for(;u<d.generatedLine;)i.add(c()),u++;if(l<d.generatedColumn){var h=s[a]||"";i.add(h.substr(0,d.generatedColumn)),s[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<s.length&&(p&&f(p,c()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=Pl.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?Pl.join(n,d.source):d.source;i.add(new Jt(d.originalLine,d.originalColumn,y,h,d.name))}}o(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Jt.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[cs]||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");Jt.prototype.prepend=o(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[cs]||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");Jt.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[cs]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Jt.prototype.join=o(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");Jt.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[cs]?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");Jt.prototype.setSourceContent=o(function(t,r){this.sourceContents[Pl.toSetString(t)]=r},"SourceNode_setSourceContent");Jt.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][cs]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Pl.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Jt.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Jt.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new $L(t),i=!1,s=null,a=null,c=null,u=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((s!==p.source||a!==p.line||c!==p.column||u!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),s=p.source,a=p.line,c=p.column,u=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===AL?(r.line++,r.column=0,f+1===d?(s=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");k2.SourceNode=Jt});var D2=v(El=>{El.SourceMapGenerator=Og().SourceMapGenerator;El.SourceMapConsumer=M2().SourceMapConsumer;El.SourceNode=q2().SourceNode});var H2=v((xl,V2)=>{"use strict";xl.__esModule=!0;var Ag=Tt(),Xi=void 0;try{(typeof define!="function"||!define.amd)&&(L2=D2(),Xi=L2.SourceNode)}catch{}var L2;Xi||(Xi=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Xi.prototype={add:o(function(t){Ag.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){Ag.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:o(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:o(function(){return this.src},"toString")});function wg(e,t,r){if(Ag.isArray(e)){for(var n=[],i=0,s=e.length;i<s;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}o(wg,"castChunk");function F2(e){this.srcFile=e,this.source=[]}o(F2,"CodeGen");F2.prototype={isEmpty:o(function(){return!this.source.length},"isEmpty"),prepend:o(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:o(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:o(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
60
- `])}),t},"merge"),each:o(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:o(function(){var t=this.currentLocation||{start:{}};return new Xi(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:o(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof Xi?t:(t=wg(t,this,r),new Xi(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:o(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(t){var r=this,n=[];Object.keys(t).forEach(function(s){var a=wg(t[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(wg(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};xl.default=F2;V2.exports=xl.default});var Z2=v(($l,z2)=>{"use strict";$l.__esModule=!0;function G2(e){return e&&e.__esModule?e:{default:e}}o(G2,"_interopRequireDefault");var B2=al(),IL=gr(),Ig=G2(IL),CL=Tt(),TL=H2(),U2=G2(TL);function us(e){this.value=e}o(us,"Literal");function ls(){}o(ls,"JavaScriptCompiler");ls.prototype={nameLookup:o(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:o(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:o(function(){var t=B2.COMPILER_REVISION,r=B2.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return CL.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(t,r,n,i){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var s=t.opcodes,a=void 0,c=void 0,u=void 0,l=void 0;for(u=0,l=s.length;u<l;u++)a=s[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Ig.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(),`;
59
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,u){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}o(l,"strip");var p=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return o(r,"Parser"),r.prototype=e,e.Parser=r,new r}();yl.default=F4;ax.exports=yl.default});var Sl=v((_l,fx)=>{"use strict";_l.__esModule=!0;function V4(e){return e&&e.__esModule?e:{default:e}}o(V4,"_interopRequireDefault");var H4=gr(),fg=V4(H4);function bl(){this.parents=[]}o(bl,"Visitor");bl.prototype={constructor:bl,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!bl.prototype[n.type])throw new fg.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:o(function(t,r){if(this.acceptKey(t,r),!t[r])throw new fg.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(t){if(t){if(!this[t.type])throw new fg.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},"accept"),Program:o(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:vl,Decorator:vl,BlockStatement:ux,DecoratorBlock:ux,PartialStatement:lx,PartialBlockStatement:o(function(t){lx.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:vl,PathExpression:o(function(){},"PathExpression"),StringLiteral:o(function(){},"StringLiteral"),NumberLiteral:o(function(){},"NumberLiteral"),BooleanLiteral:o(function(){},"BooleanLiteral"),UndefinedLiteral:o(function(){},"UndefinedLiteral"),NullLiteral:o(function(){},"NullLiteral"),Hash:o(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:o(function(t){this.acceptRequired(t,"value")},"HashPair")};function vl(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(vl,"visitSubExpression");function ux(e){vl.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(ux,"visitBlock");function lx(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(lx,"visitPartial");_l.default=bl;fx.exports=_l.default});var dx=v((Ol,px)=>{"use strict";Ol.__esModule=!0;function B4(e){return e&&e.__esModule?e:{default:e}}o(B4,"_interopRequireDefault");var U4=Sl(),G4=B4(U4);function sn(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(sn,"WhitespaceControl");sn.prototype=new G4.default;sn.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,s=n.length;i<s;i++){var a=n[i],c=this.accept(a);if(c){var u=pg(n,i,r),l=dg(n,i,r),p=c.openStandalone&&u,f=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&Qi(n,i,!0),c.open&&si(n,i,!0),t&&d&&(Qi(n,i),si(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Qi((a.program||a.inverse).body),si(n,i)),t&&f&&(Qi(n,i),si((a.inverse||a.program).body))}}return e};sn.prototype.BlockStatement=sn.prototype.DecoratorBlock=sn.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var s={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:dg(t.body),closeStandalone:pg((n||t).body)};if(e.openStrip.close&&Qi(t.body,null,!0),r){var a=e.inverseStrip;a.open&&si(t.body,null,!0),a.close&&Qi(n.body,null,!0),e.closeStrip.open&&si(i.body,null,!0),!this.options.ignoreStandalone&&pg(t.body)&&dg(n.body)&&(si(t.body),Qi(n.body))}else e.closeStrip.open&&si(t.body,null,!0);return s};sn.prototype.Decorator=sn.prototype.MustacheStatement=function(e){return e.strip};sn.prototype.PartialStatement=sn.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function pg(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}o(pg,"isPrevWhitespace");function dg(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}o(dg,"isNextWhitespace");function Qi(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}o(Qi,"omitRight");function si(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}o(si,"omitLeft");Ol.default=sn;px.exports=Ol.default});var hx=v(yr=>{"use strict";yr.__esModule=!0;yr.SourceLocation=W4;yr.id=K4;yr.stripFlags=Y4;yr.stripComment=Q4;yr.preparePath=J4;yr.prepareMustache=X4;yr.prepareRawBlock=eL;yr.prepareBlock=tL;yr.prepareProgram=rL;yr.preparePartialBlock=nL;function z4(e){return e&&e.__esModule?e:{default:e}}o(z4,"_interopRequireDefault");var Z4=gr(),hg=z4(Z4);function mg(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new hg.default(e.path.original+" doesn't match "+t,r)}}o(mg,"validateClose");function W4(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}o(W4,"SourceLocation");function K4(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(K4,"id");function Y4(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(Y4,"stripFlags");function Q4(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(Q4,"stripComment");function J4(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],s=0,a=0,c=t.length;a<c;a++){var u=t[a].part,l=t[a].original!==u;if(n+=(t[a].separator||"")+u,!l&&(u===".."||u==="."||u==="this")){if(i.length>0)throw new hg.default("Invalid path: "+n,{loc:r});u===".."&&s++}else i.push(u)}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:r}}o(J4,"preparePath");function X4(e,t,r,n,i,s){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",u=/\*/.test(n);return{type:u?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:c,strip:i,loc:this.locInfo(s)}}o(X4,"prepareMustache");function eL(e,t,r,n){mg(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}o(eL,"prepareRawBlock");function tL(e,t,r,n,i,s){n&&n.path&&mg(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new hg.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),u=r.strip,c=r.program}return i&&(i=c,c=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(s)}}o(tL,"prepareBlock");function rL(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}o(rL,"prepareProgram");function nL(e,t,r,n){return mg(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}o(nL,"preparePartialBlock")});var yx=v(La=>{"use strict";La.__esModule=!0;La.parseWithoutProcessing=gx;La.parse=fL;function iL(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(iL,"_interopRequireWildcard");function mx(e){return e&&e.__esModule?e:{default:e}}o(mx,"_interopRequireDefault");var oL=cx(),gg=mx(oL),sL=dx(),aL=mx(sL),cL=hx(),uL=iL(cL),lL=Nt();La.parser=gg.default;var El={};lL.extend(El,uL);function gx(e,t){if(e.type==="Program")return e;gg.default.yy=El,El.locInfo=function(n){return new El.SourceLocation(t&&t.srcName,n)};var r=gg.default.parse(e);return r}o(gx,"parseWithoutProcessing");function fL(e,t){var r=gx(e,t),n=new aL.default(t);return n.accept(r)}o(fL,"parse")});var Sx=v(Ba=>{"use strict";Ba.__esModule=!0;Ba.Compiler=yg;Ba.precompile=mL;Ba.compile=gL;function vx(e){return e&&e.__esModule?e:{default:e}}o(vx,"_interopRequireDefault");var pL=gr(),Va=vx(pL),Ha=Nt(),dL=lg(),Fa=vx(dL),hL=[].slice;function yg(){}o(yg,"Compiler");yg.prototype={compiler:yg,equals:o(function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],s=t.opcodes[n];if(i.opcode!==s.opcode||!_x(i.args,s.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},"equals"),guid:0,compile:o(function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=Ha.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},"compile"),compileProgram:o(function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:o(function(t){if(!this[t.type])throw new Va.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:o(function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},"Program"),BlockStatement:o(function(t){bx(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:o(function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:o(function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new Va.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,s=t.name.type==="SubExpression";s&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",s,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:o(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:o(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:o(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:o(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:o(function(t){bx(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:o(function(t,r,n){var i=t.path,s=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",s,a)},"ambiguousSexpr"),simpleSexpr:o(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:o(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),s=t.path,a=s.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new Va.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",i.length,s.original,Fa.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=Fa.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:o(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:o(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:o(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:o(function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:o(function(t){this.opcodes.push({opcode:t,args:hL.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=Fa.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&Fa.default.helpers.helperExpression(t),s=!n&&(i||r);if(s&&!i){var a=t.path.parts[0],c=this.options;c.knownHelpers[a]?i=!0:c.knownHelpersOnly&&(s=!1)}return i?"helper":s?"ambiguous":"simple"},"classifySexpr"),pushParams:o(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:o(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!Fa.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},"pushParam"),setupFullMustacheParams:o(function(t,r,n,i){var s=t.params;return this.pushParams(s),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),s},"setupFullMustacheParams"),blockParamIndex:o(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],s=i&&Ha.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function mL(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Va.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}o(mL,"precompile");function gL(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Va.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Ha.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),c=new r.Compiler().compile(a,t),u=new r.JavaScriptCompiler().compile(c,t,void 0,!0);return r.template(u)}o(i,"compileInput");function s(a,c){return n||(n=i()),n.call(this,a,c)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,c,u,l){return n||(n=i()),n._child(a,c,u,l)},s}o(gL,"compile");function _x(e,t){if(e===t)return!0;if(Ha.isArray(e)&&Ha.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!_x(e[r],t[r]))return!1;return!0}}o(_x,"argEquals");function bx(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}o(bx,"transformLiteralToPath")});var Ex=v(bg=>{var Ox="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");bg.encode=function(e){if(0<=e&&e<Ox.length)return Ox[e];throw new TypeError("Must be between 0 and 63: "+e)};bg.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,c=43,u=47,l=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=a?e-s+p:e==c?62:e==u?63:-1}});var Sg=v(_g=>{var Px=Ex(),vg=5,xx=1<<vg,$x=xx-1,wx=xx;function yL(e){return e<0?(-e<<1)+1:(e<<1)+0}o(yL,"toVLQSigned");function bL(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(bL,"fromVLQSigned");_g.encode=o(function(t){var r="",n,i=yL(t);do n=i&$x,i>>>=vg,i>0&&(n|=wx),r+=Px.encode(n);while(i>0);return r},"base64VLQ_encode");_g.decode=o(function(t,r,n){var i=t.length,s=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=Px.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&wx),u&=$x,s=s+(u<<a),a+=vg}while(c);n.value=bL(s),n.rest=r},"base64VLQ_decode")});var as=v(xt=>{function vL(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}o(vL,"getArg");xt.getArg=vL;var Ax=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,_L=/^data:.+\,.+$/;function Ua(e){var t=e.match(Ax);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(Ua,"urlParse");xt.urlParse=Ua;function os(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}o(os,"urlGenerate");xt.urlGenerate=os;function Og(e){var t=e,r=Ua(e);if(r){if(!r.path)return e;t=r.path}for(var n=xt.isAbsolute(t),i=t.split(/\/+/),s,a=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?a++:a>0&&(s===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,os(r)):t}o(Og,"normalize");xt.normalize=Og;function Ix(e,t){e===""&&(e="."),t===""&&(t=".");var r=Ua(t),n=Ua(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),os(r);if(r||t.match(_L))return t;if(n&&!n.host&&!n.path)return n.host=t,os(n);var i=t.charAt(0)==="/"?t:Og(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,os(n)):i}o(Ix,"join");xt.join=Ix;xt.isAbsolute=function(e){return e.charAt(0)==="/"||Ax.test(e)};function SL(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}o(SL,"relative");xt.relative=SL;var Cx=function(){var e=Object.create(null);return!("__proto__"in e)}();function Tx(e){return e}o(Tx,"identity");function OL(e){return Nx(e)?"$"+e:e}o(OL,"toSetString");xt.toSetString=Cx?Tx:OL;function EL(e){return Nx(e)?e.slice(1):e}o(EL,"fromSetString");xt.fromSetString=Cx?Tx:EL;function Nx(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}o(Nx,"isProtoString");function PL(e,t,r){var n=ss(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:ss(e.name,t.name)}o(PL,"compareByOriginalPositions");xt.compareByOriginalPositions=PL;function xL(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=ss(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:ss(e.name,t.name)}o(xL,"compareByGeneratedPositionsDeflated");xt.compareByGeneratedPositionsDeflated=xL;function ss(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(ss,"strcmp");function $L(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=ss(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:ss(e.name,t.name)}o($L,"compareByGeneratedPositionsInflated");xt.compareByGeneratedPositionsInflated=$L;function wL(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(wL,"parseSourceMapInput");xt.parseSourceMapInput=wL;function AL(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Ua(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=Ix(os(n),t)}return Og(t)}o(AL,"computeSourceURL");xt.computeSourceURL=AL});var xg=v(Rx=>{var Eg=as(),Pg=Object.prototype.hasOwnProperty,Ji=typeof Map<"u";function bn(){this._array=[],this._set=Ji?new Map:Object.create(null)}o(bn,"ArraySet");bn.fromArray=o(function(t,r){for(var n=new bn,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");bn.prototype.size=o(function(){return Ji?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");bn.prototype.add=o(function(t,r){var n=Ji?t:Eg.toSetString(t),i=Ji?this.has(t):Pg.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(Ji?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");bn.prototype.has=o(function(t){if(Ji)return this._set.has(t);var r=Eg.toSetString(t);return Pg.call(this._set,r)},"ArraySet_has");bn.prototype.indexOf=o(function(t){if(Ji){var r=this._set.get(t);if(r>=0)return r}else{var n=Eg.toSetString(t);if(Pg.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");bn.prototype.at=o(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");bn.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");Rx.ArraySet=bn});var kx=v(Mx=>{var jx=as();function IL(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||jx.compareByGeneratedPositionsInflated(e,t)<=0}o(IL,"generatedPositionAfter");function Pl(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(Pl,"MappingList");Pl.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");Pl.prototype.add=o(function(t){IL(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");Pl.prototype.toArray=o(function(){return this._sorted||(this._array.sort(jx.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");Mx.MappingList=Pl});var $g=v(qx=>{var Ga=Sg(),nt=as(),xl=xg().ArraySet,CL=kx().MappingList;function br(e){e||(e={}),this._file=nt.getArg(e,"file",null),this._sourceRoot=nt.getArg(e,"sourceRoot",null),this._skipValidation=nt.getArg(e,"skipValidation",!1),this._sources=new xl,this._names=new xl,this._mappings=new CL,this._sourcesContents=null}o(br,"SourceMapGenerator");br.prototype._version=3;br.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new br({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=nt.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=nt.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");br.prototype.addMapping=o(function(t){var r=nt.getArg(t,"generated"),n=nt.getArg(t,"original",null),i=nt.getArg(t,"source",null),s=nt.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})},"SourceMapGenerator_addMapping");br.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=nt.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[nt.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[nt.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");br.prototype.applySourceMap=o(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=nt.relative(s,i));var a=new xl,c=new xl;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var l=t.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,n!=null&&(u.source=nt.join(n,u.source)),s!=null&&(u.source=nt.relative(s,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name))}var p=u.source;p!=null&&!a.has(p)&&a.add(p);var f=u.name;f!=null&&!c.has(f)&&c.add(f)},this),this._sources=a,this._names=c,t.sources.forEach(function(u){var l=t.sourceContentFor(u);l!=null&&(n!=null&&(u=nt.join(n,u)),s!=null&&(u=nt.relative(s,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");br.prototype._validateMapping=o(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");br.prototype._serializeMappings=o(function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,c="",u,l,p,f,d=this._mappings.toArray(),h=0,y=d.length;h<y;h++){if(l=d[h],u="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)u+=";",r++;else if(h>0){if(!nt.compareByGeneratedPositionsInflated(l,d[h-1]))continue;u+=","}u+=Ga.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),u+=Ga.encode(f-a),a=f,u+=Ga.encode(l.originalLine-1-i),i=l.originalLine-1,u+=Ga.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),u+=Ga.encode(p-s),s=p)),c+=u}return c},"SourceMapGenerator_serializeMappings");br.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=nt.relative(r,n));var i=nt.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");br.prototype.toJSON=o(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");br.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");qx.SourceMapGenerator=br});var Dx=v(Xi=>{Xi.GREATEST_LOWER_BOUND=1;Xi.LEAST_UPPER_BOUND=2;function wg(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?wg(a,t,r,n,i,s):s==Xi.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?wg(e,a,r,n,i,s):s==Xi.LEAST_UPPER_BOUND?a:e<0?-1:e}o(wg,"recursiveSearch");Xi.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=wg(-1,r.length,t,r,n,i||Xi.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s},"search")});var Fx=v(Lx=>{function Ag(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(Ag,"swap");function TL(e,t){return Math.round(e+Math.random()*(t-e))}o(TL,"randomIntInRange");function Ig(e,t,r,n){if(r<n){var i=TL(r,n),s=r-1;Ag(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,Ag(e,s,c));Ag(e,s+1,c);var u=s+1;Ig(e,t,r,u-1),Ig(e,t,u+1,n)}}o(Ig,"doQuickSort");Lx.quickSort=function(e,t){Ig(e,t,0,e.length-1)}});var Hx=v($l=>{var U=as(),Cg=Dx(),cs=xg().ArraySet,NL=Sg(),za=Fx().quickSort;function ke(e,t){var r=e;return typeof e=="string"&&(r=U.parseSourceMapInput(e)),r.sections!=null?new kr(r,t):new bt(r,t)}o(ke,"SourceMapConsumer");ke.fromSourceMap=function(e,t){return bt.fromSourceMap(e,t)};ke.prototype._version=3;ke.prototype.__generatedMappings=null;Object.defineProperty(ke.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});ke.prototype.__originalMappings=null;Object.defineProperty(ke.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});ke.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");ke.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");ke.GENERATED_ORDER=1;ke.ORIGINAL_ORDER=2;ke.GREATEST_LOWER_BOUND=1;ke.LEAST_UPPER_BOUND=2;ke.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||ke.GENERATED_ORDER,a;switch(s){case ke.GENERATED_ORDER:a=this._generatedMappings;break;case ke.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(u){var l=u.source===null?null:this._sources.at(u.source);return l=U.computeSourceURL(c,l,this._sourceMapURL),{source:l,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");ke.prototype.allGeneratedPositionsFor=o(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=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,Cg.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");$l.SourceMapConsumer=ke;function bt(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sources"),s=U.getArg(r,"names",[]),a=U.getArg(r,"sourceRoot",null),c=U.getArg(r,"sourcesContent",null),u=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=cs.fromArray(s.map(String),!0),this._sources=cs.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return U.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=l}o(bt,"BasicSourceMapConsumer");bt.prototype=Object.create(ke.prototype);bt.prototype.consumer=ke;bt.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};bt.fromSourceMap=o(function(t,r){var n=Object.create(bt.prototype),i=n._names=cs.fromArray(t._names.toArray(),!0),s=n._sources=cs.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(),c=n.__generatedMappings=[],u=n.__originalMappings=[],l=0,p=a.length;l<p;l++){var f=a[l],d=new Vx;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=s.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),u.push(d)),c.push(d)}return za(n.__originalMappings,U.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");bt.prototype._version=3;Object.defineProperty(bt.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function Vx(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(Vx,"Mapping");bt.prototype._parseMappings=o(function(t,r){for(var n=1,i=0,s=0,a=0,c=0,u=0,l=t.length,p=0,f={},d={},h=[],y=[],b,m,P,$,T;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(b=new Vx,b.generatedLine=n,$=p;$<l&&!this._charIsMappingSeparator(t,$);$++);if(m=t.slice(p,$),P=f[m],P)p+=m.length;else{for(P=[];p<$;)NL.decode(t,p,d),T=d.value,p=d.rest,P.push(T);if(P.length===2)throw new Error("Found a source, but no line and column");if(P.length===3)throw new Error("Found a source and line, but no column");f[m]=P}b.generatedColumn=i+P[0],i=b.generatedColumn,P.length>1&&(b.source=c+P[1],c+=P[1],b.originalLine=s+P[2],s=b.originalLine,b.originalLine+=1,b.originalColumn=a+P[3],a=b.originalColumn,P.length>4&&(b.name=u+P[4],u+=P[4])),y.push(b),typeof b.originalLine=="number"&&h.push(b)}za(y,U.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,za(h,U.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");bt.prototype._findMapping=o(function(t,r,n,i,s,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return Cg.search(t,r,s,a)},"SourceMapConsumer_findMapping");bt.prototype.computeColumnSpans=o(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");bt.prototype.originalPositionFor=o(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",ke.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=U.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=U.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=U.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,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");bt.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");bt.prototype.sourceContentFor=o(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=U.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=U.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");bt.prototype.generatedPositionFor=o(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",ke.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:U.getArg(s,"generatedLine",null),column:U.getArg(s,"generatedColumn",null),lastColumn:U.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");$l.BasicSourceMapConsumer=bt;function kr(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 cs,this._names=new cs;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=U.getArg(a,"offset"),u=U.getArg(c,"line"),l=U.getArg(c,"column");if(u<s.line||u===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=c,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new ke(U.getArg(a,"map"),t)}})}o(kr,"IndexedSourceMapConsumer");kr.prototype=Object.create(ke.prototype);kr.prototype.constructor=ke;kr.prototype._version=3;Object.defineProperty(kr.prototype,"sources",{get:o(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});kr.prototype.originalPositionFor=o(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=Cg.search(r,this._sections,function(s,a){var c=s.generatedLine-a.generatedOffset.generatedLine;return c||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");kr.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");kr.prototype.sourceContentFor=o(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");kr.prototype.generatedPositionFor=o(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 s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");kr.prototype._parseMappings=o(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var c=s[a],u=i.consumer._sources.at(c.source);u=U.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;c.name&&(l=i.consumer._names.at(c.name),this._names.add(l),l=this._names.indexOf(l));var p={source:u,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}za(this.__generatedMappings,U.compareByGeneratedPositionsDeflated),za(this.__originalMappings,U.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");$l.IndexedSourceMapConsumer=kr});var Ux=v(Bx=>{var RL=$g().SourceMapGenerator,wl=as(),jL=/(\r?\n)/,ML=10,us="$$$isSourceNode$$$";function er(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[us]=!0,n!=null&&this.add(n)}o(er,"SourceNode");er.fromStringWithSourceMap=o(function(t,r,n){var i=new er,s=t.split(jL),a=0,c=o(function(){var d=y(),h=y()||"";return d+h;function y(){return a<s.length?s[a++]:void 0}},"shiftNextLine"),u=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(u<d.generatedLine)f(p,c()),u++,l=0;else{var h=s[a]||"",y=h.substr(0,d.generatedColumn-l);s[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,y),p=d;return}for(;u<d.generatedLine;)i.add(c()),u++;if(l<d.generatedColumn){var h=s[a]||"";i.add(h.substr(0,d.generatedColumn)),s[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<s.length&&(p&&f(p,c()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=wl.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?wl.join(n,d.source):d.source;i.add(new er(d.originalLine,d.originalColumn,y,h,d.name))}}o(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");er.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[us]||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");er.prototype.prepend=o(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[us]||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");er.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[us]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");er.prototype.join=o(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");er.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[us]?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");er.prototype.setSourceContent=o(function(t,r){this.sourceContents[wl.toSetString(t)]=r},"SourceNode_setSourceContent");er.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][us]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(wl.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");er.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");er.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new RL(t),i=!1,s=null,a=null,c=null,u=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((s!==p.source||a!==p.line||c!==p.column||u!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),s=p.source,a=p.line,c=p.column,u=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===ML?(r.line++,r.column=0,f+1===d?(s=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");Bx.SourceNode=er});var Gx=v(Al=>{Al.SourceMapGenerator=$g().SourceMapGenerator;Al.SourceMapConsumer=Hx().SourceMapConsumer;Al.SourceNode=Ux().SourceNode});var Kx=v((Il,Wx)=>{"use strict";Il.__esModule=!0;var Ng=Nt(),eo=void 0;try{(typeof define!="function"||!define.amd)&&(zx=Gx(),eo=zx.SourceNode)}catch{}var zx;eo||(eo=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),eo.prototype={add:o(function(t){Ng.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){Ng.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:o(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:o(function(){return this.src},"toString")});function Tg(e,t,r){if(Ng.isArray(e)){for(var n=[],i=0,s=e.length;i<s;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}o(Tg,"castChunk");function Zx(e){this.srcFile=e,this.source=[]}o(Zx,"CodeGen");Zx.prototype={isEmpty:o(function(){return!this.source.length},"isEmpty"),prepend:o(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:o(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:o(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
60
+ `])}),t},"merge"),each:o(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:o(function(){var t=this.currentLocation||{start:{}};return new eo(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:o(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof eo?t:(t=Tg(t,this,r),new eo(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:o(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(t){var r=this,n=[];Object.keys(t).forEach(function(s){var a=Tg(t[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(Tg(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};Il.default=Zx;Wx.exports=Il.default});var e2=v((Cl,Xx)=>{"use strict";Cl.__esModule=!0;function Jx(e){return e&&e.__esModule?e:{default:e}}o(Jx,"_interopRequireDefault");var Yx=fl(),kL=gr(),Rg=Jx(kL),qL=Nt(),DL=Kx(),Qx=Jx(DL);function ls(e){this.value=e}o(ls,"Literal");function fs(){}o(fs,"JavaScriptCompiler");fs.prototype={nameLookup:o(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:o(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:o(function(){var t=Yx.COMPILER_REVISION,r=Yx.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return qL.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(t,r,n,i){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var s=t.opcodes,a=void 0,c=void 0,u=void 0,l=void 0;for(u=0,l=s.length;u<l;u++)a=s[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Rg.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(`}
63
- `),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(i);if(this.isChild)return p;var f={compiler:this.compilerInfo(),main:p};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var d=this.context,h=d.programs,y=d.decorators;for(u=0,l=h.length;u<l;u++)h[u]&&(f[u]=h[u],y[u]&&(f[u+"_d"]=y[u],f.useDecorators=!0));return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:o(function(){this.lastContext=0,this.source=new U2.default(this.options.srcName),this.decorators=new U2.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var l=r.aliases[u];l.children&&l.referenceCount>1&&(n+=", alias"+ ++s+"="+u,l.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return t?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
63
+ `),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(i);if(this.isChild)return p;var f={compiler:this.compilerInfo(),main:p};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var d=this.context,h=d.programs,y=d.decorators;for(u=0,l=h.length;u<l;u++)h[u]&&(f[u]=h[u],y[u]&&(f[u+"_d"]=y[u],f.useDecorators=!0));return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:o(function(){this.lastContext=0,this.source=new Qx.default(this.options.srcName),this.decorators=new Qx.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var l=r.aliases[u];l.children&&l.referenceCount>1&&(n+=", alias"+ ++s+"="+u,l.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return t?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
64
64
  `,c,"}"])},"createFunctionContext"),mergeSource:o(function(t){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(s?a.prepend("buffer += "):i=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(t+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(i?"":`;
65
65
  `)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
66
66
  lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -69,17 +69,17 @@ Expecting `+Y.join(", ")+", got '"+(this.terminals_[I]||I)+"'":ue="Parse error o
69
69
  }
70
70
  return undefined
71
71
  }
72
- `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(t){this.lastContext=t},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(t,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[s++])):this.pushContext(),this.resolvePath("context",t,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(t,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(RL(this.options.strict&&s,this,r,n,t));return}for(var c=r.length;n<c;n++)this.replaceStack(function(u){var l=a.nameLookup(u,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",u]})},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:o(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:o(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:o(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:o(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(t,r,n){var i=this.popStack(),s=this.setupHelper(t,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",s.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:o(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),s=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:o(function(t,r,n){var i=[],s=this.setupParams(r,1,i);t&&(r=this.popStack(),delete s.name),n&&(s.indent=JSON.stringify(n)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),i.push(s),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:o(function(t){var r=this.popStack(),n=void 0,i=void 0,s=void 0;this.trackIds&&(s=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),s&&(a.ids[t]=s),a.values[t]=r},"assignToHash"),pushId:o(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:ls,compileChildren:o(function(t,r){for(var n=t.children,i=void 0,s=void 0,a=0,c=n.length;a<c;a++){i=n[a],s=new this.compiler;var u=this.matchExistingProgram(i);if(u==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=s.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=s.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=u.index,i.name="program"+u.index,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.useBlockParams}},"compileChildren"),matchExistingProgram:o(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:o(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:o(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:o(function(t){return t instanceof us||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new us(t))},"pushStackLiteral"),pushSource:o(function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},"pushSource"),replaceStack:o(function(t){var r=["("],n=void 0,i=void 0,s=void 0;if(!this.isInline())throw new Ig.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof us)n=[a.value],r=["(",n],s=!0;else{i=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);s||this.popStack(),i&&this.stackSlot--,this.push(r.concat(u,")"))},"replaceStack"),incrStack:o(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:o(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:o(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof us)this.compileStack.push(i);else{var s=this.incrStack();this.pushSource([s," = ",i,";"]),this.compileStack.push(s)}}},"flushInline"),isInline:o(function(){return this.inlineStack.length},"isInline"),popStack:o(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof us)return n.value;if(!r){if(!this.stackSlot)throw new Ig.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:o(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof us?r.value:r},"topStack"),contextName:o(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:o(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:o(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:o(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:o(function(t,r,n){var i=[],s=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:s,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:o(function(t,r,n){var i={},s=[],a=[],c=[],u=!n,l=void 0;u&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var p=this.popStack(),f=this.popStack();(f||p)&&(i.fn=f||"container.noop",i.inverse=p||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(c[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),s[d]=this.popStack());return u&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(c)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(s)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:o(function(t,r,n,i){var s=this.setupParams(t,r,n);return s.loc=JSON.stringify(this.source.currentLocation),s=this.objectLiteral(s),i?(this.useRegister("options"),n.push("options"),["options=",s]):n?(n.push(s),""):s},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=ls.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();ls.isValidJavaScriptVariableName=function(e){return!ls.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function RL(e,t,r,n,i){var s=t.popStack(),a=r.length;for(e&&a--;n<a;n++)s=t.nameLookup(s,r[n],i);return e?[t.aliasable("container.strict"),"(",s,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:s}o(RL,"strictLookup");$l.default=ls;z2.exports=$l.default});var Y2=v((wl,K2)=>{"use strict";wl.__esModule=!0;function Ua(e){return e&&e.__esModule?e:{default:e}}o(Ua,"_interopRequireDefault");var NL=Q1(),jL=Ua(NL),ML=sg(),kL=Ua(ML),Cg=l2(),Tg=h2(),qL=Z2(),DL=Ua(qL),LL=yl(),FL=Ua(LL),VL=rg(),HL=Ua(VL),BL=jL.default.create;function W2(){var e=BL();return e.compile=function(t,r){return Tg.compile(t,r,e)},e.precompile=function(t,r){return Tg.precompile(t,r,e)},e.AST=kL.default,e.Compiler=Tg.Compiler,e.JavaScriptCompiler=DL.default,e.Parser=Cg.parser,e.parse=Cg.parse,e.parseWithoutProcessing=Cg.parseWithoutProcessing,e}o(W2,"create");var fs=W2();fs.create=W2;HL.default(fs);fs.Visitor=FL.default;fs.default=fs;wl.default=fs;K2.exports=wl.default});var Q2=v(Al=>{"use strict";Al.__esModule=!0;Al.print=ZL;Al.PrintVisitor=Ye;function UL(e){return e&&e.__esModule?e:{default:e}}o(UL,"_interopRequireDefault");var GL=yl(),zL=UL(GL);function ZL(e){return new Ye().accept(e)}o(ZL,"print");function Ye(){this.padding=0}o(Ye,"PrintVisitor");Ye.prototype=new zL.default;Ye.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
73
- `,t};Ye.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)s+=" "+e.blockParams[n];s+=" ]",t+=this.pad(s)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};Ye.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Ye.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Ye.prototype.BlockStatement=Ye.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad((e.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t};Ye.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")};Ye.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};Ye.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Ye.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Ye.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,s=t.length;i<s;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};Ye.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Ye.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Ye.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Ye.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Ye.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Ye.prototype.NullLiteral=function(){return"NULL"};Ye.prototype.Hash=function(e){for(var t=e.pairs,r=[],n=0,i=t.length;n<i;n++)r.push(this.accept(t[n]));return"HASH{"+r.join(", ")+"}"};Ye.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var bn=v((zK,ex)=>{var Il=Y2().default,X2=Q2();Il.PrintVisitor=X2.PrintVisitor;Il.print=X2.print;ex.exports=Il;function J2(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Il.compile(n)}o(J2,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=J2,require.extensions[".hbs"]=J2)});var tc=require("assert");var kx={right:Vx,center:Hx},qx=0,Za=1,Dx=2,Wa=3,Rl=class Rl{constructor(t){var r;this.width=t.width,this.wrap=(r=t.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...t){let r=this.div(...t);r.span=!0}resetOutput(){this.rows=[]}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let r=t.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let r=t.split(`
74
- `).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&Ft.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),Ft.stringWidth(i[0])))}),r.forEach(i=>{this.div(...i.map((s,a)=>({text:s.trim(),padding:this.measurePadding(s),width:a===0&&i.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){let r=Ft.stripAnsi(t);return[0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(r=>{this.rowToString(r,t)}),t.filter(r=>!r.hidden).map(r=>r.text).join(`
75
- `)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let s="";n.forEach((a,c)=>{let{width:u}=t[c],l=this.negatePadding(t[c]),p=a;if(l>Ft.stringWidth(a)&&(p+=" ".repeat(l-Ft.stringWidth(a))),t[c].align&&t[c].align!=="left"&&this.wrap){let d=kx[t[c].align];p=d(p,l),Ft.stringWidth(p)<l&&(p+=" ".repeat((u||0)-Ft.stringWidth(p)-1))}let f=t[c].padding||[0,0,0,0];f[Wa]&&(s+=" ".repeat(f[Wa])),s+=kg(t[c],p,"| "),s+=p,s+=kg(t[c],p," |"),f[Za]&&(s+=" ".repeat(f[Za])),i===0&&r.length>0&&(s=this.renderInline(s,r[r.length-1]))}),r.push({text:s.replace(/ +$/,""),span:t.span})}),r}renderInline(t,r){let n=t.match(/^ */),i=n?n[0].length:0,s=r.text,a=Ft.stringWidth(s.trimRight());return r.span?this.wrap?i<a?t:(r.hidden=!0,s.trimRight()+" ".repeat(i-a)+t.trimLeft()):(r.hidden=!0,s+t):t}rasterize(t){let r=[],n=this.columnWidths(t),i;return t.forEach((s,a)=>{s.width=n[a],this.wrap?i=Ft.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
72
+ `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(t){this.lastContext=t},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(t,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[s++])):this.pushContext(),this.resolvePath("context",t,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(t,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(LL(this.options.strict&&s,this,r,n,t));return}for(var c=r.length;n<c;n++)this.replaceStack(function(u){var l=a.nameLookup(u,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",u]})},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:o(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:o(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:o(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:o(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(t,r,n){var i=this.popStack(),s=this.setupHelper(t,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",s.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:o(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),s=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:o(function(t,r,n){var i=[],s=this.setupParams(r,1,i);t&&(r=this.popStack(),delete s.name),n&&(s.indent=JSON.stringify(n)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),i.push(s),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:o(function(t){var r=this.popStack(),n=void 0,i=void 0,s=void 0;this.trackIds&&(s=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),s&&(a.ids[t]=s),a.values[t]=r},"assignToHash"),pushId:o(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:fs,compileChildren:o(function(t,r){for(var n=t.children,i=void 0,s=void 0,a=0,c=n.length;a<c;a++){i=n[a],s=new this.compiler;var u=this.matchExistingProgram(i);if(u==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=s.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=s.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=u.index,i.name="program"+u.index,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.useBlockParams}},"compileChildren"),matchExistingProgram:o(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:o(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:o(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:o(function(t){return t instanceof ls||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new ls(t))},"pushStackLiteral"),pushSource:o(function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},"pushSource"),replaceStack:o(function(t){var r=["("],n=void 0,i=void 0,s=void 0;if(!this.isInline())throw new Rg.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof ls)n=[a.value],r=["(",n],s=!0;else{i=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);s||this.popStack(),i&&this.stackSlot--,this.push(r.concat(u,")"))},"replaceStack"),incrStack:o(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:o(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:o(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof ls)this.compileStack.push(i);else{var s=this.incrStack();this.pushSource([s," = ",i,";"]),this.compileStack.push(s)}}},"flushInline"),isInline:o(function(){return this.inlineStack.length},"isInline"),popStack:o(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof ls)return n.value;if(!r){if(!this.stackSlot)throw new Rg.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:o(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof ls?r.value:r},"topStack"),contextName:o(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:o(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:o(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:o(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:o(function(t,r,n){var i=[],s=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:s,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:o(function(t,r,n){var i={},s=[],a=[],c=[],u=!n,l=void 0;u&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var p=this.popStack(),f=this.popStack();(f||p)&&(i.fn=f||"container.noop",i.inverse=p||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(c[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),s[d]=this.popStack());return u&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(c)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(s)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:o(function(t,r,n,i){var s=this.setupParams(t,r,n);return s.loc=JSON.stringify(this.source.currentLocation),s=this.objectLiteral(s),i?(this.useRegister("options"),n.push("options"),["options=",s]):n?(n.push(s),""):s},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=fs.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();fs.isValidJavaScriptVariableName=function(e){return!fs.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function LL(e,t,r,n,i){var s=t.popStack(),a=r.length;for(e&&a--;n<a;n++)s=t.nameLookup(s,r[n],i);return e?[t.aliasable("container.strict"),"(",s,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:s}o(LL,"strictLookup");Cl.default=fs;Xx.exports=Cl.default});var n2=v((Tl,r2)=>{"use strict";Tl.__esModule=!0;function Za(e){return e&&e.__esModule?e:{default:e}}o(Za,"_interopRequireDefault");var FL=ix(),VL=Za(FL),HL=lg(),BL=Za(HL),jg=yx(),Mg=Sx(),UL=e2(),GL=Za(UL),zL=Sl(),ZL=Za(zL),WL=sg(),KL=Za(WL),YL=VL.default.create;function t2(){var e=YL();return e.compile=function(t,r){return Mg.compile(t,r,e)},e.precompile=function(t,r){return Mg.precompile(t,r,e)},e.AST=BL.default,e.Compiler=Mg.Compiler,e.JavaScriptCompiler=GL.default,e.Parser=jg.parser,e.parse=jg.parse,e.parseWithoutProcessing=jg.parseWithoutProcessing,e}o(t2,"create");var ps=t2();ps.create=t2;KL.default(ps);ps.Visitor=ZL.default;ps.default=ps;Tl.default=ps;r2.exports=Tl.default});var i2=v(Nl=>{"use strict";Nl.__esModule=!0;Nl.print=e8;Nl.PrintVisitor=Ye;function QL(e){return e&&e.__esModule?e:{default:e}}o(QL,"_interopRequireDefault");var JL=Sl(),XL=QL(JL);function e8(e){return new Ye().accept(e)}o(e8,"print");function Ye(){this.padding=0}o(Ye,"PrintVisitor");Ye.prototype=new XL.default;Ye.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
73
+ `,t};Ye.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)s+=" "+e.blockParams[n];s+=" ]",t+=this.pad(s)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};Ye.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Ye.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Ye.prototype.BlockStatement=Ye.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad((e.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t};Ye.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")};Ye.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};Ye.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Ye.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Ye.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,s=t.length;i<s;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};Ye.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Ye.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Ye.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Ye.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Ye.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Ye.prototype.NullLiteral=function(){return"NULL"};Ye.prototype.Hash=function(e){for(var t=e.pairs,r=[],n=0,i=t.length;n<i;n++)r.push(this.accept(t[n]));return"HASH{"+r.join(", ")+"}"};Ye.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var vn=v((cY,a2)=>{var Rl=n2().default,s2=i2();Rl.PrintVisitor=s2.PrintVisitor;Rl.print=s2.print;a2.exports=Rl;function o2(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Rl.compile(n)}o(o2,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=o2,require.extensions[".hbs"]=o2)});var ic=require("assert");var B2={right:W2,center:K2},U2=0,Ya=1,G2=2,Qa=3,kl=class kl{constructor(t){var r;this.width=t.width,this.wrap=(r=t.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...t){let r=this.div(...t);r.span=!0}resetOutput(){this.rows=[]}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let r=t.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let r=t.split(`
74
+ `).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&Bt.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),Bt.stringWidth(i[0])))}),r.forEach(i=>{this.div(...i.map((s,a)=>({text:s.trim(),padding:this.measurePadding(s),width:a===0&&i.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){let r=Bt.stripAnsi(t);return[0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(r=>{this.rowToString(r,t)}),t.filter(r=>!r.hidden).map(r=>r.text).join(`
75
+ `)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let s="";n.forEach((a,c)=>{let{width:u}=t[c],l=this.negatePadding(t[c]),p=a;if(l>Bt.stringWidth(a)&&(p+=" ".repeat(l-Bt.stringWidth(a))),t[c].align&&t[c].align!=="left"&&this.wrap){let d=B2[t[c].align];p=d(p,l),Bt.stringWidth(p)<l&&(p+=" ".repeat((u||0)-Bt.stringWidth(p)-1))}let f=t[c].padding||[0,0,0,0];f[Qa]&&(s+=" ".repeat(f[Qa])),s+=Fg(t[c],p,"| "),s+=p,s+=Fg(t[c],p," |"),f[Ya]&&(s+=" ".repeat(f[Ya])),i===0&&r.length>0&&(s=this.renderInline(s,r[r.length-1]))}),r.push({text:s.replace(/ +$/,""),span:t.span})}),r}renderInline(t,r){let n=t.match(/^ */),i=n?n[0].length:0,s=r.text,a=Bt.stringWidth(s.trimRight());return r.span?this.wrap?i<a?t:(r.hidden=!0,s.trimRight()+" ".repeat(i-a)+t.trimLeft()):(r.hidden=!0,s+t):t}rasterize(t){let r=[],n=this.columnWidths(t),i;return t.forEach((s,a)=>{s.width=n[a],this.wrap?i=Bt.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
76
76
  `):i=s.text.split(`
77
- `),s.border&&(i.unshift("."+"-".repeat(this.negatePadding(s)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(s)+2)+"'")),s.padding&&(i.unshift(...new Array(s.padding[qx]||0).fill("")),i.push(...new Array(s.padding[Dx]||0).fill(""))),i.forEach((c,u)=>{r[u]||r.push([]);let l=r[u];for(let p=0;p<a;p++)l[p]===void 0&&l.push("");l.push(c)})}),r}negatePadding(t){let r=t.width||0;return t.padding&&(r-=(t.padding[Wa]||0)+(t.padding[Za]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||Ft.stringWidth(a.text));let r=t.length,n=this.width,i=t.map(a=>{if(a.width)return r--,n-=a.width,a.width}),s=r?Math.floor(n/r):0;return i.map((a,c)=>a===void 0?Math.max(s,Lx(t[c])):a)}};o(Rl,"UI");var Tl=Rl;function kg(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}o(kg,"addBorder");function Lx(e){let t=e.padding||[],r=1+(t[Wa]||0)+(t[Za]||0);return e.border?r+4:r}o(Lx,"_minWidth");function Fx(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}o(Fx,"getWindowWidth");function Vx(e,t){e=e.trim();let r=Ft.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}o(Vx,"alignRight");function Hx(e,t){e=e.trim();let r=Ft.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}o(Hx,"alignCenter");var Ft;function qg(e,t){return Ft=t,new Tl({width:(e==null?void 0:e.width)||Fx(),wrap:e==null?void 0:e.wrap})}o(qg,"cliui");var Dg=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function Nl(e){return e.replace(Dg,"")}o(Nl,"stripAnsi");function Lg(e,t){let[r,n]=e.match(Dg)||["",""];e=Nl(e);let i="";for(let s=0;s<e.length;s++)s!==0&&s%t===0&&(i+=`
78
- `),i+=e.charAt(s);return r&&n&&(i=`${r}${i}${n}`),i}o(Lg,"wrap");function jl(e){return qg(e,{stringWidth:o(t=>[...t].length,"stringWidth"),stripAnsi:Nl,wrap:Lg})}o(jl,"ui");var ro=require("path"),Ka=require("fs");function Ml(e,t){let r=(0,ro.resolve)(".",e),n;for((0,Ka.statSync)(r).isDirectory()||(r=(0,ro.dirname)(r));;){if(n=t(r,(0,Ka.readdirSync)(r)),n)return(0,ro.resolve)(r,n);if(r=(0,ro.dirname)(n=r),n===r)break}}o(Ml,"default");var ty=require("util"),ry=require("fs"),ny=require("url");var Ug=require("util"),Xa=require("path");function ci(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 s=i?i[0].length:0;s<e.length;s++){let a=e.charAt(s);n&&(n=!1,a=a.toUpperCase()),s!==0&&(a==="-"||a==="_")?n=!0:a!=="-"&&a!=="_"&&(r+=a)}return r}}o(ci,"camelCase");function Ya(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),a=e.charAt(i);s!==a&&i>0?n+=`${t}${r.charAt(i)}`:n+=a}return n}o(Ya,"decamelize");function Qa(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)}o(Qa,"looksLikeNumber");function Fg(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,s=[];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),s[t]||(s[t]=""),s[t]+=n}return s}o(Fg,"tokenizeArgString");var nr;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(nr||(nr={}));var an,ql=class ql{constructor(t){an=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=Fg(t),s=typeof t=="string",a=Bx(Object.assign(Object.create(null),n.alias)),c=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),u=Object.assign(Object.create(null),n.default),l=n.configObjects||[],p=n.envPrefix,f=c["populate--"],d=f?"--":"_",h=Object.create(null),y=Object.create(null),b=n.__||an.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:[]},E=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,$=new RegExp("^--"+c["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(_){let P=typeof _=="object"?_.key:_,N=Object.keys(_).map(function(w){return{boolean:"bools",string:"strings",number:"numbers"}[w]}).filter(Boolean).pop();N&&(g[N][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)})),Rt(n.key,a,n.default,g.arrays),Object.keys(u).forEach(function(_){(g.aliases[_]||[]).forEach(function(P){u[P]=u[_]})});let T=null;to();let I=[],C=Object.assign(Object.create(null),{_:[]}),ae={};for(let _=0;_<i.length;_++){let P=i[_],N=P.replace(/^-{3,}/,"---"),w,O,V,k,z,tt;if(P!=="--"&&/^-/.test(P)&&Ce(P))J(P);else if(N.match(/^---+(=|$)/)){J(P);continue}else if(P.match(/^--.+=/)||!c["short-option-groups"]&&P.match(/^-.+=/))k=P.match(/^--?([^=]+)=([\s\S]*)$/),k!==null&&Array.isArray(k)&&k.length>=3&&(re(k[1],g.arrays)?_=xe(_,k[1],i,k[2]):re(k[1],g.nargs)!==!1?_=Be(_,k[1],i,k[2]):X(k[1],k[2],!0));else if(P.match($)&&c["boolean-negation"])k=P.match($),k!==null&&Array.isArray(k)&&k.length>=2&&(O=k[1],X(O,re(O,g.arrays)?[!1]:!1));else if(P.match(/^--.+/)||!c["short-option-groups"]&&P.match(/^-[^-]+/))k=P.match(/^--?(.+)/),k!==null&&Array.isArray(k)&&k.length>=2&&(O=k[1],re(O,g.arrays)?_=xe(_,O,i):re(O,g.nargs)!==!1?_=Be(_,O,i):(z=i[_+1],z!==void 0&&(!z.match(/^-/)||z.match(E))&&!re(O,g.bools)&&!re(O,g.counts)||/^(true|false)$/.test(z)?(X(O,z),_++):X(O,_e(O))));else if(P.match(/^-.\..+=/))k=P.match(/^-([^=]+)=([\s\S]*)$/),k!==null&&Array.isArray(k)&&k.length>=3&&X(k[1],k[2]);else if(P.match(/^-.\..+/)&&!P.match(E))z=i[_+1],k=P.match(/^-(.\..+)/),k!==null&&Array.isArray(k)&&k.length>=2&&(O=k[1],z!==void 0&&!z.match(/^-/)&&!re(O,g.bools)&&!re(O,g.counts)?(X(O,z),_++):X(O,_e(O)));else if(P.match(/^-[^-]+/)&&!P.match(E)){V=P.slice(1,-1).split(""),w=!1;for(let ht=0;ht<V.length;ht++){if(z=P.slice(ht+2),V[ht+1]&&V[ht+1]==="="){tt=P.slice(ht+3),O=V[ht],re(O,g.arrays)?_=xe(_,O,i,tt):re(O,g.nargs)!==!1?_=Be(_,O,i,tt):X(O,tt),w=!0;break}if(z==="-"){X(V[ht],z);continue}if(/[A-Za-z]/.test(V[ht])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(z)&&re(z,g.bools)===!1){X(V[ht],z),w=!0;break}if(V[ht+1]&&V[ht+1].match(/\W/)){X(V[ht],z),w=!0;break}else X(V[ht],_e(V[ht]))}O=P.slice(-1)[0],!w&&O!=="-"&&(re(O,g.arrays)?_=xe(_,O,i):re(O,g.nargs)!==!1?_=Be(_,O,i):(z=i[_+1],z!==void 0&&(!/^(-|--)[^-]/.test(z)||z.match(E))&&!re(O,g.bools)&&!re(O,g.counts)||/^(true|false)$/.test(z)?(X(O,z),_++):X(O,_e(O))))}else if(P.match(/^-[0-9]$/)&&P.match(E)&&re(P.slice(1),g.bools))O=P.slice(1),X(O,_e(O));else if(P==="--"){I=i.slice(_+1);break}else if(c["halt-at-non-option"]){I=i.slice(_);break}else J(P)}ge(C,!0),ge(C,!1),Y(C),ve(),we(C,g.aliases,u,!0),ze(C),c["set-placeholder-key"]&&qr(C),Object.keys(g.counts).forEach(function(_){rr(C,_.split("."))||X(_,0)}),f&&I.length&&(C[d]=[]),I.forEach(function(_){C[d].push(_)}),c["camel-case-expansion"]&&c["strip-dashed"]&&Object.keys(C).filter(_=>_!=="--"&&_.includes("-")).forEach(_=>{delete C[_]}),c["strip-aliased"]&&[].concat(...Object.keys(a).map(_=>a[_])).forEach(_=>{c["camel-case-expansion"]&&_.includes("-")&&delete C[_.split(".").map(P=>ci(P)).join(".")],delete C[_]});function J(_){let P=D("_",_);(typeof P=="string"||typeof P=="number")&&C._.push(P)}o(J,"pushPositional");function Be(_,P,N,w){let O,V=re(P,g.nargs);if(V=typeof V!="number"||isNaN(V)?1:V,V===0)return Nt(w)||(T=Error(b("Argument unexpected for: %s",P))),X(P,_e(P)),_;let k=Nt(w)?0:1;if(c["nargs-eats-options"])N.length-(_+1)+k<V&&(T=Error(b("Not enough arguments following: %s",P))),k=V;else{for(O=_+1;O<N.length&&(!N[O].match(/^-[^0-9]/)||N[O].match(E)||Ce(N[O]));O++)k++;k<V&&(T=Error(b("Not enough arguments following: %s",P)))}let z=Math.min(k,V);for(!Nt(w)&&z>0&&(X(P,w),z--),O=_+1;O<z+_+1;O++)X(P,N[O]);return _+z}o(Be,"eatNargs");function xe(_,P,N,w){let O=[],V=w||N[_+1],k=re(P,g.nargs);if(re(P,g.bools)&&!/^(true|false)$/.test(V))O.push(!0);else if(Nt(V)||Nt(w)&&/^-/.test(V)&&!E.test(V)&&!Ce(V)){if(u[P]!==void 0){let z=u[P];O=Array.isArray(z)?z:[z]}}else{Nt(w)||O.push(R(P,w,!0));for(let z=_+1;z<N.length&&!(!c["greedy-arrays"]&&O.length>0||k&&typeof k=="number"&&O.length>=k||(V=N[z],/^-/.test(V)&&!E.test(V)&&!Ce(V)));z++)_=z,O.push(R(P,V,s))}return typeof k=="number"&&(k&&O.length<k||isNaN(k)&&O.length===0)&&(T=Error(b("Not enough arguments following: %s",P))),X(P,O),_}o(xe,"eatArray");function X(_,P,N=s){if(/-/.test(_)&&c["camel-case-expansion"]){let V=_.split(".").map(function(k){return ci(k)}).join(".");M(_,V)}let w=R(_,P,N),O=_.split(".");K(C,O,w),g.aliases[_]&&g.aliases[_].forEach(function(V){let k=V.split(".");K(C,k,w)}),O.length>1&&c["dot-notation"]&&(g.aliases[O[0]]||[]).forEach(function(V){let k=V.split("."),z=[].concat(O);z.shift(),k=k.concat(z),(g.aliases[_]||[]).includes(k.join("."))||K(C,k,w)}),re(_,g.normalize)&&!re(_,g.arrays)&&[_].concat(g.aliases[_]||[]).forEach(function(k){Object.defineProperty(ae,k,{enumerable:!0,get(){return P},set(z){P=typeof z=="string"?an.normalize(z):z}})})}o(X,"setArg");function M(_,P){g.aliases[_]&&g.aliases[_].length||(g.aliases[_]=[P],h[P]=!0),g.aliases[P]&&g.aliases[P].length||M(P,_)}o(M,"addNewAlias");function R(_,P,N){N&&(P=Ux(P)),(re(_,g.bools)||re(_,g.counts))&&typeof P=="string"&&(P=P==="true");let w=Array.isArray(P)?P.map(function(O){return D(_,O)}):D(_,P);return re(_,g.counts)&&(Nt(w)||typeof w=="boolean")&&(w=kl()),re(_,g.normalize)&&re(_,g.arrays)&&(Array.isArray(P)?w=P.map(O=>an.normalize(O)):w=an.normalize(P)),w}o(R,"processValue");function D(_,P){return!c["parse-positional-numbers"]&&_==="_"||!re(_,g.strings)&&!re(_,g.bools)&&!Array.isArray(P)&&(Qa(P)&&c["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${P}`)))||!Nt(P)&&re(_,g.numbers))&&(P=Number(P)),P}o(D,"maybeCoerceNumber");function Y(_){let P=Object.create(null);we(P,g.aliases,u),Object.keys(g.configs).forEach(function(N){let w=_[N]||P[N];if(w)try{let O=null,V=an.resolve(an.cwd(),w),k=g.configs[N];if(typeof k=="function"){try{O=k(V)}catch(z){O=z}if(O instanceof Error){T=O;return}}else O=an.require(V);ue(O)}catch(O){O.name==="PermissionDenied"?T=O:_[N]&&(T=Error(b("Invalid JSON config file: %s",w)))}})}o(Y,"setConfig");function ue(_,P){Object.keys(_).forEach(function(N){let w=_[N],O=P?P+"."+N:N;typeof w=="object"&&w!==null&&!Array.isArray(w)&&c["dot-notation"]?ue(w,O):(!rr(C,O.split("."))||re(O,g.arrays)&&c["combine-arrays"])&&X(O,w)})}o(ue,"setConfigObject");function ve(){typeof l<"u"&&l.forEach(function(_){ue(_)})}o(ve,"setConfigObjects");function ge(_,P){if(typeof p>"u")return;let N=typeof p=="string"?p:"",w=an.env();Object.keys(w).forEach(function(O){if(N===""||O.lastIndexOf(N,0)===0){let V=O.split("__").map(function(k,z){return z===0&&(k=k.substring(N.length)),ci(k)});(P&&g.configs[V.join(".")]||!P)&&!rr(_,V)&&X(V.join("."),w[O])}})}o(ge,"applyEnvVars");function ze(_){let P,N=new Set;Object.keys(_).forEach(function(w){if(!N.has(w)&&(P=re(w,g.coercions),typeof P=="function"))try{let O=D(w,P(_[w]));[].concat(g.aliases[w]||[],w).forEach(V=>{N.add(V),_[V]=O})}catch(O){T=O}})}o(ze,"applyCoercions");function qr(_){return g.keys.forEach(P=>{~P.indexOf(".")||typeof _[P]>"u"&&(_[P]=void 0)}),_}o(qr,"setPlaceholderKeys");function we(_,P,N,w=!1){Object.keys(N).forEach(function(O){rr(_,O.split("."))||(K(_,O.split("."),N[O]),w&&(y[O]=!0),(P[O]||[]).forEach(function(V){rr(_,V.split("."))||K(_,V.split("."),N[O])}))})}o(we,"applyDefaultsAndAliases");function rr(_,P){let N=_;c["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(O){N=N[O]||{}});let w=P[P.length-1];return typeof N!="object"?!1:w in N}o(rr,"hasKey");function K(_,P,N){let w=_;c["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(tt){tt=Vg(tt),typeof w=="object"&&w[tt]===void 0&&(w[tt]={}),typeof w[tt]!="object"||Array.isArray(w[tt])?(Array.isArray(w[tt])?w[tt].push({}):w[tt]=[w[tt],{}],w=w[tt][w[tt].length-1]):w=w[tt]});let O=Vg(P[P.length-1]),V=re(P.join("."),g.arrays),k=Array.isArray(N),z=c["duplicate-arguments-array"];!z&&re(O,g.nargs)&&(z=!0,(!Nt(w[O])&&g.nargs[O]===1||Array.isArray(w[O])&&w[O].length===g.nargs[O])&&(w[O]=void 0)),N===kl()?w[O]=kl(w[O]):Array.isArray(w[O])?z&&V&&k?w[O]=c["flatten-duplicate-arrays"]?w[O].concat(N):(Array.isArray(w[O][0])?w[O]:[w[O]]).concat([N]):!z&&!!V==!!k?w[O]=N:w[O]=w[O].concat([N]):w[O]===void 0&&V?w[O]=k?N:[N]:z&&!(w[O]===void 0||re(O,g.counts)||re(O,g.bools))?w[O]=[w[O],N]:w[O]=N}o(K,"setKey");function Rt(..._){_.forEach(function(P){Object.keys(P||{}).forEach(function(N){g.aliases[N]||(g.aliases[N]=[].concat(a[N]||[]),g.aliases[N].concat(N).forEach(function(w){if(/-/.test(w)&&c["camel-case-expansion"]){let O=ci(w);O!==N&&g.aliases[N].indexOf(O)===-1&&(g.aliases[N].push(O),h[O]=!0)}}),g.aliases[N].concat(N).forEach(function(w){if(w.length>1&&/[A-Z]/.test(w)&&c["camel-case-expansion"]){let O=Ya(w,"-");O!==N&&g.aliases[N].indexOf(O)===-1&&(g.aliases[N].push(O),h[O]=!0)}}),g.aliases[N].forEach(function(w){g.aliases[w]=[N].concat(g.aliases[N].filter(function(O){return w!==O}))}))})})}o(Rt,"extendAliases");function re(_,P){let N=[].concat(g.aliases[_]||[],_),w=Object.keys(P),O=N.find(V=>w.includes(V));return O?P[O]:!1}o(re,"checkAllAliases");function Ie(_){let P=Object.keys(g);return[].concat(P.map(w=>g[w])).some(function(w){return Array.isArray(w)?w.includes(_):w[_]})}o(Ie,"hasAnyFlag");function ee(_,...P){return[].concat(...P).some(function(w){let O=_.match(w);return O&&Ie(O[1])})}o(ee,"hasFlagsMatching");function Ae(_){if(_.match(E)||!_.match(/^-[^-]+/))return!1;let P=!0,N,w=_.slice(1).split("");for(let O=0;O<w.length;O++){if(N=_.slice(O+2),!Ie(w[O])){P=!1;break}if(w[O+1]&&w[O+1]==="="||N==="-"||/[A-Za-z]/.test(w[O])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(N)||w[O+1]&&w[O+1].match(/\W/))break}return P}o(Ae,"hasAllShortFlags");function Ce(_){return c["unknown-options-as-args"]&&pe(_)}o(Ce,"isUnknownOptionAsArg");function pe(_){return _=_.replace(/^-{3,}/,"--"),_.match(E)||Ae(_)?!1:!ee(_,/^-+([^=]+?)=[\s\S]*$/,$,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}o(pe,"isUnknownOption");function _e(_){return!re(_,g.bools)&&!re(_,g.counts)&&`${_}`in u?u[_]:qe(ut(_))}o(_e,"defaultValue");function qe(_){return{[nr.BOOLEAN]:!0,[nr.STRING]:"",[nr.NUMBER]:void 0,[nr.ARRAY]:[]}[_]}o(qe,"defaultForType");function ut(_){let P=nr.BOOLEAN;return re(_,g.strings)?P=nr.STRING:re(_,g.numbers)?P=nr.NUMBER:re(_,g.bools)?P=nr.BOOLEAN:re(_,g.arrays)&&(P=nr.ARRAY),P}o(ut,"guessType");function Nt(_){return _===void 0}o(Nt,"isUndefined");function to(){Object.keys(g.counts).find(_=>re(_,g.arrays)?(T=Error(b("Invalid configuration: %s, opts.count excludes opts.array.",_)),!0):re(_,g.nargs)?(T=Error(b("Invalid configuration: %s, opts.count excludes opts.narg.",_)),!0):!1)}return o(to,"checkConfiguration"),{aliases:Object.assign({},g.aliases),argv:Object.assign(ae,C),configuration:c,defaulted:Object.assign({},y),error:T,newAliases:Object.assign({},h)}}};o(ql,"YargsParser");var Ja=ql;function Bx(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 s=i+1;s<t.length;s++)if(t[i].filter(function(c){return t[s].indexOf(c)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(a,c,u){return u.indexOf(a)===c});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}o(Bx,"combineAliases");function kl(e){return e!==void 0?e+1:1}o(kl,"increment");function Vg(e){return e==="__proto__"?"___proto___":e}o(Vg,"sanitizeKey");function Ux(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}o(Ux,"stripQuotes");var Gg=require("fs");var Dl,Ll,Fl,Hg=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,Bg=(Ll=(Dl=process==null?void 0:process.versions)===null||Dl===void 0?void 0:Dl.node)!==null&&Ll!==void 0?Ll:(Fl=process==null?void 0:process.version)===null||Fl===void 0?void 0:Fl.slice(1);if(Bg&&Number(Bg.match(/^([^.]+)/)[1])<Hg)throw Error(`yargs parser supports a minimum Node.js version of ${Hg}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Gx=process?process.env:{},zg=new Ja({cwd:process.cwd,env:o(()=>Gx,"env"),format:Ug.format,normalize:Xa.normalize,resolve:Xa.resolve,require:o(e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,Gg.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")},"require")}),hs=o(function(t,r){return zg.parse(t.slice(),r).argv},"Parser");hs.detailed=function(e,t){return zg.parse(e.slice(),t)};hs.camelCase=ci;hs.decamelize=Ya;hs.looksLikeNumber=Qa;var Vl=hs;var Sr=require("path");function Zg(){return zx()?0:1}o(Zg,"getProcessArgvBinIndex");function zx(){return Zx()&&!process.defaultApp}o(zx,"isBundledElectronApp");function Zx(){return!!process.versions.electron}o(Zx,"isElectronApp");function Hl(e){return e.slice(Zg()+1)}o(Hl,"hideBin");function Wg(){return process.argv[Zg()]}o(Wg,"getProcessArgvBin");var ec=class ec extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,ec)}};o(ec,"YError");var Re=ec;var no=require("fs"),Kg=require("util"),Yg=require("path");var Qg={fs:{readFileSync:no.readFileSync,writeFile:no.writeFile},format:Kg.format,resolve:Yg.resolve,exists:o(e=>{try{return(0,no.statSync)(e).isFile()}catch{return!1}},"exists")};var _r,Ul=class Ul{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=o(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(),_r.format.apply(_r.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(),s=o(function(){},"cb");typeof t[t.length-1]=="function"&&(s=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:s})):s();let c=[a];return~a.indexOf("%d")&&c.push(i),_r.format.apply(_r.format,c.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,s){let a=r[s+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,s=r.cb,a=this._resolveLocaleFile(n,i),c=JSON.stringify(this.cache[i],null,2);_r.fs.writeFile(a,c,"utf-8",function(u){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),s(u)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{_r.fs.readFileSync&&(t=JSON.parse(_r.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=_r.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=_r.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return _r.exists(t)}};o(Ul,"Y18N");var Bl=Ul;function Jg(e,t){_r=t;let r=new Bl(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}}o(Jg,"y18n");var Wx=o(e=>Jg(e,Qg),"y18n"),Xg=Wx;var Qx={};var Kx="require is not supported by ESM",ey="loading a directory of commands is not supported yet for ESM",ms;try{ms=(0,ny.fileURLToPath)(Qx.url)}catch{ms=process.cwd()}var Yx=ms.substring(0,ms.lastIndexOf("node_modules")),Gl={assert:{notStrictEqual:tc.notStrictEqual,strictEqual:tc.strictEqual},cliui:jl,findUp:Ml,getEnv:o(e=>process.env[e],"getEnv"),inspect:ty.inspect,getCallerFile:o(()=>{throw new Re(ey)},"getCallerFile"),getProcessArgvBin:Wg,mainFilename:Yx||process.cwd(),Parser:Vl,path:{basename:Sr.basename,dirname:Sr.dirname,extname:Sr.extname,relative:Sr.relative,resolve:Sr.resolve},process:{argv:o(()=>process.argv,"argv"),cwd:process.cwd,emitWarning:o((e,t)=>process.emitWarning(e,t),"emitWarning"),execPath:o(()=>process.execPath,"execPath"),exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:ry.readFileSync,require:o(()=>{throw new Re(Kx)},"require"),requireDirectory:o(()=>{throw new Re(ey)},"requireDirectory"),stringWidth:o(e=>[...e].length,"stringWidth"),y18n:Xg({directory:(0,Sr.resolve)(ms,"../../../locales"),updateFiles:!1})};function $t(e,t,r,n){r.assert.notStrictEqual(e,t,n)}o($t,"assertNotStrictEqual");function zl(e,t){t.assert.strictEqual(typeof e,"string")}o(zl,"assertSingleKey");function io(e){return Object.keys(e)}o(io,"objectKeys");function Ne(e){return!!e&&!!e.then&&typeof e.then=="function"}o(Ne,"isPromise");function _n(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 s={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((a,c)=>{let u=!1;a=a.replace(/\s/g,""),/\.+[\]>]/.test(a)&&c===r.length-1&&(u=!0),/^\[/.test(a)?s.optional.push({cmd:a.replace(n,"").split("|"),variadic:u}):s.demanded.push({cmd:a.replace(n,"").split("|"),variadic:u})}),s}o(_n,"parseCommand");var Jx=["first","second","third","fourth","fifth","sixth"];function F(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[_n(`cmd ${e}`),t,r]}o(n,"parseArgs");try{let i=0,[s,a,c]=n(),u=[].slice.call(a);for(;u.length&&u[u.length-1]===void 0;)u.pop();let l=c||u.length;if(l<s.demanded.length)throw new Re(`Not enough arguments provided. Expected ${s.demanded.length} but received ${u.length}.`);let p=s.demanded.length+s.optional.length;if(l>p)throw new Re(`Too many arguments provided. Expected max ${p} but received ${l}.`);s.demanded.forEach(f=>{let d=u.shift(),h=iy(d);f.cmd.filter(b=>b===h||b==="*").length===0&&oy(h,f.cmd,i),i+=1}),s.optional.forEach(f=>{if(u.length===0)return;let d=u.shift(),h=iy(d);f.cmd.filter(b=>b===h||b==="*").length===0&&oy(h,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}o(F,"argsert");function iy(e){return Array.isArray(e)?"array":e===null?"null":typeof e}o(iy,"guessType");function oy(e,t,r){throw new Re(`Invalid ${Jx[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}o(oy,"argumentTypeError");var Zl=class Zl{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 s=0;s<t.length;s++){if(typeof t[s]!="function")throw Error("middleware must be a function");let a=t[s];a.applyBeforeValidation=r,a.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let s=t;s.applyBeforeValidation=r,s.global=n,s.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 s=[...n[r]||[],r];return i.option?!s.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)}};o(Zl,"GlobalMiddleware");var rc=Zl;function sy(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}o(sy,"commandMiddlewareFactory");function ui(e,t,r,n){return r.reduce((i,s)=>{if(s.applyBeforeValidation!==n)return i;if(s.mutates){if(s.applied)return i;s.applied=!0}if(Ne(i))return i.then(a=>Promise.all([a,s(a,t)])).then(([a,c])=>Object.assign(a,c));{let a=s(i,t);return Ne(a)?a.then(c=>Object.assign(i,c)):Object.assign(i,a)}},e)}o(ui,"applyMiddleware");function li(e,t,r=n=>{throw n}){try{let n=Xx(e)?e():e;return Ne(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}o(li,"maybeAsyncResult");function Xx(e){return typeof e=="function"}o(Xx,"isFunction");function Wl(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}o(Wl,"whichModule");var oo=/(^\*)|(^\$0)/,Yl=class Yl{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 s=typeof i.visit=="function"?i.visit:a=>a;i.visit=(a,c,u)=>{let l=s(a,c,u);if(l){if(this.requireCache.has(c))return l;this.requireCache.add(c),this.addHandler(l)}return l},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,s,a){let c=[],u=sy(s);if(i=i||(()=>{}),Array.isArray(t))if(e$(t))[t,...c]=t;else for(let l of t)this.addHandler(l);else if(r$(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(ay(n)){this.addHandler([t].concat(c),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=_n(t);c=c.map(d=>_n(d).cmd);let p=!1,f=[l.cmd].concat(c).filter(d=>oo.test(d)?(p=!0,!1):!0);f.length===0&&p&&f.push("$0"),p&&(l.cmd=f[0],c=f.slice(1),t=t.replace(oo,l.cmd)),c.forEach(d=>{this.aliasMap[d]=l.cmd}),r!==!1&&this.usage.command(t,r,p,c,a),this.handlers[l.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:u,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,s,a){let c=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,u=r.getInternalMethods().getContext(),l=u.commands.slice(),p=!t;t&&(u.commands.push(t),u.fullCommands.push(c.original));let f=this.applyBuilderUpdateUsageAndParse(p,c,r,n.aliases,l,i,s,a);return Ne(f)?f.then(d=>this.applyMiddlewareAndGetResult(p,c,d.innerArgv,u,s,d.aliases,r)):this.applyMiddlewareAndGetResult(p,c,f.innerArgv,u,s,f.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,s,a,c,u){let l=r.builder,p=n;if(nc(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),u);if(Ne(f))return f.then(d=>(p=uy(d)?d:n,this.parseAndUpdateUsage(t,r,p,s,a,c)))}else t$(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,s,a,c)}parseAndUpdateUsage(t,r,n,i,s,a){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let c=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,a);return Ne(c)?c.then(u=>({aliases:n.parsed.aliases,innerArgv:u})):{aliases:n.parsed.aliases,innerArgv:c}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=oo.test(r.original)?r.original.replace(oo,"").trim():r.original,i=t.filter(s=>!oo.test(s));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,s,a,c,u){if(!a.getInternalMethods().getHasOutput()){let l=a.getInternalMethods().runValidation(s,u,a.parsed.error,t);n=li(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=ui(n,a,c,!1),n=li(n,p=>{let f=r.handler(p);return Ne(f)?f.then(()=>p):p}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),Ne(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,s,a,c){let u={};if(s)return n;c.getInternalMethods().getHasOutput()||(u=this.populatePositionals(r,n,i,c));let l=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),p=ui(n,c,l,!0);return Ne(p)?p.then(f=>this.handleValidationAndGetResult(t,r,f,i,a,c,l,u)):this.handleValidationAndGetResult(t,r,p,i,a,c,l,u)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let s=t.demanded.slice(0),a=t.optional.slice(0),c={};for(this.validation.positionalCount(s.length,r._.length);s.length;){let u=s.shift();this.populatePositional(u,r,c)}for(;a.length;){let u=a.shift();this.populatePositional(u,r,c)}return r._=n.commands.concat(r._.map(u=>""+u)),this.postProcessPositionals(r,c,this.cmdToParseOptions(t.original),i),c}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=_n(t);return n.demanded.forEach(i=>{let[s,...a]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=a,r.demand[s]=!0}),n.optional.forEach(i=>{let[s,...a]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=a}),r}postProcessPositionals(t,r,n,i){let s=Object.assign({},i.getOptions());s.default=Object.assign(n.default,s.default);for(let l of Object.keys(n.alias))s.alias[l]=(s.alias[l]||[]).concat(n.alias[l]);s.array=s.array.concat(n.array),s.config={};let a=[];if(Object.keys(r).forEach(l=>{r[l].map(p=>{s.configuration["unknown-options-as-args"]&&(s.key[l]=!0),a.push(`--${l}`),a.push(p)})}),!a.length)return;let c=Object.assign({},s.configuration,{"populate--":!1}),u=this.shim.Parser.detailed(a,Object.assign({},s,{configuration:c}));if(u.error)i.getInternalMethods().getUsageInstance().fail(u.error.message,u.error);else{let l=Object.keys(r);Object.keys(r).forEach(p=>{l.push(...u.aliases[p])}),Object.keys(u.argv).forEach(p=>{l.includes(p)&&(r[p]||(r[p]=u.argv[p]),!this.isInConfigs(i,p)&&!this.isDefaulted(i,p)&&Object.prototype.hasOwnProperty.call(t,p)&&Object.prototype.hasOwnProperty.call(u.argv,p)&&(Array.isArray(t[p])||Array.isArray(u.argv[p]))?t[p]=[].concat(t[p],u.argv[p]):t[p]=u.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=oo.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(nc(r))return r(t,!0);ay(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=Wl(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;$t(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();$t(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}};o(Yl,"CommandInstance");var Kl=Yl;function cy(e,t,r,n){return new Kl(e,t,r,n)}o(cy,"command");function ay(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}o(ay,"isCommandBuilderDefinition");function e$(e){return e.every(t=>typeof t=="string")}o(e$,"isCommandAndAliases");function nc(e){return typeof e=="function"}o(nc,"isCommandBuilderCallback");function t$(e){return typeof e=="object"}o(t$,"isCommandBuilderOptionDefinitions");function r$(e){return typeof e=="object"&&!Array.isArray(e)}o(r$,"isCommandHandlerDefinition");function Sn(e={},t=()=>!0){let r={};return io(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}o(Sn,"objFilter");function On(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)})}o(On,"setBlocking");function n$(e){return typeof e=="boolean"}o(n$,"isBoolean");function fy(e,t){let r=t.y18n.__,n={},i=[];n.failFn=o(function(R){i.push(R)},"failFn");let s=null,a=null,c=!0;n.showHelpOnFail=o(function(R=!0,D){let[Y,ue]=typeof R=="string"?[!0,R]:[R,D];return e.getInternalMethods().isGlobalContext()&&(a=ue),s=ue,c=Y,n},"showHelpOnFailFn");let u=!1;n.fail=o(function(R,D){let Y=e.getInternalMethods().getLoggerInstance();if(i.length)for(let ue=i.length-1;ue>=0;--ue){let ve=i[ue];if(n$(ve)){if(D)throw D;if(R)throw Error(R)}else ve(R,D,n)}else{if(e.getExitProcess()&&On(!0),!u){u=!0,c&&(e.showHelp("error"),Y.error()),(R||D)&&Y.error(R||D);let ue=s||a;ue&&((R||D)&&Y.error(""),Y.error(ue))}if(D=D||new Re(R),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,D);throw D}},"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=o(function(R,D,Y,ue,ve=!1){Y&&(d=d.map(ge=>(ge[2]=!1,ge))),d.push([R,D||"",Y,ue,ve])},"command"),n.getCommands=()=>d;let h={};n.describe=o(function(R,D){Array.isArray(R)?R.forEach(Y=>{n.describe(Y,D)}):typeof R=="object"?Object.keys(R).forEach(Y=>{n.describe(Y,R[Y])}):h[R]=D},"describe"),n.getDescriptions=()=>h;let y=[];n.epilog=M=>{y.push(M)};let b=!1,g;n.wrap=M=>{b=!0,g=M},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(b||(g=Be(),b=!0),g);let E="__yargsString__:";n.deferY18nLookup=M=>E+M,n.help=o(function(){if(I)return I;T();let R=e.customScriptName?e.$0:t.path.basename(e.$0),D=e.getDemandedOptions(),Y=e.getDemandedCommands(),ue=e.getDeprecatedOptions(),ve=e.getGroups(),ge=e.getOptions(),ze=[];ze=ze.concat(Object.keys(h)),ze=ze.concat(Object.keys(D)),ze=ze.concat(Object.keys(Y)),ze=ze.concat(Object.keys(ge.default)),ze=ze.filter(ae),ze=Object.keys(ze.reduce((ee,Ae)=>(Ae!=="_"&&(ee[Ae]=!0),ee),{}));let qr=n.getWrap(),we=t.cliui({width:qr,wrap:!!qr});if(!p){if(l.length)l.forEach(ee=>{we.div({text:`${ee[0].replace(/\$0/g,R)}`}),ee[1]&&we.div({text:`${ee[1]}`,padding:[1,0,0,0]})}),we.div();else if(d.length){let ee=null;Y._?ee=`${R} <${r("command")}>
79
- `:ee=`${R} [${r("command")}]
80
- `,we.div(`${ee}`)}}if(d.length>1||d.length===1&&!d[0][2]){we.div(r("Commands:"));let ee=e.getInternalMethods().getContext(),Ae=ee.commands.length?`${ee.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}${Ae}${pe[0].replace(/^\$0 ?/,"")}`;we.span({text:_e,padding:[0,2,0,2],width:$(d,qr,`${R}${Ae}`)+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?we.div({text:qe.join(" "),padding:[0,0,0,2],align:"right"}):we.div()}),we.div()}let rr=(Object.keys(ge.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);ze=ze.filter(ee=>!e.parsed.newAliases[ee]&&rr.every(Ae=>(ge.alias[Ae]||[]).indexOf(ee)===-1));let K=r("Options:");ve[K]||(ve[K]=[]),C(ze,ge.alias,ve,K);let Rt=o(ee=>/^--/.test(ic(ee)),"isLongSwitch"),re=Object.keys(ve).filter(ee=>ve[ee].length>0).map(ee=>{let Ae=ve[ee].filter(ae).map(Ce=>{if(rr.includes(Ce))return Ce;for(let pe=0,_e;(_e=rr[pe])!==void 0;pe++)if((ge.alias[_e]||[]).includes(Ce))return _e;return Ce});return{groupName:ee,normalizedKeys:Ae}}).filter(({normalizedKeys:ee})=>ee.length>0).map(({groupName:ee,normalizedKeys:Ae})=>{let Ce=Ae.reduce((pe,_e)=>(pe[_e]=[_e].concat(ge.alias[_e]||[]).map(qe=>ee===n.getPositionalGroupName()?qe:(/^[0-9]$/.test(qe)?ge.boolean.includes(_e)?"-":"--":qe.length>1?"--":"-")+qe).sort((qe,ut)=>Rt(qe)===Rt(ut)?0:Rt(qe)?1:-1).join(", "),pe),{});return{groupName:ee,normalizedKeys:Ae,switches:Ce}});if(re.filter(({groupName:ee})=>ee!==n.getPositionalGroupName()).some(({normalizedKeys:ee,switches:Ae})=>!ee.every(Ce=>Rt(Ae[Ce])))&&re.filter(({groupName:ee})=>ee!==n.getPositionalGroupName()).forEach(({normalizedKeys:ee,switches:Ae})=>{ee.forEach(Ce=>{Rt(Ae[Ce])&&(Ae[Ce]=i$(Ae[Ce],4))})}),re.forEach(({groupName:ee,normalizedKeys:Ae,switches:Ce})=>{we.div(ee),Ae.forEach(pe=>{let _e=Ce[pe],qe=h[pe]||"",ut=null;qe.includes(E)&&(qe=r(qe.substring(E.length))),ge.boolean.includes(pe)&&(ut=`[${r("boolean")}]`),ge.count.includes(pe)&&(ut=`[${r("count")}]`),ge.string.includes(pe)&&(ut=`[${r("string")}]`),ge.normalize.includes(pe)&&(ut=`[${r("string")}]`),ge.array.includes(pe)&&(ut=`[${r("array")}]`),ge.number.includes(pe)&&(ut=`[${r("number")}]`);let Nt=o(P=>typeof P=="string"?`[${r("deprecated: %s",P)}]`:`[${r("deprecated")}]`,"deprecatedExtra"),to=[pe in ue?Nt(ue[pe]):null,ut,pe in D?`[${r("required")}]`:null,ge.choices&&ge.choices[pe]?`[${r("choices:")} ${n.stringifiedValues(ge.choices[pe])}]`:null,J(ge.default[pe],ge.defaultDescription[pe])].filter(Boolean).join(" ");we.span({text:ic(_e),padding:[0,2,0,2+ly(_e)],width:$(Ce,qr)+4},qe);let _=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;to&&!_?we.div({text:to,padding:[0,0,0,2],align:"right"}):we.div()}),we.div()}),f.length&&(we.div(r("Examples:")),f.forEach(ee=>{ee[0]=ee[0].replace(/\$0/g,R)}),f.forEach(ee=>{ee[1]===""?we.div({text:ee[0],padding:[0,2,0,2]}):we.div({text:ee[0],padding:[0,2,0,2],width:$(f,qr)+4},{text:ee[1]})}),we.div()),y.length>0){let ee=y.map(Ae=>Ae.replace(/\$0/g,R)).join(`
77
+ `),s.border&&(i.unshift("."+"-".repeat(this.negatePadding(s)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(s)+2)+"'")),s.padding&&(i.unshift(...new Array(s.padding[U2]||0).fill("")),i.push(...new Array(s.padding[G2]||0).fill(""))),i.forEach((c,u)=>{r[u]||r.push([]);let l=r[u];for(let p=0;p<a;p++)l[p]===void 0&&l.push("");l.push(c)})}),r}negatePadding(t){let r=t.width||0;return t.padding&&(r-=(t.padding[Qa]||0)+(t.padding[Ya]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||Bt.stringWidth(a.text));let r=t.length,n=this.width,i=t.map(a=>{if(a.width)return r--,n-=a.width,a.width}),s=r?Math.floor(n/r):0;return i.map((a,c)=>a===void 0?Math.max(s,z2(t[c])):a)}};o(kl,"UI");var Ml=kl;function Fg(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}o(Fg,"addBorder");function z2(e){let t=e.padding||[],r=1+(t[Qa]||0)+(t[Ya]||0);return e.border?r+4:r}o(z2,"_minWidth");function Z2(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}o(Z2,"getWindowWidth");function W2(e,t){e=e.trim();let r=Bt.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}o(W2,"alignRight");function K2(e,t){e=e.trim();let r=Bt.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}o(K2,"alignCenter");var Bt;function Vg(e,t){return Bt=t,new Ml({width:(e==null?void 0:e.width)||Z2(),wrap:e==null?void 0:e.wrap})}o(Vg,"cliui");var Hg=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function ql(e){return e.replace(Hg,"")}o(ql,"stripAnsi");function Bg(e,t){let[r,n]=e.match(Hg)||["",""];e=ql(e);let i="";for(let s=0;s<e.length;s++)s!==0&&s%t===0&&(i+=`
78
+ `),i+=e.charAt(s);return r&&n&&(i=`${r}${i}${n}`),i}o(Bg,"wrap");function Dl(e){return Vg(e,{stringWidth:o(t=>[...t].length,"stringWidth"),stripAnsi:ql,wrap:Bg})}o(Dl,"ui");var no=require("path"),Ja=require("fs");function Ll(e,t){let r=(0,no.resolve)(".",e),n;for((0,Ja.statSync)(r).isDirectory()||(r=(0,no.dirname)(r));;){if(n=t(r,(0,Ja.readdirSync)(r)),n)return(0,no.resolve)(r,n);if(r=(0,no.dirname)(n=r),n===r)break}}o(Ll,"default");var oy=require("util"),sy=require("fs"),ay=require("url");var Wg=require("util"),rc=require("path");function ci(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 s=i?i[0].length:0;s<e.length;s++){let a=e.charAt(s);n&&(n=!1,a=a.toUpperCase()),s!==0&&(a==="-"||a==="_")?n=!0:a!=="-"&&a!=="_"&&(r+=a)}return r}}o(ci,"camelCase");function Xa(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),a=e.charAt(i);s!==a&&i>0?n+=`${t}${r.charAt(i)}`:n+=a}return n}o(Xa,"decamelize");function ec(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)}o(ec,"looksLikeNumber");function Ug(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,s=[];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),s[t]||(s[t]=""),s[t]+=n}return s}o(Ug,"tokenizeArgString");var nr;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(nr||(nr={}));var an,Vl=class Vl{constructor(t){an=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=Ug(t),s=typeof t=="string",a=Y2(Object.assign(Object.create(null),n.alias)),c=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),u=Object.assign(Object.create(null),n.default),l=n.configObjects||[],p=n.envPrefix,f=c["populate--"],d=f?"--":"_",h=Object.create(null),y=Object.create(null),b=n.__||an.format,m={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:[]},P=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,$=new RegExp("^--"+c["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(_){let E=typeof _=="object"?_.key:_,R=Object.keys(_).map(function(w){return{boolean:"bools",string:"strings",number:"numbers"}[w]}).filter(Boolean).pop();R&&(m[R][E]=!0),m.arrays[E]=!0,m.keys.push(E)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(_){m.bools[_]=!0,m.keys.push(_)}),[].concat(n.string||[]).filter(Boolean).forEach(function(_){m.strings[_]=!0,m.keys.push(_)}),[].concat(n.number||[]).filter(Boolean).forEach(function(_){m.numbers[_]=!0,m.keys.push(_)}),[].concat(n.count||[]).filter(Boolean).forEach(function(_){m.counts[_]=!0,m.keys.push(_)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(_){m.normalize[_]=!0,m.keys.push(_)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([_,E])=>{typeof E=="number"&&(m.nargs[_]=E,m.keys.push(_))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([_,E])=>{typeof E=="function"&&(m.coercions[_]=E,m.keys.push(_))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(_){m.configs[_]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([_,E])=>{(typeof E=="boolean"||typeof E=="function")&&(m.configs[_]=E)})),Rt(n.key,a,n.default,m.arrays),Object.keys(u).forEach(function(_){(m.aliases[_]||[]).forEach(function(E){u[E]=u[_]})});let T=null;ro();let I=[],C=Object.assign(Object.create(null),{_:[]}),ae={};for(let _=0;_<i.length;_++){let E=i[_],R=E.replace(/^-{3,}/,"---"),w,O,V,k,z,tt;if(E!=="--"&&/^-/.test(E)&&Ce(E))J(E);else if(R.match(/^---+(=|$)/)){J(E);continue}else if(E.match(/^--.+=/)||!c["short-option-groups"]&&E.match(/^-.+=/))k=E.match(/^--?([^=]+)=([\s\S]*)$/),k!==null&&Array.isArray(k)&&k.length>=3&&(re(k[1],m.arrays)?_=xe(_,k[1],i,k[2]):re(k[1],m.nargs)!==!1?_=Be(_,k[1],i,k[2]):X(k[1],k[2],!0));else if(E.match($)&&c["boolean-negation"])k=E.match($),k!==null&&Array.isArray(k)&&k.length>=2&&(O=k[1],X(O,re(O,m.arrays)?[!1]:!1));else if(E.match(/^--.+/)||!c["short-option-groups"]&&E.match(/^-[^-]+/))k=E.match(/^--?(.+)/),k!==null&&Array.isArray(k)&&k.length>=2&&(O=k[1],re(O,m.arrays)?_=xe(_,O,i):re(O,m.nargs)!==!1?_=Be(_,O,i):(z=i[_+1],z!==void 0&&(!z.match(/^-/)||z.match(P))&&!re(O,m.bools)&&!re(O,m.counts)||/^(true|false)$/.test(z)?(X(O,z),_++):X(O,_e(O))));else if(E.match(/^-.\..+=/))k=E.match(/^-([^=]+)=([\s\S]*)$/),k!==null&&Array.isArray(k)&&k.length>=3&&X(k[1],k[2]);else if(E.match(/^-.\..+/)&&!E.match(P))z=i[_+1],k=E.match(/^-(.\..+)/),k!==null&&Array.isArray(k)&&k.length>=2&&(O=k[1],z!==void 0&&!z.match(/^-/)&&!re(O,m.bools)&&!re(O,m.counts)?(X(O,z),_++):X(O,_e(O)));else if(E.match(/^-[^-]+/)&&!E.match(P)){V=E.slice(1,-1).split(""),w=!1;for(let ht=0;ht<V.length;ht++){if(z=E.slice(ht+2),V[ht+1]&&V[ht+1]==="="){tt=E.slice(ht+3),O=V[ht],re(O,m.arrays)?_=xe(_,O,i,tt):re(O,m.nargs)!==!1?_=Be(_,O,i,tt):X(O,tt),w=!0;break}if(z==="-"){X(V[ht],z);continue}if(/[A-Za-z]/.test(V[ht])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(z)&&re(z,m.bools)===!1){X(V[ht],z),w=!0;break}if(V[ht+1]&&V[ht+1].match(/\W/)){X(V[ht],z),w=!0;break}else X(V[ht],_e(V[ht]))}O=E.slice(-1)[0],!w&&O!=="-"&&(re(O,m.arrays)?_=xe(_,O,i):re(O,m.nargs)!==!1?_=Be(_,O,i):(z=i[_+1],z!==void 0&&(!/^(-|--)[^-]/.test(z)||z.match(P))&&!re(O,m.bools)&&!re(O,m.counts)||/^(true|false)$/.test(z)?(X(O,z),_++):X(O,_e(O))))}else if(E.match(/^-[0-9]$/)&&E.match(P)&&re(E.slice(1),m.bools))O=E.slice(1),X(O,_e(O));else if(E==="--"){I=i.slice(_+1);break}else if(c["halt-at-non-option"]){I=i.slice(_);break}else J(E)}ge(C,!0),ge(C,!1),Y(C),ve(),we(C,m.aliases,u,!0),ze(C),c["set-placeholder-key"]&&qr(C),Object.keys(m.counts).forEach(function(_){rr(C,_.split("."))||X(_,0)}),f&&I.length&&(C[d]=[]),I.forEach(function(_){C[d].push(_)}),c["camel-case-expansion"]&&c["strip-dashed"]&&Object.keys(C).filter(_=>_!=="--"&&_.includes("-")).forEach(_=>{delete C[_]}),c["strip-aliased"]&&[].concat(...Object.keys(a).map(_=>a[_])).forEach(_=>{c["camel-case-expansion"]&&_.includes("-")&&delete C[_.split(".").map(E=>ci(E)).join(".")],delete C[_]});function J(_){let E=D("_",_);(typeof E=="string"||typeof E=="number")&&C._.push(E)}o(J,"pushPositional");function Be(_,E,R,w){let O,V=re(E,m.nargs);if(V=typeof V!="number"||isNaN(V)?1:V,V===0)return jt(w)||(T=Error(b("Argument unexpected for: %s",E))),X(E,_e(E)),_;let k=jt(w)?0:1;if(c["nargs-eats-options"])R.length-(_+1)+k<V&&(T=Error(b("Not enough arguments following: %s",E))),k=V;else{for(O=_+1;O<R.length&&(!R[O].match(/^-[^0-9]/)||R[O].match(P)||Ce(R[O]));O++)k++;k<V&&(T=Error(b("Not enough arguments following: %s",E)))}let z=Math.min(k,V);for(!jt(w)&&z>0&&(X(E,w),z--),O=_+1;O<z+_+1;O++)X(E,R[O]);return _+z}o(Be,"eatNargs");function xe(_,E,R,w){let O=[],V=w||R[_+1],k=re(E,m.nargs);if(re(E,m.bools)&&!/^(true|false)$/.test(V))O.push(!0);else if(jt(V)||jt(w)&&/^-/.test(V)&&!P.test(V)&&!Ce(V)){if(u[E]!==void 0){let z=u[E];O=Array.isArray(z)?z:[z]}}else{jt(w)||O.push(N(E,w,!0));for(let z=_+1;z<R.length&&!(!c["greedy-arrays"]&&O.length>0||k&&typeof k=="number"&&O.length>=k||(V=R[z],/^-/.test(V)&&!P.test(V)&&!Ce(V)));z++)_=z,O.push(N(E,V,s))}return typeof k=="number"&&(k&&O.length<k||isNaN(k)&&O.length===0)&&(T=Error(b("Not enough arguments following: %s",E))),X(E,O),_}o(xe,"eatArray");function X(_,E,R=s){if(/-/.test(_)&&c["camel-case-expansion"]){let V=_.split(".").map(function(k){return ci(k)}).join(".");M(_,V)}let w=N(_,E,R),O=_.split(".");K(C,O,w),m.aliases[_]&&m.aliases[_].forEach(function(V){let k=V.split(".");K(C,k,w)}),O.length>1&&c["dot-notation"]&&(m.aliases[O[0]]||[]).forEach(function(V){let k=V.split("."),z=[].concat(O);z.shift(),k=k.concat(z),(m.aliases[_]||[]).includes(k.join("."))||K(C,k,w)}),re(_,m.normalize)&&!re(_,m.arrays)&&[_].concat(m.aliases[_]||[]).forEach(function(k){Object.defineProperty(ae,k,{enumerable:!0,get(){return E},set(z){E=typeof z=="string"?an.normalize(z):z}})})}o(X,"setArg");function M(_,E){m.aliases[_]&&m.aliases[_].length||(m.aliases[_]=[E],h[E]=!0),m.aliases[E]&&m.aliases[E].length||M(E,_)}o(M,"addNewAlias");function N(_,E,R){R&&(E=Q2(E)),(re(_,m.bools)||re(_,m.counts))&&typeof E=="string"&&(E=E==="true");let w=Array.isArray(E)?E.map(function(O){return D(_,O)}):D(_,E);return re(_,m.counts)&&(jt(w)||typeof w=="boolean")&&(w=Fl()),re(_,m.normalize)&&re(_,m.arrays)&&(Array.isArray(E)?w=E.map(O=>an.normalize(O)):w=an.normalize(E)),w}o(N,"processValue");function D(_,E){return!c["parse-positional-numbers"]&&_==="_"||!re(_,m.strings)&&!re(_,m.bools)&&!Array.isArray(E)&&(ec(E)&&c["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${E}`)))||!jt(E)&&re(_,m.numbers))&&(E=Number(E)),E}o(D,"maybeCoerceNumber");function Y(_){let E=Object.create(null);we(E,m.aliases,u),Object.keys(m.configs).forEach(function(R){let w=_[R]||E[R];if(w)try{let O=null,V=an.resolve(an.cwd(),w),k=m.configs[R];if(typeof k=="function"){try{O=k(V)}catch(z){O=z}if(O instanceof Error){T=O;return}}else O=an.require(V);ue(O)}catch(O){O.name==="PermissionDenied"?T=O:_[R]&&(T=Error(b("Invalid JSON config file: %s",w)))}})}o(Y,"setConfig");function ue(_,E){Object.keys(_).forEach(function(R){let w=_[R],O=E?E+"."+R:R;typeof w=="object"&&w!==null&&!Array.isArray(w)&&c["dot-notation"]?ue(w,O):(!rr(C,O.split("."))||re(O,m.arrays)&&c["combine-arrays"])&&X(O,w)})}o(ue,"setConfigObject");function ve(){typeof l<"u"&&l.forEach(function(_){ue(_)})}o(ve,"setConfigObjects");function ge(_,E){if(typeof p>"u")return;let R=typeof p=="string"?p:"",w=an.env();Object.keys(w).forEach(function(O){if(R===""||O.lastIndexOf(R,0)===0){let V=O.split("__").map(function(k,z){return z===0&&(k=k.substring(R.length)),ci(k)});(E&&m.configs[V.join(".")]||!E)&&!rr(_,V)&&X(V.join("."),w[O])}})}o(ge,"applyEnvVars");function ze(_){let E,R=new Set;Object.keys(_).forEach(function(w){if(!R.has(w)&&(E=re(w,m.coercions),typeof E=="function"))try{let O=D(w,E(_[w]));[].concat(m.aliases[w]||[],w).forEach(V=>{R.add(V),_[V]=O})}catch(O){T=O}})}o(ze,"applyCoercions");function qr(_){return m.keys.forEach(E=>{~E.indexOf(".")||typeof _[E]>"u"&&(_[E]=void 0)}),_}o(qr,"setPlaceholderKeys");function we(_,E,R,w=!1){Object.keys(R).forEach(function(O){rr(_,O.split("."))||(K(_,O.split("."),R[O]),w&&(y[O]=!0),(E[O]||[]).forEach(function(V){rr(_,V.split("."))||K(_,V.split("."),R[O])}))})}o(we,"applyDefaultsAndAliases");function rr(_,E){let R=_;c["dot-notation"]||(E=[E.join(".")]),E.slice(0,-1).forEach(function(O){R=R[O]||{}});let w=E[E.length-1];return typeof R!="object"?!1:w in R}o(rr,"hasKey");function K(_,E,R){let w=_;c["dot-notation"]||(E=[E.join(".")]),E.slice(0,-1).forEach(function(tt){tt=Gg(tt),typeof w=="object"&&w[tt]===void 0&&(w[tt]={}),typeof w[tt]!="object"||Array.isArray(w[tt])?(Array.isArray(w[tt])?w[tt].push({}):w[tt]=[w[tt],{}],w=w[tt][w[tt].length-1]):w=w[tt]});let O=Gg(E[E.length-1]),V=re(E.join("."),m.arrays),k=Array.isArray(R),z=c["duplicate-arguments-array"];!z&&re(O,m.nargs)&&(z=!0,(!jt(w[O])&&m.nargs[O]===1||Array.isArray(w[O])&&w[O].length===m.nargs[O])&&(w[O]=void 0)),R===Fl()?w[O]=Fl(w[O]):Array.isArray(w[O])?z&&V&&k?w[O]=c["flatten-duplicate-arrays"]?w[O].concat(R):(Array.isArray(w[O][0])?w[O]:[w[O]]).concat([R]):!z&&!!V==!!k?w[O]=R:w[O]=w[O].concat([R]):w[O]===void 0&&V?w[O]=k?R:[R]:z&&!(w[O]===void 0||re(O,m.counts)||re(O,m.bools))?w[O]=[w[O],R]:w[O]=R}o(K,"setKey");function Rt(..._){_.forEach(function(E){Object.keys(E||{}).forEach(function(R){m.aliases[R]||(m.aliases[R]=[].concat(a[R]||[]),m.aliases[R].concat(R).forEach(function(w){if(/-/.test(w)&&c["camel-case-expansion"]){let O=ci(w);O!==R&&m.aliases[R].indexOf(O)===-1&&(m.aliases[R].push(O),h[O]=!0)}}),m.aliases[R].concat(R).forEach(function(w){if(w.length>1&&/[A-Z]/.test(w)&&c["camel-case-expansion"]){let O=Xa(w,"-");O!==R&&m.aliases[R].indexOf(O)===-1&&(m.aliases[R].push(O),h[O]=!0)}}),m.aliases[R].forEach(function(w){m.aliases[w]=[R].concat(m.aliases[R].filter(function(O){return w!==O}))}))})})}o(Rt,"extendAliases");function re(_,E){let R=[].concat(m.aliases[_]||[],_),w=Object.keys(E),O=R.find(V=>w.includes(V));return O?E[O]:!1}o(re,"checkAllAliases");function Ie(_){let E=Object.keys(m);return[].concat(E.map(w=>m[w])).some(function(w){return Array.isArray(w)?w.includes(_):w[_]})}o(Ie,"hasAnyFlag");function ee(_,...E){return[].concat(...E).some(function(w){let O=_.match(w);return O&&Ie(O[1])})}o(ee,"hasFlagsMatching");function Ae(_){if(_.match(P)||!_.match(/^-[^-]+/))return!1;let E=!0,R,w=_.slice(1).split("");for(let O=0;O<w.length;O++){if(R=_.slice(O+2),!Ie(w[O])){E=!1;break}if(w[O+1]&&w[O+1]==="="||R==="-"||/[A-Za-z]/.test(w[O])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(R)||w[O+1]&&w[O+1].match(/\W/))break}return E}o(Ae,"hasAllShortFlags");function Ce(_){return c["unknown-options-as-args"]&&pe(_)}o(Ce,"isUnknownOptionAsArg");function pe(_){return _=_.replace(/^-{3,}/,"--"),_.match(P)||Ae(_)?!1:!ee(_,/^-+([^=]+?)=[\s\S]*$/,$,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}o(pe,"isUnknownOption");function _e(_){return!re(_,m.bools)&&!re(_,m.counts)&&`${_}`in u?u[_]:qe(ut(_))}o(_e,"defaultValue");function qe(_){return{[nr.BOOLEAN]:!0,[nr.STRING]:"",[nr.NUMBER]:void 0,[nr.ARRAY]:[]}[_]}o(qe,"defaultForType");function ut(_){let E=nr.BOOLEAN;return re(_,m.strings)?E=nr.STRING:re(_,m.numbers)?E=nr.NUMBER:re(_,m.bools)?E=nr.BOOLEAN:re(_,m.arrays)&&(E=nr.ARRAY),E}o(ut,"guessType");function jt(_){return _===void 0}o(jt,"isUndefined");function ro(){Object.keys(m.counts).find(_=>re(_,m.arrays)?(T=Error(b("Invalid configuration: %s, opts.count excludes opts.array.",_)),!0):re(_,m.nargs)?(T=Error(b("Invalid configuration: %s, opts.count excludes opts.narg.",_)),!0):!1)}return o(ro,"checkConfiguration"),{aliases:Object.assign({},m.aliases),argv:Object.assign(ae,C),configuration:c,defaulted:Object.assign({},y),error:T,newAliases:Object.assign({},h)}}};o(Vl,"YargsParser");var tc=Vl;function Y2(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 s=i+1;s<t.length;s++)if(t[i].filter(function(c){return t[s].indexOf(c)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(a,c,u){return u.indexOf(a)===c});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}o(Y2,"combineAliases");function Fl(e){return e!==void 0?e+1:1}o(Fl,"increment");function Gg(e){return e==="__proto__"?"___proto___":e}o(Gg,"sanitizeKey");function Q2(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}o(Q2,"stripQuotes");var Kg=require("fs");var Hl,Bl,Ul,zg=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,Zg=(Bl=(Hl=process==null?void 0:process.versions)===null||Hl===void 0?void 0:Hl.node)!==null&&Bl!==void 0?Bl:(Ul=process==null?void 0:process.version)===null||Ul===void 0?void 0:Ul.slice(1);if(Zg&&Number(Zg.match(/^([^.]+)/)[1])<zg)throw Error(`yargs parser supports a minimum Node.js version of ${zg}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var J2=process?process.env:{},Yg=new tc({cwd:process.cwd,env:o(()=>J2,"env"),format:Wg.format,normalize:rc.normalize,resolve:rc.resolve,require:o(e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,Kg.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")},"require")}),ms=o(function(t,r){return Yg.parse(t.slice(),r).argv},"Parser");ms.detailed=function(e,t){return Yg.parse(e.slice(),t)};ms.camelCase=ci;ms.decamelize=Xa;ms.looksLikeNumber=ec;var Gl=ms;var Sr=require("path");function Qg(){return X2()?0:1}o(Qg,"getProcessArgvBinIndex");function X2(){return e$()&&!process.defaultApp}o(X2,"isBundledElectronApp");function e$(){return!!process.versions.electron}o(e$,"isElectronApp");function zl(e){return e.slice(Qg()+1)}o(zl,"hideBin");function Jg(){return process.argv[Qg()]}o(Jg,"getProcessArgvBin");var nc=class nc extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,nc)}};o(nc,"YError");var Ne=nc;var io=require("fs"),Xg=require("util"),ey=require("path");var ty={fs:{readFileSync:io.readFileSync,writeFile:io.writeFile},format:Xg.format,resolve:ey.resolve,exists:o(e=>{try{return(0,io.statSync)(e).isFile()}catch{return!1}},"exists")};var _r,Wl=class Wl{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=o(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(),_r.format.apply(_r.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(),s=o(function(){},"cb");typeof t[t.length-1]=="function"&&(s=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:s})):s();let c=[a];return~a.indexOf("%d")&&c.push(i),_r.format.apply(_r.format,c.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,s){let a=r[s+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,s=r.cb,a=this._resolveLocaleFile(n,i),c=JSON.stringify(this.cache[i],null,2);_r.fs.writeFile(a,c,"utf-8",function(u){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),s(u)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{_r.fs.readFileSync&&(t=JSON.parse(_r.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=_r.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=_r.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return _r.exists(t)}};o(Wl,"Y18N");var Zl=Wl;function ry(e,t){_r=t;let r=new Zl(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}}o(ry,"y18n");var t$=o(e=>ry(e,ty),"y18n"),ny=t$;var i$={};var r$="require is not supported by ESM",iy="loading a directory of commands is not supported yet for ESM",gs;try{gs=(0,ay.fileURLToPath)(i$.url)}catch{gs=process.cwd()}var n$=gs.substring(0,gs.lastIndexOf("node_modules")),Kl={assert:{notStrictEqual:ic.notStrictEqual,strictEqual:ic.strictEqual},cliui:Dl,findUp:Ll,getEnv:o(e=>process.env[e],"getEnv"),inspect:oy.inspect,getCallerFile:o(()=>{throw new Ne(iy)},"getCallerFile"),getProcessArgvBin:Jg,mainFilename:n$||process.cwd(),Parser:Gl,path:{basename:Sr.basename,dirname:Sr.dirname,extname:Sr.extname,relative:Sr.relative,resolve:Sr.resolve},process:{argv:o(()=>process.argv,"argv"),cwd:process.cwd,emitWarning:o((e,t)=>process.emitWarning(e,t),"emitWarning"),execPath:o(()=>process.execPath,"execPath"),exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:sy.readFileSync,require:o(()=>{throw new Ne(r$)},"require"),requireDirectory:o(()=>{throw new Ne(iy)},"requireDirectory"),stringWidth:o(e=>[...e].length,"stringWidth"),y18n:ny({directory:(0,Sr.resolve)(gs,"../../../locales"),updateFiles:!1})};function $t(e,t,r,n){r.assert.notStrictEqual(e,t,n)}o($t,"assertNotStrictEqual");function Yl(e,t){t.assert.strictEqual(typeof e,"string")}o(Yl,"assertSingleKey");function oo(e){return Object.keys(e)}o(oo,"objectKeys");function Re(e){return!!e&&!!e.then&&typeof e.then=="function"}o(Re,"isPromise");function Sn(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 s={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((a,c)=>{let u=!1;a=a.replace(/\s/g,""),/\.+[\]>]/.test(a)&&c===r.length-1&&(u=!0),/^\[/.test(a)?s.optional.push({cmd:a.replace(n,"").split("|"),variadic:u}):s.demanded.push({cmd:a.replace(n,"").split("|"),variadic:u})}),s}o(Sn,"parseCommand");var o$=["first","second","third","fourth","fifth","sixth"];function F(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[Sn(`cmd ${e}`),t,r]}o(n,"parseArgs");try{let i=0,[s,a,c]=n(),u=[].slice.call(a);for(;u.length&&u[u.length-1]===void 0;)u.pop();let l=c||u.length;if(l<s.demanded.length)throw new Ne(`Not enough arguments provided. Expected ${s.demanded.length} but received ${u.length}.`);let p=s.demanded.length+s.optional.length;if(l>p)throw new Ne(`Too many arguments provided. Expected max ${p} but received ${l}.`);s.demanded.forEach(f=>{let d=u.shift(),h=cy(d);f.cmd.filter(b=>b===h||b==="*").length===0&&uy(h,f.cmd,i),i+=1}),s.optional.forEach(f=>{if(u.length===0)return;let d=u.shift(),h=cy(d);f.cmd.filter(b=>b===h||b==="*").length===0&&uy(h,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}o(F,"argsert");function cy(e){return Array.isArray(e)?"array":e===null?"null":typeof e}o(cy,"guessType");function uy(e,t,r){throw new Ne(`Invalid ${o$[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}o(uy,"argumentTypeError");var Ql=class Ql{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 s=0;s<t.length;s++){if(typeof t[s]!="function")throw Error("middleware must be a function");let a=t[s];a.applyBeforeValidation=r,a.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let s=t;s.applyBeforeValidation=r,s.global=n,s.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 s=[...n[r]||[],r];return i.option?!s.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)}};o(Ql,"GlobalMiddleware");var oc=Ql;function ly(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}o(ly,"commandMiddlewareFactory");function ui(e,t,r,n){return r.reduce((i,s)=>{if(s.applyBeforeValidation!==n)return i;if(s.mutates){if(s.applied)return i;s.applied=!0}if(Re(i))return i.then(a=>Promise.all([a,s(a,t)])).then(([a,c])=>Object.assign(a,c));{let a=s(i,t);return Re(a)?a.then(c=>Object.assign(i,c)):Object.assign(i,a)}},e)}o(ui,"applyMiddleware");function li(e,t,r=n=>{throw n}){try{let n=s$(e)?e():e;return Re(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}o(li,"maybeAsyncResult");function s$(e){return typeof e=="function"}o(s$,"isFunction");function Jl(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}o(Jl,"whichModule");var so=/(^\*)|(^\$0)/,ef=class ef{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 s=typeof i.visit=="function"?i.visit:a=>a;i.visit=(a,c,u)=>{let l=s(a,c,u);if(l){if(this.requireCache.has(c))return l;this.requireCache.add(c),this.addHandler(l)}return l},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,s,a){let c=[],u=ly(s);if(i=i||(()=>{}),Array.isArray(t))if(a$(t))[t,...c]=t;else for(let l of t)this.addHandler(l);else if(u$(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(fy(n)){this.addHandler([t].concat(c),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=Sn(t);c=c.map(d=>Sn(d).cmd);let p=!1,f=[l.cmd].concat(c).filter(d=>so.test(d)?(p=!0,!1):!0);f.length===0&&p&&f.push("$0"),p&&(l.cmd=f[0],c=f.slice(1),t=t.replace(so,l.cmd)),c.forEach(d=>{this.aliasMap[d]=l.cmd}),r!==!1&&this.usage.command(t,r,p,c,a),this.handlers[l.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:u,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,s,a){let c=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,u=r.getInternalMethods().getContext(),l=u.commands.slice(),p=!t;t&&(u.commands.push(t),u.fullCommands.push(c.original));let f=this.applyBuilderUpdateUsageAndParse(p,c,r,n.aliases,l,i,s,a);return Re(f)?f.then(d=>this.applyMiddlewareAndGetResult(p,c,d.innerArgv,u,s,d.aliases,r)):this.applyMiddlewareAndGetResult(p,c,f.innerArgv,u,s,f.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,s,a,c,u){let l=r.builder,p=n;if(sc(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),u);if(Re(f))return f.then(d=>(p=dy(d)?d:n,this.parseAndUpdateUsage(t,r,p,s,a,c)))}else c$(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,s,a,c)}parseAndUpdateUsage(t,r,n,i,s,a){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let c=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,a);return Re(c)?c.then(u=>({aliases:n.parsed.aliases,innerArgv:u})):{aliases:n.parsed.aliases,innerArgv:c}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=so.test(r.original)?r.original.replace(so,"").trim():r.original,i=t.filter(s=>!so.test(s));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,s,a,c,u){if(!a.getInternalMethods().getHasOutput()){let l=a.getInternalMethods().runValidation(s,u,a.parsed.error,t);n=li(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=ui(n,a,c,!1),n=li(n,p=>{let f=r.handler(p);return Re(f)?f.then(()=>p):p}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),Re(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,s,a,c){let u={};if(s)return n;c.getInternalMethods().getHasOutput()||(u=this.populatePositionals(r,n,i,c));let l=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),p=ui(n,c,l,!0);return Re(p)?p.then(f=>this.handleValidationAndGetResult(t,r,f,i,a,c,l,u)):this.handleValidationAndGetResult(t,r,p,i,a,c,l,u)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let s=t.demanded.slice(0),a=t.optional.slice(0),c={};for(this.validation.positionalCount(s.length,r._.length);s.length;){let u=s.shift();this.populatePositional(u,r,c)}for(;a.length;){let u=a.shift();this.populatePositional(u,r,c)}return r._=n.commands.concat(r._.map(u=>""+u)),this.postProcessPositionals(r,c,this.cmdToParseOptions(t.original),i),c}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=Sn(t);return n.demanded.forEach(i=>{let[s,...a]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=a,r.demand[s]=!0}),n.optional.forEach(i=>{let[s,...a]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=a}),r}postProcessPositionals(t,r,n,i){let s=Object.assign({},i.getOptions());s.default=Object.assign(n.default,s.default);for(let l of Object.keys(n.alias))s.alias[l]=(s.alias[l]||[]).concat(n.alias[l]);s.array=s.array.concat(n.array),s.config={};let a=[];if(Object.keys(r).forEach(l=>{r[l].map(p=>{s.configuration["unknown-options-as-args"]&&(s.key[l]=!0),a.push(`--${l}`),a.push(p)})}),!a.length)return;let c=Object.assign({},s.configuration,{"populate--":!1}),u=this.shim.Parser.detailed(a,Object.assign({},s,{configuration:c}));if(u.error)i.getInternalMethods().getUsageInstance().fail(u.error.message,u.error);else{let l=Object.keys(r);Object.keys(r).forEach(p=>{l.push(...u.aliases[p])}),Object.keys(u.argv).forEach(p=>{l.includes(p)&&(r[p]||(r[p]=u.argv[p]),!this.isInConfigs(i,p)&&!this.isDefaulted(i,p)&&Object.prototype.hasOwnProperty.call(t,p)&&Object.prototype.hasOwnProperty.call(u.argv,p)&&(Array.isArray(t[p])||Array.isArray(u.argv[p]))?t[p]=[].concat(t[p],u.argv[p]):t[p]=u.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=so.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(sc(r))return r(t,!0);fy(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=Jl(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;$t(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();$t(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}};o(ef,"CommandInstance");var Xl=ef;function py(e,t,r,n){return new Xl(e,t,r,n)}o(py,"command");function fy(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}o(fy,"isCommandBuilderDefinition");function a$(e){return e.every(t=>typeof t=="string")}o(a$,"isCommandAndAliases");function sc(e){return typeof e=="function"}o(sc,"isCommandBuilderCallback");function c$(e){return typeof e=="object"}o(c$,"isCommandBuilderOptionDefinitions");function u$(e){return typeof e=="object"&&!Array.isArray(e)}o(u$,"isCommandHandlerDefinition");function On(e={},t=()=>!0){let r={};return oo(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}o(On,"objFilter");function En(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)})}o(En,"setBlocking");function l$(e){return typeof e=="boolean"}o(l$,"isBoolean");function my(e,t){let r=t.y18n.__,n={},i=[];n.failFn=o(function(N){i.push(N)},"failFn");let s=null,a=null,c=!0;n.showHelpOnFail=o(function(N=!0,D){let[Y,ue]=typeof N=="string"?[!0,N]:[N,D];return e.getInternalMethods().isGlobalContext()&&(a=ue),s=ue,c=Y,n},"showHelpOnFailFn");let u=!1;n.fail=o(function(N,D){let Y=e.getInternalMethods().getLoggerInstance();if(i.length)for(let ue=i.length-1;ue>=0;--ue){let ve=i[ue];if(l$(ve)){if(D)throw D;if(N)throw Error(N)}else ve(N,D,n)}else{if(e.getExitProcess()&&En(!0),!u){u=!0,c&&(e.showHelp("error"),Y.error()),(N||D)&&Y.error(N||D);let ue=s||a;ue&&((N||D)&&Y.error(""),Y.error(ue))}if(D=D||new Ne(N),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,D);throw D}},"fail");let l=[],p=!1;n.usage=(M,N)=>M===null?(p=!0,l=[],n):(p=!1,l.push([M,N||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>p,n.getPositionalGroupName=()=>r("Positionals:");let f=[];n.example=(M,N)=>{f.push([M,N||""])};let d=[];n.command=o(function(N,D,Y,ue,ve=!1){Y&&(d=d.map(ge=>(ge[2]=!1,ge))),d.push([N,D||"",Y,ue,ve])},"command"),n.getCommands=()=>d;let h={};n.describe=o(function(N,D){Array.isArray(N)?N.forEach(Y=>{n.describe(Y,D)}):typeof N=="object"?Object.keys(N).forEach(Y=>{n.describe(Y,N[Y])}):h[N]=D},"describe"),n.getDescriptions=()=>h;let y=[];n.epilog=M=>{y.push(M)};let b=!1,m;n.wrap=M=>{b=!0,m=M},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(b||(m=Be(),b=!0),m);let P="__yargsString__:";n.deferY18nLookup=M=>P+M,n.help=o(function(){if(I)return I;T();let N=e.customScriptName?e.$0:t.path.basename(e.$0),D=e.getDemandedOptions(),Y=e.getDemandedCommands(),ue=e.getDeprecatedOptions(),ve=e.getGroups(),ge=e.getOptions(),ze=[];ze=ze.concat(Object.keys(h)),ze=ze.concat(Object.keys(D)),ze=ze.concat(Object.keys(Y)),ze=ze.concat(Object.keys(ge.default)),ze=ze.filter(ae),ze=Object.keys(ze.reduce((ee,Ae)=>(Ae!=="_"&&(ee[Ae]=!0),ee),{}));let qr=n.getWrap(),we=t.cliui({width:qr,wrap:!!qr});if(!p){if(l.length)l.forEach(ee=>{we.div({text:`${ee[0].replace(/\$0/g,N)}`}),ee[1]&&we.div({text:`${ee[1]}`,padding:[1,0,0,0]})}),we.div();else if(d.length){let ee=null;Y._?ee=`${N} <${r("command")}>
79
+ `:ee=`${N} [${r("command")}]
80
+ `,we.div(`${ee}`)}}if(d.length>1||d.length===1&&!d[0][2]){we.div(r("Commands:"));let ee=e.getInternalMethods().getContext(),Ae=ee.commands.length?`${ee.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(d=d.sort((pe,_e)=>pe[0].localeCompare(_e[0])));let Ce=N?`${N} `:"";d.forEach(pe=>{let _e=`${Ce}${Ae}${pe[0].replace(/^\$0 ?/,"")}`;we.span({text:_e,padding:[0,2,0,2],width:$(d,qr,`${N}${Ae}`)+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?we.div({text:qe.join(" "),padding:[0,0,0,2],align:"right"}):we.div()}),we.div()}let rr=(Object.keys(ge.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);ze=ze.filter(ee=>!e.parsed.newAliases[ee]&&rr.every(Ae=>(ge.alias[Ae]||[]).indexOf(ee)===-1));let K=r("Options:");ve[K]||(ve[K]=[]),C(ze,ge.alias,ve,K);let Rt=o(ee=>/^--/.test(ac(ee)),"isLongSwitch"),re=Object.keys(ve).filter(ee=>ve[ee].length>0).map(ee=>{let Ae=ve[ee].filter(ae).map(Ce=>{if(rr.includes(Ce))return Ce;for(let pe=0,_e;(_e=rr[pe])!==void 0;pe++)if((ge.alias[_e]||[]).includes(Ce))return _e;return Ce});return{groupName:ee,normalizedKeys:Ae}}).filter(({normalizedKeys:ee})=>ee.length>0).map(({groupName:ee,normalizedKeys:Ae})=>{let Ce=Ae.reduce((pe,_e)=>(pe[_e]=[_e].concat(ge.alias[_e]||[]).map(qe=>ee===n.getPositionalGroupName()?qe:(/^[0-9]$/.test(qe)?ge.boolean.includes(_e)?"-":"--":qe.length>1?"--":"-")+qe).sort((qe,ut)=>Rt(qe)===Rt(ut)?0:Rt(qe)?1:-1).join(", "),pe),{});return{groupName:ee,normalizedKeys:Ae,switches:Ce}});if(re.filter(({groupName:ee})=>ee!==n.getPositionalGroupName()).some(({normalizedKeys:ee,switches:Ae})=>!ee.every(Ce=>Rt(Ae[Ce])))&&re.filter(({groupName:ee})=>ee!==n.getPositionalGroupName()).forEach(({normalizedKeys:ee,switches:Ae})=>{ee.forEach(Ce=>{Rt(Ae[Ce])&&(Ae[Ce]=f$(Ae[Ce],4))})}),re.forEach(({groupName:ee,normalizedKeys:Ae,switches:Ce})=>{we.div(ee),Ae.forEach(pe=>{let _e=Ce[pe],qe=h[pe]||"",ut=null;qe.includes(P)&&(qe=r(qe.substring(P.length))),ge.boolean.includes(pe)&&(ut=`[${r("boolean")}]`),ge.count.includes(pe)&&(ut=`[${r("count")}]`),ge.string.includes(pe)&&(ut=`[${r("string")}]`),ge.normalize.includes(pe)&&(ut=`[${r("string")}]`),ge.array.includes(pe)&&(ut=`[${r("array")}]`),ge.number.includes(pe)&&(ut=`[${r("number")}]`);let jt=o(E=>typeof E=="string"?`[${r("deprecated: %s",E)}]`:`[${r("deprecated")}]`,"deprecatedExtra"),ro=[pe in ue?jt(ue[pe]):null,ut,pe in D?`[${r("required")}]`:null,ge.choices&&ge.choices[pe]?`[${r("choices:")} ${n.stringifiedValues(ge.choices[pe])}]`:null,J(ge.default[pe],ge.defaultDescription[pe])].filter(Boolean).join(" ");we.span({text:ac(_e),padding:[0,2,0,2+hy(_e)],width:$(Ce,qr)+4},qe);let _=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;ro&&!_?we.div({text:ro,padding:[0,0,0,2],align:"right"}):we.div()}),we.div()}),f.length&&(we.div(r("Examples:")),f.forEach(ee=>{ee[0]=ee[0].replace(/\$0/g,N)}),f.forEach(ee=>{ee[1]===""?we.div({text:ee[0],padding:[0,2,0,2]}):we.div({text:ee[0],padding:[0,2,0,2],width:$(f,qr)+4},{text:ee[1]})}),we.div()),y.length>0){let ee=y.map(Ae=>Ae.replace(/\$0/g,N)).join(`
81
81
  `);we.div(`${ee}
82
- `)}return we.toString().replace(/\s*$/,"")},"help");function $(M,R,D){let Y=0;return Array.isArray(M)||(M=Object.values(M).map(ue=>[ue])),M.forEach(ue=>{Y=Math.max(t.stringWidth(D?`${D} ${ic(ue[0])}`:ic(ue[0]))+ly(ue[0]),Y)}),R&&(Y=Math.min(Y,parseInt((R*.5).toString(),10))),Y}o($,"maxWidth");function T(){let M=e.getDemandedOptions(),R=e.getOptions();(Object.keys(R.alias)||[]).forEach(D=>{R.alias[D].forEach(Y=>{h[Y]&&n.describe(D,h[Y]),Y in M&&e.demandOption(D,M[Y]),R.boolean.includes(Y)&&e.boolean(D),R.count.includes(Y)&&e.count(D),R.string.includes(Y)&&e.string(D),R.normalize.includes(Y)&&e.normalize(D),R.array.includes(Y)&&e.array(D),R.number.includes(Y)&&e.number(D)})})}o(T,"normalizeAliases");let I;n.cacheHelpMessage=function(){I=this.help()},n.clearCachedHelpMessage=function(){I=void 0},n.hasCachedHelpMessage=function(){return!!I};function C(M,R,D,Y){let ue=[],ve=null;return Object.keys(D).forEach(ge=>{ue=ue.concat(D[ge])}),M.forEach(ge=>{ve=[ge].concat(R[ge]),ve.some(ze=>ue.indexOf(ze)!==-1)||D[Y].push(ge)}),ue}o(C,"addUngroupedKeys");function ae(M){return e.getOptions().hiddenOptions.indexOf(M)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}o(ae,"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=o(function(R,D){let Y="",ue=D||", ",ve=[].concat(R);return!R||!ve.length||ve.forEach(ge=>{Y.length&&(Y+=ue),Y+=JSON.stringify(ge)}),Y},"stringifiedValues");function J(M,R){let D=`[${r("default:")} `;if(M===void 0&&!R)return null;if(R)D+=R;else switch(typeof M){case"string":D+=`"${M}"`;break;case"object":D+=JSON.stringify(M);break;default:D+=M}return`${D}]`}o(J,"defaultString");function Be(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}o(Be,"windowWidth");let xe=null;n.version=M=>{xe=M},n.showVersion=M=>{let R=e.getInternalMethods().getLoggerInstance();M||(M="error"),(typeof M=="function"?M:R[M])(xe)},n.reset=o(function(R){return s=null,u=!1,l=[],p=!1,y=[],f=[],d=[],h=Sn(h,D=>!R[D]),n},"reset");let X=[];return n.freeze=o(function(){X.push({failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h})},"freeze"),n.unfreeze=o(function(R=!1){let D=X.pop();D&&(R?(h={...D.descriptions,...h},d=[...D.commands,...d],l=[...D.usages,...l],f=[...D.examples,...f],y=[...D.epilogs,...y]):{failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h}=D)},"unfreeze"),n}o(fy,"usage");function Ql(e){return typeof e=="object"}o(Ql,"isIndentedText");function i$(e,t){return Ql(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}o(i$,"addIndentation");function ly(e){return Ql(e)?e.indentation:0}o(ly,"getIndentation");function ic(e){return Ql(e)?e.text:e}o(ic,"getText");var py=`###-begin-{{app_name}}-completions-###
82
+ `)}return we.toString().replace(/\s*$/,"")},"help");function $(M,N,D){let Y=0;return Array.isArray(M)||(M=Object.values(M).map(ue=>[ue])),M.forEach(ue=>{Y=Math.max(t.stringWidth(D?`${D} ${ac(ue[0])}`:ac(ue[0]))+hy(ue[0]),Y)}),N&&(Y=Math.min(Y,parseInt((N*.5).toString(),10))),Y}o($,"maxWidth");function T(){let M=e.getDemandedOptions(),N=e.getOptions();(Object.keys(N.alias)||[]).forEach(D=>{N.alias[D].forEach(Y=>{h[Y]&&n.describe(D,h[Y]),Y in M&&e.demandOption(D,M[Y]),N.boolean.includes(Y)&&e.boolean(D),N.count.includes(Y)&&e.count(D),N.string.includes(Y)&&e.string(D),N.normalize.includes(Y)&&e.normalize(D),N.array.includes(Y)&&e.array(D),N.number.includes(Y)&&e.number(D)})})}o(T,"normalizeAliases");let I;n.cacheHelpMessage=function(){I=this.help()},n.clearCachedHelpMessage=function(){I=void 0},n.hasCachedHelpMessage=function(){return!!I};function C(M,N,D,Y){let ue=[],ve=null;return Object.keys(D).forEach(ge=>{ue=ue.concat(D[ge])}),M.forEach(ge=>{ve=[ge].concat(N[ge]),ve.some(ze=>ue.indexOf(ze)!==-1)||D[Y].push(ge)}),ue}o(C,"addUngroupedKeys");function ae(M){return e.getOptions().hiddenOptions.indexOf(M)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}o(ae,"filterHiddenOptions"),n.showHelp=M=>{let N=e.getInternalMethods().getLoggerInstance();M||(M="error"),(typeof M=="function"?M:N[M])(n.help())},n.functionDescription=M=>["(",M.name?t.Parser.decamelize(M.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=o(function(N,D){let Y="",ue=D||", ",ve=[].concat(N);return!N||!ve.length||ve.forEach(ge=>{Y.length&&(Y+=ue),Y+=JSON.stringify(ge)}),Y},"stringifiedValues");function J(M,N){let D=`[${r("default:")} `;if(M===void 0&&!N)return null;if(N)D+=N;else switch(typeof M){case"string":D+=`"${M}"`;break;case"object":D+=JSON.stringify(M);break;default:D+=M}return`${D}]`}o(J,"defaultString");function Be(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}o(Be,"windowWidth");let xe=null;n.version=M=>{xe=M},n.showVersion=M=>{let N=e.getInternalMethods().getLoggerInstance();M||(M="error"),(typeof M=="function"?M:N[M])(xe)},n.reset=o(function(N){return s=null,u=!1,l=[],p=!1,y=[],f=[],d=[],h=On(h,D=>!N[D]),n},"reset");let X=[];return n.freeze=o(function(){X.push({failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h})},"freeze"),n.unfreeze=o(function(N=!1){let D=X.pop();D&&(N?(h={...D.descriptions,...h},d=[...D.commands,...d],l=[...D.usages,...l],f=[...D.examples,...f],y=[...D.epilogs,...y]):{failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h}=D)},"unfreeze"),n}o(my,"usage");function tf(e){return typeof e=="object"}o(tf,"isIndentedText");function f$(e,t){return tf(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}o(f$,"addIndentation");function hy(e){return tf(e)?e.indentation:0}o(hy,"getIndentation");function ac(e){return tf(e)?e.text:e}o(ac,"getText");var gy=`###-begin-{{app_name}}-completions-###
83
83
  #
84
84
  # yargs command completion script
85
85
  #
@@ -107,7 +107,7 @@ _{{app_name}}_yargs_completions()
107
107
  }
108
108
  complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}
109
109
  ###-end-{{app_name}}-completions-###
110
- `,dy=`#compdef {{app_name}}
110
+ `,yy=`#compdef {{app_name}}
111
111
  ###-begin-{{app_name}}-completions-###
112
112
  #
113
113
  # yargs command completion script
@@ -126,29 +126,29 @@ _{{app_name}}_yargs_completions()
126
126
  }
127
127
  compdef _{{app_name}}_yargs_completions {{app_name}}
128
128
  ###-end-{{app_name}}-completions-###
129
- `;var Xl=class Xl{constructor(t,r,n,i){var s,a,c;this.yargs=t,this.usage=r,this.command=n,this.shim=i,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(c=((s=this.shim.getEnv("SHELL"))===null||s===void 0?void 0:s.includes("zsh"))||((a=this.shim.getEnv("ZSH_NAME"))===null||a===void 0?void 0:a.includes("zsh")))!==null&&c!==void 0?c:!1}defaultCompletion(t,r,n,i){let s=this.command.getCommandHandlers();for(let c=0,u=t.length;c<u;++c)if(s[t[c]]&&s[t[c]].builder){let l=s[t[c]].builder;if(nc(l)){this.indexAfterLastReset=c+1;let p=this.yargs.getInternalMethods().reset();return l(p,!0),p.argv}}let a=[];this.commandCompletions(a,t,n),this.optionCompletions(a,t,r,n),this.choicesFromOptionsCompletions(a,t,r,n),this.choicesFromPositionalsCompletions(a,t,r,n),i(null,a)}commandCompletions(t,r,n){let i=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&i[i.length-1]!==n&&!this.previousArgHasChoices(r)&&this.usage.getCommands().forEach(s=>{let a=_n(s[0]).cmd;if(r.indexOf(a)===-1)if(!this.zshShell)t.push(a);else{let c=s[1]||"";t.push(a.replace(/:/g,"\\:")+":"+c)}})}optionCompletions(t,r,n,i){if((i.match(/^-/)||i===""&&t.length===0)&&!this.previousArgHasChoices(r)){let s=this.yargs.getOptions(),a=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(s.key).forEach(c=>{let u=!!s.configuration["boolean-negation"]&&s.boolean.includes(c);!a.includes(c)&&!s.hiddenOptions.includes(c)&&!this.argsContainKey(r,c,u)&&this.completeOptionKey(c,t,i,u&&!!s.default[c])})}}choicesFromOptionsCompletions(t,r,n,i){if(this.previousArgHasChoices(r)){let s=this.getPreviousArgChoices(r);s&&s.length>0&&t.push(...s.map(a=>a.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(t,r,n,i){if(i===""&&t.length>0&&this.previousArgHasChoices(r))return;let s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],a=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),c=s[n._.length-a-1];if(!c)return;let u=this.yargs.getOptions().choices[c]||[];for(let l of u)l.startsWith(i)&&t.push(l.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let r=t[t.length-1],n="";if(!r.startsWith("-")&&t.length>1&&(n=r,r=t[t.length-2]),!r.startsWith("-"))return;let i=r.replace(/^-+/,""),s=this.yargs.getOptions(),a=[i,...this.yargs.getAliases()[i]||[]],c;for(let u of a)if(Object.prototype.hasOwnProperty.call(s.key,u)&&Array.isArray(s.choices[u])){c=s.choices[u];break}if(c)return c.filter(u=>!n||u.startsWith(n))}previousArgHasChoices(t){let r=this.getPreviousArgChoices(t);return r!==void 0&&r.length>0}argsContainKey(t,r,n){let i=o(s=>t.indexOf((/^[^0-9]$/.test(s)?"-":"--")+s)!==-1,"argsContains");if(i(r)||n&&i(`no-${r}`))return!0;if(this.aliases){for(let s of this.aliases[r])if(i(s))return!0}return!1}completeOptionKey(t,r,n,i){var s,a,c,u;let l=t;if(this.zshShell){let h=this.usage.getDescriptions(),y=(a=(s=this===null||this===void 0?void 0:this.aliases)===null||s===void 0?void 0:s[t])===null||a===void 0?void 0:a.find(E=>{let $=h[E];return typeof $=="string"&&$.length>0}),b=y?h[y]:void 0,g=(u=(c=h[t])!==null&&c!==void 0?c:b)!==null&&u!==void 0?u:"";l=`${t.replace(/:/g,"\\:")}:${g.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let p=o(h=>/^--/.test(h),"startsByTwoDashes"),f=o(h=>/^[^0-9]$/.test(h),"isShortOption"),d=!p(n)&&f(t)?"-":"--";r.push(d+l),i&&r.push(d+"no-"+l)}customCompletion(t,r,n,i){if($t(this.customCompletionFunction,null,this.shim),s$(this.customCompletionFunction)){let s=this.customCompletionFunction(n,r);return Ne(s)?s.then(a=>{this.shim.process.nextTick(()=>{i(null,a)})}).catch(a=>{this.shim.process.nextTick(()=>{i(a,void 0)})}):i(null,s)}else return a$(this.customCompletionFunction)?this.customCompletionFunction(n,r,(s=i)=>this.defaultCompletion(t,r,n,s),s=>{i(null,s)}):this.customCompletionFunction(n,r,s=>{i(null,s)})}getCompletion(t,r){let n=t.length?t[t.length-1]:"",i=this.yargs.parse(t,!0),s=this.customCompletionFunction?a=>this.customCompletion(t,a,n,r):a=>this.defaultCompletion(t,a,n,r);return Ne(i)?i.then(s):s(i)}generateCompletionScript(t,r){let n=this.zshShell?dy:py,i=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),n=n.replace(/{{app_name}}/g,i),n=n.replace(/{{completion_command}}/g,r),n.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}};o(Xl,"Completion");var Jl=Xl;function hy(e,t,r,n){return new Jl(e,t,r,n)}o(hy,"completion");function s$(e){return e.length<3}o(s$,"isSyncCompletionFunction");function a$(e){return e.length>3}o(a$,"isFallbackCompletionFunction");function my(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;let r=[],n;for(n=0;n<=t.length;n++)r[n]=[n];let i;for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&t.charAt(n-2)===e.charAt(i-1)&&t.charAt(n-1)===e.charAt(i-2)?r[n][i]=r[n-2][i-2]+1:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}o(my,"levenshtein");var gy=["$0","--","_"];function yy(e,t,r){let n=r.y18n.__,i=r.y18n.__n,s={};s.nonOptionCount=o(function(f){let d=e.getDemandedCommands(),y=f._.length+(f["--"]?f["--"].length:0)-e.getInternalMethods().getContext().commands.length;d._&&(y<d._.min||y>d._.max)&&(y<d._.min?d._.minMsg!==void 0?t.fail(d._.minMsg?d._.minMsg.replace(/\$0/g,y.toString()).replace(/\$1/,d._.min.toString()):null):t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",y,y.toString(),d._.min.toString())):y>d._.max&&(d._.maxMsg!==void 0?t.fail(d._.maxMsg?d._.maxMsg.replace(/\$0/g,y.toString()).replace(/\$1/,d._.max.toString()):null):t.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",y,y.toString(),d._.max.toString()))))},"nonOptionCount"),s.positionalCount=o(function(f,d){d<f&&t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",d,d+"",f+""))},"positionalCount"),s.requiredArguments=o(function(f,d){let h=null;for(let y of Object.keys(d))(!Object.prototype.hasOwnProperty.call(f,y)||typeof f[y]>"u")&&(h=h||{},h[y]=d[y]);if(h){let y=[];for(let g of Object.keys(h)){let E=h[g];E&&y.indexOf(E)<0&&y.push(E)}let b=y.length?`
129
+ `;var nf=class nf{constructor(t,r,n,i){var s,a,c;this.yargs=t,this.usage=r,this.command=n,this.shim=i,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(c=((s=this.shim.getEnv("SHELL"))===null||s===void 0?void 0:s.includes("zsh"))||((a=this.shim.getEnv("ZSH_NAME"))===null||a===void 0?void 0:a.includes("zsh")))!==null&&c!==void 0?c:!1}defaultCompletion(t,r,n,i){let s=this.command.getCommandHandlers();for(let c=0,u=t.length;c<u;++c)if(s[t[c]]&&s[t[c]].builder){let l=s[t[c]].builder;if(sc(l)){this.indexAfterLastReset=c+1;let p=this.yargs.getInternalMethods().reset();return l(p,!0),p.argv}}let a=[];this.commandCompletions(a,t,n),this.optionCompletions(a,t,r,n),this.choicesFromOptionsCompletions(a,t,r,n),this.choicesFromPositionalsCompletions(a,t,r,n),i(null,a)}commandCompletions(t,r,n){let i=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&i[i.length-1]!==n&&!this.previousArgHasChoices(r)&&this.usage.getCommands().forEach(s=>{let a=Sn(s[0]).cmd;if(r.indexOf(a)===-1)if(!this.zshShell)t.push(a);else{let c=s[1]||"";t.push(a.replace(/:/g,"\\:")+":"+c)}})}optionCompletions(t,r,n,i){if((i.match(/^-/)||i===""&&t.length===0)&&!this.previousArgHasChoices(r)){let s=this.yargs.getOptions(),a=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(s.key).forEach(c=>{let u=!!s.configuration["boolean-negation"]&&s.boolean.includes(c);!a.includes(c)&&!s.hiddenOptions.includes(c)&&!this.argsContainKey(r,c,u)&&this.completeOptionKey(c,t,i,u&&!!s.default[c])})}}choicesFromOptionsCompletions(t,r,n,i){if(this.previousArgHasChoices(r)){let s=this.getPreviousArgChoices(r);s&&s.length>0&&t.push(...s.map(a=>a.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(t,r,n,i){if(i===""&&t.length>0&&this.previousArgHasChoices(r))return;let s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],a=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),c=s[n._.length-a-1];if(!c)return;let u=this.yargs.getOptions().choices[c]||[];for(let l of u)l.startsWith(i)&&t.push(l.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let r=t[t.length-1],n="";if(!r.startsWith("-")&&t.length>1&&(n=r,r=t[t.length-2]),!r.startsWith("-"))return;let i=r.replace(/^-+/,""),s=this.yargs.getOptions(),a=[i,...this.yargs.getAliases()[i]||[]],c;for(let u of a)if(Object.prototype.hasOwnProperty.call(s.key,u)&&Array.isArray(s.choices[u])){c=s.choices[u];break}if(c)return c.filter(u=>!n||u.startsWith(n))}previousArgHasChoices(t){let r=this.getPreviousArgChoices(t);return r!==void 0&&r.length>0}argsContainKey(t,r,n){let i=o(s=>t.indexOf((/^[^0-9]$/.test(s)?"-":"--")+s)!==-1,"argsContains");if(i(r)||n&&i(`no-${r}`))return!0;if(this.aliases){for(let s of this.aliases[r])if(i(s))return!0}return!1}completeOptionKey(t,r,n,i){var s,a,c,u;let l=t;if(this.zshShell){let h=this.usage.getDescriptions(),y=(a=(s=this===null||this===void 0?void 0:this.aliases)===null||s===void 0?void 0:s[t])===null||a===void 0?void 0:a.find(P=>{let $=h[P];return typeof $=="string"&&$.length>0}),b=y?h[y]:void 0,m=(u=(c=h[t])!==null&&c!==void 0?c:b)!==null&&u!==void 0?u:"";l=`${t.replace(/:/g,"\\:")}:${m.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let p=o(h=>/^--/.test(h),"startsByTwoDashes"),f=o(h=>/^[^0-9]$/.test(h),"isShortOption"),d=!p(n)&&f(t)?"-":"--";r.push(d+l),i&&r.push(d+"no-"+l)}customCompletion(t,r,n,i){if($t(this.customCompletionFunction,null,this.shim),d$(this.customCompletionFunction)){let s=this.customCompletionFunction(n,r);return Re(s)?s.then(a=>{this.shim.process.nextTick(()=>{i(null,a)})}).catch(a=>{this.shim.process.nextTick(()=>{i(a,void 0)})}):i(null,s)}else return h$(this.customCompletionFunction)?this.customCompletionFunction(n,r,(s=i)=>this.defaultCompletion(t,r,n,s),s=>{i(null,s)}):this.customCompletionFunction(n,r,s=>{i(null,s)})}getCompletion(t,r){let n=t.length?t[t.length-1]:"",i=this.yargs.parse(t,!0),s=this.customCompletionFunction?a=>this.customCompletion(t,a,n,r):a=>this.defaultCompletion(t,a,n,r);return Re(i)?i.then(s):s(i)}generateCompletionScript(t,r){let n=this.zshShell?yy:gy,i=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),n=n.replace(/{{app_name}}/g,i),n=n.replace(/{{completion_command}}/g,r),n.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}};o(nf,"Completion");var rf=nf;function by(e,t,r,n){return new rf(e,t,r,n)}o(by,"completion");function d$(e){return e.length<3}o(d$,"isSyncCompletionFunction");function h$(e){return e.length>3}o(h$,"isFallbackCompletionFunction");function vy(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;let r=[],n;for(n=0;n<=t.length;n++)r[n]=[n];let i;for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&t.charAt(n-2)===e.charAt(i-1)&&t.charAt(n-1)===e.charAt(i-2)?r[n][i]=r[n-2][i-2]+1:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}o(vy,"levenshtein");var _y=["$0","--","_"];function Sy(e,t,r){let n=r.y18n.__,i=r.y18n.__n,s={};s.nonOptionCount=o(function(f){let d=e.getDemandedCommands(),y=f._.length+(f["--"]?f["--"].length:0)-e.getInternalMethods().getContext().commands.length;d._&&(y<d._.min||y>d._.max)&&(y<d._.min?d._.minMsg!==void 0?t.fail(d._.minMsg?d._.minMsg.replace(/\$0/g,y.toString()).replace(/\$1/,d._.min.toString()):null):t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",y,y.toString(),d._.min.toString())):y>d._.max&&(d._.maxMsg!==void 0?t.fail(d._.maxMsg?d._.maxMsg.replace(/\$0/g,y.toString()).replace(/\$1/,d._.max.toString()):null):t.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",y,y.toString(),d._.max.toString()))))},"nonOptionCount"),s.positionalCount=o(function(f,d){d<f&&t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",d,d+"",f+""))},"positionalCount"),s.requiredArguments=o(function(f,d){let h=null;for(let y of Object.keys(d))(!Object.prototype.hasOwnProperty.call(f,y)||typeof f[y]>"u")&&(h=h||{},h[y]=d[y]);if(h){let y=[];for(let m of Object.keys(h)){let P=h[m];P&&y.indexOf(P)<0&&y.push(P)}let b=y.length?`
130
130
  ${y.join(`
131
- `)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+b))}},"requiredArguments"),s.unknownArguments=o(function(f,d,h,y,b=!0){var g;let E=e.getInternalMethods().getCommandInstance().getCommands(),$=[],T=e.getInternalMethods().getContext();if(Object.keys(f).forEach(I=>{!gy.includes(I)&&!Object.prototype.hasOwnProperty.call(h,I)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),I)&&!s.isValidAndSomeAliasIsNotNew(I,d)&&$.push(I)}),b&&(T.commands.length>0||E.length>0||y)&&f._.slice(T.commands.length).forEach(I=>{E.includes(""+I)||$.push(""+I)}),b){let C=((g=e.getDemandedCommands()._)===null||g===void 0?void 0:g.max)||0,ae=T.commands.length+C;ae<f._.length&&f._.slice(ae).forEach(J=>{J=String(J),!T.commands.includes(J)&&!$.includes(J)&&$.push(J)})}$.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",$.length,$.map(I=>I.trim()?I:`"${I}"`).join(", ")))},"unknownArguments"),s.unknownCommands=o(function(f){let d=e.getInternalMethods().getCommandInstance().getCommands(),h=[],y=e.getInternalMethods().getContext();return(y.commands.length>0||d.length>0)&&f._.slice(y.commands.length).forEach(b=>{d.includes(""+b)||h.push(""+b)}),h.length>0?(t.fail(i("Unknown command: %s","Unknown commands: %s",h.length,h.join(", "))),!0):!1},"unknownCommands"),s.isValidAndSomeAliasIsNotNew=o(function(f,d){if(!Object.prototype.hasOwnProperty.call(d,f))return!1;let h=e.parsed.newAliases;return[f,...d[f]].some(y=>!Object.prototype.hasOwnProperty.call(h,y)||!h[f])},"isValidAndSomeAliasIsNotNew"),s.limitedChoices=o(function(f){let d=e.getOptions(),h={};if(!Object.keys(d.choices).length)return;Object.keys(f).forEach(g=>{gy.indexOf(g)===-1&&Object.prototype.hasOwnProperty.call(d.choices,g)&&[].concat(f[g]).forEach(E=>{d.choices[g].indexOf(E)===-1&&E!==void 0&&(h[g]=(h[g]||[]).concat(E))})});let y=Object.keys(h);if(!y.length)return;let b=n("Invalid values:");y.forEach(g=>{b+=`
132
- ${n("Argument: %s, Given: %s, Choices: %s",g,t.stringifiedValues(h[g]),t.stringifiedValues(d.choices[g]))}`}),t.fail(b)},"limitedChoices");let a={};s.implies=o(function(f,d){F("<string|object> [array|number|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{s.implies(h,f[h])}):(e.global(f),a[f]||(a[f]=[]),Array.isArray(d)?d.forEach(h=>s.implies(f,h)):($t(d,void 0,r),a[f].push(d)))},"implies"),s.getImplied=o(function(){return a},"getImplied");function c(p,f){let d=Number(f);return f=isNaN(d)?f:d,typeof f=="number"?f=p._.length>=f:f.match(/^--no-.+/)?(f=f.match(/^--no-(.+)/)[1],f=!Object.prototype.hasOwnProperty.call(p,f)):f=Object.prototype.hasOwnProperty.call(p,f),f}o(c,"keyExists"),s.implications=o(function(f){let d=[];if(Object.keys(a).forEach(h=>{let y=h;(a[h]||[]).forEach(b=>{let g=y,E=b;g=c(f,g),b=c(f,b),g&&!b&&d.push(` ${y} -> ${E}`)})}),d.length){let h=`${n("Implications failed:")}
133
- `;d.forEach(y=>{h+=y}),t.fail(h)}},"implications");let u={};s.conflicts=o(function(f,d){F("<string|object> [array|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{s.conflicts(h,f[h])}):(e.global(f),u[f]||(u[f]=[]),Array.isArray(d)?d.forEach(h=>s.conflicts(f,h)):u[f].push(d))},"conflicts"),s.getConflicting=()=>u,s.conflicting=o(function(f){Object.keys(f).forEach(d=>{u[d]&&u[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(u).forEach(d=>{u[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"),s.recommendCommands=o(function(f,d){d=d.sort((g,E)=>E.length-g.length);let y=null,b=1/0;for(let g=0,E;(E=d[g])!==void 0;g++){let $=my(f,E);$<=3&&$<b&&(b=$,y=E)}y&&t.fail(n("Did you mean %s?",y))},"recommendCommands"),s.reset=o(function(f){return a=Sn(a,d=>!f[d]),u=Sn(u,d=>!f[d]),s},"reset");let l=[];return s.freeze=o(function(){l.push({implied:a,conflicting:u})},"freeze"),s.unfreeze=o(function(){let f=l.pop();$t(f,void 0,r),{implied:a,conflicting:u}=f},"unfreeze"),s}o(yy,"validation");var ef=[],gs;function ys(e,t,r,n){gs=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let s=/\.json|\..*rc$/.test(e.extends),a=null;if(s)a=u$(t,e.extends);else try{a=require.resolve(e.extends)}catch{return e}c$(a),ef.push(a),i=s?JSON.parse(gs.readFileSync(a,"utf8")):require(e.extends),delete e.extends,i=ys(i,gs.path.dirname(a),r,gs)}return ef=[],r?by(i,e):Object.assign({},i,e)}o(ys,"applyExtends");function c$(e){if(ef.indexOf(e)>-1)throw new Re(`Circular extended configurations: '${e}'.`)}o(c$,"checkForCircularExtends");function u$(e,t){return gs.path.resolve(e,t)}o(u$,"getPathToDefaultConfig");function by(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}o(n,"isObject"),Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=by(e[i],t[i]):r[i]=t[i];return r}o(by,"mergeDeep");var H=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)},Xe,fi,bs,ir,Vt,oc,Pn,pi,sc,or,ac,sr,Dr,Ht,ar,cc,so,lt,Z,uc,lc,Bt,di,ao,hi,En,fc,ne,mi,gi,yi,oe,pc,Lr,Ze;function Dy(e){return(t=[],r=e.process.cwd(),n)=>{let i=new pf(t,r,n,e);return Object.defineProperty(i,"argv",{get:o(()=>i.parse(),"get"),enumerable:!0}),i.help(),i.version(),i}}o(Dy,"YargsFactory");var vy=Symbol("copyDoubleDash"),_y=Symbol("copyDoubleDash"),tf=Symbol("deleteFromParserHintObject"),Sy=Symbol("emitWarning"),Oy=Symbol("freeze"),Py=Symbol("getDollarZero"),bi=Symbol("getParserConfiguration"),Ey=Symbol("getUsageConfiguration"),rf=Symbol("guessLocale"),xy=Symbol("guessVersion"),$y=Symbol("parsePositionalNumbers"),nf=Symbol("pkgUp"),xn=Symbol("populateParserHintArray"),co=Symbol("populateParserHintSingleValueDictionary"),of=Symbol("populateParserHintArrayDictionary"),sf=Symbol("populateParserHintDictionary"),af=Symbol("sanitizeKey"),cf=Symbol("setKey"),uf=Symbol("unfreeze"),wy=Symbol("validateAsync"),Ay=Symbol("getCommandInstance"),Iy=Symbol("getContext"),Cy=Symbol("getHasOutput"),Ty=Symbol("getLoggerInstance"),Ry=Symbol("getParseContext"),Ny=Symbol("getUsageInstance"),jy=Symbol("getValidationInstance"),dc=Symbol("hasParseCallback"),My=Symbol("isGlobalContext"),vi=Symbol("postProcess"),ky=Symbol("rebase"),lf=Symbol("reset"),vs=Symbol("runYargsParserAndExecuteCommands"),ff=Symbol("runValidation"),qy=Symbol("setHasOutput"),_i=Symbol("kTrackManuallySetKeys"),df=class df{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Xe.set(this,void 0),fi.set(this,void 0),bs.set(this,{commands:[],fullCommands:[]}),ir.set(this,null),Vt.set(this,null),oc.set(this,"show-hidden"),Pn.set(this,null),pi.set(this,!0),sc.set(this,{}),or.set(this,!0),ac.set(this,[]),sr.set(this,void 0),Dr.set(this,{}),Ht.set(this,!1),ar.set(this,null),cc.set(this,!0),so.set(this,void 0),lt.set(this,""),Z.set(this,void 0),uc.set(this,void 0),lc.set(this,{}),Bt.set(this,null),di.set(this,null),ao.set(this,{}),hi.set(this,{}),En.set(this,void 0),fc.set(this,!1),ne.set(this,void 0),mi.set(this,!1),gi.set(this,!1),yi.set(this,!1),oe.set(this,void 0),pc.set(this,{}),Lr.set(this,null),Ze.set(this,void 0),H(this,ne,i,"f"),H(this,En,t,"f"),H(this,fi,r,"f"),H(this,uc,n,"f"),H(this,sr,new rc(this),"f"),this.$0=this[Py](),this[lf](),H(this,Xe,m(this,Xe,"f"),"f"),H(this,oe,m(this,oe,"f"),"f"),H(this,Ze,m(this,Ze,"f"),"f"),H(this,Z,m(this,Z,"f"),"f"),m(this,Z,"f").showHiddenOpt=m(this,oc,"f"),H(this,so,this[_y](),"f")}addHelpOpt(t,r){let n="help";return F("[string|boolean] [string]",[t,r],arguments.length),m(this,ar,"f")&&(this[tf](m(this,ar,"f")),H(this,ar,null,"f")),t===!1&&r===void 0?this:(H(this,ar,typeof t=="string"?t:n,"f"),this.boolean(m(this,ar,"f")),this.describe(m(this,ar,"f"),r||m(this,oe,"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,oc,"f");return this.boolean(n),this.describe(n,r||m(this,oe,"f").deferY18nLookup("Show hidden options")),m(this,Z,"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[of](this.alias.bind(this),"alias",t,r),this}array(t){return F("<array|string>",[t],arguments.length),this[xn]("array",t),this[_i](t),this}boolean(t){return F("<array|string>",[t],arguments.length),this[xn]("boolean",t),this[_i](t),this}check(t,r){return F("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>li(()=>t(n,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&m(this,oe,"f").fail(s.toString(),s):m(this,oe,"f").fail(m(this,ne,"f").y18n.__("Argument check failed: %s",t.toString())),n),s=>(m(this,oe,"f").fail(s.message?s.message:s.toString(),s),n)),!1,r),this}choices(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[of](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,Z,"f").key[t]=!0,m(this,sr,"f").addCoerceMiddleware((n,i)=>{let s;return Object.prototype.hasOwnProperty.call(n,t)?li(()=>(s=i.getAliases(),r(n[t])),c=>{n[t]=c;let u=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[t]&&u!==!0)for(let l of s[t])n[l]=c;return n},c=>{throw new Re(c.message)}):n},t),this}conflicts(t,r){return F("<string|object> [string|array]",[t,r],arguments.length),m(this,Ze,"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=ys(t,m(this,fi,"f"),this[bi]()["deep-merge-config"]||!1,m(this,ne,"f")),m(this,Z,"f").configObjects=(m(this,Z,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||m(this,oe,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{m(this,Z,"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),H(this,Vt,t||m(this,Vt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(m(this,Vt,"f"),r),n&&m(this,ir,"f").registerFunction(n),this}command(t,r,n,i,s,a){return F("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,s,a],arguments.length),m(this,Xe,"f").addHandler(t,r,n,i,s,a),this}commands(t,r,n,i,s,a){return this.command(t,r,n,i,s,a)}commandDir(t,r){F("<string> [object]",[t,r],arguments.length);let n=m(this,uc,"f")||m(this,ne,"f").require;return m(this,Xe,"f").addDirectory(t,n,m(this,ne,"f").getCallerFile(),r),this}count(t){return F("<array|string>",[t],arguments.length),this[xn]("count",t),this[_i](t),this}default(t,r,n){return F("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(zl(t,m(this,ne,"f")),m(this,Z,"f").defaultDescription[t]=n),typeof r=="function"&&(zl(t,m(this,ne,"f")),m(this,Z,"f").defaultDescription[t]||(m(this,Z,"f").defaultDescription[t]=m(this,oe,"f").functionDescription(r)),r=r.call()),this[co](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,Z,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{$t(n,!0,m(this,ne,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?($t(n,!0,m(this,ne,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{$t(n,!0,m(this,ne,"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[co](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return F("<string> [string|boolean]",[t,r],arguments.length),m(this,Z,"f").deprecatedOptions[t]=r,this}describe(t,r){return F("<object|string|array> [string]",[t,r],arguments.length),this[cf](t,!0),m(this,oe,"f").describe(t,r),this}detectLocale(t){return F("<boolean>",[t],arguments.length),H(this,pi,t,"f"),this}env(t){return F("[string|boolean]",[t],arguments.length),t===!1?delete m(this,Z,"f").envPrefix:m(this,Z,"f").envPrefix=t||"",this}epilogue(t){return F("<string>",[t],arguments.length),m(this,oe,"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,oe,"f").example(t,r),this}exit(t,r){H(this,Ht,!0,"f"),H(this,Pn,r,"f"),m(this,or,"f")&&m(this,ne,"f").process.exit(t)}exitProcess(t=!0){return F("[boolean]",[t],arguments.length),H(this,or,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,oe,"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,ir,"f").getCompletion(t,r):new Promise((n,i)=>{m(this,ir,"f").getCompletion(t,(s,a)=>{s?i(s):n(a)})})}getDemandedOptions(){return F([],0),m(this,Z,"f").demandedOptions}getDemandedCommands(){return F([],0),m(this,Z,"f").demandedCommands}getDeprecatedOptions(){return F([],0),m(this,Z,"f").deprecatedOptions}getDetectLocale(){return m(this,pi,"f")}getExitProcess(){return m(this,or,"f")}getGroups(){return Object.assign({},m(this,Dr,"f"),m(this,hi,"f"))}getHelp(){if(H(this,Ht,!0,"f"),!m(this,oe,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[vs](m(this,En,"f"),void 0,void 0,0,!0);if(Ne(r))return r.then(()=>m(this,oe,"f").help())}let t=m(this,Xe,"f").runDefaultBuilderOn(this);if(Ne(t))return t.then(()=>m(this,oe,"f").help())}return Promise.resolve(m(this,oe,"f").help())}getOptions(){return m(this,Z,"f")}getStrict(){return m(this,mi,"f")}getStrictCommands(){return m(this,gi,"f")}getStrictOptions(){return m(this,yi,"f")}global(t,r){return F("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?m(this,Z,"f").local=m(this,Z,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{m(this,Z,"f").local.includes(n)||m(this,Z,"f").local.push(n)}),this}group(t,r){F("<string|array> <string>",[t,r],arguments.length);let n=m(this,hi,"f")[r]||m(this,Dr,"f")[r];m(this,hi,"f")[r]&&delete m(this,hi,"f")[r];let i={};return m(this,Dr,"f")[r]=(n||[]).concat(t).filter(s=>i[s]?!1:i[s]=!0),this}hide(t){return F("<string>",[t],arguments.length),m(this,Z,"f").hiddenOptions.push(t),this}implies(t,r){return F("<string|object> [number|string|array]",[t,r],arguments.length),m(this,Ze,"f").implies(t,r),this}locale(t){return F("[string]",[t],arguments.length),t===void 0?(this[rf](),m(this,ne,"f").y18n.getLocale()):(H(this,pi,!1,"f"),m(this,ne,"f").y18n.setLocale(t),this)}middleware(t,r,n){return m(this,sr,"f").addMiddleware(t,!!r,n)}nargs(t,r){return F("<string|object|array> [number]",[t,r],arguments.length),this[co](this.nargs.bind(this),"narg",t,r),this}normalize(t){return F("<array|string>",[t],arguments.length),this[xn]("normalize",t),this}number(t){return F("<array|string>",[t],arguments.length),this[xn]("number",t),this[_i](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[_i](t),m(this,Lr,"f")&&(t==="version"||(r==null?void 0:r.alias)==="version")&&this[Sy](['"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
- `),void 0,"versionWarning"),m(this,Z,"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,Z,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let s=r.describe||r.description||r.desc,a=m(this,oe,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(a,t)||typeof s=="string")&&this.describe(t,s),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[Oy](),typeof t>"u"&&(t=m(this,En,"f")),typeof r=="object"&&(H(this,di,r,"f"),r=n),typeof r=="function"&&(H(this,Bt,r,"f"),r=!1),r||H(this,En,t,"f"),m(this,Bt,"f")&&H(this,or,!1,"f");let i=this[vs](t,!!r),s=this.parsed;return m(this,ir,"f").setParsed(this.parsed),Ne(i)?i.then(a=>(m(this,Bt,"f")&&m(this,Bt,"f").call(this,m(this,Pn,"f"),a,m(this,lt,"f")),a)).catch(a=>{throw m(this,Bt,"f")&&m(this,Bt,"f")(a,this.parsed.argv,m(this,lt,"f")),a}).finally(()=>{this[uf](),this.parsed=s}):(m(this,Bt,"f")&&m(this,Bt,"f").call(this,m(this,Pn,"f"),i,m(this,lt,"f")),this[uf](),this.parsed=s,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return Ne(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(Ne(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),H(this,lc,t,"f"),this}pkgConf(t,r){F("<string> [string]",[t,r],arguments.length);let n=null,i=this[nf](r||m(this,fi,"f"));return i[t]&&typeof i[t]=="object"&&(n=ys(i[t],r||m(this,fi,"f"),this[bi]()["deep-merge-config"]||!1,m(this,ne,"f")),m(this,Z,"f").configObjects=(m(this,Z,"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=Sn(r,(a,c)=>a==="type"&&!["string","number","boolean"].includes(c)?!1:n.includes(a));let i=m(this,bs,"f").fullCommands[m(this,bs,"f").fullCommands.length-1],s=i?m(this,Xe,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return io(s).forEach(a=>{let c=s[a];Array.isArray(c)?c.indexOf(t)!==-1&&(r[a]=!0):c[t]&&!(a in r)&&(r[a]=c[t])}),this.group(t,m(this,oe,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return F("[boolean]",[t],arguments.length),H(this,fc,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,Z,"f").narg[t]?this:(this[co](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,so,"f").log(m(this,ir,"f").generateCompletionScript(t,r||m(this,Vt,"f")||"completion")),this}showHelp(t){if(F("[string|function]",[t],arguments.length),H(this,Ht,!0,"f"),!m(this,oe,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[vs](m(this,En,"f"),void 0,void 0,0,!0);if(Ne(n))return n.then(()=>{m(this,oe,"f").showHelp(t)}),this}let r=m(this,Xe,"f").runDefaultBuilderOn(this);if(Ne(r))return r.then(()=>{m(this,oe,"f").showHelp(t)}),this}return m(this,oe,"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,oe,"f").showHelpOnFail(t,r),this}showVersion(t){return F("[string|function]",[t],arguments.length),m(this,oe,"f").showVersion(t),this}skipValidation(t){return F("<array|string>",[t],arguments.length),this[xn]("skipValidation",t),this}strict(t){return F("[boolean]",[t],arguments.length),H(this,mi,t!==!1,"f"),this}strictCommands(t){return F("[boolean]",[t],arguments.length),H(this,gi,t!==!1,"f"),this}strictOptions(t){return F("[boolean]",[t],arguments.length),H(this,yi,t!==!1,"f"),this}string(t){return F("<array|string>",[t],arguments.length),this[xn]("string",t),this[_i](t),this}terminalWidth(){return F([],0),m(this,ne,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return F("<object>",[t],arguments.length),H(this,pi,!1,"f"),m(this,ne,"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($t(t,null,m(this,ne,"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,oe,"f").usage(t),this}usageConfiguration(t){return F("<object>",[t],arguments.length),H(this,pc,t,"f"),this}version(t,r,n){let i="version";if(F("[boolean|string] [string] [string]",[t,r,n],arguments.length),m(this,Lr,"f")&&(this[tf](m(this,Lr,"f")),m(this,oe,"f").version(void 0),H(this,Lr,null,"f")),arguments.length===0)n=this[xy](),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 H(this,Lr,typeof t=="string"?t:i,"f"),r=r||m(this,oe,"f").deferY18nLookup("Show version number"),m(this,oe,"f").version(n||void 0),this.boolean(m(this,Lr,"f")),this.describe(m(this,Lr,"f"),r),this}wrap(t){return F("<number|null|undefined>",[t],arguments.length),m(this,oe,"f").wrap(t),this}[(Xe=new WeakMap,fi=new WeakMap,bs=new WeakMap,ir=new WeakMap,Vt=new WeakMap,oc=new WeakMap,Pn=new WeakMap,pi=new WeakMap,sc=new WeakMap,or=new WeakMap,ac=new WeakMap,sr=new WeakMap,Dr=new WeakMap,Ht=new WeakMap,ar=new WeakMap,cc=new WeakMap,so=new WeakMap,lt=new WeakMap,Z=new WeakMap,uc=new WeakMap,lc=new WeakMap,Bt=new WeakMap,di=new WeakMap,ao=new WeakMap,hi=new WeakMap,En=new WeakMap,fc=new WeakMap,ne=new WeakMap,mi=new WeakMap,gi=new WeakMap,yi=new WeakMap,oe=new WeakMap,pc=new WeakMap,Lr=new WeakMap,Ze=new WeakMap,vy)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[_y](){return{log:o((...t)=>{this[dc]()||console.log(...t),H(this,Ht,!0,"f"),m(this,lt,"f").length&&H(this,lt,m(this,lt,"f")+`
135
- `,"f"),H(this,lt,m(this,lt,"f")+t.join(" "),"f")},"log"),error:o((...t)=>{this[dc]()||console.error(...t),H(this,Ht,!0,"f"),m(this,lt,"f").length&&H(this,lt,m(this,lt,"f")+`
136
- `,"f"),H(this,lt,m(this,lt,"f")+t.join(" "),"f")},"error")}}[tf](t){io(m(this,Z,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=m(this,Z,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete m(this,oe,"f").getDescriptions()[t]}[Sy](t,r,n){m(this,sc,"f")[n]||(m(this,ne,"f").process.emitWarning(t,r),m(this,sc,"f")[n]=!0)}[Oy](){m(this,ac,"f").push({options:m(this,Z,"f"),configObjects:m(this,Z,"f").configObjects.slice(0),exitProcess:m(this,or,"f"),groups:m(this,Dr,"f"),strict:m(this,mi,"f"),strictCommands:m(this,gi,"f"),strictOptions:m(this,yi,"f"),completionCommand:m(this,Vt,"f"),output:m(this,lt,"f"),exitError:m(this,Pn,"f"),hasOutput:m(this,Ht,"f"),parsed:this.parsed,parseFn:m(this,Bt,"f"),parseContext:m(this,di,"f")}),m(this,oe,"f").freeze(),m(this,Ze,"f").freeze(),m(this,Xe,"f").freeze(),m(this,sr,"f").freeze()}[Py](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(m(this,ne,"f").process.argv()[0])?r=m(this,ne,"f").process.argv().slice(1,2):r=m(this,ne,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[ky](m(this,fi,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),m(this,ne,"f").getEnv("_")&&m(this,ne,"f").getProcessArgvBin()===m(this,ne,"f").getEnv("_")&&(t=m(this,ne,"f").getEnv("_").replace(`${m(this,ne,"f").path.dirname(m(this,ne,"f").process.execPath())}/`,"")),t}[bi](){return m(this,lc,"f")}[Ey](){return m(this,pc,"f")}[rf](){if(!m(this,pi,"f"))return;let t=m(this,ne,"f").getEnv("LC_ALL")||m(this,ne,"f").getEnv("LC_MESSAGES")||m(this,ne,"f").getEnv("LANG")||m(this,ne,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[xy](){return this[nf]().version||"unknown"}[$y](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)m(this,ne,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[nf](t){let r=t||"*";if(m(this,ao,"f")[r])return m(this,ao,"f")[r];let n={};try{let i=t||m(this,ne,"f").mainFilename;!t&&m(this,ne,"f").path.extname(i)&&(i=m(this,ne,"f").path.dirname(i));let s=m(this,ne,"f").findUp(i,(a,c)=>{if(c.includes("package.json"))return"package.json"});$t(s,void 0,m(this,ne,"f")),n=JSON.parse(m(this,ne,"f").readFileSync(s,"utf8"))}catch{}return m(this,ao,"f")[r]=n||{},m(this,ao,"f")[r]}[xn](t,r){r=[].concat(r),r.forEach(n=>{n=this[af](n),m(this,Z,"f")[t].push(n)})}[co](t,r,n,i){this[sf](t,r,n,i,(s,a,c)=>{m(this,Z,"f")[s][a]=c})}[of](t,r,n,i){this[sf](t,r,n,i,(s,a,c)=>{m(this,Z,"f")[s][a]=(m(this,Z,"f")[s][a]||[]).concat(c)})}[sf](t,r,n,i,s){if(Array.isArray(n))n.forEach(a=>{t(a,i)});else if((a=>typeof a=="object")(n))for(let a of io(n))t(a,n[a]);else s(r,this[af](n),i)}[af](t){return t==="__proto__"?"___proto___":t}[cf](t,r){return this[co](this[cf].bind(this),"key",t,r),this}[uf](){var t,r,n,i,s,a,c,u,l,p,f,d;let h=m(this,ac,"f").pop();$t(h,void 0,m(this,ne,"f"));let y;t=this,r=this,n=this,i=this,s=this,a=this,c=this,u=this,l=this,p=this,f=this,d=this,{options:{set value(b){H(t,Z,b,"f")}}.value,configObjects:y,exitProcess:{set value(b){H(r,or,b,"f")}}.value,groups:{set value(b){H(n,Dr,b,"f")}}.value,output:{set value(b){H(i,lt,b,"f")}}.value,exitError:{set value(b){H(s,Pn,b,"f")}}.value,hasOutput:{set value(b){H(a,Ht,b,"f")}}.value,parsed:this.parsed,strict:{set value(b){H(c,mi,b,"f")}}.value,strictCommands:{set value(b){H(u,gi,b,"f")}}.value,strictOptions:{set value(b){H(l,yi,b,"f")}}.value,completionCommand:{set value(b){H(p,Vt,b,"f")}}.value,parseFn:{set value(b){H(f,Bt,b,"f")}}.value,parseContext:{set value(b){H(d,di,b,"f")}}.value}=h,m(this,Z,"f").configObjects=y,m(this,oe,"f").unfreeze(),m(this,Ze,"f").unfreeze(),m(this,Xe,"f").unfreeze(),m(this,sr,"f").unfreeze()}[wy](t,r){return li(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[Ay].bind(this),getContext:this[Iy].bind(this),getHasOutput:this[Cy].bind(this),getLoggerInstance:this[Ty].bind(this),getParseContext:this[Ry].bind(this),getParserConfiguration:this[bi].bind(this),getUsageConfiguration:this[Ey].bind(this),getUsageInstance:this[Ny].bind(this),getValidationInstance:this[jy].bind(this),hasParseCallback:this[dc].bind(this),isGlobalContext:this[My].bind(this),postProcess:this[vi].bind(this),reset:this[lf].bind(this),runValidation:this[ff].bind(this),runYargsParserAndExecuteCommands:this[vs].bind(this),setHasOutput:this[qy].bind(this)}}[Ay](){return m(this,Xe,"f")}[Iy](){return m(this,bs,"f")}[Cy](){return m(this,Ht,"f")}[Ty](){return m(this,so,"f")}[Ry](){return m(this,di,"f")||{}}[Ny](){return m(this,oe,"f")}[jy](){return m(this,Ze,"f")}[dc](){return!!m(this,Bt,"f")}[My](){return m(this,cc,"f")}[vi](t,r,n,i){return n||Ne(t)||(r||(t=this[vy](t)),(this[bi]()["parse-positional-numbers"]||this[bi]()["parse-positional-numbers"]===void 0)&&(t=this[$y](t)),i&&(t=ui(t,this,m(this,sr,"f").getMiddleware(),!1))),t}[lf](t={}){H(this,Z,m(this,Z,"f")||{},"f");let r={};r.local=m(this,Z,"f").local||[],r.configObjects=m(this,Z,"f").configObjects||[];let n={};r.local.forEach(a=>{n[a]=!0,(t[a]||[]).forEach(c=>{n[c]=!0})}),Object.assign(m(this,hi,"f"),Object.keys(m(this,Dr,"f")).reduce((a,c)=>{let u=m(this,Dr,"f")[c].filter(l=>!(l in n));return u.length>0&&(a[c]=u),a},{})),H(this,Dr,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(a=>{r[a]=(m(this,Z,"f")[a]||[]).filter(c=>!n[c])}),s.forEach(a=>{r[a]=Sn(m(this,Z,"f")[a],c=>!n[c])}),r.envPrefix=m(this,Z,"f").envPrefix,H(this,Z,r,"f"),H(this,oe,m(this,oe,"f")?m(this,oe,"f").reset(n):fy(this,m(this,ne,"f")),"f"),H(this,Ze,m(this,Ze,"f")?m(this,Ze,"f").reset(n):yy(this,m(this,oe,"f"),m(this,ne,"f")),"f"),H(this,Xe,m(this,Xe,"f")?m(this,Xe,"f").reset():cy(m(this,oe,"f"),m(this,Ze,"f"),m(this,sr,"f"),m(this,ne,"f")),"f"),m(this,ir,"f")||H(this,ir,hy(this,m(this,oe,"f"),m(this,Xe,"f"),m(this,ne,"f")),"f"),m(this,sr,"f").reset(),H(this,Vt,null,"f"),H(this,lt,"","f"),H(this,Pn,null,"f"),H(this,Ht,!1,"f"),this.parsed=!1,this}[ky](t,r){return m(this,ne,"f").path.relative(t,r)}[vs](t,r,n,i=0,s=!1){let a=!!n||s;t=t||m(this,En,"f"),m(this,Z,"f").__=m(this,ne,"f").y18n.__,m(this,Z,"f").configuration=this[bi]();let c=!!m(this,Z,"f").configuration["populate--"],u=Object.assign({},m(this,Z,"f").configuration,{"populate--":!0}),l=m(this,ne,"f").Parser.detailed(t,Object.assign({},m(this,Z,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),p=Object.assign(l.argv,m(this,di,"f")),f,d=l.aliases,h=!1,y=!1;Object.keys(p).forEach(b=>{b===m(this,ar,"f")&&p[b]?h=!0:b===m(this,Lr,"f")&&p[b]&&(y=!0)}),p.$0=this.$0,this.parsed=l,i===0&&m(this,oe,"f").clearCachedHelpMessage();try{if(this[rf](),r)return this[vi](p,c,!!n,!1);m(this,ar,"f")&&[m(this,ar,"f")].concat(d[m(this,ar,"f")]||[]).filter(T=>T.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),h=!0),H(this,cc,!1,"f");let b=m(this,Xe,"f").getCommands(),g=m(this,ir,"f").completionKey in p,E=h||g||s;if(p._.length){if(b.length){let $;for(let T=i||0,I;p._[T]!==void 0;T++)if(I=String(p._[T]),b.includes(I)&&I!==m(this,Vt,"f")){let C=m(this,Xe,"f").runCommand(I,this,l,T+1,s,h||y||s);return this[vi](C,c,!!n,!1)}else if(!$&&I!==m(this,Vt,"f")){$=I;break}!m(this,Xe,"f").hasDefaultCommand()&&m(this,fc,"f")&&$&&!E&&m(this,Ze,"f").recommendCommands($,b)}m(this,Vt,"f")&&p._.includes(m(this,Vt,"f"))&&!g&&(m(this,or,"f")&&On(!0),this.showCompletionScript(),this.exit(0))}if(m(this,Xe,"f").hasDefaultCommand()&&!E){let $=m(this,Xe,"f").runCommand(null,this,l,0,s,h||y||s);return this[vi]($,c,!!n,!1)}if(g){m(this,or,"f")&&On(!0),t=[].concat(t);let $=t.slice(t.indexOf(`--${m(this,ir,"f").completionKey}`)+1);return m(this,ir,"f").getCompletion($,(T,I)=>{if(T)throw new Re(T.message);(I||[]).forEach(C=>{m(this,so,"f").log(C)}),this.exit(0)}),this[vi](p,!c,!!n,!1)}if(m(this,Ht,"f")||(h?(m(this,or,"f")&&On(!0),a=!0,this.showHelp("log"),this.exit(0)):y&&(m(this,or,"f")&&On(!0),a=!0,m(this,oe,"f").showVersion("log"),this.exit(0))),!a&&m(this,Z,"f").skipValidation.length>0&&(a=Object.keys(p).some($=>m(this,Z,"f").skipValidation.indexOf($)>=0&&p[$]===!0)),!a){if(l.error)throw new Re(l.error.message);if(!g){let $=this[ff](d,{},l.error);n||(f=ui(p,this,m(this,sr,"f").getMiddleware(),!0)),f=this[wy]($,f??p),Ne(f)&&!n&&(f=f.then(()=>ui(p,this,m(this,sr,"f").getMiddleware(),!1)))}}}catch(b){if(b instanceof Re)m(this,oe,"f").fail(b.message,b);else throw b}return this[vi](f??p,c,!!n,!0)}[ff](t,r,n,i){let s={...this.getDemandedOptions()};return a=>{if(n)throw new Re(n.message);m(this,Ze,"f").nonOptionCount(a),m(this,Ze,"f").requiredArguments(a,s);let c=!1;m(this,gi,"f")&&(c=m(this,Ze,"f").unknownCommands(a)),m(this,mi,"f")&&!c?m(this,Ze,"f").unknownArguments(a,t,r,!!i):m(this,yi,"f")&&m(this,Ze,"f").unknownArguments(a,t,{},!1,!1),m(this,Ze,"f").limitedChoices(a),m(this,Ze,"f").implications(a),m(this,Ze,"f").conflicting(a)}}[qy](){H(this,Ht,!0,"f")}[_i](t){if(typeof t=="string")m(this,Z,"f").key[t]=!0;else for(let r of t)m(this,Z,"f").key[r]=!0}};o(df,"YargsInstance");var pf=df;function uy(e){return!!e&&typeof e.getInternalMethods=="function"}o(uy,"isYargsInstance");var l$=Dy(Gl),Ly=l$;var Fy=o((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),Vy=o((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),Hy=o((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),Le={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]}},t6=Object.keys(Le.modifier),f$=Object.keys(Le.color),p$=Object.keys(Le.bgColor),r6=[...f$,...p$];function d$(){let e=new Map;for(let[t,r]of Object.entries(Le)){for(let[n,i]of Object.entries(r))Le[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=Le[n],e.set(i[0],i[1]);Object.defineProperty(Le,t,{value:r,enumerable:!1})}return Object.defineProperty(Le,"codes",{value:e,enumerable:!1}),Le.color.close="\x1B[39m",Le.bgColor.close="\x1B[49m",Le.color.ansi=Fy(),Le.color.ansi256=Vy(),Le.color.ansi16m=Hy(),Le.bgColor.ansi=Fy(10),Le.bgColor.ansi256=Vy(10),Le.bgColor.ansi16m=Hy(10),Object.defineProperties(Le,{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(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:o(t=>Le.rgbToAnsi256(...Le.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 c=t%36;r=Math.floor(t/36)/5,n=Math.floor(c/6)/5,i=c%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:o((t,r,n)=>Le.ansi256ToAnsi(Le.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:o(t=>Le.ansi256ToAnsi(Le.hexToAnsi256(t)),"value"),enumerable:!1}}),Le}o(d$,"assembleStyles");var h$=d$(),Or=h$;var mc=mt(require("process"),1),Uy=mt(require("os"),1),hf=mt(require("tty"),1);function cr(e,t=globalThis.Deno?globalThis.Deno.args:mc.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}o(cr,"hasFlag");var{env:Ue}=mc.default,hc;cr("no-color")||cr("no-colors")||cr("color=false")||cr("color=never")?hc=0:(cr("color")||cr("colors")||cr("color=true")||cr("color=always"))&&(hc=1);function m$(){if("FORCE_COLOR"in Ue)return Ue.FORCE_COLOR==="true"?1:Ue.FORCE_COLOR==="false"?0:Ue.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Ue.FORCE_COLOR,10),3)}o(m$,"envForceColor");function g$(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}o(g$,"translateLevel");function y$(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=m$();n!==void 0&&(hc=n);let i=r?hc:n;if(i===0)return 0;if(r){if(cr("color=16m")||cr("color=full")||cr("color=truecolor"))return 3;if(cr("color=256"))return 2}if("TF_BUILD"in Ue&&"AGENT_NAME"in Ue)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(Ue.TERM==="dumb")return s;if(mc.default.platform==="win32"){let a=Uy.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Ue)return"GITHUB_ACTIONS"in Ue||"GITEA_ACTIONS"in Ue?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Ue)||Ue.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Ue)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ue.TEAMCITY_VERSION)?1:0;if(Ue.COLORTERM==="truecolor"||Ue.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Ue){let a=Number.parseInt((Ue.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ue.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ue.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ue.TERM)||"COLORTERM"in Ue?1:s}o(y$,"_supportsColor");function By(e,t={}){let r=y$(e,{streamIsTTY:e&&e.isTTY,...t});return g$(r)}o(By,"createSupportsColor");var b$={stdout:By({isTTY:hf.default.isatty(1)}),stderr:By({isTTY:hf.default.isatty(2)})},Gy=b$;function zy(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,a="";do a+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return a+=e.slice(s),a}o(zy,"stringReplaceAll");function Zy(e,t,r,n){let i=0,s="";do{let a=e[n-1]==="\r";s+=e.slice(i,a?n-1:n)+t+(a?`\r
131
+ `)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+b))}},"requiredArguments"),s.unknownArguments=o(function(f,d,h,y,b=!0){var m;let P=e.getInternalMethods().getCommandInstance().getCommands(),$=[],T=e.getInternalMethods().getContext();if(Object.keys(f).forEach(I=>{!_y.includes(I)&&!Object.prototype.hasOwnProperty.call(h,I)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),I)&&!s.isValidAndSomeAliasIsNotNew(I,d)&&$.push(I)}),b&&(T.commands.length>0||P.length>0||y)&&f._.slice(T.commands.length).forEach(I=>{P.includes(""+I)||$.push(""+I)}),b){let C=((m=e.getDemandedCommands()._)===null||m===void 0?void 0:m.max)||0,ae=T.commands.length+C;ae<f._.length&&f._.slice(ae).forEach(J=>{J=String(J),!T.commands.includes(J)&&!$.includes(J)&&$.push(J)})}$.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",$.length,$.map(I=>I.trim()?I:`"${I}"`).join(", ")))},"unknownArguments"),s.unknownCommands=o(function(f){let d=e.getInternalMethods().getCommandInstance().getCommands(),h=[],y=e.getInternalMethods().getContext();return(y.commands.length>0||d.length>0)&&f._.slice(y.commands.length).forEach(b=>{d.includes(""+b)||h.push(""+b)}),h.length>0?(t.fail(i("Unknown command: %s","Unknown commands: %s",h.length,h.join(", "))),!0):!1},"unknownCommands"),s.isValidAndSomeAliasIsNotNew=o(function(f,d){if(!Object.prototype.hasOwnProperty.call(d,f))return!1;let h=e.parsed.newAliases;return[f,...d[f]].some(y=>!Object.prototype.hasOwnProperty.call(h,y)||!h[f])},"isValidAndSomeAliasIsNotNew"),s.limitedChoices=o(function(f){let d=e.getOptions(),h={};if(!Object.keys(d.choices).length)return;Object.keys(f).forEach(m=>{_y.indexOf(m)===-1&&Object.prototype.hasOwnProperty.call(d.choices,m)&&[].concat(f[m]).forEach(P=>{d.choices[m].indexOf(P)===-1&&P!==void 0&&(h[m]=(h[m]||[]).concat(P))})});let y=Object.keys(h);if(!y.length)return;let b=n("Invalid values:");y.forEach(m=>{b+=`
132
+ ${n("Argument: %s, Given: %s, Choices: %s",m,t.stringifiedValues(h[m]),t.stringifiedValues(d.choices[m]))}`}),t.fail(b)},"limitedChoices");let a={};s.implies=o(function(f,d){F("<string|object> [array|number|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{s.implies(h,f[h])}):(e.global(f),a[f]||(a[f]=[]),Array.isArray(d)?d.forEach(h=>s.implies(f,h)):($t(d,void 0,r),a[f].push(d)))},"implies"),s.getImplied=o(function(){return a},"getImplied");function c(p,f){let d=Number(f);return f=isNaN(d)?f:d,typeof f=="number"?f=p._.length>=f:f.match(/^--no-.+/)?(f=f.match(/^--no-(.+)/)[1],f=!Object.prototype.hasOwnProperty.call(p,f)):f=Object.prototype.hasOwnProperty.call(p,f),f}o(c,"keyExists"),s.implications=o(function(f){let d=[];if(Object.keys(a).forEach(h=>{let y=h;(a[h]||[]).forEach(b=>{let m=y,P=b;m=c(f,m),b=c(f,b),m&&!b&&d.push(` ${y} -> ${P}`)})}),d.length){let h=`${n("Implications failed:")}
133
+ `;d.forEach(y=>{h+=y}),t.fail(h)}},"implications");let u={};s.conflicts=o(function(f,d){F("<string|object> [array|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{s.conflicts(h,f[h])}):(e.global(f),u[f]||(u[f]=[]),Array.isArray(d)?d.forEach(h=>s.conflicts(f,h)):u[f].push(d))},"conflicts"),s.getConflicting=()=>u,s.conflicting=o(function(f){Object.keys(f).forEach(d=>{u[d]&&u[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(u).forEach(d=>{u[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"),s.recommendCommands=o(function(f,d){d=d.sort((m,P)=>P.length-m.length);let y=null,b=1/0;for(let m=0,P;(P=d[m])!==void 0;m++){let $=vy(f,P);$<=3&&$<b&&(b=$,y=P)}y&&t.fail(n("Did you mean %s?",y))},"recommendCommands"),s.reset=o(function(f){return a=On(a,d=>!f[d]),u=On(u,d=>!f[d]),s},"reset");let l=[];return s.freeze=o(function(){l.push({implied:a,conflicting:u})},"freeze"),s.unfreeze=o(function(){let f=l.pop();$t(f,void 0,r),{implied:a,conflicting:u}=f},"unfreeze"),s}o(Sy,"validation");var of=[],ys;function bs(e,t,r,n){ys=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let s=/\.json|\..*rc$/.test(e.extends),a=null;if(s)a=g$(t,e.extends);else try{a=require.resolve(e.extends)}catch{return e}m$(a),of.push(a),i=s?JSON.parse(ys.readFileSync(a,"utf8")):require(e.extends),delete e.extends,i=bs(i,ys.path.dirname(a),r,ys)}return of=[],r?Oy(i,e):Object.assign({},i,e)}o(bs,"applyExtends");function m$(e){if(of.indexOf(e)>-1)throw new Ne(`Circular extended configurations: '${e}'.`)}o(m$,"checkForCircularExtends");function g$(e,t){return ys.path.resolve(e,t)}o(g$,"getPathToDefaultConfig");function Oy(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}o(n,"isObject"),Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=Oy(e[i],t[i]):r[i]=t[i];return r}o(Oy,"mergeDeep");var H=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},g=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)},Xe,fi,vs,ir,Ut,cc,Pn,pi,uc,or,lc,sr,Dr,Gt,ar,fc,ao,lt,Z,pc,dc,zt,di,co,hi,xn,hc,ne,mi,gi,yi,oe,mc,Lr,Ze;function Hy(e){return(t=[],r=e.process.cwd(),n)=>{let i=new gf(t,r,n,e);return Object.defineProperty(i,"argv",{get:o(()=>i.parse(),"get"),enumerable:!0}),i.help(),i.version(),i}}o(Hy,"YargsFactory");var Ey=Symbol("copyDoubleDash"),Py=Symbol("copyDoubleDash"),sf=Symbol("deleteFromParserHintObject"),xy=Symbol("emitWarning"),$y=Symbol("freeze"),wy=Symbol("getDollarZero"),bi=Symbol("getParserConfiguration"),Ay=Symbol("getUsageConfiguration"),af=Symbol("guessLocale"),Iy=Symbol("guessVersion"),Cy=Symbol("parsePositionalNumbers"),cf=Symbol("pkgUp"),$n=Symbol("populateParserHintArray"),uo=Symbol("populateParserHintSingleValueDictionary"),uf=Symbol("populateParserHintArrayDictionary"),lf=Symbol("populateParserHintDictionary"),ff=Symbol("sanitizeKey"),pf=Symbol("setKey"),df=Symbol("unfreeze"),Ty=Symbol("validateAsync"),Ny=Symbol("getCommandInstance"),Ry=Symbol("getContext"),jy=Symbol("getHasOutput"),My=Symbol("getLoggerInstance"),ky=Symbol("getParseContext"),qy=Symbol("getUsageInstance"),Dy=Symbol("getValidationInstance"),gc=Symbol("hasParseCallback"),Ly=Symbol("isGlobalContext"),vi=Symbol("postProcess"),Fy=Symbol("rebase"),hf=Symbol("reset"),_s=Symbol("runYargsParserAndExecuteCommands"),mf=Symbol("runValidation"),Vy=Symbol("setHasOutput"),_i=Symbol("kTrackManuallySetKeys"),yf=class yf{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Xe.set(this,void 0),fi.set(this,void 0),vs.set(this,{commands:[],fullCommands:[]}),ir.set(this,null),Ut.set(this,null),cc.set(this,"show-hidden"),Pn.set(this,null),pi.set(this,!0),uc.set(this,{}),or.set(this,!0),lc.set(this,[]),sr.set(this,void 0),Dr.set(this,{}),Gt.set(this,!1),ar.set(this,null),fc.set(this,!0),ao.set(this,void 0),lt.set(this,""),Z.set(this,void 0),pc.set(this,void 0),dc.set(this,{}),zt.set(this,null),di.set(this,null),co.set(this,{}),hi.set(this,{}),xn.set(this,void 0),hc.set(this,!1),ne.set(this,void 0),mi.set(this,!1),gi.set(this,!1),yi.set(this,!1),oe.set(this,void 0),mc.set(this,{}),Lr.set(this,null),Ze.set(this,void 0),H(this,ne,i,"f"),H(this,xn,t,"f"),H(this,fi,r,"f"),H(this,pc,n,"f"),H(this,sr,new oc(this),"f"),this.$0=this[wy](),this[hf](),H(this,Xe,g(this,Xe,"f"),"f"),H(this,oe,g(this,oe,"f"),"f"),H(this,Ze,g(this,Ze,"f"),"f"),H(this,Z,g(this,Z,"f"),"f"),g(this,Z,"f").showHiddenOpt=g(this,cc,"f"),H(this,ao,this[Py](),"f")}addHelpOpt(t,r){let n="help";return F("[string|boolean] [string]",[t,r],arguments.length),g(this,ar,"f")&&(this[sf](g(this,ar,"f")),H(this,ar,null,"f")),t===!1&&r===void 0?this:(H(this,ar,typeof t=="string"?t:n,"f"),this.boolean(g(this,ar,"f")),this.describe(g(this,ar,"f"),r||g(this,oe,"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:g(this,cc,"f");return this.boolean(n),this.describe(n,r||g(this,oe,"f").deferY18nLookup("Show hidden options")),g(this,Z,"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[uf](this.alias.bind(this),"alias",t,r),this}array(t){return F("<array|string>",[t],arguments.length),this[$n]("array",t),this[_i](t),this}boolean(t){return F("<array|string>",[t],arguments.length),this[$n]("boolean",t),this[_i](t),this}check(t,r){return F("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>li(()=>t(n,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&g(this,oe,"f").fail(s.toString(),s):g(this,oe,"f").fail(g(this,ne,"f").y18n.__("Argument check failed: %s",t.toString())),n),s=>(g(this,oe,"f").fail(s.message?s.message:s.toString(),s),n)),!1,r),this}choices(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[uf](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 Ne("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 Ne("coerce callback must be provided");return g(this,Z,"f").key[t]=!0,g(this,sr,"f").addCoerceMiddleware((n,i)=>{let s;return Object.prototype.hasOwnProperty.call(n,t)?li(()=>(s=i.getAliases(),r(n[t])),c=>{n[t]=c;let u=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[t]&&u!==!0)for(let l of s[t])n[l]=c;return n},c=>{throw new Ne(c.message)}):n},t),this}conflicts(t,r){return F("<string|object> [string|array]",[t,r],arguments.length),g(this,Ze,"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=bs(t,g(this,fi,"f"),this[bi]()["deep-merge-config"]||!1,g(this,ne,"f")),g(this,Z,"f").configObjects=(g(this,Z,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||g(this,oe,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{g(this,Z,"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),H(this,Ut,t||g(this,Ut,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(g(this,Ut,"f"),r),n&&g(this,ir,"f").registerFunction(n),this}command(t,r,n,i,s,a){return F("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,s,a],arguments.length),g(this,Xe,"f").addHandler(t,r,n,i,s,a),this}commands(t,r,n,i,s,a){return this.command(t,r,n,i,s,a)}commandDir(t,r){F("<string> [object]",[t,r],arguments.length);let n=g(this,pc,"f")||g(this,ne,"f").require;return g(this,Xe,"f").addDirectory(t,n,g(this,ne,"f").getCallerFile(),r),this}count(t){return F("<array|string>",[t],arguments.length),this[$n]("count",t),this[_i](t),this}default(t,r,n){return F("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(Yl(t,g(this,ne,"f")),g(this,Z,"f").defaultDescription[t]=n),typeof r=="function"&&(Yl(t,g(this,ne,"f")),g(this,Z,"f").defaultDescription[t]||(g(this,Z,"f").defaultDescription[t]=g(this,oe,"f").functionDescription(r)),r=r.call()),this[uo](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),g(this,Z,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{$t(n,!0,g(this,ne,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?($t(n,!0,g(this,ne,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{$t(n,!0,g(this,ne,"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[uo](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return F("<string> [string|boolean]",[t,r],arguments.length),g(this,Z,"f").deprecatedOptions[t]=r,this}describe(t,r){return F("<object|string|array> [string]",[t,r],arguments.length),this[pf](t,!0),g(this,oe,"f").describe(t,r),this}detectLocale(t){return F("<boolean>",[t],arguments.length),H(this,pi,t,"f"),this}env(t){return F("[string|boolean]",[t],arguments.length),t===!1?delete g(this,Z,"f").envPrefix:g(this,Z,"f").envPrefix=t||"",this}epilogue(t){return F("<string>",[t],arguments.length),g(this,oe,"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)):g(this,oe,"f").example(t,r),this}exit(t,r){H(this,Gt,!0,"f"),H(this,Pn,r,"f"),g(this,or,"f")&&g(this,ne,"f").process.exit(t)}exitProcess(t=!0){return F("[boolean]",[t],arguments.length),H(this,or,t,"f"),this}fail(t){if(F("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new Ne("Invalid first argument. Expected function or boolean 'false'");return g(this,oe,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return F("<array> [function]",[t,r],arguments.length),r?g(this,ir,"f").getCompletion(t,r):new Promise((n,i)=>{g(this,ir,"f").getCompletion(t,(s,a)=>{s?i(s):n(a)})})}getDemandedOptions(){return F([],0),g(this,Z,"f").demandedOptions}getDemandedCommands(){return F([],0),g(this,Z,"f").demandedCommands}getDeprecatedOptions(){return F([],0),g(this,Z,"f").deprecatedOptions}getDetectLocale(){return g(this,pi,"f")}getExitProcess(){return g(this,or,"f")}getGroups(){return Object.assign({},g(this,Dr,"f"),g(this,hi,"f"))}getHelp(){if(H(this,Gt,!0,"f"),!g(this,oe,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[_s](g(this,xn,"f"),void 0,void 0,0,!0);if(Re(r))return r.then(()=>g(this,oe,"f").help())}let t=g(this,Xe,"f").runDefaultBuilderOn(this);if(Re(t))return t.then(()=>g(this,oe,"f").help())}return Promise.resolve(g(this,oe,"f").help())}getOptions(){return g(this,Z,"f")}getStrict(){return g(this,mi,"f")}getStrictCommands(){return g(this,gi,"f")}getStrictOptions(){return g(this,yi,"f")}global(t,r){return F("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?g(this,Z,"f").local=g(this,Z,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{g(this,Z,"f").local.includes(n)||g(this,Z,"f").local.push(n)}),this}group(t,r){F("<string|array> <string>",[t,r],arguments.length);let n=g(this,hi,"f")[r]||g(this,Dr,"f")[r];g(this,hi,"f")[r]&&delete g(this,hi,"f")[r];let i={};return g(this,Dr,"f")[r]=(n||[]).concat(t).filter(s=>i[s]?!1:i[s]=!0),this}hide(t){return F("<string>",[t],arguments.length),g(this,Z,"f").hiddenOptions.push(t),this}implies(t,r){return F("<string|object> [number|string|array]",[t,r],arguments.length),g(this,Ze,"f").implies(t,r),this}locale(t){return F("[string]",[t],arguments.length),t===void 0?(this[af](),g(this,ne,"f").y18n.getLocale()):(H(this,pi,!1,"f"),g(this,ne,"f").y18n.setLocale(t),this)}middleware(t,r,n){return g(this,sr,"f").addMiddleware(t,!!r,n)}nargs(t,r){return F("<string|object|array> [number]",[t,r],arguments.length),this[uo](this.nargs.bind(this),"narg",t,r),this}normalize(t){return F("<array|string>",[t],arguments.length),this[$n]("normalize",t),this}number(t){return F("<array|string>",[t],arguments.length),this[$n]("number",t),this[_i](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[_i](t),g(this,Lr,"f")&&(t==="version"||(r==null?void 0:r.alias)==="version")&&this[xy](['"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
+ `),void 0,"versionWarning"),g(this,Z,"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&&(g(this,Z,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let s=r.describe||r.description||r.desc,a=g(this,oe,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(a,t)||typeof s=="string")&&this.describe(t,s),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[$y](),typeof t>"u"&&(t=g(this,xn,"f")),typeof r=="object"&&(H(this,di,r,"f"),r=n),typeof r=="function"&&(H(this,zt,r,"f"),r=!1),r||H(this,xn,t,"f"),g(this,zt,"f")&&H(this,or,!1,"f");let i=this[_s](t,!!r),s=this.parsed;return g(this,ir,"f").setParsed(this.parsed),Re(i)?i.then(a=>(g(this,zt,"f")&&g(this,zt,"f").call(this,g(this,Pn,"f"),a,g(this,lt,"f")),a)).catch(a=>{throw g(this,zt,"f")&&g(this,zt,"f")(a,this.parsed.argv,g(this,lt,"f")),a}).finally(()=>{this[df](),this.parsed=s}):(g(this,zt,"f")&&g(this,zt,"f").call(this,g(this,Pn,"f"),i,g(this,lt,"f")),this[df](),this.parsed=s,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return Re(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(Re(i))throw new Ne(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return F("<object>",[t],arguments.length),H(this,dc,t,"f"),this}pkgConf(t,r){F("<string> [string]",[t,r],arguments.length);let n=null,i=this[cf](r||g(this,fi,"f"));return i[t]&&typeof i[t]=="object"&&(n=bs(i[t],r||g(this,fi,"f"),this[bi]()["deep-merge-config"]||!1,g(this,ne,"f")),g(this,Z,"f").configObjects=(g(this,Z,"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=On(r,(a,c)=>a==="type"&&!["string","number","boolean"].includes(c)?!1:n.includes(a));let i=g(this,vs,"f").fullCommands[g(this,vs,"f").fullCommands.length-1],s=i?g(this,Xe,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return oo(s).forEach(a=>{let c=s[a];Array.isArray(c)?c.indexOf(t)!==-1&&(r[a]=!0):c[t]&&!(a in r)&&(r[a]=c[t])}),this.group(t,g(this,oe,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return F("[boolean]",[t],arguments.length),H(this,hc,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"&&g(this,Z,"f").narg[t]?this:(this[uo](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,r){return F("[string] [string]",[t,r],arguments.length),t=t||this.$0,g(this,ao,"f").log(g(this,ir,"f").generateCompletionScript(t,r||g(this,Ut,"f")||"completion")),this}showHelp(t){if(F("[string|function]",[t],arguments.length),H(this,Gt,!0,"f"),!g(this,oe,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[_s](g(this,xn,"f"),void 0,void 0,0,!0);if(Re(n))return n.then(()=>{g(this,oe,"f").showHelp(t)}),this}let r=g(this,Xe,"f").runDefaultBuilderOn(this);if(Re(r))return r.then(()=>{g(this,oe,"f").showHelp(t)}),this}return g(this,oe,"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),g(this,oe,"f").showHelpOnFail(t,r),this}showVersion(t){return F("[string|function]",[t],arguments.length),g(this,oe,"f").showVersion(t),this}skipValidation(t){return F("<array|string>",[t],arguments.length),this[$n]("skipValidation",t),this}strict(t){return F("[boolean]",[t],arguments.length),H(this,mi,t!==!1,"f"),this}strictCommands(t){return F("[boolean]",[t],arguments.length),H(this,gi,t!==!1,"f"),this}strictOptions(t){return F("[boolean]",[t],arguments.length),H(this,yi,t!==!1,"f"),this}string(t){return F("<array|string>",[t],arguments.length),this[$n]("string",t),this[_i](t),this}terminalWidth(){return F([],0),g(this,ne,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return F("<object>",[t],arguments.length),H(this,pi,!1,"f"),g(this,ne,"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($t(t,null,g(this,ne,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new Ne(".usage() description must start with $0 if being used as alias for .command()")}else return g(this,oe,"f").usage(t),this}usageConfiguration(t){return F("<object>",[t],arguments.length),H(this,mc,t,"f"),this}version(t,r,n){let i="version";if(F("[boolean|string] [string] [string]",[t,r,n],arguments.length),g(this,Lr,"f")&&(this[sf](g(this,Lr,"f")),g(this,oe,"f").version(void 0),H(this,Lr,null,"f")),arguments.length===0)n=this[Iy](),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 H(this,Lr,typeof t=="string"?t:i,"f"),r=r||g(this,oe,"f").deferY18nLookup("Show version number"),g(this,oe,"f").version(n||void 0),this.boolean(g(this,Lr,"f")),this.describe(g(this,Lr,"f"),r),this}wrap(t){return F("<number|null|undefined>",[t],arguments.length),g(this,oe,"f").wrap(t),this}[(Xe=new WeakMap,fi=new WeakMap,vs=new WeakMap,ir=new WeakMap,Ut=new WeakMap,cc=new WeakMap,Pn=new WeakMap,pi=new WeakMap,uc=new WeakMap,or=new WeakMap,lc=new WeakMap,sr=new WeakMap,Dr=new WeakMap,Gt=new WeakMap,ar=new WeakMap,fc=new WeakMap,ao=new WeakMap,lt=new WeakMap,Z=new WeakMap,pc=new WeakMap,dc=new WeakMap,zt=new WeakMap,di=new WeakMap,co=new WeakMap,hi=new WeakMap,xn=new WeakMap,hc=new WeakMap,ne=new WeakMap,mi=new WeakMap,gi=new WeakMap,yi=new WeakMap,oe=new WeakMap,mc=new WeakMap,Lr=new WeakMap,Ze=new WeakMap,Ey)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[Py](){return{log:o((...t)=>{this[gc]()||console.log(...t),H(this,Gt,!0,"f"),g(this,lt,"f").length&&H(this,lt,g(this,lt,"f")+`
135
+ `,"f"),H(this,lt,g(this,lt,"f")+t.join(" "),"f")},"log"),error:o((...t)=>{this[gc]()||console.error(...t),H(this,Gt,!0,"f"),g(this,lt,"f").length&&H(this,lt,g(this,lt,"f")+`
136
+ `,"f"),H(this,lt,g(this,lt,"f")+t.join(" "),"f")},"error")}}[sf](t){oo(g(this,Z,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=g(this,Z,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete g(this,oe,"f").getDescriptions()[t]}[xy](t,r,n){g(this,uc,"f")[n]||(g(this,ne,"f").process.emitWarning(t,r),g(this,uc,"f")[n]=!0)}[$y](){g(this,lc,"f").push({options:g(this,Z,"f"),configObjects:g(this,Z,"f").configObjects.slice(0),exitProcess:g(this,or,"f"),groups:g(this,Dr,"f"),strict:g(this,mi,"f"),strictCommands:g(this,gi,"f"),strictOptions:g(this,yi,"f"),completionCommand:g(this,Ut,"f"),output:g(this,lt,"f"),exitError:g(this,Pn,"f"),hasOutput:g(this,Gt,"f"),parsed:this.parsed,parseFn:g(this,zt,"f"),parseContext:g(this,di,"f")}),g(this,oe,"f").freeze(),g(this,Ze,"f").freeze(),g(this,Xe,"f").freeze(),g(this,sr,"f").freeze()}[wy](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(g(this,ne,"f").process.argv()[0])?r=g(this,ne,"f").process.argv().slice(1,2):r=g(this,ne,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[Fy](g(this,fi,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),g(this,ne,"f").getEnv("_")&&g(this,ne,"f").getProcessArgvBin()===g(this,ne,"f").getEnv("_")&&(t=g(this,ne,"f").getEnv("_").replace(`${g(this,ne,"f").path.dirname(g(this,ne,"f").process.execPath())}/`,"")),t}[bi](){return g(this,dc,"f")}[Ay](){return g(this,mc,"f")}[af](){if(!g(this,pi,"f"))return;let t=g(this,ne,"f").getEnv("LC_ALL")||g(this,ne,"f").getEnv("LC_MESSAGES")||g(this,ne,"f").getEnv("LANG")||g(this,ne,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[Iy](){return this[cf]().version||"unknown"}[Cy](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)g(this,ne,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[cf](t){let r=t||"*";if(g(this,co,"f")[r])return g(this,co,"f")[r];let n={};try{let i=t||g(this,ne,"f").mainFilename;!t&&g(this,ne,"f").path.extname(i)&&(i=g(this,ne,"f").path.dirname(i));let s=g(this,ne,"f").findUp(i,(a,c)=>{if(c.includes("package.json"))return"package.json"});$t(s,void 0,g(this,ne,"f")),n=JSON.parse(g(this,ne,"f").readFileSync(s,"utf8"))}catch{}return g(this,co,"f")[r]=n||{},g(this,co,"f")[r]}[$n](t,r){r=[].concat(r),r.forEach(n=>{n=this[ff](n),g(this,Z,"f")[t].push(n)})}[uo](t,r,n,i){this[lf](t,r,n,i,(s,a,c)=>{g(this,Z,"f")[s][a]=c})}[uf](t,r,n,i){this[lf](t,r,n,i,(s,a,c)=>{g(this,Z,"f")[s][a]=(g(this,Z,"f")[s][a]||[]).concat(c)})}[lf](t,r,n,i,s){if(Array.isArray(n))n.forEach(a=>{t(a,i)});else if((a=>typeof a=="object")(n))for(let a of oo(n))t(a,n[a]);else s(r,this[ff](n),i)}[ff](t){return t==="__proto__"?"___proto___":t}[pf](t,r){return this[uo](this[pf].bind(this),"key",t,r),this}[df](){var t,r,n,i,s,a,c,u,l,p,f,d;let h=g(this,lc,"f").pop();$t(h,void 0,g(this,ne,"f"));let y;t=this,r=this,n=this,i=this,s=this,a=this,c=this,u=this,l=this,p=this,f=this,d=this,{options:{set value(b){H(t,Z,b,"f")}}.value,configObjects:y,exitProcess:{set value(b){H(r,or,b,"f")}}.value,groups:{set value(b){H(n,Dr,b,"f")}}.value,output:{set value(b){H(i,lt,b,"f")}}.value,exitError:{set value(b){H(s,Pn,b,"f")}}.value,hasOutput:{set value(b){H(a,Gt,b,"f")}}.value,parsed:this.parsed,strict:{set value(b){H(c,mi,b,"f")}}.value,strictCommands:{set value(b){H(u,gi,b,"f")}}.value,strictOptions:{set value(b){H(l,yi,b,"f")}}.value,completionCommand:{set value(b){H(p,Ut,b,"f")}}.value,parseFn:{set value(b){H(f,zt,b,"f")}}.value,parseContext:{set value(b){H(d,di,b,"f")}}.value}=h,g(this,Z,"f").configObjects=y,g(this,oe,"f").unfreeze(),g(this,Ze,"f").unfreeze(),g(this,Xe,"f").unfreeze(),g(this,sr,"f").unfreeze()}[Ty](t,r){return li(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[Ny].bind(this),getContext:this[Ry].bind(this),getHasOutput:this[jy].bind(this),getLoggerInstance:this[My].bind(this),getParseContext:this[ky].bind(this),getParserConfiguration:this[bi].bind(this),getUsageConfiguration:this[Ay].bind(this),getUsageInstance:this[qy].bind(this),getValidationInstance:this[Dy].bind(this),hasParseCallback:this[gc].bind(this),isGlobalContext:this[Ly].bind(this),postProcess:this[vi].bind(this),reset:this[hf].bind(this),runValidation:this[mf].bind(this),runYargsParserAndExecuteCommands:this[_s].bind(this),setHasOutput:this[Vy].bind(this)}}[Ny](){return g(this,Xe,"f")}[Ry](){return g(this,vs,"f")}[jy](){return g(this,Gt,"f")}[My](){return g(this,ao,"f")}[ky](){return g(this,di,"f")||{}}[qy](){return g(this,oe,"f")}[Dy](){return g(this,Ze,"f")}[gc](){return!!g(this,zt,"f")}[Ly](){return g(this,fc,"f")}[vi](t,r,n,i){return n||Re(t)||(r||(t=this[Ey](t)),(this[bi]()["parse-positional-numbers"]||this[bi]()["parse-positional-numbers"]===void 0)&&(t=this[Cy](t)),i&&(t=ui(t,this,g(this,sr,"f").getMiddleware(),!1))),t}[hf](t={}){H(this,Z,g(this,Z,"f")||{},"f");let r={};r.local=g(this,Z,"f").local||[],r.configObjects=g(this,Z,"f").configObjects||[];let n={};r.local.forEach(a=>{n[a]=!0,(t[a]||[]).forEach(c=>{n[c]=!0})}),Object.assign(g(this,hi,"f"),Object.keys(g(this,Dr,"f")).reduce((a,c)=>{let u=g(this,Dr,"f")[c].filter(l=>!(l in n));return u.length>0&&(a[c]=u),a},{})),H(this,Dr,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(a=>{r[a]=(g(this,Z,"f")[a]||[]).filter(c=>!n[c])}),s.forEach(a=>{r[a]=On(g(this,Z,"f")[a],c=>!n[c])}),r.envPrefix=g(this,Z,"f").envPrefix,H(this,Z,r,"f"),H(this,oe,g(this,oe,"f")?g(this,oe,"f").reset(n):my(this,g(this,ne,"f")),"f"),H(this,Ze,g(this,Ze,"f")?g(this,Ze,"f").reset(n):Sy(this,g(this,oe,"f"),g(this,ne,"f")),"f"),H(this,Xe,g(this,Xe,"f")?g(this,Xe,"f").reset():py(g(this,oe,"f"),g(this,Ze,"f"),g(this,sr,"f"),g(this,ne,"f")),"f"),g(this,ir,"f")||H(this,ir,by(this,g(this,oe,"f"),g(this,Xe,"f"),g(this,ne,"f")),"f"),g(this,sr,"f").reset(),H(this,Ut,null,"f"),H(this,lt,"","f"),H(this,Pn,null,"f"),H(this,Gt,!1,"f"),this.parsed=!1,this}[Fy](t,r){return g(this,ne,"f").path.relative(t,r)}[_s](t,r,n,i=0,s=!1){let a=!!n||s;t=t||g(this,xn,"f"),g(this,Z,"f").__=g(this,ne,"f").y18n.__,g(this,Z,"f").configuration=this[bi]();let c=!!g(this,Z,"f").configuration["populate--"],u=Object.assign({},g(this,Z,"f").configuration,{"populate--":!0}),l=g(this,ne,"f").Parser.detailed(t,Object.assign({},g(this,Z,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),p=Object.assign(l.argv,g(this,di,"f")),f,d=l.aliases,h=!1,y=!1;Object.keys(p).forEach(b=>{b===g(this,ar,"f")&&p[b]?h=!0:b===g(this,Lr,"f")&&p[b]&&(y=!0)}),p.$0=this.$0,this.parsed=l,i===0&&g(this,oe,"f").clearCachedHelpMessage();try{if(this[af](),r)return this[vi](p,c,!!n,!1);g(this,ar,"f")&&[g(this,ar,"f")].concat(d[g(this,ar,"f")]||[]).filter(T=>T.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),h=!0),H(this,fc,!1,"f");let b=g(this,Xe,"f").getCommands(),m=g(this,ir,"f").completionKey in p,P=h||m||s;if(p._.length){if(b.length){let $;for(let T=i||0,I;p._[T]!==void 0;T++)if(I=String(p._[T]),b.includes(I)&&I!==g(this,Ut,"f")){let C=g(this,Xe,"f").runCommand(I,this,l,T+1,s,h||y||s);return this[vi](C,c,!!n,!1)}else if(!$&&I!==g(this,Ut,"f")){$=I;break}!g(this,Xe,"f").hasDefaultCommand()&&g(this,hc,"f")&&$&&!P&&g(this,Ze,"f").recommendCommands($,b)}g(this,Ut,"f")&&p._.includes(g(this,Ut,"f"))&&!m&&(g(this,or,"f")&&En(!0),this.showCompletionScript(),this.exit(0))}if(g(this,Xe,"f").hasDefaultCommand()&&!P){let $=g(this,Xe,"f").runCommand(null,this,l,0,s,h||y||s);return this[vi]($,c,!!n,!1)}if(m){g(this,or,"f")&&En(!0),t=[].concat(t);let $=t.slice(t.indexOf(`--${g(this,ir,"f").completionKey}`)+1);return g(this,ir,"f").getCompletion($,(T,I)=>{if(T)throw new Ne(T.message);(I||[]).forEach(C=>{g(this,ao,"f").log(C)}),this.exit(0)}),this[vi](p,!c,!!n,!1)}if(g(this,Gt,"f")||(h?(g(this,or,"f")&&En(!0),a=!0,this.showHelp("log"),this.exit(0)):y&&(g(this,or,"f")&&En(!0),a=!0,g(this,oe,"f").showVersion("log"),this.exit(0))),!a&&g(this,Z,"f").skipValidation.length>0&&(a=Object.keys(p).some($=>g(this,Z,"f").skipValidation.indexOf($)>=0&&p[$]===!0)),!a){if(l.error)throw new Ne(l.error.message);if(!m){let $=this[mf](d,{},l.error);n||(f=ui(p,this,g(this,sr,"f").getMiddleware(),!0)),f=this[Ty]($,f??p),Re(f)&&!n&&(f=f.then(()=>ui(p,this,g(this,sr,"f").getMiddleware(),!1)))}}}catch(b){if(b instanceof Ne)g(this,oe,"f").fail(b.message,b);else throw b}return this[vi](f??p,c,!!n,!0)}[mf](t,r,n,i){let s={...this.getDemandedOptions()};return a=>{if(n)throw new Ne(n.message);g(this,Ze,"f").nonOptionCount(a),g(this,Ze,"f").requiredArguments(a,s);let c=!1;g(this,gi,"f")&&(c=g(this,Ze,"f").unknownCommands(a)),g(this,mi,"f")&&!c?g(this,Ze,"f").unknownArguments(a,t,r,!!i):g(this,yi,"f")&&g(this,Ze,"f").unknownArguments(a,t,{},!1,!1),g(this,Ze,"f").limitedChoices(a),g(this,Ze,"f").implications(a),g(this,Ze,"f").conflicting(a)}}[Vy](){H(this,Gt,!0,"f")}[_i](t){if(typeof t=="string")g(this,Z,"f").key[t]=!0;else for(let r of t)g(this,Z,"f").key[r]=!0}};o(yf,"YargsInstance");var gf=yf;function dy(e){return!!e&&typeof e.getInternalMethods=="function"}o(dy,"isYargsInstance");var y$=Hy(Kl),By=y$;var Uy=o((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),Gy=o((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),zy=o((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),Le={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]}},l6=Object.keys(Le.modifier),b$=Object.keys(Le.color),v$=Object.keys(Le.bgColor),f6=[...b$,...v$];function _$(){let e=new Map;for(let[t,r]of Object.entries(Le)){for(let[n,i]of Object.entries(r))Le[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=Le[n],e.set(i[0],i[1]);Object.defineProperty(Le,t,{value:r,enumerable:!1})}return Object.defineProperty(Le,"codes",{value:e,enumerable:!1}),Le.color.close="\x1B[39m",Le.bgColor.close="\x1B[49m",Le.color.ansi=Uy(),Le.color.ansi256=Gy(),Le.color.ansi16m=zy(),Le.bgColor.ansi=Uy(10),Le.bgColor.ansi256=Gy(10),Le.bgColor.ansi16m=zy(10),Object.defineProperties(Le,{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(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:o(t=>Le.rgbToAnsi256(...Le.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 c=t%36;r=Math.floor(t/36)/5,n=Math.floor(c/6)/5,i=c%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:o((t,r,n)=>Le.ansi256ToAnsi(Le.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:o(t=>Le.ansi256ToAnsi(Le.hexToAnsi256(t)),"value"),enumerable:!1}}),Le}o(_$,"assembleStyles");var S$=_$(),Or=S$;var bc=mt(require("process"),1),Wy=mt(require("os"),1),bf=mt(require("tty"),1);function cr(e,t=globalThis.Deno?globalThis.Deno.args:bc.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}o(cr,"hasFlag");var{env:Ue}=bc.default,yc;cr("no-color")||cr("no-colors")||cr("color=false")||cr("color=never")?yc=0:(cr("color")||cr("colors")||cr("color=true")||cr("color=always"))&&(yc=1);function O$(){if("FORCE_COLOR"in Ue)return Ue.FORCE_COLOR==="true"?1:Ue.FORCE_COLOR==="false"?0:Ue.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Ue.FORCE_COLOR,10),3)}o(O$,"envForceColor");function E$(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}o(E$,"translateLevel");function P$(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=O$();n!==void 0&&(yc=n);let i=r?yc:n;if(i===0)return 0;if(r){if(cr("color=16m")||cr("color=full")||cr("color=truecolor"))return 3;if(cr("color=256"))return 2}if("TF_BUILD"in Ue&&"AGENT_NAME"in Ue)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(Ue.TERM==="dumb")return s;if(bc.default.platform==="win32"){let a=Wy.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Ue)return"GITHUB_ACTIONS"in Ue||"GITEA_ACTIONS"in Ue?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Ue)||Ue.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Ue)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ue.TEAMCITY_VERSION)?1:0;if(Ue.COLORTERM==="truecolor"||Ue.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Ue){let a=Number.parseInt((Ue.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ue.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ue.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ue.TERM)||"COLORTERM"in Ue?1:s}o(P$,"_supportsColor");function Zy(e,t={}){let r=P$(e,{streamIsTTY:e&&e.isTTY,...t});return E$(r)}o(Zy,"createSupportsColor");var x$={stdout:Zy({isTTY:bf.default.isatty(1)}),stderr:Zy({isTTY:bf.default.isatty(2)})},Ky=x$;function Yy(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,a="";do a+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return a+=e.slice(s),a}o(Yy,"stringReplaceAll");function Qy(e,t,r,n){let i=0,s="";do{let a=e[n-1]==="\r";s+=e.slice(i,a?n-1:n)+t+(a?`\r
137
137
  `:`
138
138
  `)+r,i=n+1,n=e.indexOf(`
139
- `,i)}while(n!==-1);return s+=e.slice(i),s}o(Zy,"stringEncaseCRLFWithFirstIndex");var{stdout:Wy,stderr:Ky}=Gy,mf=Symbol("GENERATOR"),uo=Symbol("STYLER"),_s=Symbol("IS_EMPTY"),Yy=["ansi","ansi","ansi256","ansi16m"],lo=Object.create(null),v$=o((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=Wy?Wy.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),bf=class bf{constructor(t){return Qy(t)}};o(bf,"Chalk");var gc=bf,Qy=o(e=>{let t=o((...r)=>r.join(" "),"chalk");return v$(t,e),Object.setPrototypeOf(t,Ss.prototype),t},"chalkFactory");function Ss(e){return Qy(e)}o(Ss,"createChalk");Object.setPrototypeOf(Ss.prototype,Function.prototype);for(let[e,t]of Object.entries(Or))lo[e]={get(){let r=yc(this,yf(t.open,t.close,this[uo]),this[_s]);return Object.defineProperty(this,e,{value:r}),r}};lo.visible={get(){let e=yc(this,this[uo],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var gf=o((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?Or[r].ansi16m(...n):t==="ansi256"?Or[r].ansi256(Or.rgbToAnsi256(...n)):Or[r].ansi(Or.rgbToAnsi(...n)):e==="hex"?gf("rgb",t,r,...Or.hexToRgb(...n)):Or[r][e](...n),"getModelAnsi"),_$=["rgb","hex","ansi256"];for(let e of _$){lo[e]={get(){let{level:r}=this;return function(...n){let i=yf(gf(e,Yy[r],"color",...n),Or.color.close,this[uo]);return yc(this,i,this[_s])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);lo[t]={get(){let{level:r}=this;return function(...n){let i=yf(gf(e,Yy[r],"bgColor",...n),Or.bgColor.close,this[uo]);return yc(this,i,this[_s])}}}}var S$=Object.defineProperties(()=>{},{...lo,level:{enumerable:!0,get(){return this[mf].level},set(e){this[mf].level=e}}}),yf=o((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"),yc=o((e,t,r)=>{let n=o((...i)=>O$(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,S$),n[mf]=e,n[uo]=t,n[_s]=r,n},"createBuilder"),O$=o((e,t)=>{if(e.level<=0||!t)return e[_s]?"":t;let r=e[uo];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=zy(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
140
- `);return s!==-1&&(t=Zy(t,i,n,s)),n+t+i},"applyStyle");Object.defineProperties(Ss.prototype,lo);var p6=Ss(),d6=Ss({level:Ky?Ky.level:0});var Fr=new gc;function Os(e,t,r){console.log(r!==void 0&&r!==t?`${Fr.yellow(`${e}:`.padEnd(20))}${Fr.magenta(t)}`:`${`${e}:`.padEnd(20)}${t}`)}o(Os,"logVariable");function ur(e){console.log(`[INFO] ${e}`)}o(ur,"logInfo");function $n(e){console.log(Fr.green(`[SUCCESS] ${e}`))}o($n,"logSuccess");function Ps(e,t){e instanceof Error?(console.log(Fr.red(`[ERROR] ${t||e.message}`)),process.env.VERBOSE&&console.error(e)):console.log(Fr.red(`[ERROR] ${e}`))}o(Ps,"logError");function bc(e){console.log(Fr.bgYellow(`==== ${e} ====`))}o(bc,"logBanner");var Jy=mt(require("fs"));function fo(){return"0.8.2"}o(fo,"getVersion");var $6=mt(eb());var vf=Symbol("options_key");function Fe(e){return(t,r)=>{var n,i;if(e!=null){let s={...Reflect.getMetadata(vf,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(vf,s,t)}}}o(Fe,"YargOption");function tb(e){let t=Reflect.getMetadata(vf,e.prototype);if(!t)throw new Error(`Options for ${e.name} were not defined`);return t}o(tb,"getYargsOption");function vc(e){return async t=>t.options(P$(e)).middleware(async r=>await E$(e,r),!0)}o(vc,"getBuilder");function P$(e){return Object.entries(tb(e)).reduce((t,[r,n])=>(t[r]=Object.fromEntries(Object.entries(n).filter(([i])=>!["envAlias","default"].includes(i))),t),{})}o(P$,"getYargsOptions");async function E$(e,t){let r=new e;for(let[n,i]of Object.entries(tb(e)))r[n]=t[n]??i.default;return r}o(E$,"loadYargsConfig");var t1=mt(um());var CP="Schema",TP="Enum",RP="Body",NP="Param",jP="Response",MP="ErrorResponse",ha="z.void()",xu="z.instanceof(Blob)",$u="z.enum",wu={bindings:["z"],from:"zod"};var ct={input:"",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],tsNamespaces:!0,importPath:"ts",configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"},acl:{outputFileNameSuffix:"acl",namespaceSuffix:"Acl"}},standalone:!1,baseUrl:"",schemaSuffix:CP,enumSuffix:TP,withDefaultValues:!0,extractEnums:!0,replaceOptionalWithNullish:!1,removeOperationPrefixEndingWith:"Controller_",axiosRequestConfig:!1,infiniteQueries:!1,invalidateQueryOptions:!0};var kP={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Ambiguous",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I Am a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",424:"Failed Dependency",428:"Precondition Required",429:"Too Many Requests",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"},qP={"invalid-schema":"Invalid OpenAPI Schemas","invalid-operation-id":"Invalid Operation IDs","missing-path-parameter":"Missing Path Parameters","not-allowed-inline-enum":"Not Allowed Inline Enums","not-allowed-circular-schema":"Not Allowed Circular Schemas","missing-acl-condition-property":"Missing x-acl Condition Properties","missing-status-code":"Missing HTTP Status Codes","invalid-status-code":"Invalid HTTP Status Codes"};var lm={"Content-Type":"application/json",Accept:"application/json"},DP="data",fm="axios",Bn="config",Qr="AxiosRequestConfig",Au={defaultImport:fm,bindings:[Qr],from:"axios"};var LP=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),Un=o(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var dn=Symbol.for("@ts-pattern/matcher"),vq=Symbol.for("@ts-pattern/isVariadic"),Cu="@ts-pattern/anonymous-select-key",pm=o(e=>!!(e&&typeof e=="object"),"r"),Iu=o(e=>e&&!!e[dn],"i"),en=o((e,t,r)=>{if(Iu(e)){let n=e[dn](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(pm(e)){if(!pm(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],s=[];for(let a of e.keys()){let c=e[a];Iu(c)&&c[vq]?s.push(c):s.length?i.push(c):n.push(c)}if(s.length){if(s.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),c=i.length===0?[]:t.slice(-i.length),u=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,p)=>en(l,a[p],r))&&i.every((l,p)=>en(l,c[p],r))&&(s.length===0||en(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>en(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Iu(s=i)&&s[dn]().matcherType==="optional")&&en(i,t[n],r);var s})}return Object.is(t,e)},"s"),Kn=o(e=>{var t,r,n;return pm(e)?Iu(e)?(t=(r=(n=e[dn]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?ga(e,Kn):ga(Object.values(e),Kn):[]},"o"),ga=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function mr(e){return Object.assign(e,{optional:o(()=>_q(e),"optional"),and:o(t=>Ve(e,t),"and"),or:o(t=>Sq(e,t),"or"),select:o(t=>t===void 0?FP(e):FP(t,e),"select")})}o(mr,"u");function _q(e){return mr({[dn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(Kn(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:en(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>Kn(e),"getSelectionKeys"),matcherType:"optional"})})}o(_q,"h");function Ve(...e){return mr({[dn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>en(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>ga(e,Kn),"getSelectionKeys"),matcherType:"and"})})}o(Ve,"m");function Sq(...e){return mr({[dn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return ga(e,Kn).forEach(i=>n(i,void 0)),{matched:e.some(i=>en(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>ga(e,Kn),"getSelectionKeys"),matcherType:"or"})})}o(Sq,"d");function Oe(e){return{[dn]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(Oe,"p");function FP(...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 mr({[dn]:()=>({match:o(n=>{let i={[t??Cu]:n};return{matched:r===void 0||en(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??Cu].concat(r===void 0?[]:Kn(r)),"getSelectionKeys")})})}o(FP,"y");function Jr(e){return typeof e=="number"}o(Jr,"v");function Gn(e){return typeof e=="string"}o(Gn,"b");function zn(e){return typeof e=="bigint"}o(zn,"w");var z9=mr(Oe(function(e){return!0}));var Zn=o(e=>Object.assign(mr(e),{startsWith:o(t=>{return Zn(Ve(e,(r=t,Oe(n=>Gn(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return Zn(Ve(e,(r=t,Oe(n=>Gn(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>Zn(Ve(e,(r=>Oe(n=>Gn(n)&&n.length>=r))(t))),"minLength"),length:o(t=>Zn(Ve(e,(r=>Oe(n=>Gn(n)&&n.length===r))(t))),"length"),maxLength:o(t=>Zn(Ve(e,(r=>Oe(n=>Gn(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return Zn(Ve(e,(r=t,Oe(n=>Gn(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return Zn(Ve(e,(r=t,Oe(n=>Gn(n)&&!!n.match(r)))));var r},"regex")}),"j"),Z9=Zn(Oe(Gn)),Xr=o(e=>Object.assign(mr(e),{between:o((t,r)=>Xr(Ve(e,((n,i)=>Oe(s=>Jr(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Xr(Ve(e,(r=>Oe(n=>Jr(n)&&n<r))(t))),"lt"),gt:o(t=>Xr(Ve(e,(r=>Oe(n=>Jr(n)&&n>r))(t))),"gt"),lte:o(t=>Xr(Ve(e,(r=>Oe(n=>Jr(n)&&n<=r))(t))),"lte"),gte:o(t=>Xr(Ve(e,(r=>Oe(n=>Jr(n)&&n>=r))(t))),"gte"),int:o(()=>Xr(Ve(e,Oe(t=>Jr(t)&&Number.isInteger(t)))),"int"),finite:o(()=>Xr(Ve(e,Oe(t=>Jr(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>Xr(Ve(e,Oe(t=>Jr(t)&&t>0))),"positive"),negative:o(()=>Xr(Ve(e,Oe(t=>Jr(t)&&t<0))),"negative")}),"x"),W9=Xr(Oe(Jr)),Wn=o(e=>Object.assign(mr(e),{between:o((t,r)=>Wn(Ve(e,((n,i)=>Oe(s=>zn(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Wn(Ve(e,(r=>Oe(n=>zn(n)&&n<r))(t))),"lt"),gt:o(t=>Wn(Ve(e,(r=>Oe(n=>zn(n)&&n>r))(t))),"gt"),lte:o(t=>Wn(Ve(e,(r=>Oe(n=>zn(n)&&n<=r))(t))),"lte"),gte:o(t=>Wn(Ve(e,(r=>Oe(n=>zn(n)&&n>=r))(t))),"gte"),positive:o(()=>Wn(Ve(e,Oe(t=>zn(t)&&t>0))),"positive"),negative:o(()=>Wn(Ve(e,Oe(t=>zn(t)&&t<0))),"negative")}),"A"),K9=Wn(Oe(zn)),Y9=mr(Oe(function(e){return typeof e=="boolean"})),Q9=mr(Oe(function(e){return typeof e=="symbol"})),J9=mr(Oe(function(e){return e==null})),X9=mr(Oe(function(e){return e!=null}));var gm=class gm extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};o(gm,"W");var dm=gm,hm={matched:!1,value:void 0};function Et(e){return new mm(e,hm)}o(Et,"z");var ma=class ma{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let s=!1,a={},c=o((l,p)=>{s=!0,a[l]=p},"a"),u=!n.some(l=>en(l,this.input,c))||i&&!i(this.input)?hm:{matched:!0,value:r(s?Cu in a?a[Cu]:a:this.input,this.input)};return new ma(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new ma(this.input,n?{matched:!0,value:r(this.input,this.input)}:hm)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new dm(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(ma,"I");var mm=ma;var ym=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];var bm=2,VP=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],HP=["query","header","path"],Yn=["get","put","post","delete","options","head","patch","trace"],BP=["string","number","integer","boolean"],ya=["allOf","anyOf","oneOf"];function Qn(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(Qn,"pick");var He=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Jn=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),UP=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),pt=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),GP=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),vm=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),zP=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),Oq=o(e=>{var n;let t=e.reduce((i,s)=>({...i,[s]:(i[s]??0)+1}),{});return(n=Object.entries(t).sort((i,s)=>i[1]===s[1]?s[0].length-i[0].length:s[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),_m=o(e=>{let t=e.map(He).map(ZP).map(r=>Pq(r)).flat();return Oq(t)},"getMostCommonAdjacentCombinationSplit"),ZP=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),WP=o(e=>ZP(e).join(" "),"camelToSpaceSeparated"),Pq=o((e,t=["dto","by","for","of","in","to","and","with"])=>{var n;let r=[];for(let i=0;i<e.length;i++)if(!t.includes(e[i].toLowerCase()))for(let s=i+1;s<=e.length;s++)t.includes((n=e[s-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,s).join(""));return r},"getAdjacentStringCombinations"),KP=o((e,t)=>{let r=t.replace(/es$|s$/g,""),n=new RegExp(`(${Jn(r)}|${He(r)})[a-z]*(?=$|[A-Z])`,"g");return e.replace(n,"")},"removeWord");function Xn(e){return GP(e)}o(Xn,"formatTag");function Hi(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return Xn(r??t.defaultTag)}o(Hi,"getOperationTag");function YP(e,t){let r={};for(let n in e.paths){let i=e.paths[n],s=Qn(i,Yn);for(let a in s){let c=s[a];if(!c||c.deprecated&&!t.withDeprecatedEndpoints)continue;let u=t.splitByTags?Hi(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(YP,"getOperationsByTag");var JP=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),Bi=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Qo=o(e=>Bi(e).split("/").at(-1),"getSchemaNameByRef");function Pe(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(Pe,"isReferenceObject");function Pm(e){let t=Eq(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return pt(t)}o(Pm,"normalizeString");function XP(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(XP,"wrapWithQuotesIfNeeded");function eE(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(eE,"unwrapQuotesIfNeeded");function Eq(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(Eq,"prefixStringStartingWithNumberIfNeeded");function Em(e){let t=e.replaceAll("_","#");return pt(t.replaceAll("-","_")).replaceAll("#","_")}o(Em,"pathParamToVariableName");var Ui=o(e=>BP.includes(e),"isPrimitiveType");function tE(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}o(tE,"escapeControlCharacters");function tn(e){return e.includes("application/")&&e.includes("json")||VP.includes(e)||e.includes("text/")}o(tn,"isParamMediaTypeAllowed");function Tu(e){return e>=200&&e<300}o(Tu,"isMainResponseStatus");function Ru(e){return!(e>=200&&e<300)}o(Ru,"isErrorStatus");function Nu(e){return["application/json","application/pdf"].includes(e)}o(Nu,"isMediaTypeAllowed");function Sm({path:e,method:t,operation:r,options:n,tag:i,keepOperationTag:s,keepOperationPrefix:a}){let c=`${t}${$q(e)}`,u=r.operationId?Un(r.operationId):c;if(n.removeOperationPrefixEndingWith&&a)u=u.split(n.removeOperationPrefixEndingWith).map((p,f)=>f===0?p:He(p)).join("");else if(n.removeOperationPrefixEndingWith&&!a){let l=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);u=u.replace(l,"")}if(n.tsNamespaces&&!s){let l=KP(u,i);ym.includes(l)||(u=l)}return ym.includes(u)?c:u}o(Sm,"getOperationName");function ba({operationsByTag:e,...t}){let{operation:r,options:n}=t,i=n.splitByTags?Hi(r,n):n.defaultTag,s=o(a=>{let c=Sm({...t,tag:i,keepOperationTag:a});if(e[i].filter(l=>Sm({...t,operation:l,tag:i,keepOperationTag:a})===c).length===1)return c},"operationName");return s()??s(!0)??Sm({...t,tag:i,keepOperationTag:!0,keepOperationPrefix:!0})}o(ba,"getUniqueOperationName");function rE(e,t,r){let n=[];for(let i in e.paths){let s=e.paths[i],a=Qn(s,Yn);for(let c in a){let u=a[c];if(!u||u.deprecated&&!r.withDeprecatedEndpoints)continue;let l=ba({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(rE,"getUniqueOperationNamesWithoutSplitByTags");var QP=/({\w+})/g,xq=/[^\w\-]+/g;function $q(e){e=He(UP(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(QP)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(QP,"")}By${He(r.slice(1,-1))}`}return e.replace(xq,"_")}o($q,"pathToVariableName");var Om=/{(\b\w+(?:-\w+)*\b)}/g;function nE(e){let t=e.match(Om);return t===null?e.replaceAll(Om,":$1"):(t.forEach(r=>{let n=Em(r.replaceAll(Om,":$1"));e=e.replaceAll(r,n)}),e)}o(nE,"replaceHyphenatedPath");function Zt(e){return!Pe(e)}o(Zt,"isSchemaObject");function ju(e){return e.type==="array"}o(ju,"isArraySchemaObject");function iE(e){if(!e.allOf)throw new Error("Function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,s)=>{if(wq(s)){let a=s.required;i[0].push(...a??[])}else i[1].push(s);return i},[[],[]]),n={properties:t.reduce((i,s)=>(i[s]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:o((i,s)=>{if(Pe(i)){let a=s(i.$ref);a&&n.required.forEach(c=>{var u;n.properties[c]=((u=a==null?void 0:a.properties)==null?void 0:u[c])??{}})}else{let a=i.properties??{};n.required.forEach(c=>{a[c]&&(n.properties[c]=a[c]??{})})}},"patchRequiredSchemaInLoop")}}o(iE,"inferRequiredSchema");var wq=o(e=>!Pe(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var va="AppRestClient",Mu={query:"AppQueryOptions",infiniteQuery:"AppInfiniteQueryOptions",mutation:"AppMutationOptions"},xm="src/data",$m="@/data",oE="@/util/rest/clients/app-rest-client",sE="@/types/react-query";var ku={reactQueryTypes:{fileName:"react-query.types",extension:"ts"},restClient:{fileName:"rest-client",extension:"ts"},restInterceptor:{fileName:"rest-interceptor",extension:"ts"}},qu={fileName:"app-rest-client",extension:"ts"},Aq="QueryModule",ei={queryModuleEnum:Aq,optionsType:"InvalidateQueryOptions",functionName:"invalidateQueries"},Du={fileName:"invalidateQueries",extension:"ts"};var Wt=o((...e)=>[...new Set(e.flat())],"getUniqueArray");var rn=o((e,t)=>vm(He(Pm(e)),t),"getZodSchemaName"),wm=o((e,t,r)=>vm(He(Pm(e)),`${t}${r}`),"getEnumZodSchemaName"),Lt=o(e=>!e.startsWith("z."),"isNamedZodSchema"),aE=o(e=>e.startsWith($u),"isEnumZodSchema"),Gi=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),Lu=o(e=>pt(`${e}_${RP}`),"getBodyZodSchemaName"),cE=o((e,t)=>pt(`${e}_${t}${NP}`),"getParamZodSchemaName"),Iq=o(e=>pt(`${e}${jP}`),"getMainResponseZodSchemaName"),Cq=o((e,t)=>pt(`${e}_${t}_${MP}`),"getErrorResponseZodSchemaName");function Fu({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=Gi(t,r,n);return!Tu(i)&&e!=="default"&&Ru(i)?Cq(s,e):Iq(s)}o(Fu,"getResponseZodSchemaName");function _a(e){return["minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","default","example"].filter(n=>e[n]).reduce((n,i)=>[...n,`${He(WP(i))}: \`${e[i]}\``],[])}o(_a,"getSchemaDescriptions");function Ct(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(Pe(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(ya.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s)(n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))!==!0&&Ct(a,{data:r,onSchema:n})}if(i.properties)for(let[s,a]of Object.entries(i.properties))n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})!==!0&&Ct(a,t);if(i.additionalProperties&&typeof i.additionalProperties=="object"){if(n({type:"additionalProperties",parentSchema:e,schema:i.additionalProperties,data:r})===!0)return;Ct(i.additionalProperties,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;Ct(s,t)}}o(Ct,"iterateSchema");var Sa=o((e,t)=>zP(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),uE=o((e,t)=>Lt(t)?`${e.options.tsNamespaces?`${Ge({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),zi=o((e,t,r)=>{if(!Lt(t))return t===ha?"void":t;let n=e.getTagByZodSchemaName(t);return`${e.options.tsNamespaces&&n!==r?`${Ge({type:"models",tag:n,options:e.options})}.`:""}${Sa(t,e.options)}`},"getImportedZodSchemaInferedTypeName");function lE(e){var t;return e.isEnum?"enum":((t=e.schemaObj)==null?void 0:t.type)??"object"}o(lE,"getZodSchemaType");function fE(e){if(e.schemaObj)return[e.schemaObj.description,..._a(e.schemaObj).join(". ")].filter(Boolean)}o(fE,"getZodSchemaDescription");function pE(e,t,r){var n;if(Pe(t)){let i=e.getZodSchemaNameByRef(t.$ref);return i?zi(e,i,r):void 0}if(ju(t)){if(!Pe(t.items))return`${((n=t.items)==null?void 0:n.type)??"unknown"}[]`;let i=e.getZodSchemaNameByRef(t.items.$ref);return i?`${zi(e,i,r)}[]`:void 0}if(ya.some(i=>i in t&&t[i])){let i=t.allOf??t.anyOf??t.oneOf??[];if(i.length>0)return pE(e,i[0],r)}return t.type}o(pE,"getType");function dE(e,t,r){if(!t.schemaObj)return[];let n="[0]",i="[key]",s={},a=o(c=>{var l;if(c.type==="reference")return!0;if(c.type==="composite")return;let u=[...((l=c.data)==null?void 0:l.pathSegments)??[]];if(c.type==="array"?u.push(n):c.type==="property"?u.push(c.propertyName):c.type==="additionalProperties"&&u.push(i),c.schema&&u[u.length-1]!==n){let p=e.resolveObject(c.schema),f=[p.description,..._a(p)].filter(Boolean),d=u.join(".");s[d]&&"type"in c.schema&&c.schema.type==="object"||(delete s[d],s[d]={type:pE(e,c.schema,r)??"unknown",description:f.join(". ")})}return Ct(c.schema,{data:{pathSegments:[...u]},onSchema:a}),!0},"onSchema");return"allOf"in t.schemaObj&&t.schemaObj.allOf&&t.schemaObj.allOf.forEach(c=>{if(Pe(c)){let u=e.resolveObject(c);Ct(u,{data:{pathSegments:[]},onSchema:a})}}),Ct(t.schemaObj,{data:{pathSegments:[]},onSchema:a}),s}o(dE,"getZodSchemaPropertyDescriptions");function ti({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=Am({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=Am({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>Sa(u,e.options),"getEntityName"),options:e.options});return Tq(e.options,a,c)}o(ti,"getModelsImports");function hE({tag:e,endpoints:t,options:r}){return Am({type:"endpoints",tag:e,entities:t,getTag:o(n=>Pa(n,r),"getTag"),getEntityName:Oa,options:r})}o(hE,"getEndpointsImports");function mE({tags:e,entityName:t,getAliasEntityName:r,type:n,options:i}){let s=new Map;return e.forEach(a=>{let c=`${t}${r?` as ${r(a)}`:""}`;s.has(a)?i.tsNamespaces||s.get(a).bindings.push(c):s.set(a,{bindings:[i.tsNamespaces?Ge({type:n,tag:a,options:i}):c],from:`${Jo(i)}${Vu({type:n,tag:a,includeTagDir:!0,options:i})}`})}),Array.from(s.values())}o(mE,"getEntityImports");function Jo(e){let t=$m;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${xm}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${xm}`,"g"),$m)),`${t}/`.replace(/\/\//g,"/")}o(Jo,"getImportPath");function Am({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))s.tsNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.tsNamespaces?Ge({type:e,tag:u,options:s}):i(c)],from:`${l?"./":Jo(s)}${Vu({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(Am,"getImports");function Tq(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.tsNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Wt(n.bindings)}))}o(Tq,"mergeImports");function Ea({fileName:e,extension:t}){return`${e}.${t}`}o(Ea,"getFileNameWithExtension");function gE({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Jn(t)}/`:""}${Jn(t)}.${i}`:i}o(gE,"getTagFileNameWithoutExtension");function Vu(...e){return gE(...e)}o(Vu,"getTagImportPath");function Hu(...e){return`${gE(...e)}.ts`}o(Hu,"getTagFileName");var Ge=o(({type:e,tag:t,options:r})=>`${He(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");function yE(e){return e.standalone?`${Jo(e)}${qu.fileName}`:oE}o(yE,"getAppRestClientImportPath");function bE(e){return e.standalone?`${Jo(e)}${ku.reactQueryTypes.fileName}`:sE}o(bE,"getQueryTypesImportPath");function vE(e){return`${Jo(e)}${Du.fileName}`}o(vE,"getInvalidateQueriesImportPath");function _E(e){return Et(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(_E,"primitiveTypeToTsType");var Kt={query:"useQuery",infiniteQuery:"useInfiniteQuery",mutation:"useMutation",queryClient:"useQueryClient"},SE={bindings:[Kt.query,Kt.infiniteQuery,Kt.mutation,Kt.queryClient],from:"@tanstack/react-query"},xa={pageParamName:"page"},Bu={pageParamName:"page",totalItemsName:"totalItems",limitParamName:"limit"},$a="moduleName";var Oa=o(e=>Jn(pt(e.operationName)),"getEndpointName");function OE(e,t){return`${t.tsNamespaces?`${Ge({type:"endpoints",tag:Pa(e,t),options:t})}.`:""}${Oa(e)}`}o(OE,"getImportedEndpointName");var PE=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function Pa(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return Xn(r??t.defaultTag)}o(Pa,"getEndpointTag");function wa(e,t,r){let n=t.parameters.map(i=>{var a,c,u,l;let s="string";if(Lt(i.zodSchema))s=zi(e,i.zodSchema);else if((a=i.parameterObject)!=null&&a.schema&&Zt(i.parameterObject.schema)){let p=(u=(c=i.parameterObject)==null?void 0:c.schema)==null?void 0:u.type;p&&Ui(p)&&(s=_E(p))}return{name:Un(i.name),type:s,paramType:i.type,required:((l=i.parameterObject)==null?void 0:l.required)??!0,parameterObject:i.parameterObject,bodyObject:i.bodyObject}});return r!=null&&r.includeFileParam&&t.fileUpload&&n.push({name:"file",type:"File",paramType:"Body",required:!0,parameterObject:void 0,bodyObject:void 0}),n.sort((i,s)=>{if(i.required===s.required){let a=["Path","Body","Query","Header"];return a.indexOf(i.paramType)-a.indexOf(s.paramType)}return i.required?-1:1}).filter(i=>!(r!=null&&r.removePageParam)||i.name!==xa.pageParamName).map(i=>({...i,name:r!=null&&r.replacePageParam&&i.name===xa.pageParamName?"pageParam":i.name}))}o(wa,"mapEndpointParamsToFunctionParams");function EE(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=LP(i.name)?i.name:`"${i.name}"`,a=Un(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==lm["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==lm.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=Un(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(EE,"getEndpointConfig");function Aa(e){return{type:"invalid-schema",message:e}}o(Aa,"getInvalidSchemaError");function xE(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(xE,"getInvalidOperationIdError");function $E(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o($E,"getMissingPathParameterError");function wE(e){return{type:"not-allowed-inline-enum",message:e}}o(wE,"getNotAllowedInlineEnumError");function AE(e){return{type:"not-allowed-circular-schema",message:e}}o(AE,"getNotAllowedCircularSchemaError");function IE(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${Tm(t,r)}`}}o(IE,"getMissingAclConditionPropertyError");function Cm(e,t,r){return{type:"missing-status-code",message:`Missing HTTP status code ${Im(e)} in operation ${Tm(t,r)}`}}o(Cm,"getMissingStatusCodeError");function CE(e,t,r){return{type:"invalid-status-code",message:`Operation ${Tm(t,r)} expected HTTP status code ${Im(e.expected)} but received ${Im(e.received)}`}}o(CE,"getInvalidStatusCodeError");function Tm(e,t){return e.operationId??`${t.method} ${t.path}`}o(Tm,"getOperationDescriptor");function Im(e){return`${e} (${kP[e]})`}o(Im,"getStatusCodeDescription");function TE(e){return e.reduce((t,r)=>({...t,[r.type]:[...t[r.type]??[],r.message]}),{})}o(TE,"groupByType");function nn({schema:e,meta:t,options:r}){let n=[];Et(e.type).with("string",()=>n.push(jq(e))).with("number","integer",()=>n.push(kq(e))).with("array",()=>n.push(qq(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&r.withDescription&&([`
139
+ `,i)}while(n!==-1);return s+=e.slice(i),s}o(Qy,"stringEncaseCRLFWithFirstIndex");var{stdout:Jy,stderr:Xy}=Ky,vf=Symbol("GENERATOR"),lo=Symbol("STYLER"),Ss=Symbol("IS_EMPTY"),eb=["ansi","ansi","ansi256","ansi16m"],fo=Object.create(null),$$=o((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=Jy?Jy.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),Of=class Of{constructor(t){return tb(t)}};o(Of,"Chalk");var vc=Of,tb=o(e=>{let t=o((...r)=>r.join(" "),"chalk");return $$(t,e),Object.setPrototypeOf(t,Os.prototype),t},"chalkFactory");function Os(e){return tb(e)}o(Os,"createChalk");Object.setPrototypeOf(Os.prototype,Function.prototype);for(let[e,t]of Object.entries(Or))fo[e]={get(){let r=_c(this,Sf(t.open,t.close,this[lo]),this[Ss]);return Object.defineProperty(this,e,{value:r}),r}};fo.visible={get(){let e=_c(this,this[lo],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var _f=o((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?Or[r].ansi16m(...n):t==="ansi256"?Or[r].ansi256(Or.rgbToAnsi256(...n)):Or[r].ansi(Or.rgbToAnsi(...n)):e==="hex"?_f("rgb",t,r,...Or.hexToRgb(...n)):Or[r][e](...n),"getModelAnsi"),w$=["rgb","hex","ansi256"];for(let e of w$){fo[e]={get(){let{level:r}=this;return function(...n){let i=Sf(_f(e,eb[r],"color",...n),Or.color.close,this[lo]);return _c(this,i,this[Ss])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);fo[t]={get(){let{level:r}=this;return function(...n){let i=Sf(_f(e,eb[r],"bgColor",...n),Or.bgColor.close,this[lo]);return _c(this,i,this[Ss])}}}}var A$=Object.defineProperties(()=>{},{...fo,level:{enumerable:!0,get(){return this[vf].level},set(e){this[vf].level=e}}}),Sf=o((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"),_c=o((e,t,r)=>{let n=o((...i)=>I$(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,A$),n[vf]=e,n[lo]=t,n[Ss]=r,n},"createBuilder"),I$=o((e,t)=>{if(e.level<=0||!t)return e[Ss]?"":t;let r=e[lo];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Yy(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
140
+ `);return s!==-1&&(t=Qy(t,i,n,s)),n+t+i},"applyStyle");Object.defineProperties(Os.prototype,fo);var S6=Os(),O6=Os({level:Xy?Xy.level:0});var Fr=new vc;function Es(e,t,r){console.log(r!==void 0&&r!==t?`${Fr.yellow(`${e}:`.padEnd(20))}${Fr.magenta(t)}`:`${`${e}:`.padEnd(20)}${t}`)}o(Es,"logVariable");function ur(e){console.log(`[INFO] ${e}`)}o(ur,"logInfo");function wn(e){console.log(Fr.green(`[SUCCESS] ${e}`))}o(wn,"logSuccess");function Ps(e,t){e instanceof Error?(console.log(Fr.red(`[ERROR] ${t||e.message}`)),process.env.VERBOSE&&console.error(e)):console.log(Fr.red(`[ERROR] ${e}`))}o(Ps,"logError");function Sc(e){console.log(Fr.bgYellow(`==== ${e} ====`))}o(Sc,"logBanner");var rb=mt(require("fs"));function po(){return"0.9.0"}o(po,"getVersion");var M6=mt(ib());var Ef=Symbol("options_key");function Fe(e){return(t,r)=>{var n,i;if(e!=null){let s={...Reflect.getMetadata(Ef,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(Ef,s,t)}}}o(Fe,"YargOption");function ob(e){let t=Reflect.getMetadata(Ef,e.prototype);if(!t)throw new Error(`Options for ${e.name} were not defined`);return t}o(ob,"getYargsOption");function Oc(e){return async t=>t.options(C$(e)).middleware(async r=>await T$(e,r),!0)}o(Oc,"getBuilder");function C$(e){return Object.entries(ob(e)).reduce((t,[r,n])=>(t[r]=Object.fromEntries(Object.entries(n).filter(([i])=>!["envAlias","default"].includes(i))),t),{})}o(C$,"getYargsOptions");async function T$(e,t){let r=new e;for(let[n,i]of Object.entries(ob(e)))r[n]=t[n]??i.default;return r}o(T$,"loadYargsConfig");var c1=mt(dm());var jE="Schema",ME="Enum",kE="Body",qE="Param",DE="Response",LE="ErrorResponse",ma="z.void()",Au="z.instanceof(Blob)",ga="z.enum",Iu="z.string()",Cu={bindings:["z"],from:"zod"};var ct={input:"",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],tsNamespaces:!0,importPath:"ts",configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"},acl:{outputFileNameSuffix:"acl",namespaceSuffix:"Acl"}},standalone:!1,baseUrl:"",schemaSuffix:jE,enumSuffix:ME,withDefaultValues:!0,extractEnums:!0,replaceOptionalWithNullish:!1,removeOperationPrefixEndingWith:"Controller_",axiosRequestConfig:!1,infiniteQueries:!1,invalidateQueryOptions:!0};var FE={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Ambiguous",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I Am a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",424:"Failed Dependency",428:"Precondition Required",429:"Too Many Requests",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"},VE={"invalid-schema":"Invalid OpenAPI Schemas","invalid-operation-id":"Invalid Operation IDs","missing-path-parameter":"Missing Path Parameters","not-allowed-inline-enum":"Not Allowed Inline Enums","not-allowed-circular-schema":"Not Allowed Circular Schemas","missing-acl-condition-property":"Missing x-acl Condition Properties","missing-status-code":"Missing HTTP Status Codes","invalid-status-code":"Invalid HTTP Status Codes"};var Yt={query:"useQuery",infiniteQuery:"useInfiniteQuery",mutation:"useMutation",queryClient:"useQueryClient"},HE={bindings:[Yt.query,Yt.infiniteQuery,Yt.mutation,Yt.queryClient],from:"@tanstack/react-query"},ya={pageParamName:"page"},Tu={pageParamName:"page",totalItemsName:"totalItems",limitParamName:"limit"},ba="moduleName";var hm={"Content-Type":"application/json",Accept:"application/json"},BE="data",mm="axios",Un="config",Qr="AxiosRequestConfig",Nu={defaultImport:mm,bindings:[Qr],from:"axios"};var UE=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),Gn=o(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");function Ee(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(Ee,"isReferenceObject");function Ct(e){return!Ee(e)}o(Ct,"isSchemaObject");function Ru(e){return e.type==="array"}o(Ru,"isArraySchemaObject");function GE(e){if(!e.allOf)throw new Error("Function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,s)=>{if($q(s)){let a=s.required;i[0].push(...a??[])}else i[1].push(s);return i},[[],[]]),n={properties:t.reduce((i,s)=>(i[s]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:o((i,s)=>{if(Ee(i)){let a=s(i.$ref);a&&n.required.forEach(c=>{var u;n.properties[c]=((u=a==null?void 0:a.properties)==null?void 0:u[c])??{}})}else{let a=i.properties??{};n.required.forEach(c=>{a[c]&&(n.properties[c]=a[c]??{})})}},"patchRequiredSchemaInLoop")}}o(GE,"inferRequiredSchema");var $q=o(e=>!Ee(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var dn=Symbol.for("@ts-pattern/matcher"),wq=Symbol.for("@ts-pattern/isVariadic"),Mu="@ts-pattern/anonymous-select-key",gm=o(e=>!!(e&&typeof e=="object"),"r"),ju=o(e=>e&&!!e[dn],"i"),en=o((e,t,r)=>{if(ju(e)){let n=e[dn](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(gm(e)){if(!gm(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],s=[];for(let a of e.keys()){let c=e[a];ju(c)&&c[wq]?s.push(c):s.length?i.push(c):n.push(c)}if(s.length){if(s.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),c=i.length===0?[]:t.slice(-i.length),u=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,p)=>en(l,a[p],r))&&i.every((l,p)=>en(l,c[p],r))&&(s.length===0||en(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>en(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||ju(s=i)&&s[dn]().matcherType==="optional")&&en(i,t[n],r);var s})}return Object.is(t,e)},"s"),Yn=o(e=>{var t,r,n;return gm(e)?ju(e)?(t=(r=(n=e[dn]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?_a(e,Yn):_a(Object.values(e),Yn):[]},"o"),_a=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function mr(e){return Object.assign(e,{optional:o(()=>Aq(e),"optional"),and:o(t=>Ve(e,t),"and"),or:o(t=>Iq(e,t),"or"),select:o(t=>t===void 0?zE(e):zE(t,e),"select")})}o(mr,"u");function Aq(e){return mr({[dn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(Yn(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:en(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>Yn(e),"getSelectionKeys"),matcherType:"optional"})})}o(Aq,"h");function Ve(...e){return mr({[dn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>en(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>_a(e,Yn),"getSelectionKeys"),matcherType:"and"})})}o(Ve,"m");function Iq(...e){return mr({[dn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return _a(e,Yn).forEach(i=>n(i,void 0)),{matched:e.some(i=>en(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>_a(e,Yn),"getSelectionKeys"),matcherType:"or"})})}o(Iq,"d");function Oe(e){return{[dn]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(Oe,"p");function zE(...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 mr({[dn]:()=>({match:o(n=>{let i={[t??Mu]:n};return{matched:r===void 0||en(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??Mu].concat(r===void 0?[]:Yn(r)),"getSelectionKeys")})})}o(zE,"y");function Jr(e){return typeof e=="number"}o(Jr,"v");function zn(e){return typeof e=="string"}o(zn,"b");function Zn(e){return typeof e=="bigint"}o(Zn,"w");var iU=mr(Oe(function(e){return!0}));var Wn=o(e=>Object.assign(mr(e),{startsWith:o(t=>{return Wn(Ve(e,(r=t,Oe(n=>zn(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return Wn(Ve(e,(r=t,Oe(n=>zn(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>Wn(Ve(e,(r=>Oe(n=>zn(n)&&n.length>=r))(t))),"minLength"),length:o(t=>Wn(Ve(e,(r=>Oe(n=>zn(n)&&n.length===r))(t))),"length"),maxLength:o(t=>Wn(Ve(e,(r=>Oe(n=>zn(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return Wn(Ve(e,(r=t,Oe(n=>zn(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return Wn(Ve(e,(r=t,Oe(n=>zn(n)&&!!n.match(r)))));var r},"regex")}),"j"),oU=Wn(Oe(zn)),Xr=o(e=>Object.assign(mr(e),{between:o((t,r)=>Xr(Ve(e,((n,i)=>Oe(s=>Jr(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Xr(Ve(e,(r=>Oe(n=>Jr(n)&&n<r))(t))),"lt"),gt:o(t=>Xr(Ve(e,(r=>Oe(n=>Jr(n)&&n>r))(t))),"gt"),lte:o(t=>Xr(Ve(e,(r=>Oe(n=>Jr(n)&&n<=r))(t))),"lte"),gte:o(t=>Xr(Ve(e,(r=>Oe(n=>Jr(n)&&n>=r))(t))),"gte"),int:o(()=>Xr(Ve(e,Oe(t=>Jr(t)&&Number.isInteger(t)))),"int"),finite:o(()=>Xr(Ve(e,Oe(t=>Jr(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>Xr(Ve(e,Oe(t=>Jr(t)&&t>0))),"positive"),negative:o(()=>Xr(Ve(e,Oe(t=>Jr(t)&&t<0))),"negative")}),"x"),sU=Xr(Oe(Jr)),Kn=o(e=>Object.assign(mr(e),{between:o((t,r)=>Kn(Ve(e,((n,i)=>Oe(s=>Zn(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Kn(Ve(e,(r=>Oe(n=>Zn(n)&&n<r))(t))),"lt"),gt:o(t=>Kn(Ve(e,(r=>Oe(n=>Zn(n)&&n>r))(t))),"gt"),lte:o(t=>Kn(Ve(e,(r=>Oe(n=>Zn(n)&&n<=r))(t))),"lte"),gte:o(t=>Kn(Ve(e,(r=>Oe(n=>Zn(n)&&n>=r))(t))),"gte"),positive:o(()=>Kn(Ve(e,Oe(t=>Zn(t)&&t>0))),"positive"),negative:o(()=>Kn(Ve(e,Oe(t=>Zn(t)&&t<0))),"negative")}),"A"),aU=Kn(Oe(Zn)),cU=mr(Oe(function(e){return typeof e=="boolean"})),uU=mr(Oe(function(e){return typeof e=="symbol"})),lU=mr(Oe(function(e){return e==null})),fU=mr(Oe(function(e){return e!=null}));var _m=class _m extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};o(_m,"W");var ym=_m,bm={matched:!1,value:void 0};function Pt(e){return new vm(e,bm)}o(Pt,"z");var va=class va{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let s=!1,a={},c=o((l,p)=>{s=!0,a[l]=p},"a"),u=!n.some(l=>en(l,this.input,c))||i&&!i(this.input)?bm:{matched:!0,value:r(s?Mu in a?a[Mu]:a:this.input,this.input)};return new va(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new va(this.input,n?{matched:!0,value:r(this.input,this.input)}:bm)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new ym(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(va,"I");var vm=va;var Sm=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];var Om=2,ZE=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],WE=["query","header","path"],Qn=["get","put","post","delete","options","head","patch","trace"],KE=["string","number","integer","boolean"],Sa=["allOf","anyOf","oneOf"];function Jn(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(Jn,"pick");var He=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Xn=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),YE=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),pt=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),QE=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),Em=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),JE=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),Cq=o(e=>{var n;let t=e.reduce((i,s)=>({...i,[s]:(i[s]??0)+1}),{});return(n=Object.entries(t).sort((i,s)=>i[1]===s[1]?s[0].length-i[0].length:s[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),Pm=o(e=>{let t=e.map(He).map(XE).map(r=>Tq(r)).flat();return Cq(t)},"getMostCommonAdjacentCombinationSplit"),XE=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),eP=o(e=>XE(e).join(" "),"camelToSpaceSeparated"),Tq=o((e,t=["dto","by","for","of","in","to","and","with"])=>{var n;let r=[];for(let i=0;i<e.length;i++)if(!t.includes(e[i].toLowerCase()))for(let s=i+1;s<=e.length;s++)t.includes((n=e[s-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,s).join(""));return r},"getAdjacentStringCombinations"),tP=o((e,t)=>{let r=t.replace(/es$|s$/g,""),n=new RegExp(`(${Xn(r)}|${He(r)})[a-z]*(?=$|[A-Z])`,"g");return e.replace(n,"")},"removeWord"),rP=o(e=>e!==void 0,"isString");function ei(e){return QE(e)}o(ei,"formatTag");function Hi(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return ei(r??t.defaultTag)}o(Hi,"getOperationTag");function nP(e,t){let r={};for(let n in e.paths){let i=e.paths[n],s=Jn(i,Qn);for(let a in s){let c=s[a];if(!c||c.deprecated&&!t.withDeprecatedEndpoints)continue;let u=t.splitByTags?Hi(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(nP,"getOperationsByTag");var oP=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),Bi=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Jo=o(e=>Bi(e).split("/").at(-1),"getSchemaNameByRef");function wm(e){let t=Nq(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return pt(t)}o(wm,"normalizeString");function sP(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(sP,"wrapWithQuotesIfNeeded");function aP(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(aP,"unwrapQuotesIfNeeded");function Nq(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(Nq,"prefixStringStartingWithNumberIfNeeded");function Am(e){let t=e.replaceAll("_","#");return pt(t.replaceAll("-","_")).replaceAll("#","_")}o(Am,"pathParamToVariableName");var Ui=o(e=>KE.includes(e),"isPrimitiveType");function cP(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}o(cP,"escapeControlCharacters");function tn(e){return e.includes("application/")&&e.includes("json")||ZE.includes(e)||e.includes("text/")}o(tn,"isParamMediaTypeAllowed");function ku(e){return e>=200&&e<300}o(ku,"isMainResponseStatus");function qu(e){return!(e>=200&&e<300)}o(qu,"isErrorStatus");function Du(e){return["application/json","application/pdf"].includes(e)}o(Du,"isMediaTypeAllowed");function xm({path:e,method:t,operation:r,options:n,tag:i,keepOperationTag:s,keepOperationPrefix:a}){let c=`${t}${jq(e)}`,u=r.operationId?Gn(r.operationId):c;if(n.removeOperationPrefixEndingWith&&a)u=u.split(n.removeOperationPrefixEndingWith).map((p,f)=>f===0?p:He(p)).join("");else if(n.removeOperationPrefixEndingWith&&!a){let l=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);u=u.replace(l,"")}if(n.tsNamespaces&&!s){let l=tP(u,i);Sm.includes(l)||(u=l)}return Sm.includes(u)?c:u}o(xm,"getOperationName");function Oa({operationsByTag:e,...t}){let{operation:r,options:n}=t,i=n.splitByTags?Hi(r,n):n.defaultTag,s=o(a=>{let c=xm({...t,tag:i,keepOperationTag:a});if(e[i].filter(l=>xm({...t,operation:l,tag:i,keepOperationTag:a})===c).length===1)return c},"operationName");return s()??s(!0)??xm({...t,tag:i,keepOperationTag:!0,keepOperationPrefix:!0})}o(Oa,"getUniqueOperationName");function uP(e,t,r){let n=[];for(let i in e.paths){let s=e.paths[i],a=Jn(s,Qn);for(let c in a){let u=a[c];if(!u||u.deprecated&&!r.withDeprecatedEndpoints)continue;let l=Oa({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(uP,"getUniqueOperationNamesWithoutSplitByTags");var iP=/({\w+})/g,Rq=/[^\w\-]+/g;function jq(e){e=He(YE(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(iP)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(iP,"")}By${He(r.slice(1,-1))}`}return e.replace(Rq,"_")}o(jq,"pathToVariableName");var $m=/{(\b\w+(?:-\w+)*\b)}/g;function lP(e){let t=e.match($m);return t===null?e.replaceAll($m,":$1"):(t.forEach(r=>{let n=Am(r.replaceAll($m,":$1"));e=e.replaceAll(r,n)}),e)}o(lP,"replaceHyphenatedPath");var fP=o(e=>{let t=e["x-enumNames"],r=Array.isArray(t)&&t.length>0,n=!!e.schema&&Ct(e.schema)&&e.schema.type==="string";return r&&n},"isSortingParameterObject");var Ea="AppRestClient",Lu={query:"AppQueryOptions",infiniteQuery:"AppInfiniteQueryOptions",mutation:"AppMutationOptions"},Im="src/data",Cm="@/data",pP="@/util/rest/clients/app-rest-client",dP="@/types/react-query";var Fu={reactQueryTypes:{fileName:"react-query.types",extension:"ts"},restClient:{fileName:"rest-client",extension:"ts"},restInterceptor:{fileName:"rest-interceptor",extension:"ts"}},Vu={fileName:"app-rest-client",extension:"ts"},Mq="QueryModule",ti={queryModuleEnum:Mq,optionsType:"InvalidateQueryOptions",functionName:"invalidateQueries"},Hu={fileName:"invalidateQueries",extension:"ts"},Pa={name:"zodExtended",properties:{sortingString:"sortingString"}},Bu={fileName:"zodExtended",extension:"ts"};var Qt=o((...e)=>[...new Set(e.flat())],"getUniqueArray");function Tt(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(Ee(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(Sa.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s)(n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))!==!0&&Tt(a,{data:r,onSchema:n})}if(i.properties)for(let[s,a]of Object.entries(i.properties))n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})!==!0&&Tt(a,t);if(i.additionalProperties&&typeof i.additionalProperties=="object"){if(n({type:"additionalProperties",parentSchema:e,schema:i.additionalProperties,data:r})===!0)return;Tt(i.additionalProperties,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;Tt(s,t)}}o(Tt,"iterateSchema");var rn=o((e,t)=>Em(He(wm(e)),t),"getZodSchemaName"),xa=o((e,t,r)=>Em(He(wm(e)),`${t}${r}`),"getEnumZodSchemaName"),Ft=o(e=>!e.startsWith("z."),"isNamedZodSchema"),hP=o(e=>e.startsWith(ga),"isEnumZodSchema"),Gi=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),Uu=o(e=>pt(`${e}_${kE}`),"getBodyZodSchemaName"),mP=o((e,t)=>pt(`${e}_${t}${qE}`),"getParamZodSchemaName"),kq=o(e=>pt(`${e}${DE}`),"getMainResponseZodSchemaName"),qq=o((e,t)=>pt(`${e}_${t}_${LE}`),"getErrorResponseZodSchemaName");function Gu({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=Gi(t,r,n);return!ku(i)&&e!=="default"&&qu(i)?qq(s,e):kq(s)}o(Gu,"getResponseZodSchemaName");function $a(e){return["minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","default","example"].filter(n=>e[n]).reduce((n,i)=>[...n,`${He(eP(i))}: \`${e[i]}\``],[])}o($a,"getSchemaDescriptions");var wa=o((e,t)=>JE(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),gP=o((e,t)=>Ft(t)?`${e.options.tsNamespaces?`${Ge({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),zi=o((e,t,r)=>{if(!Ft(t))return t===ma?"void":t;let n=e.getTagByZodSchemaName(t);return`${e.options.tsNamespaces&&n!==r?`${Ge({type:"models",tag:n,options:e.options})}.`:""}${wa(t,e.options)}`},"getImportedZodSchemaInferedTypeName");function yP(e){var t;return e.isEnum?"enum":((t=e.schemaObj)==null?void 0:t.type)??"object"}o(yP,"getZodSchemaType");function bP(e){if(e.schemaObj)return[e.schemaObj.description,...$a(e.schemaObj).join(". ")].filter(Boolean)}o(bP,"getZodSchemaDescription");function vP(e,t,r){var n;if(Ee(t)){let i=e.getZodSchemaNameByRef(t.$ref);return i?zi(e,i,r):void 0}if(Ru(t)){if(!Ee(t.items))return`${((n=t.items)==null?void 0:n.type)??"unknown"}[]`;let i=e.getZodSchemaNameByRef(t.items.$ref);return i?`${zi(e,i,r)}[]`:void 0}if(Sa.some(i=>i in t&&t[i])){let i=t.allOf??t.anyOf??t.oneOf??[];if(i.length>0)return vP(e,i[0],r)}return t.type}o(vP,"getType");function _P(e,t,r){if(!t.schemaObj)return[];let n="[0]",i="[key]",s={},a=o(c=>{var l;if(c.type==="reference")return!0;if(c.type==="composite")return;let u=[...((l=c.data)==null?void 0:l.pathSegments)??[]];if(c.type==="array"?u.push(n):c.type==="property"?u.push(c.propertyName):c.type==="additionalProperties"&&u.push(i),c.schema&&u[u.length-1]!==n){let p=e.resolveObject(c.schema),f=[p.description,...$a(p)].filter(Boolean),d=u.join(".");s[d]&&"type"in c.schema&&c.schema.type==="object"||(delete s[d],s[d]={type:vP(e,c.schema,r)??"unknown",description:f.join(". ")})}return Tt(c.schema,{data:{pathSegments:[...u]},onSchema:a}),!0},"onSchema");return"allOf"in t.schemaObj&&t.schemaObj.allOf&&t.schemaObj.allOf.forEach(c=>{if(Ee(c)){let u=e.resolveObject(c);Tt(u,{data:{pathSegments:[]},onSchema:a})}}),Tt(t.schemaObj,{data:{pathSegments:[]},onSchema:a}),s}o(_P,"getZodSchemaPropertyDescriptions");function ri({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=Tm({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=Tm({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>wa(u,e.options),"getEntityName"),options:e.options});return Dq(e.options,a,c)}o(ri,"getModelsImports");function SP({tag:e,endpoints:t,options:r}){return Tm({type:"endpoints",tag:e,entities:t,getTag:o(n=>Ia(n,r),"getTag"),getEntityName:Aa,options:r})}o(SP,"getEndpointsImports");function OP({tags:e,entityName:t,getAliasEntityName:r,type:n,options:i}){let s=new Map;return e.forEach(a=>{let c=`${t}${r?` as ${r(a)}`:""}`;s.has(a)?i.tsNamespaces||s.get(a).bindings.push(c):s.set(a,{bindings:[i.tsNamespaces?Ge({type:n,tag:a,options:i}):c],from:`${Zi(i)}${zu({type:n,tag:a,includeTagDir:!0,options:i})}`})}),Array.from(s.values())}o(OP,"getEntityImports");function Zi(e){let t=Cm;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${Im}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${Im}`,"g"),Cm)),`${t}/`.replace(/\/\//g,"/")}o(Zi,"getImportPath");function Tm({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))s.tsNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.tsNamespaces?Ge({type:e,tag:u,options:s}):i(c)],from:`${l?"./":Zi(s)}${zu({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(Tm,"getImports");function Dq(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.tsNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Qt(n.bindings)}))}o(Dq,"mergeImports");function Xo({fileName:e,extension:t}){return`${e}.${t}`}o(Xo,"getFileNameWithExtension");function EP({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Xn(t)}/`:""}${Xn(t)}.${i}`:i}o(EP,"getTagFileNameWithoutExtension");function zu(...e){return EP(...e)}o(zu,"getTagImportPath");function Zu(...e){return`${EP(...e)}.ts`}o(Zu,"getTagFileName");var Ge=o(({type:e,tag:t,options:r})=>`${He(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");function PP(e){return e.standalone?`${Zi(e)}${Vu.fileName}`:pP}o(PP,"getAppRestClientImportPath");function xP(e){return e.standalone?`${Zi(e)}${Fu.reactQueryTypes.fileName}`:dP}o(xP,"getQueryTypesImportPath");function $P(e){return`${Zi(e)}${Hu.fileName}`}o($P,"getInvalidateQueriesImportPath");function wP(e){return`${Zi(e)}${Bu.fileName}`}o(wP,"getZodExtendedImportPath");function AP(e){return Pt(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(AP,"primitiveTypeToTsType");var Aa=o(e=>Xn(pt(e.operationName)),"getEndpointName");function IP(e,t){return`${t.tsNamespaces?`${Ge({type:"endpoints",tag:Ia(e,t),options:t})}.`:""}${Aa(e)}`}o(IP,"getImportedEndpointName");var CP=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function Ia(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return ei(r??t.defaultTag)}o(Ia,"getEndpointTag");function Ca(e,t,r){let n=t.parameters.map(i=>{var a,c,u,l;let s="string";if(Ft(i.zodSchema))s=zi(e,i.zodSchema);else if((a=i.parameterObject)!=null&&a.schema&&Ct(i.parameterObject.schema)){let p=(u=(c=i.parameterObject)==null?void 0:c.schema)==null?void 0:u.type;p&&Ui(p)&&(s=AP(p))}return{name:Gn(i.name),type:s,paramType:i.type,required:((l=i.parameterObject)==null?void 0:l.required)??!0,parameterObject:i.parameterObject,bodyObject:i.bodyObject}});return r!=null&&r.includeFileParam&&t.mediaUpload&&n.push({name:"file",type:"File",paramType:"Body",required:!0,parameterObject:void 0,bodyObject:void 0}),n.sort((i,s)=>{if(i.required===s.required){let a=["Path","Body","Query","Header"];return a.indexOf(i.paramType)-a.indexOf(s.paramType)}return i.required?-1:1}).filter(i=>!(r!=null&&r.removePageParam)||i.name!==ya.pageParamName).map(i=>({...i,name:r!=null&&r.replacePageParam&&i.name===ya.pageParamName?"pageParam":i.name}))}o(Ca,"mapEndpointParamsToFunctionParams");function TP(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=UE(i.name)?i.name:`"${i.name}"`,a=Gn(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==hm["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==hm.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=Gn(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(TP,"getEndpointConfig");function Ta(e){return{type:"invalid-schema",message:e}}o(Ta,"getInvalidSchemaError");function NP(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(NP,"getInvalidOperationIdError");function RP(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o(RP,"getMissingPathParameterError");function jP(e){return{type:"not-allowed-inline-enum",message:e}}o(jP,"getNotAllowedInlineEnumError");function MP(e){return{type:"not-allowed-circular-schema",message:e}}o(MP,"getNotAllowedCircularSchemaError");function kP(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${jm(t,r)}`}}o(kP,"getMissingAclConditionPropertyError");function Rm(e,t,r){return{type:"missing-status-code",message:`Missing HTTP status code ${Nm(e)} in operation ${jm(t,r)}`}}o(Rm,"getMissingStatusCodeError");function qP(e,t,r){return{type:"invalid-status-code",message:`Operation ${jm(t,r)} expected HTTP status code ${Nm(e.expected)} but received ${Nm(e.received)}`}}o(qP,"getInvalidStatusCodeError");function jm(e,t){return e.operationId??`${t.method} ${t.path}`}o(jm,"getOperationDescriptor");function Nm(e){return`${e} (${FE[e]})`}o(Nm,"getStatusCodeDescription");function DP(e){return e.reduce((t,r)=>({...t,[r.type]:[...t[r.type]??[],r.message]}),{})}o(DP,"groupByType");function nn({schema:e,meta:t,options:r}){let n=[];Pt(e.type).with("string",()=>n.push(Vq(e))).with("number","integer",()=>n.push(Bq(e))).with("array",()=>n.push(Uq(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&r.withDescription&&([`
141
141
  `,"\r",`\r
142
- `].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(Rq({schema:e,meta:t,options:r}),r.withDefaultValues!==!1?Nq(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(nn,"getZodChain");function Rq({schema:e,meta:t,options:r}){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable||r.replaceOptionalWithNullish&&(t!=null&&t.isParentPartial)?"nullable()":t!=null&&t.isRequired?"":r.replaceOptionalWithNullish?"nullish()":"optional()"}o(Rq,"getZodChainablePresence");function Nq(e){return e.default!==void 0?`default(${Et(e.type).with("number","integer",()=>eE(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(Nq,"getZodChainableDefault");function jq(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(${Mq(e.pattern)})`),e.format){let r=Et(e.format).with("email",()=>"email()").with("hostname","uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}o(jq,"getZodChainableStringValidations");function Mq(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=tE(e),`/${e}/`}o(Mq,"formatPatternIfNeeded");function kq(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("."))}o(kq,"getZodChainableNumberValidations");function qq(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(qq,"getZodChainableArrayValidations");var Zi=o(e=>e.reduce((t,r)=>t+r,0),"sum");function dt(e,t){if(!t)return e;if(Pe(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?Yt("oneOf")+dt(e,{...t,type:t.type[0]}):e+Yt("oneOf")+Zi(t.type.map(r=>dt(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?Yt("oneOf")+dt(e,t.oneOf[0]):e+Yt("oneOf")+Zi(t.oneOf.map(r=>dt(0,r)));if(t.anyOf)return t.anyOf.length===1?Yt("anyOf")+dt(e,t.anyOf[0]):e+Yt("anyOf")+Zi(t.anyOf.map(r=>dt(0,r)));if(t.allOf)return t.allOf.length===1?Yt("allOf")+dt(e,t.allOf[0]):e+Yt("allOf")+Zi(t.allOf.map(r=>dt(0,r)));if(!t.type)return e;if(Ui(t.type))return t.enum?e+RE(t)+Yt("enum")+Zi(t.enum.map(r=>dt(0,r))):e+RE(t);if(t.type==="array")return t.items?Yt("array")+dt(e,t.items):Yt("array")+dt(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.properties){let r=Object.values(t.properties);e+=Yt("object")+Zi(r.map(n=>dt(0,n)))}else e+=Yt("empty-object");t.additionalProperties&&(typeof t.additionalProperties=="object"?e+=dt(0,t.additionalProperties):e+=dt(1))}return e}o(dt,"getOpenAPISchemaComplexity");function RE(e){return Et(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(RE,"complexityByType");function Yt(e){return Et(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(Yt,"complexityByComposite");var Rm=class Rm{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;Pe(t)&&(this.ref=t.$ref),i&&(this.enumRef=i),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;enumRef;children=[];meta;getCodeString(t,r){var s,a;if(!this.ref&&this.code)return this.code;if(!this.ref)throw new Error("Zod schema is missing both ref and code");let n=(s=this.resolver)==null?void 0:s.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.tsNamespaces&&i&&i!==t?`${Ge({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return dt(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(Rm,"ZodSchema");var Ia=Rm;function Ke({schema:e,resolver:t,meta:r,tag:n}){var y;let i=new Ia(e,t,r),s={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:s,tag:n};if(Pe(e))return Dq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=Fq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let u=Lq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let l=Vq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let p=Hq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let f=Bq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let d=t.options.allReadonly?".readonly()":"";if(ju(e))return e.items?i.assign(`z.array(${Ke({...a,schema:e.items}).getCodeString(n,t.options)}${nn({schema:e.items,meta:{...s,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(z.any())${d}`);let h=e.type?e.type.toLowerCase():void 0;if(h==="object"||e.properties||e.additionalProperties){let b=e.required&&e.required.length>0,g=t.options.withImplicitRequiredProps?!1:e.properties&&!((y=e.required)!=null&&y.length),E="{}";e.properties&&(E="{ "+Object.entries(e.properties).map(([ae,J])=>{var M;let Be={...s,isRequired:g?!0:b?(M=e.required)==null?void 0:M.includes(ae):t.options.withImplicitRequiredProps,name:ae,isParentPartial:g},xe=J;if(Pe(J)&&t&&(xe=t.getSchemaByRef(J.$ref),!xe))throw new Error(`Schema ${J.$ref} not found`);let X=Ke({...a,schema:J,meta:Be}).getCodeString(n,t.options)+nn({schema:xe,meta:Be,options:t.options});return[ae,X]}).map(([ae,J])=>`${XP(ae)}: ${J}`).join(", ")+" }");let $="";e.additionalProperties&&($=`.catchall(${typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0?Ke({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+nn({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options}):"z.any()"})`);let T=g?".partial()":"",I=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${E})${T}${I}${$}${d}`)}if(h==="any")return i.assign("z.any()");if(!h)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${h}`)}o(Ke,"getZodSchema");function Dq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Pe(e))return;let s=t.meta.referencedBy.slice(0,-1).map(u=>u.ref?r.getZodSchemaNameByRef(u.ref)??u.ref:void 0).filter(Boolean),a=r.getZodSchemaNameByRef(e.$ref);if(s.length>1&&s.includes(a))return t.assign(r.getCodeByZodSchemaName(t.ref));let c=r.getCodeByZodSchemaName(e.$ref);if(!c){let u=r.getSchemaByRef(e.$ref);if(!u)throw new Error(`Schema ${e.$ref} not found`);c=Ke({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o(Dq,"getReferenceZodSchema");function Lq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!Zt(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=Ke({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(c.getCodeString(i,r.options))}let s=(a=e.oneOf)==null?void 0:a.some(c=>Zt(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!s){let c=e.discriminator.propertyName;return t.assign(`
142
+ `].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(Lq({schema:e,meta:t,options:r}),r.withDefaultValues!==!1?Fq(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(nn,"getZodChain");function Lq({schema:e,meta:t,options:r}){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable||r.replaceOptionalWithNullish&&(t!=null&&t.isParentPartial)?"nullable()":t!=null&&t.isRequired?"":r.replaceOptionalWithNullish?"nullish()":"optional()"}o(Lq,"getZodChainablePresence");function Fq(e){return e.default!==void 0?`default(${Pt(e.type).with("number","integer",()=>aP(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(Fq,"getZodChainableDefault");function Vq(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(${Hq(e.pattern)})`),e.format){let r=Pt(e.format).with("email",()=>"email()").with("hostname","uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}o(Vq,"getZodChainableStringValidations");function Hq(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=cP(e),`/${e}/`}o(Hq,"formatPatternIfNeeded");function Bq(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("."))}o(Bq,"getZodChainableNumberValidations");function Uq(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(Uq,"getZodChainableArrayValidations");var Wi=o(e=>e.reduce((t,r)=>t+r,0),"sum");function dt(e,t){if(!t)return e;if(Ee(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?Jt("oneOf")+dt(e,{...t,type:t.type[0]}):e+Jt("oneOf")+Wi(t.type.map(r=>dt(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?Jt("oneOf")+dt(e,t.oneOf[0]):e+Jt("oneOf")+Wi(t.oneOf.map(r=>dt(0,r)));if(t.anyOf)return t.anyOf.length===1?Jt("anyOf")+dt(e,t.anyOf[0]):e+Jt("anyOf")+Wi(t.anyOf.map(r=>dt(0,r)));if(t.allOf)return t.allOf.length===1?Jt("allOf")+dt(e,t.allOf[0]):e+Jt("allOf")+Wi(t.allOf.map(r=>dt(0,r)));if(!t.type)return e;if(Ui(t.type))return t.enum?e+LP(t)+Jt("enum")+Wi(t.enum.map(r=>dt(0,r))):e+LP(t);if(t.type==="array")return t.items?Jt("array")+dt(e,t.items):Jt("array")+dt(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.properties){let r=Object.values(t.properties);e+=Jt("object")+Wi(r.map(n=>dt(0,n)))}else e+=Jt("empty-object");t.additionalProperties&&(typeof t.additionalProperties=="object"?e+=dt(0,t.additionalProperties):e+=dt(1))}return e}o(dt,"getOpenAPISchemaComplexity");function LP(e){return Pt(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(LP,"complexityByType");function Jt(e){return Pt(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(Jt,"complexityByComposite");var Mm=class Mm{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;Ee(t)&&(this.ref=t.$ref),i&&(this.enumRef=i),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;enumRef;children=[];meta;getCodeString(t,r){var s,a;if(!this.ref&&this.code)return this.code;if(!this.ref)throw new Error("Zod schema is missing both ref and code");let n=(s=this.resolver)==null?void 0:s.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.tsNamespaces&&i&&i!==t?`${Ge({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return dt(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(Mm,"ZodSchema");var Na=Mm;function Ke({schema:e,resolver:t,meta:r,tag:n}){var y;let i=new Na(e,t,r),s={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:s,tag:n};if(Ee(e))return Gq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=Zq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let u=zq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let l=Wq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let p=Kq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let f=Yq({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let d=t.options.allReadonly?".readonly()":"";if(Ru(e))return e.items?i.assign(`z.array(${Ke({...a,schema:e.items}).getCodeString(n,t.options)}${nn({schema:e.items,meta:{...s,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(z.any())${d}`);let h=e.type?e.type.toLowerCase():void 0;if(h==="object"||e.properties||e.additionalProperties){let b=e.required&&e.required.length>0,m=t.options.withImplicitRequiredProps?!1:e.properties&&!((y=e.required)!=null&&y.length),P="{}";e.properties&&(P="{ "+Object.entries(e.properties).map(([ae,J])=>{var M;let Be={...s,isRequired:m?!0:b?(M=e.required)==null?void 0:M.includes(ae):t.options.withImplicitRequiredProps,name:ae,isParentPartial:m},xe=J;if(Ee(J)&&t&&(xe=t.getSchemaByRef(J.$ref),!xe))throw new Error(`Schema ${J.$ref} not found`);let X=Ke({...a,schema:J,meta:Be}).getCodeString(n,t.options)+nn({schema:xe,meta:Be,options:t.options});return[ae,X]}).map(([ae,J])=>`${sP(ae)}: ${J}`).join(", ")+" }");let $="";e.additionalProperties&&($=`.catchall(${typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0?Ke({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+nn({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options}):"z.any()"})`);let T=m?".partial()":"",I=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${P})${T}${I}${$}${d}`)}if(h==="any")return i.assign("z.any()");if(!h)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${h}`)}o(Ke,"getZodSchema");function Gq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Ee(e))return;let s=t.meta.referencedBy.slice(0,-1).map(u=>u.ref?r.getZodSchemaNameByRef(u.ref)??u.ref:void 0).filter(Boolean),a=r.getZodSchemaNameByRef(e.$ref);if(s.length>1&&s.includes(a))return t.assign(r.getCodeByZodSchemaName(t.ref));let c=r.getCodeByZodSchemaName(e.$ref);if(!c){let u=r.getSchemaByRef(e.$ref);if(!u)throw new Error(`Schema ${e.$ref} not found`);c=Ke({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o(Gq,"getReferenceZodSchema");function zq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!Ct(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=Ke({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(c.getCodeString(i,r.options))}let s=(a=e.oneOf)==null?void 0:a.some(c=>Ct(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!s){let c=e.discriminator.propertyName;return t.assign(`
143
143
  z.discriminatedUnion("${c}", [${e.oneOf.map(u=>Ke({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
144
- `)}return t.assign(`z.union([${e.oneOf.map(c=>Ke({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(Lq,"getOneOfZodSchema");function Fq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!Zt(e)||!Array.isArray(e.type)))return e.type.length===1?Ke({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>Ke({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(Fq,"getArrayZodSchema");function Vq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Zt(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=Ke({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>Ke({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(Vq,"getAnyOfZodSchema");function Hq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Zt(e)||!e.allOf)return;if(e.allOf.length===1){let f=Ke({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(f.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:s,noRequiredOnlyAllof:a,composedRequiredSchema:c}=iE(e),u=a.map(f=>{let d=Ke({schema:f,resolver:r,meta:n,tag:i});return r&&s(f,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(Ke({schema:c,resolver:r,meta:n,tag:i}));let l=u.at(0),p=u.slice(1).map(f=>`merge(${f.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${p}`)}o(Hq,"getAllOfZodSchema");function Bq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Zt(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&Ui(s)){if(e.enum){if(s==="string")return Uq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i});if(e.enum.some(a=>typeof a=="string"))return t.assign("z.never()");if(e.enum.length===1){let a=e.enum[0];return t.assign(`z.literal(${a===null?"null":a})`)}return t.assign(`z.union([${e.enum.map(a=>`z.literal(${a===null?"null":a})`).join(", ")}])`)}return t.assign(Et(s).with("integer",()=>"z.number()").with("string",()=>Et(e.format).with("binary",()=>xu).otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}o(Bq,"getPrimitiveZodSchema");function Uq({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){var l;if(!Zt(t))return;let s=Xo(t);if(!e.options.extractEnums)return r.assign(s);let a=e.getEnumZodSchemaDataByCode(s);if(a)return((l=r.meta.parent)==null?void 0:l.ref)===e.getRefByZodSchemaName(a.zodSchemaName)?r.assign(a.code):new Ia({$ref:e.getRefByZodSchemaName(a.zodSchemaName)},e,n).inherit(r).assign(s);let c=e.getExtractedEnumZodSchemaDataByCode(s);if(!c)return r.assign(s);if(!c.zodSchemaName||!c.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let u=e.options.tsNamespaces&&c.tag!==i?`${Ge({type:"models",tag:c.tag,options:e.options})}.`:"";return r.assign(`${u}${c.zodSchemaName}`)}o(Uq,"getEnumZodSchema");function Xo(e){var t;return`${$u}([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(Xo,"getEnumZodSchemaCode");function es({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let s=t.getCodeString();if((!Lt(s)||t.ref===void 0)&&r){if(t.complexity<bm)return s;let u=rn(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(u);){if((c=n.getZodSchemaNamesByCompositeCode(s))!=null&&c.includes(u))return u;if(n.getCodeByZodSchemaName(u)===u)return u;throw new Error(`Can't uniquely resolve zod schema name: ${u}`)}return n.setZodSchema(u,s,i),n.addZodSchemaForCompositeCode(s,t,u,e),u}let a=n.getCodeByZodSchemaName(s);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return dt(0,n.getSchemaByRef(t.ref))<bm?n.getCodeByZodSchemaName(s):s;throw new Error(`Invalid ref: ${t.ref}`)}o(es,"resolveZodSchemaName");var jr=o(e=>e.method==="get","isQuery"),ri=o(e=>e.method!=="get"||!!e.fileDownload,"isMutation"),ts=o((e,t)=>jr(e)&&(t??Object.values(xa)).every(r=>e.parameters.some(n=>n.name===r&&n.type==="Query")),"isInfiniteQuery");function NE({resolver:e,endpoint:t,operation:r}){let n=r["x-acl"];return n==null?void 0:n.map(i=>{let s=Object.keys(i.conditions??{}).reduce((a,c)=>{let u=Gq({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(IE(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o(NE,"getEndpointAcl");function Gq({resolver:e,endpoint:t,acl:r,name:n}){var f,d,h,y,b,g,E,$,T,I;let i=(d=(f=r[0])==null?void 0:f.conditions)==null?void 0:d[n];if(!i)return;let s=i.replace(/^\$[^.]*\./,"").split("."),a,c,u,l=0,p=t.parameters.find(({name:C})=>C===s[l]);if(p)c=(h=p.parameterObject)==null?void 0:h.required,a=(y=p.parameterObject)==null?void 0:y.schema,u=`${p.name} ${Jn(p.type)} parameter`,l++;else{let C=t.parameters.find(({bodyObject:Be})=>!!Be),J=Object.keys(((b=C==null?void 0:C.bodyObject)==null?void 0:b.content)??{}).find(tn);J&&(a=($=(E=(g=C==null?void 0:C.bodyObject)==null?void 0:g.content)==null?void 0:E[J])==null?void 0:$.schema,u=`${jr(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let C=e.resolveObject(a);a=(T=Object.entries(C.properties??{}).find(([J])=>J===s[l]))==null?void 0:T[1],c=((I=C.required)==null?void 0:I.includes(s[l]))??!1,l++}if(a)return{name:n,type:Pe(a)?void 0:a.type,zodSchemaName:Pe(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(Gq,"getEndpointAclConditionPropertyType");function jE({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var h,y;let s=e.resolveObject(t.requestBody);if(!s)return;let c=Object.keys(s.content??{}).find(tn);if(!c)return;let u=(y=(h=s.content)==null?void 0:h[c])==null?void 0:y.schema;if(!u)return;let l=Ke({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),p=e.resolveObject(u),f=es({schema:p,zodSchema:l,fallbackName:Lu(Gi(r,n,i)),resolver:e,tag:i}),d=nn({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:DP,type:"Body",description:s.description,zodSchema:f+d,bodyObject:s},requestFormat:c}}o(jE,"getEndpointBody");function ME({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!HP.includes(s.in))return;let a={};if(s.content){let f=Object.keys(s.content??{}),d=f.find(tn);if(!d)throw new Error(`Unsupported media type for param ${s.name}: ${f.join(", ")}`);let h=s.content[d];if(!h)throw new Error(`No content with media type for param ${s.name}: ${d}`);a=(h==null?void 0:h.schema)??h}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let c=Ke({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),u=e.resolveObject(a),l=nn({schema:u,meta:c.meta,options:e.options}),p=es({schema:u,zodSchema:c.assign(c.getCodeString(i)+l),fallbackName:cE(Gi(r,n,i),s.name),resolver:e,tag:i});return{name:Et(s.in).with("path",()=>Em(s.name)).otherwise(()=>s.name),type:Et(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:p,parameterObject:s}}o(ME,"getEndpointParameter");function qE(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){let u=e.openApiDoc.paths[c],l=Qn(u,Yn),p=kE(u.parameters??[]);for(let f in l){let d=l[f];if(!d||d.deprecated&&!e.options.withDeprecatedEndpoints)continue;let h=d.operationId&&d.operationId!==Un(d.operationId);d.operationId&&h&&e.validationErrors.push(xE(d.operationId));let y=Object.entries({...p,...kE(d.parameters??[])}).map(([,I])=>I),b=ba({path:c,method:f,operation:d,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(I=>I===b).length<=1,E=Hi(d,e.options),$={method:f,path:nE(c),operationName:b,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(Xn),requestFormat:"application/json",parameters:[],response:"",errors:[],responseStatusCodes:[],fileUpload:!!d["x-file-upload"],fileDownload:!!d["x-file-download"]};if(d.requestBody){let I=jE({resolver:e,operation:d,operationName:b,isUniqueOperationName:g,tag:E});I&&($.parameters.push(I.endpointParameter),$.requestFormat=I.requestFormat)}for(let I of y){let C=ME({resolver:e,param:I,operationName:b,isUniqueOperationName:g,tag:E});C&&$.parameters.push(C)}let T=zq($);T.forEach(I=>{$.parameters.push(I)}),T.length>0&&e.validationErrors.push($E(T,c));for(let I in d.responses){$.responseStatusCodes.push(I);let C=e.resolveObject(d.responses[I]),J=Object.keys(C.content??{}).find(Nu),Be,xe;if(J?($.responseFormat=J,Be=(i=(n=C.content)==null?void 0:n[J])==null?void 0:i.schema):(xe=ha,I==="200"&&e.validationErrors.push(CE({received:"200",expected:"204"},d,$))),Be){let X=Ke({schema:Be,resolver:e,meta:{isRequired:!0},tag:E}),M=e.resolveObject(Be);xe=es({schema:M,zodSchema:X,fallbackName:X.ref?void 0:Fu({statusCode:I,operationName:b,isUniqueOperationName:g,tag:E}),resolver:e,tag:E})+nn({schema:M,meta:X.meta,options:e.options})}if(xe){let X=Number(I);Tu(X)?($.response=xe,$.responseObject=C,$.responseDescription=C.description):I!=="default"&&Ru(X)&&$.errors.push({zodSchema:xe,status:X,description:C.description})}}$.response||($.response=ha),$.acl=NE({resolver:e,endpoint:$,operation:d}),(s=d.security)!=null&&s[0].Authorization&&!$.responseStatusCodes.includes("401")&&e.validationErrors.push(Cm("401",d,$)),(a=$.acl)!=null&&a[0]&&!$.responseStatusCodes.includes("403")&&e.validationErrors.push(Cm("403",d,$)),t.push($)}}return t}o(qE,"getEndpointsFromOpenAPIDoc");function kE(e){return Object.fromEntries((e??[]).map(t=>[Pe(t)?t.$ref:t.name,t]))}o(kE,"getParameters");function zq(e){return[...e.path.matchAll(/:([a-zA-Z0-9_]+)/g)].map(r=>r[1]).filter(r=>e.parameters.findIndex(({name:n})=>n===r)===-1).map(r=>Zq(r))}o(zq,"getMissingPathParameters");function Zq(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(Zq,"getPathParameterFromName");function DE(e,t){let r=Wq(e,t),n=Kq(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(DE,"getOpenAPISchemaDependencyGraph");function Wq(e,t){let r={},n={};return e.forEach(i=>Yq({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(Wq,"getRefsDependencyGraph");function Kq(e,t){let r={},n={},i=o((s,a)=>{n[a].add(s),t[s]&&a!==s&&t[s].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(s=>{let a=t[s];a&&(n[s]||(n[s]=new Set),a.forEach(c=>i(c,s)))}),n}o(Kq,"getDeepRefsDependencyGraph");function Yq({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let s=o(a=>{if(a.type!=="reference"||!a.data)return;let{schema:c,data:u}=a;if(i[u.fromRef]||(i[u.fromRef]=new Set),i[u.fromRef].add(c.$ref),n[c.$ref])return!0;n[u.fromRef]=!0,Ct(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return Ct(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(Yq,"getSchemaRefsDependencyGraph");function Uu(e,t,r){let n=[];return Ct(t,{onSchema:o(s=>{s.type==="reference"?n.push(s.schema):Pe(s.parentSchema)&&(s.type==="property"?e.validationErrors.push(Aa(`${r} has both reference and properties`)):s.type==="additionalProperties"?e.validationErrors.push(Aa(`${r} has both reference and additionalProperties`)):s.type==="array"?e.validationErrors.push(Aa(`${r} is both reference and array schema`)):s.type==="composite"&&e.validationErrors.push(Aa(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(Uu,"getSchemaRefObjs");function LE(e,t){return t.map(i=>Bi(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(LE,"getDeepSchemaRefObjs");function Ca({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&FE({schema:e,nameSegments:t,...n}),Ct(e,{data:{nameSegments:t},onSchema:o(s=>{var c;if(s.type==="reference")return!0;let a=[...((c=s.data)==null?void 0:c.nameSegments)??[]];s.type==="property"&&a.push(s.propertyName),FE({schema:s.schema,nameSegments:[...a],...n})},"onSchema")})}o(Ca,"updateExtractedEnumZodSchemaData");function FE({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||Pe(t)||!t.enum)return;let a=Xo(t),c=e.extractedEnumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(s),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[]),c.meta.schemas.push(...t?[t]:[])):e.extractedEnumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[],schemas:t?[t]:[]}}),e.validationErrors.push(wE(r?`Schema ${Qo(r)} property ${s[s.length-1]}`:n??s.join("->")))}o(FE,"handleExtractedEnumZodSchemaDataUpdate");function VE(e){e.extractedEnumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=_m(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=wm(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!Nm(e);)Qq(e,t+2),t++;if(Nm(e)||e.extractedEnumZodSchemaData.filter(n=>!BE(e,n)).forEach(n=>{n.zodSchemaName=wm(n.meta.zodSchemaNameSegments[0].map(i=>jm(He(i))).join(""),e.options.enumSuffix,e.options.schemaSuffix)}),!Nm(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(VE,"resolveExtractedEnumZodSchemaNames");function Nm(e){return e.extractedEnumZodSchemaData.every(t=>BE(e,t))}o(Nm,"allExtractedEnumZodSchemaNamesAreUnique");function Qq(e,t){e.extractedEnumZodSchemaData.forEach(r=>{let n=e.extractedEnumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&Jq(n,t)})}o(Qq,"additionalResolveExtractedEnumZodSchemaName");function Jq(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1){let i=[jm(He(n[0])),r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=i}else{let i=_m(n),s=[i?jm(He(i)):"",r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=s}})}o(Jq,"suffixWithPreviousSegmentName");function HE(e){e.extractedEnumZodSchemaData.forEach(t=>{let r=Wt(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(HE,"resolveExtractedEnumZodSchemaTags");function BE(e,t){return e.extractedEnumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length===1}o(BE,"isUnique");function jm(e){return e.replace(/(Dto|DTO|Response|Request)/g,"")}o(jm,"sanitizeName");function UE(e){var n;let t={},r={};return Object.entries(((n=e.openApiDoc.components)==null?void 0:n.schemas)??{}).forEach(([i,s])=>{let a=rn(i,e.options.schemaSuffix);if(!t[a]){let c=e.getTagByZodSchemaName(a),u=e.resolveObject(s);u.enum?r[a]=Xo(u):t[a]=Ke({schema:s,resolver:e,tag:c}).getCodeString(c)}}),{zodSchemas:t,enumZodSchemas:r}}o(UE,"getZodSchemasFromOpenAPIDoc");function GE(e){var r;let t=[];return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=rn(n,e.options.schemaSuffix),a=e.resolveObject(i);!t.find(c=>c.zodSchemaName===s)&&a.enum&&t.push({zodSchemaName:s,code:Xo(a)})}),t}o(GE,"getEnumZodSchemasFromOpenAPIDoc");var Mm=class Mm{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=DE(this.schemaRefs,this.getSchemaByRef.bind(this)),this.enumZodSchemas=GE(this),this.operationsByTag=YP(t,r),this.operationNames=rE(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];dependencyGraph;enumZodSchemas=[];operationsByTag={};operationNames=[];extractedEnumZodSchemaData=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(JP)}getSchemaByRef(t){return this.docSchemas[Qo(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(Bi(t)))==null?void 0:n.zodSchemaName)??((i=this.extractedEnumZodSchemaData.find(s=>s.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var u,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.extractedEnumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return Xn(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((u=this.getSchemaDataByRef(n))==null?void 0:u.tags)??[]:[],s=((l=this.zodSchemaData.find(p=>p.zodSchemaName===t))==null?void 0:l.tags)??[],a=Wt(i,s),c=a.length===1?a[0]:this.options.defaultTag;return Xn(c??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(s=>s.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let s={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(s):this.compositeZodSchemaData.push({code:t,zodSchemas:[s]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemas.find(r=>r.code===t)}getExtractedEnumZodSchemaDataByCode(t){return this.extractedEnumZodSchemaData.find(r=>r.code===t)}getExtractedEnumZodSchemaDataByName(t){return this.extractedEnumZodSchemaData.find(({zodSchemaName:r})=>r===t)}getExtractedEnumZodSchemaNamesReferencedBySchemaRef(t){return this.extractedEnumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getExtractedEnumZodSchemas(){return this.extractedEnumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return Pe(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}getCircularSchemaChain(t,r=t,n=[]){var i,s;return(i=this.dependencyGraph.refsDependencyGraph[r])!=null&&i.has(t)?[...n,r,t]:Array.from(((s=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:s.values())??[]).map(a=>{let c=this.getCircularSchemaChain(t,a,n);return c.length>0?[r,...c]:c}).flat()}getBaseUrl(){var r,n;let t=(n=(r=this.openApiDoc.servers)==null?void 0:r[0])==null?void 0:n.url;return this.options.baseUrl===""&&t?t:this.options.baseUrl}getZodSchemaObj(t){let r=this.getRefByZodSchemaName(t);if(r)return this.getSchemaByRef(r);let n=this.getSchemaByCompositeZodSchemaName(t);if(n)return n;let i=this.getExtractedEnumZodSchemaDataByName(t);if(i)return i.meta.schemas.reduce((s,a)=>({...s,...this.resolveObject(a)}),{})}initialize(){var t,r,n,i,s;this.schemaRefs.forEach(a=>{let c=Bi(a),u=Qo(c),l=rn(u,this.options.schemaSuffix);this.schemaData.push({ref:c,name:u,zodSchemaName:l,tags:[]})});for(let a in this.openApiDoc.paths){let c=this.openApiDoc.paths[a],u=Qn(c,Yn);for(let l in u){let p=u[l];if(!p||p.deprecated&&!this.options.withDeprecatedEndpoints)continue;let f=Hi(p,this.options),d=ba({path:a,method:l,operation:p,operationsByTag:this.operationsByTag,options:this.options}),h=this.operationNames.filter(E=>E===d).length<=1,y=pt(Gi(d,h,f)),b=[];if((t=p.parameters)==null||t.map(E=>{let $=E,T=$.schema,I=`Operation ${p.operationId??a} parameter ${$.name}`;b.push(...Uu(this,T,I)),this.options.extractEnums&&Ca({resolver:this,schema:T,schemaInfo:I,tags:[f],nameSegments:[y,$.name],includeSelf:!0})}),p.requestBody){let E=this.resolveObject(p.requestBody),T=Object.keys(E.content??{}).find(tn);if(T){let I=(n=(r=E.content)==null?void 0:r[T])==null?void 0:n.schema,C=`Operation ${p.operationId} request body`;b.push(...Uu(this,I,C)),this.options.extractEnums&&Ca({resolver:this,schema:I,schemaInfo:C,tags:[f],nameSegments:[Lu(y)]})}}for(let E in p.responses){let $=this.resolveObject(p.responses[E]),I=Object.keys($.content??{}).find(Nu);if(I){let C=(s=(i=$.content)==null?void 0:i[I])==null?void 0:s.schema,ae=`Operation ${p.operationId} response body`;b.push(...Uu(this,C,ae)),this.options.extractEnums&&Ca({resolver:this,schema:C,schemaInfo:ae,tags:[f],nameSegments:[Fu({statusCode:E,operationName:d,isUniqueOperationName:h,tag:f})]})}}LE(this,b).forEach(E=>{let $=this.getSchemaDataByRef(E);$&&$.tags.push(f)})}}this.options.extractEnums&&(this.schemaRefs.forEach(a=>{var u;let c=Bi(a);Ca({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((u=this.getSchemaDataByRef(c))==null?void 0:u.tags)??[],nameSegments:[Qo(c)]})}),HE(this),this.handleDuplicateEnumZodSchemas(),VE(this))}handleDuplicateEnumZodSchemas(){let t=this.enumZodSchemas.map(({code:n})=>n),r=this.enumZodSchemas.filter(({code:n})=>t.includes(n));this.schemaData.forEach(n=>{var a;let i=(a=r.find(({zodSchemaName:c})=>c===n.zodSchemaName))==null?void 0:a.code;if(!i)return;let s=this.extractedEnumZodSchemaData.find(({code:c})=>c===i);s&&(n.tags.push(...s.meta.tags??[]),s.meta.schemaRefs.forEach(c=>{this.dependencyGraph.refsDependencyGraph[c]||(this.dependencyGraph.refsDependencyGraph[c]=new Set),this.dependencyGraph.refsDependencyGraph[c].add(n.ref),this.dependencyGraph.deepDependencyGraph[c]||(this.dependencyGraph.deepDependencyGraph[c]=new Set),this.dependencyGraph.deepDependencyGraph[c].add(n.ref)}))}),this.extractedEnumZodSchemaData=this.extractedEnumZodSchemaData.filter(({code:n})=>!t.includes(n))}};o(Mm,"SchemaResolver");var Gu=Mm;function zE(e){let t=[],r={};function n(i,s){Array.isArray(s)||(s=[]),s.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{s.includes(a)||r[a]||n(a,s.slice(0))}),t.includes(i)||t.push(i)}return o(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}o(zE,"topologicalSort");function ZE(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[s])=>t.indexOf(i)-t.indexOf(s)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}o(ZE,"sortObjKeysFromArray");function WE(e,t){let r=zE(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return ZE(t,r)}o(WE,"sortZodSchemasByTopology");function KE(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n);s&&e.isSchemaCircular(s)?(e.validationErrors.push(AE(e.getCircularSchemaChain(s).join(" -> "))),r[rn(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[rn(n,e.options.schemaSuffix)]=i}),r}o(KE,"wrapCircularZodSchemas");function zu(e,t){let r=new Gu(e,t),n=qE(r),i=UE(r),s={...i.zodSchemas,...r.getZodSchemas(),...i.enumZodSchemas};return s=KE(r,s),s=WE(r,s),s={...r.getExtractedEnumZodSchemas(),...s},{resolver:r,data:Xq({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(zu,"getDataFromOpenAPIDoc");function Xq({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=Pa(s,n);YE(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(YE(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(Xq,"splitDataByTags");function YE(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(YE,"getTagElement");var rs=mt(require("fs")),km=mt(require("path"));function QE(e){return rs.default.readFileSync(km.default.join(__dirname,`../${e}`),"utf-8")}o(QE,"readFileSync");function qm(e){let t=`src/generators/templates/${e}.hbs`;return QE(t)}o(qm,"readHbsTemplateSync");function JE(e){let t=`src/assets/${e}`;return QE(t)}o(JE,"readAssetSync");function ni({output:e,fileName:t}){return`${e}/${t}`}o(ni,"getOutputFileName");function e4(e,t){let r=km.default.dirname(e);rs.default.existsSync(r)||rs.default.mkdirSync(r,{recursive:!0}),rs.default.writeFileSync(e,t,"utf-8")}o(e4,"writeFileWithDirSync");function t4({fileName:e,content:t}){e4(e,t)}o(t4,"writeFileSync");function XE(e){e.forEach(t4)}o(XE,"writeGenerateFileData");function e1(e,t){let r={...ct,...t},{resolver:n,data:i}=zu(e,r);if(n.validationErrors.length>0){let s=TE(n.validationErrors);Object.entries(s).forEach(([a,c])=>{console.log(`${Fr.red(`${qP[a]}:`)}
144
+ `)}return t.assign(`z.union([${e.oneOf.map(c=>Ke({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(zq,"getOneOfZodSchema");function Zq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!Ct(e)||!Array.isArray(e.type)))return e.type.length===1?Ke({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>Ke({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(Zq,"getArrayZodSchema");function Wq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Ct(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=Ke({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>Ke({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(Wq,"getAnyOfZodSchema");function Kq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Ct(e)||!e.allOf)return;if(e.allOf.length===1){let f=Ke({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(f.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:s,noRequiredOnlyAllof:a,composedRequiredSchema:c}=GE(e),u=a.map(f=>{let d=Ke({schema:f,resolver:r,meta:n,tag:i});return r&&s(f,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(Ke({schema:c,resolver:r,meta:n,tag:i}));let l=u.at(0),p=u.slice(1).map(f=>`merge(${f.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${p}`)}o(Kq,"getAllOfZodSchema");function Yq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Ct(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&Ui(s)){if(e.enum){if(s==="string")return Qq({schema:e,zodSchema:t,resolver:r,meta:n,tag:i});if(e.enum.some(a=>typeof a=="string"))return t.assign("z.never()");if(e.enum.length===1){let a=e.enum[0];return t.assign(`z.literal(${a===null?"null":a})`)}return t.assign(`z.union([${e.enum.map(a=>`z.literal(${a===null?"null":a})`).join(", ")}])`)}return t.assign(Pt(s).with("integer",()=>"z.number()").with("string",()=>Pt(e.format).with("binary",()=>Au).otherwise(()=>Iu)).otherwise(a=>`z.${a}()`))}}o(Yq,"getPrimitiveZodSchema");function Qq({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){var l;if(!Ct(t))return;let s=es(t);if(!e.options.extractEnums)return r.assign(s);let a=e.getEnumZodSchemaDataByCode(s);if(a)return((l=r.meta.parent)==null?void 0:l.ref)===e.getRefByZodSchemaName(a.zodSchemaName)?r.assign(a.code):new Na({$ref:e.getRefByZodSchemaName(a.zodSchemaName)},e,n).inherit(r).assign(s);let c=e.getExtractedEnumZodSchemaDataByCode(s);if(!c)return r.assign(s);if(!c.zodSchemaName||!c.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let u=e.options.tsNamespaces&&c.tag!==i?`${Ge({type:"models",tag:c.tag,options:e.options})}.`:"";return r.assign(`${u}${c.zodSchemaName}`)}o(Qq,"getEnumZodSchema");function es(e){var t;return`${ga}([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(es,"getEnumZodSchemaCode");function FP(e){return`${ga}([${e.map(t=>`"${t}"`).join(", ")}])`}o(FP,"getEnumZodSchemaCodeFromEnumNames");function ts({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let s=t.getCodeString();if((!Ft(s)||t.ref===void 0)&&r){if(t.complexity<Om)return s;let u=rn(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(u);){if((c=n.getZodSchemaNamesByCompositeCode(s))!=null&&c.includes(u))return u;if(n.getCodeByZodSchemaName(u)===u)return u;throw new Error(`Can't uniquely resolve zod schema name: ${u}`)}return n.setZodSchema(u,s,i),n.addZodSchemaForCompositeCode(s,t,u,e),u}let a=n.getCodeByZodSchemaName(s);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return dt(0,n.getSchemaByRef(t.ref))<Om?n.getCodeByZodSchemaName(s):s;throw new Error(`Invalid ref: ${t.ref}`)}o(ts,"resolveZodSchemaName");var jr=o(e=>e.method==="get","isQuery"),ni=o(e=>e.method!=="get"||!!e.mediaDownload,"isMutation"),rs=o((e,t)=>jr(e)&&(t??Object.values(ya)).every(r=>e.parameters.some(n=>n.name===r&&n.type==="Query")),"isInfiniteQuery");function VP({resolver:e,endpoint:t,operation:r}){let n=r["x-acl"];return n==null?void 0:n.map(i=>{let s=Object.keys(i.conditions??{}).reduce((a,c)=>{let u=Jq({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(kP(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o(VP,"getEndpointAcl");function Jq({resolver:e,endpoint:t,acl:r,name:n}){var f,d,h,y,b,m,P,$,T,I;let i=(d=(f=r[0])==null?void 0:f.conditions)==null?void 0:d[n];if(!i)return;let s=i.replace(/^\$[^.]*\./,"").split("."),a,c,u,l=0,p=t.parameters.find(({name:C})=>C===s[l]);if(p)c=(h=p.parameterObject)==null?void 0:h.required,a=(y=p.parameterObject)==null?void 0:y.schema,u=`${p.name} ${Xn(p.type)} parameter`,l++;else{let C=t.parameters.find(({bodyObject:Be})=>!!Be),J=Object.keys(((b=C==null?void 0:C.bodyObject)==null?void 0:b.content)??{}).find(tn);J&&(a=($=(P=(m=C==null?void 0:C.bodyObject)==null?void 0:m.content)==null?void 0:P[J])==null?void 0:$.schema,u=`${jr(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let C=e.resolveObject(a);a=(T=Object.entries(C.properties??{}).find(([J])=>J===s[l]))==null?void 0:T[1],c=((I=C.required)==null?void 0:I.includes(s[l]))??!1,l++}if(a)return{name:n,type:Ee(a)?void 0:a.type,zodSchemaName:Ee(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(Jq,"getEndpointAclConditionPropertyType");function HP({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var h,y;let s=e.resolveObject(t.requestBody);if(!s)return;let c=Object.keys(s.content??{}).find(tn);if(!c)return;let u=(y=(h=s.content)==null?void 0:h[c])==null?void 0:y.schema;if(!u)return;let l=Ke({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),p=e.resolveObject(u),f=ts({schema:p,zodSchema:l,fallbackName:Uu(Gi(r,n,i)),resolver:e,tag:i}),d=nn({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:BE,type:"Body",description:s.description,zodSchema:f+d,bodyObject:s},requestFormat:c}}o(HP,"getEndpointBody");function BP({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!WE.includes(s.in))return;let a={};if(s.content){let h=Object.keys(s.content??{}),y=h.find(tn);if(!y)throw new Error(`Unsupported media type for param ${s.name}: ${h.join(", ")}`);let b=s.content[y];if(!b)throw new Error(`No content with media type for param ${s.name}: ${y}`);a=(b==null?void 0:b.schema)??b}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let c=mP(Gi(r,n,i),s.name),u;if(fP(s)){let h=xa(c,e.options.enumSuffix,e.options.schemaSuffix),y=FP(s["x-enumNames"]);e.setZodSchema(h,y,i),u=h}let l=Ke({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),p=e.resolveObject(a),f=nn({schema:p,meta:l.meta,options:e.options}),d=ts({schema:p,zodSchema:l.assign(l.getCodeString(i)+f),fallbackName:c,resolver:e,tag:i});return{name:Pt(s.in).with("path",()=>Am(s.name)).otherwise(()=>s.name),type:Pt(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:d,parameterObject:s,parameterSortingEnumSchemaName:u}}o(BP,"getEndpointParameter");function GP(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){let u=e.openApiDoc.paths[c],l=Jn(u,Qn),p=UP(u.parameters??[]);for(let f in l){let d=l[f];if(!d||d.deprecated&&!e.options.withDeprecatedEndpoints)continue;let h=d.operationId&&d.operationId!==Gn(d.operationId);d.operationId&&h&&e.validationErrors.push(NP(d.operationId));let y=Object.entries({...p,...UP(d.parameters??[])}).map(([,I])=>I),b=Oa({path:c,method:f,operation:d,operationsByTag:e.operationsByTag,options:e.options}),m=e.operationNames.filter(I=>I===b).length<=1,P=Hi(d,e.options),$={method:f,path:lP(c),operationName:b,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(ei),requestFormat:"application/json",parameters:[],response:"",errors:[],responseStatusCodes:[],mediaUpload:!!d["x-media-upload"],mediaDownload:!!d["x-media-download"]};if(d.requestBody){let I=HP({resolver:e,operation:d,operationName:b,isUniqueOperationName:m,tag:P});I&&($.parameters.push(I.endpointParameter),$.requestFormat=I.requestFormat)}for(let I of y){let C=BP({resolver:e,param:I,operationName:b,isUniqueOperationName:m,tag:P});C&&$.parameters.push(C)}let T=Xq($);T.forEach(I=>{$.parameters.push(I)}),T.length>0&&e.validationErrors.push(RP(T,c));for(let I in d.responses){$.responseStatusCodes.push(I);let C=e.resolveObject(d.responses[I]),J=Object.keys(C.content??{}).find(Du),Be,xe;if(J?($.responseFormat=J,Be=(i=(n=C.content)==null?void 0:n[J])==null?void 0:i.schema):(xe=ma,I==="200"&&e.validationErrors.push(qP({received:"200",expected:"204"},d,$))),Be){let X=Ke({schema:Be,resolver:e,meta:{isRequired:!0},tag:P}),M=e.resolveObject(Be);xe=ts({schema:M,zodSchema:X,fallbackName:X.ref?void 0:Gu({statusCode:I,operationName:b,isUniqueOperationName:m,tag:P}),resolver:e,tag:P})+nn({schema:M,meta:X.meta,options:e.options})}if(xe){let X=Number(I);ku(X)?($.response=xe,$.responseObject=C,$.responseDescription=C.description):I!=="default"&&qu(X)&&$.errors.push({zodSchema:xe,status:X,description:C.description})}}$.response||($.response=ma),$.acl=VP({resolver:e,endpoint:$,operation:d}),(s=d.security)!=null&&s[0].Authorization&&!$.responseStatusCodes.includes("401")&&e.validationErrors.push(Rm("401",d,$)),(a=$.acl)!=null&&a[0]&&!$.responseStatusCodes.includes("403")&&e.validationErrors.push(Rm("403",d,$)),t.push($)}}return t}o(GP,"getEndpointsFromOpenAPIDoc");function UP(e){return Object.fromEntries((e??[]).map(t=>[Ee(t)?t.$ref:t.name,t]))}o(UP,"getParameters");function Xq(e){return[...e.path.matchAll(/:([a-zA-Z0-9_]+)/g)].map(r=>r[1]).filter(r=>e.parameters.findIndex(({name:n})=>n===r)===-1).map(r=>eD(r))}o(Xq,"getMissingPathParameters");function eD(e){return{name:e,type:"Path",zodSchema:Iu,parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(eD,"getPathParameterFromName");function zP(e,t){let r=tD(e,t),n=rD(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(zP,"getOpenAPISchemaDependencyGraph");function tD(e,t){let r={},n={};return e.forEach(i=>nD({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(tD,"getRefsDependencyGraph");function rD(e,t){let r={},n={},i=o((s,a)=>{n[a].add(s),t[s]&&a!==s&&t[s].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(s=>{let a=t[s];a&&(n[s]||(n[s]=new Set),a.forEach(c=>i(c,s)))}),n}o(rD,"getDeepRefsDependencyGraph");function nD({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let s=o(a=>{if(a.type!=="reference"||!a.data)return;let{schema:c,data:u}=a;if(i[u.fromRef]||(i[u.fromRef]=new Set),i[u.fromRef].add(c.$ref),n[c.$ref])return!0;n[u.fromRef]=!0,Tt(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return Tt(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(nD,"getSchemaRefsDependencyGraph");function Wu(e,t,r){let n=[];return Tt(t,{onSchema:o(s=>{s.type==="reference"?n.push(s.schema):Ee(s.parentSchema)&&(s.type==="property"?e.validationErrors.push(Ta(`${r} has both reference and properties`)):s.type==="additionalProperties"?e.validationErrors.push(Ta(`${r} has both reference and additionalProperties`)):s.type==="array"?e.validationErrors.push(Ta(`${r} is both reference and array schema`)):s.type==="composite"&&e.validationErrors.push(Ta(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(Wu,"getSchemaRefObjs");function ZP(e,t){return t.map(i=>Bi(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(ZP,"getDeepSchemaRefObjs");function WP(e){var n;let t={},r={};return Object.entries(((n=e.openApiDoc.components)==null?void 0:n.schemas)??{}).forEach(([i,s])=>{let a=rn(i,e.options.schemaSuffix);if(!t[a]){let c=e.getTagByZodSchemaName(a),u=e.resolveObject(s);u.enum?r[a]=es(u):t[a]=Ke({schema:s,resolver:e,tag:c}).getCodeString(c)}}),{zodSchemas:t,enumZodSchemas:r}}o(WP,"getZodSchemasFromOpenAPIDoc");function KP(e){var r;let t=[];return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=rn(n,e.options.schemaSuffix),a=e.resolveObject(i);!t.find(c=>c.zodSchemaName===s)&&a.enum&&t.push({zodSchemaName:s,code:es(a)})}),t}o(KP,"getEnumZodSchemasFromOpenAPIDoc");function Ra({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&YP({schema:e,nameSegments:t,...n}),Tt(e,{data:{nameSegments:t},onSchema:o(s=>{var c;if(s.type==="reference")return!0;let a=[...((c=s.data)==null?void 0:c.nameSegments)??[]];s.type==="property"&&a.push(s.propertyName),YP({schema:s.schema,nameSegments:[...a],...n})},"onSchema")})}o(Ra,"updateExtractedEnumZodSchemaData");function YP({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||Ee(t)||!t.enum)return;let a=es(t),c=e.extractedEnumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(s),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[]),c.meta.schemas.push(...t?[t]:[])):e.extractedEnumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[],schemas:t?[t]:[]}}),e.validationErrors.push(jP(r?`Schema ${Jo(r)} property ${s[s.length-1]}`:n??s.join("->")))}o(YP,"handleExtractedEnumZodSchemaDataUpdate");function QP(e){e.extractedEnumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=Pm(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=xa(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!km(e);)iD(e,t+2),t++;if(km(e)||e.extractedEnumZodSchemaData.filter(n=>!XP(e,n)).forEach(n=>{n.zodSchemaName=xa(n.meta.zodSchemaNameSegments[0].map(i=>qm(He(i))).join(""),e.options.enumSuffix,e.options.schemaSuffix)}),!km(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(QP,"resolveExtractedEnumZodSchemaNames");function km(e){return e.extractedEnumZodSchemaData.every(t=>XP(e,t))}o(km,"allExtractedEnumZodSchemaNamesAreUnique");function iD(e,t){e.extractedEnumZodSchemaData.forEach(r=>{let n=e.extractedEnumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&oD(n,t)})}o(iD,"additionalResolveExtractedEnumZodSchemaName");function oD(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1){let i=[qm(He(n[0])),r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=i}else{let i=Pm(n),s=[i?qm(He(i)):"",r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=s}})}o(oD,"suffixWithPreviousSegmentName");function JP(e){e.extractedEnumZodSchemaData.forEach(t=>{let r=Qt(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(JP,"resolveExtractedEnumZodSchemaTags");function XP(e,t){return e.extractedEnumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length===1}o(XP,"isUnique");function qm(e){return e.replace(/(Dto|DTO|Response|Request)/g,"")}o(qm,"sanitizeName");var Dm=class Dm{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=zP(this.schemaRefs,this.getSchemaByRef.bind(this)),this.enumZodSchemas=KP(this),this.operationsByTag=nP(t,r),this.operationNames=uP(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];dependencyGraph;enumZodSchemas=[];extractedEnumZodSchemaData=[];operationsByTag={};operationNames=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(oP)}getSchemaByRef(t){return this.docSchemas[Jo(t)]}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(Bi(t)))==null?void 0:n.zodSchemaName)??((i=this.extractedEnumZodSchemaData.find(s=>s.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var u,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.extractedEnumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return ei(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((u=this.getSchemaDataByRef(n))==null?void 0:u.tags)??[]:[],s=((l=this.zodSchemaData.find(p=>p.zodSchemaName===t))==null?void 0:l.tags)??[],a=Qt(i,s),c=a.length===1?a[0]:this.options.defaultTag;return ei(c??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(s=>s.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let s={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(s):this.compositeZodSchemaData.push({code:t,zodSchemas:[s]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemas.find(r=>r.code===t)}getExtractedEnumZodSchemaDataByCode(t){return this.extractedEnumZodSchemaData.find(r=>r.code===t)}getExtractedEnumZodSchemaNamesReferencedBySchemaRef(t){return this.extractedEnumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getExtractedEnumZodSchemas(){return this.extractedEnumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return Ee(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}getCircularSchemaChain(t,r=t,n=[]){var i,s;return(i=this.dependencyGraph.refsDependencyGraph[r])!=null&&i.has(t)?[...n,r,t]:Array.from(((s=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:s.values())??[]).map(a=>{let c=this.getCircularSchemaChain(t,a,n);return c.length>0?[r,...c]:c}).flat()}getBaseUrl(){var r,n;let t=(n=(r=this.openApiDoc.servers)==null?void 0:r[0])==null?void 0:n.url;return this.options.baseUrl===""&&t?t:this.options.baseUrl}getZodSchemaObj(t){let r=this.getRefByZodSchemaName(t);if(r)return this.getSchemaByRef(r);let n=this.getSchemaByCompositeZodSchemaName(t);if(n)return n;let i=this.getExtractedEnumZodSchemaDataByName(t);if(i)return i.meta.schemas.reduce((s,a)=>({...s,...this.resolveObject(a)}),{})}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getExtractedEnumZodSchemaDataByName(t){return this.extractedEnumZodSchemaData.find(({zodSchemaName:r})=>r===t)}initialize(){var t,r,n,i,s;this.schemaRefs.forEach(a=>{let c=Bi(a),u=Jo(c),l=rn(u,this.options.schemaSuffix);this.schemaData.push({ref:c,name:u,zodSchemaName:l,tags:[]})});for(let a in this.openApiDoc.paths){let c=this.openApiDoc.paths[a],u=Jn(c,Qn);for(let l in u){let p=u[l];if(!p||p.deprecated&&!this.options.withDeprecatedEndpoints)continue;let f=Hi(p,this.options),d=Oa({path:a,method:l,operation:p,operationsByTag:this.operationsByTag,options:this.options}),h=this.operationNames.filter(P=>P===d).length<=1,y=pt(Gi(d,h,f)),b=[];if((t=p.parameters)==null||t.map(P=>{let $=P,T=$.schema,I=`Operation ${p.operationId??a} parameter ${$.name}`;b.push(...Wu(this,T,I)),this.options.extractEnums&&Ra({resolver:this,schema:T,schemaInfo:I,tags:[f],nameSegments:[y,$.name],includeSelf:!0})}),p.requestBody){let P=this.resolveObject(p.requestBody),T=Object.keys(P.content??{}).find(tn);if(T){let I=(n=(r=P.content)==null?void 0:r[T])==null?void 0:n.schema,C=`Operation ${p.operationId} request body`;b.push(...Wu(this,I,C)),this.options.extractEnums&&Ra({resolver:this,schema:I,schemaInfo:C,tags:[f],nameSegments:[Uu(y)]})}}for(let P in p.responses){let $=this.resolveObject(p.responses[P]),I=Object.keys($.content??{}).find(Du);if(I){let C=(s=(i=$.content)==null?void 0:i[I])==null?void 0:s.schema,ae=`Operation ${p.operationId} response body`;b.push(...Wu(this,C,ae)),this.options.extractEnums&&Ra({resolver:this,schema:C,schemaInfo:ae,tags:[f],nameSegments:[Gu({statusCode:P,operationName:d,isUniqueOperationName:h,tag:f})]})}}ZP(this,b).forEach(P=>{let $=this.getSchemaDataByRef(P);$&&$.tags.push(f)})}}this.options.extractEnums&&(this.schemaRefs.forEach(a=>{var u;let c=Bi(a);Ra({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((u=this.getSchemaDataByRef(c))==null?void 0:u.tags)??[],nameSegments:[Jo(c)]})}),JP(this),this.handleDuplicateEnumZodSchemas(),QP(this))}handleDuplicateEnumZodSchemas(){let t=this.enumZodSchemas.map(({code:n})=>n),r=this.enumZodSchemas.filter(({code:n})=>t.includes(n));this.schemaData.forEach(n=>{var a;let i=(a=r.find(({zodSchemaName:c})=>c===n.zodSchemaName))==null?void 0:a.code;if(!i)return;let s=this.extractedEnumZodSchemaData.find(({code:c})=>c===i);s&&(n.tags.push(...s.meta.tags??[]),s.meta.schemaRefs.forEach(c=>{this.dependencyGraph.refsDependencyGraph[c]||(this.dependencyGraph.refsDependencyGraph[c]=new Set),this.dependencyGraph.refsDependencyGraph[c].add(n.ref),this.dependencyGraph.deepDependencyGraph[c]||(this.dependencyGraph.deepDependencyGraph[c]=new Set),this.dependencyGraph.deepDependencyGraph[c].add(n.ref)}))}),this.extractedEnumZodSchemaData.splice(0,this.extractedEnumZodSchemaData.length,...this.extractedEnumZodSchemaData.filter(({code:n})=>!t.includes(n)))}};o(Dm,"SchemaResolver");var Ku=Dm;function e1(e){let t=[],r={};function n(i,s){Array.isArray(s)||(s=[]),s.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{s.includes(a)||r[a]||n(a,s.slice(0))}),t.includes(i)||t.push(i)}return o(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}o(e1,"topologicalSort");function t1(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[s])=>t.indexOf(i)-t.indexOf(s)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}o(t1,"sortObjKeysFromArray");function r1(e,t){let r=e1(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return t1(t,r)}o(r1,"sortZodSchemasByTopology");function n1(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n);s&&e.isSchemaCircular(s)?(e.validationErrors.push(MP(e.getCircularSchemaChain(s).join(" -> "))),r[rn(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[rn(n,e.options.schemaSuffix)]=i}),r}o(n1,"wrapCircularZodSchemas");function Yu(e,t){let r=new Ku(e,t),n=GP(r),i=WP(r),s={...i.zodSchemas,...r.getZodSchemas(),...i.enumZodSchemas};return s=n1(r,s),s=r1(r,s),s={...r.getExtractedEnumZodSchemas(),...s},{resolver:r,data:sD({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(Yu,"getDataFromOpenAPIDoc");function sD({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=Ia(s,n);i1(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(i1(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(sD,"splitDataByTags");function i1(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(i1,"getTagElement");var ns=mt(require("fs")),Lm=mt(require("path"));function o1(e){return ns.default.readFileSync(Lm.default.join(__dirname,`../${e}`),"utf-8")}o(o1,"readFileSync");function Fm(e){let t=`src/generators/templates/${e}.hbs`;return o1(t)}o(Fm,"readHbsTemplateSync");function Vm(e){let t=`src/assets/${e}`;return o1(t)}o(Vm,"readAssetSync");function hn({output:e,fileName:t}){return`${e}/${t}`}o(hn,"getOutputFileName");function aD(e,t){let r=Lm.default.dirname(e);ns.default.existsSync(r)||ns.default.mkdirSync(r,{recursive:!0}),ns.default.writeFileSync(e,t,"utf-8")}o(aD,"writeFileWithDirSync");function cD({fileName:e,content:t}){aD(e,t)}o(cD,"writeFileSync");function s1(e){e.forEach(cD)}o(s1,"writeGenerateFileData");function a1(e,t){let r={...ct,...t},{resolver:n,data:i}=Yu(e,r);if(n.validationErrors.length>0){let s=DP(n.validationErrors);Object.entries(s).forEach(([a,c])=>{console.log(`${Fr.red(`${VE[a]}:`)}
145
145
  ${c.map(u=>`- ${u}`).join(`
146
146
  `)}
147
- `)})}else{let s=[...i.keys()].reduce((a,c)=>r.excludeTags.find(l=>l.toLowerCase()===c.toLowerCase())?a:[...a,...r4(c,r)],[]);console.log(`${Fr.green("Outputs:")}
147
+ `)})}else{let s=[...i.keys()].reduce((a,c)=>r.excludeTags.find(l=>l.toLowerCase()===c.toLowerCase())?a:[...a,...uD(c,r)],[]);console.log(`${Fr.green("Outputs:")}
148
148
  ${s.map(a=>`- ${a}`).join(`
149
149
  `)}
150
- `)}return n.validationErrors}o(e1,"checkOpenAPIDoc");function r4(e,t){return["models","endpoints","queries"].map(r=>ni({output:t.output,fileName:Hu({tag:e,type:r,options:t})}))}o(r4,"getOutputFileNames");async function r1({input:e,excludeTags:t,verbose:r,...n}){let i=Date.now();r&&ur("Parsing OpenAPI spec...");let s=await t1.default.bundle(e);r&&$n("Parsing finished."),r&&ur("Running check...");let a=e1(s,{input:e,excludeTags:t.split(","),...n});if(r&&ur(`TIME: ${Date.now()-i}ms`),a.length===0)$n("Check finished.");else throw new Error(`Check finished. Found ${a.length} issues.`)}o(r1,"check");var ii=class ii{input;splitByTags;defaultTag;excludeTags;verbose};o(ii,"CheckOptions"),De([Fe({envAlias:"input",demandOption:!0})],ii.prototype,"input",2),De([Fe({envAlias:"splitByTags",default:!0,type:"boolean"})],ii.prototype,"splitByTags",2),De([Fe({envAlias:"defaultTag",default:"Common"})],ii.prototype,"defaultTag",2),De([Fe({envAlias:"excludeTags",default:""})],ii.prototype,"excludeTags",2),De([Fe({envAlias:"verbose",default:!1,type:"boolean"})],ii.prototype,"verbose",2);var Dm=ii,n1={command:"check",describe:"Check OpenAPI spec",builder:vc(Dm),handler:o(async e=>{let t=await e;return t.verbose&&(bc(`OpenAPI CodeGen ${fo()}`),Os("input",t.input)),r1(t)},"handler")};var Sx=mt(um()),Ox=require("child_process");var i1={fileName:"acl/app.ability",extension:"ts"},Ta="AllAbilities",Mr={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subject:"subject"},Lm={bindings:[Mr.abilityTuple,Mr.pureAbility,Mr.forcedSubject,Mr.subject],from:"@casl/ability"};var o1=o(e=>`Use${He(pt(e.operationName))}Ability`,"getAbilityTypeName"),s1=o(e=>`canUse${He(pt(e.operationName))}`,"getAbilityFunctionName"),a1=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),c1=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),u1=o(e=>{var t;return!!((t=Fm(e))!=null&&t.length)},"hasAbilityConditions"),Fm=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].conditionsTypes},"getAbilityConditionsTypes"),l1=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].description},"getAbilityDescription"),Zu=o(e=>`${He(e)}${Ta}`,"getTagAllAbilitiesName");var Rg=mt(bn());var vn=mt(bn());function tx(){WL(),KL(),YL(),QL(),JL(),XL(),e8(),t8()}o(tx,"registerAclHbsHelpers");function WL(){vn.default.registerHelper("abilityTypeName",o1)}o(WL,"registerAbilityTypeNameHelper");function KL(){vn.default.registerHelper("abilityFunctionName",s1)}o(KL,"registerAbilityFunctionNameHelper");function YL(){vn.default.registerHelper("ablityAction",a1)}o(YL,"registerAbilityActionHelper");function QL(){vn.default.registerHelper("ablitySubject",c1)}o(QL,"registerAbilitySubjectHelper");function JL(){vn.default.registerHelper("hasAbilityConditions",u1)}o(JL,"registerHasAbilityConditionsHelper");function XL(){vn.default.registerHelper("abilityConditionsTypes",Fm)}o(XL,"registerAbilityConditionsTypesHelper");function e8(){vn.default.registerHelper("abilityDescription",l1)}o(e8,"registerAbilityDescriptionHelper");function t8(){vn.default.registerHelper("tagAllAbilitiesName",Zu)}o(t8,"registerTagAllAbilitiesNameHelper");var Ga=mt(bn());function rx(){r8(),n8(),i8(),o8()}o(rx,"registerCommonHbsHelpers");function r8(){Ga.default.registerHelper("isEqual",(e,t)=>e===t)}o(r8,"registerIsEqualHelper");function n8(){Ga.default.registerHelper("commaSeparated",e=>e.join(", "))}o(n8,"registerCommaSeparatedListHelper");function i8(){Ga.default.registerHelper("addAsteriskAfterNewLine",e=>e.replace(/\n/g,`
151
- *`))}o(i8,"registerAddAsteriskAfterNewLineHelper");function o8(){Ga.default.registerHelper("jsonStringify",e=>JSON.stringify(e,null,2))}o(o8,"registerJsonStringifyHelper");var ai=mt(bn());function nx(e){s8(),a8(e.options),l8(e),c8(),u8(),f8(e),p8()}o(nx,"registerEndpointsHbsHelpers");function s8(){ai.default.registerHelper("endpointName",Oa)}o(s8,"registerEndpointNameHelper");function a8(e){ai.default.registerHelper("importedEndpointName",t=>OE(t,e))}o(a8,"registerImportedEndpointNameHelper");function c8(){ai.default.registerHelper("endpointPath",PE)}o(c8,"registerEndpointPathHelper");function u8(){ai.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(u8,"registerEndpointBodyHelper");function l8(e){ai.default.registerHelper("endpointParams",(t,r)=>wa(e,t,r.hash))}o(l8,"registerEndpointParamsHelper");function f8(e){ai.default.registerHelper("endpointArgs",(t,r)=>wa(e,t,r.hash).map(n=>n.name).join(", "))}o(f8,"registerEndpointArgsHelper");function p8(){ai.default.registerHelper("endpointParamDescription",e=>{var s,a,c,u,l;let t=[`${e.paramType} parameter`],r=((s=e.parameterObject)==null?void 0:s.description)||((a=e.bodyObject)==null?void 0:a.description);r&&t.push(r);let n,i;if((c=e.parameterObject)!=null&&c.schema&&Zt(e.parameterObject.schema)&&(n=(u=e.parameterObject)==null?void 0:u.schema),(l=e.bodyObject)!=null&&l.content){let f=Object.keys(e.bodyObject.content??{}).find(tn);f&&(i=e.bodyObject.content[f],i.schema&&Zt(i.schema)&&(n=i.schema))}if(n){let p=_a(n);t.push(...p)}return i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(p8,"registerEndpointParamDescriptionHelper");var Xt=mt(bn());function ix(e){d8(),h8(),m8(),g8(e),y8(e),b8(e),v8(e),_8(e),S8(e),O8(),P8(),E8()}o(ix,"registerPartialsHbsHelpers");function d8(){Xt.default.registerHelper("genModelJsDocs",(e,t,r)=>er("model-js-docs")({name:e,zodSchema:t,tag:r}))}o(d8,"registerGenerateModelJsDocsHelper");function h8(){Xt.default.registerHelper("genImport",e=>er("import")({import:e}))}o(h8,"registerImportHelper");function m8(){Xt.default.registerHelper("genEndpointParams",(e,t)=>er("endpoint-params")({endpoint:e,options:t}))}o(m8,"registerGenerateEndpointParamsHelper");function g8(e){Xt.default.registerHelper("genEndpointConfig",t=>{let r=EE(t),n=e.options.axiosRequestConfig;return Object.keys(r).length===0?n?Bn:"":er("endpoint-config")({endpointConfig:r,hasAxiosRequestConfig:n,hasBlobResponse:t.response===xu,hasFileDownload:t.fileDownload,axiosRequestConfigName:Bn})})}o(g8,"registerGenerateEndpointConfigHelper");function y8(e){Xt.default.registerHelper("genQueryKeys",t=>t.length===0?"":er("query-keys")({queryEndpoints:t,queriesModuleName:$a,generateInfiniteQueries:e.options.infiniteQueries}))}o(y8,"registerGenerateQueryKeysHelper");function b8(e){Xt.default.registerHelper("genQuery",t=>{if(!jr(t))return;let r=e.options.axiosRequestConfig;return er("query-use-query")({endpoint:t,queryHook:Kt.query,hasQueryFn:wa(e,t).length>0||r,hasAxiosRequestConfig:r,axiosRequestConfigName:Bn,axiosRequestConfigType:Qr})})}o(b8,"registerGenerateQueryHelper");function v8(e){Xt.default.registerHelper("genMutation",t=>{if(ri(t))return er("query-use-mutation")({endpoint:t,queryHook:Kt.mutation,queriesModuleName:$a,hasAxiosRequestConfig:e.options.axiosRequestConfig,axiosRequestConfigName:Bn,axiosRequestConfigType:Qr,hasInvalidateQueryOptions:e.options.invalidateQueryOptions,invalidateQueryOptionsType:ei.optionsType})})}o(v8,"registerGenerateMutationHelper");function _8(e){Xt.default.registerHelper("genInfiniteQuery",t=>{if(!(!e.options.infiniteQueries||!ts(t)))return er("query-use-infinite-query")({endpoint:t,infiniteQueryHook:Kt.infiniteQuery,pageParamName:Bu.pageParamName,totalItemsName:Bu.totalItemsName,limitParamName:Bu.limitParamName,hasAxiosRequestConfig:e.options.axiosRequestConfig,axiosRequestConfigName:Bn,axiosRequestConfigType:Qr})})}o(_8,"registerGenerateInfiniteQueryHelper");function S8(e){Xt.default.registerHelper("genQueryJsDocs",(t,r)=>er("query-js-docs")({endpoint:t,query:r.hash.query,mutation:r.hash.mutation,infiniteQuery:r.hash.infiniteQuery,hasInvalidateQueryOptions:e.options.invalidateQueryOptions,invalidateQueryOptionsType:ei.optionsType}))}o(S8,"registerGenerateQueryJsDocsHelper");function O8(){Xt.default.registerHelper("genCaslAbilityType",e=>er("casl-ability-type")({endpoint:e,abilityTupleType:Mr.abilityTuple}))}o(O8,"registerGenerateCaslAbilityTypeHelper");function P8(){Xt.default.registerHelper("genCaslAbilityFunction",e=>er("casl-ability-function")({endpoint:e}))}o(P8,"registerGenerateCaslAbilityFunctionHelper");function E8(){Xt.default.registerHelper("genCaslAbilityQuery",e=>er("casl-ability-query")({endpoint:e}))}o(E8,"registerGenerateCaslAbilityQueryHelper");var ps=mt(bn());var ox=o((e,t)=>{let r=jr(e)&&ri(e)&&t;return`use${He(pt(e.operationName))}${r?"Mutation":""}`},"getQueryName"),sx=o(e=>`use${He(pt(e.operationName))}Infinite`,"getInfiniteQueryName");function ax(){x8(),w8(),A8(),$8(),I8()}o(ax,"registerQueryHbsHelpers");function x8(){ps.default.registerHelper("queryName",(e,t)=>ox(e,t.hash.mutation))}o(x8,"registerQueryNameHelper");function $8(){ps.default.registerHelper("infiniteQueryName",sx)}o($8,"registerInfiniteQueryNameHelper");function w8(){ps.default.registerHelper("isQuery",jr)}o(w8,"registerIsQueryHelper");function A8(){ps.default.registerHelper("isMutation",ri)}o(A8,"registerIsMutationHelper");function I8(){ps.default.registerHelper("isInfiniteQuery",e=>ts(e))}o(I8,"registerIsInfiniteQueryHelper");var eo=mt(bn());function cx(e){C8(e.options),T8(e),R8(e),N8(),j8(),M8(e)}o(cx,"registerZodHbsHelpers");function C8(e){eo.default.registerHelper("zodInferedType",t=>Sa(t,e))}o(C8,"registerInferedTypeHelper");function T8(e){eo.default.registerHelper("importedZodSchemaName",t=>uE(e,t))}o(T8,"registerImportedZodSchemaNameHelper");function R8(e){eo.default.registerHelper("importedZodSchemaInferedType",t=>zi(e,t))}o(R8,"registerImportedZodSchemaInferedTypeHelper");function N8(){eo.default.registerHelper("zodSchemaType",e=>lE(e))}o(N8,"registerZodSchemaTypeHelper");function j8(){eo.default.registerHelper("zodSchemaDescription",e=>fE(e))}o(j8,"registerZodSchemaDescriptionHelper");function M8(e){eo.default.registerHelper("zodSchemaPropertyDescriptions",(t,r)=>dE(e,t,r))}o(M8,"registerZodSchemaPropertyDescriptionsHelper");var ux=mt(bn());function lx(){k8()}o(lx,"registerImportsHbsHelpers");function k8(){ux.default.registerHelper("importNames",(e,t)=>[...t?[t]:[],...e?[`{ ${e.join(", ")} }`]:[]].join(", "))}o(k8,"registerBindingsHelper");function tr(e,t){let r=qm(t);return rx(),lx(),cx(e),nx(e),ax(),tx(),ix(e),Rg.default.compile(r)}o(tr,"getHbsTemplateDelegate");function er(e){let t=qm(`partials/${e}`);return Rg.default.compile(t)}o(er,"getHbsPartialTemplateDelegate");function fx({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints.filter(({acl:p})=>p&&p.length>0);if(!n||n.length===0)return;let i=n.some(({acl:p})=>(p==null?void 0:p[0].conditions)&&Object.keys(p[0].conditions).length>0),s={bindings:[Mr.abilityTuple,...i?[Mr.forcedSubject,Mr.subject]:[]],from:Lm.from},a=n.reduce((p,f)=>{var h,y;let d=(y=(h=f.acl)==null?void 0:h[0].conditionsTypes)==null?void 0:y.reduce((b,g)=>[...b,...g!=null&&g.zodSchemaName?[g.zodSchemaName]:[]],[]);return[...p,...d??[]]},[]),c=ti({resolver:e,tag:r,zodSchemasAsTypes:Wt(a)});return tr(e,"acl")({caslAbilityTupleImport:s,modelsImports:c,includeNamespace:e.options.tsNamespaces,namespace:Ge({type:"acl",tag:r,options:e.options}),endpoints:n})}o(fx,"generateAcl");function px(e,t){if(!t||t.length===0)return;let r={bindings:[Mr.pureAbility],from:Lm.from},n=mE({tags:t,entityName:Ta,getAliasEntityName:Zu,type:"acl",options:e.options}),i=t.map(a=>Ge({type:"acl",tag:a,options:e.options}));return tr(e,"app-acl")({caslAbilityTupleImport:r,imports:n,allAbilities:Ta,includeNamespace:e.options.tsNamespaces,tags:t,namespaces:i})}o(px,"generateAppAcl");function dx(e){return tr(e,"app-rest-client")({appRestClientName:va,baseUrl:e.getBaseUrl()})}o(dx,"generateAppRestClient");function hx({resolver:e,data:t,tag:r=""}){var h;let n=(h=t.get(r))==null?void 0:h.endpoints;if(!n||n.length===0)return;let i={bindings:[va],from:yE(e.options)},s=e.options.axiosRequestConfig,a=s,c={bindings:s?[Qr]:[],from:Au.from},u=n.map(y=>y.response),l=u.some(y=>!Lt(y)),p=n.reduce((y,b)=>[...y,...b.parameters],[]),f=ti({resolver:e,tag:r,zodSchemas:Wt(u.filter(Lt)),zodSchemasAsTypes:Wt(p.map(y=>y.zodSchema).filter(Lt))});return tr(e,"endpoints")({appRestClientImport:i,hasAxiosImport:a,axiosImport:c,hasZodImport:l,zodImport:wu,modelsImports:f,includeNamespace:e.options.tsNamespaces,namespace:Ge({type:"endpoints",tag:r,options:e.options}),restClientName:va,hasAxiosRequestConfig:s,axiosRequestConfigName:Bn,axiosRequestConfigType:Qr,endpoints:n})}o(hx,"generateEndpoints");function mx({resolver:e,data:t}){let r=[];return t.forEach((i,s)=>{var u;if(e.options.excludeTags.find(l=>l.toLowerCase()===s.toLowerCase()))return;let c=(u=t.get(s))==null?void 0:u.endpoints;!c||c.length===0||r.push({tag:s,namespace:Ge({type:"queries",tag:s,options:e.options})})}),tr(e,"invalidate-queries")({modules:r})}o(mx,"generateInvalidateQueries");function gx(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getExtractedEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(yx(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(gx,"getZodSchemaRefs");function yx(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&yx(n).forEach(s=>r.add(s)),r},new Set)}o(yx,"getSchemaRefs");function bx({resolver:e,data:t,tag:r=""}){var u;let n=(u=t.get(r))==null?void 0:u.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,p)=>[...l,...gx(e,p)],[]).filter(l=>!n[l]),s=ti({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[p,f])=>{let d=e.getRefByZodSchemaName(p);return{...l,[p]:{code:f,isCircular:!!d&&e.isSchemaCircular(d),isEnum:aE(f),schemaObj:e.getZodSchemaObj(p)}}},{});return tr(e,"models")({zodImport:wu,modelsImports:s,includeNamespace:e.options.tsNamespaces,namespace:Ge({type:"models",tag:r,options:e.options}),tag:r,zodSchemasData:a})}o(bx,"generateModels");function vx({resolver:e,data:t,tag:r=""}){var $;let n=($=t.get(r))==null?void 0:$.endpoints;if(!n||n.length===0)return;let i=e.options.axiosRequestConfig,s=n.some(({fileUpload:T})=>T),a=i||s,c={defaultImport:s?fm:void 0,bindings:i?[Qr]:[],from:Au.from},u=n.filter(jr),l=u.filter(T=>ts(T)),p=n.filter(ri),f={bindings:[...u.length>0?[Kt.query]:[],...e.options.infiniteQueries&&l.length>0?[Kt.infiniteQuery]:[],...p.length>0?[Kt.mutation,Kt.queryClient]:[]],from:SE.from},d={bindings:[ei.queryModuleEnum,...p.length>0?[ei.optionsType,ei.functionName]:[]],from:vE(e.options)},h={bindings:[...u.length>0?[Mu.query]:[],...e.options.infiniteQueries&&l.length>0?[Mu.infiniteQuery]:[],...p.length>0?[Mu.mutation]:[]],from:bE(e.options)},y=n.reduce((T,I)=>[...T,...I.parameters],[]),b=ti({resolver:e,tag:r,zodSchemasAsTypes:Wt(y.map(T=>T.zodSchema).filter(Lt))}),g=hE({tag:r,endpoints:n,options:e.options});return tr(e,"queries")({hasAxiosImport:a,axiosImport:c,queryImport:f,hasInvalidateQueryOptions:e.options.invalidateQueryOptions,invalidateQueriesImport:d,queryTypesImport:h,modelsImports:b,endpointsImports:g,includeNamespace:e.options.tsNamespaces,tag:r,namespace:Ge({type:"queries",tag:r,options:e.options}),queriesModuleName:$a,queryModuleEnum:ei.queryModuleEnum,endpoints:n,queryEndpoints:u})}o(vx,"generateQueries");function _x(e,t){let r=t.standalone&&t.importPath==="ts"?"relative":t.importPath,n={...ct,...t,importPath:r},{resolver:i,data:s}=zu(e,n),a=[],c=[],u=["models","endpoints","queries","acl"],l={models:bx,endpoints:hx,queries:vx,acl:fx};s.forEach((f,d)=>{n.excludeTags.find(y=>y.toLowerCase()===d.toLowerCase())||u.forEach(y=>{let b=l[y]({resolver:i,data:s,tag:d});if(b){let g=ni({output:n.output,fileName:Hu({tag:d,type:y,options:n})});a.push({fileName:g,content:b}),y==="acl"&&c.push(d)}})});let p=px(i,c);if(p){let f=ni({output:n.output,fileName:Ea(i1)});a.push({fileName:f,content:p})}return n.invalidateQueryOptions&&a.push({fileName:ni({output:i.options.output,fileName:Ea(Du)}),content:mx({resolver:i,data:s})}),n.standalone&&a.push(...q8(i)),a}o(_x,"generateCodeFromOpenAPIDoc");function q8(e){let t=[];return Object.values(ku).forEach(r=>{let n=Ea(r);t.push({content:JE(n),fileName:ni({output:e.options.output,fileName:n})})}),t.push({fileName:ni({output:e.options.output,fileName:Ea(qu)}),content:dx(e)}),t}o(q8,"getStandaloneFiles");async function Px({input:e,excludeTags:t,prettier:r,verbose:n,...i}){let s=Date.now();n&&ur("Parsing OpenAPI spec...");let a=await Sx.default.bundle(e);n&&$n("Parsing finished."),n&&ur("Generating code...");let c=_x(a,{input:e,excludeTags:t.split(","),...i});n&&$n("Generation finished."),n&&ur("Writing files..."),XE(c),n&&$n("Writing finished."),r&&D8({output:i.output,verbose:n}),n&&ur(`TIME: ${Date.now()-s}ms`)}o(Px,"generate");function D8({output:e,verbose:t}){t&&ur("Running Prettier..."),(0,Ox.exec)(`prettier --write ${e} `,n=>{t&&(n?Ps(n,"Prettier error"):$n("Prettier finished."))})}o(D8,"execPrettier");var it=class it{input;output;tsNamespaces;splitByTags;defaultTag;excludeTags;importPath;extractEnums;removeOperationPrefixEndingWith;standalone;baseUrl;replaceOptionalWithNullish;infiniteQueries;invalidateQueryOptions;axiosRequestConfig;prettier;verbose};o(it,"GenerateOptions"),De([Fe({envAlias:"input",demandOption:!0})],it.prototype,"input",2),De([Fe({envAlias:"output",default:ct.output})],it.prototype,"output",2),De([Fe({envAlias:"tsNamespaces",default:ct.tsNamespaces,type:"boolean"})],it.prototype,"tsNamespaces",2),De([Fe({envAlias:"splitByTags",default:ct.splitByTags,type:"boolean"})],it.prototype,"splitByTags",2),De([Fe({envAlias:"defaultTag",default:ct.defaultTag})],it.prototype,"defaultTag",2),De([Fe({envAlias:"excludeTags",default:ct.excludeTags.join(",")})],it.prototype,"excludeTags",2),De([Fe({envAlias:"importPath",default:ct.importPath})],it.prototype,"importPath",2),De([Fe({envAlias:"extractEnums",default:ct.extractEnums,type:"boolean"})],it.prototype,"extractEnums",2),De([Fe({envAlias:"removeOperationPrefixEndingWith",default:ct.removeOperationPrefixEndingWith})],it.prototype,"removeOperationPrefixEndingWith",2),De([Fe({envAlias:"standalone",default:ct.standalone,type:"boolean"})],it.prototype,"standalone",2),De([Fe({envAlias:"baseUrl",default:ct.baseUrl})],it.prototype,"baseUrl",2),De([Fe({envAlias:"replaceOptionalWithNullish",default:ct.replaceOptionalWithNullish,type:"boolean"})],it.prototype,"replaceOptionalWithNullish",2),De([Fe({envAlias:"infiniteQueries",default:ct.infiniteQueries,type:"boolean"})],it.prototype,"infiniteQueries",2),De([Fe({envAlias:"invalidateQueryOptions",default:ct.invalidateQueryOptions,type:"boolean"})],it.prototype,"invalidateQueryOptions",2),De([Fe({envAlias:"axiosRequestConfig",default:ct.axiosRequestConfig,type:"boolean"})],it.prototype,"axiosRequestConfig",2),De([Fe({envAlias:"prettier",default:!0,type:"boolean"})],it.prototype,"prettier",2),De([Fe({envAlias:"verbose",default:!1,type:"boolean"})],it.prototype,"verbose",2);var Ng=it,Ex={command:"generate",describe:"Generate code from OpenAPI spec",builder:vc(Ng),handler:o(async e=>{let t=await e;return t.verbose&&(bc(`OpenAPI CodeGen ${fo()}`),Os("input",t.input),Os("output",t.output)),Px(t)},"handler")};Ly(Hl(process.argv)).version(fo()||"unknown").scriptName("openapi-codegen").command(Ex).command(n1).help().demandCommand(1).strictCommands(!0).showHelpOnFail(!0).fail((e,t)=>{e&&Ps(e),t&&Ps(t),ur("Use '--help' for more info"),process.exit(1)}).parse();
150
+ `)}return n.validationErrors}o(a1,"checkOpenAPIDoc");function uD(e,t){return["models","endpoints","queries"].map(r=>hn({output:t.output,fileName:Zu({tag:e,type:r,options:t})}))}o(uD,"getOutputFileNames");async function u1({input:e,excludeTags:t,verbose:r,...n}){let i=Date.now();r&&ur("Parsing OpenAPI spec...");let s=await c1.default.bundle(e);r&&wn("Parsing finished."),r&&ur("Running check...");let a=a1(s,{input:e,excludeTags:t.split(","),...n});if(r&&ur(`TIME: ${Date.now()-i}ms`),a.length===0)wn("Check finished.");else throw new Error(`Check finished. Found ${a.length} issues.`)}o(u1,"check");var ii=class ii{input;splitByTags;defaultTag;excludeTags;verbose};o(ii,"CheckOptions"),De([Fe({envAlias:"input",demandOption:!0})],ii.prototype,"input",2),De([Fe({envAlias:"splitByTags",default:!0,type:"boolean"})],ii.prototype,"splitByTags",2),De([Fe({envAlias:"defaultTag",default:"Common"})],ii.prototype,"defaultTag",2),De([Fe({envAlias:"excludeTags",default:""})],ii.prototype,"excludeTags",2),De([Fe({envAlias:"verbose",default:!1,type:"boolean"})],ii.prototype,"verbose",2);var Hm=ii,l1={command:"check",describe:"Check OpenAPI spec",builder:Oc(Hm),handler:o(async e=>{let t=await e;return t.verbose&&(Sc(`OpenAPI CodeGen ${po()}`),Es("input",t.input)),u1(t)},"handler")};var A2=mt(dm()),I2=require("child_process");var f1={fileName:"acl/app.ability",extension:"ts"},ja="AllAbilities",Mr={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subject:"subject"},Bm={bindings:[Mr.abilityTuple,Mr.pureAbility,Mr.forcedSubject,Mr.subject],from:"@casl/ability"};var p1=o(e=>`Use${He(pt(e.operationName))}Ability`,"getAbilityTypeName"),d1=o(e=>`canUse${He(pt(e.operationName))}`,"getAbilityFunctionName"),h1=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),m1=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),g1=o(e=>{var t;return!!((t=Um(e))!=null&&t.length)},"hasAbilityConditions"),Um=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].conditionsTypes},"getAbilityConditionsTypes"),y1=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].description},"getAbilityDescription"),Qu=o(e=>`${He(e)}${ja}`,"getTagAllAbilitiesName");var kg=mt(vn());var _n=mt(vn());function c2(){t8(),r8(),n8(),i8(),o8(),s8(),a8(),c8()}o(c2,"registerAclHbsHelpers");function t8(){_n.default.registerHelper("abilityTypeName",p1)}o(t8,"registerAbilityTypeNameHelper");function r8(){_n.default.registerHelper("abilityFunctionName",d1)}o(r8,"registerAbilityFunctionNameHelper");function n8(){_n.default.registerHelper("ablityAction",h1)}o(n8,"registerAbilityActionHelper");function i8(){_n.default.registerHelper("ablitySubject",m1)}o(i8,"registerAbilitySubjectHelper");function o8(){_n.default.registerHelper("hasAbilityConditions",g1)}o(o8,"registerHasAbilityConditionsHelper");function s8(){_n.default.registerHelper("abilityConditionsTypes",Um)}o(s8,"registerAbilityConditionsTypesHelper");function a8(){_n.default.registerHelper("abilityDescription",y1)}o(a8,"registerAbilityDescriptionHelper");function c8(){_n.default.registerHelper("tagAllAbilitiesName",Qu)}o(c8,"registerTagAllAbilitiesNameHelper");var Wa=mt(vn());function u2(){u8(),l8(),f8(),p8()}o(u2,"registerCommonHbsHelpers");function u8(){Wa.default.registerHelper("isEqual",(e,t)=>e===t)}o(u8,"registerIsEqualHelper");function l8(){Wa.default.registerHelper("commaSeparated",e=>e.join(", "))}o(l8,"registerCommaSeparatedListHelper");function f8(){Wa.default.registerHelper("addAsteriskAfterNewLine",e=>e.replace(/\n/g,`
151
+ *`))}o(f8,"registerAddAsteriskAfterNewLineHelper");function p8(){Wa.default.registerHelper("jsonStringify",e=>JSON.stringify(e,null,2))}o(p8,"registerJsonStringifyHelper");var ai=mt(vn());function l2(e){d8(),h8(e.options),y8(e),m8(),g8(),b8(e),v8()}o(l2,"registerEndpointsHbsHelpers");function d8(){ai.default.registerHelper("endpointName",Aa)}o(d8,"registerEndpointNameHelper");function h8(e){ai.default.registerHelper("importedEndpointName",t=>IP(t,e))}o(h8,"registerImportedEndpointNameHelper");function m8(){ai.default.registerHelper("endpointPath",CP)}o(m8,"registerEndpointPathHelper");function g8(){ai.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(g8,"registerEndpointBodyHelper");function y8(e){ai.default.registerHelper("endpointParams",(t,r)=>Ca(e,t,r.hash))}o(y8,"registerEndpointParamsHelper");function b8(e){ai.default.registerHelper("endpointArgs",(t,r)=>Ca(e,t,r.hash).map(n=>n.name).join(", "))}o(b8,"registerEndpointArgsHelper");function v8(){ai.default.registerHelper("endpointParamDescription",e=>{var s,a,c,u,l;let t=[`${e.paramType} parameter`],r=((s=e.parameterObject)==null?void 0:s.description)||((a=e.bodyObject)==null?void 0:a.description);r&&t.push(r);let n,i;if((c=e.parameterObject)!=null&&c.schema&&Ct(e.parameterObject.schema)&&(n=(u=e.parameterObject)==null?void 0:u.schema),(l=e.bodyObject)!=null&&l.content){let f=Object.keys(e.bodyObject.content??{}).find(tn);f&&(i=e.bodyObject.content[f],i.schema&&Ct(i.schema)&&(n=i.schema))}if(n){let p=$a(n);t.push(...p)}return i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(v8,"registerEndpointParamDescriptionHelper");var Vt=mt(vn());function f2(e){_8(),S8(),O8(),E8(e),P8(),x8(e),$8(e),w8(e),A8(e),I8(e),C8(),T8(),N8()}o(f2,"registerPartialsHbsHelpers");function _8(){Vt.default.registerHelper("genModelJsDocs",(e,t,r)=>Ht("model-js-docs")({name:e,zodSchema:t,tag:r}))}o(_8,"registerGenerateModelJsDocsHelper");function S8(){Vt.default.registerHelper("genImport",e=>Ht("import")({import:e}))}o(S8,"registerImportHelper");function O8(){Vt.default.registerHelper("genEndpointParams",(e,t)=>Ht("endpoint-params")({endpoint:e,options:t}))}o(O8,"registerGenerateEndpointParamsHelper");function E8(e){Vt.default.registerHelper("genEndpointConfig",t=>{let r=TP(t),n=e.options.axiosRequestConfig;return Object.keys(r).length===0?n?Un:"":Ht("endpoint-config")({endpointConfig:r,hasAxiosRequestConfig:n,hasBlobResponse:t.response===Au,hasFileDownload:t.mediaDownload,axiosRequestConfigName:Un})})}o(E8,"registerGenerateEndpointConfigHelper");function P8(){Vt.default.registerHelper("genEndpointParamSorting",(e,t)=>Ht("endpoint-param-sorting")({enumSchemaName:e,paramName:t,zodExtended:Pa.name,sortingString:Pa.properties.sortingString}))}o(P8,"registerGenerateEndpointParamSortingHelper");function x8(e){Vt.default.registerHelper("genQueryKeys",t=>t.length===0?"":Ht("query-keys")({queryEndpoints:t,queriesModuleName:ba,generateInfiniteQueries:e.options.infiniteQueries}))}o(x8,"registerGenerateQueryKeysHelper");function $8(e){Vt.default.registerHelper("genQuery",t=>{if(!jr(t))return;let r=e.options.axiosRequestConfig;return Ht("query-use-query")({endpoint:t,queryHook:Yt.query,hasQueryFn:Ca(e,t).length>0||r,hasAxiosRequestConfig:r,axiosRequestConfigName:Un,axiosRequestConfigType:Qr})})}o($8,"registerGenerateQueryHelper");function w8(e){Vt.default.registerHelper("genMutation",t=>{if(ni(t))return Ht("query-use-mutation")({endpoint:t,queryHook:Yt.mutation,queriesModuleName:ba,hasAxiosRequestConfig:e.options.axiosRequestConfig,axiosRequestConfigName:Un,axiosRequestConfigType:Qr,hasInvalidateQueryOptions:e.options.invalidateQueryOptions,invalidateQueryOptionsType:ti.optionsType})})}o(w8,"registerGenerateMutationHelper");function A8(e){Vt.default.registerHelper("genInfiniteQuery",t=>{if(!(!e.options.infiniteQueries||!rs(t)))return Ht("query-use-infinite-query")({endpoint:t,infiniteQueryHook:Yt.infiniteQuery,pageParamName:Tu.pageParamName,totalItemsName:Tu.totalItemsName,limitParamName:Tu.limitParamName,hasAxiosRequestConfig:e.options.axiosRequestConfig,axiosRequestConfigName:Un,axiosRequestConfigType:Qr})})}o(A8,"registerGenerateInfiniteQueryHelper");function I8(e){Vt.default.registerHelper("genQueryJsDocs",(t,r)=>Ht("query-js-docs")({endpoint:t,query:r.hash.query,mutation:r.hash.mutation,infiniteQuery:r.hash.infiniteQuery,hasInvalidateQueryOptions:e.options.invalidateQueryOptions,invalidateQueryOptionsType:ti.optionsType}))}o(I8,"registerGenerateQueryJsDocsHelper");function C8(){Vt.default.registerHelper("genCaslAbilityType",e=>Ht("casl-ability-type")({endpoint:e,abilityTupleType:Mr.abilityTuple}))}o(C8,"registerGenerateCaslAbilityTypeHelper");function T8(){Vt.default.registerHelper("genCaslAbilityFunction",e=>Ht("casl-ability-function")({endpoint:e}))}o(T8,"registerGenerateCaslAbilityFunctionHelper");function N8(){Vt.default.registerHelper("genCaslAbilityQuery",e=>Ht("casl-ability-query")({endpoint:e}))}o(N8,"registerGenerateCaslAbilityQueryHelper");var ds=mt(vn());var p2=o((e,t)=>{let r=jr(e)&&ni(e)&&t;return`use${He(pt(e.operationName))}${r?"Mutation":""}`},"getQueryName"),d2=o(e=>`use${He(pt(e.operationName))}Infinite`,"getInfiniteQueryName");function h2(){R8(),M8(),k8(),j8(),q8()}o(h2,"registerQueryHbsHelpers");function R8(){ds.default.registerHelper("queryName",(e,t)=>p2(e,t.hash.mutation))}o(R8,"registerQueryNameHelper");function j8(){ds.default.registerHelper("infiniteQueryName",d2)}o(j8,"registerInfiniteQueryNameHelper");function M8(){ds.default.registerHelper("isQuery",jr)}o(M8,"registerIsQueryHelper");function k8(){ds.default.registerHelper("isMutation",ni)}o(k8,"registerIsMutationHelper");function q8(){ds.default.registerHelper("isInfiniteQuery",e=>rs(e))}o(q8,"registerIsInfiniteQueryHelper");var to=mt(vn());function m2(e){D8(e.options),L8(e),F8(e),V8(),H8(),B8(e)}o(m2,"registerZodHbsHelpers");function D8(e){to.default.registerHelper("zodInferedType",t=>wa(t,e))}o(D8,"registerInferedTypeHelper");function L8(e){to.default.registerHelper("importedZodSchemaName",t=>gP(e,t))}o(L8,"registerImportedZodSchemaNameHelper");function F8(e){to.default.registerHelper("importedZodSchemaInferedType",t=>zi(e,t))}o(F8,"registerImportedZodSchemaInferedTypeHelper");function V8(){to.default.registerHelper("zodSchemaType",e=>yP(e))}o(V8,"registerZodSchemaTypeHelper");function H8(){to.default.registerHelper("zodSchemaDescription",e=>bP(e))}o(H8,"registerZodSchemaDescriptionHelper");function B8(e){to.default.registerHelper("zodSchemaPropertyDescriptions",(t,r)=>_P(e,t,r))}o(B8,"registerZodSchemaPropertyDescriptionsHelper");var g2=mt(vn());function y2(){U8()}o(y2,"registerImportsHbsHelpers");function U8(){g2.default.registerHelper("importNames",(e,t)=>[...t?[t]:[],...e?[`{ ${e.join(", ")} }`]:[]].join(", "))}o(U8,"registerBindingsHelper");function tr(e,t){let r=Fm(t);return u2(),y2(),m2(e),l2(e),h2(),c2(),f2(e),kg.default.compile(r)}o(tr,"getHbsTemplateDelegate");function Ht(e){let t=Fm(`partials/${e}`);return kg.default.compile(t)}o(Ht,"getHbsPartialTemplateDelegate");function b2({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints.filter(({acl:p})=>p&&p.length>0);if(!n||n.length===0)return;let i=n.some(({acl:p})=>(p==null?void 0:p[0].conditions)&&Object.keys(p[0].conditions).length>0),s={bindings:[Mr.abilityTuple,...i?[Mr.forcedSubject,Mr.subject]:[]],from:Bm.from},a=n.reduce((p,f)=>{var h,y;let d=(y=(h=f.acl)==null?void 0:h[0].conditionsTypes)==null?void 0:y.reduce((b,m)=>[...b,...m!=null&&m.zodSchemaName?[m.zodSchemaName]:[]],[]);return[...p,...d??[]]},[]),c=ri({resolver:e,tag:r,zodSchemasAsTypes:Qt(a)});return tr(e,"acl")({caslAbilityTupleImport:s,modelsImports:c,includeNamespace:e.options.tsNamespaces,namespace:Ge({type:"acl",tag:r,options:e.options}),endpoints:n})}o(b2,"generateAcl");function v2(e,t){if(!t||t.length===0)return;let r={bindings:[Mr.pureAbility],from:Bm.from},n=OP({tags:t,entityName:ja,getAliasEntityName:Qu,type:"acl",options:e.options}),i=t.map(a=>Ge({type:"acl",tag:a,options:e.options}));return tr(e,"app-acl")({caslAbilityTupleImport:r,imports:n,allAbilities:ja,includeNamespace:e.options.tsNamespaces,tags:t,namespaces:i})}o(v2,"generateAppAcl");function _2(e){return tr(e,"app-rest-client")({appRestClientName:Ea,baseUrl:e.getBaseUrl()})}o(_2,"generateAppRestClient");function S2({resolver:e,data:t,tag:r=""}){var b;let n=(b=t.get(r))==null?void 0:b.endpoints;if(!n||n.length===0)return;let i={bindings:[Ea],from:PP(e.options)},s=n.some(m=>m.parameters.some(P=>P.parameterSortingEnumSchemaName)),a={bindings:[Pa.name],from:wP(e.options)},c=e.options.axiosRequestConfig,u=c,l={bindings:c?[Qr]:[],from:Nu.from},p=n.map(m=>m.response),f=p.some(m=>!Ft(m)),d=n.reduce((m,P)=>[...m,...P.parameters],[]),h=ri({resolver:e,tag:r,zodSchemas:Qt([...p.filter(Ft),...d.map(m=>m.parameterSortingEnumSchemaName).filter(rP)]),zodSchemasAsTypes:Qt(d.map(m=>m.zodSchema).filter(Ft))});return tr(e,"endpoints")({appRestClientImport:i,hasAxiosImport:u,axiosImport:l,hasZodImport:f,zodImport:Cu,hasZodExtendedImport:s,zodExtendedImport:a,modelsImports:h,includeNamespace:e.options.tsNamespaces,namespace:Ge({type:"endpoints",tag:r,options:e.options}),restClientName:Ea,hasAxiosRequestConfig:c,axiosRequestConfigName:Un,axiosRequestConfigType:Qr,endpoints:n})}o(S2,"generateEndpoints");function O2({resolver:e,data:t}){let r=[];return t.forEach((i,s)=>{var u;if(e.options.excludeTags.find(l=>l.toLowerCase()===s.toLowerCase()))return;let c=(u=t.get(s))==null?void 0:u.endpoints;!c||c.length===0||r.push({tag:s,namespace:Ge({type:"queries",tag:s,options:e.options})})}),tr(e,"invalidate-queries")({modules:r})}o(O2,"generateInvalidateQueries");function E2(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getExtractedEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(P2(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(E2,"getZodSchemaRefs");function P2(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&P2(n).forEach(s=>r.add(s)),r},new Set)}o(P2,"getSchemaRefs");function x2({resolver:e,data:t,tag:r=""}){var u;let n=(u=t.get(r))==null?void 0:u.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,p)=>[...l,...E2(e,p)],[]).filter(l=>!n[l]),s=ri({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[p,f])=>{let d=e.getRefByZodSchemaName(p);return{...l,[p]:{code:f,isCircular:!!d&&e.isSchemaCircular(d),isEnum:hP(f),schemaObj:e.getZodSchemaObj(p)}}},{});return tr(e,"models")({zodImport:Cu,modelsImports:s,includeNamespace:e.options.tsNamespaces,namespace:Ge({type:"models",tag:r,options:e.options}),tag:r,zodSchemasData:a})}o(x2,"generateModels");function $2({resolver:e,data:t,tag:r=""}){var $;let n=($=t.get(r))==null?void 0:$.endpoints;if(!n||n.length===0)return;let i=e.options.axiosRequestConfig,s=n.some(({mediaUpload:T})=>T),a=i||s,c={defaultImport:s?mm:void 0,bindings:i?[Qr]:[],from:Nu.from},u=n.filter(jr),l=u.filter(T=>rs(T)),p=n.filter(ni),f={bindings:[...u.length>0?[Yt.query]:[],...e.options.infiniteQueries&&l.length>0?[Yt.infiniteQuery]:[],...p.length>0?[Yt.mutation,Yt.queryClient]:[]],from:HE.from},d={bindings:[ti.queryModuleEnum,...p.length>0?[ti.optionsType,ti.functionName]:[]],from:$P(e.options)},h={bindings:[...u.length>0?[Lu.query]:[],...e.options.infiniteQueries&&l.length>0?[Lu.infiniteQuery]:[],...p.length>0?[Lu.mutation]:[]],from:xP(e.options)},y=n.reduce((T,I)=>[...T,...I.parameters],[]),b=ri({resolver:e,tag:r,zodSchemasAsTypes:Qt(y.map(T=>T.zodSchema).filter(Ft))}),m=SP({tag:r,endpoints:n,options:e.options});return tr(e,"queries")({hasAxiosImport:a,axiosImport:c,queryImport:f,hasInvalidateQueryOptions:e.options.invalidateQueryOptions,invalidateQueriesImport:d,queryTypesImport:h,modelsImports:b,endpointsImports:m,includeNamespace:e.options.tsNamespaces,tag:r,namespace:Ge({type:"queries",tag:r,options:e.options}),queriesModuleName:ba,queryModuleEnum:ti.queryModuleEnum,endpoints:n,queryEndpoints:u})}o($2,"generateQueries");function w2(e,t){let r=t.standalone&&t.importPath==="ts"?"relative":t.importPath,n={...ct,...t,importPath:r},{resolver:i,data:s}=Yu(e,n),a=[],c=[],u=["models","endpoints","queries","acl"],l={models:x2,endpoints:S2,queries:$2,acl:b2};s.forEach((f,d)=>{n.excludeTags.find(y=>y.toLowerCase()===d.toLowerCase())||u.forEach(y=>{let b=l[y]({resolver:i,data:s,tag:d});if(b){let m=hn({output:n.output,fileName:Zu({tag:d,type:y,options:n})});a.push({fileName:m,content:b}),y==="acl"&&c.push(d)}})});let p=v2(i,c);if(p){let f=hn({output:n.output,fileName:Xo(f1)});a.push({fileName:f,content:p})}if(n.invalidateQueryOptions&&a.push({fileName:hn({output:i.options.output,fileName:Xo(Hu)}),content:O2({resolver:i,data:s})}),n.standalone&&a.push(...G8(i)),z8(s)){let f=Xo(Bu);a.push({content:Vm(f),fileName:hn({output:i.options.output,fileName:f})})}return a}o(w2,"generateCodeFromOpenAPIDoc");function G8(e){let t=[];return Object.values(Fu).forEach(r=>{let n=Xo(r);t.push({content:Vm(n),fileName:hn({output:e.options.output,fileName:n})})}),t.push({fileName:hn({output:e.options.output,fileName:Xo(Vu)}),content:_2(e)}),t}o(G8,"getStandaloneFiles");function z8(e){return Array.from(e.values()).some(({endpoints:t})=>t.some(r=>r.parameters.some(n=>n.parameterSortingEnumSchemaName)))}o(z8,"hasZodExtendedFile");async function C2({input:e,excludeTags:t,prettier:r,verbose:n,...i}){let s=Date.now();n&&ur("Parsing OpenAPI spec...");let a=await A2.default.bundle(e);n&&wn("Parsing finished."),n&&ur("Generating code...");let c=w2(a,{input:e,excludeTags:t.split(","),...i});n&&wn("Generation finished."),n&&ur("Writing files..."),s1(c),n&&wn("Writing finished."),r&&Z8({output:i.output,verbose:n}),n&&ur(`TIME: ${Date.now()-s}ms`)}o(C2,"generate");function Z8({output:e,verbose:t}){t&&ur("Running Prettier..."),(0,I2.exec)(`prettier --write ${e} `,n=>{t&&(n?Ps(n,"Prettier error"):wn("Prettier finished."))})}o(Z8,"execPrettier");var it=class it{input;output;tsNamespaces;splitByTags;defaultTag;excludeTags;importPath;extractEnums;removeOperationPrefixEndingWith;standalone;baseUrl;replaceOptionalWithNullish;infiniteQueries;invalidateQueryOptions;axiosRequestConfig;prettier;verbose};o(it,"GenerateOptions"),De([Fe({envAlias:"input",demandOption:!0})],it.prototype,"input",2),De([Fe({envAlias:"output",default:ct.output})],it.prototype,"output",2),De([Fe({envAlias:"tsNamespaces",default:ct.tsNamespaces,type:"boolean"})],it.prototype,"tsNamespaces",2),De([Fe({envAlias:"splitByTags",default:ct.splitByTags,type:"boolean"})],it.prototype,"splitByTags",2),De([Fe({envAlias:"defaultTag",default:ct.defaultTag})],it.prototype,"defaultTag",2),De([Fe({envAlias:"excludeTags",default:ct.excludeTags.join(",")})],it.prototype,"excludeTags",2),De([Fe({envAlias:"importPath",default:ct.importPath})],it.prototype,"importPath",2),De([Fe({envAlias:"extractEnums",default:ct.extractEnums,type:"boolean"})],it.prototype,"extractEnums",2),De([Fe({envAlias:"removeOperationPrefixEndingWith",default:ct.removeOperationPrefixEndingWith})],it.prototype,"removeOperationPrefixEndingWith",2),De([Fe({envAlias:"standalone",default:ct.standalone,type:"boolean"})],it.prototype,"standalone",2),De([Fe({envAlias:"baseUrl",default:ct.baseUrl})],it.prototype,"baseUrl",2),De([Fe({envAlias:"replaceOptionalWithNullish",default:ct.replaceOptionalWithNullish,type:"boolean"})],it.prototype,"replaceOptionalWithNullish",2),De([Fe({envAlias:"infiniteQueries",default:ct.infiniteQueries,type:"boolean"})],it.prototype,"infiniteQueries",2),De([Fe({envAlias:"invalidateQueryOptions",default:ct.invalidateQueryOptions,type:"boolean"})],it.prototype,"invalidateQueryOptions",2),De([Fe({envAlias:"axiosRequestConfig",default:ct.axiosRequestConfig,type:"boolean"})],it.prototype,"axiosRequestConfig",2),De([Fe({envAlias:"prettier",default:!0,type:"boolean"})],it.prototype,"prettier",2),De([Fe({envAlias:"verbose",default:!1,type:"boolean"})],it.prototype,"verbose",2);var qg=it,T2={command:"generate",describe:"Generate code from OpenAPI spec",builder:Oc(qg),handler:o(async e=>{let t=await e;return t.verbose&&(Sc(`OpenAPI CodeGen ${po()}`),Es("input",t.input),Es("output",t.output)),C2(t)},"handler")};By(zl(process.argv)).version(po()||"unknown").scriptName("openapi-codegen").command(T2).command(l1).help().demandCommand(1).strictCommands(!0).showHelpOnFail(!0).fail((e,t)=>{e&&Ps(e),t&&Ps(t),ur("Use '--help' for more info"),process.exit(1)}).parse();
152
152
  /*! Bundled license information:
153
153
 
154
154
  reflect-metadata/Reflect.js: