@povio/openapi-codegen-cli 0.3.9 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +14 -3
  2. package/dist/commands/generate.d.ts +1 -1
  3. package/dist/generators/checkOpenAPIDoc.d.ts +1 -4
  4. package/dist/generators/const/validation.const.d.ts +2 -0
  5. package/dist/generators/const/zod.const.d.ts +1 -0
  6. package/dist/generators/core/SchemaResolver.class.d.ts +34 -11
  7. package/dist/generators/core/endpoints/getEndpointBody.d.ts +1 -3
  8. package/dist/generators/core/endpoints/getEndpointParameter.d.ts +1 -3
  9. package/dist/generators/core/endpoints/getEndpointsFromOpenAPIDoc.d.ts +1 -10
  10. package/dist/generators/core/getDataFromOpenAPIDoc.d.ts +1 -5
  11. package/dist/generators/core/getMetadataFromOpenAPIDoc.d.ts +1 -4
  12. package/dist/generators/core/openapi/getOpenAPISchemaComplexity.d.ts +1 -4
  13. package/dist/generators/core/openapi/getOpenAPISchemaDependencyGraph.d.ts +3 -2
  14. package/dist/generators/core/openapi/getSchemaRefObjs.d.ts +4 -0
  15. package/dist/generators/core/openapi/iterateSchema.d.ts +22 -0
  16. package/dist/generators/core/zod/ZodSchema.class.d.ts +7 -5
  17. package/dist/generators/core/zod/getZodSchema.d.ts +3 -4
  18. package/dist/generators/core/zod/getZodSchemaRefs.d.ts +1 -4
  19. package/dist/generators/core/zod/getZodSchemasFromOpenAPIDoc.d.ts +1 -7
  20. package/dist/generators/core/zod/resolveZodSchemaName.d.ts +1 -3
  21. package/dist/generators/core/zod/sortZodSchemasByTopology.d.ts +1 -4
  22. package/dist/generators/core/zod/updateEnumZodSchemaData.d.ts +13 -0
  23. package/dist/generators/core/zod/wrapCircularZodSchemas.d.ts +1 -6
  24. package/dist/generators/generate/generateEndpoints.d.ts +2 -9
  25. package/dist/generators/generate/generateModels.d.ts +2 -9
  26. package/dist/generators/generate/generateQueries.d.ts +2 -9
  27. package/dist/generators/generateCodeFromOpenAPIDoc.d.ts +2 -4
  28. package/dist/generators/types/generate.d.ts +10 -0
  29. package/dist/generators/types/metadata.d.ts +1 -1
  30. package/dist/generators/utils/array.utils.d.ts +1 -0
  31. package/dist/generators/utils/file.utils.d.ts +3 -6
  32. package/dist/generators/utils/generate/generate.endpoints.utils.d.ts +3 -7
  33. package/dist/generators/utils/generate/generate.imports.utils.d.ts +1 -2
  34. package/dist/generators/utils/generate/generate.zod.utils.d.ts +2 -10
  35. package/dist/generators/utils/hbs/hbs-template.utils.d.ts +1 -6
  36. package/dist/generators/utils/hbs/hbs.endpoints.utils.d.ts +1 -2
  37. package/dist/generators/utils/hbs/hbs.zod.utils.d.ts +1 -2
  38. package/dist/generators/utils/openapi.utils.d.ts +3 -5
  39. package/dist/generators/utils/string.utils.d.ts +4 -0
  40. package/dist/generators/utils/tag.utils.d.ts +20 -0
  41. package/dist/generators/utils/ts.utils.d.ts +2 -5
  42. package/dist/generators/utils/validation.utils.d.ts +7 -0
  43. package/dist/generators/utils/zod-schema.utils.d.ts +7 -0
  44. package/dist/index.d.ts +4 -2
  45. package/dist/index.js +72 -46
  46. package/dist/sh.js +79 -77
  47. package/package.json +1 -1
  48. package/dist/generators/core/openapi/getSchemaRefsDependencyGraph.d.ts +0 -11
package/dist/sh.js CHANGED
@@ -1,85 +1,85 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var ow=Object.create;var va=Object.defineProperty;var Zm=Object.getOwnPropertyDescriptor;var aw=Object.getOwnPropertyNames;var cw=Object.getPrototypeOf,uw=Object.prototype.hasOwnProperty;var s=(e,t)=>va(e,"name",{value:t,configurable:!0});var b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var lw=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of aw(t))!uw.call(e,i)&&i!==r&&va(e,i,{get:()=>t[i],enumerable:!(n=Zm(t,i))||n.enumerable});return e};var _t=(e,t,r)=>(r=e!=null?ow(cw(e)):{},lw(t||!e||!e.__esModule?va(r,"default",{value:e,enumerable:!0}):r,e));var ct=(e,t,r,n)=>{for(var i=n>1?void 0:n?Zm(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&va(t,r,i),i};var hy=b(()=>{var dy;(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)}}s(i,"makeExporter");function o(){try{return Function("return this;")()}catch{}}s(o,"functionThis");function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}s(a,"indirectEvalThis");function c(){return o()||a()}s(c,"sloppyModeThis")})(function(t,r){var n=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",o=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",u={__proto__:[]}instanceof Array,l=!c&&!u,p={create:c?function(){return Uu(Object.create(null))}:u?function(){return Uu({__proto__:null})}:function(){return Uu({})},has:l?function(S,$){return n.call(S,$)}:function(S,$){return $ in S},get:l?function(S,$){return n.call(S,$)?S[$]:void 0}:function(S,$){return S[$]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:tw(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:rw(),y=typeof WeakMap=="function"?WeakMap:nw(),v=i?Symbol.for("@reflect-metadata:registry"):void 0,g=Ze(),w=at(g);function A(S,$,x,N){if(J(x)){if(!Me(S))throw new TypeError;if(!Ct($))throw new TypeError;return j(S,$)}else{if(!Me(S))throw new TypeError;if(!Ae($))throw new TypeError;if(!Ae(N)&&!J(N)&&!At(N))throw new TypeError;return At(N)&&(N=void 0),x=_e(x),M(S,$,x,N)}}s(A,"decorate"),t("decorate",A);function I(S,$){function x(N,Q){if(!Ae(N))throw new TypeError;if(!J(Q)&&!Ni(Q))throw new TypeError;Fe(S,$,N,Q)}return s(x,"decorator"),x}s(I,"metadata"),t("metadata",I);function R(S,$,x,N){if(!Ae(x))throw new TypeError;return J(N)||(N=_e(N)),Fe(S,$,x,N)}s(R,"defineMetadata"),t("defineMetadata",R);function C(S,$,x){if(!Ae($))throw new TypeError;return J(x)||(x=_e(x)),Z(S,$,x)}s(C,"hasMetadata"),t("hasMetadata",C);function ae(S,$,x){if(!Ae($))throw new TypeError;return J(x)||(x=_e(x)),ue(S,$,x)}s(ae,"hasOwnMetadata"),t("hasOwnMetadata",ae);function ce(S,$,x){if(!Ae($))throw new TypeError;return J(x)||(x=_e(x)),be(S,$,x)}s(ce,"getMetadata"),t("getMetadata",ce);function nt(S,$,x){if(!Ae($))throw new TypeError;return J(x)||(x=_e(x)),ge(S,$,x)}s(nt,"getOwnMetadata"),t("getOwnMetadata",nt);function Pe(S,$){if(!Ae(S))throw new TypeError;return J($)||($=_e($)),Er(S,$)}s(Pe,"getMetadataKeys"),t("getMetadataKeys",Pe);function Y(S,$){if(!Ae(S))throw new TypeError;return J($)||($=_e($)),Ee(S,$)}s(Y,"getOwnMetadataKeys"),t("getOwnMetadataKeys",Y);function k(S,$,x){if(!Ae($))throw new TypeError;if(J(x)||(x=_e(x)),!Ae($))throw new TypeError;J(x)||(x=_e(x));var N=Zs($,x,!1);return J(N)?!1:N.OrdinaryDeleteMetadata(S,$,x)}s(k,"deleteMetadata"),t("deleteMetadata",k);function j(S,$){for(var x=S.length-1;x>=0;--x){var N=S[x],Q=N($);if(!J(Q)&&!At(Q)){if(!Ct(Q))throw new TypeError;$=Q}}return $}s(j,"DecorateConstructor");function M(S,$,x,N){for(var Q=S.length-1;Q>=0;--Q){var ze=S[Q],Xe=ze($,x,N);if(!J(Xe)&&!At(Xe)){if(!Ae(Xe))throw new TypeError;N=Xe}}return N}s(M,"DecorateProperty");function Z(S,$,x){var N=ue(S,$,x);if(N)return!0;var Q=q($);return At(Q)?!1:Z(S,Q,x)}s(Z,"OrdinaryHasMetadata");function ue(S,$,x){var N=Zs($,x,!1);return J(N)?!1:Ce(N.OrdinaryHasOwnMetadata(S,$,x))}s(ue,"OrdinaryHasOwnMetadata");function be(S,$,x){var N=ue(S,$,x);if(N)return ge(S,$,x);var Q=q($);if(!At(Q))return be(S,Q,x)}s(be,"OrdinaryGetMetadata");function ge(S,$,x){var N=Zs($,x,!1);if(!J(N))return N.OrdinaryGetOwnMetadata(S,$,x)}s(ge,"OrdinaryGetOwnMetadata");function Fe(S,$,x,N){var Q=Zs(x,N,!0);Q.OrdinaryDefineOwnMetadata(S,$,x,N)}s(Fe,"OrdinaryDefineOwnMetadata");function Er(S,$){var x=Ee(S,$),N=q(S);if(N===null)return x;var Q=Er(N,$);if(Q.length<=0)return x;if(x.length<=0)return Q;for(var ze=new h,Xe=[],de=0,D=x;de<D.length;de++){var L=D[de],H=ze.has(L);H||(ze.add(L),Xe.push(L))}for(var z=0,me=Q;z<me.length;z++){var L=me[z],H=ze.has(L);H||(ze.add(L),Xe.push(L))}return Xe}s(Er,"OrdinaryMetadataKeys");function Ee(S,$){var x=Zs(S,$,!1);return x?x.OrdinaryOwnMetadataKeys(S,$):[]}s(Ee,"OrdinaryOwnMetadataKeys");function zt(S){if(S===null)return 1;switch(typeof S){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return S===null?1:6;default:return 6}}s(zt,"Type");function J(S){return S===void 0}s(J,"IsUndefined");function At(S){return S===null}s(At,"IsNull");function te(S){return typeof S=="symbol"}s(te,"IsSymbol");function Ae(S){return typeof S=="object"?S!==null:typeof S=="function"}s(Ae,"IsObject");function X(S,$){switch(zt(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 x=$===3?"string":$===5?"number":"default",N=P(S,o);if(N!==void 0){var Q=N.call(S,x);if(Ae(Q))throw new TypeError;return Q}return xe(S,x==="default"?"number":x)}s(X,"ToPrimitive");function xe(S,$){if($==="string"){var x=S.toString;if(it(x)){var N=x.call(S);if(!Ae(N))return N}var Q=S.valueOf;if(it(Q)){var N=Q.call(S);if(!Ae(N))return N}}else{var Q=S.valueOf;if(it(Q)){var N=Q.call(S);if(!Ae(N))return N}var ze=S.toString;if(it(ze)){var N=ze.call(S);if(!Ae(N))return N}}throw new TypeError}s(xe,"OrdinaryToPrimitive");function Ce(S){return!!S}s(Ce,"ToBoolean");function pe(S){return""+S}s(pe,"ToString");function _e(S){var $=X(S,3);return te($)?$:pe($)}s(_e,"ToPropertyKey");function Me(S){return Array.isArray?Array.isArray(S):S instanceof Object?S instanceof Array:Object.prototype.toString.call(S)==="[object Array]"}s(Me,"IsArray");function it(S){return typeof S=="function"}s(it,"IsCallable");function Ct(S){return typeof S=="function"}s(Ct,"IsConstructor");function Ni(S){switch(zt(S)){case 3:return!0;case 4:return!0;default:return!1}}s(Ni,"IsPropertyKey");function _(S,$){return S===$||S!==S&&$!==$}s(_,"SameValueZero");function P(S,$){var x=S[$];if(x!=null){if(!it(x))throw new TypeError;return x}}s(P,"GetMethod");function T(S){var $=P(S,a);if(!it($))throw new TypeError;var x=$.call(S);if(!Ae(x))throw new TypeError;return x}s(T,"GetIterator");function E(S){return S.value}s(E,"IteratorValue");function O(S){var $=S.next();return $.done?!1:$}s(O,"IteratorStep");function V(S){var $=S.return;$&&$.call(S)}s(V,"IteratorClose");function q(S){var $=Object.getPrototypeOf(S);if(typeof S!="function"||S===f||$!==f)return $;var x=S.prototype,N=x&&Object.getPrototypeOf(x);if(N==null||N===Object.prototype)return $;var Q=N.constructor;return typeof Q!="function"||Q===S?$:Q}s(q,"OrdinaryGetPrototypeOf");function G(){var S;!J(v)&&typeof r.Reflect<"u"&&!(v in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(S=ew(r.Reflect));var $,x,N,Q=new y,ze={registerProvider:Xe,getProvider:D,setProvider:H};return ze;function Xe(z){if(!Object.isExtensible(ze))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===z:break;case J($):$=z;break;case $===z:break;case J(x):x=z;break;case x===z:break;default:N===void 0&&(N=new h),N.add(z);break}}function de(z,me){if(!J($)){if($.isProviderFor(z,me))return $;if(!J(x)){if(x.isProviderFor(z,me))return $;if(!J(N))for(var Ie=T(N);;){var Ge=O(Ie);if(!Ge)return;var ur=E(Ge);if(ur.isProviderFor(z,me))return V(Ie),ur}}}if(!J(S)&&S.isProviderFor(z,me))return S}function D(z,me){var Ie=Q.get(z),Ge;return J(Ie)||(Ge=Ie.get(me)),J(Ge)&&(Ge=de(z,me),J(Ge)||(J(Ie)&&(Ie=new d,Q.set(z,Ie)),Ie.set(me,Ge))),Ge}function L(z){if(J(z))throw new TypeError;return $===z||x===z||!J(N)&&N.has(z)}function H(z,me,Ie){if(!L(Ie))throw new Error("Metadata provider not registered.");var Ge=D(z,me);if(Ge!==Ie){if(!J(Ge))return!1;var ur=Q.get(z);J(ur)&&(ur=new d,Q.set(z,ur)),ur.set(me,Ie)}return!0}}s(G,"CreateMetadataRegistry");function Ze(){var S;return!J(v)&&Ae(r.Reflect)&&Object.isExtensible(r.Reflect)&&(S=r.Reflect[v]),J(S)&&(S=G()),!J(v)&&Ae(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,v,{enumerable:!1,configurable:!1,writable:!1,value:S}),S}s(Ze,"GetOrCreateMetadataRegistry");function at(S){var $=new y,x={isProviderFor:s(function(L,H){var z=$.get(L);return J(z)?!1:z.has(H)},"isProviderFor"),OrdinaryDefineOwnMetadata:Xe,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:ze,OrdinaryOwnMetadataKeys:de,OrdinaryDeleteMetadata:D};return g.registerProvider(x),x;function N(L,H,z){var me=$.get(L),Ie=!1;if(J(me)){if(!z)return;me=new d,$.set(L,me),Ie=!0}var Ge=me.get(H);if(J(Ge)){if(!z)return;if(Ge=new d,me.set(H,Ge),!S.setProvider(L,H,x))throw me.delete(H),Ie&&$.delete(L),new Error("Wrong provider for target.")}return Ge}s(N,"GetOrCreateMetadataMap");function Q(L,H,z){var me=N(H,z,!1);return J(me)?!1:Ce(me.has(L))}s(Q,"OrdinaryHasOwnMetadata");function ze(L,H,z){var me=N(H,z,!1);if(!J(me))return me.get(L)}s(ze,"OrdinaryGetOwnMetadata");function Xe(L,H,z,me){var Ie=N(z,me,!0);Ie.set(L,H)}s(Xe,"OrdinaryDefineOwnMetadata");function de(L,H){var z=[],me=N(L,H,!1);if(J(me))return z;for(var Ie=me.keys(),Ge=T(Ie),ur=0;;){var Km=O(Ge);if(!Km)return z.length=ur,z;var iw=E(Km);try{z[ur]=iw}catch(sw){try{V(Ge)}finally{throw sw}}ur++}}s(de,"OrdinaryOwnMetadataKeys");function D(L,H,z){var me=N(H,z,!1);if(J(me)||!me.delete(L))return!1;if(me.size===0){var Ie=$.get(H);J(Ie)||(Ie.delete(z),Ie.size===0&&$.delete(Ie))}return!0}s(D,"OrdinaryDeleteMetadata")}s(at,"CreateMetadataProvider");function ew(S){var $=S.defineMetadata,x=S.hasOwnMetadata,N=S.getOwnMetadata,Q=S.getOwnMetadataKeys,ze=S.deleteMetadata,Xe=new y,de={isProviderFor:s(function(D,L){var H=Xe.get(D);return!J(H)&&H.has(L)?!0:Q(D,L).length?(J(H)&&(H=new h,Xe.set(D,H)),H.add(L),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:$,OrdinaryHasOwnMetadata:x,OrdinaryGetOwnMetadata:N,OrdinaryOwnMetadataKeys:Q,OrdinaryDeleteMetadata:ze};return de}s(ew,"CreateFallbackProvider");function Zs(S,$,x){var N=g.getProvider(S,$);if(!J(N))return N;if(x){if(g.setProvider(S,$,w))return w;throw new Error("Illegal state.")}}s(Zs,"GetMetadataProvider");function tw(){var S={},$=[],x=function(){function de(D,L,H){this._index=0,this._keys=D,this._values=L,this._selector=H}return s(de,"MapIterator"),de.prototype["@@iterator"]=function(){return this},de.prototype[a]=function(){return this},de.prototype.next=function(){var D=this._index;if(D>=0&&D<this._keys.length){var L=this._selector(this._keys[D],this._values[D]);return D+1>=this._keys.length?(this._index=-1,this._keys=$,this._values=$):this._index++,{value:L,done:!1}}return{value:void 0,done:!0}},de.prototype.throw=function(D){throw this._index>=0&&(this._index=-1,this._keys=$,this._values=$),D},de.prototype.return=function(D){return this._index>=0&&(this._index=-1,this._keys=$,this._values=$),{value:D,done:!0}},de}(),N=function(){function de(){this._keys=[],this._values=[],this._cacheKey=S,this._cacheIndex=-2}return s(de,"Map"),Object.defineProperty(de.prototype,"size",{get:s(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),de.prototype.has=function(D){return this._find(D,!1)>=0},de.prototype.get=function(D){var L=this._find(D,!1);return L>=0?this._values[L]:void 0},de.prototype.set=function(D,L){var H=this._find(D,!0);return this._values[H]=L,this},de.prototype.delete=function(D){var L=this._find(D,!1);if(L>=0){for(var H=this._keys.length,z=L+1;z<H;z++)this._keys[z-1]=this._keys[z],this._values[z-1]=this._values[z];return this._keys.length--,this._values.length--,_(D,this._cacheKey)&&(this._cacheKey=S,this._cacheIndex=-2),!0}return!1},de.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=S,this._cacheIndex=-2},de.prototype.keys=function(){return new x(this._keys,this._values,Q)},de.prototype.values=function(){return new x(this._keys,this._values,ze)},de.prototype.entries=function(){return new x(this._keys,this._values,Xe)},de.prototype["@@iterator"]=function(){return this.entries()},de.prototype[a]=function(){return this.entries()},de.prototype._find=function(D,L){if(!_(this._cacheKey,D)){this._cacheIndex=-1;for(var H=0;H<this._keys.length;H++)if(_(this._keys[H],D)){this._cacheIndex=H;break}}return this._cacheIndex<0&&L&&(this._cacheIndex=this._keys.length,this._keys.push(D),this._values.push(void 0)),this._cacheIndex},de}();return N;function Q(de,D){return de}function ze(de,D){return D}function Xe(de,D){return[de,D]}}s(tw,"CreateMapPolyfill");function rw(){var S=function(){function $(){this._map=new d}return s($,"Set"),Object.defineProperty($.prototype,"size",{get:s(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),$.prototype.has=function(x){return this._map.has(x)},$.prototype.add=function(x){return this._map.set(x,x),this},$.prototype.delete=function(x){return this._map.delete(x)},$.prototype.clear=function(){this._map.clear()},$.prototype.keys=function(){return this._map.keys()},$.prototype.values=function(){return this._map.keys()},$.prototype.entries=function(){return this._map.entries()},$.prototype["@@iterator"]=function(){return this.keys()},$.prototype[a]=function(){return this.keys()},$}();return S}s(rw,"CreateSetPolyfill");function nw(){var S=16,$=p.create(),x=N();return function(){function D(){this._key=N()}return s(D,"WeakMap"),D.prototype.has=function(L){var H=Q(L,!1);return H!==void 0?p.has(H,this._key):!1},D.prototype.get=function(L){var H=Q(L,!1);return H!==void 0?p.get(H,this._key):void 0},D.prototype.set=function(L,H){var z=Q(L,!0);return z[this._key]=H,this},D.prototype.delete=function(L){var H=Q(L,!1);return H!==void 0?delete H[this._key]:!1},D.prototype.clear=function(){this._key=N()},D}();function N(){var D;do D="@@WeakMap@@"+de();while(p.has($,D));return $[D]=!0,D}function Q(D,L){if(!n.call(D,x)){if(!L)return;Object.defineProperty(D,x,{value:p.create()})}return D[x]}function ze(D,L){for(var H=0;H<L;++H)D[H]=Math.random()*255|0;return D}function Xe(D){if(typeof Uint8Array=="function"){var L=new Uint8Array(D);return typeof crypto<"u"?crypto.getRandomValues(L):typeof msCrypto<"u"?msCrypto.getRandomValues(L):ze(L,D),L}return ze(new Array(D),D)}function de(){var D=Xe(S);D[6]=D[6]&79|64,D[8]=D[8]&191|128;for(var L="",H=0;H<S;++H){var z=D[H];(H===4||H===6||H===8)&&(L+="-"),z<16&&(L+="0"),L+=z.toString(16).toLowerCase()}return L}}s(nw,"CreateWeakMapPolyfill");function Uu(S){return S.__=void 0,delete S.__,S}s(Uu,"MakeDictionary")})})(dy||(dy={}))});var Vt=b((Ft,yy)=>{"use strict";var Ga=/^win/.test(process.platform),e$=/\//g,t$=/^(\w{2,}):\/\//i,gy=yy.exports,r$=/~1/g,n$=/~0/g,Tl=[/\?/g,"%3F",/\#/g,"%23"],Nl=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Ft.parse=require("url").parse;Ft.resolve=require("url").resolve;Ft.cwd=s(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Ft.getProtocol=s(function(t){let r=t$.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Ft.getExtension=s(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Ft.getHash=s(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Ft.stripHash=s(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Ft.isHttp=s(function(t){let r=gy.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Ft.isFileSystemPath=s(function(t){if(process.browser)return!1;let r=gy.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Ft.fromFileSystemPath=s(function(t){Ga&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<Tl.length;r+=2)t=t.replace(Tl[r],Tl[r+1]);return t},"fromFileSystemPath");Ft.toFileSystemPath=s(function(t,r){t=decodeURI(t);for(let i=0;i<Nl.length;i+=2)t=t.replace(Nl[i],Nl[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),Ga&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=Ga?t:"/"+t)),Ga&&!n&&(t=t.replace(e$,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Ft.safePointerToPath=s(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(r$,"/").replace(n$,"~"))},"safePointerToPath")});var Wa=b(oo=>{"use strict";var vy=require("util"),i$=Vt();oo.format=vy.format;oo.inherits=vy.inherits;oo.swaggerParamRegExp=/\{([^/}]+)}/g;var s$=["get","post","put","delete","patch","options","head","trace"];function kl(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}}s(kl,"fixServers");function o$(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>kl(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(o=>{o==="servers"?i[o].map(a=>kl(a,t)):s$.includes(o)&&i[o].servers&&i[o].servers.map(a=>kl(a,t))})})}))}s(o$,"fixOasRelativeServers");oo.fixOasRelativeServers=o$});var Ka=b(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.getDeepKeys=zi.toJSON=void 0;var a$=["function","symbol","undefined"],c$=["constructor","prototype","__proto__"],u$=Object.getPrototypeOf({});function l$(){let e={},t=this;for(let r of by(t))if(typeof r=="string"){let n=t[r],i=typeof n;a$.includes(i)||(e[r]=n)}return e}s(l$,"toJSON");zi.toJSON=l$;function by(e,t=[]){let r=[];for(;e&&e!==u$;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(c$))n.delete(i);return n}s(by,"getDeepKeys");zi.getDeepKeys=by});var Ml=b(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.addInspectMethod=Gi.format=void 0;var _y=require("util"),f$=Ka(),Sy=_y.inspect.custom||Symbol.for("nodejs.util.inspect.custom");Gi.format=_y.format;function p$(e){e[Sy]=d$}s(p$,"addInspectMethod");Gi.addInspectMethod=p$;function d$(){let e={},t=this;for(let r of f$.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Sy],e}s(d$,"inspect")});var wy=b(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.lazyJoinStacks=Cr.joinStacks=Cr.isWritableStack=Cr.isLazyStack=void 0;var h$=/\r?\n/,m$=/\bono[ @]/;function g$(e){return!!(e&&e.configurable&&typeof e.get=="function")}s(g$,"isLazyStack");Cr.isLazyStack=g$;function y$(e){return!!(!e||e.writable||typeof e.set=="function")}s(y$,"isWritableStack");Cr.isWritableStack=y$;function Oy(e,t){let r=Py(e.stack),n=t?t.stack:void 0;return r&&n?r+`
2
+ "use strict";var Pw=Object.create;var Pa=Object.defineProperty;var ng=Object.getOwnPropertyDescriptor;var Ow=Object.getOwnPropertyNames;var ww=Object.getPrototypeOf,$w=Object.prototype.hasOwnProperty;var o=(e,t)=>Pa(e,"name",{value:t,configurable:!0});var b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ew=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ow(t))!$w.call(e,i)&&i!==r&&Pa(e,i,{get:()=>t[i],enumerable:!(n=ng(t,i))||n.enumerable});return e};var Ot=(e,t,r)=>(r=e!=null?Pw(ww(e)):{},Ew(t||!e||!e.__esModule?Pa(r,"default",{value:e,enumerable:!0}):r,e));var st=(e,t,r,n)=>{for(var i=n>1?void 0:n?ng(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&&Pa(t,r,i),i};var Py=b(()=>{var Sy;(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 Xu(Object.create(null))}:u?function(){return Xu({__proto__:null})}:function(){return Xu({})},has:l?function(S,w){return n.call(S,w)}:function(S,w){return w in S},get:l?function(S,w){return n.call(S,w)?S[w]:void 0}:function(S,w){return S[w]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:yw(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:vw(),y=typeof WeakMap=="function"?WeakMap:bw(),v=i?Symbol.for("@reflect-metadata:registry"):void 0,g=Qe(),$=lt(g);function A(S,w,x,N){if(K(x)){if(!qe(S))throw new TypeError;if(!Rt(w))throw new TypeError;return j(S,w)}else{if(!qe(S))throw new TypeError;if(!Ce(w))throw new TypeError;if(!Ce(N)&&!K(N)&&!It(N))throw new TypeError;return It(N)&&(N=void 0),x=_e(x),M(S,w,x,N)}}o(A,"decorate"),t("decorate",A);function C(S,w){function x(N,J){if(!Ce(N))throw new TypeError;if(!K(J)&&!Li(J))throw new TypeError;Be(S,w,N,J)}return o(x,"decorator"),x}o(C,"metadata"),t("metadata",C);function R(S,w,x,N){if(!Ce(x))throw new TypeError;return K(N)||(N=_e(N)),Be(S,w,x,N)}o(R,"defineMetadata"),t("defineMetadata",R);function I(S,w,x){if(!Ce(w))throw new TypeError;return K(x)||(x=_e(x)),Y(S,w,x)}o(I,"hasMetadata"),t("hasMetadata",I);function ae(S,w,x){if(!Ce(w))throw new TypeError;return K(x)||(x=_e(x)),ue(S,w,x)}o(ae,"hasOwnMetadata"),t("hasOwnMetadata",ae);function re(S,w,x){if(!Ce(w))throw new TypeError;return K(x)||(x=_e(x)),be(S,w,x)}o(re,"getMetadata"),t("getMetadata",re);function $e(S,w,x){if(!Ce(w))throw new TypeError;return K(x)||(x=_e(x)),ge(S,w,x)}o($e,"getOwnMetadata"),t("getOwnMetadata",$e);function Oe(S,w){if(!Ce(S))throw new TypeError;return K(w)||(w=_e(w)),Ir(S,w)}o(Oe,"getMetadataKeys"),t("getMetadataKeys",Oe);function ne(S,w){if(!Ce(S))throw new TypeError;return K(w)||(w=_e(w)),xe(S,w)}o(ne,"getOwnMetadataKeys"),t("getOwnMetadataKeys",ne);function k(S,w,x){if(!Ce(w))throw new TypeError;if(K(x)||(x=_e(x)),!Ce(w))throw new TypeError;K(x)||(x=_e(x));var N=Qo(w,x,!1);return K(N)?!1:N.OrdinaryDeleteMetadata(S,w,x)}o(k,"deleteMetadata"),t("deleteMetadata",k);function j(S,w){for(var x=S.length-1;x>=0;--x){var N=S[x],J=N(w);if(!K(J)&&!It(J)){if(!Rt(J))throw new TypeError;w=J}}return w}o(j,"DecorateConstructor");function M(S,w,x,N){for(var J=S.length-1;J>=0;--J){var We=S[J],tt=We(w,x,N);if(!K(tt)&&!It(tt)){if(!Ce(tt))throw new TypeError;N=tt}}return N}o(M,"DecorateProperty");function Y(S,w,x){var N=ue(S,w,x);if(N)return!0;var J=q(w);return It(J)?!1:Y(S,J,x)}o(Y,"OrdinaryHasMetadata");function ue(S,w,x){var N=Qo(w,x,!1);return K(N)?!1:Ie(N.OrdinaryHasOwnMetadata(S,w,x))}o(ue,"OrdinaryHasOwnMetadata");function be(S,w,x){var N=ue(S,w,x);if(N)return ge(S,w,x);var J=q(w);if(!It(J))return be(S,J,x)}o(be,"OrdinaryGetMetadata");function ge(S,w,x){var N=Qo(w,x,!1);if(!K(N))return N.OrdinaryGetOwnMetadata(S,w,x)}o(ge,"OrdinaryGetOwnMetadata");function Be(S,w,x,N){var J=Qo(x,N,!0);J.OrdinaryDefineOwnMetadata(S,w,x,N)}o(Be,"OrdinaryDefineOwnMetadata");function Ir(S,w){var x=xe(S,w),N=q(S);if(N===null)return x;var J=Ir(N,w);if(J.length<=0)return x;if(x.length<=0)return J;for(var We=new h,tt=[],de=0,D=x;de<D.length;de++){var L=D[de],H=We.has(L);H||(We.add(L),tt.push(L))}for(var z=0,me=J;z<me.length;z++){var L=me[z],H=We.has(L);H||(We.add(L),tt.push(L))}return tt}o(Ir,"OrdinaryMetadataKeys");function xe(S,w){var x=Qo(S,w,!1);return x?x.OrdinaryOwnMetadataKeys(S,w):[]}o(xe,"OrdinaryOwnMetadataKeys");function Kt(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(Kt,"Type");function K(S){return S===void 0}o(K,"IsUndefined");function It(S){return S===null}o(It,"IsNull");function ee(S){return typeof S=="symbol"}o(ee,"IsSymbol");function Ce(S){return typeof S=="object"?S!==null:typeof S=="function"}o(Ce,"IsObject");function Q(S,w){switch(Kt(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 x=w===3?"string":w===5?"number":"default",N=O(S,s);if(N!==void 0){var J=N.call(S,x);if(Ce(J))throw new TypeError;return J}return Ae(S,x==="default"?"number":x)}o(Q,"ToPrimitive");function Ae(S,w){if(w==="string"){var x=S.toString;if(ot(x)){var N=x.call(S);if(!Ce(N))return N}var J=S.valueOf;if(ot(J)){var N=J.call(S);if(!Ce(N))return N}}else{var J=S.valueOf;if(ot(J)){var N=J.call(S);if(!Ce(N))return N}var We=S.toString;if(ot(We)){var N=We.call(S);if(!Ce(N))return N}}throw new TypeError}o(Ae,"OrdinaryToPrimitive");function Ie(S){return!!S}o(Ie,"ToBoolean");function pe(S){return""+S}o(pe,"ToString");function _e(S){var w=Q(S,3);return ee(w)?w:pe(w)}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 ot(S){return typeof S=="function"}o(ot,"IsCallable");function Rt(S){return typeof S=="function"}o(Rt,"IsConstructor");function Li(S){switch(Kt(S)){case 3:return!0;case 4:return!0;default:return!1}}o(Li,"IsPropertyKey");function _(S,w){return S===w||S!==S&&w!==w}o(_,"SameValueZero");function O(S,w){var x=S[w];if(x!=null){if(!ot(x))throw new TypeError;return x}}o(O,"GetMethod");function T(S){var w=O(S,a);if(!ot(w))throw new TypeError;var x=w.call(S);if(!Ce(x))throw new TypeError;return x}o(T,"GetIterator");function E(S){return S.value}o(E,"IteratorValue");function P(S){var w=S.next();return w.done?!1:w}o(P,"IteratorStep");function V(S){var w=S.return;w&&w.call(S)}o(V,"IteratorClose");function q(S){var w=Object.getPrototypeOf(S);if(typeof S!="function"||S===f||w!==f)return w;var x=S.prototype,N=x&&Object.getPrototypeOf(x);if(N==null||N===Object.prototype)return w;var J=N.constructor;return typeof J!="function"||J===S?w:J}o(q,"OrdinaryGetPrototypeOf");function G(){var S;!K(v)&&typeof r.Reflect<"u"&&!(v in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(S=gw(r.Reflect));var w,x,N,J=new y,We={registerProvider:tt,getProvider:D,setProvider:H};return We;function tt(z){if(!Object.isExtensible(We))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===z:break;case K(w):w=z;break;case w===z:break;case K(x):x=z;break;case x===z:break;default:N===void 0&&(N=new h),N.add(z);break}}function de(z,me){if(!K(w)){if(w.isProviderFor(z,me))return w;if(!K(x)){if(x.isProviderFor(z,me))return w;if(!K(N))for(var Re=T(N);;){var Ke=P(Re);if(!Ke)return;var fr=E(Ke);if(fr.isProviderFor(z,me))return V(Re),fr}}}if(!K(S)&&S.isProviderFor(z,me))return S}function D(z,me){var Re=J.get(z),Ke;return K(Re)||(Ke=Re.get(me)),K(Ke)&&(Ke=de(z,me),K(Ke)||(K(Re)&&(Re=new d,J.set(z,Re)),Re.set(me,Ke))),Ke}function L(z){if(K(z))throw new TypeError;return w===z||x===z||!K(N)&&N.has(z)}function H(z,me,Re){if(!L(Re))throw new Error("Metadata provider not registered.");var Ke=D(z,me);if(Ke!==Re){if(!K(Ke))return!1;var fr=J.get(z);K(fr)&&(fr=new d,J.set(z,fr)),fr.set(me,Re)}return!0}}o(G,"CreateMetadataRegistry");function Qe(){var S;return!K(v)&&Ce(r.Reflect)&&Object.isExtensible(r.Reflect)&&(S=r.Reflect[v]),K(S)&&(S=G()),!K(v)&&Ce(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,v,{enumerable:!1,configurable:!1,writable:!1,value:S}),S}o(Qe,"GetOrCreateMetadataRegistry");function lt(S){var w=new y,x={isProviderFor:o(function(L,H){var z=w.get(L);return K(z)?!1:z.has(H)},"isProviderFor"),OrdinaryDefineOwnMetadata:tt,OrdinaryHasOwnMetadata:J,OrdinaryGetOwnMetadata:We,OrdinaryOwnMetadataKeys:de,OrdinaryDeleteMetadata:D};return g.registerProvider(x),x;function N(L,H,z){var me=w.get(L),Re=!1;if(K(me)){if(!z)return;me=new d,w.set(L,me),Re=!0}var Ke=me.get(H);if(K(Ke)){if(!z)return;if(Ke=new d,me.set(H,Ke),!S.setProvider(L,H,x))throw me.delete(H),Re&&w.delete(L),new Error("Wrong provider for target.")}return Ke}o(N,"GetOrCreateMetadataMap");function J(L,H,z){var me=N(H,z,!1);return K(me)?!1:Ie(me.has(L))}o(J,"OrdinaryHasOwnMetadata");function We(L,H,z){var me=N(H,z,!1);if(!K(me))return me.get(L)}o(We,"OrdinaryGetOwnMetadata");function tt(L,H,z,me){var Re=N(z,me,!0);Re.set(L,H)}o(tt,"OrdinaryDefineOwnMetadata");function de(L,H){var z=[],me=N(L,H,!1);if(K(me))return z;for(var Re=me.keys(),Ke=T(Re),fr=0;;){var rg=P(Ke);if(!rg)return z.length=fr,z;var _w=E(rg);try{z[fr]=_w}catch(Sw){try{V(Ke)}finally{throw Sw}}fr++}}o(de,"OrdinaryOwnMetadataKeys");function D(L,H,z){var me=N(H,z,!1);if(K(me)||!me.delete(L))return!1;if(me.size===0){var Re=w.get(H);K(Re)||(Re.delete(z),Re.size===0&&w.delete(Re))}return!0}o(D,"OrdinaryDeleteMetadata")}o(lt,"CreateMetadataProvider");function gw(S){var w=S.defineMetadata,x=S.hasOwnMetadata,N=S.getOwnMetadata,J=S.getOwnMetadataKeys,We=S.deleteMetadata,tt=new y,de={isProviderFor:o(function(D,L){var H=tt.get(D);return!K(H)&&H.has(L)?!0:J(D,L).length?(K(H)&&(H=new h,tt.set(D,H)),H.add(L),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:w,OrdinaryHasOwnMetadata:x,OrdinaryGetOwnMetadata:N,OrdinaryOwnMetadataKeys:J,OrdinaryDeleteMetadata:We};return de}o(gw,"CreateFallbackProvider");function Qo(S,w,x){var N=g.getProvider(S,w);if(!K(N))return N;if(x){if(g.setProvider(S,w,$))return $;throw new Error("Illegal state.")}}o(Qo,"GetMetadataProvider");function yw(){var S={},w=[],x=function(){function de(D,L,H){this._index=0,this._keys=D,this._values=L,this._selector=H}return o(de,"MapIterator"),de.prototype["@@iterator"]=function(){return this},de.prototype[a]=function(){return this},de.prototype.next=function(){var D=this._index;if(D>=0&&D<this._keys.length){var L=this._selector(this._keys[D],this._values[D]);return D+1>=this._keys.length?(this._index=-1,this._keys=w,this._values=w):this._index++,{value:L,done:!1}}return{value:void 0,done:!0}},de.prototype.throw=function(D){throw this._index>=0&&(this._index=-1,this._keys=w,this._values=w),D},de.prototype.return=function(D){return this._index>=0&&(this._index=-1,this._keys=w,this._values=w),{value:D,done:!0}},de}(),N=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(D){return this._find(D,!1)>=0},de.prototype.get=function(D){var L=this._find(D,!1);return L>=0?this._values[L]:void 0},de.prototype.set=function(D,L){var H=this._find(D,!0);return this._values[H]=L,this},de.prototype.delete=function(D){var L=this._find(D,!1);if(L>=0){for(var H=this._keys.length,z=L+1;z<H;z++)this._keys[z-1]=this._keys[z],this._values[z-1]=this._values[z];return this._keys.length--,this._values.length--,_(D,this._cacheKey)&&(this._cacheKey=S,this._cacheIndex=-2),!0}return!1},de.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=S,this._cacheIndex=-2},de.prototype.keys=function(){return new x(this._keys,this._values,J)},de.prototype.values=function(){return new x(this._keys,this._values,We)},de.prototype.entries=function(){return new x(this._keys,this._values,tt)},de.prototype["@@iterator"]=function(){return this.entries()},de.prototype[a]=function(){return this.entries()},de.prototype._find=function(D,L){if(!_(this._cacheKey,D)){this._cacheIndex=-1;for(var H=0;H<this._keys.length;H++)if(_(this._keys[H],D)){this._cacheIndex=H;break}}return this._cacheIndex<0&&L&&(this._cacheIndex=this._keys.length,this._keys.push(D),this._values.push(void 0)),this._cacheIndex},de}();return N;function J(de,D){return de}function We(de,D){return D}function tt(de,D){return[de,D]}}o(yw,"CreateMapPolyfill");function vw(){var S=function(){function w(){this._map=new d}return o(w,"Set"),Object.defineProperty(w.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),w.prototype.has=function(x){return this._map.has(x)},w.prototype.add=function(x){return this._map.set(x,x),this},w.prototype.delete=function(x){return this._map.delete(x)},w.prototype.clear=function(){this._map.clear()},w.prototype.keys=function(){return this._map.keys()},w.prototype.values=function(){return this._map.keys()},w.prototype.entries=function(){return this._map.entries()},w.prototype["@@iterator"]=function(){return this.keys()},w.prototype[a]=function(){return this.keys()},w}();return S}o(vw,"CreateSetPolyfill");function bw(){var S=16,w=p.create(),x=N();return function(){function D(){this._key=N()}return o(D,"WeakMap"),D.prototype.has=function(L){var H=J(L,!1);return H!==void 0?p.has(H,this._key):!1},D.prototype.get=function(L){var H=J(L,!1);return H!==void 0?p.get(H,this._key):void 0},D.prototype.set=function(L,H){var z=J(L,!0);return z[this._key]=H,this},D.prototype.delete=function(L){var H=J(L,!1);return H!==void 0?delete H[this._key]:!1},D.prototype.clear=function(){this._key=N()},D}();function N(){var D;do D="@@WeakMap@@"+de();while(p.has(w,D));return w[D]=!0,D}function J(D,L){if(!n.call(D,x)){if(!L)return;Object.defineProperty(D,x,{value:p.create()})}return D[x]}function We(D,L){for(var H=0;H<L;++H)D[H]=Math.random()*255|0;return D}function tt(D){if(typeof Uint8Array=="function"){var L=new Uint8Array(D);return typeof crypto<"u"?crypto.getRandomValues(L):typeof msCrypto<"u"?msCrypto.getRandomValues(L):We(L,D),L}return We(new Array(D),D)}function de(){var D=tt(S);D[6]=D[6]&79|64,D[8]=D[8]&191|128;for(var L="",H=0;H<S;++H){var z=D[H];(H===4||H===6||H===8)&&(L+="-"),z<16&&(L+="0"),L+=z.toString(16).toLowerCase()}return L}}o(bw,"CreateWeakMapPolyfill");function Xu(S){return S.__=void 0,delete S.__,S}o(Xu,"MakeDictionary")})})(Sy||(Sy={}))});var zt=b((Ut,$y)=>{"use strict";var Ya=/^win/.test(process.platform),g$=/\//g,y$=/^(\w{2,}):\/\//i,wy=$y.exports,v$=/~1/g,b$=/~0/g,Bl=[/\?/g,"%3F",/\#/g,"%23"],Hl=[/\%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=y$.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=wy.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=wy.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Ut.fromFileSystemPath=o(function(t){Ya&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<Bl.length;r+=2)t=t.replace(Bl[r],Bl[r+1]);return t},"fromFileSystemPath");Ut.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<Hl.length;i+=2)t=t.replace(Hl[i],Hl[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),Ya&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=Ya?t:"/"+t)),Ya&&!n&&(t=t.replace(g$,"\\"),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(v$,"/").replace(b$,"~"))},"safePointerToPath")});var Ja=b(us=>{"use strict";var Ey=require("util"),_$=zt();us.format=Ey.format;us.inherits=Ey.inherits;us.swaggerParamRegExp=/\{([^/}]+)}/g;var S$=["get","post","put","delete","patch","options","head","trace"];function Ul(e,t){if(e.url&&e.url.startsWith("/")){let r=_$.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(Ul,"fixServers");function P$(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>Ul(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=>Ul(a,t)):S$.includes(s)&&i[s].servers&&i[s].servers.map(a=>Ul(a,t))})})}))}o(P$,"fixOasRelativeServers");us.fixOasRelativeServers=P$});var Qa=b(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.getDeepKeys=Yi.toJSON=void 0;var O$=["function","symbol","undefined"],w$=["constructor","prototype","__proto__"],$$=Object.getPrototypeOf({});function E$(){let e={},t=this;for(let r of xy(t))if(typeof r=="string"){let n=t[r],i=typeof n;O$.includes(i)||(e[r]=n)}return e}o(E$,"toJSON");Yi.toJSON=E$;function xy(e,t=[]){let r=[];for(;e&&e!==$$;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(w$))n.delete(i);return n}o(xy,"getDeepKeys");Yi.getDeepKeys=xy});var zl=b(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.addInspectMethod=Ji.format=void 0;var Ay=require("util"),x$=Qa(),Cy=Ay.inspect.custom||Symbol.for("nodejs.util.inspect.custom");Ji.format=Ay.format;function A$(e){e[Cy]=C$}o(A$,"addInspectMethod");Ji.addInspectMethod=A$;function C$(){let e={},t=this;for(let r of x$.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Cy],e}o(C$,"inspect")});var jy=b(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.lazyJoinStacks=Tr.joinStacks=Tr.isWritableStack=Tr.isLazyStack=void 0;var I$=/\r?\n/,R$=/\bono[ @]/;function j$(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(j$,"isLazyStack");Tr.isLazyStack=j$;function T$(e){return!!(!e||e.writable||typeof e.set=="function")}o(T$,"isWritableStack");Tr.isWritableStack=T$;function Iy(e,t){let r=Ry(e.stack),n=t?t.stack:void 0;return r&&n?r+`
3
3
 
4
- `+n:r||n}s(Oy,"joinStacks");Cr.joinStacks=Oy;function v$(e,t,r){r?Object.defineProperty(t,"stack",{get:s(()=>{let n=e.get.apply(t);return Oy({stack:n},r)},"get"),enumerable:!1,configurable:!0}):b$(t,e)}s(v$,"lazyJoinStacks");Cr.lazyJoinStacks=v$;function Py(e){if(e){let t=e.split(h$),r;for(let n=0;n<t.length;n++){let i=t[n];if(m$.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}s(Py,"popStack");function b$(e,t){Object.defineProperty(e,"stack",{get:s(()=>Py(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}s(b$,"lazyPopStack")});var xy=b(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.extendError=void 0;var $y=Ml(),Za=wy(),Ey=Ka(),_$=["name","message","stack"];function S$(e,t,r){let n=e;return O$(n,t),t&&typeof t=="object"&&P$(n,t),n.toJSON=Ey.toJSON,$y.addInspectMethod&&$y.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}s(S$,"extendError");Ya.extendError=S$;function O$(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");Za.isLazyStack(r)?Za.lazyJoinStacks(r,e,t):Za.isWritableStack(r)&&(e.stack=Za.joinStacks(e,t))}s(O$,"extendStack");function P$(e,t){let r=Ey.getDeepKeys(t,_$),n=e,i=t;for(let o of r)if(n[o]===void 0)try{n[o]=i[o]}catch{}}s(P$,"mergeErrors")});var Ay=b(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.normalizeArgs=Wi.normalizeOptions=void 0;var w$=Ml();function $$(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?w$.format:typeof e.format=="function"?e.format:!1}}s($$,"normalizeOptions");Wi.normalizeOptions=$$;function E$(e,t){let r,n,i,o="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?o=t.format.apply(void 0,i):o=i.join(" ")),t.concatMessages&&r&&r.message&&(o+=(o?`
6
- `:"")+r.message),{originalError:r,props:n,message:o}}s(E$,"normalizeArgs");Wi.normalizeArgs=E$});var Dl=b(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.Ono=void 0;var Ja=xy(),Cy=Ay(),x$=Ka(),A$=ql;Qa.Ono=A$;function ql(e,t){t=Cy.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=Cy.normalizeArgs(n,t),c=new e(a);return Ja.extendError(c,i,o)}return s(r,"ono"),r[Symbol.species]=e,r}s(ql,"Ono");ql.toJSON=s(function(t){return x$.toJSON.call(t)},"toJSON");ql.extend=s(function(t,r,n){return n||r instanceof Error?Ja.extendError(t,r,n):r?Ja.extendError(t,void 0,r):Ja.extendError(t)},"extend")});var Iy=b(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.ono=void 0;var Xn=Dl(),C$=Ir;Xa.ono=C$;Ir.error=new Xn.Ono(Error);Ir.eval=new Xn.Ono(EvalError);Ir.range=new Xn.Ono(RangeError);Ir.reference=new Xn.Ono(ReferenceError);Ir.syntax=new Xn.Ono(SyntaxError);Ir.type=new Xn.Ono(TypeError);Ir.uri=new Xn.Ono(URIError);var I$=Ir;function Ir(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(I$))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 Ir.error.apply(void 0,e)}s(Ir,"ono")});var Ry=b(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});var F5=require("util")});var hr=b((dr,Ki)=>{"use strict";var j$=dr&&dr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:s(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),R$=dr&&dr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&j$(t,e,r)};Object.defineProperty(dr,"__esModule",{value:!0});dr.ono=void 0;var Ty=Iy();Object.defineProperty(dr,"ono",{enumerable:!0,get:s(function(){return Ty.ono},"get")});var T$=Dl();Object.defineProperty(dr,"Ono",{enumerable:!0,get:s(function(){return T$.Ono},"get")});R$(Ry(),dr);dr.default=Ty.ono;typeof Ki=="object"&&typeof Ki.exports=="object"&&(Ki.exports=Object.assign(Ki.exports.default,Ki.exports))});var uo=b(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.regexpCode=Se.getEsmExportName=Se.getProperty=Se.safeStringify=Se.stringify=Se.strConcat=Se.addCodeArg=Se.str=Se._=Se.nil=Se._Code=Se.Name=Se.IDENTIFIER=Se._CodeOrName=void 0;var Vl=class Vl{};s(Vl,"_CodeOrName");var ao=Vl;Se._CodeOrName=ao;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Bl=class Bl extends ao{constructor(t){if(super(),!Se.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};s(Bl,"Name");var ei=Bl;Se.Name=ei;var Hl=class Hl extends ao{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 ei&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s(Hl,"_Code");var Xt=Hl;Se._Code=Xt;Se.nil=new Xt("");function Ny(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Fl(r,t[n]),r.push(e[++n]);return new Xt(r)}s(Ny,"_");Se._=Ny;var Ll=new Xt("+");function ky(e,...t){let r=[co(e[0])],n=0;for(;n<t.length;)r.push(Ll),Fl(r,t[n]),r.push(Ll,co(e[++n]));return N$(r),new Xt(r)}s(ky,"str");Se.str=ky;function Fl(e,t){t instanceof Xt?e.push(...t._items):t instanceof ei?e.push(t):e.push(q$(t))}s(Fl,"addCodeArg");Se.addCodeArg=Fl;function N$(e){let t=1;for(;t<e.length-1;){if(e[t]===Ll){let r=k$(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}s(N$,"optimize");function k$(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof ei||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 ei))return`"${e}${t.slice(1)}`}s(k$,"mergeExprItems");function M$(e,t){return t.emptyStr()?e:e.emptyStr()?t:ky`${e}${t}`}s(M$,"strConcat");Se.strConcat=M$;function q$(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:co(Array.isArray(e)?e.join(","):e)}s(q$,"interpolate");function D$(e){return new Xt(co(e))}s(D$,"stringify");Se.stringify=D$;function co(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(co,"safeStringify");Se.safeStringify=co;function L$(e){return typeof e=="string"&&Se.IDENTIFIER.test(e)?new Xt(`.${e}`):Ny`[${e}]`}s(L$,"getProperty");Se.getProperty=L$;function F$(e){if(typeof e=="string"&&Se.IDENTIFIER.test(e))return new Xt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(F$,"getEsmExportName");Se.getEsmExportName=F$;function V$(e){return new Xt(e.toString())}s(V$,"regexpCode");Se.regexpCode=V$});var Yl=b(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.ValueScope=jt.ValueScopeName=jt.Scope=jt.varKinds=jt.UsedValueState=void 0;var It=uo(),Gl=class Gl extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s(Gl,"ValueError");var Ul=Gl,ec;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(ec||(jt.UsedValueState=ec={}));jt.varKinds={const:new It.Name("const"),let:new It.Name("let"),var:new It.Name("var")};var Wl=class Wl{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof It.Name?t:this.name(t)}name(t){return new It.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};s(Wl,"Scope");var tc=Wl;jt.Scope=tc;var Kl=class Kl extends It.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,It._)`.${new It.Name(r)}[${n}]`}};s(Kl,"ValueScopeName");var rc=Kl;jt.ValueScopeName=rc;var B$=(0,It._)`\n`,Zl=class Zl extends tc{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?B$:It.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:o}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[o];if(c){let p=c.get(a);if(p)return p}else c=this._values[o]=new Map;c.set(a,i);let u=this._scope[o]||(this._scope[o]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:o,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,It._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=It.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,ec.Started);let p=r(l);if(p){let f=this.opts.es5?jt.varKinds.var:jt.varKinds.const;o=(0,It._)`${o}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))o=(0,It._)`${o}${p}${this.opts._n}`;else throw new Ul(l);u.set(l,ec.Completed)})}return o}};s(Zl,"ValueScope");var zl=Zl;jt.ValueScope=zl});var se=b(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=uo(),mr=Yl(),fn=uo();Object.defineProperty(le,"_",{enumerable:!0,get:s(function(){return fn._},"get")});Object.defineProperty(le,"str",{enumerable:!0,get:s(function(){return fn.str},"get")});Object.defineProperty(le,"strConcat",{enumerable:!0,get:s(function(){return fn.strConcat},"get")});Object.defineProperty(le,"nil",{enumerable:!0,get:s(function(){return fn.nil},"get")});Object.defineProperty(le,"getProperty",{enumerable:!0,get:s(function(){return fn.getProperty},"get")});Object.defineProperty(le,"stringify",{enumerable:!0,get:s(function(){return fn.stringify},"get")});Object.defineProperty(le,"regexpCode",{enumerable:!0,get:s(function(){return fn.regexpCode},"get")});Object.defineProperty(le,"Name",{enumerable:!0,get:s(function(){return fn.Name},"get")});var oc=Yl();Object.defineProperty(le,"Scope",{enumerable:!0,get:s(function(){return oc.Scope},"get")});Object.defineProperty(le,"ValueScope",{enumerable:!0,get:s(function(){return oc.ValueScope},"get")});Object.defineProperty(le,"ValueScopeName",{enumerable:!0,get:s(function(){return oc.ValueScopeName},"get")});Object.defineProperty(le,"varKinds",{enumerable:!0,get:s(function(){return oc.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 lf=class lf{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(lf,"Node");var Wr=lf,ff=class ff extends Wr{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?mr.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=Ji(this.rhs,t,r)),this}get names(){return this.rhs instanceof ye._CodeOrName?this.rhs.names:{}}};s(ff,"Def");var Jl=ff,pf=class pf extends Wr{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=Ji(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ye.Name?{}:{...this.lhs.names};return sc(t,this.rhs)}};s(pf,"Assign");var nc=pf,df=class df extends nc{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(df,"AssignOp");var Ql=df,hf=class hf extends Wr{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(hf,"Label");var Xl=hf,mf=class mf extends Wr{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(mf,"Break");var ef=mf,gf=class gf extends Wr{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(gf,"Throw");var tf=gf,yf=class yf extends Wr{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=Ji(this.code,t,r),this}get names(){return this.code instanceof ye._CodeOrName?this.code.names:{}}};s(yf,"AnyCode");var rf=yf,vf=class vf extends Wr{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(H$(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>ni(t,r.names),{})}};s(vf,"ParentNode");var lo=vf,bf=class bf extends lo{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(bf,"BlockNode");var Kr=bf,_f=class _f extends lo{};s(_f,"Root");var nf=_f,Sf=class Sf extends Kr{};s(Sf,"Else");var Yi=Sf;Yi.kind="else";var Zi=class Zi extends Kr{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 Yi(n):n}if(r)return t===!1?r instanceof Zi?r:r.nodes:this.nodes.length?this:new Zi(My(t),r instanceof Zi?[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=Ji(this.condition,t,r),this}get names(){let t=super.names;return sc(t,this.condition),this.else&&ni(t,this.else.names),t}};s(Zi,"If");var ti=Zi;ti.kind="if";var Of=class Of extends Kr{};s(Of,"For");var ri=Of;ri.kind="for";var Pf=class Pf extends ri{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=Ji(this.iteration,t,r),this}get names(){return ni(super.names,this.iteration.names)}};s(Pf,"ForLoop");var sf=Pf,wf=class wf extends ri{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?mr.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=sc(super.names,this.from);return sc(t,this.to)}};s(wf,"ForRange");var of=wf,$f=class $f extends ri{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=Ji(this.iterable,t,r),this}get names(){return ni(super.names,this.iterable.names)}};s($f,"ForIter");var ic=$f,Ef=class Ef extends Kr{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};s(Ef,"Func");var fo=Ef;fo.kind="func";var xf=class xf extends lo{render(t){return"return "+super.render(t)}};s(xf,"Return");var po=xf;po.kind="return";var Af=class Af extends Kr{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&&ni(t,this.catch.names),this.finally&&ni(t,this.finally.names),t}};s(Af,"Try");var af=Af,Cf=class Cf extends Kr{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(Cf,"Catch");var ho=Cf;ho.kind="catch";var If=class If extends Kr{render(t){return"finally"+super.render(t)}};s(If,"Finally");var mo=If;mo.kind="finally";var jf=class jf{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
7
- `:""},this._extScope=t,this._scope=new mr.Scope({parent:t}),this._nodes=[new nf]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new Jl(t,o,n)),o}const(t,r,n){return this._def(mr.varKinds.const,t,r,n)}let(t,r,n){return this._def(mr.varKinds.let,t,r,n)}var(t,r,n){return this._def(mr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new nc(t,r,n))}add(t,r){return this._leafNode(new Ql(t,le.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ye.nil&&this._leafNode(new rf(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 ti(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 ti(t))}else(){return this._elseNode(new Yi)}endIf(){return this._endBlockNode(ti,Yi)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new sf(t),r)}forRange(t,r,n,i,o=this.opts.es5?mr.varKinds.var:mr.varKinds.let){let a=this._scope.toName(t);return this._for(new of(o,a,r,n),()=>i(a))}forOf(t,r,n,i=mr.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof ye.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ye._)`${a}.length`,c=>{this.var(o,(0,ye._)`${a}[${c}]`),n(o)})}return this._for(new ic("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?mr.varKinds.var:mr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ye._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new ic("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(ri)}label(t){return this._leafNode(new Xl(t))}break(t){return this._leafNode(new ef(t))}return(t){let r=new po;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(po)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new af;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new ho(o),r(o)}return n&&(this._currNode=i.finally=new mo,this.code(n)),this._endBlockNode(ho,mo)}throw(t){return this._leafNode(new tf(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 fo(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(fo)}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 ti))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};s(jf,"CodeGen");var cf=jf;le.CodeGen=cf;function ni(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(ni,"addNames");function sc(e,t){return t instanceof ye._CodeOrName?ni(e,t.names):e}s(sc,"addExprNames");function Ji(e,t,r){if(e instanceof ye.Name)return n(e);if(!i(e))return e;return new ye._Code(e._items.reduce((o,a)=>(a instanceof ye.Name&&(a=n(a)),a instanceof ye._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=r[o.str];return a===void 0||t[o.str]!==1?o:(delete t[o.str],a)}function i(o){return o instanceof ye._Code&&o._items.some(a=>a instanceof ye.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(Ji,"optimizeExpr");function H$(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(H$,"subtractNames");function My(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ye._)`!${uf(e)}`}s(My,"not");le.not=My;var U$=qy(le.operators.AND);function z$(...e){return e.reduce(U$)}s(z$,"and");le.and=z$;var G$=qy(le.operators.OR);function W$(...e){return e.reduce(G$)}s(W$,"or");le.or=W$;function qy(e){return(t,r)=>t===ye.nil?r:r===ye.nil?t:(0,ye._)`${uf(t)} ${e} ${uf(r)}`}s(qy,"mappend");function uf(e){return e instanceof ye.Name?e:(0,ye._)`(${e})`}s(uf,"par")});var he=b(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(),K$=uo();function Z$(e){let t={};for(let r of e)t[r]=!0;return t}s(Z$,"toHash");fe.toHash=Z$;function Y$(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Fy(e,t),!Vy(t,e.self.RULES.all))}s(Y$,"alwaysValidSchema");fe.alwaysValidSchema=Y$;function Fy(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||Uy(e,`unknown keyword: "${o}"`)}s(Fy,"checkUnknownRules");fe.checkUnknownRules=Fy;function Vy(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s(Vy,"schemaHasRules");fe.schemaHasRules=Vy;function J$(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}s(J$,"schemaHasRulesButRef");fe.schemaHasRulesButRef=J$;function Q$({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)}`}s(Q$,"schemaRefOrVal");fe.schemaRefOrVal=Q$;function X$(e){return By(decodeURIComponent(e))}s(X$,"unescapeFragment");fe.unescapeFragment=X$;function eE(e){return encodeURIComponent(Tf(e))}s(eE,"escapeFragment");fe.escapeFragment=eE;function Tf(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(Tf,"escapeJsonPointer");fe.escapeJsonPointer=Tf;function By(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(By,"unescapeJsonPointer");fe.unescapeJsonPointer=By;function tE(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(tE,"eachItem");fe.eachItem=tE;function Dy({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,c)=>{let u=a===void 0?o:a instanceof $e.Name?(o instanceof $e.Name?e(i,o,a):t(i,o,a),a):o instanceof $e.Name?(t(i,a,o),o):r(o,a);return c===$e.Name&&!(u instanceof $e.Name)?n(i,u):u}}s(Dy,"makeMergeEvaluated");fe.mergeEvaluated={props:Dy({mergeNames:s((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:s((e,t,r)=>e.if((0,$e._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,$e._)`${r} || {}`),Nf(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Hy}),items:Dy({mergeNames:s((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:s((e,t,r)=>e.if((0,$e._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,$e._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:s((e,t)=>e.var("items",t),"resultToName")})};function Hy(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,$e._)`{}`);return t!==void 0&&Nf(e,r,t),r}s(Hy,"evaluatedPropsToName");fe.evaluatedPropsToName=Hy;function Nf(e,t,r){Object.keys(r).forEach(n=>e.assign((0,$e._)`${t}${(0,$e.getProperty)(n)}`,!0))}s(Nf,"setEvaluated");fe.setEvaluated=Nf;var Ly={};function rE(e,t){return e.scopeValue("func",{ref:t,code:Ly[t.code]||(Ly[t.code]=new K$._Code(t.code))})}s(rE,"useFunc");fe.useFunc=rE;var Rf;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Rf||(fe.Type=Rf={}));function nE(e,t,r){if(e instanceof $e.Name){let n=t===Rf.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():"/"+Tf(e)}s(nE,"getErrorPath");fe.getErrorPath=nE;function Uy(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}s(Uy,"checkStrictMode");fe.checkStrictMode=Uy});var er=b(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});var dt=se(),iE={data:new dt.Name("data"),valCxt:new dt.Name("valCxt"),instancePath:new dt.Name("instancePath"),parentData:new dt.Name("parentData"),parentDataProperty:new dt.Name("parentDataProperty"),rootData:new dt.Name("rootData"),dynamicAnchors:new dt.Name("dynamicAnchors"),vErrors:new dt.Name("vErrors"),errors:new dt.Name("errors"),this:new dt.Name("this"),self:new dt.Name("self"),scope:new dt.Name("scope"),json:new dt.Name("json"),jsonPos:new dt.Name("jsonPos"),jsonLen:new dt.Name("jsonLen"),jsonPart:new dt.Name("jsonPart")};kf.default=iE});var go=b(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.extendErrors=ht.resetErrorsCount=ht.reportExtraError=ht.reportError=ht.keyword$DataError=ht.keywordError=void 0;var ve=se(),ac=he(),Ot=er();ht.keywordError={message:s(({keyword:e})=>(0,ve.str)`must pass "${e}" keyword validation`,"message")};ht.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,ve.str)`"${e}" keyword must be ${t} ($data)`:(0,ve.str)`"${e}" keyword is invalid ($data)`,"message")};function sE(e,t=ht.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:c}=i,u=Wy(e,t,r);n??(a||c)?zy(o,u):Gy(i,(0,ve._)`[${u}]`)}s(sE,"reportError");ht.reportError=sE;function oE(e,t=ht.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,c=Wy(e,t,r);zy(i,c),o||a||Gy(n,Ot.default.vErrors)}s(oE,"reportExtraError");ht.reportExtraError=oE;function aE(e,t){e.assign(Ot.default.errors,t),e.if((0,ve._)`${Ot.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ve._)`${Ot.default.vErrors}.length`,t),()=>e.assign(Ot.default.vErrors,null)))}s(aE,"resetErrorsCount");ht.resetErrorsCount=aE;function cE({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,Ot.default.errors,c=>{e.const(a,(0,ve._)`${Ot.default.vErrors}[${c}]`),e.if((0,ve._)`${a}.instancePath === undefined`,()=>e.assign((0,ve._)`${a}.instancePath`,(0,ve.strConcat)(Ot.default.instancePath,o.errorPath))),e.assign((0,ve._)`${a}.schemaPath`,(0,ve.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,ve._)`${a}.schema`,r),e.assign((0,ve._)`${a}.data`,n))})}s(cE,"extendErrors");ht.extendErrors=cE;function zy(e,t){let r=e.const("err",t);e.if((0,ve._)`${Ot.default.vErrors} === null`,()=>e.assign(Ot.default.vErrors,(0,ve._)`[${r}]`),(0,ve._)`${Ot.default.vErrors}.push(${r})`),e.code((0,ve._)`${Ot.default.errors}++`)}s(zy,"addError");function Gy(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,ve._)`new ${e.ValidationError}(${t})`):(r.assign((0,ve._)`${n}.errors`,t),r.return(!1))}s(Gy,"returnErrors");var ii={keyword:new ve.Name("keyword"),schemaPath:new ve.Name("schemaPath"),params:new ve.Name("params"),propertyName:new ve.Name("propertyName"),message:new ve.Name("message"),schema:new ve.Name("schema"),parentSchema:new ve.Name("parentSchema")};function Wy(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,ve._)`{}`:uE(e,t,r)}s(Wy,"errorObjectCode");function uE(e,t,r={}){let{gen:n,it:i}=e,o=[lE(i,r),fE(e,r)];return pE(e,t,o),n.object(...o)}s(uE,"errorObject");function lE({errorPath:e},{instancePath:t}){let r=t?(0,ve.str)`${e}${(0,ac.getErrorPath)(t,ac.Type.Str)}`:e;return[Ot.default.instancePath,(0,ve.strConcat)(Ot.default.instancePath,r)]}s(lE,"errorInstancePath");function fE({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,ve.str)`${t}/${e}`;return r&&(i=(0,ve.str)`${i}${(0,ac.getErrorPath)(r,ac.Type.Str)}`),[ii.schemaPath,i]}s(fE,"errorSchemaPath");function pE(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:a,it:c}=e,{opts:u,propertyName:l,topSchemaRef:p,schemaPath:f}=c;n.push([ii.keyword,i],[ii.params,typeof t=="function"?t(e):t||(0,ve._)`{}`]),u.messages&&n.push([ii.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([ii.schema,a],[ii.parentSchema,(0,ve._)`${p}${f}`],[Ot.default.data,o]),l&&n.push([ii.propertyName,l])}s(pE,"extraErrorProps")});var Zy=b(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.boolOrEmptySchema=Qi.topBoolOrEmptySchema=void 0;var dE=go(),hE=se(),mE=er(),gE={message:"boolean schema is false"};function yE(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Ky(e,!1):typeof r=="object"&&r.$async===!0?t.return(mE.default.data):(t.assign((0,hE._)`${n}.errors`,null),t.return(!0))}s(yE,"topBoolOrEmptySchema");Qi.topBoolOrEmptySchema=yE;function vE(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Ky(e)):r.var(t,!0)}s(vE,"boolOrEmptySchema");Qi.boolOrEmptySchema=vE;function Ky(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,dE.reportError)(i,gE,void 0,t)}s(Ky,"falseSchemaError")});var Mf=b(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.getRules=Xi.isJSONType=void 0;var bE=["string","number","integer","boolean","null","object","array"],_E=new Set(bE);function SE(e){return typeof e=="string"&&_E.has(e)}s(SE,"isJSONType");Xi.isJSONType=SE;function OE(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}s(OE,"getRules");Xi.getRules=OE});var qf=b(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.shouldUseRule=pn.shouldUseGroup=pn.schemaHasRulesForType=void 0;function PE({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Yy(e,n)}s(PE,"schemaHasRulesForType");pn.schemaHasRulesForType=PE;function Yy(e,t){return t.rules.some(r=>Jy(e,r))}s(Yy,"shouldUseGroup");pn.shouldUseGroup=Yy;function Jy(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}s(Jy,"shouldUseRule");pn.shouldUseRule=Jy});var yo=b(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.reportTypeError=mt.checkDataTypes=mt.checkDataType=mt.coerceAndCheckDataType=mt.getJSONTypes=mt.getSchemaTypes=mt.DataType=void 0;var wE=Mf(),$E=qf(),EE=go(),oe=se(),Qy=he(),es;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(es||(mt.DataType=es={}));function xE(e){let t=Xy(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}s(xE,"getSchemaTypes");mt.getSchemaTypes=xE;function Xy(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(wE.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(Xy,"getJSONTypes");mt.getJSONTypes=Xy;function AE(e,t){let{gen:r,data:n,opts:i}=e,o=CE(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,$E.schemaHasRulesForType)(e,t[0]));if(a){let c=Lf(t,n,i.strictNumbers,es.Wrong);r.if(c,()=>{o.length?IE(e,t,o):Ff(e)})}return a}s(AE,"coerceAndCheckDataType");mt.coerceAndCheckDataType=AE;var ev=new Set(["string","number","integer","boolean","null"]);function CE(e,t){return t?e.filter(r=>ev.has(r)||t==="array"&&r==="array"):[]}s(CE,"coerceToTypes");function IE(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,oe._)`typeof ${i}`),c=n.let("coerced",(0,oe._)`undefined`);o.coerceTypes==="array"&&n.if((0,oe._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,oe._)`${i}[0]`).assign(a,(0,oe._)`typeof ${i}`).if(Lf(t,i,o.strictNumbers),()=>n.assign(c,i))),n.if((0,oe._)`${c} !== undefined`);for(let l of r)(ev.has(l)||l==="array"&&o.coerceTypes==="array")&&u(l);n.else(),Ff(e),n.endIf(),n.if((0,oe._)`${c} !== undefined`,()=>{n.assign(i,c),jE(e,c)});function u(l){switch(l){case"string":n.elseIf((0,oe._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,oe._)`"" + ${i}`).elseIf((0,oe._)`${i} === null`).assign(c,(0,oe._)`""`);return;case"number":n.elseIf((0,oe._)`${a} == "boolean" || ${i} === null
8
- || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,oe._)`+${i}`);return;case"integer":n.elseIf((0,oe._)`${a} === "boolean" || ${i} === null
9
- || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,(0,oe._)`+${i}`);return;case"boolean":n.elseIf((0,oe._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf((0,oe._)`${i} === "true" || ${i} === 1`).assign(c,!0);return;case"null":n.elseIf((0,oe._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(c,null);return;case"array":n.elseIf((0,oe._)`${a} === "string" || ${a} === "number"
10
- || ${a} === "boolean" || ${i} === null`).assign(c,(0,oe._)`[${i}]`)}}s(u,"coerceSpecificType")}s(IE,"coerceData");function jE({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,oe._)`${t} !== undefined`,()=>e.assign((0,oe._)`${t}[${r}]`,n))}s(jE,"assignParentData");function Df(e,t,r,n=es.Correct){let i=n===es.Correct?oe.operators.EQ:oe.operators.NEQ,o;switch(e){case"null":return(0,oe._)`${t} ${i} null`;case"array":o=(0,oe._)`Array.isArray(${t})`;break;case"object":o=(0,oe._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,oe._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,oe._)`typeof ${t} ${i} ${e}`}return n===es.Correct?o:(0,oe.not)(o);function a(c=oe.nil){return(0,oe.and)((0,oe._)`typeof ${t} == "number"`,c,r?(0,oe._)`isFinite(${t})`:oe.nil)}}s(Df,"checkDataType");mt.checkDataType=Df;function Lf(e,t,r,n){if(e.length===1)return Df(e[0],t,r,n);let i,o=(0,Qy.toHash)(e);if(o.array&&o.object){let a=(0,oe._)`typeof ${t} != "object"`;i=o.null?a:(0,oe._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else i=oe.nil;o.number&&delete o.integer;for(let a in o)i=(0,oe.and)(i,Df(a,t,r,n));return i}s(Lf,"checkDataTypes");mt.checkDataTypes=Lf;var RE={message:s(({schema:e})=>`must be ${e}`,"message"),params:s(({schema:e,schemaValue:t})=>typeof e=="string"?(0,oe._)`{type: ${e}}`:(0,oe._)`{type: ${t}}`,"params")};function Ff(e){let t=TE(e);(0,EE.reportError)(t,RE)}s(Ff,"reportTypeError");mt.reportTypeError=Ff;function TE(e){let{gen:t,data:r,schema:n}=e,i=(0,Qy.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(TE,"getTypeErrorContext")});var rv=b(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.assignDefaults=void 0;var ts=se(),NE=he();function kE(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)tv(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>tv(e,o,i.default))}s(kE,"assignDefaults");cc.assignDefaults=kE;function tv(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let c=(0,ts._)`${o}${(0,ts.getProperty)(t)}`;if(i){(0,NE.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,ts._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,ts._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,ts._)`${c} = ${(0,ts.stringify)(r)}`)}s(tv,"assignDefault")});var tr=b(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.validateUnion=we.validateArray=we.usePattern=we.callValidateCode=we.schemaProperties=we.allSchemaProperties=we.noPropertyInData=we.propertyInData=we.isOwnProperty=we.hasPropFunc=we.reportMissingProp=we.checkMissingProp=we.checkReportMissingProp=void 0;var Te=se(),Vf=he(),dn=er(),ME=he();function qE(e,t){let{gen:r,data:n,it:i}=e;r.if(Hf(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Te._)`${t}`},!0),e.error()})}s(qE,"checkReportMissingProp");we.checkReportMissingProp=qE;function DE({gen:e,data:t,it:{opts:r}},n,i){return(0,Te.or)(...n.map(o=>(0,Te.and)(Hf(e,t,o,r.ownProperties),(0,Te._)`${i} = ${o}`)))}s(DE,"checkMissingProp");we.checkMissingProp=DE;function LE(e,t){e.setParams({missingProperty:t},!0),e.error()}s(LE,"reportMissingProp");we.reportMissingProp=LE;function nv(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Te._)`Object.prototype.hasOwnProperty`})}s(nv,"hasPropFunc");we.hasPropFunc=nv;function Bf(e,t,r){return(0,Te._)`${nv(e)}.call(${t}, ${r})`}s(Bf,"isOwnProperty");we.isOwnProperty=Bf;function FE(e,t,r,n){let i=(0,Te._)`${t}${(0,Te.getProperty)(r)} !== undefined`;return n?(0,Te._)`${i} && ${Bf(e,t,r)}`:i}s(FE,"propertyInData");we.propertyInData=FE;function Hf(e,t,r,n){let i=(0,Te._)`${t}${(0,Te.getProperty)(r)} === undefined`;return n?(0,Te.or)(i,(0,Te.not)(Bf(e,t,r))):i}s(Hf,"noPropertyInData");we.noPropertyInData=Hf;function iv(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(iv,"allSchemaProperties");we.allSchemaProperties=iv;function VE(e,t){return iv(t).filter(r=>!(0,Vf.alwaysValidSchema)(e,t[r]))}s(VE,"schemaProperties");we.schemaProperties=VE;function BE({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},c,u,l){let p=l?(0,Te._)`${e}, ${t}, ${n}${i}`:t,f=[[dn.default.instancePath,(0,Te.strConcat)(dn.default.instancePath,o)],[dn.default.parentData,a.parentData],[dn.default.parentDataProperty,a.parentDataProperty],[dn.default.rootData,dn.default.rootData]];a.opts.dynamicRef&&f.push([dn.default.dynamicAnchors,dn.default.dynamicAnchors]);let d=(0,Te._)`${p}, ${r.object(...f)}`;return u!==Te.nil?(0,Te._)`${c}.call(${u}, ${d})`:(0,Te._)`${c}(${d})`}s(BE,"callValidateCode");we.callValidateCode=BE;var HE=(0,Te._)`new RegExp`;function UE({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,Te._)`${i.code==="new RegExp"?HE:(0,ME.useFunc)(e,i)}(${r}, ${n})`})}s(UE,"usePattern");we.usePattern=UE;function zE(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(o,!0),a(()=>t.break()),o;function a(c){let u=t.const("len",(0,Te._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Vf.Type.Num},o),t.if((0,Te.not)(o),c)})}s(a,"validateItems")}s(zE,"validateArray");we.validateArray=zE;function GE(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,Vf.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,Te._)`${a} || ${c}`),e.mergeValidEvaluated(p,c)||t.if((0,Te.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(GE,"validateUnion");we.validateUnion=GE});var av=b(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.validateKeywordUsage=jr.validSchemaType=jr.funcKeywordCode=jr.macroKeywordCode=void 0;var Pt=se(),si=er(),WE=tr(),KE=go();function ZE(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,c=t.macro.call(a.self,i,o,a),u=ov(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:Pt.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}s(ZE,"macroKeywordCode");jr.macroKeywordCode=ZE;function YE(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:c,it:u}=e;QE(u,t);let l=!c&&t.compile?t.compile.call(u.self,o,a,u):t.validate,p=ov(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)v(),t.modifying&&sv(e),g(()=>e.error());else{let w=t.async?h():y();t.modifying&&sv(e),g(()=>JE(e,w))}}s(d,"validateKeyword");function h(){let w=n.let("ruleErrs",null);return n.try(()=>v((0,Pt._)`await `),A=>n.assign(f,!1).if((0,Pt._)`${A} instanceof ${u.ValidationError}`,()=>n.assign(w,(0,Pt._)`${A}.errors`),()=>n.throw(A))),w}s(h,"validateAsync");function y(){let w=(0,Pt._)`${p}.errors`;return n.assign(w,null),v(Pt.nil),w}s(y,"validateSync");function v(w=t.async?(0,Pt._)`await `:Pt.nil){let A=u.opts.passContext?si.default.this:si.default.self,I=!("compile"in t&&!c||t.schema===!1);n.assign(f,(0,Pt._)`${w}${(0,WE.callValidateCode)(e,p,A,I)}`,t.modifying)}s(v,"assignValid");function g(w){var A;n.if((0,Pt.not)((A=t.valid)!==null&&A!==void 0?A:f),w)}s(g,"reportErrs")}s(YE,"funcKeywordCode");jr.funcKeywordCode=YE;function sv(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Pt._)`${n.parentData}[${n.parentDataProperty}]`))}s(sv,"modifyData");function JE(e,t){let{gen:r}=e;r.if((0,Pt._)`Array.isArray(${t})`,()=>{r.assign(si.default.vErrors,(0,Pt._)`${si.default.vErrors} === null ? ${t} : ${si.default.vErrors}.concat(${t})`).assign(si.default.errors,(0,Pt._)`${si.default.vErrors}.length`),(0,KE.extendErrors)(e)},()=>e.error())}s(JE,"addErrs");function QE({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(QE,"checkAsyncKeyword");function ov(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,Pt.stringify)(r)})}s(ov,"useKeyword");function XE(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}s(XE,"validSchemaType");jr.validSchemaType=XE;function ex({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let u=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}s(ex,"validateKeywordUsage");jr.validateKeywordUsage=ex});var uv=b(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.extendSubschemaMode=hn.extendSubschemaData=hn.getSubschema=void 0;var Rr=se(),cv=he();function tx(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,Rr._)`${e.schemaPath}${(0,Rr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,Rr._)`${e.schemaPath}${(0,Rr.getProperty)(t)}${(0,Rr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,cv.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}s(tx,"getSubschema");hn.getSubschema=tx;function rx(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=c.let("data",(0,Rr._)`${t.data}${(0,Rr.getProperty)(r)}`,!0);u(d),e.errorPath=(0,Rr.str)`${l}${(0,cv.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,Rr._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Rr.Name?i:c.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}o&&(e.dataTypes=o);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]}s(u,"dataContextProps")}s(rx,"extendSubschemaData");hn.extendSubschemaData=rx;function nx(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}s(nx,"extendSubschemaMode");hn.extendSubschemaMode=nx});var Uf=b((gF,lv)=>{"use strict";lv.exports=s(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var pv=b((vF,fv)=>{"use strict";var mn=fv.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(){};uc(t,n,i,e,"",e)};mn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};mn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};mn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};mn.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 uc(e,t,r,n,i,o,a,c,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,c,u,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in mn.arrayKeywords)for(var d=0;d<f.length;d++)uc(e,t,r,f[d],i+"/"+p+"/"+d,o,i,p,n,d)}else if(p in mn.propsKeywords){if(f&&typeof f=="object")for(var h in f)uc(e,t,r,f[h],i+"/"+p+"/"+ix(h),o,i,p,n,h)}else(p in mn.keywords||e.allKeys&&!(p in mn.skipKeywords))&&uc(e,t,r,f,i+"/"+p,o,i,p,n)}r(n,i,o,a,c,u,l)}}s(uc,"_traverse");function ix(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(ix,"escapeJsonPtr")});var vo=b(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.getSchemaRefs=Rt.resolveUrl=Rt.normalizeId=Rt._getFullPath=Rt.getFullPath=Rt.inlineRef=void 0;var sx=he(),ox=Uf(),ax=pv(),cx=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function ux(e,t=!0){return typeof e=="boolean"?!0:t===!0?!zf(e):t?dv(e)<=t:!1}s(ux,"inlineRef");Rt.inlineRef=ux;var lx=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function zf(e){for(let t in e){if(lx.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(zf)||typeof r=="object"&&zf(r))return!0}return!1}s(zf,"hasRef");function dv(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!cx.has(r)&&(typeof e[r]=="object"&&(0,sx.eachItem)(e[r],n=>t+=dv(n)),t===1/0))return 1/0}return t}s(dv,"countKeys");function hv(e,t="",r){r!==!1&&(t=rs(t));let n=e.parse(t);return mv(e,n)}s(hv,"getFullPath");Rt.getFullPath=hv;function mv(e,t){return e.serialize(t).split("#")[0]+"#"}s(mv,"_getFullPath");Rt._getFullPath=mv;var fx=/#\/?$/;function rs(e){return e?e.replace(fx,""):""}s(rs,"normalizeId");Rt.normalizeId=rs;function px(e,t,r){return r=rs(r),e.resolve(t,r)}s(px,"resolveUrl");Rt.resolveUrl=px;var dx=/^[a-z_][-a-z0-9._]*$/i;function hx(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=rs(e[r]||t),o={"":i},a=hv(n,i,!1),c={},u=new Set;return ax(e,{allKeys:!0},(f,d,h,y)=>{if(y===void 0)return;let v=a+d,g=o[y];typeof f[r]=="string"&&(g=w.call(this,f[r])),A.call(this,f.$anchor),A.call(this,f.$dynamicAnchor),o[d]=g;function w(I){let R=this.opts.uriResolver.resolve;if(I=rs(g?R(g,I):I),u.has(I))throw p(I);u.add(I);let C=this.refs[I];return typeof C=="string"&&(C=this.refs[C]),typeof C=="object"?l(f,C.schema,I):I!==rs(v)&&(I[0]==="#"?(l(f,c[I],I),c[I]=f):this.refs[I]=v),I}s(w,"addRef");function A(I){if(typeof I=="string"){if(!dx.test(I))throw new Error(`invalid anchor "${I}"`);w.call(this,`#${I}`)}}s(A,"addAnchor")}),c;function l(f,d,h){if(d!==void 0&&!ox(f,d))throw p(h)}s(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}s(p,"ambiguos")}s(hx,"getSchemaRefs");Rt.getSchemaRefs=hx});var So=b(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.getData=gn.KeywordCxt=gn.validateFunctionCode=void 0;var _v=Zy(),gv=yo(),Wf=qf(),lc=yo(),mx=rv(),_o=av(),Gf=uv(),K=se(),ne=er(),gx=vo(),Zr=he(),bo=go();function yx(e){if(Pv(e)&&(wv(e),Ov(e))){_x(e);return}Sv(e,()=>(0,_v.topBoolOrEmptySchema)(e))}s(yx,"validateFunctionCode");gn.validateFunctionCode=yx;function Sv({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,K._)`${ne.default.data}, ${ne.default.valCxt}`,n.$async,()=>{e.code((0,K._)`"use strict"; ${yv(r,i)}`),bx(e,i),e.code(o)}):e.func(t,(0,K._)`${ne.default.data}, ${vx(i)}`,n.$async,()=>e.code(yv(r,i)).code(o))}s(Sv,"validateFunction");function vx(e){return(0,K._)`{${ne.default.instancePath}="", ${ne.default.parentData}, ${ne.default.parentDataProperty}, ${ne.default.rootData}=${ne.default.data}${e.dynamicRef?(0,K._)`, ${ne.default.dynamicAnchors}={}`:K.nil}}={}`}s(vx,"destructureValCxt");function bx(e,t){e.if(ne.default.valCxt,()=>{e.var(ne.default.instancePath,(0,K._)`${ne.default.valCxt}.${ne.default.instancePath}`),e.var(ne.default.parentData,(0,K._)`${ne.default.valCxt}.${ne.default.parentData}`),e.var(ne.default.parentDataProperty,(0,K._)`${ne.default.valCxt}.${ne.default.parentDataProperty}`),e.var(ne.default.rootData,(0,K._)`${ne.default.valCxt}.${ne.default.rootData}`),t.dynamicRef&&e.var(ne.default.dynamicAnchors,(0,K._)`${ne.default.valCxt}.${ne.default.dynamicAnchors}`)},()=>{e.var(ne.default.instancePath,(0,K._)`""`),e.var(ne.default.parentData,(0,K._)`undefined`),e.var(ne.default.parentDataProperty,(0,K._)`undefined`),e.var(ne.default.rootData,ne.default.data),t.dynamicRef&&e.var(ne.default.dynamicAnchors,(0,K._)`{}`)})}s(bx,"destructureValCxtES5");function _x(e){let{schema:t,opts:r,gen:n}=e;Sv(e,()=>{r.$comment&&t.$comment&&Ev(e),$x(e),n.let(ne.default.vErrors,null),n.let(ne.default.errors,0),r.unevaluated&&Sx(e),$v(e),Ax(e)})}s(_x,"topSchemaObjCode");function Sx(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,K._)`${r}.evaluated`),t.if((0,K._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,K._)`${e.evaluated}.props`,(0,K._)`undefined`)),t.if((0,K._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,K._)`${e.evaluated}.items`,(0,K._)`undefined`))}s(Sx,"resetEvaluated");function yv(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,K._)`/*# sourceURL=${r} */`:K.nil}s(yv,"funcSourceUrl");function Ox(e,t){if(Pv(e)&&(wv(e),Ov(e))){Px(e,t);return}(0,_v.boolOrEmptySchema)(e,t)}s(Ox,"subschemaCode");function Ov({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}s(Ov,"schemaCxtHasRules");function Pv(e){return typeof e.schema!="boolean"}s(Pv,"isSchemaObj");function Px(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Ev(e),Ex(e),xx(e);let o=n.const("_errs",ne.default.errors);$v(e,o),n.var(t,(0,K._)`${o} === ${ne.default.errors}`)}s(Px,"subSchemaObjCode");function wv(e){(0,Zr.checkUnknownRules)(e),wx(e)}s(wv,"checkKeywords");function $v(e,t){if(e.opts.jtd)return vv(e,[],!1,t);let r=(0,gv.getSchemaTypes)(e.schema),n=(0,gv.coerceAndCheckDataType)(e,r);vv(e,r,!n,t)}s($v,"typeAndKeywords");function wx(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Zr.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s(wx,"checkRefsAndKeywords");function $x(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Zr.checkStrictMode)(e,"default is ignored in the schema root")}s($x,"checkNoDefault");function Ex(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,gx.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(Ex,"updateContext");function xx(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s(xx,"checkAsyncSchema");function Ev({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,K._)`${ne.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,K.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,K._)`${ne.default.self}.opts.$comment(${o}, ${a}, ${c}.schema)`)}}s(Ev,"commentKeyword");function Ax(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,K._)`${ne.default.errors} === 0`,()=>t.return(ne.default.data),()=>t.throw((0,K._)`new ${i}(${ne.default.vErrors})`)):(t.assign((0,K._)`${n}.errors`,ne.default.vErrors),o.unevaluated&&Cx(e),t.return((0,K._)`${ne.default.errors} === 0`))}s(Ax,"returnResults");function Cx({gen:e,evaluated:t,props:r,items:n}){r instanceof K.Name&&e.assign((0,K._)`${t}.props`,r),n instanceof K.Name&&e.assign((0,K._)`${t}.items`,n)}s(Cx,"assignEvaluated");function vv(e,t,r,n){let{gen:i,schema:o,data:a,allErrors:c,opts:u,self:l}=e,{RULES:p}=l;if(o.$ref&&(u.ignoreKeywordsWithRef||!(0,Zr.schemaHasRulesButRef)(o,p))){i.block(()=>Av(e,"$ref",p.all.$ref.definition));return}u.jtd||Ix(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,Wf.shouldUseGroup)(o,d)&&(d.type?(i.if((0,lc.checkDataType)(d.type,a,u.strictNumbers)),bv(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,lc.reportTypeError)(e)),i.endIf()):bv(e,d),c||i.if((0,K._)`${ne.default.errors} === ${n||0}`))}s(f,"groupKeywords")}s(vv,"schemaKeywords");function bv(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,mx.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,Wf.shouldUseRule)(n,o)&&Av(e,o.keyword,o.definition,t.type)})}s(bv,"iterateKeywords");function Ix(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(jx(e,t),e.opts.allowUnionTypes||Rx(e,t),Tx(e,e.dataTypes))}s(Ix,"checkStrictTypes");function jx(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{xv(e.dataTypes,r)||Kf(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),kx(e,t)}}s(jx,"checkContextTypes");function Rx(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Kf(e,"use allowUnionTypes to allow union type keyword")}s(Rx,"checkMultipleTypes");function Tx(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Wf.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>Nx(t,a))&&Kf(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(Tx,"checkKeywordTypes");function Nx(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(Nx,"hasApplicableType");function xv(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(xv,"includesType");function kx(e,t){let r=[];for(let n of e.dataTypes)xv(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s(kx,"narrowSchemaTypes");function Kf(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Zr.checkStrictMode)(e,t,e.opts.strictTypes)}s(Kf,"strictTypesError");var Zf=class Zf{constructor(t,r,n){if((0,_o.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,Zr.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",Cv(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,_o.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",ne.default.errors))}result(t,r,n){this.failResult((0,K.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,K.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,K._)`${r} !== undefined && (${(0,K.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?bo.reportExtraError:bo.reportError)(this,this.def.error,r)}$dataError(){(0,bo.reportError)(this,this.def.$dataError||bo.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,bo.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=K.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=K.nil,r=K.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,K.or)((0,K._)`${i} === undefined`,r)),t!==K.nil&&n.assign(t,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==K.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,K.or)(a(),c());function a(){if(n.length){if(!(r instanceof K.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,K._)`${(0,lc.checkDataTypes)(u,r,o.opts.strictNumbers,lc.DataType.Wrong)}`}return K.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,K._)`!${u}(${r})`}return K.nil}}subschema(t,r){let n=(0,Gf.getSubschema)(this.it,t);(0,Gf.extendSubschemaData)(n,this.it,t),(0,Gf.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return Ox(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Zr.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Zr.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,K.Name)),!0}};s(Zf,"KeywordCxt");var fc=Zf;gn.KeywordCxt=fc;function Av(e,t,r,n){let i=new fc(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,_o.funcKeywordCode)(i,r):"macro"in r?(0,_o.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,_o.funcKeywordCode)(i,r)}s(Av,"keywordCode");var Mx=/^\/(?:[^~]|~0|~1)*$/,qx=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Cv(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return ne.default.rootData;if(e[0]==="/"){if(!Mx.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=ne.default.rootData}else{let l=qx.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(o=r[t-p],!i)return o}let a=o,c=i.split("/");for(let l of c)l&&(o=(0,K._)`${o}${(0,K.getProperty)((0,Zr.unescapeJsonPointer)(l))}`,a=(0,K._)`${a} && ${o}`);return a;function u(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}s(Cv,"getData");gn.getData=Cv});var pc=b(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var Qf=class Qf extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(Qf,"ValidationError");var Yf=Qf;Jf.default=Yf});var Oo=b(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});var Xf=vo(),rp=class rp extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Xf.resolveUrl)(t,r,n),this.missingSchema=(0,Xf.normalizeId)((0,Xf.getFullPath)(t,this.missingRef))}};s(rp,"MissingRefError");var ep=rp;tp.default=ep});var Po=b(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.resolveSchema=rr.getCompilingSchema=rr.resolveRef=rr.compileSchema=rr.SchemaEnv=void 0;var gr=se(),Dx=pc(),oi=er(),yr=vo(),Iv=he(),Lx=So(),sp=class sp{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,yr.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};s(sp,"SchemaEnv");var ns=sp;rr.SchemaEnv=ns;function ip(e){let t=jv.call(this,e);if(t)return t;let r=(0,yr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new gr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),c;e.$async&&(c=a.scopeValue("Error",{ref:Dx.default,code:(0,gr._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:oi.default.data,parentData:oi.default.parentData,parentDataProperty:oi.default.parentDataProperty,dataNames:[oi.default.data],dataPathArr:[gr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,gr.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:gr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,gr._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,Lx.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(oi.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${oi.default.self}`,`${oi.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:v}=l;h.evaluated={props:y instanceof gr.Name?void 0:y,items:v instanceof gr.Name?void 0:v,dynamicProps:y instanceof gr.Name,dynamicItems:v instanceof gr.Name},h.source&&(h.source.evaluated=(0,gr.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(e)}}s(ip,"compileSchema");rr.compileSchema=ip;function Fx(e,t,r){var n;r=(0,yr.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=Hx.call(this,e,r);if(o===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(o=new ns({schema:a,schemaId:c,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=Vx.call(this,o)}s(Fx,"resolveRef");rr.resolveRef=Fx;function Vx(e){return(0,yr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:ip.call(this,e)}s(Vx,"inlineOrCompile");function jv(e){for(let t of this._compilations)if(Bx(t,e))return t}s(jv,"getCompilingSchema");rr.getCompilingSchema=jv;function Bx(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(Bx,"sameSchemaEnv");function Hx(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||dc.call(this,e,t)}s(Hx,"resolve");function dc(e,t){let r=this.opts.uriResolver.parse(t),n=(0,yr._getFullPath)(this.opts.uriResolver,r),i=(0,yr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return np.call(this,r,e);let o=(0,yr.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let c=dc.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:np.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||ip.call(this,a),o===(0,yr.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,yr.resolveUrl)(this.opts.uriResolver,i,l)),new ns({schema:c,schemaId:u,root:e,baseId:i})}return np.call(this,r,a)}}s(dc,"resolveSchema");rr.resolveSchema=dc;var Ux=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function np(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,Iv.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!Ux.has(c)&&l&&(t=(0,yr.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Iv.schemaHasRulesButRef)(r,this.RULES)){let c=(0,yr.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=dc.call(this,n,c)}let{schemaId:a}=this.opts;if(o=o||new ns({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(np,"getJsonPointer")});var Rv=b((IF,zx)=>{zx.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 Nv=b((jF,Tv)=>{"use strict";var Gx={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};Tv.exports={HEX:Gx}});var Bv=b((RF,Vv)=>{"use strict";var{HEX:Wx}=Nv();function Dv(e){if(Fv(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:Zx(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(Dv,"normalizeIPv4");function op(e,t=!1){let r="",n=!0;for(let i of e){if(Wx[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(op,"stringArrayToHexStripped");function Kx(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,a=!1,c=!1;function u(){if(i.length){if(o===!1){let l=op(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}s(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;o=!0}else{i.push(p);continue}}return i.length&&(o?r.zone=i.join(""):c?n.push(i.join("")):n.push(op(i))),r.address=n.join(""),r}s(Kx,"getIPV6");function Lv(e,t={}){if(Fv(e,":")<2)return{host:e,isIPV6:!1};let r=Kx(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}s(Lv,"normalizeIPv6");function Zx(e,t){let r="",n=!0,i=e.length;for(let o=0;o<i;o++){let a=e[o];a==="0"&&n?(o+1<=i&&e[o+1]===t||o+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}s(Zx,"stripLeadingZeros");function Fv(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(Fv,"findToken");var kv=/^\.\.?\//u,Mv=/^\/\.(?:\/|$)/u,qv=/^\/\.\.(?:\/|$)/u,Yx=/^\/?(?:.|\n)*?(?=\/|$)/u;function Jx(e){let t=[];for(;e.length;)if(e.match(kv))e=e.replace(kv,"");else if(e.match(Mv))e=e.replace(Mv,"/");else if(e.match(qv))e=e.replace(qv,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(Yx);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}s(Jx,"removeDotSegments");function Qx(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}s(Qx,"normalizeComponentEncoding");function Xx(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=Dv(n);if(i.isIPV4)n=i.host;else{let o=Lv(i.host,{isIPV4:!1});o.isIPV6===!0?n=`[${o.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}s(Xx,"recomposeAuthority");Vv.exports={recomposeAuthority:Xx,normalizeComponentEncoding:Qx,removeDotSegments:Jx,normalizeIPv4:Dv,normalizeIPv6:Lv,stringArrayToHexStripped:op}});var Kv=b((NF,Wv)=>{"use strict";var eA=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,tA=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Hv(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s(Hv,"isSecure");function Uv(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(Uv,"httpParse");function zv(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}s(zv,"httpSerialize");function rA(e){return e.secure=Hv(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s(rA,"wsParse");function nA(e){if((e.port===(Hv(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}s(nA,"wsSerialize");function iA(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(tA);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,o=ap[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(iA,"urnParse");function sA(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=ap[i];o&&(e=o.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}s(sA,"urnSerialize");function oA(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!eA.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(oA,"urnuuidParse");function aA(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(aA,"urnuuidSerialize");var Gv={scheme:"http",domainHost:!0,parse:Uv,serialize:zv},cA={scheme:"https",domainHost:Gv.domainHost,parse:Uv,serialize:zv},hc={scheme:"ws",domainHost:!0,parse:rA,serialize:nA},uA={scheme:"wss",domainHost:hc.domainHost,parse:hc.parse,serialize:hc.serialize},lA={scheme:"urn",parse:iA,serialize:sA,skipNormalize:!0},fA={scheme:"urn:uuid",parse:oA,serialize:aA,skipNormalize:!0},ap={http:Gv,https:cA,ws:hc,wss:uA,urn:lA,"urn:uuid":fA};Wv.exports=ap});var Yv=b((MF,gc)=>{"use strict";var{normalizeIPv6:pA,normalizeIPv4:dA,removeDotSegments:wo,recomposeAuthority:hA,normalizeComponentEncoding:mc}=Bv(),cp=Kv();function mA(e,t){return typeof e=="string"?e=Tr(Yr(e,t),t):typeof e=="object"&&(e=Yr(Tr(e,t),t)),e}s(mA,"normalize");function gA(e,t,r){let n=Object.assign({scheme:"null"},r),i=Zv(Yr(e,n),Yr(t,n),n,!0);return Tr(i,{...n,skipEscape:!0})}s(gA,"resolve");function Zv(e,t,r,n){let i={};return n||(e=Yr(Tr(e,r),r),t=Yr(Tr(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=wo(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=wo(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=wo(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=wo(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}s(Zv,"resolveComponents");function yA(e,t,r){return typeof e=="string"?(e=unescape(e),e=Tr(mc(Yr(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Tr(mc(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Tr(mc(Yr(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Tr(mc(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(yA,"equal");function Tr(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],o=cp[(n.scheme||r.scheme||"").toLowerCase()];o&&o.serialize&&o.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=hA(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&&(!o||!o.absolutePath)&&(c=wo(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("")}s(Tr,"serialize");var vA=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function bA(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||vA[t])return!0;return!1}s(bA,"nonSimpleDomain");var _A=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Yr(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,o=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(_A);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=dA(n.host);if(u.isIPV4===!1){let l=pA(u.host,{isIPV4:!1});n.host=l.host.toLowerCase(),o=l.isIPV6}else n.host=u.host,o=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=cp[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&o===!1&&bA(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}s(Yr,"parse");var up={SCHEMES:cp,normalize:mA,resolve:gA,resolveComponents:Zv,equal:yA,serialize:Tr,parse:Yr};gc.exports=up;gc.exports.default=up;gc.exports.fastUri=up});var Qv=b(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});var Jv=Yv();Jv.code='require("ajv/dist/runtime/uri").default';lp.default=Jv});var ss=b(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.CodeGen=lt.Name=lt.nil=lt.stringify=lt.str=lt._=lt.KeywordCxt=void 0;var SA=So();Object.defineProperty(lt,"KeywordCxt",{enumerable:!0,get:s(function(){return SA.KeywordCxt},"get")});var is=se();Object.defineProperty(lt,"_",{enumerable:!0,get:s(function(){return is._},"get")});Object.defineProperty(lt,"str",{enumerable:!0,get:s(function(){return is.str},"get")});Object.defineProperty(lt,"stringify",{enumerable:!0,get:s(function(){return is.stringify},"get")});Object.defineProperty(lt,"nil",{enumerable:!0,get:s(function(){return is.nil},"get")});Object.defineProperty(lt,"Name",{enumerable:!0,get:s(function(){return is.Name},"get")});Object.defineProperty(lt,"CodeGen",{enumerable:!0,get:s(function(){return is.CodeGen},"get")});var OA=pc(),n0=Oo(),PA=Mf(),$o=Po(),wA=se(),Eo=vo(),yc=yo(),pp=he(),Xv=Rv(),$A=Qv(),i0=s((e,t)=>new RegExp(e,t),"defaultRegExp");i0.code="new RegExp";var EA=["removeAdditional","useDefaults","coerceTypes"],xA=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),AA={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."},CA={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},e0=200;function IA(e){var t,r,n,i,o,a,c,u,l,p,f,d,h,y,v,g,w,A,I,R,C,ae,ce,nt,Pe;let Y=e.strict,k=(t=e.code)===null||t===void 0?void 0:t.optimize,j=k===!0||k===void 0?1:k||0,M=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:i0,Z=(i=e.uriResolver)!==null&&i!==void 0?i:$A.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:Y)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:Y)!==null&&u!==void 0?u:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:Y)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:Y)!==null&&d!==void 0?d:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:Y)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:j,regExp:M}:{optimize:j,regExp:M},loopRequired:(v=e.loopRequired)!==null&&v!==void 0?v:e0,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:e0,meta:(w=e.meta)!==null&&w!==void 0?w:!0,messages:(A=e.messages)!==null&&A!==void 0?A:!0,inlineRefs:(I=e.inlineRefs)!==null&&I!==void 0?I:!0,schemaId:(R=e.schemaId)!==null&&R!==void 0?R:"$id",addUsedSchema:(C=e.addUsedSchema)!==null&&C!==void 0?C:!0,validateSchema:(ae=e.validateSchema)!==null&&ae!==void 0?ae:!0,validateFormats:(ce=e.validateFormats)!==null&&ce!==void 0?ce:!0,unicodeRegExp:(nt=e.unicodeRegExp)!==null&&nt!==void 0?nt:!0,int32range:(Pe=e.int32range)!==null&&Pe!==void 0?Pe:!0,uriResolver:Z}}s(IA,"requiredOptions");var dp=class dp{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...IA(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new wA.ValueScope({scope:{},prefixes:xA,es5:r,lines:n}),this.logger=MA(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,PA.getRules)(),t0.call(this,AA,t,"NOT SUPPORTED"),t0.call(this,CA,t,"DEPRECATED","warn"),this._metaOpts=NA.call(this),t.formats&&RA.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&TA.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),jA.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=Xv;n==="id"&&(i={...Xv},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(p,f){await o.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function o(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof n0.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 o.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let o;if(typeof t=="object"){let{schemaId:a}=this.opts;if(o=t[a],o!==void 0&&typeof o!="string")throw new Error(`schema ${a} must be string`)}return r=(0,Eo.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=r0.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new $o.SchemaEnv({schema:{},schemaId:n});if(r=$o.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=r0.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,Eo.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(DA.call(this,n,r),!r)return(0,pp.eachItem)(n,o=>fp.call(this,o)),this;FA.call(this,r);let i={...r,type:(0,yc.getJSONTypes)(r.type),schemaType:(0,yc.getJSONTypes)(r.schemaType)};return(0,pp.eachItem)(n,i.type.length===0?o=>fp.call(this,o,i):o=>i.type.forEach(a=>fp.call(this,o,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),a=t;for(let c of o)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]=s0(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let a,{schemaId: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,Eo.normalizeId)(a||n);let l=Eo.getSchemaRefs.call(this,t,n);return u=new $o.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),o&&!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):$o.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{$o.compileSchema.call(this,t)}finally{this.opts=r}}};s(dp,"Ajv");var xo=dp;xo.ValidationError=OA.default;xo.MissingRefError=n0.default;lt.default=xo;function t0(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}s(t0,"checkOptions");function r0(e){return e=(0,Eo.normalizeId)(e),this.schemas[e]||this.refs[e]}s(r0,"getSchEnv");function jA(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}s(jA,"addInitialSchemas");function RA(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(RA,"addInitialFormats");function TA(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}s(TA,"addInitialKeywords");function NA(){let e={...this.opts};for(let t of EA)delete e[t];return e}s(NA,"getMetaSchemaOptions");var kA={log(){},warn(){},error(){}};function MA(e){if(e===!1)return kA;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}s(MA,"getLogger");var qA=/^[a-z_$][a-z0-9_$:-]*$/i;function DA(e,t){let{RULES:r}=this;if((0,pp.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!qA.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}s(DA,"checkKeyword");function fp(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=i?o.post:o.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,yc.getJSONTypes)(t.type),schemaType:(0,yc.getJSONTypes)(t.schemaType)}};t.before?LA.call(this,a,c,t.before):a.rules.push(c),o.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}s(fp,"addRule");function LA(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}s(LA,"addBeforeRule");function FA(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=s0(t)),e.validateSchema=this.compile(t,!0))}s(FA,"keywordMetaschema");var VA={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function s0(e){return{anyOf:[e,VA]}}s(s0,"schemaOrData")});var Ao=b(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.callRef=ai.getValidate=void 0;var BA=Oo(),o0=tr(),Tt=se(),os=er(),a0=Po(),vc=he(),HA={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:a,opts:c,self:u}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=a0.resolveRef.call(u,l,i,r);if(p===void 0)throw new BA.default(n.opts.uriResolver,i,r);if(p instanceof a0.SchemaEnv)return d(p);return h(p);function f(){if(o===l)return bc(e,a,o,o.$async);let y=t.scopeValue("root",{ref:l});return bc(e,(0,Tt._)`${y}.validate`,l,l.$async)}function d(y){let v=c0(e,y);bc(e,v,y,y.$async)}function h(y){let v=t.scopeValue("schema",c.code.source===!0?{ref:y,code:(0,Tt.stringify)(y)}:{ref:y}),g=t.name("valid"),w=e.subschema({schema:y,dataTypes:[],schemaPath:Tt.nil,topSchemaRef:v,errSchemaPath:r},g);e.mergeEvaluated(w),e.ok(g)}}};function c0(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Tt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(c0,"getValidate");ai.getValidate=c0;function bc(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:c,opts:u}=o,l=u.passContext?os.default.this:Tt.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,Tt._)`await ${(0,o0.callValidateCode)(e,t,l)}`),h(t),a||i.assign(y,!0)},v=>{i.if((0,Tt._)`!(${v} instanceof ${o.ValidationError})`,()=>i.throw(v)),d(v),a||i.assign(y,!1)}),e.ok(y)}s(p,"callAsyncRef");function f(){e.result((0,o0.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}s(f,"callSyncRef");function d(y){let v=(0,Tt._)`${y}.errors`;i.assign(os.default.vErrors,(0,Tt._)`${os.default.vErrors} === null ? ${v} : ${os.default.vErrors}.concat(${v})`),i.assign(os.default.errors,(0,Tt._)`${os.default.vErrors}.length`)}s(d,"addErrorsFrom");function h(y){var v;if(!o.opts.unevaluated)return;let g=(v=r==null?void 0:r.validate)===null||v===void 0?void 0:v.evaluated;if(o.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(o.props=vc.mergeEvaluated.props(i,g.props,o.props));else{let w=i.var("props",(0,Tt._)`${y}.evaluated.props`);o.props=vc.mergeEvaluated.props(i,w,o.props,Tt.Name)}if(o.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(o.items=vc.mergeEvaluated.items(i,g.items,o.items));else{let w=i.var("items",(0,Tt._)`${y}.evaluated.items`);o.items=vc.mergeEvaluated.items(i,w,o.items,Tt.Name)}}s(h,"addEvaluatedFrom")}s(bc,"callRef");ai.callRef=bc;ai.default=HA});var u0=b(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});var UA=Ao(),zA=["$schema","id","$defs",{keyword:"$comment"},"definitions",UA.default];hp.default=zA});var l0=b(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});var mp=ss(),GA=se(),yn=GA.operators,gp={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:yn.LTE,fail:yn.GT},{okStr:"<",ok:yn.LT,fail:yn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:yn.GTE,fail:yn.LT},{okStr:">",ok:yn.GT,fail:yn.LTE}]}},WA={message:s(e=>mp.str`must be ${yp(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>mp._`{comparison: ${yp(e).okStr}, limit: ${e.schemaCode}}`,"params")},KA={keyword:Object.keys(gp),type:"number",schemaType:"number",$data:!0,error:WA,code(e){let{data:t,schemaCode:r}=e;e.fail$data(mp._`${t} ${yp(e).fail} ${r} || isNaN(${t})`)}};function yp(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[gp[r].exclusive]?1:0;return gp[r].ops[n]}s(yp,"kwdOp");vp.default=KA});var p0=b(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});var f0={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},ZA={keyword:Object.keys(f0),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=f0[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};bp.default=ZA});var Sp=b(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});var Co=se(),YA={message:s(({schemaCode:e})=>(0,Co.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,Co._)`{multipleOf: ${e}}`,"params")},JA={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:YA,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),c=o?(0,Co._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,Co._)`${a} !== parseInt(${a})`;e.fail$data((0,Co._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};_p.default=JA});var h0=b(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});function d0(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}s(d0,"ucs2length");Op.default=d0;d0.code='require("ajv/dist/runtime/ucs2length").default'});var wp=b(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});var ci=se(),QA=he(),XA=h0(),eC={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,ci.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,ci._)`{limit: ${e}}`,"params")},tC={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:eC,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?ci.operators.GT:ci.operators.LT,a=i.opts.unicode===!1?(0,ci._)`${r}.length`:(0,ci._)`${(0,QA.useFunc)(e.gen,XA.default)}(${r})`;e.fail$data((0,ci._)`${a} ${o} ${n}`)}};Pp.default=tC});var Ep=b($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var rC=tr(),_c=se(),nC={message:s(({schemaCode:e})=>(0,_c.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,_c._)`{pattern: ${e}}`,"params")},iC={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:nC,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",c=r?(0,_c._)`(new RegExp(${i}, ${a}))`:(0,rC.usePattern)(e,n);e.fail$data((0,_c._)`!${c}.test(${t})`)}};$p.default=iC});var Ap=b(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var Io=se(),sC={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Io.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,Io._)`{limit: ${e}}`,"params")},oC={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:sC,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Io.operators.GT:Io.operators.LT;e.fail$data((0,Io._)`Object.keys(${r}).length ${i} ${n}`)}};xp.default=oC});var Ip=b(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});var jo=tr(),Ro=se(),aC=he(),cC={message:s(({params:{missingProperty:e}})=>(0,Ro.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,Ro._)`{missingProperty: ${e}}`,"params")},uC={keyword:"required",type:"object",schemaType:"array",$data:!0,error:cC,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:a}=e,{opts:c}=a;if(!o&&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 v of r)if((h==null?void 0:h[v])===void 0&&!y.has(v)){let g=a.schemaEnv.baseId+a.errSchemaPath,w=`required property "${v}" is not defined at "${g}" (strictRequired)`;(0,aC.checkStrictMode)(a,w,a.opts.strictRequired)}}function l(){if(u||o)e.block$data(Ro.nil,f);else for(let h of r)(0,jo.checkReportMissingProp)(e,h)}s(l,"allErrorsMode");function p(){let h=t.let("missing");if(u||o){let y=t.let("valid",!0);e.block$data(y,()=>d(h,y)),e.ok(y)}else t.if((0,jo.checkMissingProp)(e,r,h)),(0,jo.reportMissingProp)(e,h),t.else()}s(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,jo.noPropertyInData)(t,i,h,c.ownProperties),()=>e.error())})}s(f,"loopAllRequired");function d(h,y){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(y,(0,jo.propertyInData)(t,i,h,c.ownProperties)),t.if((0,Ro.not)(y),()=>{e.error(),t.break()})},Ro.nil)}s(d,"loopUntilMissing")}};Cp.default=uC});var Rp=b(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});var To=se(),lC={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,To.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,To._)`{limit: ${e}}`,"params")},fC={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:lC,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?To.operators.GT:To.operators.LT;e.fail$data((0,To._)`${r}.length ${i} ${n}`)}};jp.default=fC});var Sc=b(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});var m0=Uf();m0.code='require("ajv/dist/runtime/equal").default';Tp.default=m0});var Mp=b(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});var Np=yo(),ft=se(),pC=he(),dC=Sc(),hC={message:s(({params:{i:e,j:t}})=>(0,ft.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,ft._)`{i: ${e}, j: ${t}}`,"params")},mC={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:hC,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),l=o.items?(0,Np.getSchemaTypes)(o.items):[];e.block$data(u,p,(0,ft._)`${a} === false`),e.ok(u);function p(){let y=t.let("i",(0,ft._)`${r}.length`),v=t.let("j");e.setParams({i:y,j:v}),t.assign(u,!0),t.if((0,ft._)`${y} > 1`,()=>(f()?d:h)(y,v))}s(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(y=>y==="object"||y==="array")}s(f,"canOptimize");function d(y,v){let g=t.name("item"),w=(0,Np.checkDataTypes)(l,g,c.opts.strictNumbers,Np.DataType.Wrong),A=t.const("indices",(0,ft._)`{}`);t.for((0,ft._)`;${y}--;`,()=>{t.let(g,(0,ft._)`${r}[${y}]`),t.if(w,(0,ft._)`continue`),l.length>1&&t.if((0,ft._)`typeof ${g} == "string"`,(0,ft._)`${g} += "_"`),t.if((0,ft._)`typeof ${A}[${g}] == "number"`,()=>{t.assign(v,(0,ft._)`${A}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,ft._)`${A}[${g}] = ${y}`)})}s(d,"loopN");function h(y,v){let g=(0,pC.useFunc)(t,dC.default),w=t.name("outer");t.label(w).for((0,ft._)`;${y}--;`,()=>t.for((0,ft._)`${v} = ${y}; ${v}--;`,()=>t.if((0,ft._)`${g}(${r}[${y}], ${r}[${v}])`,()=>{e.error(),t.assign(u,!1).break(w)})))}s(h,"loopN2")}};kp.default=mC});var Lp=b(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});var qp=se(),gC=he(),yC=Sc(),vC={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,qp._)`{allowedValue: ${e}}`,"params")},bC={keyword:"const",$data:!0,error:vC,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,qp._)`!${(0,gC.useFunc)(t,yC.default)}(${r}, ${i})`):e.fail((0,qp._)`${o} !== ${r}`)}};Dp.default=bC});var Vp=b(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var No=se(),_C=he(),SC=Sc(),OC={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,No._)`{allowedValues: ${e}}`,"params")},PC={keyword:"enum",schemaType:"array",$data:!0,error:OC,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,u,l=s(()=>u??(u=(0,_C.useFunc)(t,SC.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",o);p=(0,No.or)(...i.map((y,v)=>d(h,v)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",o,h=>t.if((0,No._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}s(f,"loopEnum");function d(h,y){let v=i[y];return typeof v=="object"&&v!==null?(0,No._)`${l()}(${r}, ${h}[${y}])`:(0,No._)`${r} === ${v}`}s(d,"equalCode")}};Fp.default=PC});var g0=b(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});var wC=l0(),$C=p0(),EC=Sp(),xC=wp(),AC=Ep(),CC=Ap(),IC=Ip(),jC=Rp(),RC=Mp(),TC=Lp(),NC=Vp(),kC=[wC.default,$C.default,EC.default,xC.default,AC.default,CC.default,IC.default,jC.default,RC.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},TC.default,NC.default];Bp.default=kC});var Up=b(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.validateAdditionalItems=void 0;var ui=se(),Hp=he(),MC={message:s(({params:{len:e}})=>(0,ui.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,ui._)`{limit: ${e}}`,"params")},qC={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:MC,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Hp.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}y0(e,n)}};function y0(e,t){let{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;let c=r.const("len",(0,ui._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,ui._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,Hp.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,ui._)`${c} <= ${t.length}`);r.if((0,ui.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,p=>{e.subschema({keyword:o,dataProp:p,dataPropType:Hp.Type.Num},l),a.allErrors||r.if((0,ui.not)(l),()=>r.break())})}s(u,"validateItems")}s(y0,"validateAdditionalItems");ko.validateAdditionalItems=y0;ko.default=qC});var zp=b(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.validateTuple=void 0;var v0=se(),Oc=he(),DC=tr(),LC={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return b0(e,"additionalItems",t);r.items=!0,!(0,Oc.alwaysValidSchema)(r,t)&&e.ok((0,DC.validateArray)(e))}};function b0(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:a,it:c}=e;p(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=Oc.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,v0._)`${o}.length`);r.forEach((f,d)=>{(0,Oc.alwaysValidSchema)(c,f)||(n.if((0,v0._)`${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,v=y===f.minItems&&(y===f.maxItems||f[t]===!1);if(d.strictTuples&&!v){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Oc.checkStrictMode)(c,g,d.strictTuples)}}s(p,"checkStrictTuple")}s(b0,"validateTuple");Mo.validateTuple=b0;Mo.default=LC});var _0=b(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});var FC=zp(),VC={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,FC.validateTuple)(e,"items"),"code")};Gp.default=VC});var O0=b(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});var S0=se(),BC=he(),HC=tr(),UC=Up(),zC={message:s(({params:{len:e}})=>(0,S0.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,S0._)`{limit: ${e}}`,"params")},GC={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:zC,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,BC.alwaysValidSchema)(n,t)&&(i?(0,UC.validateAdditionalItems)(e,i):e.ok((0,HC.validateArray)(e)))}};Wp.default=GC});var P0=b(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var nr=se(),Pc=he(),WC={message:s(({params:{min:e,max:t}})=>t===void 0?(0,nr.str)`must contain at least ${e} valid item(s)`:(0,nr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:s(({params:{min:e,max:t}})=>t===void 0?(0,nr._)`{minContains: ${e}}`:(0,nr._)`{minContains: ${e}, maxContains: ${t}}`,"params")},KC={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:WC,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,a,c,{minContains:u,maxContains:l}=n;o.opts.next?(a=u===void 0?1:u,c=l):a=1;let p=t.const("len",(0,nr._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,Pc.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,Pc.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Pc.alwaysValidSchema)(o,r)){let v=(0,nr._)`${p} >= ${a}`;c!==void 0&&(v=(0,nr._)`${v} && ${p} <= ${c}`),e.pass(v);return}o.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,nr._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let v=t.name("_valid"),g=t.let("count",0);h(v,()=>t.if(v,()=>y(g)))}s(d,"validateItemsWithCount");function h(v,g){t.forRange("i",0,p,w=>{e.subschema({keyword:"contains",dataProp:w,dataPropType:Pc.Type.Num,compositeRule:!0},v),g()})}s(h,"validateItems");function y(v){t.code((0,nr._)`${v}++`),c===void 0?t.if((0,nr._)`${v} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,nr._)`${v} > ${c}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,nr._)`${v} >= ${a}`,()=>t.assign(f,!0)))}s(y,"checkLimits")}};Kp.default=KC});var wc=b(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.validateSchemaDeps=Nr.validatePropertyDeps=Nr.error=void 0;var Zp=se(),ZC=he(),qo=tr();Nr.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Zp.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Zp._)`{property: ${e},
4
+ `+n:r||n}o(Iy,"joinStacks");Tr.joinStacks=Iy;function N$(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return Iy({stack:n},r)},"get"),enumerable:!1,configurable:!0}):k$(t,e)}o(N$,"lazyJoinStacks");Tr.lazyJoinStacks=N$;function Ry(e){if(e){let t=e.split(I$),r;for(let n=0;n<t.length;n++){let i=t[n];if(R$.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(Ry,"popStack");function k$(e,t){Object.defineProperty(e,"stack",{get:o(()=>Ry(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(k$,"lazyPopStack")});var ky=b(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.extendError=void 0;var Ty=zl(),Xa=jy(),Ny=Qa(),M$=["name","message","stack"];function q$(e,t,r){let n=e;return D$(n,t),t&&typeof t=="object"&&L$(n,t),n.toJSON=Ny.toJSON,Ty.addInspectMethod&&Ty.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(q$,"extendError");ec.extendError=q$;function D$(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");Xa.isLazyStack(r)?Xa.lazyJoinStacks(r,e,t):Xa.isWritableStack(r)&&(e.stack=Xa.joinStacks(e,t))}o(D$,"extendStack");function L$(e,t){let r=Ny.getDeepKeys(t,M$),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o(L$,"mergeErrors")});var My=b(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.normalizeArgs=Qi.normalizeOptions=void 0;var F$=zl();function V$(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?F$.format:typeof e.format=="function"?e.format:!1}}o(V$,"normalizeOptions");Qi.normalizeOptions=V$;function B$(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(B$,"normalizeArgs");Qi.normalizeArgs=B$});var Zl=b(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.Ono=void 0;var tc=ky(),qy=My(),H$=Qa(),U$=Gl;rc.Ono=U$;function Gl(e,t){t=qy.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=qy.normalizeArgs(n,t),c=new e(a);return tc.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(Gl,"Ono");Gl.toJSON=o(function(t){return H$.toJSON.call(t)},"toJSON");Gl.extend=o(function(t,r,n){return n||r instanceof Error?tc.extendError(t,r,n):r?tc.extendError(t,void 0,r):tc.extendError(t)},"extend")});var Dy=b(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.ono=void 0;var ii=Zl(),z$=Nr;nc.ono=z$;Nr.error=new ii.Ono(Error);Nr.eval=new ii.Ono(EvalError);Nr.range=new ii.Ono(RangeError);Nr.reference=new ii.Ono(ReferenceError);Nr.syntax=new ii.Ono(SyntaxError);Nr.type=new ii.Ono(TypeError);Nr.uri=new ii.Ono(URIError);var G$=Nr;function Nr(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(G$))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 Nr.error.apply(void 0,e)}o(Nr,"ono")});var Fy=b(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});var lF=require("util")});var yr=b((gr,Xi)=>{"use strict";var Z$=gr&&gr.__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]}),W$=gr&&gr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&Z$(t,e,r)};Object.defineProperty(gr,"__esModule",{value:!0});gr.ono=void 0;var Vy=Dy();Object.defineProperty(gr,"ono",{enumerable:!0,get:o(function(){return Vy.ono},"get")});var K$=Zl();Object.defineProperty(gr,"Ono",{enumerable:!0,get:o(function(){return K$.Ono},"get")});W$(Fy(),gr);gr.default=Vy.ono;typeof Xi=="object"&&typeof Xi.exports=="object"&&(Xi.exports=Object.assign(Xi.exports.default,Xi.exports))});var ps=b(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.regexpCode=Se.getEsmExportName=Se.getProperty=Se.safeStringify=Se.stringify=Se.strConcat=Se.addCodeArg=Se.str=Se._=Se.nil=Se._Code=Se.Name=Se.IDENTIFIER=Se._CodeOrName=void 0;var Yl=class Yl{};o(Yl,"_CodeOrName");var ls=Yl;Se._CodeOrName=ls;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Jl=class Jl extends ls{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(Jl,"Name");var oi=Jl;Se.Name=oi;var Ql=class Ql extends ls{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(Ql,"_Code");var rr=Ql;Se._Code=rr;Se.nil=new rr("");function By(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Kl(r,t[n]),r.push(e[++n]);return new rr(r)}o(By,"_");Se._=By;var Wl=new rr("+");function Hy(e,...t){let r=[fs(e[0])],n=0;for(;n<t.length;)r.push(Wl),Kl(r,t[n]),r.push(Wl,fs(e[++n]));return Y$(r),new rr(r)}o(Hy,"str");Se.str=Hy;function Kl(e,t){t instanceof rr?e.push(...t._items):t instanceof oi?e.push(t):e.push(X$(t))}o(Kl,"addCodeArg");Se.addCodeArg=Kl;function Y$(e){let t=1;for(;t<e.length-1;){if(e[t]===Wl){let r=J$(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(Y$,"optimize");function J$(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(J$,"mergeExprItems");function Q$(e,t){return t.emptyStr()?e:e.emptyStr()?t:Hy`${e}${t}`}o(Q$,"strConcat");Se.strConcat=Q$;function X$(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:fs(Array.isArray(e)?e.join(","):e)}o(X$,"interpolate");function eE(e){return new rr(fs(e))}o(eE,"stringify");Se.stringify=eE;function fs(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(fs,"safeStringify");Se.safeStringify=fs;function tE(e){return typeof e=="string"&&Se.IDENTIFIER.test(e)?new rr(`.${e}`):By`[${e}]`}o(tE,"getProperty");Se.getProperty=tE;function rE(e){if(typeof e=="string"&&Se.IDENTIFIER.test(e))return new rr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(rE,"getEsmExportName");Se.getEsmExportName=rE;function nE(e){return new rr(e.toString())}o(nE,"regexpCode");Se.regexpCode=nE});var sf=b(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.ValueScope=Tt.ValueScopeName=Tt.Scope=Tt.varKinds=Tt.UsedValueState=void 0;var jt=ps(),tf=class tf extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(tf,"ValueError");var Xl=tf,ic;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(ic||(Tt.UsedValueState=ic={}));Tt.varKinds={const:new jt.Name("const"),let:new jt.Name("let"),var:new jt.Name("var")};var rf=class rf{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(rf,"Scope");var oc=rf;Tt.Scope=oc;var nf=class nf 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(nf,"ValueScopeName");var sc=nf;Tt.ValueScopeName=sc;var iE=(0,jt._)`\n`,of=class of extends oc{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?iE:jt.nil}}get(){return this._scope}name(t){return new sc(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,ic.Started);let p=r(l);if(p){let f=this.opts.es5?Tt.varKinds.var:Tt.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 Xl(l);u.set(l,ic.Completed)})}return s}};o(of,"ValueScope");var ef=of;Tt.ValueScope=ef});var se=b(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=ps(),vr=sf(),hn=ps();Object.defineProperty(le,"_",{enumerable:!0,get:o(function(){return hn._},"get")});Object.defineProperty(le,"str",{enumerable:!0,get:o(function(){return hn.str},"get")});Object.defineProperty(le,"strConcat",{enumerable:!0,get:o(function(){return hn.strConcat},"get")});Object.defineProperty(le,"nil",{enumerable:!0,get:o(function(){return hn.nil},"get")});Object.defineProperty(le,"getProperty",{enumerable:!0,get:o(function(){return hn.getProperty},"get")});Object.defineProperty(le,"stringify",{enumerable:!0,get:o(function(){return hn.stringify},"get")});Object.defineProperty(le,"regexpCode",{enumerable:!0,get:o(function(){return hn.regexpCode},"get")});Object.defineProperty(le,"Name",{enumerable:!0,get:o(function(){return hn.Name},"get")});var lc=sf();Object.defineProperty(le,"Scope",{enumerable:!0,get:o(function(){return lc.Scope},"get")});Object.defineProperty(le,"ValueScope",{enumerable:!0,get:o(function(){return lc.ValueScope},"get")});Object.defineProperty(le,"ValueScopeName",{enumerable:!0,get:o(function(){return lc.ValueScopeName},"get")});Object.defineProperty(le,"varKinds",{enumerable:!0,get:o(function(){return lc.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 bf=class bf{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(bf,"Node");var Jr=bf,_f=class _f extends Jr{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?vr.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=ro(this.rhs,t,r)),this}get names(){return this.rhs instanceof ye._CodeOrName?this.rhs.names:{}}};o(_f,"Def");var af=_f,Sf=class Sf extends Jr{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=ro(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ye.Name?{}:{...this.lhs.names};return uc(t,this.rhs)}};o(Sf,"Assign");var ac=Sf,Pf=class Pf extends ac{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(Pf,"AssignOp");var cf=Pf,Of=class Of extends Jr{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(Of,"Label");var uf=Of,wf=class wf extends Jr{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(wf,"Break");var lf=wf,$f=class $f extends Jr{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o($f,"Throw");var ff=$f,Ef=class Ef extends Jr{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=ro(this.code,t,r),this}get names(){return this.code instanceof ye._CodeOrName?this.code.names:{}}};o(Ef,"AnyCode");var pf=Ef,xf=class xf extends Jr{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)||(oE(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>ci(t,r.names),{})}};o(xf,"ParentNode");var ds=xf,Af=class Af extends ds{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(Af,"BlockNode");var Qr=Af,Cf=class Cf extends ds{};o(Cf,"Root");var df=Cf,If=class If extends Qr{};o(If,"Else");var to=If;to.kind="else";var eo=class eo extends Qr{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 to(n):n}if(r)return t===!1?r instanceof eo?r:r.nodes:this.nodes.length?this:new eo(Uy(t),r instanceof eo?[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=ro(this.condition,t,r),this}get names(){let t=super.names;return uc(t,this.condition),this.else&&ci(t,this.else.names),t}};o(eo,"If");var si=eo;si.kind="if";var Rf=class Rf extends Qr{};o(Rf,"For");var ai=Rf;ai.kind="for";var jf=class jf extends ai{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=ro(this.iteration,t,r),this}get names(){return ci(super.names,this.iteration.names)}};o(jf,"ForLoop");var hf=jf,Tf=class Tf extends ai{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?vr.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=uc(super.names,this.from);return uc(t,this.to)}};o(Tf,"ForRange");var mf=Tf,Nf=class Nf extends ai{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=ro(this.iterable,t,r),this}get names(){return ci(super.names,this.iterable.names)}};o(Nf,"ForIter");var cc=Nf,kf=class kf extends Qr{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(kf,"Func");var hs=kf;hs.kind="func";var Mf=class Mf extends ds{render(t){return"return "+super.render(t)}};o(Mf,"Return");var ms=Mf;ms.kind="return";var qf=class qf extends Qr{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&&ci(t,this.catch.names),this.finally&&ci(t,this.finally.names),t}};o(qf,"Try");var gf=qf,Df=class Df extends Qr{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(Df,"Catch");var gs=Df;gs.kind="catch";var Lf=class Lf extends Qr{render(t){return"finally"+super.render(t)}};o(Lf,"Finally");var ys=Lf;ys.kind="finally";var Ff=class Ff{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
7
+ `:""},this._extScope=t,this._scope=new vr.Scope({parent:t}),this._nodes=[new df]}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 af(t,s,n)),s}const(t,r,n){return this._def(vr.varKinds.const,t,r,n)}let(t,r,n){return this._def(vr.varKinds.let,t,r,n)}var(t,r,n){return this._def(vr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new ac(t,r,n))}add(t,r){return this._leafNode(new cf(t,le.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ye.nil&&this._leafNode(new pf(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 si(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 si(t))}else(){return this._elseNode(new to)}endIf(){return this._endBlockNode(si,to)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new hf(t),r)}forRange(t,r,n,i,s=this.opts.es5?vr.varKinds.var:vr.varKinds.let){let a=this._scope.toName(t);return this._for(new mf(s,a,r,n),()=>i(a))}forOf(t,r,n,i=vr.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 cc("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?vr.varKinds.var:vr.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 cc("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(ai)}label(t){return this._leafNode(new uf(t))}break(t){return this._leafNode(new lf(t))}return(t){let r=new ms;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ms)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new gf;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new gs(s),r(s)}return n&&(this._currNode=i.finally=new ys,this.code(n)),this._endBlockNode(gs,ys)}throw(t){return this._leafNode(new ff(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 hs(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(hs)}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 si))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(Ff,"CodeGen");var yf=Ff;le.CodeGen=yf;function ci(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(ci,"addNames");function uc(e,t){return t instanceof ye._CodeOrName?ci(e,t.names):e}o(uc,"addExprNames");function ro(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(ro,"optimizeExpr");function oE(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(oE,"subtractNames");function Uy(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ye._)`!${vf(e)}`}o(Uy,"not");le.not=Uy;var sE=zy(le.operators.AND);function aE(...e){return e.reduce(sE)}o(aE,"and");le.and=aE;var cE=zy(le.operators.OR);function uE(...e){return e.reduce(cE)}o(uE,"or");le.or=uE;function zy(e){return(t,r)=>t===ye.nil?r:r===ye.nil?t:(0,ye._)`${vf(t)} ${e} ${vf(r)}`}o(zy,"mappend");function vf(e){return e instanceof ye.Name?e:(0,ye._)`(${e})`}o(vf,"par")});var he=b(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 Ee=se(),lE=ps();function fE(e){let t={};for(let r of e)t[r]=!0;return t}o(fE,"toHash");fe.toHash=fE;function pE(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Wy(e,t),!Ky(t,e.self.RULES.all))}o(pE,"alwaysValidSchema");fe.alwaysValidSchema=pE;function Wy(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let s in t)i[s]||Qy(e,`unknown keyword: "${s}"`)}o(Wy,"checkUnknownRules");fe.checkUnknownRules=Wy;function Ky(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(Ky,"schemaHasRules");fe.schemaHasRules=Ky;function dE(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(dE,"schemaHasRulesButRef");fe.schemaHasRulesButRef=dE;function hE({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Ee._)`${r}`}return(0,Ee._)`${e}${t}${(0,Ee.getProperty)(n)}`}o(hE,"schemaRefOrVal");fe.schemaRefOrVal=hE;function mE(e){return Yy(decodeURIComponent(e))}o(mE,"unescapeFragment");fe.unescapeFragment=mE;function gE(e){return encodeURIComponent(Bf(e))}o(gE,"escapeFragment");fe.escapeFragment=gE;function Bf(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(Bf,"escapeJsonPointer");fe.escapeJsonPointer=Bf;function Yy(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(Yy,"unescapeJsonPointer");fe.unescapeJsonPointer=Yy;function yE(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(yE,"eachItem");fe.eachItem=yE;function Gy({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof Ee.Name?(s instanceof Ee.Name?e(i,s,a):t(i,s,a),a):s instanceof Ee.Name?(t(i,a,s),s):r(s,a);return c===Ee.Name&&!(u instanceof Ee.Name)?n(i,u):u}}o(Gy,"makeMergeEvaluated");fe.mergeEvaluated={props:Gy({mergeNames:o((e,t,r)=>e.if((0,Ee._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Ee._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Ee._)`${r} || {}`).code((0,Ee._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,Ee._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Ee._)`${r} || {}`),Hf(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Jy}),items:Gy({mergeNames:o((e,t,r)=>e.if((0,Ee._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Ee._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,Ee._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Ee._)`${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 Jy(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Ee._)`{}`);return t!==void 0&&Hf(e,r,t),r}o(Jy,"evaluatedPropsToName");fe.evaluatedPropsToName=Jy;function Hf(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Ee._)`${t}${(0,Ee.getProperty)(n)}`,!0))}o(Hf,"setEvaluated");fe.setEvaluated=Hf;var Zy={};function vE(e,t){return e.scopeValue("func",{ref:t,code:Zy[t.code]||(Zy[t.code]=new lE._Code(t.code))})}o(vE,"useFunc");fe.useFunc=vE;var Vf;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Vf||(fe.Type=Vf={}));function bE(e,t,r){if(e instanceof Ee.Name){let n=t===Vf.Num;return r?n?(0,Ee._)`"[" + ${e} + "]"`:(0,Ee._)`"['" + ${e} + "']"`:n?(0,Ee._)`"/" + ${e}`:(0,Ee._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Ee.getProperty)(e).toString():"/"+Bf(e)}o(bE,"getErrorPath");fe.getErrorPath=bE;function Qy(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(Qy,"checkStrictMode");fe.checkStrictMode=Qy});var nr=b(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});var mt=se(),_E={data:new mt.Name("data"),valCxt:new mt.Name("valCxt"),instancePath:new mt.Name("instancePath"),parentData:new mt.Name("parentData"),parentDataProperty:new mt.Name("parentDataProperty"),rootData:new mt.Name("rootData"),dynamicAnchors:new mt.Name("dynamicAnchors"),vErrors:new mt.Name("vErrors"),errors:new mt.Name("errors"),this:new mt.Name("this"),self:new mt.Name("self"),scope:new mt.Name("scope"),json:new mt.Name("json"),jsonPos:new mt.Name("jsonPos"),jsonLen:new mt.Name("jsonLen"),jsonPart:new mt.Name("jsonPart")};Uf.default=_E});var vs=b(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.extendErrors=gt.resetErrorsCount=gt.reportExtraError=gt.reportError=gt.keyword$DataError=gt.keywordError=void 0;var ve=se(),fc=he(),$t=nr();gt.keywordError={message:o(({keyword:e})=>(0,ve.str)`must pass "${e}" keyword validation`,"message")};gt.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,ve.str)`"${e}" keyword must be ${t} ($data)`:(0,ve.str)`"${e}" keyword is invalid ($data)`,"message")};function SE(e,t=gt.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=t0(e,t,r);n??(a||c)?Xy(s,u):e0(i,(0,ve._)`[${u}]`)}o(SE,"reportError");gt.reportError=SE;function PE(e,t=gt.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=t0(e,t,r);Xy(i,c),s||a||e0(n,$t.default.vErrors)}o(PE,"reportExtraError");gt.reportExtraError=PE;function OE(e,t){e.assign($t.default.errors,t),e.if((0,ve._)`${$t.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ve._)`${$t.default.vErrors}.length`,t),()=>e.assign($t.default.vErrors,null)))}o(OE,"resetErrorsCount");gt.resetErrorsCount=OE;function wE({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,$t.default.errors,c=>{e.const(a,(0,ve._)`${$t.default.vErrors}[${c}]`),e.if((0,ve._)`${a}.instancePath === undefined`,()=>e.assign((0,ve._)`${a}.instancePath`,(0,ve.strConcat)($t.default.instancePath,s.errorPath))),e.assign((0,ve._)`${a}.schemaPath`,(0,ve.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,ve._)`${a}.schema`,r),e.assign((0,ve._)`${a}.data`,n))})}o(wE,"extendErrors");gt.extendErrors=wE;function Xy(e,t){let r=e.const("err",t);e.if((0,ve._)`${$t.default.vErrors} === null`,()=>e.assign($t.default.vErrors,(0,ve._)`[${r}]`),(0,ve._)`${$t.default.vErrors}.push(${r})`),e.code((0,ve._)`${$t.default.errors}++`)}o(Xy,"addError");function e0(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,ve._)`new ${e.ValidationError}(${t})`):(r.assign((0,ve._)`${n}.errors`,t),r.return(!1))}o(e0,"returnErrors");var ui={keyword:new ve.Name("keyword"),schemaPath:new ve.Name("schemaPath"),params:new ve.Name("params"),propertyName:new ve.Name("propertyName"),message:new ve.Name("message"),schema:new ve.Name("schema"),parentSchema:new ve.Name("parentSchema")};function t0(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,ve._)`{}`:$E(e,t,r)}o(t0,"errorObjectCode");function $E(e,t,r={}){let{gen:n,it:i}=e,s=[EE(i,r),xE(e,r)];return AE(e,t,s),n.object(...s)}o($E,"errorObject");function EE({errorPath:e},{instancePath:t}){let r=t?(0,ve.str)`${e}${(0,fc.getErrorPath)(t,fc.Type.Str)}`:e;return[$t.default.instancePath,(0,ve.strConcat)($t.default.instancePath,r)]}o(EE,"errorInstancePath");function xE({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,ve.str)`${t}/${e}`;return r&&(i=(0,ve.str)`${i}${(0,fc.getErrorPath)(r,fc.Type.Str)}`),[ui.schemaPath,i]}o(xE,"errorSchemaPath");function AE(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([ui.keyword,i],[ui.params,typeof t=="function"?t(e):t||(0,ve._)`{}`]),u.messages&&n.push([ui.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([ui.schema,a],[ui.parentSchema,(0,ve._)`${p}${f}`],[$t.default.data,s]),l&&n.push([ui.propertyName,l])}o(AE,"extraErrorProps")});var n0=b(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.boolOrEmptySchema=no.topBoolOrEmptySchema=void 0;var CE=vs(),IE=se(),RE=nr(),jE={message:"boolean schema is false"};function TE(e){let{gen:t,schema:r,validateName:n}=e;r===!1?r0(e,!1):typeof r=="object"&&r.$async===!0?t.return(RE.default.data):(t.assign((0,IE._)`${n}.errors`,null),t.return(!0))}o(TE,"topBoolOrEmptySchema");no.topBoolOrEmptySchema=TE;function NE(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),r0(e)):r.var(t,!0)}o(NE,"boolOrEmptySchema");no.boolOrEmptySchema=NE;function r0(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,CE.reportError)(i,jE,void 0,t)}o(r0,"falseSchemaError")});var zf=b(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.getRules=io.isJSONType=void 0;var kE=["string","number","integer","boolean","null","object","array"],ME=new Set(kE);function qE(e){return typeof e=="string"&&ME.has(e)}o(qE,"isJSONType");io.isJSONType=qE;function DE(){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(DE,"getRules");io.getRules=DE});var Gf=b(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.shouldUseRule=mn.shouldUseGroup=mn.schemaHasRulesForType=void 0;function LE({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&i0(e,n)}o(LE,"schemaHasRulesForType");mn.schemaHasRulesForType=LE;function i0(e,t){return t.rules.some(r=>o0(e,r))}o(i0,"shouldUseGroup");mn.shouldUseGroup=i0;function o0(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(o0,"shouldUseRule");mn.shouldUseRule=o0});var bs=b(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.reportTypeError=yt.checkDataTypes=yt.checkDataType=yt.coerceAndCheckDataType=yt.getJSONTypes=yt.getSchemaTypes=yt.DataType=void 0;var FE=zf(),VE=Gf(),BE=vs(),ce=se(),s0=he(),oo;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(oo||(yt.DataType=oo={}));function HE(e){let t=a0(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(HE,"getSchemaTypes");yt.getSchemaTypes=HE;function a0(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(FE.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(a0,"getJSONTypes");yt.getJSONTypes=a0;function UE(e,t){let{gen:r,data:n,opts:i}=e,s=zE(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,VE.schemaHasRulesForType)(e,t[0]));if(a){let c=Wf(t,n,i.strictNumbers,oo.Wrong);r.if(c,()=>{s.length?GE(e,t,s):Kf(e)})}return a}o(UE,"coerceAndCheckDataType");yt.coerceAndCheckDataType=UE;var c0=new Set(["string","number","integer","boolean","null"]);function zE(e,t){return t?e.filter(r=>c0.has(r)||t==="array"&&r==="array"):[]}o(zE,"coerceToTypes");function GE(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(Wf(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,ce._)`${c} !== undefined`);for(let l of r)(c0.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),Kf(e),n.endIf(),n.if((0,ce._)`${c} !== undefined`,()=>{n.assign(i,c),ZE(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
+ || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,ce._)`+${i}`);return;case"integer":n.elseIf((0,ce._)`${a} === "boolean" || ${i} === null
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(GE,"coerceData");function ZE({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ce._)`${t} !== undefined`,()=>e.assign((0,ce._)`${t}[${r}]`,n))}o(ZE,"assignParentData");function Zf(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(Zf,"checkDataType");yt.checkDataType=Zf;function Wf(e,t,r,n){if(e.length===1)return Zf(e[0],t,r,n);let i,s=(0,s0.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,Zf(a,t,r,n));return i}o(Wf,"checkDataTypes");yt.checkDataTypes=Wf;var WE={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 Kf(e){let t=KE(e);(0,BE.reportError)(t,WE)}o(Kf,"reportTypeError");yt.reportTypeError=Kf;function KE(e){let{gen:t,data:r,schema:n}=e,i=(0,s0.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(KE,"getTypeErrorContext")});var l0=b(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.assignDefaults=void 0;var so=se(),YE=he();function JE(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)u0(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>u0(e,s,i.default))}o(JE,"assignDefaults");pc.assignDefaults=JE;function u0(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,so._)`${s}${(0,so.getProperty)(t)}`;if(i){(0,YE.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,so._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,so._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,so._)`${c} = ${(0,so.stringify)(r)}`)}o(u0,"assignDefault")});var ir=b(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.validateUnion=we.validateArray=we.usePattern=we.callValidateCode=we.schemaProperties=we.allSchemaProperties=we.noPropertyInData=we.propertyInData=we.isOwnProperty=we.hasPropFunc=we.reportMissingProp=we.checkMissingProp=we.checkReportMissingProp=void 0;var Ne=se(),Yf=he(),gn=nr(),QE=he();function XE(e,t){let{gen:r,data:n,it:i}=e;r.if(Qf(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Ne._)`${t}`},!0),e.error()})}o(XE,"checkReportMissingProp");we.checkReportMissingProp=XE;function ex({gen:e,data:t,it:{opts:r}},n,i){return(0,Ne.or)(...n.map(s=>(0,Ne.and)(Qf(e,t,s,r.ownProperties),(0,Ne._)`${i} = ${s}`)))}o(ex,"checkMissingProp");we.checkMissingProp=ex;function tx(e,t){e.setParams({missingProperty:t},!0),e.error()}o(tx,"reportMissingProp");we.reportMissingProp=tx;function f0(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ne._)`Object.prototype.hasOwnProperty`})}o(f0,"hasPropFunc");we.hasPropFunc=f0;function Jf(e,t,r){return(0,Ne._)`${f0(e)}.call(${t}, ${r})`}o(Jf,"isOwnProperty");we.isOwnProperty=Jf;function rx(e,t,r,n){let i=(0,Ne._)`${t}${(0,Ne.getProperty)(r)} !== undefined`;return n?(0,Ne._)`${i} && ${Jf(e,t,r)}`:i}o(rx,"propertyInData");we.propertyInData=rx;function Qf(e,t,r,n){let i=(0,Ne._)`${t}${(0,Ne.getProperty)(r)} === undefined`;return n?(0,Ne.or)(i,(0,Ne.not)(Jf(e,t,r))):i}o(Qf,"noPropertyInData");we.noPropertyInData=Qf;function p0(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(p0,"allSchemaProperties");we.allSchemaProperties=p0;function nx(e,t){return p0(t).filter(r=>!(0,Yf.alwaysValidSchema)(e,t[r]))}o(nx,"schemaProperties");we.schemaProperties=nx;function ix({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let p=l?(0,Ne._)`${e}, ${t}, ${n}${i}`:t,f=[[gn.default.instancePath,(0,Ne.strConcat)(gn.default.instancePath,s)],[gn.default.parentData,a.parentData],[gn.default.parentDataProperty,a.parentDataProperty],[gn.default.rootData,gn.default.rootData]];a.opts.dynamicRef&&f.push([gn.default.dynamicAnchors,gn.default.dynamicAnchors]);let d=(0,Ne._)`${p}, ${r.object(...f)}`;return u!==Ne.nil?(0,Ne._)`${c}.call(${u}, ${d})`:(0,Ne._)`${c}(${d})`}o(ix,"callValidateCode");we.callValidateCode=ix;var ox=(0,Ne._)`new RegExp`;function sx({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,Ne._)`${i.code==="new RegExp"?ox:(0,QE.useFunc)(e,i)}(${r}, ${n})`})}o(sx,"usePattern");we.usePattern=sx;function ax(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,Ne._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Yf.Type.Num},s),t.if((0,Ne.not)(s),c)})}o(a,"validateItems")}o(ax,"validateArray");we.validateArray=ax;function cx(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,Yf.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,Ne._)`${a} || ${c}`),e.mergeValidEvaluated(p,c)||t.if((0,Ne.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(cx,"validateUnion");we.validateUnion=cx});var m0=b(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.validateKeywordUsage=kr.validSchemaType=kr.funcKeywordCode=kr.macroKeywordCode=void 0;var Et=se(),li=nr(),ux=ir(),lx=vs();function fx(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=h0(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:Et.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(fx,"macroKeywordCode");kr.macroKeywordCode=fx;function px(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;hx(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,p=h0(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)v(),t.modifying&&d0(e),g(()=>e.error());else{let $=t.async?h():y();t.modifying&&d0(e),g(()=>dx(e,$))}}o(d,"validateKeyword");function h(){let $=n.let("ruleErrs",null);return n.try(()=>v((0,Et._)`await `),A=>n.assign(f,!1).if((0,Et._)`${A} instanceof ${u.ValidationError}`,()=>n.assign($,(0,Et._)`${A}.errors`),()=>n.throw(A))),$}o(h,"validateAsync");function y(){let $=(0,Et._)`${p}.errors`;return n.assign($,null),v(Et.nil),$}o(y,"validateSync");function v($=t.async?(0,Et._)`await `:Et.nil){let A=u.opts.passContext?li.default.this:li.default.self,C=!("compile"in t&&!c||t.schema===!1);n.assign(f,(0,Et._)`${$}${(0,ux.callValidateCode)(e,p,A,C)}`,t.modifying)}o(v,"assignValid");function g($){var A;n.if((0,Et.not)((A=t.valid)!==null&&A!==void 0?A:f),$)}o(g,"reportErrs")}o(px,"funcKeywordCode");kr.funcKeywordCode=px;function d0(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Et._)`${n.parentData}[${n.parentDataProperty}]`))}o(d0,"modifyData");function dx(e,t){let{gen:r}=e;r.if((0,Et._)`Array.isArray(${t})`,()=>{r.assign(li.default.vErrors,(0,Et._)`${li.default.vErrors} === null ? ${t} : ${li.default.vErrors}.concat(${t})`).assign(li.default.errors,(0,Et._)`${li.default.vErrors}.length`),(0,lx.extendErrors)(e)},()=>e.error())}o(dx,"addErrs");function hx({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(hx,"checkAsyncKeyword");function h0(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,Et.stringify)(r)})}o(h0,"useKeyword");function mx(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(mx,"validSchemaType");kr.validSchemaType=mx;function gx({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(gx,"validateKeywordUsage");kr.validateKeywordUsage=gx});var y0=b(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.extendSubschemaMode=yn.extendSubschemaData=yn.getSubschema=void 0;var Mr=se(),g0=he();function yx(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,Mr._)`${e.schemaPath}${(0,Mr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,Mr._)`${e.schemaPath}${(0,Mr.getProperty)(t)}${(0,Mr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,g0.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(yx,"getSubschema");yn.getSubschema=yx;function vx(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,Mr._)`${t.data}${(0,Mr.getProperty)(r)}`,!0);u(d),e.errorPath=(0,Mr.str)`${l}${(0,g0.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,Mr._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Mr.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(vx,"extendSubschemaData");yn.extendSubschemaData=vx;function bx(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(bx,"extendSubschemaMode");yn.extendSubschemaMode=bx});var Xf=b((FF,v0)=>{"use strict";v0.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 _0=b((BF,b0)=>{"use strict";var vn=b0.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(){};dc(t,n,i,e,"",e)};vn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};vn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};vn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};vn.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 dc(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 vn.arrayKeywords)for(var d=0;d<f.length;d++)dc(e,t,r,f[d],i+"/"+p+"/"+d,s,i,p,n,d)}else if(p in vn.propsKeywords){if(f&&typeof f=="object")for(var h in f)dc(e,t,r,f[h],i+"/"+p+"/"+_x(h),s,i,p,n,h)}else(p in vn.keywords||e.allKeys&&!(p in vn.skipKeywords))&&dc(e,t,r,f,i+"/"+p,s,i,p,n)}r(n,i,s,a,c,u,l)}}o(dc,"_traverse");function _x(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(_x,"escapeJsonPtr")});var _s=b(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getSchemaRefs=Nt.resolveUrl=Nt.normalizeId=Nt._getFullPath=Nt.getFullPath=Nt.inlineRef=void 0;var Sx=he(),Px=Xf(),Ox=_0(),wx=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function $x(e,t=!0){return typeof e=="boolean"?!0:t===!0?!ep(e):t?S0(e)<=t:!1}o($x,"inlineRef");Nt.inlineRef=$x;var Ex=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ep(e){for(let t in e){if(Ex.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(ep)||typeof r=="object"&&ep(r))return!0}return!1}o(ep,"hasRef");function S0(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!wx.has(r)&&(typeof e[r]=="object"&&(0,Sx.eachItem)(e[r],n=>t+=S0(n)),t===1/0))return 1/0}return t}o(S0,"countKeys");function P0(e,t="",r){r!==!1&&(t=ao(t));let n=e.parse(t);return O0(e,n)}o(P0,"getFullPath");Nt.getFullPath=P0;function O0(e,t){return e.serialize(t).split("#")[0]+"#"}o(O0,"_getFullPath");Nt._getFullPath=O0;var xx=/#\/?$/;function ao(e){return e?e.replace(xx,""):""}o(ao,"normalizeId");Nt.normalizeId=ao;function Ax(e,t,r){return r=ao(r),e.resolve(t,r)}o(Ax,"resolveUrl");Nt.resolveUrl=Ax;var Cx=/^[a-z_][-a-z0-9._]*$/i;function Ix(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=ao(e[r]||t),s={"":i},a=P0(n,i,!1),c={},u=new Set;return Ox(e,{allKeys:!0},(f,d,h,y)=>{if(y===void 0)return;let v=a+d,g=s[y];typeof f[r]=="string"&&(g=$.call(this,f[r])),A.call(this,f.$anchor),A.call(this,f.$dynamicAnchor),s[d]=g;function $(C){let R=this.opts.uriResolver.resolve;if(C=ao(g?R(g,C):C),u.has(C))throw p(C);u.add(C);let I=this.refs[C];return typeof I=="string"&&(I=this.refs[I]),typeof I=="object"?l(f,I.schema,C):C!==ao(v)&&(C[0]==="#"?(l(f,c[C],C),c[C]=f):this.refs[C]=v),C}o($,"addRef");function A(C){if(typeof C=="string"){if(!Cx.test(C))throw new Error(`invalid anchor "${C}"`);$.call(this,`#${C}`)}}o(A,"addAnchor")}),c;function l(f,d,h){if(d!==void 0&&!Px(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(Ix,"getSchemaRefs");Nt.getSchemaRefs=Ix});var Os=b(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.getData=bn.KeywordCxt=bn.validateFunctionCode=void 0;var A0=n0(),w0=bs(),rp=Gf(),hc=bs(),Rx=l0(),Ps=m0(),tp=y0(),W=se(),ie=nr(),jx=_s(),Xr=he(),Ss=vs();function Tx(e){if(R0(e)&&(j0(e),I0(e))){Mx(e);return}C0(e,()=>(0,A0.topBoolOrEmptySchema)(e))}o(Tx,"validateFunctionCode");bn.validateFunctionCode=Tx;function C0({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"; ${$0(r,i)}`),kx(e,i),e.code(s)}):e.func(t,(0,W._)`${ie.default.data}, ${Nx(i)}`,n.$async,()=>e.code($0(r,i)).code(s))}o(C0,"validateFunction");function Nx(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(Nx,"destructureValCxt");function kx(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(kx,"destructureValCxtES5");function Mx(e){let{schema:t,opts:r,gen:n}=e;C0(e,()=>{r.$comment&&t.$comment&&N0(e),Vx(e),n.let(ie.default.vErrors,null),n.let(ie.default.errors,0),r.unevaluated&&qx(e),T0(e),Ux(e)})}o(Mx,"topSchemaObjCode");function qx(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(qx,"resetEvaluated");function $0(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($0,"funcSourceUrl");function Dx(e,t){if(R0(e)&&(j0(e),I0(e))){Lx(e,t);return}(0,A0.boolOrEmptySchema)(e,t)}o(Dx,"subschemaCode");function I0({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}o(I0,"schemaCxtHasRules");function R0(e){return typeof e.schema!="boolean"}o(R0,"isSchemaObj");function Lx(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&N0(e),Bx(e),Hx(e);let s=n.const("_errs",ie.default.errors);T0(e,s),n.var(t,(0,W._)`${s} === ${ie.default.errors}`)}o(Lx,"subSchemaObjCode");function j0(e){(0,Xr.checkUnknownRules)(e),Fx(e)}o(j0,"checkKeywords");function T0(e,t){if(e.opts.jtd)return E0(e,[],!1,t);let r=(0,w0.getSchemaTypes)(e.schema),n=(0,w0.coerceAndCheckDataType)(e,r);E0(e,r,!n,t)}o(T0,"typeAndKeywords");function Fx(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Xr.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(Fx,"checkRefsAndKeywords");function Vx(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Xr.checkStrictMode)(e,"default is ignored in the schema root")}o(Vx,"checkNoDefault");function Bx(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,jx.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(Bx,"updateContext");function Hx(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(Hx,"checkAsyncSchema");function N0({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(N0,"commentKeyword");function Ux(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&&zx(e),t.return((0,W._)`${ie.default.errors} === 0`))}o(Ux,"returnResults");function zx({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(zx,"assignEvaluated");function E0(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,Xr.schemaHasRulesButRef)(s,p))){i.block(()=>M0(e,"$ref",p.all.$ref.definition));return}u.jtd||Gx(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,rp.shouldUseGroup)(s,d)&&(d.type?(i.if((0,hc.checkDataType)(d.type,a,u.strictNumbers)),x0(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,hc.reportTypeError)(e)),i.endIf()):x0(e,d),c||i.if((0,W._)`${ie.default.errors} === ${n||0}`))}o(f,"groupKeywords")}o(E0,"schemaKeywords");function x0(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,Rx.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,rp.shouldUseRule)(n,s)&&M0(e,s.keyword,s.definition,t.type)})}o(x0,"iterateKeywords");function Gx(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Zx(e,t),e.opts.allowUnionTypes||Wx(e,t),Kx(e,e.dataTypes))}o(Gx,"checkStrictTypes");function Zx(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{k0(e.dataTypes,r)||np(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),Jx(e,t)}}o(Zx,"checkContextTypes");function Wx(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&np(e,"use allowUnionTypes to allow union type keyword")}o(Wx,"checkMultipleTypes");function Kx(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,rp.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>Yx(t,a))&&np(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(Kx,"checkKeywordTypes");function Yx(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(Yx,"hasApplicableType");function k0(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(k0,"includesType");function Jx(e,t){let r=[];for(let n of e.dataTypes)k0(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(Jx,"narrowSchemaTypes");function np(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Xr.checkStrictMode)(e,t,e.opts.strictTypes)}o(np,"strictTypesError");var ip=class ip{constructor(t,r,n){if((0,Ps.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,Xr.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",q0(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ps.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?Ss.reportExtraError:Ss.reportError)(this,this.def.error,r)}$dataError(){(0,Ss.reportError)(this,this.def.$dataError||Ss.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ss.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,hc.checkDataTypes)(u,r,s.opts.strictNumbers,hc.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,tp.getSubschema)(this.it,t);(0,tp.extendSubschemaData)(n,this.it,t),(0,tp.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return Dx(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Xr.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Xr.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(ip,"KeywordCxt");var mc=ip;bn.KeywordCxt=mc;function M0(e,t,r,n){let i=new mc(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Ps.funcKeywordCode)(i,r):"macro"in r?(0,Ps.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Ps.funcKeywordCode)(i,r)}o(M0,"keywordCode");var Qx=/^\/(?:[^~]|~0|~1)*$/,Xx=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function q0(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return ie.default.rootData;if(e[0]==="/"){if(!Qx.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=ie.default.rootData}else{let l=Xx.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,Xr.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(q0,"getData");bn.getData=q0});var gc=b(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});var ap=class ap extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(ap,"ValidationError");var op=ap;sp.default=op});var ws=b(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});var cp=_s(),fp=class fp extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,cp.resolveUrl)(t,r,n),this.missingSchema=(0,cp.normalizeId)((0,cp.getFullPath)(t,this.missingRef))}};o(fp,"MissingRefError");var up=fp;lp.default=up});var $s=b(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.resolveSchema=or.getCompilingSchema=or.resolveRef=or.compileSchema=or.SchemaEnv=void 0;var br=se(),eA=gc(),fi=nr(),_r=_s(),D0=he(),tA=Os(),hp=class hp{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,_r.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(hp,"SchemaEnv");var co=hp;or.SchemaEnv=co;function dp(e){let t=L0.call(this,e);if(t)return t;let r=(0,_r.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new br.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:eA.default,code:(0,br._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:fi.default.data,parentData:fi.default.parentData,parentDataProperty:fi.default.parentDataProperty,dataNames:[fi.default.data],dataPathArr:[br.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,br.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:br.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,br._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,tA.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(fi.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${fi.default.self}`,`${fi.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:v}=l;h.evaluated={props:y instanceof br.Name?void 0:y,items:v instanceof br.Name?void 0:v,dynamicProps:y instanceof br.Name,dynamicItems:v instanceof br.Name},h.source&&(h.source.evaluated=(0,br.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(dp,"compileSchema");or.compileSchema=dp;function rA(e,t,r){var n;r=(0,_r.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=oA.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 co({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=nA.call(this,s)}o(rA,"resolveRef");or.resolveRef=rA;function nA(e){return(0,_r.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:dp.call(this,e)}o(nA,"inlineOrCompile");function L0(e){for(let t of this._compilations)if(iA(t,e))return t}o(L0,"getCompilingSchema");or.getCompilingSchema=L0;function iA(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(iA,"sameSchemaEnv");function oA(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||yc.call(this,e,t)}o(oA,"resolve");function yc(e,t){let r=this.opts.uriResolver.parse(t),n=(0,_r._getFullPath)(this.opts.uriResolver,r),i=(0,_r.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return pp.call(this,r,e);let s=(0,_r.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=yc.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:pp.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||dp.call(this,a),s===(0,_r.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,_r.resolveUrl)(this.opts.uriResolver,i,l)),new co({schema:c,schemaId:u,root:e,baseId:i})}return pp.call(this,r,a)}}o(yc,"resolveSchema");or.resolveSchema=yc;var sA=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function pp(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,D0.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!sA.has(c)&&l&&(t=(0,_r.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,D0.schemaHasRulesButRef)(r,this.RULES)){let c=(0,_r.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=yc.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new co({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(pp,"getJsonPointer")});var F0=b((e6,aA)=>{aA.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 B0=b((t6,V0)=>{"use strict";var cA={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:cA}});var Y0=b((r6,K0)=>{"use strict";var{HEX:uA}=B0();function G0(e){if(W0(e,".")<3)return{host:e,isIPV4:!1};let t=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[r]=t;return r?{host:fA(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(G0,"normalizeIPv4");function mp(e,t=!1){let r="",n=!0;for(let i of e){if(uA[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(mp,"stringArrayToHexStripped");function lA(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=mp(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(mp(i))),r.address=n.join(""),r}o(lA,"getIPV6");function Z0(e,t={}){if(W0(e,":")<2)return{host:e,isIPV6:!1};let r=lA(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(Z0,"normalizeIPv6");function fA(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(fA,"stripLeadingZeros");function W0(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(W0,"findToken");var H0=/^\.\.?\//u,U0=/^\/\.(?:\/|$)/u,z0=/^\/\.\.(?:\/|$)/u,pA=/^\/?(?:.|\n)*?(?=\/|$)/u;function dA(e){let t=[];for(;e.length;)if(e.match(H0))e=e.replace(H0,"");else if(e.match(U0))e=e.replace(U0,"/");else if(e.match(z0))e=e.replace(z0,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(pA);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(dA,"removeDotSegments");function hA(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(hA,"normalizeComponentEncoding");function mA(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=G0(n);if(i.isIPV4)n=i.host;else{let s=Z0(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(mA,"recomposeAuthority");K0.exports={recomposeAuthority:mA,normalizeComponentEncoding:hA,removeDotSegments:dA,normalizeIPv4:G0,normalizeIPv6:Z0,stringArrayToHexStripped:mp}});var rv=b((i6,tv)=>{"use strict";var gA=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,yA=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function J0(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(J0,"isSecure");function Q0(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(Q0,"httpParse");function X0(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(X0,"httpSerialize");function vA(e){return e.secure=J0(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(vA,"wsParse");function bA(e){if((e.port===(J0(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(bA,"wsSerialize");function _A(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(yA);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=gp[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(_A,"urnParse");function SA(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=gp[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(SA,"urnSerialize");function PA(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!gA.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(PA,"urnuuidParse");function OA(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(OA,"urnuuidSerialize");var ev={scheme:"http",domainHost:!0,parse:Q0,serialize:X0},wA={scheme:"https",domainHost:ev.domainHost,parse:Q0,serialize:X0},vc={scheme:"ws",domainHost:!0,parse:vA,serialize:bA},$A={scheme:"wss",domainHost:vc.domainHost,parse:vc.parse,serialize:vc.serialize},EA={scheme:"urn",parse:_A,serialize:SA,skipNormalize:!0},xA={scheme:"urn:uuid",parse:PA,serialize:OA,skipNormalize:!0},gp={http:ev,https:wA,ws:vc,wss:$A,urn:EA,"urn:uuid":xA};tv.exports=gp});var iv=b((s6,_c)=>{"use strict";var{normalizeIPv6:AA,normalizeIPv4:CA,removeDotSegments:Es,recomposeAuthority:IA,normalizeComponentEncoding:bc}=Y0(),yp=rv();function RA(e,t){return typeof e=="string"?e=qr(en(e,t),t):typeof e=="object"&&(e=en(qr(e,t),t)),e}o(RA,"normalize");function jA(e,t,r){let n=Object.assign({scheme:"null"},r),i=nv(en(e,n),en(t,n),n,!0);return qr(i,{...n,skipEscape:!0})}o(jA,"resolve");function nv(e,t,r,n){let i={};return n||(e=en(qr(e,r),r),t=en(qr(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=Es(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=Es(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=Es(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=Es(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(nv,"resolveComponents");function TA(e,t,r){return typeof e=="string"?(e=unescape(e),e=qr(bc(en(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=qr(bc(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=qr(bc(en(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=qr(bc(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(TA,"equal");function qr(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=yp[(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=IA(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=Es(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(qr,"serialize");var NA=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function kA(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||NA[t])return!0;return!1}o(kA,"nonSimpleDomain");var MA=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function en(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(MA);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=CA(n.host);if(u.isIPV4===!1){let l=AA(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=yp[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&kA(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(en,"parse");var vp={SCHEMES:yp,normalize:RA,resolve:jA,resolveComponents:nv,equal:TA,serialize:qr,parse:en};_c.exports=vp;_c.exports.default=vp;_c.exports.fastUri=vp});var sv=b(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});var ov=iv();ov.code='require("ajv/dist/runtime/uri").default';bp.default=ov});var lo=b(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.CodeGen=ft.Name=ft.nil=ft.stringify=ft.str=ft._=ft.KeywordCxt=void 0;var qA=Os();Object.defineProperty(ft,"KeywordCxt",{enumerable:!0,get:o(function(){return qA.KeywordCxt},"get")});var uo=se();Object.defineProperty(ft,"_",{enumerable:!0,get:o(function(){return uo._},"get")});Object.defineProperty(ft,"str",{enumerable:!0,get:o(function(){return uo.str},"get")});Object.defineProperty(ft,"stringify",{enumerable:!0,get:o(function(){return uo.stringify},"get")});Object.defineProperty(ft,"nil",{enumerable:!0,get:o(function(){return uo.nil},"get")});Object.defineProperty(ft,"Name",{enumerable:!0,get:o(function(){return uo.Name},"get")});Object.defineProperty(ft,"CodeGen",{enumerable:!0,get:o(function(){return uo.CodeGen},"get")});var DA=gc(),fv=ws(),LA=zf(),xs=$s(),FA=se(),As=_s(),Sc=bs(),Sp=he(),av=F0(),VA=sv(),pv=o((e,t)=>new RegExp(e,t),"defaultRegExp");pv.code="new RegExp";var BA=["removeAdditional","useDefaults","coerceTypes"],HA=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),UA={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."},zA={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},cv=200;function GA(e){var t,r,n,i,s,a,c,u,l,p,f,d,h,y,v,g,$,A,C,R,I,ae,re,$e,Oe;let ne=e.strict,k=(t=e.code)===null||t===void 0?void 0:t.optimize,j=k===!0||k===void 0?1:k||0,M=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:pv,Y=(i=e.uriResolver)!==null&&i!==void 0?i:VA.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:ne)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:ne)!==null&&u!==void 0?u:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:ne)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:ne)!==null&&d!==void 0?d:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:ne)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:j,regExp:M}:{optimize:j,regExp:M},loopRequired:(v=e.loopRequired)!==null&&v!==void 0?v:cv,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:cv,meta:($=e.meta)!==null&&$!==void 0?$:!0,messages:(A=e.messages)!==null&&A!==void 0?A:!0,inlineRefs:(C=e.inlineRefs)!==null&&C!==void 0?C:!0,schemaId:(R=e.schemaId)!==null&&R!==void 0?R:"$id",addUsedSchema:(I=e.addUsedSchema)!==null&&I!==void 0?I:!0,validateSchema:(ae=e.validateSchema)!==null&&ae!==void 0?ae:!0,validateFormats:(re=e.validateFormats)!==null&&re!==void 0?re:!0,unicodeRegExp:($e=e.unicodeRegExp)!==null&&$e!==void 0?$e:!0,int32range:(Oe=e.int32range)!==null&&Oe!==void 0?Oe:!0,uriResolver:Y}}o(GA,"requiredOptions");var Pp=class Pp{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...GA(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new FA.ValueScope({scope:{},prefixes:HA,es5:r,lines:n}),this.logger=QA(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,LA.getRules)(),uv.call(this,UA,t,"NOT SUPPORTED"),uv.call(this,zA,t,"DEPRECATED","warn"),this._metaOpts=YA.call(this),t.formats&&WA.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&KA.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),ZA.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=av;n==="id"&&(i={...av},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 fv.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,As.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=lv.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new xs.SchemaEnv({schema:{},schemaId:n});if(r=xs.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=lv.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,As.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(eC.call(this,n,r),!r)return(0,Sp.eachItem)(n,s=>_p.call(this,s)),this;rC.call(this,r);let i={...r,type:(0,Sc.getJSONTypes)(r.type),schemaType:(0,Sc.getJSONTypes)(r.schemaType)};return(0,Sp.eachItem)(n,i.type.length===0?s=>_p.call(this,s,i):s=>i.type.forEach(a=>_p.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]=dv(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,As.normalizeId)(a||n);let l=As.getSchemaRefs.call(this,t,n);return u=new xs.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):xs.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{xs.compileSchema.call(this,t)}finally{this.opts=r}}};o(Pp,"Ajv");var Cs=Pp;Cs.ValidationError=DA.default;Cs.MissingRefError=fv.default;ft.default=Cs;function uv(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(uv,"checkOptions");function lv(e){return e=(0,As.normalizeId)(e),this.schemas[e]||this.refs[e]}o(lv,"getSchEnv");function ZA(){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(ZA,"addInitialSchemas");function WA(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(WA,"addInitialFormats");function KA(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(KA,"addInitialKeywords");function YA(){let e={...this.opts};for(let t of BA)delete e[t];return e}o(YA,"getMetaSchemaOptions");var JA={log(){},warn(){},error(){}};function QA(e){if(e===!1)return JA;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(QA,"getLogger");var XA=/^[a-z_$][a-z0-9_$:-]*$/i;function eC(e,t){let{RULES:r}=this;if((0,Sp.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!XA.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(eC,"checkKeyword");function _p(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,Sc.getJSONTypes)(t.type),schemaType:(0,Sc.getJSONTypes)(t.schemaType)}};t.before?tC.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(_p,"addRule");function tC(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(tC,"addBeforeRule");function rC(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=dv(t)),e.validateSchema=this.compile(t,!0))}o(rC,"keywordMetaschema");var nC={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function dv(e){return{anyOf:[e,nC]}}o(dv,"schemaOrData")});var Is=b(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.callRef=pi.getValidate=void 0;var iC=ws(),hv=ir(),kt=se(),fo=nr(),mv=$s(),Pc=he(),oC={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=mv.resolveRef.call(u,l,i,r);if(p===void 0)throw new iC.default(n.opts.uriResolver,i,r);if(p instanceof mv.SchemaEnv)return d(p);return h(p);function f(){if(s===l)return Oc(e,a,s,s.$async);let y=t.scopeValue("root",{ref:l});return Oc(e,(0,kt._)`${y}.validate`,l,l.$async)}function d(y){let v=gv(e,y);Oc(e,v,y,y.$async)}function h(y){let v=t.scopeValue("schema",c.code.source===!0?{ref:y,code:(0,kt.stringify)(y)}:{ref:y}),g=t.name("valid"),$=e.subschema({schema:y,dataTypes:[],schemaPath:kt.nil,topSchemaRef:v,errSchemaPath:r},g);e.mergeEvaluated($),e.ok(g)}}};function gv(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,kt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(gv,"getValidate");pi.getValidate=gv;function Oc(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?fo.default.this:kt.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,kt._)`await ${(0,hv.callValidateCode)(e,t,l)}`),h(t),a||i.assign(y,!0)},v=>{i.if((0,kt._)`!(${v} instanceof ${s.ValidationError})`,()=>i.throw(v)),d(v),a||i.assign(y,!1)}),e.ok(y)}o(p,"callAsyncRef");function f(){e.result((0,hv.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}o(f,"callSyncRef");function d(y){let v=(0,kt._)`${y}.errors`;i.assign(fo.default.vErrors,(0,kt._)`${fo.default.vErrors} === null ? ${v} : ${fo.default.vErrors}.concat(${v})`),i.assign(fo.default.errors,(0,kt._)`${fo.default.vErrors}.length`)}o(d,"addErrorsFrom");function h(y){var v;if(!s.opts.unevaluated)return;let g=(v=r==null?void 0:r.validate)===null||v===void 0?void 0:v.evaluated;if(s.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(s.props=Pc.mergeEvaluated.props(i,g.props,s.props));else{let $=i.var("props",(0,kt._)`${y}.evaluated.props`);s.props=Pc.mergeEvaluated.props(i,$,s.props,kt.Name)}if(s.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(s.items=Pc.mergeEvaluated.items(i,g.items,s.items));else{let $=i.var("items",(0,kt._)`${y}.evaluated.items`);s.items=Pc.mergeEvaluated.items(i,$,s.items,kt.Name)}}o(h,"addEvaluatedFrom")}o(Oc,"callRef");pi.callRef=Oc;pi.default=oC});var yv=b(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});var sC=Is(),aC=["$schema","id","$defs",{keyword:"$comment"},"definitions",sC.default];Op.default=aC});var vv=b(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var wp=lo(),cC=se(),_n=cC.operators,$p={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:_n.LTE,fail:_n.GT},{okStr:"<",ok:_n.LT,fail:_n.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:_n.GTE,fail:_n.LT},{okStr:">",ok:_n.GT,fail:_n.LTE}]}},uC={message:o(e=>wp.str`must be ${Ep(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>wp._`{comparison: ${Ep(e).okStr}, limit: ${e.schemaCode}}`,"params")},lC={keyword:Object.keys($p),type:"number",schemaType:"number",$data:!0,error:uC,code(e){let{data:t,schemaCode:r}=e;e.fail$data(wp._`${t} ${Ep(e).fail} ${r} || isNaN(${t})`)}};function Ep(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[$p[r].exclusive]?1:0;return $p[r].ops[n]}o(Ep,"kwdOp");xp.default=lC});var _v=b(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var bv={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},fC={keyword:Object.keys(bv),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=bv[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};Ap.default=fC});var Ip=b(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});var Rs=se(),pC={message:o(({schemaCode:e})=>(0,Rs.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,Rs._)`{multipleOf: ${e}}`,"params")},dC={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:pC,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,Rs._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,Rs._)`${a} !== parseInt(${a})`;e.fail$data((0,Rs._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};Cp.default=dC});var Pv=b(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});function Sv(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(Sv,"ucs2length");Rp.default=Sv;Sv.code='require("ajv/dist/runtime/ucs2length").default'});var Tp=b(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});var di=se(),hC=he(),mC=Pv(),gC={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,di.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,di._)`{limit: ${e}}`,"params")},yC={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:gC,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?di.operators.GT:di.operators.LT,a=i.opts.unicode===!1?(0,di._)`${r}.length`:(0,di._)`${(0,hC.useFunc)(e.gen,mC.default)}(${r})`;e.fail$data((0,di._)`${a} ${s} ${n}`)}};jp.default=yC});var kp=b(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});var vC=ir(),wc=se(),bC={message:o(({schemaCode:e})=>(0,wc.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,wc._)`{pattern: ${e}}`,"params")},_C={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:bC,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,vC.usePattern)(e,n);e.fail$data((0,wc._)`!${c}.test(${t})`)}};Np.default=_C});var qp=b(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});var js=se(),SC={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,js.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,js._)`{limit: ${e}}`,"params")},PC={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:SC,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?js.operators.GT:js.operators.LT;e.fail$data((0,js._)`Object.keys(${r}).length ${i} ${n}`)}};Mp.default=PC});var Lp=b(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});var Ts=ir(),Ns=se(),OC=he(),wC={message:o(({params:{missingProperty:e}})=>(0,Ns.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,Ns._)`{missingProperty: ${e}}`,"params")},$C={keyword:"required",type:"object",schemaType:"array",$data:!0,error:wC,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 v of r)if((h==null?void 0:h[v])===void 0&&!y.has(v)){let g=a.schemaEnv.baseId+a.errSchemaPath,$=`required property "${v}" is not defined at "${g}" (strictRequired)`;(0,OC.checkStrictMode)(a,$,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(Ns.nil,f);else for(let h of r)(0,Ts.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,Ts.checkMissingProp)(e,r,h)),(0,Ts.reportMissingProp)(e,h),t.else()}o(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,Ts.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,Ts.propertyInData)(t,i,h,c.ownProperties)),t.if((0,Ns.not)(y),()=>{e.error(),t.break()})},Ns.nil)}o(d,"loopUntilMissing")}};Dp.default=$C});var Vp=b(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var ks=se(),EC={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,ks.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,ks._)`{limit: ${e}}`,"params")},xC={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:EC,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?ks.operators.GT:ks.operators.LT;e.fail$data((0,ks._)`${r}.length ${i} ${n}`)}};Fp.default=xC});var $c=b(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});var Ov=Xf();Ov.code='require("ajv/dist/runtime/equal").default';Bp.default=Ov});var zp=b(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});var Hp=bs(),pt=se(),AC=he(),CC=$c(),IC={message:o(({params:{i:e,j:t}})=>(0,pt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,pt._)`{i: ${e}, j: ${t}}`,"params")},RC={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:IC,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,Hp.getSchemaTypes)(s.items):[];e.block$data(u,p,(0,pt._)`${a} === false`),e.ok(u);function p(){let y=t.let("i",(0,pt._)`${r}.length`),v=t.let("j");e.setParams({i:y,j:v}),t.assign(u,!0),t.if((0,pt._)`${y} > 1`,()=>(f()?d:h)(y,v))}o(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(y=>y==="object"||y==="array")}o(f,"canOptimize");function d(y,v){let g=t.name("item"),$=(0,Hp.checkDataTypes)(l,g,c.opts.strictNumbers,Hp.DataType.Wrong),A=t.const("indices",(0,pt._)`{}`);t.for((0,pt._)`;${y}--;`,()=>{t.let(g,(0,pt._)`${r}[${y}]`),t.if($,(0,pt._)`continue`),l.length>1&&t.if((0,pt._)`typeof ${g} == "string"`,(0,pt._)`${g} += "_"`),t.if((0,pt._)`typeof ${A}[${g}] == "number"`,()=>{t.assign(v,(0,pt._)`${A}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,pt._)`${A}[${g}] = ${y}`)})}o(d,"loopN");function h(y,v){let g=(0,AC.useFunc)(t,CC.default),$=t.name("outer");t.label($).for((0,pt._)`;${y}--;`,()=>t.for((0,pt._)`${v} = ${y}; ${v}--;`,()=>t.if((0,pt._)`${g}(${r}[${y}], ${r}[${v}])`,()=>{e.error(),t.assign(u,!1).break($)})))}o(h,"loopN2")}};Up.default=RC});var Wp=b(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});var Gp=se(),jC=he(),TC=$c(),NC={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,Gp._)`{allowedValue: ${e}}`,"params")},kC={keyword:"const",$data:!0,error:NC,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Gp._)`!${(0,jC.useFunc)(t,TC.default)}(${r}, ${i})`):e.fail((0,Gp._)`${s} !== ${r}`)}};Zp.default=kC});var Yp=b(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var Ms=se(),MC=he(),qC=$c(),DC={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,Ms._)`{allowedValues: ${e}}`,"params")},LC={keyword:"enum",schemaType:"array",$data:!0,error:DC,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,MC.useFunc)(t,qC.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,Ms.or)(...i.map((y,v)=>d(h,v)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",s,h=>t.if((0,Ms._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}o(f,"loopEnum");function d(h,y){let v=i[y];return typeof v=="object"&&v!==null?(0,Ms._)`${l()}(${r}, ${h}[${y}])`:(0,Ms._)`${r} === ${v}`}o(d,"equalCode")}};Kp.default=LC});var wv=b(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var FC=vv(),VC=_v(),BC=Ip(),HC=Tp(),UC=kp(),zC=qp(),GC=Lp(),ZC=Vp(),WC=zp(),KC=Wp(),YC=Yp(),JC=[FC.default,VC.default,BC.default,HC.default,UC.default,zC.default,GC.default,ZC.default,WC.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},KC.default,YC.default];Jp.default=JC});var Xp=b(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.validateAdditionalItems=void 0;var hi=se(),Qp=he(),QC={message:o(({params:{len:e}})=>(0,hi.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,hi._)`{limit: ${e}}`,"params")},XC={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:QC,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Qp.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}$v(e,n)}};function $v(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let c=r.const("len",(0,hi._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,hi._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,Qp.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,hi._)`${c} <= ${t.length}`);r.if((0,hi.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,p=>{e.subschema({keyword:s,dataProp:p,dataPropType:Qp.Type.Num},l),a.allErrors||r.if((0,hi.not)(l),()=>r.break())})}o(u,"validateItems")}o($v,"validateAdditionalItems");qs.validateAdditionalItems=$v;qs.default=XC});var ed=b(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.validateTuple=void 0;var Ev=se(),Ec=he(),eI=ir(),tI={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return xv(e,"additionalItems",t);r.items=!0,!(0,Ec.alwaysValidSchema)(r,t)&&e.ok((0,eI.validateArray)(e))}};function xv(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=Ec.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,Ev._)`${s}.length`);r.forEach((f,d)=>{(0,Ec.alwaysValidSchema)(c,f)||(n.if((0,Ev._)`${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,v=y===f.minItems&&(y===f.maxItems||f[t]===!1);if(d.strictTuples&&!v){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Ec.checkStrictMode)(c,g,d.strictTuples)}}o(p,"checkStrictTuple")}o(xv,"validateTuple");Ds.validateTuple=xv;Ds.default=tI});var Av=b(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});var rI=ed(),nI={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,rI.validateTuple)(e,"items"),"code")};td.default=nI});var Iv=b(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var Cv=se(),iI=he(),oI=ir(),sI=Xp(),aI={message:o(({params:{len:e}})=>(0,Cv.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Cv._)`{limit: ${e}}`,"params")},cI={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:aI,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,iI.alwaysValidSchema)(n,t)&&(i?(0,sI.validateAdditionalItems)(e,i):e.ok((0,oI.validateArray)(e)))}};rd.default=cI});var Rv=b(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});var sr=se(),xc=he(),uI={message:o(({params:{min:e,max:t}})=>t===void 0?(0,sr.str)`must contain at least ${e} valid item(s)`:(0,sr.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,sr._)`{minContains: ${e}}`:(0,sr._)`{minContains: ${e}, maxContains: ${t}}`,"params")},lI={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:uI,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,sr._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,xc.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,xc.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,xc.alwaysValidSchema)(s,r)){let v=(0,sr._)`${p} >= ${a}`;c!==void 0&&(v=(0,sr._)`${v} && ${p} <= ${c}`),e.pass(v);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,sr._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let v=t.name("_valid"),g=t.let("count",0);h(v,()=>t.if(v,()=>y(g)))}o(d,"validateItemsWithCount");function h(v,g){t.forRange("i",0,p,$=>{e.subschema({keyword:"contains",dataProp:$,dataPropType:xc.Type.Num,compositeRule:!0},v),g()})}o(h,"validateItems");function y(v){t.code((0,sr._)`${v}++`),c===void 0?t.if((0,sr._)`${v} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,sr._)`${v} > ${c}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,sr._)`${v} >= ${a}`,()=>t.assign(f,!0)))}o(y,"checkLimits")}};nd.default=lI});var Ac=b(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.validateSchemaDeps=Dr.validatePropertyDeps=Dr.error=void 0;var id=se(),fI=he(),Ls=ir();Dr.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,id.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,id._)`{property: ${e},
11
11
  missingProperty: ${n},
12
12
  depsCount: ${t},
13
- deps: ${r}}`,"params")};var YC={keyword:"dependencies",type:"object",schemaType:"object",error:Nr.error,code(e){let[t,r]=JC(e);w0(e,t),$0(e,r)}};function JC({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}s(JC,"splitDependencies");function w0(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,qo.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,qo.checkReportMissingProp)(e,l)}):(r.if((0,Zp._)`${u} && (${(0,qo.checkMissingProp)(e,c,o)})`),(0,qo.reportMissingProp)(e,o),r.else())}}s(w0,"validatePropertyDeps");Nr.validatePropertyDeps=w0;function $0(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,a=r.name("valid");for(let c in t)(0,ZC.alwaysValidSchema)(o,t[c])||(r.if((0,qo.propertyInData)(r,n,c,o.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}s($0,"validateSchemaDeps");Nr.validateSchemaDeps=$0;Nr.default=YC});var x0=b(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});var E0=se(),QC=he(),XC={message:"property name must be valid",params:s(({params:e})=>(0,E0._)`{propertyName: ${e.propertyName}}`,"params")},eI={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:XC,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,QC.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,E0.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};Yp.default=eI});var Qp=b(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var $c=tr(),vr=se(),tI=er(),Ec=he(),rI={message:"must NOT have additional properties",params:s(({params:e})=>(0,vr._)`{additionalProperty: ${e.additionalProperty}}`,"params")},nI={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:rI,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,Ec.alwaysValidSchema)(a,r))return;let l=(0,$c.allSchemaProperties)(n.properties),p=(0,$c.allSchemaProperties)(n.patternProperties);f(),e.ok((0,vr._)`${o} === ${tI.default.errors}`);function f(){t.forIn("key",i,g=>{!l.length&&!p.length?y(g):t.if(d(g),()=>y(g))})}s(f,"checkAdditionalProperties");function d(g){let w;if(l.length>8){let A=(0,Ec.schemaRefOrVal)(a,n.properties,"properties");w=(0,$c.isOwnProperty)(t,A,g)}else l.length?w=(0,vr.or)(...l.map(A=>(0,vr._)`${g} === ${A}`)):w=vr.nil;return p.length&&(w=(0,vr.or)(w,...p.map(A=>(0,vr._)`${(0,$c.usePattern)(e,A)}.test(${g})`))),(0,vr.not)(w)}s(d,"isAdditional");function h(g){t.code((0,vr._)`delete ${i}[${g}]`)}s(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,Ec.alwaysValidSchema)(a,r)){let w=t.name("valid");u.removeAdditional==="failing"?(v(g,w,!1),t.if((0,vr.not)(w),()=>{e.reset(),h(g)})):(v(g,w),c||t.if((0,vr.not)(w),()=>t.break()))}}s(y,"additionalPropertyCode");function v(g,w,A){let I={keyword:"additionalProperties",dataProp:g,dataPropType:Ec.Type.Str};A===!1&&Object.assign(I,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(I,w)}s(v,"applyAdditionalSchema")}};Jp.default=nI});var I0=b(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});var iI=So(),A0=tr(),Xp=he(),C0=Qp(),sI={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&C0.default.code(new iI.KeywordCxt(o,C0.default,"additionalProperties"));let a=(0,A0.allSchemaProperties)(r);for(let f of a)o.definedProperties.add(f);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Xp.mergeEvaluated.props(t,(0,Xp.toHash)(a),o.props));let c=a.filter(f=>!(0,Xp.alwaysValidSchema)(o,r[f]));if(c.length===0)return;let u=t.name("valid");for(let f of c)l(f)?p(f):(t.if((0,A0.propertyInData)(t,i,f,o.opts.ownProperties)),p(f),o.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(u);function l(f){return o.opts.useDefaults&&!o.compositeRule&&r[f].default!==void 0}s(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}s(p,"applyPropertySchema")}};ed.default=sI});var N0=b(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});var j0=tr(),xc=se(),R0=he(),T0=he(),oI={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:a}=o,c=(0,j0.allSchemaProperties)(r),u=c.filter(v=>(0,R0.alwaysValidSchema)(o,r[v]));if(c.length===0||u.length===c.length&&(!o.opts.unevaluated||o.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");o.props!==!0&&!(o.props instanceof xc.Name)&&(o.props=(0,T0.evaluatedPropsToName)(t,o.props));let{props:f}=o;d();function d(){for(let v of c)l&&h(v),o.allErrors?y(v):(t.var(p,!0),y(v),t.if(p))}s(d,"validatePatternProperties");function h(v){for(let g in l)new RegExp(v).test(g)&&(0,R0.checkStrictMode)(o,`property ${g} matches pattern ${v} (use allowMatchingProperties)`)}s(h,"checkMatchingProperties");function y(v){t.forIn("key",n,g=>{t.if((0,xc._)`${(0,j0.usePattern)(e,v)}.test(${g})`,()=>{let w=u.includes(v);w||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:g,dataPropType:T0.Type.Str},p),o.opts.unevaluated&&f!==!0?t.assign((0,xc._)`${f}[${g}]`,!0):!w&&!o.allErrors&&t.if((0,xc.not)(p),()=>t.break())})})}s(y,"validateProperties")}};td.default=oI});var k0=b(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var aI=he(),cI={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,aI.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"}};rd.default=cI});var M0=b(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});var uI=tr(),lI={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:uI.validateUnion,error:{message:"must match a schema in anyOf"}};nd.default=lI});var q0=b(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});var Ac=se(),fI=he(),pI={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,Ac._)`{passingSchemas: ${e.passing}}`,"params")},dI={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:pI,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,a=t.let("valid",!1),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(){o.forEach((p,f)=>{let d;(0,fI.alwaysValidSchema)(i,p)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,Ac._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Ac._)`[${c}, ${f}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,f),d&&e.mergeEvaluated(d,Ac.Name)})})}s(l,"validateOneOf")}};id.default=dI});var D0=b(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});var hI=he(),mI={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,a)=>{if((0,hI.alwaysValidSchema)(n,o))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};sd.default=mI});var V0=b(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});var Cc=se(),F0=he(),gI={message:s(({params:e})=>(0,Cc.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,Cc._)`{failingKeyword: ${e.ifClause}}`,"params")},yI={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:gI,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,F0.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=L0(n,"then"),o=L0(n,"else");if(!i&&!o)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&o){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,Cc.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)}s(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,Cc._)`${p}`):e.setParams({ifClause:p})}}s(l,"validateClause")}};function L0(e,t){let r=e.schema[t];return r!==void 0&&!(0,F0.alwaysValidSchema)(e,r)}s(L0,"hasSchema");od.default=yI});var B0=b(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});var vI=he(),bI={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,vI.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};ad.default=bI});var ud=b(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});var _I=Up(),SI=_0(),OI=zp(),PI=O0(),wI=P0(),$I=wc(),EI=x0(),xI=Qp(),AI=I0(),CI=N0(),II=k0(),jI=M0(),RI=q0(),TI=D0(),NI=V0(),kI=B0();function MI(e=!1){let t=[II.default,jI.default,RI.default,TI.default,NI.default,kI.default,EI.default,xI.default,$I.default,AI.default,CI.default];return e?t.push(SI.default,PI.default):t.push(_I.default,OI.default),t.push(wI.default),t}s(MI,"getApplicator");cd.default=MI});var H0=b(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});var Ke=se(),qI={message:s(({schemaCode:e})=>(0,Ke.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,Ke._)`{format: ${e}}`,"params")},DI={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:qI,code(e,t){let{gen:r,data:n,$data:i,schema:o,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}),v=r.const("fDef",(0,Ke._)`${y}[${a}]`),g=r.let("fType"),w=r.let("format");r.if((0,Ke._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>r.assign(g,(0,Ke._)`${v}.type || "string"`).assign(w,(0,Ke._)`${v}.validate`),()=>r.assign(g,(0,Ke._)`"string"`).assign(w,v)),e.fail$data((0,Ke.or)(A(),I()));function A(){return u.strictSchema===!1?Ke.nil:(0,Ke._)`${a} && !${w}`}s(A,"unknownFmt");function I(){let R=p.$async?(0,Ke._)`(${v}.async ? await ${w}(${n}) : ${w}(${n}))`:(0,Ke._)`${w}(${n})`,C=(0,Ke._)`(typeof ${w} == "function" ? ${R} : ${w}.test(${n}))`;return(0,Ke._)`${w} && ${w} !== true && ${g} === ${t} && !${C}`}s(I,"invalidFmt")}s(d,"validate$DataFormat");function h(){let y=f.formats[o];if(!y){A();return}if(y===!0)return;let[v,g,w]=I(y);v===t&&e.pass(R());function A(){if(u.strictSchema===!1){f.logger.warn(C());return}throw new Error(C());function C(){return`unknown format "${o}" ignored in schema at path "${l}"`}}s(A,"unknownFormat");function I(C){let ae=C instanceof RegExp?(0,Ke.regexpCode)(C):u.code.formats?(0,Ke._)`${u.code.formats}${(0,Ke.getProperty)(o)}`:void 0,ce=r.scopeValue("formats",{key:o,ref:C,code:ae});return typeof C=="object"&&!(C instanceof RegExp)?[C.type||"string",C.validate,(0,Ke._)`${ce}.validate`]:["string",C,ce]}s(I,"getFormat");function R(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Ke._)`await ${w}(${n})`}return typeof g=="function"?(0,Ke._)`${w}(${n})`:(0,Ke._)`${w}.test(${n})`}s(R,"validCondition")}s(h,"validateFormat")}};ld.default=DI});var pd=b(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});var LI=H0(),FI=[LI.default];fd.default=FI});var U0=b(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});var VI=u0(),BI=g0(),HI=ud(),UI=pd(),zI=["title","description","default"],GI=[VI.default,BI.default,HI.default(),UI.default,zI];dd.default=GI});var G0=b(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.DiscrError=void 0;var z0;(function(e){e.Tag="tag",e.Mapping="mapping"})(z0||(Ic.DiscrError=z0={}))});var gd=b(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});var as=se(),hd=G0(),W0=Po(),WI=Oo(),KI=he(),ZI={message:s(({params:{discrError:e,tagName:t}})=>e===hd.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:s(({params:{discrError:e,tag:t,tagName:r}})=>(0,as._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},YI={keyword:"discriminator",type:"object",schemaType:"object",error:ZI,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let 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,as._)`${r}${(0,as.getProperty)(c)}`);t.if((0,as._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:hd.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,as._)`${l} === ${y}`),t.assign(u,f(h[y]));t.else(),e.error(!1,{discrError:hd.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}s(p,"validateMapping");function f(h){let y=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:h},y);return e.mergeEvaluated(v,as.Name),y}s(f,"applyTagSchema");function d(){var h;let y={},v=w(i),g=!0;for(let R=0;R<a.length;R++){let C=a[R];if(C!=null&&C.$ref&&!(0,KI.schemaHasRulesButRef)(C,o.self.RULES)){let ce=C.$ref;if(C=W0.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,ce),C instanceof W0.SchemaEnv&&(C=C.schema),C===void 0)throw new WI.default(o.opts.uriResolver,o.baseId,ce)}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&&(v||w(C)),A(ae,R)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return y;function w({required:R}){return Array.isArray(R)&&R.includes(c)}function A(R,C){if(R.const)I(R.const,C);else if(R.enum)for(let ae of R.enum)I(ae,C);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function I(R,C){if(typeof R!="string"||R in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[R]=C}}s(d,"getMapping")}};md.default=YI});var K0=b((Q6,JI)=>{JI.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 J0=b((et,Y0)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.CodeGen=et.Name=et.nil=et.stringify=et.str=et._=et.KeywordCxt=void 0;var QI=ss(),XI=U0(),ej=gd(),Z0=K0(),tj=["/properties"],jc="http://json-schema.org/draft-04/schema",yd=class yd extends QI.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),XI.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(ej.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Z0,tj):Z0;this.addMetaSchema(t,jc,!1),this.refs["http://json-schema.org/schema"]=jc}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(jc)?jc:void 0)}};s(yd,"Ajv");var Rc=yd;Y0.exports=et=Rc;Object.defineProperty(et,"__esModule",{value:!0});et.default=Rc;var rj=ss();Object.defineProperty(et,"KeywordCxt",{enumerable:!0,get:s(function(){return rj.KeywordCxt},"get")});var cs=ss();Object.defineProperty(et,"_",{enumerable:!0,get:s(function(){return cs._},"get")});Object.defineProperty(et,"str",{enumerable:!0,get:s(function(){return cs.str},"get")});Object.defineProperty(et,"stringify",{enumerable:!0,get:s(function(){return cs.stringify},"get")});Object.defineProperty(et,"nil",{enumerable:!0,get:s(function(){return cs.nil},"get")});Object.defineProperty(et,"Name",{enumerable:!0,get:s(function(){return cs.Name},"get")});Object.defineProperty(et,"CodeGen",{enumerable:!0,get:s(function(){return cs.CodeGen},"get")})});var Q0=b(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});var nj={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};vd.default=nj});var X0=b(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});var ij=Q0(),sj=Ao(),oj=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",ij.default,sj.default];bd.default=oj});var eb=b(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});var Tc=se(),vn=Tc.operators,Nc={maximum:{okStr:"<=",ok:vn.LTE,fail:vn.GT},minimum:{okStr:">=",ok:vn.GTE,fail:vn.LT},exclusiveMaximum:{okStr:"<",ok:vn.LT,fail:vn.GTE},exclusiveMinimum:{okStr:">",ok:vn.GT,fail:vn.LTE}},aj={message:s(({keyword:e,schemaCode:t})=>(0,Tc.str)`must be ${Nc[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,Tc._)`{comparison: ${Nc[e].okStr}, limit: ${t}}`,"params")},cj={keyword:Object.keys(Nc),type:"number",schemaType:"number",$data:!0,error:aj,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Tc._)`${r} ${Nc[t].fail} ${n} || isNaN(${r})`)}};_d.default=cj});var tb=b(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});var uj=eb(),lj=Sp(),fj=wp(),pj=Ep(),dj=Ap(),hj=Ip(),mj=Rp(),gj=Mp(),yj=Lp(),vj=Vp(),bj=[uj.default,lj.default,fj.default,pj.default,dj.default,hj.default,mj.default,gj.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},yj.default,vj.default];Sd.default=bj});var Pd=b(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.dynamicAnchor=void 0;var Od=se(),_j=er(),rb=Po(),Sj=Ao(),Oj={keyword:"$dynamicAnchor",schemaType:"string",code:s(e=>nb(e,e.schema),"code")};function nb(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,Od._)`${_j.default.dynamicAnchors}${(0,Od.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:Pj(e);r.if((0,Od._)`!${i}`,()=>r.assign(i,o))}s(nb,"dynamicAnchor");Do.dynamicAnchor=nb;function Pj(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,l=new rb.SchemaEnv({schema:r,schemaId:u,root:i,baseId:o,localRefs:a,meta:c});return rb.compileSchema.call(n,l),(0,Sj.getValidate)(e,l)}s(Pj,"_getValidate");Do.default=Oj});var wd=b(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.dynamicRef=void 0;var ib=se(),wj=er(),sb=Ao(),$j={keyword:"$dynamicRef",schemaType:"string",code:s(e=>ob(e,e.schema),"code")};function ob(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=t.slice(1);if(i.allErrors)a();else{let u=r.let("valid",!1);a(u),e.ok(u)}function a(u){if(i.schemaEnv.root.dynamicAnchors[o]){let l=r.let("_v",(0,ib._)`${wj.default.dynamicAnchors}${(0,ib.getProperty)(o)}`);r.if(l,c(l,u),c(i.validateName,u))}else c(i.validateName,u)()}s(a,"_dynamicRef");function c(u,l){return l?()=>r.block(()=>{(0,sb.callRef)(e,u),r.let(l,!0)}):()=>(0,sb.callRef)(e,u)}s(c,"_callRef")}s(ob,"dynamicRef");Lo.dynamicRef=ob;Lo.default=$j});var ab=b($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});var Ej=Pd(),xj=he(),Aj={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,Ej.dynamicAnchor)(e,""):(0,xj.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};$d.default=Aj});var cb=b(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var Cj=wd(),Ij={keyword:"$recursiveRef",schemaType:"string",code:s(e=>(0,Cj.dynamicRef)(e,e.schema),"code")};Ed.default=Ij});var ub=b(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});var jj=Pd(),Rj=wd(),Tj=ab(),Nj=cb(),kj=[jj.default,Rj.default,Tj.default,Nj.default];xd.default=kj});var fb=b(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var lb=wc(),Mj={keyword:"dependentRequired",type:"object",schemaType:"object",error:lb.error,code:s(e=>(0,lb.validatePropertyDeps)(e),"code")};Ad.default=Mj});var pb=b(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});var qj=wc(),Dj={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,qj.validateSchemaDeps)(e),"code")};Cd.default=Dj});var db=b(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});var Lj=he(),Fj={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,Lj.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Id.default=Fj});var hb=b(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});var Vj=fb(),Bj=pb(),Hj=db(),Uj=[Vj.default,Bj.default,Hj.default];jd.default=Uj});var gb=b(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});var bn=se(),mb=he(),zj=er(),Gj={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,bn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},Wj={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Gj,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:o}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=o;c instanceof bn.Name?t.if((0,bn._)`${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))),o.props=!0,e.ok((0,bn._)`${i} === ${zj.default.errors}`);function u(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,mb.alwaysValidSchema)(o,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:mb.Type.Str},d),a||t.if((0,bn.not)(d),()=>t.break())}}s(u,"unevaluatedPropCode");function l(f,d){return(0,bn._)`!${f} || !${f}[${d}]`}s(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let y in f)f[y]===!0&&h.push((0,bn._)`${d} !== ${y}`);return(0,bn.and)(...h)}s(p,"unevaluatedStatic")}};Rd.default=Wj});var vb=b(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});var li=se(),yb=he(),Kj={message:s(({params:{len:e}})=>(0,li.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,li._)`{limit: ${e}}`,"params")},Zj={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Kj,code(e){let{gen:t,schema:r,data:n,it:i}=e,o=i.items||0;if(o===!0)return;let a=t.const("len",(0,li._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,li._)`${a} > ${o}`);else if(typeof r=="object"&&!(0,yb.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,li._)`${a} <= ${o}`);t.if((0,li.not)(u),()=>c(u,o)),e.ok(u)}i.items=!0;function c(u,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:yb.Type.Num},u),i.allErrors||t.if((0,li.not)(u),()=>t.break())})}s(c,"validateItems")}};Td.default=Zj});var bb=b(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});var Yj=gb(),Jj=vb(),Qj=[Yj.default,Jj.default];Nd.default=Qj});var _b=b(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.contentVocabulary=us.metadataVocabulary=void 0;us.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];us.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Ob=b(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});var Xj=X0(),eR=tb(),tR=ud(),rR=ub(),nR=hb(),iR=bb(),sR=pd(),Sb=_b(),oR=[rR.default,Xj.default,eR.default,(0,tR.default)(!0),sR.default,Sb.metadataVocabulary,Sb.contentVocabulary,nR.default,iR.default];kd.default=oR});var Pb=b((E7,aR)=>{aR.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 wb=b((x7,cR)=>{cR.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 $b=b((A7,uR)=>{uR.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 Eb=b((C7,lR)=>{lR.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 xb=b((I7,fR)=>{fR.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 Ab=b((j7,pR)=>{pR.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 Cb=b((R7,dR)=>{dR.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 Ib=b((T7,hR)=>{hR.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 jb=b(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});var mR=Pb(),gR=wb(),yR=$b(),vR=Eb(),bR=xb(),_R=Ab(),SR=Cb(),OR=Ib(),PR=["/properties"];function wR(e){return[mR,gR,yR,vR,bR,t(this,_R),SR,t(this,OR)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,PR):n}s(t,"with$data")}s(wR,"addMetaSchema2020");Md.default=wR});var Rb=b((Ne,Dd)=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.MissingRefError=Ne.ValidationError=Ne.CodeGen=Ne.Name=Ne.nil=Ne.stringify=Ne.str=Ne._=Ne.KeywordCxt=Ne.Ajv2020=void 0;var $R=ss(),ER=Ob(),xR=gd(),AR=jb(),qd="https://json-schema.org/draft/2020-12/schema",Ld=class Ld extends $R.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),ER.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(xR.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(AR.default.call(this,t),this.refs["http://json-schema.org/schema"]=qd)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(qd)?qd:void 0)}};s(Ld,"Ajv2020");var ls=Ld;Ne.Ajv2020=ls;Dd.exports=Ne=ls;Dd.exports.Ajv2020=ls;Object.defineProperty(Ne,"__esModule",{value:!0});Ne.default=ls;var CR=So();Object.defineProperty(Ne,"KeywordCxt",{enumerable:!0,get:s(function(){return CR.KeywordCxt},"get")});var fs=se();Object.defineProperty(Ne,"_",{enumerable:!0,get:s(function(){return fs._},"get")});Object.defineProperty(Ne,"str",{enumerable:!0,get:s(function(){return fs.str},"get")});Object.defineProperty(Ne,"stringify",{enumerable:!0,get:s(function(){return fs.stringify},"get")});Object.defineProperty(Ne,"nil",{enumerable:!0,get:s(function(){return fs.nil},"get")});Object.defineProperty(Ne,"Name",{enumerable:!0,get:s(function(){return fs.Name},"get")});Object.defineProperty(Ne,"CodeGen",{enumerable:!0,get:s(function(){return fs.CodeGen},"get")});var IR=pc();Object.defineProperty(Ne,"ValidationError",{enumerable:!0,get:s(function(){return IR.default},"get")});var jR=Oo();Object.defineProperty(Ne,"MissingRefError",{enumerable:!0,get:s(function(){return jR.default},"get")})});var Tb=b((q7,RR)=>{RR.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 Nb=b((D7,TR)=>{TR.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 kb=b((L7,NR)=>{NR.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 Mb=b((F7,kR)=>{kR.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 qb=b((ot,ps)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.openapi=ot.openapiV31=ot.openapiV3=ot.openapiV2=ot.openapiV1=void 0;ot.openapiV1=Tb();ot.openapiV2=Nb();ot.openapiV3=kb();ot.openapiV31=Mb();ot.openapi={v1:ot.openapiV1,v2:ot.openapiV2,v3:ot.openapiV3,v31:ot.openapiV31};ot.default=ot.openapi;typeof ps=="object"&&typeof ps.exports=="object"&&(ps.exports=Object.assign(ps.exports.default,ps.exports))});var Bd=b((V7,Db)=>{"use strict";var MR=Wa(),{ono:qR}=hr(),DR=J0(),LR=Rb(),{openapi:Fd}=qb();Db.exports=FR;function FR(e){let t,r;if(e.swagger)r=Fd.v2,t=Vd();else if(e.openapi.startsWith("3.1")){r=Fd.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=Vd(!1)}else r=Fd.v3,t=Vd();if(!t.validate(r,e)){let i=t.errors,o=`Swagger schema validation failed.
14
- `+VR(i);throw qR.syntax(i,{details:i},o)}}s(FR,"validateSchema");function Vd(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new DR(t):new LR(t)}s(Vd,"initializeAjv");function VR(e,t){t=t||" ";let r="";for(let n of e)r+=MR.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
15
- `);return r}s(VR,"formatAjvError")});var Fb=b((H7,Lb)=>{"use strict";Lb.exports=["get","put","post","delete","options","head","patch"]});var zd=b((U7,Ub)=>{"use strict";var BR=Wa(),{ono:gt}=hr(),HR=Fb(),Hd=["array","boolean","integer","number","string"],Bb=["array","boolean","integer","number","string","object","null",void 0];Ub.exports=UR;function UR(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let o=e.paths[i],a="/paths"+i;o&&i.indexOf("/")===0&&zR(e,o,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let o=e.definitions[i],a="/definitions/"+i;Hb(o,a)}}s(UR,"validateSpec");function zR(e,t,r,n){for(let i of HR){let o=t[i],a=r+"/"+i;if(o){let c=o.operationId;if(c)if(n.indexOf(c)===-1)n.push(c);else throw gt.syntax(`Validation failed. Duplicate operation id '${c}'`);GR(e,t,r,o,a);let u=Object.keys(o.responses||{});for(let l of u){let p=o.responses[l],f=a+"/responses/"+l;YR(l,p||{},f)}}}}s(zR,"validatePath");function GR(e,t,r,n,i){let o=t.parameters||[],a=n.parameters||[];try{Vb(o)}catch(u){throw gt.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{Vb(a)}catch(u){throw gt.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=o.reduce((u,l)=>(u.some(f=>f.in===l.in&&f.name===l.name)||u.push(l),u),a.slice());WR(c,i),KR(c,r,i),ZR(c,e,n,i)}s(GR,"validateParameters");function WR(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw gt.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw gt.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}s(WR,"validateBodyParameters");function KR(e,t,r){let n=t.match(BR.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let o=i+1;o<n.length;o++)if(n[i]===n[o])throw gt.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 gt.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let o=n.indexOf("{"+i.name+"}");if(o===-1)throw gt.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(o,1)}if(n.length>0)throw gt.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}s(KR,"validatePathParameters");function ZR(e,t,r,n){for(let i of e){let o=n+"/parameters/"+i.name,a,c;switch(i.in){case"body":a=i.schema,c=Bb;break;case"formData":a=i,c=Hd.concat("file");break;default:a=i,c=Hd}if(Ud(a,o,c),Hb(a,o),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 gt.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}s(ZR,"validateParameterTypes");function Vb(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 gt.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}s(Vb,"checkForDuplicates");function YR(e,t,r){if(e!=="default"&&(e<100||e>599))throw gt.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let o=t.headers[i],a=r+"/headers/"+i;Ud(o,a,Hd)}if(t.schema){let i=Bb.concat("file");if(i.indexOf(t.schema.type)===-1)throw gt.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Ud(t.schema,r+"/schema",i)}}s(YR,"validateResponse");function Ud(e,t,r){if(r.indexOf(e.type)===-1)throw gt.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw gt.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}s(Ud,"validateSchema");function Hb(e,t){function r(n,i){if(n.properties)for(let o in n.properties)n.properties.hasOwnProperty(o)&&(i[o]=n.properties[o]);if(n.allOf)for(let o of n.allOf)r(o,i)}if(s(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw gt.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}s(Hb,"validateRequiredPropertiesExist")});var _r=b(br=>{"use strict";var{Ono:zb}=hr(),{stripHash:Gb,toFileSystemPath:JR}=Vt(),ds,_n=br.JSONParserError=(ds=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,zb.extend(this)}},s(ds,"JSONParserError"),ds);Sn(_n);var fi,Wb=br.JSONParserErrorGroup=(fi=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${JR(t.$refs._root$Ref.path)}'`,zb.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 fi.getParserErrors(this.files)}},s(fi,"JSONParserErrorGroup"),fi);Sn(Wb);var hs,QR=br.ParserError=(hs=class extends _n{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},s(hs,"ParserError"),hs);Sn(QR);var ms,XR=br.UnmatchedParserError=(ms=class extends _n{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},s(ms,"UnmatchedParserError"),ms);Sn(XR);var gs,eT=br.ResolverError=(gs=class extends _n{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},s(gs,"ResolverError"),gs);Sn(eT);var ys,tT=br.UnmatchedResolverError=(ys=class extends _n{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},s(ys,"UnmatchedResolverError"),ys);Sn(tT);var vs,rT=br.MissingPointerError=(vs=class extends _n{constructor(t,r){super(`Token "${t}" does not exist.`,Gb(r)),this.code="EMISSINGPOINTER"}},s(vs,"MissingPointerError"),vs);Sn(rT);var bs,nT=br.InvalidPointerError=(bs=class extends _n{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,Gb(r)),this.code="EINVALIDPOINTER"}},s(bs,"InvalidPointerError"),bs);Sn(nT);function Sn(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}s(Sn,"setErrorName");br.isHandledError=function(e){return e instanceof _n||e instanceof Wb};br.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var Zb=b((K7,Kb)=>{"use strict";var{ParserError:iT}=_r();Kb.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 iT(r.message,e.url)}}else return t}}});var di=b((Z7,pi)=>{"use strict";function Yb(e){return typeof e>"u"||e===null}s(Yb,"isNothing");function sT(e){return typeof e=="object"&&e!==null}s(sT,"isObject");function oT(e){return Array.isArray(e)?e:Yb(e)?[]:[e]}s(oT,"toArray");function aT(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}s(aT,"extend");function cT(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}s(cT,"repeat");function uT(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}s(uT,"isNegativeZero");pi.exports.isNothing=Yb;pi.exports.isObject=sT;pi.exports.toArray=oT;pi.exports.repeat=cT;pi.exports.isNegativeZero=uT;pi.exports.extend=aT});var _s=b((J7,Jb)=>{"use strict";function Fo(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}s(Fo,"YAMLException");Fo.prototype=Object.create(Error.prototype);Fo.prototype.constructor=Fo;Fo.prototype.toString=s(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");Jb.exports=Fo});var e_=b((X7,Xb)=>{"use strict";var Qb=di();function Gd(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}s(Gd,"Mark");Gd.prototype.getSnippet=s(function(t,r){var n,i,o,a,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
16
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",a=this.position;a<this.buffer.length&&`\0\r
17
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){o=" ... ",a-=5;break}return c=this.buffer.slice(i,a),Qb.repeat(" ",t)+n+c+o+`
18
- `+Qb.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Gd.prototype.toString=s(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
19
- `+r)),n},"toString");Xb.exports=Gd});var tt=b((tV,r_)=>{"use strict";var t_=_s(),lT=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],fT=["scalar","sequence","mapping"];function pT(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}s(pT,"compileStyleAliases");function dT(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(lT.indexOf(r)===-1)throw new t_('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=pT(t.styleAliases||null),fT.indexOf(this.kind)===-1)throw new t_('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}s(dT,"Type");r_.exports=dT});var hi=b((nV,i_)=>{"use strict";var n_=di(),kc=_s(),hT=tt();function Wd(e,t,r){var n=[];return e.include.forEach(function(i){r=Wd(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,a){o.tag===i.tag&&o.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}s(Wd,"compileList");function mT(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(s(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}s(mT,"compileMap");function Ss(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 kc("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Wd(this,"implicit",[]),this.compiledExplicit=Wd(this,"explicit",[]),this.compiledTypeMap=mT(this.compiledImplicit,this.compiledExplicit)}s(Ss,"Schema");Ss.DEFAULT=null;Ss.create=s(function(){var t,r;switch(arguments.length){case 1:t=Ss.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new kc("Wrong number of arguments for Schema.create function")}if(t=n_.toArray(t),r=n_.toArray(r),!t.every(function(n){return n instanceof Ss}))throw new kc("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof hT}))throw new kc("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Ss({include:t,explicit:r})},"createSchema");i_.exports=Ss});var o_=b((sV,s_)=>{"use strict";var gT=tt();s_.exports=new gT("tag:yaml.org,2002:str",{kind:"scalar",construct:s(function(e){return e!==null?e:""},"construct")})});var c_=b((aV,a_)=>{"use strict";var yT=tt();a_.exports=new yT("tag:yaml.org,2002:seq",{kind:"sequence",construct:s(function(e){return e!==null?e:[]},"construct")})});var l_=b((uV,u_)=>{"use strict";var vT=tt();u_.exports=new vT("tag:yaml.org,2002:map",{kind:"mapping",construct:s(function(e){return e!==null?e:{}},"construct")})});var Mc=b((fV,f_)=>{"use strict";var bT=hi();f_.exports=new bT({explicit:[o_(),c_(),l_()]})});var d_=b((pV,p_)=>{"use strict";var _T=tt();function ST(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}s(ST,"resolveYamlNull");function OT(){return null}s(OT,"constructYamlNull");function PT(e){return e===null}s(PT,"isNull");p_.exports=new _T("tag:yaml.org,2002:null",{kind:"scalar",resolve:ST,construct:OT,predicate:PT,represent:{canonical:s(function(){return"~"},"canonical"),lowercase:s(function(){return"null"},"lowercase"),uppercase:s(function(){return"NULL"},"uppercase"),camelcase:s(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var m_=b((hV,h_)=>{"use strict";var wT=tt();function $T(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}s($T,"resolveYamlBoolean");function ET(e){return e==="true"||e==="True"||e==="TRUE"}s(ET,"constructYamlBoolean");function xT(e){return Object.prototype.toString.call(e)==="[object Boolean]"}s(xT,"isBoolean");h_.exports=new wT("tag:yaml.org,2002:bool",{kind:"scalar",resolve:$T,construct:ET,predicate:xT,represent:{lowercase:s(function(e){return e?"true":"false"},"lowercase"),uppercase:s(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:s(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var y_=b((gV,g_)=>{"use strict";var AT=di(),CT=tt();function IT(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}s(IT,"isHexCode");function jT(e){return 48<=e&&e<=55}s(jT,"isOctCode");function RT(e){return 48<=e&&e<=57}s(RT,"isDecCode");function TT(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(!IT(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!jT(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(!RT(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}s(TT,"resolveYamlInteger");function NT(e){var t=e,r=1,n,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){o.unshift(parseInt(a,10))}),t=0,i=1,o.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}s(NT,"constructYamlInteger");function kT(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!AT.isNegativeZero(e)}s(kT,"isInteger");g_.exports=new CT("tag:yaml.org,2002:int",{kind:"scalar",resolve:TT,construct:NT,predicate:kT,represent:{binary:s(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:s(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:s(function(e){return e.toString(10)},"decimal"),hexadecimal:s(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var __=b((vV,b_)=>{"use strict";var v_=di(),MT=tt(),qT=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 DT(e){return!(e===null||!qT.test(e)||e[e.length-1]==="_")}s(DT,"resolveYamlFloat");function LT(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}s(LT,"constructYamlFloat");var FT=/^[-+]?[0-9]+e/;function VT(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(v_.isNegativeZero(e))return"-0.0";return r=e.toString(10),FT.test(r)?r.replace("e",".e"):r}s(VT,"representYamlFloat");function BT(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||v_.isNegativeZero(e))}s(BT,"isFloat");b_.exports=new MT("tag:yaml.org,2002:float",{kind:"scalar",resolve:DT,construct:LT,predicate:BT,represent:VT,defaultStyle:"lowercase"})});var Kd=b((_V,S_)=>{"use strict";var HT=hi();S_.exports=new HT({include:[Mc()],implicit:[d_(),m_(),y_(),__()]})});var Zd=b((SV,O_)=>{"use strict";var UT=hi();O_.exports=new UT({include:[Kd()]})});var E_=b((OV,$_)=>{"use strict";var zT=tt(),P_=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),w_=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 GT(e){return e===null?!1:P_.exec(e)!==null||w_.exec(e)!==null}s(GT,"resolveYamlTimestamp");function WT(e){var t,r,n,i,o,a,c,u=0,l=null,p,f,d;if(t=P_.exec(e),t===null&&(t=w_.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],a=+t[5],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,o,a,c,u)),l&&d.setTime(d.getTime()-l),d}s(WT,"constructYamlTimestamp");function KT(e){return e.toISOString()}s(KT,"representYamlTimestamp");$_.exports=new zT("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:GT,construct:WT,instanceOf:Date,represent:KT})});var A_=b((wV,x_)=>{"use strict";var ZT=tt();function YT(e){return e==="<<"||e===null}s(YT,"resolveYamlMerge");x_.exports=new ZT("tag:yaml.org,2002:merge",{kind:"scalar",resolve:YT})});var j_=b((EV,I_)=>{"use strict";var mi;try{C_=require,mi=C_("buffer").Buffer}catch{}var C_,JT=tt(),Yd=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
20
- \r`;function QT(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=Yd;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}s(QT,"resolveYamlBinary");function XT(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=Yd,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|o.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),mi?mi.from?mi.from(c):new mi(c):c}s(XT,"constructYamlBinary");function eN(e){var t="",r=0,n,i,o=e.length,a=Yd;for(n=0;n<o;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}s(eN,"representYamlBinary");function tN(e){return mi&&mi.isBuffer(e)}s(tN,"isBinary");I_.exports=new JT("tag:yaml.org,2002:binary",{kind:"scalar",resolve:QT,construct:XT,predicate:tN,represent:eN})});var T_=b((AV,R_)=>{"use strict";var rN=tt(),nN=Object.prototype.hasOwnProperty,iN=Object.prototype.toString;function sN(e){if(e===null)return!0;var t=[],r,n,i,o,a,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],a=!1,iN.call(i)!=="[object Object]")return!1;for(o in i)if(nN.call(i,o))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}s(sN,"resolveYamlOmap");function oN(e){return e!==null?e:[]}s(oN,"constructYamlOmap");R_.exports=new rN("tag:yaml.org,2002:omap",{kind:"sequence",resolve:sN,construct:oN})});var k_=b((IV,N_)=>{"use strict";var aN=tt(),cN=Object.prototype.toString;function uN(e){if(e===null)return!0;var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],cN.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}s(uN,"resolveYamlPairs");function lN(e){if(e===null)return[];var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}s(lN,"constructYamlPairs");N_.exports=new aN("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:uN,construct:lN})});var q_=b((RV,M_)=>{"use strict";var fN=tt(),pN=Object.prototype.hasOwnProperty;function dN(e){if(e===null)return!0;var t,r=e;for(t in r)if(pN.call(r,t)&&r[t]!==null)return!1;return!0}s(dN,"resolveYamlSet");function hN(e){return e!==null?e:{}}s(hN,"constructYamlSet");M_.exports=new fN("tag:yaml.org,2002:set",{kind:"mapping",resolve:dN,construct:hN})});var Os=b((NV,D_)=>{"use strict";var mN=hi();D_.exports=new mN({include:[Zd()],implicit:[E_(),A_()],explicit:[j_(),T_(),k_(),q_()]})});var F_=b((kV,L_)=>{"use strict";var gN=tt();function yN(){return!0}s(yN,"resolveJavascriptUndefined");function vN(){}s(vN,"constructJavascriptUndefined");function bN(){return""}s(bN,"representJavascriptUndefined");function _N(e){return typeof e>"u"}s(_N,"isUndefined");L_.exports=new gN("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:yN,construct:vN,predicate:_N,represent:bN})});var B_=b((qV,V_)=>{"use strict";var SN=tt();function ON(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}s(ON,"resolveJavascriptRegExp");function PN(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}s(PN,"constructJavascriptRegExp");function wN(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}s(wN,"representJavascriptRegExp");function $N(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s($N,"isRegExp");V_.exports=new SN("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:ON,construct:PN,predicate:$N,represent:wN})});var z_=b((LV,U_)=>{"use strict";var qc;try{H_=require,qc=H_("esprima")}catch{typeof window<"u"&&(qc=window.esprima)}var H_,EN=tt();function xN(e){if(e===null)return!1;try{var t="("+e+")",r=qc.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}s(xN,"resolveJavascriptFunction");function AN(e){var t="("+e+")",r=qc.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(o){n.push(o.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}s(AN,"constructJavascriptFunction");function CN(e){return e.toString()}s(CN,"representJavascriptFunction");function IN(e){return Object.prototype.toString.call(e)==="[object Function]"}s(IN,"isFunction");U_.exports=new EN("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:xN,construct:AN,predicate:IN,represent:CN})});var Vo=b((VV,W_)=>{"use strict";var G_=hi();W_.exports=G_.DEFAULT=new G_({include:[Os()],explicit:[F_(),B_(),z_()]})});var pS=b((BV,Bo)=>{"use strict";var Jr=di(),eS=_s(),jN=e_(),tS=Os(),RN=Vo(),Pn=Object.prototype.hasOwnProperty,Dc=1,rS=2,nS=3,Lc=4,Jd=1,TN=2,K_=3,NN=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,kN=/[\x85\u2028\u2029]/,MN=/[,\[\]\{\}]/,iS=/^(?:!|!!|![a-z\-]+!)$/i,sS=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Z_(e){return Object.prototype.toString.call(e)}s(Z_,"_class");function kr(e){return e===10||e===13}s(kr,"is_EOL");function yi(e){return e===9||e===32}s(yi,"is_WHITE_SPACE");function Nt(e){return e===9||e===32||e===10||e===13}s(Nt,"is_WS_OR_EOL");function Ps(e){return e===44||e===91||e===93||e===123||e===125}s(Ps,"is_FLOW_INDICATOR");function qN(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}s(qN,"fromHexCode");function DN(e){return e===120?2:e===117?4:e===85?8:0}s(DN,"escapedHexLen");function LN(e){return 48<=e&&e<=57?e-48:-1}s(LN,"fromDecimalCode");function Y_(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":""}s(Y_,"simpleEscapeSequence");function FN(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}s(FN,"charFromCodepoint");var oS=new Array(256),aS=new Array(256);for(gi=0;gi<256;gi++)oS[gi]=Y_(gi)?1:0,aS[gi]=Y_(gi);var gi;function VN(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||RN,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}s(VN,"State");function cS(e,t){return new eS(t,new jN(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}s(cS,"generateError");function ee(e,t){throw cS(e,t)}s(ee,"throwError");function Fc(e,t){e.onWarning&&e.onWarning.call(null,cS(e,t))}s(Fc,"throwWarning");var J_={YAML:s(function(t,r,n){var i,o,a;t.version!==null&&ee(t,"duplication of %YAML directive"),n.length!==1&&ee(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&ee(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&ee(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Fc(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:s(function(t,r,n){var i,o;n.length!==2&&ee(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],iS.test(i)||ee(t,"ill-formed tag handle (first argument) of the TAG directive"),Pn.call(t.tagMap,i)&&ee(t,'there is a previously declared suffix for "'+i+'" tag handle'),sS.test(o)||ee(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o},"handleTagDirective")};function On(e,t,r,n){var i,o,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,o=c.length;i<o;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||ee(e,"expected valid JSON character");else NN.test(c)&&ee(e,"the stream contains non-printable characters");e.result+=c}}s(On,"captureSegment");function Q_(e,t,r,n){var i,o,a,c;for(Jr.isObject(r)||ee(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)o=i[a],Pn.call(t,o)||(t[o]=r[o],n[o]=!0)}s(Q_,"mergeMappings");function ws(e,t,r,n,i,o,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])&&ee(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Z_(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&Z_(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(u=0,l=o.length;u<l;u+=1)Q_(e,t,o[u],r);else Q_(e,t,o,r);else!e.json&&!Pn.call(r,i)&&Pn.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,ee(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}s(ws,"storeMappingPair");function Qd(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++):ee(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}s(Qd,"readLineBreak");function Ye(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;yi(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(kr(i))for(Qd(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&&Fc(e,"deficient indentation"),n}s(Ye,"skipSeparationSpace");function Vc(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||Nt(r)))}s(Vc,"testDocumentSeparator");function Xd(e,t){t===1?e.result+=" ":t>1&&(e.result+=Jr.repeat(`
22
- `,t-1))}s(Xd,"writeFoldedLines");function BN(e,t,r){var n,i,o,a,c,u,l,p,f=e.kind,d=e.result,h;if(h=e.input.charCodeAt(e.position),Nt(h)||Ps(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),Nt(i)||r&&Ps(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,c=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),Nt(i)||r&&Ps(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Nt(n))break}else{if(e.position===e.lineStart&&Vc(e)||r&&Ps(h))break;if(kr(h))if(u=e.line,l=e.lineStart,p=e.lineIndent,Ye(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&&(On(e,o,a,!1),Xd(e,e.line-u),o=a=e.position,c=!1),yi(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return On(e,o,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}s(BN,"readPlainScalar");function HN(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(On(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 kr(r)?(On(e,n,i,!0),Xd(e,Ye(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Vc(e)?ee(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ee(e,"unexpected end of the stream within a single quoted scalar")}s(HN,"readSingleQuotedScalar");function UN(e,t){var r,n,i,o,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 On(e,r,e.position,!0),e.position++,!0;if(c===92){if(On(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),kr(c))Ye(e,!1,t);else if(c<256&&oS[c])e.result+=aS[c],e.position++;else if((a=DN(c))>0){for(i=a,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=qN(c))>=0?o=(o<<4)+a:ee(e,"expected hexadecimal character");e.result+=FN(o),e.position++}else ee(e,"unknown escape sequence");r=n=e.position}else kr(c)?(On(e,r,n,!0),Xd(e,Ye(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Vc(e)?ee(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ee(e,"unexpected end of the stream within a double quoted scalar")}s(UN,"readDoubleQuotedScalar");function zN(e,t){var r=!0,n,i=e.tag,o,a=e.anchor,c,u,l,p,f,d={},h,y,v,g;if(g=e.input.charCodeAt(e.position),g===91)u=93,f=!1,o=[];else if(g===123)u=125,f=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),g=e.input.charCodeAt(++e.position);g!==0;){if(Ye(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=o,!0;r||ee(e,"missed comma between flow collection entries"),y=h=v=null,l=p=!1,g===63&&(c=e.input.charCodeAt(e.position+1),Nt(c)&&(l=p=!0,e.position++,Ye(e,!0,t))),n=e.line,$s(e,t,Dc,!1,!0),y=e.tag,h=e.result,Ye(e,!0,t),g=e.input.charCodeAt(e.position),(p||e.line===n)&&g===58&&(l=!0,g=e.input.charCodeAt(++e.position),Ye(e,!0,t),$s(e,t,Dc,!1,!0),v=e.result),f?ws(e,o,d,y,h,v):l?o.push(ws(e,null,d,y,h,v)):o.push(h),Ye(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(r=!0,g=e.input.charCodeAt(++e.position)):r=!1}ee(e,"unexpected end of the stream within a flow collection")}s(zN,"readFlowCollection");function GN(e,t){var r,n,i=Jd,o=!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)Jd===i?i=f===43?K_:TN:ee(e,"repeat of a chomping mode identifier");else if((p=LN(f))>=0)p===0?ee(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?ee(e,"repeat of an indentation width identifier"):(c=t+p-1,a=!0);else break;if(yi(f)){do f=e.input.charCodeAt(++e.position);while(yi(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!kr(f)&&f!==0)}for(;f!==0;){for(Qd(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),kr(f)){u++;continue}if(e.lineIndent<c){i===K_?e.result+=Jr.repeat(`
23
- `,o?1+u:u):i===Jd&&o&&(e.result+=`
24
- `);break}for(n?yi(f)?(l=!0,e.result+=Jr.repeat(`
25
- `,o?1+u:u)):l?(l=!1,e.result+=Jr.repeat(`
26
- `,u+1)):u===0?o&&(e.result+=" "):e.result+=Jr.repeat(`
27
- `,u):e.result+=Jr.repeat(`
28
- `,o?1+u:u),o=!0,a=!0,u=0,r=e.position;!kr(f)&&f!==0;)f=e.input.charCodeAt(++e.position);On(e,r,e.position,!1)}return!0}s(GN,"readBlockScalar");function X_(e,t){var r,n=e.tag,i=e.anchor,o=[],a,c=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!Nt(a)));){if(c=!0,e.position++,Ye(e,!0,-1)&&e.lineIndent<=t){o.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,$s(e,t,nS,!1,!0),o.push(e.result),Ye(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)ee(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=o,!0):!1}s(X_,"readBlockSequence");function WN(e,t,r){var n,i,o,a,c=e.tag,u=e.anchor,l={},p={},f=null,d=null,h=null,y=!1,v=!1,g;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),g=e.input.charCodeAt(e.position);g!==0;){if(n=e.input.charCodeAt(e.position+1),o=e.line,a=e.position,(g===63||g===58)&&Nt(n))g===63?(y&&(ws(e,l,p,f,d,null),f=d=h=null),v=!0,y=!0,i=!0):y?(y=!1,i=!0):ee(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($s(e,r,rS,!1,!0))if(e.line===o){for(g=e.input.charCodeAt(e.position);yi(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),Nt(g)||ee(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(ws(e,l,p,f,d,null),f=d=h=null),v=!0,y=!1,i=!1,f=e.tag,d=e.result;else if(v)ee(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(v)ee(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===o||e.lineIndent>t)&&($s(e,t,Lc,!0,i)&&(y?d=e.result:h=e.result),y||(ws(e,l,p,f,d,h,o,a),f=d=h=null),Ye(e,!0,-1),g=e.input.charCodeAt(e.position)),e.lineIndent>t&&g!==0)ee(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&ws(e,l,p,f,d,null),v&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),v}s(WN,"readBlockMapping");function KN(e){var t,r=!1,n=!1,i,o,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&ee(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(o=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):ee(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Nt(a);)a===33&&(n?ee(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),iS.test(i)||ee(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),MN.test(o)&&ee(e,"tag suffix cannot contain flow indicator characters")}return o&&!sS.test(o)&&ee(e,"tag name cannot contain such characters: "+o),r?e.tag=o:Pn.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:ee(e,'undeclared tag handle "'+i+'"'),!0}s(KN,"readTagProperty");function ZN(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ee(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Nt(r)&&!Ps(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}s(ZN,"readAnchorProperty");function YN(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&&!Nt(n)&&!Ps(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Pn.call(e.anchorMap,r)||ee(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Ye(e,!0,-1),!0}s(YN,"readAlias");function $s(e,t,r,n,i){var o,a,c,u=1,l=!1,p=!1,f,d,h,y,v;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=c=Lc===r||nS===r,n&&Ye(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;KN(e)||ZN(e);)Ye(e,!0,-1)?(l=!0,c=o,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=l||i),(u===1||Lc===r)&&(Dc===r||rS===r?y=t:y=t+1,v=e.position-e.lineStart,u===1?c&&(X_(e,v)||WN(e,v,y))||zN(e,y)?p=!0:(a&&GN(e,y)||HN(e,y)||UN(e,y)?p=!0:YN(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&ee(e,"alias node should not have any properties")):BN(e,y,Dc===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(p=c&&X_(e,v))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ee(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 Pn.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&ee(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)):ee(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):ee(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}s($s,"composeNode");function JN(e){var t=e.position,r,n,i,o=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(Ye(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(o=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Nt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&ee(e,"directive name must not be less than one character in length");a!==0;){for(;yi(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!kr(a));break}if(kr(a))break;for(r=e.position;a!==0&&!Nt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Qd(e),Pn.call(J_,n)?J_[n](e,n,i):Fc(e,'unknown document directive "'+n+'"')}if(Ye(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,Ye(e,!0,-1)):o&&ee(e,"directives end mark is expected"),$s(e,e.lineIndent-1,Lc,!1,!0),Ye(e,!0,-1),e.checkLineBreaks&&kN.test(e.input.slice(t,e.position))&&Fc(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Vc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ye(e,!0,-1));return}if(e.position<e.length-1)ee(e,"end of the stream or a document separator is expected");else return}s(JN,"readDocument");function uS(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 VN(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,ee(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;)JN(r);return r.documents}s(uS,"loadDocuments");function lS(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=uS(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}s(lS,"loadAll");function fS(e,t){var r=uS(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new eS("expected a single document in the stream, but found more")}}s(fS,"load");function QN(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),lS(e,t,Jr.extend({schema:tS},r))}s(QN,"safeLoadAll");function XN(e,t){return fS(e,Jr.extend({schema:tS},t))}s(XN,"safeLoad");Bo.exports.loadAll=lS;Bo.exports.load=fS;Bo.exports.safeLoadAll=QN;Bo.exports.safeLoad=XN});var kS=b((UV,nh)=>{"use strict";var Uo=di(),zo=_s(),ek=Vo(),tk=Os(),_S=Object.prototype.toString,SS=Object.prototype.hasOwnProperty,rk=9,Ho=10,nk=13,ik=32,sk=33,ok=34,OS=35,ak=37,ck=38,uk=39,lk=42,PS=44,fk=45,wS=58,pk=61,dk=62,hk=63,mk=64,$S=91,ES=93,gk=96,xS=123,yk=124,AS=125,yt={};yt[0]="\\0";yt[7]="\\a";yt[8]="\\b";yt[9]="\\t";yt[10]="\\n";yt[11]="\\v";yt[12]="\\f";yt[13]="\\r";yt[27]="\\e";yt[34]='\\"';yt[92]="\\\\";yt[133]="\\N";yt[160]="\\_";yt[8232]="\\L";yt[8233]="\\P";var vk=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function bk(e,t){var r,n,i,o,a,c,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;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&&SS.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}s(bk,"compileStyleMap");function dS(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 zo("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Uo.repeat("0",n-t.length)+t}s(dS,"encodeHex");function _k(e){this.schema=e.schema||ek,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Uo.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=bk(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}s(_k,"State");function hS(e,t){for(var r=Uo.repeat(" ",t),n=0,i=-1,o="",a,c=e.length;n<c;)i=e.indexOf(`
13
+ deps: ${r}}`,"params")};var pI={keyword:"dependencies",type:"object",schemaType:"object",error:Dr.error,code(e){let[t,r]=dI(e);jv(e,t),Tv(e,r)}};function dI({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(dI,"splitDependencies");function jv(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,Ls.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,Ls.checkReportMissingProp)(e,l)}):(r.if((0,id._)`${u} && (${(0,Ls.checkMissingProp)(e,c,s)})`),(0,Ls.reportMissingProp)(e,s),r.else())}}o(jv,"validatePropertyDeps");Dr.validatePropertyDeps=jv;function Tv(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,fI.alwaysValidSchema)(s,t[c])||(r.if((0,Ls.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(Tv,"validateSchemaDeps");Dr.validateSchemaDeps=Tv;Dr.default=pI});var kv=b(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});var Nv=se(),hI=he(),mI={message:"property name must be valid",params:o(({params:e})=>(0,Nv._)`{propertyName: ${e.propertyName}}`,"params")},gI={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:mI,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,hI.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,Nv.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};od.default=gI});var ad=b(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});var Cc=ir(),Sr=se(),yI=nr(),Ic=he(),vI={message:"must NOT have additional properties",params:o(({params:e})=>(0,Sr._)`{additionalProperty: ${e.additionalProperty}}`,"params")},bI={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:vI,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,Ic.alwaysValidSchema)(a,r))return;let l=(0,Cc.allSchemaProperties)(n.properties),p=(0,Cc.allSchemaProperties)(n.patternProperties);f(),e.ok((0,Sr._)`${s} === ${yI.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 $;if(l.length>8){let A=(0,Ic.schemaRefOrVal)(a,n.properties,"properties");$=(0,Cc.isOwnProperty)(t,A,g)}else l.length?$=(0,Sr.or)(...l.map(A=>(0,Sr._)`${g} === ${A}`)):$=Sr.nil;return p.length&&($=(0,Sr.or)($,...p.map(A=>(0,Sr._)`${(0,Cc.usePattern)(e,A)}.test(${g})`))),(0,Sr.not)($)}o(d,"isAdditional");function h(g){t.code((0,Sr._)`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,Ic.alwaysValidSchema)(a,r)){let $=t.name("valid");u.removeAdditional==="failing"?(v(g,$,!1),t.if((0,Sr.not)($),()=>{e.reset(),h(g)})):(v(g,$),c||t.if((0,Sr.not)($),()=>t.break()))}}o(y,"additionalPropertyCode");function v(g,$,A){let C={keyword:"additionalProperties",dataProp:g,dataPropType:Ic.Type.Str};A===!1&&Object.assign(C,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(C,$)}o(v,"applyAdditionalSchema")}};sd.default=bI});var Dv=b(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});var _I=Os(),Mv=ir(),cd=he(),qv=ad(),SI={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&&qv.default.code(new _I.KeywordCxt(s,qv.default,"additionalProperties"));let a=(0,Mv.allSchemaProperties)(r);for(let f of a)s.definedProperties.add(f);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=cd.mergeEvaluated.props(t,(0,cd.toHash)(a),s.props));let c=a.filter(f=>!(0,cd.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,Mv.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=SI});var Bv=b(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});var Lv=ir(),Rc=se(),Fv=he(),Vv=he(),PI={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,Lv.allSchemaProperties)(r),u=c.filter(v=>(0,Fv.alwaysValidSchema)(s,r[v]));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 Rc.Name)&&(s.props=(0,Vv.evaluatedPropsToName)(t,s.props));let{props:f}=s;d();function d(){for(let v of c)l&&h(v),s.allErrors?y(v):(t.var(p,!0),y(v),t.if(p))}o(d,"validatePatternProperties");function h(v){for(let g in l)new RegExp(v).test(g)&&(0,Fv.checkStrictMode)(s,`property ${g} matches pattern ${v} (use allowMatchingProperties)`)}o(h,"checkMatchingProperties");function y(v){t.forIn("key",n,g=>{t.if((0,Rc._)`${(0,Lv.usePattern)(e,v)}.test(${g})`,()=>{let $=u.includes(v);$||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:g,dataPropType:Vv.Type.Str},p),s.opts.unevaluated&&f!==!0?t.assign((0,Rc._)`${f}[${g}]`,!0):!$&&!s.allErrors&&t.if((0,Rc.not)(p),()=>t.break())})})}o(y,"validateProperties")}};ld.default=PI});var Hv=b(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});var OI=he(),wI={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,OI.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"}};fd.default=wI});var Uv=b(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});var $I=ir(),EI={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:$I.validateUnion,error:{message:"must match a schema in anyOf"}};pd.default=EI});var zv=b(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});var jc=se(),xI=he(),AI={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,jc._)`{passingSchemas: ${e.passing}}`,"params")},CI={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:AI,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,xI.alwaysValidSchema)(i,p)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,jc._)`${u} && ${a}`).assign(a,!1).assign(c,(0,jc._)`[${c}, ${f}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,f),d&&e.mergeEvaluated(d,jc.Name)})})}o(l,"validateOneOf")}};dd.default=CI});var Gv=b(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});var II=he(),RI={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,II.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};hd.default=RI});var Kv=b(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});var Tc=se(),Wv=he(),jI={message:o(({params:e})=>(0,Tc.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,Tc._)`{failingKeyword: ${e.ifClause}}`,"params")},TI={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:jI,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Wv.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=Zv(n,"then"),s=Zv(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,Tc.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,Tc._)`${p}`):e.setParams({ifClause:p})}}o(l,"validateClause")}};function Zv(e,t){let r=e.schema[t];return r!==void 0&&!(0,Wv.alwaysValidSchema)(e,r)}o(Zv,"hasSchema");md.default=TI});var Yv=b(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});var NI=he(),kI={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,NI.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};gd.default=kI});var vd=b(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});var MI=Xp(),qI=Av(),DI=ed(),LI=Iv(),FI=Rv(),VI=Ac(),BI=kv(),HI=ad(),UI=Dv(),zI=Bv(),GI=Hv(),ZI=Uv(),WI=zv(),KI=Gv(),YI=Kv(),JI=Yv();function QI(e=!1){let t=[GI.default,ZI.default,WI.default,KI.default,YI.default,JI.default,BI.default,HI.default,VI.default,UI.default,zI.default];return e?t.push(qI.default,LI.default):t.push(MI.default,DI.default),t.push(FI.default),t}o(QI,"getApplicator");yd.default=QI});var Jv=b(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});var Je=se(),XI={message:o(({schemaCode:e})=>(0,Je.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Je._)`{format: ${e}}`,"params")},eR={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:XI,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}),v=r.const("fDef",(0,Je._)`${y}[${a}]`),g=r.let("fType"),$=r.let("format");r.if((0,Je._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>r.assign(g,(0,Je._)`${v}.type || "string"`).assign($,(0,Je._)`${v}.validate`),()=>r.assign(g,(0,Je._)`"string"`).assign($,v)),e.fail$data((0,Je.or)(A(),C()));function A(){return u.strictSchema===!1?Je.nil:(0,Je._)`${a} && !${$}`}o(A,"unknownFmt");function C(){let R=p.$async?(0,Je._)`(${v}.async ? await ${$}(${n}) : ${$}(${n}))`:(0,Je._)`${$}(${n})`,I=(0,Je._)`(typeof ${$} == "function" ? ${R} : ${$}.test(${n}))`;return(0,Je._)`${$} && ${$} !== true && ${g} === ${t} && !${I}`}o(C,"invalidFmt")}o(d,"validate$DataFormat");function h(){let y=f.formats[s];if(!y){A();return}if(y===!0)return;let[v,g,$]=C(y);v===t&&e.pass(R());function A(){if(u.strictSchema===!1){f.logger.warn(I());return}throw new Error(I());function I(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o(A,"unknownFormat");function C(I){let ae=I instanceof RegExp?(0,Je.regexpCode)(I):u.code.formats?(0,Je._)`${u.code.formats}${(0,Je.getProperty)(s)}`:void 0,re=r.scopeValue("formats",{key:s,ref:I,code:ae});return typeof I=="object"&&!(I instanceof RegExp)?[I.type||"string",I.validate,(0,Je._)`${re}.validate`]:["string",I,re]}o(C,"getFormat");function R(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Je._)`await ${$}(${n})`}return typeof g=="function"?(0,Je._)`${$}(${n})`:(0,Je._)`${$}.test(${n})`}o(R,"validCondition")}o(h,"validateFormat")}};bd.default=eR});var Sd=b(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});var tR=Jv(),rR=[tR.default];_d.default=rR});var Qv=b(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});var nR=yv(),iR=wv(),oR=vd(),sR=Sd(),aR=["title","description","default"],cR=[nR.default,iR.default,oR.default(),sR.default,aR];Pd.default=cR});var eb=b(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.DiscrError=void 0;var Xv;(function(e){e.Tag="tag",e.Mapping="mapping"})(Xv||(Nc.DiscrError=Xv={}))});var $d=b(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});var po=se(),Od=eb(),tb=$s(),uR=ws(),lR=he(),fR={message:o(({params:{discrError:e,tagName:t}})=>e===Od.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,po._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},pR={keyword:"discriminator",type:"object",schemaType:"object",error:fR,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,po._)`${r}${(0,po.getProperty)(c)}`);t.if((0,po._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:Od.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,po._)`${l} === ${y}`),t.assign(u,f(h[y]));t.else(),e.error(!1,{discrError:Od.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}o(p,"validateMapping");function f(h){let y=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:h},y);return e.mergeEvaluated(v,po.Name),y}o(f,"applyTagSchema");function d(){var h;let y={},v=$(i),g=!0;for(let R=0;R<a.length;R++){let I=a[R];if(I!=null&&I.$ref&&!(0,lR.schemaHasRulesButRef)(I,s.self.RULES)){let re=I.$ref;if(I=tb.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,re),I instanceof tb.SchemaEnv&&(I=I.schema),I===void 0)throw new uR.default(s.opts.uriResolver,s.baseId,re)}let ae=(h=I==null?void 0:I.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&&(v||$(I)),A(ae,R)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return y;function $({required:R}){return Array.isArray(R)&&R.includes(c)}function A(R,I){if(R.const)C(R.const,I);else if(R.enum)for(let ae of R.enum)C(ae,I);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function C(R,I){if(typeof R!="string"||R in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[R]=I}}o(d,"getMapping")}};wd.default=pR});var rb=b((P7,dR)=>{dR.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 ob=b((rt,ib)=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.CodeGen=rt.Name=rt.nil=rt.stringify=rt.str=rt._=rt.KeywordCxt=void 0;var hR=lo(),mR=Qv(),gR=$d(),nb=rb(),yR=["/properties"],kc="http://json-schema.org/draft-04/schema",Ed=class Ed extends hR.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),mR.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(gR.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(nb,yR):nb;this.addMetaSchema(t,kc,!1),this.refs["http://json-schema.org/schema"]=kc}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(kc)?kc:void 0)}};o(Ed,"Ajv");var Mc=Ed;ib.exports=rt=Mc;Object.defineProperty(rt,"__esModule",{value:!0});rt.default=Mc;var vR=lo();Object.defineProperty(rt,"KeywordCxt",{enumerable:!0,get:o(function(){return vR.KeywordCxt},"get")});var ho=lo();Object.defineProperty(rt,"_",{enumerable:!0,get:o(function(){return ho._},"get")});Object.defineProperty(rt,"str",{enumerable:!0,get:o(function(){return ho.str},"get")});Object.defineProperty(rt,"stringify",{enumerable:!0,get:o(function(){return ho.stringify},"get")});Object.defineProperty(rt,"nil",{enumerable:!0,get:o(function(){return ho.nil},"get")});Object.defineProperty(rt,"Name",{enumerable:!0,get:o(function(){return ho.Name},"get")});Object.defineProperty(rt,"CodeGen",{enumerable:!0,get:o(function(){return ho.CodeGen},"get")})});var sb=b(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});var bR={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};xd.default=bR});var ab=b(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var _R=sb(),SR=Is(),PR=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",_R.default,SR.default];Ad.default=PR});var cb=b(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});var qc=se(),Sn=qc.operators,Dc={maximum:{okStr:"<=",ok:Sn.LTE,fail:Sn.GT},minimum:{okStr:">=",ok:Sn.GTE,fail:Sn.LT},exclusiveMaximum:{okStr:"<",ok:Sn.LT,fail:Sn.GTE},exclusiveMinimum:{okStr:">",ok:Sn.GT,fail:Sn.LTE}},OR={message:o(({keyword:e,schemaCode:t})=>(0,qc.str)`must be ${Dc[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,qc._)`{comparison: ${Dc[e].okStr}, limit: ${t}}`,"params")},wR={keyword:Object.keys(Dc),type:"number",schemaType:"number",$data:!0,error:OR,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,qc._)`${r} ${Dc[t].fail} ${n} || isNaN(${r})`)}};Cd.default=wR});var ub=b(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});var $R=cb(),ER=Ip(),xR=Tp(),AR=kp(),CR=qp(),IR=Lp(),RR=Vp(),jR=zp(),TR=Wp(),NR=Yp(),kR=[$R.default,ER.default,xR.default,AR.default,CR.default,IR.default,RR.default,jR.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},TR.default,NR.default];Id.default=kR});var jd=b(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.dynamicAnchor=void 0;var Rd=se(),MR=nr(),lb=$s(),qR=Is(),DR={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>fb(e,e.schema),"code")};function fb(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,Rd._)`${MR.default.dynamicAnchors}${(0,Rd.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:LR(e);r.if((0,Rd._)`!${i}`,()=>r.assign(i,s))}o(fb,"dynamicAnchor");Fs.dynamicAnchor=fb;function LR(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 lb.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return lb.compileSchema.call(n,l),(0,qR.getValidate)(e,l)}o(LR,"_getValidate");Fs.default=DR});var Td=b(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.dynamicRef=void 0;var pb=se(),FR=nr(),db=Is(),VR={keyword:"$dynamicRef",schemaType:"string",code:o(e=>hb(e,e.schema),"code")};function hb(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,pb._)`${FR.default.dynamicAnchors}${(0,pb.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,db.callRef)(e,u),r.let(l,!0)}):()=>(0,db.callRef)(e,u)}o(c,"_callRef")}o(hb,"dynamicRef");Vs.dynamicRef=hb;Vs.default=VR});var mb=b(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});var BR=jd(),HR=he(),UR={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,BR.dynamicAnchor)(e,""):(0,HR.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Nd.default=UR});var gb=b(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});var zR=Td(),GR={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,zR.dynamicRef)(e,e.schema),"code")};kd.default=GR});var yb=b(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});var ZR=jd(),WR=Td(),KR=mb(),YR=gb(),JR=[ZR.default,WR.default,KR.default,YR.default];Md.default=JR});var bb=b(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});var vb=Ac(),QR={keyword:"dependentRequired",type:"object",schemaType:"object",error:vb.error,code:o(e=>(0,vb.validatePropertyDeps)(e),"code")};qd.default=QR});var _b=b(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});var XR=Ac(),ej={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,XR.validateSchemaDeps)(e),"code")};Dd.default=ej});var Sb=b(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});var tj=he(),rj={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,tj.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Ld.default=rj});var Pb=b(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});var nj=bb(),ij=_b(),oj=Sb(),sj=[nj.default,ij.default,oj.default];Fd.default=sj});var wb=b(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});var Pn=se(),Ob=he(),aj=nr(),cj={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,Pn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},uj={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:cj,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 Pn.Name?t.if((0,Pn._)`${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,Pn._)`${i} === ${aj.default.errors}`);function u(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,Ob.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:Ob.Type.Str},d),a||t.if((0,Pn.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(f,d){return(0,Pn._)`!${f} || !${f}[${d}]`}o(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let y in f)f[y]===!0&&h.push((0,Pn._)`${d} !== ${y}`);return(0,Pn.and)(...h)}o(p,"unevaluatedStatic")}};Vd.default=uj});var Eb=b(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});var mi=se(),$b=he(),lj={message:o(({params:{len:e}})=>(0,mi.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,mi._)`{limit: ${e}}`,"params")},fj={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:lj,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,mi._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,mi._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,$b.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,mi._)`${a} <= ${s}`);t.if((0,mi.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:$b.Type.Num},u),i.allErrors||t.if((0,mi.not)(u),()=>t.break())})}o(c,"validateItems")}};Bd.default=fj});var xb=b(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});var pj=wb(),dj=Eb(),hj=[pj.default,dj.default];Hd.default=hj});var Ab=b(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.contentVocabulary=mo.metadataVocabulary=void 0;mo.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];mo.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Ib=b(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});var mj=ab(),gj=ub(),yj=vd(),vj=yb(),bj=Pb(),_j=xb(),Sj=Sd(),Cb=Ab(),Pj=[vj.default,mj.default,gj.default,(0,yj.default)(!0),Sj.default,Cb.metadataVocabulary,Cb.contentVocabulary,bj.default,_j.default];Ud.default=Pj});var Rb=b((Y7,Oj)=>{Oj.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 jb=b((J7,wj)=>{wj.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 Tb=b((Q7,$j)=>{$j.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 Nb=b((X7,Ej)=>{Ej.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 kb=b((eV,xj)=>{xj.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 Mb=b((tV,Aj)=>{Aj.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 qb=b((rV,Cj)=>{Cj.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 Db=b((nV,Ij)=>{Ij.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 Lb=b(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});var Rj=Rb(),jj=jb(),Tj=Tb(),Nj=Nb(),kj=kb(),Mj=Mb(),qj=qb(),Dj=Db(),Lj=["/properties"];function Fj(e){return[Rj,jj,Tj,Nj,kj,t(this,Mj),qj,t(this,Dj)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,Lj):n}o(t,"with$data")}o(Fj,"addMetaSchema2020");zd.default=Fj});var Fb=b((ke,Zd)=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.MissingRefError=ke.ValidationError=ke.CodeGen=ke.Name=ke.nil=ke.stringify=ke.str=ke._=ke.KeywordCxt=ke.Ajv2020=void 0;var Vj=lo(),Bj=Ib(),Hj=$d(),Uj=Lb(),Gd="https://json-schema.org/draft/2020-12/schema",Wd=class Wd extends Vj.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),Bj.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Hj.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Uj.default.call(this,t),this.refs["http://json-schema.org/schema"]=Gd)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Gd)?Gd:void 0)}};o(Wd,"Ajv2020");var go=Wd;ke.Ajv2020=go;Zd.exports=ke=go;Zd.exports.Ajv2020=go;Object.defineProperty(ke,"__esModule",{value:!0});ke.default=go;var zj=Os();Object.defineProperty(ke,"KeywordCxt",{enumerable:!0,get:o(function(){return zj.KeywordCxt},"get")});var yo=se();Object.defineProperty(ke,"_",{enumerable:!0,get:o(function(){return yo._},"get")});Object.defineProperty(ke,"str",{enumerable:!0,get:o(function(){return yo.str},"get")});Object.defineProperty(ke,"stringify",{enumerable:!0,get:o(function(){return yo.stringify},"get")});Object.defineProperty(ke,"nil",{enumerable:!0,get:o(function(){return yo.nil},"get")});Object.defineProperty(ke,"Name",{enumerable:!0,get:o(function(){return yo.Name},"get")});Object.defineProperty(ke,"CodeGen",{enumerable:!0,get:o(function(){return yo.CodeGen},"get")});var Gj=gc();Object.defineProperty(ke,"ValidationError",{enumerable:!0,get:o(function(){return Gj.default},"get")});var Zj=ws();Object.defineProperty(ke,"MissingRefError",{enumerable:!0,get:o(function(){return Zj.default},"get")})});var Vb=b((aV,Wj)=>{Wj.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 Bb=b((cV,Kj)=>{Kj.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 Hb=b((uV,Yj)=>{Yj.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 Ub=b((lV,Jj)=>{Jj.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 zb=b((ut,vo)=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.openapi=ut.openapiV31=ut.openapiV3=ut.openapiV2=ut.openapiV1=void 0;ut.openapiV1=Vb();ut.openapiV2=Bb();ut.openapiV3=Hb();ut.openapiV31=Ub();ut.openapi={v1:ut.openapiV1,v2:ut.openapiV2,v3:ut.openapiV3,v31:ut.openapiV31};ut.default=ut.openapi;typeof vo=="object"&&typeof vo.exports=="object"&&(vo.exports=Object.assign(vo.exports.default,vo.exports))});var Jd=b((fV,Gb)=>{"use strict";var Qj=Ja(),{ono:Xj}=yr(),eT=ob(),tT=Fb(),{openapi:Kd}=zb();Gb.exports=rT;function rT(e){let t,r;if(e.swagger)r=Kd.v2,t=Yd();else if(e.openapi.startsWith("3.1")){r=Kd.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=Yd(!1)}else r=Kd.v3,t=Yd();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
14
+ `+nT(i);throw Xj.syntax(i,{details:i},s)}}o(rT,"validateSchema");function Yd(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new eT(t):new tT(t)}o(Yd,"initializeAjv");function nT(e,t){t=t||" ";let r="";for(let n of e)r+=Qj.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
15
+ `);return r}o(nT,"formatAjvError")});var Wb=b((dV,Zb)=>{"use strict";Zb.exports=["get","put","post","delete","options","head","patch"]});var eh=b((hV,Qb)=>{"use strict";var iT=Ja(),{ono:vt}=yr(),oT=Wb(),Qd=["array","boolean","integer","number","string"],Yb=["array","boolean","integer","number","string","object","null",void 0];Qb.exports=sT;function sT(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&&aT(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;Jb(s,a)}}o(sT,"validateSpec");function aT(e,t,r,n){for(let i of oT){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 vt.syntax(`Validation failed. Duplicate operation id '${c}'`);cT(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;pT(l,p||{},f)}}}}o(aT,"validatePath");function cT(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{Kb(s)}catch(u){throw vt.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{Kb(a)}catch(u){throw vt.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());uT(c,i),lT(c,r,i),fT(c,e,n,i)}o(cT,"validateParameters");function uT(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw vt.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw vt.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(uT,"validateBodyParameters");function lT(e,t,r){let n=t.match(iT.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw vt.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 vt.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 vt.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 vt.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(lT,"validatePathParameters");function fT(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=Yb;break;case"formData":a=i,c=Qd.concat("file");break;default:a=i,c=Qd}if(Xd(a,s,c),Jb(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 vt.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(fT,"validateParameterTypes");function Kb(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 vt.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(Kb,"checkForDuplicates");function pT(e,t,r){if(e!=="default"&&(e<100||e>599))throw vt.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;Xd(s,a,Qd)}if(t.schema){let i=Yb.concat("file");if(i.indexOf(t.schema.type)===-1)throw vt.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Xd(t.schema,r+"/schema",i)}}o(pT,"validateResponse");function Xd(e,t,r){if(r.indexOf(e.type)===-1)throw vt.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw vt.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(Xd,"validateSchema");function Jb(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 vt.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(Jb,"validateRequiredPropertiesExist")});var Or=b(Pr=>{"use strict";var{Ono:Xb}=yr(),{stripHash:e_,toFileSystemPath:dT}=zt(),bo,On=Pr.JSONParserError=(bo=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,Xb.extend(this)}},o(bo,"JSONParserError"),bo);wn(On);var gi,t_=Pr.JSONParserErrorGroup=(gi=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${dT(t.$refs._root$Ref.path)}'`,Xb.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 gi.getParserErrors(this.files)}},o(gi,"JSONParserErrorGroup"),gi);wn(t_);var _o,hT=Pr.ParserError=(_o=class extends On{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(_o,"ParserError"),_o);wn(hT);var So,mT=Pr.UnmatchedParserError=(So=class extends On{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(So,"UnmatchedParserError"),So);wn(mT);var Po,gT=Pr.ResolverError=(Po=class extends On{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(Po,"ResolverError"),Po);wn(gT);var Oo,yT=Pr.UnmatchedResolverError=(Oo=class extends On{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(Oo,"UnmatchedResolverError"),Oo);wn(yT);var wo,vT=Pr.MissingPointerError=(wo=class extends On{constructor(t,r){super(`Token "${t}" does not exist.`,e_(r)),this.code="EMISSINGPOINTER"}},o(wo,"MissingPointerError"),wo);wn(vT);var $o,bT=Pr.InvalidPointerError=($o=class extends On{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,e_(r)),this.code="EINVALIDPOINTER"}},o($o,"InvalidPointerError"),$o);wn(bT);function wn(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(wn,"setErrorName");Pr.isHandledError=function(e){return e instanceof On||e instanceof t_};Pr.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var n_=b((vV,r_)=>{"use strict";var{ParserError:_T}=Or();r_.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 _T(r.message,e.url)}}else return t}}});var vi=b((bV,yi)=>{"use strict";function i_(e){return typeof e>"u"||e===null}o(i_,"isNothing");function ST(e){return typeof e=="object"&&e!==null}o(ST,"isObject");function PT(e){return Array.isArray(e)?e:i_(e)?[]:[e]}o(PT,"toArray");function OT(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(OT,"extend");function wT(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(wT,"repeat");function $T(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o($T,"isNegativeZero");yi.exports.isNothing=i_;yi.exports.isObject=ST;yi.exports.toArray=PT;yi.exports.repeat=wT;yi.exports.isNegativeZero=$T;yi.exports.extend=OT});var Eo=b((SV,o_)=>{"use strict";function Bs(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(Bs,"YAMLException");Bs.prototype=Object.create(Error.prototype);Bs.prototype.constructor=Bs;Bs.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");o_.exports=Bs});var c_=b((OV,a_)=>{"use strict";var s_=vi();function th(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(th,"Mark");th.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
+ \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),s_.repeat(" ",t)+n+c+s+`
18
+ `+s_.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");th.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");a_.exports=th});var nt=b(($V,l_)=>{"use strict";var u_=Eo(),ET=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],xT=["scalar","sequence","mapping"];function AT(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(AT,"compileStyleAliases");function CT(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(ET.indexOf(r)===-1)throw new u_('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=AT(t.styleAliases||null),xT.indexOf(this.kind)===-1)throw new u_('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(CT,"Type");l_.exports=CT});var bi=b((xV,p_)=>{"use strict";var f_=vi(),Lc=Eo(),IT=nt();function rh(e,t,r){var n=[];return e.include.forEach(function(i){r=rh(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(rh,"compileList");function RT(){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(RT,"compileMap");function xo(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 Lc("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=rh(this,"implicit",[]),this.compiledExplicit=rh(this,"explicit",[]),this.compiledTypeMap=RT(this.compiledImplicit,this.compiledExplicit)}o(xo,"Schema");xo.DEFAULT=null;xo.create=o(function(){var t,r;switch(arguments.length){case 1:t=xo.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Lc("Wrong number of arguments for Schema.create function")}if(t=f_.toArray(t),r=f_.toArray(r),!t.every(function(n){return n instanceof xo}))throw new Lc("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof IT}))throw new Lc("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new xo({include:t,explicit:r})},"createSchema");p_.exports=xo});var h_=b((CV,d_)=>{"use strict";var jT=nt();d_.exports=new jT("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var g_=b((RV,m_)=>{"use strict";var TT=nt();m_.exports=new TT("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var v_=b((TV,y_)=>{"use strict";var NT=nt();y_.exports=new NT("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var Fc=b((kV,b_)=>{"use strict";var kT=bi();b_.exports=new kT({explicit:[h_(),g_(),v_()]})});var S_=b((MV,__)=>{"use strict";var MT=nt();function qT(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(qT,"resolveYamlNull");function DT(){return null}o(DT,"constructYamlNull");function LT(e){return e===null}o(LT,"isNull");__.exports=new MT("tag:yaml.org,2002:null",{kind:"scalar",resolve:qT,construct:DT,predicate:LT,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 O_=b((DV,P_)=>{"use strict";var FT=nt();function VT(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(VT,"resolveYamlBoolean");function BT(e){return e==="true"||e==="True"||e==="TRUE"}o(BT,"constructYamlBoolean");function HT(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(HT,"isBoolean");P_.exports=new FT("tag:yaml.org,2002:bool",{kind:"scalar",resolve:VT,construct:BT,predicate:HT,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 $_=b((FV,w_)=>{"use strict";var UT=vi(),zT=nt();function GT(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(GT,"isHexCode");function ZT(e){return 48<=e&&e<=55}o(ZT,"isOctCode");function WT(e){return 48<=e&&e<=57}o(WT,"isDecCode");function KT(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(!GT(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!ZT(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(!WT(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(KT,"resolveYamlInteger");function YT(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(YT,"constructYamlInteger");function JT(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!UT.isNegativeZero(e)}o(JT,"isInteger");w_.exports=new zT("tag:yaml.org,2002:int",{kind:"scalar",resolve:KT,construct:YT,predicate:JT,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 A_=b((BV,x_)=>{"use strict";var E_=vi(),QT=nt(),XT=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 eN(e){return!(e===null||!XT.test(e)||e[e.length-1]==="_")}o(eN,"resolveYamlFloat");function tN(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(tN,"constructYamlFloat");var rN=/^[-+]?[0-9]+e/;function nN(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(E_.isNegativeZero(e))return"-0.0";return r=e.toString(10),rN.test(r)?r.replace("e",".e"):r}o(nN,"representYamlFloat");function iN(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||E_.isNegativeZero(e))}o(iN,"isFloat");x_.exports=new QT("tag:yaml.org,2002:float",{kind:"scalar",resolve:eN,construct:tN,predicate:iN,represent:nN,defaultStyle:"lowercase"})});var nh=b((UV,C_)=>{"use strict";var oN=bi();C_.exports=new oN({include:[Fc()],implicit:[S_(),O_(),$_(),A_()]})});var ih=b((zV,I_)=>{"use strict";var sN=bi();I_.exports=new sN({include:[nh()]})});var N_=b((GV,T_)=>{"use strict";var aN=nt(),R_=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),j_=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 cN(e){return e===null?!1:R_.exec(e)!==null||j_.exec(e)!==null}o(cN,"resolveYamlTimestamp");function uN(e){var t,r,n,i,s,a,c,u=0,l=null,p,f,d;if(t=R_.exec(e),t===null&&(t=j_.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(uN,"constructYamlTimestamp");function lN(e){return e.toISOString()}o(lN,"representYamlTimestamp");T_.exports=new aN("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:cN,construct:uN,instanceOf:Date,represent:lN})});var M_=b((WV,k_)=>{"use strict";var fN=nt();function pN(e){return e==="<<"||e===null}o(pN,"resolveYamlMerge");k_.exports=new fN("tag:yaml.org,2002:merge",{kind:"scalar",resolve:pN})});var L_=b((YV,D_)=>{"use strict";var _i;try{q_=require,_i=q_("buffer").Buffer}catch{}var q_,dN=nt(),oh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
20
+ \r`;function hN(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=oh;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(hN,"resolveYamlBinary");function mN(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=oh,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),_i?_i.from?_i.from(c):new _i(c):c}o(mN,"constructYamlBinary");function gN(e){var t="",r=0,n,i,s=e.length,a=oh;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(gN,"representYamlBinary");function yN(e){return _i&&_i.isBuffer(e)}o(yN,"isBinary");D_.exports=new dN("tag:yaml.org,2002:binary",{kind:"scalar",resolve:hN,construct:mN,predicate:yN,represent:gN})});var V_=b((QV,F_)=>{"use strict";var vN=nt(),bN=Object.prototype.hasOwnProperty,_N=Object.prototype.toString;function SN(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,_N.call(i)!=="[object Object]")return!1;for(s in i)if(bN.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(SN,"resolveYamlOmap");function PN(e){return e!==null?e:[]}o(PN,"constructYamlOmap");F_.exports=new vN("tag:yaml.org,2002:omap",{kind:"sequence",resolve:SN,construct:PN})});var H_=b((e9,B_)=>{"use strict";var ON=nt(),wN=Object.prototype.toString;function $N(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],wN.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o($N,"resolveYamlPairs");function EN(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(EN,"constructYamlPairs");B_.exports=new ON("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:$N,construct:EN})});var z_=b((r9,U_)=>{"use strict";var xN=nt(),AN=Object.prototype.hasOwnProperty;function CN(e){if(e===null)return!0;var t,r=e;for(t in r)if(AN.call(r,t)&&r[t]!==null)return!1;return!0}o(CN,"resolveYamlSet");function IN(e){return e!==null?e:{}}o(IN,"constructYamlSet");U_.exports=new xN("tag:yaml.org,2002:set",{kind:"mapping",resolve:CN,construct:IN})});var Ao=b((i9,G_)=>{"use strict";var RN=bi();G_.exports=new RN({include:[ih()],implicit:[N_(),M_()],explicit:[L_(),V_(),H_(),z_()]})});var W_=b((o9,Z_)=>{"use strict";var jN=nt();function TN(){return!0}o(TN,"resolveJavascriptUndefined");function NN(){}o(NN,"constructJavascriptUndefined");function kN(){return""}o(kN,"representJavascriptUndefined");function MN(e){return typeof e>"u"}o(MN,"isUndefined");Z_.exports=new jN("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:TN,construct:NN,predicate:MN,represent:kN})});var Y_=b((a9,K_)=>{"use strict";var qN=nt();function DN(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(DN,"resolveJavascriptRegExp");function LN(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(LN,"constructJavascriptRegExp");function FN(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(FN,"representJavascriptRegExp");function VN(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(VN,"isRegExp");K_.exports=new qN("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:DN,construct:LN,predicate:VN,represent:FN})});var X_=b((u9,Q_)=>{"use strict";var Vc;try{J_=require,Vc=J_("esprima")}catch{typeof window<"u"&&(Vc=window.esprima)}var J_,BN=nt();function HN(e){if(e===null)return!1;try{var t="("+e+")",r=Vc.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(HN,"resolveJavascriptFunction");function UN(e){var t="("+e+")",r=Vc.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(UN,"constructJavascriptFunction");function zN(e){return e.toString()}o(zN,"representJavascriptFunction");function GN(e){return Object.prototype.toString.call(e)==="[object Function]"}o(GN,"isFunction");Q_.exports=new BN("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:HN,construct:UN,predicate:GN,represent:zN})});var Hs=b((f9,tS)=>{"use strict";var eS=bi();tS.exports=eS.DEFAULT=new eS({include:[Ao()],explicit:[W_(),Y_(),X_()]})});var _S=b((p9,Us)=>{"use strict";var tn=vi(),cS=Eo(),ZN=c_(),uS=Ao(),WN=Hs(),En=Object.prototype.hasOwnProperty,Bc=1,lS=2,fS=3,Hc=4,sh=1,KN=2,rS=3,YN=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,JN=/[\x85\u2028\u2029]/,QN=/[,\[\]\{\}]/,pS=/^(?:!|!!|![a-z\-]+!)$/i,dS=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function nS(e){return Object.prototype.toString.call(e)}o(nS,"_class");function Lr(e){return e===10||e===13}o(Lr,"is_EOL");function Pi(e){return e===9||e===32}o(Pi,"is_WHITE_SPACE");function Mt(e){return e===9||e===32||e===10||e===13}o(Mt,"is_WS_OR_EOL");function Co(e){return e===44||e===91||e===93||e===123||e===125}o(Co,"is_FLOW_INDICATOR");function XN(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(XN,"fromHexCode");function ek(e){return e===120?2:e===117?4:e===85?8:0}o(ek,"escapedHexLen");function tk(e){return 48<=e&&e<=57?e-48:-1}o(tk,"fromDecimalCode");function iS(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(iS,"simpleEscapeSequence");function rk(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(rk,"charFromCodepoint");var hS=new Array(256),mS=new Array(256);for(Si=0;Si<256;Si++)hS[Si]=iS(Si)?1:0,mS[Si]=iS(Si);var Si;function nk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||WN,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(nk,"State");function gS(e,t){return new cS(t,new ZN(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(gS,"generateError");function X(e,t){throw gS(e,t)}o(X,"throwError");function Uc(e,t){e.onWarning&&e.onWarning.call(null,gS(e,t))}o(Uc,"throwWarning");var oS={YAML:o(function(t,r,n){var i,s,a;t.version!==null&&X(t,"duplication of %YAML directive"),n.length!==1&&X(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&X(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&X(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Uc(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,s;n.length!==2&&X(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],pS.test(i)||X(t,"ill-formed tag handle (first argument) of the TAG directive"),En.call(t.tagMap,i)&&X(t,'there is a previously declared suffix for "'+i+'" tag handle'),dS.test(s)||X(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function $n(e,t,r,n){var i,s,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,s=c.length;i<s;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||X(e,"expected valid JSON character");else YN.test(c)&&X(e,"the stream contains non-printable characters");e.result+=c}}o($n,"captureSegment");function sS(e,t,r,n){var i,s,a,c;for(tn.isObject(r)||X(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)s=i[a],En.call(t,s)||(t[s]=r[s],n[s]=!0)}o(sS,"mergeMappings");function Io(e,t,r,n,i,s,a,c){var u,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,l=i.length;u<l;u+=1)Array.isArray(i[u])&&X(e,"nested arrays are not supported inside keys"),typeof i=="object"&&nS(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&nS(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)sS(e,t,s[u],r);else sS(e,t,s,r);else!e.json&&!En.call(r,i)&&En.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,X(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(Io,"storeMappingPair");function ah(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):X(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}o(ah,"readLineBreak");function Xe(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Pi(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(Lr(i))for(ah(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&&Uc(e,"deficient indentation"),n}o(Xe,"skipSeparationSpace");function zc(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||Mt(r)))}o(zc,"testDocumentSeparator");function ch(e,t){t===1?e.result+=" ":t>1&&(e.result+=tn.repeat(`
22
+ `,t-1))}o(ch,"writeFoldedLines");function ik(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),Mt(h)||Co(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),Mt(i)||r&&Co(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),Mt(i)||r&&Co(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Mt(n))break}else{if(e.position===e.lineStart&&zc(e)||r&&Co(h))break;if(Lr(h))if(u=e.line,l=e.lineStart,p=e.lineIndent,Xe(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&&($n(e,s,a,!1),ch(e,e.line-u),s=a=e.position,c=!1),Pi(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return $n(e,s,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}o(ik,"readPlainScalar");function ok(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($n(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 Lr(r)?($n(e,n,i,!0),ch(e,Xe(e,!1,t)),n=i=e.position):e.position===e.lineStart&&zc(e)?X(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);X(e,"unexpected end of the stream within a single quoted scalar")}o(ok,"readSingleQuotedScalar");function sk(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 $n(e,r,e.position,!0),e.position++,!0;if(c===92){if($n(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Lr(c))Xe(e,!1,t);else if(c<256&&hS[c])e.result+=mS[c],e.position++;else if((a=ek(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=XN(c))>=0?s=(s<<4)+a:X(e,"expected hexadecimal character");e.result+=rk(s),e.position++}else X(e,"unknown escape sequence");r=n=e.position}else Lr(c)?($n(e,r,n,!0),ch(e,Xe(e,!1,t)),r=n=e.position):e.position===e.lineStart&&zc(e)?X(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}X(e,"unexpected end of the stream within a double quoted scalar")}o(sk,"readDoubleQuotedScalar");function ak(e,t){var r=!0,n,i=e.tag,s,a=e.anchor,c,u,l,p,f,d={},h,y,v,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(Xe(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||X(e,"missed comma between flow collection entries"),y=h=v=null,l=p=!1,g===63&&(c=e.input.charCodeAt(e.position+1),Mt(c)&&(l=p=!0,e.position++,Xe(e,!0,t))),n=e.line,Ro(e,t,Bc,!1,!0),y=e.tag,h=e.result,Xe(e,!0,t),g=e.input.charCodeAt(e.position),(p||e.line===n)&&g===58&&(l=!0,g=e.input.charCodeAt(++e.position),Xe(e,!0,t),Ro(e,t,Bc,!1,!0),v=e.result),f?Io(e,s,d,y,h,v):l?s.push(Io(e,null,d,y,h,v)):s.push(h),Xe(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(r=!0,g=e.input.charCodeAt(++e.position)):r=!1}X(e,"unexpected end of the stream within a flow collection")}o(ak,"readFlowCollection");function ck(e,t){var r,n,i=sh,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)sh===i?i=f===43?rS:KN:X(e,"repeat of a chomping mode identifier");else if((p=tk(f))>=0)p===0?X(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?X(e,"repeat of an indentation width identifier"):(c=t+p-1,a=!0);else break;if(Pi(f)){do f=e.input.charCodeAt(++e.position);while(Pi(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Lr(f)&&f!==0)}for(;f!==0;){for(ah(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),Lr(f)){u++;continue}if(e.lineIndent<c){i===rS?e.result+=tn.repeat(`
23
+ `,s?1+u:u):i===sh&&s&&(e.result+=`
24
+ `);break}for(n?Pi(f)?(l=!0,e.result+=tn.repeat(`
25
+ `,s?1+u:u)):l?(l=!1,e.result+=tn.repeat(`
26
+ `,u+1)):u===0?s&&(e.result+=" "):e.result+=tn.repeat(`
27
+ `,u):e.result+=tn.repeat(`
28
+ `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!Lr(f)&&f!==0;)f=e.input.charCodeAt(++e.position);$n(e,r,e.position,!1)}return!0}o(ck,"readBlockScalar");function aS(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),!Mt(a)));){if(c=!0,e.position++,Xe(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Ro(e,t,fS,!1,!0),s.push(e.result),Xe(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)X(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}o(aS,"readBlockSequence");function uk(e,t,r){var n,i,s,a,c=e.tag,u=e.anchor,l={},p={},f=null,d=null,h=null,y=!1,v=!1,g;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),g=e.input.charCodeAt(e.position);g!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,a=e.position,(g===63||g===58)&&Mt(n))g===63?(y&&(Io(e,l,p,f,d,null),f=d=h=null),v=!0,y=!0,i=!0):y?(y=!1,i=!0):X(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else if(Ro(e,r,lS,!1,!0))if(e.line===s){for(g=e.input.charCodeAt(e.position);Pi(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),Mt(g)||X(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Io(e,l,p,f,d,null),f=d=h=null),v=!0,y=!1,i=!1,f=e.tag,d=e.result;else if(v)X(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(v)X(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0;else break;if((e.line===s||e.lineIndent>t)&&(Ro(e,t,Hc,!0,i)&&(y?d=e.result:h=e.result),y||(Io(e,l,p,f,d,h,s,a),f=d=h=null),Xe(e,!0,-1),g=e.input.charCodeAt(e.position)),e.lineIndent>t&&g!==0)X(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Io(e,l,p,f,d,null),v&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),v}o(uk,"readBlockMapping");function lk(e){var t,r=!1,n=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&X(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):X(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Mt(a);)a===33&&(n?X(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),pS.test(i)||X(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),QN.test(s)&&X(e,"tag suffix cannot contain flow indicator characters")}return s&&!dS.test(s)&&X(e,"tag name cannot contain such characters: "+s),r?e.tag=s:En.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:X(e,'undeclared tag handle "'+i+'"'),!0}o(lk,"readTagProperty");function fk(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&X(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Mt(r)&&!Co(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&X(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}o(fk,"readAnchorProperty");function pk(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&&!Mt(n)&&!Co(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&X(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),En.call(e.anchorMap,r)||X(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Xe(e,!0,-1),!0}o(pk,"readAlias");function Ro(e,t,r,n,i){var s,a,c,u=1,l=!1,p=!1,f,d,h,y,v;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=c=Hc===r||fS===r,n&&Xe(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;lk(e)||fk(e);)Xe(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||Hc===r)&&(Bc===r||lS===r?y=t:y=t+1,v=e.position-e.lineStart,u===1?c&&(aS(e,v)||uk(e,v,y))||ak(e,y)?p=!0:(a&&ck(e,y)||ok(e,y)||sk(e,y)?p=!0:pk(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&X(e,"alias node should not have any properties")):ik(e,y,Bc===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(p=c&&aS(e,v))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&X(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,d=e.implicitTypes.length;f<d;f+=1)if(h=e.implicitTypes[f],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else En.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&X(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):X(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):X(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}o(Ro,"composeNode");function dk(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&&(Xe(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&&!Mt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&X(e,"directive name must not be less than one character in length");a!==0;){for(;Pi(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Lr(a));break}if(Lr(a))break;for(r=e.position;a!==0&&!Mt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&ah(e),En.call(oS,n)?oS[n](e,n,i):Uc(e,'unknown document directive "'+n+'"')}if(Xe(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,Xe(e,!0,-1)):s&&X(e,"directives end mark is expected"),Ro(e,e.lineIndent-1,Hc,!1,!0),Xe(e,!0,-1),e.checkLineBreaks&&JN.test(e.input.slice(t,e.position))&&Uc(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&zc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Xe(e,!0,-1));return}if(e.position<e.length-1)X(e,"end of the stream or a document separator is expected");else return}o(dk,"readDocument");function yS(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 nk(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,X(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)dk(r);return r.documents}o(yS,"loadDocuments");function vS(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=yS(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(vS,"loadAll");function bS(e,t){var r=yS(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new cS("expected a single document in the stream, but found more")}}o(bS,"load");function hk(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),vS(e,t,tn.extend({schema:uS},r))}o(hk,"safeLoadAll");function mk(e,t){return bS(e,tn.extend({schema:uS},t))}o(mk,"safeLoad");Us.exports.loadAll=vS;Us.exports.load=bS;Us.exports.safeLoadAll=hk;Us.exports.safeLoad=mk});var HS=b((h9,ph)=>{"use strict";var Gs=vi(),Zs=Eo(),gk=Hs(),yk=Ao(),AS=Object.prototype.toString,CS=Object.prototype.hasOwnProperty,vk=9,zs=10,bk=13,_k=32,Sk=33,Pk=34,IS=35,Ok=37,wk=38,$k=39,Ek=42,RS=44,xk=45,jS=58,Ak=61,Ck=62,Ik=63,Rk=64,TS=91,NS=93,jk=96,kS=123,Tk=124,MS=125,bt={};bt[0]="\\0";bt[7]="\\a";bt[8]="\\b";bt[9]="\\t";bt[10]="\\n";bt[11]="\\v";bt[12]="\\f";bt[13]="\\r";bt[27]="\\e";bt[34]='\\"';bt[92]="\\\\";bt[133]="\\N";bt[160]="\\_";bt[8232]="\\L";bt[8233]="\\P";var Nk=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function kk(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&&CS.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(kk,"compileStyleMap");function SS(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 Zs("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Gs.repeat("0",n-t.length)+t}o(SS,"encodeHex");function Mk(e){this.schema=e.schema||gk,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Gs.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=kk(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(Mk,"State");function PS(e,t){for(var r=Gs.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
- `&&(o+=r),o+=a;return o}s(hS,"indentString");function eh(e,t){return`
32
- `+Uo.repeat(" ",e.indent*t)}s(eh,"generateNextLine");function Sk(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}s(Sk,"testImplicitResolving");function rh(e){return e===ik||e===rk}s(rh,"isWhitespace");function Es(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}s(Es,"isPrintable");function Ok(e){return Es(e)&&!rh(e)&&e!==65279&&e!==nk&&e!==Ho}s(Ok,"isNsChar");function mS(e,t){return Es(e)&&e!==65279&&e!==PS&&e!==$S&&e!==ES&&e!==xS&&e!==AS&&e!==wS&&(e!==OS||t&&Ok(t))}s(mS,"isPlainSafe");function Pk(e){return Es(e)&&e!==65279&&!rh(e)&&e!==fk&&e!==hk&&e!==wS&&e!==PS&&e!==$S&&e!==ES&&e!==xS&&e!==AS&&e!==OS&&e!==ck&&e!==lk&&e!==sk&&e!==yk&&e!==pk&&e!==dk&&e!==uk&&e!==ok&&e!==ak&&e!==mk&&e!==gk}s(Pk,"isPlainSafeFirst");function CS(e){var t=/^\n* /;return t.test(e)}s(CS,"needIndentIndicator");var IS=1,jS=2,RS=3,TS=4,Bc=5;function wk(e,t,r,n,i){var o,a,c,u=!1,l=!1,p=n!==-1,f=-1,d=Pk(e.charCodeAt(0))&&!rh(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),!Es(a))return Bc;c=o>0?e.charCodeAt(o-1):null,d=d&&mS(a,c)}else{for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),a===Ho)u=!0,p&&(l=l||o-f-1>n&&e[f+1]!==" ",f=o);else if(!Es(a))return Bc;c=o>0?e.charCodeAt(o-1):null,d=d&&mS(a,c)}l=l||p&&o-f-1>n&&e[f+1]!==" "}return!u&&!l?d&&!i(e)?IS:jS:r>9&&CS(e)?Bc:l?TS:RS}s(wk,"chooseScalarStyle");function $k(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&vk.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return Sk(e,u)}switch(s(c,"testAmbiguity"),wk(t,a,e.indent,o,c)){case IS:return t;case jS:return"'"+t.replace(/'/g,"''")+"'";case RS:return"|"+gS(t,e.indent)+yS(hS(t,i));case TS:return">"+gS(t,e.indent)+yS(hS(Ek(t,o),i));case Bc:return'"'+xk(t,o)+'"';default:throw new zo("impossible error: invalid scalar style")}}()}s($k,"writeScalar");function gS(e,t){var r=CS(e)?String(t):"",n=e[e.length-1]===`
31
+ `&&(s+=r),s+=a;return s}o(PS,"indentString");function uh(e,t){return`
32
+ `+Gs.repeat(" ",e.indent*t)}o(uh,"generateNextLine");function qk(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(qk,"testImplicitResolving");function fh(e){return e===_k||e===vk}o(fh,"isWhitespace");function jo(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(jo,"isPrintable");function Dk(e){return jo(e)&&!fh(e)&&e!==65279&&e!==bk&&e!==zs}o(Dk,"isNsChar");function OS(e,t){return jo(e)&&e!==65279&&e!==RS&&e!==TS&&e!==NS&&e!==kS&&e!==MS&&e!==jS&&(e!==IS||t&&Dk(t))}o(OS,"isPlainSafe");function Lk(e){return jo(e)&&e!==65279&&!fh(e)&&e!==xk&&e!==Ik&&e!==jS&&e!==RS&&e!==TS&&e!==NS&&e!==kS&&e!==MS&&e!==IS&&e!==wk&&e!==Ek&&e!==Sk&&e!==Tk&&e!==Ak&&e!==Ck&&e!==$k&&e!==Pk&&e!==Ok&&e!==Rk&&e!==jk}o(Lk,"isPlainSafeFirst");function qS(e){var t=/^\n* /;return t.test(e)}o(qS,"needIndentIndicator");var DS=1,LS=2,FS=3,VS=4,Gc=5;function Fk(e,t,r,n,i){var s,a,c,u=!1,l=!1,p=n!==-1,f=-1,d=Lk(e.charCodeAt(0))&&!fh(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!jo(a))return Gc;c=s>0?e.charCodeAt(s-1):null,d=d&&OS(a,c)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===zs)u=!0,p&&(l=l||s-f-1>n&&e[f+1]!==" ",f=s);else if(!jo(a))return Gc;c=s>0?e.charCodeAt(s-1):null,d=d&&OS(a,c)}l=l||p&&s-f-1>n&&e[f+1]!==" "}return!u&&!l?d&&!i(e)?DS:LS:r>9&&qS(e)?Gc:l?VS:FS}o(Fk,"chooseScalarStyle");function Vk(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&Nk.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 qk(e,u)}switch(o(c,"testAmbiguity"),Fk(t,a,e.indent,s,c)){case DS:return t;case LS:return"'"+t.replace(/'/g,"''")+"'";case FS:return"|"+wS(t,e.indent)+$S(PS(t,i));case VS:return">"+wS(t,e.indent)+$S(PS(Bk(t,s),i));case Gc:return'"'+Hk(t,s)+'"';default:throw new Zs("impossible error: invalid scalar style")}}()}o(Vk,"writeScalar");function wS(e,t){var r=qS(e)?String(t):"",n=e[e.length-1]===`
33
33
  `,i=n&&(e[e.length-2]===`
34
34
  `||e===`
35
- `),o=i?"+":n?"":"-";return r+o+`
36
- `}s(gS,"blockHeader");function yS(e){return e[e.length-1]===`
37
- `?e.slice(0,-1):e}s(yS,"dropEndingNewline");function Ek(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,vS(e.slice(0,l),t)}(),i=e[0]===`
39
- `||e[0]===" ",o,a;a=r.exec(e);){var c=a[1],u=a[2];o=u[0]===" ",n+=c+(!i&&!o&&u!==""?`
40
- `:"")+vS(u,t),i=o}return n}s(Ek,"foldString");function vS(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,o,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(o=a>i?a:c,u+=`
41
- `+e.slice(i,o),i=o+1),a=c;return u+=`
35
+ `),s=i?"+":n?"":"-";return r+s+`
36
+ `}o(wS,"blockHeader");function $S(e){return e[e.length-1]===`
37
+ `?e.slice(0,-1):e}o($S,"dropEndingNewline");function Bk(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,ES(e.slice(0,l),t)}(),i=e[0]===`
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
+ `:"")+ES(u,t),i=s}return n}o(Bk,"foldString");function ES(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
+ `+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)}s(vS,"foldLine");function xk(e){for(var t="",r,n,i,o=0;o<e.length;o++){if(r=e.charCodeAt(o),r>=55296&&r<=56319&&(n=e.charCodeAt(o+1),n>=56320&&n<=57343)){t+=dS((r-55296)*1024+n-56320+65536),o++;continue}i=yt[r],t+=!i&&Es(r)?e[o]:i||dS(r)}return t}s(xk,"escapeString");function Ak(e,t,r){var n="",i=e.tag,o,a;for(o=0,a=r.length;o<a;o+=1)vi(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}s(Ak,"writeFlowSequence");function Ck(e,t,r,n){var i="",o=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)vi(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=eh(e,t)),e.dump&&Ho===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}s(Ck,"writeBlockSequence");function Ik(e,t,r){var n="",i=e.tag,o=Object.keys(r),a,c,u,l,p;for(a=0,c=o.length;a<c;a+=1)p="",a!==0&&(p+=", "),e.condenseFlow&&(p+='"'),u=o[a],l=r[u],vi(e,t,u,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),vi(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}s(Ik,"writeFlowMapping");function jk(e,t,r,n){var i="",o=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 zo("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=eh(e,t)),l=a[c],p=r[l],vi(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Ho===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=eh(e,t)),vi(e,t+1,p,!0,f)&&(e.dump&&Ho===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=o,e.dump=i||"{}"}s(jk,"writeBlockMapping");function bS(e,t,r){var n,i,o,a,c,u;for(i=r?e.explicitTypes:e.implicitTypes,o=0,a=i.length;o<a;o+=1)if(c=i[o],(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,_S.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(SS.call(c.represent,u))n=c.represent[u](t,u);else throw new zo("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}s(bS,"detectType");function vi(e,t,r,n,i,o){e.tag=null,e.dump=r,bS(e,r,!1)||bS(e,r,!0);var a=_S.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?(jk(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(Ik(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?(Ck(e,p,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(Ak(e,p,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&$k(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new zo("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}s(vi,"writeNode");function Rk(e,t){var r=[],n=[],i,o;for(th(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}s(Rk,"getDuplicateReferences");function th(e,t,r){var n,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)th(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)th(e[n[i]],t,r)}s(th,"inspectNode");function NS(e,t){t=t||{};var r=new _k(t);return r.noRefs||Rk(e,r),vi(r,0,e,!0,!0)?r.dump+`
44
- `:""}s(NS,"dump");function Tk(e,t){return NS(e,Uo.extend({schema:tk},t))}s(Tk,"safeDump");nh.exports.dump=NS;nh.exports.safeDump=Tk});var qS=b((GV,Be)=>{"use strict";var Hc=pS(),MS=kS();function Uc(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}s(Uc,"deprecated");Be.exports.Type=tt();Be.exports.Schema=hi();Be.exports.FAILSAFE_SCHEMA=Mc();Be.exports.JSON_SCHEMA=Kd();Be.exports.CORE_SCHEMA=Zd();Be.exports.DEFAULT_SAFE_SCHEMA=Os();Be.exports.DEFAULT_FULL_SCHEMA=Vo();Be.exports.load=Hc.load;Be.exports.loadAll=Hc.loadAll;Be.exports.safeLoad=Hc.safeLoad;Be.exports.safeLoadAll=Hc.safeLoadAll;Be.exports.dump=MS.dump;Be.exports.safeDump=MS.safeDump;Be.exports.YAMLException=_s();Be.exports.MINIMAL_SCHEMA=Mc();Be.exports.SAFE_SCHEMA=Os();Be.exports.DEFAULT_SCHEMA=Vo();Be.exports.scan=Uc("scan");Be.exports.parse=Uc("parse");Be.exports.compose=Uc("compose");Be.exports.addConstructor=Uc("addConstructor")});var LS=b((KV,DS)=>{"use strict";var Nk=qS();DS.exports=Nk});var VS=b((ZV,FS)=>{"use strict";var{ParserError:kk}=_r(),Mk=LS();FS.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 Mk.safeLoad(t)}catch(r){throw new kk(r.message,e.url)}else return t}}});var HS=b((YV,BS)=>{"use strict";var{ParserError:qk}=_r(),Dk=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;BS.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&Dk.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 qk("data is not text",e.url)}}});var zS=b((JV,US)=>{"use strict";var Lk=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;US.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&Lk.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var KS=b((QV,WS)=>{"use strict";var Fk=require("fs"),{ono:ih}=hr(),GS=Vt(),{ResolverError:sh}=_r();WS.exports={order:100,canRead(e){return GS.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=GS.toFileSystemPath(e.url)}catch(i){r(new sh(ih.uri(i,`Malformed URI: ${e.url}`),e.url))}try{Fk.readFile(n,(i,o)=>{i?r(new sh(ih(i,`Error opening file "${n}"`),n)):t(o)})}catch(i){r(new sh(ih(i,`Error opening file "${n}"`),n))}})}}});var QS=b((XV,JS)=>{"use strict";var Vk=require("http"),Bk=require("https"),{ono:zc}=hr(),Go=Vt(),{ResolverError:ZS}=_r();JS.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Go.isHttp(e.url)},read(e){let t=Go.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Go.parse(location.href).protocol),YS(t,this)}};function YS(e,t,r){return new Promise((n,i)=>{e=Go.parse(e),r=r||[],r.push(e.href),Hk(e,t).then(o=>{if(o.statusCode>=400)throw zc({status:o.statusCode},`HTTP ERROR ${o.statusCode}`);if(o.statusCode>=300)if(r.length>t.redirects)i(new ZS(zc({status:o.statusCode},`Error downloading ${r[0]}.
43
+ `+e.slice(a+1):u+=e.slice(i),u.slice(1)}o(ES,"foldLine");function Hk(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+=SS((r-55296)*1024+n-56320+65536),s++;continue}i=bt[r],t+=!i&&jo(r)?e[s]:i||SS(r)}return t}o(Hk,"escapeString");function Uk(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Oi(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(Uk,"writeFlowSequence");function zk(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)Oi(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=uh(e,t)),e.dump&&zs===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(zk,"writeBlockSequence");function Gk(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],Oi(e,t,u,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Oi(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}o(Gk,"writeFlowMapping");function Zk(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 Zs("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],Oi(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&zs===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=uh(e,t)),Oi(e,t+1,p,!0,f)&&(e.dump&&zs===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(Zk,"writeBlockMapping");function xS(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,AS.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(CS.call(c.represent,u))n=c.represent[u](t,u);else throw new Zs("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(xS,"detectType");function Oi(e,t,r,n,i,s){e.tag=null,e.dump=r,xS(e,r,!1)||xS(e,r,!0);var a=AS.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?(Zk(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(Gk(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?(zk(e,p,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(Uk(e,p,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&Vk(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new Zs("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(Oi,"writeNode");function Wk(e,t){var r=[],n=[],i,s;for(lh(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(Wk,"getDuplicateReferences");function lh(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)lh(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)lh(e[n[i]],t,r)}o(lh,"inspectNode");function BS(e,t){t=t||{};var r=new Mk(t);return r.noRefs||Wk(e,r),Oi(r,0,e,!0,!0)?r.dump+`
44
+ `:""}o(BS,"dump");function Kk(e,t){return BS(e,Gs.extend({schema:yk},t))}o(Kk,"safeDump");ph.exports.dump=BS;ph.exports.safeDump=Kk});var zS=b((g9,ze)=>{"use strict";var Zc=_S(),US=HS();function Wc(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(Wc,"deprecated");ze.exports.Type=nt();ze.exports.Schema=bi();ze.exports.FAILSAFE_SCHEMA=Fc();ze.exports.JSON_SCHEMA=nh();ze.exports.CORE_SCHEMA=ih();ze.exports.DEFAULT_SAFE_SCHEMA=Ao();ze.exports.DEFAULT_FULL_SCHEMA=Hs();ze.exports.load=Zc.load;ze.exports.loadAll=Zc.loadAll;ze.exports.safeLoad=Zc.safeLoad;ze.exports.safeLoadAll=Zc.safeLoadAll;ze.exports.dump=US.dump;ze.exports.safeDump=US.safeDump;ze.exports.YAMLException=Eo();ze.exports.MINIMAL_SCHEMA=Fc();ze.exports.SAFE_SCHEMA=Ao();ze.exports.DEFAULT_SCHEMA=Hs();ze.exports.scan=Wc("scan");ze.exports.parse=Wc("parse");ze.exports.compose=Wc("compose");ze.exports.addConstructor=Wc("addConstructor")});var ZS=b((v9,GS)=>{"use strict";var Yk=zS();GS.exports=Yk});var KS=b((b9,WS)=>{"use strict";var{ParserError:Jk}=Or(),Qk=ZS();WS.exports={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(e){let t=e.data;if(Buffer.isBuffer(t)&&(t=t.toString()),typeof t=="string")try{return Qk.safeLoad(t)}catch(r){throw new Jk(r.message,e.url)}else return t}}});var JS=b((_9,YS)=>{"use strict";var{ParserError:Xk}=Or(),e3=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;YS.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&e3.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 Xk("data is not text",e.url)}}});var XS=b((S9,QS)=>{"use strict";var t3=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;QS.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&t3.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var rP=b((P9,tP)=>{"use strict";var r3=require("fs"),{ono:dh}=yr(),eP=zt(),{ResolverError:hh}=Or();tP.exports={order:100,canRead(e){return eP.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=eP.toFileSystemPath(e.url)}catch(i){r(new hh(dh.uri(i,`Malformed URI: ${e.url}`),e.url))}try{r3.readFile(n,(i,s)=>{i?r(new hh(dh(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new hh(dh(i,`Error opening file "${n}"`),n))}})}}});var sP=b((O9,oP)=>{"use strict";var n3=require("http"),i3=require("https"),{ono:Kc}=yr(),Ws=zt(),{ResolverError:nP}=Or();oP.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Ws.isHttp(e.url)},read(e){let t=Ws.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Ws.parse(location.href).protocol),iP(t,this)}};function iP(e,t,r){return new Promise((n,i)=>{e=Ws.parse(e),r=r||[],r.push(e.href),o3(e,t).then(s=>{if(s.statusCode>=400)throw Kc({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new nP(Kc({status:s.statusCode},`Error downloading ${r[0]}.
45
45
  Too many redirects:
46
46
  ${r.join(`
47
- `)}`)));else if(o.headers.location){let a=Go.resolve(e,o.headers.location);YS(a,t,r).then(n,i)}else throw zc({status:o.statusCode},`HTTP ${o.statusCode} redirect with no location header`);else n(o.body||Buffer.alloc(0))}).catch(o=>{i(new ZS(zc(o,`Error downloading ${e.href}`),e.href))})})}s(YS,"download");function Hk(e,t){return new Promise((r,n)=>{let o=(e.protocol==="https:"?Bk:Vk).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof o.setTimeout=="function"&&o.setTimeout(t.timeout),o.on("timeout",()=>{o.abort()}),o.on("error",n),o.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",c=>{a.body=Buffer.concat([a.body,Buffer.from(c)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}s(Hk,"get")});var ch=b((t9,e1)=>{"use strict";var Uk=Zb(),zk=VS(),Gk=HS(),Wk=zS(),Kk=KS(),Zk=QS();e1.exports=ah;function ah(e){oh(this,ah.defaults),oh(this,e)}s(ah,"$RefParserOptions");ah.defaults={parse:{json:Uk,yaml:zk,text:Gk,binary:Wk},resolve:{file:Kk,http:Zk,external:!0},continueOnError:!1,dereference:{circular:!0}};function oh(e,t){if(XS(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i],a=e[i];XS(o)?e[i]=oh(a||{},o):o!==void 0&&(e[i]=o)}}return e}s(oh,"merge");function XS(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}s(XS,"isMergeable")});var uh=b((n9,r1)=>{"use strict";var t1=ch();r1.exports=Yk;function Yk(e){let t,r,n,i;return e=Array.prototype.slice.call(e),typeof e[e.length-1]=="function"&&(i=e.pop()),typeof e[0]=="string"?(t=e[0],typeof e[2]=="object"?(r=e[1],n=e[2]):(r=void 0,n=e[1])):(t="",r=e[0],n=e[1]),n instanceof t1||(n=new t1(n)),{path:t,schema:r,options:n,callback:i}}s(Yk,"normalizeArgs")});var i1=b((s9,n1)=>{"use strict";var lh=ch(),Jk=Bd(),Qk=zd(),Xk=require("util");n1.exports=Gc;function Gc(e){lh.call(this,Gc.defaults),lh.apply(this,arguments)}s(Gc,"ParserOptions");Gc.defaults={validate:{schema:Jk,spec:Qk}};Xk.inherits(Gc,lh)});var o1=b((a9,s1)=>{"use strict";function e3(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:s(function(t){setTimeout(t,0)},"next")}s(e3,"makeNext");s1.exports=e3()});var fh=b((u9,c1)=>{"use strict";var a1=o1();c1.exports=s(function(t,r){if(t){r.then(function(n){a1(function(){t(null,n)})},function(n){a1(function(){t(n)})});return}else return r},"maybe")});var Wo=b((f9,f1)=>{"use strict";f1.exports=wn;var ph=xs(),dh=Vt(),{JSONParserError:t3,InvalidPointerError:r3,MissingPointerError:n3,isHandledError:i3}=_r(),s3=/\//g,o3=/~/g,a3=/~1/g,c3=/~0/g;function wn(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}s(wn,"Pointer");wn.prototype.resolve=function(e,t,r){let n=wn.parse(this.path,this.originalPath);this.value=l1(e);for(let i=0;i<n.length;i++){if(Wc(this,t)&&(this.path=wn.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let o=n[i];if(this.value[o]===void 0||this.value[o]===null)throw this.value=null,new n3(o,this.originalPath);this.value=this.value[o]}return(!this.value||this.value.$ref&&dh.resolve(this.path,this.value.$ref)!==r)&&Wc(this,t),this};wn.prototype.set=function(e,t,r){let n=wn.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=l1(e);for(let o=0;o<n.length-1;o++)Wc(this,r),i=n[o],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=u1(this,i,{});return Wc(this,r),i=n[n.length-1],u1(this,i,t),e};wn.parse=function(e,t){let r=dh.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(a3,"/").replace(c3,"~"));if(r[0]!=="")throw new r3(r,t===void 0?e:t);return r.slice(1)};wn.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(o3,"~0").replace(s3,"~1"))}return e};function Wc(e,t){if(ph.isAllowed$Ref(e.value,t)){let r=dh.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,ph.isExtended$Ref(e.value)?(e.value=ph.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}s(Wc,"resolveIf$Ref");function u1(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 t3(`Error assigning $ref pointer "${e.path}".
48
- Cannot set "${t}" of a non-object.`);return r}s(u1,"setValue");function l1(e){if(i3(e))throw e;return e}s(l1,"unwrapOrThrow")});var xs=b((d9,h1)=>{"use strict";h1.exports=wt;var d1=Wo(),{InvalidPointerError:u3,isHandledError:l3,normalizeError:p1}=_r(),{safePointerToPath:f3,stripHash:p3,getHash:d3}=Vt();function wt(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}s(wt,"$Ref");wt.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(p1)):this.errors.push(p1(e))};wt.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};wt.prototype.get=function(e,t){return this.resolve(e,t).value};wt.prototype.resolve=function(e,t,r,n){let i=new d1(this,e,r);try{return i.resolve(this.value,t,n)}catch(o){if(!t||!t.continueOnError||!l3(o))throw o;return o.path===null&&(o.path=f3(d3(n))),o instanceof u3&&(o.source=p3(n)),this.addError(o),null}};wt.prototype.set=function(e,t){let r=new d1(this,e);this.value=r.set(this.value,t)};wt.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};wt.isExternal$Ref=function(e){return wt.is$Ref(e)&&e.$ref[0]!=="#"};wt.isAllowed$Ref=function(e,t){if(wt.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};wt.isExtended$Ref=function(e){return wt.is$Ref(e)&&Object.keys(e).length>1};wt.dereference=function(e,t){if(t&&typeof t=="object"&&wt.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 v1=b((m9,y1)=>{"use strict";var{ono:m1}=hr(),h3=xs(),$n=Vt();y1.exports=Sr;function Sr(){this.circular=!1,this._$refs={},this._root$Ref=null}s(Sr,"$Refs");Sr.prototype.paths=function(e){return g1(this._$refs,arguments).map(r=>r.decoded)};Sr.prototype.values=function(e){let t=this._$refs;return g1(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};Sr.prototype.toJSON=Sr.prototype.values;Sr.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};Sr.prototype.get=function(e,t){return this._resolve(e,"",t).value};Sr.prototype.set=function(e,t){let r=$n.resolve(this._root$Ref.path,e),n=$n.stripHash(r),i=this._$refs[n];if(!i)throw m1(`Error resolving $ref pointer "${e}".
49
- "${n}" not found.`);i.set(r,t)};Sr.prototype._add=function(e){let t=$n.stripHash(e),r=new h3;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};Sr.prototype._resolve=function(e,t,r){let n=$n.resolve(this._root$Ref.path,e),i=$n.stripHash(n),o=this._$refs[i];if(!o)throw m1(`Error resolving $ref pointer "${e}".
50
- "${i}" not found.`);return o.resolve(n,r,e,t)};Sr.prototype._get$Ref=function(e){e=$n.resolve(this._root$Ref.path,e);let t=$n.stripHash(e);return this._$refs[t]};function g1(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"?$n.toFileSystemPath(n,!0):n}))}s(g1,"getPaths")});var _1=b(Ko=>{"use strict";Ko.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Ko.filter=function(e,t,r){return e.filter(n=>!!b1(n,t,r))};Ko.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)};Ko.run=function(e,t,r,n){let i,o,a=0;return new Promise((c,u)=>{l();function l(){if(i=e[a++],!i)return u(o);try{let h=b1(i,t,r,p,n);if(h&&typeof h.then=="function")h.then(f,d);else if(h!==void 0)f(h);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(h){d(h)}}s(l,"runNextPlugin");function p(h,y){h?d(h):f(y)}s(p,"callback");function f(h){c({plugin:i,result:h})}s(f,"onSuccess");function d(h){o={plugin:i,error:h},l()}s(d,"onError")})};function b1(e,t,r,n,i){let o=e[t];if(typeof o=="function")return o.apply(e,[r,n,i]);if(!n){if(o instanceof RegExp)return o.test(r.url);if(typeof o=="string")return o===r.extension;if(Array.isArray(o))return o.indexOf(r.extension)!==-1}return o}s(b1,"getResult")});var mh=b((b9,w1)=>{"use strict";var{ono:hh}=hr(),S1=Vt(),En=_1(),{ResolverError:O1,ParserError:P1,UnmatchedParserError:m3,UnmatchedResolverError:g3,isHandledError:y3}=_r();w1.exports=v3;async function v3(e,t,r){e=S1.stripHash(e);let n=t._add(e),i={url:e,extension:S1.getExtension(e)};try{let o=await b3(i,r,t);n.pathType=o.plugin.name,i.data=o.result;let a=await _3(i,r,t);return n.value=a.result,a.result}catch(o){throw y3(o)&&(n.value=o),o}}s(v3,"parse");function b3(e,t,r){return new Promise((n,i)=>{let o=En.all(t.resolve);o=En.filter(o,"canRead",e),En.sort(o),En.run(o,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new g3(e.url)):!c||!("error"in c)?i(hh.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof O1?i(c.error):i(new O1(c,e.url))}s(a,"onError")})}s(b3,"readFile");function _3(e,t,r){return new Promise((n,i)=>{let o=En.all(t.parse),a=En.filter(o,"canParse",e),c=a.length>0?a:o;En.sort(c),En.run(c,"parse",e,r).then(u,l);function u(p){!p.plugin.allowEmpty&&S3(p.result)?i(hh.syntax(`Error parsing "${e.url}" as ${p.plugin.name}.
51
- Parsed value is empty`)):n(p)}s(u,"onParsed");function l(p){!p&&t.continueOnError?i(new m3(e.url)):!p||!("error"in p)?i(hh.syntax(`Unable to parse ${e.url}`)):p.error instanceof P1?i(p.error):i(new P1(p.error.message,e.url))}s(l,"onError")})}s(_3,"parseFile");function S3(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}s(S3,"isEmpty")});var A1=b((S9,x1)=>{"use strict";var $1=xs(),O3=Wo(),P3=mh(),Zo=Vt(),{isHandledError:w3}=_r();x1.exports=$3;function $3(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=gh(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}s($3,"resolveExternal");function gh(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if($1.isExternal$Ref(e))i.push(E1(e,t,r,n));else for(let o of Object.keys(e)){let a=O3.join(t,o),c=e[o];$1.isExternal$Ref(c)?i.push(E1(c,a,r,n)):i=i.concat(gh(c,a,r,n))}return i}s(gh,"crawl");async function E1(e,t,r,n){let i=Zo.resolve(t,e.$ref),o=Zo.stripHash(i);if(e=r._$refs[o],e)return Promise.resolve(e.value);try{let a=await P3(i,r,n),c=gh(a,o+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!w3(a))throw a;return r._$refs[o]&&(a.source=Zo.stripHash(t),a.path=Zo.safePointerToPath(Zo.getHash(t))),[]}}s(E1,"resolve$Ref")});var j1=b((P9,I1)=>{"use strict";var Kc=xs(),Yo=Wo(),yh=Vt();I1.exports=E3;function E3(e,t){let r=[];vh(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),x3(r)}s(E3,"bundle");function vh(e,t,r,n,i,o,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(Kc.isAllowed$Ref(u))C1(e,t,r,n,i,o,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=Yo.join(r,p),d=Yo.join(n,p),h=u[p];Kc.isAllowed$Ref(h)?C1(u,p,r,d,i,o,a,c):vh(u,p,f,d,i,o,a,c)}}}s(vh,"crawl");function C1(e,t,r,n,i,o,a,c){let u=t===null?e:e[t],l=yh.resolve(r,u.$ref),p=a._resolve(l,n,c);if(p===null)return;let f=Yo.parse(n).length,d=yh.stripHash(p.path),h=yh.getHash(p.path),y=d!==a._root$Ref.path,v=Kc.isExtended$Ref(u);i+=p.indirections;let g=A3(o,e,t);if(g)if(f<g.depth||i<g.indirections)C3(o,g);else return;o.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:v,external:y,indirections:i}),g||vh(p.value,null,p.path,n,i+1,o,a,c)}s(C1,"inventory$Ref");function x3(e){e.sort((i,o)=>{if(i.file!==o.file)return i.file<o.file?-1:1;if(i.hash!==o.hash)return i.hash<o.hash?-1:1;if(i.circular!==o.circular)return i.circular?-1:1;if(i.extended!==o.extended)return i.extended?1:-1;if(i.indirections!==o.indirections)return i.indirections-o.indirections;if(i.depth!==o.depth)return i.depth-o.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=o.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-o.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=Yo.join(n,Yo.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Kc.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}s(x3,"remap");function A3(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}s(A3,"findInInventory");function C3(e,t){let r=e.indexOf(t);e.splice(r,1)}s(C3,"removeFromInventory")});var Sh=b(($9,k1)=>{"use strict";var bh=xs(),R1=Wo(),{ono:I3}=hr(),j3=Vt();k1.exports=R3;function R3(e,t){let r=_h(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}s(R3,"dereference");function _h(e,t,r,n,i,o){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),bh.isAllowed$Ref(e,o))a=T1(e,t,r,n,i,o),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=R1.join(t,u),p=R1.join(r,u),f=e[u],d=!1;bh.isAllowed$Ref(f,o)?(a=T1(f,l,p,n,i,o),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(f)===-1?(a=_h(f,l,p,n,i,o),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=N1(l,i,o),c.circular=c.circular||d}n.pop()}return c}s(_h,"crawl");function T1(e,t,r,n,i,o){let a=j3.resolve(t,e.$ref),c=i._resolve(a,t,o);if(c===null)return{circular:!1,value:null};let u=c.circular,l=u||n.indexOf(c.value)!==-1;l&&N1(t,i,o);let p=bh.dereference(e,c.value);if(!l){let f=_h(p,c.path,r,n,i,o);l=f.circular,p=f.value}return l&&!u&&o.dereference.circular==="ignore"&&(p=e),u&&(p.$ref=r),{circular:l,value:p}}s(T1,"dereference$Ref");function N1(e,t,r){if(t.circular=!0,!r.dereference.circular)throw I3.reference(`Circular $ref pointer found at ${e}`);return!0}s(N1,"foundCircularReference")});var L1=b((x9,qr)=>{"use strict";var D1=v1(),T3=mh(),Zc=uh(),N3=A1(),k3=j1(),M3=Sh(),As=Vt(),{JSONParserError:q3,InvalidPointerError:D3,MissingPointerError:L3,ResolverError:F3,ParserError:V3,UnmatchedParserError:B3,UnmatchedResolverError:H3,isHandledError:U3,JSONParserErrorGroup:M1}=_r(),Or=fh(),{ono:q1}=hr();qr.exports=Mr;qr.exports.default=Mr;qr.exports.JSONParserError=q3;qr.exports.InvalidPointerError=D3;qr.exports.MissingPointerError=L3;qr.exports.ResolverError=F3;qr.exports.ParserError=V3;qr.exports.UnmatchedParserError=B3;qr.exports.UnmatchedResolverError=H3;function Mr(){this.schema=null,this.$refs=new D1}s(Mr,"$RefParser");Mr.parse=s(function(t,r,n,i){let o=this,a=new o;return a.parse.apply(a,arguments)},"parse");Mr.prototype.parse=s(async function(t,r,n,i){let o=Zc(arguments),a;if(!o.path&&!o.schema){let l=q1(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return Or(o.callback,Promise.reject(l))}this.schema=null,this.$refs=new D1;let c="http";if(As.isFileSystemPath(o.path)&&(o.path=As.fromFileSystemPath(o.path),c="file"),o.path=As.resolve(As.cwd(),o.path),o.schema&&typeof o.schema=="object"){let l=this.$refs._add(o.path);l.value=o.schema,l.pathType=c,a=Promise.resolve(o.schema)}else a=T3(o.path,this.$refs,o.options);let u=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return u.schema=l,Or(o.callback,Promise.resolve(u.schema));if(o.options.continueOnError)return u.schema=null,Or(o.callback,Promise.resolve(u.schema));throw q1.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!o.options.continueOnError||!U3(l)?Or(o.callback,Promise.reject(l)):(this.$refs._$refs[As.stripHash(o.path)]&&this.$refs._$refs[As.stripHash(o.path)].addError(l),Or(o.callback,Promise.resolve(null)))}},"parse");Mr.resolve=s(function(t,r,n,i){let o=this,a=new o;return a.resolve.apply(a,arguments)},"resolve");Mr.prototype.resolve=s(async function(t,r,n,i){let o=this,a=Zc(arguments);try{return await this.parse(a.path,a.schema,a.options),await N3(o,a.options),Oh(o),Or(a.callback,Promise.resolve(o.$refs))}catch(c){return Or(a.callback,Promise.reject(c))}},"resolve");Mr.bundle=s(function(t,r,n,i){let o=this,a=new o;return a.bundle.apply(a,arguments)},"bundle");Mr.prototype.bundle=s(async function(t,r,n,i){let o=this,a=Zc(arguments);try{return await this.resolve(a.path,a.schema,a.options),k3(o,a.options),Oh(o),Or(a.callback,Promise.resolve(o.schema))}catch(c){return Or(a.callback,Promise.reject(c))}},"bundle");Mr.dereference=s(function(t,r,n,i){let o=this,a=new o;return a.dereference.apply(a,arguments)},"dereference");Mr.prototype.dereference=s(async function(t,r,n,i){let o=this,a=Zc(arguments);try{return await this.resolve(a.path,a.schema,a.options),M3(o,a.options),Oh(o),Or(a.callback,Promise.resolve(o.schema))}catch(c){return Or(a.callback,Promise.reject(c))}},"dereference");function Oh(e){if(M1.getParserErrors(e).length>0)throw new M1(e)}s(Oh,"finalize")});var Ph=b((C9,H1)=>{"use strict";var z3=Bd(),G3=zd(),F1=uh(),V1=Wa(),B1=i1(),Yc=fh(),{ono:Pr}=hr(),bi=L1(),W3=Sh();H1.exports=Dr;function Dr(){bi.apply(this,arguments)}s(Dr,"SwaggerParser");V1.inherits(Dr,bi);Dr.parse=bi.parse;Dr.resolve=bi.resolve;Dr.bundle=bi.bundle;Dr.dereference=bi.dereference;Object.defineProperty(Dr.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});Dr.prototype.parse=async function(e,t,r,n){let i=F1(arguments);i.options=new B1(i.options);try{let o=await bi.prototype.parse.call(this,i.path,i.schema,i.options);if(o.swagger){if(o.swagger===void 0||o.info===void 0||o.paths===void 0)throw Pr.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw Pr.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw Pr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw Pr.syntax(`Unrecognized Swagger version: ${o.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(o.openapi===void 0||o.info===void 0)throw Pr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(o.paths===void 0)if(o.openapi==="3.1.0"){if(o.webhooks===void 0)throw Pr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw Pr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw Pr.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw Pr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(o.openapi)===-1)throw Pr.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}V1.fixOasRelativeServers(o,i.path)}return Yc(i.callback,Promise.resolve(o))}catch(o){return Yc(i.callback,Promise.reject(o))}};Dr.validate=function(e,t,r,n){let i=this,o=new i;return o.validate.apply(o,arguments)};Dr.prototype.validate=async function(e,t,r,n){let i=this,o=F1(arguments);o.options=new B1(o.options);let a=o.options.dereference.circular;o.options.validate.schema&&(o.options.dereference.circular="ignore");try{if(await this.dereference(o.path,o.schema,o.options),o.options.dereference.circular=a,o.options.validate.schema&&(z3(i.api),i.$refs.circular)){if(a===!0)W3(i,o.options);else if(a===!1)throw Pr.reference("The API contains circular references")}return o.options.validate.spec&&G3(i.api),Yc(o.callback,Promise.resolve(i.schema))}catch(c){return Yc(o.callback,Promise.reject(c))}}});var xt=b(Bt=>{"use strict";Bt.__esModule=!0;Bt.extend=zO;Bt.indexOf=xM;Bt.escapeExpression=AM;Bt.isEmpty=CM;Bt.createFrame=IM;Bt.blockParams=jM;Bt.appendContextPath=RM;var PM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},wM=/[&<>"'`=]/g,$M=/[&<>"'`=]/;function EM(e){return PM[e]}s(EM,"escapeChar");function zO(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}s(zO,"extend");var Qh=Object.prototype.toString;Bt.toString=Qh;var Jh=s(function(t){return typeof t=="function"},"isFunction");Jh(/x/)&&(Bt.isFunction=Jh=s(function(e){return typeof e=="function"&&Qh.call(e)==="[object Function]"},"isFunction"));Bt.isFunction=Jh;var GO=Array.isArray||function(e){return e&&typeof e=="object"?Qh.call(e)==="[object Array]":!1};Bt.isArray=GO;function xM(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}s(xM,"indexOf");function AM(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return $M.test(e)?e.replace(wM,EM):e}s(AM,"escapeExpression");function CM(e){return!e&&e!==0?!0:!!(GO(e)&&e.length===0)}s(CM,"isEmpty");function IM(e){var t=zO({},e);return t._parent=e,t}s(IM,"createFrame");function jM(e,t){return e.path=t,e}s(jM,"blockParams");function RM(e,t){return(e?e+".":"")+t}s(RM,"appendContextPath")});var or=b((ou,WO)=>{"use strict";ou.__esModule=!0;var Xh=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function em(e,t){var r=t&&t.loc,n=void 0,i=void 0,o=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,o=r.start.column,a=r.end.column,e+=" - "+n+":"+o);for(var c=Error.prototype.constructor.call(this,e),u=0;u<Xh.length;u++)this[Xh[u]]=c[Xh[u]];Error.captureStackTrace&&Error.captureStackTrace(this,em);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:o,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=o,this.endColumn=a))}catch{}}s(em,"Exception");em.prototype=new Error;ou.default=em;WO.exports=ou.default});var ZO=b((au,KO)=>{"use strict";au.__esModule=!0;var tm=xt();au.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(tm.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var o=tm.createFrame(r.data);o.contextPath=tm.appendContextPath(r.data.contextPath,r.name),r={data:o}}return i(t,r)})};KO.exports=au.default});var JO=b((cu,YO)=>{"use strict";cu.__esModule=!0;function TM(e){return e&&e.__esModule?e:{default:e}}s(TM,"_interopRequireDefault");var sa=xt(),NM=or(),kM=TM(NM);cu.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new kM.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,o=0,a="",c=void 0,u=void 0;r.data&&r.ids&&(u=sa.appendContextPath(r.data.contextPath,r.ids[0])+"."),sa.isFunction(t)&&(t=t.call(this)),r.data&&(c=sa.createFrame(r.data));function l(y,v,g){c&&(c.key=y,c.index=v,c.first=v===0,c.last=!!g,u&&(c.contextPath=u+y)),a=a+n(t[y],{data:c,blockParams:sa.blockParams([t[y],y],[u+y,null])})}if(s(l,"execIteration"),t&&typeof t=="object")if(sa.isArray(t))for(var p=t.length;o<p;o++)o in t&&l(o,o,o===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;o<p;o++)l(o,o,o===t.length-1)}else(function(){var y=void 0;Object.keys(t).forEach(function(v){y!==void 0&&l(y,o-1),y=v,o++}),y!==void 0&&l(y,o-1,!0)})();return o===0&&(a=i(this)),a})};YO.exports=cu.default});var XO=b((uu,QO)=>{"use strict";uu.__esModule=!0;function MM(e){return e&&e.__esModule?e:{default:e}}s(MM,"_interopRequireDefault");var qM=or(),DM=MM(qM);uu.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new DM.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};QO.exports=uu.default});var nP=b((lu,rP)=>{"use strict";lu.__esModule=!0;function LM(e){return e&&e.__esModule?e:{default:e}}s(LM,"_interopRequireDefault");var eP=xt(),FM=or(),tP=LM(FM);lu.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new tP.default("#if requires exactly one argument");return eP.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||eP.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new tP.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};rP.exports=lu.default});var sP=b((fu,iP)=>{"use strict";fu.__esModule=!0;fu.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)})};iP.exports=fu.default});var aP=b((pu,oP)=>{"use strict";pu.__esModule=!0;pu.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};oP.exports=pu.default});var uP=b((du,cP)=>{"use strict";du.__esModule=!0;function VM(e){return e&&e.__esModule?e:{default:e}}s(VM,"_interopRequireDefault");var oa=xt(),BM=or(),HM=VM(BM);du.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new HM.default("#with requires exactly one argument");oa.isFunction(t)&&(t=t.call(this));var n=r.fn;if(oa.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=oa.createFrame(r.data),i.contextPath=oa.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:oa.blockParams([t],[i&&i.contextPath])})})};cP.exports=du.default});var rm=b(hu=>{"use strict";hu.__esModule=!0;hu.registerDefaultHelpers=iq;hu.moveHelperToHooks=sq;function Ei(e){return e&&e.__esModule?e:{default:e}}s(Ei,"_interopRequireDefault");var UM=ZO(),zM=Ei(UM),GM=JO(),WM=Ei(GM),KM=XO(),ZM=Ei(KM),YM=nP(),JM=Ei(YM),QM=sP(),XM=Ei(QM),eq=aP(),tq=Ei(eq),rq=uP(),nq=Ei(rq);function iq(e){zM.default(e),WM.default(e),ZM.default(e),JM.default(e),XM.default(e),tq.default(e),nq.default(e)}s(iq,"registerDefaultHelpers");function sq(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}s(sq,"moveHelperToHooks")});var fP=b((mu,lP)=>{"use strict";mu.__esModule=!0;var oq=xt();mu.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var o=t;return r.partials||(r.partials={},o=s(function(a,c){var u=n.partials;n.partials=oq.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,o})};lP.exports=mu.default});var pP=b(nm=>{"use strict";nm.__esModule=!0;nm.registerDefaultDecorators=lq;function aq(e){return e&&e.__esModule?e:{default:e}}s(aq,"_interopRequireDefault");var cq=fP(),uq=aq(cq);function lq(e){uq.default(e)}s(lq,"registerDefaultDecorators")});var im=b((gu,dP)=>{"use strict";gu.__esModule=!0;var fq=xt(),qs={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:s(function(t){if(typeof t=="string"){var r=fq.indexOf(qs.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:s(function(t){if(t=qs.lookupLevel(t),typeof console<"u"&&qs.lookupLevel(qs.level)<=t){var r=qs.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];console[r].apply(console,i)}},"log")};gu.default=qs;dP.exports=gu.default});var hP=b(sm=>{"use strict";sm.__esModule=!0;sm.createNewLookupObject=dq;var pq=xt();function dq(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return pq.extend.apply(void 0,[Object.create(null)].concat(t))}s(dq,"createNewLookupObject")});var om=b(aa=>{"use strict";aa.__esModule=!0;aa.createProtoAccessControl=yq;aa.resultIsAllowed=vq;aa.resetLoggedProperties=_q;function hq(e){return e&&e.__esModule?e:{default:e}}s(hq,"_interopRequireDefault");var mP=hP(),mq=im(),gq=hq(mq),yu=Object.create(null);function yq(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:mP.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:mP.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}s(yq,"createProtoAccessControl");function vq(e,t,r){return gP(typeof e=="function"?t.methods:t.properties,r)}s(vq,"resultIsAllowed");function gP(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(bq(t),!1)}s(gP,"checkWhiteList");function bq(e){yu[e]!==!0&&(yu[e]=!0,gq.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=Ws.resolve(e,s.headers.location);iP(a,t,r).then(n,i)}else throw Kc({status:s.statusCode},`HTTP ${s.statusCode} redirect with no location header`);else n(s.body||Buffer.alloc(0))}).catch(s=>{i(new nP(Kc(s,`Error downloading ${e.href}`),e.href))})})}o(iP,"download");function o3(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?i3:n3).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(o3,"get")});var yh=b(($9,cP)=>{"use strict";var s3=n_(),a3=KS(),c3=JS(),u3=XS(),l3=rP(),f3=sP();cP.exports=gh;function gh(e){mh(this,gh.defaults),mh(this,e)}o(gh,"$RefParserOptions");gh.defaults={parse:{json:s3,yaml:a3,text:c3,binary:u3},resolve:{file:l3,http:f3,external:!0},continueOnError:!1,dereference:{circular:!0}};function mh(e,t){if(aP(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];aP(s)?e[i]=mh(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(mh,"merge");function aP(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(aP,"isMergeable")});var vh=b((x9,lP)=>{"use strict";var uP=yh();lP.exports=p3;function p3(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 uP||(n=new uP(n)),{path:t,schema:r,options:n,callback:i}}o(p3,"normalizeArgs")});var pP=b((C9,fP)=>{"use strict";var bh=yh(),d3=Jd(),h3=eh(),m3=require("util");fP.exports=Yc;function Yc(e){bh.call(this,Yc.defaults),bh.apply(this,arguments)}o(Yc,"ParserOptions");Yc.defaults={validate:{schema:d3,spec:h3}};m3.inherits(Yc,bh)});var hP=b((R9,dP)=>{"use strict";function g3(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(g3,"makeNext");dP.exports=g3()});var _h=b((T9,gP)=>{"use strict";var mP=hP();gP.exports=o(function(t,r){if(t){r.then(function(n){mP(function(){t(null,n)})},function(n){mP(function(){t(n)})});return}else return r},"maybe")});var Ks=b((k9,bP)=>{"use strict";bP.exports=xn;var Sh=To(),Ph=zt(),{JSONParserError:y3,InvalidPointerError:v3,MissingPointerError:b3,isHandledError:_3}=Or(),S3=/\//g,P3=/~/g,O3=/~1/g,w3=/~0/g;function xn(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(xn,"Pointer");xn.prototype.resolve=function(e,t,r){let n=xn.parse(this.path,this.originalPath);this.value=vP(e);for(let i=0;i<n.length;i++){if(Jc(this,t)&&(this.path=xn.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 b3(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&Ph.resolve(this.path,this.value.$ref)!==r)&&Jc(this,t),this};xn.prototype.set=function(e,t,r){let n=xn.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=vP(e);for(let s=0;s<n.length-1;s++)Jc(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=yP(this,i,{});return Jc(this,r),i=n[n.length-1],yP(this,i,t),e};xn.parse=function(e,t){let r=Ph.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(O3,"/").replace(w3,"~"));if(r[0]!=="")throw new v3(r,t===void 0?e:t);return r.slice(1)};xn.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(P3,"~0").replace(S3,"~1"))}return e};function Jc(e,t){if(Sh.isAllowed$Ref(e.value,t)){let r=Ph.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,Sh.isExtended$Ref(e.value)?(e.value=Sh.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(Jc,"resolveIf$Ref");function yP(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 y3(`Error assigning $ref pointer "${e.path}".
48
+ Cannot set "${t}" of a non-object.`);return r}o(yP,"setValue");function vP(e){if(_3(e))throw e;return e}o(vP,"unwrapOrThrow")});var To=b((q9,PP)=>{"use strict";PP.exports=xt;var SP=Ks(),{InvalidPointerError:$3,isHandledError:E3,normalizeError:_P}=Or(),{safePointerToPath:x3,stripHash:A3,getHash:C3}=zt();function xt(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}o(xt,"$Ref");xt.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(_P)):this.errors.push(_P(e))};xt.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};xt.prototype.get=function(e,t){return this.resolve(e,t).value};xt.prototype.resolve=function(e,t,r,n){let i=new SP(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!E3(s))throw s;return s.path===null&&(s.path=x3(C3(n))),s instanceof $3&&(s.source=A3(n)),this.addError(s),null}};xt.prototype.set=function(e,t){let r=new SP(this,e);this.value=r.set(this.value,t)};xt.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};xt.isExternal$Ref=function(e){return xt.is$Ref(e)&&e.$ref[0]!=="#"};xt.isAllowed$Ref=function(e,t){if(xt.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};xt.isExtended$Ref=function(e){return xt.is$Ref(e)&&Object.keys(e).length>1};xt.dereference=function(e,t){if(t&&typeof t=="object"&&xt.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 EP=b((L9,$P)=>{"use strict";var{ono:OP}=yr(),I3=To(),An=zt();$P.exports=wr;function wr(){this.circular=!1,this._$refs={},this._root$Ref=null}o(wr,"$Refs");wr.prototype.paths=function(e){return wP(this._$refs,arguments).map(r=>r.decoded)};wr.prototype.values=function(e){let t=this._$refs;return wP(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};wr.prototype.toJSON=wr.prototype.values;wr.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};wr.prototype.get=function(e,t){return this._resolve(e,"",t).value};wr.prototype.set=function(e,t){let r=An.resolve(this._root$Ref.path,e),n=An.stripHash(r),i=this._$refs[n];if(!i)throw OP(`Error resolving $ref pointer "${e}".
49
+ "${n}" not found.`);i.set(r,t)};wr.prototype._add=function(e){let t=An.stripHash(e),r=new I3;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};wr.prototype._resolve=function(e,t,r){let n=An.resolve(this._root$Ref.path,e),i=An.stripHash(n),s=this._$refs[i];if(!s)throw OP(`Error resolving $ref pointer "${e}".
50
+ "${i}" not found.`);return s.resolve(n,r,e,t)};wr.prototype._get$Ref=function(e){e=An.resolve(this._root$Ref.path,e);let t=An.stripHash(e);return this._$refs[t]};function wP(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"?An.toFileSystemPath(n,!0):n}))}o(wP,"getPaths")});var AP=b(Ys=>{"use strict";Ys.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Ys.filter=function(e,t,r){return e.filter(n=>!!xP(n,t,r))};Ys.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)};Ys.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=xP(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 xP(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(xP,"getResult")});var wh=b((H9,jP)=>{"use strict";var{ono:Oh}=yr(),CP=zt(),Cn=AP(),{ResolverError:IP,ParserError:RP,UnmatchedParserError:R3,UnmatchedResolverError:j3,isHandledError:T3}=Or();jP.exports=N3;async function N3(e,t,r){e=CP.stripHash(e);let n=t._add(e),i={url:e,extension:CP.getExtension(e)};try{let s=await k3(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await M3(i,r,t);return n.value=a.result,a.result}catch(s){throw T3(s)&&(n.value=s),s}}o(N3,"parse");function k3(e,t,r){return new Promise((n,i)=>{let s=Cn.all(t.resolve);s=Cn.filter(s,"canRead",e),Cn.sort(s),Cn.run(s,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new j3(e.url)):!c||!("error"in c)?i(Oh.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof IP?i(c.error):i(new IP(c,e.url))}o(a,"onError")})}o(k3,"readFile");function M3(e,t,r){return new Promise((n,i)=>{let s=Cn.all(t.parse),a=Cn.filter(s,"canParse",e),c=a.length>0?a:s;Cn.sort(c),Cn.run(c,"parse",e,r).then(u,l);function u(p){!p.plugin.allowEmpty&&q3(p.result)?i(Oh.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 R3(e.url)):!p||!("error"in p)?i(Oh.syntax(`Unable to parse ${e.url}`)):p.error instanceof RP?i(p.error):i(new RP(p.error.message,e.url))}o(l,"onError")})}o(M3,"parseFile");function q3(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(q3,"isEmpty")});var MP=b((z9,kP)=>{"use strict";var TP=To(),D3=Ks(),L3=wh(),Js=zt(),{isHandledError:F3}=Or();kP.exports=V3;function V3(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=$h(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(V3,"resolveExternal");function $h(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(TP.isExternal$Ref(e))i.push(NP(e,t,r,n));else for(let s of Object.keys(e)){let a=D3.join(t,s),c=e[s];TP.isExternal$Ref(c)?i.push(NP(c,a,r,n)):i=i.concat($h(c,a,r,n))}return i}o($h,"crawl");async function NP(e,t,r,n){let i=Js.resolve(t,e.$ref),s=Js.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await L3(i,r,n),c=$h(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!F3(a))throw a;return r._$refs[s]&&(a.source=Js.stripHash(t),a.path=Js.safePointerToPath(Js.getHash(t))),[]}}o(NP,"resolve$Ref")});var LP=b((Z9,DP)=>{"use strict";var Qc=To(),Qs=Ks(),Eh=zt();DP.exports=B3;function B3(e,t){let r=[];xh(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),H3(r)}o(B3,"bundle");function xh(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(Qc.isAllowed$Ref(u))qP(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=Qs.join(r,p),d=Qs.join(n,p),h=u[p];Qc.isAllowed$Ref(h)?qP(u,p,r,d,i,s,a,c):xh(u,p,f,d,i,s,a,c)}}}o(xh,"crawl");function qP(e,t,r,n,i,s,a,c){let u=t===null?e:e[t],l=Eh.resolve(r,u.$ref),p=a._resolve(l,n,c);if(p===null)return;let f=Qs.parse(n).length,d=Eh.stripHash(p.path),h=Eh.getHash(p.path),y=d!==a._root$Ref.path,v=Qc.isExtended$Ref(u);i+=p.indirections;let g=U3(s,e,t);if(g)if(f<g.depth||i<g.indirections)z3(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:v,external:y,indirections:i}),g||xh(p.value,null,p.path,n,i+1,s,a,c)}o(qP,"inventory$Ref");function H3(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=Qs.join(n,Qs.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Qc.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(H3,"remap");function U3(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(U3,"findInInventory");function z3(e,t){let r=e.indexOf(t);e.splice(r,1)}o(z3,"removeFromInventory")});var Ih=b((K9,HP)=>{"use strict";var Ah=To(),FP=Ks(),{ono:G3}=yr(),Z3=zt();HP.exports=W3;function W3(e,t){let r=Ch(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(W3,"dereference");function Ch(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),Ah.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=FP.join(t,u),p=FP.join(r,u),f=e[u],d=!1;Ah.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=Ch(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=BP(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(Ch,"crawl");function VP(e,t,r,n,i,s){let a=Z3.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&&BP(t,i,s);let p=Ah.dereference(e,c.value);if(!l){let f=Ch(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 BP(e,t,r){if(t.circular=!0,!r.dereference.circular)throw G3.reference(`Circular $ref pointer found at ${e}`);return!0}o(BP,"foundCircularReference")});var ZP=b((J9,Vr)=>{"use strict";var GP=EP(),K3=wh(),Xc=vh(),Y3=MP(),J3=LP(),Q3=Ih(),No=zt(),{JSONParserError:X3,InvalidPointerError:eM,MissingPointerError:tM,ResolverError:rM,ParserError:nM,UnmatchedParserError:iM,UnmatchedResolverError:oM,isHandledError:sM,JSONParserErrorGroup:UP}=Or(),$r=_h(),{ono:zP}=yr();Vr.exports=Fr;Vr.exports.default=Fr;Vr.exports.JSONParserError=X3;Vr.exports.InvalidPointerError=eM;Vr.exports.MissingPointerError=tM;Vr.exports.ResolverError=rM;Vr.exports.ParserError=nM;Vr.exports.UnmatchedParserError=iM;Vr.exports.UnmatchedResolverError=oM;function Fr(){this.schema=null,this.$refs=new GP}o(Fr,"$RefParser");Fr.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");Fr.prototype.parse=o(async function(t,r,n,i){let s=Xc(arguments),a;if(!s.path&&!s.schema){let l=zP(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return $r(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new GP;let c="http";if(No.isFileSystemPath(s.path)&&(s.path=No.fromFileSystemPath(s.path),c="file"),s.path=No.resolve(No.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=K3(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,$r(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,$r(s.callback,Promise.resolve(u.schema));throw zP.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!sM(l)?$r(s.callback,Promise.reject(l)):(this.$refs._$refs[No.stripHash(s.path)]&&this.$refs._$refs[No.stripHash(s.path)].addError(l),$r(s.callback,Promise.resolve(null)))}},"parse");Fr.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");Fr.prototype.resolve=o(async function(t,r,n,i){let s=this,a=Xc(arguments);try{return await this.parse(a.path,a.schema,a.options),await Y3(s,a.options),Rh(s),$r(a.callback,Promise.resolve(s.$refs))}catch(c){return $r(a.callback,Promise.reject(c))}},"resolve");Fr.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");Fr.prototype.bundle=o(async function(t,r,n,i){let s=this,a=Xc(arguments);try{return await this.resolve(a.path,a.schema,a.options),J3(s,a.options),Rh(s),$r(a.callback,Promise.resolve(s.schema))}catch(c){return $r(a.callback,Promise.reject(c))}},"bundle");Fr.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");Fr.prototype.dereference=o(async function(t,r,n,i){let s=this,a=Xc(arguments);try{return await this.resolve(a.path,a.schema,a.options),Q3(s,a.options),Rh(s),$r(a.callback,Promise.resolve(s.schema))}catch(c){return $r(a.callback,Promise.reject(c))}},"dereference");function Rh(e){if(UP.getParserErrors(e).length>0)throw new UP(e)}o(Rh,"finalize")});var jh=b((X9,JP)=>{"use strict";var aM=Jd(),cM=eh(),WP=vh(),KP=Ja(),YP=pP(),eu=_h(),{ono:Er}=yr(),wi=ZP(),uM=Ih();JP.exports=Br;function Br(){wi.apply(this,arguments)}o(Br,"SwaggerParser");KP.inherits(Br,wi);Br.parse=wi.parse;Br.resolve=wi.resolve;Br.bundle=wi.bundle;Br.dereference=wi.dereference;Object.defineProperty(Br.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});Br.prototype.parse=async function(e,t,r,n){let i=WP(arguments);i.options=new YP(i.options);try{let s=await wi.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 Er.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw Er.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw Er.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw Er.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 Er.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 Er.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw Er.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw Er.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw Er.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw Er.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}KP.fixOasRelativeServers(s,i.path)}return eu(i.callback,Promise.resolve(s))}catch(s){return eu(i.callback,Promise.reject(s))}};Br.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};Br.prototype.validate=async function(e,t,r,n){let i=this,s=WP(arguments);s.options=new YP(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&&(aM(i.api),i.$refs.circular)){if(a===!0)uM(i,s.options);else if(a===!1)throw Er.reference("The API contains circular references")}return s.options.validate.spec&&cM(i.api),eu(s.callback,Promise.resolve(i.schema))}catch(c){return eu(s.callback,Promise.reject(c))}}});var Ct=b(Zt=>{"use strict";Zt.__esModule=!0;Zt.extend=aO;Zt.indexOf=JM;Zt.escapeExpression=QM;Zt.isEmpty=XM;Zt.createFrame=eq;Zt.blockParams=tq;Zt.appendContextPath=rq;var ZM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},WM=/[&<>"'`=]/g,KM=/[&<>"'`=]/;function YM(e){return ZM[e]}o(YM,"escapeChar");function aO(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(aO,"extend");var am=Object.prototype.toString;Zt.toString=am;var sm=o(function(t){return typeof t=="function"},"isFunction");sm(/x/)&&(Zt.isFunction=sm=o(function(e){return typeof e=="function"&&am.call(e)==="[object Function]"},"isFunction"));Zt.isFunction=sm;var cO=Array.isArray||function(e){return e&&typeof e=="object"?am.call(e)==="[object Array]":!1};Zt.isArray=cO;function JM(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(JM,"indexOf");function QM(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return KM.test(e)?e.replace(WM,YM):e}o(QM,"escapeExpression");function XM(e){return!e&&e!==0?!0:!!(cO(e)&&e.length===0)}o(XM,"isEmpty");function eq(e){var t=aO({},e);return t._parent=e,t}o(eq,"createFrame");function tq(e,t){return e.path=t,e}o(tq,"blockParams");function rq(e,t){return(e?e+".":"")+t}o(rq,"appendContextPath")});var cr=b((mu,uO)=>{"use strict";mu.__esModule=!0;var cm=["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<cm.length;u++)this[cm[u]]=c[cm[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;mu.default=um;uO.exports=mu.default});var fO=b((gu,lO)=>{"use strict";gu.__esModule=!0;var lm=Ct();gu.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(lm.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=lm.createFrame(r.data);s.contextPath=lm.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};lO.exports=gu.default});var dO=b((yu,pO)=>{"use strict";yu.__esModule=!0;function nq(e){return e&&e.__esModule?e:{default:e}}o(nq,"_interopRequireDefault");var ua=Ct(),iq=cr(),oq=nq(iq);yu.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new oq.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=ua.appendContextPath(r.data.contextPath,r.ids[0])+"."),ua.isFunction(t)&&(t=t.call(this)),r.data&&(c=ua.createFrame(r.data));function l(y,v,g){c&&(c.key=y,c.index=v,c.first=v===0,c.last=!!g,u&&(c.contextPath=u+y)),a=a+n(t[y],{data:c,blockParams:ua.blockParams([t[y],y],[u+y,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(ua.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(v){y!==void 0&&l(y,s-1),y=v,s++}),y!==void 0&&l(y,s-1,!0)})();return s===0&&(a=i(this)),a})};pO.exports=yu.default});var mO=b((vu,hO)=>{"use strict";vu.__esModule=!0;function sq(e){return e&&e.__esModule?e:{default:e}}o(sq,"_interopRequireDefault");var aq=cr(),cq=sq(aq);vu.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new cq.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};hO.exports=vu.default});var bO=b((bu,vO)=>{"use strict";bu.__esModule=!0;function uq(e){return e&&e.__esModule?e:{default:e}}o(uq,"_interopRequireDefault");var gO=Ct(),lq=cr(),yO=uq(lq);bu.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new yO.default("#if requires exactly one argument");return gO.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||gO.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new yO.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};vO.exports=bu.default});var SO=b((_u,_O)=>{"use strict";_u.__esModule=!0;_u.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)})};_O.exports=_u.default});var OO=b((Su,PO)=>{"use strict";Su.__esModule=!0;Su.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};PO.exports=Su.default});var $O=b((Pu,wO)=>{"use strict";Pu.__esModule=!0;function fq(e){return e&&e.__esModule?e:{default:e}}o(fq,"_interopRequireDefault");var la=Ct(),pq=cr(),dq=fq(pq);Pu.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new dq.default("#with requires exactly one argument");la.isFunction(t)&&(t=t.call(this));var n=r.fn;if(la.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=la.createFrame(r.data),i.contextPath=la.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:la.blockParams([t],[i&&i.contextPath])})})};wO.exports=Pu.default});var fm=b(Ou=>{"use strict";Ou.__esModule=!0;Ou.registerDefaultHelpers=Aq;Ou.moveHelperToHooks=Cq;function Ri(e){return e&&e.__esModule?e:{default:e}}o(Ri,"_interopRequireDefault");var hq=fO(),mq=Ri(hq),gq=dO(),yq=Ri(gq),vq=mO(),bq=Ri(vq),_q=bO(),Sq=Ri(_q),Pq=SO(),Oq=Ri(Pq),wq=OO(),$q=Ri(wq),Eq=$O(),xq=Ri(Eq);function Aq(e){mq.default(e),yq.default(e),bq.default(e),Sq.default(e),Oq.default(e),$q.default(e),xq.default(e)}o(Aq,"registerDefaultHelpers");function Cq(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(Cq,"moveHelperToHooks")});var xO=b((wu,EO)=>{"use strict";wu.__esModule=!0;var Iq=Ct();wu.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=Iq.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};EO.exports=wu.default});var AO=b(pm=>{"use strict";pm.__esModule=!0;pm.registerDefaultDecorators=Nq;function Rq(e){return e&&e.__esModule?e:{default:e}}o(Rq,"_interopRequireDefault");var jq=xO(),Tq=Rq(jq);function Nq(e){Tq.default(e)}o(Nq,"registerDefaultDecorators")});var dm=b(($u,CO)=>{"use strict";$u.__esModule=!0;var kq=Ct(),Fo={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=kq.indexOf(Fo.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=Fo.lookupLevel(t),typeof console<"u"&&Fo.lookupLevel(Fo.level)<=t){var r=Fo.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")};$u.default=Fo;CO.exports=$u.default});var IO=b(hm=>{"use strict";hm.__esModule=!0;hm.createNewLookupObject=qq;var Mq=Ct();function qq(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return Mq.extend.apply(void 0,[Object.create(null)].concat(t))}o(qq,"createNewLookupObject")});var mm=b(fa=>{"use strict";fa.__esModule=!0;fa.createProtoAccessControl=Vq;fa.resultIsAllowed=Bq;fa.resetLoggedProperties=Uq;function Dq(e){return e&&e.__esModule?e:{default:e}}o(Dq,"_interopRequireDefault");var RO=IO(),Lq=dm(),Fq=Dq(Lq),Eu=Object.create(null);function Vq(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:RO.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:RO.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(Vq,"createProtoAccessControl");function Bq(e,t,r){return jO(typeof e=="function"?t.methods:t.properties,r)}o(Bq,"resultIsAllowed");function jO(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(Hq(t),!1)}o(jO,"checkWhiteList");function Hq(e){Eu[e]!==!0&&(Eu[e]=!0,Fq.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`))}s(bq,"logUnexpecedPropertyAccessOnce");function _q(){Object.keys(yu).forEach(function(e){delete yu[e]})}s(_q,"resetLoggedProperties")});var bu=b(Ur=>{"use strict";Ur.__esModule=!0;Ur.HandlebarsEnvironment=um;function yP(e){return e&&e.__esModule?e:{default:e}}s(yP,"_interopRequireDefault");var xi=xt(),Sq=or(),am=yP(Sq),Oq=rm(),Pq=pP(),wq=im(),vu=yP(wq),$q=om(),Eq="4.7.8";Ur.VERSION=Eq;var xq=8;Ur.COMPILER_REVISION=xq;var Aq=7;Ur.LAST_COMPATIBLE_COMPILER_REVISION=Aq;var Cq={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"};Ur.REVISION_CHANGES=Cq;var cm="[object Object]";function um(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},Oq.registerDefaultHelpers(this),Pq.registerDefaultDecorators(this)}s(um,"HandlebarsEnvironment");um.prototype={constructor:um,logger:vu.default,log:vu.default.log,registerHelper:s(function(t,r){if(xi.toString.call(t)===cm){if(r)throw new am.default("Arg not supported with multiple helpers");xi.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:s(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:s(function(t,r){if(xi.toString.call(t)===cm)xi.extend(this.partials,t);else{if(typeof r>"u")throw new am.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:s(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:s(function(t,r){if(xi.toString.call(t)===cm){if(r)throw new am.default("Arg not supported with multiple decorators");xi.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:s(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:s(function(){$q.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Iq=vu.default.log;Ur.log=Iq;Ur.createFrame=xi.createFrame;Ur.logger=vu.default});var bP=b((_u,vP)=>{"use strict";_u.__esModule=!0;function lm(e){this.string=e}s(lm,"SafeString");lm.prototype.toString=lm.prototype.toHTML=function(){return""+this.string};_u.default=lm;vP.exports=_u.default});var _P=b(fm=>{"use strict";fm.__esModule=!0;fm.wrapHelper=jq;function jq(e,t){if(typeof e!="function")return e;var r=s(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}s(jq,"wrapHelper")});var $P=b(kn=>{"use strict";kn.__esModule=!0;kn.checkRevision=qq;kn.template=Dq;kn.wrapProgram=Su;kn.resolvePartial=Lq;kn.invokePartial=Fq;kn.noop=PP;function Rq(e){return e&&e.__esModule?e:{default:e}}s(Rq,"_interopRequireDefault");function Tq(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(Tq,"_interopRequireWildcard");var Nq=xt(),en=Tq(Nq),kq=or(),tn=Rq(kq),rn=bu(),SP=rm(),Mq=_P(),OP=om();function qq(e){var t=e&&e[0]||1,r=rn.COMPILER_REVISION;if(!(t>=rn.LAST_COMPATIBLE_COMPILER_REVISION&&t<=rn.COMPILER_REVISION))if(t<rn.LAST_COMPATIBLE_COMPILER_REVISION){var n=rn.REVISION_CHANGES[r],i=rn.REVISION_CHANGES[t];throw new tn.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 tn.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}s(qq,"checkRevision");function Dq(e,t){if(!t)throw new tn.default("No environment passed to template");if(!e||!e.main)throw new tn.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=en.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=en.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(Hq,"logUnexpecedPropertyAccessOnce");function Uq(){Object.keys(Eu).forEach(function(e){delete Eu[e]})}o(Uq,"resetLoggedProperties")});var Au=b(Wr=>{"use strict";Wr.__esModule=!0;Wr.HandlebarsEnvironment=vm;function TO(e){return e&&e.__esModule?e:{default:e}}o(TO,"_interopRequireDefault");var ji=Ct(),zq=cr(),gm=TO(zq),Gq=fm(),Zq=AO(),Wq=dm(),xu=TO(Wq),Kq=mm(),Yq="4.7.8";Wr.VERSION=Yq;var Jq=8;Wr.COMPILER_REVISION=Jq;var Qq=7;Wr.LAST_COMPATIBLE_COMPILER_REVISION=Qq;var Xq={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"};Wr.REVISION_CHANGES=Xq;var ym="[object Object]";function vm(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},Gq.registerDefaultHelpers(this),Zq.registerDefaultDecorators(this)}o(vm,"HandlebarsEnvironment");vm.prototype={constructor:vm,logger:xu.default,log:xu.default.log,registerHelper:o(function(t,r){if(ji.toString.call(t)===ym){if(r)throw new gm.default("Arg not supported with multiple helpers");ji.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(ji.toString.call(t)===ym)ji.extend(this.partials,t);else{if(typeof r>"u")throw new gm.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(ji.toString.call(t)===ym){if(r)throw new gm.default("Arg not supported with multiple decorators");ji.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Kq.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var e4=xu.default.log;Wr.log=e4;Wr.createFrame=ji.createFrame;Wr.logger=xu.default});var kO=b((Cu,NO)=>{"use strict";Cu.__esModule=!0;function bm(e){this.string=e}o(bm,"SafeString");bm.prototype.toString=bm.prototype.toHTML=function(){return""+this.string};Cu.default=bm;NO.exports=Cu.default});var MO=b(_m=>{"use strict";_m.__esModule=!0;_m.wrapHelper=t4;function t4(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(t4,"wrapHelper")});var VO=b(Vn=>{"use strict";Vn.__esModule=!0;Vn.checkRevision=a4;Vn.template=c4;Vn.wrapProgram=Iu;Vn.resolvePartial=u4;Vn.invokePartial=l4;Vn.noop=LO;function r4(e){return e&&e.__esModule?e:{default:e}}o(r4,"_interopRequireDefault");function n4(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(n4,"_interopRequireWildcard");var i4=Ct(),nn=n4(i4),o4=cr(),on=r4(o4),sn=Au(),qO=fm(),s4=MO(),DO=mm();function a4(e){var t=e&&e[0]||1,r=sn.COMPILER_REVISION;if(!(t>=sn.LAST_COMPATIBLE_COMPILER_REVISION&&t<=sn.COMPILER_REVISION))if(t<sn.LAST_COMPATIBLE_COMPILER_REVISION){var n=sn.REVISION_CHANGES[r],i=sn.REVISION_CHANGES[t];throw new on.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 on.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(a4,"checkRevision");function c4(e,t){if(!t)throw new on.default("No environment passed to template");if(!e||!e.main)throw new on.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=nn.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=nn.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 tn.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}s(n,"invokePartialWrapper");var i={strict:s(function(c,u,l){if(!c||!(u in c))throw new tn.default('"'+u+'" not defined in '+c,{loc:l});return i.lookupProperty(c,u)},"strict"),lookupProperty:s(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||OP.resultIsAllowed(l,i.protoAccessControl,u))return l},"lookupProperty"),lookup:s(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:s(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:en.escapeExpression,invokePartial:n,fn:s(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:s(function(c,u,l,p,f){var d=this.programs[c],h=this.fn(c);return u||f||p||l?d=Su(this,c,h,u,l,p,f):d||(d=this.programs[c]=Su(this,c,h)),d},"program"),data:s(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:s(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=en.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function o(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;o._setup(c),!c.partial&&e.useData&&(u=Vq(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 s(f,"main"),f=wP(e.main,f,i,c.depths||[],u,p),f(a,c)}return s(o,"ret"),o.isTop=!0,o._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c=en.extend({},t.helpers,a.helpers);Bq(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=en.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=OP.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;SP.moveHelperToHooks(i,"helperMissing",u),SP.moveHelperToHooks(i,"blockHelperMissing",u)}},o._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new tn.default("must pass block params");if(e.useDepths&&!l)throw new tn.default("must pass parent depths");return Su(i,a,e[a],c,0,u,l)},o}s(Dq,"template");function Su(e,t,r,n,i,o,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,o&&[l.blockParams].concat(o),p)}return s(c,"prog"),c=wP(r,c,e,a,n,o),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}s(Su,"wrapProgram");function Lq(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}s(Lq,"resolvePartial");function Fq(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!==PP&&function(){r.data=rn.createFrame(r.data);var o=r.fn;i=r.data["partial-block"]=s(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=rn.createFrame(u.data),u.data["partial-block"]=n,o(c,u)},"partialBlockWrapper"),o.partials&&(r.partials=en.extend({},r.partials,o.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new tn.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}s(Fq,"invokePartial");function PP(){return""}s(PP,"noop");function Vq(e,t){return(!t||!("root"in t))&&(t=t?rn.createFrame(t):{},t.root=e),t}s(Vq,"initData");function wP(e,t,r,n,i,o){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,o,n),en.extend(t,a)}return t}s(wP,"executeDecorators");function Bq(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=Hq(n,t)})}s(Bq,"wrapHelpersToPassLookupProperty");function Hq(e,t){var r=t.lookupProperty;return Mq.wrapHelper(e,function(n){return en.extend({lookupProperty:r},n)})}s(Hq,"passLookupPropertyOption")});var pm=b((Ou,EP)=>{"use strict";Ou.__esModule=!0;Ou.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}};EP.exports=Ou.default});var jP=b((Pu,IP)=>{"use strict";Pu.__esModule=!0;function hm(e){return e&&e.__esModule?e:{default:e}}s(hm,"_interopRequireDefault");function mm(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(mm,"_interopRequireWildcard");var Uq=bu(),xP=mm(Uq),zq=bP(),Gq=hm(zq),Wq=or(),Kq=hm(Wq),Zq=xt(),dm=mm(Zq),Yq=$P(),AP=mm(Yq),Jq=pm(),Qq=hm(Jq);function CP(){var e=new xP.HandlebarsEnvironment;return dm.extend(e,xP),e.SafeString=Gq.default,e.Exception=Kq.default,e.Utils=dm,e.escapeExpression=dm.escapeExpression,e.VM=AP,e.template=function(t){return AP.template(t,e)},e}s(CP,"create");var ca=CP();ca.create=CP;Qq.default(ca);ca.default=ca;Pu.default=ca;IP.exports=Pu.default});var gm=b((wu,TP)=>{"use strict";wu.__esModule=!0;var RP={helpers:{helperExpression:s(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:s(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:s(function(t){return t.parts.length===1&&!RP.helpers.scopedId(t)&&!t.depth},"simpleId")}};wu.default=RP;TP.exports=wu.default});var kP=b(($u,NP)=>{"use strict";$u.__esModule=!0;var Xq=function(){var e={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:s(function(i,o,a,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:s(function(i,o){throw new Error(i)},"parseError"),parse:s(function(i){var o=this,a=[0],c=[null],u=[],l=this.table,p="",f=0,d=0,h=0,y=2,v=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var g=this.lexer.yylloc;u.push(g);var w=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function A(be){a.length=a.length-2*be,c.length=c.length-be,u.length=u.length-be}s(A,"popStack");function I(){var be;return be=o.lexer.lex()||1,typeof be!="number"&&(be=o.symbols_[be]||be),be}s(I,"lex");for(var R,C,ae,ce,nt,Pe,Y={},k,j,M,Z;;){if(ae=a[a.length-1],this.defaultActions[ae]?ce=this.defaultActions[ae]:((R===null||typeof R>"u")&&(R=I()),ce=l[ae]&&l[ae][R]),typeof ce>"u"||!ce.length||!ce[0]){var ue="";if(!h){Z=[];for(k in l[ae])this.terminals_[k]&&k>2&&Z.push("'"+this.terminals_[k]+"'");this.lexer.showPosition?ue="Parse error on line "+(f+1)+`:
55
+ `)}return p}else throw new on.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 on.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)||DO.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:nn.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=Iu(this,c,h,u,l,p,f):d||(d=this.programs[c]=Iu(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=nn.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=f4(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=FO(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=nn.extend({},t.helpers,a.helpers);p4(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=nn.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=DO.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;qO.moveHelperToHooks(i,"helperMissing",u),qO.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new on.default("must pass block params");if(e.useDepths&&!l)throw new on.default("must pass parent depths");return Iu(i,a,e[a],c,0,u,l)},s}o(c4,"template");function Iu(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=FO(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(Iu,"wrapProgram");function u4(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(u4,"resolvePartial");function l4(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!==LO&&function(){r.data=sn.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=sn.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=nn.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new on.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(l4,"invokePartial");function LO(){return""}o(LO,"noop");function f4(e,t){return(!t||!("root"in t))&&(t=t?sn.createFrame(t):{},t.root=e),t}o(f4,"initData");function FO(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),nn.extend(t,a)}return t}o(FO,"executeDecorators");function p4(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=d4(n,t)})}o(p4,"wrapHelpersToPassLookupProperty");function d4(e,t){var r=t.lookupProperty;return s4.wrapHelper(e,function(n){return nn.extend({lookupProperty:r},n)})}o(d4,"passLookupPropertyOption")});var Sm=b((Ru,BO)=>{"use strict";Ru.__esModule=!0;Ru.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}};BO.exports=Ru.default});var ZO=b((ju,GO)=>{"use strict";ju.__esModule=!0;function Om(e){return e&&e.__esModule?e:{default:e}}o(Om,"_interopRequireDefault");function wm(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(wm,"_interopRequireWildcard");var h4=Au(),HO=wm(h4),m4=kO(),g4=Om(m4),y4=cr(),v4=Om(y4),b4=Ct(),Pm=wm(b4),_4=VO(),UO=wm(_4),S4=Sm(),P4=Om(S4);function zO(){var e=new HO.HandlebarsEnvironment;return Pm.extend(e,HO),e.SafeString=g4.default,e.Exception=v4.default,e.Utils=Pm,e.escapeExpression=Pm.escapeExpression,e.VM=UO,e.template=function(t){return UO.template(t,e)},e}o(zO,"create");var pa=zO();pa.create=zO;P4.default(pa);pa.default=pa;ju.default=pa;GO.exports=ju.default});var $m=b((Tu,KO)=>{"use strict";Tu.__esModule=!0;var WO={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&&!WO.helpers.scopedId(t)&&!t.depth},"simpleId")}};Tu.default=WO;KO.exports=Tu.default});var JO=b((Nu,YO)=>{"use strict";Nu.__esModule=!0;var O4=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,v=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var g=this.lexer.yylloc;u.push(g);var $=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function A(be){a.length=a.length-2*be,c.length=c.length-be,u.length=u.length-be}o(A,"popStack");function C(){var be;return be=s.lexer.lex()||1,typeof be!="number"&&(be=s.symbols_[be]||be),be}o(C,"lex");for(var R,I,ae,re,$e,Oe,ne={},k,j,M,Y;;){if(ae=a[a.length-1],this.defaultActions[ae]?re=this.defaultActions[ae]:((R===null||typeof R>"u")&&(R=C()),re=l[ae]&&l[ae][R]),typeof re>"u"||!re.length||!re[0]){var ue="";if(!h){Y=[];for(k in l[ae])this.terminals_[k]&&k>2&&Y.push("'"+this.terminals_[k]+"'");this.lexer.showPosition?ue="Parse error on line "+(f+1)+`:
56
56
  `+this.lexer.showPosition()+`
57
- Expecting `+Z.join(", ")+", got '"+(this.terminals_[R]||R)+"'":ue="Parse error on line "+(f+1)+": Unexpected "+(R==1?"end of input":"'"+(this.terminals_[R]||R)+"'"),this.parseError(ue,{text:this.lexer.match,token:this.terminals_[R]||R,line:this.lexer.yylineno,loc:g,expected:Z})}}if(ce[0]instanceof Array&&ce.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ae+", token: "+R);switch(ce[0]){case 1:a.push(R),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(ce[1]),R=null,C?(R=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(j=this.productions_[ce[1]][1],Y.$=c[c.length-j],Y._$={first_line:u[u.length-(j||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(j||1)].first_column,last_column:u[u.length-1].last_column},w&&(Y._$.range=[u[u.length-(j||1)].range[0],u[u.length-1].range[1]]),Pe=this.performAction.call(Y,p,d,f,this.yy,ce[1],c,u),typeof Pe<"u")return Pe;j&&(a=a.slice(0,-1*j*2),c=c.slice(0,-1*j),u=u.slice(0,-1*j)),a.push(this.productions_[ce[1]][0]),c.push(Y.$),u.push(Y._$),M=l[a[a.length-2]][a[a.length-1]],a.push(M);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:s(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);else throw new Error(o)},"parseError"),setInput:s(function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:s(function(o){var a=o.length,c=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var 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:s(function(){return this._more=!0,this},"more"),less:s(function(o){this.unput(this.match.slice(o))},"less"),pastInput:s(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
58
- `+a+"^"},"showPosition"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,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],o=this.performAction.call(this,this.yy,this,f[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
59
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var o=this.next();return typeof o<"u"?o:this.lex()},"lex"),begin:s(function(o){this.conditionStack.push(o)},"begin"),popState:s(function(){return this.conditionStack.pop()},"popState"),_currentRules:s(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:s(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:s(function(o){this.begin(o)},"begin")};return n.options={},n.performAction=s(function(o,a,c,u){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}s(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 s(r,"Parser"),r.prototype=e,e.Parser=r,new r}();$u.default=Xq;NP.exports=$u.default});var Cu=b((Au,DP)=>{"use strict";Au.__esModule=!0;function e4(e){return e&&e.__esModule?e:{default:e}}s(e4,"_interopRequireDefault");var t4=or(),ym=e4(t4);function Eu(){this.parents=[]}s(Eu,"Visitor");Eu.prototype={constructor:Eu,mutating:!1,acceptKey:s(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!Eu.prototype[n.type])throw new ym.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:s(function(t,r){if(this.acceptKey(t,r),!t[r])throw new ym.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:s(function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},"acceptArray"),accept:s(function(t){if(t){if(!this[t.type])throw new ym.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},"accept"),Program:s(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:xu,Decorator:xu,BlockStatement:MP,DecoratorBlock:MP,PartialStatement:qP,PartialBlockStatement:s(function(t){qP.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:s(function(){},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:xu,PathExpression:s(function(){},"PathExpression"),StringLiteral:s(function(){},"StringLiteral"),NumberLiteral:s(function(){},"NumberLiteral"),BooleanLiteral:s(function(){},"BooleanLiteral"),UndefinedLiteral:s(function(){},"UndefinedLiteral"),NullLiteral:s(function(){},"NullLiteral"),Hash:s(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:s(function(t){this.acceptRequired(t,"value")},"HashPair")};function xu(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(xu,"visitSubExpression");function MP(e){xu.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}s(MP,"visitBlock");function qP(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(qP,"visitPartial");Au.default=Eu;DP.exports=Au.default});var FP=b((Iu,LP)=>{"use strict";Iu.__esModule=!0;function r4(e){return e&&e.__esModule?e:{default:e}}s(r4,"_interopRequireDefault");var n4=Cu(),i4=r4(n4);function zr(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}s(zr,"WhitespaceControl");zr.prototype=new i4.default;zr.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,o=n.length;i<o;i++){var a=n[i],c=this.accept(a);if(c){var u=vm(n,i,r),l=bm(n,i,r),p=c.openStandalone&&u,f=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&Ai(n,i,!0),c.open&&Mn(n,i,!0),t&&d&&(Ai(n,i),Mn(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Ai((a.program||a.inverse).body),Mn(n,i)),t&&f&&(Ai(n,i),Mn((a.inverse||a.program).body))}}return e};zr.prototype.BlockStatement=zr.prototype.DecoratorBlock=zr.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var o={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:bm(t.body),closeStandalone:vm((n||t).body)};if(e.openStrip.close&&Ai(t.body,null,!0),r){var a=e.inverseStrip;a.open&&Mn(t.body,null,!0),a.close&&Ai(n.body,null,!0),e.closeStrip.open&&Mn(i.body,null,!0),!this.options.ignoreStandalone&&vm(t.body)&&bm(n.body)&&(Mn(t.body),Ai(n.body))}else e.closeStrip.open&&Mn(t.body,null,!0);return o};zr.prototype.Decorator=zr.prototype.MustacheStatement=function(e){return e.strip};zr.prototype.PartialStatement=zr.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function vm(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}s(vm,"isPrevWhitespace");function bm(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}s(bm,"isNextWhitespace");function Ai(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}s(Ai,"omitRight");function Mn(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}s(Mn,"omitLeft");Iu.default=zr;LP.exports=Iu.default});var VP=b(ar=>{"use strict";ar.__esModule=!0;ar.SourceLocation=a4;ar.id=c4;ar.stripFlags=u4;ar.stripComment=l4;ar.preparePath=f4;ar.prepareMustache=p4;ar.prepareRawBlock=d4;ar.prepareBlock=h4;ar.prepareProgram=m4;ar.preparePartialBlock=g4;function s4(e){return e&&e.__esModule?e:{default:e}}s(s4,"_interopRequireDefault");var o4=or(),_m=s4(o4);function Sm(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new _m.default(e.path.original+" doesn't match "+t,r)}}s(Sm,"validateClose");function a4(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}s(a4,"SourceLocation");function c4(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}s(c4,"id");function u4(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}s(u4,"stripFlags");function l4(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}s(l4,"stripComment");function f4(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],o=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 _m.default("Invalid path: "+n,{loc:r});u===".."&&o++}else i.push(u)}return{type:"PathExpression",data:e,depth:o,parts:i,original:n,loc:r}}s(f4,"preparePath");function p4(e,t,r,n,i,o){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(o)}}s(p4,"prepareMustache");function d4(e,t,r,n){Sm(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}s(d4,"prepareRawBlock");function h4(e,t,r,n,i,o){n&&n.path&&Sm(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new _m.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(o)}}s(h4,"prepareBlock");function m4(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}s(m4,"prepareProgram");function g4(e,t,r,n){return Sm(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}s(g4,"preparePartialBlock")});var UP=b(ua=>{"use strict";ua.__esModule=!0;ua.parseWithoutProcessing=HP;ua.parse=w4;function y4(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(y4,"_interopRequireWildcard");function BP(e){return e&&e.__esModule?e:{default:e}}s(BP,"_interopRequireDefault");var v4=kP(),Om=BP(v4),b4=FP(),_4=BP(b4),S4=VP(),O4=y4(S4),P4=xt();ua.parser=Om.default;var ju={};P4.extend(ju,O4);function HP(e,t){if(e.type==="Program")return e;Om.default.yy=ju,ju.locInfo=function(n){return new ju.SourceLocation(t&&t.srcName,n)};var r=Om.default.parse(e);return r}s(HP,"parseWithoutProcessing");function w4(e,t){var r=HP(e,t),n=new _4.default(t);return n.accept(r)}s(w4,"parse")});var KP=b(da=>{"use strict";da.__esModule=!0;da.Compiler=Pm;da.precompile=A4;da.compile=C4;function GP(e){return e&&e.__esModule?e:{default:e}}s(GP,"_interopRequireDefault");var $4=or(),fa=GP($4),pa=xt(),E4=gm(),la=GP(E4),x4=[].slice;function Pm(){}s(Pm,"Compiler");Pm.prototype={compiler:Pm,equals:s(function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],o=t.opcodes[n];if(i.opcode!==o.opcode||!WP(i.args,o.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},"equals"),guid:0,compile:s(function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=pa.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},"compile"),compileProgram:s(function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:s(function(t){if(!this[t.type])throw new fa.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:s(function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},"Program"),BlockStatement:s(function(t){zP(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:s(function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:s(function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new fa.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,o=t.name.type==="SubExpression";o&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",o,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:s(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:s(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:s(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:s(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:s(function(t){zP(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:s(function(t,r,n){var i=t.path,o=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",o,a)},"ambiguousSexpr"),simpleSexpr:s(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:s(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),o=t.path,a=o.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new fa.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",i.length,o.original,la.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:s(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=la.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:s(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:s(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:s(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:s(function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:s(function(t){this.opcodes.push({opcode:t,args:x4.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:s(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:s(function(t){var r=la.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&la.default.helpers.helperExpression(t),o=!n&&(i||r);if(o&&!i){var a=t.path.parts[0],c=this.options;c.knownHelpers[a]?i=!0:c.knownHelpersOnly&&(o=!1)}return i?"helper":o?"ambiguous":"simple"},"classifySexpr"),pushParams:s(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:s(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!la.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},"pushParam"),setupFullMustacheParams:s(function(t,r,n,i){var o=t.params;return this.pushParams(o),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),o},"setupFullMustacheParams"),blockParamIndex:s(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],o=i&&pa.indexOf(i,t);if(i&&o>=0)return[r,o]}},"blockParamIndex")};function A4(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new fa.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}s(A4,"precompile");function C4(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new fa.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=pa.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)}s(i,"compileInput");function o(a,c){return n||(n=i()),n.call(this,a,c)}return s(o,"ret"),o._setup=function(a){return n||(n=i()),n._setup(a)},o._child=function(a,c,u,l){return n||(n=i()),n._child(a,c,u,l)},o}s(C4,"compile");function WP(e,t){if(e===t)return!0;if(pa.isArray(e)&&pa.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!WP(e[r],t[r]))return!1;return!0}}s(WP,"argEquals");function zP(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}s(zP,"transformLiteralToPath")});var YP=b(wm=>{var ZP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");wm.encode=function(e){if(0<=e&&e<ZP.length)return ZP[e];throw new TypeError("Must be between 0 and 63: "+e)};wm.decode=function(e){var t=65,r=90,n=97,i=122,o=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:o<=e&&e<=a?e-o+p:e==c?62:e==u?63:-1}});var xm=b(Em=>{var JP=YP(),$m=5,QP=1<<$m,XP=QP-1,e2=QP;function I4(e){return e<0?(-e<<1)+1:(e<<1)+0}s(I4,"toVLQSigned");function j4(e){var t=(e&1)===1,r=e>>1;return t?-r:r}s(j4,"fromVLQSigned");Em.encode=s(function(t){var r="",n,i=I4(t);do n=i&XP,i>>>=$m,i>0&&(n|=e2),r+=JP.encode(n);while(i>0);return r},"base64VLQ_encode");Em.decode=s(function(t,r,n){var i=t.length,o=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=JP.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&e2),u&=XP,o=o+(u<<a),a+=$m}while(c);n.value=j4(o),n.rest=r},"base64VLQ_decode")});var Fs=b(bt=>{function R4(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}s(R4,"getArg");bt.getArg=R4;var t2=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,T4=/^data:.+\,.+$/;function ha(e){var t=e.match(t2);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}s(ha,"urlParse");bt.urlParse=ha;function Ds(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}s(Ds,"urlGenerate");bt.urlGenerate=Ds;function Am(e){var t=e,r=ha(e);if(r){if(!r.path)return e;t=r.path}for(var n=bt.isAbsolute(t),i=t.split(/\/+/),o,a=0,c=i.length-1;c>=0;c--)o=i[c],o==="."?i.splice(c,1):o===".."?a++:a>0&&(o===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Ds(r)):t}s(Am,"normalize");bt.normalize=Am;function r2(e,t){e===""&&(e="."),t===""&&(t=".");var r=ha(t),n=ha(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Ds(r);if(r||t.match(T4))return t;if(n&&!n.host&&!n.path)return n.host=t,Ds(n);var i=t.charAt(0)==="/"?t:Am(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Ds(n)):i}s(r2,"join");bt.join=r2;bt.isAbsolute=function(e){return e.charAt(0)==="/"||t2.test(e)};function N4(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}s(N4,"relative");bt.relative=N4;var n2=function(){var e=Object.create(null);return!("__proto__"in e)}();function i2(e){return e}s(i2,"identity");function k4(e){return s2(e)?"$"+e:e}s(k4,"toSetString");bt.toSetString=n2?i2:k4;function M4(e){return s2(e)?e.slice(1):e}s(M4,"fromSetString");bt.fromSetString=n2?i2:M4;function s2(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}s(s2,"isProtoString");function q4(e,t,r){var n=Ls(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:Ls(e.name,t.name)}s(q4,"compareByOriginalPositions");bt.compareByOriginalPositions=q4;function D4(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Ls(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Ls(e.name,t.name)}s(D4,"compareByGeneratedPositionsDeflated");bt.compareByGeneratedPositionsDeflated=D4;function Ls(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}s(Ls,"strcmp");function L4(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Ls(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Ls(e.name,t.name)}s(L4,"compareByGeneratedPositionsInflated");bt.compareByGeneratedPositionsInflated=L4;function F4(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}s(F4,"parseSourceMapInput");bt.parseSourceMapInput=F4;function V4(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=ha(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=r2(Ds(n),t)}return Am(t)}s(V4,"computeSourceURL");bt.computeSourceURL=V4});var jm=b(o2=>{var Cm=Fs(),Im=Object.prototype.hasOwnProperty,Ci=typeof Map<"u";function nn(){this._array=[],this._set=Ci?new Map:Object.create(null)}s(nn,"ArraySet");nn.fromArray=s(function(t,r){for(var n=new nn,i=0,o=t.length;i<o;i++)n.add(t[i],r);return n},"ArraySet_fromArray");nn.prototype.size=s(function(){return Ci?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");nn.prototype.add=s(function(t,r){var n=Ci?t:Cm.toSetString(t),i=Ci?this.has(t):Im.call(this._set,n),o=this._array.length;(!i||r)&&this._array.push(t),i||(Ci?this._set.set(t,o):this._set[n]=o)},"ArraySet_add");nn.prototype.has=s(function(t){if(Ci)return this._set.has(t);var r=Cm.toSetString(t);return Im.call(this._set,r)},"ArraySet_has");nn.prototype.indexOf=s(function(t){if(Ci){var r=this._set.get(t);if(r>=0)return r}else{var n=Cm.toSetString(t);if(Im.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");nn.prototype.at=s(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");nn.prototype.toArray=s(function(){return this._array.slice()},"ArraySet_toArray");o2.ArraySet=nn});var u2=b(c2=>{var a2=Fs();function B4(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,o=t.generatedColumn;return n>r||n==r&&o>=i||a2.compareByGeneratedPositionsInflated(e,t)<=0}s(B4,"generatedPositionAfter");function Ru(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}s(Ru,"MappingList");Ru.prototype.unsortedForEach=s(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");Ru.prototype.add=s(function(t){B4(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");Ru.prototype.toArray=s(function(){return this._sorted||(this._array.sort(a2.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");c2.MappingList=Ru});var Rm=b(l2=>{var ma=xm(),Qe=Fs(),Tu=jm().ArraySet,H4=u2().MappingList;function cr(e){e||(e={}),this._file=Qe.getArg(e,"file",null),this._sourceRoot=Qe.getArg(e,"sourceRoot",null),this._skipValidation=Qe.getArg(e,"skipValidation",!1),this._sources=new Tu,this._names=new Tu,this._mappings=new H4,this._sourcesContents=null}s(cr,"SourceMapGenerator");cr.prototype._version=3;cr.fromSourceMap=s(function(t){var r=t.sourceRoot,n=new cr({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var o={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(o.source=i.source,r!=null&&(o.source=Qe.relative(r,o.source)),o.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(o.name=i.name)),n.addMapping(o)}),t.sources.forEach(function(i){var o=i;r!==null&&(o=Qe.relative(r,i)),n._sources.has(o)||n._sources.add(o);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");cr.prototype.addMapping=s(function(t){var r=Qe.getArg(t,"generated"),n=Qe.getArg(t,"original",null),i=Qe.getArg(t,"source",null),o=Qe.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,o),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:o})},"SourceMapGenerator_addMapping");cr.prototype.setSourceContent=s(function(t,r){var n=t;this._sourceRoot!=null&&(n=Qe.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Qe.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Qe.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");cr.prototype.applySourceMap=s(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var o=this._sourceRoot;o!=null&&(i=Qe.relative(o,i));var a=new Tu,c=new Tu;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=Qe.join(n,u.source)),o!=null&&(u.source=Qe.relative(o,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=Qe.join(n,u)),o!=null&&(u=Qe.relative(o,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");cr.prototype._validateMapping=s(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");cr.prototype._serializeMappings=s(function(){for(var t=0,r=1,n=0,i=0,o=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(!Qe.compareByGeneratedPositionsInflated(l,d[h-1]))continue;u+=","}u+=ma.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),u+=ma.encode(f-a),a=f,u+=ma.encode(l.originalLine-1-i),i=l.originalLine-1,u+=ma.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),u+=ma.encode(p-o),o=p)),c+=u}return c},"SourceMapGenerator_serializeMappings");cr.prototype._generateSourcesContent=s(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Qe.relative(r,n));var i=Qe.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");cr.prototype.toJSON=s(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");cr.prototype.toString=s(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");l2.SourceMapGenerator=cr});var f2=b(Ii=>{Ii.GREATEST_LOWER_BOUND=1;Ii.LEAST_UPPER_BOUND=2;function Tm(e,t,r,n,i,o){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?Tm(a,t,r,n,i,o):o==Ii.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?Tm(e,a,r,n,i,o):o==Ii.LEAST_UPPER_BOUND?a:e<0?-1:e}s(Tm,"recursiveSearch");Ii.search=s(function(t,r,n,i){if(r.length===0)return-1;var o=Tm(-1,r.length,t,r,n,i||Ii.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o},"search")});var d2=b(p2=>{function Nm(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}s(Nm,"swap");function U4(e,t){return Math.round(e+Math.random()*(t-e))}s(U4,"randomIntInRange");function km(e,t,r,n){if(r<n){var i=U4(r,n),o=r-1;Nm(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(o+=1,Nm(e,o,c));Nm(e,o+1,c);var u=o+1;km(e,t,r,u-1),km(e,t,u+1,n)}}s(km,"doQuickSort");p2.quickSort=function(e,t){km(e,t,0,e.length-1)}});var m2=b(Nu=>{var U=Fs(),Mm=f2(),Vs=jm().ArraySet,z4=xm(),ga=d2().quickSort;function ke(e,t){var r=e;return typeof e=="string"&&(r=U.parseSourceMapInput(e)),r.sections!=null?new $r(r,t):new pt(r,t)}s(ke,"SourceMapConsumer");ke.fromSourceMap=function(e,t){return pt.fromSourceMap(e,t)};ke.prototype._version=3;ke.prototype.__generatedMappings=null;Object.defineProperty(ke.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:s(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:s(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});ke.prototype._charIsMappingSeparator=s(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");ke.prototype._parseMappings=s(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=s(function(t,r,n){var i=r||null,o=n||ke.GENERATED_ORDER,a;switch(o){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=s(function(t){var r=U.getArg(t,"line"),n={source:U.getArg(t,"source"),originalLine:r,originalColumn:U.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,Mm.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(t.column===void 0)for(var 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[++o];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[++o]}return i},"SourceMapConsumer_allGeneratedPositionsFor");Nu.SourceMapConsumer=ke;function pt(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sources"),o=U.getArg(r,"names",[]),a=U.getArg(r,"sourceRoot",null),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=Vs.fromArray(o.map(String),!0),this._sources=Vs.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}s(pt,"BasicSourceMapConsumer");pt.prototype=Object.create(ke.prototype);pt.prototype.consumer=ke;pt.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};pt.fromSourceMap=s(function(t,r){var n=Object.create(pt.prototype),i=n._names=Vs.fromArray(t._names.toArray(),!0),o=n._sources=Vs.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 h2;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=o.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),u.push(d)),c.push(d)}return ga(n.__originalMappings,U.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");pt.prototype._version=3;Object.defineProperty(pt.prototype,"sources",{get:s(function(){return this._absoluteSources.slice()},"get")});function h2(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s(h2,"Mapping");pt.prototype._parseMappings=s(function(t,r){for(var n=1,i=0,o=0,a=0,c=0,u=0,l=t.length,p=0,f={},d={},h=[],y=[],v,g,w,A,I;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(v=new h2,v.generatedLine=n,A=p;A<l&&!this._charIsMappingSeparator(t,A);A++);if(g=t.slice(p,A),w=f[g],w)p+=g.length;else{for(w=[];p<A;)z4.decode(t,p,d),I=d.value,p=d.rest,w.push(I);if(w.length===2)throw new Error("Found a source, but no line and column");if(w.length===3)throw new Error("Found a source and line, but no column");f[g]=w}v.generatedColumn=i+w[0],i=v.generatedColumn,w.length>1&&(v.source=c+w[1],c+=w[1],v.originalLine=o+w[2],o=v.originalLine,v.originalLine+=1,v.originalColumn=a+w[3],a=v.originalColumn,w.length>4&&(v.name=u+w[4],u+=w[4])),y.push(v),typeof v.originalLine=="number"&&h.push(v)}ga(y,U.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,ga(h,U.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");pt.prototype._findMapping=s(function(t,r,n,i,o,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return Mm.search(t,r,o,a)},"SourceMapConsumer_findMapping");pt.prototype.computeColumnSpans=s(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");pt.prototype.originalPositionFor=s(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",U.compareByGeneratedPositionsDeflated,U.getArg(t,"bias",ke.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var o=U.getArg(i,"source",null);o!==null&&(o=this._sources.at(o),o=U.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=U.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,line:U.getArg(i,"originalLine",null),column:U.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");pt.prototype.hasContentsOfAllSources=s(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");pt.prototype.sourceContentFor=s(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=U.relative(this.sourceRoot,i));var o;if(this.sourceRoot!=null&&(o=U.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||o.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");pt.prototype.generatedPositionFor=s(function(t){var r=U.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:U.getArg(t,"line"),originalColumn:U.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,U.getArg(t,"bias",ke.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:U.getArg(o,"generatedLine",null),column:U.getArg(o,"generatedColumn",null),lastColumn:U.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");Nu.BasicSourceMapConsumer=pt;function $r(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Vs,this._names=new Vs;var o={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=U.getArg(a,"offset"),u=U.getArg(c,"line"),l=U.getArg(c,"column");if(u<o.line||u===o.line&&l<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=c,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new ke(U.getArg(a,"map"),t)}})}s($r,"IndexedSourceMapConsumer");$r.prototype=Object.create(ke.prototype);$r.prototype.constructor=ke;$r.prototype._version=3;Object.defineProperty($r.prototype,"sources",{get:s(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});$r.prototype.originalPositionFor=s(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=Mm.search(r,this._sections,function(o,a){var c=o.generatedLine-a.generatedOffset.generatedLine;return c||o.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");$r.prototype.hasContentsOfAllSources=s(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");$r.prototype.sourceContentFor=s(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],o=i.consumer.sourceContentFor(t,!0);if(o)return o}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");$r.prototype.generatedPositionFor=s(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(U.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var o={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");$r.prototype._parseMappings=s(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],o=i.consumer._generatedMappings,a=0;a<o.length;a++){var c=o[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)}ga(this.__generatedMappings,U.compareByGeneratedPositionsDeflated),ga(this.__originalMappings,U.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");Nu.IndexedSourceMapConsumer=$r});var y2=b(g2=>{var G4=Rm().SourceMapGenerator,ku=Fs(),W4=/(\r?\n)/,K4=10,Bs="$$$isSourceNode$$$";function Ht(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[Bs]=!0,n!=null&&this.add(n)}s(Ht,"SourceNode");Ht.fromStringWithSourceMap=s(function(t,r,n){var i=new Ht,o=t.split(W4),a=0,c=s(function(){var d=y(),h=y()||"";return d+h;function y(){return a<o.length?o[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=o[a]||"",y=h.substr(0,d.generatedColumn-l);o[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,y),p=d;return}for(;u<d.generatedLine;)i.add(c()),u++;if(l<d.generatedColumn){var h=o[a]||"";i.add(h.substr(0,d.generatedColumn)),o[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<o.length&&(p&&f(p,c()),i.add(o.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=ku.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?ku.join(n,d.source):d.source;i.add(new Ht(d.originalLine,d.originalColumn,y,h,d.name))}}s(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Ht.prototype.add=s(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Bs]||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");Ht.prototype.prepend=s(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Bs]||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");Ht.prototype.walk=s(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Bs]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Ht.prototype.join=s(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");Ht.prototype.replaceRight=s(function(t,r){var n=this.children[this.children.length-1];return n[Bs]?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");Ht.prototype.setSourceContent=s(function(t,r){this.sourceContents[ku.toSetString(t)]=r},"SourceNode_setSourceContent");Ht.prototype.walkSourceContents=s(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Bs]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(ku.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Ht.prototype.toString=s(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Ht.prototype.toStringWithSourceMap=s(function(t){var r={code:"",line:1,column:0},n=new G4(t),i=!1,o=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?((o!==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}),o=p.source,a=p.line,c=p.column,u=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),o=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===K4?(r.line++,r.column=0,f+1===d?(o=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");g2.SourceNode=Ht});var v2=b(Mu=>{Mu.SourceMapGenerator=Rm().SourceMapGenerator;Mu.SourceMapConsumer=m2().SourceMapConsumer;Mu.SourceNode=y2().SourceNode});var O2=b((qu,S2)=>{"use strict";qu.__esModule=!0;var Dm=xt(),ji=void 0;try{(typeof define!="function"||!define.amd)&&(b2=v2(),ji=b2.SourceNode)}catch{}var b2;ji||(ji=s(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),ji.prototype={add:s(function(t){Dm.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:s(function(t){Dm.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:s(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:s(function(){return this.src},"toString")});function qm(e,t,r){if(Dm.isArray(e)){for(var n=[],i=0,o=e.length;i<o;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}s(qm,"castChunk");function _2(e){this.srcFile=e,this.source=[]}s(_2,"CodeGen");_2.prototype={isEmpty:s(function(){return!this.source.length},"isEmpty"),prepend:s(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:s(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:s(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
60
- `])}),t},"merge"),each:s(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:s(function(){var t=this.currentLocation||{start:{}};return new ji(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:s(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof ji?t:(t=qm(t,this,r),new ji(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:s(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:s(function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:s(function(t){var r=this,n=[];Object.keys(t).forEach(function(o){var a=qm(t[o],r);a!=="undefined"&&n.push([r.quotedString(o),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:s(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(qm(t[n],this));return r},"generateList"),generateArray:s(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};qu.default=_2;S2.exports=qu.default});var x2=b((Du,E2)=>{"use strict";Du.__esModule=!0;function $2(e){return e&&e.__esModule?e:{default:e}}s($2,"_interopRequireDefault");var P2=bu(),Z4=or(),Lm=$2(Z4),Y4=xt(),J4=O2(),w2=$2(J4);function Hs(e){this.value=e}s(Hs,"Literal");function Us(){}s(Us,"JavaScriptCompiler");Us.prototype={nameLookup:s(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:s(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:s(function(){var t=P2.COMPILER_REVISION,r=P2.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:s(function(t,r,n){return Y4.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:s(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:s(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:s(function(t,r,n,i){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var o=t.opcodes,a=void 0,c=void 0,u=void 0,l=void 0;for(u=0,l=o.length;u<l;u++)a=o[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 Lm.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(),`;
57
+ Expecting `+Y.join(", ")+", got '"+(this.terminals_[R]||R)+"'":ue="Parse error on line "+(f+1)+": Unexpected "+(R==1?"end of input":"'"+(this.terminals_[R]||R)+"'"),this.parseError(ue,{text:this.lexer.match,token:this.terminals_[R]||R,line:this.lexer.yylineno,loc:g,expected:Y})}}if(re[0]instanceof Array&&re.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ae+", token: "+R);switch(re[0]){case 1:a.push(R),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(re[1]),R=null,I?(R=I,I=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,g=this.lexer.yylloc,h>0&&h--);break;case 2:if(j=this.productions_[re[1]][1],ne.$=c[c.length-j],ne._$={first_line:u[u.length-(j||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(j||1)].first_column,last_column:u[u.length-1].last_column},$&&(ne._$.range=[u[u.length-(j||1)].range[0],u[u.length-1].range[1]]),Oe=this.performAction.call(ne,p,d,f,this.yy,re[1],c,u),typeof Oe<"u")return Oe;j&&(a=a.slice(0,-1*j*2),c=c.slice(0,-1*j),u=u.slice(0,-1*j)),a.push(this.productions_[re[1]][0]),c.push(ne.$),u.push(ne._$),M=l[a[a.length-2]][a[a.length-1]],a.push(M);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
+ `+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}();Nu.default=O4;YO.exports=Nu.default});var Du=b((qu,e2)=>{"use strict";qu.__esModule=!0;function w4(e){return e&&e.__esModule?e:{default:e}}o(w4,"_interopRequireDefault");var $4=cr(),Em=w4($4);function ku(){this.parents=[]}o(ku,"Visitor");ku.prototype={constructor:ku,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!ku.prototype[n.type])throw new Em.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 Em.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 Em.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:Mu,Decorator:Mu,BlockStatement:QO,DecoratorBlock:QO,PartialStatement:XO,PartialBlockStatement:o(function(t){XO.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:Mu,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 Mu(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(Mu,"visitSubExpression");function QO(e){Mu.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(QO,"visitBlock");function XO(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(XO,"visitPartial");qu.default=ku;e2.exports=qu.default});var r2=b((Lu,t2)=>{"use strict";Lu.__esModule=!0;function E4(e){return e&&e.__esModule?e:{default:e}}o(E4,"_interopRequireDefault");var x4=Du(),A4=E4(x4);function Kr(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(Kr,"WhitespaceControl");Kr.prototype=new A4.default;Kr.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=xm(n,i,r),l=Am(n,i,r),p=c.openStandalone&&u,f=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&Ti(n,i,!0),c.open&&Bn(n,i,!0),t&&d&&(Ti(n,i),Bn(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Ti((a.program||a.inverse).body),Bn(n,i)),t&&f&&(Ti(n,i),Bn((a.inverse||a.program).body))}}return e};Kr.prototype.BlockStatement=Kr.prototype.DecoratorBlock=Kr.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:Am(t.body),closeStandalone:xm((n||t).body)};if(e.openStrip.close&&Ti(t.body,null,!0),r){var a=e.inverseStrip;a.open&&Bn(t.body,null,!0),a.close&&Ti(n.body,null,!0),e.closeStrip.open&&Bn(i.body,null,!0),!this.options.ignoreStandalone&&xm(t.body)&&Am(n.body)&&(Bn(t.body),Ti(n.body))}else e.closeStrip.open&&Bn(t.body,null,!0);return s};Kr.prototype.Decorator=Kr.prototype.MustacheStatement=function(e){return e.strip};Kr.prototype.PartialStatement=Kr.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function xm(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(xm,"isPrevWhitespace");function Am(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(Am,"isNextWhitespace");function Ti(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(Ti,"omitRight");function Bn(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(Bn,"omitLeft");Lu.default=Kr;t2.exports=Lu.default});var n2=b(ur=>{"use strict";ur.__esModule=!0;ur.SourceLocation=R4;ur.id=j4;ur.stripFlags=T4;ur.stripComment=N4;ur.preparePath=k4;ur.prepareMustache=M4;ur.prepareRawBlock=q4;ur.prepareBlock=D4;ur.prepareProgram=L4;ur.preparePartialBlock=F4;function C4(e){return e&&e.__esModule?e:{default:e}}o(C4,"_interopRequireDefault");var I4=cr(),Cm=C4(I4);function Im(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new Cm.default(e.path.original+" doesn't match "+t,r)}}o(Im,"validateClose");function R4(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(R4,"SourceLocation");function j4(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(j4,"id");function T4(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(T4,"stripFlags");function N4(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(N4,"stripComment");function k4(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 Cm.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(k4,"preparePath");function M4(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(M4,"prepareMustache");function q4(e,t,r,n){Im(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(q4,"prepareRawBlock");function D4(e,t,r,n,i,s){n&&n.path&&Im(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new Cm.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(D4,"prepareBlock");function L4(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(L4,"prepareProgram");function F4(e,t,r,n){return Im(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(F4,"preparePartialBlock")});var s2=b(da=>{"use strict";da.__esModule=!0;da.parseWithoutProcessing=o2;da.parse=W4;function V4(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(V4,"_interopRequireWildcard");function i2(e){return e&&e.__esModule?e:{default:e}}o(i2,"_interopRequireDefault");var B4=JO(),Rm=i2(B4),H4=r2(),U4=i2(H4),z4=n2(),G4=V4(z4),Z4=Ct();da.parser=Rm.default;var Fu={};Z4.extend(Fu,G4);function o2(e,t){if(e.type==="Program")return e;Rm.default.yy=Fu,Fu.locInfo=function(n){return new Fu.SourceLocation(t&&t.srcName,n)};var r=Rm.default.parse(e);return r}o(o2,"parseWithoutProcessing");function W4(e,t){var r=o2(e,t),n=new U4.default(t);return n.accept(r)}o(W4,"parse")});var l2=b(ya=>{"use strict";ya.__esModule=!0;ya.Compiler=jm;ya.precompile=Q4;ya.compile=X4;function c2(e){return e&&e.__esModule?e:{default:e}}o(c2,"_interopRequireDefault");var K4=cr(),ma=c2(K4),ga=Ct(),Y4=$m(),ha=c2(Y4),J4=[].slice;function jm(){}o(jm,"Compiler");jm.prototype={compiler:jm,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||!u2(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=ga.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 ma.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){a2(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 ma.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){a2(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 ma.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,ha.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=ha.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:J4.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=ha.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&ha.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&&!ha.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&&ga.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function Q4(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new ma.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(Q4,"precompile");function X4(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new ma.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=ga.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(X4,"compile");function u2(e,t){if(e===t)return!0;if(ga.isArray(e)&&ga.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!u2(e[r],t[r]))return!1;return!0}}o(u2,"argEquals");function a2(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(a2,"transformLiteralToPath")});var p2=b(Tm=>{var f2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Tm.encode=function(e){if(0<=e&&e<f2.length)return f2[e];throw new TypeError("Must be between 0 and 63: "+e)};Tm.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 Mm=b(km=>{var d2=p2(),Nm=5,h2=1<<Nm,m2=h2-1,g2=h2;function eD(e){return e<0?(-e<<1)+1:(e<<1)+0}o(eD,"toVLQSigned");function tD(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(tD,"fromVLQSigned");km.encode=o(function(t){var r="",n,i=eD(t);do n=i&m2,i>>>=Nm,i>0&&(n|=g2),r+=d2.encode(n);while(i>0);return r},"base64VLQ_encode");km.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=d2.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&g2),u&=m2,s=s+(u<<a),a+=Nm}while(c);n.value=tD(s),n.rest=r},"base64VLQ_decode")});var Ho=b(Pt=>{function rD(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(rD,"getArg");Pt.getArg=rD;var y2=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,nD=/^data:.+\,.+$/;function va(e){var t=e.match(y2);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(va,"urlParse");Pt.urlParse=va;function Vo(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(Vo,"urlGenerate");Pt.urlGenerate=Vo;function qm(e){var t=e,r=va(e);if(r){if(!r.path)return e;t=r.path}for(var n=Pt.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,Vo(r)):t}o(qm,"normalize");Pt.normalize=qm;function v2(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),Vo(r);if(r||t.match(nD))return t;if(n&&!n.host&&!n.path)return n.host=t,Vo(n);var i=t.charAt(0)==="/"?t:qm(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Vo(n)):i}o(v2,"join");Pt.join=v2;Pt.isAbsolute=function(e){return e.charAt(0)==="/"||y2.test(e)};function iD(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(iD,"relative");Pt.relative=iD;var b2=function(){var e=Object.create(null);return!("__proto__"in e)}();function _2(e){return e}o(_2,"identity");function oD(e){return S2(e)?"$"+e:e}o(oD,"toSetString");Pt.toSetString=b2?_2:oD;function sD(e){return S2(e)?e.slice(1):e}o(sD,"fromSetString");Pt.fromSetString=b2?_2:sD;function S2(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(S2,"isProtoString");function aD(e,t,r){var n=Bo(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:Bo(e.name,t.name)}o(aD,"compareByOriginalPositions");Pt.compareByOriginalPositions=aD;function cD(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Bo(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Bo(e.name,t.name)}o(cD,"compareByGeneratedPositionsDeflated");Pt.compareByGeneratedPositionsDeflated=cD;function Bo(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(Bo,"strcmp");function uD(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Bo(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Bo(e.name,t.name)}o(uD,"compareByGeneratedPositionsInflated");Pt.compareByGeneratedPositionsInflated=uD;function lD(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(lD,"parseSourceMapInput");Pt.parseSourceMapInput=lD;function fD(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=v2(Vo(n),t)}return qm(t)}o(fD,"computeSourceURL");Pt.computeSourceURL=fD});var Fm=b(P2=>{var Dm=Ho(),Lm=Object.prototype.hasOwnProperty,Ni=typeof Map<"u";function an(){this._array=[],this._set=Ni?new Map:Object.create(null)}o(an,"ArraySet");an.fromArray=o(function(t,r){for(var n=new an,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");an.prototype.size=o(function(){return Ni?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");an.prototype.add=o(function(t,r){var n=Ni?t:Dm.toSetString(t),i=Ni?this.has(t):Lm.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(Ni?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");an.prototype.has=o(function(t){if(Ni)return this._set.has(t);var r=Dm.toSetString(t);return Lm.call(this._set,r)},"ArraySet_has");an.prototype.indexOf=o(function(t){if(Ni){var r=this._set.get(t);if(r>=0)return r}else{var n=Dm.toSetString(t);if(Lm.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");an.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");an.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");P2.ArraySet=an});var $2=b(w2=>{var O2=Ho();function pD(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||O2.compareByGeneratedPositionsInflated(e,t)<=0}o(pD,"generatedPositionAfter");function Vu(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(Vu,"MappingList");Vu.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");Vu.prototype.add=o(function(t){pD(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");Vu.prototype.toArray=o(function(){return this._sorted||(this._array.sort(O2.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");w2.MappingList=Vu});var Vm=b(E2=>{var ba=Mm(),et=Ho(),Bu=Fm().ArraySet,dD=$2().MappingList;function lr(e){e||(e={}),this._file=et.getArg(e,"file",null),this._sourceRoot=et.getArg(e,"sourceRoot",null),this._skipValidation=et.getArg(e,"skipValidation",!1),this._sources=new Bu,this._names=new Bu,this._mappings=new dD,this._sourcesContents=null}o(lr,"SourceMapGenerator");lr.prototype._version=3;lr.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new lr({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=et.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=et.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");lr.prototype.addMapping=o(function(t){var r=et.getArg(t,"generated"),n=et.getArg(t,"original",null),i=et.getArg(t,"source",null),s=et.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");lr.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=et.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[et.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[et.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");lr.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=et.relative(s,i));var a=new Bu,c=new Bu;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=et.join(n,u.source)),s!=null&&(u.source=et.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=et.join(n,u)),s!=null&&(u=et.relative(s,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");lr.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");lr.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(!et.compareByGeneratedPositionsInflated(l,d[h-1]))continue;u+=","}u+=ba.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),u+=ba.encode(f-a),a=f,u+=ba.encode(l.originalLine-1-i),i=l.originalLine-1,u+=ba.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),u+=ba.encode(p-s),s=p)),c+=u}return c},"SourceMapGenerator_serializeMappings");lr.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=et.relative(r,n));var i=et.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");lr.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");lr.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");E2.SourceMapGenerator=lr});var x2=b(ki=>{ki.GREATEST_LOWER_BOUND=1;ki.LEAST_UPPER_BOUND=2;function Bm(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?Bm(a,t,r,n,i,s):s==ki.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?Bm(e,a,r,n,i,s):s==ki.LEAST_UPPER_BOUND?a:e<0?-1:e}o(Bm,"recursiveSearch");ki.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=Bm(-1,r.length,t,r,n,i||ki.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 C2=b(A2=>{function Hm(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(Hm,"swap");function hD(e,t){return Math.round(e+Math.random()*(t-e))}o(hD,"randomIntInRange");function Um(e,t,r,n){if(r<n){var i=hD(r,n),s=r-1;Hm(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,Hm(e,s,c));Hm(e,s+1,c);var u=s+1;Um(e,t,r,u-1),Um(e,t,u+1,n)}}o(Um,"doQuickSort");A2.quickSort=function(e,t){Um(e,t,0,e.length-1)}});var R2=b(Hu=>{var U=Ho(),zm=x2(),Uo=Fm().ArraySet,mD=Mm(),_a=C2().quickSort;function Me(e,t){var r=e;return typeof e=="string"&&(r=U.parseSourceMapInput(e)),r.sections!=null?new Cr(r,t):new ht(r,t)}o(Me,"SourceMapConsumer");Me.fromSourceMap=function(e,t){return ht.fromSourceMap(e,t)};Me.prototype._version=3;Me.prototype.__generatedMappings=null;Object.defineProperty(Me.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Me.prototype.__originalMappings=null;Object.defineProperty(Me.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Me.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Me.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Me.GENERATED_ORDER=1;Me.ORIGINAL_ORDER=2;Me.GREATEST_LOWER_BOUND=1;Me.LEAST_UPPER_BOUND=2;Me.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||Me.GENERATED_ORDER,a;switch(s){case Me.GENERATED_ORDER:a=this._generatedMappings;break;case Me.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var 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");Me.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,zm.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");Hu.SourceMapConsumer=Me;function ht(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=Uo.fromArray(s.map(String),!0),this._sources=Uo.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(ht,"BasicSourceMapConsumer");ht.prototype=Object.create(Me.prototype);ht.prototype.consumer=Me;ht.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};ht.fromSourceMap=o(function(t,r){var n=Object.create(ht.prototype),i=n._names=Uo.fromArray(t._names.toArray(),!0),s=n._sources=Uo.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 I2;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 _a(n.__originalMappings,U.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");ht.prototype._version=3;Object.defineProperty(ht.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function I2(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(I2,"Mapping");ht.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=[],v,g,$,A,C;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(v=new I2,v.generatedLine=n,A=p;A<l&&!this._charIsMappingSeparator(t,A);A++);if(g=t.slice(p,A),$=f[g],$)p+=g.length;else{for($=[];p<A;)mD.decode(t,p,d),C=d.value,p=d.rest,$.push(C);if($.length===2)throw new Error("Found a source, but no line and column");if($.length===3)throw new Error("Found a source and line, but no column");f[g]=$}v.generatedColumn=i+$[0],i=v.generatedColumn,$.length>1&&(v.source=c+$[1],c+=$[1],v.originalLine=s+$[2],s=v.originalLine,v.originalLine+=1,v.originalColumn=a+$[3],a=v.originalColumn,$.length>4&&(v.name=u+$[4],u+=$[4])),y.push(v),typeof v.originalLine=="number"&&h.push(v)}_a(y,U.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,_a(h,U.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");ht.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 zm.search(t,r,s,a)},"SourceMapConsumer_findMapping");ht.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");ht.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",Me.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");ht.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");ht.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");ht.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",Me.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");Hu.BasicSourceMapConsumer=ht;function Cr(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 Uo,this._names=new Uo;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 Me(U.getArg(a,"map"),t)}})}o(Cr,"IndexedSourceMapConsumer");Cr.prototype=Object.create(Me.prototype);Cr.prototype.constructor=Me;Cr.prototype._version=3;Object.defineProperty(Cr.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")});Cr.prototype.originalPositionFor=o(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=zm.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");Cr.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");Cr.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");Cr.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");Cr.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)}_a(this.__generatedMappings,U.compareByGeneratedPositionsDeflated),_a(this.__originalMappings,U.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");Hu.IndexedSourceMapConsumer=Cr});var T2=b(j2=>{var gD=Vm().SourceMapGenerator,Uu=Ho(),yD=/(\r?\n)/,vD=10,zo="$$$isSourceNode$$$";function Wt(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[zo]=!0,n!=null&&this.add(n)}o(Wt,"SourceNode");Wt.fromStringWithSourceMap=o(function(t,r,n){var i=new Wt,s=t.split(yD),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=Uu.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?Uu.join(n,d.source):d.source;i.add(new Wt(d.originalLine,d.originalColumn,y,h,d.name))}}o(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Wt.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[zo]||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");Wt.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[zo]||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");Wt.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[zo]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Wt.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");Wt.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[zo]?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");Wt.prototype.setSourceContent=o(function(t,r){this.sourceContents[Uu.toSetString(t)]=r},"SourceNode_setSourceContent");Wt.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][zo]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Uu.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Wt.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Wt.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new gD(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)===vD?(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");j2.SourceNode=Wt});var N2=b(zu=>{zu.SourceMapGenerator=Vm().SourceMapGenerator;zu.SourceMapConsumer=R2().SourceMapConsumer;zu.SourceNode=T2().SourceNode});var D2=b((Gu,q2)=>{"use strict";Gu.__esModule=!0;var Zm=Ct(),Mi=void 0;try{(typeof define!="function"||!define.amd)&&(k2=N2(),Mi=k2.SourceNode)}catch{}var k2;Mi||(Mi=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Mi.prototype={add:o(function(t){Zm.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){Zm.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 Gm(e,t,r){if(Zm.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(Gm,"castChunk");function M2(e){this.srcFile=e,this.source=[]}o(M2,"CodeGen");M2.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 Mi(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 Mi?t:(t=Gm(t,this,r),new Mi(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=Gm(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(Gm(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};Gu.default=M2;q2.exports=Gu.default});var H2=b((Zu,B2)=>{"use strict";Zu.__esModule=!0;function V2(e){return e&&e.__esModule?e:{default:e}}o(V2,"_interopRequireDefault");var L2=Au(),bD=cr(),Wm=V2(bD),_D=Ct(),SD=D2(),F2=V2(SD);function Go(e){this.value=e}o(Go,"Literal");function Zo(){}o(Zo,"JavaScriptCompiler");Zo.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=L2.COMPILER_REVISION,r=L2.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return _D.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 Wm.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:s(function(){this.lastContext=0,this.source=new w2.default(this.options.srcName),this.decorators=new w2.default(this.options.srcName)},"preamble"),createFunctionContext:s(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var o=0;Object.keys(this.aliases).forEach(function(u){var l=r.aliases[u];l.children&&l.referenceCount>1&&(n+=", alias"+ ++o+"="+u,l.children[0]="alias"+o)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return t?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
64
- `,c,"}"])},"createFunctionContext"),mergeSource:s(function(t){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,o=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(o?a.prepend("buffer += "):i=!0,c.add(";"),a=c=void 0),o=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):o||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
- `)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:s(function(){return`
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 F2.default(this.options.srcName),this.decorators=new F2.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
+ `,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
+ `)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
66
66
  lookupProperty = container.lookupProperty || function(parent, propertyName) {
67
67
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
68
68
  return parent[propertyName];
69
69
  }
70
70
  return undefined
71
71
  }
72
- `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:s(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:s(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:s(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:s(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:s(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:s(function(t){this.lastContext=t},"getContext"),pushContext:s(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:s(function(t,r,n,i){var o=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[o++])):this.pushContext(),this.resolvePath("context",t,o,r,n)},"lookupOnContext"),lookupBlockParam:s(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:s(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:s(function(t,r,n,i,o){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(Q4(this.options.strict&&o,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:s(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:s(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:s(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:s(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:s(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:s(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:s(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:s(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:s(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:s(function(t,r,n){var i=this.popStack(),o=this.setupHelper(t,r),a=[];n&&a.push(o.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",o.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:s(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:s(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:s(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),o=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",o," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:s(function(t,r,n){var i=[],o=this.setupParams(r,1,i);t&&(r=this.popStack(),delete o.name),n&&(o.indent=JSON.stringify(n)),o.helpers="helpers",o.partials="partials",o.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(o.depths="depths"),o=this.objectLiteral(o),i.push(o),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:s(function(t){var r=this.popStack(),n=void 0,i=void 0,o=void 0;this.trackIds&&(o=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),o&&(a.ids[t]=o),a.values[t]=r},"assignToHash"),pushId:s(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:Us,compileChildren:s(function(t,r){for(var n=t.children,i=void 0,o=void 0,a=0,c=n.length;a<c;a++){i=n[a],o=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]=o.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=o.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=u.index,i.name="program"+u.index,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.useBlockParams}},"compileChildren"),matchExistingProgram:s(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:s(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:s(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:s(function(t){return t instanceof Hs||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:s(function(t){this.push(new Hs(t))},"pushStackLiteral"),pushSource:s(function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},"pushSource"),replaceStack:s(function(t){var r=["("],n=void 0,i=void 0,o=void 0;if(!this.isInline())throw new Lm.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Hs)n=[a.value],r=["(",n],o=!0;else{i=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);o||this.popStack(),i&&this.stackSlot--,this.push(r.concat(u,")"))},"replaceStack"),incrStack:s(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:s(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:s(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof Hs)this.compileStack.push(i);else{var o=this.incrStack();this.pushSource([o," = ",i,";"]),this.compileStack.push(o)}}},"flushInline"),isInline:s(function(){return this.inlineStack.length},"isInline"),popStack:s(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof Hs)return n.value;if(!r){if(!this.stackSlot)throw new Lm.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:s(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof Hs?r.value:r},"topStack"),contextName:s(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:s(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:s(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:s(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:s(function(t,r,n){var i=[],o=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:o,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:s(function(t,r,n){var i={},o=[],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(),o[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(o)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:s(function(t,r,n,i){var o=this.setupParams(t,r,n);return o.loc=JSON.stringify(this.source.currentLocation),o=this.objectLiteral(o),i?(this.useRegister("options"),n.push("options"),["options=",o]):n?(n.push(o),""):o},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=Us.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Us.isValidJavaScriptVariableName=function(e){return!Us.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function Q4(e,t,r,n,i){var o=t.popStack(),a=r.length;for(e&&a--;n<a;n++)o=t.nameLookup(o,r[n],i);return e?[t.aliasable("container.strict"),"(",o,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:o}s(Q4,"strictLookup");Du.default=Us;E2.exports=Du.default});var I2=b((Lu,C2)=>{"use strict";Lu.__esModule=!0;function ya(e){return e&&e.__esModule?e:{default:e}}s(ya,"_interopRequireDefault");var X4=jP(),eD=ya(X4),tD=gm(),rD=ya(tD),Fm=UP(),Vm=KP(),nD=x2(),iD=ya(nD),sD=Cu(),oD=ya(sD),aD=pm(),cD=ya(aD),uD=eD.default.create;function A2(){var e=uD();return e.compile=function(t,r){return Vm.compile(t,r,e)},e.precompile=function(t,r){return Vm.precompile(t,r,e)},e.AST=rD.default,e.Compiler=Vm.Compiler,e.JavaScriptCompiler=iD.default,e.Parser=Fm.parser,e.parse=Fm.parse,e.parseWithoutProcessing=Fm.parseWithoutProcessing,e}s(A2,"create");var zs=A2();zs.create=A2;cD.default(zs);zs.Visitor=oD.default;zs.default=zs;Lu.default=zs;C2.exports=Lu.default});var j2=b(Fu=>{"use strict";Fu.__esModule=!0;Fu.print=dD;Fu.PrintVisitor=Ue;function lD(e){return e&&e.__esModule?e:{default:e}}s(lD,"_interopRequireDefault");var fD=Cu(),pD=lD(fD);function dD(e){return new Ue().accept(e)}s(dD,"print");function Ue(){this.padding=0}s(Ue,"PrintVisitor");Ue.prototype=new pD.default;Ue.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
73
- `,t};Ue.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var o="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)o+=" "+e.blockParams[n];o+=" ]",t+=this.pad(o)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};Ue.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Ue.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Ue.prototype.BlockStatement=Ue.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};Ue.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+" }}")};Ue.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+" }}")};Ue.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Ue.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Ue.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,o=t.length;i<o;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};Ue.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Ue.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Ue.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Ue.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Ue.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Ue.prototype.NullLiteral=function(){return"NULL"};Ue.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(", ")+"}"};Ue.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var Ri=b((gG,N2)=>{var Vu=I2().default,T2=j2();Vu.PrintVisitor=T2.PrintVisitor;Vu.print=T2.print;N2.exports=Vu;function R2(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Vu.compile(n)}s(R2,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=R2,require.extensions[".hbs"]=R2)});var xa=require("assert");var fw={right:gw,center:yw},pw=0,ba=1,dw=2,_a=3,Gu=class Gu{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&&Mt.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),Mt.stringWidth(i[0])))}),r.forEach(i=>{this.div(...i.map((o,a)=>({text:o.trim(),padding:this.measurePadding(o),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=Mt.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 o="";n.forEach((a,c)=>{let{width:u}=t[c],l=this.negatePadding(t[c]),p=a;if(l>Mt.stringWidth(a)&&(p+=" ".repeat(l-Mt.stringWidth(a))),t[c].align&&t[c].align!=="left"&&this.wrap){let d=fw[t[c].align];p=d(p,l),Mt.stringWidth(p)<l&&(p+=" ".repeat((u||0)-Mt.stringWidth(p)-1))}let f=t[c].padding||[0,0,0,0];f[_a]&&(o+=" ".repeat(f[_a])),o+=Ym(t[c],p,"| "),o+=p,o+=Ym(t[c],p," |"),f[ba]&&(o+=" ".repeat(f[ba])),i===0&&r.length>0&&(o=this.renderInline(o,r[r.length-1]))}),r.push({text:o.replace(/ +$/,""),span:t.span})}),r}renderInline(t,r){let n=t.match(/^ */),i=n?n[0].length:0,o=r.text,a=Mt.stringWidth(o.trimRight());return r.span?this.wrap?i<a?t:(r.hidden=!0,o.trimRight()+" ".repeat(i-a)+t.trimLeft()):(r.hidden=!0,o+t):t}rasterize(t){let r=[],n=this.columnWidths(t),i;return t.forEach((o,a)=>{o.width=n[a],this.wrap?i=Mt.wrap(o.text,this.negatePadding(o),{hard:!0}).split(`
76
- `):i=o.text.split(`
77
- `),o.border&&(i.unshift("."+"-".repeat(this.negatePadding(o)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(o)+2)+"'")),o.padding&&(i.unshift(...new Array(o.padding[pw]||0).fill("")),i.push(...new Array(o.padding[dw]||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[_a]||0)+(t.padding[ba]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||Mt.stringWidth(a.text));let r=t.length,n=this.width,i=t.map(a=>{if(a.width)return r--,n-=a.width,a.width}),o=r?Math.floor(n/r):0;return i.map((a,c)=>a===void 0?Math.max(o,hw(t[c])):a)}};s(Gu,"UI");var zu=Gu;function Ym(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}s(Ym,"addBorder");function hw(e){let t=e.padding||[],r=1+(t[_a]||0)+(t[ba]||0);return e.border?r+4:r}s(hw,"_minWidth");function mw(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}s(mw,"getWindowWidth");function gw(e,t){e=e.trim();let r=Mt.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}s(gw,"alignRight");function yw(e,t){e=e.trim();let r=Mt.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}s(yw,"alignCenter");var Mt;function Jm(e,t){return Mt=t,new zu({width:(e==null?void 0:e.width)||mw(),wrap:e==null?void 0:e.wrap})}s(Jm,"cliui");var Qm=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function Wu(e){return e.replace(Qm,"")}s(Wu,"stripAnsi");function Xm(e,t){let[r,n]=e.match(Qm)||["",""];e=Wu(e);let i="";for(let o=0;o<e.length;o++)o!==0&&o%t===0&&(i+=`
78
- `),i+=e.charAt(o);return r&&n&&(i=`${r}${i}${n}`),i}s(Xm,"wrap");function Ku(e){return Jm(e,{stringWidth:s(t=>[...t].length,"stringWidth"),stripAnsi:Wu,wrap:Xm})}s(Ku,"ui");var ki=require("path"),Sa=require("fs");function Zu(e,t){let r=(0,ki.resolve)(".",e),n;for((0,Sa.statSync)(r).isDirectory()||(r=(0,ki.dirname)(r));;){if(n=t(r,(0,Sa.readdirSync)(r)),n)return(0,ki.resolve)(r,n);if(r=(0,ki.dirname)(n=r),n===r)break}}s(Zu,"default");var mg=require("util"),gg=require("fs"),yg=require("url");var ig=require("util"),$a=require("path");function Dn(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let o=i?i[0].length:0;o<e.length;o++){let a=e.charAt(o);n&&(n=!1,a=a.toUpperCase()),o!==0&&(a==="-"||a==="_")?n=!0:a!=="-"&&a!=="_"&&(r+=a)}return r}}s(Dn,"camelCase");function Oa(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let o=r.charAt(i),a=e.charAt(i);o!==a&&i>0?n+=`${t}${r.charAt(i)}`:n+=a}return n}s(Oa,"decamelize");function Pa(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}s(Pa,"looksLikeNumber");function eg(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,r=null,n=null,i=null,o=[];for(let a=0;a<e.length;a++){if(r=n,n=e.charAt(a),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),o[t]||(o[t]=""),o[t]+=n}return o}s(eg,"tokenizeArgString");var Gt;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Gt||(Gt={}));var Gr,Ju=class Ju{constructor(t){Gr=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=eg(t),o=typeof t=="string",a=vw(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),v=n.__||Gr.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:[]},w=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,A=new RegExp("^--"+c["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(_){let P=typeof _=="object"?_.key:_,T=Object.keys(_).map(function(E){return{boolean:"bools",string:"strings",number:"numbers"}[E]}).filter(Boolean).pop();T&&(g[T][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)})),At(n.key,a,n.default,g.arrays),Object.keys(u).forEach(function(_){(g.aliases[_]||[]).forEach(function(P){u[P]=u[_]})});let I=null;Ni();let R=[],C=Object.assign(Object.create(null),{_:[]}),ae={};for(let _=0;_<i.length;_++){let P=i[_],T=P.replace(/^-{3,}/,"---"),E,O,V,q,G,Ze;if(P!=="--"&&/^-/.test(P)&&Ce(P))ce(P);else if(T.match(/^---+(=|$)/)){ce(P);continue}else if(P.match(/^--.+=/)||!c["short-option-groups"]&&P.match(/^-.+=/))q=P.match(/^--?([^=]+)=([\s\S]*)$/),q!==null&&Array.isArray(q)&&q.length>=3&&(te(q[1],g.arrays)?_=Pe(_,q[1],i,q[2]):te(q[1],g.nargs)!==!1?_=nt(_,q[1],i,q[2]):Y(q[1],q[2],!0));else if(P.match(A)&&c["boolean-negation"])q=P.match(A),q!==null&&Array.isArray(q)&&q.length>=2&&(O=q[1],Y(O,te(O,g.arrays)?[!1]:!1));else if(P.match(/^--.+/)||!c["short-option-groups"]&&P.match(/^-[^-]+/))q=P.match(/^--?(.+)/),q!==null&&Array.isArray(q)&&q.length>=2&&(O=q[1],te(O,g.arrays)?_=Pe(_,O,i):te(O,g.nargs)!==!1?_=nt(_,O,i):(G=i[_+1],G!==void 0&&(!G.match(/^-/)||G.match(w))&&!te(O,g.bools)&&!te(O,g.counts)||/^(true|false)$/.test(G)?(Y(O,G),_++):Y(O,_e(O))));else if(P.match(/^-.\..+=/))q=P.match(/^-([^=]+)=([\s\S]*)$/),q!==null&&Array.isArray(q)&&q.length>=3&&Y(q[1],q[2]);else if(P.match(/^-.\..+/)&&!P.match(w))G=i[_+1],q=P.match(/^-(.\..+)/),q!==null&&Array.isArray(q)&&q.length>=2&&(O=q[1],G!==void 0&&!G.match(/^-/)&&!te(O,g.bools)&&!te(O,g.counts)?(Y(O,G),_++):Y(O,_e(O)));else if(P.match(/^-[^-]+/)&&!P.match(w)){V=P.slice(1,-1).split(""),E=!1;for(let at=0;at<V.length;at++){if(G=P.slice(at+2),V[at+1]&&V[at+1]==="="){Ze=P.slice(at+3),O=V[at],te(O,g.arrays)?_=Pe(_,O,i,Ze):te(O,g.nargs)!==!1?_=nt(_,O,i,Ze):Y(O,Ze),E=!0;break}if(G==="-"){Y(V[at],G);continue}if(/[A-Za-z]/.test(V[at])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(G)&&te(G,g.bools)===!1){Y(V[at],G),E=!0;break}if(V[at+1]&&V[at+1].match(/\W/)){Y(V[at],G),E=!0;break}else Y(V[at],_e(V[at]))}O=P.slice(-1)[0],!E&&O!=="-"&&(te(O,g.arrays)?_=Pe(_,O,i):te(O,g.nargs)!==!1?_=nt(_,O,i):(G=i[_+1],G!==void 0&&(!/^(-|--)[^-]/.test(G)||G.match(w))&&!te(O,g.bools)&&!te(O,g.counts)||/^(true|false)$/.test(G)?(Y(O,G),_++):Y(O,_e(O))))}else if(P.match(/^-[0-9]$/)&&P.match(w)&&te(P.slice(1),g.bools))O=P.slice(1),Y(O,_e(O));else if(P==="--"){R=i.slice(_+1);break}else if(c["halt-at-non-option"]){R=i.slice(_);break}else ce(P)}ge(C,!0),ge(C,!1),Z(C),be(),Ee(C,g.aliases,u,!0),Fe(C),c["set-placeholder-key"]&&Er(C),Object.keys(g.counts).forEach(function(_){zt(C,_.split("."))||Y(_,0)}),f&&R.length&&(C[d]=[]),R.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=>Dn(P)).join(".")],delete C[_]});function ce(_){let P=M("_",_);(typeof P=="string"||typeof P=="number")&&C._.push(P)}s(ce,"pushPositional");function nt(_,P,T,E){let O,V=te(P,g.nargs);if(V=typeof V!="number"||isNaN(V)?1:V,V===0)return Ct(E)||(I=Error(v("Argument unexpected for: %s",P))),Y(P,_e(P)),_;let q=Ct(E)?0:1;if(c["nargs-eats-options"])T.length-(_+1)+q<V&&(I=Error(v("Not enough arguments following: %s",P))),q=V;else{for(O=_+1;O<T.length&&(!T[O].match(/^-[^0-9]/)||T[O].match(w)||Ce(T[O]));O++)q++;q<V&&(I=Error(v("Not enough arguments following: %s",P)))}let G=Math.min(q,V);for(!Ct(E)&&G>0&&(Y(P,E),G--),O=_+1;O<G+_+1;O++)Y(P,T[O]);return _+G}s(nt,"eatNargs");function Pe(_,P,T,E){let O=[],V=E||T[_+1],q=te(P,g.nargs);if(te(P,g.bools)&&!/^(true|false)$/.test(V))O.push(!0);else if(Ct(V)||Ct(E)&&/^-/.test(V)&&!w.test(V)&&!Ce(V)){if(u[P]!==void 0){let G=u[P];O=Array.isArray(G)?G:[G]}}else{Ct(E)||O.push(j(P,E,!0));for(let G=_+1;G<T.length&&!(!c["greedy-arrays"]&&O.length>0||q&&typeof q=="number"&&O.length>=q||(V=T[G],/^-/.test(V)&&!w.test(V)&&!Ce(V)));G++)_=G,O.push(j(P,V,o))}return typeof q=="number"&&(q&&O.length<q||isNaN(q)&&O.length===0)&&(I=Error(v("Not enough arguments following: %s",P))),Y(P,O),_}s(Pe,"eatArray");function Y(_,P,T=o){if(/-/.test(_)&&c["camel-case-expansion"]){let V=_.split(".").map(function(q){return Dn(q)}).join(".");k(_,V)}let E=j(_,P,T),O=_.split(".");J(C,O,E),g.aliases[_]&&g.aliases[_].forEach(function(V){let q=V.split(".");J(C,q,E)}),O.length>1&&c["dot-notation"]&&(g.aliases[O[0]]||[]).forEach(function(V){let q=V.split("."),G=[].concat(O);G.shift(),q=q.concat(G),(g.aliases[_]||[]).includes(q.join("."))||J(C,q,E)}),te(_,g.normalize)&&!te(_,g.arrays)&&[_].concat(g.aliases[_]||[]).forEach(function(q){Object.defineProperty(ae,q,{enumerable:!0,get(){return P},set(G){P=typeof G=="string"?Gr.normalize(G):G}})})}s(Y,"setArg");function k(_,P){g.aliases[_]&&g.aliases[_].length||(g.aliases[_]=[P],h[P]=!0),g.aliases[P]&&g.aliases[P].length||k(P,_)}s(k,"addNewAlias");function j(_,P,T){T&&(P=bw(P)),(te(_,g.bools)||te(_,g.counts))&&typeof P=="string"&&(P=P==="true");let E=Array.isArray(P)?P.map(function(O){return M(_,O)}):M(_,P);return te(_,g.counts)&&(Ct(E)||typeof E=="boolean")&&(E=Yu()),te(_,g.normalize)&&te(_,g.arrays)&&(Array.isArray(P)?E=P.map(O=>Gr.normalize(O)):E=Gr.normalize(P)),E}s(j,"processValue");function M(_,P){return!c["parse-positional-numbers"]&&_==="_"||!te(_,g.strings)&&!te(_,g.bools)&&!Array.isArray(P)&&(Pa(P)&&c["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${P}`)))||!Ct(P)&&te(_,g.numbers))&&(P=Number(P)),P}s(M,"maybeCoerceNumber");function Z(_){let P=Object.create(null);Ee(P,g.aliases,u),Object.keys(g.configs).forEach(function(T){let E=_[T]||P[T];if(E)try{let O=null,V=Gr.resolve(Gr.cwd(),E),q=g.configs[T];if(typeof q=="function"){try{O=q(V)}catch(G){O=G}if(O instanceof Error){I=O;return}}else O=Gr.require(V);ue(O)}catch(O){O.name==="PermissionDenied"?I=O:_[T]&&(I=Error(v("Invalid JSON config file: %s",E)))}})}s(Z,"setConfig");function ue(_,P){Object.keys(_).forEach(function(T){let E=_[T],O=P?P+"."+T:T;typeof E=="object"&&E!==null&&!Array.isArray(E)&&c["dot-notation"]?ue(E,O):(!zt(C,O.split("."))||te(O,g.arrays)&&c["combine-arrays"])&&Y(O,E)})}s(ue,"setConfigObject");function be(){typeof l<"u"&&l.forEach(function(_){ue(_)})}s(be,"setConfigObjects");function ge(_,P){if(typeof p>"u")return;let T=typeof p=="string"?p:"",E=Gr.env();Object.keys(E).forEach(function(O){if(T===""||O.lastIndexOf(T,0)===0){let V=O.split("__").map(function(q,G){return G===0&&(q=q.substring(T.length)),Dn(q)});(P&&g.configs[V.join(".")]||!P)&&!zt(_,V)&&Y(V.join("."),E[O])}})}s(ge,"applyEnvVars");function Fe(_){let P,T=new Set;Object.keys(_).forEach(function(E){if(!T.has(E)&&(P=te(E,g.coercions),typeof P=="function"))try{let O=M(E,P(_[E]));[].concat(g.aliases[E]||[],E).forEach(V=>{T.add(V),_[V]=O})}catch(O){I=O}})}s(Fe,"applyCoercions");function Er(_){return g.keys.forEach(P=>{~P.indexOf(".")||typeof _[P]>"u"&&(_[P]=void 0)}),_}s(Er,"setPlaceholderKeys");function Ee(_,P,T,E=!1){Object.keys(T).forEach(function(O){zt(_,O.split("."))||(J(_,O.split("."),T[O]),E&&(y[O]=!0),(P[O]||[]).forEach(function(V){zt(_,V.split("."))||J(_,V.split("."),T[O])}))})}s(Ee,"applyDefaultsAndAliases");function zt(_,P){let T=_;c["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(O){T=T[O]||{}});let E=P[P.length-1];return typeof T!="object"?!1:E in T}s(zt,"hasKey");function J(_,P,T){let E=_;c["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(Ze){Ze=tg(Ze),typeof E=="object"&&E[Ze]===void 0&&(E[Ze]={}),typeof E[Ze]!="object"||Array.isArray(E[Ze])?(Array.isArray(E[Ze])?E[Ze].push({}):E[Ze]=[E[Ze],{}],E=E[Ze][E[Ze].length-1]):E=E[Ze]});let O=tg(P[P.length-1]),V=te(P.join("."),g.arrays),q=Array.isArray(T),G=c["duplicate-arguments-array"];!G&&te(O,g.nargs)&&(G=!0,(!Ct(E[O])&&g.nargs[O]===1||Array.isArray(E[O])&&E[O].length===g.nargs[O])&&(E[O]=void 0)),T===Yu()?E[O]=Yu(E[O]):Array.isArray(E[O])?G&&V&&q?E[O]=c["flatten-duplicate-arrays"]?E[O].concat(T):(Array.isArray(E[O][0])?E[O]:[E[O]]).concat([T]):!G&&!!V==!!q?E[O]=T:E[O]=E[O].concat([T]):E[O]===void 0&&V?E[O]=q?T:[T]:G&&!(E[O]===void 0||te(O,g.counts)||te(O,g.bools))?E[O]=[E[O],T]:E[O]=T}s(J,"setKey");function At(..._){_.forEach(function(P){Object.keys(P||{}).forEach(function(T){g.aliases[T]||(g.aliases[T]=[].concat(a[T]||[]),g.aliases[T].concat(T).forEach(function(E){if(/-/.test(E)&&c["camel-case-expansion"]){let O=Dn(E);O!==T&&g.aliases[T].indexOf(O)===-1&&(g.aliases[T].push(O),h[O]=!0)}}),g.aliases[T].concat(T).forEach(function(E){if(E.length>1&&/[A-Z]/.test(E)&&c["camel-case-expansion"]){let O=Oa(E,"-");O!==T&&g.aliases[T].indexOf(O)===-1&&(g.aliases[T].push(O),h[O]=!0)}}),g.aliases[T].forEach(function(E){g.aliases[E]=[T].concat(g.aliases[T].filter(function(O){return E!==O}))}))})})}s(At,"extendAliases");function te(_,P){let T=[].concat(g.aliases[_]||[],_),E=Object.keys(P),O=T.find(V=>E.includes(V));return O?P[O]:!1}s(te,"checkAllAliases");function Ae(_){let P=Object.keys(g);return[].concat(P.map(E=>g[E])).some(function(E){return Array.isArray(E)?E.includes(_):E[_]})}s(Ae,"hasAnyFlag");function X(_,...P){return[].concat(...P).some(function(E){let O=_.match(E);return O&&Ae(O[1])})}s(X,"hasFlagsMatching");function xe(_){if(_.match(w)||!_.match(/^-[^-]+/))return!1;let P=!0,T,E=_.slice(1).split("");for(let O=0;O<E.length;O++){if(T=_.slice(O+2),!Ae(E[O])){P=!1;break}if(E[O+1]&&E[O+1]==="="||T==="-"||/[A-Za-z]/.test(E[O])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(T)||E[O+1]&&E[O+1].match(/\W/))break}return P}s(xe,"hasAllShortFlags");function Ce(_){return c["unknown-options-as-args"]&&pe(_)}s(Ce,"isUnknownOptionAsArg");function pe(_){return _=_.replace(/^-{3,}/,"--"),_.match(w)||xe(_)?!1:!X(_,/^-+([^=]+?)=[\s\S]*$/,A,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}s(pe,"isUnknownOption");function _e(_){return!te(_,g.bools)&&!te(_,g.counts)&&`${_}`in u?u[_]:Me(it(_))}s(_e,"defaultValue");function Me(_){return{[Gt.BOOLEAN]:!0,[Gt.STRING]:"",[Gt.NUMBER]:void 0,[Gt.ARRAY]:[]}[_]}s(Me,"defaultForType");function it(_){let P=Gt.BOOLEAN;return te(_,g.strings)?P=Gt.STRING:te(_,g.numbers)?P=Gt.NUMBER:te(_,g.bools)?P=Gt.BOOLEAN:te(_,g.arrays)&&(P=Gt.ARRAY),P}s(it,"guessType");function Ct(_){return _===void 0}s(Ct,"isUndefined");function Ni(){Object.keys(g.counts).find(_=>te(_,g.arrays)?(I=Error(v("Invalid configuration: %s, opts.count excludes opts.array.",_)),!0):te(_,g.nargs)?(I=Error(v("Invalid configuration: %s, opts.count excludes opts.narg.",_)),!0):!1)}return s(Ni,"checkConfiguration"),{aliases:Object.assign({},g.aliases),argv:Object.assign(ae,C),configuration:c,defaulted:Object.assign({},y),error:I,newAliases:Object.assign({},h)}}};s(Ju,"YargsParser");var wa=Ju;function vw(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let o=i+1;o<t.length;o++)if(t[i].filter(function(c){return t[o].indexOf(c)!==-1}).length){t[i]=t[i].concat(t[o]),t.splice(o,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(a,c,u){return u.indexOf(a)===c});let o=i.pop();o!==void 0&&typeof o=="string"&&(r[o]=i)}),r}s(vw,"combineAliases");function Yu(e){return e!==void 0?e+1:1}s(Yu,"increment");function tg(e){return e==="__proto__"?"___proto___":e}s(tg,"sanitizeKey");function bw(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}s(bw,"stripQuotes");var sg=require("fs");var Qu,Xu,el,rg=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,ng=(Xu=(Qu=process==null?void 0:process.versions)===null||Qu===void 0?void 0:Qu.node)!==null&&Xu!==void 0?Xu:(el=process==null?void 0:process.version)===null||el===void 0?void 0:el.slice(1);if(ng&&Number(ng.match(/^([^.]+)/)[1])<rg)throw Error(`yargs parser supports a minimum Node.js version of ${rg}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var _w=process?process.env:{},og=new wa({cwd:process.cwd,env:s(()=>_w,"env"),format:ig.format,normalize:$a.normalize,resolve:$a.resolve,require:s(e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,sg.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")},"require")}),Ys=s(function(t,r){return og.parse(t.slice(),r).argv},"Parser");Ys.detailed=function(e,t){return og.parse(e.slice(),t)};Ys.camelCase=Dn;Ys.decamelize=Oa;Ys.looksLikeNumber=Pa;var tl=Ys;var fr=require("path");function ag(){return Sw()?0:1}s(ag,"getProcessArgvBinIndex");function Sw(){return Ow()&&!process.defaultApp}s(Sw,"isBundledElectronApp");function Ow(){return!!process.versions.electron}s(Ow,"isElectronApp");function rl(e){return e.slice(ag()+1)}s(rl,"hideBin");function cg(){return process.argv[ag()]}s(cg,"getProcessArgvBin");var Ea=class Ea extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,Ea)}};s(Ea,"YError");var je=Ea;var Mi=require("fs"),ug=require("util"),lg=require("path");var fg={fs:{readFileSync:Mi.readFileSync,writeFile:Mi.writeFile},format:ug.format,resolve:lg.resolve,exists:s(e=>{try{return(0,Mi.statSync)(e).isFile()}catch{return!1}},"exists")};var lr,il=class il{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:!0,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=t.shift(),n=s(function(){},"cb");return typeof t[t.length-1]=="function"&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),lr.format.apply(lr.format,[this.cache[this.locale][r]||r].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),r=t.shift(),n=t.shift(),i=t.shift(),o=s(function(){},"cb");typeof t[t.length-1]=="function"&&(o=t.pop()),this.cache[this.locale]||this._readLocaleFile();let a=i===1?r:n;this.cache[this.locale][r]&&(a=this.cache[this.locale][r][i===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:o})):o();let c=[a];return~a.indexOf("%d")&&c.push(i),lr.format.apply(lr.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,o){let a=r[o+1];n+=i,typeof a<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let t=this,r=this.writeQueue[0],n=r.directory,i=r.locale,o=r.cb,a=this._resolveLocaleFile(n,i),c=JSON.stringify(this.cache[i],null,2);lr.fs.writeFile(a,c,"utf-8",function(u){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),o(u)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{lr.fs.readFileSync&&(t=JSON.parse(lr.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=lr.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=lr.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return lr.exists(t)}};s(il,"Y18N");var nl=il;function pg(e,t){lr=t;let r=new nl(e);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}s(pg,"y18n");var Pw=s(e=>pg(e,fg),"y18n"),dg=Pw;var Ew={};var ww="require is not supported by ESM",hg="loading a directory of commands is not supported yet for ESM",Js;try{Js=(0,yg.fileURLToPath)(Ew.url)}catch{Js=process.cwd()}var $w=Js.substring(0,Js.lastIndexOf("node_modules")),sl={assert:{notStrictEqual:xa.notStrictEqual,strictEqual:xa.strictEqual},cliui:Ku,findUp:Zu,getEnv:s(e=>process.env[e],"getEnv"),inspect:mg.inspect,getCallerFile:s(()=>{throw new je(hg)},"getCallerFile"),getProcessArgvBin:cg,mainFilename:$w||process.cwd(),Parser:tl,path:{basename:fr.basename,dirname:fr.dirname,extname:fr.extname,relative:fr.relative,resolve:fr.resolve},process:{argv:s(()=>process.argv,"argv"),cwd:process.cwd,emitWarning:s((e,t)=>process.emitWarning(e,t),"emitWarning"),execPath:s(()=>process.execPath,"execPath"),exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:gg.readFileSync,require:s(()=>{throw new je(ww)},"require"),requireDirectory:s(()=>{throw new je(hg)},"requireDirectory"),stringWidth:s(e=>[...e].length,"stringWidth"),y18n:dg({directory:(0,fr.resolve)(Js,"../../../locales"),updateFiles:!1})};function St(e,t,r,n){r.assert.notStrictEqual(e,t,n)}s(St,"assertNotStrictEqual");function ol(e,t){t.assert.strictEqual(typeof e,"string")}s(ol,"assertSingleKey");function qi(e){return Object.keys(e)}s(qi,"objectKeys");function Re(e){return!!e&&!!e.then&&typeof e.then=="function"}s(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 o={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)?o.optional.push({cmd:a.replace(n,"").split("|"),variadic:u}):o.demanded.push({cmd:a.replace(n,"").split("|"),variadic:u})}),o}s(sn,"parseCommand");var xw=["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]}s(n,"parseArgs");try{let i=0,[o,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<o.demanded.length)throw new je(`Not enough arguments provided. Expected ${o.demanded.length} but received ${u.length}.`);let p=o.demanded.length+o.optional.length;if(l>p)throw new je(`Too many arguments provided. Expected max ${p} but received ${l}.`);o.demanded.forEach(f=>{let d=u.shift(),h=vg(d);f.cmd.filter(v=>v===h||v==="*").length===0&&bg(h,f.cmd,i),i+=1}),o.optional.forEach(f=>{if(u.length===0)return;let d=u.shift(),h=vg(d);f.cmd.filter(v=>v===h||v==="*").length===0&&bg(h,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}s(F,"argsert");function vg(e){return Array.isArray(e)?"array":e===null?"null":typeof e}s(vg,"guessType");function bg(e,t,r){throw new je(`Invalid ${xw[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}s(bg,"argumentTypeError");var al=class al{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,r,n=!0,i=!1){if(F("<array|function> [boolean] [boolean] [boolean]",[t,r,n],arguments.length),Array.isArray(t)){for(let o=0;o<t.length;o++){if(typeof t[o]!="function")throw Error("middleware must be a function");let a=t[o];a.applyBeforeValidation=r,a.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let o=t;o.applyBeforeValidation=r,o.global=n,o.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,r){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let o=[...n[r]||[],r];return i.option?!o.includes(i.option):!0}),t.option=r,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global)}};s(al,"GlobalMiddleware");var Aa=al;function _g(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}s(_g,"commandMiddlewareFactory");function Ln(e,t,r,n){return r.reduce((i,o)=>{if(o.applyBeforeValidation!==n)return i;if(o.mutates){if(o.applied)return i;o.applied=!0}if(Re(i))return i.then(a=>Promise.all([a,o(a,t)])).then(([a,c])=>Object.assign(a,c));{let a=o(i,t);return Re(a)?a.then(c=>Object.assign(i,c)):Object.assign(i,a)}},e)}s(Ln,"applyMiddleware");function Fn(e,t,r=n=>{throw n}){try{let n=Aw(e)?e():e;return Re(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}s(Fn,"maybeAsyncResult");function Aw(e){return typeof e=="function"}s(Aw,"isFunction");function cl(e){if(typeof require>"u")return null;for(let t=0,r=Object.keys(require.cache),n;t<r.length;t++)if(n=require.cache[r[t]],n.exports===e)return n;return null}s(cl,"whichModule");var Di=/(^\*)|(^\$0)/,ll=class ll{constructor(t,r,n,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=n,this.validation=r}addDirectory(t,r,n,i){i=i||{},typeof i.recurse!="boolean"&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);let o=typeof i.visit=="function"?i.visit:a=>a;i.visit=(a,c,u)=>{let l=o(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,o,a){let c=[],u=_g(o);if(i=i||(()=>{}),Array.isArray(t))if(Cw(t))[t,...c]=t;else for(let l of t)this.addHandler(l);else if(jw(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(Sg(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=>Di.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(Di,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,o,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,o,a);return Re(f)?f.then(d=>this.applyMiddlewareAndGetResult(p,c,d.innerArgv,u,o,d.aliases,r)):this.applyMiddlewareAndGetResult(p,c,f.innerArgv,u,o,f.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,o,a,c,u){let l=r.builder,p=n;if(Ca(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),u);if(Re(f))return f.then(d=>(p=Pg(d)?d:n,this.parseAndUpdateUsage(t,r,p,o,a,c)))}else Iw(l)&&(n.getInternalMethods().getUsageInstance().freeze(),p=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(f=>{p.option(f,l[f])}));return this.parseAndUpdateUsage(t,r,p,o,a,c)}parseAndUpdateUsage(t,r,n,i,o,a){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let c=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,o,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=Di.test(r.original)?r.original.replace(Di,"").trim():r.original,i=t.filter(o=>!Di.test(o));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,o,a,c,u){if(!a.getInternalMethods().getHasOutput()){let l=a.getInternalMethods().runValidation(o,u,a.parsed.error,t);n=Fn(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=Ln(n,a,c,!1),n=Fn(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,o,a,c){let u={};if(o)return n;c.getInternalMethods().getHasOutput()||(u=this.populatePositionals(r,n,i,c));let l=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),p=Ln(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 o=t.demanded.slice(0),a=t.optional.slice(0),c={};for(this.validation.positionalCount(o.length,r._.length);o.length;){let u=o.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[o,...a]=i.cmd;i.variadic&&(r.array.push(o),r.default[o]=[]),r.alias[o]=a,r.demand[o]=!0}),n.optional.forEach(i=>{let[o,...a]=i.cmd;i.variadic&&(r.array.push(o),r.default[o]=[]),r.alias[o]=a}),r}postProcessPositionals(t,r,n,i){let o=Object.assign({},i.getOptions());o.default=Object.assign(n.default,o.default);for(let l of Object.keys(n.alias))o.alias[l]=(o.alias[l]||[]).concat(n.alias[l]);o.array=o.array.concat(n.array),o.config={};let a=[];if(Object.keys(r).forEach(l=>{r[l].map(p=>{o.configuration["unknown-options-as-args"]&&(o.key[l]=!0),a.push(`--${l}`),a.push(p)})}),!a.length)return;let c=Object.assign({},o.configuration,{"populate--":!1}),u=this.shim.Parser.detailed(a,Object.assign({},o,{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=Di.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(Ca(r))return r(t,!0);Sg(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=cl(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;St(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();St(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};s(ll,"CommandInstance");var ul=ll;function Og(e,t,r,n){return new ul(e,t,r,n)}s(Og,"command");function Sg(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}s(Sg,"isCommandBuilderDefinition");function Cw(e){return e.every(t=>typeof t=="string")}s(Cw,"isCommandAndAliases");function Ca(e){return typeof e=="function"}s(Ca,"isCommandBuilderCallback");function Iw(e){return typeof e=="object"}s(Iw,"isCommandBuilderOptionDefinitions");function jw(e){return typeof e=="object"&&!Array.isArray(e)}s(jw,"isCommandHandlerDefinition");function on(e={},t=()=>!0){let r={};return qi(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}s(on,"objFilter");function an(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let r=t;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(e)})}s(an,"setBlocking");function Rw(e){return typeof e=="boolean"}s(Rw,"isBoolean");function $g(e,t){let r=t.y18n.__,n={},i=[];n.failFn=s(function(j){i.push(j)},"failFn");let o=null,a=null,c=!0;n.showHelpOnFail=s(function(j=!0,M){let[Z,ue]=typeof j=="string"?[!0,j]:[j,M];return e.getInternalMethods().isGlobalContext()&&(a=ue),o=ue,c=Z,n},"showHelpOnFailFn");let u=!1;n.fail=s(function(j,M){let Z=e.getInternalMethods().getLoggerInstance();if(i.length)for(let ue=i.length-1;ue>=0;--ue){let be=i[ue];if(Rw(be)){if(M)throw M;if(j)throw Error(j)}else be(j,M,n)}else{if(e.getExitProcess()&&an(!0),!u){u=!0,c&&(e.showHelp("error"),Z.error()),(j||M)&&Z.error(j||M);let ue=o||a;ue&&((j||M)&&Z.error(""),Z.error(ue))}if(M=M||new je(j),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,M);throw M}},"fail");let l=[],p=!1;n.usage=(k,j)=>k===null?(p=!0,l=[],n):(p=!1,l.push([k,j||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>p,n.getPositionalGroupName=()=>r("Positionals:");let f=[];n.example=(k,j)=>{f.push([k,j||""])};let d=[];n.command=s(function(j,M,Z,ue,be=!1){Z&&(d=d.map(ge=>(ge[2]=!1,ge))),d.push([j,M||"",Z,ue,be])},"command"),n.getCommands=()=>d;let h={};n.describe=s(function(j,M){Array.isArray(j)?j.forEach(Z=>{n.describe(Z,M)}):typeof j=="object"?Object.keys(j).forEach(Z=>{n.describe(Z,j[Z])}):h[j]=M},"describe"),n.getDescriptions=()=>h;let y=[];n.epilog=k=>{y.push(k)};let v=!1,g;n.wrap=k=>{v=!0,g=k},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(v||(g=nt(),v=!0),g);let w="__yargsString__:";n.deferY18nLookup=k=>w+k,n.help=s(function(){if(R)return R;I();let j=e.customScriptName?e.$0:t.path.basename(e.$0),M=e.getDemandedOptions(),Z=e.getDemandedCommands(),ue=e.getDeprecatedOptions(),be=e.getGroups(),ge=e.getOptions(),Fe=[];Fe=Fe.concat(Object.keys(h)),Fe=Fe.concat(Object.keys(M)),Fe=Fe.concat(Object.keys(Z)),Fe=Fe.concat(Object.keys(ge.default)),Fe=Fe.filter(ae),Fe=Object.keys(Fe.reduce((X,xe)=>(xe!=="_"&&(X[xe]=!0),X),{}));let Er=n.getWrap(),Ee=t.cliui({width:Er,wrap:!!Er});if(!p){if(l.length)l.forEach(X=>{Ee.div({text:`${X[0].replace(/\$0/g,j)}`}),X[1]&&Ee.div({text:`${X[1]}`,padding:[1,0,0,0]})}),Ee.div();else if(d.length){let X=null;Z._?X=`${j} <${r("command")}>
79
- `:X=`${j} [${r("command")}]
80
- `,Ee.div(`${X}`)}}if(d.length>1||d.length===1&&!d[0][2]){Ee.div(r("Commands:"));let X=e.getInternalMethods().getContext(),xe=X.commands.length?`${X.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(d=d.sort((pe,_e)=>pe[0].localeCompare(_e[0])));let Ce=j?`${j} `:"";d.forEach(pe=>{let _e=`${Ce}${xe}${pe[0].replace(/^\$0 ?/,"")}`;Ee.span({text:_e,padding:[0,2,0,2],width:A(d,Er,`${j}${xe}`)+4},{text:pe[1]});let Me=[];pe[2]&&Me.push(`[${r("default")}]`),pe[3]&&pe[3].length&&Me.push(`[${r("aliases:")} ${pe[3].join(", ")}]`),pe[4]&&(typeof pe[4]=="string"?Me.push(`[${r("deprecated: %s",pe[4])}]`):Me.push(`[${r("deprecated")}]`)),Me.length?Ee.div({text:Me.join(" "),padding:[0,0,0,2],align:"right"}):Ee.div()}),Ee.div()}let zt=(Object.keys(ge.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);Fe=Fe.filter(X=>!e.parsed.newAliases[X]&&zt.every(xe=>(ge.alias[xe]||[]).indexOf(X)===-1));let J=r("Options:");be[J]||(be[J]=[]),C(Fe,ge.alias,be,J);let At=s(X=>/^--/.test(Ia(X)),"isLongSwitch"),te=Object.keys(be).filter(X=>be[X].length>0).map(X=>{let xe=be[X].filter(ae).map(Ce=>{if(zt.includes(Ce))return Ce;for(let pe=0,_e;(_e=zt[pe])!==void 0;pe++)if((ge.alias[_e]||[]).includes(Ce))return _e;return Ce});return{groupName:X,normalizedKeys:xe}}).filter(({normalizedKeys:X})=>X.length>0).map(({groupName:X,normalizedKeys:xe})=>{let Ce=xe.reduce((pe,_e)=>(pe[_e]=[_e].concat(ge.alias[_e]||[]).map(Me=>X===n.getPositionalGroupName()?Me:(/^[0-9]$/.test(Me)?ge.boolean.includes(_e)?"-":"--":Me.length>1?"--":"-")+Me).sort((Me,it)=>At(Me)===At(it)?0:At(Me)?1:-1).join(", "),pe),{});return{groupName:X,normalizedKeys:xe,switches:Ce}});if(te.filter(({groupName:X})=>X!==n.getPositionalGroupName()).some(({normalizedKeys:X,switches:xe})=>!X.every(Ce=>At(xe[Ce])))&&te.filter(({groupName:X})=>X!==n.getPositionalGroupName()).forEach(({normalizedKeys:X,switches:xe})=>{X.forEach(Ce=>{At(xe[Ce])&&(xe[Ce]=Tw(xe[Ce],4))})}),te.forEach(({groupName:X,normalizedKeys:xe,switches:Ce})=>{Ee.div(X),xe.forEach(pe=>{let _e=Ce[pe],Me=h[pe]||"",it=null;Me.includes(w)&&(Me=r(Me.substring(w.length))),ge.boolean.includes(pe)&&(it=`[${r("boolean")}]`),ge.count.includes(pe)&&(it=`[${r("count")}]`),ge.string.includes(pe)&&(it=`[${r("string")}]`),ge.normalize.includes(pe)&&(it=`[${r("string")}]`),ge.array.includes(pe)&&(it=`[${r("array")}]`),ge.number.includes(pe)&&(it=`[${r("number")}]`);let Ct=s(P=>typeof P=="string"?`[${r("deprecated: %s",P)}]`:`[${r("deprecated")}]`,"deprecatedExtra"),Ni=[pe in ue?Ct(ue[pe]):null,it,pe in M?`[${r("required")}]`:null,ge.choices&&ge.choices[pe]?`[${r("choices:")} ${n.stringifiedValues(ge.choices[pe])}]`:null,ce(ge.default[pe],ge.defaultDescription[pe])].filter(Boolean).join(" ");Ee.span({text:Ia(_e),padding:[0,2,0,2+wg(_e)],width:A(Ce,Er)+4},Me);let _=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;Ni&&!_?Ee.div({text:Ni,padding:[0,0,0,2],align:"right"}):Ee.div()}),Ee.div()}),f.length&&(Ee.div(r("Examples:")),f.forEach(X=>{X[0]=X[0].replace(/\$0/g,j)}),f.forEach(X=>{X[1]===""?Ee.div({text:X[0],padding:[0,2,0,2]}):Ee.div({text:X[0],padding:[0,2,0,2],width:A(f,Er)+4},{text:X[1]})}),Ee.div()),y.length>0){let X=y.map(xe=>xe.replace(/\$0/g,j)).join(`
81
- `);Ee.div(`${X}
82
- `)}return Ee.toString().replace(/\s*$/,"")},"help");function A(k,j,M){let Z=0;return Array.isArray(k)||(k=Object.values(k).map(ue=>[ue])),k.forEach(ue=>{Z=Math.max(t.stringWidth(M?`${M} ${Ia(ue[0])}`:Ia(ue[0]))+wg(ue[0]),Z)}),j&&(Z=Math.min(Z,parseInt((j*.5).toString(),10))),Z}s(A,"maxWidth");function I(){let k=e.getDemandedOptions(),j=e.getOptions();(Object.keys(j.alias)||[]).forEach(M=>{j.alias[M].forEach(Z=>{h[Z]&&n.describe(M,h[Z]),Z in k&&e.demandOption(M,k[Z]),j.boolean.includes(Z)&&e.boolean(M),j.count.includes(Z)&&e.count(M),j.string.includes(Z)&&e.string(M),j.normalize.includes(Z)&&e.normalize(M),j.array.includes(Z)&&e.array(M),j.number.includes(Z)&&e.number(M)})})}s(I,"normalizeAliases");let R;n.cacheHelpMessage=function(){R=this.help()},n.clearCachedHelpMessage=function(){R=void 0},n.hasCachedHelpMessage=function(){return!!R};function C(k,j,M,Z){let ue=[],be=null;return Object.keys(M).forEach(ge=>{ue=ue.concat(M[ge])}),k.forEach(ge=>{be=[ge].concat(j[ge]),be.some(Fe=>ue.indexOf(Fe)!==-1)||M[Z].push(ge)}),ue}s(C,"addUngroupedKeys");function ae(k){return e.getOptions().hiddenOptions.indexOf(k)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}s(ae,"filterHiddenOptions"),n.showHelp=k=>{let j=e.getInternalMethods().getLoggerInstance();k||(k="error"),(typeof k=="function"?k:j[k])(n.help())},n.functionDescription=k=>["(",k.name?t.Parser.decamelize(k.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=s(function(j,M){let Z="",ue=M||", ",be=[].concat(j);return!j||!be.length||be.forEach(ge=>{Z.length&&(Z+=ue),Z+=JSON.stringify(ge)}),Z},"stringifiedValues");function ce(k,j){let M=`[${r("default:")} `;if(k===void 0&&!j)return null;if(j)M+=j;else switch(typeof k){case"string":M+=`"${k}"`;break;case"object":M+=JSON.stringify(k);break;default:M+=k}return`${M}]`}s(ce,"defaultString");function nt(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}s(nt,"windowWidth");let Pe=null;n.version=k=>{Pe=k},n.showVersion=k=>{let j=e.getInternalMethods().getLoggerInstance();k||(k="error"),(typeof k=="function"?k:j[k])(Pe)},n.reset=s(function(j){return o=null,u=!1,l=[],p=!1,y=[],f=[],d=[],h=on(h,M=>!j[M]),n},"reset");let Y=[];return n.freeze=s(function(){Y.push({failMessage:o,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h})},"freeze"),n.unfreeze=s(function(j=!1){let M=Y.pop();M&&(j?(h={...M.descriptions,...h},d=[...M.commands,...d],l=[...M.usages,...l],f=[...M.examples,...f],y=[...M.epilogs,...y]):{failMessage:o,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h}=M)},"unfreeze"),n}s($g,"usage");function fl(e){return typeof e=="object"}s(fl,"isIndentedText");function Tw(e,t){return fl(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}s(Tw,"addIndentation");function wg(e){return fl(e)?e.indentation:0}s(wg,"getIndentation");function Ia(e){return fl(e)?e.text:e}s(Ia,"getText");var Eg=`###-begin-{{app_name}}-completions-###
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(PD(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:Zo,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 Go||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new Go(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 Wm.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Go)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 Go)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 Go)return n.value;if(!r){if(!this.stackSlot)throw new Wm.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 Go?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=Zo.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Zo.isValidJavaScriptVariableName=function(e){return!Zo.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function PD(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(PD,"strictLookup");Zu.default=Zo;B2.exports=Zu.default});var G2=b((Wu,z2)=>{"use strict";Wu.__esModule=!0;function Sa(e){return e&&e.__esModule?e:{default:e}}o(Sa,"_interopRequireDefault");var OD=ZO(),wD=Sa(OD),$D=$m(),ED=Sa($D),Km=s2(),Ym=l2(),xD=H2(),AD=Sa(xD),CD=Du(),ID=Sa(CD),RD=Sm(),jD=Sa(RD),TD=wD.default.create;function U2(){var e=TD();return e.compile=function(t,r){return Ym.compile(t,r,e)},e.precompile=function(t,r){return Ym.precompile(t,r,e)},e.AST=ED.default,e.Compiler=Ym.Compiler,e.JavaScriptCompiler=AD.default,e.Parser=Km.parser,e.parse=Km.parse,e.parseWithoutProcessing=Km.parseWithoutProcessing,e}o(U2,"create");var Wo=U2();Wo.create=U2;jD.default(Wo);Wo.Visitor=ID.default;Wo.default=Wo;Wu.default=Wo;z2.exports=Wu.default});var Z2=b(Ku=>{"use strict";Ku.__esModule=!0;Ku.print=qD;Ku.PrintVisitor=Ze;function ND(e){return e&&e.__esModule?e:{default:e}}o(ND,"_interopRequireDefault");var kD=Du(),MD=ND(kD);function qD(e){return new Ze().accept(e)}o(qD,"print");function Ze(){this.padding=0}o(Ze,"PrintVisitor");Ze.prototype=new MD.default;Ze.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
73
+ `,t};Ze.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};Ze.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Ze.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Ze.prototype.BlockStatement=Ze.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};Ze.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+" }}")};Ze.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+" }}")};Ze.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Ze.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Ze.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};Ze.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Ze.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Ze.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Ze.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Ze.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Ze.prototype.NullLiteral=function(){return"NULL"};Ze.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(", ")+"}"};Ze.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var qi=b((CZ,Y2)=>{var Yu=G2().default,K2=Z2();Yu.PrintVisitor=K2.PrintVisitor;Yu.print=K2.print;Y2.exports=Yu;function W2(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Yu.compile(n)}o(W2,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=W2,require.extensions[".hbs"]=W2)});var Ra=require("assert");var xw={right:jw,center:Tw},Aw=0,Oa=1,Cw=2,wa=3,tl=class tl{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=xw[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+=ig(t[c],p,"| "),s+=p,s+=ig(t[c],p," |"),f[Oa]&&(s+=" ".repeat(f[Oa])),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(`
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[Aw]||0).fill("")),i.push(...new Array(s.padding[Cw]||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[Oa]||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,Iw(t[c])):a)}};o(tl,"UI");var el=tl;function ig(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}o(ig,"addBorder");function Iw(e){let t=e.padding||[],r=1+(t[wa]||0)+(t[Oa]||0);return e.border?r+4:r}o(Iw,"_minWidth");function Rw(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}o(Rw,"getWindowWidth");function jw(e,t){e=e.trim();let r=Ft.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}o(jw,"alignRight");function Tw(e,t){e=e.trim();let r=Ft.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}o(Tw,"alignCenter");var Ft;function og(e,t){return Ft=t,new el({width:(e==null?void 0:e.width)||Rw(),wrap:e==null?void 0:e.wrap})}o(og,"cliui");var sg=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function rl(e){return e.replace(sg,"")}o(rl,"stripAnsi");function ag(e,t){let[r,n]=e.match(sg)||["",""];e=rl(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(ag,"wrap");function nl(e){return og(e,{stringWidth:o(t=>[...t].length,"stringWidth"),stripAnsi:rl,wrap:ag})}o(nl,"ui");var Fi=require("path"),$a=require("fs");function il(e,t){let r=(0,Fi.resolve)(".",e),n;for((0,$a.statSync)(r).isDirectory()||(r=(0,Fi.dirname)(r));;){if(n=t(r,(0,$a.readdirSync)(r)),n)return(0,Fi.resolve)(r,n);if(r=(0,Fi.dirname)(n=r),n===r)break}}o(il,"default");var Og=require("util"),wg=require("fs"),$g=require("url");var pg=require("util"),Ca=require("path");function Un(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(Un,"camelCase");function Ea(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(Ea,"decamelize");function xa(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(xa,"looksLikeNumber");function cg(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(cg,"tokenizeArgString");var Yt;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Yt||(Yt={}));var Yr,sl=class sl{constructor(t){Yr=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=cg(t),s=typeof t=="string",a=Nw(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),v=n.__||Yr.format,g={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},$=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,A=new RegExp("^--"+c["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(_){let O=typeof _=="object"?_.key:_,T=Object.keys(_).map(function(E){return{boolean:"bools",string:"strings",number:"numbers"}[E]}).filter(Boolean).pop();T&&(g[T][O]=!0),g.arrays[O]=!0,g.keys.push(O)}),[].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(([_,O])=>{typeof O=="number"&&(g.nargs[_]=O,g.keys.push(_))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([_,O])=>{typeof O=="function"&&(g.coercions[_]=O,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(([_,O])=>{(typeof O=="boolean"||typeof O=="function")&&(g.configs[_]=O)})),It(n.key,a,n.default,g.arrays),Object.keys(u).forEach(function(_){(g.aliases[_]||[]).forEach(function(O){u[O]=u[_]})});let C=null;Li();let R=[],I=Object.assign(Object.create(null),{_:[]}),ae={};for(let _=0;_<i.length;_++){let O=i[_],T=O.replace(/^-{3,}/,"---"),E,P,V,q,G,Qe;if(O!=="--"&&/^-/.test(O)&&Ie(O))re(O);else if(T.match(/^---+(=|$)/)){re(O);continue}else if(O.match(/^--.+=/)||!c["short-option-groups"]&&O.match(/^-.+=/))q=O.match(/^--?([^=]+)=([\s\S]*)$/),q!==null&&Array.isArray(q)&&q.length>=3&&(ee(q[1],g.arrays)?_=Oe(_,q[1],i,q[2]):ee(q[1],g.nargs)!==!1?_=$e(_,q[1],i,q[2]):ne(q[1],q[2],!0));else if(O.match(A)&&c["boolean-negation"])q=O.match(A),q!==null&&Array.isArray(q)&&q.length>=2&&(P=q[1],ne(P,ee(P,g.arrays)?[!1]:!1));else if(O.match(/^--.+/)||!c["short-option-groups"]&&O.match(/^-[^-]+/))q=O.match(/^--?(.+)/),q!==null&&Array.isArray(q)&&q.length>=2&&(P=q[1],ee(P,g.arrays)?_=Oe(_,P,i):ee(P,g.nargs)!==!1?_=$e(_,P,i):(G=i[_+1],G!==void 0&&(!G.match(/^-/)||G.match($))&&!ee(P,g.bools)&&!ee(P,g.counts)||/^(true|false)$/.test(G)?(ne(P,G),_++):ne(P,_e(P))));else if(O.match(/^-.\..+=/))q=O.match(/^-([^=]+)=([\s\S]*)$/),q!==null&&Array.isArray(q)&&q.length>=3&&ne(q[1],q[2]);else if(O.match(/^-.\..+/)&&!O.match($))G=i[_+1],q=O.match(/^-(.\..+)/),q!==null&&Array.isArray(q)&&q.length>=2&&(P=q[1],G!==void 0&&!G.match(/^-/)&&!ee(P,g.bools)&&!ee(P,g.counts)?(ne(P,G),_++):ne(P,_e(P)));else if(O.match(/^-[^-]+/)&&!O.match($)){V=O.slice(1,-1).split(""),E=!1;for(let lt=0;lt<V.length;lt++){if(G=O.slice(lt+2),V[lt+1]&&V[lt+1]==="="){Qe=O.slice(lt+3),P=V[lt],ee(P,g.arrays)?_=Oe(_,P,i,Qe):ee(P,g.nargs)!==!1?_=$e(_,P,i,Qe):ne(P,Qe),E=!0;break}if(G==="-"){ne(V[lt],G);continue}if(/[A-Za-z]/.test(V[lt])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(G)&&ee(G,g.bools)===!1){ne(V[lt],G),E=!0;break}if(V[lt+1]&&V[lt+1].match(/\W/)){ne(V[lt],G),E=!0;break}else ne(V[lt],_e(V[lt]))}P=O.slice(-1)[0],!E&&P!=="-"&&(ee(P,g.arrays)?_=Oe(_,P,i):ee(P,g.nargs)!==!1?_=$e(_,P,i):(G=i[_+1],G!==void 0&&(!/^(-|--)[^-]/.test(G)||G.match($))&&!ee(P,g.bools)&&!ee(P,g.counts)||/^(true|false)$/.test(G)?(ne(P,G),_++):ne(P,_e(P))))}else if(O.match(/^-[0-9]$/)&&O.match($)&&ee(O.slice(1),g.bools))P=O.slice(1),ne(P,_e(P));else if(O==="--"){R=i.slice(_+1);break}else if(c["halt-at-non-option"]){R=i.slice(_);break}else re(O)}ge(I,!0),ge(I,!1),Y(I),be(),xe(I,g.aliases,u,!0),Be(I),c["set-placeholder-key"]&&Ir(I),Object.keys(g.counts).forEach(function(_){Kt(I,_.split("."))||ne(_,0)}),f&&R.length&&(I[d]=[]),R.forEach(function(_){I[d].push(_)}),c["camel-case-expansion"]&&c["strip-dashed"]&&Object.keys(I).filter(_=>_!=="--"&&_.includes("-")).forEach(_=>{delete I[_]}),c["strip-aliased"]&&[].concat(...Object.keys(a).map(_=>a[_])).forEach(_=>{c["camel-case-expansion"]&&_.includes("-")&&delete I[_.split(".").map(O=>Un(O)).join(".")],delete I[_]});function re(_){let O=M("_",_);(typeof O=="string"||typeof O=="number")&&I._.push(O)}o(re,"pushPositional");function $e(_,O,T,E){let P,V=ee(O,g.nargs);if(V=typeof V!="number"||isNaN(V)?1:V,V===0)return Rt(E)||(C=Error(v("Argument unexpected for: %s",O))),ne(O,_e(O)),_;let q=Rt(E)?0:1;if(c["nargs-eats-options"])T.length-(_+1)+q<V&&(C=Error(v("Not enough arguments following: %s",O))),q=V;else{for(P=_+1;P<T.length&&(!T[P].match(/^-[^0-9]/)||T[P].match($)||Ie(T[P]));P++)q++;q<V&&(C=Error(v("Not enough arguments following: %s",O)))}let G=Math.min(q,V);for(!Rt(E)&&G>0&&(ne(O,E),G--),P=_+1;P<G+_+1;P++)ne(O,T[P]);return _+G}o($e,"eatNargs");function Oe(_,O,T,E){let P=[],V=E||T[_+1],q=ee(O,g.nargs);if(ee(O,g.bools)&&!/^(true|false)$/.test(V))P.push(!0);else if(Rt(V)||Rt(E)&&/^-/.test(V)&&!$.test(V)&&!Ie(V)){if(u[O]!==void 0){let G=u[O];P=Array.isArray(G)?G:[G]}}else{Rt(E)||P.push(j(O,E,!0));for(let G=_+1;G<T.length&&!(!c["greedy-arrays"]&&P.length>0||q&&typeof q=="number"&&P.length>=q||(V=T[G],/^-/.test(V)&&!$.test(V)&&!Ie(V)));G++)_=G,P.push(j(O,V,s))}return typeof q=="number"&&(q&&P.length<q||isNaN(q)&&P.length===0)&&(C=Error(v("Not enough arguments following: %s",O))),ne(O,P),_}o(Oe,"eatArray");function ne(_,O,T=s){if(/-/.test(_)&&c["camel-case-expansion"]){let V=_.split(".").map(function(q){return Un(q)}).join(".");k(_,V)}let E=j(_,O,T),P=_.split(".");K(I,P,E),g.aliases[_]&&g.aliases[_].forEach(function(V){let q=V.split(".");K(I,q,E)}),P.length>1&&c["dot-notation"]&&(g.aliases[P[0]]||[]).forEach(function(V){let q=V.split("."),G=[].concat(P);G.shift(),q=q.concat(G),(g.aliases[_]||[]).includes(q.join("."))||K(I,q,E)}),ee(_,g.normalize)&&!ee(_,g.arrays)&&[_].concat(g.aliases[_]||[]).forEach(function(q){Object.defineProperty(ae,q,{enumerable:!0,get(){return O},set(G){O=typeof G=="string"?Yr.normalize(G):G}})})}o(ne,"setArg");function k(_,O){g.aliases[_]&&g.aliases[_].length||(g.aliases[_]=[O],h[O]=!0),g.aliases[O]&&g.aliases[O].length||k(O,_)}o(k,"addNewAlias");function j(_,O,T){T&&(O=kw(O)),(ee(_,g.bools)||ee(_,g.counts))&&typeof O=="string"&&(O=O==="true");let E=Array.isArray(O)?O.map(function(P){return M(_,P)}):M(_,O);return ee(_,g.counts)&&(Rt(E)||typeof E=="boolean")&&(E=ol()),ee(_,g.normalize)&&ee(_,g.arrays)&&(Array.isArray(O)?E=O.map(P=>Yr.normalize(P)):E=Yr.normalize(O)),E}o(j,"processValue");function M(_,O){return!c["parse-positional-numbers"]&&_==="_"||!ee(_,g.strings)&&!ee(_,g.bools)&&!Array.isArray(O)&&(xa(O)&&c["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${O}`)))||!Rt(O)&&ee(_,g.numbers))&&(O=Number(O)),O}o(M,"maybeCoerceNumber");function Y(_){let O=Object.create(null);xe(O,g.aliases,u),Object.keys(g.configs).forEach(function(T){let E=_[T]||O[T];if(E)try{let P=null,V=Yr.resolve(Yr.cwd(),E),q=g.configs[T];if(typeof q=="function"){try{P=q(V)}catch(G){P=G}if(P instanceof Error){C=P;return}}else P=Yr.require(V);ue(P)}catch(P){P.name==="PermissionDenied"?C=P:_[T]&&(C=Error(v("Invalid JSON config file: %s",E)))}})}o(Y,"setConfig");function ue(_,O){Object.keys(_).forEach(function(T){let E=_[T],P=O?O+"."+T:T;typeof E=="object"&&E!==null&&!Array.isArray(E)&&c["dot-notation"]?ue(E,P):(!Kt(I,P.split("."))||ee(P,g.arrays)&&c["combine-arrays"])&&ne(P,E)})}o(ue,"setConfigObject");function be(){typeof l<"u"&&l.forEach(function(_){ue(_)})}o(be,"setConfigObjects");function ge(_,O){if(typeof p>"u")return;let T=typeof p=="string"?p:"",E=Yr.env();Object.keys(E).forEach(function(P){if(T===""||P.lastIndexOf(T,0)===0){let V=P.split("__").map(function(q,G){return G===0&&(q=q.substring(T.length)),Un(q)});(O&&g.configs[V.join(".")]||!O)&&!Kt(_,V)&&ne(V.join("."),E[P])}})}o(ge,"applyEnvVars");function Be(_){let O,T=new Set;Object.keys(_).forEach(function(E){if(!T.has(E)&&(O=ee(E,g.coercions),typeof O=="function"))try{let P=M(E,O(_[E]));[].concat(g.aliases[E]||[],E).forEach(V=>{T.add(V),_[V]=P})}catch(P){C=P}})}o(Be,"applyCoercions");function Ir(_){return g.keys.forEach(O=>{~O.indexOf(".")||typeof _[O]>"u"&&(_[O]=void 0)}),_}o(Ir,"setPlaceholderKeys");function xe(_,O,T,E=!1){Object.keys(T).forEach(function(P){Kt(_,P.split("."))||(K(_,P.split("."),T[P]),E&&(y[P]=!0),(O[P]||[]).forEach(function(V){Kt(_,V.split("."))||K(_,V.split("."),T[P])}))})}o(xe,"applyDefaultsAndAliases");function Kt(_,O){let T=_;c["dot-notation"]||(O=[O.join(".")]),O.slice(0,-1).forEach(function(P){T=T[P]||{}});let E=O[O.length-1];return typeof T!="object"?!1:E in T}o(Kt,"hasKey");function K(_,O,T){let E=_;c["dot-notation"]||(O=[O.join(".")]),O.slice(0,-1).forEach(function(Qe){Qe=ug(Qe),typeof E=="object"&&E[Qe]===void 0&&(E[Qe]={}),typeof E[Qe]!="object"||Array.isArray(E[Qe])?(Array.isArray(E[Qe])?E[Qe].push({}):E[Qe]=[E[Qe],{}],E=E[Qe][E[Qe].length-1]):E=E[Qe]});let P=ug(O[O.length-1]),V=ee(O.join("."),g.arrays),q=Array.isArray(T),G=c["duplicate-arguments-array"];!G&&ee(P,g.nargs)&&(G=!0,(!Rt(E[P])&&g.nargs[P]===1||Array.isArray(E[P])&&E[P].length===g.nargs[P])&&(E[P]=void 0)),T===ol()?E[P]=ol(E[P]):Array.isArray(E[P])?G&&V&&q?E[P]=c["flatten-duplicate-arrays"]?E[P].concat(T):(Array.isArray(E[P][0])?E[P]:[E[P]]).concat([T]):!G&&!!V==!!q?E[P]=T:E[P]=E[P].concat([T]):E[P]===void 0&&V?E[P]=q?T:[T]:G&&!(E[P]===void 0||ee(P,g.counts)||ee(P,g.bools))?E[P]=[E[P],T]:E[P]=T}o(K,"setKey");function It(..._){_.forEach(function(O){Object.keys(O||{}).forEach(function(T){g.aliases[T]||(g.aliases[T]=[].concat(a[T]||[]),g.aliases[T].concat(T).forEach(function(E){if(/-/.test(E)&&c["camel-case-expansion"]){let P=Un(E);P!==T&&g.aliases[T].indexOf(P)===-1&&(g.aliases[T].push(P),h[P]=!0)}}),g.aliases[T].concat(T).forEach(function(E){if(E.length>1&&/[A-Z]/.test(E)&&c["camel-case-expansion"]){let P=Ea(E,"-");P!==T&&g.aliases[T].indexOf(P)===-1&&(g.aliases[T].push(P),h[P]=!0)}}),g.aliases[T].forEach(function(E){g.aliases[E]=[T].concat(g.aliases[T].filter(function(P){return E!==P}))}))})})}o(It,"extendAliases");function ee(_,O){let T=[].concat(g.aliases[_]||[],_),E=Object.keys(O),P=T.find(V=>E.includes(V));return P?O[P]:!1}o(ee,"checkAllAliases");function Ce(_){let O=Object.keys(g);return[].concat(O.map(E=>g[E])).some(function(E){return Array.isArray(E)?E.includes(_):E[_]})}o(Ce,"hasAnyFlag");function Q(_,...O){return[].concat(...O).some(function(E){let P=_.match(E);return P&&Ce(P[1])})}o(Q,"hasFlagsMatching");function Ae(_){if(_.match($)||!_.match(/^-[^-]+/))return!1;let O=!0,T,E=_.slice(1).split("");for(let P=0;P<E.length;P++){if(T=_.slice(P+2),!Ce(E[P])){O=!1;break}if(E[P+1]&&E[P+1]==="="||T==="-"||/[A-Za-z]/.test(E[P])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(T)||E[P+1]&&E[P+1].match(/\W/))break}return O}o(Ae,"hasAllShortFlags");function Ie(_){return c["unknown-options-as-args"]&&pe(_)}o(Ie,"isUnknownOptionAsArg");function pe(_){return _=_.replace(/^-{3,}/,"--"),_.match($)||Ae(_)?!1:!Q(_,/^-+([^=]+?)=[\s\S]*$/,A,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}o(pe,"isUnknownOption");function _e(_){return!ee(_,g.bools)&&!ee(_,g.counts)&&`${_}`in u?u[_]:qe(ot(_))}o(_e,"defaultValue");function qe(_){return{[Yt.BOOLEAN]:!0,[Yt.STRING]:"",[Yt.NUMBER]:void 0,[Yt.ARRAY]:[]}[_]}o(qe,"defaultForType");function ot(_){let O=Yt.BOOLEAN;return ee(_,g.strings)?O=Yt.STRING:ee(_,g.numbers)?O=Yt.NUMBER:ee(_,g.bools)?O=Yt.BOOLEAN:ee(_,g.arrays)&&(O=Yt.ARRAY),O}o(ot,"guessType");function Rt(_){return _===void 0}o(Rt,"isUndefined");function Li(){Object.keys(g.counts).find(_=>ee(_,g.arrays)?(C=Error(v("Invalid configuration: %s, opts.count excludes opts.array.",_)),!0):ee(_,g.nargs)?(C=Error(v("Invalid configuration: %s, opts.count excludes opts.narg.",_)),!0):!1)}return o(Li,"checkConfiguration"),{aliases:Object.assign({},g.aliases),argv:Object.assign(ae,I),configuration:c,defaulted:Object.assign({},y),error:C,newAliases:Object.assign({},h)}}};o(sl,"YargsParser");var Aa=sl;function Nw(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(Nw,"combineAliases");function ol(e){return e!==void 0?e+1:1}o(ol,"increment");function ug(e){return e==="__proto__"?"___proto___":e}o(ug,"sanitizeKey");function kw(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}o(kw,"stripQuotes");var dg=require("fs");var al,cl,ul,lg=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,fg=(cl=(al=process==null?void 0:process.versions)===null||al===void 0?void 0:al.node)!==null&&cl!==void 0?cl:(ul=process==null?void 0:process.version)===null||ul===void 0?void 0:ul.slice(1);if(fg&&Number(fg.match(/^([^.]+)/)[1])<lg)throw Error(`yargs parser supports a minimum Node.js version of ${lg}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Mw=process?process.env:{},hg=new Aa({cwd:process.cwd,env:o(()=>Mw,"env"),format:pg.format,normalize:Ca.normalize,resolve:Ca.resolve,require:o(e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,dg.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")},"require")}),Xo=o(function(t,r){return hg.parse(t.slice(),r).argv},"Parser");Xo.detailed=function(e,t){return hg.parse(e.slice(),t)};Xo.camelCase=Un;Xo.decamelize=Ea;Xo.looksLikeNumber=xa;var ll=Xo;var dr=require("path");function mg(){return qw()?0:1}o(mg,"getProcessArgvBinIndex");function qw(){return Dw()&&!process.defaultApp}o(qw,"isBundledElectronApp");function Dw(){return!!process.versions.electron}o(Dw,"isElectronApp");function fl(e){return e.slice(mg()+1)}o(fl,"hideBin");function gg(){return process.argv[mg()]}o(gg,"getProcessArgvBin");var Ia=class Ia extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,Ia)}};o(Ia,"YError");var je=Ia;var Vi=require("fs"),yg=require("util"),vg=require("path");var bg={fs:{readFileSync:Vi.readFileSync,writeFile:Vi.writeFile},format:yg.format,resolve:vg.resolve,exists:o(e=>{try{return(0,Vi.statSync)(e).isFile()}catch{return!1}},"exists")};var pr,dl=class dl{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(),pr.format.apply(pr.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),pr.format.apply(pr.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);pr.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{pr.fs.readFileSync&&(t=JSON.parse(pr.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=pr.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=pr.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return pr.exists(t)}};o(dl,"Y18N");var pl=dl;function _g(e,t){pr=t;let r=new pl(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(_g,"y18n");var Lw=o(e=>_g(e,bg),"y18n"),Sg=Lw;var Bw={};var Fw="require is not supported by ESM",Pg="loading a directory of commands is not supported yet for ESM",es;try{es=(0,$g.fileURLToPath)(Bw.url)}catch{es=process.cwd()}var Vw=es.substring(0,es.lastIndexOf("node_modules")),hl={assert:{notStrictEqual:Ra.notStrictEqual,strictEqual:Ra.strictEqual},cliui:nl,findUp:il,getEnv:o(e=>process.env[e],"getEnv"),inspect:Og.inspect,getCallerFile:o(()=>{throw new je(Pg)},"getCallerFile"),getProcessArgvBin:gg,mainFilename:Vw||process.cwd(),Parser:ll,path:{basename:dr.basename,dirname:dr.dirname,extname:dr.extname,relative:dr.relative,resolve:dr.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:wg.readFileSync,require:o(()=>{throw new je(Fw)},"require"),requireDirectory:o(()=>{throw new je(Pg)},"requireDirectory"),stringWidth:o(e=>[...e].length,"stringWidth"),y18n:Sg({directory:(0,dr.resolve)(es,"../../../locales"),updateFiles:!1})};function wt(e,t,r,n){r.assert.notStrictEqual(e,t,n)}o(wt,"assertNotStrictEqual");function ml(e,t){t.assert.strictEqual(typeof e,"string")}o(ml,"assertSingleKey");function Bi(e){return Object.keys(e)}o(Bi,"objectKeys");function Te(e){return!!e&&!!e.then&&typeof e.then=="function"}o(Te,"isPromise");function cn(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(cn,"parseCommand");var Hw=["first","second","third","fourth","fifth","sixth"];function F(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[cn(`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 je(`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 je(`Too many arguments provided. Expected max ${p} but received ${l}.`);s.demanded.forEach(f=>{let d=u.shift(),h=Eg(d);f.cmd.filter(v=>v===h||v==="*").length===0&&xg(h,f.cmd,i),i+=1}),s.optional.forEach(f=>{if(u.length===0)return;let d=u.shift(),h=Eg(d);f.cmd.filter(v=>v===h||v==="*").length===0&&xg(h,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}o(F,"argsert");function Eg(e){return Array.isArray(e)?"array":e===null?"null":typeof e}o(Eg,"guessType");function xg(e,t,r){throw new je(`Invalid ${Hw[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}o(xg,"argumentTypeError");var gl=class gl{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(gl,"GlobalMiddleware");var ja=gl;function Ag(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}o(Ag,"commandMiddlewareFactory");function zn(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(Te(i))return i.then(a=>Promise.all([a,s(a,t)])).then(([a,c])=>Object.assign(a,c));{let a=s(i,t);return Te(a)?a.then(c=>Object.assign(i,c)):Object.assign(i,a)}},e)}o(zn,"applyMiddleware");function Gn(e,t,r=n=>{throw n}){try{let n=Uw(e)?e():e;return Te(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}o(Gn,"maybeAsyncResult");function Uw(e){return typeof e=="function"}o(Uw,"isFunction");function yl(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(yl,"whichModule");var Hi=/(^\*)|(^\$0)/,bl=class bl{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=Ag(s);if(i=i||(()=>{}),Array.isArray(t))if(zw(t))[t,...c]=t;else for(let l of t)this.addHandler(l);else if(Zw(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(Cg(n)){this.addHandler([t].concat(c),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=cn(t);c=c.map(d=>cn(d).cmd);let p=!1,f=[l.cmd].concat(c).filter(d=>Hi.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(Hi,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 Te(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(Ta(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),u);if(Te(f))return f.then(d=>(p=Rg(d)?d:n,this.parseAndUpdateUsage(t,r,p,s,a,c)))}else Gw(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 Te(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=Hi.test(r.original)?r.original.replace(Hi,"").trim():r.original,i=t.filter(s=>!Hi.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=Gn(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=zn(n,a,c,!1),n=Gn(n,p=>{let f=r.handler(p);return Te(f)?f.then(()=>p):p}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),Te(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=zn(n,c,l,!0);return Te(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=cn(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=Hi.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(Ta(r))return r(t,!0);Cg(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=yl(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;wt(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();wt(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(bl,"CommandInstance");var vl=bl;function Ig(e,t,r,n){return new vl(e,t,r,n)}o(Ig,"command");function Cg(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}o(Cg,"isCommandBuilderDefinition");function zw(e){return e.every(t=>typeof t=="string")}o(zw,"isCommandAndAliases");function Ta(e){return typeof e=="function"}o(Ta,"isCommandBuilderCallback");function Gw(e){return typeof e=="object"}o(Gw,"isCommandBuilderOptionDefinitions");function Zw(e){return typeof e=="object"&&!Array.isArray(e)}o(Zw,"isCommandHandlerDefinition");function un(e={},t=()=>!0){let r={};return Bi(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}o(un,"objFilter");function ln(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(ln,"setBlocking");function Ww(e){return typeof e=="boolean"}o(Ww,"isBoolean");function Tg(e,t){let r=t.y18n.__,n={},i=[];n.failFn=o(function(j){i.push(j)},"failFn");let s=null,a=null,c=!0;n.showHelpOnFail=o(function(j=!0,M){let[Y,ue]=typeof j=="string"?[!0,j]:[j,M];return e.getInternalMethods().isGlobalContext()&&(a=ue),s=ue,c=Y,n},"showHelpOnFailFn");let u=!1;n.fail=o(function(j,M){let Y=e.getInternalMethods().getLoggerInstance();if(i.length)for(let ue=i.length-1;ue>=0;--ue){let be=i[ue];if(Ww(be)){if(M)throw M;if(j)throw Error(j)}else be(j,M,n)}else{if(e.getExitProcess()&&ln(!0),!u){u=!0,c&&(e.showHelp("error"),Y.error()),(j||M)&&Y.error(j||M);let ue=s||a;ue&&((j||M)&&Y.error(""),Y.error(ue))}if(M=M||new je(j),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,M);throw M}},"fail");let l=[],p=!1;n.usage=(k,j)=>k===null?(p=!0,l=[],n):(p=!1,l.push([k,j||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>p,n.getPositionalGroupName=()=>r("Positionals:");let f=[];n.example=(k,j)=>{f.push([k,j||""])};let d=[];n.command=o(function(j,M,Y,ue,be=!1){Y&&(d=d.map(ge=>(ge[2]=!1,ge))),d.push([j,M||"",Y,ue,be])},"command"),n.getCommands=()=>d;let h={};n.describe=o(function(j,M){Array.isArray(j)?j.forEach(Y=>{n.describe(Y,M)}):typeof j=="object"?Object.keys(j).forEach(Y=>{n.describe(Y,j[Y])}):h[j]=M},"describe"),n.getDescriptions=()=>h;let y=[];n.epilog=k=>{y.push(k)};let v=!1,g;n.wrap=k=>{v=!0,g=k},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(v||(g=$e(),v=!0),g);let $="__yargsString__:";n.deferY18nLookup=k=>$+k,n.help=o(function(){if(R)return R;C();let j=e.customScriptName?e.$0:t.path.basename(e.$0),M=e.getDemandedOptions(),Y=e.getDemandedCommands(),ue=e.getDeprecatedOptions(),be=e.getGroups(),ge=e.getOptions(),Be=[];Be=Be.concat(Object.keys(h)),Be=Be.concat(Object.keys(M)),Be=Be.concat(Object.keys(Y)),Be=Be.concat(Object.keys(ge.default)),Be=Be.filter(ae),Be=Object.keys(Be.reduce((Q,Ae)=>(Ae!=="_"&&(Q[Ae]=!0),Q),{}));let Ir=n.getWrap(),xe=t.cliui({width:Ir,wrap:!!Ir});if(!p){if(l.length)l.forEach(Q=>{xe.div({text:`${Q[0].replace(/\$0/g,j)}`}),Q[1]&&xe.div({text:`${Q[1]}`,padding:[1,0,0,0]})}),xe.div();else if(d.length){let Q=null;Y._?Q=`${j} <${r("command")}>
79
+ `:Q=`${j} [${r("command")}]
80
+ `,xe.div(`${Q}`)}}if(d.length>1||d.length===1&&!d[0][2]){xe.div(r("Commands:"));let Q=e.getInternalMethods().getContext(),Ae=Q.commands.length?`${Q.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(d=d.sort((pe,_e)=>pe[0].localeCompare(_e[0])));let Ie=j?`${j} `:"";d.forEach(pe=>{let _e=`${Ie}${Ae}${pe[0].replace(/^\$0 ?/,"")}`;xe.span({text:_e,padding:[0,2,0,2],width:A(d,Ir,`${j}${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?xe.div({text:qe.join(" "),padding:[0,0,0,2],align:"right"}):xe.div()}),xe.div()}let Kt=(Object.keys(ge.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);Be=Be.filter(Q=>!e.parsed.newAliases[Q]&&Kt.every(Ae=>(ge.alias[Ae]||[]).indexOf(Q)===-1));let K=r("Options:");be[K]||(be[K]=[]),I(Be,ge.alias,be,K);let It=o(Q=>/^--/.test(Na(Q)),"isLongSwitch"),ee=Object.keys(be).filter(Q=>be[Q].length>0).map(Q=>{let Ae=be[Q].filter(ae).map(Ie=>{if(Kt.includes(Ie))return Ie;for(let pe=0,_e;(_e=Kt[pe])!==void 0;pe++)if((ge.alias[_e]||[]).includes(Ie))return _e;return Ie});return{groupName:Q,normalizedKeys:Ae}}).filter(({normalizedKeys:Q})=>Q.length>0).map(({groupName:Q,normalizedKeys:Ae})=>{let Ie=Ae.reduce((pe,_e)=>(pe[_e]=[_e].concat(ge.alias[_e]||[]).map(qe=>Q===n.getPositionalGroupName()?qe:(/^[0-9]$/.test(qe)?ge.boolean.includes(_e)?"-":"--":qe.length>1?"--":"-")+qe).sort((qe,ot)=>It(qe)===It(ot)?0:It(qe)?1:-1).join(", "),pe),{});return{groupName:Q,normalizedKeys:Ae,switches:Ie}});if(ee.filter(({groupName:Q})=>Q!==n.getPositionalGroupName()).some(({normalizedKeys:Q,switches:Ae})=>!Q.every(Ie=>It(Ae[Ie])))&&ee.filter(({groupName:Q})=>Q!==n.getPositionalGroupName()).forEach(({normalizedKeys:Q,switches:Ae})=>{Q.forEach(Ie=>{It(Ae[Ie])&&(Ae[Ie]=Kw(Ae[Ie],4))})}),ee.forEach(({groupName:Q,normalizedKeys:Ae,switches:Ie})=>{xe.div(Q),Ae.forEach(pe=>{let _e=Ie[pe],qe=h[pe]||"",ot=null;qe.includes($)&&(qe=r(qe.substring($.length))),ge.boolean.includes(pe)&&(ot=`[${r("boolean")}]`),ge.count.includes(pe)&&(ot=`[${r("count")}]`),ge.string.includes(pe)&&(ot=`[${r("string")}]`),ge.normalize.includes(pe)&&(ot=`[${r("string")}]`),ge.array.includes(pe)&&(ot=`[${r("array")}]`),ge.number.includes(pe)&&(ot=`[${r("number")}]`);let Rt=o(O=>typeof O=="string"?`[${r("deprecated: %s",O)}]`:`[${r("deprecated")}]`,"deprecatedExtra"),Li=[pe in ue?Rt(ue[pe]):null,ot,pe in M?`[${r("required")}]`:null,ge.choices&&ge.choices[pe]?`[${r("choices:")} ${n.stringifiedValues(ge.choices[pe])}]`:null,re(ge.default[pe],ge.defaultDescription[pe])].filter(Boolean).join(" ");xe.span({text:Na(_e),padding:[0,2,0,2+jg(_e)],width:A(Ie,Ir)+4},qe);let _=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;Li&&!_?xe.div({text:Li,padding:[0,0,0,2],align:"right"}):xe.div()}),xe.div()}),f.length&&(xe.div(r("Examples:")),f.forEach(Q=>{Q[0]=Q[0].replace(/\$0/g,j)}),f.forEach(Q=>{Q[1]===""?xe.div({text:Q[0],padding:[0,2,0,2]}):xe.div({text:Q[0],padding:[0,2,0,2],width:A(f,Ir)+4},{text:Q[1]})}),xe.div()),y.length>0){let Q=y.map(Ae=>Ae.replace(/\$0/g,j)).join(`
81
+ `);xe.div(`${Q}
82
+ `)}return xe.toString().replace(/\s*$/,"")},"help");function A(k,j,M){let Y=0;return Array.isArray(k)||(k=Object.values(k).map(ue=>[ue])),k.forEach(ue=>{Y=Math.max(t.stringWidth(M?`${M} ${Na(ue[0])}`:Na(ue[0]))+jg(ue[0]),Y)}),j&&(Y=Math.min(Y,parseInt((j*.5).toString(),10))),Y}o(A,"maxWidth");function C(){let k=e.getDemandedOptions(),j=e.getOptions();(Object.keys(j.alias)||[]).forEach(M=>{j.alias[M].forEach(Y=>{h[Y]&&n.describe(M,h[Y]),Y in k&&e.demandOption(M,k[Y]),j.boolean.includes(Y)&&e.boolean(M),j.count.includes(Y)&&e.count(M),j.string.includes(Y)&&e.string(M),j.normalize.includes(Y)&&e.normalize(M),j.array.includes(Y)&&e.array(M),j.number.includes(Y)&&e.number(M)})})}o(C,"normalizeAliases");let R;n.cacheHelpMessage=function(){R=this.help()},n.clearCachedHelpMessage=function(){R=void 0},n.hasCachedHelpMessage=function(){return!!R};function I(k,j,M,Y){let ue=[],be=null;return Object.keys(M).forEach(ge=>{ue=ue.concat(M[ge])}),k.forEach(ge=>{be=[ge].concat(j[ge]),be.some(Be=>ue.indexOf(Be)!==-1)||M[Y].push(ge)}),ue}o(I,"addUngroupedKeys");function ae(k){return e.getOptions().hiddenOptions.indexOf(k)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}o(ae,"filterHiddenOptions"),n.showHelp=k=>{let j=e.getInternalMethods().getLoggerInstance();k||(k="error"),(typeof k=="function"?k:j[k])(n.help())},n.functionDescription=k=>["(",k.name?t.Parser.decamelize(k.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=o(function(j,M){let Y="",ue=M||", ",be=[].concat(j);return!j||!be.length||be.forEach(ge=>{Y.length&&(Y+=ue),Y+=JSON.stringify(ge)}),Y},"stringifiedValues");function re(k,j){let M=`[${r("default:")} `;if(k===void 0&&!j)return null;if(j)M+=j;else switch(typeof k){case"string":M+=`"${k}"`;break;case"object":M+=JSON.stringify(k);break;default:M+=k}return`${M}]`}o(re,"defaultString");function $e(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}o($e,"windowWidth");let Oe=null;n.version=k=>{Oe=k},n.showVersion=k=>{let j=e.getInternalMethods().getLoggerInstance();k||(k="error"),(typeof k=="function"?k:j[k])(Oe)},n.reset=o(function(j){return s=null,u=!1,l=[],p=!1,y=[],f=[],d=[],h=un(h,M=>!j[M]),n},"reset");let ne=[];return n.freeze=o(function(){ne.push({failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h})},"freeze"),n.unfreeze=o(function(j=!1){let M=ne.pop();M&&(j?(h={...M.descriptions,...h},d=[...M.commands,...d],l=[...M.usages,...l],f=[...M.examples,...f],y=[...M.epilogs,...y]):{failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h}=M)},"unfreeze"),n}o(Tg,"usage");function _l(e){return typeof e=="object"}o(_l,"isIndentedText");function Kw(e,t){return _l(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}o(Kw,"addIndentation");function jg(e){return _l(e)?e.indentation:0}o(jg,"getIndentation");function Na(e){return _l(e)?e.text:e}o(Na,"getText");var Ng=`###-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
- `,xg=`#compdef {{app_name}}
110
+ `,kg=`#compdef {{app_name}}
111
111
  ###-begin-{{app_name}}-completions-###
112
112
  #
113
113
  # yargs command completion script
@@ -126,26 +126,28 @@ _{{app_name}}_yargs_completions()
126
126
  }
127
127
  compdef _{{app_name}}_yargs_completions {{app_name}}
128
128
  ###-end-{{app_name}}-completions-###
129
- `;var dl=class dl{constructor(t,r,n,i){var o,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=((o=this.shim.getEnv("SHELL"))===null||o===void 0?void 0:o.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 o=this.command.getCommandHandlers();for(let c=0,u=t.length;c<u;++c)if(o[t[c]]&&o[t[c]].builder){let l=o[t[c]].builder;if(Ca(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(o=>{let a=sn(o[0]).cmd;if(r.indexOf(a)===-1)if(!this.zshShell)t.push(a);else{let c=o[1]||"";t.push(a.replace(/:/g,"\\:")+":"+c)}})}optionCompletions(t,r,n,i){if((i.match(/^-/)||i===""&&t.length===0)&&!this.previousArgHasChoices(r)){let o=this.yargs.getOptions(),a=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(o.key).forEach(c=>{let u=!!o.configuration["boolean-negation"]&&o.boolean.includes(c);!a.includes(c)&&!o.hiddenOptions.includes(c)&&!this.argsContainKey(r,c,u)&&this.completeOptionKey(c,t,i,u&&!!o.default[c])})}}choicesFromOptionsCompletions(t,r,n,i){if(this.previousArgHasChoices(r)){let o=this.getPreviousArgChoices(r);o&&o.length>0&&t.push(...o.map(a=>a.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(t,r,n,i){if(i===""&&t.length>0&&this.previousArgHasChoices(r))return;let o=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],a=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),c=o[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(/^-+/,""),o=this.yargs.getOptions(),a=[i,...this.yargs.getAliases()[i]||[]],c;for(let u of a)if(Object.prototype.hasOwnProperty.call(o.key,u)&&Array.isArray(o.choices[u])){c=o.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=s(o=>t.indexOf((/^[^0-9]$/.test(o)?"-":"--")+o)!==-1,"argsContains");if(i(r)||n&&i(`no-${r}`))return!0;if(this.aliases){for(let o of this.aliases[r])if(i(o))return!0}return!1}completeOptionKey(t,r,n,i){var o,a,c,u;let l=t;if(this.zshShell){let h=this.usage.getDescriptions(),y=(a=(o=this===null||this===void 0?void 0:this.aliases)===null||o===void 0?void 0:o[t])===null||a===void 0?void 0:a.find(w=>{let A=h[w];return typeof A=="string"&&A.length>0}),v=y?h[y]:void 0,g=(u=(c=h[t])!==null&&c!==void 0?c:v)!==null&&u!==void 0?u:"";l=`${t.replace(/:/g,"\\:")}:${g.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let p=s(h=>/^--/.test(h),"startsByTwoDashes"),f=s(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(St(this.customCompletionFunction,null,this.shim),kw(this.customCompletionFunction)){let o=this.customCompletionFunction(n,r);return Re(o)?o.then(a=>{this.shim.process.nextTick(()=>{i(null,a)})}).catch(a=>{this.shim.process.nextTick(()=>{i(a,void 0)})}):i(null,o)}else return Mw(this.customCompletionFunction)?this.customCompletionFunction(n,r,(o=i)=>this.defaultCompletion(t,r,n,o),o=>{i(null,o)}):this.customCompletionFunction(n,r,o=>{i(null,o)})}getCompletion(t,r){let n=t.length?t[t.length-1]:"",i=this.yargs.parse(t,!0),o=this.customCompletionFunction?a=>this.customCompletion(t,a,n,r):a=>this.defaultCompletion(t,a,n,r);return Re(i)?i.then(o):o(i)}generateCompletionScript(t,r){let n=this.zshShell?xg:Eg,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}};s(dl,"Completion");var pl=dl;function Ag(e,t,r,n){return new pl(e,t,r,n)}s(Ag,"completion");function kw(e){return e.length<3}s(kw,"isSyncCompletionFunction");function Mw(e){return e.length>3}s(Mw,"isFallbackCompletionFunction");function Cg(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]}s(Cg,"levenshtein");var Ig=["$0","--","_"];function jg(e,t,r){let n=r.y18n.__,i=r.y18n.__n,o={};o.nonOptionCount=s(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"),o.positionalCount=s(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"),o.requiredArguments=s(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 w=h[g];w&&y.indexOf(w)<0&&y.push(w)}let v=y.length?`
129
+ `;var Pl=class Pl{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(Ta(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=cn(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($=>{let A=h[$];return typeof A=="string"&&A.length>0}),v=y?h[y]:void 0,g=(u=(c=h[t])!==null&&c!==void 0?c:v)!==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(wt(this.customCompletionFunction,null,this.shim),Jw(this.customCompletionFunction)){let s=this.customCompletionFunction(n,r);return Te(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 Qw(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 Te(i)?i.then(s):s(i)}generateCompletionScript(t,r){let n=this.zshShell?kg:Ng,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(Pl,"Completion");var Sl=Pl;function Mg(e,t,r,n){return new Sl(e,t,r,n)}o(Mg,"completion");function Jw(e){return e.length<3}o(Jw,"isSyncCompletionFunction");function Qw(e){return e.length>3}o(Qw,"isFallbackCompletionFunction");function qg(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(qg,"levenshtein");var Dg=["$0","--","_"];function Lg(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 $=h[g];$&&y.indexOf($)<0&&y.push($)}let v=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(", ")+v))}},"requiredArguments"),o.unknownArguments=s(function(f,d,h,y,v=!0){var g;let w=e.getInternalMethods().getCommandInstance().getCommands(),A=[],I=e.getInternalMethods().getContext();if(Object.keys(f).forEach(R=>{!Ig.includes(R)&&!Object.prototype.hasOwnProperty.call(h,R)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),R)&&!o.isValidAndSomeAliasIsNotNew(R,d)&&A.push(R)}),v&&(I.commands.length>0||w.length>0||y)&&f._.slice(I.commands.length).forEach(R=>{w.includes(""+R)||A.push(""+R)}),v){let C=((g=e.getDemandedCommands()._)===null||g===void 0?void 0:g.max)||0,ae=I.commands.length+C;ae<f._.length&&f._.slice(ae).forEach(ce=>{ce=String(ce),!I.commands.includes(ce)&&!A.includes(ce)&&A.push(ce)})}A.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",A.length,A.map(R=>R.trim()?R:`"${R}"`).join(", ")))},"unknownArguments"),o.unknownCommands=s(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(v=>{d.includes(""+v)||h.push(""+v)}),h.length>0?(t.fail(i("Unknown command: %s","Unknown commands: %s",h.length,h.join(", "))),!0):!1},"unknownCommands"),o.isValidAndSomeAliasIsNotNew=s(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"),o.limitedChoices=s(function(f){let d=e.getOptions(),h={};if(!Object.keys(d.choices).length)return;Object.keys(f).forEach(g=>{Ig.indexOf(g)===-1&&Object.prototype.hasOwnProperty.call(d.choices,g)&&[].concat(f[g]).forEach(w=>{d.choices[g].indexOf(w)===-1&&w!==void 0&&(h[g]=(h[g]||[]).concat(w))})});let y=Object.keys(h);if(!y.length)return;let v=n("Invalid values:");y.forEach(g=>{v+=`
132
- ${n("Argument: %s, Given: %s, Choices: %s",g,t.stringifiedValues(h[g]),t.stringifiedValues(d.choices[g]))}`}),t.fail(v)},"limitedChoices");let a={};o.implies=s(function(f,d){F("<string|object> [array|number|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{o.implies(h,f[h])}):(e.global(f),a[f]||(a[f]=[]),Array.isArray(d)?d.forEach(h=>o.implies(f,h)):(St(d,void 0,r),a[f].push(d)))},"implies"),o.getImplied=s(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}s(c,"keyExists"),o.implications=s(function(f){let d=[];if(Object.keys(a).forEach(h=>{let y=h;(a[h]||[]).forEach(v=>{let g=y,w=v;g=c(f,g),v=c(f,v),g&&!v&&d.push(` ${y} -> ${w}`)})}),d.length){let h=`${n("Implications failed:")}
133
- `;d.forEach(y=>{h+=y}),t.fail(h)}},"implications");let u={};o.conflicts=s(function(f,d){F("<string|object> [array|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{o.conflicts(h,f[h])}):(e.global(f),u[f]||(u[f]=[]),Array.isArray(d)?d.forEach(h=>o.conflicts(f,h)):u[f].push(d))},"conflicts"),o.getConflicting=()=>u,o.conflicting=s(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"),o.recommendCommands=s(function(f,d){d=d.sort((g,w)=>w.length-g.length);let y=null,v=1/0;for(let g=0,w;(w=d[g])!==void 0;g++){let A=Cg(f,w);A<=3&&A<v&&(v=A,y=w)}y&&t.fail(n("Did you mean %s?",y))},"recommendCommands"),o.reset=s(function(f){return a=on(a,d=>!f[d]),u=on(u,d=>!f[d]),o},"reset");let l=[];return o.freeze=s(function(){l.push({implied:a,conflicting:u})},"freeze"),o.unfreeze=s(function(){let f=l.pop();St(f,void 0,r),{implied:a,conflicting:u}=f},"unfreeze"),o}s(jg,"validation");var hl=[],Qs;function Xs(e,t,r,n){Qs=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let o=/\.json|\..*rc$/.test(e.extends),a=null;if(o)a=Dw(t,e.extends);else try{a=require.resolve(e.extends)}catch{return e}qw(a),hl.push(a),i=o?JSON.parse(Qs.readFileSync(a,"utf8")):require(e.extends),delete e.extends,i=Xs(i,Qs.path.dirname(a),r,Qs)}return hl=[],r?Rg(i,e):Object.assign({},i,e)}s(Xs,"applyExtends");function qw(e){if(hl.indexOf(e)>-1)throw new je(`Circular extended configurations: '${e}'.`)}s(qw,"checkForCircularExtends");function Dw(e,t){return Qs.path.resolve(e,t)}s(Dw,"getPathToDefaultConfig");function Rg(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}s(n,"isObject"),Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=Rg(e[i],t[i]):r[i]=t[i];return r}s(Rg,"mergeDeep");var B=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},m=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},We,Vn,eo,Wt,qt,ja,cn,Bn,Ra,Kt,Ta,Zt,xr,Dt,Yt,Na,Li,st,W,ka,Ma,Lt,Hn,Fi,Un,un,qa,re,zn,Gn,Wn,ie,Da,Ar,Ve;function Qg(e){return(t=[],r=e.process.cwd(),n)=>{let i=new $l(t,r,n,e);return Object.defineProperty(i,"argv",{get:s(()=>i.parse(),"get"),enumerable:!0}),i.help(),i.version(),i}}s(Qg,"YargsFactory");var Tg=Symbol("copyDoubleDash"),Ng=Symbol("copyDoubleDash"),ml=Symbol("deleteFromParserHintObject"),kg=Symbol("emitWarning"),Mg=Symbol("freeze"),qg=Symbol("getDollarZero"),Kn=Symbol("getParserConfiguration"),Dg=Symbol("getUsageConfiguration"),gl=Symbol("guessLocale"),Lg=Symbol("guessVersion"),Fg=Symbol("parsePositionalNumbers"),yl=Symbol("pkgUp"),ln=Symbol("populateParserHintArray"),Vi=Symbol("populateParserHintSingleValueDictionary"),vl=Symbol("populateParserHintArrayDictionary"),bl=Symbol("populateParserHintDictionary"),_l=Symbol("sanitizeKey"),Sl=Symbol("setKey"),Ol=Symbol("unfreeze"),Vg=Symbol("validateAsync"),Bg=Symbol("getCommandInstance"),Hg=Symbol("getContext"),Ug=Symbol("getHasOutput"),zg=Symbol("getLoggerInstance"),Gg=Symbol("getParseContext"),Wg=Symbol("getUsageInstance"),Kg=Symbol("getValidationInstance"),La=Symbol("hasParseCallback"),Zg=Symbol("isGlobalContext"),Zn=Symbol("postProcess"),Yg=Symbol("rebase"),Pl=Symbol("reset"),to=Symbol("runYargsParserAndExecuteCommands"),wl=Symbol("runValidation"),Jg=Symbol("setHasOutput"),Yn=Symbol("kTrackManuallySetKeys"),El=class El{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,We.set(this,void 0),Vn.set(this,void 0),eo.set(this,{commands:[],fullCommands:[]}),Wt.set(this,null),qt.set(this,null),ja.set(this,"show-hidden"),cn.set(this,null),Bn.set(this,!0),Ra.set(this,{}),Kt.set(this,!0),Ta.set(this,[]),Zt.set(this,void 0),xr.set(this,{}),Dt.set(this,!1),Yt.set(this,null),Na.set(this,!0),Li.set(this,void 0),st.set(this,""),W.set(this,void 0),ka.set(this,void 0),Ma.set(this,{}),Lt.set(this,null),Hn.set(this,null),Fi.set(this,{}),Un.set(this,{}),un.set(this,void 0),qa.set(this,!1),re.set(this,void 0),zn.set(this,!1),Gn.set(this,!1),Wn.set(this,!1),ie.set(this,void 0),Da.set(this,{}),Ar.set(this,null),Ve.set(this,void 0),B(this,re,i,"f"),B(this,un,t,"f"),B(this,Vn,r,"f"),B(this,ka,n,"f"),B(this,Zt,new Aa(this),"f"),this.$0=this[qg](),this[Pl](),B(this,We,m(this,We,"f"),"f"),B(this,ie,m(this,ie,"f"),"f"),B(this,Ve,m(this,Ve,"f"),"f"),B(this,W,m(this,W,"f"),"f"),m(this,W,"f").showHiddenOpt=m(this,ja,"f"),B(this,Li,this[Ng](),"f")}addHelpOpt(t,r){let n="help";return F("[string|boolean] [string]",[t,r],arguments.length),m(this,Yt,"f")&&(this[ml](m(this,Yt,"f")),B(this,Yt,null,"f")),t===!1&&r===void 0?this:(B(this,Yt,typeof t=="string"?t:n,"f"),this.boolean(m(this,Yt,"f")),this.describe(m(this,Yt,"f"),r||m(this,ie,"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,ja,"f");return this.boolean(n),this.describe(n,r||m(this,ie,"f").deferY18nLookup("Show hidden options")),m(this,W,"f").showHiddenOpt=n,this}showHidden(t,r){return this.addShowHiddenOpt(t,r)}alias(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[vl](this.alias.bind(this),"alias",t,r),this}array(t){return F("<array|string>",[t],arguments.length),this[ln]("array",t),this[Yn](t),this}boolean(t){return F("<array|string>",[t],arguments.length),this[ln]("boolean",t),this[Yn](t),this}check(t,r){return F("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>Fn(()=>t(n,i.getOptions()),o=>(o?(typeof o=="string"||o instanceof Error)&&m(this,ie,"f").fail(o.toString(),o):m(this,ie,"f").fail(m(this,re,"f").y18n.__("Argument check failed: %s",t.toString())),n),o=>(m(this,ie,"f").fail(o.message?o.message:o.toString(),o),n)),!1,r),this}choices(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[vl](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 je("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 je("coerce callback must be provided");return m(this,W,"f").key[t]=!0,m(this,Zt,"f").addCoerceMiddleware((n,i)=>{let o;return Object.prototype.hasOwnProperty.call(n,t)?Fn(()=>(o=i.getAliases(),r(n[t])),c=>{n[t]=c;let u=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(o[t]&&u!==!0)for(let l of o[t])n[l]=c;return n},c=>{throw new je(c.message)}):n},t),this}conflicts(t,r){return F("<string|object> [string|array]",[t,r],arguments.length),m(this,Ve,"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=Xs(t,m(this,Vn,"f"),this[Kn]()["deep-merge-config"]||!1,m(this,re,"f")),m(this,W,"f").configObjects=(m(this,W,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||m(this,ie,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{m(this,W,"f").config[i]=n||!0}),this)}completion(t,r,n){return F("[string] [string|boolean|function] [function]",[t,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),B(this,qt,t||m(this,qt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(m(this,qt,"f"),r),n&&m(this,Wt,"f").registerFunction(n),this}command(t,r,n,i,o,a){return F("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,o,a],arguments.length),m(this,We,"f").addHandler(t,r,n,i,o,a),this}commands(t,r,n,i,o,a){return this.command(t,r,n,i,o,a)}commandDir(t,r){F("<string> [object]",[t,r],arguments.length);let n=m(this,ka,"f")||m(this,re,"f").require;return m(this,We,"f").addDirectory(t,n,m(this,re,"f").getCallerFile(),r),this}count(t){return F("<array|string>",[t],arguments.length),this[ln]("count",t),this[Yn](t),this}default(t,r,n){return F("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(ol(t,m(this,re,"f")),m(this,W,"f").defaultDescription[t]=n),typeof r=="function"&&(ol(t,m(this,re,"f")),m(this,W,"f").defaultDescription[t]||(m(this,W,"f").defaultDescription[t]=m(this,ie,"f").functionDescription(r)),r=r.call()),this[Vi](this.default.bind(this),"default",t,r),this}defaults(t,r,n){return this.default(t,r,n)}demandCommand(t=1,r,n,i){return F("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,r,n,i],arguments.length),typeof r!="number"&&(n=r,r=1/0),this.global("_",!1),m(this,W,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{St(n,!0,m(this,re,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(St(n,!0,m(this,re,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{St(n,!0,m(this,re,"f")),this.demandOption(i,n)}):typeof n=="string"?this.demandOption(t,n):(n===!0||typeof n>"u")&&this.demandOption(t),this}demandOption(t,r){return F("<object|string|array> [string]",[t,r],arguments.length),this[Vi](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return F("<string> [string|boolean]",[t,r],arguments.length),m(this,W,"f").deprecatedOptions[t]=r,this}describe(t,r){return F("<object|string|array> [string]",[t,r],arguments.length),this[Sl](t,!0),m(this,ie,"f").describe(t,r),this}detectLocale(t){return F("<boolean>",[t],arguments.length),B(this,Bn,t,"f"),this}env(t){return F("[string|boolean]",[t],arguments.length),t===!1?delete m(this,W,"f").envPrefix:m(this,W,"f").envPrefix=t||"",this}epilogue(t){return F("<string>",[t],arguments.length),m(this,ie,"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,ie,"f").example(t,r),this}exit(t,r){B(this,Dt,!0,"f"),B(this,cn,r,"f"),m(this,Kt,"f")&&m(this,re,"f").process.exit(t)}exitProcess(t=!0){return F("[boolean]",[t],arguments.length),B(this,Kt,t,"f"),this}fail(t){if(F("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new je("Invalid first argument. Expected function or boolean 'false'");return m(this,ie,"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,Wt,"f").getCompletion(t,r):new Promise((n,i)=>{m(this,Wt,"f").getCompletion(t,(o,a)=>{o?i(o):n(a)})})}getDemandedOptions(){return F([],0),m(this,W,"f").demandedOptions}getDemandedCommands(){return F([],0),m(this,W,"f").demandedCommands}getDeprecatedOptions(){return F([],0),m(this,W,"f").deprecatedOptions}getDetectLocale(){return m(this,Bn,"f")}getExitProcess(){return m(this,Kt,"f")}getGroups(){return Object.assign({},m(this,xr,"f"),m(this,Un,"f"))}getHelp(){if(B(this,Dt,!0,"f"),!m(this,ie,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[to](m(this,un,"f"),void 0,void 0,0,!0);if(Re(r))return r.then(()=>m(this,ie,"f").help())}let t=m(this,We,"f").runDefaultBuilderOn(this);if(Re(t))return t.then(()=>m(this,ie,"f").help())}return Promise.resolve(m(this,ie,"f").help())}getOptions(){return m(this,W,"f")}getStrict(){return m(this,zn,"f")}getStrictCommands(){return m(this,Gn,"f")}getStrictOptions(){return m(this,Wn,"f")}global(t,r){return F("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?m(this,W,"f").local=m(this,W,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{m(this,W,"f").local.includes(n)||m(this,W,"f").local.push(n)}),this}group(t,r){F("<string|array> <string>",[t,r],arguments.length);let n=m(this,Un,"f")[r]||m(this,xr,"f")[r];m(this,Un,"f")[r]&&delete m(this,Un,"f")[r];let i={};return m(this,xr,"f")[r]=(n||[]).concat(t).filter(o=>i[o]?!1:i[o]=!0),this}hide(t){return F("<string>",[t],arguments.length),m(this,W,"f").hiddenOptions.push(t),this}implies(t,r){return F("<string|object> [number|string|array]",[t,r],arguments.length),m(this,Ve,"f").implies(t,r),this}locale(t){return F("[string]",[t],arguments.length),t===void 0?(this[gl](),m(this,re,"f").y18n.getLocale()):(B(this,Bn,!1,"f"),m(this,re,"f").y18n.setLocale(t),this)}middleware(t,r,n){return m(this,Zt,"f").addMiddleware(t,!!r,n)}nargs(t,r){return F("<string|object|array> [number]",[t,r],arguments.length),this[Vi](this.nargs.bind(this),"narg",t,r),this}normalize(t){return F("<array|string>",[t],arguments.length),this[ln]("normalize",t),this}number(t){return F("<array|string>",[t],arguments.length),this[ln]("number",t),this[Yn](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[Yn](t),m(this,Ar,"f")&&(t==="version"||(r==null?void 0:r.alias)==="version")&&this[kg](['"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,W,"f").key[t]=!0,r.alias&&this.alias(t,r.alias);let n=r.deprecate||r.deprecated;n&&this.deprecateOption(t,n);let i=r.demand||r.required||r.require;i&&this.demand(t,i),r.demandOption&&this.demandOption(t,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(t,r.conflicts),"default"in r&&this.default(t,r.default),r.implies!==void 0&&this.implies(t,r.implies),r.nargs!==void 0&&this.nargs(t,r.nargs),r.config&&this.config(t,r.configParser),r.normalize&&this.normalize(t),r.choices&&this.choices(t,r.choices),r.coerce&&this.coerce(t,r.coerce),r.group&&this.group(t,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(t),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(t),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(t),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(t),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(t),typeof r.global=="boolean"&&this.global(t,r.global),r.defaultDescription&&(m(this,W,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let o=r.describe||r.description||r.desc,a=m(this,ie,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(a,t)||typeof o=="string")&&this.describe(t,o),r.hidden&&this.hide(t),r.requiresArg&&this.requiresArg(t)}return this}options(t,r){return this.option(t,r)}parse(t,r,n){F("[string|array] [function|boolean|object] [function]",[t,r,n],arguments.length),this[Mg](),typeof t>"u"&&(t=m(this,un,"f")),typeof r=="object"&&(B(this,Hn,r,"f"),r=n),typeof r=="function"&&(B(this,Lt,r,"f"),r=!1),r||B(this,un,t,"f"),m(this,Lt,"f")&&B(this,Kt,!1,"f");let i=this[to](t,!!r),o=this.parsed;return m(this,Wt,"f").setParsed(this.parsed),Re(i)?i.then(a=>(m(this,Lt,"f")&&m(this,Lt,"f").call(this,m(this,cn,"f"),a,m(this,st,"f")),a)).catch(a=>{throw m(this,Lt,"f")&&m(this,Lt,"f")(a,this.parsed.argv,m(this,st,"f")),a}).finally(()=>{this[Ol](),this.parsed=o}):(m(this,Lt,"f")&&m(this,Lt,"f").call(this,m(this,cn,"f"),i,m(this,st,"f")),this[Ol](),this.parsed=o,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 je(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return F("<object>",[t],arguments.length),B(this,Ma,t,"f"),this}pkgConf(t,r){F("<string> [string]",[t,r],arguments.length);let n=null,i=this[yl](r||m(this,Vn,"f"));return i[t]&&typeof i[t]=="object"&&(n=Xs(i[t],r||m(this,Vn,"f"),this[Kn]()["deep-merge-config"]||!1,m(this,re,"f")),m(this,W,"f").configObjects=(m(this,W,"f").configObjects||[]).concat(n)),this}positional(t,r){F("<string> <object>",[t,r],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=on(r,(a,c)=>a==="type"&&!["string","number","boolean"].includes(c)?!1:n.includes(a));let i=m(this,eo,"f").fullCommands[m(this,eo,"f").fullCommands.length-1],o=i?m(this,We,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return qi(o).forEach(a=>{let c=o[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,ie,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return F("[boolean]",[t],arguments.length),B(this,qa,t,"f"),this}required(t,r,n){return this.demand(t,r,n)}require(t,r,n){return this.demand(t,r,n)}requiresArg(t){return F("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&m(this,W,"f").narg[t]?this:(this[Vi](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,Li,"f").log(m(this,Wt,"f").generateCompletionScript(t,r||m(this,qt,"f")||"completion")),this}showHelp(t){if(F("[string|function]",[t],arguments.length),B(this,Dt,!0,"f"),!m(this,ie,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[to](m(this,un,"f"),void 0,void 0,0,!0);if(Re(n))return n.then(()=>{m(this,ie,"f").showHelp(t)}),this}let r=m(this,We,"f").runDefaultBuilderOn(this);if(Re(r))return r.then(()=>{m(this,ie,"f").showHelp(t)}),this}return m(this,ie,"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,ie,"f").showHelpOnFail(t,r),this}showVersion(t){return F("[string|function]",[t],arguments.length),m(this,ie,"f").showVersion(t),this}skipValidation(t){return F("<array|string>",[t],arguments.length),this[ln]("skipValidation",t),this}strict(t){return F("[boolean]",[t],arguments.length),B(this,zn,t!==!1,"f"),this}strictCommands(t){return F("[boolean]",[t],arguments.length),B(this,Gn,t!==!1,"f"),this}strictOptions(t){return F("[boolean]",[t],arguments.length),B(this,Wn,t!==!1,"f"),this}string(t){return F("<array|string>",[t],arguments.length),this[ln]("string",t),this[Yn](t),this}terminalWidth(){return F([],0),m(this,re,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return F("<object>",[t],arguments.length),B(this,Bn,!1,"f"),m(this,re,"f").y18n.updateLocale(t),this}usage(t,r,n,i){if(F("<string|null|undefined> [string|boolean] [function|object] [function]",[t,r,n,i],arguments.length),r!==void 0){if(St(t,null,m(this,re,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new je(".usage() description must start with $0 if being used as alias for .command()")}else return m(this,ie,"f").usage(t),this}usageConfiguration(t){return F("<object>",[t],arguments.length),B(this,Da,t,"f"),this}version(t,r,n){let i="version";if(F("[boolean|string] [string] [string]",[t,r,n],arguments.length),m(this,Ar,"f")&&(this[ml](m(this,Ar,"f")),m(this,ie,"f").version(void 0),B(this,Ar,null,"f")),arguments.length===0)n=this[Lg](),t=i;else if(arguments.length===1){if(t===!1)return this;n=t,t=i}else arguments.length===2&&(n=r,r=void 0);return B(this,Ar,typeof t=="string"?t:i,"f"),r=r||m(this,ie,"f").deferY18nLookup("Show version number"),m(this,ie,"f").version(n||void 0),this.boolean(m(this,Ar,"f")),this.describe(m(this,Ar,"f"),r),this}wrap(t){return F("<number|null|undefined>",[t],arguments.length),m(this,ie,"f").wrap(t),this}[(We=new WeakMap,Vn=new WeakMap,eo=new WeakMap,Wt=new WeakMap,qt=new WeakMap,ja=new WeakMap,cn=new WeakMap,Bn=new WeakMap,Ra=new WeakMap,Kt=new WeakMap,Ta=new WeakMap,Zt=new WeakMap,xr=new WeakMap,Dt=new WeakMap,Yt=new WeakMap,Na=new WeakMap,Li=new WeakMap,st=new WeakMap,W=new WeakMap,ka=new WeakMap,Ma=new WeakMap,Lt=new WeakMap,Hn=new WeakMap,Fi=new WeakMap,Un=new WeakMap,un=new WeakMap,qa=new WeakMap,re=new WeakMap,zn=new WeakMap,Gn=new WeakMap,Wn=new WeakMap,ie=new WeakMap,Da=new WeakMap,Ar=new WeakMap,Ve=new WeakMap,Tg)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[Ng](){return{log:s((...t)=>{this[La]()||console.log(...t),B(this,Dt,!0,"f"),m(this,st,"f").length&&B(this,st,m(this,st,"f")+`
135
- `,"f"),B(this,st,m(this,st,"f")+t.join(" "),"f")},"log"),error:s((...t)=>{this[La]()||console.error(...t),B(this,Dt,!0,"f"),m(this,st,"f").length&&B(this,st,m(this,st,"f")+`
136
- `,"f"),B(this,st,m(this,st,"f")+t.join(" "),"f")},"error")}}[ml](t){qi(m(this,W,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=m(this,W,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete m(this,ie,"f").getDescriptions()[t]}[kg](t,r,n){m(this,Ra,"f")[n]||(m(this,re,"f").process.emitWarning(t,r),m(this,Ra,"f")[n]=!0)}[Mg](){m(this,Ta,"f").push({options:m(this,W,"f"),configObjects:m(this,W,"f").configObjects.slice(0),exitProcess:m(this,Kt,"f"),groups:m(this,xr,"f"),strict:m(this,zn,"f"),strictCommands:m(this,Gn,"f"),strictOptions:m(this,Wn,"f"),completionCommand:m(this,qt,"f"),output:m(this,st,"f"),exitError:m(this,cn,"f"),hasOutput:m(this,Dt,"f"),parsed:this.parsed,parseFn:m(this,Lt,"f"),parseContext:m(this,Hn,"f")}),m(this,ie,"f").freeze(),m(this,Ve,"f").freeze(),m(this,We,"f").freeze(),m(this,Zt,"f").freeze()}[qg](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(m(this,re,"f").process.argv()[0])?r=m(this,re,"f").process.argv().slice(1,2):r=m(this,re,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[Yg](m(this,Vn,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),m(this,re,"f").getEnv("_")&&m(this,re,"f").getProcessArgvBin()===m(this,re,"f").getEnv("_")&&(t=m(this,re,"f").getEnv("_").replace(`${m(this,re,"f").path.dirname(m(this,re,"f").process.execPath())}/`,"")),t}[Kn](){return m(this,Ma,"f")}[Dg](){return m(this,Da,"f")}[gl](){if(!m(this,Bn,"f"))return;let t=m(this,re,"f").getEnv("LC_ALL")||m(this,re,"f").getEnv("LC_MESSAGES")||m(this,re,"f").getEnv("LANG")||m(this,re,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[Lg](){return this[yl]().version||"unknown"}[Fg](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)m(this,re,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[yl](t){let r=t||"*";if(m(this,Fi,"f")[r])return m(this,Fi,"f")[r];let n={};try{let i=t||m(this,re,"f").mainFilename;!t&&m(this,re,"f").path.extname(i)&&(i=m(this,re,"f").path.dirname(i));let o=m(this,re,"f").findUp(i,(a,c)=>{if(c.includes("package.json"))return"package.json"});St(o,void 0,m(this,re,"f")),n=JSON.parse(m(this,re,"f").readFileSync(o,"utf8"))}catch{}return m(this,Fi,"f")[r]=n||{},m(this,Fi,"f")[r]}[ln](t,r){r=[].concat(r),r.forEach(n=>{n=this[_l](n),m(this,W,"f")[t].push(n)})}[Vi](t,r,n,i){this[bl](t,r,n,i,(o,a,c)=>{m(this,W,"f")[o][a]=c})}[vl](t,r,n,i){this[bl](t,r,n,i,(o,a,c)=>{m(this,W,"f")[o][a]=(m(this,W,"f")[o][a]||[]).concat(c)})}[bl](t,r,n,i,o){if(Array.isArray(n))n.forEach(a=>{t(a,i)});else if((a=>typeof a=="object")(n))for(let a of qi(n))t(a,n[a]);else o(r,this[_l](n),i)}[_l](t){return t==="__proto__"?"___proto___":t}[Sl](t,r){return this[Vi](this[Sl].bind(this),"key",t,r),this}[Ol](){var t,r,n,i,o,a,c,u,l,p,f,d;let h=m(this,Ta,"f").pop();St(h,void 0,m(this,re,"f"));let y;t=this,r=this,n=this,i=this,o=this,a=this,c=this,u=this,l=this,p=this,f=this,d=this,{options:{set value(v){B(t,W,v,"f")}}.value,configObjects:y,exitProcess:{set value(v){B(r,Kt,v,"f")}}.value,groups:{set value(v){B(n,xr,v,"f")}}.value,output:{set value(v){B(i,st,v,"f")}}.value,exitError:{set value(v){B(o,cn,v,"f")}}.value,hasOutput:{set value(v){B(a,Dt,v,"f")}}.value,parsed:this.parsed,strict:{set value(v){B(c,zn,v,"f")}}.value,strictCommands:{set value(v){B(u,Gn,v,"f")}}.value,strictOptions:{set value(v){B(l,Wn,v,"f")}}.value,completionCommand:{set value(v){B(p,qt,v,"f")}}.value,parseFn:{set value(v){B(f,Lt,v,"f")}}.value,parseContext:{set value(v){B(d,Hn,v,"f")}}.value}=h,m(this,W,"f").configObjects=y,m(this,ie,"f").unfreeze(),m(this,Ve,"f").unfreeze(),m(this,We,"f").unfreeze(),m(this,Zt,"f").unfreeze()}[Vg](t,r){return Fn(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[Bg].bind(this),getContext:this[Hg].bind(this),getHasOutput:this[Ug].bind(this),getLoggerInstance:this[zg].bind(this),getParseContext:this[Gg].bind(this),getParserConfiguration:this[Kn].bind(this),getUsageConfiguration:this[Dg].bind(this),getUsageInstance:this[Wg].bind(this),getValidationInstance:this[Kg].bind(this),hasParseCallback:this[La].bind(this),isGlobalContext:this[Zg].bind(this),postProcess:this[Zn].bind(this),reset:this[Pl].bind(this),runValidation:this[wl].bind(this),runYargsParserAndExecuteCommands:this[to].bind(this),setHasOutput:this[Jg].bind(this)}}[Bg](){return m(this,We,"f")}[Hg](){return m(this,eo,"f")}[Ug](){return m(this,Dt,"f")}[zg](){return m(this,Li,"f")}[Gg](){return m(this,Hn,"f")||{}}[Wg](){return m(this,ie,"f")}[Kg](){return m(this,Ve,"f")}[La](){return!!m(this,Lt,"f")}[Zg](){return m(this,Na,"f")}[Zn](t,r,n,i){return n||Re(t)||(r||(t=this[Tg](t)),(this[Kn]()["parse-positional-numbers"]||this[Kn]()["parse-positional-numbers"]===void 0)&&(t=this[Fg](t)),i&&(t=Ln(t,this,m(this,Zt,"f").getMiddleware(),!1))),t}[Pl](t={}){B(this,W,m(this,W,"f")||{},"f");let r={};r.local=m(this,W,"f").local||[],r.configObjects=m(this,W,"f").configObjects||[];let n={};r.local.forEach(a=>{n[a]=!0,(t[a]||[]).forEach(c=>{n[c]=!0})}),Object.assign(m(this,Un,"f"),Object.keys(m(this,xr,"f")).reduce((a,c)=>{let u=m(this,xr,"f")[c].filter(l=>!(l in n));return u.length>0&&(a[c]=u),a},{})),B(this,xr,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],o=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(a=>{r[a]=(m(this,W,"f")[a]||[]).filter(c=>!n[c])}),o.forEach(a=>{r[a]=on(m(this,W,"f")[a],c=>!n[c])}),r.envPrefix=m(this,W,"f").envPrefix,B(this,W,r,"f"),B(this,ie,m(this,ie,"f")?m(this,ie,"f").reset(n):$g(this,m(this,re,"f")),"f"),B(this,Ve,m(this,Ve,"f")?m(this,Ve,"f").reset(n):jg(this,m(this,ie,"f"),m(this,re,"f")),"f"),B(this,We,m(this,We,"f")?m(this,We,"f").reset():Og(m(this,ie,"f"),m(this,Ve,"f"),m(this,Zt,"f"),m(this,re,"f")),"f"),m(this,Wt,"f")||B(this,Wt,Ag(this,m(this,ie,"f"),m(this,We,"f"),m(this,re,"f")),"f"),m(this,Zt,"f").reset(),B(this,qt,null,"f"),B(this,st,"","f"),B(this,cn,null,"f"),B(this,Dt,!1,"f"),this.parsed=!1,this}[Yg](t,r){return m(this,re,"f").path.relative(t,r)}[to](t,r,n,i=0,o=!1){let a=!!n||o;t=t||m(this,un,"f"),m(this,W,"f").__=m(this,re,"f").y18n.__,m(this,W,"f").configuration=this[Kn]();let c=!!m(this,W,"f").configuration["populate--"],u=Object.assign({},m(this,W,"f").configuration,{"populate--":!0}),l=m(this,re,"f").Parser.detailed(t,Object.assign({},m(this,W,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),p=Object.assign(l.argv,m(this,Hn,"f")),f,d=l.aliases,h=!1,y=!1;Object.keys(p).forEach(v=>{v===m(this,Yt,"f")&&p[v]?h=!0:v===m(this,Ar,"f")&&p[v]&&(y=!0)}),p.$0=this.$0,this.parsed=l,i===0&&m(this,ie,"f").clearCachedHelpMessage();try{if(this[gl](),r)return this[Zn](p,c,!!n,!1);m(this,Yt,"f")&&[m(this,Yt,"f")].concat(d[m(this,Yt,"f")]||[]).filter(I=>I.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),h=!0),B(this,Na,!1,"f");let v=m(this,We,"f").getCommands(),g=m(this,Wt,"f").completionKey in p,w=h||g||o;if(p._.length){if(v.length){let A;for(let I=i||0,R;p._[I]!==void 0;I++)if(R=String(p._[I]),v.includes(R)&&R!==m(this,qt,"f")){let C=m(this,We,"f").runCommand(R,this,l,I+1,o,h||y||o);return this[Zn](C,c,!!n,!1)}else if(!A&&R!==m(this,qt,"f")){A=R;break}!m(this,We,"f").hasDefaultCommand()&&m(this,qa,"f")&&A&&!w&&m(this,Ve,"f").recommendCommands(A,v)}m(this,qt,"f")&&p._.includes(m(this,qt,"f"))&&!g&&(m(this,Kt,"f")&&an(!0),this.showCompletionScript(),this.exit(0))}if(m(this,We,"f").hasDefaultCommand()&&!w){let A=m(this,We,"f").runCommand(null,this,l,0,o,h||y||o);return this[Zn](A,c,!!n,!1)}if(g){m(this,Kt,"f")&&an(!0),t=[].concat(t);let A=t.slice(t.indexOf(`--${m(this,Wt,"f").completionKey}`)+1);return m(this,Wt,"f").getCompletion(A,(I,R)=>{if(I)throw new je(I.message);(R||[]).forEach(C=>{m(this,Li,"f").log(C)}),this.exit(0)}),this[Zn](p,!c,!!n,!1)}if(m(this,Dt,"f")||(h?(m(this,Kt,"f")&&an(!0),a=!0,this.showHelp("log"),this.exit(0)):y&&(m(this,Kt,"f")&&an(!0),a=!0,m(this,ie,"f").showVersion("log"),this.exit(0))),!a&&m(this,W,"f").skipValidation.length>0&&(a=Object.keys(p).some(A=>m(this,W,"f").skipValidation.indexOf(A)>=0&&p[A]===!0)),!a){if(l.error)throw new je(l.error.message);if(!g){let A=this[wl](d,{},l.error);n||(f=Ln(p,this,m(this,Zt,"f").getMiddleware(),!0)),f=this[Vg](A,f??p),Re(f)&&!n&&(f=f.then(()=>Ln(p,this,m(this,Zt,"f").getMiddleware(),!1)))}}}catch(v){if(v instanceof je)m(this,ie,"f").fail(v.message,v);else throw v}return this[Zn](f??p,c,!!n,!0)}[wl](t,r,n,i){let o={...this.getDemandedOptions()};return a=>{if(n)throw new je(n.message);m(this,Ve,"f").nonOptionCount(a),m(this,Ve,"f").requiredArguments(a,o);let c=!1;m(this,Gn,"f")&&(c=m(this,Ve,"f").unknownCommands(a)),m(this,zn,"f")&&!c?m(this,Ve,"f").unknownArguments(a,t,r,!!i):m(this,Wn,"f")&&m(this,Ve,"f").unknownArguments(a,t,{},!1,!1),m(this,Ve,"f").limitedChoices(a),m(this,Ve,"f").implications(a),m(this,Ve,"f").conflicting(a)}}[Jg](){B(this,Dt,!0,"f")}[Yn](t){if(typeof t=="string")m(this,W,"f").key[t]=!0;else for(let r of t)m(this,W,"f").key[r]=!0}};s(El,"YargsInstance");var $l=El;function Pg(e){return!!e&&typeof e.getInternalMethods=="function"}s(Pg,"isYargsInstance");var Lw=Qg(sl),Xg=Lw;var ey=s((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),ty=s((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),ry=s((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),qe={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},ZL=Object.keys(qe.modifier),Fw=Object.keys(qe.color),Vw=Object.keys(qe.bgColor),YL=[...Fw,...Vw];function Bw(){let e=new Map;for(let[t,r]of Object.entries(qe)){for(let[n,i]of Object.entries(r))qe[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=qe[n],e.set(i[0],i[1]);Object.defineProperty(qe,t,{value:r,enumerable:!1})}return Object.defineProperty(qe,"codes",{value:e,enumerable:!1}),qe.color.close="\x1B[39m",qe.bgColor.close="\x1B[49m",qe.color.ansi=ey(),qe.color.ansi256=ty(),qe.color.ansi16m=ry(),qe.bgColor.ansi=ey(10),qe.bgColor.ansi256=ty(10),qe.bgColor.ansi16m=ry(10),Object.defineProperties(qe,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:s(t=>qe.rgbToAnsi256(...qe.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let c=t%36;r=Math.floor(t/36)/5,n=Math.floor(c/6)/5,i=c%6/5}let o=Math.max(r,n,i)*2;if(o===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:s((t,r,n)=>qe.ansi256ToAnsi(qe.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:s(t=>qe.ansi256ToAnsi(qe.hexToAnsi256(t)),"value"),enumerable:!1}}),qe}s(Bw,"assembleStyles");var Hw=Bw(),pr=Hw;var Va=_t(require("process"),1),iy=_t(require("os"),1),xl=_t(require("tty"),1);function Jt(e,t=globalThis.Deno?globalThis.Deno.args:Va.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}s(Jt,"hasFlag");var{env:Le}=Va.default,Fa;Jt("no-color")||Jt("no-colors")||Jt("color=false")||Jt("color=never")?Fa=0:(Jt("color")||Jt("colors")||Jt("color=true")||Jt("color=always"))&&(Fa=1);function Uw(){if("FORCE_COLOR"in Le)return Le.FORCE_COLOR==="true"?1:Le.FORCE_COLOR==="false"?0:Le.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Le.FORCE_COLOR,10),3)}s(Uw,"envForceColor");function zw(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}s(zw,"translateLevel");function Gw(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=Uw();n!==void 0&&(Fa=n);let i=r?Fa:n;if(i===0)return 0;if(r){if(Jt("color=16m")||Jt("color=full")||Jt("color=truecolor"))return 3;if(Jt("color=256"))return 2}if("TF_BUILD"in Le&&"AGENT_NAME"in Le)return 1;if(e&&!t&&i===void 0)return 0;let o=i||0;if(Le.TERM==="dumb")return o;if(Va.default.platform==="win32"){let a=iy.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Le)return"GITHUB_ACTIONS"in Le||"GITEA_ACTIONS"in Le?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Le)||Le.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in Le)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Le.TEAMCITY_VERSION)?1:0;if(Le.COLORTERM==="truecolor"||Le.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Le){let a=Number.parseInt((Le.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Le.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Le.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Le.TERM)||"COLORTERM"in Le?1:o}s(Gw,"_supportsColor");function ny(e,t={}){let r=Gw(e,{streamIsTTY:e&&e.isTTY,...t});return zw(r)}s(ny,"createSupportsColor");var Ww={stdout:ny({isTTY:xl.default.isatty(1)}),stderr:ny({isTTY:xl.default.isatty(2)})},sy=Ww;function oy(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,a="";do a+=e.slice(o,n)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return a+=e.slice(o),a}s(oy,"stringReplaceAll");function ay(e,t,r,n){let i=0,o="";do{let a=e[n-1]==="\r";o+=e.slice(i,a?n-1:n)+t+(a?`\r
131
+ `)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+v))}},"requiredArguments"),s.unknownArguments=o(function(f,d,h,y,v=!0){var g;let $=e.getInternalMethods().getCommandInstance().getCommands(),A=[],C=e.getInternalMethods().getContext();if(Object.keys(f).forEach(R=>{!Dg.includes(R)&&!Object.prototype.hasOwnProperty.call(h,R)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),R)&&!s.isValidAndSomeAliasIsNotNew(R,d)&&A.push(R)}),v&&(C.commands.length>0||$.length>0||y)&&f._.slice(C.commands.length).forEach(R=>{$.includes(""+R)||A.push(""+R)}),v){let I=((g=e.getDemandedCommands()._)===null||g===void 0?void 0:g.max)||0,ae=C.commands.length+I;ae<f._.length&&f._.slice(ae).forEach(re=>{re=String(re),!C.commands.includes(re)&&!A.includes(re)&&A.push(re)})}A.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",A.length,A.map(R=>R.trim()?R:`"${R}"`).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(v=>{d.includes(""+v)||h.push(""+v)}),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=>{Dg.indexOf(g)===-1&&Object.prototype.hasOwnProperty.call(d.choices,g)&&[].concat(f[g]).forEach($=>{d.choices[g].indexOf($)===-1&&$!==void 0&&(h[g]=(h[g]||[]).concat($))})});let y=Object.keys(h);if(!y.length)return;let v=n("Invalid values:");y.forEach(g=>{v+=`
132
+ ${n("Argument: %s, Given: %s, Choices: %s",g,t.stringifiedValues(h[g]),t.stringifiedValues(d.choices[g]))}`}),t.fail(v)},"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)):(wt(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(v=>{let g=y,$=v;g=c(f,g),v=c(f,v),g&&!v&&d.push(` ${y} -> ${$}`)})}),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,$)=>$.length-g.length);let y=null,v=1/0;for(let g=0,$;($=d[g])!==void 0;g++){let A=qg(f,$);A<=3&&A<v&&(v=A,y=$)}y&&t.fail(n("Did you mean %s?",y))},"recommendCommands"),s.reset=o(function(f){return a=un(a,d=>!f[d]),u=un(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();wt(f,void 0,r),{implied:a,conflicting:u}=f},"unfreeze"),s}o(Lg,"validation");var Ol=[],ts;function rs(e,t,r,n){ts=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=e$(t,e.extends);else try{a=require.resolve(e.extends)}catch{return e}Xw(a),Ol.push(a),i=s?JSON.parse(ts.readFileSync(a,"utf8")):require(e.extends),delete e.extends,i=rs(i,ts.path.dirname(a),r,ts)}return Ol=[],r?Fg(i,e):Object.assign({},i,e)}o(rs,"applyExtends");function Xw(e){if(Ol.indexOf(e)>-1)throw new je(`Circular extended configurations: '${e}'.`)}o(Xw,"checkForCircularExtends");function e$(e,t){return ts.path.resolve(e,t)}o(e$,"getPathToDefaultConfig");function Fg(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]=Fg(e[i],t[i]):r[i]=t[i];return r}o(Fg,"mergeDeep");var B=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},m=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ye,Zn,ns,Jt,Vt,ka,fn,Wn,Ma,Qt,qa,Xt,Rr,Bt,er,Da,Ui,at,Z,La,Fa,Ht,Kn,zi,Yn,pn,Va,te,Jn,Qn,Xn,oe,Ba,jr,He;function sy(e){return(t=[],r=e.process.cwd(),n)=>{let i=new Nl(t,r,n,e);return Object.defineProperty(i,"argv",{get:o(()=>i.parse(),"get"),enumerable:!0}),i.help(),i.version(),i}}o(sy,"YargsFactory");var Vg=Symbol("copyDoubleDash"),Bg=Symbol("copyDoubleDash"),wl=Symbol("deleteFromParserHintObject"),Hg=Symbol("emitWarning"),Ug=Symbol("freeze"),zg=Symbol("getDollarZero"),ei=Symbol("getParserConfiguration"),Gg=Symbol("getUsageConfiguration"),$l=Symbol("guessLocale"),Zg=Symbol("guessVersion"),Wg=Symbol("parsePositionalNumbers"),El=Symbol("pkgUp"),dn=Symbol("populateParserHintArray"),Gi=Symbol("populateParserHintSingleValueDictionary"),xl=Symbol("populateParserHintArrayDictionary"),Al=Symbol("populateParserHintDictionary"),Cl=Symbol("sanitizeKey"),Il=Symbol("setKey"),Rl=Symbol("unfreeze"),Kg=Symbol("validateAsync"),Yg=Symbol("getCommandInstance"),Jg=Symbol("getContext"),Qg=Symbol("getHasOutput"),Xg=Symbol("getLoggerInstance"),ey=Symbol("getParseContext"),ty=Symbol("getUsageInstance"),ry=Symbol("getValidationInstance"),Ha=Symbol("hasParseCallback"),ny=Symbol("isGlobalContext"),ti=Symbol("postProcess"),iy=Symbol("rebase"),jl=Symbol("reset"),is=Symbol("runYargsParserAndExecuteCommands"),Tl=Symbol("runValidation"),oy=Symbol("setHasOutput"),ri=Symbol("kTrackManuallySetKeys"),kl=class kl{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Ye.set(this,void 0),Zn.set(this,void 0),ns.set(this,{commands:[],fullCommands:[]}),Jt.set(this,null),Vt.set(this,null),ka.set(this,"show-hidden"),fn.set(this,null),Wn.set(this,!0),Ma.set(this,{}),Qt.set(this,!0),qa.set(this,[]),Xt.set(this,void 0),Rr.set(this,{}),Bt.set(this,!1),er.set(this,null),Da.set(this,!0),Ui.set(this,void 0),at.set(this,""),Z.set(this,void 0),La.set(this,void 0),Fa.set(this,{}),Ht.set(this,null),Kn.set(this,null),zi.set(this,{}),Yn.set(this,{}),pn.set(this,void 0),Va.set(this,!1),te.set(this,void 0),Jn.set(this,!1),Qn.set(this,!1),Xn.set(this,!1),oe.set(this,void 0),Ba.set(this,{}),jr.set(this,null),He.set(this,void 0),B(this,te,i,"f"),B(this,pn,t,"f"),B(this,Zn,r,"f"),B(this,La,n,"f"),B(this,Xt,new ja(this),"f"),this.$0=this[zg](),this[jl](),B(this,Ye,m(this,Ye,"f"),"f"),B(this,oe,m(this,oe,"f"),"f"),B(this,He,m(this,He,"f"),"f"),B(this,Z,m(this,Z,"f"),"f"),m(this,Z,"f").showHiddenOpt=m(this,ka,"f"),B(this,Ui,this[Bg](),"f")}addHelpOpt(t,r){let n="help";return F("[string|boolean] [string]",[t,r],arguments.length),m(this,er,"f")&&(this[wl](m(this,er,"f")),B(this,er,null,"f")),t===!1&&r===void 0?this:(B(this,er,typeof t=="string"?t:n,"f"),this.boolean(m(this,er,"f")),this.describe(m(this,er,"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,ka,"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[xl](this.alias.bind(this),"alias",t,r),this}array(t){return F("<array|string>",[t],arguments.length),this[dn]("array",t),this[ri](t),this}boolean(t){return F("<array|string>",[t],arguments.length),this[dn]("boolean",t),this[ri](t),this}check(t,r){return F("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>Gn(()=>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,te,"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[xl](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 je("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 je("coerce callback must be provided");return m(this,Z,"f").key[t]=!0,m(this,Xt,"f").addCoerceMiddleware((n,i)=>{let s;return Object.prototype.hasOwnProperty.call(n,t)?Gn(()=>(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 je(c.message)}):n},t),this}conflicts(t,r){return F("<string|object> [string|array]",[t,r],arguments.length),m(this,He,"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=rs(t,m(this,Zn,"f"),this[ei]()["deep-merge-config"]||!1,m(this,te,"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),B(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,Jt,"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,Ye,"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,La,"f")||m(this,te,"f").require;return m(this,Ye,"f").addDirectory(t,n,m(this,te,"f").getCallerFile(),r),this}count(t){return F("<array|string>",[t],arguments.length),this[dn]("count",t),this[ri](t),this}default(t,r,n){return F("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(ml(t,m(this,te,"f")),m(this,Z,"f").defaultDescription[t]=n),typeof r=="function"&&(ml(t,m(this,te,"f")),m(this,Z,"f").defaultDescription[t]||(m(this,Z,"f").defaultDescription[t]=m(this,oe,"f").functionDescription(r)),r=r.call()),this[Gi](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=>{wt(n,!0,m(this,te,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(wt(n,!0,m(this,te,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{wt(n,!0,m(this,te,"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[Gi](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[Il](t,!0),m(this,oe,"f").describe(t,r),this}detectLocale(t){return F("<boolean>",[t],arguments.length),B(this,Wn,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){B(this,Bt,!0,"f"),B(this,fn,r,"f"),m(this,Qt,"f")&&m(this,te,"f").process.exit(t)}exitProcess(t=!0){return F("[boolean]",[t],arguments.length),B(this,Qt,t,"f"),this}fail(t){if(F("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new je("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,Jt,"f").getCompletion(t,r):new Promise((n,i)=>{m(this,Jt,"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,Wn,"f")}getExitProcess(){return m(this,Qt,"f")}getGroups(){return Object.assign({},m(this,Rr,"f"),m(this,Yn,"f"))}getHelp(){if(B(this,Bt,!0,"f"),!m(this,oe,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[is](m(this,pn,"f"),void 0,void 0,0,!0);if(Te(r))return r.then(()=>m(this,oe,"f").help())}let t=m(this,Ye,"f").runDefaultBuilderOn(this);if(Te(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,Jn,"f")}getStrictCommands(){return m(this,Qn,"f")}getStrictOptions(){return m(this,Xn,"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,Yn,"f")[r]||m(this,Rr,"f")[r];m(this,Yn,"f")[r]&&delete m(this,Yn,"f")[r];let i={};return m(this,Rr,"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,He,"f").implies(t,r),this}locale(t){return F("[string]",[t],arguments.length),t===void 0?(this[$l](),m(this,te,"f").y18n.getLocale()):(B(this,Wn,!1,"f"),m(this,te,"f").y18n.setLocale(t),this)}middleware(t,r,n){return m(this,Xt,"f").addMiddleware(t,!!r,n)}nargs(t,r){return F("<string|object|array> [number]",[t,r],arguments.length),this[Gi](this.nargs.bind(this),"narg",t,r),this}normalize(t){return F("<array|string>",[t],arguments.length),this[dn]("normalize",t),this}number(t){return F("<array|string>",[t],arguments.length),this[dn]("number",t),this[ri](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[ri](t),m(this,jr,"f")&&(t==="version"||(r==null?void 0:r.alias)==="version")&&this[Hg](['"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[Ug](),typeof t>"u"&&(t=m(this,pn,"f")),typeof r=="object"&&(B(this,Kn,r,"f"),r=n),typeof r=="function"&&(B(this,Ht,r,"f"),r=!1),r||B(this,pn,t,"f"),m(this,Ht,"f")&&B(this,Qt,!1,"f");let i=this[is](t,!!r),s=this.parsed;return m(this,Jt,"f").setParsed(this.parsed),Te(i)?i.then(a=>(m(this,Ht,"f")&&m(this,Ht,"f").call(this,m(this,fn,"f"),a,m(this,at,"f")),a)).catch(a=>{throw m(this,Ht,"f")&&m(this,Ht,"f")(a,this.parsed.argv,m(this,at,"f")),a}).finally(()=>{this[Rl](),this.parsed=s}):(m(this,Ht,"f")&&m(this,Ht,"f").call(this,m(this,fn,"f"),i,m(this,at,"f")),this[Rl](),this.parsed=s,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return Te(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(Te(i))throw new je(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return F("<object>",[t],arguments.length),B(this,Fa,t,"f"),this}pkgConf(t,r){F("<string> [string]",[t,r],arguments.length);let n=null,i=this[El](r||m(this,Zn,"f"));return i[t]&&typeof i[t]=="object"&&(n=rs(i[t],r||m(this,Zn,"f"),this[ei]()["deep-merge-config"]||!1,m(this,te,"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=un(r,(a,c)=>a==="type"&&!["string","number","boolean"].includes(c)?!1:n.includes(a));let i=m(this,ns,"f").fullCommands[m(this,ns,"f").fullCommands.length-1],s=i?m(this,Ye,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return Bi(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),B(this,Va,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[Gi](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,Ui,"f").log(m(this,Jt,"f").generateCompletionScript(t,r||m(this,Vt,"f")||"completion")),this}showHelp(t){if(F("[string|function]",[t],arguments.length),B(this,Bt,!0,"f"),!m(this,oe,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[is](m(this,pn,"f"),void 0,void 0,0,!0);if(Te(n))return n.then(()=>{m(this,oe,"f").showHelp(t)}),this}let r=m(this,Ye,"f").runDefaultBuilderOn(this);if(Te(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[dn]("skipValidation",t),this}strict(t){return F("[boolean]",[t],arguments.length),B(this,Jn,t!==!1,"f"),this}strictCommands(t){return F("[boolean]",[t],arguments.length),B(this,Qn,t!==!1,"f"),this}strictOptions(t){return F("[boolean]",[t],arguments.length),B(this,Xn,t!==!1,"f"),this}string(t){return F("<array|string>",[t],arguments.length),this[dn]("string",t),this[ri](t),this}terminalWidth(){return F([],0),m(this,te,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return F("<object>",[t],arguments.length),B(this,Wn,!1,"f"),m(this,te,"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(wt(t,null,m(this,te,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new je(".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),B(this,Ba,t,"f"),this}version(t,r,n){let i="version";if(F("[boolean|string] [string] [string]",[t,r,n],arguments.length),m(this,jr,"f")&&(this[wl](m(this,jr,"f")),m(this,oe,"f").version(void 0),B(this,jr,null,"f")),arguments.length===0)n=this[Zg](),t=i;else if(arguments.length===1){if(t===!1)return this;n=t,t=i}else arguments.length===2&&(n=r,r=void 0);return B(this,jr,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,jr,"f")),this.describe(m(this,jr,"f"),r),this}wrap(t){return F("<number|null|undefined>",[t],arguments.length),m(this,oe,"f").wrap(t),this}[(Ye=new WeakMap,Zn=new WeakMap,ns=new WeakMap,Jt=new WeakMap,Vt=new WeakMap,ka=new WeakMap,fn=new WeakMap,Wn=new WeakMap,Ma=new WeakMap,Qt=new WeakMap,qa=new WeakMap,Xt=new WeakMap,Rr=new WeakMap,Bt=new WeakMap,er=new WeakMap,Da=new WeakMap,Ui=new WeakMap,at=new WeakMap,Z=new WeakMap,La=new WeakMap,Fa=new WeakMap,Ht=new WeakMap,Kn=new WeakMap,zi=new WeakMap,Yn=new WeakMap,pn=new WeakMap,Va=new WeakMap,te=new WeakMap,Jn=new WeakMap,Qn=new WeakMap,Xn=new WeakMap,oe=new WeakMap,Ba=new WeakMap,jr=new WeakMap,He=new WeakMap,Vg)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[Bg](){return{log:o((...t)=>{this[Ha]()||console.log(...t),B(this,Bt,!0,"f"),m(this,at,"f").length&&B(this,at,m(this,at,"f")+`
135
+ `,"f"),B(this,at,m(this,at,"f")+t.join(" "),"f")},"log"),error:o((...t)=>{this[Ha]()||console.error(...t),B(this,Bt,!0,"f"),m(this,at,"f").length&&B(this,at,m(this,at,"f")+`
136
+ `,"f"),B(this,at,m(this,at,"f")+t.join(" "),"f")},"error")}}[wl](t){Bi(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]}[Hg](t,r,n){m(this,Ma,"f")[n]||(m(this,te,"f").process.emitWarning(t,r),m(this,Ma,"f")[n]=!0)}[Ug](){m(this,qa,"f").push({options:m(this,Z,"f"),configObjects:m(this,Z,"f").configObjects.slice(0),exitProcess:m(this,Qt,"f"),groups:m(this,Rr,"f"),strict:m(this,Jn,"f"),strictCommands:m(this,Qn,"f"),strictOptions:m(this,Xn,"f"),completionCommand:m(this,Vt,"f"),output:m(this,at,"f"),exitError:m(this,fn,"f"),hasOutput:m(this,Bt,"f"),parsed:this.parsed,parseFn:m(this,Ht,"f"),parseContext:m(this,Kn,"f")}),m(this,oe,"f").freeze(),m(this,He,"f").freeze(),m(this,Ye,"f").freeze(),m(this,Xt,"f").freeze()}[zg](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(m(this,te,"f").process.argv()[0])?r=m(this,te,"f").process.argv().slice(1,2):r=m(this,te,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[iy](m(this,Zn,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),m(this,te,"f").getEnv("_")&&m(this,te,"f").getProcessArgvBin()===m(this,te,"f").getEnv("_")&&(t=m(this,te,"f").getEnv("_").replace(`${m(this,te,"f").path.dirname(m(this,te,"f").process.execPath())}/`,"")),t}[ei](){return m(this,Fa,"f")}[Gg](){return m(this,Ba,"f")}[$l](){if(!m(this,Wn,"f"))return;let t=m(this,te,"f").getEnv("LC_ALL")||m(this,te,"f").getEnv("LC_MESSAGES")||m(this,te,"f").getEnv("LANG")||m(this,te,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[Zg](){return this[El]().version||"unknown"}[Wg](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)m(this,te,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[El](t){let r=t||"*";if(m(this,zi,"f")[r])return m(this,zi,"f")[r];let n={};try{let i=t||m(this,te,"f").mainFilename;!t&&m(this,te,"f").path.extname(i)&&(i=m(this,te,"f").path.dirname(i));let s=m(this,te,"f").findUp(i,(a,c)=>{if(c.includes("package.json"))return"package.json"});wt(s,void 0,m(this,te,"f")),n=JSON.parse(m(this,te,"f").readFileSync(s,"utf8"))}catch{}return m(this,zi,"f")[r]=n||{},m(this,zi,"f")[r]}[dn](t,r){r=[].concat(r),r.forEach(n=>{n=this[Cl](n),m(this,Z,"f")[t].push(n)})}[Gi](t,r,n,i){this[Al](t,r,n,i,(s,a,c)=>{m(this,Z,"f")[s][a]=c})}[xl](t,r,n,i){this[Al](t,r,n,i,(s,a,c)=>{m(this,Z,"f")[s][a]=(m(this,Z,"f")[s][a]||[]).concat(c)})}[Al](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 Bi(n))t(a,n[a]);else s(r,this[Cl](n),i)}[Cl](t){return t==="__proto__"?"___proto___":t}[Il](t,r){return this[Gi](this[Il].bind(this),"key",t,r),this}[Rl](){var t,r,n,i,s,a,c,u,l,p,f,d;let h=m(this,qa,"f").pop();wt(h,void 0,m(this,te,"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(v){B(t,Z,v,"f")}}.value,configObjects:y,exitProcess:{set value(v){B(r,Qt,v,"f")}}.value,groups:{set value(v){B(n,Rr,v,"f")}}.value,output:{set value(v){B(i,at,v,"f")}}.value,exitError:{set value(v){B(s,fn,v,"f")}}.value,hasOutput:{set value(v){B(a,Bt,v,"f")}}.value,parsed:this.parsed,strict:{set value(v){B(c,Jn,v,"f")}}.value,strictCommands:{set value(v){B(u,Qn,v,"f")}}.value,strictOptions:{set value(v){B(l,Xn,v,"f")}}.value,completionCommand:{set value(v){B(p,Vt,v,"f")}}.value,parseFn:{set value(v){B(f,Ht,v,"f")}}.value,parseContext:{set value(v){B(d,Kn,v,"f")}}.value}=h,m(this,Z,"f").configObjects=y,m(this,oe,"f").unfreeze(),m(this,He,"f").unfreeze(),m(this,Ye,"f").unfreeze(),m(this,Xt,"f").unfreeze()}[Kg](t,r){return Gn(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[Yg].bind(this),getContext:this[Jg].bind(this),getHasOutput:this[Qg].bind(this),getLoggerInstance:this[Xg].bind(this),getParseContext:this[ey].bind(this),getParserConfiguration:this[ei].bind(this),getUsageConfiguration:this[Gg].bind(this),getUsageInstance:this[ty].bind(this),getValidationInstance:this[ry].bind(this),hasParseCallback:this[Ha].bind(this),isGlobalContext:this[ny].bind(this),postProcess:this[ti].bind(this),reset:this[jl].bind(this),runValidation:this[Tl].bind(this),runYargsParserAndExecuteCommands:this[is].bind(this),setHasOutput:this[oy].bind(this)}}[Yg](){return m(this,Ye,"f")}[Jg](){return m(this,ns,"f")}[Qg](){return m(this,Bt,"f")}[Xg](){return m(this,Ui,"f")}[ey](){return m(this,Kn,"f")||{}}[ty](){return m(this,oe,"f")}[ry](){return m(this,He,"f")}[Ha](){return!!m(this,Ht,"f")}[ny](){return m(this,Da,"f")}[ti](t,r,n,i){return n||Te(t)||(r||(t=this[Vg](t)),(this[ei]()["parse-positional-numbers"]||this[ei]()["parse-positional-numbers"]===void 0)&&(t=this[Wg](t)),i&&(t=zn(t,this,m(this,Xt,"f").getMiddleware(),!1))),t}[jl](t={}){B(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,Yn,"f"),Object.keys(m(this,Rr,"f")).reduce((a,c)=>{let u=m(this,Rr,"f")[c].filter(l=>!(l in n));return u.length>0&&(a[c]=u),a},{})),B(this,Rr,{},"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]=un(m(this,Z,"f")[a],c=>!n[c])}),r.envPrefix=m(this,Z,"f").envPrefix,B(this,Z,r,"f"),B(this,oe,m(this,oe,"f")?m(this,oe,"f").reset(n):Tg(this,m(this,te,"f")),"f"),B(this,He,m(this,He,"f")?m(this,He,"f").reset(n):Lg(this,m(this,oe,"f"),m(this,te,"f")),"f"),B(this,Ye,m(this,Ye,"f")?m(this,Ye,"f").reset():Ig(m(this,oe,"f"),m(this,He,"f"),m(this,Xt,"f"),m(this,te,"f")),"f"),m(this,Jt,"f")||B(this,Jt,Mg(this,m(this,oe,"f"),m(this,Ye,"f"),m(this,te,"f")),"f"),m(this,Xt,"f").reset(),B(this,Vt,null,"f"),B(this,at,"","f"),B(this,fn,null,"f"),B(this,Bt,!1,"f"),this.parsed=!1,this}[iy](t,r){return m(this,te,"f").path.relative(t,r)}[is](t,r,n,i=0,s=!1){let a=!!n||s;t=t||m(this,pn,"f"),m(this,Z,"f").__=m(this,te,"f").y18n.__,m(this,Z,"f").configuration=this[ei]();let c=!!m(this,Z,"f").configuration["populate--"],u=Object.assign({},m(this,Z,"f").configuration,{"populate--":!0}),l=m(this,te,"f").Parser.detailed(t,Object.assign({},m(this,Z,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),p=Object.assign(l.argv,m(this,Kn,"f")),f,d=l.aliases,h=!1,y=!1;Object.keys(p).forEach(v=>{v===m(this,er,"f")&&p[v]?h=!0:v===m(this,jr,"f")&&p[v]&&(y=!0)}),p.$0=this.$0,this.parsed=l,i===0&&m(this,oe,"f").clearCachedHelpMessage();try{if(this[$l](),r)return this[ti](p,c,!!n,!1);m(this,er,"f")&&[m(this,er,"f")].concat(d[m(this,er,"f")]||[]).filter(C=>C.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),h=!0),B(this,Da,!1,"f");let v=m(this,Ye,"f").getCommands(),g=m(this,Jt,"f").completionKey in p,$=h||g||s;if(p._.length){if(v.length){let A;for(let C=i||0,R;p._[C]!==void 0;C++)if(R=String(p._[C]),v.includes(R)&&R!==m(this,Vt,"f")){let I=m(this,Ye,"f").runCommand(R,this,l,C+1,s,h||y||s);return this[ti](I,c,!!n,!1)}else if(!A&&R!==m(this,Vt,"f")){A=R;break}!m(this,Ye,"f").hasDefaultCommand()&&m(this,Va,"f")&&A&&!$&&m(this,He,"f").recommendCommands(A,v)}m(this,Vt,"f")&&p._.includes(m(this,Vt,"f"))&&!g&&(m(this,Qt,"f")&&ln(!0),this.showCompletionScript(),this.exit(0))}if(m(this,Ye,"f").hasDefaultCommand()&&!$){let A=m(this,Ye,"f").runCommand(null,this,l,0,s,h||y||s);return this[ti](A,c,!!n,!1)}if(g){m(this,Qt,"f")&&ln(!0),t=[].concat(t);let A=t.slice(t.indexOf(`--${m(this,Jt,"f").completionKey}`)+1);return m(this,Jt,"f").getCompletion(A,(C,R)=>{if(C)throw new je(C.message);(R||[]).forEach(I=>{m(this,Ui,"f").log(I)}),this.exit(0)}),this[ti](p,!c,!!n,!1)}if(m(this,Bt,"f")||(h?(m(this,Qt,"f")&&ln(!0),a=!0,this.showHelp("log"),this.exit(0)):y&&(m(this,Qt,"f")&&ln(!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(A=>m(this,Z,"f").skipValidation.indexOf(A)>=0&&p[A]===!0)),!a){if(l.error)throw new je(l.error.message);if(!g){let A=this[Tl](d,{},l.error);n||(f=zn(p,this,m(this,Xt,"f").getMiddleware(),!0)),f=this[Kg](A,f??p),Te(f)&&!n&&(f=f.then(()=>zn(p,this,m(this,Xt,"f").getMiddleware(),!1)))}}}catch(v){if(v instanceof je)m(this,oe,"f").fail(v.message,v);else throw v}return this[ti](f??p,c,!!n,!0)}[Tl](t,r,n,i){let s={...this.getDemandedOptions()};return a=>{if(n)throw new je(n.message);m(this,He,"f").nonOptionCount(a),m(this,He,"f").requiredArguments(a,s);let c=!1;m(this,Qn,"f")&&(c=m(this,He,"f").unknownCommands(a)),m(this,Jn,"f")&&!c?m(this,He,"f").unknownArguments(a,t,r,!!i):m(this,Xn,"f")&&m(this,He,"f").unknownArguments(a,t,{},!1,!1),m(this,He,"f").limitedChoices(a),m(this,He,"f").implications(a),m(this,He,"f").conflicting(a)}}[oy](){B(this,Bt,!0,"f")}[ri](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(kl,"YargsInstance");var Nl=kl;function Rg(e){return!!e&&typeof e.getInternalMethods=="function"}o(Rg,"isYargsInstance");var t$=sy(hl),ay=t$;var cy=o((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),uy=o((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),ly=o((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),De={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},b5=Object.keys(De.modifier),r$=Object.keys(De.color),n$=Object.keys(De.bgColor),_5=[...r$,...n$];function i$(){let e=new Map;for(let[t,r]of Object.entries(De)){for(let[n,i]of Object.entries(r))De[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=De[n],e.set(i[0],i[1]);Object.defineProperty(De,t,{value:r,enumerable:!1})}return Object.defineProperty(De,"codes",{value:e,enumerable:!1}),De.color.close="\x1B[39m",De.bgColor.close="\x1B[49m",De.color.ansi=cy(),De.color.ansi256=uy(),De.color.ansi16m=ly(),De.bgColor.ansi=cy(10),De.bgColor.ansi256=uy(10),De.bgColor.ansi16m=ly(10),Object.defineProperties(De,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(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=>De.rgbToAnsi256(...De.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let 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)=>De.ansi256ToAnsi(De.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:o(t=>De.ansi256ToAnsi(De.hexToAnsi256(t)),"value"),enumerable:!1}}),De}o(i$,"assembleStyles");var o$=i$(),hr=o$;var za=Ot(require("process"),1),py=Ot(require("os"),1),Ml=Ot(require("tty"),1);function tr(e,t=globalThis.Deno?globalThis.Deno.args:za.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(tr,"hasFlag");var{env:Fe}=za.default,Ua;tr("no-color")||tr("no-colors")||tr("color=false")||tr("color=never")?Ua=0:(tr("color")||tr("colors")||tr("color=true")||tr("color=always"))&&(Ua=1);function s$(){if("FORCE_COLOR"in Fe)return Fe.FORCE_COLOR==="true"?1:Fe.FORCE_COLOR==="false"?0:Fe.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Fe.FORCE_COLOR,10),3)}o(s$,"envForceColor");function a$(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}o(a$,"translateLevel");function c$(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=s$();n!==void 0&&(Ua=n);let i=r?Ua:n;if(i===0)return 0;if(r){if(tr("color=16m")||tr("color=full")||tr("color=truecolor"))return 3;if(tr("color=256"))return 2}if("TF_BUILD"in Fe&&"AGENT_NAME"in Fe)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(Fe.TERM==="dumb")return s;if(za.default.platform==="win32"){let a=py.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Fe)return"GITHUB_ACTIONS"in Fe||"GITEA_ACTIONS"in Fe?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Fe)||Fe.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Fe)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Fe.TEAMCITY_VERSION)?1:0;if(Fe.COLORTERM==="truecolor"||Fe.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Fe){let a=Number.parseInt((Fe.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Fe.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Fe.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Fe.TERM)||"COLORTERM"in Fe?1:s}o(c$,"_supportsColor");function fy(e,t={}){let r=c$(e,{streamIsTTY:e&&e.isTTY,...t});return a$(r)}o(fy,"createSupportsColor");var u$={stdout:fy({isTTY:Ml.default.isatty(1)}),stderr:fy({isTTY:Ml.default.isatty(2)})},dy=u$;function hy(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(hy,"stringReplaceAll");function my(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 o+=e.slice(i),o}s(ay,"stringEncaseCRLFWithFirstIndex");var{stdout:cy,stderr:uy}=sy,Al=Symbol("GENERATOR"),Bi=Symbol("STYLER"),ro=Symbol("IS_EMPTY"),ly=["ansi","ansi","ansi256","ansi16m"],Hi=Object.create(null),Kw=s((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=cy?cy.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),jl=class jl{constructor(t){return fy(t)}};s(jl,"Chalk");var Ba=jl,fy=s(e=>{let t=s((...r)=>r.join(" "),"chalk");return Kw(t,e),Object.setPrototypeOf(t,no.prototype),t},"chalkFactory");function no(e){return fy(e)}s(no,"createChalk");Object.setPrototypeOf(no.prototype,Function.prototype);for(let[e,t]of Object.entries(pr))Hi[e]={get(){let r=Ha(this,Il(t.open,t.close,this[Bi]),this[ro]);return Object.defineProperty(this,e,{value:r}),r}};Hi.visible={get(){let e=Ha(this,this[Bi],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Cl=s((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?pr[r].ansi16m(...n):t==="ansi256"?pr[r].ansi256(pr.rgbToAnsi256(...n)):pr[r].ansi(pr.rgbToAnsi(...n)):e==="hex"?Cl("rgb",t,r,...pr.hexToRgb(...n)):pr[r][e](...n),"getModelAnsi"),Zw=["rgb","hex","ansi256"];for(let e of Zw){Hi[e]={get(){let{level:r}=this;return function(...n){let i=Il(Cl(e,ly[r],"color",...n),pr.color.close,this[Bi]);return Ha(this,i,this[ro])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Hi[t]={get(){let{level:r}=this;return function(...n){let i=Il(Cl(e,ly[r],"bgColor",...n),pr.bgColor.close,this[Bi]);return Ha(this,i,this[ro])}}}}var Yw=Object.defineProperties(()=>{},{...Hi,level:{enumerable:!0,get(){return this[Al].level},set(e){this[Al].level=e}}}),Il=s((e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},"createStyler"),Ha=s((e,t,r)=>{let n=s((...i)=>Jw(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,Yw),n[Al]=e,n[Bi]=t,n[ro]=r,n},"createBuilder"),Jw=s((e,t)=>{if(e.level<=0||!t)return e[ro]?"":t;let r=e[Bi];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=oy(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
140
- `);return o!==-1&&(t=ay(t,i,n,o)),n+t+i},"applyStyle");Object.defineProperties(no.prototype,Hi);var o5=no(),a5=no({level:uy?uy.level:0});var Jn=new Ba;function io(e,t,r){console.log(r!==void 0&&r!==t?`${Jn.yellow(`${e}:`.padEnd(20))}${Jn.magenta(t)}`:`${`${e}:`.padEnd(20)}${t}`)}s(io,"logVariable");function Qt(e){console.log(`[INFO] ${e}`)}s(Qt,"logInfo");function Qn(e){console.log(Jn.green(`[SUCCESS] ${e}`))}s(Qn,"logSuccess");function so(e,t){e instanceof Error?(console.log(Jn.red(`[ERROR] ${t||e.message}`)),process.env.VERBOSE&&console.error(e)):console.log(Jn.red(`[ERROR] ${e}`))}s(so,"logError");function Ua(e){console.log(Jn.bgYellow(`==== ${e} ====`))}s(Ua,"logBanner");var py=_t(require("fs"));function Ui(){return"0.3.9"}s(Ui,"getVersion");var _5=_t(hy());var Rl=Symbol("options_key");function ut(e){return(t,r)=>{var n,i;if(e!=null){let o={...Reflect.getMetadata(Rl,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(Rl,o,t)}}}s(ut,"YargOption");function my(e){let t=Reflect.getMetadata(Rl,e.prototype);if(!t)throw new Error(`Options for ${e.name} were not defined`);return t}s(my,"getYargsOption");function za(e){return async t=>t.options(Qw(e)).middleware(async r=>await Xw(e,r),!0)}s(za,"getBuilder");function Qw(e){return Object.entries(my(e)).reduce((t,[r,n])=>(t[r]=Object.fromEntries(Object.entries(n).filter(([i])=>!["envAlias","default"].includes(i))),t),{})}s(Qw,"getYargsOptions");async function Xw(e,t){let r=new e;for(let[n,i]of Object.entries(my(e)))r[n]=t[n]??i.default;return r}s(Xw,"loadYargsConfig");var LO=_t(Ph());var U1="Schema",z1="Body",G1="Param",W1="Response",K1="ErrorResponse",wh="z.void()",Jc={bindings:["z"],from:"zod"};var Qc={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,importPath:"ts",configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:U1,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var $h={"Content-Type":"application/json",Accept:"application/json"},Z1="data";var Y1=s(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),xn=s(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var Qr=Symbol.for("@ts-pattern/matcher"),K3=Symbol.for("@ts-pattern/isVariadic"),eu="@ts-pattern/anonymous-select-key",Eh=s(e=>!!(e&&typeof e=="object"),"r"),Xc=s(e=>e&&!!e[Qr],"i"),Br=s((e,t,r)=>{if(Xc(e)){let n=e[Qr](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(Eh(e)){if(!Eh(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let a of e.keys()){let c=e[a];Xc(c)&&c[K3]?o.push(c):o.length?i.push(c):n.push(c)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),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)=>Br(l,a[p],r))&&i.every((l,p)=>Br(l,c[p],r))&&(o.length===0||Br(o[0],u,r))}return e.length===t.length&&e.every((a,c)=>Br(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Xc(o=i)&&o[Qr]().matcherType==="optional")&&Br(i,t[n],r);var o})}return Object.is(t,e)},"s"),Rn=s(e=>{var t,r,n;return Eh(e)?Xc(e)?(t=(r=(n=e[Qr]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Qo(e,Rn):Qo(Object.values(e),Rn):[]},"o"),Qo=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function ir(e){return Object.assign(e,{optional:s(()=>Z3(e),"optional"),and:s(t=>De(e,t),"and"),or:s(t=>Y3(e,t),"or"),select:s(t=>t===void 0?J1(e):J1(t,e),"select")})}s(ir,"u");function Z3(e){return ir({[Qr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return t===void 0?(Rn(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Br(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>Rn(e),"getSelectionKeys"),matcherType:"optional"})})}s(Z3,"h");function De(...e){return ir({[Qr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>Br(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Qo(e,Rn),"getSelectionKeys"),matcherType:"and"})})}s(De,"m");function Y3(...e){return ir({[Qr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return Qo(e,Rn).forEach(i=>n(i,void 0)),{matched:e.some(i=>Br(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Qo(e,Rn),"getSelectionKeys"),matcherType:"or"})})}s(Y3,"d");function Oe(e){return{[Qr]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(Oe,"p");function J1(...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 ir({[Qr]:()=>({match:s(n=>{let i={[t??eu]:n};return{matched:r===void 0||Br(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??eu].concat(r===void 0?[]:Rn(r)),"getSelectionKeys")})})}s(J1,"y");function Fr(e){return typeof e=="number"}s(Fr,"v");function An(e){return typeof e=="string"}s(An,"b");function Cn(e){return typeof e=="bigint"}s(Cn,"w");var L9=ir(Oe(function(e){return!0}));var In=s(e=>Object.assign(ir(e),{startsWith:s(t=>{return In(De(e,(r=t,Oe(n=>An(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return In(De(e,(r=t,Oe(n=>An(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>In(De(e,(r=>Oe(n=>An(n)&&n.length>=r))(t))),"minLength"),length:s(t=>In(De(e,(r=>Oe(n=>An(n)&&n.length===r))(t))),"length"),maxLength:s(t=>In(De(e,(r=>Oe(n=>An(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return In(De(e,(r=t,Oe(n=>An(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return In(De(e,(r=t,Oe(n=>An(n)&&!!n.match(r)))));var r},"regex")}),"j"),F9=In(Oe(An)),Vr=s(e=>Object.assign(ir(e),{between:s((t,r)=>Vr(De(e,((n,i)=>Oe(o=>Fr(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Vr(De(e,(r=>Oe(n=>Fr(n)&&n<r))(t))),"lt"),gt:s(t=>Vr(De(e,(r=>Oe(n=>Fr(n)&&n>r))(t))),"gt"),lte:s(t=>Vr(De(e,(r=>Oe(n=>Fr(n)&&n<=r))(t))),"lte"),gte:s(t=>Vr(De(e,(r=>Oe(n=>Fr(n)&&n>=r))(t))),"gte"),int:s(()=>Vr(De(e,Oe(t=>Fr(t)&&Number.isInteger(t)))),"int"),finite:s(()=>Vr(De(e,Oe(t=>Fr(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>Vr(De(e,Oe(t=>Fr(t)&&t>0))),"positive"),negative:s(()=>Vr(De(e,Oe(t=>Fr(t)&&t<0))),"negative")}),"x"),V9=Vr(Oe(Fr)),jn=s(e=>Object.assign(ir(e),{between:s((t,r)=>jn(De(e,((n,i)=>Oe(o=>Cn(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>jn(De(e,(r=>Oe(n=>Cn(n)&&n<r))(t))),"lt"),gt:s(t=>jn(De(e,(r=>Oe(n=>Cn(n)&&n>r))(t))),"gt"),lte:s(t=>jn(De(e,(r=>Oe(n=>Cn(n)&&n<=r))(t))),"lte"),gte:s(t=>jn(De(e,(r=>Oe(n=>Cn(n)&&n>=r))(t))),"gte"),positive:s(()=>jn(De(e,Oe(t=>Cn(t)&&t>0))),"positive"),negative:s(()=>jn(De(e,Oe(t=>Cn(t)&&t<0))),"negative")}),"A"),B9=jn(Oe(Cn)),H9=ir(Oe(function(e){return typeof e=="boolean"})),U9=ir(Oe(function(e){return typeof e=="symbol"})),z9=ir(Oe(function(e){return e==null})),G9=ir(Oe(function(e){return e!=null}));var Ih=class Ih extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};s(Ih,"W");var xh=Ih,Ah={matched:!1,value:void 0};function vt(e){return new Ch(e,Ah)}s(vt,"z");var Jo=class Jo{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let o=!1,a={},c=s((l,p)=>{o=!0,a[l]=p},"a"),u=!n.some(l=>Br(l,this.input,c))||i&&!i(this.input)?Ah:{matched:!0,value:r(o?eu in a?a[eu]:a:this.input,this.input)};return new Jo(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Jo(this.input,n?{matched:!0,value:r(this.input,this.input)}:Ah)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new xh(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(Jo,"I");var Ch=Jo;var Q1=["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 jh=2,X1=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],eO=["query","header","path"],_i=["get","put","post","delete","options","head","patch","trace"],tO=["string","number","integer","boolean"],Cs=["allOf","anyOf","oneOf"];function Si(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(Si,"pick");var wr=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Xo=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),tu=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),sr=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),rO=s(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),nO=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),iO=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix");var oO=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),ea=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Nh=s(e=>ea(e).split("/").at(-1),"getSchemaNameByRef");function Je(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s(Je,"isReferenceObject");function aO(e){let t=J3(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return sr(t)}s(aO,"normalizeString");function cO(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s(cO,"wrapWithQuotesIfNeeded");function uO(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s(uO,"unwrapQuotesIfNeeded");function J3(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(J3,"prefixStringStartingWithNumberIfNeeded");function kh(e){let t=e.replaceAll("_","#");return sr(t.replaceAll("-","_")).replaceAll("#","_")}s(kh,"pathParamToVariableName");var Oi=s(e=>tO.includes(e),"isPrimitiveType");function lO(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}s(lO,"escapeControlCharacters");function Is(e){return e.includes("application/")&&e.includes("json")||X1.includes(e)||e.includes("text/")}s(Is,"isParamMediaTypeAllowed");function Mh(e){return e>=200&&e<300}s(Mh,"isMainResponseStatus");function qh(e){return!(e>=200&&e<300)}s(qh,"isErrorStatus");function ru(e){return e==="application/json"}s(ru,"isMediaTypeAllowed");function Rh({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let o=`${t}${eM(e)}`,a=r.operationId?xn(r.operationId):o;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((u,l)=>l===0?u:wr(u)).join("");if(n.removeOperationPrefixEndingWith&&!i){let c=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(c,"")}return Q1.includes(a)?o:a}s(Rh,"getOperationName");function Dh({path:e,method:t,operation:r,openApiDoc:n,options:i}){let o=Q3(n,i),a=i.splitByTags?js(r,i):i.defaultTag,c=Rh({path:e,method:t,operation:r,options:i});return o[a].filter(l=>Rh({path:e,method:t,operation:l,options:i})===c).length===1?c:Rh({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}s(Dh,"getUniqueOperationName");function Q3(e,t){let r={};for(let n in e.paths){let i=e.paths[n],o=Si(i,_i);for(let a in o){let c=o[a];if(!c||c.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let u=t.splitByTags?js(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}s(Q3,"getOperationsByTag");function fO(e,t,r){let n=[];for(let i in t.paths){let o=t.paths[i],a=Si(o,_i);for(let c in a){let u=a[c];if(!u||u.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let l=Dh({path:i,method:c,operation:u,openApiDoc:t,options:r});n.push(l)}}return n.filter(i=>i===e).length<=1}s(fO,"isUniqueOperationNameWithoutSplitByTags");function Pi(e){return rO(e)}s(Pi,"formatTag");function js(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return Pi(r??t.defaultTag)}s(js,"getOperationTag");var sO=/({\w+})/g,X3=/[^\w\-]+/g;function eM(e){e=wr(tu(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(sO)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(sO,"")}By${wr(r.slice(1,-1))}`}return e.replace(X3,"_")}s(eM,"pathToVariableName");var Th=/{(\b\w+(?:-\w+)*\b)}/g;function pO(e){let t=e.match(Th);return t===null?e.replaceAll(Th,":$1"):(t.forEach(r=>{let n=kh(r.replaceAll(Th,":$1"));e=e.replaceAll(r,n)}),e)}s(pO,"replaceHyphenatedPath");function Xr(e){return!Je(e)}s(Xr,"isSchemaObject");function dO(e){return e.type==="array"}s(dO,"isArraySchemaObject");function hO(e){if(!e.allOf)throw new Error("Function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,o)=>{if(tM(o)){let a=o.required;i[0].push(...a??[])}else i[1].push(o);return i},[[],[]]),n={properties:t.reduce((i,o)=>(i[o]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:s((i,o)=>{if(Je(i)){let a=o(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")}}s(hO,"inferRequiredSchema");var tM=s(e=>!Je(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");function wi({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Xo(t)}/`:""}${Xo(t)}.${i}`:i}s(wi,"getTagFileName");var $t=s(({type:e,tag:t,options:r})=>`${wr(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var Tn=s((e,t)=>nO(wr(aO(e)),t),"getZodSchemaName"),kt=s(e=>!e.startsWith("z."),"isNamedZodSchema"),Rs=s((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),mO=s(e=>sr(`${e}_${z1}`),"getBodyZodSchemaName"),gO=s((e,t)=>sr(`${e}_${t}${G1}`),"getParamZodSchemaName"),yO=s(e=>sr(`${e}${W1}`),"getMainResponseZodSchemaName"),vO=s((e,t)=>sr(`${e}_${t}_${K1}`),"getErrorResponseZodSchemaName");var ta=s((e,t)=>iO(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),bO=s(({resolver:e,zodSchemaName:t,options:r})=>kt(t)?`${r.includeNamespaces?`${$t({type:"models",tag:e.getTagByZodSchemaName(t),options:r})}.`:""}${t}`:t,"getImportedZodSchemaName"),Lh=s(({resolver:e,zodSchemaName:t,options:r})=>kt(t)?`${r.includeNamespaces?`${$t({type:"models",tag:e.getTagByZodSchemaName(t),options:r})}.`:""}${ta(t,r)}`:t,"getImportedZodSchemaInferedTypeName");function _O(e){return vt(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(_O,"primitiveTypeToTsType");var ra=s(e=>Xo(sr(e.operationName)),"getEndpointName");function SO(e,t){return`${t.includeNamespaces?`${$t({type:"endpoints",tag:na(e,t),options:t})}.`:""}${ra(e)}`}s(SO,"getImportedEndpointName");var OO=s(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function na(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return Pi(r??t.defaultTag)}s(na,"getEndpointTag");function Fh({resolver:e,endpoint:t,options:r}){return t.parameters.map(n=>{var o,a,c,u;let i="string";if(kt(n.zodSchema))i=Lh({resolver:e,zodSchemaName:n.zodSchema,options:r});else if((o=n.parameterObject)!=null&&o.schema&&Xr(n.parameterObject.schema)){let l=(c=(a=n.parameterObject)==null?void 0:a.schema)==null?void 0:c.type;l&&Oi(l)&&(i=_O(l))}return{name:xn(n.name),type:i,paramType:n.type,required:((u=n.parameterObject)==null?void 0:u.required)??!0}}).sort((n,i)=>{if(n.required===i.required){let o=["Path","Body","Query","Header"];return o.indexOf(n.paramType)-o.indexOf(i.paramType)}return n.required?-1:1})}s(Fh,"mapEndpointParamsToFunctionParams");function PO(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let o=Y1(i.name)?i.name:`"${i.name}"`,a=xn(i.name);return{...i,name:o,value:a}}),r={};return e.requestFormat!==$h["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==$h.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=xn(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}s(PO,"getEndpointConfig");function Hr({schema:e,meta:t,options:r}){let n=[];vt(e.type).with("string",()=>n.push(iM(e))).with("number","integer",()=>n.push(oM(e))).with("array",()=>n.push(aM(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
139
+ `,i)}while(n!==-1);return s+=e.slice(i),s}o(my,"stringEncaseCRLFWithFirstIndex");var{stdout:gy,stderr:yy}=dy,ql=Symbol("GENERATOR"),Zi=Symbol("STYLER"),os=Symbol("IS_EMPTY"),vy=["ansi","ansi","ansi256","ansi16m"],Wi=Object.create(null),l$=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=gy?gy.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),Fl=class Fl{constructor(t){return by(t)}};o(Fl,"Chalk");var Ga=Fl,by=o(e=>{let t=o((...r)=>r.join(" "),"chalk");return l$(t,e),Object.setPrototypeOf(t,ss.prototype),t},"chalkFactory");function ss(e){return by(e)}o(ss,"createChalk");Object.setPrototypeOf(ss.prototype,Function.prototype);for(let[e,t]of Object.entries(hr))Wi[e]={get(){let r=Za(this,Ll(t.open,t.close,this[Zi]),this[os]);return Object.defineProperty(this,e,{value:r}),r}};Wi.visible={get(){let e=Za(this,this[Zi],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Dl=o((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?hr[r].ansi16m(...n):t==="ansi256"?hr[r].ansi256(hr.rgbToAnsi256(...n)):hr[r].ansi(hr.rgbToAnsi(...n)):e==="hex"?Dl("rgb",t,r,...hr.hexToRgb(...n)):hr[r][e](...n),"getModelAnsi"),f$=["rgb","hex","ansi256"];for(let e of f$){Wi[e]={get(){let{level:r}=this;return function(...n){let i=Ll(Dl(e,vy[r],"color",...n),hr.color.close,this[Zi]);return Za(this,i,this[os])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Wi[t]={get(){let{level:r}=this;return function(...n){let i=Ll(Dl(e,vy[r],"bgColor",...n),hr.bgColor.close,this[Zi]);return Za(this,i,this[os])}}}}var p$=Object.defineProperties(()=>{},{...Wi,level:{enumerable:!0,get(){return this[ql].level},set(e){this[ql].level=e}}}),Ll=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"),Za=o((e,t,r)=>{let n=o((...i)=>d$(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,p$),n[ql]=e,n[Zi]=t,n[os]=r,n},"createBuilder"),d$=o((e,t)=>{if(e.level<=0||!t)return e[os]?"":t;let r=e[Zi];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=hy(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
140
+ `);return s!==-1&&(t=my(t,i,n,s)),n+t+i},"applyStyle");Object.defineProperties(ss.prototype,Wi);var I5=ss(),R5=ss({level:yy?yy.level:0});var Ue=new Ga;function as(e,t,r){console.log(r!==void 0&&r!==t?`${Ue.yellow(`${e}:`.padEnd(20))}${Ue.magenta(t)}`:`${`${e}:`.padEnd(20)}${t}`)}o(as,"logVariable");function mr(e){console.log(`[INFO] ${e}`)}o(mr,"logInfo");function ni(e){console.log(Ue.green(`[SUCCESS] ${e}`))}o(ni,"logSuccess");function cs(e,t){e instanceof Error?(console.log(Ue.red(`[ERROR] ${t||e.message}`)),process.env.VERBOSE&&console.error(e)):console.log(Ue.red(`[ERROR] ${e}`))}o(cs,"logError");function Wa(e){console.log(Ue.bgYellow(`==== ${e} ====`))}o(Wa,"logBanner");var _y=Ot(require("fs"));function Ki(){return"0.4.1"}o(Ki,"getVersion");var U5=Ot(Py());var Vl=Symbol("options_key");function ct(e){return(t,r)=>{var n,i;if(e!=null){let s={...Reflect.getMetadata(Vl,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(Vl,s,t)}}}o(ct,"YargOption");function Oy(e){let t=Reflect.getMetadata(Vl,e.prototype);if(!t)throw new Error(`Options for ${e.name} were not defined`);return t}o(Oy,"getYargsOption");function Ka(e){return async t=>t.options(h$(e)).middleware(async r=>await m$(e,r),!0)}o(Ka,"getBuilder");function h$(e){return Object.entries(Oy(e)).reduce((t,[r,n])=>(t[r]=Object.fromEntries(Object.entries(n).filter(([i])=>!["envAlias","default"].includes(i))),t),{})}o(h$,"getYargsOptions");async function m$(e,t){let r=new e;for(let[n,i]of Object.entries(Oy(e)))r[n]=t[n]??i.default;return r}o(m$,"loadYargsConfig");var tO=Ot(jh());var QP="Schema",XP="Enum",e1="Body",t1="Param",r1="Response",n1="ErrorResponse",Th="z.void()",tu={bindings:["z"],from:"zod"};var ru={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,importPath:"ts",extractEnums:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:QP,enumSuffix:XP,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var i1={"invalid-schema":"Invalid Schemas","invalid-operation-id":"Invalid Operation IDs","missing-path-parameter":"Missing Path Parameters","not-allowed-inline-enum":"Not Allowed Inline Enums"};var Nh={"Content-Type":"application/json",Accept:"application/json"},o1="data";var s1=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),In=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 rn=Symbol.for("@ts-pattern/matcher"),lM=Symbol.for("@ts-pattern/isVariadic"),iu="@ts-pattern/anonymous-select-key",kh=o(e=>!!(e&&typeof e=="object"),"r"),nu=o(e=>e&&!!e[rn],"i"),zr=o((e,t,r)=>{if(nu(e)){let n=e[rn](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(kh(e)){if(!kh(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];nu(c)&&c[lM]?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)=>zr(l,a[p],r))&&i.every((l,p)=>zr(l,c[p],r))&&(s.length===0||zr(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>zr(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||nu(s=i)&&s[rn]().matcherType==="optional")&&zr(i,t[n],r);var s})}return Object.is(t,e)},"s"),kn=o(e=>{var t,r,n;return kh(e)?nu(e)?(t=(r=(n=e[rn]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?ea(e,kn):ea(Object.values(e),kn):[]},"o"),ea=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function ar(e){return Object.assign(e,{optional:o(()=>fM(e),"optional"),and:o(t=>Le(e,t),"and"),or:o(t=>pM(e,t),"or"),select:o(t=>t===void 0?a1(e):a1(t,e),"select")})}o(ar,"u");function fM(e){return ar({[rn]:()=>({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:zr(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>kn(e),"getSelectionKeys"),matcherType:"optional"})})}o(fM,"h");function Le(...e){return ar({[rn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>zr(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>ea(e,kn),"getSelectionKeys"),matcherType:"and"})})}o(Le,"m");function pM(...e){return ar({[rn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return ea(e,kn).forEach(i=>n(i,void 0)),{matched:e.some(i=>zr(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>ea(e,kn),"getSelectionKeys"),matcherType:"or"})})}o(pM,"d");function Pe(e){return{[rn]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(Pe,"p");function a1(...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 ar({[rn]:()=>({match:o(n=>{let i={[t??iu]:n};return{matched:r===void 0||zr(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??iu].concat(r===void 0?[]:kn(r)),"getSelectionKeys")})})}o(a1,"y");function Hr(e){return typeof e=="number"}o(Hr,"v");function Rn(e){return typeof e=="string"}o(Rn,"b");function jn(e){return typeof e=="bigint"}o(jn,"w");var lB=ar(Pe(function(e){return!0}));var Tn=o(e=>Object.assign(ar(e),{startsWith:o(t=>{return Tn(Le(e,(r=t,Pe(n=>Rn(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return Tn(Le(e,(r=t,Pe(n=>Rn(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>Tn(Le(e,(r=>Pe(n=>Rn(n)&&n.length>=r))(t))),"minLength"),length:o(t=>Tn(Le(e,(r=>Pe(n=>Rn(n)&&n.length===r))(t))),"length"),maxLength:o(t=>Tn(Le(e,(r=>Pe(n=>Rn(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return Tn(Le(e,(r=t,Pe(n=>Rn(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return Tn(Le(e,(r=t,Pe(n=>Rn(n)&&!!n.match(r)))));var r},"regex")}),"j"),fB=Tn(Pe(Rn)),Ur=o(e=>Object.assign(ar(e),{between:o((t,r)=>Ur(Le(e,((n,i)=>Pe(s=>Hr(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Ur(Le(e,(r=>Pe(n=>Hr(n)&&n<r))(t))),"lt"),gt:o(t=>Ur(Le(e,(r=>Pe(n=>Hr(n)&&n>r))(t))),"gt"),lte:o(t=>Ur(Le(e,(r=>Pe(n=>Hr(n)&&n<=r))(t))),"lte"),gte:o(t=>Ur(Le(e,(r=>Pe(n=>Hr(n)&&n>=r))(t))),"gte"),int:o(()=>Ur(Le(e,Pe(t=>Hr(t)&&Number.isInteger(t)))),"int"),finite:o(()=>Ur(Le(e,Pe(t=>Hr(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>Ur(Le(e,Pe(t=>Hr(t)&&t>0))),"positive"),negative:o(()=>Ur(Le(e,Pe(t=>Hr(t)&&t<0))),"negative")}),"x"),pB=Ur(Pe(Hr)),Nn=o(e=>Object.assign(ar(e),{between:o((t,r)=>Nn(Le(e,((n,i)=>Pe(s=>jn(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Nn(Le(e,(r=>Pe(n=>jn(n)&&n<r))(t))),"lt"),gt:o(t=>Nn(Le(e,(r=>Pe(n=>jn(n)&&n>r))(t))),"gt"),lte:o(t=>Nn(Le(e,(r=>Pe(n=>jn(n)&&n<=r))(t))),"lte"),gte:o(t=>Nn(Le(e,(r=>Pe(n=>jn(n)&&n>=r))(t))),"gte"),positive:o(()=>Nn(Le(e,Pe(t=>jn(t)&&t>0))),"positive"),negative:o(()=>Nn(Le(e,Pe(t=>jn(t)&&t<0))),"negative")}),"A"),dB=Nn(Pe(jn)),hB=ar(Pe(function(e){return typeof e=="boolean"})),mB=ar(Pe(function(e){return typeof e=="symbol"})),gB=ar(Pe(function(e){return e==null})),yB=ar(Pe(function(e){return e!=null}));var Lh=class Lh 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(Lh,"W");var Mh=Lh,qh={matched:!1,value:void 0};function _t(e){return new Dh(e,qh)}o(_t,"z");var Xs=class Xs{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=>zr(l,this.input,c))||i&&!i(this.input)?qh:{matched:!0,value:r(s?iu in a?a[iu]:a:this.input,this.input)};return new Xs(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Xs(this.input,n?{matched:!0,value:r(this.input,this.input)}:qh)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Mh(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(Xs,"I");var Dh=Xs;var c1=["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 Fh=2,u1=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],l1=["query","header","path"],Mn=["get","put","post","delete","options","head","patch","trace"],f1=["string","number","integer","boolean"],Vh=["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 St=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),ta=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),ou=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),qt=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),p1=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),Bh=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),d1=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),dM=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"),Hh=o(e=>{let t=e.map(St).map(hM).map(r=>mM(r)).flat();return dM(t)},"getMostCommonAdjacentCombinationSplit"),hM=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),mM=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");function Dn(e){return p1(e)}o(Dn,"formatTag");function $i(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return Dn(r??t.defaultTag)}o($i,"getOperationTag");function h1(e,t){let r={};for(let n in e.paths){let i=e.paths[n],s=qn(i,Mn);for(let a in s){let c=s[a];if(!c||c.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let u=t.splitByTags?$i(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(h1,"getOperationsByTag");var g1=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),Ei=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),ko=o(e=>Ei(e).split("/").at(-1),"getSchemaNameByRef");function Ve(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(Ve,"isReferenceObject");function Gh(e){let t=gM(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return qt(t)}o(Gh,"normalizeString");function y1(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(y1,"wrapWithQuotesIfNeeded");function v1(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(v1,"unwrapQuotesIfNeeded");function gM(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(gM,"prefixStringStartingWithNumberIfNeeded");function Zh(e){let t=e.replaceAll("_","#");return qt(t.replaceAll("-","_")).replaceAll("#","_")}o(Zh,"pathParamToVariableName");var xi=o(e=>f1.includes(e),"isPrimitiveType");function b1(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(b1,"escapeControlCharacters");function Mo(e){return e.includes("application/")&&e.includes("json")||u1.includes(e)||e.includes("text/")}o(Mo,"isParamMediaTypeAllowed");function su(e){return e>=200&&e<300}o(su,"isMainResponseStatus");function au(e){return!(e>=200&&e<300)}o(au,"isErrorStatus");function cu(e){return e==="application/json"}o(cu,"isMediaTypeAllowed");function Uh({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let s=`${t}${vM(e)}`,a=r.operationId?In(r.operationId):s;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((u,l)=>l===0?u:St(u)).join("");if(n.removeOperationPrefixEndingWith&&!i){let c=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(c,"")}return c1.includes(a)?s:a}o(Uh,"getOperationName");function ra({path:e,method:t,operation:r,operationsByTag:n,options:i}){let s=i.splitByTags?$i(r,i):i.defaultTag,a=Uh({path:e,method:t,operation:r,options:i});return n[s].filter(u=>Uh({path:e,method:t,operation:u,options:i})===a).length===1?a:Uh({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}o(ra,"getUniqueOperationName");function _1(e,t,r){let n=[];for(let i in e.paths){let s=e.paths[i],a=qn(s,Mn);for(let c in a){let u=a[c];if(!u||u.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let l=ra({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(_1,"getUniqueOperationNamesWithoutSplitByTags");var m1=/({\w+})/g,yM=/[^\w\-]+/g;function vM(e){e=St(ou(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(m1)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(m1,"")}By${St(r.slice(1,-1))}`}return e.replace(yM,"_")}o(vM,"pathToVariableName");var zh=/{(\b\w+(?:-\w+)*\b)}/g;function S1(e){let t=e.match(zh);return t===null?e.replaceAll(zh,":$1"):(t.forEach(r=>{let n=Zh(r.replaceAll(zh,":$1"));e=e.replaceAll(r,n)}),e)}o(S1,"replaceHyphenatedPath");function Gr(e){return!Ve(e)}o(Gr,"isSchemaObject");function P1(e){return e.type==="array"}o(P1,"isArraySchemaObject");function O1(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(bM(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(Ve(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(O1,"inferRequiredSchema");var bM=o(e=>!Ve(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");function Ai({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${ta(t)}/`:""}${ta(t)}.${i}`:i}o(Ai,"getTagFileName");var dt=o(({type:e,tag:t,options:r})=>`${St(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var Ln=o((e,t)=>Bh(St(Gh(e)),t),"getZodSchemaName"),w1=o((e,t,r)=>Bh(St(Gh(e)),`${t}${r}`),"getEnumZodSchemaName"),Dt=o(e=>!e.startsWith("z."),"isNamedZodSchema"),Ci=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),uu=o(e=>qt(`${e}_${e1}`),"getBodyZodSchemaName"),$1=o((e,t)=>qt(`${e}_${t}${t1}`),"getParamZodSchemaName"),_M=o(e=>qt(`${e}${r1}`),"getMainResponseZodSchemaName"),SM=o((e,t)=>qt(`${e}_${t}_${n1}`),"getErrorResponseZodSchemaName");function lu({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=Ci(t,r,n);return!su(i)&&e!=="default"&&au(i)?SM(s,e):_M(s)}o(lu,"getResponseZodSchemaName");var na=o((e,t)=>d1(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),E1=o((e,t)=>Dt(t)?`${e.options.includeNamespaces?`${dt({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Wh=o((e,t)=>Dt(t)?`${e.options.includeNamespaces?`${dt({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${na(t,e.options)}`:t,"getImportedZodSchemaInferedTypeName");function x1(e){return _t(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(x1,"primitiveTypeToTsType");var ia=o(e=>ta(qt(e.operationName)),"getEndpointName");function A1(e,t){return`${t.includeNamespaces?`${dt({type:"endpoints",tag:oa(e,t),options:t})}.`:""}${ia(e)}`}o(A1,"getImportedEndpointName");var C1=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function oa(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return Dn(r??t.defaultTag)}o(oa,"getEndpointTag");function Kh(e,t){return t.parameters.map(r=>{var i,s,a,c;let n="string";if(Dt(r.zodSchema))n=Wh(e,r.zodSchema);else if((i=r.parameterObject)!=null&&i.schema&&Gr(r.parameterObject.schema)){let u=(a=(s=r.parameterObject)==null?void 0:s.schema)==null?void 0:a.type;u&&xi(u)&&(n=x1(u))}return{name:In(r.name),type:n,paramType:r.type,required:((c=r.parameterObject)==null?void 0:c.required)??!0}}).sort((r,n)=>{if(r.required===n.required){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.required?-1:1})}o(Kh,"mapEndpointParamsToFunctionParams");function I1(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=s1(i.name)?i.name:`"${i.name}"`,a=In(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==Nh["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==Nh.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=In(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(I1,"getEndpointConfig");function R1(e){return{type:"invalid-schema",message:`${e} has both reference and composite keyword`}}o(R1,"getInvalidSchemaError");function j1(e){return{type:"invalid-operation-id",message:`Operation ${Ue.gray(e)}`}}o(j1,"getInvalidOperationIdError");function T1(e,t){return{type:"missing-path-parameter",message:`Path ${Ue.gray(t)} is missing [${e.map(({name:r})=>Ue.gray(r)).join(", ")}]`}}o(T1,"getMissingPathParameterError");function N1(e){return{type:"not-allowed-inline-enum",message:e}}o(N1,"getNotAllowedInlineEnumError");function k1(e){return e.reduce((t,r)=>({...t,[r.type]:[...t[r.type]??[],r.message]}),{})}o(k1,"groupByType");function Zr({schema:e,meta:t,options:r}){let n=[];_t(e.type).with("string",()=>n.push(wM(e))).with("number","integer",()=>n.push(EM(e))).with("array",()=>n.push(xM(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
141
141
  `,"\r",`\r
142
- `].some(o=>String.prototype.includes.call(e.description,o))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(rM(e,t),(r==null?void 0:r.withDefaultValues)!==!1?nM(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}s(Hr,"getZodChain");function rM(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}s(rM,"getZodChainablePresence");function nM(e){return e.default!==void 0?`default(${vt(e.type).with("number","integer",()=>uO(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}s(nM,"getZodChainableDefault");function iM(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(${sM(e.pattern)})`),e.format){let r=vt(e.format).with("email",()=>"email()").with("hostname",()=>"url()").with("uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}s(iM,"getZodChainableStringValidations");function sM(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=lO(e),`/${e}/`}s(sM,"formatPatternIfNeeded");function oM(e){let t=[];return e.enum?"":(e.type==="integer"&&t.push("int()"),e.minimum!==void 0?e.exclusiveMinimum===!0?t.push(`gt(${e.minimum})`):t.push(`gte(${e.minimum})`):typeof e.exclusiveMinimum=="number"&&t.push(`gt(${e.exclusiveMinimum})`),e.maximum!==void 0?e.exclusiveMaximum===!0?t.push(`lt(${e.maximum})`):t.push(`lte(${e.maximum})`):typeof e.exclusiveMaximum=="number"&&t.push(`lt(${e.exclusiveMaximum})`),e.multipleOf&&t.push(`multipleOf(${e.multipleOf})`),t.join("."))}s(oM,"getZodChainableNumberValidations");function aM(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}s(aM,"getZodChainableArrayValidations");var $i=s(e=>e.reduce((t,r)=>t+r,0),"sum");function rt({current:e,schema:t}){if(!t)return e;if(Je(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?Et("oneOf")+rt({current:e,schema:{...t,type:t.type[0]}}):e+Et("oneOf")+$i(t.type.map(r=>rt({current:0,schema:{...t,type:r}})));if(t.oneOf)return t.oneOf.length===1?Et("oneOf")+rt({current:e,schema:t.oneOf[0]}):e+Et("oneOf")+$i(t.oneOf.map(r=>rt({current:0,schema:r})));if(t.anyOf)return t.anyOf.length===1?Et("anyOf")+rt({current:e,schema:t.anyOf[0]}):e+Et("anyOf")+$i(t.anyOf.map(r=>rt({current:0,schema:r})));if(t.allOf)return t.allOf.length===1?Et("allOf")+rt({current:e,schema:t.allOf[0]}):e+Et("allOf")+$i(t.allOf.map(r=>rt({current:0,schema:r})));if(!t.type)return e;if(Oi(t.type))return t.enum?e+wO(t)+Et("enum")+$i(t.enum.map(r=>rt({current:0,schema:r}))):e+wO(t);if(t.type==="array")return t.items?Et("array")+rt({current:e,schema:t.items}):Et("array")+rt({current:e,schema:void 0});if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?Et("record")+rt({current:e,schema:void 0}):Et("record")+rt({current:e,schema:t.additionalProperties});if(t.properties){let r=Object.values(t.properties);return e+Et("object")+$i(r.map(n=>rt({current:0,schema:n})))}return Et("empty-object")+rt({current:e,schema:void 0})}return e}s(rt,"getOpenAPISchemaComplexity");function wO(e){let t=e.type;return t?vt(t).with("string",()=>1).with("number",()=>1).with("integer",()=>1).with("boolean",()=>1).otherwise(()=>0):0}s(wO,"complexityByType");function Et(e){return e?vt(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum",()=>1).with("array",()=>1).with("record",()=>1).with("empty-object",()=>1).with("object",()=>2).otherwise(()=>0):0}s(Et,"complexityByComposite");var Vh=class Vh{constructor(t,r,n={referencedBy:[]}){this.schema=t;this.resolver=r;Je(t)&&(this.ref=t.$ref),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;children=[];meta;getCodeString(t,r){var o,a;if((!this.ref||!this.resolver)&&this.code)return this.code;let n=(o=this.resolver)==null?void 0:o.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.includeNamespaces&&i&&i!==t?`${$t({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return rt({current:0,schema:this.schema})}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};s(Vh,"ZodSchema");var nu=Vh;function He({schema:e,resolver:t,meta:r,tag:n,options:i}){var v;if(!e)throw new Error("Schema is required");let o=new nu(e,t,r),a={parent:o.inherit(r==null?void 0:r.parent),referencedBy:[...o.meta.referencedBy]},c={resolver:t,meta:a,tag:n,options:i};if(Je(e))return cM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});let u=lM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(u)return u;let l=uM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(l)return l;let p=fM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(p)return p;let f=pM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(f)return f;let d=dM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(d)return d;let h=i!=null&&i.allReadonly?".readonly()":"";if(dO(e))return e.items?o.assign(`z.array(${He({...c,schema:e.items}).getCodeString(n,i)}${Hr({schema:e.items,meta:{...a,isRequired:!0},options:i})})${h}`):o.assign(`z.array(z.any())${h}`);let y=e.type?e.type.toLowerCase():void 0;if(y==="object"||e.properties||e.additionalProperties){let g=(i==null?void 0:i.additionalPropertiesDefaultValue)!==void 0?i==null?void 0:i.additionalPropertiesDefaultValue:!0,A=(e.additionalProperties===null||e.additionalProperties===void 0?g:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return o.assign(`z.record(${He({...c,schema:e.additionalProperties}).getCodeString(n,i)+Hr({schema:e.additionalProperties,meta:{...a,isRequired:!0},options:i})})`);let I=e.required&&e.required.length>0,R=i!=null&&i.withImplicitRequiredProps?!1:!((v=e.required)!=null&&v.length),C="{}";e.properties&&(C="{ "+Object.entries(e.properties).map(([Pe,Y])=>{var Z;let k={...a,isRequired:R?!0:I?(Z=e.required)==null?void 0:Z.includes(Pe):i==null?void 0:i.withImplicitRequiredProps,name:Pe},j=Y;if(Je(Y)&&t&&(j=t.getSchemaByRef(Y.$ref),!j))throw new Error(`Schema ${Y.$ref} not found`);let M=He({...c,schema:Y,meta:k}).getCodeString(n,i)+Hr({schema:j,meta:k,options:i});return[Pe,M]}).map(([Pe,Y])=>`${cO(Pe)}: ${Y}`).join(", ")+" }");let ae=R?".partial()":"",ce=i!=null&&i.strictObjects?".strict()":"";return o.assign(`z.object(${C})${ae}${ce}${A}${h}`)}if(!y)return o.assign("z.unknown()");throw new Error(`Unsupported schema type: ${y}`)}s(He,"getZodSchema");function cM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Je(e)||!r)return;let a=t.meta.referencedBy.slice(0,-1).map(l=>(r==null?void 0:r.getZodSchemaNameByRef(l.ref))??l.ref),c=r.getZodSchemaNameByRef(e.$ref);if(a.length>1&&a.includes(c))return t.assign(r.getCodeByZodSchemaName(t.ref));let u=r.getCodeByZodSchemaName(e.$ref);if(!u){let l=r.getSchemaByRef(e.$ref);if(!l)throw new Error(`Schema ${e.$ref} not found`);u=He({schema:l,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)}return r.getCodeByZodSchemaName(c)||r.setZodSchema(c,u,i),t}s(cM,"getReferenceZodSchema");function uM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){var c;if(!Xr(e)||!e.oneOf)return;if(e.oneOf.length===1){let u=He({schema:e.oneOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(u.getCodeString(i,o))}let a=(c=e.oneOf)==null?void 0:c.some(u=>Xr(u)&&((u==null?void 0:u.allOf)||[]).length>1);if(e.discriminator&&!a){let u=e.discriminator.propertyName;return t.assign(`
143
- z.discriminatedUnion("${u}", [${e.oneOf.map(l=>He({schema:l,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])
144
- `)}return t.assign(`z.union([${e.oneOf.map(u=>He({schema:u,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(uM,"getOneOfZodSchema");function lM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!(!Xr(e)||!Array.isArray(e.type)))return e.type.length===1?He({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i,options:o}):t.assign(`z.union([${e.type.map(a=>He({schema:{...e,type:a},resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(lM,"getArrayZodSchema");function fM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Xr(e)||!e.anyOf)return;if(e.anyOf.length===1){let c=He({schema:e.anyOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(c.getCodeString(i,o))}let a=e.anyOf.map(c=>He({schema:c,resolver:r,meta:n,tag:i,options:o})).map(c=>c.getCodeString(i,o)).join(", ");return t.assign(`z.union([${a}])`)}s(fM,"getAnyOfZodSchema");function pM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Xr(e)||!e.allOf)return;if(e.allOf.length===1){let d=He({schema:e.allOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(d.getCodeString(i,o))}let{patchRequiredSchemaInLoop:a,noRequiredOnlyAllof:c,composedRequiredSchema:u}=hO(e),l=c.map(d=>{let h=He({schema:d,resolver:r,meta:n,tag:i,options:o});return r&&a(d,r.getSchemaByRef.bind(r)),h});u.required.length&&l.push(He({schema:u,resolver:r,meta:n,tag:i,options:o}));let p=l.at(0),f=l.slice(1).map(d=>`merge(${d.getCodeString(i,o)})`).join(".");return t.assign(`${p.getCodeString(i,o)}.${f}`)}s(pM,"getAllOfZodSchema");function dM({schema:e,zodSchema:t}){if(!Xr(e))return;let r=e.type?e.type.toLowerCase():void 0;if(r&&Oi(r)){if(e.enum){if(r==="string"){if(e.enum.length===1){let n=e.enum[0],i=n===null?"null":`"${n}"`;return t.assign(`z.literal(${i})`)}return t.assign(`z.enum([${e.enum.map(n=>n===null?"null":`"${n}"`).join(", ")}])`)}if(e.enum.some(n=>typeof n=="string"))return t.assign("z.never()");if(e.enum.length===1){let n=e.enum[0];return t.assign(`z.literal(${n===null?"null":n})`)}return t.assign(`z.union([${e.enum.map(n=>`z.literal(${n===null?"null":n})`).join(", ")}])`)}return t.assign(vt(r).with("integer",()=>"z.number()").with("string",()=>vt(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(n=>`z.${n}()`))}}s(dM,"getPrimitiveZodSchema");function Ts({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i,options:o}){var u;let a=t.getCodeString();if((!kt(a)||t.ref===void 0)&&r){if(t.complexity<jh)return a;let l=Tn(r,o.schemaSuffix),p=l;for(;n.getCodeByZodSchemaName(p);){if((u=n.getZodSchemaNamesByCompositeCode(a))!=null&&u.includes(p))return p;if(n.getCodeByZodSchemaName(p)===l)return p;throw new Error(`Can't uniquely resolve zod schema name: ${p}`)}return n.setZodSchema(p,a,i),n.addZodSchemaForCompositeCode(a,t,p,e),p}let c=n.getCodeByZodSchemaName(a);if(!c&&t.ref&&(c=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&c)return rt({current:0,schema:n.getSchemaByRef(t.ref)})<jh?n.getCodeByZodSchemaName(a):a;throw new Error(`Invalid ref: ${t.ref}`)}s(Ts,"resolveZodSchemaName");function $O({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i,options:o}){var y,v;let a=e.resolveObject(t.requestBody);if(!a)return;let u=Object.keys(a.content??{}).find(Is);if(!u)return;let l=(v=(y=a.content)==null?void 0:y[u])==null?void 0:v.schema;if(!l)return;let p=He({schema:l,resolver:e,meta:{isRequired:a.required??!0},tag:i,options:o}),f=e.resolveObject(l),d=Ts({schema:f,zodSchema:p,fallbackName:mO(Rs(r,n,i)),resolver:e,tag:i,options:o}),h=Hr({schema:f,meta:p.meta,options:o});return{endpointParameter:{name:Z1,type:"Body",description:a.description,zodSchema:d+h,bodyObject:a},requestFormat:u}}s($O,"getEndpointBody");function EO({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i,options:o}){let a=e.resolveObject(t);if(!eO.includes(a.in))return;let c={};if(a.content){let d=Object.keys(a.content??{}),h=d.find(Is);if(!h)throw new Error(`Unsupported media type for param ${a.name}: ${d.join(", ")}`);let y=a.content[h];if(!y)throw new Error(`No content with media type for param ${a.name}: ${h}`);c=(y==null?void 0:y.schema)??y}else a.schema&&(c=a.schema);o!=null&&o.withDescription&&c&&(c.description=(a.description??"").trim());let u=He({schema:c,resolver:e,meta:{isRequired:a.in==="path"?!0:a.required??!1},tag:i,options:o}),l=e.resolveObject(c),p=Hr({schema:l,meta:u.meta,options:o}),f=Ts({schema:l,zodSchema:u.assign(u.getCodeString(i,o)+p),fallbackName:gO(Rs(r,n,i),a.name),resolver:e,tag:i,options:o});return{name:vt(a.in).with("path",()=>kh(a.name)).otherwise(()=>a.name),type:vt(a.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:f,parameterObject:a}}s(EO,"getEndpointParameter");function AO({openApiDoc:e,resolver:t,options:r}){var o,a,c;let n=[],i=[];for(let u in e.paths){let l=e.paths[u],p=Si(l,_i),f=xO(l.parameters??[]);for(let d in p){let h=p[d];if(!h||h.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;h.operationId&&h.operationId!==xn(h.operationId)&&i.push(`INVALID OPERATION ID: ${h.operationId}`);let v=Object.entries({...f,...xO(h.parameters??[])}).map(([,C])=>C),g=Dh({path:u,method:d,operation:h,openApiDoc:e,options:r}),w=fO(g,e,r),A=js(h,r),I={method:d,path:pO(u),operationName:g,description:h.description,tags:(o=h.tags)==null?void 0:o.map(Pi),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(h.requestBody){let C=$O({resolver:t,operation:h,operationName:g,isUniqueOperationName:w,tag:A,options:r});C&&(I.parameters.push(C.endpointParameter),I.requestFormat=C.requestFormat)}for(let C of v){let ae=EO({resolver:t,param:C,operationName:g,isUniqueOperationName:w,tag:A,options:r});ae&&I.parameters.push(ae)}let R=mM(I);R.forEach(C=>{I.parameters.push(C)}),R.length>0&&i.push(`MISSING PATH PARAMETERS: ${R.map(({name:C})=>C).join(", ")} in ${u}`);for(let C in h.responses){let ae=t.resolveObject(h.responses[C]),nt=Object.keys(ae.content??{}).find(ru),Pe,Y;if(nt?(I.responseFormat=nt,Pe=(c=(a=ae.content)==null?void 0:a[nt])==null?void 0:c.schema):Y=wh,Pe){let k=He({schema:Pe,resolver:t,meta:{isRequired:!0},tag:A,options:r}),j=t.resolveObject(Pe);Y=Ts({schema:j,zodSchema:k,fallbackName:k.ref?void 0:hM({statusCode:C,endpoint:I,operationName:g,isUniqueOperationName:w,tag:A}),resolver:t,tag:A,options:r})+Hr({schema:j,meta:k.meta,options:r})}if(Y){let k=Number(C);Mh(k)?(I.response=Y,I.responseObject=ae):C!=="default"&&qh(k)&&I.errors.push({zodSchema:Y,status:k,description:ae.description})}}I.response||(I.response=wh),n.push(I)}}return{endpoints:n,validationErrorMessages:i}}s(AO,"getEndpointsFromOpenAPIDoc");function hM({statusCode:e,endpoint:t,operationName:r,isUniqueOperationName:n,tag:i}){let o=Number(e),a=Rs(r,n,i);return(!Mh(o)||t.response)&&e!=="default"&&qh(o)?vO(a,e):yO(a)}s(hM,"getResponseZodSchemaName");function xO(e){return Object.fromEntries((e??[]).map(t=>[Je(t)?t.$ref:t.name,t]))}s(xO,"getParameters");function mM(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=>gM(r))}s(mM,"getMissingPathParameters");function gM(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}s(gM,"getPathParameterFromName");function CO({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){return Ns({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}),{visitedRefs:n,refsDependencyGraph:i}}s(CO,"getSchemaRefsDependencyGraph");function Ns({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}){if(!e)return;let o={fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i};if(Je(e)){if(i[t]||(i[t]=new Set),i[t].add(e.$ref),n[e.$ref])return;n[t]=!0,Ns({...o,schema:r(e.$ref),fromRef:e.$ref});return}for(let a of Cs)if(e[a])for(let c of e[a])Ns({...o,schema:c});if(!Cs.some(a=>e[a])){if(e.type==="array"){if(!e.items)return;Ns({...o,schema:e.items});return}if(e.type==="object"||e.properties||e.additionalProperties){if(e.properties)for(let a in e.properties)Ns({...o,schema:e.properties[a]});e.additionalProperties&&typeof e.additionalProperties=="object"&&Ns({...o,schema:e.additionalProperties})}}}s(Ns,"visit");function IO(e,t){let r=yM(e,t),n=vM(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s(IO,"getOpenAPISchemaDependencyGraph");function yM(e,t){let r={},n={};return e.forEach(i=>CO({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(yM,"getRefsDependencyGraph");function vM(e,t){let r={},n={},i=s((o,a)=>{n[a].add(o),t[o]&&a!==o&&t[o].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(o=>{let a=t[o];a&&(n[o]||(n[o]=new Set),a.forEach(c=>i(c,o)))}),n}s(vM,"getDeepRefsDependencyGraph");var Bh=class Bh{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=IO(this.schemaRefs,this.getSchemaByRef.bind(this)),this.intializeSchemaInfo(),this.initializeSchemaTags()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];dependencyGraph;validationErrorMessages=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(oO)}getSchemaByRef(t){return this.docSchemas[Nh(t)]}getZodSchemaNameByRef(t){return this.schemaData.find(r=>r.ref===ea(t)).zodSchemaName}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var n,i;let r;if(this.options.splitByTags){let o=this.getRefByZodSchemaName(t),a=((n=this.schemaData.find(l=>l.ref===o))==null?void 0:n.tags)??[],c=((i=this.zodSchemaData.find(l=>l.zodSchemaName===t))==null?void 0:i.tags)??[],u=new Set([...a,...c]);r=u.size===1?u.values().next().value:this.options.defaultTag}return Pi(r??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(o=>o.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let o={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(o):this.compositeZodSchemaData.push({code:t,zodSchemas:[o]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}resolveObject(t){return Je(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}intializeSchemaInfo(){this.schemaRefs.forEach(t=>{let r=ea(t),n=Nh(r),i=Tn(n,this.options.schemaSuffix);this.schemaData.push({ref:r,name:n,zodSchemaName:i,tags:[]})})}initializeSchemaTags(){var t,r,n,i,o,a;for(let c in this.openApiDoc.paths){let u=this.openApiDoc.paths[c],l=Si(u,_i);for(let p in l){let f=l[p];if(!f||f.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let d=[];if((r=f.parameters)==null||r.map(g=>{let w=g;d.push(...this.getOperationSchemaRefs(w.schema,`${f.operationId??c} parameter ${w.name}`))}),f.requestBody){let g=this.resolveObject(f.requestBody),A=Object.keys(g.content??{}).find(Is);A&&d.push(...this.getOperationSchemaRefs((i=(n=g.content)==null?void 0:n[A])==null?void 0:i.schema,`${f.operationId} request body`))}for(let g in f.responses){let w=this.resolveObject(f.responses[g]),I=Object.keys(w.content??{}).find(ru);I&&d.push(...this.getOperationSchemaRefs((a=(o=w.content)==null?void 0:o[I])==null?void 0:a.schema,`${f.operationId} response body`))}let y=d.map(g=>ea(g.$ref)).reduce((g,w)=>{let A=this.dependencyGraph.deepDependencyGraph[w];return[...g,w,...Array.from(A??[])]},[]),v=js(f,this.options);y.forEach(g=>{let w=this.schemaData.find(A=>A.ref===g);w&&w.tags.push(v)})}}}getOperationSchemaRefs(t,r){if(!t)return[];let n=[],i=Je(t);i&&n.push(t);let o=t;return Cs.some(a=>a in o&&o[a])&&((o.allOf??o.anyOf??o.oneOf??[]).forEach(c=>n.push(...this.getOperationSchemaRefs(c,r))),i&&this.validationErrorMessages.push(`INVALID SCHEMA: ${r} has both reference and composite keyword`)),o.properties&&(Object.values(o.properties).forEach(a=>n.push(...this.getOperationSchemaRefs(a,r))),i&&this.validationErrorMessages.push(`INVALID SCHEMA: ${r} has both reference and properties`)),o.type==="array"&&(n.push(...this.getOperationSchemaRefs(t.items,r)),i&&this.validationErrorMessages.push(`INVALID SCHEMA: ${r} is both reference and array schema`)),n}};s(Bh,"SchemaResolver");var iu=Bh;function jO({resolver:e,openApiDoc:t,options:r}){var i;let n={};return Object.entries(((i=t.components)==null?void 0:i.schemas)??{}).forEach(([o,a])=>{let c=Tn(o,r.schemaSuffix);if(!n[c]){let u=e.getTagByZodSchemaName(c);n[c]=He({schema:a,resolver:e,tag:u,options:r}).getCodeString(u,r)}}),n}s(jO,"getZodSchemasFromOpenAPIDoc");function RO(e){let t=[],r={};function n(i,o){Array.isArray(o)||(o=[]),o.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{o.includes(a)||r[a]||n(a,o.slice(0))}),t.includes(i)||t.push(i)}return s(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}s(RO,"topologicalSort");function TO(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[o])=>t.indexOf(i)-t.indexOf(o)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}s(TO,"sortObjKeysFromArray");function NO({resolver:e,zodSchemas:t}){let r=RO(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return TO(t,r)}s(NO,"sortZodSchemasByTopology");function kO({resolver:e,zodSchemas:t,options:r}){let n={};return Object.entries(t).forEach(([i,o])=>{let a=e.getRefByZodSchemaName(i),c=a&&e.isSchemaCircular(a);n[Tn(i,r.schemaSuffix)]=c?`z.lazy(() => ${o})`:o}),n}s(kO,"wrapCircularZodSchemas");function su({openApiDoc:e,options:t}){let r=new iu(e,t),{endpoints:n,validationErrorMessages:i}=AO({resolver:r,openApiDoc:e,options:t}),a={...jO({resolver:r,openApiDoc:e,options:t}),...r.getZodSchemas()};return a=kO({resolver:r,zodSchemas:a,options:t}),a=NO({resolver:r,zodSchemas:a}),{resolver:r,data:bM({resolver:r,endpoints:n,zodSchemas:a,options:t}),validationErrorMessages:i}}s(su,"getDataFromOpenAPIDoc");function bM({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=na(o,n);MO(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let c=e.getTagByZodSchemaName(o);c&&(MO(c,i).zodSchemas[o]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(bM,"splitDataByTags");function MO(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(MO,"getTagElement");var ks=_t(require("fs")),Hh=_t(require("path"));function Uh(e){let t=`src/generators/templates/${e}.hbs`;return ks.default.readFileSync(Hh.default.join(__dirname,`../${t}`),"utf-8")}s(Uh,"readHbsTemplateSync");function zh({output:e,fileName:t}){return`${e}/${t}.ts`}s(zh,"getFileName");function qO({output:e,fileName:t,data:r}){_M(zh({output:e,fileName:t}),r)}s(qO,"writeTsFileSync");function _M(e,t){let r=Hh.default.dirname(e);ks.default.existsSync(r)||ks.default.mkdirSync(r,{recursive:!0}),ks.default.writeFileSync(e,t,"utf-8")}s(_M,"writeFileWithDirSync");function DO({openApiDoc:e,options:t}){let r={...Qc,...t},{resolver:n,data:i,validationErrorMessages:o}=su({openApiDoc:e,options:r}),a=[...o,...n.validationErrorMessages];if(a.length>0)Qt(`Issues:
145
- ${a.map(c=>`- ${c}`).join(`
146
- `)}`);else{let c=[...i.keys()].reduce((u,l)=>{var d;return((d=r.excludeTags)==null?void 0:d.findIndex(h=>h.toLocaleLowerCase()===l.toLocaleLowerCase()))!==-1?u:[...u,...["models","endpoints","queries"].map(h=>zh({output:r.output,fileName:wi({tag:l,type:h,options:r})}))]},[]);Qt(`Output:
142
+ `].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(PM(e,t),(r==null?void 0:r.withDefaultValues)!==!1?OM(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(Zr,"getZodChain");function PM(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}o(PM,"getZodChainablePresence");function OM(e){return e.default!==void 0?`default(${_t(e.type).with("number","integer",()=>v1(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(OM,"getZodChainableDefault");function wM(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(${$M(e.pattern)})`),e.format){let r=_t(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(wM,"getZodChainableStringValidations");function $M(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=b1(e),`/${e}/`}o($M,"formatPatternIfNeeded");function EM(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(EM,"getZodChainableNumberValidations");function xM(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(xM,"getZodChainableArrayValidations");var Ii=o(e=>e.reduce((t,r)=>t+r,0),"sum");function it(e,t){if(!t)return e;if(Ve(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?At("oneOf")+it(e,{...t,type:t.type[0]}):e+At("oneOf")+Ii(t.type.map(r=>it(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?At("oneOf")+it(e,t.oneOf[0]):e+At("oneOf")+Ii(t.oneOf.map(r=>it(0,r)));if(t.anyOf)return t.anyOf.length===1?At("anyOf")+it(e,t.anyOf[0]):e+At("anyOf")+Ii(t.anyOf.map(r=>it(0,r)));if(t.allOf)return t.allOf.length===1?At("allOf")+it(e,t.allOf[0]):e+At("allOf")+Ii(t.allOf.map(r=>it(0,r)));if(!t.type)return e;if(xi(t.type))return t.enum?e+M1(t)+At("enum")+Ii(t.enum.map(r=>it(0,r))):e+M1(t);if(t.type==="array")return t.items?At("array")+it(e,t.items):At("array")+it(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?At("record")+it(e):At("record")+it(e,t.additionalProperties);if(t.properties){let r=Object.values(t.properties);return e+At("object")+Ii(r.map(n=>it(0,n)))}return At("empty-object")+it(e)}return e}o(it,"getOpenAPISchemaComplexity");function M1(e){return _t(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(M1,"complexityByType");function At(e){return _t(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","record","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(At,"complexityByComposite");var Yh=class Yh{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;Ve(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.includeNamespaces&&i&&i!==t?`${dt({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return it(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(Yh,"ZodSchema");var sa=Yh;function Ge({schema:e,resolver:t,meta:r,tag:n}){var y;let i=new sa(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(Ve(e))return AM({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=IM({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let u=CM({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let l=RM({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let p=jM({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let f=TM({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let d=t.options.allReadonly?".readonly()":"";if(P1(e))return e.items?i.assign(`z.array(${Ge({...a,schema:e.items}).getCodeString(n,t.options)}${Zr({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 v=t.options.additionalPropertiesDefaultValue!==void 0?t.options.additionalPropertiesDefaultValue:!0,$=(e.additionalProperties===null||e.additionalProperties===void 0?v:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return i.assign(`z.record(${Ge({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+Zr({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options})})`);let A=e.required&&e.required.length>0,C=t.options.withImplicitRequiredProps?!1:!((y=e.required)!=null&&y.length),R="{}";e.properties&&(R="{ "+Object.entries(e.properties).map(([$e,Oe])=>{var M;let ne={...s,isRequired:C?!0:A?(M=e.required)==null?void 0:M.includes($e):t.options.withImplicitRequiredProps,name:$e},k=Oe;if(Ve(Oe)&&t&&(k=t.getSchemaByRef(Oe.$ref),!k))throw new Error(`Schema ${Oe.$ref} not found`);let j=Ge({...a,schema:Oe,meta:ne}).getCodeString(n,t.options)+Zr({schema:k,meta:ne,options:t.options});return[$e,j]}).map(([$e,Oe])=>`${y1($e)}: ${Oe}`).join(", ")+" }");let I=C?".partial()":"",ae=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${R})${I}${ae}${$}${d}`)}if(!h)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${h}`)}o(Ge,"getZodSchema");function AM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Ve(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=Ge({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o(AM,"getReferenceZodSchema");function CM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!Gr(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=Ge({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=>Gr(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!s){let c=e.discriminator.propertyName;return t.assign(`
143
+ z.discriminatedUnion("${c}", [${e.oneOf.map(u=>Ge({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
144
+ `)}return t.assign(`z.union([${e.oneOf.map(c=>Ge({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(CM,"getOneOfZodSchema");function IM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!Gr(e)||!Array.isArray(e.type)))return e.type.length===1?Ge({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>Ge({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(IM,"getArrayZodSchema");function RM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Gr(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=Ge({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>Ge({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(RM,"getAnyOfZodSchema");function jM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Gr(e)||!e.allOf)return;if(e.allOf.length===1){let f=Ge({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}=O1(e),u=a.map(f=>{let d=Ge({schema:f,resolver:r,meta:n,tag:i});return r&&s(f,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(Ge({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(jM,"getAllOfZodSchema");function TM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Gr(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&xi(s)){if(e.enum){if(s==="string")return NM({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(_t(s).with("integer",()=>"z.number()").with("string",()=>_t(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}o(TM,"getPrimitiveZodSchema");function NM({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){if(!Gr(t))return;let s=Jh(t),a=e.getEnumZodSchemaDataByCode(s);if(!e.options.extractEnums||!a)return r.assign(s);if(!a.zodSchemaName||!a.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let c=e.options.includeNamespaces&&a.tag!==i?`${dt({type:"models",tag:a.tag,options:e.options})}.`:"";return new sa(t,e,n,a.zodSchemaName).inherit(r),r.assign(`${c}${a.zodSchemaName}`)}o(NM,"getEnumZodSchema");function Jh(e){var t;return`z.enum([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(Jh,"getEnumZodSchemaCode");function qo({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let s=t.getCodeString();if((!Dt(s)||t.ref===void 0)&&r){if(t.complexity<Fh)return s;let u=Ln(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(u);){if((c=n.getZodSchemaNamesByCompositeCode(s))!=null&&c.includes(u))return u;if(n.getCodeByZodSchemaName(u)===u)return u;throw new Error(`Can't uniquely resolve zod schema name: ${u}`)}return n.setZodSchema(u,s,i),n.addZodSchemaForCompositeCode(s,t,u,e),u}let a=n.getCodeByZodSchemaName(s);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return it(0,n.getSchemaByRef(t.ref))<Fh?n.getCodeByZodSchemaName(s):s;throw new Error(`Invalid ref: ${t.ref}`)}o(qo,"resolveZodSchemaName");function q1({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(Mo);if(!c)return;let u=(y=(h=s.content)==null?void 0:h[c])==null?void 0:y.schema;if(!u)return;let l=Ge({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),p=e.resolveObject(u),f=qo({schema:p,zodSchema:l,fallbackName:uu(Ci(r,n,i)),resolver:e,tag:i}),d=Zr({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:o1,type:"Body",description:s.description,zodSchema:f+d,bodyObject:s},requestFormat:c}}o(q1,"getEndpointBody");function D1({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!l1.includes(s.in))return;let a={};if(s.content){let f=Object.keys(s.content??{}),d=f.find(Mo);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=Ge({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),u=e.resolveObject(a),l=Zr({schema:u,meta:c.meta,options:e.options}),p=qo({schema:u,zodSchema:c.assign(c.getCodeString(i)+l),fallbackName:$1(Ci(r,n,i),s.name),resolver:e,tag:i});return{name:_t(s.in).with("path",()=>Zh(s.name)).otherwise(()=>s.name),type:_t(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:p,parameterObject:s}}o(D1,"getEndpointParameter");function F1(e){var r,n,i;let t=[];for(let s in e.openApiDoc.paths){let a=e.openApiDoc.paths[s],c=qn(a,Mn),u=L1(a.parameters??[]);for(let l in c){let p=c[l];if(!p||p.deprecated&&!e.options.withDeprecatedEndpoints)continue;let f=p.operationId&&p.operationId!==In(p.operationId);p.operationId&&f&&e.validationErrors.push(j1(p.operationId));let d=Object.entries({...u,...L1(p.parameters??[])}).map(([,A])=>A),h=ra({path:s,method:l,operation:p,operationsByTag:e.operationsByTag,options:e.options}),y=e.operationNames.filter(A=>A===h).length<=1,v=$i(p,e.options),g={method:l,path:S1(s),operationName:h,description:p.description,tags:(r=p.tags)==null?void 0:r.map(Dn),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(p.requestBody){let A=q1({resolver:e,operation:p,operationName:h,isUniqueOperationName:y,tag:v});A&&(g.parameters.push(A.endpointParameter),g.requestFormat=A.requestFormat)}for(let A of d){let C=D1({resolver:e,param:A,operationName:h,isUniqueOperationName:y,tag:v});C&&g.parameters.push(C)}let $=kM(g);$.forEach(A=>{g.parameters.push(A)}),$.length>0&&e.validationErrors.push(T1($,s));for(let A in p.responses){let C=e.resolveObject(p.responses[A]),I=Object.keys(C.content??{}).find(cu),ae,re;if(I?(g.responseFormat=I,ae=(i=(n=C.content)==null?void 0:n[I])==null?void 0:i.schema):re=Th,ae){let $e=Ge({schema:ae,resolver:e,meta:{isRequired:!0},tag:v}),Oe=e.resolveObject(ae);re=qo({schema:Oe,zodSchema:$e,fallbackName:$e.ref?void 0:lu({statusCode:A,operationName:h,isUniqueOperationName:y,tag:v}),resolver:e,tag:v})+Zr({schema:Oe,meta:$e.meta,options:e.options})}if(re){let $e=Number(A);su($e)?(g.response=re,g.responseObject=C):A!=="default"&&au($e)&&g.errors.push({zodSchema:re,status:$e,description:C.description})}}g.response||(g.response=Th),t.push(g)}}return t}o(F1,"getEndpointsFromOpenAPIDoc");function L1(e){return Object.fromEntries((e??[]).map(t=>[Ve(t)?t.$ref:t.name,t]))}o(L1,"getParameters");function kM(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=>MM(r))}o(kM,"getMissingPathParameters");function MM(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(MM,"getPathParameterFromName");var Gt=o((...e)=>[...new Set(e.flat())],"getUniqueArray");function Ar(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(Ve(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(Vh.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s){if((n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))===!0)return;Ar(a,{data:r,onSchema:n})}}if(i.properties)for(let[s,a]of Object.entries(i.properties)){if(n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})===!0)return;Ar(a,t)}if(i.additionalProperties)for(let[s,a]of Object.entries(i.additionalProperties)){if(!(a instanceof Object)||n({type:"additionalProperty",parentSchema:e,schema:a,data:r,propertyName:s})===!0)return;Ar(a,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;Ar(s,t)}}o(Ar,"iterateSchema");function V1(e,t){let r=qM(e,t),n=DM(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(V1,"getOpenAPISchemaDependencyGraph");function qM(e,t){let r={},n={};return e.forEach(i=>LM({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(qM,"getRefsDependencyGraph");function DM(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(DM,"getDeepRefsDependencyGraph");function LM({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,Ar(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return Ar(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(LM,"getSchemaRefsDependencyGraph");function fu(e,t,r){let n=[];return Ar(t,{onSchema:o(i=>{i.type==="reference"?n.push(i.schema):Ve(i.parentSchema)&&e.validationErrors.push(R1(r))},"onSchema")}),n}o(fu,"getSchemaRefObjs");function B1(e,t){return t.map(i=>Ei(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(B1,"getDeepSchemaRefObjs");function aa({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&H1({schema:e,nameSegments:t,...n}),Ar(e,{data:{nameSegments:t},onSchema:o(i=>{var a;if(i.type==="reference")return!0;let s=[...((a=i.data)==null?void 0:a.nameSegments)??[]];(i.type==="property"||i.type==="additionalProperty")&&s.push(i.propertyName),H1({schema:i.schema,nameSegments:[...s],...n})},"onSchema")})}o(aa,"updateEnumZodSchemaData");function H1({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||Ve(t)||!t.enum)return;let a=Jh(t),c=e.enumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(s),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[])):e.enumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[]}}),e.validationErrors.push(N1(r?`schema ${Ue.gray(ko(r))} property ${Ue.gray(s[s.length-1])}`:n??s.join("->")))}o(H1,"handleEnumZodSchemaDataUpdate");function z1(e){e.enumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=Hh(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=w1(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!U1(e);)FM(e,t+2),t++;if(!U1(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(z1,"resolveEnumZodSchemaNames");function U1(e){return e.enumZodSchemaData.every(t=>e.enumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length==1)}o(U1,"allEnumZodSchemaNamesAreUnique");function FM(e,t){e.enumZodSchemaData.forEach(r=>{let n=e.enumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&VM(n,t)})}o(FM,"additionalResolveEnumZodSchemaName");function VM(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1)r.zodSchemaName=[St(n[0]),r.zodSchemaName].filter(Boolean).join("");else{let i=Hh(n);r.zodSchemaName=[i?St(i):"",r.zodSchemaName].filter(Boolean).join("")}})}o(VM,"suffixWithPreviousSegmentName");function G1(e){e.enumZodSchemaData.forEach(t=>{let r=Gt(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(G1,"resolveEnumZodSchemaTags");var Qh=class Qh{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=V1(this.schemaRefs,this.getSchemaByRef.bind(this)),this.operationsByTag=h1(t,r),this.operationNames=_1(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];enumZodSchemaData=[];dependencyGraph;operationsByTag={};operationNames=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(g1)}getSchemaByRef(t){return this.docSchemas[ko(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(Ei(t)))==null?void 0:n.zodSchemaName)??((i=this.enumZodSchemaData.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.enumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return Dn(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=Gt(i,s),c=a.length===1?a[0]:this.options.defaultTag;return Dn(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.enumZodSchemaData.find(r=>r.code===t)}getEnumZodSchemaNamesReferencedBySchemaRef(t){return this.enumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getEnumZodSchemas(){return this.enumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return Ve(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}initialize(){var t,r,n,i,s,a;this.schemaRefs.forEach(c=>{let u=Ei(c),l=ko(u),p=Ln(l,this.options.schemaSuffix);this.schemaData.push({ref:u,name:l,zodSchemaName:p,tags:[]})});for(let c in this.openApiDoc.paths){let u=this.openApiDoc.paths[c],l=qn(u,Mn);for(let p in l){let f=l[p];if(!f||f.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let d=$i(f,this.options),h=ra({path:c,method:p,operation:f,operationsByTag:this.operationsByTag,options:this.options}),y=this.operationNames.filter(A=>A===h).length<=1,v=qt(Ci(h,y,d)),g=[];if((r=f.parameters)==null||r.map(A=>{let C=A,R=C.schema,I=`operation ${Ue.gray(f.operationId??c)} parameter ${Ue.gray(C.name)}`;g.push(...fu(this,R,I)),this.options.extractEnums&&aa({resolver:this,schema:R,schemaInfo:I,tags:[d],nameSegments:[v,C.name],includeSelf:!0})}),f.requestBody){let A=this.resolveObject(f.requestBody),R=Object.keys(A.content??{}).find(Mo);if(R){let I=(i=(n=A.content)==null?void 0:n[R])==null?void 0:i.schema,ae=`operation ${Ue.gray(f.operationId)} request body`;g.push(...fu(this,I,ae)),this.options.extractEnums&&aa({resolver:this,schema:I,schemaInfo:ae,tags:[d],nameSegments:[uu(v)]})}}for(let A in f.responses){let C=this.resolveObject(f.responses[A]),I=Object.keys(C.content??{}).find(cu);if(I){let ae=(a=(s=C.content)==null?void 0:s[I])==null?void 0:a.schema,re=`operation ${Ue.gray(f.operationId)} response body`;g.push(...fu(this,ae,re)),this.options.extractEnums&&aa({resolver:this,schema:ae,schemaInfo:re,tags:[d],nameSegments:[lu({statusCode:A,operationName:h,isUniqueOperationName:y,tag:d})]})}}B1(this,g).forEach(A=>{let C=this.getSchemaDataByRef(A);C&&C.tags.push(d)})}}this.options.extractEnums&&(this.schemaRefs.forEach(c=>{var l;let u=Ei(c);aa({resolver:this,schema:this.getSchemaByRef(u),schemaRef:u,tags:((l=this.getSchemaDataByRef(u))==null?void 0:l.tags)??[],nameSegments:[ko(u)]})}),z1(this),G1(this))}};o(Qh,"SchemaResolver");var pu=Qh;function Z1(e){var r;let t={};return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=Ln(n,e.options.schemaSuffix);if(!t[s]){let a=e.getTagByZodSchemaName(s);t[s]=Ge({schema:i,resolver:e,tag:a}).getCodeString(a)}}),t}o(Z1,"getZodSchemasFromOpenAPIDoc");function W1(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(W1,"topologicalSort");function K1(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(K1,"sortObjKeysFromArray");function Y1(e,t){let r=W1(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return K1(t,r)}o(Y1,"sortZodSchemasByTopology");function J1(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n),a=s&&e.isSchemaCircular(s);r[Ln(n,e.options.schemaSuffix)]=a?`z.lazy(() => ${i})`:i}),r}o(J1,"wrapCircularZodSchemas");function du(e,t){let r=new pu(e,t),n=F1(r),s={...Z1(r),...r.getZodSchemas()};return s=J1(r,s),s=Y1(r,s),s={...r.getEnumZodSchemas(),...s},{resolver:r,data:BM({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(du,"getDataFromOpenAPIDoc");function BM({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=oa(s,n);Q1(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(Q1(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(BM,"splitDataByTags");function Q1(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(Q1,"getTagElement");var Do=Ot(require("fs")),Xh=Ot(require("path"));function em(e){let t=`src/generators/templates/${e}.hbs`;return Do.default.readFileSync(Xh.default.join(__dirname,`../${t}`),"utf-8")}o(em,"readHbsTemplateSync");function hu({output:e,fileName:t}){return`${e}/${t}.ts`}o(hu,"getOutputFileName");function X1({fileName:e,content:t}){HM(e,t)}o(X1,"writeTsFileSync");function HM(e,t){let r=Xh.default.dirname(e);Do.default.existsSync(r)||Do.default.mkdirSync(r,{recursive:!0}),Do.default.writeFileSync(e,t,"utf-8")}o(HM,"writeFileWithDirSync");function eO(e,t){let r={...ru,...t},{resolver:n,data:i}=du(e,r);if(n.validationErrors.length>0){let s=k1(n.validationErrors);Object.entries(s).forEach(([a,c])=>{console.log(`${Ue.red(`${i1[a]}:`)}
147
145
  ${c.map(u=>`- ${u}`).join(`
148
- `)}`)}return a}s(DO,"checkOpenAPIDoc");async function FO({input:e,excludeTags:t,verbose:r,...n}){r&&Qt("Parsing OpenAPI spec...");let i=await LO.default.bundle(e);r&&Qn("Parsing finished."),r&&Qt("Running check...");let o=DO({openApiDoc:i,options:{input:e,excludeTags:t.split(","),...n}});if(o.length===0)Qn("Check finished.");else throw new Error(`Check finished. Found ${o.length} issues.`)}s(FO,"check");var Nn=class Nn{input;splitByTags;defaultTag;excludeTags;verbose};s(Nn,"CheckOptions"),ct([ut({envAlias:"input",demandOption:!0})],Nn.prototype,"input",2),ct([ut({envAlias:"splitByTags",default:!0,type:"boolean"})],Nn.prototype,"splitByTags",2),ct([ut({envAlias:"defaultTag",default:"Common"})],Nn.prototype,"defaultTag",2),ct([ut({envAlias:"excludeTags",default:""})],Nn.prototype,"excludeTags",2),ct([ut({envAlias:"verbose",default:!1,type:"boolean"})],Nn.prototype,"verbose",2);var Gh=Nn,VO={command:"check",describe:"Check OpenAPI spec",builder:za(Gh),handler:s(async e=>{let t=await e;return t.verbose&&(Ua(`OpenAPI CodeGen ${Ui()}`),io("input",t.input)),FO(t)},"handler")};var Y2=_t(Ph()),J2=require("child_process");var Wh="src/data",Kh="@/data",Zh="AppRestClient",BO={bindings:[Zh],from:"@/util/rest/clients/app-rest-client"},ia={query:"AppQueryOptions",mutation:"AppMutationOptions"},HO={bindings:[ia.query,ia.mutation],from:"@/types/react-query"};function Ms({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[],options:i}){let o="models",a=s(l=>e.getTagByZodSchemaName(l),"getTag"),c=Yh({type:o,tag:t,entities:r,getTag:a,getEntityName:s(l=>l,"getEntityName"),options:i}),u=Yh({type:o,tag:t,entities:n,getTag:a,getEntityName:s(l=>ta(l,i),"getEntityName"),options:i});return OM(i,c,u)}s(Ms,"getModelsImports");function UO({tag:e,endpoints:t,options:r}){return Yh({type:"endpoints",tag:e,entities:t,getTag:s(n=>na(n,r),"getTag"),getEntityName:ra,options:r})}s(UO,"getEndpointsImports");function SM(e){let t=Kh;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${Wh}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${Wh}`,"g"),Kh)),`${t}/`.replace(/\/\//g,"/")}s(SM,"getImportPath");function Yh({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:o}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))o.includeNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[o.includeNamespaces?$t({type:e,tag:u,options:o}):i(c)],from:`${l?"./":SM(o)}${wi({type:e,tag:u,includeTagDir:!l,options:o})}`})}}),Array.from(a.values())}s(Yh,"getImports");function OM(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.includeNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values())}s(OM,"mergeImports");var zm=_t(Ri());var Bm=_t(Ri());function k2(){hD(),mD()}s(k2,"registerCommonHbsHelpers");function hD(){Bm.default.registerHelper("isEqual",(e,t)=>e===t)}s(hD,"registerIsEqualHelper");function mD(){Bm.default.registerHelper("commaSeparated",e=>e.join(", "))}s(mD,"registerCommaSeparatedListHelper");var Ti=_t(Ri());function M2(e,t){gD(),yD(t),_D(e,t),vD(),bD(),SD(e,t)}s(M2,"registerEndpointsHbsHelpers");function gD(){Ti.default.registerHelper("endpointName",ra)}s(gD,"registerEndpointNameHelper");function yD(e){Ti.default.registerHelper("importedEndpointName",t=>SO(t,e))}s(yD,"registerImportedEndpointNameHelper");function vD(){Ti.default.registerHelper("endpointPath",OO)}s(vD,"registerEndpointPathHelper");function bD(){Ti.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}s(bD,"registerEndpointBodyHelper");function _D(e,t){Ti.default.registerHelper("endpointParams",r=>Fh({resolver:e,endpoint:r,options:t}))}s(_D,"registerEndpointParamsHelper");function SD(e,t){Ti.default.registerHelper("endpointArgs",r=>Fh({resolver:e,endpoint:r,options:t}).map(n=>n.name).join(", "))}s(SD,"registerEndpointArgsHelper");var Gs=_t(Ri());var qn={query:"useQuery",mutation:"useMutation"},q2={bindings:[qn.query,qn.mutation],from:"@tanstack/react-query"};var Bu=s(e=>e.method==="get","isQuery"),D2=s(e=>e.method!=="get","isMutation");function L2(){OD(),PD(),wD(),$D(),ED()}s(L2,"registerPartialsHbsHelpers");function OD(){Gs.default.registerHelper("genImport",e=>Ws("import")({import:e}))}s(OD,"registerImportHelper");function PD(){Gs.default.registerHelper("genEndpointParams",e=>Ws("endpoint-params")({endpoint:e}))}s(PD,"registerGenerateEndpointParamsHelper");function wD(){Gs.default.registerHelper("genEndpointConfig",e=>{let t=PO(e);return Object.keys(t).length===0?"":Ws("endpoint-config")({endpointConfig:t})})}s(wD,"registerGenerateEndpointConfigHelper");function $D(){Gs.default.registerHelper("genQueryKeys",e=>e.length===0?"":Ws("query-keys")({endpoints:e}))}s($D,"registerGenerateQueryKeysHelper");function ED(){Gs.default.registerHelper("genQuery",e=>{let t,r;return Bu(e)?(t="query-use-query",r=qn.query):(t="query-use-mutation",r=qn.mutation),Ws(t)({endpoint:e,queryHook:r})})}s(ED,"registerGenerateQueryHelper");var Hu=_t(Ri());var F2=s(e=>`use${wr(sr(e.operationName))}`,"getQueryName"),Hm=s(e=>{let t=e.map(({path:o})=>o),r=/^\/[^\/]*/g,n=Array.from(new Set(t.map(o=>o.match(r)).flat())),i=s(o=>n.length===1?"all":`all${wr(tu(o.replace(/\//g,"")??""))}`,"getQueryKeyName");return n.filter(o=>o!==null).map(o=>({path:o,name:i(o??"")}))},"getAllQueryKeys"),V2=s((e,t)=>{let n=Hm(t).find(({path:o})=>e.path.startsWith(o));if(!n)return[e.path];let i=e.path.substring(n.path.length);return[`...keys.${n.name}`,...i?[`"${i}"`]:[]]},"getEndpointPathQueryKeys");function B2(){xD(),AD(),CD()}s(B2,"registerQueryHbsHelpers");function xD(){Hu.default.registerHelper("queryName",F2)}s(xD,"registerQueryNameHelper");function AD(){Hu.default.registerHelper("allQueryKeys",Hm)}s(AD,"registerQueryKeysHelper");function CD(){Hu.default.registerHelper("endpointPathQueryKeys",V2)}s(CD,"registerEndpointPathQueryKeysHelper");var Um=_t(Ri());function H2(e,t){ID(t),jD(e,t)}s(H2,"registerZodHbsHelpers");function ID(e){Um.default.registerHelper("zodInferedType",t=>ta(t,e))}s(ID,"registerInferedTypeHelper");function jD(e,t){Um.default.registerHelper("importedZodSchemaName",r=>bO({resolver:e,zodSchemaName:r,options:t}))}s(jD,"registerImportedZodSchemaNameHelper");function Ks({resolver:e,templateName:t,options:r}){let n=Uh(t);return k2(),H2(e,r),M2(e,r),B2(),L2(),zm.default.compile(n)}s(Ks,"getHbsTemplateDelegate");function Ws(e){let t=Uh(`partials/${e}`);return zm.default.compile(t)}s(Ws,"getHbsPartialTemplateDelegate");function U2({resolver:e,data:t,tag:r="",options:n}){var p;let i=(p=t.get(r))==null?void 0:p.endpoints;if(!i||i.length===0)return;let o=i.map(f=>f.response),a=o.some(f=>!kt(f)),c=i.reduce((f,d)=>[...f,...d.parameters],[]),u=Ms({resolver:e,tag:r,zodSchemas:Array.from(new Set(o.filter(kt))),zodSchemasAsTypes:Array.from(new Set(c.map(f=>f.zodSchema).filter(kt))),options:n});return Ks({resolver:e,templateName:"endpoints",options:n})({restClientImport:BO,hasZodImport:a,zodImport:Jc,modelsImports:u,includeNamespace:n.includeNamespaces,namespace:$t({type:"endpoints",tag:r,options:n}),restClientName:Zh,endpoints:i})}s(U2,"generateEndpoints");function z2({resolver:e,zodSchemaName:t}){let r=e.getRefByZodSchemaName(t);if(r)return Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(i=>e.getZodSchemaNameByRef(i));let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(G2(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}s(z2,"getZodSchemaRefs");function G2(e){return e.children.reduce((r,n)=>(n.ref&&r.add(n.ref),n.children.length>0&&G2(n).forEach(i=>r.add(i)),r),new Set)}s(G2,"getSchemaRefs");function W2({resolver:e,data:t,tag:r="",options:n}){var l;let i=(l=t.get(r))==null?void 0:l.zodSchemas;if(!i||Object.keys(i).length===0)return;let o=Object.keys(i).reduce((p,f)=>[...p,...z2({resolver:e,zodSchemaName:f})],[]).filter(p=>!i[p]),a=Ms({resolver:e,tag:r,zodSchemas:o,options:n}),c=Object.entries(i).reduce((p,[f,d])=>{let h=e.getRefByZodSchemaName(f);return{...p,[f]:{code:d,isCircular:!!h&&e.isSchemaCircular(h)}}},{});return Ks({resolver:e,templateName:"models",options:n})({zodImport:Jc,modelsImports:a,includeNamespace:n.includeNamespaces,namespace:$t({type:"models",tag:r,options:n}),zodSchemasData:c})}s(W2,"generateModels");function K2({resolver:e,data:t,tag:r="",options:n}){var h;let i=(h=t.get(r))==null?void 0:h.endpoints;if(!i||i.length===0)return;let o=i.filter(Bu),a=i.filter(D2),c={...q2,bindings:[...o.length>0?[qn.query]:[],...a.length>0?[qn.mutation]:[]]},u={...HO,bindings:[...o.length>0?[ia.query]:[],...a.length>0?[ia.mutation]:[]]},l=[...o,...a].reduce((y,v)=>[...y,...v.parameters],[]),p=Ms({resolver:e,tag:r,zodSchemasAsTypes:Array.from(new Set(l.map(y=>y.zodSchema).filter(kt))),options:n}),f=UO({tag:r,endpoints:i,options:n});return Ks({resolver:e,templateName:"queries",options:n})({queryImport:c,queryTypesImport:u,modelsImports:p,endpointsImports:f,includeNamespace:n.includeNamespaces,namespace:$t({type:"queries",tag:r,options:n}),endpoints:i,queryEndpoints:o})}s(K2,"generateQueries");function Z2({openApiDoc:e,options:t}){let r={...Qc,...t},{resolver:n,data:i}=su({openApiDoc:e,options:r});i.forEach((o,a)=>{var l;((l=r.excludeTags)==null?void 0:l.findIndex(p=>p.toLocaleLowerCase()===a.toLocaleLowerCase()))===-1&&(Gm({resolver:n,data:i,type:"models",tag:a,options:r}),Gm({resolver:n,data:i,type:"endpoints",tag:a,options:r}),Gm({resolver:n,data:i,type:"queries",tag:a,options:r}))})}s(Z2,"generateCodeFromOpenAPIDoc");function Gm({resolver:e,data:t,type:r,tag:n,options:i}){let o;switch(r){case"models":o=W2({resolver:e,data:t,tag:n,options:i});break;case"endpoints":o=U2({resolver:e,data:t,tag:n,options:i});break;case"queries":o=K2({resolver:e,data:t,tag:n,options:i});break}o&&qO({output:i.output,fileName:wi({tag:n,type:r,options:i}),data:o})}s(Gm,"generateCodeByType");async function Q2({input:e,excludeTags:t,prettier:r,verbose:n,...i}){n&&Qt("Parsing OpenAPI spec...");let o=await Y2.default.bundle(e);n&&Qn("Parsing finished."),n&&Qt("Generating code..."),Z2({openApiDoc:o,options:{input:e,excludeTags:t.split(","),...i}}),n&&Qn("Generation finished."),r&&RD({output:i.output,verbose:n})}s(Q2,"generate");function RD({output:e,verbose:t}){t&&Qt("Running Prettier..."),(0,J2.exec)(`prettier --write ${e}`,r=>{t&&(r?so(r,"Prettier error"):Qn("Prettier finished."))})}s(RD,"execPrettier");var Ut=class Ut{input;output;includeNamespaces;splitByTags;defaultTag;excludeTags;importPath;removeOperationPrefixEndingWith;prettier;verbose};s(Ut,"GenerateOptions"),ct([ut({envAlias:"input",demandOption:!0})],Ut.prototype,"input",2),ct([ut({envAlias:"output",default:"output"})],Ut.prototype,"output",2),ct([ut({envAlias:"includeNamespaces",default:!0,type:"boolean"})],Ut.prototype,"includeNamespaces",2),ct([ut({envAlias:"splitByTags",default:!0,type:"boolean"})],Ut.prototype,"splitByTags",2),ct([ut({envAlias:"defaultTag",default:"Common"})],Ut.prototype,"defaultTag",2),ct([ut({envAlias:"excludeTags",default:""})],Ut.prototype,"excludeTags",2),ct([ut({envAlias:"importPath",default:"ts",type:"string"})],Ut.prototype,"importPath",2),ct([ut({envAlias:"removeOperationPrefixEndingWith",default:"Controller_"})],Ut.prototype,"removeOperationPrefixEndingWith",2),ct([ut({envAlias:"prettier",default:!0,type:"boolean"})],Ut.prototype,"prettier",2),ct([ut({envAlias:"verbose",default:!1,type:"boolean"})],Ut.prototype,"verbose",2);var Wm=Ut,X2={command:"generate",describe:"Generate code from OpenAPI spec",builder:za(Wm),handler:s(async e=>{let t=await e;return t.verbose&&(Ua(`OpenAPI CodeGen ${Ui()}`),io("input",t.input),io("output",t.output)),Q2(t)},"handler")};Xg(rl(process.argv)).version(Ui()||"unknown").scriptName("openapi-codegen").command(X2).command(VO).help().demandCommand(1).strictCommands(!0).showHelpOnFail(!0).fail((e,t)=>{e&&so(e),t&&so(t),Qt("Use '--help' for more info"),process.exit(1)}).parse();
146
+ `)}
147
+ `)})}else{let s=[...i.keys()].reduce((a,c)=>r.excludeTags.find(l=>l.toLowerCase()===c.toLowerCase())?a:[...a,...UM(c,r)],[]);console.log(`${Ue.green("Outputs:")}
148
+ ${s.map(a=>`- ${a}`).join(`
149
+ `)}
150
+ `)}return n.validationErrors}o(eO,"checkOpenAPIDoc");function UM(e,t){return["models","endpoints","queries"].map(r=>hu({output:t.output,fileName:Ai({tag:e,type:r,options:t})}))}o(UM,"getOutputFileNames");async function rO({input:e,excludeTags:t,verbose:r,...n}){let i=Date.now();r&&mr("Parsing OpenAPI spec...");let s=await tO.default.bundle(e);r&&ni("Parsing finished."),r&&mr("Running check...");let a=eO(s,{input:e,excludeTags:t.split(","),...n});if(r&&mr(`TIME: ${Date.now()-i}ms`),a.length===0)ni("Check finished.");else throw new Error(`Check finished. Found ${a.length} issues.`)}o(rO,"check");var Fn=class Fn{input;splitByTags;defaultTag;excludeTags;verbose};o(Fn,"CheckOptions"),st([ct({envAlias:"input",demandOption:!0})],Fn.prototype,"input",2),st([ct({envAlias:"splitByTags",default:!0,type:"boolean"})],Fn.prototype,"splitByTags",2),st([ct({envAlias:"defaultTag",default:"Common"})],Fn.prototype,"defaultTag",2),st([ct({envAlias:"excludeTags",default:""})],Fn.prototype,"excludeTags",2),st([ct({envAlias:"verbose",default:!1,type:"boolean"})],Fn.prototype,"verbose",2);var tm=Fn,nO={command:"check",describe:"Check OpenAPI spec",builder:Ka(tm),handler:o(async e=>{let t=await e;return t.verbose&&(Wa(`OpenAPI CodeGen ${Ki()}`),as("input",t.input)),rO(t)},"handler")};var pw=Ot(jh()),dw=require("child_process");var rm="src/data",nm="@/data",im="AppRestClient",iO={bindings:[im],from:"@/util/rest/clients/app-rest-client"},ca={query:"AppQueryOptions",mutation:"AppMutationOptions"},oO={bindings:[ca.query,ca.mutation],from:"@/types/react-query"};function Lo({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=om({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=om({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>na(u,e.options),"getEntityName"),options:e.options});return GM(e.options,a,c)}o(Lo,"getModelsImports");function sO({tag:e,endpoints:t,options:r}){return om({type:"endpoints",tag:e,entities:t,getTag:o(n=>oa(n,r),"getTag"),getEntityName:ia,options:r})}o(sO,"getEndpointsImports");function zM(e){let t=nm;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${rm}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${rm}`,"g"),nm)),`${t}/`.replace(/\/\//g,"/")}o(zM,"getImportPath");function om({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.includeNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.includeNamespaces?dt({type:e,tag:u,options:s}):i(c)],from:`${l?"./":zM(s)}${Ai({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(om,"getImports");function GM(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.includeNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Gt(n.bindings)}))}o(GM,"mergeImports");var eg=Ot(qi());var Jm=Ot(qi());function J2(){DD(),LD()}o(J2,"registerCommonHbsHelpers");function DD(){Jm.default.registerHelper("isEqual",(e,t)=>e===t)}o(DD,"registerIsEqualHelper");function LD(){Jm.default.registerHelper("commaSeparated",e=>e.join(", "))}o(LD,"registerCommaSeparatedListHelper");var Di=Ot(qi());function Q2(e){FD(),VD(e.options),UD(e),BD(),HD(),zD(e)}o(Q2,"registerEndpointsHbsHelpers");function FD(){Di.default.registerHelper("endpointName",ia)}o(FD,"registerEndpointNameHelper");function VD(e){Di.default.registerHelper("importedEndpointName",t=>A1(t,e))}o(VD,"registerImportedEndpointNameHelper");function BD(){Di.default.registerHelper("endpointPath",C1)}o(BD,"registerEndpointPathHelper");function HD(){Di.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(HD,"registerEndpointBodyHelper");function UD(e){Di.default.registerHelper("endpointParams",t=>Kh(e,t))}o(UD,"registerEndpointParamsHelper");function zD(e){Di.default.registerHelper("endpointArgs",t=>Kh(e,t).map(r=>r.name).join(", "))}o(zD,"registerEndpointArgsHelper");var Ko=Ot(qi());var Hn={query:"useQuery",mutation:"useMutation"},X2={bindings:[Hn.query,Hn.mutation],from:"@tanstack/react-query"};var Ju=o(e=>e.method==="get","isQuery"),ew=o(e=>e.method!=="get","isMutation");function tw(){GD(),ZD(),WD(),KD(),YD()}o(tw,"registerPartialsHbsHelpers");function GD(){Ko.default.registerHelper("genImport",e=>Yo("import")({import:e}))}o(GD,"registerImportHelper");function ZD(){Ko.default.registerHelper("genEndpointParams",e=>Yo("endpoint-params")({endpoint:e}))}o(ZD,"registerGenerateEndpointParamsHelper");function WD(){Ko.default.registerHelper("genEndpointConfig",e=>{let t=I1(e);return Object.keys(t).length===0?"":Yo("endpoint-config")({endpointConfig:t})})}o(WD,"registerGenerateEndpointConfigHelper");function KD(){Ko.default.registerHelper("genQueryKeys",e=>e.length===0?"":Yo("query-keys")({endpoints:e}))}o(KD,"registerGenerateQueryKeysHelper");function YD(){Ko.default.registerHelper("genQuery",e=>{let t,r;return Ju(e)?(t="query-use-query",r=Hn.query):(t="query-use-mutation",r=Hn.mutation),Yo(t)({endpoint:e,queryHook:r})})}o(YD,"registerGenerateQueryHelper");var Qu=Ot(qi());var rw=o(e=>`use${St(qt(e.operationName))}`,"getQueryName"),Qm=o(e=>{let t=e.map(({path:s})=>s),r=/^\/[^\/]*/g,n=Gt(t.map(s=>s.match(r)).flat()),i=o(s=>n.length===1?"all":`all${St(ou(s.replace(/\//g,"")??""))}`,"getQueryKeyName");return n.filter(s=>s!==null).map(s=>({path:s,name:i(s??"")}))},"getAllQueryKeys"),nw=o((e,t)=>{let n=Qm(t).find(({path:s})=>e.path.startsWith(s));if(!n)return[e.path];let i=e.path.substring(n.path.length);return[`...keys.${n.name}`,...i?[`"${i}"`]:[]]},"getEndpointPathQueryKeys");function iw(){JD(),QD(),XD()}o(iw,"registerQueryHbsHelpers");function JD(){Qu.default.registerHelper("queryName",rw)}o(JD,"registerQueryNameHelper");function QD(){Qu.default.registerHelper("allQueryKeys",Qm)}o(QD,"registerQueryKeysHelper");function XD(){Qu.default.registerHelper("endpointPathQueryKeys",nw)}o(XD,"registerEndpointPathQueryKeysHelper");var Xm=Ot(qi());function ow(e){e8(e.options),t8(e)}o(ow,"registerZodHbsHelpers");function e8(e){Xm.default.registerHelper("zodInferedType",t=>na(t,e))}o(e8,"registerInferedTypeHelper");function t8(e){Xm.default.registerHelper("importedZodSchemaName",t=>E1(e,t))}o(t8,"registerImportedZodSchemaNameHelper");function Jo(e,t){let r=em(t);return J2(),ow(e),Q2(e),iw(),tw(),eg.default.compile(r)}o(Jo,"getHbsTemplateDelegate");function Yo(e){let t=em(`partials/${e}`);return eg.default.compile(t)}o(Yo,"getHbsPartialTemplateDelegate");function sw({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints;if(!n||n.length===0)return;let i=n.map(p=>p.response),s=i.some(p=>!Dt(p)),a=n.reduce((p,f)=>[...p,...f.parameters],[]),c=Lo({resolver:e,tag:r,zodSchemas:Gt(i.filter(Dt)),zodSchemasAsTypes:Gt(a.map(p=>p.zodSchema).filter(Dt))});return Jo(e,"endpoints")({restClientImport:iO,hasZodImport:s,zodImport:tu,modelsImports:c,includeNamespace:e.options.includeNamespaces,namespace:dt({type:"endpoints",tag:r,options:e.options}),restClientName:im,endpoints:n})}o(sw,"generateEndpoints");function aw(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(cw(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(aw,"getZodSchemaRefs");function cw(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&cw(n).forEach(s=>r.add(s)),r},new Set)}o(cw,"getSchemaRefs");function uw({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,...aw(e,p)],[]).filter(l=>!n[l]),s=Lo({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[p,f])=>{let d=e.getRefByZodSchemaName(p);return{...l,[p]:{code:f,isCircular:!!d&&e.isSchemaCircular(d)}}},{});return Jo(e,"models")({zodImport:tu,modelsImports:s,includeNamespace:e.options.includeNamespaces,namespace:dt({type:"models",tag:r,options:e.options}),zodSchemasData:a})}o(uw,"generateModels");function lw({resolver:e,data:t,tag:r=""}){var d;let n=(d=t.get(r))==null?void 0:d.endpoints;if(!n||n.length===0)return;let i=n.filter(Ju),s=n.filter(ew),a={...X2,bindings:[...i.length>0?[Hn.query]:[],...s.length>0?[Hn.mutation]:[]]},c={...oO,bindings:[...i.length>0?[ca.query]:[],...s.length>0?[ca.mutation]:[]]},u=[...i,...s].reduce((h,y)=>[...h,...y.parameters],[]),l=Lo({resolver:e,tag:r,zodSchemasAsTypes:Gt(u.map(h=>h.zodSchema).filter(Dt))}),p=sO({tag:r,endpoints:n,options:e.options});return Jo(e,"queries")({queryImport:a,queryTypesImport:c,modelsImports:l,endpointsImports:p,includeNamespace:e.options.includeNamespaces,namespace:dt({type:"queries",tag:r,options:e.options}),endpoints:n,queryEndpoints:i})}o(lw,"generateQueries");function fw(e,t,r=!0){let n={...ru,...t},{resolver:i,data:s}=du(e,n),a=[],c=["models","endpoints","queries"],u={models:uw,endpoints:sw,queries:lw};return s.forEach((l,p)=>{n.excludeTags.find(d=>d.toLowerCase()===p.toLowerCase())||c.forEach(d=>{let h=u[d]({resolver:i,data:s,tag:p});if(h){let y=hu({output:n.output,fileName:Ai({tag:p,type:d,options:n})});a.push({fileName:y,content:h})}})}),r&&a.forEach(X1),a}o(fw,"generateCodeFromOpenAPIDoc");async function hw({input:e,excludeTags:t,prettier:r,verbose:n,...i}){let s=Date.now();n&&mr("Parsing OpenAPI spec...");let a=await pw.default.bundle(e);n&&ni("Parsing finished."),n&&mr("Generating code..."),fw(a,{input:e,excludeTags:t.split(","),...i}),n&&ni("Generation finished."),r&&r8({output:i.output,verbose:n}),n&&mr(`TIME: ${Date.now()-s}ms`)}o(hw,"generate");function r8({output:e,verbose:t}){t&&mr("Running Prettier..."),(0,dw.exec)(`prettier --write ${e}`,r=>{t&&(r?cs(r,"Prettier error"):ni("Prettier finished."))})}o(r8,"execPrettier");var Lt=class Lt{input;output;includeNamespaces;splitByTags;defaultTag;excludeTags;importPath;extractEnums;removeOperationPrefixEndingWith;prettier;verbose};o(Lt,"GenerateOptions"),st([ct({envAlias:"input",demandOption:!0})],Lt.prototype,"input",2),st([ct({envAlias:"output",default:"output"})],Lt.prototype,"output",2),st([ct({envAlias:"includeNamespaces",default:!0,type:"boolean"})],Lt.prototype,"includeNamespaces",2),st([ct({envAlias:"splitByTags",default:!0,type:"boolean"})],Lt.prototype,"splitByTags",2),st([ct({envAlias:"defaultTag",default:"Common"})],Lt.prototype,"defaultTag",2),st([ct({envAlias:"excludeTags",default:""})],Lt.prototype,"excludeTags",2),st([ct({envAlias:"importPath",default:"ts",type:"string"})],Lt.prototype,"importPath",2),st([ct({envAlias:"extractEnums",default:!0,type:"boolean"})],Lt.prototype,"extractEnums",2),st([ct({envAlias:"removeOperationPrefixEndingWith",default:"Controller_"})],Lt.prototype,"removeOperationPrefixEndingWith",2),st([ct({envAlias:"prettier",default:!0,type:"boolean"})],Lt.prototype,"prettier",2),st([ct({envAlias:"verbose",default:!1,type:"boolean"})],Lt.prototype,"verbose",2);var tg=Lt,mw={command:"generate",describe:"Generate code from OpenAPI spec",builder:Ka(tg),handler:o(async e=>{let t=await e;return t.verbose&&(Wa(`OpenAPI CodeGen ${Ki()}`),as("input",t.input),as("output",t.output)),hw(t)},"handler")};ay(fl(process.argv)).version(Ki()||"unknown").scriptName("openapi-codegen").command(mw).command(nO).help().demandCommand(1).strictCommands(!0).showHelpOnFail(!0).fail((e,t)=>{e&&cs(e),t&&cs(t),mr("Use '--help' for more info"),process.exit(1)}).parse();
149
151
  /*! Bundled license information:
150
152
 
151
153
  reflect-metadata/Reflect.js: