@povio/openapi-codegen-cli 0.14.9 → 0.15.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 (65) hide show
  1. package/README.md +39 -0
  2. package/dist/commands/check.d.ts +5 -4
  3. package/dist/commands/generate.d.ts +7 -6
  4. package/dist/generators/checkOpenAPIDoc.d.ts +1 -1
  5. package/dist/generators/const/acl.const.d.ts +1 -1
  6. package/dist/generators/const/deps.const.d.ts +1 -1
  7. package/dist/generators/const/endpoints.const.d.ts +1 -1
  8. package/dist/generators/const/options.const.d.ts +1 -1
  9. package/dist/generators/const/queries.const.d.ts +1 -1
  10. package/dist/generators/const/validation.const.d.ts +1 -1
  11. package/dist/generators/const/zod.const.d.ts +1 -1
  12. package/dist/generators/core/SchemaResolver.class.d.ts +3 -3
  13. package/dist/generators/core/endpoints/getEndpointAcl.d.ts +1 -1
  14. package/dist/generators/core/endpoints/getEndpointBody.d.ts +1 -1
  15. package/dist/generators/core/endpoints/getEndpointParameter.d.ts +1 -1
  16. package/dist/generators/core/endpoints/getEndpointsFromOpenAPIDoc.d.ts +2 -2
  17. package/dist/generators/core/getDataFromOpenAPIDoc.d.ts +2 -2
  18. package/dist/generators/core/getMetadataFromOpenAPIDoc.d.ts +2 -2
  19. package/dist/generators/core/openapi/getSchemaRefObjs.d.ts +1 -1
  20. package/dist/generators/core/openapi/iterateSchema.d.ts +1 -1
  21. package/dist/generators/core/zod/ZodSchema.class.d.ts +1 -1
  22. package/dist/generators/core/zod/enumExtraction/resolveExtractedEnumZodSchemaNames.d.ts +1 -1
  23. package/dist/generators/core/zod/enumExtraction/resolveExtractedEnumZodSchemaTags.d.ts +1 -1
  24. package/dist/generators/core/zod/enumExtraction/updateExtractedEnumZodSchemaData.d.ts +1 -1
  25. package/dist/generators/core/zod/getZodChain.d.ts +1 -1
  26. package/dist/generators/core/zod/getZodSchema.d.ts +1 -1
  27. package/dist/generators/core/zod/getZodSchemaRefs.d.ts +1 -1
  28. package/dist/generators/core/zod/getZodSchemasFromOpenAPIDoc.d.ts +1 -1
  29. package/dist/generators/core/zod/resolveZodSchemaName.d.ts +1 -1
  30. package/dist/generators/core/zod/sortZodSchemasByTopology.d.ts +1 -1
  31. package/dist/generators/core/zod/wrapCircularZodSchemas.d.ts +1 -1
  32. package/dist/generators/generate/generateAcl.d.ts +2 -2
  33. package/dist/generators/generate/generateAclCheck.d.ts +1 -1
  34. package/dist/generators/generate/generateAppRestClient.d.ts +1 -1
  35. package/dist/generators/generate/generateEndpoints.d.ts +1 -1
  36. package/dist/generators/generate/generateModels.d.ts +1 -1
  37. package/dist/generators/generate/generateQueries.d.ts +1 -1
  38. package/dist/generators/generate/generateQueryModules.d.ts +1 -1
  39. package/dist/generators/generate/generateZodUtils.d.ts +1 -1
  40. package/dist/generators/generateCodeFromOpenAPIDoc.d.ts +1 -1
  41. package/dist/generators/types/config.d.ts +2 -0
  42. package/dist/generators/types/generate.d.ts +1 -1
  43. package/dist/generators/utils/brand.utils.d.ts +2 -2
  44. package/dist/generators/utils/file.utils.d.ts +1 -1
  45. package/dist/generators/utils/generate/generate.acl.utils.d.ts +2 -2
  46. package/dist/generators/utils/generate/generate.endpoints.utils.d.ts +1 -1
  47. package/dist/generators/utils/generate/generate.imports.utils.d.ts +3 -3
  48. package/dist/generators/utils/generate/generate.query.utils.d.ts +1 -1
  49. package/dist/generators/utils/generate/generate.utils.d.ts +2 -2
  50. package/dist/generators/utils/generate-files.utils.d.ts +2 -2
  51. package/dist/generators/utils/object.utils.d.ts +8 -1
  52. package/dist/generators/utils/openapi-schema.utils.d.ts +1 -1
  53. package/dist/generators/utils/openapi.utils.d.ts +2 -2
  54. package/dist/generators/utils/operation.utils.d.ts +2 -2
  55. package/dist/generators/utils/query.utils.d.ts +2 -2
  56. package/dist/generators/utils/sort.utils.d.ts +1 -1
  57. package/dist/generators/utils/tag.utils.d.ts +2 -2
  58. package/dist/generators/utils/ts.utils.d.ts +3 -3
  59. package/dist/generators/utils/validation.utils.d.ts +4 -4
  60. package/dist/helpers/cli.helper.d.ts +1 -1
  61. package/dist/helpers/config.helper.d.ts +2 -0
  62. package/dist/index.d.ts +1 -0
  63. package/dist/index.js +34 -34
  64. package/dist/sh.js +66 -66
  65. package/package.json +6 -6
package/dist/sh.js CHANGED
@@ -1,66 +1,66 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var y2=Object.create;var ac=Object.defineProperty;var iy=Object.getOwnPropertyDescriptor;var b2=Object.getOwnPropertyNames;var v2=Object.getPrototypeOf,_2=Object.prototype.hasOwnProperty;var o=(e,t)=>ac(e,"name",{value:t,configurable:!0});var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var S2=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of b2(t))!_2.call(e,i)&&i!==r&&ac(e,i,{get:()=>t[i],enumerable:!(n=iy(t,i))||n.enumerable});return e};var yt=(e,t,r)=>(r=e!=null?y2(v2(e)):{},S2(t||!e||!e.__esModule?ac(r,"default",{value:e,enumerable:!0}):r,e));var Se=(e,t,r,n)=>{for(var i=n>1?void 0:n?iy(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&&ac(t,r,i),i};var Tb=v(()=>{var Cb;(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 tf(Object.create(null))}:u?function(){return tf({__proto__:null})}:function(){return tf({})},has:l?function(S,x){return n.call(S,x)}:function(S,x){return x in S},get:l?function(S,x){return n.call(S,x)?S[x]:void 0}:function(S,x){return S[x]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:p2(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:d2(),y=typeof WeakMap=="function"?WeakMap:h2(),b=i?Symbol.for("@reflect-metadata:registry"):void 0,g=nt(),P=gt(g);function $(S,x,I,M){if(Y(I)){if(!Ue(S))throw new TypeError;if(!Ft(x))throw new TypeError;return R(S,x)}else{if(!Ue(S))throw new TypeError;if(!Me(x))throw new TypeError;if(!Me(M)&&!Y(M)&&!Lt(M))throw new TypeError;return Lt(M)&&(M=void 0),I=_e(I),k(S,x,I,M)}}o($,"decorate"),t("decorate",$);function C(S,x){function I(M,J){if(!Me(M))throw new TypeError;if(!Y(J)&&!uo(J))throw new TypeError;We(S,x,M,J)}return o(I,"decorator"),I}o(C,"metadata"),t("metadata",C);function T(S,x,I,M){if(!Me(I))throw new TypeError;return Y(M)||(M=_e(M)),We(S,x,I,M)}o(T,"defineMetadata"),t("defineMetadata",T);function w(S,x,I){if(!Me(x))throw new TypeError;return Y(I)||(I=_e(I)),Q(S,x,I)}o(w,"hasMetadata"),t("hasMetadata",w);function te(S,x,I){if(!Me(x))throw new TypeError;return Y(I)||(I=_e(I)),ue(S,x,I)}o(te,"hasOwnMetadata"),t("hasOwnMetadata",te);function re(S,x,I){if(!Me(x))throw new TypeError;return Y(I)||(I=_e(I)),ve(S,x,I)}o(re,"getMetadata"),t("getMetadata",re);function $e(S,x,I){if(!Me(x))throw new TypeError;return Y(I)||(I=_e(I)),ge(S,x,I)}o($e,"getOwnMetadata"),t("getOwnMetadata",$e);function Ae(S,x){if(!Me(S))throw new TypeError;return Y(x)||(x=_e(x)),Fr(S,x)}o(Ae,"getMetadataKeys"),t("getMetadataKeys",Ae);function G(S,x){if(!Me(S))throw new TypeError;return Y(x)||(x=_e(x)),Ne(S,x)}o(G,"getOwnMetadataKeys"),t("getOwnMetadataKeys",G);function j(S,x,I){if(!Me(x))throw new TypeError;if(Y(I)||(I=_e(I)),!Me(x))throw new TypeError;Y(I)||(I=_e(I));var M=$s(x,I,!1);return Y(M)?!1:M.OrdinaryDeleteMetadata(S,x,I)}o(j,"deleteMetadata"),t("deleteMetadata",j);function R(S,x){for(var I=S.length-1;I>=0;--I){var M=S[I],J=M(x);if(!Y(J)&&!Lt(J)){if(!Ft(J))throw new TypeError;x=J}}return x}o(R,"DecorateConstructor");function k(S,x,I,M){for(var J=S.length-1;J>=0;--J){var Xe=S[J],at=Xe(x,I,M);if(!Y(at)&&!Lt(at)){if(!Me(at))throw new TypeError;M=at}}return M}o(k,"DecorateProperty");function Q(S,x,I){var M=ue(S,x,I);if(M)return!0;var J=q(x);return Lt(J)?!1:Q(S,J,I)}o(Q,"OrdinaryHasMetadata");function ue(S,x,I){var M=$s(x,I,!1);return Y(M)?!1:ke(M.OrdinaryHasOwnMetadata(S,x,I))}o(ue,"OrdinaryHasOwnMetadata");function ve(S,x,I){var M=ue(S,x,I);if(M)return ge(S,x,I);var J=q(x);if(!Lt(J))return ve(S,J,I)}o(ve,"OrdinaryGetMetadata");function ge(S,x,I){var M=$s(x,I,!1);if(!Y(M))return M.OrdinaryGetOwnMetadata(S,x,I)}o(ge,"OrdinaryGetOwnMetadata");function We(S,x,I,M){var J=$s(I,M,!0);J.OrdinaryDefineOwnMetadata(S,x,I,M)}o(We,"OrdinaryDefineOwnMetadata");function Fr(S,x){var I=Ne(S,x),M=q(S);if(M===null)return I;var J=Fr(M,x);if(J.length<=0)return I;if(I.length<=0)return J;for(var Xe=new h,at=[],de=0,D=I;de<D.length;de++){var L=D[de],V=Xe.has(L);V||(Xe.add(L),at.push(L))}for(var z=0,me=J;z<me.length;z++){var L=me[z],V=Xe.has(L);V||(Xe.add(L),at.push(L))}return at}o(Fr,"OrdinaryMetadataKeys");function Ne(S,x){var I=$s(S,x,!1);return I?I.OrdinaryOwnMetadataKeys(S,x):[]}o(Ne,"OrdinaryOwnMetadataKeys");function ir(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(ir,"Type");function Y(S){return S===void 0}o(Y,"IsUndefined");function Lt(S){return S===null}o(Lt,"IsNull");function ne(S){return typeof S=="symbol"}o(ne,"IsSymbol");function Me(S){return typeof S=="object"?S!==null:typeof S=="function"}o(Me,"IsObject");function X(S,x){switch(ir(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 I=x===3?"string":x===5?"number":"default",M=E(S,s);if(M!==void 0){var J=M.call(S,I);if(Me(J))throw new TypeError;return J}return je(S,I==="default"?"number":I)}o(X,"ToPrimitive");function je(S,x){if(x==="string"){var I=S.toString;if(lt(I)){var M=I.call(S);if(!Me(M))return M}var J=S.valueOf;if(lt(J)){var M=J.call(S);if(!Me(M))return M}}else{var J=S.valueOf;if(lt(J)){var M=J.call(S);if(!Me(M))return M}var Xe=S.toString;if(lt(Xe)){var M=Xe.call(S);if(!Me(M))return M}}throw new TypeError}o(je,"OrdinaryToPrimitive");function ke(S){return!!S}o(ke,"ToBoolean");function pe(S){return""+S}o(pe,"ToString");function _e(S){var x=X(S,3);return ne(x)?x:pe(x)}o(_e,"ToPropertyKey");function Ue(S){return Array.isArray?Array.isArray(S):S instanceof Object?S instanceof Array:Object.prototype.toString.call(S)==="[object Array]"}o(Ue,"IsArray");function lt(S){return typeof S=="function"}o(lt,"IsCallable");function Ft(S){return typeof S=="function"}o(Ft,"IsConstructor");function uo(S){switch(ir(S)){case 3:return!0;case 4:return!0;default:return!1}}o(uo,"IsPropertyKey");function _(S,x){return S===x||S!==S&&x!==x}o(_,"SameValueZero");function E(S,x){var I=S[x];if(I!=null){if(!lt(I))throw new TypeError;return I}}o(E,"GetMethod");function N(S){var x=E(S,a);if(!lt(x))throw new TypeError;var I=x.call(S);if(!Me(I))throw new TypeError;return I}o(N,"GetIterator");function A(S){return S.value}o(A,"IteratorValue");function O(S){var x=S.next();return x.done?!1:x}o(O,"IteratorStep");function H(S){var x=S.return;x&&x.call(S)}o(H,"IteratorClose");function q(S){var x=Object.getPrototypeOf(S);if(typeof S!="function"||S===f||x!==f)return x;var I=S.prototype,M=I&&Object.getPrototypeOf(I);if(M==null||M===Object.prototype)return x;var J=M.constructor;return typeof J!="function"||J===S?x:J}o(q,"OrdinaryGetPrototypeOf");function Z(){var S;!Y(b)&&typeof r.Reflect<"u"&&!(b in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(S=f2(r.Reflect));var x,I,M,J=new y,Xe={registerProvider:at,getProvider:D,setProvider:V};return Xe;function at(z){if(!Object.isExtensible(Xe))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===z:break;case Y(x):x=z;break;case x===z:break;case Y(I):I=z;break;case I===z:break;default:M===void 0&&(M=new h),M.add(z);break}}function de(z,me){if(!Y(x)){if(x.isProviderFor(z,me))return x;if(!Y(I)){if(I.isProviderFor(z,me))return x;if(!Y(M))for(var qe=N(M);;){var et=O(qe);if(!et)return;var Or=A(et);if(Or.isProviderFor(z,me))return H(qe),Or}}}if(!Y(S)&&S.isProviderFor(z,me))return S}function D(z,me){var qe=J.get(z),et;return Y(qe)||(et=qe.get(me)),Y(et)&&(et=de(z,me),Y(et)||(Y(qe)&&(qe=new d,J.set(z,qe)),qe.set(me,et))),et}function L(z){if(Y(z))throw new TypeError;return x===z||I===z||!Y(M)&&M.has(z)}function V(z,me,qe){if(!L(qe))throw new Error("Metadata provider not registered.");var et=D(z,me);if(et!==qe){if(!Y(et))return!1;var Or=J.get(z);Y(Or)&&(Or=new d,J.set(z,Or)),Or.set(me,qe)}return!0}}o(Z,"CreateMetadataRegistry");function nt(){var S;return!Y(b)&&Me(r.Reflect)&&Object.isExtensible(r.Reflect)&&(S=r.Reflect[b]),Y(S)&&(S=Z()),!Y(b)&&Me(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:S}),S}o(nt,"GetOrCreateMetadataRegistry");function gt(S){var x=new y,I={isProviderFor:o(function(L,V){var z=x.get(L);return Y(z)?!1:z.has(V)},"isProviderFor"),OrdinaryDefineOwnMetadata:at,OrdinaryHasOwnMetadata:J,OrdinaryGetOwnMetadata:Xe,OrdinaryOwnMetadataKeys:de,OrdinaryDeleteMetadata:D};return g.registerProvider(I),I;function M(L,V,z){var me=x.get(L),qe=!1;if(Y(me)){if(!z)return;me=new d,x.set(L,me),qe=!0}var et=me.get(V);if(Y(et)){if(!z)return;if(et=new d,me.set(V,et),!S.setProvider(L,V,I))throw me.delete(V),qe&&x.delete(L),new Error("Wrong provider for target.")}return et}o(M,"GetOrCreateMetadataMap");function J(L,V,z){var me=M(V,z,!1);return Y(me)?!1:ke(me.has(L))}o(J,"OrdinaryHasOwnMetadata");function Xe(L,V,z){var me=M(V,z,!1);if(!Y(me))return me.get(L)}o(Xe,"OrdinaryGetOwnMetadata");function at(L,V,z,me){var qe=M(z,me,!0);qe.set(L,V)}o(at,"OrdinaryDefineOwnMetadata");function de(L,V){var z=[],me=M(L,V,!1);if(Y(me))return z;for(var qe=me.keys(),et=N(qe),Or=0;;){var ny=O(et);if(!ny)return z.length=Or,z;var m2=A(ny);try{z[Or]=m2}catch(g2){try{H(et)}finally{throw g2}}Or++}}o(de,"OrdinaryOwnMetadataKeys");function D(L,V,z){var me=M(V,z,!1);if(Y(me)||!me.delete(L))return!1;if(me.size===0){var qe=x.get(V);Y(qe)||(qe.delete(z),qe.size===0&&x.delete(qe))}return!0}o(D,"OrdinaryDeleteMetadata")}o(gt,"CreateMetadataProvider");function f2(S){var x=S.defineMetadata,I=S.hasOwnMetadata,M=S.getOwnMetadata,J=S.getOwnMetadataKeys,Xe=S.deleteMetadata,at=new y,de={isProviderFor:o(function(D,L){var V=at.get(D);return!Y(V)&&V.has(L)?!0:J(D,L).length?(Y(V)&&(V=new h,at.set(D,V)),V.add(L),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:x,OrdinaryHasOwnMetadata:I,OrdinaryGetOwnMetadata:M,OrdinaryOwnMetadataKeys:J,OrdinaryDeleteMetadata:Xe};return de}o(f2,"CreateFallbackProvider");function $s(S,x,I){var M=g.getProvider(S,x);if(!Y(M))return M;if(I){if(g.setProvider(S,x,P))return P;throw new Error("Illegal state.")}}o($s,"GetMetadataProvider");function p2(){var S={},x=[],I=function(){function de(D,L,V){this._index=0,this._keys=D,this._values=L,this._selector=V}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=x,this._values=x):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=x,this._values=x),D},de.prototype.return=function(D){return this._index>=0&&(this._index=-1,this._keys=x,this._values=x),{value:D,done:!0}},de}(),M=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 V=this._find(D,!0);return this._values[V]=L,this},de.prototype.delete=function(D){var L=this._find(D,!1);if(L>=0){for(var V=this._keys.length,z=L+1;z<V;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 I(this._keys,this._values,J)},de.prototype.values=function(){return new I(this._keys,this._values,Xe)},de.prototype.entries=function(){return new I(this._keys,this._values,at)},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 V=0;V<this._keys.length;V++)if(_(this._keys[V],D)){this._cacheIndex=V;break}}return this._cacheIndex<0&&L&&(this._cacheIndex=this._keys.length,this._keys.push(D),this._values.push(void 0)),this._cacheIndex},de}();return M;function J(de,D){return de}function Xe(de,D){return D}function at(de,D){return[de,D]}}o(p2,"CreateMapPolyfill");function d2(){var S=function(){function x(){this._map=new d}return o(x,"Set"),Object.defineProperty(x.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),x.prototype.has=function(I){return this._map.has(I)},x.prototype.add=function(I){return this._map.set(I,I),this},x.prototype.delete=function(I){return this._map.delete(I)},x.prototype.clear=function(){this._map.clear()},x.prototype.keys=function(){return this._map.keys()},x.prototype.values=function(){return this._map.keys()},x.prototype.entries=function(){return this._map.entries()},x.prototype["@@iterator"]=function(){return this.keys()},x.prototype[a]=function(){return this.keys()},x}();return S}o(d2,"CreateSetPolyfill");function h2(){var S=16,x=p.create(),I=M();return function(){function D(){this._key=M()}return o(D,"WeakMap"),D.prototype.has=function(L){var V=J(L,!1);return V!==void 0?p.has(V,this._key):!1},D.prototype.get=function(L){var V=J(L,!1);return V!==void 0?p.get(V,this._key):void 0},D.prototype.set=function(L,V){var z=J(L,!0);return z[this._key]=V,this},D.prototype.delete=function(L){var V=J(L,!1);return V!==void 0?delete V[this._key]:!1},D.prototype.clear=function(){this._key=M()},D}();function M(){var D;do D="@@WeakMap@@"+de();while(p.has(x,D));return x[D]=!0,D}function J(D,L){if(!n.call(D,I)){if(!L)return;Object.defineProperty(D,I,{value:p.create()})}return D[I]}function Xe(D,L){for(var V=0;V<L;++V)D[V]=Math.random()*255|0;return D}function at(D){if(typeof Uint8Array=="function"){var L=new Uint8Array(D);return typeof crypto<"u"?crypto.getRandomValues(L):typeof msCrypto<"u"?msCrypto.getRandomValues(L):Xe(L,D),L}return Xe(new Array(D),D)}function de(){var D=at(S);D[6]=D[6]&79|64,D[8]=D[8]&191|128;for(var L="",V=0;V<S;++V){var z=D[V];(V===4||V===6||V===8)&&(L+="-"),z<16&&(L+="0"),L+=z.toString(16).toLowerCase()}return L}}o(h2,"CreateWeakMapPolyfill");function tf(S){return S.__=void 0,delete S.__,S}o(tf,"MakeDictionary")})})(Cb||(Cb={}))});var Jt=v((Qt,jb)=>{"use strict";var Uc=/^win/.test(process.platform),fw=/\//g,pw=/^(\w{2,}):\/\//i,Nb=jb.exports,dw=/~1/g,hw=/~0/g,Kf=[/\?/g,"%3F",/\#/g,"%23"],Yf=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Qt.parse=require("url").parse;Qt.resolve=require("url").resolve;Qt.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Qt.getProtocol=o(function(t){let r=pw.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Qt.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Qt.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Qt.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Qt.isHttp=o(function(t){let r=Nb.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Qt.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=Nb.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Qt.fromFileSystemPath=o(function(t){Uc&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<Kf.length;r+=2)t=t.replace(Kf[r],Kf[r+1]);return t},"fromFileSystemPath");Qt.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<Yf.length;i+=2)t=t.replace(Yf[i],Yf[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),Uc&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=Uc?t:"/"+t)),Uc&&!n&&(t=t.replace(fw,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Qt.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(dw,"/").replace(hw,"~"))},"safePointerToPath")});var Gc=v(Fs=>{"use strict";var Mb=require("util"),mw=Jt();Fs.format=Mb.format;Fs.inherits=Mb.inherits;Fs.swaggerParamRegExp=/\{([^/}]+)}/g;var gw=["get","post","put","delete","patch","options","head","trace"];function Qf(e,t){if(e.url&&e.url.startsWith("/")){let r=mw.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(Qf,"fixServers");function yw(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>Qf(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=>Qf(a,t)):gw.includes(s)&&i[s].servers&&i[s].servers.map(a=>Qf(a,t))})})}))}o(yw,"fixOasRelativeServers");Fs.fixOasRelativeServers=yw});var zc=v(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.getDeepKeys=Eo.toJSON=void 0;var bw=["function","symbol","undefined"],vw=["constructor","prototype","__proto__"],_w=Object.getPrototypeOf({});function Sw(){let e={},t=this;for(let r of kb(t))if(typeof r=="string"){let n=t[r],i=typeof n;bw.includes(i)||(e[r]=n)}return e}o(Sw,"toJSON");Eo.toJSON=Sw;function kb(e,t=[]){let r=[];for(;e&&e!==_w;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(vw))n.delete(i);return n}o(kb,"getDeepKeys");Eo.getDeepKeys=kb});var Jf=v(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.addInspectMethod=Po.format=void 0;var qb=require("util"),Ow=zc(),Db=qb.inspect.custom||Symbol.for("nodejs.util.inspect.custom");Po.format=qb.format;function Ew(e){e[Db]=Pw}o(Ew,"addInspectMethod");Po.addInspectMethod=Ew;function Pw(){let e={},t=this;for(let r of Ow.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Db],e}o(Pw,"inspect")});var Hb=v(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.lazyJoinStacks=Ur.joinStacks=Ur.isWritableStack=Ur.isLazyStack=void 0;var xw=/\r?\n/,$w=/\bono[ @]/;function ww(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(ww,"isLazyStack");Ur.isLazyStack=ww;function Aw(e){return!!(!e||e.writable||typeof e.set=="function")}o(Aw,"isWritableStack");Ur.isWritableStack=Aw;function Lb(e,t){let r=Fb(e.stack),n=t?t.stack:void 0;return r&&n?r+`
2
+ "use strict";var x2=Object.create;var ac=Object.defineProperty;var ly=Object.getOwnPropertyDescriptor;var $2=Object.getOwnPropertyNames;var w2=Object.getPrototypeOf,A2=Object.prototype.hasOwnProperty;var o=(e,t)=>ac(e,"name",{value:t,configurable:!0});var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var I2=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of $2(t))!A2.call(e,i)&&i!==r&&ac(e,i,{get:()=>t[i],enumerable:!(n=ly(t,i))||n.enumerable});return e};var at=(e,t,r)=>(r=e!=null?x2(w2(e)):{},I2(t||!e||!e.__esModule?ac(r,"default",{value:e,enumerable:!0}):r,e));var ye=(e,t,r,n)=>{for(var i=n>1?void 0:n?ly(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&&ac(t,r,i),i};var Ib=v(()=>{var Ab;(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 sf(Object.create(null))}:u?function(){return sf({__proto__:null})}:function(){return sf({})},has:l?function(S,x){return n.call(S,x)}:function(S,x){return x in S},get:l?function(S,x){return n.call(S,x)?S[x]:void 0}:function(S,x){return S[x]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:_2(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:S2(),y=typeof WeakMap=="function"?WeakMap:O2(),b=i?Symbol.for("@reflect-metadata:registry"):void 0,g=rt(),P=gt(g);function $(S,x,I,M){if(Y(I)){if(!Ve(S))throw new TypeError;if(!Lt(x))throw new TypeError;return R(S,x)}else{if(!Ve(S))throw new TypeError;if(!je(x))throw new TypeError;if(!je(M)&&!Y(M)&&!Dt(M))throw new TypeError;return Dt(M)&&(M=void 0),I=Oe(I),k(S,x,I,M)}}o($,"decorate"),t("decorate",$);function C(S,x){function I(M,J){if(!je(M))throw new TypeError;if(!Y(J)&&!co(J))throw new TypeError;Ze(S,x,M,J)}return o(I,"decorator"),I}o(C,"metadata"),t("metadata",C);function T(S,x,I,M){if(!je(I))throw new TypeError;return Y(M)||(M=Oe(M)),Ze(S,x,I,M)}o(T,"defineMetadata"),t("defineMetadata",T);function w(S,x,I){if(!je(x))throw new TypeError;return Y(I)||(I=Oe(I)),Q(S,x,I)}o(w,"hasMetadata"),t("hasMetadata",w);function te(S,x,I){if(!je(x))throw new TypeError;return Y(I)||(I=Oe(I)),ue(S,x,I)}o(te,"hasOwnMetadata"),t("hasOwnMetadata",te);function re(S,x,I){if(!je(x))throw new TypeError;return Y(I)||(I=Oe(I)),Se(S,x,I)}o(re,"getMetadata"),t("getMetadata",re);function xe(S,x,I){if(!je(x))throw new TypeError;return Y(I)||(I=Oe(I)),ge(S,x,I)}o(xe,"getOwnMetadata"),t("getOwnMetadata",xe);function we(S,x){if(!je(S))throw new TypeError;return Y(x)||(x=Oe(x)),Fr(S,x)}o(we,"getMetadataKeys"),t("getMetadataKeys",we);function G(S,x){if(!je(S))throw new TypeError;return Y(x)||(x=Oe(x)),Re(S,x)}o(G,"getOwnMetadataKeys"),t("getOwnMetadataKeys",G);function j(S,x,I){if(!je(x))throw new TypeError;if(Y(I)||(I=Oe(I)),!je(x))throw new TypeError;Y(I)||(I=Oe(I));var M=$s(x,I,!1);return Y(M)?!1:M.OrdinaryDeleteMetadata(S,x,I)}o(j,"deleteMetadata"),t("deleteMetadata",j);function R(S,x){for(var I=S.length-1;I>=0;--I){var M=S[I],J=M(x);if(!Y(J)&&!Dt(J)){if(!Lt(J))throw new TypeError;x=J}}return x}o(R,"DecorateConstructor");function k(S,x,I,M){for(var J=S.length-1;J>=0;--J){var Je=S[J],st=Je(x,I,M);if(!Y(st)&&!Dt(st)){if(!je(st))throw new TypeError;M=st}}return M}o(k,"DecorateProperty");function Q(S,x,I){var M=ue(S,x,I);if(M)return!0;var J=q(x);return Dt(J)?!1:Q(S,J,I)}o(Q,"OrdinaryHasMetadata");function ue(S,x,I){var M=$s(x,I,!1);return Y(M)?!1:Me(M.OrdinaryHasOwnMetadata(S,x,I))}o(ue,"OrdinaryHasOwnMetadata");function Se(S,x,I){var M=ue(S,x,I);if(M)return ge(S,x,I);var J=q(x);if(!Dt(J))return Se(S,J,I)}o(Se,"OrdinaryGetMetadata");function ge(S,x,I){var M=$s(x,I,!1);if(!Y(M))return M.OrdinaryGetOwnMetadata(S,x,I)}o(ge,"OrdinaryGetOwnMetadata");function Ze(S,x,I,M){var J=$s(I,M,!0);J.OrdinaryDefineOwnMetadata(S,x,I,M)}o(Ze,"OrdinaryDefineOwnMetadata");function Fr(S,x){var I=Re(S,x),M=q(S);if(M===null)return I;var J=Fr(M,x);if(J.length<=0)return I;if(I.length<=0)return J;for(var Je=new h,st=[],de=0,D=I;de<D.length;de++){var L=D[de],V=Je.has(L);V||(Je.add(L),st.push(L))}for(var z=0,me=J;z<me.length;z++){var L=me[z],V=Je.has(L);V||(Je.add(L),st.push(L))}return st}o(Fr,"OrdinaryMetadataKeys");function Re(S,x){var I=$s(S,x,!1);return I?I.OrdinaryOwnMetadataKeys(S,x):[]}o(Re,"OrdinaryOwnMetadataKeys");function ir(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(ir,"Type");function Y(S){return S===void 0}o(Y,"IsUndefined");function Dt(S){return S===null}o(Dt,"IsNull");function ne(S){return typeof S=="symbol"}o(ne,"IsSymbol");function je(S){return typeof S=="object"?S!==null:typeof S=="function"}o(je,"IsObject");function X(S,x){switch(ir(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 I=x===3?"string":x===5?"number":"default",M=E(S,s);if(M!==void 0){var J=M.call(S,I);if(je(J))throw new TypeError;return J}return Ne(S,I==="default"?"number":I)}o(X,"ToPrimitive");function Ne(S,x){if(x==="string"){var I=S.toString;if(lt(I)){var M=I.call(S);if(!je(M))return M}var J=S.valueOf;if(lt(J)){var M=J.call(S);if(!je(M))return M}}else{var J=S.valueOf;if(lt(J)){var M=J.call(S);if(!je(M))return M}var Je=S.toString;if(lt(Je)){var M=Je.call(S);if(!je(M))return M}}throw new TypeError}o(Ne,"OrdinaryToPrimitive");function Me(S){return!!S}o(Me,"ToBoolean");function pe(S){return""+S}o(pe,"ToString");function Oe(S){var x=X(S,3);return ne(x)?x:pe(x)}o(Oe,"ToPropertyKey");function Ve(S){return Array.isArray?Array.isArray(S):S instanceof Object?S instanceof Array:Object.prototype.toString.call(S)==="[object Array]"}o(Ve,"IsArray");function lt(S){return typeof S=="function"}o(lt,"IsCallable");function Lt(S){return typeof S=="function"}o(Lt,"IsConstructor");function co(S){switch(ir(S)){case 3:return!0;case 4:return!0;default:return!1}}o(co,"IsPropertyKey");function _(S,x){return S===x||S!==S&&x!==x}o(_,"SameValueZero");function E(S,x){var I=S[x];if(I!=null){if(!lt(I))throw new TypeError;return I}}o(E,"GetMethod");function N(S){var x=E(S,a);if(!lt(x))throw new TypeError;var I=x.call(S);if(!je(I))throw new TypeError;return I}o(N,"GetIterator");function A(S){return S.value}o(A,"IteratorValue");function O(S){var x=S.next();return x.done?!1:x}o(O,"IteratorStep");function H(S){var x=S.return;x&&x.call(S)}o(H,"IteratorClose");function q(S){var x=Object.getPrototypeOf(S);if(typeof S!="function"||S===f||x!==f)return x;var I=S.prototype,M=I&&Object.getPrototypeOf(I);if(M==null||M===Object.prototype)return x;var J=M.constructor;return typeof J!="function"||J===S?x:J}o(q,"OrdinaryGetPrototypeOf");function Z(){var S;!Y(b)&&typeof r.Reflect<"u"&&!(b in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(S=v2(r.Reflect));var x,I,M,J=new y,Je={registerProvider:st,getProvider:D,setProvider:V};return Je;function st(z){if(!Object.isExtensible(Je))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===z:break;case Y(x):x=z;break;case x===z:break;case Y(I):I=z;break;case I===z:break;default:M===void 0&&(M=new h),M.add(z);break}}function de(z,me){if(!Y(x)){if(x.isProviderFor(z,me))return x;if(!Y(I)){if(I.isProviderFor(z,me))return x;if(!Y(M))for(var ke=N(M);;){var Xe=O(ke);if(!Xe)return;var Sr=A(Xe);if(Sr.isProviderFor(z,me))return H(ke),Sr}}}if(!Y(S)&&S.isProviderFor(z,me))return S}function D(z,me){var ke=J.get(z),Xe;return Y(ke)||(Xe=ke.get(me)),Y(Xe)&&(Xe=de(z,me),Y(Xe)||(Y(ke)&&(ke=new d,J.set(z,ke)),ke.set(me,Xe))),Xe}function L(z){if(Y(z))throw new TypeError;return x===z||I===z||!Y(M)&&M.has(z)}function V(z,me,ke){if(!L(ke))throw new Error("Metadata provider not registered.");var Xe=D(z,me);if(Xe!==ke){if(!Y(Xe))return!1;var Sr=J.get(z);Y(Sr)&&(Sr=new d,J.set(z,Sr)),Sr.set(me,ke)}return!0}}o(Z,"CreateMetadataRegistry");function rt(){var S;return!Y(b)&&je(r.Reflect)&&Object.isExtensible(r.Reflect)&&(S=r.Reflect[b]),Y(S)&&(S=Z()),!Y(b)&&je(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:S}),S}o(rt,"GetOrCreateMetadataRegistry");function gt(S){var x=new y,I={isProviderFor:o(function(L,V){var z=x.get(L);return Y(z)?!1:z.has(V)},"isProviderFor"),OrdinaryDefineOwnMetadata:st,OrdinaryHasOwnMetadata:J,OrdinaryGetOwnMetadata:Je,OrdinaryOwnMetadataKeys:de,OrdinaryDeleteMetadata:D};return g.registerProvider(I),I;function M(L,V,z){var me=x.get(L),ke=!1;if(Y(me)){if(!z)return;me=new d,x.set(L,me),ke=!0}var Xe=me.get(V);if(Y(Xe)){if(!z)return;if(Xe=new d,me.set(V,Xe),!S.setProvider(L,V,I))throw me.delete(V),ke&&x.delete(L),new Error("Wrong provider for target.")}return Xe}o(M,"GetOrCreateMetadataMap");function J(L,V,z){var me=M(V,z,!1);return Y(me)?!1:Me(me.has(L))}o(J,"OrdinaryHasOwnMetadata");function Je(L,V,z){var me=M(V,z,!1);if(!Y(me))return me.get(L)}o(Je,"OrdinaryGetOwnMetadata");function st(L,V,z,me){var ke=M(z,me,!0);ke.set(L,V)}o(st,"OrdinaryDefineOwnMetadata");function de(L,V){var z=[],me=M(L,V,!1);if(Y(me))return z;for(var ke=me.keys(),Xe=N(ke),Sr=0;;){var uy=O(Xe);if(!uy)return z.length=Sr,z;var E2=A(uy);try{z[Sr]=E2}catch(P2){try{H(Xe)}finally{throw P2}}Sr++}}o(de,"OrdinaryOwnMetadataKeys");function D(L,V,z){var me=M(V,z,!1);if(Y(me)||!me.delete(L))return!1;if(me.size===0){var ke=x.get(V);Y(ke)||(ke.delete(z),ke.size===0&&x.delete(ke))}return!0}o(D,"OrdinaryDeleteMetadata")}o(gt,"CreateMetadataProvider");function v2(S){var x=S.defineMetadata,I=S.hasOwnMetadata,M=S.getOwnMetadata,J=S.getOwnMetadataKeys,Je=S.deleteMetadata,st=new y,de={isProviderFor:o(function(D,L){var V=st.get(D);return!Y(V)&&V.has(L)?!0:J(D,L).length?(Y(V)&&(V=new h,st.set(D,V)),V.add(L),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:x,OrdinaryHasOwnMetadata:I,OrdinaryGetOwnMetadata:M,OrdinaryOwnMetadataKeys:J,OrdinaryDeleteMetadata:Je};return de}o(v2,"CreateFallbackProvider");function $s(S,x,I){var M=g.getProvider(S,x);if(!Y(M))return M;if(I){if(g.setProvider(S,x,P))return P;throw new Error("Illegal state.")}}o($s,"GetMetadataProvider");function _2(){var S={},x=[],I=function(){function de(D,L,V){this._index=0,this._keys=D,this._values=L,this._selector=V}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=x,this._values=x):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=x,this._values=x),D},de.prototype.return=function(D){return this._index>=0&&(this._index=-1,this._keys=x,this._values=x),{value:D,done:!0}},de}(),M=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 V=this._find(D,!0);return this._values[V]=L,this},de.prototype.delete=function(D){var L=this._find(D,!1);if(L>=0){for(var V=this._keys.length,z=L+1;z<V;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 I(this._keys,this._values,J)},de.prototype.values=function(){return new I(this._keys,this._values,Je)},de.prototype.entries=function(){return new I(this._keys,this._values,st)},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 V=0;V<this._keys.length;V++)if(_(this._keys[V],D)){this._cacheIndex=V;break}}return this._cacheIndex<0&&L&&(this._cacheIndex=this._keys.length,this._keys.push(D),this._values.push(void 0)),this._cacheIndex},de}();return M;function J(de,D){return de}function Je(de,D){return D}function st(de,D){return[de,D]}}o(_2,"CreateMapPolyfill");function S2(){var S=function(){function x(){this._map=new d}return o(x,"Set"),Object.defineProperty(x.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),x.prototype.has=function(I){return this._map.has(I)},x.prototype.add=function(I){return this._map.set(I,I),this},x.prototype.delete=function(I){return this._map.delete(I)},x.prototype.clear=function(){this._map.clear()},x.prototype.keys=function(){return this._map.keys()},x.prototype.values=function(){return this._map.keys()},x.prototype.entries=function(){return this._map.entries()},x.prototype["@@iterator"]=function(){return this.keys()},x.prototype[a]=function(){return this.keys()},x}();return S}o(S2,"CreateSetPolyfill");function O2(){var S=16,x=p.create(),I=M();return function(){function D(){this._key=M()}return o(D,"WeakMap"),D.prototype.has=function(L){var V=J(L,!1);return V!==void 0?p.has(V,this._key):!1},D.prototype.get=function(L){var V=J(L,!1);return V!==void 0?p.get(V,this._key):void 0},D.prototype.set=function(L,V){var z=J(L,!0);return z[this._key]=V,this},D.prototype.delete=function(L){var V=J(L,!1);return V!==void 0?delete V[this._key]:!1},D.prototype.clear=function(){this._key=M()},D}();function M(){var D;do D="@@WeakMap@@"+de();while(p.has(x,D));return x[D]=!0,D}function J(D,L){if(!n.call(D,I)){if(!L)return;Object.defineProperty(D,I,{value:p.create()})}return D[I]}function Je(D,L){for(var V=0;V<L;++V)D[V]=Math.random()*255|0;return D}function st(D){if(typeof Uint8Array=="function"){var L=new Uint8Array(D);return typeof crypto<"u"?crypto.getRandomValues(L):typeof msCrypto<"u"?msCrypto.getRandomValues(L):Je(L,D),L}return Je(new Array(D),D)}function de(){var D=st(S);D[6]=D[6]&79|64,D[8]=D[8]&191|128;for(var L="",V=0;V<S;++V){var z=D[V];(V===4||V===6||V===8)&&(L+="-"),z<16&&(L+="0"),L+=z.toString(16).toLowerCase()}return L}}o(O2,"CreateWeakMapPolyfill");function sf(S){return S.__=void 0,delete S.__,S}o(sf,"MakeDictionary")})})(Ab||(Ab={}))});var Jt=v((Qt,Rb)=>{"use strict";var Mc=/^win/.test(process.platform),vw=/\//g,_w=/^(\w{2,}):\/\//i,Tb=Rb.exports,Sw=/~1/g,Ow=/~0/g,Yf=[/\?/g,"%3F",/\#/g,"%23"],Qf=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Qt.parse=require("url").parse;Qt.resolve=require("url").resolve;Qt.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Qt.getProtocol=o(function(t){let r=_w.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Qt.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Qt.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Qt.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Qt.isHttp=o(function(t){let r=Tb.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Qt.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=Tb.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Qt.fromFileSystemPath=o(function(t){Mc&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<Yf.length;r+=2)t=t.replace(Yf[r],Yf[r+1]);return t},"fromFileSystemPath");Qt.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<Qf.length;i+=2)t=t.replace(Qf[i],Qf[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),Mc&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=Mc?t:"/"+t)),Mc&&!n&&(t=t.replace(vw,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Qt.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(Sw,"/").replace(Ow,"~"))},"safePointerToPath")});var kc=v(ks=>{"use strict";var Nb=require("util"),Ew=Jt();ks.format=Nb.format;ks.inherits=Nb.inherits;ks.swaggerParamRegExp=/\{([^/}]+)}/g;var Pw=["get","post","put","delete","patch","options","head","trace"];function Jf(e,t){if(e.url&&e.url.startsWith("/")){let r=Ew.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(Jf,"fixServers");function xw(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>Jf(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=>Jf(a,t)):Pw.includes(s)&&i[s].servers&&i[s].servers.map(a=>Jf(a,t))})})}))}o(xw,"fixOasRelativeServers");ks.fixOasRelativeServers=xw});var qc=v(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.getDeepKeys=_o.toJSON=void 0;var $w=["function","symbol","undefined"],ww=["constructor","prototype","__proto__"],Aw=Object.getPrototypeOf({});function Iw(){let e={},t=this;for(let r of jb(t))if(typeof r=="string"){let n=t[r],i=typeof n;$w.includes(i)||(e[r]=n)}return e}o(Iw,"toJSON");_o.toJSON=Iw;function jb(e,t=[]){let r=[];for(;e&&e!==Aw;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(ww))n.delete(i);return n}o(jb,"getDeepKeys");_o.getDeepKeys=jb});var Xf=v(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.addInspectMethod=So.format=void 0;var Mb=require("util"),Cw=qc(),kb=Mb.inspect.custom||Symbol.for("nodejs.util.inspect.custom");So.format=Mb.format;function Tw(e){e[kb]=Rw}o(Tw,"addInspectMethod");So.addInspectMethod=Tw;function Rw(){let e={},t=this;for(let r of Cw.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[kb],e}o(Rw,"inspect")});var Lb=v(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.lazyJoinStacks=Vr.joinStacks=Vr.isWritableStack=Vr.isLazyStack=void 0;var Nw=/\r?\n/,jw=/\bono[ @]/;function Mw(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(Mw,"isLazyStack");Vr.isLazyStack=Mw;function kw(e){return!!(!e||e.writable||typeof e.set=="function")}o(kw,"isWritableStack");Vr.isWritableStack=kw;function qb(e,t){let r=Db(e.stack),n=t?t.stack:void 0;return r&&n?r+`
3
3
 
4
- `+n:r||n}o(Lb,"joinStacks");Ur.joinStacks=Lb;function Iw(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return Lb({stack:n},r)},"get"),enumerable:!1,configurable:!0}):Cw(t,e)}o(Iw,"lazyJoinStacks");Ur.lazyJoinStacks=Iw;function Fb(e){if(e){let t=e.split(xw),r;for(let n=0;n<t.length;n++){let i=t[n];if($w.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(Fb,"popStack");function Cw(e,t){Object.defineProperty(e,"stack",{get:o(()=>Fb(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(Cw,"lazyPopStack")});var Ub=v(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.extendError=void 0;var Bb=Jf(),Zc=Hb(),Vb=zc(),Tw=["name","message","stack"];function Rw(e,t,r){let n=e;return Nw(n,t),t&&typeof t=="object"&&jw(n,t),n.toJSON=Vb.toJSON,Bb.addInspectMethod&&Bb.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(Rw,"extendError");Wc.extendError=Rw;function Nw(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");Zc.isLazyStack(r)?Zc.lazyJoinStacks(r,e,t):Zc.isWritableStack(r)&&(e.stack=Zc.joinStacks(e,t))}o(Nw,"extendStack");function jw(e,t){let r=Vb.getDeepKeys(t,Tw),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o(jw,"mergeErrors")});var Gb=v(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.normalizeArgs=xo.normalizeOptions=void 0;var Mw=Jf();function kw(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?Mw.format:typeof e.format=="function"?e.format:!1}}o(kw,"normalizeOptions");xo.normalizeOptions=kw;function qw(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(qw,"normalizeArgs");xo.normalizeArgs=qw});var ep=v(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.Ono=void 0;var Kc=Ub(),zb=Gb(),Dw=zc(),Lw=Xf;Yc.Ono=Lw;function Xf(e,t){t=zb.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=zb.normalizeArgs(n,t),c=new e(a);return Kc.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(Xf,"Ono");Xf.toJSON=o(function(t){return Dw.toJSON.call(t)},"toJSON");Xf.extend=o(function(t,r,n){return n||r instanceof Error?Kc.extendError(t,r,n):r?Kc.extendError(t,void 0,r):Kc.extendError(t)},"extend")});var Zb=v(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.ono=void 0;var wi=ep(),Fw=Gr;Qc.ono=Fw;Gr.error=new wi.Ono(Error);Gr.eval=new wi.Ono(EvalError);Gr.range=new wi.Ono(RangeError);Gr.reference=new wi.Ono(ReferenceError);Gr.syntax=new wi.Ono(SyntaxError);Gr.type=new wi.Ono(TypeError);Gr.uri=new wi.Ono(URIError);var Hw=Gr;function Gr(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(Hw))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 Gr.error.apply(void 0,e)}o(Gr,"ono")});var Kb=v(Wb=>{"use strict";Object.defineProperty(Wb,"__esModule",{value:!0});var G6=require("util")});var wr=v(($r,$o)=>{"use strict";var Bw=$r&&$r.__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]}),Vw=$r&&$r.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&Bw(t,e,r)};Object.defineProperty($r,"__esModule",{value:!0});$r.ono=void 0;var Yb=Zb();Object.defineProperty($r,"ono",{enumerable:!0,get:o(function(){return Yb.ono},"get")});var Uw=ep();Object.defineProperty($r,"Ono",{enumerable:!0,get:o(function(){return Uw.Ono},"get")});Vw(Kb(),$r);$r.default=Yb.ono;typeof $o=="object"&&typeof $o.exports=="object"&&($o.exports=Object.assign($o.exports.default,$o.exports))});var Vs=v(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.regexpCode=Ee.getEsmExportName=Ee.getProperty=Ee.safeStringify=Ee.stringify=Ee.strConcat=Ee.addCodeArg=Ee.str=Ee._=Ee.nil=Ee._Code=Ee.Name=Ee.IDENTIFIER=Ee._CodeOrName=void 0;var np=class np{};o(np,"_CodeOrName");var Hs=np;Ee._CodeOrName=Hs;Ee.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ip=class ip extends Hs{constructor(t){if(super(),!Ee.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(ip,"Name");var Ai=ip;Ee.Name=Ai;var op=class op extends Hs{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 Ai&&(r[n.str]=(r[n.str]||0)+1),r),{})}};o(op,"_Code");var dr=op;Ee._Code=dr;Ee.nil=new dr("");function Qb(e,...t){let r=[e[0]],n=0;for(;n<t.length;)rp(r,t[n]),r.push(e[++n]);return new dr(r)}o(Qb,"_");Ee._=Qb;var tp=new dr("+");function Jb(e,...t){let r=[Bs(e[0])],n=0;for(;n<t.length;)r.push(tp),rp(r,t[n]),r.push(tp,Bs(e[++n]));return Gw(r),new dr(r)}o(Jb,"str");Ee.str=Jb;function rp(e,t){t instanceof dr?e.push(...t._items):t instanceof Ai?e.push(t):e.push(Ww(t))}o(rp,"addCodeArg");Ee.addCodeArg=rp;function Gw(e){let t=1;for(;t<e.length-1;){if(e[t]===tp){let r=zw(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(Gw,"optimize");function zw(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Ai||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 Ai))return`"${e}${t.slice(1)}`}o(zw,"mergeExprItems");function Zw(e,t){return t.emptyStr()?e:e.emptyStr()?t:Jb`${e}${t}`}o(Zw,"strConcat");Ee.strConcat=Zw;function Ww(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Bs(Array.isArray(e)?e.join(","):e)}o(Ww,"interpolate");function Kw(e){return new dr(Bs(e))}o(Kw,"stringify");Ee.stringify=Kw;function Bs(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(Bs,"safeStringify");Ee.safeStringify=Bs;function Yw(e){return typeof e=="string"&&Ee.IDENTIFIER.test(e)?new dr(`.${e}`):Qb`[${e}]`}o(Yw,"getProperty");Ee.getProperty=Yw;function Qw(e){if(typeof e=="string"&&Ee.IDENTIFIER.test(e))return new dr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(Qw,"getEsmExportName");Ee.getEsmExportName=Qw;function Jw(e){return new dr(e.toString())}o(Jw,"regexpCode");Ee.regexpCode=Jw});var pp=v(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.ValueScope=Vt.ValueScopeName=Vt.Scope=Vt.varKinds=Vt.UsedValueState=void 0;var Bt=Vs(),cp=class cp extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(cp,"ValueError");var sp=cp,Jc;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Jc||(Vt.UsedValueState=Jc={}));Vt.varKinds={const:new Bt.Name("const"),let:new Bt.Name("let"),var:new Bt.Name("var")};var up=class up{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Bt.Name?t:this.name(t)}name(t){return new Bt.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(up,"Scope");var Xc=up;Vt.Scope=Xc;var lp=class lp extends Bt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Bt._)`.${new Bt.Name(r)}[${n}]`}};o(lp,"ValueScopeName");var eu=lp;Vt.ValueScopeName=eu;var Xw=(0,Bt._)`\n`,fp=class fp extends Xc{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?Xw:Bt.nil}}get(){return this._scope}name(t){return new eu(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,Bt._)`${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=Bt.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,Jc.Started);let p=r(l);if(p){let f=this.opts.es5?Vt.varKinds.var:Vt.varKinds.const;s=(0,Bt._)`${s}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))s=(0,Bt._)`${s}${p}${this.opts._n}`;else throw new sp(l);u.set(l,Jc.Completed)})}return s}};o(fp,"ValueScope");var ap=fp;Vt.ValueScope=ap});var ae=v(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.or=le.and=le.not=le.CodeGen=le.operators=le.varKinds=le.ValueScopeName=le.ValueScope=le.Scope=le.Name=le.regexpCode=le.stringify=le.getProperty=le.nil=le.strConcat=le.str=le._=void 0;var ye=Vs(),Ar=pp(),jn=Vs();Object.defineProperty(le,"_",{enumerable:!0,get:o(function(){return jn._},"get")});Object.defineProperty(le,"str",{enumerable:!0,get:o(function(){return jn.str},"get")});Object.defineProperty(le,"strConcat",{enumerable:!0,get:o(function(){return jn.strConcat},"get")});Object.defineProperty(le,"nil",{enumerable:!0,get:o(function(){return jn.nil},"get")});Object.defineProperty(le,"getProperty",{enumerable:!0,get:o(function(){return jn.getProperty},"get")});Object.defineProperty(le,"stringify",{enumerable:!0,get:o(function(){return jn.stringify},"get")});Object.defineProperty(le,"regexpCode",{enumerable:!0,get:o(function(){return jn.regexpCode},"get")});Object.defineProperty(le,"Name",{enumerable:!0,get:o(function(){return jn.Name},"get")});var iu=pp();Object.defineProperty(le,"Scope",{enumerable:!0,get:o(function(){return iu.Scope},"get")});Object.defineProperty(le,"ValueScope",{enumerable:!0,get:o(function(){return iu.ValueScope},"get")});Object.defineProperty(le,"ValueScopeName",{enumerable:!0,get:o(function(){return iu.ValueScopeName},"get")});Object.defineProperty(le,"varKinds",{enumerable:!0,get:o(function(){return iu.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 xp=class xp{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(xp,"Node");var mn=xp,$p=class $p extends mn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Ar.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=Io(this.rhs,t,r)),this}get names(){return this.rhs instanceof ye._CodeOrName?this.rhs.names:{}}};o($p,"Def");var dp=$p,wp=class wp extends mn{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=Io(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ye.Name?{}:{...this.lhs.names};return nu(t,this.rhs)}};o(wp,"Assign");var tu=wp,Ap=class Ap extends tu{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(Ap,"AssignOp");var hp=Ap,Ip=class Ip extends mn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(Ip,"Label");var mp=Ip,Cp=class Cp extends mn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(Cp,"Break");var gp=Cp,Tp=class Tp extends mn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(Tp,"Throw");var yp=Tp,Rp=class Rp extends mn{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=Io(this.code,t,r),this}get names(){return this.code instanceof ye._CodeOrName?this.code.names:{}}};o(Rp,"AnyCode");var bp=Rp,Np=class Np extends mn{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)||(eA(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Ti(t,r.names),{})}};o(Np,"ParentNode");var Us=Np,jp=class jp extends Us{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(jp,"BlockNode");var gn=jp,Mp=class Mp extends Us{};o(Mp,"Root");var vp=Mp,kp=class kp extends gn{};o(kp,"Else");var Ao=kp;Ao.kind="else";var wo=class wo extends gn{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 Ao(n):n}if(r)return t===!1?r instanceof wo?r:r.nodes:this.nodes.length?this:new wo(Xb(t),r instanceof wo?[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=Io(this.condition,t,r),this}get names(){let t=super.names;return nu(t,this.condition),this.else&&Ti(t,this.else.names),t}};o(wo,"If");var Ii=wo;Ii.kind="if";var qp=class qp extends gn{};o(qp,"For");var Ci=qp;Ci.kind="for";var Dp=class Dp extends Ci{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=Io(this.iteration,t,r),this}get names(){return Ti(super.names,this.iteration.names)}};o(Dp,"ForLoop");var _p=Dp,Lp=class Lp extends Ci{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Ar.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=nu(super.names,this.from);return nu(t,this.to)}};o(Lp,"ForRange");var Sp=Lp,Fp=class Fp extends Ci{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=Io(this.iterable,t,r),this}get names(){return Ti(super.names,this.iterable.names)}};o(Fp,"ForIter");var ru=Fp,Hp=class Hp extends gn{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(Hp,"Func");var Gs=Hp;Gs.kind="func";var Bp=class Bp extends Us{render(t){return"return "+super.render(t)}};o(Bp,"Return");var zs=Bp;zs.kind="return";var Vp=class Vp extends gn{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&&Ti(t,this.catch.names),this.finally&&Ti(t,this.finally.names),t}};o(Vp,"Try");var Op=Vp,Up=class Up extends gn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(Up,"Catch");var Zs=Up;Zs.kind="catch";var Gp=class Gp extends gn{render(t){return"finally"+super.render(t)}};o(Gp,"Finally");var Ws=Gp;Ws.kind="finally";var zp=class zp{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
7
- `:""},this._extScope=t,this._scope=new Ar.Scope({parent:t}),this._nodes=[new vp]}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 dp(t,s,n)),s}const(t,r,n){return this._def(Ar.varKinds.const,t,r,n)}let(t,r,n){return this._def(Ar.varKinds.let,t,r,n)}var(t,r,n){return this._def(Ar.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new tu(t,r,n))}add(t,r){return this._leafNode(new hp(t,le.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ye.nil&&this._leafNode(new bp(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 Ii(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 Ii(t))}else(){return this._elseNode(new Ao)}endIf(){return this._endBlockNode(Ii,Ao)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new _p(t),r)}forRange(t,r,n,i,s=this.opts.es5?Ar.varKinds.var:Ar.varKinds.let){let a=this._scope.toName(t);return this._for(new Sp(s,a,r,n),()=>i(a))}forOf(t,r,n,i=Ar.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 ru("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?Ar.varKinds.var:Ar.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 ru("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Ci)}label(t){return this._leafNode(new mp(t))}break(t){return this._leafNode(new gp(t))}return(t){let r=new zs;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(zs)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Op;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new Zs(s),r(s)}return n&&(this._currNode=i.finally=new Ws,this.code(n)),this._endBlockNode(Zs,Ws)}throw(t){return this._leafNode(new yp(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 Gs(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Gs)}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 Ii))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(zp,"CodeGen");var Ep=zp;le.CodeGen=Ep;function Ti(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(Ti,"addNames");function nu(e,t){return t instanceof ye._CodeOrName?Ti(e,t.names):e}o(nu,"addExprNames");function Io(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(Io,"optimizeExpr");function eA(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(eA,"subtractNames");function Xb(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ye._)`!${Pp(e)}`}o(Xb,"not");le.not=Xb;var tA=e0(le.operators.AND);function rA(...e){return e.reduce(tA)}o(rA,"and");le.and=rA;var nA=e0(le.operators.OR);function iA(...e){return e.reduce(nA)}o(iA,"or");le.or=iA;function e0(e){return(t,r)=>t===ye.nil?r:r===ye.nil?t:(0,ye._)`${Pp(t)} ${e} ${Pp(r)}`}o(e0,"mappend");function Pp(e){return e instanceof ye.Name?e:(0,ye._)`(${e})`}o(Pp,"par")});var he=v(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.checkStrictMode=fe.getErrorPath=fe.Type=fe.useFunc=fe.setEvaluated=fe.evaluatedPropsToName=fe.mergeEvaluated=fe.eachItem=fe.unescapeJsonPointer=fe.escapeJsonPointer=fe.escapeFragment=fe.unescapeFragment=fe.schemaRefOrVal=fe.schemaHasRulesButRef=fe.schemaHasRules=fe.checkUnknownRules=fe.alwaysValidSchema=fe.toHash=void 0;var Ce=ae(),oA=Vs();function sA(e){let t={};for(let r of e)t[r]=!0;return t}o(sA,"toHash");fe.toHash=sA;function aA(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(n0(e,t),!i0(t,e.self.RULES.all))}o(aA,"alwaysValidSchema");fe.alwaysValidSchema=aA;function n0(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]||a0(e,`unknown keyword: "${s}"`)}o(n0,"checkUnknownRules");fe.checkUnknownRules=n0;function i0(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(i0,"schemaHasRules");fe.schemaHasRules=i0;function cA(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(cA,"schemaHasRulesButRef");fe.schemaHasRulesButRef=cA;function uA({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Ce._)`${r}`}return(0,Ce._)`${e}${t}${(0,Ce.getProperty)(n)}`}o(uA,"schemaRefOrVal");fe.schemaRefOrVal=uA;function lA(e){return o0(decodeURIComponent(e))}o(lA,"unescapeFragment");fe.unescapeFragment=lA;function fA(e){return encodeURIComponent(Wp(e))}o(fA,"escapeFragment");fe.escapeFragment=fA;function Wp(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(Wp,"escapeJsonPointer");fe.escapeJsonPointer=Wp;function o0(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(o0,"unescapeJsonPointer");fe.unescapeJsonPointer=o0;function pA(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(pA,"eachItem");fe.eachItem=pA;function t0({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof Ce.Name?(s instanceof Ce.Name?e(i,s,a):t(i,s,a),a):s instanceof Ce.Name?(t(i,a,s),s):r(s,a);return c===Ce.Name&&!(u instanceof Ce.Name)?n(i,u):u}}o(t0,"makeMergeEvaluated");fe.mergeEvaluated={props:t0({mergeNames:o((e,t,r)=>e.if((0,Ce._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Ce._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Ce._)`${r} || {}`).code((0,Ce._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,Ce._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Ce._)`${r} || {}`),Kp(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:s0}),items:t0({mergeNames:o((e,t,r)=>e.if((0,Ce._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Ce._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,Ce._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Ce._)`${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 s0(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Ce._)`{}`);return t!==void 0&&Kp(e,r,t),r}o(s0,"evaluatedPropsToName");fe.evaluatedPropsToName=s0;function Kp(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Ce._)`${t}${(0,Ce.getProperty)(n)}`,!0))}o(Kp,"setEvaluated");fe.setEvaluated=Kp;var r0={};function dA(e,t){return e.scopeValue("func",{ref:t,code:r0[t.code]||(r0[t.code]=new oA._Code(t.code))})}o(dA,"useFunc");fe.useFunc=dA;var Zp;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Zp||(fe.Type=Zp={}));function hA(e,t,r){if(e instanceof Ce.Name){let n=t===Zp.Num;return r?n?(0,Ce._)`"[" + ${e} + "]"`:(0,Ce._)`"['" + ${e} + "']"`:n?(0,Ce._)`"/" + ${e}`:(0,Ce._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Ce.getProperty)(e).toString():"/"+Wp(e)}o(hA,"getErrorPath");fe.getErrorPath=hA;function a0(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(a0,"checkStrictMode");fe.checkStrictMode=a0});var hr=v(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});var Et=ae(),mA={data:new Et.Name("data"),valCxt:new Et.Name("valCxt"),instancePath:new Et.Name("instancePath"),parentData:new Et.Name("parentData"),parentDataProperty:new Et.Name("parentDataProperty"),rootData:new Et.Name("rootData"),dynamicAnchors:new Et.Name("dynamicAnchors"),vErrors:new Et.Name("vErrors"),errors:new Et.Name("errors"),this:new Et.Name("this"),self:new Et.Name("self"),scope:new Et.Name("scope"),json:new Et.Name("json"),jsonPos:new Et.Name("jsonPos"),jsonLen:new Et.Name("jsonLen"),jsonPart:new Et.Name("jsonPart")};Yp.default=mA});var Ks=v(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.extendErrors=Pt.resetErrorsCount=Pt.reportExtraError=Pt.reportError=Pt.keyword$DataError=Pt.keywordError=void 0;var be=ae(),ou=he(),Nt=hr();Pt.keywordError={message:o(({keyword:e})=>(0,be.str)`must pass "${e}" keyword validation`,"message")};Pt.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,be.str)`"${e}" keyword must be ${t} ($data)`:(0,be.str)`"${e}" keyword is invalid ($data)`,"message")};function gA(e,t=Pt.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=l0(e,t,r);n??(a||c)?c0(s,u):u0(i,(0,be._)`[${u}]`)}o(gA,"reportError");Pt.reportError=gA;function yA(e,t=Pt.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=l0(e,t,r);c0(i,c),s||a||u0(n,Nt.default.vErrors)}o(yA,"reportExtraError");Pt.reportExtraError=yA;function bA(e,t){e.assign(Nt.default.errors,t),e.if((0,be._)`${Nt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,be._)`${Nt.default.vErrors}.length`,t),()=>e.assign(Nt.default.vErrors,null)))}o(bA,"resetErrorsCount");Pt.resetErrorsCount=bA;function vA({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,Nt.default.errors,c=>{e.const(a,(0,be._)`${Nt.default.vErrors}[${c}]`),e.if((0,be._)`${a}.instancePath === undefined`,()=>e.assign((0,be._)`${a}.instancePath`,(0,be.strConcat)(Nt.default.instancePath,s.errorPath))),e.assign((0,be._)`${a}.schemaPath`,(0,be.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,be._)`${a}.schema`,r),e.assign((0,be._)`${a}.data`,n))})}o(vA,"extendErrors");Pt.extendErrors=vA;function c0(e,t){let r=e.const("err",t);e.if((0,be._)`${Nt.default.vErrors} === null`,()=>e.assign(Nt.default.vErrors,(0,be._)`[${r}]`),(0,be._)`${Nt.default.vErrors}.push(${r})`),e.code((0,be._)`${Nt.default.errors}++`)}o(c0,"addError");function u0(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,be._)`new ${e.ValidationError}(${t})`):(r.assign((0,be._)`${n}.errors`,t),r.return(!1))}o(u0,"returnErrors");var Ri={keyword:new be.Name("keyword"),schemaPath:new be.Name("schemaPath"),params:new be.Name("params"),propertyName:new be.Name("propertyName"),message:new be.Name("message"),schema:new be.Name("schema"),parentSchema:new be.Name("parentSchema")};function l0(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,be._)`{}`:_A(e,t,r)}o(l0,"errorObjectCode");function _A(e,t,r={}){let{gen:n,it:i}=e,s=[SA(i,r),OA(e,r)];return EA(e,t,s),n.object(...s)}o(_A,"errorObject");function SA({errorPath:e},{instancePath:t}){let r=t?(0,be.str)`${e}${(0,ou.getErrorPath)(t,ou.Type.Str)}`:e;return[Nt.default.instancePath,(0,be.strConcat)(Nt.default.instancePath,r)]}o(SA,"errorInstancePath");function OA({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,be.str)`${t}/${e}`;return r&&(i=(0,be.str)`${i}${(0,ou.getErrorPath)(r,ou.Type.Str)}`),[Ri.schemaPath,i]}o(OA,"errorSchemaPath");function EA(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([Ri.keyword,i],[Ri.params,typeof t=="function"?t(e):t||(0,be._)`{}`]),u.messages&&n.push([Ri.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([Ri.schema,a],[Ri.parentSchema,(0,be._)`${p}${f}`],[Nt.default.data,s]),l&&n.push([Ri.propertyName,l])}o(EA,"extraErrorProps")});var p0=v(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.boolOrEmptySchema=Co.topBoolOrEmptySchema=void 0;var PA=Ks(),xA=ae(),$A=hr(),wA={message:"boolean schema is false"};function AA(e){let{gen:t,schema:r,validateName:n}=e;r===!1?f0(e,!1):typeof r=="object"&&r.$async===!0?t.return($A.default.data):(t.assign((0,xA._)`${n}.errors`,null),t.return(!0))}o(AA,"topBoolOrEmptySchema");Co.topBoolOrEmptySchema=AA;function IA(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),f0(e)):r.var(t,!0)}o(IA,"boolOrEmptySchema");Co.boolOrEmptySchema=IA;function f0(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,PA.reportError)(i,wA,void 0,t)}o(f0,"falseSchemaError")});var Qp=v(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.getRules=To.isJSONType=void 0;var CA=["string","number","integer","boolean","null","object","array"],TA=new Set(CA);function RA(e){return typeof e=="string"&&TA.has(e)}o(RA,"isJSONType");To.isJSONType=RA;function NA(){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(NA,"getRules");To.getRules=NA});var Jp=v(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.shouldUseRule=Mn.shouldUseGroup=Mn.schemaHasRulesForType=void 0;function jA({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&d0(e,n)}o(jA,"schemaHasRulesForType");Mn.schemaHasRulesForType=jA;function d0(e,t){return t.rules.some(r=>h0(e,r))}o(d0,"shouldUseGroup");Mn.shouldUseGroup=d0;function h0(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(h0,"shouldUseRule");Mn.shouldUseRule=h0});var Ys=v(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.reportTypeError=xt.checkDataTypes=xt.checkDataType=xt.coerceAndCheckDataType=xt.getJSONTypes=xt.getSchemaTypes=xt.DataType=void 0;var MA=Qp(),kA=Jp(),qA=Ks(),ce=ae(),m0=he(),Ro;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Ro||(xt.DataType=Ro={}));function DA(e){let t=g0(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(DA,"getSchemaTypes");xt.getSchemaTypes=DA;function g0(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(MA.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(g0,"getJSONTypes");xt.getJSONTypes=g0;function LA(e,t){let{gen:r,data:n,opts:i}=e,s=FA(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,kA.schemaHasRulesForType)(e,t[0]));if(a){let c=ed(t,n,i.strictNumbers,Ro.Wrong);r.if(c,()=>{s.length?HA(e,t,s):td(e)})}return a}o(LA,"coerceAndCheckDataType");xt.coerceAndCheckDataType=LA;var y0=new Set(["string","number","integer","boolean","null"]);function FA(e,t){return t?e.filter(r=>y0.has(r)||t==="array"&&r==="array"):[]}o(FA,"coerceToTypes");function HA(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(ed(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,ce._)`${c} !== undefined`);for(let l of r)(y0.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),td(e),n.endIf(),n.if((0,ce._)`${c} !== undefined`,()=>{n.assign(i,c),BA(e,c)});function u(l){switch(l){case"string":n.elseIf((0,ce._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,ce._)`"" + ${i}`).elseIf((0,ce._)`${i} === null`).assign(c,(0,ce._)`""`);return;case"number":n.elseIf((0,ce._)`${a} == "boolean" || ${i} === null
4
+ `+n:r||n}o(qb,"joinStacks");Vr.joinStacks=qb;function qw(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return qb({stack:n},r)},"get"),enumerable:!1,configurable:!0}):Dw(t,e)}o(qw,"lazyJoinStacks");Vr.lazyJoinStacks=qw;function Db(e){if(e){let t=e.split(Nw),r;for(let n=0;n<t.length;n++){let i=t[n];if(jw.test(i))r===void 0&&(r=n);else if(r!==void 0){t.splice(r,n-r);break}}if(t.length>0)return t.join(`
5
+ `)}return e}o(Db,"popStack");function Dw(e,t){Object.defineProperty(e,"stack",{get:o(()=>Db(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(Dw,"lazyPopStack")});var Bb=v(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.extendError=void 0;var Fb=Xf(),Dc=Lb(),Hb=qc(),Lw=["name","message","stack"];function Fw(e,t,r){let n=e;return Hw(n,t),t&&typeof t=="object"&&Bw(n,t),n.toJSON=Hb.toJSON,Fb.addInspectMethod&&Fb.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(Fw,"extendError");Lc.extendError=Fw;function Hw(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");Dc.isLazyStack(r)?Dc.lazyJoinStacks(r,e,t):Dc.isWritableStack(r)&&(e.stack=Dc.joinStacks(e,t))}o(Hw,"extendStack");function Bw(e,t){let r=Hb.getDeepKeys(t,Lw),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o(Bw,"mergeErrors")});var Vb=v(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.normalizeArgs=Oo.normalizeOptions=void 0;var Vw=Xf();function Uw(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?Vw.format:typeof e.format=="function"?e.format:!1}}o(Uw,"normalizeOptions");Oo.normalizeOptions=Uw;function Gw(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(Gw,"normalizeArgs");Oo.normalizeArgs=Gw});var tp=v(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.Ono=void 0;var Fc=Bb(),Ub=Vb(),zw=qc(),Zw=ep;Hc.Ono=Zw;function ep(e,t){t=Ub.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=Ub.normalizeArgs(n,t),c=new e(a);return Fc.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(ep,"Ono");ep.toJSON=o(function(t){return zw.toJSON.call(t)},"toJSON");ep.extend=o(function(t,r,n){return n||r instanceof Error?Fc.extendError(t,r,n):r?Fc.extendError(t,void 0,r):Fc.extendError(t)},"extend")});var Gb=v(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.ono=void 0;var $i=tp(),Ww=Ur;Bc.ono=Ww;Ur.error=new $i.Ono(Error);Ur.eval=new $i.Ono(EvalError);Ur.range=new $i.Ono(RangeError);Ur.reference=new $i.Ono(ReferenceError);Ur.syntax=new $i.Ono(SyntaxError);Ur.type=new $i.Ono(TypeError);Ur.uri=new $i.Ono(URIError);var Kw=Ur;function Ur(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(Kw))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 Ur.error.apply(void 0,e)}o(Ur,"ono")});var Zb=v(zb=>{"use strict";Object.defineProperty(zb,"__esModule",{value:!0});var W6=require("util")});var $r=v((xr,Eo)=>{"use strict";var Yw=xr&&xr.__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]}),Qw=xr&&xr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&Yw(t,e,r)};Object.defineProperty(xr,"__esModule",{value:!0});xr.ono=void 0;var Wb=Gb();Object.defineProperty(xr,"ono",{enumerable:!0,get:o(function(){return Wb.ono},"get")});var Jw=tp();Object.defineProperty(xr,"Ono",{enumerable:!0,get:o(function(){return Jw.Ono},"get")});Qw(Zb(),xr);xr.default=Wb.ono;typeof Eo=="object"&&typeof Eo.exports=="object"&&(Eo.exports=Object.assign(Eo.exports.default,Eo.exports))});var Ls=v(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.regexpCode=Ee.getEsmExportName=Ee.getProperty=Ee.safeStringify=Ee.stringify=Ee.strConcat=Ee.addCodeArg=Ee.str=Ee._=Ee.nil=Ee._Code=Ee.Name=Ee.IDENTIFIER=Ee._CodeOrName=void 0;var ip=class ip{};o(ip,"_CodeOrName");var qs=ip;Ee._CodeOrName=qs;Ee.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var op=class op extends qs{constructor(t){if(super(),!Ee.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(op,"Name");var wi=op;Ee.Name=wi;var sp=class sp extends qs{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 wi&&(r[n.str]=(r[n.str]||0)+1),r),{})}};o(sp,"_Code");var fr=sp;Ee._Code=fr;Ee.nil=new fr("");function Kb(e,...t){let r=[e[0]],n=0;for(;n<t.length;)np(r,t[n]),r.push(e[++n]);return new fr(r)}o(Kb,"_");Ee._=Kb;var rp=new fr("+");function Yb(e,...t){let r=[Ds(e[0])],n=0;for(;n<t.length;)r.push(rp),np(r,t[n]),r.push(rp,Ds(e[++n]));return Xw(r),new fr(r)}o(Yb,"str");Ee.str=Yb;function np(e,t){t instanceof fr?e.push(...t._items):t instanceof wi?e.push(t):e.push(rA(t))}o(np,"addCodeArg");Ee.addCodeArg=np;function Xw(e){let t=1;for(;t<e.length-1;){if(e[t]===rp){let r=eA(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(Xw,"optimize");function eA(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof wi||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 wi))return`"${e}${t.slice(1)}`}o(eA,"mergeExprItems");function tA(e,t){return t.emptyStr()?e:e.emptyStr()?t:Yb`${e}${t}`}o(tA,"strConcat");Ee.strConcat=tA;function rA(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Ds(Array.isArray(e)?e.join(","):e)}o(rA,"interpolate");function nA(e){return new fr(Ds(e))}o(nA,"stringify");Ee.stringify=nA;function Ds(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(Ds,"safeStringify");Ee.safeStringify=Ds;function iA(e){return typeof e=="string"&&Ee.IDENTIFIER.test(e)?new fr(`.${e}`):Kb`[${e}]`}o(iA,"getProperty");Ee.getProperty=iA;function oA(e){if(typeof e=="string"&&Ee.IDENTIFIER.test(e))return new fr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(oA,"getEsmExportName");Ee.getEsmExportName=oA;function sA(e){return new fr(e.toString())}o(sA,"regexpCode");Ee.regexpCode=sA});var dp=v(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.ValueScope=Bt.ValueScopeName=Bt.Scope=Bt.varKinds=Bt.UsedValueState=void 0;var Ht=Ls(),up=class up extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(up,"ValueError");var ap=up,Vc;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Vc||(Bt.UsedValueState=Vc={}));Bt.varKinds={const:new Ht.Name("const"),let:new Ht.Name("let"),var:new Ht.Name("var")};var lp=class lp{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Ht.Name?t:this.name(t)}name(t){return new Ht.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(lp,"Scope");var Uc=lp;Bt.Scope=Uc;var fp=class fp extends Ht.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Ht._)`.${new Ht.Name(r)}[${n}]`}};o(fp,"ValueScopeName");var Gc=fp;Bt.ValueScopeName=Gc;var aA=(0,Ht._)`\n`,pp=class pp extends Uc{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?aA:Ht.nil}}get(){return this._scope}name(t){return new Gc(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,Ht._)`${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=Ht.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,Vc.Started);let p=r(l);if(p){let f=this.opts.es5?Bt.varKinds.var:Bt.varKinds.const;s=(0,Ht._)`${s}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))s=(0,Ht._)`${s}${p}${this.opts._n}`;else throw new ap(l);u.set(l,Vc.Completed)})}return s}};o(pp,"ValueScope");var cp=pp;Bt.ValueScope=cp});var ae=v(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.or=le.and=le.not=le.CodeGen=le.operators=le.varKinds=le.ValueScopeName=le.ValueScope=le.Scope=le.Name=le.regexpCode=le.stringify=le.getProperty=le.nil=le.strConcat=le.str=le._=void 0;var ve=Ls(),wr=dp(),Tn=Ls();Object.defineProperty(le,"_",{enumerable:!0,get:o(function(){return Tn._},"get")});Object.defineProperty(le,"str",{enumerable:!0,get:o(function(){return Tn.str},"get")});Object.defineProperty(le,"strConcat",{enumerable:!0,get:o(function(){return Tn.strConcat},"get")});Object.defineProperty(le,"nil",{enumerable:!0,get:o(function(){return Tn.nil},"get")});Object.defineProperty(le,"getProperty",{enumerable:!0,get:o(function(){return Tn.getProperty},"get")});Object.defineProperty(le,"stringify",{enumerable:!0,get:o(function(){return Tn.stringify},"get")});Object.defineProperty(le,"regexpCode",{enumerable:!0,get:o(function(){return Tn.regexpCode},"get")});Object.defineProperty(le,"Name",{enumerable:!0,get:o(function(){return Tn.Name},"get")});var Kc=dp();Object.defineProperty(le,"Scope",{enumerable:!0,get:o(function(){return Kc.Scope},"get")});Object.defineProperty(le,"ValueScope",{enumerable:!0,get:o(function(){return Kc.ValueScope},"get")});Object.defineProperty(le,"ValueScopeName",{enumerable:!0,get:o(function(){return Kc.ValueScopeName},"get")});Object.defineProperty(le,"varKinds",{enumerable:!0,get:o(function(){return Kc.varKinds},"get")});le.operators={GT:new ve._Code(">"),GTE:new ve._Code(">="),LT:new ve._Code("<"),LTE:new ve._Code("<="),EQ:new ve._Code("==="),NEQ:new ve._Code("!=="),NOT:new ve._Code("!"),OR:new ve._Code("||"),AND:new ve._Code("&&"),ADD:new ve._Code("+")};var $p=class $p{optimizeNodes(){return this}optimizeNames(t,r){return this}};o($p,"Node");var dn=$p,wp=class wp extends dn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?wr.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=$o(this.rhs,t,r)),this}get names(){return this.rhs instanceof ve._CodeOrName?this.rhs.names:{}}};o(wp,"Def");var hp=wp,Ap=class Ap extends dn{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 ve.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=$o(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ve.Name?{}:{...this.lhs.names};return Wc(t,this.rhs)}};o(Ap,"Assign");var zc=Ap,Ip=class Ip extends zc{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(Ip,"AssignOp");var mp=Ip,Cp=class Cp extends dn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(Cp,"Label");var gp=Cp,Tp=class Tp extends dn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(Tp,"Break");var yp=Tp,Rp=class Rp extends dn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(Rp,"Throw");var bp=Rp,Np=class Np extends dn{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=$o(this.code,t,r),this}get names(){return this.code instanceof ve._CodeOrName?this.code.names:{}}};o(Np,"AnyCode");var vp=Np,jp=class jp extends dn{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)||(cA(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(jp,"ParentNode");var Fs=jp,Mp=class Mp extends Fs{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(Mp,"BlockNode");var hn=Mp,kp=class kp extends Fs{};o(kp,"Root");var _p=kp,qp=class qp extends hn{};o(qp,"Else");var xo=qp;xo.kind="else";var Po=class Po extends hn{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 xo(n):n}if(r)return t===!1?r instanceof Po?r:r.nodes:this.nodes.length?this:new Po(Qb(t),r instanceof Po?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=$o(this.condition,t,r),this}get names(){let t=super.names;return Wc(t,this.condition),this.else&&Ci(t,this.else.names),t}};o(Po,"If");var Ai=Po;Ai.kind="if";var Dp=class Dp extends hn{};o(Dp,"For");var Ii=Dp;Ii.kind="for";var Lp=class Lp extends Ii{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=$o(this.iteration,t,r),this}get names(){return Ci(super.names,this.iteration.names)}};o(Lp,"ForLoop");var Sp=Lp,Fp=class Fp extends Ii{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?wr.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=Wc(super.names,this.from);return Wc(t,this.to)}};o(Fp,"ForRange");var Op=Fp,Hp=class Hp extends Ii{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=$o(this.iterable,t,r),this}get names(){return Ci(super.names,this.iterable.names)}};o(Hp,"ForIter");var Zc=Hp,Bp=class Bp extends hn{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(Bp,"Func");var Hs=Bp;Hs.kind="func";var Vp=class Vp extends Fs{render(t){return"return "+super.render(t)}};o(Vp,"Return");var Bs=Vp;Bs.kind="return";var Up=class Up extends hn{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(Up,"Try");var Ep=Up,Gp=class Gp extends hn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(Gp,"Catch");var Vs=Gp;Vs.kind="catch";var zp=class zp extends hn{render(t){return"finally"+super.render(t)}};o(zp,"Finally");var Us=zp;Us.kind="finally";var Zp=class Zp{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
7
+ `:""},this._extScope=t,this._scope=new wr.Scope({parent:t}),this._nodes=[new _p]}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 hp(t,s,n)),s}const(t,r,n){return this._def(wr.varKinds.const,t,r,n)}let(t,r,n){return this._def(wr.varKinds.let,t,r,n)}var(t,r,n){return this._def(wr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new zc(t,r,n))}add(t,r){return this._leafNode(new mp(t,le.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ve.nil&&this._leafNode(new vp(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,ve.addCodeArg)(r,i));return r.push("}"),new ve._Code(r)}if(t,r,n){if(this._blockNode(new Ai(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 Ai(t))}else(){return this._elseNode(new xo)}endIf(){return this._endBlockNode(Ai,xo)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Sp(t),r)}forRange(t,r,n,i,s=this.opts.es5?wr.varKinds.var:wr.varKinds.let){let a=this._scope.toName(t);return this._for(new Op(s,a,r,n),()=>i(a))}forOf(t,r,n,i=wr.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof ve.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ve._)`${a}.length`,c=>{this.var(s,(0,ve._)`${a}[${c}]`),n(s)})}return this._for(new Zc("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?wr.varKinds.var:wr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ve._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new Zc("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Ii)}label(t){return this._leafNode(new gp(t))}break(t){return this._leafNode(new yp(t))}return(t){let r=new Bs;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Bs)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Ep;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new Vs(s),r(s)}return n&&(this._currNode=i.finally=new Us,this.code(n)),this._endBlockNode(Vs,Us)}throw(t){return this._leafNode(new bp(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=ve.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 Ai))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(Zp,"CodeGen");var Pp=Zp;le.CodeGen=Pp;function Ci(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(Ci,"addNames");function Wc(e,t){return t instanceof ve._CodeOrName?Ci(e,t.names):e}o(Wc,"addExprNames");function $o(e,t,r){if(e instanceof ve.Name)return n(e);if(!i(e))return e;return new ve._Code(e._items.reduce((s,a)=>(a instanceof ve.Name&&(a=n(a)),a instanceof ve._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 ve._Code&&s._items.some(a=>a instanceof ve.Name&&t[a.str]===1&&r[a.str]!==void 0)}}o($o,"optimizeExpr");function cA(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(cA,"subtractNames");function Qb(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ve._)`!${xp(e)}`}o(Qb,"not");le.not=Qb;var uA=Jb(le.operators.AND);function lA(...e){return e.reduce(uA)}o(lA,"and");le.and=lA;var fA=Jb(le.operators.OR);function pA(...e){return e.reduce(fA)}o(pA,"or");le.or=pA;function Jb(e){return(t,r)=>t===ve.nil?r:r===ve.nil?t:(0,ve._)`${xp(t)} ${e} ${xp(r)}`}o(Jb,"mappend");function xp(e){return e instanceof ve.Name?e:(0,ve._)`(${e})`}o(xp,"par")});var he=v(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.checkStrictMode=fe.getErrorPath=fe.Type=fe.useFunc=fe.setEvaluated=fe.evaluatedPropsToName=fe.mergeEvaluated=fe.eachItem=fe.unescapeJsonPointer=fe.escapeJsonPointer=fe.escapeFragment=fe.unescapeFragment=fe.schemaRefOrVal=fe.schemaHasRulesButRef=fe.schemaHasRules=fe.checkUnknownRules=fe.alwaysValidSchema=fe.toHash=void 0;var Ce=ae(),dA=Ls();function hA(e){let t={};for(let r of e)t[r]=!0;return t}o(hA,"toHash");fe.toHash=hA;function mA(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(t0(e,t),!r0(t,e.self.RULES.all))}o(mA,"alwaysValidSchema");fe.alwaysValidSchema=mA;function t0(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]||o0(e,`unknown keyword: "${s}"`)}o(t0,"checkUnknownRules");fe.checkUnknownRules=t0;function r0(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(r0,"schemaHasRules");fe.schemaHasRules=r0;function gA(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(gA,"schemaHasRulesButRef");fe.schemaHasRulesButRef=gA;function yA({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Ce._)`${r}`}return(0,Ce._)`${e}${t}${(0,Ce.getProperty)(n)}`}o(yA,"schemaRefOrVal");fe.schemaRefOrVal=yA;function bA(e){return n0(decodeURIComponent(e))}o(bA,"unescapeFragment");fe.unescapeFragment=bA;function vA(e){return encodeURIComponent(Kp(e))}o(vA,"escapeFragment");fe.escapeFragment=vA;function Kp(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(Kp,"escapeJsonPointer");fe.escapeJsonPointer=Kp;function n0(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(n0,"unescapeJsonPointer");fe.unescapeJsonPointer=n0;function _A(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(_A,"eachItem");fe.eachItem=_A;function Xb({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof Ce.Name?(s instanceof Ce.Name?e(i,s,a):t(i,s,a),a):s instanceof Ce.Name?(t(i,a,s),s):r(s,a);return c===Ce.Name&&!(u instanceof Ce.Name)?n(i,u):u}}o(Xb,"makeMergeEvaluated");fe.mergeEvaluated={props:Xb({mergeNames:o((e,t,r)=>e.if((0,Ce._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Ce._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Ce._)`${r} || {}`).code((0,Ce._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,Ce._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Ce._)`${r} || {}`),Yp(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:i0}),items:Xb({mergeNames:o((e,t,r)=>e.if((0,Ce._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Ce._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,Ce._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Ce._)`${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 i0(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Ce._)`{}`);return t!==void 0&&Yp(e,r,t),r}o(i0,"evaluatedPropsToName");fe.evaluatedPropsToName=i0;function Yp(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Ce._)`${t}${(0,Ce.getProperty)(n)}`,!0))}o(Yp,"setEvaluated");fe.setEvaluated=Yp;var e0={};function SA(e,t){return e.scopeValue("func",{ref:t,code:e0[t.code]||(e0[t.code]=new dA._Code(t.code))})}o(SA,"useFunc");fe.useFunc=SA;var Wp;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Wp||(fe.Type=Wp={}));function OA(e,t,r){if(e instanceof Ce.Name){let n=t===Wp.Num;return r?n?(0,Ce._)`"[" + ${e} + "]"`:(0,Ce._)`"['" + ${e} + "']"`:n?(0,Ce._)`"/" + ${e}`:(0,Ce._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Ce.getProperty)(e).toString():"/"+Kp(e)}o(OA,"getErrorPath");fe.getErrorPath=OA;function o0(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(o0,"checkStrictMode");fe.checkStrictMode=o0});var pr=v(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});var Ot=ae(),EA={data:new Ot.Name("data"),valCxt:new Ot.Name("valCxt"),instancePath:new Ot.Name("instancePath"),parentData:new Ot.Name("parentData"),parentDataProperty:new Ot.Name("parentDataProperty"),rootData:new Ot.Name("rootData"),dynamicAnchors:new Ot.Name("dynamicAnchors"),vErrors:new Ot.Name("vErrors"),errors:new Ot.Name("errors"),this:new Ot.Name("this"),self:new Ot.Name("self"),scope:new Ot.Name("scope"),json:new Ot.Name("json"),jsonPos:new Ot.Name("jsonPos"),jsonLen:new Ot.Name("jsonLen"),jsonPart:new Ot.Name("jsonPart")};Qp.default=EA});var Gs=v(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.extendErrors=Et.resetErrorsCount=Et.reportExtraError=Et.reportError=Et.keyword$DataError=Et.keywordError=void 0;var _e=ae(),Yc=he(),Rt=pr();Et.keywordError={message:o(({keyword:e})=>(0,_e.str)`must pass "${e}" keyword validation`,"message")};Et.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,_e.str)`"${e}" keyword must be ${t} ($data)`:(0,_e.str)`"${e}" keyword is invalid ($data)`,"message")};function PA(e,t=Et.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=c0(e,t,r);n??(a||c)?s0(s,u):a0(i,(0,_e._)`[${u}]`)}o(PA,"reportError");Et.reportError=PA;function xA(e,t=Et.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=c0(e,t,r);s0(i,c),s||a||a0(n,Rt.default.vErrors)}o(xA,"reportExtraError");Et.reportExtraError=xA;function $A(e,t){e.assign(Rt.default.errors,t),e.if((0,_e._)`${Rt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,_e._)`${Rt.default.vErrors}.length`,t),()=>e.assign(Rt.default.vErrors,null)))}o($A,"resetErrorsCount");Et.resetErrorsCount=$A;function wA({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,Rt.default.errors,c=>{e.const(a,(0,_e._)`${Rt.default.vErrors}[${c}]`),e.if((0,_e._)`${a}.instancePath === undefined`,()=>e.assign((0,_e._)`${a}.instancePath`,(0,_e.strConcat)(Rt.default.instancePath,s.errorPath))),e.assign((0,_e._)`${a}.schemaPath`,(0,_e.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,_e._)`${a}.schema`,r),e.assign((0,_e._)`${a}.data`,n))})}o(wA,"extendErrors");Et.extendErrors=wA;function s0(e,t){let r=e.const("err",t);e.if((0,_e._)`${Rt.default.vErrors} === null`,()=>e.assign(Rt.default.vErrors,(0,_e._)`[${r}]`),(0,_e._)`${Rt.default.vErrors}.push(${r})`),e.code((0,_e._)`${Rt.default.errors}++`)}o(s0,"addError");function a0(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,_e._)`new ${e.ValidationError}(${t})`):(r.assign((0,_e._)`${n}.errors`,t),r.return(!1))}o(a0,"returnErrors");var Ti={keyword:new _e.Name("keyword"),schemaPath:new _e.Name("schemaPath"),params:new _e.Name("params"),propertyName:new _e.Name("propertyName"),message:new _e.Name("message"),schema:new _e.Name("schema"),parentSchema:new _e.Name("parentSchema")};function c0(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,_e._)`{}`:AA(e,t,r)}o(c0,"errorObjectCode");function AA(e,t,r={}){let{gen:n,it:i}=e,s=[IA(i,r),CA(e,r)];return TA(e,t,s),n.object(...s)}o(AA,"errorObject");function IA({errorPath:e},{instancePath:t}){let r=t?(0,_e.str)`${e}${(0,Yc.getErrorPath)(t,Yc.Type.Str)}`:e;return[Rt.default.instancePath,(0,_e.strConcat)(Rt.default.instancePath,r)]}o(IA,"errorInstancePath");function CA({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,_e.str)`${t}/${e}`;return r&&(i=(0,_e.str)`${i}${(0,Yc.getErrorPath)(r,Yc.Type.Str)}`),[Ti.schemaPath,i]}o(CA,"errorSchemaPath");function TA(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([Ti.keyword,i],[Ti.params,typeof t=="function"?t(e):t||(0,_e._)`{}`]),u.messages&&n.push([Ti.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([Ti.schema,a],[Ti.parentSchema,(0,_e._)`${p}${f}`],[Rt.default.data,s]),l&&n.push([Ti.propertyName,l])}o(TA,"extraErrorProps")});var l0=v(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.boolOrEmptySchema=wo.topBoolOrEmptySchema=void 0;var RA=Gs(),NA=ae(),jA=pr(),MA={message:"boolean schema is false"};function kA(e){let{gen:t,schema:r,validateName:n}=e;r===!1?u0(e,!1):typeof r=="object"&&r.$async===!0?t.return(jA.default.data):(t.assign((0,NA._)`${n}.errors`,null),t.return(!0))}o(kA,"topBoolOrEmptySchema");wo.topBoolOrEmptySchema=kA;function qA(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),u0(e)):r.var(t,!0)}o(qA,"boolOrEmptySchema");wo.boolOrEmptySchema=qA;function u0(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,RA.reportError)(i,MA,void 0,t)}o(u0,"falseSchemaError")});var Jp=v(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.getRules=Ao.isJSONType=void 0;var DA=["string","number","integer","boolean","null","object","array"],LA=new Set(DA);function FA(e){return typeof e=="string"&&LA.has(e)}o(FA,"isJSONType");Ao.isJSONType=FA;function HA(){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(HA,"getRules");Ao.getRules=HA});var Xp=v(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.shouldUseRule=Rn.shouldUseGroup=Rn.schemaHasRulesForType=void 0;function BA({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&f0(e,n)}o(BA,"schemaHasRulesForType");Rn.schemaHasRulesForType=BA;function f0(e,t){return t.rules.some(r=>p0(e,r))}o(f0,"shouldUseGroup");Rn.shouldUseGroup=f0;function p0(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(p0,"shouldUseRule");Rn.shouldUseRule=p0});var zs=v(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.reportTypeError=Pt.checkDataTypes=Pt.checkDataType=Pt.coerceAndCheckDataType=Pt.getJSONTypes=Pt.getSchemaTypes=Pt.DataType=void 0;var VA=Jp(),UA=Xp(),GA=Gs(),ce=ae(),d0=he(),Io;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Io||(Pt.DataType=Io={}));function zA(e){let t=h0(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(zA,"getSchemaTypes");Pt.getSchemaTypes=zA;function h0(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(VA.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(h0,"getJSONTypes");Pt.getJSONTypes=h0;function ZA(e,t){let{gen:r,data:n,opts:i}=e,s=WA(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,UA.schemaHasRulesForType)(e,t[0]));if(a){let c=td(t,n,i.strictNumbers,Io.Wrong);r.if(c,()=>{s.length?KA(e,t,s):rd(e)})}return a}o(ZA,"coerceAndCheckDataType");Pt.coerceAndCheckDataType=ZA;var m0=new Set(["string","number","integer","boolean","null"]);function WA(e,t){return t?e.filter(r=>m0.has(r)||t==="array"&&r==="array"):[]}o(WA,"coerceToTypes");function KA(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(td(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,ce._)`${c} !== undefined`);for(let l of r)(m0.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),rd(e),n.endIf(),n.if((0,ce._)`${c} !== undefined`,()=>{n.assign(i,c),YA(e,c)});function u(l){switch(l){case"string":n.elseIf((0,ce._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,ce._)`"" + ${i}`).elseIf((0,ce._)`${i} === null`).assign(c,(0,ce._)`""`);return;case"number":n.elseIf((0,ce._)`${a} == "boolean" || ${i} === null
8
8
  || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,ce._)`+${i}`);return;case"integer":n.elseIf((0,ce._)`${a} === "boolean" || ${i} === null
9
9
  || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,(0,ce._)`+${i}`);return;case"boolean":n.elseIf((0,ce._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf((0,ce._)`${i} === "true" || ${i} === 1`).assign(c,!0);return;case"null":n.elseIf((0,ce._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(c,null);return;case"array":n.elseIf((0,ce._)`${a} === "string" || ${a} === "number"
10
- || ${a} === "boolean" || ${i} === null`).assign(c,(0,ce._)`[${i}]`)}}o(u,"coerceSpecificType")}o(HA,"coerceData");function BA({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ce._)`${t} !== undefined`,()=>e.assign((0,ce._)`${t}[${r}]`,n))}o(BA,"assignParentData");function Xp(e,t,r,n=Ro.Correct){let i=n===Ro.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===Ro.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(Xp,"checkDataType");xt.checkDataType=Xp;function ed(e,t,r,n){if(e.length===1)return Xp(e[0],t,r,n);let i,s=(0,m0.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,Xp(a,t,r,n));return i}o(ed,"checkDataTypes");xt.checkDataTypes=ed;var VA={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 td(e){let t=UA(e);(0,qA.reportError)(t,VA)}o(td,"reportTypeError");xt.reportTypeError=td;function UA(e){let{gen:t,data:r,schema:n}=e,i=(0,m0.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(UA,"getTypeErrorContext")});var v0=v(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.assignDefaults=void 0;var No=ae(),GA=he();function zA(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)b0(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>b0(e,s,i.default))}o(zA,"assignDefaults");su.assignDefaults=zA;function b0(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,No._)`${s}${(0,No.getProperty)(t)}`;if(i){(0,GA.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,No._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,No._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,No._)`${c} = ${(0,No.stringify)(r)}`)}o(b0,"assignDefault")});var mr=v(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.validateUnion=Ie.validateArray=Ie.usePattern=Ie.callValidateCode=Ie.schemaProperties=Ie.allSchemaProperties=Ie.noPropertyInData=Ie.propertyInData=Ie.isOwnProperty=Ie.hasPropFunc=Ie.reportMissingProp=Ie.checkMissingProp=Ie.checkReportMissingProp=void 0;var Fe=ae(),rd=he(),kn=hr(),ZA=he();function WA(e,t){let{gen:r,data:n,it:i}=e;r.if(id(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Fe._)`${t}`},!0),e.error()})}o(WA,"checkReportMissingProp");Ie.checkReportMissingProp=WA;function KA({gen:e,data:t,it:{opts:r}},n,i){return(0,Fe.or)(...n.map(s=>(0,Fe.and)(id(e,t,s,r.ownProperties),(0,Fe._)`${i} = ${s}`)))}o(KA,"checkMissingProp");Ie.checkMissingProp=KA;function YA(e,t){e.setParams({missingProperty:t},!0),e.error()}o(YA,"reportMissingProp");Ie.reportMissingProp=YA;function _0(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Fe._)`Object.prototype.hasOwnProperty`})}o(_0,"hasPropFunc");Ie.hasPropFunc=_0;function nd(e,t,r){return(0,Fe._)`${_0(e)}.call(${t}, ${r})`}o(nd,"isOwnProperty");Ie.isOwnProperty=nd;function QA(e,t,r,n){let i=(0,Fe._)`${t}${(0,Fe.getProperty)(r)} !== undefined`;return n?(0,Fe._)`${i} && ${nd(e,t,r)}`:i}o(QA,"propertyInData");Ie.propertyInData=QA;function id(e,t,r,n){let i=(0,Fe._)`${t}${(0,Fe.getProperty)(r)} === undefined`;return n?(0,Fe.or)(i,(0,Fe.not)(nd(e,t,r))):i}o(id,"noPropertyInData");Ie.noPropertyInData=id;function S0(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(S0,"allSchemaProperties");Ie.allSchemaProperties=S0;function JA(e,t){return S0(t).filter(r=>!(0,rd.alwaysValidSchema)(e,t[r]))}o(JA,"schemaProperties");Ie.schemaProperties=JA;function XA({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let p=l?(0,Fe._)`${e}, ${t}, ${n}${i}`:t,f=[[kn.default.instancePath,(0,Fe.strConcat)(kn.default.instancePath,s)],[kn.default.parentData,a.parentData],[kn.default.parentDataProperty,a.parentDataProperty],[kn.default.rootData,kn.default.rootData]];a.opts.dynamicRef&&f.push([kn.default.dynamicAnchors,kn.default.dynamicAnchors]);let d=(0,Fe._)`${p}, ${r.object(...f)}`;return u!==Fe.nil?(0,Fe._)`${c}.call(${u}, ${d})`:(0,Fe._)`${c}(${d})`}o(XA,"callValidateCode");Ie.callValidateCode=XA;var eI=(0,Fe._)`new RegExp`;function tI({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,Fe._)`${i.code==="new RegExp"?eI:(0,ZA.useFunc)(e,i)}(${r}, ${n})`})}o(tI,"usePattern");Ie.usePattern=tI;function rI(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,Fe._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:rd.Type.Num},s),t.if((0,Fe.not)(s),c)})}o(a,"validateItems")}o(rI,"validateArray");Ie.validateArray=rI;function nI(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,rd.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,Fe._)`${a} || ${c}`),e.mergeValidEvaluated(p,c)||t.if((0,Fe.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(nI,"validateUnion");Ie.validateUnion=nI});var P0=v(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.validateKeywordUsage=zr.validSchemaType=zr.funcKeywordCode=zr.macroKeywordCode=void 0;var jt=ae(),Ni=hr(),iI=mr(),oI=Ks();function sI(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=E0(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:jt.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(sI,"macroKeywordCode");zr.macroKeywordCode=sI;function aI(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;uI(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,p=E0(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)b(),t.modifying&&O0(e),g(()=>e.error());else{let P=t.async?h():y();t.modifying&&O0(e),g(()=>cI(e,P))}}o(d,"validateKeyword");function h(){let P=n.let("ruleErrs",null);return n.try(()=>b((0,jt._)`await `),$=>n.assign(f,!1).if((0,jt._)`${$} instanceof ${u.ValidationError}`,()=>n.assign(P,(0,jt._)`${$}.errors`),()=>n.throw($))),P}o(h,"validateAsync");function y(){let P=(0,jt._)`${p}.errors`;return n.assign(P,null),b(jt.nil),P}o(y,"validateSync");function b(P=t.async?(0,jt._)`await `:jt.nil){let $=u.opts.passContext?Ni.default.this:Ni.default.self,C=!("compile"in t&&!c||t.schema===!1);n.assign(f,(0,jt._)`${P}${(0,iI.callValidateCode)(e,p,$,C)}`,t.modifying)}o(b,"assignValid");function g(P){var $;n.if((0,jt.not)(($=t.valid)!==null&&$!==void 0?$:f),P)}o(g,"reportErrs")}o(aI,"funcKeywordCode");zr.funcKeywordCode=aI;function O0(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,jt._)`${n.parentData}[${n.parentDataProperty}]`))}o(O0,"modifyData");function cI(e,t){let{gen:r}=e;r.if((0,jt._)`Array.isArray(${t})`,()=>{r.assign(Ni.default.vErrors,(0,jt._)`${Ni.default.vErrors} === null ? ${t} : ${Ni.default.vErrors}.concat(${t})`).assign(Ni.default.errors,(0,jt._)`${Ni.default.vErrors}.length`),(0,oI.extendErrors)(e)},()=>e.error())}o(cI,"addErrs");function uI({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(uI,"checkAsyncKeyword");function E0(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,jt.stringify)(r)})}o(E0,"useKeyword");function lI(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(lI,"validSchemaType");zr.validSchemaType=lI;function fI({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(fI,"validateKeywordUsage");zr.validateKeywordUsage=fI});var $0=v(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.extendSubschemaMode=qn.extendSubschemaData=qn.getSubschema=void 0;var Zr=ae(),x0=he();function pI(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,Zr._)`${e.schemaPath}${(0,Zr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,Zr._)`${e.schemaPath}${(0,Zr.getProperty)(t)}${(0,Zr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,x0.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(pI,"getSubschema");qn.getSubschema=pI;function dI(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,Zr._)`${t.data}${(0,Zr.getProperty)(r)}`,!0);u(d),e.errorPath=(0,Zr.str)`${l}${(0,x0.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,Zr._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Zr.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(dI,"extendSubschemaData");qn.extendSubschemaData=dI;function hI(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(hI,"extendSubschemaMode");qn.extendSubschemaMode=hI});var od=v((SB,w0)=>{"use strict";w0.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 I0=v((EB,A0)=>{"use strict";var Dn=A0.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(){};au(t,n,i,e,"",e)};Dn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Dn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Dn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Dn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function au(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 Dn.arrayKeywords)for(var d=0;d<f.length;d++)au(e,t,r,f[d],i+"/"+p+"/"+d,s,i,p,n,d)}else if(p in Dn.propsKeywords){if(f&&typeof f=="object")for(var h in f)au(e,t,r,f[h],i+"/"+p+"/"+mI(h),s,i,p,n,h)}else(p in Dn.keywords||e.allKeys&&!(p in Dn.skipKeywords))&&au(e,t,r,f,i+"/"+p,s,i,p,n)}r(n,i,s,a,c,u,l)}}o(au,"_traverse");function mI(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(mI,"escapeJsonPtr")});var Qs=v(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.getSchemaRefs=Ut.resolveUrl=Ut.normalizeId=Ut._getFullPath=Ut.getFullPath=Ut.inlineRef=void 0;var gI=he(),yI=od(),bI=I0(),vI=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function _I(e,t=!0){return typeof e=="boolean"?!0:t===!0?!sd(e):t?C0(e)<=t:!1}o(_I,"inlineRef");Ut.inlineRef=_I;var SI=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function sd(e){for(let t in e){if(SI.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(sd)||typeof r=="object"&&sd(r))return!0}return!1}o(sd,"hasRef");function C0(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!vI.has(r)&&(typeof e[r]=="object"&&(0,gI.eachItem)(e[r],n=>t+=C0(n)),t===1/0))return 1/0}return t}o(C0,"countKeys");function T0(e,t="",r){r!==!1&&(t=jo(t));let n=e.parse(t);return R0(e,n)}o(T0,"getFullPath");Ut.getFullPath=T0;function R0(e,t){return e.serialize(t).split("#")[0]+"#"}o(R0,"_getFullPath");Ut._getFullPath=R0;var OI=/#\/?$/;function jo(e){return e?e.replace(OI,""):""}o(jo,"normalizeId");Ut.normalizeId=jo;function EI(e,t,r){return r=jo(r),e.resolve(t,r)}o(EI,"resolveUrl");Ut.resolveUrl=EI;var PI=/^[a-z_][-a-z0-9._]*$/i;function xI(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=jo(e[r]||t),s={"":i},a=T0(n,i,!1),c={},u=new Set;return bI(e,{allKeys:!0},(f,d,h,y)=>{if(y===void 0)return;let b=a+d,g=s[y];typeof f[r]=="string"&&(g=P.call(this,f[r])),$.call(this,f.$anchor),$.call(this,f.$dynamicAnchor),s[d]=g;function P(C){let T=this.opts.uriResolver.resolve;if(C=jo(g?T(g,C):C),u.has(C))throw p(C);u.add(C);let w=this.refs[C];return typeof w=="string"&&(w=this.refs[w]),typeof w=="object"?l(f,w.schema,C):C!==jo(b)&&(C[0]==="#"?(l(f,c[C],C),c[C]=f):this.refs[C]=b),C}o(P,"addRef");function $(C){if(typeof C=="string"){if(!PI.test(C))throw new Error(`invalid anchor "${C}"`);P.call(this,`#${C}`)}}o($,"addAnchor")}),c;function l(f,d,h){if(d!==void 0&&!yI(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(xI,"getSchemaRefs");Ut.getSchemaRefs=xI});var ea=v(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.getData=Ln.KeywordCxt=Ln.validateFunctionCode=void 0;var q0=p0(),N0=Ys(),cd=Jp(),cu=Ys(),$I=v0(),Xs=P0(),ad=$0(),K=ae(),oe=hr(),wI=Qs(),yn=he(),Js=Ks();function AI(e){if(F0(e)&&(H0(e),L0(e))){TI(e);return}D0(e,()=>(0,q0.topBoolOrEmptySchema)(e))}o(AI,"validateFunctionCode");Ln.validateFunctionCode=AI;function D0({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,K._)`${oe.default.data}, ${oe.default.valCxt}`,n.$async,()=>{e.code((0,K._)`"use strict"; ${j0(r,i)}`),CI(e,i),e.code(s)}):e.func(t,(0,K._)`${oe.default.data}, ${II(i)}`,n.$async,()=>e.code(j0(r,i)).code(s))}o(D0,"validateFunction");function II(e){return(0,K._)`{${oe.default.instancePath}="", ${oe.default.parentData}, ${oe.default.parentDataProperty}, ${oe.default.rootData}=${oe.default.data}${e.dynamicRef?(0,K._)`, ${oe.default.dynamicAnchors}={}`:K.nil}}={}`}o(II,"destructureValCxt");function CI(e,t){e.if(oe.default.valCxt,()=>{e.var(oe.default.instancePath,(0,K._)`${oe.default.valCxt}.${oe.default.instancePath}`),e.var(oe.default.parentData,(0,K._)`${oe.default.valCxt}.${oe.default.parentData}`),e.var(oe.default.parentDataProperty,(0,K._)`${oe.default.valCxt}.${oe.default.parentDataProperty}`),e.var(oe.default.rootData,(0,K._)`${oe.default.valCxt}.${oe.default.rootData}`),t.dynamicRef&&e.var(oe.default.dynamicAnchors,(0,K._)`${oe.default.valCxt}.${oe.default.dynamicAnchors}`)},()=>{e.var(oe.default.instancePath,(0,K._)`""`),e.var(oe.default.parentData,(0,K._)`undefined`),e.var(oe.default.parentDataProperty,(0,K._)`undefined`),e.var(oe.default.rootData,oe.default.data),t.dynamicRef&&e.var(oe.default.dynamicAnchors,(0,K._)`{}`)})}o(CI,"destructureValCxtES5");function TI(e){let{schema:t,opts:r,gen:n}=e;D0(e,()=>{r.$comment&&t.$comment&&V0(e),kI(e),n.let(oe.default.vErrors,null),n.let(oe.default.errors,0),r.unevaluated&&RI(e),B0(e),LI(e)})}o(TI,"topSchemaObjCode");function RI(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`))}o(RI,"resetEvaluated");function j0(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,K._)`/*# sourceURL=${r} */`:K.nil}o(j0,"funcSourceUrl");function NI(e,t){if(F0(e)&&(H0(e),L0(e))){jI(e,t);return}(0,q0.boolOrEmptySchema)(e,t)}o(NI,"subschemaCode");function L0({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(L0,"schemaCxtHasRules");function F0(e){return typeof e.schema!="boolean"}o(F0,"isSchemaObj");function jI(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&V0(e),qI(e),DI(e);let s=n.const("_errs",oe.default.errors);B0(e,s),n.var(t,(0,K._)`${s} === ${oe.default.errors}`)}o(jI,"subSchemaObjCode");function H0(e){(0,yn.checkUnknownRules)(e),MI(e)}o(H0,"checkKeywords");function B0(e,t){if(e.opts.jtd)return M0(e,[],!1,t);let r=(0,N0.getSchemaTypes)(e.schema),n=(0,N0.coerceAndCheckDataType)(e,r);M0(e,r,!n,t)}o(B0,"typeAndKeywords");function MI(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,yn.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(MI,"checkRefsAndKeywords");function kI(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,yn.checkStrictMode)(e,"default is ignored in the schema root")}o(kI,"checkNoDefault");function qI(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,wI.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(qI,"updateContext");function DI(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(DI,"checkAsyncSchema");function V0({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,K._)`${oe.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,K.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,K._)`${oe.default.self}.opts.$comment(${s}, ${a}, ${c}.schema)`)}}o(V0,"commentKeyword");function LI(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,K._)`${oe.default.errors} === 0`,()=>t.return(oe.default.data),()=>t.throw((0,K._)`new ${i}(${oe.default.vErrors})`)):(t.assign((0,K._)`${n}.errors`,oe.default.vErrors),s.unevaluated&&FI(e),t.return((0,K._)`${oe.default.errors} === 0`))}o(LI,"returnResults");function FI({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)}o(FI,"assignEvaluated");function M0(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,yn.schemaHasRulesButRef)(s,p))){i.block(()=>G0(e,"$ref",p.all.$ref.definition));return}u.jtd||HI(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,cd.shouldUseGroup)(s,d)&&(d.type?(i.if((0,cu.checkDataType)(d.type,a,u.strictNumbers)),k0(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,cu.reportTypeError)(e)),i.endIf()):k0(e,d),c||i.if((0,K._)`${oe.default.errors} === ${n||0}`))}o(f,"groupKeywords")}o(M0,"schemaKeywords");function k0(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,$I.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,cd.shouldUseRule)(n,s)&&G0(e,s.keyword,s.definition,t.type)})}o(k0,"iterateKeywords");function HI(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(BI(e,t),e.opts.allowUnionTypes||VI(e,t),UI(e,e.dataTypes))}o(HI,"checkStrictTypes");function BI(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{U0(e.dataTypes,r)||ud(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),zI(e,t)}}o(BI,"checkContextTypes");function VI(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&ud(e,"use allowUnionTypes to allow union type keyword")}o(VI,"checkMultipleTypes");function UI(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,cd.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>GI(t,a))&&ud(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(UI,"checkKeywordTypes");function GI(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(GI,"hasApplicableType");function U0(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(U0,"includesType");function zI(e,t){let r=[];for(let n of e.dataTypes)U0(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(zI,"narrowSchemaTypes");function ud(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,yn.checkStrictMode)(e,t,e.opts.strictTypes)}o(ud,"strictTypesError");var ld=class ld{constructor(t,r,n){if((0,Xs.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,yn.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",z0(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Xs.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",oe.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?Js.reportExtraError:Js.reportError)(this,this.def.error,r)}$dataError(){(0,Js.reportError)(this,this.def.$dataError||Js.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Js.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:s,def:a}=this;n.if((0,K.or)((0,K._)`${i} === undefined`,r)),t!==K.nil&&n.assign(t,!0),(s.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:s}=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,cu.checkDataTypes)(u,r,s.opts.strictNumbers,cu.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,ad.getSubschema)(this.it,t);(0,ad.extendSubschemaData)(n,this.it,t),(0,ad.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return NI(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=yn.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=yn.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}};o(ld,"KeywordCxt");var uu=ld;Ln.KeywordCxt=uu;function G0(e,t,r,n){let i=new uu(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Xs.funcKeywordCode)(i,r):"macro"in r?(0,Xs.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Xs.funcKeywordCode)(i,r)}o(G0,"keywordCode");var ZI=/^\/(?:[^~]|~0|~1)*$/,WI=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function z0(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return oe.default.rootData;if(e[0]==="/"){if(!ZI.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=oe.default.rootData}else{let l=WI.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,K._)`${s}${(0,K.getProperty)((0,yn.unescapeJsonPointer)(l))}`,a=(0,K._)`${a} && ${s}`);return a;function u(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}o(z0,"getData");Ln.getData=z0});var lu=v(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});var dd=class dd extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(dd,"ValidationError");var fd=dd;pd.default=fd});var ta=v(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});var hd=Qs(),yd=class yd extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,hd.resolveUrl)(t,r,n),this.missingSchema=(0,hd.normalizeId)((0,hd.getFullPath)(t,this.missingRef))}};o(yd,"MissingRefError");var md=yd;gd.default=md});var ra=v(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.resolveSchema=gr.getCompilingSchema=gr.resolveRef=gr.compileSchema=gr.SchemaEnv=void 0;var Ir=ae(),KI=lu(),ji=hr(),Cr=Qs(),Z0=he(),YI=ea(),_d=class _d{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,Cr.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(_d,"SchemaEnv");var Mo=_d;gr.SchemaEnv=Mo;function vd(e){let t=W0.call(this,e);if(t)return t;let r=(0,Cr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new Ir.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:KI.default,code:(0,Ir._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:ji.default.data,parentData:ji.default.parentData,parentDataProperty:ji.default.parentDataProperty,dataNames:[ji.default.data],dataPathArr:[Ir.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ir.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Ir.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ir._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,YI.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(ji.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${ji.default.self}`,`${ji.default.scope}`,p)(this,this.scope.get());if(this.scope.value(u,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:u,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:y,items:b}=l;h.evaluated={props:y instanceof Ir.Name?void 0:y,items:b instanceof Ir.Name?void 0:b,dynamicProps:y instanceof Ir.Name,dynamicItems:b instanceof Ir.Name},h.source&&(h.source.evaluated=(0,Ir.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(vd,"compileSchema");gr.compileSchema=vd;function QI(e,t,r){var n;r=(0,Cr.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=eC.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 Mo({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=JI.call(this,s)}o(QI,"resolveRef");gr.resolveRef=QI;function JI(e){return(0,Cr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:vd.call(this,e)}o(JI,"inlineOrCompile");function W0(e){for(let t of this._compilations)if(XI(t,e))return t}o(W0,"getCompilingSchema");gr.getCompilingSchema=W0;function XI(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(XI,"sameSchemaEnv");function eC(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||fu.call(this,e,t)}o(eC,"resolve");function fu(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Cr._getFullPath)(this.opts.uriResolver,r),i=(0,Cr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return bd.call(this,r,e);let s=(0,Cr.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=fu.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:bd.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||vd.call(this,a),s===(0,Cr.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,Cr.resolveUrl)(this.opts.uriResolver,i,l)),new Mo({schema:c,schemaId:u,root:e,baseId:i})}return bd.call(this,r,a)}}o(fu,"resolveSchema");gr.resolveSchema=fu;var tC=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function bd(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,Z0.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!tC.has(c)&&l&&(t=(0,Cr.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,Z0.schemaHasRulesButRef)(r,this.RULES)){let c=(0,Cr.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=fu.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new Mo({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(bd,"getJsonPointer")});var K0=v((MB,rC)=>{rC.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 Q0=v((kB,Y0)=>{"use strict";var nC={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};Y0.exports={HEX:nC}});var ov=v((qB,iv)=>{"use strict";var{HEX:iC}=Q0();function tv(e){if(nv(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:sC(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(tv,"normalizeIPv4");function Sd(e,t=!1){let r="",n=!0;for(let i of e){if(iC[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(Sd,"stringArrayToHexStripped");function oC(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=Sd(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(Sd(i))),r.address=n.join(""),r}o(oC,"getIPV6");function rv(e,t={}){if(nv(e,":")<2)return{host:e,isIPV6:!1};let r=oC(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(rv,"normalizeIPv6");function sC(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(sC,"stripLeadingZeros");function nv(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(nv,"findToken");var J0=/^\.\.?\//u,X0=/^\/\.(?:\/|$)/u,ev=/^\/\.\.(?:\/|$)/u,aC=/^\/?(?:.|\n)*?(?=\/|$)/u;function cC(e){let t=[];for(;e.length;)if(e.match(J0))e=e.replace(J0,"");else if(e.match(X0))e=e.replace(X0,"/");else if(e.match(ev))e=e.replace(ev,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(aC);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(cC,"removeDotSegments");function uC(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(uC,"normalizeComponentEncoding");function lC(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=tv(n);if(i.isIPV4)n=i.host;else{let s=rv(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(lC,"recomposeAuthority");iv.exports={recomposeAuthority:lC,normalizeComponentEncoding:uC,removeDotSegments:cC,normalizeIPv4:tv,normalizeIPv6:rv,stringArrayToHexStripped:Sd}});var fv=v((LB,lv)=>{"use strict";var fC=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,pC=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function sv(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(sv,"isSecure");function av(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(av,"httpParse");function cv(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(cv,"httpSerialize");function dC(e){return e.secure=sv(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(dC,"wsParse");function hC(e){if((e.port===(sv(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(hC,"wsSerialize");function mC(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(pC);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=Od[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(mC,"urnParse");function gC(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=Od[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(gC,"urnSerialize");function yC(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!fC.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(yC,"urnuuidParse");function bC(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(bC,"urnuuidSerialize");var uv={scheme:"http",domainHost:!0,parse:av,serialize:cv},vC={scheme:"https",domainHost:uv.domainHost,parse:av,serialize:cv},pu={scheme:"ws",domainHost:!0,parse:dC,serialize:hC},_C={scheme:"wss",domainHost:pu.domainHost,parse:pu.parse,serialize:pu.serialize},SC={scheme:"urn",parse:mC,serialize:gC,skipNormalize:!0},OC={scheme:"urn:uuid",parse:yC,serialize:bC,skipNormalize:!0},Od={http:uv,https:vC,ws:pu,wss:_C,urn:SC,"urn:uuid":OC};lv.exports=Od});var dv=v((HB,hu)=>{"use strict";var{normalizeIPv6:EC,normalizeIPv4:PC,removeDotSegments:na,recomposeAuthority:xC,normalizeComponentEncoding:du}=ov(),Ed=fv();function $C(e,t){return typeof e=="string"?e=Wr(bn(e,t),t):typeof e=="object"&&(e=bn(Wr(e,t),t)),e}o($C,"normalize");function wC(e,t,r){let n=Object.assign({scheme:"null"},r),i=pv(bn(e,n),bn(t,n),n,!0);return Wr(i,{...n,skipEscape:!0})}o(wC,"resolve");function pv(e,t,r,n){let i={};return n||(e=bn(Wr(e,r),r),t=bn(Wr(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=na(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=na(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=na(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=na(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(pv,"resolveComponents");function AC(e,t,r){return typeof e=="string"?(e=unescape(e),e=Wr(du(bn(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Wr(du(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Wr(du(bn(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Wr(du(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(AC,"equal");function Wr(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=Ed[(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=xC(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=na(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(Wr,"serialize");var IC=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function CC(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||IC[t])return!0;return!1}o(CC,"nonSimpleDomain");var TC=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function bn(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(TC);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=PC(n.host);if(u.isIPV4===!1){let l=EC(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=Ed[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&CC(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(bn,"parse");var Pd={SCHEMES:Ed,normalize:$C,resolve:wC,resolveComponents:pv,equal:AC,serialize:Wr,parse:bn};hu.exports=Pd;hu.exports.default=Pd;hu.exports.fastUri=Pd});var mv=v(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});var hv=dv();hv.code='require("ajv/dist/runtime/uri").default';xd.default=hv});var qo=v(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.CodeGen=bt.Name=bt.nil=bt.stringify=bt.str=bt._=bt.KeywordCxt=void 0;var RC=ea();Object.defineProperty(bt,"KeywordCxt",{enumerable:!0,get:o(function(){return RC.KeywordCxt},"get")});var ko=ae();Object.defineProperty(bt,"_",{enumerable:!0,get:o(function(){return ko._},"get")});Object.defineProperty(bt,"str",{enumerable:!0,get:o(function(){return ko.str},"get")});Object.defineProperty(bt,"stringify",{enumerable:!0,get:o(function(){return ko.stringify},"get")});Object.defineProperty(bt,"nil",{enumerable:!0,get:o(function(){return ko.nil},"get")});Object.defineProperty(bt,"Name",{enumerable:!0,get:o(function(){return ko.Name},"get")});Object.defineProperty(bt,"CodeGen",{enumerable:!0,get:o(function(){return ko.CodeGen},"get")});var NC=lu(),_v=ta(),jC=Qp(),ia=ra(),MC=ae(),oa=Qs(),mu=Ys(),wd=he(),gv=K0(),kC=mv(),Sv=o((e,t)=>new RegExp(e,t),"defaultRegExp");Sv.code="new RegExp";var qC=["removeAdditional","useDefaults","coerceTypes"],DC=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),LC={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."},FC={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},yv=200;function HC(e){var t,r,n,i,s,a,c,u,l,p,f,d,h,y,b,g,P,$,C,T,w,te,re,$e,Ae;let G=e.strict,j=(t=e.code)===null||t===void 0?void 0:t.optimize,R=j===!0||j===void 0?1:j||0,k=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Sv,Q=(i=e.uriResolver)!==null&&i!==void 0?i:kC.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:G)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:G)!==null&&u!==void 0?u:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:G)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:G)!==null&&d!==void 0?d:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:G)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:R,regExp:k}:{optimize:R,regExp:k},loopRequired:(b=e.loopRequired)!==null&&b!==void 0?b:yv,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:yv,meta:(P=e.meta)!==null&&P!==void 0?P:!0,messages:($=e.messages)!==null&&$!==void 0?$:!0,inlineRefs:(C=e.inlineRefs)!==null&&C!==void 0?C:!0,schemaId:(T=e.schemaId)!==null&&T!==void 0?T:"$id",addUsedSchema:(w=e.addUsedSchema)!==null&&w!==void 0?w:!0,validateSchema:(te=e.validateSchema)!==null&&te!==void 0?te:!0,validateFormats:(re=e.validateFormats)!==null&&re!==void 0?re:!0,unicodeRegExp:($e=e.unicodeRegExp)!==null&&$e!==void 0?$e:!0,int32range:(Ae=e.int32range)!==null&&Ae!==void 0?Ae:!0,uriResolver:Q}}o(HC,"requiredOptions");var Ad=class Ad{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...HC(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new MC.ValueScope({scope:{},prefixes:DC,es5:r,lines:n}),this.logger=ZC(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,jC.getRules)(),bv.call(this,LC,t,"NOT SUPPORTED"),bv.call(this,FC,t,"DEPRECATED","warn"),this._metaOpts=GC.call(this),t.formats&&VC.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&UC.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),BC.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=gv;n==="id"&&(i={...gv},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 _v.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,oa.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=vv.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new ia.SchemaEnv({schema:{},schemaId:n});if(r=ia.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=vv.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,oa.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(KC.call(this,n,r),!r)return(0,wd.eachItem)(n,s=>$d.call(this,s)),this;QC.call(this,r);let i={...r,type:(0,mu.getJSONTypes)(r.type),schemaType:(0,mu.getJSONTypes)(r.schemaType)};return(0,wd.eachItem)(n,i.type.length===0?s=>$d.call(this,s,i):s=>i.type.forEach(a=>$d.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]=Ov(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,oa.normalizeId)(a||n);let l=oa.getSchemaRefs.call(this,t,n);return u=new ia.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):ia.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{ia.compileSchema.call(this,t)}finally{this.opts=r}}};o(Ad,"Ajv");var sa=Ad;sa.ValidationError=NC.default;sa.MissingRefError=_v.default;bt.default=sa;function bv(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(bv,"checkOptions");function vv(e){return e=(0,oa.normalizeId)(e),this.schemas[e]||this.refs[e]}o(vv,"getSchEnv");function BC(){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(BC,"addInitialSchemas");function VC(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(VC,"addInitialFormats");function UC(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(UC,"addInitialKeywords");function GC(){let e={...this.opts};for(let t of qC)delete e[t];return e}o(GC,"getMetaSchemaOptions");var zC={log(){},warn(){},error(){}};function ZC(e){if(e===!1)return zC;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(ZC,"getLogger");var WC=/^[a-z_$][a-z0-9_$:-]*$/i;function KC(e,t){let{RULES:r}=this;if((0,wd.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!WC.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(KC,"checkKeyword");function $d(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,mu.getJSONTypes)(t.type),schemaType:(0,mu.getJSONTypes)(t.schemaType)}};t.before?YC.call(this,a,c,t.before):a.rules.push(c),s.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}o($d,"addRule");function YC(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}o(YC,"addBeforeRule");function QC(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Ov(t)),e.validateSchema=this.compile(t,!0))}o(QC,"keywordMetaschema");var JC={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Ov(e){return{anyOf:[e,JC]}}o(Ov,"schemaOrData")});var aa=v(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.callRef=Mi.getValidate=void 0;var XC=ta(),Ev=mr(),Gt=ae(),Do=hr(),Pv=ra(),gu=he(),eT={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=Pv.resolveRef.call(u,l,i,r);if(p===void 0)throw new XC.default(n.opts.uriResolver,i,r);if(p instanceof Pv.SchemaEnv)return d(p);return h(p);function f(){if(s===l)return yu(e,a,s,s.$async);let y=t.scopeValue("root",{ref:l});return yu(e,(0,Gt._)`${y}.validate`,l,l.$async)}function d(y){let b=xv(e,y);yu(e,b,y,y.$async)}function h(y){let b=t.scopeValue("schema",c.code.source===!0?{ref:y,code:(0,Gt.stringify)(y)}:{ref:y}),g=t.name("valid"),P=e.subschema({schema:y,dataTypes:[],schemaPath:Gt.nil,topSchemaRef:b,errSchemaPath:r},g);e.mergeEvaluated(P),e.ok(g)}}};function xv(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Gt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(xv,"getValidate");Mi.getValidate=xv;function yu(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?Do.default.this:Gt.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,Gt._)`await ${(0,Ev.callValidateCode)(e,t,l)}`),h(t),a||i.assign(y,!0)},b=>{i.if((0,Gt._)`!(${b} instanceof ${s.ValidationError})`,()=>i.throw(b)),d(b),a||i.assign(y,!1)}),e.ok(y)}o(p,"callAsyncRef");function f(){e.result((0,Ev.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}o(f,"callSyncRef");function d(y){let b=(0,Gt._)`${y}.errors`;i.assign(Do.default.vErrors,(0,Gt._)`${Do.default.vErrors} === null ? ${b} : ${Do.default.vErrors}.concat(${b})`),i.assign(Do.default.errors,(0,Gt._)`${Do.default.vErrors}.length`)}o(d,"addErrorsFrom");function h(y){var b;if(!s.opts.unevaluated)return;let g=(b=r==null?void 0:r.validate)===null||b===void 0?void 0:b.evaluated;if(s.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(s.props=gu.mergeEvaluated.props(i,g.props,s.props));else{let P=i.var("props",(0,Gt._)`${y}.evaluated.props`);s.props=gu.mergeEvaluated.props(i,P,s.props,Gt.Name)}if(s.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(s.items=gu.mergeEvaluated.items(i,g.items,s.items));else{let P=i.var("items",(0,Gt._)`${y}.evaluated.items`);s.items=gu.mergeEvaluated.items(i,P,s.items,Gt.Name)}}o(h,"addEvaluatedFrom")}o(yu,"callRef");Mi.callRef=yu;Mi.default=eT});var $v=v(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});var tT=aa(),rT=["$schema","id","$defs",{keyword:"$comment"},"definitions",tT.default];Id.default=rT});var wv=v(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});var Cd=qo(),nT=ae(),Fn=nT.operators,Td={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Fn.LTE,fail:Fn.GT},{okStr:"<",ok:Fn.LT,fail:Fn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Fn.GTE,fail:Fn.LT},{okStr:">",ok:Fn.GT,fail:Fn.LTE}]}},iT={message:o(e=>Cd.str`must be ${Rd(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>Cd._`{comparison: ${Rd(e).okStr}, limit: ${e.schemaCode}}`,"params")},oT={keyword:Object.keys(Td),type:"number",schemaType:"number",$data:!0,error:iT,code(e){let{data:t,schemaCode:r}=e;e.fail$data(Cd._`${t} ${Rd(e).fail} ${r} || isNaN(${t})`)}};function Rd(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[Td[r].exclusive]?1:0;return Td[r].ops[n]}o(Rd,"kwdOp");Nd.default=oT});var Iv=v(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});var Av={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},sT={keyword:Object.keys(Av),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Av[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};jd.default=sT});var kd=v(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});var ca=ae(),aT={message:o(({schemaCode:e})=>(0,ca.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,ca._)`{multipleOf: ${e}}`,"params")},cT={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:aT,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,ca._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,ca._)`${a} !== parseInt(${a})`;e.fail$data((0,ca._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};Md.default=cT});var Tv=v(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});function Cv(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(Cv,"ucs2length");qd.default=Cv;Cv.code='require("ajv/dist/runtime/ucs2length").default'});var Ld=v(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});var ki=ae(),uT=he(),lT=Tv(),fT={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,ki.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,ki._)`{limit: ${e}}`,"params")},pT={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:fT,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?ki.operators.GT:ki.operators.LT,a=i.opts.unicode===!1?(0,ki._)`${r}.length`:(0,ki._)`${(0,uT.useFunc)(e.gen,lT.default)}(${r})`;e.fail$data((0,ki._)`${a} ${s} ${n}`)}};Dd.default=pT});var Hd=v(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});var dT=mr(),bu=ae(),hT={message:o(({schemaCode:e})=>(0,bu.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,bu._)`{pattern: ${e}}`,"params")},mT={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:hT,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,bu._)`(new RegExp(${i}, ${a}))`:(0,dT.usePattern)(e,n);e.fail$data((0,bu._)`!${c}.test(${t})`)}};Fd.default=mT});var Vd=v(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});var ua=ae(),gT={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,ua.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,ua._)`{limit: ${e}}`,"params")},yT={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:gT,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?ua.operators.GT:ua.operators.LT;e.fail$data((0,ua._)`Object.keys(${r}).length ${i} ${n}`)}};Bd.default=yT});var Gd=v(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});var la=mr(),fa=ae(),bT=he(),vT={message:o(({params:{missingProperty:e}})=>(0,fa.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,fa._)`{missingProperty: ${e}}`,"params")},_T={keyword:"required",type:"object",schemaType:"array",$data:!0,error:vT,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:c}=a;if(!s&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?l():p(),c.strictRequired){let h=e.parentSchema.properties,{definedProperties:y}=e.it;for(let b of r)if((h==null?void 0:h[b])===void 0&&!y.has(b)){let g=a.schemaEnv.baseId+a.errSchemaPath,P=`required property "${b}" is not defined at "${g}" (strictRequired)`;(0,bT.checkStrictMode)(a,P,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(fa.nil,f);else for(let h of r)(0,la.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,la.checkMissingProp)(e,r,h)),(0,la.reportMissingProp)(e,h),t.else()}o(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,la.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,la.propertyInData)(t,i,h,c.ownProperties)),t.if((0,fa.not)(y),()=>{e.error(),t.break()})},fa.nil)}o(d,"loopUntilMissing")}};Ud.default=_T});var Zd=v(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});var pa=ae(),ST={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,pa.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,pa._)`{limit: ${e}}`,"params")},OT={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:ST,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?pa.operators.GT:pa.operators.LT;e.fail$data((0,pa._)`${r}.length ${i} ${n}`)}};zd.default=OT});var vu=v(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});var Rv=od();Rv.code='require("ajv/dist/runtime/equal").default';Wd.default=Rv});var Qd=v(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});var Kd=Ys(),vt=ae(),ET=he(),PT=vu(),xT={message:o(({params:{i:e,j:t}})=>(0,vt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,vt._)`{i: ${e}, j: ${t}}`,"params")},$T={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:xT,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,Kd.getSchemaTypes)(s.items):[];e.block$data(u,p,(0,vt._)`${a} === false`),e.ok(u);function p(){let y=t.let("i",(0,vt._)`${r}.length`),b=t.let("j");e.setParams({i:y,j:b}),t.assign(u,!0),t.if((0,vt._)`${y} > 1`,()=>(f()?d:h)(y,b))}o(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(y=>y==="object"||y==="array")}o(f,"canOptimize");function d(y,b){let g=t.name("item"),P=(0,Kd.checkDataTypes)(l,g,c.opts.strictNumbers,Kd.DataType.Wrong),$=t.const("indices",(0,vt._)`{}`);t.for((0,vt._)`;${y}--;`,()=>{t.let(g,(0,vt._)`${r}[${y}]`),t.if(P,(0,vt._)`continue`),l.length>1&&t.if((0,vt._)`typeof ${g} == "string"`,(0,vt._)`${g} += "_"`),t.if((0,vt._)`typeof ${$}[${g}] == "number"`,()=>{t.assign(b,(0,vt._)`${$}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,vt._)`${$}[${g}] = ${y}`)})}o(d,"loopN");function h(y,b){let g=(0,ET.useFunc)(t,PT.default),P=t.name("outer");t.label(P).for((0,vt._)`;${y}--;`,()=>t.for((0,vt._)`${b} = ${y}; ${b}--;`,()=>t.if((0,vt._)`${g}(${r}[${y}], ${r}[${b}])`,()=>{e.error(),t.assign(u,!1).break(P)})))}o(h,"loopN2")}};Yd.default=$T});var eh=v(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});var Jd=ae(),wT=he(),AT=vu(),IT={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,Jd._)`{allowedValue: ${e}}`,"params")},CT={keyword:"const",$data:!0,error:IT,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Jd._)`!${(0,wT.useFunc)(t,AT.default)}(${r}, ${i})`):e.fail((0,Jd._)`${s} !== ${r}`)}};Xd.default=CT});var rh=v(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});var da=ae(),TT=he(),RT=vu(),NT={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,da._)`{allowedValues: ${e}}`,"params")},jT={keyword:"enum",schemaType:"array",$data:!0,error:NT,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,TT.useFunc)(t,RT.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,da.or)(...i.map((y,b)=>d(h,b)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",s,h=>t.if((0,da._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}o(f,"loopEnum");function d(h,y){let b=i[y];return typeof b=="object"&&b!==null?(0,da._)`${l()}(${r}, ${h}[${y}])`:(0,da._)`${r} === ${b}`}o(d,"equalCode")}};th.default=jT});var Nv=v(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});var MT=wv(),kT=Iv(),qT=kd(),DT=Ld(),LT=Hd(),FT=Vd(),HT=Gd(),BT=Zd(),VT=Qd(),UT=eh(),GT=rh(),zT=[MT.default,kT.default,qT.default,DT.default,LT.default,FT.default,HT.default,BT.default,VT.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},UT.default,GT.default];nh.default=zT});var oh=v(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.validateAdditionalItems=void 0;var qi=ae(),ih=he(),ZT={message:o(({params:{len:e}})=>(0,qi.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,qi._)`{limit: ${e}}`,"params")},WT={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:ZT,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,ih.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}jv(e,n)}};function jv(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let c=r.const("len",(0,qi._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,qi._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,ih.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,qi._)`${c} <= ${t.length}`);r.if((0,qi.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,p=>{e.subschema({keyword:s,dataProp:p,dataPropType:ih.Type.Num},l),a.allErrors||r.if((0,qi.not)(l),()=>r.break())})}o(u,"validateItems")}o(jv,"validateAdditionalItems");ha.validateAdditionalItems=jv;ha.default=WT});var sh=v(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.validateTuple=void 0;var Mv=ae(),_u=he(),KT=mr(),YT={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return kv(e,"additionalItems",t);r.items=!0,!(0,_u.alwaysValidSchema)(r,t)&&e.ok((0,KT.validateArray)(e))}};function kv(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=_u.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,Mv._)`${s}.length`);r.forEach((f,d)=>{(0,_u.alwaysValidSchema)(c,f)||(n.if((0,Mv._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function p(f){let{opts:d,errSchemaPath:h}=c,y=r.length,b=y===f.minItems&&(y===f.maxItems||f[t]===!1);if(d.strictTuples&&!b){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,_u.checkStrictMode)(c,g,d.strictTuples)}}o(p,"checkStrictTuple")}o(kv,"validateTuple");ma.validateTuple=kv;ma.default=YT});var qv=v(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});var QT=sh(),JT={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,QT.validateTuple)(e,"items"),"code")};ah.default=JT});var Lv=v(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var Dv=ae(),XT=he(),eR=mr(),tR=oh(),rR={message:o(({params:{len:e}})=>(0,Dv.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Dv._)`{limit: ${e}}`,"params")},nR={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:rR,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,XT.alwaysValidSchema)(n,t)&&(i?(0,tR.validateAdditionalItems)(e,i):e.ok((0,eR.validateArray)(e)))}};ch.default=nR});var Fv=v(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});var yr=ae(),Su=he(),iR={message:o(({params:{min:e,max:t}})=>t===void 0?(0,yr.str)`must contain at least ${e} valid item(s)`:(0,yr.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,yr._)`{minContains: ${e}}`:(0,yr._)`{minContains: ${e}, maxContains: ${t}}`,"params")},oR={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:iR,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,yr._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,Su.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,Su.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Su.alwaysValidSchema)(s,r)){let b=(0,yr._)`${p} >= ${a}`;c!==void 0&&(b=(0,yr._)`${b} && ${p} <= ${c}`),e.pass(b);return}s.items=!0;let f=t.name("valid");c===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),c!==void 0&&t.if((0,yr._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let b=t.name("_valid"),g=t.let("count",0);h(b,()=>t.if(b,()=>y(g)))}o(d,"validateItemsWithCount");function h(b,g){t.forRange("i",0,p,P=>{e.subschema({keyword:"contains",dataProp:P,dataPropType:Su.Type.Num,compositeRule:!0},b),g()})}o(h,"validateItems");function y(b){t.code((0,yr._)`${b}++`),c===void 0?t.if((0,yr._)`${b} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,yr._)`${b} > ${c}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,yr._)`${b} >= ${a}`,()=>t.assign(f,!0)))}o(y,"checkLimits")}};uh.default=oR});var Ou=v(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.validateSchemaDeps=Kr.validatePropertyDeps=Kr.error=void 0;var lh=ae(),sR=he(),ga=mr();Kr.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,lh.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,lh._)`{property: ${e},
10
+ || ${a} === "boolean" || ${i} === null`).assign(c,(0,ce._)`[${i}]`)}}o(u,"coerceSpecificType")}o(KA,"coerceData");function YA({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ce._)`${t} !== undefined`,()=>e.assign((0,ce._)`${t}[${r}]`,n))}o(YA,"assignParentData");function ed(e,t,r,n=Io.Correct){let i=n===Io.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===Io.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(ed,"checkDataType");Pt.checkDataType=ed;function td(e,t,r,n){if(e.length===1)return ed(e[0],t,r,n);let i,s=(0,d0.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,ed(a,t,r,n));return i}o(td,"checkDataTypes");Pt.checkDataTypes=td;var QA={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 rd(e){let t=JA(e);(0,GA.reportError)(t,QA)}o(rd,"reportTypeError");Pt.reportTypeError=rd;function JA(e){let{gen:t,data:r,schema:n}=e,i=(0,d0.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(JA,"getTypeErrorContext")});var y0=v(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.assignDefaults=void 0;var Co=ae(),XA=he();function eI(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)g0(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>g0(e,s,i.default))}o(eI,"assignDefaults");Qc.assignDefaults=eI;function g0(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,Co._)`${s}${(0,Co.getProperty)(t)}`;if(i){(0,XA.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,Co._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,Co._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,Co._)`${c} = ${(0,Co.stringify)(r)}`)}o(g0,"assignDefault")});var dr=v(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.validateUnion=Ae.validateArray=Ae.usePattern=Ae.callValidateCode=Ae.schemaProperties=Ae.allSchemaProperties=Ae.noPropertyInData=Ae.propertyInData=Ae.isOwnProperty=Ae.hasPropFunc=Ae.reportMissingProp=Ae.checkMissingProp=Ae.checkReportMissingProp=void 0;var Le=ae(),nd=he(),Nn=pr(),tI=he();function rI(e,t){let{gen:r,data:n,it:i}=e;r.if(od(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Le._)`${t}`},!0),e.error()})}o(rI,"checkReportMissingProp");Ae.checkReportMissingProp=rI;function nI({gen:e,data:t,it:{opts:r}},n,i){return(0,Le.or)(...n.map(s=>(0,Le.and)(od(e,t,s,r.ownProperties),(0,Le._)`${i} = ${s}`)))}o(nI,"checkMissingProp");Ae.checkMissingProp=nI;function iI(e,t){e.setParams({missingProperty:t},!0),e.error()}o(iI,"reportMissingProp");Ae.reportMissingProp=iI;function b0(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Le._)`Object.prototype.hasOwnProperty`})}o(b0,"hasPropFunc");Ae.hasPropFunc=b0;function id(e,t,r){return(0,Le._)`${b0(e)}.call(${t}, ${r})`}o(id,"isOwnProperty");Ae.isOwnProperty=id;function oI(e,t,r,n){let i=(0,Le._)`${t}${(0,Le.getProperty)(r)} !== undefined`;return n?(0,Le._)`${i} && ${id(e,t,r)}`:i}o(oI,"propertyInData");Ae.propertyInData=oI;function od(e,t,r,n){let i=(0,Le._)`${t}${(0,Le.getProperty)(r)} === undefined`;return n?(0,Le.or)(i,(0,Le.not)(id(e,t,r))):i}o(od,"noPropertyInData");Ae.noPropertyInData=od;function v0(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(v0,"allSchemaProperties");Ae.allSchemaProperties=v0;function sI(e,t){return v0(t).filter(r=>!(0,nd.alwaysValidSchema)(e,t[r]))}o(sI,"schemaProperties");Ae.schemaProperties=sI;function aI({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let p=l?(0,Le._)`${e}, ${t}, ${n}${i}`:t,f=[[Nn.default.instancePath,(0,Le.strConcat)(Nn.default.instancePath,s)],[Nn.default.parentData,a.parentData],[Nn.default.parentDataProperty,a.parentDataProperty],[Nn.default.rootData,Nn.default.rootData]];a.opts.dynamicRef&&f.push([Nn.default.dynamicAnchors,Nn.default.dynamicAnchors]);let d=(0,Le._)`${p}, ${r.object(...f)}`;return u!==Le.nil?(0,Le._)`${c}.call(${u}, ${d})`:(0,Le._)`${c}(${d})`}o(aI,"callValidateCode");Ae.callValidateCode=aI;var cI=(0,Le._)`new RegExp`;function uI({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,Le._)`${i.code==="new RegExp"?cI:(0,tI.useFunc)(e,i)}(${r}, ${n})`})}o(uI,"usePattern");Ae.usePattern=uI;function lI(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,Le._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:nd.Type.Num},s),t.if((0,Le.not)(s),c)})}o(a,"validateItems")}o(lI,"validateArray");Ae.validateArray=lI;function fI(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,nd.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,Le._)`${a} || ${c}`),e.mergeValidEvaluated(p,c)||t.if((0,Le.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(fI,"validateUnion");Ae.validateUnion=fI});var O0=v(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.validateKeywordUsage=Gr.validSchemaType=Gr.funcKeywordCode=Gr.macroKeywordCode=void 0;var Nt=ae(),Ri=pr(),pI=dr(),dI=Gs();function hI(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=S0(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:Nt.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(hI,"macroKeywordCode");Gr.macroKeywordCode=hI;function mI(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;yI(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,p=S0(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)b(),t.modifying&&_0(e),g(()=>e.error());else{let P=t.async?h():y();t.modifying&&_0(e),g(()=>gI(e,P))}}o(d,"validateKeyword");function h(){let P=n.let("ruleErrs",null);return n.try(()=>b((0,Nt._)`await `),$=>n.assign(f,!1).if((0,Nt._)`${$} instanceof ${u.ValidationError}`,()=>n.assign(P,(0,Nt._)`${$}.errors`),()=>n.throw($))),P}o(h,"validateAsync");function y(){let P=(0,Nt._)`${p}.errors`;return n.assign(P,null),b(Nt.nil),P}o(y,"validateSync");function b(P=t.async?(0,Nt._)`await `:Nt.nil){let $=u.opts.passContext?Ri.default.this:Ri.default.self,C=!("compile"in t&&!c||t.schema===!1);n.assign(f,(0,Nt._)`${P}${(0,pI.callValidateCode)(e,p,$,C)}`,t.modifying)}o(b,"assignValid");function g(P){var $;n.if((0,Nt.not)(($=t.valid)!==null&&$!==void 0?$:f),P)}o(g,"reportErrs")}o(mI,"funcKeywordCode");Gr.funcKeywordCode=mI;function _0(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Nt._)`${n.parentData}[${n.parentDataProperty}]`))}o(_0,"modifyData");function gI(e,t){let{gen:r}=e;r.if((0,Nt._)`Array.isArray(${t})`,()=>{r.assign(Ri.default.vErrors,(0,Nt._)`${Ri.default.vErrors} === null ? ${t} : ${Ri.default.vErrors}.concat(${t})`).assign(Ri.default.errors,(0,Nt._)`${Ri.default.vErrors}.length`),(0,dI.extendErrors)(e)},()=>e.error())}o(gI,"addErrs");function yI({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(yI,"checkAsyncKeyword");function S0(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,Nt.stringify)(r)})}o(S0,"useKeyword");function bI(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(bI,"validSchemaType");Gr.validSchemaType=bI;function vI({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(vI,"validateKeywordUsage");Gr.validateKeywordUsage=vI});var P0=v(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.extendSubschemaMode=jn.extendSubschemaData=jn.getSubschema=void 0;var zr=ae(),E0=he();function _I(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,zr._)`${e.schemaPath}${(0,zr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,zr._)`${e.schemaPath}${(0,zr.getProperty)(t)}${(0,zr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,E0.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(_I,"getSubschema");jn.getSubschema=_I;function SI(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,zr._)`${t.data}${(0,zr.getProperty)(r)}`,!0);u(d),e.errorPath=(0,zr.str)`${l}${(0,E0.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,zr._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof zr.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(SI,"extendSubschemaData");jn.extendSubschemaData=SI;function OI(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(OI,"extendSubschemaMode");jn.extendSubschemaMode=OI});var sd=v((P7,x0)=>{"use strict";x0.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 w0=v(($7,$0)=>{"use strict";var Mn=$0.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(){};Jc(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 Jc(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 Mn.arrayKeywords)for(var d=0;d<f.length;d++)Jc(e,t,r,f[d],i+"/"+p+"/"+d,s,i,p,n,d)}else if(p in Mn.propsKeywords){if(f&&typeof f=="object")for(var h in f)Jc(e,t,r,f[h],i+"/"+p+"/"+EI(h),s,i,p,n,h)}else(p in Mn.keywords||e.allKeys&&!(p in Mn.skipKeywords))&&Jc(e,t,r,f,i+"/"+p,s,i,p,n)}r(n,i,s,a,c,u,l)}}o(Jc,"_traverse");function EI(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(EI,"escapeJsonPtr")});var Zs=v(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.getSchemaRefs=Vt.resolveUrl=Vt.normalizeId=Vt._getFullPath=Vt.getFullPath=Vt.inlineRef=void 0;var PI=he(),xI=sd(),$I=w0(),wI=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function AI(e,t=!0){return typeof e=="boolean"?!0:t===!0?!ad(e):t?A0(e)<=t:!1}o(AI,"inlineRef");Vt.inlineRef=AI;var II=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ad(e){for(let t in e){if(II.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(ad)||typeof r=="object"&&ad(r))return!0}return!1}o(ad,"hasRef");function A0(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!wI.has(r)&&(typeof e[r]=="object"&&(0,PI.eachItem)(e[r],n=>t+=A0(n)),t===1/0))return 1/0}return t}o(A0,"countKeys");function I0(e,t="",r){r!==!1&&(t=To(t));let n=e.parse(t);return C0(e,n)}o(I0,"getFullPath");Vt.getFullPath=I0;function C0(e,t){return e.serialize(t).split("#")[0]+"#"}o(C0,"_getFullPath");Vt._getFullPath=C0;var CI=/#\/?$/;function To(e){return e?e.replace(CI,""):""}o(To,"normalizeId");Vt.normalizeId=To;function TI(e,t,r){return r=To(r),e.resolve(t,r)}o(TI,"resolveUrl");Vt.resolveUrl=TI;var RI=/^[a-z_][-a-z0-9._]*$/i;function NI(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=To(e[r]||t),s={"":i},a=I0(n,i,!1),c={},u=new Set;return $I(e,{allKeys:!0},(f,d,h,y)=>{if(y===void 0)return;let b=a+d,g=s[y];typeof f[r]=="string"&&(g=P.call(this,f[r])),$.call(this,f.$anchor),$.call(this,f.$dynamicAnchor),s[d]=g;function P(C){let T=this.opts.uriResolver.resolve;if(C=To(g?T(g,C):C),u.has(C))throw p(C);u.add(C);let w=this.refs[C];return typeof w=="string"&&(w=this.refs[w]),typeof w=="object"?l(f,w.schema,C):C!==To(b)&&(C[0]==="#"?(l(f,c[C],C),c[C]=f):this.refs[C]=b),C}o(P,"addRef");function $(C){if(typeof C=="string"){if(!RI.test(C))throw new Error(`invalid anchor "${C}"`);P.call(this,`#${C}`)}}o($,"addAnchor")}),c;function l(f,d,h){if(d!==void 0&&!xI(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(NI,"getSchemaRefs");Vt.getSchemaRefs=NI});var Ys=v(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.getData=kn.KeywordCxt=kn.validateFunctionCode=void 0;var M0=l0(),T0=zs(),ud=Xp(),Xc=zs(),jI=y0(),Ks=O0(),cd=P0(),K=ae(),oe=pr(),MI=Zs(),mn=he(),Ws=Gs();function kI(e){if(D0(e)&&(L0(e),q0(e))){LI(e);return}k0(e,()=>(0,M0.topBoolOrEmptySchema)(e))}o(kI,"validateFunctionCode");kn.validateFunctionCode=kI;function k0({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,K._)`${oe.default.data}, ${oe.default.valCxt}`,n.$async,()=>{e.code((0,K._)`"use strict"; ${R0(r,i)}`),DI(e,i),e.code(s)}):e.func(t,(0,K._)`${oe.default.data}, ${qI(i)}`,n.$async,()=>e.code(R0(r,i)).code(s))}o(k0,"validateFunction");function qI(e){return(0,K._)`{${oe.default.instancePath}="", ${oe.default.parentData}, ${oe.default.parentDataProperty}, ${oe.default.rootData}=${oe.default.data}${e.dynamicRef?(0,K._)`, ${oe.default.dynamicAnchors}={}`:K.nil}}={}`}o(qI,"destructureValCxt");function DI(e,t){e.if(oe.default.valCxt,()=>{e.var(oe.default.instancePath,(0,K._)`${oe.default.valCxt}.${oe.default.instancePath}`),e.var(oe.default.parentData,(0,K._)`${oe.default.valCxt}.${oe.default.parentData}`),e.var(oe.default.parentDataProperty,(0,K._)`${oe.default.valCxt}.${oe.default.parentDataProperty}`),e.var(oe.default.rootData,(0,K._)`${oe.default.valCxt}.${oe.default.rootData}`),t.dynamicRef&&e.var(oe.default.dynamicAnchors,(0,K._)`${oe.default.valCxt}.${oe.default.dynamicAnchors}`)},()=>{e.var(oe.default.instancePath,(0,K._)`""`),e.var(oe.default.parentData,(0,K._)`undefined`),e.var(oe.default.parentDataProperty,(0,K._)`undefined`),e.var(oe.default.rootData,oe.default.data),t.dynamicRef&&e.var(oe.default.dynamicAnchors,(0,K._)`{}`)})}o(DI,"destructureValCxtES5");function LI(e){let{schema:t,opts:r,gen:n}=e;k0(e,()=>{r.$comment&&t.$comment&&H0(e),UI(e),n.let(oe.default.vErrors,null),n.let(oe.default.errors,0),r.unevaluated&&FI(e),F0(e),ZI(e)})}o(LI,"topSchemaObjCode");function FI(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`))}o(FI,"resetEvaluated");function R0(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,K._)`/*# sourceURL=${r} */`:K.nil}o(R0,"funcSourceUrl");function HI(e,t){if(D0(e)&&(L0(e),q0(e))){BI(e,t);return}(0,M0.boolOrEmptySchema)(e,t)}o(HI,"subschemaCode");function q0({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(q0,"schemaCxtHasRules");function D0(e){return typeof e.schema!="boolean"}o(D0,"isSchemaObj");function BI(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&H0(e),GI(e),zI(e);let s=n.const("_errs",oe.default.errors);F0(e,s),n.var(t,(0,K._)`${s} === ${oe.default.errors}`)}o(BI,"subSchemaObjCode");function L0(e){(0,mn.checkUnknownRules)(e),VI(e)}o(L0,"checkKeywords");function F0(e,t){if(e.opts.jtd)return N0(e,[],!1,t);let r=(0,T0.getSchemaTypes)(e.schema),n=(0,T0.coerceAndCheckDataType)(e,r);N0(e,r,!n,t)}o(F0,"typeAndKeywords");function VI(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,mn.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(VI,"checkRefsAndKeywords");function UI(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,mn.checkStrictMode)(e,"default is ignored in the schema root")}o(UI,"checkNoDefault");function GI(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,MI.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(GI,"updateContext");function zI(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(zI,"checkAsyncSchema");function H0({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,K._)`${oe.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,K.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,K._)`${oe.default.self}.opts.$comment(${s}, ${a}, ${c}.schema)`)}}o(H0,"commentKeyword");function ZI(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,K._)`${oe.default.errors} === 0`,()=>t.return(oe.default.data),()=>t.throw((0,K._)`new ${i}(${oe.default.vErrors})`)):(t.assign((0,K._)`${n}.errors`,oe.default.vErrors),s.unevaluated&&WI(e),t.return((0,K._)`${oe.default.errors} === 0`))}o(ZI,"returnResults");function WI({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)}o(WI,"assignEvaluated");function N0(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,mn.schemaHasRulesButRef)(s,p))){i.block(()=>V0(e,"$ref",p.all.$ref.definition));return}u.jtd||KI(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,ud.shouldUseGroup)(s,d)&&(d.type?(i.if((0,Xc.checkDataType)(d.type,a,u.strictNumbers)),j0(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Xc.reportTypeError)(e)),i.endIf()):j0(e,d),c||i.if((0,K._)`${oe.default.errors} === ${n||0}`))}o(f,"groupKeywords")}o(N0,"schemaKeywords");function j0(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,jI.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,ud.shouldUseRule)(n,s)&&V0(e,s.keyword,s.definition,t.type)})}o(j0,"iterateKeywords");function KI(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(YI(e,t),e.opts.allowUnionTypes||QI(e,t),JI(e,e.dataTypes))}o(KI,"checkStrictTypes");function YI(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{B0(e.dataTypes,r)||ld(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),eC(e,t)}}o(YI,"checkContextTypes");function QI(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&ld(e,"use allowUnionTypes to allow union type keyword")}o(QI,"checkMultipleTypes");function JI(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,ud.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>XI(t,a))&&ld(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(JI,"checkKeywordTypes");function XI(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(XI,"hasApplicableType");function B0(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(B0,"includesType");function eC(e,t){let r=[];for(let n of e.dataTypes)B0(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(eC,"narrowSchemaTypes");function ld(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,mn.checkStrictMode)(e,t,e.opts.strictTypes)}o(ld,"strictTypesError");var fd=class fd{constructor(t,r,n){if((0,Ks.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,mn.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",U0(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ks.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",oe.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?Ws.reportExtraError:Ws.reportError)(this,this.def.error,r)}$dataError(){(0,Ws.reportError)(this,this.def.$dataError||Ws.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ws.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:s,def:a}=this;n.if((0,K.or)((0,K._)`${i} === undefined`,r)),t!==K.nil&&n.assign(t,!0),(s.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:s}=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,Xc.checkDataTypes)(u,r,s.opts.strictNumbers,Xc.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,cd.getSubschema)(this.it,t);(0,cd.extendSubschemaData)(n,this.it,t),(0,cd.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return HI(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=mn.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=mn.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}};o(fd,"KeywordCxt");var eu=fd;kn.KeywordCxt=eu;function V0(e,t,r,n){let i=new eu(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Ks.funcKeywordCode)(i,r):"macro"in r?(0,Ks.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Ks.funcKeywordCode)(i,r)}o(V0,"keywordCode");var tC=/^\/(?:[^~]|~0|~1)*$/,rC=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function U0(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return oe.default.rootData;if(e[0]==="/"){if(!tC.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=oe.default.rootData}else{let l=rC.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,K._)`${s}${(0,K.getProperty)((0,mn.unescapeJsonPointer)(l))}`,a=(0,K._)`${a} && ${s}`);return a;function u(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}o(U0,"getData");kn.getData=U0});var tu=v(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});var hd=class hd extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(hd,"ValidationError");var pd=hd;dd.default=pd});var Qs=v(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});var md=Zs(),bd=class bd extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,md.resolveUrl)(t,r,n),this.missingSchema=(0,md.normalizeId)((0,md.getFullPath)(t,this.missingRef))}};o(bd,"MissingRefError");var gd=bd;yd.default=gd});var Js=v(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.resolveSchema=hr.getCompilingSchema=hr.resolveRef=hr.compileSchema=hr.SchemaEnv=void 0;var Ar=ae(),nC=tu(),Ni=pr(),Ir=Zs(),G0=he(),iC=Ys(),Sd=class Sd{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,Ir.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(Sd,"SchemaEnv");var Ro=Sd;hr.SchemaEnv=Ro;function _d(e){let t=z0.call(this,e);if(t)return t;let r=(0,Ir.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new Ar.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:nC.default,code:(0,Ar._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:Ni.default.data,parentData:Ni.default.parentData,parentDataProperty:Ni.default.parentDataProperty,dataNames:[Ni.default.data],dataPathArr:[Ar.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ar.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Ar.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ar._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,iC.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(Ni.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${Ni.default.self}`,`${Ni.default.scope}`,p)(this,this.scope.get());if(this.scope.value(u,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:u,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:y,items:b}=l;h.evaluated={props:y instanceof Ar.Name?void 0:y,items:b instanceof Ar.Name?void 0:b,dynamicProps:y instanceof Ar.Name,dynamicItems:b instanceof Ar.Name},h.source&&(h.source.evaluated=(0,Ar.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(_d,"compileSchema");hr.compileSchema=_d;function oC(e,t,r){var n;r=(0,Ir.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=cC.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 Ro({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=sC.call(this,s)}o(oC,"resolveRef");hr.resolveRef=oC;function sC(e){return(0,Ir.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:_d.call(this,e)}o(sC,"inlineOrCompile");function z0(e){for(let t of this._compilations)if(aC(t,e))return t}o(z0,"getCompilingSchema");hr.getCompilingSchema=z0;function aC(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(aC,"sameSchemaEnv");function cC(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||ru.call(this,e,t)}o(cC,"resolve");function ru(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Ir._getFullPath)(this.opts.uriResolver,r),i=(0,Ir.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return vd.call(this,r,e);let s=(0,Ir.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=ru.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:vd.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||_d.call(this,a),s===(0,Ir.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,Ir.resolveUrl)(this.opts.uriResolver,i,l)),new Ro({schema:c,schemaId:u,root:e,baseId:i})}return vd.call(this,r,a)}}o(ru,"resolveSchema");hr.resolveSchema=ru;var uC=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function vd(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let c of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let u=r[(0,G0.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!uC.has(c)&&l&&(t=(0,Ir.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,G0.schemaHasRulesButRef)(r,this.RULES)){let c=(0,Ir.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=ru.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new Ro({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(vd,"getJsonPointer")});var Z0=v((D7,lC)=>{lC.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 K0=v((L7,W0)=>{"use strict";var fC={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};W0.exports={HEX:fC}});var nv=v((F7,rv)=>{"use strict";var{HEX:pC}=K0();function X0(e){if(tv(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:hC(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(X0,"normalizeIPv4");function Od(e,t=!1){let r="",n=!0;for(let i of e){if(pC[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(Od,"stringArrayToHexStripped");function dC(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=Od(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(Od(i))),r.address=n.join(""),r}o(dC,"getIPV6");function ev(e,t={}){if(tv(e,":")<2)return{host:e,isIPV6:!1};let r=dC(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(ev,"normalizeIPv6");function hC(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(hC,"stripLeadingZeros");function tv(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(tv,"findToken");var Y0=/^\.\.?\//u,Q0=/^\/\.(?:\/|$)/u,J0=/^\/\.\.(?:\/|$)/u,mC=/^\/?(?:.|\n)*?(?=\/|$)/u;function gC(e){let t=[];for(;e.length;)if(e.match(Y0))e=e.replace(Y0,"");else if(e.match(Q0))e=e.replace(Q0,"/");else if(e.match(J0))e=e.replace(J0,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(mC);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(gC,"removeDotSegments");function yC(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(yC,"normalizeComponentEncoding");function bC(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=X0(n);if(i.isIPV4)n=i.host;else{let s=ev(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(bC,"recomposeAuthority");rv.exports={recomposeAuthority:bC,normalizeComponentEncoding:yC,removeDotSegments:gC,normalizeIPv4:X0,normalizeIPv6:ev,stringArrayToHexStripped:Od}});var uv=v((B7,cv)=>{"use strict";var vC=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,_C=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function iv(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(iv,"isSecure");function ov(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(ov,"httpParse");function sv(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(sv,"httpSerialize");function SC(e){return e.secure=iv(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(SC,"wsParse");function OC(e){if((e.port===(iv(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(OC,"wsSerialize");function EC(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(_C);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=Ed[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(EC,"urnParse");function PC(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=Ed[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(PC,"urnSerialize");function xC(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!vC.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(xC,"urnuuidParse");function $C(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o($C,"urnuuidSerialize");var av={scheme:"http",domainHost:!0,parse:ov,serialize:sv},wC={scheme:"https",domainHost:av.domainHost,parse:ov,serialize:sv},nu={scheme:"ws",domainHost:!0,parse:SC,serialize:OC},AC={scheme:"wss",domainHost:nu.domainHost,parse:nu.parse,serialize:nu.serialize},IC={scheme:"urn",parse:EC,serialize:PC,skipNormalize:!0},CC={scheme:"urn:uuid",parse:xC,serialize:$C,skipNormalize:!0},Ed={http:av,https:wC,ws:nu,wss:AC,urn:IC,"urn:uuid":CC};cv.exports=Ed});var fv=v((U7,ou)=>{"use strict";var{normalizeIPv6:TC,normalizeIPv4:RC,removeDotSegments:Xs,recomposeAuthority:NC,normalizeComponentEncoding:iu}=nv(),Pd=uv();function jC(e,t){return typeof e=="string"?e=Zr(gn(e,t),t):typeof e=="object"&&(e=gn(Zr(e,t),t)),e}o(jC,"normalize");function MC(e,t,r){let n=Object.assign({scheme:"null"},r),i=lv(gn(e,n),gn(t,n),n,!0);return Zr(i,{...n,skipEscape:!0})}o(MC,"resolve");function lv(e,t,r,n){let i={};return n||(e=gn(Zr(e,r),r),t=gn(Zr(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=Xs(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=Xs(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=Xs(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=Xs(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(lv,"resolveComponents");function kC(e,t,r){return typeof e=="string"?(e=unescape(e),e=Zr(iu(gn(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Zr(iu(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Zr(iu(gn(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Zr(iu(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(kC,"equal");function Zr(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=Pd[(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=NC(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=Xs(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(Zr,"serialize");var qC=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function DC(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||qC[t])return!0;return!1}o(DC,"nonSimpleDomain");var LC=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function gn(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(LC);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=RC(n.host);if(u.isIPV4===!1){let l=TC(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=Pd[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&DC(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(gn,"parse");var xd={SCHEMES:Pd,normalize:jC,resolve:MC,resolveComponents:lv,equal:kC,serialize:Zr,parse:gn};ou.exports=xd;ou.exports.default=xd;ou.exports.fastUri=xd});var dv=v($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});var pv=fv();pv.code='require("ajv/dist/runtime/uri").default';$d.default=pv});var jo=v(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.CodeGen=yt.Name=yt.nil=yt.stringify=yt.str=yt._=yt.KeywordCxt=void 0;var FC=Ys();Object.defineProperty(yt,"KeywordCxt",{enumerable:!0,get:o(function(){return FC.KeywordCxt},"get")});var No=ae();Object.defineProperty(yt,"_",{enumerable:!0,get:o(function(){return No._},"get")});Object.defineProperty(yt,"str",{enumerable:!0,get:o(function(){return No.str},"get")});Object.defineProperty(yt,"stringify",{enumerable:!0,get:o(function(){return No.stringify},"get")});Object.defineProperty(yt,"nil",{enumerable:!0,get:o(function(){return No.nil},"get")});Object.defineProperty(yt,"Name",{enumerable:!0,get:o(function(){return No.Name},"get")});Object.defineProperty(yt,"CodeGen",{enumerable:!0,get:o(function(){return No.CodeGen},"get")});var HC=tu(),bv=Qs(),BC=Jp(),ea=Js(),VC=ae(),ta=Zs(),su=zs(),Ad=he(),hv=Z0(),UC=dv(),vv=o((e,t)=>new RegExp(e,t),"defaultRegExp");vv.code="new RegExp";var GC=["removeAdditional","useDefaults","coerceTypes"],zC=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),ZC={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."},WC={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},mv=200;function KC(e){var t,r,n,i,s,a,c,u,l,p,f,d,h,y,b,g,P,$,C,T,w,te,re,xe,we;let G=e.strict,j=(t=e.code)===null||t===void 0?void 0:t.optimize,R=j===!0||j===void 0?1:j||0,k=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:vv,Q=(i=e.uriResolver)!==null&&i!==void 0?i:UC.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:G)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:G)!==null&&u!==void 0?u:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:G)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:G)!==null&&d!==void 0?d:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:G)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:R,regExp:k}:{optimize:R,regExp:k},loopRequired:(b=e.loopRequired)!==null&&b!==void 0?b:mv,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:mv,meta:(P=e.meta)!==null&&P!==void 0?P:!0,messages:($=e.messages)!==null&&$!==void 0?$:!0,inlineRefs:(C=e.inlineRefs)!==null&&C!==void 0?C:!0,schemaId:(T=e.schemaId)!==null&&T!==void 0?T:"$id",addUsedSchema:(w=e.addUsedSchema)!==null&&w!==void 0?w:!0,validateSchema:(te=e.validateSchema)!==null&&te!==void 0?te:!0,validateFormats:(re=e.validateFormats)!==null&&re!==void 0?re:!0,unicodeRegExp:(xe=e.unicodeRegExp)!==null&&xe!==void 0?xe:!0,int32range:(we=e.int32range)!==null&&we!==void 0?we:!0,uriResolver:Q}}o(KC,"requiredOptions");var Id=class Id{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...KC(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new VC.ValueScope({scope:{},prefixes:zC,es5:r,lines:n}),this.logger=tT(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,BC.getRules)(),gv.call(this,ZC,t,"NOT SUPPORTED"),gv.call(this,WC,t,"DEPRECATED","warn"),this._metaOpts=XC.call(this),t.formats&&QC.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&JC.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),YC.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=hv;n==="id"&&(i={...hv},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 bv.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,ta.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=yv.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new ea.SchemaEnv({schema:{},schemaId:n});if(r=ea.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=yv.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,ta.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(nT.call(this,n,r),!r)return(0,Ad.eachItem)(n,s=>wd.call(this,s)),this;oT.call(this,r);let i={...r,type:(0,su.getJSONTypes)(r.type),schemaType:(0,su.getJSONTypes)(r.schemaType)};return(0,Ad.eachItem)(n,i.type.length===0?s=>wd.call(this,s,i):s=>i.type.forEach(a=>wd.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]=_v(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,ta.normalizeId)(a||n);let l=ta.getSchemaRefs.call(this,t,n);return u=new ea.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):ea.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{ea.compileSchema.call(this,t)}finally{this.opts=r}}};o(Id,"Ajv");var ra=Id;ra.ValidationError=HC.default;ra.MissingRefError=bv.default;yt.default=ra;function gv(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(gv,"checkOptions");function yv(e){return e=(0,ta.normalizeId)(e),this.schemas[e]||this.refs[e]}o(yv,"getSchEnv");function YC(){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(YC,"addInitialSchemas");function QC(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(QC,"addInitialFormats");function JC(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(JC,"addInitialKeywords");function XC(){let e={...this.opts};for(let t of GC)delete e[t];return e}o(XC,"getMetaSchemaOptions");var eT={log(){},warn(){},error(){}};function tT(e){if(e===!1)return eT;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(tT,"getLogger");var rT=/^[a-z_$][a-z0-9_$:-]*$/i;function nT(e,t){let{RULES:r}=this;if((0,Ad.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!rT.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(nT,"checkKeyword");function wd(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,su.getJSONTypes)(t.type),schemaType:(0,su.getJSONTypes)(t.schemaType)}};t.before?iT.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(wd,"addRule");function iT(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(iT,"addBeforeRule");function oT(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=_v(t)),e.validateSchema=this.compile(t,!0))}o(oT,"keywordMetaschema");var sT={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function _v(e){return{anyOf:[e,sT]}}o(_v,"schemaOrData")});var na=v(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.callRef=ji.getValidate=void 0;var aT=Qs(),Sv=dr(),Ut=ae(),Mo=pr(),Ov=Js(),au=he(),cT={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=Ov.resolveRef.call(u,l,i,r);if(p===void 0)throw new aT.default(n.opts.uriResolver,i,r);if(p instanceof Ov.SchemaEnv)return d(p);return h(p);function f(){if(s===l)return cu(e,a,s,s.$async);let y=t.scopeValue("root",{ref:l});return cu(e,(0,Ut._)`${y}.validate`,l,l.$async)}function d(y){let b=Ev(e,y);cu(e,b,y,y.$async)}function h(y){let b=t.scopeValue("schema",c.code.source===!0?{ref:y,code:(0,Ut.stringify)(y)}:{ref:y}),g=t.name("valid"),P=e.subschema({schema:y,dataTypes:[],schemaPath:Ut.nil,topSchemaRef:b,errSchemaPath:r},g);e.mergeEvaluated(P),e.ok(g)}}};function Ev(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Ut._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(Ev,"getValidate");ji.getValidate=Ev;function cu(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?Mo.default.this:Ut.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,Ut._)`await ${(0,Sv.callValidateCode)(e,t,l)}`),h(t),a||i.assign(y,!0)},b=>{i.if((0,Ut._)`!(${b} instanceof ${s.ValidationError})`,()=>i.throw(b)),d(b),a||i.assign(y,!1)}),e.ok(y)}o(p,"callAsyncRef");function f(){e.result((0,Sv.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}o(f,"callSyncRef");function d(y){let b=(0,Ut._)`${y}.errors`;i.assign(Mo.default.vErrors,(0,Ut._)`${Mo.default.vErrors} === null ? ${b} : ${Mo.default.vErrors}.concat(${b})`),i.assign(Mo.default.errors,(0,Ut._)`${Mo.default.vErrors}.length`)}o(d,"addErrorsFrom");function h(y){var b;if(!s.opts.unevaluated)return;let g=(b=r==null?void 0:r.validate)===null||b===void 0?void 0:b.evaluated;if(s.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(s.props=au.mergeEvaluated.props(i,g.props,s.props));else{let P=i.var("props",(0,Ut._)`${y}.evaluated.props`);s.props=au.mergeEvaluated.props(i,P,s.props,Ut.Name)}if(s.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(s.items=au.mergeEvaluated.items(i,g.items,s.items));else{let P=i.var("items",(0,Ut._)`${y}.evaluated.items`);s.items=au.mergeEvaluated.items(i,P,s.items,Ut.Name)}}o(h,"addEvaluatedFrom")}o(cu,"callRef");ji.callRef=cu;ji.default=cT});var Pv=v(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});var uT=na(),lT=["$schema","id","$defs",{keyword:"$comment"},"definitions",uT.default];Cd.default=lT});var xv=v(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});var Td=jo(),fT=ae(),qn=fT.operators,Rd={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:qn.LTE,fail:qn.GT},{okStr:"<",ok:qn.LT,fail:qn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:qn.GTE,fail:qn.LT},{okStr:">",ok:qn.GT,fail:qn.LTE}]}},pT={message:o(e=>Td.str`must be ${Nd(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>Td._`{comparison: ${Nd(e).okStr}, limit: ${e.schemaCode}}`,"params")},dT={keyword:Object.keys(Rd),type:"number",schemaType:"number",$data:!0,error:pT,code(e){let{data:t,schemaCode:r}=e;e.fail$data(Td._`${t} ${Nd(e).fail} ${r} || isNaN(${t})`)}};function Nd(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[Rd[r].exclusive]?1:0;return Rd[r].ops[n]}o(Nd,"kwdOp");jd.default=dT});var wv=v(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});var $v={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},hT={keyword:Object.keys($v),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=$v[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};Md.default=hT});var qd=v(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});var ia=ae(),mT={message:o(({schemaCode:e})=>(0,ia.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,ia._)`{multipleOf: ${e}}`,"params")},gT={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:mT,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,ia._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,ia._)`${a} !== parseInt(${a})`;e.fail$data((0,ia._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};kd.default=gT});var Iv=v(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});function Av(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(Av,"ucs2length");Dd.default=Av;Av.code='require("ajv/dist/runtime/ucs2length").default'});var Fd=v(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});var Mi=ae(),yT=he(),bT=Iv(),vT={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Mi.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,Mi._)`{limit: ${e}}`,"params")},_T={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:vT,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?Mi.operators.GT:Mi.operators.LT,a=i.opts.unicode===!1?(0,Mi._)`${r}.length`:(0,Mi._)`${(0,yT.useFunc)(e.gen,bT.default)}(${r})`;e.fail$data((0,Mi._)`${a} ${s} ${n}`)}};Ld.default=_T});var Bd=v(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});var ST=dr(),uu=ae(),OT={message:o(({schemaCode:e})=>(0,uu.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,uu._)`{pattern: ${e}}`,"params")},ET={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:OT,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,uu._)`(new RegExp(${i}, ${a}))`:(0,ST.usePattern)(e,n);e.fail$data((0,uu._)`!${c}.test(${t})`)}};Hd.default=ET});var Ud=v(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});var oa=ae(),PT={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,oa.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,oa._)`{limit: ${e}}`,"params")},xT={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:PT,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?oa.operators.GT:oa.operators.LT;e.fail$data((0,oa._)`Object.keys(${r}).length ${i} ${n}`)}};Vd.default=xT});var zd=v(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});var sa=dr(),aa=ae(),$T=he(),wT={message:o(({params:{missingProperty:e}})=>(0,aa.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,aa._)`{missingProperty: ${e}}`,"params")},AT={keyword:"required",type:"object",schemaType:"array",$data:!0,error:wT,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:c}=a;if(!s&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?l():p(),c.strictRequired){let h=e.parentSchema.properties,{definedProperties:y}=e.it;for(let b of r)if((h==null?void 0:h[b])===void 0&&!y.has(b)){let g=a.schemaEnv.baseId+a.errSchemaPath,P=`required property "${b}" is not defined at "${g}" (strictRequired)`;(0,$T.checkStrictMode)(a,P,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(aa.nil,f);else for(let h of r)(0,sa.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,sa.checkMissingProp)(e,r,h)),(0,sa.reportMissingProp)(e,h),t.else()}o(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,sa.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,sa.propertyInData)(t,i,h,c.ownProperties)),t.if((0,aa.not)(y),()=>{e.error(),t.break()})},aa.nil)}o(d,"loopUntilMissing")}};Gd.default=AT});var Wd=v(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});var ca=ae(),IT={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,ca.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,ca._)`{limit: ${e}}`,"params")},CT={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:IT,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?ca.operators.GT:ca.operators.LT;e.fail$data((0,ca._)`${r}.length ${i} ${n}`)}};Zd.default=CT});var lu=v(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});var Cv=sd();Cv.code='require("ajv/dist/runtime/equal").default';Kd.default=Cv});var Jd=v(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});var Yd=zs(),bt=ae(),TT=he(),RT=lu(),NT={message:o(({params:{i:e,j:t}})=>(0,bt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,bt._)`{i: ${e}, j: ${t}}`,"params")},jT={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:NT,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,Yd.getSchemaTypes)(s.items):[];e.block$data(u,p,(0,bt._)`${a} === false`),e.ok(u);function p(){let y=t.let("i",(0,bt._)`${r}.length`),b=t.let("j");e.setParams({i:y,j:b}),t.assign(u,!0),t.if((0,bt._)`${y} > 1`,()=>(f()?d:h)(y,b))}o(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(y=>y==="object"||y==="array")}o(f,"canOptimize");function d(y,b){let g=t.name("item"),P=(0,Yd.checkDataTypes)(l,g,c.opts.strictNumbers,Yd.DataType.Wrong),$=t.const("indices",(0,bt._)`{}`);t.for((0,bt._)`;${y}--;`,()=>{t.let(g,(0,bt._)`${r}[${y}]`),t.if(P,(0,bt._)`continue`),l.length>1&&t.if((0,bt._)`typeof ${g} == "string"`,(0,bt._)`${g} += "_"`),t.if((0,bt._)`typeof ${$}[${g}] == "number"`,()=>{t.assign(b,(0,bt._)`${$}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,bt._)`${$}[${g}] = ${y}`)})}o(d,"loopN");function h(y,b){let g=(0,TT.useFunc)(t,RT.default),P=t.name("outer");t.label(P).for((0,bt._)`;${y}--;`,()=>t.for((0,bt._)`${b} = ${y}; ${b}--;`,()=>t.if((0,bt._)`${g}(${r}[${y}], ${r}[${b}])`,()=>{e.error(),t.assign(u,!1).break(P)})))}o(h,"loopN2")}};Qd.default=jT});var th=v(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var Xd=ae(),MT=he(),kT=lu(),qT={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,Xd._)`{allowedValue: ${e}}`,"params")},DT={keyword:"const",$data:!0,error:qT,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Xd._)`!${(0,MT.useFunc)(t,kT.default)}(${r}, ${i})`):e.fail((0,Xd._)`${s} !== ${r}`)}};eh.default=DT});var nh=v(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});var ua=ae(),LT=he(),FT=lu(),HT={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,ua._)`{allowedValues: ${e}}`,"params")},BT={keyword:"enum",schemaType:"array",$data:!0,error:HT,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,LT.useFunc)(t,FT.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,ua.or)(...i.map((y,b)=>d(h,b)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",s,h=>t.if((0,ua._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}o(f,"loopEnum");function d(h,y){let b=i[y];return typeof b=="object"&&b!==null?(0,ua._)`${l()}(${r}, ${h}[${y}])`:(0,ua._)`${r} === ${b}`}o(d,"equalCode")}};rh.default=BT});var Tv=v(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});var VT=xv(),UT=wv(),GT=qd(),zT=Fd(),ZT=Bd(),WT=Ud(),KT=zd(),YT=Wd(),QT=Jd(),JT=th(),XT=nh(),eR=[VT.default,UT.default,GT.default,zT.default,ZT.default,WT.default,KT.default,YT.default,QT.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},JT.default,XT.default];ih.default=eR});var sh=v(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.validateAdditionalItems=void 0;var ki=ae(),oh=he(),tR={message:o(({params:{len:e}})=>(0,ki.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,ki._)`{limit: ${e}}`,"params")},rR={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:tR,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,oh.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Rv(e,n)}};function Rv(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let c=r.const("len",(0,ki._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,ki._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,oh.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,ki._)`${c} <= ${t.length}`);r.if((0,ki.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,p=>{e.subschema({keyword:s,dataProp:p,dataPropType:oh.Type.Num},l),a.allErrors||r.if((0,ki.not)(l),()=>r.break())})}o(u,"validateItems")}o(Rv,"validateAdditionalItems");la.validateAdditionalItems=Rv;la.default=rR});var ah=v(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.validateTuple=void 0;var Nv=ae(),fu=he(),nR=dr(),iR={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return jv(e,"additionalItems",t);r.items=!0,!(0,fu.alwaysValidSchema)(r,t)&&e.ok((0,nR.validateArray)(e))}};function jv(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=fu.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,Nv._)`${s}.length`);r.forEach((f,d)=>{(0,fu.alwaysValidSchema)(c,f)||(n.if((0,Nv._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function p(f){let{opts:d,errSchemaPath:h}=c,y=r.length,b=y===f.minItems&&(y===f.maxItems||f[t]===!1);if(d.strictTuples&&!b){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,fu.checkStrictMode)(c,g,d.strictTuples)}}o(p,"checkStrictTuple")}o(jv,"validateTuple");fa.validateTuple=jv;fa.default=iR});var Mv=v(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var oR=ah(),sR={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,oR.validateTuple)(e,"items"),"code")};ch.default=sR});var qv=v(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});var kv=ae(),aR=he(),cR=dr(),uR=sh(),lR={message:o(({params:{len:e}})=>(0,kv.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,kv._)`{limit: ${e}}`,"params")},fR={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:lR,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,aR.alwaysValidSchema)(n,t)&&(i?(0,uR.validateAdditionalItems)(e,i):e.ok((0,cR.validateArray)(e)))}};uh.default=fR});var Dv=v(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});var mr=ae(),pu=he(),pR={message:o(({params:{min:e,max:t}})=>t===void 0?(0,mr.str)`must contain at least ${e} valid item(s)`:(0,mr.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,mr._)`{minContains: ${e}}`:(0,mr._)`{minContains: ${e}, maxContains: ${t}}`,"params")},dR={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:pR,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,mr._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,pu.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,pu.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,pu.alwaysValidSchema)(s,r)){let b=(0,mr._)`${p} >= ${a}`;c!==void 0&&(b=(0,mr._)`${b} && ${p} <= ${c}`),e.pass(b);return}s.items=!0;let f=t.name("valid");c===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),c!==void 0&&t.if((0,mr._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let b=t.name("_valid"),g=t.let("count",0);h(b,()=>t.if(b,()=>y(g)))}o(d,"validateItemsWithCount");function h(b,g){t.forRange("i",0,p,P=>{e.subschema({keyword:"contains",dataProp:P,dataPropType:pu.Type.Num,compositeRule:!0},b),g()})}o(h,"validateItems");function y(b){t.code((0,mr._)`${b}++`),c===void 0?t.if((0,mr._)`${b} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,mr._)`${b} > ${c}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,mr._)`${b} >= ${a}`,()=>t.assign(f,!0)))}o(y,"checkLimits")}};lh.default=dR});var du=v(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.validateSchemaDeps=Wr.validatePropertyDeps=Wr.error=void 0;var fh=ae(),hR=he(),pa=dr();Wr.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,fh.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,fh._)`{property: ${e},
11
11
  missingProperty: ${n},
12
12
  depsCount: ${t},
13
- deps: ${r}}`,"params")};var aR={keyword:"dependencies",type:"object",schemaType:"object",error:Kr.error,code(e){let[t,r]=cR(e);Hv(e,t),Bv(e,r)}};function cR({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(cR,"splitDependencies");function Hv(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,ga.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,ga.checkReportMissingProp)(e,l)}):(r.if((0,lh._)`${u} && (${(0,ga.checkMissingProp)(e,c,s)})`),(0,ga.reportMissingProp)(e,s),r.else())}}o(Hv,"validatePropertyDeps");Kr.validatePropertyDeps=Hv;function Bv(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,sR.alwaysValidSchema)(s,t[c])||(r.if((0,ga.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(Bv,"validateSchemaDeps");Kr.validateSchemaDeps=Bv;Kr.default=aR});var Uv=v(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});var Vv=ae(),uR=he(),lR={message:"property name must be valid",params:o(({params:e})=>(0,Vv._)`{propertyName: ${e.propertyName}}`,"params")},fR={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:lR,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,uR.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,Vv.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};fh.default=fR});var dh=v(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});var Eu=mr(),Tr=ae(),pR=hr(),Pu=he(),dR={message:"must NOT have additional properties",params:o(({params:e})=>(0,Tr._)`{additionalProperty: ${e.additionalProperty}}`,"params")},hR={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:dR,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,Pu.alwaysValidSchema)(a,r))return;let l=(0,Eu.allSchemaProperties)(n.properties),p=(0,Eu.allSchemaProperties)(n.patternProperties);f(),e.ok((0,Tr._)`${s} === ${pR.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 P;if(l.length>8){let $=(0,Pu.schemaRefOrVal)(a,n.properties,"properties");P=(0,Eu.isOwnProperty)(t,$,g)}else l.length?P=(0,Tr.or)(...l.map($=>(0,Tr._)`${g} === ${$}`)):P=Tr.nil;return p.length&&(P=(0,Tr.or)(P,...p.map($=>(0,Tr._)`${(0,Eu.usePattern)(e,$)}.test(${g})`))),(0,Tr.not)(P)}o(d,"isAdditional");function h(g){t.code((0,Tr._)`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,Pu.alwaysValidSchema)(a,r)){let P=t.name("valid");u.removeAdditional==="failing"?(b(g,P,!1),t.if((0,Tr.not)(P),()=>{e.reset(),h(g)})):(b(g,P),c||t.if((0,Tr.not)(P),()=>t.break()))}}o(y,"additionalPropertyCode");function b(g,P,$){let C={keyword:"additionalProperties",dataProp:g,dataPropType:Pu.Type.Str};$===!1&&Object.assign(C,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(C,P)}o(b,"applyAdditionalSchema")}};ph.default=hR});var Zv=v(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});var mR=ea(),Gv=mr(),hh=he(),zv=dh(),gR={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&&zv.default.code(new mR.KeywordCxt(s,zv.default,"additionalProperties"));let a=(0,Gv.allSchemaProperties)(r);for(let f of a)s.definedProperties.add(f);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=hh.mergeEvaluated.props(t,(0,hh.toHash)(a),s.props));let c=a.filter(f=>!(0,hh.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,Gv.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")}};mh.default=gR});var Qv=v(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});var Wv=mr(),xu=ae(),Kv=he(),Yv=he(),yR={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,Wv.allSchemaProperties)(r),u=c.filter(b=>(0,Kv.alwaysValidSchema)(s,r[b]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");s.props!==!0&&!(s.props instanceof xu.Name)&&(s.props=(0,Yv.evaluatedPropsToName)(t,s.props));let{props:f}=s;d();function d(){for(let b of c)l&&h(b),s.allErrors?y(b):(t.var(p,!0),y(b),t.if(p))}o(d,"validatePatternProperties");function h(b){for(let g in l)new RegExp(b).test(g)&&(0,Kv.checkStrictMode)(s,`property ${g} matches pattern ${b} (use allowMatchingProperties)`)}o(h,"checkMatchingProperties");function y(b){t.forIn("key",n,g=>{t.if((0,xu._)`${(0,Wv.usePattern)(e,b)}.test(${g})`,()=>{let P=u.includes(b);P||e.subschema({keyword:"patternProperties",schemaProp:b,dataProp:g,dataPropType:Yv.Type.Str},p),s.opts.unevaluated&&f!==!0?t.assign((0,xu._)`${f}[${g}]`,!0):!P&&!s.allErrors&&t.if((0,xu.not)(p),()=>t.break())})})}o(y,"validateProperties")}};gh.default=yR});var Jv=v(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});var bR=he(),vR={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,bR.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"}};yh.default=vR});var Xv=v(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});var _R=mr(),SR={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:_R.validateUnion,error:{message:"must match a schema in anyOf"}};bh.default=SR});var e_=v(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});var $u=ae(),OR=he(),ER={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,$u._)`{passingSchemas: ${e.passing}}`,"params")},PR={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:ER,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,OR.alwaysValidSchema)(i,p)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,$u._)`${u} && ${a}`).assign(a,!1).assign(c,(0,$u._)`[${c}, ${f}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,f),d&&e.mergeEvaluated(d,$u.Name)})})}o(l,"validateOneOf")}};vh.default=PR});var t_=v(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});var xR=he(),$R={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,xR.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};_h.default=$R});var i_=v(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});var wu=ae(),n_=he(),wR={message:o(({params:e})=>(0,wu.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,wu._)`{failingKeyword: ${e.ifClause}}`,"params")},AR={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:wR,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,n_.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=r_(n,"then"),s=r_(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,wu.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,wu._)`${p}`):e.setParams({ifClause:p})}}o(l,"validateClause")}};function r_(e,t){let r=e.schema[t];return r!==void 0&&!(0,n_.alwaysValidSchema)(e,r)}o(r_,"hasSchema");Sh.default=AR});var o_=v(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});var IR=he(),CR={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,IR.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Oh.default=CR});var Ph=v(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});var TR=oh(),RR=qv(),NR=sh(),jR=Lv(),MR=Fv(),kR=Ou(),qR=Uv(),DR=dh(),LR=Zv(),FR=Qv(),HR=Jv(),BR=Xv(),VR=e_(),UR=t_(),GR=i_(),zR=o_();function ZR(e=!1){let t=[HR.default,BR.default,VR.default,UR.default,GR.default,zR.default,qR.default,DR.default,kR.default,LR.default,FR.default];return e?t.push(RR.default,jR.default):t.push(TR.default,NR.default),t.push(MR.default),t}o(ZR,"getApplicator");Eh.default=ZR});var s_=v(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});var rt=ae(),WR={message:o(({schemaCode:e})=>(0,rt.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,rt._)`{format: ${e}}`,"params")},KR={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:WR,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:p,self:f}=c;if(!u.validateFormats)return;i?d():h();function d(){let y=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),b=r.const("fDef",(0,rt._)`${y}[${a}]`),g=r.let("fType"),P=r.let("format");r.if((0,rt._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>r.assign(g,(0,rt._)`${b}.type || "string"`).assign(P,(0,rt._)`${b}.validate`),()=>r.assign(g,(0,rt._)`"string"`).assign(P,b)),e.fail$data((0,rt.or)($(),C()));function $(){return u.strictSchema===!1?rt.nil:(0,rt._)`${a} && !${P}`}o($,"unknownFmt");function C(){let T=p.$async?(0,rt._)`(${b}.async ? await ${P}(${n}) : ${P}(${n}))`:(0,rt._)`${P}(${n})`,w=(0,rt._)`(typeof ${P} == "function" ? ${T} : ${P}.test(${n}))`;return(0,rt._)`${P} && ${P} !== true && ${g} === ${t} && !${w}`}o(C,"invalidFmt")}o(d,"validate$DataFormat");function h(){let y=f.formats[s];if(!y){$();return}if(y===!0)return;let[b,g,P]=C(y);b===t&&e.pass(T());function $(){if(u.strictSchema===!1){f.logger.warn(w());return}throw new Error(w());function w(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o($,"unknownFormat");function C(w){let te=w instanceof RegExp?(0,rt.regexpCode)(w):u.code.formats?(0,rt._)`${u.code.formats}${(0,rt.getProperty)(s)}`:void 0,re=r.scopeValue("formats",{key:s,ref:w,code:te});return typeof w=="object"&&!(w instanceof RegExp)?[w.type||"string",w.validate,(0,rt._)`${re}.validate`]:["string",w,re]}o(C,"getFormat");function T(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!p.$async)throw new Error("async format in sync schema");return(0,rt._)`await ${P}(${n})`}return typeof g=="function"?(0,rt._)`${P}(${n})`:(0,rt._)`${P}.test(${n})`}o(T,"validCondition")}o(h,"validateFormat")}};xh.default=KR});var wh=v($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});var YR=s_(),QR=[YR.default];$h.default=QR});var a_=v(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});var JR=$v(),XR=Nv(),eN=Ph(),tN=wh(),rN=["title","description","default"],nN=[JR.default,XR.default,eN.default(),tN.default,rN];Ah.default=nN});var u_=v(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.DiscrError=void 0;var c_;(function(e){e.Tag="tag",e.Mapping="mapping"})(c_||(Au.DiscrError=c_={}))});var Th=v(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});var Lo=ae(),Ih=u_(),l_=ra(),iN=ta(),oN=he(),sN={message:o(({params:{discrError:e,tagName:t}})=>e===Ih.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:o(({params:{discrError:e,tag:t,tagName:r}})=>(0,Lo._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},aN={keyword:"discriminator",type:"object",schemaType:"object",error:sN,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,Lo._)`${r}${(0,Lo.getProperty)(c)}`);t.if((0,Lo._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:Ih.DiscrError.Tag,tag:l,tagName:c})),e.ok(u);function p(){let h=d();t.if(!1);for(let y in h)t.elseIf((0,Lo._)`${l} === ${y}`),t.assign(u,f(h[y]));t.else(),e.error(!1,{discrError:Ih.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}o(p,"validateMapping");function f(h){let y=t.name("valid"),b=e.subschema({keyword:"oneOf",schemaProp:h},y);return e.mergeEvaluated(b,Lo.Name),y}o(f,"applyTagSchema");function d(){var h;let y={},b=P(i),g=!0;for(let T=0;T<a.length;T++){let w=a[T];if(w!=null&&w.$ref&&!(0,oN.schemaHasRulesButRef)(w,s.self.RULES)){let re=w.$ref;if(w=l_.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,re),w instanceof l_.SchemaEnv&&(w=w.schema),w===void 0)throw new iN.default(s.opts.uriResolver,s.baseId,re)}let te=(h=w==null?void 0:w.properties)===null||h===void 0?void 0:h[c];if(typeof te!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);g=g&&(b||P(w)),$(te,T)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return y;function P({required:T}){return Array.isArray(T)&&T.includes(c)}function $(T,w){if(T.const)C(T.const,w);else if(T.enum)for(let te of T.enum)C(te,w);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function C(T,w){if(typeof T!="string"||T in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[T]=w}}o(d,"getMapping")}};Ch.default=aN});var f_=v((nV,cN)=>{cN.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 h_=v((ct,d_)=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.CodeGen=ct.Name=ct.nil=ct.stringify=ct.str=ct._=ct.KeywordCxt=void 0;var uN=qo(),lN=a_(),fN=Th(),p_=f_(),pN=["/properties"],Iu="http://json-schema.org/draft-04/schema",Rh=class Rh extends uN.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),lN.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(fN.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(p_,pN):p_;this.addMetaSchema(t,Iu,!1),this.refs["http://json-schema.org/schema"]=Iu}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Iu)?Iu:void 0)}};o(Rh,"Ajv");var Cu=Rh;d_.exports=ct=Cu;Object.defineProperty(ct,"__esModule",{value:!0});ct.default=Cu;var dN=qo();Object.defineProperty(ct,"KeywordCxt",{enumerable:!0,get:o(function(){return dN.KeywordCxt},"get")});var Fo=qo();Object.defineProperty(ct,"_",{enumerable:!0,get:o(function(){return Fo._},"get")});Object.defineProperty(ct,"str",{enumerable:!0,get:o(function(){return Fo.str},"get")});Object.defineProperty(ct,"stringify",{enumerable:!0,get:o(function(){return Fo.stringify},"get")});Object.defineProperty(ct,"nil",{enumerable:!0,get:o(function(){return Fo.nil},"get")});Object.defineProperty(ct,"Name",{enumerable:!0,get:o(function(){return Fo.Name},"get")});Object.defineProperty(ct,"CodeGen",{enumerable:!0,get:o(function(){return Fo.CodeGen},"get")})});var m_=v(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});var hN={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Nh.default=hN});var g_=v(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});var mN=m_(),gN=aa(),yN=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",mN.default,gN.default];jh.default=yN});var y_=v(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});var Tu=ae(),Hn=Tu.operators,Ru={maximum:{okStr:"<=",ok:Hn.LTE,fail:Hn.GT},minimum:{okStr:">=",ok:Hn.GTE,fail:Hn.LT},exclusiveMaximum:{okStr:"<",ok:Hn.LT,fail:Hn.GTE},exclusiveMinimum:{okStr:">",ok:Hn.GT,fail:Hn.LTE}},bN={message:o(({keyword:e,schemaCode:t})=>(0,Tu.str)`must be ${Ru[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,Tu._)`{comparison: ${Ru[e].okStr}, limit: ${t}}`,"params")},vN={keyword:Object.keys(Ru),type:"number",schemaType:"number",$data:!0,error:bN,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Tu._)`${r} ${Ru[t].fail} ${n} || isNaN(${r})`)}};Mh.default=vN});var b_=v(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});var _N=y_(),SN=kd(),ON=Ld(),EN=Hd(),PN=Vd(),xN=Gd(),$N=Zd(),wN=Qd(),AN=eh(),IN=rh(),CN=[_N.default,SN.default,ON.default,EN.default,PN.default,xN.default,$N.default,wN.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},AN.default,IN.default];kh.default=CN});var Dh=v(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.dynamicAnchor=void 0;var qh=ae(),TN=hr(),v_=ra(),RN=aa(),NN={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>__(e,e.schema),"code")};function __(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,qh._)`${TN.default.dynamicAnchors}${(0,qh.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:jN(e);r.if((0,qh._)`!${i}`,()=>r.assign(i,s))}o(__,"dynamicAnchor");ya.dynamicAnchor=__;function jN(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 v_.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return v_.compileSchema.call(n,l),(0,RN.getValidate)(e,l)}o(jN,"_getValidate");ya.default=NN});var Lh=v(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.dynamicRef=void 0;var S_=ae(),MN=hr(),O_=aa(),kN={keyword:"$dynamicRef",schemaType:"string",code:o(e=>E_(e,e.schema),"code")};function E_(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,S_._)`${MN.default.dynamicAnchors}${(0,S_.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,O_.callRef)(e,u),r.let(l,!0)}):()=>(0,O_.callRef)(e,u)}o(c,"_callRef")}o(E_,"dynamicRef");ba.dynamicRef=E_;ba.default=kN});var P_=v(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0});var qN=Dh(),DN=he(),LN={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,qN.dynamicAnchor)(e,""):(0,DN.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Fh.default=LN});var x_=v(Hh=>{"use strict";Object.defineProperty(Hh,"__esModule",{value:!0});var FN=Lh(),HN={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,FN.dynamicRef)(e,e.schema),"code")};Hh.default=HN});var $_=v(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});var BN=Dh(),VN=Lh(),UN=P_(),GN=x_(),zN=[BN.default,VN.default,UN.default,GN.default];Bh.default=zN});var A_=v(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});var w_=Ou(),ZN={keyword:"dependentRequired",type:"object",schemaType:"object",error:w_.error,code:o(e=>(0,w_.validatePropertyDeps)(e),"code")};Vh.default=ZN});var I_=v(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});var WN=Ou(),KN={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,WN.validateSchemaDeps)(e),"code")};Uh.default=KN});var C_=v(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});var YN=he(),QN={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,YN.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Gh.default=QN});var T_=v(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});var JN=A_(),XN=I_(),ej=C_(),tj=[JN.default,XN.default,ej.default];zh.default=tj});var N_=v(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});var Bn=ae(),R_=he(),rj=hr(),nj={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,Bn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},ij={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:nj,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 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))),s.props=!0,e.ok((0,Bn._)`${i} === ${rj.default.errors}`);function u(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,R_.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:R_.Type.Str},d),a||t.if((0,Bn.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(f,d){return(0,Bn._)`!${f} || !${f}[${d}]`}o(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)}o(p,"unevaluatedStatic")}};Zh.default=ij});var M_=v(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});var Di=ae(),j_=he(),oj={message:o(({params:{len:e}})=>(0,Di.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Di._)`{limit: ${e}}`,"params")},sj={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:oj,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,Di._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,Di._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,j_.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,Di._)`${a} <= ${s}`);t.if((0,Di.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:j_.Type.Num},u),i.allErrors||t.if((0,Di.not)(u),()=>t.break())})}o(c,"validateItems")}};Wh.default=sj});var k_=v(Kh=>{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});var aj=N_(),cj=M_(),uj=[aj.default,cj.default];Kh.default=uj});var q_=v(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.contentVocabulary=Ho.metadataVocabulary=void 0;Ho.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Ho.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var L_=v(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});var lj=g_(),fj=b_(),pj=Ph(),dj=$_(),hj=T_(),mj=k_(),gj=wh(),D_=q_(),yj=[dj.default,lj.default,fj.default,(0,pj.default)(!0),gj.default,D_.metadataVocabulary,D_.contentVocabulary,hj.default,mj.default];Yh.default=yj});var F_=v((TV,bj)=>{bj.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var H_=v((RV,vj)=>{vj.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_=v((NV,_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 V_=v((jV,Sj)=>{Sj.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 U_=v((MV,Oj)=>{Oj.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 G_=v((kV,Ej)=>{Ej.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 z_=v((qV,Pj)=>{Pj.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 Z_=v((DV,xj)=>{xj.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 W_=v(Qh=>{"use strict";Object.defineProperty(Qh,"__esModule",{value:!0});var $j=F_(),wj=H_(),Aj=B_(),Ij=V_(),Cj=U_(),Tj=G_(),Rj=z_(),Nj=Z_(),jj=["/properties"];function Mj(e){return[$j,wj,Aj,Ij,Cj,t(this,Tj),Rj,t(this,Nj)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,jj):n}o(t,"with$data")}o(Mj,"addMetaSchema2020");Qh.default=Mj});var K_=v((He,Xh)=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.MissingRefError=He.ValidationError=He.CodeGen=He.Name=He.nil=He.stringify=He.str=He._=He.KeywordCxt=He.Ajv2020=void 0;var kj=qo(),qj=L_(),Dj=Th(),Lj=W_(),Jh="https://json-schema.org/draft/2020-12/schema",em=class em extends kj.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),qj.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Dj.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Lj.default.call(this,t),this.refs["http://json-schema.org/schema"]=Jh)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Jh)?Jh:void 0)}};o(em,"Ajv2020");var Bo=em;He.Ajv2020=Bo;Xh.exports=He=Bo;Xh.exports.Ajv2020=Bo;Object.defineProperty(He,"__esModule",{value:!0});He.default=Bo;var Fj=ea();Object.defineProperty(He,"KeywordCxt",{enumerable:!0,get:o(function(){return Fj.KeywordCxt},"get")});var Vo=ae();Object.defineProperty(He,"_",{enumerable:!0,get:o(function(){return Vo._},"get")});Object.defineProperty(He,"str",{enumerable:!0,get:o(function(){return Vo.str},"get")});Object.defineProperty(He,"stringify",{enumerable:!0,get:o(function(){return Vo.stringify},"get")});Object.defineProperty(He,"nil",{enumerable:!0,get:o(function(){return Vo.nil},"get")});Object.defineProperty(He,"Name",{enumerable:!0,get:o(function(){return Vo.Name},"get")});Object.defineProperty(He,"CodeGen",{enumerable:!0,get:o(function(){return Vo.CodeGen},"get")});var Hj=lu();Object.defineProperty(He,"ValidationError",{enumerable:!0,get:o(function(){return Hj.default},"get")});var Bj=ta();Object.defineProperty(He,"MissingRefError",{enumerable:!0,get:o(function(){return Bj.default},"get")})});var Y_=v((BV,Vj)=>{Vj.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 Q_=v((VV,Uj)=>{Uj.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 J_=v((UV,Gj)=>{Gj.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 X_=v((GV,zj)=>{zj.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 eS=v((dt,Uo)=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.openapi=dt.openapiV31=dt.openapiV3=dt.openapiV2=dt.openapiV1=void 0;dt.openapiV1=Y_();dt.openapiV2=Q_();dt.openapiV3=J_();dt.openapiV31=X_();dt.openapi={v1:dt.openapiV1,v2:dt.openapiV2,v3:dt.openapiV3,v31:dt.openapiV31};dt.default=dt.openapi;typeof Uo=="object"&&typeof Uo.exports=="object"&&(Uo.exports=Object.assign(Uo.exports.default,Uo.exports))});var nm=v((zV,tS)=>{"use strict";var Zj=Gc(),{ono:Wj}=wr(),Kj=h_(),Yj=K_(),{openapi:tm}=eS();tS.exports=Qj;function Qj(e){let t,r;if(e.swagger)r=tm.v2,t=rm();else if(e.openapi.startsWith("3.1")){r=tm.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=rm(!1)}else r=tm.v3,t=rm();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
14
- `+Jj(i);throw Wj.syntax(i,{details:i},s)}}o(Qj,"validateSchema");function rm(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new Kj(t):new Yj(t)}o(rm,"initializeAjv");function Jj(e,t){t=t||" ";let r="";for(let n of e)r+=Zj.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
15
- `);return r}o(Jj,"formatAjvError")});var nS=v((WV,rS)=>{"use strict";rS.exports=["get","put","post","delete","options","head","patch"]});var sm=v((KV,aS)=>{"use strict";var Xj=Gc(),{ono:$t}=wr(),eM=nS(),im=["array","boolean","integer","number","string"],oS=["array","boolean","integer","number","string","object","null",void 0];aS.exports=tM;function tM(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&&rM(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;sS(s,a)}}o(tM,"validateSpec");function rM(e,t,r,n){for(let i of eM){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 $t.syntax(`Validation failed. Duplicate operation id '${c}'`);nM(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;aM(l,p||{},f)}}}}o(rM,"validatePath");function nM(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{iS(s)}catch(u){throw $t.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{iS(a)}catch(u){throw $t.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());iM(c,i),oM(c,r,i),sM(c,e,n,i)}o(nM,"validateParameters");function iM(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw $t.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw $t.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(iM,"validateBodyParameters");function oM(e,t,r){let n=t.match(Xj.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw $t.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 $t.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 $t.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 $t.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(oM,"validatePathParameters");function sM(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=oS;break;case"formData":a=i,c=im.concat("file");break;default:a=i,c=im}if(om(a,s,c),sS(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 $t.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(sM,"validateParameterTypes");function iS(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 $t.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(iS,"checkForDuplicates");function aM(e,t,r){if(e!=="default"&&(e<100||e>599))throw $t.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;om(s,a,im)}if(t.schema){let i=oS.concat("file");if(i.indexOf(t.schema.type)===-1)throw $t.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);om(t.schema,r+"/schema",i)}}o(aM,"validateResponse");function om(e,t,r){if(r.indexOf(e.type)===-1)throw $t.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw $t.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(om,"validateSchema");function sS(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 $t.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(sS,"validateRequiredPropertiesExist")});var Nr=v(Rr=>{"use strict";var{Ono:cS}=wr(),{stripHash:uS,toFileSystemPath:cM}=Jt(),Go,Vn=Rr.JSONParserError=(Go=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,cS.extend(this)}},o(Go,"JSONParserError"),Go);Un(Vn);var Li,lS=Rr.JSONParserErrorGroup=(Li=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${cM(t.$refs._root$Ref.path)}'`,cS.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 Li.getParserErrors(this.files)}},o(Li,"JSONParserErrorGroup"),Li);Un(lS);var zo,uM=Rr.ParserError=(zo=class extends Vn{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(zo,"ParserError"),zo);Un(uM);var Zo,lM=Rr.UnmatchedParserError=(Zo=class extends Vn{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(Zo,"UnmatchedParserError"),Zo);Un(lM);var Wo,fM=Rr.ResolverError=(Wo=class extends Vn{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(Wo,"ResolverError"),Wo);Un(fM);var Ko,pM=Rr.UnmatchedResolverError=(Ko=class extends Vn{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(Ko,"UnmatchedResolverError"),Ko);Un(pM);var Yo,dM=Rr.MissingPointerError=(Yo=class extends Vn{constructor(t,r){super(`Token "${t}" does not exist.`,uS(r)),this.code="EMISSINGPOINTER"}},o(Yo,"MissingPointerError"),Yo);Un(dM);var Qo,hM=Rr.InvalidPointerError=(Qo=class extends Vn{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,uS(r)),this.code="EINVALIDPOINTER"}},o(Qo,"InvalidPointerError"),Qo);Un(hM);function Un(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(Un,"setErrorName");Rr.isHandledError=function(e){return e instanceof Vn||e instanceof lS};Rr.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var pS=v((XV,fS)=>{"use strict";var{ParserError:mM}=Nr();fS.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 mM(r.message,e.url)}}else return t}}});var Hi=v((e9,Fi)=>{"use strict";function dS(e){return typeof e>"u"||e===null}o(dS,"isNothing");function gM(e){return typeof e=="object"&&e!==null}o(gM,"isObject");function yM(e){return Array.isArray(e)?e:dS(e)?[]:[e]}o(yM,"toArray");function bM(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(bM,"extend");function vM(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(vM,"repeat");function _M(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(_M,"isNegativeZero");Fi.exports.isNothing=dS;Fi.exports.isObject=gM;Fi.exports.toArray=yM;Fi.exports.repeat=vM;Fi.exports.isNegativeZero=_M;Fi.exports.extend=bM});var Jo=v((r9,hS)=>{"use strict";function va(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(va,"YAMLException");va.prototype=Object.create(Error.prototype);va.prototype.constructor=va;va.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");hS.exports=va});var yS=v((i9,gS)=>{"use strict";var mS=Hi();function am(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(am,"Mark");am.prototype.getSnippet=o(function(t,r){var n,i,s,a,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
13
+ deps: ${r}}`,"params")};var mR={keyword:"dependencies",type:"object",schemaType:"object",error:Wr.error,code(e){let[t,r]=gR(e);Lv(e,t),Fv(e,r)}};function gR({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(gR,"splitDependencies");function Lv(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,pa.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,pa.checkReportMissingProp)(e,l)}):(r.if((0,fh._)`${u} && (${(0,pa.checkMissingProp)(e,c,s)})`),(0,pa.reportMissingProp)(e,s),r.else())}}o(Lv,"validatePropertyDeps");Wr.validatePropertyDeps=Lv;function Fv(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,hR.alwaysValidSchema)(s,t[c])||(r.if((0,pa.propertyInData)(r,n,c,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}o(Fv,"validateSchemaDeps");Wr.validateSchemaDeps=Fv;Wr.default=mR});var Bv=v(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});var Hv=ae(),yR=he(),bR={message:"property name must be valid",params:o(({params:e})=>(0,Hv._)`{propertyName: ${e.propertyName}}`,"params")},vR={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:bR,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,yR.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,Hv.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};ph.default=vR});var hh=v(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});var hu=dr(),Cr=ae(),_R=pr(),mu=he(),SR={message:"must NOT have additional properties",params:o(({params:e})=>(0,Cr._)`{additionalProperty: ${e.additionalProperty}}`,"params")},OR={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:SR,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,mu.alwaysValidSchema)(a,r))return;let l=(0,hu.allSchemaProperties)(n.properties),p=(0,hu.allSchemaProperties)(n.patternProperties);f(),e.ok((0,Cr._)`${s} === ${_R.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 P;if(l.length>8){let $=(0,mu.schemaRefOrVal)(a,n.properties,"properties");P=(0,hu.isOwnProperty)(t,$,g)}else l.length?P=(0,Cr.or)(...l.map($=>(0,Cr._)`${g} === ${$}`)):P=Cr.nil;return p.length&&(P=(0,Cr.or)(P,...p.map($=>(0,Cr._)`${(0,hu.usePattern)(e,$)}.test(${g})`))),(0,Cr.not)(P)}o(d,"isAdditional");function h(g){t.code((0,Cr._)`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,mu.alwaysValidSchema)(a,r)){let P=t.name("valid");u.removeAdditional==="failing"?(b(g,P,!1),t.if((0,Cr.not)(P),()=>{e.reset(),h(g)})):(b(g,P),c||t.if((0,Cr.not)(P),()=>t.break()))}}o(y,"additionalPropertyCode");function b(g,P,$){let C={keyword:"additionalProperties",dataProp:g,dataPropType:mu.Type.Str};$===!1&&Object.assign(C,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(C,P)}o(b,"applyAdditionalSchema")}};dh.default=OR});var Gv=v(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});var ER=Ys(),Vv=dr(),mh=he(),Uv=hh(),PR={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&&Uv.default.code(new ER.KeywordCxt(s,Uv.default,"additionalProperties"));let a=(0,Vv.allSchemaProperties)(r);for(let f of a)s.definedProperties.add(f);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=mh.mergeEvaluated.props(t,(0,mh.toHash)(a),s.props));let c=a.filter(f=>!(0,mh.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,Vv.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")}};gh.default=PR});var Kv=v(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});var zv=dr(),gu=ae(),Zv=he(),Wv=he(),xR={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,zv.allSchemaProperties)(r),u=c.filter(b=>(0,Zv.alwaysValidSchema)(s,r[b]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");s.props!==!0&&!(s.props instanceof gu.Name)&&(s.props=(0,Wv.evaluatedPropsToName)(t,s.props));let{props:f}=s;d();function d(){for(let b of c)l&&h(b),s.allErrors?y(b):(t.var(p,!0),y(b),t.if(p))}o(d,"validatePatternProperties");function h(b){for(let g in l)new RegExp(b).test(g)&&(0,Zv.checkStrictMode)(s,`property ${g} matches pattern ${b} (use allowMatchingProperties)`)}o(h,"checkMatchingProperties");function y(b){t.forIn("key",n,g=>{t.if((0,gu._)`${(0,zv.usePattern)(e,b)}.test(${g})`,()=>{let P=u.includes(b);P||e.subschema({keyword:"patternProperties",schemaProp:b,dataProp:g,dataPropType:Wv.Type.Str},p),s.opts.unevaluated&&f!==!0?t.assign((0,gu._)`${f}[${g}]`,!0):!P&&!s.allErrors&&t.if((0,gu.not)(p),()=>t.break())})})}o(y,"validateProperties")}};yh.default=xR});var Yv=v(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});var $R=he(),wR={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,$R.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"}};bh.default=wR});var Qv=v(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});var AR=dr(),IR={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:AR.validateUnion,error:{message:"must match a schema in anyOf"}};vh.default=IR});var Jv=v(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});var yu=ae(),CR=he(),TR={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,yu._)`{passingSchemas: ${e.passing}}`,"params")},RR={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:TR,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,CR.alwaysValidSchema)(i,p)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,yu._)`${u} && ${a}`).assign(a,!1).assign(c,(0,yu._)`[${c}, ${f}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,f),d&&e.mergeEvaluated(d,yu.Name)})})}o(l,"validateOneOf")}};_h.default=RR});var Xv=v(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});var NR=he(),jR={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,NR.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};Sh.default=jR});var r_=v(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});var bu=ae(),t_=he(),MR={message:o(({params:e})=>(0,bu.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,bu._)`{failingKeyword: ${e.ifClause}}`,"params")},kR={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:MR,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,t_.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=e_(n,"then"),s=e_(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,bu.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,bu._)`${p}`):e.setParams({ifClause:p})}}o(l,"validateClause")}};function e_(e,t){let r=e.schema[t];return r!==void 0&&!(0,t_.alwaysValidSchema)(e,r)}o(e_,"hasSchema");Oh.default=kR});var n_=v(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});var qR=he(),DR={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,qR.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Eh.default=DR});var xh=v(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});var LR=sh(),FR=Mv(),HR=ah(),BR=qv(),VR=Dv(),UR=du(),GR=Bv(),zR=hh(),ZR=Gv(),WR=Kv(),KR=Yv(),YR=Qv(),QR=Jv(),JR=Xv(),XR=r_(),eN=n_();function tN(e=!1){let t=[KR.default,YR.default,QR.default,JR.default,XR.default,eN.default,GR.default,zR.default,UR.default,ZR.default,WR.default];return e?t.push(FR.default,BR.default):t.push(LR.default,HR.default),t.push(VR.default),t}o(tN,"getApplicator");Ph.default=tN});var i_=v($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});var tt=ae(),rN={message:o(({schemaCode:e})=>(0,tt.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,tt._)`{format: ${e}}`,"params")},nN={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:rN,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:p,self:f}=c;if(!u.validateFormats)return;i?d():h();function d(){let y=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),b=r.const("fDef",(0,tt._)`${y}[${a}]`),g=r.let("fType"),P=r.let("format");r.if((0,tt._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>r.assign(g,(0,tt._)`${b}.type || "string"`).assign(P,(0,tt._)`${b}.validate`),()=>r.assign(g,(0,tt._)`"string"`).assign(P,b)),e.fail$data((0,tt.or)($(),C()));function $(){return u.strictSchema===!1?tt.nil:(0,tt._)`${a} && !${P}`}o($,"unknownFmt");function C(){let T=p.$async?(0,tt._)`(${b}.async ? await ${P}(${n}) : ${P}(${n}))`:(0,tt._)`${P}(${n})`,w=(0,tt._)`(typeof ${P} == "function" ? ${T} : ${P}.test(${n}))`;return(0,tt._)`${P} && ${P} !== true && ${g} === ${t} && !${w}`}o(C,"invalidFmt")}o(d,"validate$DataFormat");function h(){let y=f.formats[s];if(!y){$();return}if(y===!0)return;let[b,g,P]=C(y);b===t&&e.pass(T());function $(){if(u.strictSchema===!1){f.logger.warn(w());return}throw new Error(w());function w(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o($,"unknownFormat");function C(w){let te=w instanceof RegExp?(0,tt.regexpCode)(w):u.code.formats?(0,tt._)`${u.code.formats}${(0,tt.getProperty)(s)}`:void 0,re=r.scopeValue("formats",{key:s,ref:w,code:te});return typeof w=="object"&&!(w instanceof RegExp)?[w.type||"string",w.validate,(0,tt._)`${re}.validate`]:["string",w,re]}o(C,"getFormat");function T(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!p.$async)throw new Error("async format in sync schema");return(0,tt._)`await ${P}(${n})`}return typeof g=="function"?(0,tt._)`${P}(${n})`:(0,tt._)`${P}.test(${n})`}o(T,"validCondition")}o(h,"validateFormat")}};$h.default=nN});var Ah=v(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});var iN=i_(),oN=[iN.default];wh.default=oN});var o_=v(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});var sN=Pv(),aN=Tv(),cN=xh(),uN=Ah(),lN=["title","description","default"],fN=[sN.default,aN.default,cN.default(),uN.default,lN];Ih.default=fN});var a_=v(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.DiscrError=void 0;var s_;(function(e){e.Tag="tag",e.Mapping="mapping"})(s_||(vu.DiscrError=s_={}))});var Rh=v(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});var ko=ae(),Ch=a_(),c_=Js(),pN=Qs(),dN=he(),hN={message:o(({params:{discrError:e,tagName:t}})=>e===Ch.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,ko._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},mN={keyword:"discriminator",type:"object",schemaType:"object",error:hN,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,ko._)`${r}${(0,ko.getProperty)(c)}`);t.if((0,ko._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:Ch.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,ko._)`${l} === ${y}`),t.assign(u,f(h[y]));t.else(),e.error(!1,{discrError:Ch.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}o(p,"validateMapping");function f(h){let y=t.name("valid"),b=e.subschema({keyword:"oneOf",schemaProp:h},y);return e.mergeEvaluated(b,ko.Name),y}o(f,"applyTagSchema");function d(){var h;let y={},b=P(i),g=!0;for(let T=0;T<a.length;T++){let w=a[T];if(w!=null&&w.$ref&&!(0,dN.schemaHasRulesButRef)(w,s.self.RULES)){let re=w.$ref;if(w=c_.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,re),w instanceof c_.SchemaEnv&&(w=w.schema),w===void 0)throw new pN.default(s.opts.uriResolver,s.baseId,re)}let te=(h=w==null?void 0:w.properties)===null||h===void 0?void 0:h[c];if(typeof te!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);g=g&&(b||P(w)),$(te,T)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return y;function P({required:T}){return Array.isArray(T)&&T.includes(c)}function $(T,w){if(T.const)C(T.const,w);else if(T.enum)for(let te of T.enum)C(te,w);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function C(T,w){if(typeof T!="string"||T in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[T]=w}}o(d,"getMapping")}};Th.default=mN});var u_=v((sV,gN)=>{gN.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 p_=v((ct,f_)=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.CodeGen=ct.Name=ct.nil=ct.stringify=ct.str=ct._=ct.KeywordCxt=void 0;var yN=jo(),bN=o_(),vN=Rh(),l_=u_(),_N=["/properties"],_u="http://json-schema.org/draft-04/schema",Nh=class Nh extends yN.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),bN.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(vN.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(l_,_N):l_;this.addMetaSchema(t,_u,!1),this.refs["http://json-schema.org/schema"]=_u}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(_u)?_u:void 0)}};o(Nh,"Ajv");var Su=Nh;f_.exports=ct=Su;Object.defineProperty(ct,"__esModule",{value:!0});ct.default=Su;var SN=jo();Object.defineProperty(ct,"KeywordCxt",{enumerable:!0,get:o(function(){return SN.KeywordCxt},"get")});var qo=jo();Object.defineProperty(ct,"_",{enumerable:!0,get:o(function(){return qo._},"get")});Object.defineProperty(ct,"str",{enumerable:!0,get:o(function(){return qo.str},"get")});Object.defineProperty(ct,"stringify",{enumerable:!0,get:o(function(){return qo.stringify},"get")});Object.defineProperty(ct,"nil",{enumerable:!0,get:o(function(){return qo.nil},"get")});Object.defineProperty(ct,"Name",{enumerable:!0,get:o(function(){return qo.Name},"get")});Object.defineProperty(ct,"CodeGen",{enumerable:!0,get:o(function(){return qo.CodeGen},"get")})});var d_=v(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});var ON={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};jh.default=ON});var h_=v(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});var EN=d_(),PN=na(),xN=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",EN.default,PN.default];Mh.default=xN});var m_=v(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});var Ou=ae(),Dn=Ou.operators,Eu={maximum:{okStr:"<=",ok:Dn.LTE,fail:Dn.GT},minimum:{okStr:">=",ok:Dn.GTE,fail:Dn.LT},exclusiveMaximum:{okStr:"<",ok:Dn.LT,fail:Dn.GTE},exclusiveMinimum:{okStr:">",ok:Dn.GT,fail:Dn.LTE}},$N={message:o(({keyword:e,schemaCode:t})=>(0,Ou.str)`must be ${Eu[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,Ou._)`{comparison: ${Eu[e].okStr}, limit: ${t}}`,"params")},wN={keyword:Object.keys(Eu),type:"number",schemaType:"number",$data:!0,error:$N,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Ou._)`${r} ${Eu[t].fail} ${n} || isNaN(${r})`)}};kh.default=wN});var g_=v(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});var AN=m_(),IN=qd(),CN=Fd(),TN=Bd(),RN=Ud(),NN=zd(),jN=Wd(),MN=Jd(),kN=th(),qN=nh(),DN=[AN.default,IN.default,CN.default,TN.default,RN.default,NN.default,jN.default,MN.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},kN.default,qN.default];qh.default=DN});var Lh=v(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.dynamicAnchor=void 0;var Dh=ae(),LN=pr(),y_=Js(),FN=na(),HN={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>b_(e,e.schema),"code")};function b_(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,Dh._)`${LN.default.dynamicAnchors}${(0,Dh.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:BN(e);r.if((0,Dh._)`!${i}`,()=>r.assign(i,s))}o(b_,"dynamicAnchor");da.dynamicAnchor=b_;function BN(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 y_.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return y_.compileSchema.call(n,l),(0,FN.getValidate)(e,l)}o(BN,"_getValidate");da.default=HN});var Fh=v(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.dynamicRef=void 0;var v_=ae(),VN=pr(),__=na(),UN={keyword:"$dynamicRef",schemaType:"string",code:o(e=>S_(e,e.schema),"code")};function S_(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,v_._)`${VN.default.dynamicAnchors}${(0,v_.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,__.callRef)(e,u),r.let(l,!0)}):()=>(0,__.callRef)(e,u)}o(c,"_callRef")}o(S_,"dynamicRef");ha.dynamicRef=S_;ha.default=UN});var O_=v(Hh=>{"use strict";Object.defineProperty(Hh,"__esModule",{value:!0});var GN=Lh(),zN=he(),ZN={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,GN.dynamicAnchor)(e,""):(0,zN.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Hh.default=ZN});var E_=v(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});var WN=Fh(),KN={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,WN.dynamicRef)(e,e.schema),"code")};Bh.default=KN});var P_=v(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});var YN=Lh(),QN=Fh(),JN=O_(),XN=E_(),ej=[YN.default,QN.default,JN.default,XN.default];Vh.default=ej});var $_=v(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});var x_=du(),tj={keyword:"dependentRequired",type:"object",schemaType:"object",error:x_.error,code:o(e=>(0,x_.validatePropertyDeps)(e),"code")};Uh.default=tj});var w_=v(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});var rj=du(),nj={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,rj.validateSchemaDeps)(e),"code")};Gh.default=nj});var A_=v(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});var ij=he(),oj={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,ij.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};zh.default=oj});var I_=v(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});var sj=$_(),aj=w_(),cj=A_(),uj=[sj.default,aj.default,cj.default];Zh.default=uj});var T_=v(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});var Ln=ae(),C_=he(),lj=pr(),fj={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,Ln._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},pj={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:fj,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 Ln.Name?t.if((0,Ln._)`${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,Ln._)`${i} === ${lj.default.errors}`);function u(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,C_.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:C_.Type.Str},d),a||t.if((0,Ln.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(f,d){return(0,Ln._)`!${f} || !${f}[${d}]`}o(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let y in f)f[y]===!0&&h.push((0,Ln._)`${d} !== ${y}`);return(0,Ln.and)(...h)}o(p,"unevaluatedStatic")}};Wh.default=pj});var N_=v(Kh=>{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});var qi=ae(),R_=he(),dj={message:o(({params:{len:e}})=>(0,qi.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,qi._)`{limit: ${e}}`,"params")},hj={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:dj,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,qi._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,qi._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,R_.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,qi._)`${a} <= ${s}`);t.if((0,qi.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:R_.Type.Num},u),i.allErrors||t.if((0,qi.not)(u),()=>t.break())})}o(c,"validateItems")}};Kh.default=hj});var j_=v(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});var mj=T_(),gj=N_(),yj=[mj.default,gj.default];Yh.default=yj});var M_=v(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.contentVocabulary=Do.metadataVocabulary=void 0;Do.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Do.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var q_=v(Qh=>{"use strict";Object.defineProperty(Qh,"__esModule",{value:!0});var bj=h_(),vj=g_(),_j=xh(),Sj=P_(),Oj=I_(),Ej=j_(),Pj=Ah(),k_=M_(),xj=[Sj.default,bj.default,vj.default,(0,_j.default)(!0),Pj.default,k_.metadataVocabulary,k_.contentVocabulary,Oj.default,Ej.default];Qh.default=xj});var D_=v((jV,$j)=>{$j.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var L_=v((MV,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 F_=v((kV,Aj)=>{Aj.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 H_=v((qV,Ij)=>{Ij.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 B_=v((DV,Cj)=>{Cj.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 V_=v((LV,Tj)=>{Tj.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 U_=v((FV,Rj)=>{Rj.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var G_=v((HV,Nj)=>{Nj.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 z_=v(Jh=>{"use strict";Object.defineProperty(Jh,"__esModule",{value:!0});var jj=D_(),Mj=L_(),kj=F_(),qj=H_(),Dj=B_(),Lj=V_(),Fj=U_(),Hj=G_(),Bj=["/properties"];function Vj(e){return[jj,Mj,kj,qj,Dj,t(this,Lj),Fj,t(this,Hj)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,Bj):n}o(t,"with$data")}o(Vj,"addMetaSchema2020");Jh.default=Vj});var Z_=v((Fe,em)=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.MissingRefError=Fe.ValidationError=Fe.CodeGen=Fe.Name=Fe.nil=Fe.stringify=Fe.str=Fe._=Fe.KeywordCxt=Fe.Ajv2020=void 0;var Uj=jo(),Gj=q_(),zj=Rh(),Zj=z_(),Xh="https://json-schema.org/draft/2020-12/schema",tm=class tm extends Uj.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),Gj.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(zj.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Zj.default.call(this,t),this.refs["http://json-schema.org/schema"]=Xh)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Xh)?Xh:void 0)}};o(tm,"Ajv2020");var Lo=tm;Fe.Ajv2020=Lo;em.exports=Fe=Lo;em.exports.Ajv2020=Lo;Object.defineProperty(Fe,"__esModule",{value:!0});Fe.default=Lo;var Wj=Ys();Object.defineProperty(Fe,"KeywordCxt",{enumerable:!0,get:o(function(){return Wj.KeywordCxt},"get")});var Fo=ae();Object.defineProperty(Fe,"_",{enumerable:!0,get:o(function(){return Fo._},"get")});Object.defineProperty(Fe,"str",{enumerable:!0,get:o(function(){return Fo.str},"get")});Object.defineProperty(Fe,"stringify",{enumerable:!0,get:o(function(){return Fo.stringify},"get")});Object.defineProperty(Fe,"nil",{enumerable:!0,get:o(function(){return Fo.nil},"get")});Object.defineProperty(Fe,"Name",{enumerable:!0,get:o(function(){return Fo.Name},"get")});Object.defineProperty(Fe,"CodeGen",{enumerable:!0,get:o(function(){return Fo.CodeGen},"get")});var Kj=tu();Object.defineProperty(Fe,"ValidationError",{enumerable:!0,get:o(function(){return Kj.default},"get")});var Yj=Qs();Object.defineProperty(Fe,"MissingRefError",{enumerable:!0,get:o(function(){return Yj.default},"get")})});var W_=v((GV,Qj)=>{Qj.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 K_=v((zV,Jj)=>{Jj.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 Y_=v((ZV,Xj)=>{Xj.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 Q_=v((WV,eM)=>{eM.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 J_=v((pt,Ho)=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.openapi=pt.openapiV31=pt.openapiV3=pt.openapiV2=pt.openapiV1=void 0;pt.openapiV1=W_();pt.openapiV2=K_();pt.openapiV3=Y_();pt.openapiV31=Q_();pt.openapi={v1:pt.openapiV1,v2:pt.openapiV2,v3:pt.openapiV3,v31:pt.openapiV31};pt.default=pt.openapi;typeof Ho=="object"&&typeof Ho.exports=="object"&&(Ho.exports=Object.assign(Ho.exports.default,Ho.exports))});var im=v((KV,X_)=>{"use strict";var tM=kc(),{ono:rM}=$r(),nM=p_(),iM=Z_(),{openapi:rm}=J_();X_.exports=oM;function oM(e){let t,r;if(e.swagger)r=rm.v2,t=nm();else if(e.openapi.startsWith("3.1")){r=rm.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=nm(!1)}else r=rm.v3,t=nm();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
14
+ `+sM(i);throw rM.syntax(i,{details:i},s)}}o(oM,"validateSchema");function nm(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new nM(t):new iM(t)}o(nm,"initializeAjv");function sM(e,t){t=t||" ";let r="";for(let n of e)r+=tM.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
15
+ `);return r}o(sM,"formatAjvError")});var tS=v((QV,eS)=>{"use strict";eS.exports=["get","put","post","delete","options","head","patch"]});var am=v((JV,oS)=>{"use strict";var aM=kc(),{ono:xt}=$r(),cM=tS(),om=["array","boolean","integer","number","string"],nS=["array","boolean","integer","number","string","object","null",void 0];oS.exports=uM;function uM(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&&lM(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;iS(s,a)}}o(uM,"validateSpec");function lM(e,t,r,n){for(let i of cM){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 xt.syntax(`Validation failed. Duplicate operation id '${c}'`);fM(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;mM(l,p||{},f)}}}}o(lM,"validatePath");function fM(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{rS(s)}catch(u){throw xt.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{rS(a)}catch(u){throw xt.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());pM(c,i),dM(c,r,i),hM(c,e,n,i)}o(fM,"validateParameters");function pM(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw xt.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw xt.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(pM,"validateBodyParameters");function dM(e,t,r){let n=t.match(aM.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw xt.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 xt.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 xt.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 xt.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(dM,"validatePathParameters");function hM(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=nS;break;case"formData":a=i,c=om.concat("file");break;default:a=i,c=om}if(sm(a,s,c),iS(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 xt.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(hM,"validateParameterTypes");function rS(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 xt.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(rS,"checkForDuplicates");function mM(e,t,r){if(e!=="default"&&(e<100||e>599))throw xt.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;sm(s,a,om)}if(t.schema){let i=nS.concat("file");if(i.indexOf(t.schema.type)===-1)throw xt.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);sm(t.schema,r+"/schema",i)}}o(mM,"validateResponse");function sm(e,t,r){if(r.indexOf(e.type)===-1)throw xt.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw xt.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(sm,"validateSchema");function iS(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 xt.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(iS,"validateRequiredPropertiesExist")});var Rr=v(Tr=>{"use strict";var{Ono:sS}=$r(),{stripHash:aS,toFileSystemPath:gM}=Jt(),Bo,Fn=Tr.JSONParserError=(Bo=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,sS.extend(this)}},o(Bo,"JSONParserError"),Bo);Hn(Fn);var Di,cS=Tr.JSONParserErrorGroup=(Di=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${gM(t.$refs._root$Ref.path)}'`,sS.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 Di.getParserErrors(this.files)}},o(Di,"JSONParserErrorGroup"),Di);Hn(cS);var Vo,yM=Tr.ParserError=(Vo=class extends Fn{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(Vo,"ParserError"),Vo);Hn(yM);var Uo,bM=Tr.UnmatchedParserError=(Uo=class extends Fn{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(Uo,"UnmatchedParserError"),Uo);Hn(bM);var Go,vM=Tr.ResolverError=(Go=class extends Fn{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(Go,"ResolverError"),Go);Hn(vM);var zo,_M=Tr.UnmatchedResolverError=(zo=class extends Fn{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(zo,"UnmatchedResolverError"),zo);Hn(_M);var Zo,SM=Tr.MissingPointerError=(Zo=class extends Fn{constructor(t,r){super(`Token "${t}" does not exist.`,aS(r)),this.code="EMISSINGPOINTER"}},o(Zo,"MissingPointerError"),Zo);Hn(SM);var Wo,OM=Tr.InvalidPointerError=(Wo=class extends Fn{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,aS(r)),this.code="EINVALIDPOINTER"}},o(Wo,"InvalidPointerError"),Wo);Hn(OM);function Hn(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(Hn,"setErrorName");Tr.isHandledError=function(e){return e instanceof Fn||e instanceof cS};Tr.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var lS=v((r9,uS)=>{"use strict";var{ParserError:EM}=Rr();uS.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 EM(r.message,e.url)}}else return t}}});var Fi=v((n9,Li)=>{"use strict";function fS(e){return typeof e>"u"||e===null}o(fS,"isNothing");function PM(e){return typeof e=="object"&&e!==null}o(PM,"isObject");function xM(e){return Array.isArray(e)?e:fS(e)?[]:[e]}o(xM,"toArray");function $M(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($M,"extend");function wM(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(wM,"repeat");function AM(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(AM,"isNegativeZero");Li.exports.isNothing=fS;Li.exports.isObject=PM;Li.exports.toArray=xM;Li.exports.repeat=wM;Li.exports.isNegativeZero=AM;Li.exports.extend=$M});var Ko=v((o9,pS)=>{"use strict";function ma(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(ma,"YAMLException");ma.prototype=Object.create(Error.prototype);ma.prototype.constructor=ma;ma.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");pS.exports=ma});var mS=v((a9,hS)=>{"use strict";var dS=Fi();function cm(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(cm,"Mark");cm.prototype.getSnippet=o(function(t,r){var n,i,s,a,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
16
16
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(s="",a=this.position;a<this.buffer.length&&`\0\r
17
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){s=" ... ",a-=5;break}return c=this.buffer.slice(i,a),mS.repeat(" ",t)+n+c+s+`
18
- `+mS.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");am.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");gS.exports=am});var ut=v((s9,vS)=>{"use strict";var bS=Jo(),SM=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],OM=["scalar","sequence","mapping"];function EM(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(EM,"compileStyleAliases");function PM(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(SM.indexOf(r)===-1)throw new bS('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=EM(t.styleAliases||null),OM.indexOf(this.kind)===-1)throw new bS('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(PM,"Type");vS.exports=PM});var Bi=v((c9,SS)=>{"use strict";var _S=Hi(),Nu=Jo(),xM=ut();function cm(e,t,r){var n=[];return e.include.forEach(function(i){r=cm(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(cm,"compileList");function $M(){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($M,"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 Nu("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=cm(this,"implicit",[]),this.compiledExplicit=cm(this,"explicit",[]),this.compiledTypeMap=$M(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 Nu("Wrong number of arguments for Schema.create function")}if(t=_S.toArray(t),r=_S.toArray(r),!t.every(function(n){return n instanceof Xo}))throw new Nu("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof xM}))throw new Nu("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Xo({include:t,explicit:r})},"createSchema");SS.exports=Xo});var ES=v((l9,OS)=>{"use strict";var wM=ut();OS.exports=new wM("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var xS=v((p9,PS)=>{"use strict";var AM=ut();PS.exports=new AM("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var wS=v((h9,$S)=>{"use strict";var IM=ut();$S.exports=new IM("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var ju=v((g9,AS)=>{"use strict";var CM=Bi();AS.exports=new CM({explicit:[ES(),xS(),wS()]})});var CS=v((y9,IS)=>{"use strict";var TM=ut();function RM(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(RM,"resolveYamlNull");function NM(){return null}o(NM,"constructYamlNull");function jM(e){return e===null}o(jM,"isNull");IS.exports=new TM("tag:yaml.org,2002:null",{kind:"scalar",resolve:RM,construct:NM,predicate:jM,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 RS=v((v9,TS)=>{"use strict";var MM=ut();function kM(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(kM,"resolveYamlBoolean");function qM(e){return e==="true"||e==="True"||e==="TRUE"}o(qM,"constructYamlBoolean");function DM(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(DM,"isBoolean");TS.exports=new MM("tag:yaml.org,2002:bool",{kind:"scalar",resolve:kM,construct:qM,predicate:DM,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 jS=v((S9,NS)=>{"use strict";var LM=Hi(),FM=ut();function HM(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(HM,"isHexCode");function BM(e){return 48<=e&&e<=55}o(BM,"isOctCode");function VM(e){return 48<=e&&e<=57}o(VM,"isDecCode");function UM(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(!HM(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!BM(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(!VM(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(UM,"resolveYamlInteger");function GM(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(GM,"constructYamlInteger");function zM(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!LM.isNegativeZero(e)}o(zM,"isInteger");NS.exports=new FM("tag:yaml.org,2002:int",{kind:"scalar",resolve:UM,construct:GM,predicate:zM,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 qS=v((E9,kS)=>{"use strict";var MS=Hi(),ZM=ut(),WM=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 KM(e){return!(e===null||!WM.test(e)||e[e.length-1]==="_")}o(KM,"resolveYamlFloat");function YM(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(s){i.unshift(parseFloat(s,10))}),t=0,n=1,i.forEach(function(s){t+=s*n,n*=60}),r*t):r*parseFloat(t,10)}o(YM,"constructYamlFloat");var QM=/^[-+]?[0-9]+e/;function JM(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(MS.isNegativeZero(e))return"-0.0";return r=e.toString(10),QM.test(r)?r.replace("e",".e"):r}o(JM,"representYamlFloat");function XM(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||MS.isNegativeZero(e))}o(XM,"isFloat");kS.exports=new ZM("tag:yaml.org,2002:float",{kind:"scalar",resolve:KM,construct:YM,predicate:XM,represent:JM,defaultStyle:"lowercase"})});var um=v((x9,DS)=>{"use strict";var ek=Bi();DS.exports=new ek({include:[ju()],implicit:[CS(),RS(),jS(),qS()]})});var lm=v(($9,LS)=>{"use strict";var tk=Bi();LS.exports=new tk({include:[um()]})});var VS=v((w9,BS)=>{"use strict";var rk=ut(),FS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),HS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function nk(e){return e===null?!1:FS.exec(e)!==null||HS.exec(e)!==null}o(nk,"resolveYamlTimestamp");function ik(e){var t,r,n,i,s,a,c,u=0,l=null,p,f,d;if(t=FS.exec(e),t===null&&(t=HS.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],a=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(p=+t[10],f=+(t[11]||0),l=(p*60+f)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,s,a,c,u)),l&&d.setTime(d.getTime()-l),d}o(ik,"constructYamlTimestamp");function ok(e){return e.toISOString()}o(ok,"representYamlTimestamp");BS.exports=new rk("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:nk,construct:ik,instanceOf:Date,represent:ok})});var GS=v((I9,US)=>{"use strict";var sk=ut();function ak(e){return e==="<<"||e===null}o(ak,"resolveYamlMerge");US.exports=new sk("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ak})});var WS=v((T9,ZS)=>{"use strict";var Vi;try{zS=require,Vi=zS("buffer").Buffer}catch{}var zS,ck=ut(),fm=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
20
- \r`;function uk(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=fm;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(uk,"resolveYamlBinary");function lk(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=fm,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),Vi?Vi.from?Vi.from(c):new Vi(c):c}o(lk,"constructYamlBinary");function fk(e){var t="",r=0,n,i,s=e.length,a=fm;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(fk,"representYamlBinary");function pk(e){return Vi&&Vi.isBuffer(e)}o(pk,"isBinary");ZS.exports=new ck("tag:yaml.org,2002:binary",{kind:"scalar",resolve:uk,construct:lk,predicate:pk,represent:fk})});var YS=v((N9,KS)=>{"use strict";var dk=ut(),hk=Object.prototype.hasOwnProperty,mk=Object.prototype.toString;function gk(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,mk.call(i)!=="[object Object]")return!1;for(s in i)if(hk.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(gk,"resolveYamlOmap");function yk(e){return e!==null?e:[]}o(yk,"constructYamlOmap");KS.exports=new dk("tag:yaml.org,2002:omap",{kind:"sequence",resolve:gk,construct:yk})});var JS=v((M9,QS)=>{"use strict";var bk=ut(),vk=Object.prototype.toString;function _k(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],vk.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(_k,"resolveYamlPairs");function Sk(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(Sk,"constructYamlPairs");QS.exports=new bk("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:_k,construct:Sk})});var eO=v((q9,XS)=>{"use strict";var Ok=ut(),Ek=Object.prototype.hasOwnProperty;function Pk(e){if(e===null)return!0;var t,r=e;for(t in r)if(Ek.call(r,t)&&r[t]!==null)return!1;return!0}o(Pk,"resolveYamlSet");function xk(e){return e!==null?e:{}}o(xk,"constructYamlSet");XS.exports=new Ok("tag:yaml.org,2002:set",{kind:"mapping",resolve:Pk,construct:xk})});var es=v((L9,tO)=>{"use strict";var $k=Bi();tO.exports=new $k({include:[lm()],implicit:[VS(),GS()],explicit:[WS(),YS(),JS(),eO()]})});var nO=v((F9,rO)=>{"use strict";var wk=ut();function Ak(){return!0}o(Ak,"resolveJavascriptUndefined");function Ik(){}o(Ik,"constructJavascriptUndefined");function Ck(){return""}o(Ck,"representJavascriptUndefined");function Tk(e){return typeof e>"u"}o(Tk,"isUndefined");rO.exports=new wk("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:Ak,construct:Ik,predicate:Tk,represent:Ck})});var oO=v((B9,iO)=>{"use strict";var Rk=ut();function Nk(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(Nk,"resolveJavascriptRegExp");function jk(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(jk,"constructJavascriptRegExp");function Mk(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(Mk,"representJavascriptRegExp");function kk(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(kk,"isRegExp");iO.exports=new Rk("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:Nk,construct:jk,predicate:kk,represent:Mk})});var cO=v((U9,aO)=>{"use strict";var Mu;try{sO=require,Mu=sO("esprima")}catch{typeof window<"u"&&(Mu=window.esprima)}var sO,qk=ut();function Dk(e){if(e===null)return!1;try{var t="("+e+")",r=Mu.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(Dk,"resolveJavascriptFunction");function Lk(e){var t="("+e+")",r=Mu.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(Lk,"constructJavascriptFunction");function Fk(e){return e.toString()}o(Fk,"representJavascriptFunction");function Hk(e){return Object.prototype.toString.call(e)==="[object Function]"}o(Hk,"isFunction");aO.exports=new qk("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:Dk,construct:Lk,predicate:Hk,represent:Fk})});var _a=v((z9,lO)=>{"use strict";var uO=Bi();lO.exports=uO.DEFAULT=new uO({include:[es()],explicit:[nO(),oO(),cO()]})});var IO=v((Z9,Sa)=>{"use strict";var vn=Hi(),yO=Jo(),Bk=yS(),bO=es(),Vk=_a(),zn=Object.prototype.hasOwnProperty,ku=1,vO=2,_O=3,qu=4,pm=1,Uk=2,fO=3,Gk=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,zk=/[\x85\u2028\u2029]/,Zk=/[,\[\]\{\}]/,SO=/^(?:!|!!|![a-z\-]+!)$/i,OO=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function pO(e){return Object.prototype.toString.call(e)}o(pO,"_class");function Yr(e){return e===10||e===13}o(Yr,"is_EOL");function Gi(e){return e===9||e===32}o(Gi,"is_WHITE_SPACE");function zt(e){return e===9||e===32||e===10||e===13}o(zt,"is_WS_OR_EOL");function ts(e){return e===44||e===91||e===93||e===123||e===125}o(ts,"is_FLOW_INDICATOR");function Wk(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(Wk,"fromHexCode");function Kk(e){return e===120?2:e===117?4:e===85?8:0}o(Kk,"escapedHexLen");function Yk(e){return 48<=e&&e<=57?e-48:-1}o(Yk,"fromDecimalCode");function dO(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(dO,"simpleEscapeSequence");function Qk(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(Qk,"charFromCodepoint");var EO=new Array(256),PO=new Array(256);for(Ui=0;Ui<256;Ui++)EO[Ui]=dO(Ui)?1:0,PO[Ui]=dO(Ui);var Ui;function Jk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Vk,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(Jk,"State");function xO(e,t){return new yO(t,new Bk(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(xO,"generateError");function ee(e,t){throw xO(e,t)}o(ee,"throwError");function Du(e,t){e.onWarning&&e.onWarning.call(null,xO(e,t))}o(Du,"throwWarning");var hO={YAML:o(function(t,r,n){var i,s,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"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&ee(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Du(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,s;n.length!==2&&ee(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],SO.test(i)||ee(t,"ill-formed tag handle (first argument) of the TAG directive"),zn.call(t.tagMap,i)&&ee(t,'there is a previously declared suffix for "'+i+'" tag handle'),OO.test(s)||ee(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function Gn(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||ee(e,"expected valid JSON character");else Gk.test(c)&&ee(e,"the stream contains non-printable characters");e.result+=c}}o(Gn,"captureSegment");function mO(e,t,r,n){var i,s,a,c;for(vn.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)s=i[a],zn.call(t,s)||(t[s]=r[s],n[s]=!0)}o(mO,"mergeMappings");function rs(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])&&ee(e,"nested arrays are not supported inside keys"),typeof i=="object"&&pO(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&pO(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)mO(e,t,s[u],r);else mO(e,t,s,r);else!e.json&&!zn.call(r,i)&&zn.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,ee(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(rs,"storeMappingPair");function dm(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}o(dm,"readLineBreak");function it(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Gi(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(Yr(i))for(dm(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&&Du(e,"deficient indentation"),n}o(it,"skipSeparationSpace");function Lu(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||zt(r)))}o(Lu,"testDocumentSeparator");function hm(e,t){t===1?e.result+=" ":t>1&&(e.result+=vn.repeat(`
22
- `,t-1))}o(hm,"writeFoldedLines");function Xk(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),zt(h)||ts(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),zt(i)||r&&ts(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),zt(i)||r&&ts(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),zt(n))break}else{if(e.position===e.lineStart&&Lu(e)||r&&ts(h))break;if(Yr(h))if(u=e.line,l=e.lineStart,p=e.lineIndent,it(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&&(Gn(e,s,a,!1),hm(e,e.line-u),s=a=e.position,c=!1),Gi(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return Gn(e,s,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}o(Xk,"readPlainScalar");function e3(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(Gn(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 Yr(r)?(Gn(e,n,i,!0),hm(e,it(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Lu(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")}o(e3,"readSingleQuotedScalar");function t3(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 Gn(e,r,e.position,!0),e.position++,!0;if(c===92){if(Gn(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Yr(c))it(e,!1,t);else if(c<256&&EO[c])e.result+=PO[c],e.position++;else if((a=Kk(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=Wk(c))>=0?s=(s<<4)+a:ee(e,"expected hexadecimal character");e.result+=Qk(s),e.position++}else ee(e,"unknown escape sequence");r=n=e.position}else Yr(c)?(Gn(e,r,n,!0),hm(e,it(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Lu(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")}o(t3,"readDoubleQuotedScalar");function r3(e,t){var r=!0,n,i=e.tag,s,a=e.anchor,c,u,l,p,f,d={},h,y,b,g;if(g=e.input.charCodeAt(e.position),g===91)u=93,f=!1,s=[];else if(g===123)u=125,f=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),g=e.input.charCodeAt(++e.position);g!==0;){if(it(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||ee(e,"missed comma between flow collection entries"),y=h=b=null,l=p=!1,g===63&&(c=e.input.charCodeAt(e.position+1),zt(c)&&(l=p=!0,e.position++,it(e,!0,t))),n=e.line,ns(e,t,ku,!1,!0),y=e.tag,h=e.result,it(e,!0,t),g=e.input.charCodeAt(e.position),(p||e.line===n)&&g===58&&(l=!0,g=e.input.charCodeAt(++e.position),it(e,!0,t),ns(e,t,ku,!1,!0),b=e.result),f?rs(e,s,d,y,h,b):l?s.push(rs(e,null,d,y,h,b)):s.push(h),it(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")}o(r3,"readFlowCollection");function n3(e,t){var r,n,i=pm,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)pm===i?i=f===43?fO:Uk:ee(e,"repeat of a chomping mode identifier");else if((p=Yk(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(Gi(f)){do f=e.input.charCodeAt(++e.position);while(Gi(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Yr(f)&&f!==0)}for(;f!==0;){for(dm(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),Yr(f)){u++;continue}if(e.lineIndent<c){i===fO?e.result+=vn.repeat(`
23
- `,s?1+u:u):i===pm&&s&&(e.result+=`
24
- `);break}for(n?Gi(f)?(l=!0,e.result+=vn.repeat(`
25
- `,s?1+u:u)):l?(l=!1,e.result+=vn.repeat(`
26
- `,u+1)):u===0?s&&(e.result+=" "):e.result+=vn.repeat(`
27
- `,u):e.result+=vn.repeat(`
28
- `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!Yr(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Gn(e,r,e.position,!1)}return!0}o(n3,"readBlockScalar");function gO(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),!zt(a)));){if(c=!0,e.position++,it(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,ns(e,t,_O,!1,!0),s.push(e.result),it(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=s,!0):!1}o(gO,"readBlockSequence");function i3(e,t,r){var n,i,s,a,c=e.tag,u=e.anchor,l={},p={},f=null,d=null,h=null,y=!1,b=!1,g;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),g=e.input.charCodeAt(e.position);g!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,a=e.position,(g===63||g===58)&&zt(n))g===63?(y&&(rs(e,l,p,f,d,null),f=d=h=null),b=!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(ns(e,r,vO,!1,!0))if(e.line===s){for(g=e.input.charCodeAt(e.position);Gi(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),zt(g)||ee(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(rs(e,l,p,f,d,null),f=d=h=null),b=!0,y=!1,i=!1,f=e.tag,d=e.result;else if(b)ee(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(b)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===s||e.lineIndent>t)&&(ns(e,t,qu,!0,i)&&(y?d=e.result:h=e.result),y||(rs(e,l,p,f,d,h,s,a),f=d=h=null),it(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&&rs(e,l,p,f,d,null),b&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),b}o(i3,"readBlockMapping");function o3(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&&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?(s=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&&!zt(a);)a===33&&(n?ee(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),SO.test(i)||ee(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),Zk.test(s)&&ee(e,"tag suffix cannot contain flow indicator characters")}return s&&!OO.test(s)&&ee(e,"tag name cannot contain such characters: "+s),r?e.tag=s:zn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:ee(e,'undeclared tag handle "'+i+'"'),!0}o(o3,"readTagProperty");function s3(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&&!zt(r)&&!ts(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}o(s3,"readAnchorProperty");function a3(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&&!zt(n)&&!ts(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),zn.call(e.anchorMap,r)||ee(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],it(e,!0,-1),!0}o(a3,"readAlias");function ns(e,t,r,n,i){var s,a,c,u=1,l=!1,p=!1,f,d,h,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=c=qu===r||_O===r,n&&it(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;o3(e)||s3(e);)it(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||qu===r)&&(ku===r||vO===r?y=t:y=t+1,b=e.position-e.lineStart,u===1?c&&(gO(e,b)||i3(e,b,y))||r3(e,y)?p=!0:(a&&n3(e,y)||e3(e,y)||t3(e,y)?p=!0:a3(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&ee(e,"alias node should not have any properties")):Xk(e,y,ku===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(p=c&&gO(e,b))),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 zn.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}o(ns,"composeNode");function c3(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&&(it(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&&!zt(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(;Gi(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Yr(a));break}if(Yr(a))break;for(r=e.position;a!==0&&!zt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&dm(e),zn.call(hO,n)?hO[n](e,n,i):Du(e,'unknown document directive "'+n+'"')}if(it(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,it(e,!0,-1)):s&&ee(e,"directives end mark is expected"),ns(e,e.lineIndent-1,qu,!1,!0),it(e,!0,-1),e.checkLineBreaks&&zk.test(e.input.slice(t,e.position))&&Du(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Lu(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,it(e,!0,-1));return}if(e.position<e.length-1)ee(e,"end of the stream or a document separator is expected");else return}o(c3,"readDocument");function $O(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 Jk(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;)c3(r);return r.documents}o($O,"loadDocuments");function wO(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=$O(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(wO,"loadAll");function AO(e,t){var r=$O(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new yO("expected a single document in the stream, but found more")}}o(AO,"load");function u3(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),wO(e,t,vn.extend({schema:bO},r))}o(u3,"safeLoadAll");function l3(e,t){return AO(e,vn.extend({schema:bO},t))}o(l3,"safeLoad");Sa.exports.loadAll=wO;Sa.exports.load=AO;Sa.exports.safeLoadAll=u3;Sa.exports.safeLoad=l3});var JO=v((K9,bm)=>{"use strict";var Ea=Hi(),Pa=Jo(),f3=_a(),p3=es(),qO=Object.prototype.toString,DO=Object.prototype.hasOwnProperty,d3=9,Oa=10,h3=13,m3=32,g3=33,y3=34,LO=35,b3=37,v3=38,_3=39,S3=42,FO=44,O3=45,HO=58,E3=61,P3=62,x3=63,$3=64,BO=91,VO=93,w3=96,UO=123,A3=124,GO=125,wt={};wt[0]="\\0";wt[7]="\\a";wt[8]="\\b";wt[9]="\\t";wt[10]="\\n";wt[11]="\\v";wt[12]="\\f";wt[13]="\\r";wt[27]="\\e";wt[34]='\\"';wt[92]="\\\\";wt[133]="\\N";wt[160]="\\_";wt[8232]="\\L";wt[8233]="\\P";var I3=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function C3(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&&DO.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(C3,"compileStyleMap");function CO(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 Pa("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Ea.repeat("0",n-t.length)+t}o(CO,"encodeHex");function T3(e){this.schema=e.schema||f3,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ea.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=C3(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(T3,"State");function TO(e,t){for(var r=Ea.repeat(" ",t),n=0,i=-1,s="",a,c=e.length;n<c;)i=e.indexOf(`
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),dS.repeat(" ",t)+n+c+s+`
18
+ `+dS.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");cm.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");hS.exports=cm});var ut=v((u9,yS)=>{"use strict";var gS=Ko(),IM=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],CM=["scalar","sequence","mapping"];function TM(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(TM,"compileStyleAliases");function RM(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(IM.indexOf(r)===-1)throw new gS('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=TM(t.styleAliases||null),CM.indexOf(this.kind)===-1)throw new gS('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(RM,"Type");yS.exports=RM});var Hi=v((f9,vS)=>{"use strict";var bS=Fi(),Pu=Ko(),NM=ut();function um(e,t,r){var n=[];return e.include.forEach(function(i){r=um(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(um,"compileList");function jM(){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(jM,"compileMap");function Yo(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new Pu("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=um(this,"implicit",[]),this.compiledExplicit=um(this,"explicit",[]),this.compiledTypeMap=jM(this.compiledImplicit,this.compiledExplicit)}o(Yo,"Schema");Yo.DEFAULT=null;Yo.create=o(function(){var t,r;switch(arguments.length){case 1:t=Yo.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Pu("Wrong number of arguments for Schema.create function")}if(t=bS.toArray(t),r=bS.toArray(r),!t.every(function(n){return n instanceof Yo}))throw new Pu("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof NM}))throw new Pu("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Yo({include:t,explicit:r})},"createSchema");vS.exports=Yo});var SS=v((d9,_S)=>{"use strict";var MM=ut();_S.exports=new MM("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var ES=v((m9,OS)=>{"use strict";var kM=ut();OS.exports=new kM("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var xS=v((y9,PS)=>{"use strict";var qM=ut();PS.exports=new qM("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var xu=v((v9,$S)=>{"use strict";var DM=Hi();$S.exports=new DM({explicit:[SS(),ES(),xS()]})});var AS=v((_9,wS)=>{"use strict";var LM=ut();function FM(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(FM,"resolveYamlNull");function HM(){return null}o(HM,"constructYamlNull");function BM(e){return e===null}o(BM,"isNull");wS.exports=new LM("tag:yaml.org,2002:null",{kind:"scalar",resolve:FM,construct:HM,predicate:BM,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 CS=v((O9,IS)=>{"use strict";var VM=ut();function UM(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(UM,"resolveYamlBoolean");function GM(e){return e==="true"||e==="True"||e==="TRUE"}o(GM,"constructYamlBoolean");function zM(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(zM,"isBoolean");IS.exports=new VM("tag:yaml.org,2002:bool",{kind:"scalar",resolve:UM,construct:GM,predicate:zM,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 RS=v((P9,TS)=>{"use strict";var ZM=Fi(),WM=ut();function KM(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(KM,"isHexCode");function YM(e){return 48<=e&&e<=55}o(YM,"isOctCode");function QM(e){return 48<=e&&e<=57}o(QM,"isDecCode");function JM(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(!KM(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!YM(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(!QM(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(JM,"resolveYamlInteger");function XM(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(XM,"constructYamlInteger");function ek(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!ZM.isNegativeZero(e)}o(ek,"isInteger");TS.exports=new WM("tag:yaml.org,2002:int",{kind:"scalar",resolve:JM,construct:XM,predicate:ek,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 MS=v(($9,jS)=>{"use strict";var NS=Fi(),tk=ut(),rk=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 nk(e){return!(e===null||!rk.test(e)||e[e.length-1]==="_")}o(nk,"resolveYamlFloat");function ik(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(ik,"constructYamlFloat");var ok=/^[-+]?[0-9]+e/;function sk(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(NS.isNegativeZero(e))return"-0.0";return r=e.toString(10),ok.test(r)?r.replace("e",".e"):r}o(sk,"representYamlFloat");function ak(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||NS.isNegativeZero(e))}o(ak,"isFloat");jS.exports=new tk("tag:yaml.org,2002:float",{kind:"scalar",resolve:nk,construct:ik,predicate:ak,represent:sk,defaultStyle:"lowercase"})});var lm=v((A9,kS)=>{"use strict";var ck=Hi();kS.exports=new ck({include:[xu()],implicit:[AS(),CS(),RS(),MS()]})});var fm=v((I9,qS)=>{"use strict";var uk=Hi();qS.exports=new uk({include:[lm()]})});var HS=v((C9,FS)=>{"use strict";var lk=ut(),DS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),LS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function fk(e){return e===null?!1:DS.exec(e)!==null||LS.exec(e)!==null}o(fk,"resolveYamlTimestamp");function pk(e){var t,r,n,i,s,a,c,u=0,l=null,p,f,d;if(t=DS.exec(e),t===null&&(t=LS.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],a=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(p=+t[10],f=+(t[11]||0),l=(p*60+f)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,s,a,c,u)),l&&d.setTime(d.getTime()-l),d}o(pk,"constructYamlTimestamp");function dk(e){return e.toISOString()}o(dk,"representYamlTimestamp");FS.exports=new lk("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:fk,construct:pk,instanceOf:Date,represent:dk})});var VS=v((R9,BS)=>{"use strict";var hk=ut();function mk(e){return e==="<<"||e===null}o(mk,"resolveYamlMerge");BS.exports=new hk("tag:yaml.org,2002:merge",{kind:"scalar",resolve:mk})});var zS=v((j9,GS)=>{"use strict";var Bi;try{US=require,Bi=US("buffer").Buffer}catch{}var US,gk=ut(),pm=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
20
+ \r`;function yk(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=pm;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(yk,"resolveYamlBinary");function bk(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=pm,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),Bi?Bi.from?Bi.from(c):new Bi(c):c}o(bk,"constructYamlBinary");function vk(e){var t="",r=0,n,i,s=e.length,a=pm;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(vk,"representYamlBinary");function _k(e){return Bi&&Bi.isBuffer(e)}o(_k,"isBinary");GS.exports=new gk("tag:yaml.org,2002:binary",{kind:"scalar",resolve:yk,construct:bk,predicate:_k,represent:vk})});var WS=v((k9,ZS)=>{"use strict";var Sk=ut(),Ok=Object.prototype.hasOwnProperty,Ek=Object.prototype.toString;function Pk(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,Ek.call(i)!=="[object Object]")return!1;for(s in i)if(Ok.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(Pk,"resolveYamlOmap");function xk(e){return e!==null?e:[]}o(xk,"constructYamlOmap");ZS.exports=new Sk("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Pk,construct:xk})});var YS=v((D9,KS)=>{"use strict";var $k=ut(),wk=Object.prototype.toString;function Ak(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],wk.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(Ak,"resolveYamlPairs");function Ik(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(Ik,"constructYamlPairs");KS.exports=new $k("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ak,construct:Ik})});var JS=v((F9,QS)=>{"use strict";var Ck=ut(),Tk=Object.prototype.hasOwnProperty;function Rk(e){if(e===null)return!0;var t,r=e;for(t in r)if(Tk.call(r,t)&&r[t]!==null)return!1;return!0}o(Rk,"resolveYamlSet");function Nk(e){return e!==null?e:{}}o(Nk,"constructYamlSet");QS.exports=new Ck("tag:yaml.org,2002:set",{kind:"mapping",resolve:Rk,construct:Nk})});var Qo=v((B9,XS)=>{"use strict";var jk=Hi();XS.exports=new jk({include:[fm()],implicit:[HS(),VS()],explicit:[zS(),WS(),YS(),JS()]})});var tO=v((V9,eO)=>{"use strict";var Mk=ut();function kk(){return!0}o(kk,"resolveJavascriptUndefined");function qk(){}o(qk,"constructJavascriptUndefined");function Dk(){return""}o(Dk,"representJavascriptUndefined");function Lk(e){return typeof e>"u"}o(Lk,"isUndefined");eO.exports=new Mk("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:kk,construct:qk,predicate:Lk,represent:Dk})});var nO=v((G9,rO)=>{"use strict";var Fk=ut();function Hk(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(Hk,"resolveJavascriptRegExp");function Bk(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(Bk,"constructJavascriptRegExp");function Vk(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(Vk,"representJavascriptRegExp");function Uk(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(Uk,"isRegExp");rO.exports=new Fk("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:Hk,construct:Bk,predicate:Uk,represent:Vk})});var sO=v((Z9,oO)=>{"use strict";var $u;try{iO=require,$u=iO("esprima")}catch{typeof window<"u"&&($u=window.esprima)}var iO,Gk=ut();function zk(e){if(e===null)return!1;try{var t="("+e+")",r=$u.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(zk,"resolveJavascriptFunction");function Zk(e){var t="("+e+")",r=$u.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(Zk,"constructJavascriptFunction");function Wk(e){return e.toString()}o(Wk,"representJavascriptFunction");function Kk(e){return Object.prototype.toString.call(e)==="[object Function]"}o(Kk,"isFunction");oO.exports=new Gk("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:zk,construct:Zk,predicate:Kk,represent:Wk})});var ga=v((K9,cO)=>{"use strict";var aO=Hi();cO.exports=aO.DEFAULT=new aO({include:[Qo()],explicit:[tO(),nO(),sO()]})});var wO=v((Y9,ya)=>{"use strict";var yn=Fi(),mO=Ko(),Yk=mS(),gO=Qo(),Qk=ga(),Vn=Object.prototype.hasOwnProperty,wu=1,yO=2,bO=3,Au=4,dm=1,Jk=2,uO=3,Xk=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,e3=/[\x85\u2028\u2029]/,t3=/[,\[\]\{\}]/,vO=/^(?:!|!!|![a-z\-]+!)$/i,_O=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function lO(e){return Object.prototype.toString.call(e)}o(lO,"_class");function Kr(e){return e===10||e===13}o(Kr,"is_EOL");function Ui(e){return e===9||e===32}o(Ui,"is_WHITE_SPACE");function Gt(e){return e===9||e===32||e===10||e===13}o(Gt,"is_WS_OR_EOL");function Jo(e){return e===44||e===91||e===93||e===123||e===125}o(Jo,"is_FLOW_INDICATOR");function r3(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(r3,"fromHexCode");function n3(e){return e===120?2:e===117?4:e===85?8:0}o(n3,"escapedHexLen");function i3(e){return 48<=e&&e<=57?e-48:-1}o(i3,"fromDecimalCode");function fO(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(fO,"simpleEscapeSequence");function o3(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(o3,"charFromCodepoint");var SO=new Array(256),OO=new Array(256);for(Vi=0;Vi<256;Vi++)SO[Vi]=fO(Vi)?1:0,OO[Vi]=fO(Vi);var Vi;function s3(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Qk,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(s3,"State");function EO(e,t){return new mO(t,new Yk(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(EO,"generateError");function ee(e,t){throw EO(e,t)}o(ee,"throwError");function Iu(e,t){e.onWarning&&e.onWarning.call(null,EO(e,t))}o(Iu,"throwWarning");var pO={YAML:o(function(t,r,n){var i,s,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"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&ee(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Iu(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,s;n.length!==2&&ee(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],vO.test(i)||ee(t,"ill-formed tag handle (first argument) of the TAG directive"),Vn.call(t.tagMap,i)&&ee(t,'there is a previously declared suffix for "'+i+'" tag handle'),_O.test(s)||ee(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function Bn(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||ee(e,"expected valid JSON character");else Xk.test(c)&&ee(e,"the stream contains non-printable characters");e.result+=c}}o(Bn,"captureSegment");function dO(e,t,r,n){var i,s,a,c;for(yn.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)s=i[a],Vn.call(t,s)||(t[s]=r[s],n[s]=!0)}o(dO,"mergeMappings");function Xo(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])&&ee(e,"nested arrays are not supported inside keys"),typeof i=="object"&&lO(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&lO(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)dO(e,t,s[u],r);else dO(e,t,s,r);else!e.json&&!Vn.call(r,i)&&Vn.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,ee(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(Xo,"storeMappingPair");function hm(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}o(hm,"readLineBreak");function nt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Ui(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(hm(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&&Iu(e,"deficient indentation"),n}o(nt,"skipSeparationSpace");function Cu(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||Gt(r)))}o(Cu,"testDocumentSeparator");function mm(e,t){t===1?e.result+=" ":t>1&&(e.result+=yn.repeat(`
22
+ `,t-1))}o(mm,"writeFoldedLines");function a3(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),Gt(h)||Jo(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),Gt(i)||r&&Jo(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),Gt(i)||r&&Jo(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Gt(n))break}else{if(e.position===e.lineStart&&Cu(e)||r&&Jo(h))break;if(Kr(h))if(u=e.line,l=e.lineStart,p=e.lineIndent,nt(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&&(Bn(e,s,a,!1),mm(e,e.line-u),s=a=e.position,c=!1),Ui(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return Bn(e,s,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}o(a3,"readPlainScalar");function c3(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(Bn(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)?(Bn(e,n,i,!0),mm(e,nt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Cu(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")}o(c3,"readSingleQuotedScalar");function u3(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 Bn(e,r,e.position,!0),e.position++,!0;if(c===92){if(Bn(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Kr(c))nt(e,!1,t);else if(c<256&&SO[c])e.result+=OO[c],e.position++;else if((a=n3(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=r3(c))>=0?s=(s<<4)+a:ee(e,"expected hexadecimal character");e.result+=o3(s),e.position++}else ee(e,"unknown escape sequence");r=n=e.position}else Kr(c)?(Bn(e,r,n,!0),mm(e,nt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Cu(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")}o(u3,"readDoubleQuotedScalar");function l3(e,t){var r=!0,n,i=e.tag,s,a=e.anchor,c,u,l,p,f,d={},h,y,b,g;if(g=e.input.charCodeAt(e.position),g===91)u=93,f=!1,s=[];else if(g===123)u=125,f=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),g=e.input.charCodeAt(++e.position);g!==0;){if(nt(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||ee(e,"missed comma between flow collection entries"),y=h=b=null,l=p=!1,g===63&&(c=e.input.charCodeAt(e.position+1),Gt(c)&&(l=p=!0,e.position++,nt(e,!0,t))),n=e.line,es(e,t,wu,!1,!0),y=e.tag,h=e.result,nt(e,!0,t),g=e.input.charCodeAt(e.position),(p||e.line===n)&&g===58&&(l=!0,g=e.input.charCodeAt(++e.position),nt(e,!0,t),es(e,t,wu,!1,!0),b=e.result),f?Xo(e,s,d,y,h,b):l?s.push(Xo(e,null,d,y,h,b)):s.push(h),nt(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")}o(l3,"readFlowCollection");function f3(e,t){var r,n,i=dm,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)dm===i?i=f===43?uO:Jk:ee(e,"repeat of a chomping mode identifier");else if((p=i3(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(Ui(f)){do f=e.input.charCodeAt(++e.position);while(Ui(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Kr(f)&&f!==0)}for(;f!==0;){for(hm(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===uO?e.result+=yn.repeat(`
23
+ `,s?1+u:u):i===dm&&s&&(e.result+=`
24
+ `);break}for(n?Ui(f)?(l=!0,e.result+=yn.repeat(`
25
+ `,s?1+u:u)):l?(l=!1,e.result+=yn.repeat(`
26
+ `,u+1)):u===0?s&&(e.result+=" "):e.result+=yn.repeat(`
27
+ `,u):e.result+=yn.repeat(`
28
+ `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!Kr(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Bn(e,r,e.position,!1)}return!0}o(f3,"readBlockScalar");function hO(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),!Gt(a)));){if(c=!0,e.position++,nt(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,es(e,t,bO,!1,!0),s.push(e.result),nt(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=s,!0):!1}o(hO,"readBlockSequence");function p3(e,t,r){var n,i,s,a,c=e.tag,u=e.anchor,l={},p={},f=null,d=null,h=null,y=!1,b=!1,g;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),g=e.input.charCodeAt(e.position);g!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,a=e.position,(g===63||g===58)&&Gt(n))g===63?(y&&(Xo(e,l,p,f,d,null),f=d=h=null),b=!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(es(e,r,yO,!1,!0))if(e.line===s){for(g=e.input.charCodeAt(e.position);Ui(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),Gt(g)||ee(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Xo(e,l,p,f,d,null),f=d=h=null),b=!0,y=!1,i=!1,f=e.tag,d=e.result;else if(b)ee(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(b)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===s||e.lineIndent>t)&&(es(e,t,Au,!0,i)&&(y?d=e.result:h=e.result),y||(Xo(e,l,p,f,d,h,s,a),f=d=h=null),nt(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&&Xo(e,l,p,f,d,null),b&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),b}o(p3,"readBlockMapping");function d3(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&&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?(s=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&&!Gt(a);)a===33&&(n?ee(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),vO.test(i)||ee(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),t3.test(s)&&ee(e,"tag suffix cannot contain flow indicator characters")}return s&&!_O.test(s)&&ee(e,"tag name cannot contain such characters: "+s),r?e.tag=s:Vn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:ee(e,'undeclared tag handle "'+i+'"'),!0}o(d3,"readTagProperty");function h3(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&&!Gt(r)&&!Jo(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}o(h3,"readAnchorProperty");function m3(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&&!Gt(n)&&!Jo(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),Vn.call(e.anchorMap,r)||ee(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],nt(e,!0,-1),!0}o(m3,"readAlias");function es(e,t,r,n,i){var s,a,c,u=1,l=!1,p=!1,f,d,h,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=c=Au===r||bO===r,n&&nt(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;d3(e)||h3(e);)nt(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||Au===r)&&(wu===r||yO===r?y=t:y=t+1,b=e.position-e.lineStart,u===1?c&&(hO(e,b)||p3(e,b,y))||l3(e,y)?p=!0:(a&&f3(e,y)||c3(e,y)||u3(e,y)?p=!0:m3(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&ee(e,"alias node should not have any properties")):a3(e,y,wu===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(p=c&&hO(e,b))),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 Vn.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}o(es,"composeNode");function g3(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&&(nt(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&&!Gt(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(;Ui(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&&!Gt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&hm(e),Vn.call(pO,n)?pO[n](e,n,i):Iu(e,'unknown document directive "'+n+'"')}if(nt(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,nt(e,!0,-1)):s&&ee(e,"directives end mark is expected"),es(e,e.lineIndent-1,Au,!1,!0),nt(e,!0,-1),e.checkLineBreaks&&e3.test(e.input.slice(t,e.position))&&Iu(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Cu(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,nt(e,!0,-1));return}if(e.position<e.length-1)ee(e,"end of the stream or a document separator is expected");else return}o(g3,"readDocument");function PO(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 s3(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;)g3(r);return r.documents}o(PO,"loadDocuments");function xO(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=PO(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(xO,"loadAll");function $O(e,t){var r=PO(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new mO("expected a single document in the stream, but found more")}}o($O,"load");function y3(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),xO(e,t,yn.extend({schema:gO},r))}o(y3,"safeLoadAll");function b3(e,t){return $O(e,yn.extend({schema:gO},t))}o(b3,"safeLoad");ya.exports.loadAll=xO;ya.exports.load=$O;ya.exports.safeLoadAll=y3;ya.exports.safeLoad=b3});var YO=v((J9,vm)=>{"use strict";var va=Fi(),_a=Ko(),v3=ga(),_3=Qo(),MO=Object.prototype.toString,kO=Object.prototype.hasOwnProperty,S3=9,ba=10,O3=13,E3=32,P3=33,x3=34,qO=35,$3=37,w3=38,A3=39,I3=42,DO=44,C3=45,LO=58,T3=61,R3=62,N3=63,j3=64,FO=91,HO=93,M3=96,BO=123,k3=124,VO=125,$t={};$t[0]="\\0";$t[7]="\\a";$t[8]="\\b";$t[9]="\\t";$t[10]="\\n";$t[11]="\\v";$t[12]="\\f";$t[13]="\\r";$t[27]="\\e";$t[34]='\\"';$t[92]="\\\\";$t[133]="\\N";$t[160]="\\_";$t[8232]="\\L";$t[8233]="\\P";var q3=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function D3(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&&kO.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(D3,"compileStyleMap");function AO(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 _a("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+va.repeat("0",n-t.length)+t}o(AO,"encodeHex");function L3(e){this.schema=e.schema||v3,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=va.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=D3(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(L3,"State");function IO(e,t){for(var r=va.repeat(" ",t),n=0,i=-1,s="",a,c=e.length;n<c;)i=e.indexOf(`
30
30
  `,n),i===-1?(a=e.slice(n),n=c):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
31
- `&&(s+=r),s+=a;return s}o(TO,"indentString");function mm(e,t){return`
32
- `+Ea.repeat(" ",e.indent*t)}o(mm,"generateNextLine");function R3(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(R3,"testImplicitResolving");function ym(e){return e===m3||e===d3}o(ym,"isWhitespace");function is(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(is,"isPrintable");function N3(e){return is(e)&&!ym(e)&&e!==65279&&e!==h3&&e!==Oa}o(N3,"isNsChar");function RO(e,t){return is(e)&&e!==65279&&e!==FO&&e!==BO&&e!==VO&&e!==UO&&e!==GO&&e!==HO&&(e!==LO||t&&N3(t))}o(RO,"isPlainSafe");function j3(e){return is(e)&&e!==65279&&!ym(e)&&e!==O3&&e!==x3&&e!==HO&&e!==FO&&e!==BO&&e!==VO&&e!==UO&&e!==GO&&e!==LO&&e!==v3&&e!==S3&&e!==g3&&e!==A3&&e!==E3&&e!==P3&&e!==_3&&e!==y3&&e!==b3&&e!==$3&&e!==w3}o(j3,"isPlainSafeFirst");function zO(e){var t=/^\n* /;return t.test(e)}o(zO,"needIndentIndicator");var ZO=1,WO=2,KO=3,YO=4,Fu=5;function M3(e,t,r,n,i){var s,a,c,u=!1,l=!1,p=n!==-1,f=-1,d=j3(e.charCodeAt(0))&&!ym(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!is(a))return Fu;c=s>0?e.charCodeAt(s-1):null,d=d&&RO(a,c)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===Oa)u=!0,p&&(l=l||s-f-1>n&&e[f+1]!==" ",f=s);else if(!is(a))return Fu;c=s>0?e.charCodeAt(s-1):null,d=d&&RO(a,c)}l=l||p&&s-f-1>n&&e[f+1]!==" "}return!u&&!l?d&&!i(e)?ZO:WO:r>9&&zO(e)?Fu:l?YO:KO}o(M3,"chooseScalarStyle");function k3(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&I3.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 R3(e,u)}switch(o(c,"testAmbiguity"),M3(t,a,e.indent,s,c)){case ZO:return t;case WO:return"'"+t.replace(/'/g,"''")+"'";case KO:return"|"+NO(t,e.indent)+jO(TO(t,i));case YO:return">"+NO(t,e.indent)+jO(TO(q3(t,s),i));case Fu:return'"'+D3(t,s)+'"';default:throw new Pa("impossible error: invalid scalar style")}}()}o(k3,"writeScalar");function NO(e,t){var r=zO(e)?String(t):"",n=e[e.length-1]===`
31
+ `&&(s+=r),s+=a;return s}o(IO,"indentString");function gm(e,t){return`
32
+ `+va.repeat(" ",e.indent*t)}o(gm,"generateNextLine");function F3(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(F3,"testImplicitResolving");function bm(e){return e===E3||e===S3}o(bm,"isWhitespace");function ts(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(ts,"isPrintable");function H3(e){return ts(e)&&!bm(e)&&e!==65279&&e!==O3&&e!==ba}o(H3,"isNsChar");function CO(e,t){return ts(e)&&e!==65279&&e!==DO&&e!==FO&&e!==HO&&e!==BO&&e!==VO&&e!==LO&&(e!==qO||t&&H3(t))}o(CO,"isPlainSafe");function B3(e){return ts(e)&&e!==65279&&!bm(e)&&e!==C3&&e!==N3&&e!==LO&&e!==DO&&e!==FO&&e!==HO&&e!==BO&&e!==VO&&e!==qO&&e!==w3&&e!==I3&&e!==P3&&e!==k3&&e!==T3&&e!==R3&&e!==A3&&e!==x3&&e!==$3&&e!==j3&&e!==M3}o(B3,"isPlainSafeFirst");function UO(e){var t=/^\n* /;return t.test(e)}o(UO,"needIndentIndicator");var GO=1,zO=2,ZO=3,WO=4,Tu=5;function V3(e,t,r,n,i){var s,a,c,u=!1,l=!1,p=n!==-1,f=-1,d=B3(e.charCodeAt(0))&&!bm(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!ts(a))return Tu;c=s>0?e.charCodeAt(s-1):null,d=d&&CO(a,c)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===ba)u=!0,p&&(l=l||s-f-1>n&&e[f+1]!==" ",f=s);else if(!ts(a))return Tu;c=s>0?e.charCodeAt(s-1):null,d=d&&CO(a,c)}l=l||p&&s-f-1>n&&e[f+1]!==" "}return!u&&!l?d&&!i(e)?GO:zO:r>9&&UO(e)?Tu:l?WO:ZO}o(V3,"chooseScalarStyle");function U3(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&q3.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 F3(e,u)}switch(o(c,"testAmbiguity"),V3(t,a,e.indent,s,c)){case GO:return t;case zO:return"'"+t.replace(/'/g,"''")+"'";case ZO:return"|"+TO(t,e.indent)+RO(IO(t,i));case WO:return">"+TO(t,e.indent)+RO(IO(G3(t,s),i));case Tu:return'"'+z3(t,s)+'"';default:throw new _a("impossible error: invalid scalar style")}}()}o(U3,"writeScalar");function TO(e,t){var r=UO(e)?String(t):"",n=e[e.length-1]===`
33
33
  `,i=n&&(e[e.length-2]===`
34
34
  `||e===`
35
35
  `),s=i?"+":n?"":"-";return r+s+`
36
- `}o(NO,"blockHeader");function jO(e){return e[e.length-1]===`
37
- `?e.slice(0,-1):e}o(jO,"dropEndingNewline");function q3(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,MO(e.slice(0,l),t)}(),i=e[0]===`
36
+ `}o(TO,"blockHeader");function RO(e){return e[e.length-1]===`
37
+ `?e.slice(0,-1):e}o(RO,"dropEndingNewline");function G3(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,NO(e.slice(0,l),t)}(),i=e[0]===`
39
39
  `||e[0]===" ",s,a;a=r.exec(e);){var c=a[1],u=a[2];s=u[0]===" ",n+=c+(!i&&!s&&u!==""?`
40
- `:"")+MO(u,t),i=s}return n}o(q3,"foldString");function MO(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(s=a>i?a:c,u+=`
40
+ `:"")+NO(u,t),i=s}return n}o(G3,"foldString");function NO(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(s=a>i?a:c,u+=`
41
41
  `+e.slice(i,s),i=s+1),a=c;return u+=`
42
42
  `,e.length-i>t&&a>i?u+=e.slice(i,a)+`
43
- `+e.slice(a+1):u+=e.slice(i),u.slice(1)}o(MO,"foldLine");function D3(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+=CO((r-55296)*1024+n-56320+65536),s++;continue}i=wt[r],t+=!i&&is(r)?e[s]:i||CO(r)}return t}o(D3,"escapeString");function L3(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)zi(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(L3,"writeFlowSequence");function F3(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)zi(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=mm(e,t)),e.dump&&Oa===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(F3,"writeBlockSequence");function H3(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],zi(e,t,u,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),zi(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}o(H3,"writeFlowMapping");function B3(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 Pa("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=mm(e,t)),l=a[c],p=r[l],zi(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Oa===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=mm(e,t)),zi(e,t+1,p,!0,f)&&(e.dump&&Oa===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(B3,"writeBlockMapping");function kO(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,qO.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(DO.call(c.represent,u))n=c.represent[u](t,u);else throw new Pa("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(kO,"detectType");function zi(e,t,r,n,i,s){e.tag=null,e.dump=r,kO(e,r,!1)||kO(e,r,!0);var a=qO.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?(B3(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(H3(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?(F3(e,p,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(L3(e,p,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&k3(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new Pa("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(zi,"writeNode");function V3(e,t){var r=[],n=[],i,s;for(gm(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(V3,"getDuplicateReferences");function gm(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)gm(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)gm(e[n[i]],t,r)}o(gm,"inspectNode");function QO(e,t){t=t||{};var r=new T3(t);return r.noRefs||V3(e,r),zi(r,0,e,!0,!0)?r.dump+`
44
- `:""}o(QO,"dump");function U3(e,t){return QO(e,Ea.extend({schema:p3},t))}o(U3,"safeDump");bm.exports.dump=QO;bm.exports.safeDump=U3});var eE=v((Q9,Ye)=>{"use strict";var Hu=IO(),XO=JO();function Bu(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(Bu,"deprecated");Ye.exports.Type=ut();Ye.exports.Schema=Bi();Ye.exports.FAILSAFE_SCHEMA=ju();Ye.exports.JSON_SCHEMA=um();Ye.exports.CORE_SCHEMA=lm();Ye.exports.DEFAULT_SAFE_SCHEMA=es();Ye.exports.DEFAULT_FULL_SCHEMA=_a();Ye.exports.load=Hu.load;Ye.exports.loadAll=Hu.loadAll;Ye.exports.safeLoad=Hu.safeLoad;Ye.exports.safeLoadAll=Hu.safeLoadAll;Ye.exports.dump=XO.dump;Ye.exports.safeDump=XO.safeDump;Ye.exports.YAMLException=Jo();Ye.exports.MINIMAL_SCHEMA=ju();Ye.exports.SAFE_SCHEMA=es();Ye.exports.DEFAULT_SCHEMA=_a();Ye.exports.scan=Bu("scan");Ye.exports.parse=Bu("parse");Ye.exports.compose=Bu("compose");Ye.exports.addConstructor=Bu("addConstructor")});var rE=v((X9,tE)=>{"use strict";var G3=eE();tE.exports=G3});var iE=v((eU,nE)=>{"use strict";var{ParserError:z3}=Nr(),Z3=rE();nE.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 Z3.safeLoad(t)}catch(r){throw new z3(r.message,e.url)}else return t}}});var sE=v((tU,oE)=>{"use strict";var{ParserError:W3}=Nr(),K3=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;oE.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&K3.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 W3("data is not text",e.url)}}});var cE=v((rU,aE)=>{"use strict";var Y3=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;aE.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&Y3.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var fE=v((nU,lE)=>{"use strict";var Q3=require("fs"),{ono:vm}=wr(),uE=Jt(),{ResolverError:_m}=Nr();lE.exports={order:100,canRead(e){return uE.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=uE.toFileSystemPath(e.url)}catch(i){r(new _m(vm.uri(i,`Malformed URI: ${e.url}`),e.url))}try{Q3.readFile(n,(i,s)=>{i?r(new _m(vm(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new _m(vm(i,`Error opening file "${n}"`),n))}})}}});var mE=v((iU,hE)=>{"use strict";var J3=require("http"),X3=require("https"),{ono:Vu}=wr(),xa=Jt(),{ResolverError:pE}=Nr();hE.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return xa.isHttp(e.url)},read(e){let t=xa.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=xa.parse(location.href).protocol),dE(t,this)}};function dE(e,t,r){return new Promise((n,i)=>{e=xa.parse(e),r=r||[],r.push(e.href),eq(e,t).then(s=>{if(s.statusCode>=400)throw Vu({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new pE(Vu({status:s.statusCode},`Error downloading ${r[0]}.
43
+ `+e.slice(a+1):u+=e.slice(i),u.slice(1)}o(NO,"foldLine");function z3(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+=AO((r-55296)*1024+n-56320+65536),s++;continue}i=$t[r],t+=!i&&ts(r)?e[s]:i||AO(r)}return t}o(z3,"escapeString");function Z3(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Gi(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(Z3,"writeFlowSequence");function W3(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)Gi(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=gm(e,t)),e.dump&&ba===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(W3,"writeBlockSequence");function K3(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],Gi(e,t,u,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Gi(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}o(K3,"writeFlowMapping");function Y3(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 _a("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=gm(e,t)),l=a[c],p=r[l],Gi(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&ba===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=gm(e,t)),Gi(e,t+1,p,!0,f)&&(e.dump&&ba===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(Y3,"writeBlockMapping");function jO(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,MO.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(kO.call(c.represent,u))n=c.represent[u](t,u);else throw new _a("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(jO,"detectType");function Gi(e,t,r,n,i,s){e.tag=null,e.dump=r,jO(e,r,!1)||jO(e,r,!0);var a=MO.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?(Y3(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(K3(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?(W3(e,p,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(Z3(e,p,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&U3(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new _a("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(Gi,"writeNode");function Q3(e,t){var r=[],n=[],i,s;for(ym(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(Q3,"getDuplicateReferences");function ym(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)ym(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)ym(e[n[i]],t,r)}o(ym,"inspectNode");function KO(e,t){t=t||{};var r=new L3(t);return r.noRefs||Q3(e,r),Gi(r,0,e,!0,!0)?r.dump+`
44
+ `:""}o(KO,"dump");function J3(e,t){return KO(e,va.extend({schema:_3},t))}o(J3,"safeDump");vm.exports.dump=KO;vm.exports.safeDump=J3});var JO=v((eU,Ke)=>{"use strict";var Ru=wO(),QO=YO();function Nu(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(Nu,"deprecated");Ke.exports.Type=ut();Ke.exports.Schema=Hi();Ke.exports.FAILSAFE_SCHEMA=xu();Ke.exports.JSON_SCHEMA=lm();Ke.exports.CORE_SCHEMA=fm();Ke.exports.DEFAULT_SAFE_SCHEMA=Qo();Ke.exports.DEFAULT_FULL_SCHEMA=ga();Ke.exports.load=Ru.load;Ke.exports.loadAll=Ru.loadAll;Ke.exports.safeLoad=Ru.safeLoad;Ke.exports.safeLoadAll=Ru.safeLoadAll;Ke.exports.dump=QO.dump;Ke.exports.safeDump=QO.safeDump;Ke.exports.YAMLException=Ko();Ke.exports.MINIMAL_SCHEMA=xu();Ke.exports.SAFE_SCHEMA=Qo();Ke.exports.DEFAULT_SCHEMA=ga();Ke.exports.scan=Nu("scan");Ke.exports.parse=Nu("parse");Ke.exports.compose=Nu("compose");Ke.exports.addConstructor=Nu("addConstructor")});var eE=v((rU,XO)=>{"use strict";var X3=JO();XO.exports=X3});var rE=v((nU,tE)=>{"use strict";var{ParserError:eq}=Rr(),tq=eE();tE.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 tq.safeLoad(t)}catch(r){throw new eq(r.message,e.url)}else return t}}});var iE=v((iU,nE)=>{"use strict";var{ParserError:rq}=Rr(),nq=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;nE.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&nq.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 rq("data is not text",e.url)}}});var sE=v((oU,oE)=>{"use strict";var iq=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;oE.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&iq.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var uE=v((sU,cE)=>{"use strict";var oq=require("fs"),{ono:_m}=$r(),aE=Jt(),{ResolverError:Sm}=Rr();cE.exports={order:100,canRead(e){return aE.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=aE.toFileSystemPath(e.url)}catch(i){r(new Sm(_m.uri(i,`Malformed URI: ${e.url}`),e.url))}try{oq.readFile(n,(i,s)=>{i?r(new Sm(_m(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new Sm(_m(i,`Error opening file "${n}"`),n))}})}}});var dE=v((aU,pE)=>{"use strict";var sq=require("http"),aq=require("https"),{ono:ju}=$r(),Sa=Jt(),{ResolverError:lE}=Rr();pE.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Sa.isHttp(e.url)},read(e){let t=Sa.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Sa.parse(location.href).protocol),fE(t,this)}};function fE(e,t,r){return new Promise((n,i)=>{e=Sa.parse(e),r=r||[],r.push(e.href),cq(e,t).then(s=>{if(s.statusCode>=400)throw ju({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new lE(ju({status:s.statusCode},`Error downloading ${r[0]}.
45
45
  Too many redirects:
46
46
  ${r.join(`
47
- `)}`)));else if(s.headers.location){let a=xa.resolve(e,s.headers.location);dE(a,t,r).then(n,i)}else throw Vu({status:s.statusCode},`HTTP ${s.statusCode} redirect with no location header`);else n(s.body||Buffer.alloc(0))}).catch(s=>{i(new pE(Vu(s,`Error downloading ${e.href}`),e.href))})})}o(dE,"download");function eq(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?X3:J3).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(eq,"get")});var Em=v((sU,yE)=>{"use strict";var tq=pS(),rq=iE(),nq=sE(),iq=cE(),oq=fE(),sq=mE();yE.exports=Om;function Om(e){Sm(this,Om.defaults),Sm(this,e)}o(Om,"$RefParserOptions");Om.defaults={parse:{json:tq,yaml:rq,text:nq,binary:iq},resolve:{file:oq,http:sq,external:!0},continueOnError:!1,dereference:{circular:!0}};function Sm(e,t){if(gE(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];gE(s)?e[i]=Sm(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(Sm,"merge");function gE(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(gE,"isMergeable")});var Pm=v((cU,vE)=>{"use strict";var bE=Em();vE.exports=aq;function aq(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 bE||(n=new bE(n)),{path:t,schema:r,options:n,callback:i}}o(aq,"normalizeArgs")});var SE=v((lU,_E)=>{"use strict";var xm=Em(),cq=nm(),uq=sm(),lq=require("util");_E.exports=Uu;function Uu(e){xm.call(this,Uu.defaults),xm.apply(this,arguments)}o(Uu,"ParserOptions");Uu.defaults={validate:{schema:cq,spec:uq}};lq.inherits(Uu,xm)});var EE=v((pU,OE)=>{"use strict";function fq(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(fq,"makeNext");OE.exports=fq()});var $m=v((hU,xE)=>{"use strict";var PE=EE();xE.exports=o(function(t,r){if(t){r.then(function(n){PE(function(){t(null,n)})},function(n){PE(function(){t(n)})});return}else return r},"maybe")});var $a=v((gU,AE)=>{"use strict";AE.exports=Zn;var wm=os(),Am=Jt(),{JSONParserError:pq,InvalidPointerError:dq,MissingPointerError:hq,isHandledError:mq}=Nr(),gq=/\//g,yq=/~/g,bq=/~1/g,vq=/~0/g;function Zn(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(Zn,"Pointer");Zn.prototype.resolve=function(e,t,r){let n=Zn.parse(this.path,this.originalPath);this.value=wE(e);for(let i=0;i<n.length;i++){if(Gu(this,t)&&(this.path=Zn.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 hq(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&Am.resolve(this.path,this.value.$ref)!==r)&&Gu(this,t),this};Zn.prototype.set=function(e,t,r){let n=Zn.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=wE(e);for(let s=0;s<n.length-1;s++)Gu(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=$E(this,i,{});return Gu(this,r),i=n[n.length-1],$E(this,i,t),e};Zn.parse=function(e,t){let r=Am.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(bq,"/").replace(vq,"~"));if(r[0]!=="")throw new dq(r,t===void 0?e:t);return r.slice(1)};Zn.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(yq,"~0").replace(gq,"~1"))}return e};function Gu(e,t){if(wm.isAllowed$Ref(e.value,t)){let r=Am.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,wm.isExtended$Ref(e.value)?(e.value=wm.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(Gu,"resolveIf$Ref");function $E(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 pq(`Error assigning $ref pointer "${e.path}".
48
- Cannot set "${t}" of a non-object.`);return r}o($E,"setValue");function wE(e){if(mq(e))throw e;return e}o(wE,"unwrapOrThrow")});var os=v((bU,TE)=>{"use strict";TE.exports=Mt;var CE=$a(),{InvalidPointerError:_q,isHandledError:Sq,normalizeError:IE}=Nr(),{safePointerToPath:Oq,stripHash:Eq,getHash:Pq}=Jt();function Mt(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}o(Mt,"$Ref");Mt.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(IE)):this.errors.push(IE(e))};Mt.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};Mt.prototype.get=function(e,t){return this.resolve(e,t).value};Mt.prototype.resolve=function(e,t,r,n){let i=new CE(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!Sq(s))throw s;return s.path===null&&(s.path=Oq(Pq(n))),s instanceof _q&&(s.source=Eq(n)),this.addError(s),null}};Mt.prototype.set=function(e,t){let r=new CE(this,e);this.value=r.set(this.value,t)};Mt.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};Mt.isExternal$Ref=function(e){return Mt.is$Ref(e)&&e.$ref[0]!=="#"};Mt.isAllowed$Ref=function(e,t){if(Mt.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};Mt.isExtended$Ref=function(e){return Mt.is$Ref(e)&&Object.keys(e).length>1};Mt.dereference=function(e,t){if(t&&typeof t=="object"&&Mt.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 ME=v((_U,jE)=>{"use strict";var{ono:RE}=wr(),xq=os(),Wn=Jt();jE.exports=jr;function jr(){this.circular=!1,this._$refs={},this._root$Ref=null}o(jr,"$Refs");jr.prototype.paths=function(e){return NE(this._$refs,arguments).map(r=>r.decoded)};jr.prototype.values=function(e){let t=this._$refs;return NE(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};jr.prototype.toJSON=jr.prototype.values;jr.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};jr.prototype.get=function(e,t){return this._resolve(e,"",t).value};jr.prototype.set=function(e,t){let r=Wn.resolve(this._root$Ref.path,e),n=Wn.stripHash(r),i=this._$refs[n];if(!i)throw RE(`Error resolving $ref pointer "${e}".
49
- "${n}" not found.`);i.set(r,t)};jr.prototype._add=function(e){let t=Wn.stripHash(e),r=new xq;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};jr.prototype._resolve=function(e,t,r){let n=Wn.resolve(this._root$Ref.path,e),i=Wn.stripHash(n),s=this._$refs[i];if(!s)throw RE(`Error resolving $ref pointer "${e}".
50
- "${i}" not found.`);return s.resolve(n,r,e,t)};jr.prototype._get$Ref=function(e){e=Wn.resolve(this._root$Ref.path,e);let t=Wn.stripHash(e);return this._$refs[t]};function NE(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"?Wn.toFileSystemPath(n,!0):n}))}o(NE,"getPaths")});var qE=v(wa=>{"use strict";wa.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};wa.filter=function(e,t,r){return e.filter(n=>!!kE(n,t,r))};wa.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)};wa.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=kE(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 kE(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(kE,"getResult")});var Cm=v((PU,HE)=>{"use strict";var{ono:Im}=wr(),DE=Jt(),Kn=qE(),{ResolverError:LE,ParserError:FE,UnmatchedParserError:$q,UnmatchedResolverError:wq,isHandledError:Aq}=Nr();HE.exports=Iq;async function Iq(e,t,r){e=DE.stripHash(e);let n=t._add(e),i={url:e,extension:DE.getExtension(e)};try{let s=await Cq(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await Tq(i,r,t);return n.value=a.result,a.result}catch(s){throw Aq(s)&&(n.value=s),s}}o(Iq,"parse");function Cq(e,t,r){return new Promise((n,i)=>{let s=Kn.all(t.resolve);s=Kn.filter(s,"canRead",e),Kn.sort(s),Kn.run(s,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new wq(e.url)):!c||!("error"in c)?i(Im.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof LE?i(c.error):i(new LE(c,e.url))}o(a,"onError")})}o(Cq,"readFile");function Tq(e,t,r){return new Promise((n,i)=>{let s=Kn.all(t.parse),a=Kn.filter(s,"canParse",e),c=a.length>0?a:s;Kn.sort(c),Kn.run(c,"parse",e,r).then(u,l);function u(p){!p.plugin.allowEmpty&&Rq(p.result)?i(Im.syntax(`Error parsing "${e.url}" as ${p.plugin.name}.
51
- Parsed value is empty`)):n(p)}o(u,"onParsed");function l(p){!p&&t.continueOnError?i(new $q(e.url)):!p||!("error"in p)?i(Im.syntax(`Unable to parse ${e.url}`)):p.error instanceof FE?i(p.error):i(new FE(p.error.message,e.url))}o(l,"onError")})}o(Tq,"parseFile");function Rq(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(Rq,"isEmpty")});var GE=v(($U,UE)=>{"use strict";var BE=os(),Nq=$a(),jq=Cm(),Aa=Jt(),{isHandledError:Mq}=Nr();UE.exports=kq;function kq(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=Tm(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(kq,"resolveExternal");function Tm(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(BE.isExternal$Ref(e))i.push(VE(e,t,r,n));else for(let s of Object.keys(e)){let a=Nq.join(t,s),c=e[s];BE.isExternal$Ref(c)?i.push(VE(c,a,r,n)):i=i.concat(Tm(c,a,r,n))}return i}o(Tm,"crawl");async function VE(e,t,r,n){let i=Aa.resolve(t,e.$ref),s=Aa.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await jq(i,r,n),c=Tm(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!Mq(a))throw a;return r._$refs[s]&&(a.source=Aa.stripHash(t),a.path=Aa.safePointerToPath(Aa.getHash(t))),[]}}o(VE,"resolve$Ref")});var WE=v((AU,ZE)=>{"use strict";var zu=os(),Ia=$a(),Rm=Jt();ZE.exports=qq;function qq(e,t){let r=[];Nm(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),Dq(r)}o(qq,"bundle");function Nm(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(zu.isAllowed$Ref(u))zE(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=Ia.join(r,p),d=Ia.join(n,p),h=u[p];zu.isAllowed$Ref(h)?zE(u,p,r,d,i,s,a,c):Nm(u,p,f,d,i,s,a,c)}}}o(Nm,"crawl");function zE(e,t,r,n,i,s,a,c){let u=t===null?e:e[t],l=Rm.resolve(r,u.$ref),p=a._resolve(l,n,c);if(p===null)return;let f=Ia.parse(n).length,d=Rm.stripHash(p.path),h=Rm.getHash(p.path),y=d!==a._root$Ref.path,b=zu.isExtended$Ref(u);i+=p.indirections;let g=Lq(s,e,t);if(g)if(f<g.depth||i<g.indirections)Fq(s,g);else return;s.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:b,external:y,indirections:i}),g||Nm(p.value,null,p.path,n,i+1,s,a,c)}o(zE,"inventory$Ref");function Dq(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=Ia.join(n,Ia.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=zu.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(Dq,"remap");function Lq(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(Lq,"findInInventory");function Fq(e,t){let r=e.indexOf(t);e.splice(r,1)}o(Fq,"removeFromInventory")});var km=v((CU,JE)=>{"use strict";var jm=os(),KE=$a(),{ono:Hq}=wr(),Bq=Jt();JE.exports=Vq;function Vq(e,t){let r=Mm(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(Vq,"dereference");function Mm(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),jm.isAllowed$Ref(e,s))a=YE(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=KE.join(t,u),p=KE.join(r,u),f=e[u],d=!1;jm.isAllowed$Ref(f,s)?(a=YE(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(f)===-1?(a=Mm(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=QE(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(Mm,"crawl");function YE(e,t,r,n,i,s){let a=Bq.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&&QE(t,i,s);let p=jm.dereference(e,c.value);if(!l){let f=Mm(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(YE,"dereference$Ref");function QE(e,t,r){if(t.circular=!0,!r.dereference.circular)throw Hq.reference(`Circular $ref pointer found at ${e}`);return!0}o(QE,"foundCircularReference")});var rP=v((RU,Jr)=>{"use strict";var tP=ME(),Uq=Cm(),Zu=Pm(),Gq=GE(),zq=WE(),Zq=km(),ss=Jt(),{JSONParserError:Wq,InvalidPointerError:Kq,MissingPointerError:Yq,ResolverError:Qq,ParserError:Jq,UnmatchedParserError:Xq,UnmatchedResolverError:eD,isHandledError:tD,JSONParserErrorGroup:XE}=Nr(),Mr=$m(),{ono:eP}=wr();Jr.exports=Qr;Jr.exports.default=Qr;Jr.exports.JSONParserError=Wq;Jr.exports.InvalidPointerError=Kq;Jr.exports.MissingPointerError=Yq;Jr.exports.ResolverError=Qq;Jr.exports.ParserError=Jq;Jr.exports.UnmatchedParserError=Xq;Jr.exports.UnmatchedResolverError=eD;function Qr(){this.schema=null,this.$refs=new tP}o(Qr,"$RefParser");Qr.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");Qr.prototype.parse=o(async function(t,r,n,i){let s=Zu(arguments),a;if(!s.path&&!s.schema){let l=eP(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return Mr(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new tP;let c="http";if(ss.isFileSystemPath(s.path)&&(s.path=ss.fromFileSystemPath(s.path),c="file"),s.path=ss.resolve(ss.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=Uq(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,Mr(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,Mr(s.callback,Promise.resolve(u.schema));throw eP.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!tD(l)?Mr(s.callback,Promise.reject(l)):(this.$refs._$refs[ss.stripHash(s.path)]&&this.$refs._$refs[ss.stripHash(s.path)].addError(l),Mr(s.callback,Promise.resolve(null)))}},"parse");Qr.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");Qr.prototype.resolve=o(async function(t,r,n,i){let s=this,a=Zu(arguments);try{return await this.parse(a.path,a.schema,a.options),await Gq(s,a.options),qm(s),Mr(a.callback,Promise.resolve(s.$refs))}catch(c){return Mr(a.callback,Promise.reject(c))}},"resolve");Qr.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");Qr.prototype.bundle=o(async function(t,r,n,i){let s=this,a=Zu(arguments);try{return await this.resolve(a.path,a.schema,a.options),zq(s,a.options),qm(s),Mr(a.callback,Promise.resolve(s.schema))}catch(c){return Mr(a.callback,Promise.reject(c))}},"bundle");Qr.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");Qr.prototype.dereference=o(async function(t,r,n,i){let s=this,a=Zu(arguments);try{return await this.resolve(a.path,a.schema,a.options),Zq(s,a.options),qm(s),Mr(a.callback,Promise.resolve(s.schema))}catch(c){return Mr(a.callback,Promise.reject(c))}},"dereference");function qm(e){if(XE.getParserErrors(e).length>0)throw new XE(e)}o(qm,"finalize")});var Dm=v((jU,sP)=>{"use strict";var rD=nm(),nD=sm(),nP=Pm(),iP=Gc(),oP=SE(),Wu=$m(),{ono:kr}=wr(),Zi=rP(),iD=km();sP.exports=Xr;function Xr(){Zi.apply(this,arguments)}o(Xr,"SwaggerParser");iP.inherits(Xr,Zi);Xr.parse=Zi.parse;Xr.resolve=Zi.resolve;Xr.bundle=Zi.bundle;Xr.dereference=Zi.dereference;Object.defineProperty(Xr.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});Xr.prototype.parse=async function(e,t,r,n){let i=nP(arguments);i.options=new oP(i.options);try{let s=await Zi.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 kr.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw kr.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw kr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw kr.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 kr.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 kr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw kr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw kr.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw kr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw kr.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}iP.fixOasRelativeServers(s,i.path)}return Wu(i.callback,Promise.resolve(s))}catch(s){return Wu(i.callback,Promise.reject(s))}};Xr.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};Xr.prototype.validate=async function(e,t,r,n){let i=this,s=nP(arguments);s.options=new oP(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&&(rD(i.api),i.$refs.circular)){if(a===!0)iD(i,s.options);else if(a===!1)throw kr.reference("The API contains circular references")}return s.options.validate.spec&&nD(i.api),Wu(s.callback,Promise.resolve(i.schema))}catch(c){return Wu(s.callback,Promise.reject(c))}}});var kt=v(rr=>{"use strict";rr.__esModule=!0;rr.extend=Ux;rr.indexOf=KD;rr.escapeExpression=YD;rr.isEmpty=QD;rr.createFrame=JD;rr.blockParams=XD;rr.appendContextPath=e4;var GD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},zD=/[&<>"'`=]/g,ZD=/[&<>"'`=]/;function WD(e){return GD[e]}o(WD,"escapeChar");function Ux(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(Ux,"extend");var fg=Object.prototype.toString;rr.toString=fg;var lg=o(function(t){return typeof t=="function"},"isFunction");lg(/x/)&&(rr.isFunction=lg=o(function(e){return typeof e=="function"&&fg.call(e)==="[object Function]"},"isFunction"));rr.isFunction=lg;var Gx=Array.isArray||function(e){return e&&typeof e=="object"?fg.call(e)==="[object Array]":!1};rr.isArray=Gx;function KD(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(KD,"indexOf");function YD(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return ZD.test(e)?e.replace(zD,WD):e}o(YD,"escapeExpression");function QD(e){return!e&&e!==0?!0:!!(Gx(e)&&e.length===0)}o(QD,"isEmpty");function JD(e){var t=Ux({},e);return t._parent=e,t}o(JD,"createFrame");function XD(e,t){return e.path=t,e}o(XD,"blockParams");function e4(e,t){return(e?e+".":"")+t}o(e4,"appendContextPath")});var vr=v((vl,zx)=>{"use strict";vl.__esModule=!0;var pg=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function dg(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<pg.length;u++)this[pg[u]]=c[pg[u]];Error.captureStackTrace&&Error.captureStackTrace(this,dg);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(dg,"Exception");dg.prototype=new Error;vl.default=dg;zx.exports=vl.default});var Wx=v((_l,Zx)=>{"use strict";_l.__esModule=!0;var hg=kt();_l.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(hg.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=hg.createFrame(r.data);s.contextPath=hg.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};Zx.exports=_l.default});var Yx=v((Sl,Kx)=>{"use strict";Sl.__esModule=!0;function t4(e){return e&&e.__esModule?e:{default:e}}o(t4,"_interopRequireDefault");var Wa=kt(),r4=vr(),n4=t4(r4);Sl.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new n4.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=Wa.appendContextPath(r.data.contextPath,r.ids[0])+"."),Wa.isFunction(t)&&(t=t.call(this)),r.data&&(c=Wa.createFrame(r.data));function l(y,b,g){c&&(c.key=y,c.index=b,c.first=b===0,c.last=!!g,u&&(c.contextPath=u+y)),a=a+n(t[y],{data:c,blockParams:Wa.blockParams([t[y],y],[u+y,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(Wa.isArray(t))for(var p=t.length;s<p;s++)s in t&&l(s,s,s===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;s<p;s++)l(s,s,s===t.length-1)}else(function(){var y=void 0;Object.keys(t).forEach(function(b){y!==void 0&&l(y,s-1),y=b,s++}),y!==void 0&&l(y,s-1,!0)})();return s===0&&(a=i(this)),a})};Kx.exports=Sl.default});var Jx=v((Ol,Qx)=>{"use strict";Ol.__esModule=!0;function i4(e){return e&&e.__esModule?e:{default:e}}o(i4,"_interopRequireDefault");var o4=vr(),s4=i4(o4);Ol.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new s4.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};Qx.exports=Ol.default});var r1=v((El,t1)=>{"use strict";El.__esModule=!0;function a4(e){return e&&e.__esModule?e:{default:e}}o(a4,"_interopRequireDefault");var Xx=kt(),c4=vr(),e1=a4(c4);El.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new e1.default("#if requires exactly one argument");return Xx.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||Xx.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new e1.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};t1.exports=El.default});var i1=v((Pl,n1)=>{"use strict";Pl.__esModule=!0;Pl.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)})};n1.exports=Pl.default});var s1=v((xl,o1)=>{"use strict";xl.__esModule=!0;xl.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};o1.exports=xl.default});var c1=v(($l,a1)=>{"use strict";$l.__esModule=!0;function u4(e){return e&&e.__esModule?e:{default:e}}o(u4,"_interopRequireDefault");var Ka=kt(),l4=vr(),f4=u4(l4);$l.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new f4.default("#with requires exactly one argument");Ka.isFunction(t)&&(t=t.call(this));var n=r.fn;if(Ka.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=Ka.createFrame(r.data),i.contextPath=Ka.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:Ka.blockParams([t],[i&&i.contextPath])})})};a1.exports=$l.default});var mg=v(wl=>{"use strict";wl.__esModule=!0;wl.registerDefaultHelpers=$4;wl.moveHelperToHooks=w4;function ro(e){return e&&e.__esModule?e:{default:e}}o(ro,"_interopRequireDefault");var p4=Wx(),d4=ro(p4),h4=Yx(),m4=ro(h4),g4=Jx(),y4=ro(g4),b4=r1(),v4=ro(b4),_4=i1(),S4=ro(_4),O4=s1(),E4=ro(O4),P4=c1(),x4=ro(P4);function $4(e){d4.default(e),m4.default(e),y4.default(e),v4.default(e),S4.default(e),E4.default(e),x4.default(e)}o($4,"registerDefaultHelpers");function w4(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(w4,"moveHelperToHooks")});var l1=v((Al,u1)=>{"use strict";Al.__esModule=!0;var A4=kt();Al.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var s=t;return r.partials||(r.partials={},s=o(function(a,c){var u=n.partials;n.partials=A4.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};u1.exports=Al.default});var f1=v(gg=>{"use strict";gg.__esModule=!0;gg.registerDefaultDecorators=R4;function I4(e){return e&&e.__esModule?e:{default:e}}o(I4,"_interopRequireDefault");var C4=l1(),T4=I4(C4);function R4(e){T4.default(e)}o(R4,"registerDefaultDecorators")});var yg=v((Il,p1)=>{"use strict";Il.__esModule=!0;var N4=kt(),ms={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=N4.indexOf(ms.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=ms.lookupLevel(t),typeof console<"u"&&ms.lookupLevel(ms.level)<=t){var r=ms.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];console[r].apply(console,i)}},"log")};Il.default=ms;p1.exports=Il.default});var d1=v(bg=>{"use strict";bg.__esModule=!0;bg.createNewLookupObject=M4;var j4=kt();function M4(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return j4.extend.apply(void 0,[Object.create(null)].concat(t))}o(M4,"createNewLookupObject")});var vg=v(Ya=>{"use strict";Ya.__esModule=!0;Ya.createProtoAccessControl=L4;Ya.resultIsAllowed=F4;Ya.resetLoggedProperties=B4;function k4(e){return e&&e.__esModule?e:{default:e}}o(k4,"_interopRequireDefault");var h1=d1(),q4=yg(),D4=k4(q4),Cl=Object.create(null);function L4(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=Object.create(null);return r.__proto__=!1,{properties:{whitelist:h1.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:h1.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(L4,"createProtoAccessControl");function F4(e,t,r){return m1(typeof e=="function"?t.methods:t.properties,r)}o(F4,"resultIsAllowed");function m1(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(H4(t),!1)}o(m1,"checkWhiteList");function H4(e){Cl[e]!==!0&&(Cl[e]=!0,D4.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=Sa.resolve(e,s.headers.location);fE(a,t,r).then(n,i)}else throw ju({status:s.statusCode},`HTTP ${s.statusCode} redirect with no location header`);else n(s.body||Buffer.alloc(0))}).catch(s=>{i(new lE(ju(s,`Error downloading ${e.href}`),e.href))})})}o(fE,"download");function cq(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?aq:sq).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(cq,"get")});var Pm=v((uU,mE)=>{"use strict";var uq=lS(),lq=rE(),fq=iE(),pq=sE(),dq=uE(),hq=dE();mE.exports=Em;function Em(e){Om(this,Em.defaults),Om(this,e)}o(Em,"$RefParserOptions");Em.defaults={parse:{json:uq,yaml:lq,text:fq,binary:pq},resolve:{file:dq,http:hq,external:!0},continueOnError:!1,dereference:{circular:!0}};function Om(e,t){if(hE(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];hE(s)?e[i]=Om(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(Om,"merge");function hE(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(hE,"isMergeable")});var xm=v((fU,yE)=>{"use strict";var gE=Pm();yE.exports=mq;function mq(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 gE||(n=new gE(n)),{path:t,schema:r,options:n,callback:i}}o(mq,"normalizeArgs")});var vE=v((dU,bE)=>{"use strict";var $m=Pm(),gq=im(),yq=am(),bq=require("util");bE.exports=Mu;function Mu(e){$m.call(this,Mu.defaults),$m.apply(this,arguments)}o(Mu,"ParserOptions");Mu.defaults={validate:{schema:gq,spec:yq}};bq.inherits(Mu,$m)});var SE=v((mU,_E)=>{"use strict";function vq(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(vq,"makeNext");_E.exports=vq()});var wm=v((yU,EE)=>{"use strict";var OE=SE();EE.exports=o(function(t,r){if(t){r.then(function(n){OE(function(){t(null,n)})},function(n){OE(function(){t(n)})});return}else return r},"maybe")});var Oa=v((vU,$E)=>{"use strict";$E.exports=Un;var Am=rs(),Im=Jt(),{JSONParserError:_q,InvalidPointerError:Sq,MissingPointerError:Oq,isHandledError:Eq}=Rr(),Pq=/\//g,xq=/~/g,$q=/~1/g,wq=/~0/g;function Un(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(Un,"Pointer");Un.prototype.resolve=function(e,t,r){let n=Un.parse(this.path,this.originalPath);this.value=xE(e);for(let i=0;i<n.length;i++){if(ku(this,t)&&(this.path=Un.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 Oq(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&Im.resolve(this.path,this.value.$ref)!==r)&&ku(this,t),this};Un.prototype.set=function(e,t,r){let n=Un.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=xE(e);for(let s=0;s<n.length-1;s++)ku(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=PE(this,i,{});return ku(this,r),i=n[n.length-1],PE(this,i,t),e};Un.parse=function(e,t){let r=Im.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace($q,"/").replace(wq,"~"));if(r[0]!=="")throw new Sq(r,t===void 0?e:t);return r.slice(1)};Un.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(xq,"~0").replace(Pq,"~1"))}return e};function ku(e,t){if(Am.isAllowed$Ref(e.value,t)){let r=Im.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,Am.isExtended$Ref(e.value)?(e.value=Am.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(ku,"resolveIf$Ref");function PE(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 _q(`Error assigning $ref pointer "${e.path}".
48
+ Cannot set "${t}" of a non-object.`);return r}o(PE,"setValue");function xE(e){if(Eq(e))throw e;return e}o(xE,"unwrapOrThrow")});var rs=v((SU,IE)=>{"use strict";IE.exports=jt;var AE=Oa(),{InvalidPointerError:Aq,isHandledError:Iq,normalizeError:wE}=Rr(),{safePointerToPath:Cq,stripHash:Tq,getHash:Rq}=Jt();function jt(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}o(jt,"$Ref");jt.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(wE)):this.errors.push(wE(e))};jt.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};jt.prototype.get=function(e,t){return this.resolve(e,t).value};jt.prototype.resolve=function(e,t,r,n){let i=new AE(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!Iq(s))throw s;return s.path===null&&(s.path=Cq(Rq(n))),s instanceof Aq&&(s.source=Tq(n)),this.addError(s),null}};jt.prototype.set=function(e,t){let r=new AE(this,e);this.value=r.set(this.value,t)};jt.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};jt.isExternal$Ref=function(e){return jt.is$Ref(e)&&e.$ref[0]!=="#"};jt.isAllowed$Ref=function(e,t){if(jt.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};jt.isExtended$Ref=function(e){return jt.is$Ref(e)&&Object.keys(e).length>1};jt.dereference=function(e,t){if(t&&typeof t=="object"&&jt.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 NE=v((EU,RE)=>{"use strict";var{ono:CE}=$r(),Nq=rs(),Gn=Jt();RE.exports=Nr;function Nr(){this.circular=!1,this._$refs={},this._root$Ref=null}o(Nr,"$Refs");Nr.prototype.paths=function(e){return TE(this._$refs,arguments).map(r=>r.decoded)};Nr.prototype.values=function(e){let t=this._$refs;return TE(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};Nr.prototype.toJSON=Nr.prototype.values;Nr.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};Nr.prototype.get=function(e,t){return this._resolve(e,"",t).value};Nr.prototype.set=function(e,t){let r=Gn.resolve(this._root$Ref.path,e),n=Gn.stripHash(r),i=this._$refs[n];if(!i)throw CE(`Error resolving $ref pointer "${e}".
49
+ "${n}" not found.`);i.set(r,t)};Nr.prototype._add=function(e){let t=Gn.stripHash(e),r=new Nq;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};Nr.prototype._resolve=function(e,t,r){let n=Gn.resolve(this._root$Ref.path,e),i=Gn.stripHash(n),s=this._$refs[i];if(!s)throw CE(`Error resolving $ref pointer "${e}".
50
+ "${i}" not found.`);return s.resolve(n,r,e,t)};Nr.prototype._get$Ref=function(e){e=Gn.resolve(this._root$Ref.path,e);let t=Gn.stripHash(e);return this._$refs[t]};function TE(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"?Gn.toFileSystemPath(n,!0):n}))}o(TE,"getPaths")});var ME=v(Ea=>{"use strict";Ea.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Ea.filter=function(e,t,r){return e.filter(n=>!!jE(n,t,r))};Ea.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)};Ea.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=jE(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 jE(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(jE,"getResult")});var Tm=v((wU,LE)=>{"use strict";var{ono:Cm}=$r(),kE=Jt(),zn=ME(),{ResolverError:qE,ParserError:DE,UnmatchedParserError:jq,UnmatchedResolverError:Mq,isHandledError:kq}=Rr();LE.exports=qq;async function qq(e,t,r){e=kE.stripHash(e);let n=t._add(e),i={url:e,extension:kE.getExtension(e)};try{let s=await Dq(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await Lq(i,r,t);return n.value=a.result,a.result}catch(s){throw kq(s)&&(n.value=s),s}}o(qq,"parse");function Dq(e,t,r){return new Promise((n,i)=>{let s=zn.all(t.resolve);s=zn.filter(s,"canRead",e),zn.sort(s),zn.run(s,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new Mq(e.url)):!c||!("error"in c)?i(Cm.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof qE?i(c.error):i(new qE(c,e.url))}o(a,"onError")})}o(Dq,"readFile");function Lq(e,t,r){return new Promise((n,i)=>{let s=zn.all(t.parse),a=zn.filter(s,"canParse",e),c=a.length>0?a:s;zn.sort(c),zn.run(c,"parse",e,r).then(u,l);function u(p){!p.plugin.allowEmpty&&Fq(p.result)?i(Cm.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 jq(e.url)):!p||!("error"in p)?i(Cm.syntax(`Unable to parse ${e.url}`)):p.error instanceof DE?i(p.error):i(new DE(p.error.message,e.url))}o(l,"onError")})}o(Lq,"parseFile");function Fq(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(Fq,"isEmpty")});var VE=v((IU,BE)=>{"use strict";var FE=rs(),Hq=Oa(),Bq=Tm(),Pa=Jt(),{isHandledError:Vq}=Rr();BE.exports=Uq;function Uq(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=Rm(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(Uq,"resolveExternal");function Rm(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(FE.isExternal$Ref(e))i.push(HE(e,t,r,n));else for(let s of Object.keys(e)){let a=Hq.join(t,s),c=e[s];FE.isExternal$Ref(c)?i.push(HE(c,a,r,n)):i=i.concat(Rm(c,a,r,n))}return i}o(Rm,"crawl");async function HE(e,t,r,n){let i=Pa.resolve(t,e.$ref),s=Pa.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await Bq(i,r,n),c=Rm(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!Vq(a))throw a;return r._$refs[s]&&(a.source=Pa.stripHash(t),a.path=Pa.safePointerToPath(Pa.getHash(t))),[]}}o(HE,"resolve$Ref")});var zE=v((TU,GE)=>{"use strict";var qu=rs(),xa=Oa(),Nm=Jt();GE.exports=Gq;function Gq(e,t){let r=[];jm(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),zq(r)}o(Gq,"bundle");function jm(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(qu.isAllowed$Ref(u))UE(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=xa.join(r,p),d=xa.join(n,p),h=u[p];qu.isAllowed$Ref(h)?UE(u,p,r,d,i,s,a,c):jm(u,p,f,d,i,s,a,c)}}}o(jm,"crawl");function UE(e,t,r,n,i,s,a,c){let u=t===null?e:e[t],l=Nm.resolve(r,u.$ref),p=a._resolve(l,n,c);if(p===null)return;let f=xa.parse(n).length,d=Nm.stripHash(p.path),h=Nm.getHash(p.path),y=d!==a._root$Ref.path,b=qu.isExtended$Ref(u);i+=p.indirections;let g=Zq(s,e,t);if(g)if(f<g.depth||i<g.indirections)Wq(s,g);else return;s.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:b,external:y,indirections:i}),g||jm(p.value,null,p.path,n,i+1,s,a,c)}o(UE,"inventory$Ref");function zq(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=xa.join(n,xa.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=qu.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(zq,"remap");function Zq(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(Zq,"findInInventory");function Wq(e,t){let r=e.indexOf(t);e.splice(r,1)}o(Wq,"removeFromInventory")});var qm=v((NU,YE)=>{"use strict";var Mm=rs(),ZE=Oa(),{ono:Kq}=$r(),Yq=Jt();YE.exports=Qq;function Qq(e,t){let r=km(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(Qq,"dereference");function km(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),Mm.isAllowed$Ref(e,s))a=WE(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=ZE.join(t,u),p=ZE.join(r,u),f=e[u],d=!1;Mm.isAllowed$Ref(f,s)?(a=WE(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(f)===-1?(a=km(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=KE(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(km,"crawl");function WE(e,t,r,n,i,s){let a=Yq.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&&KE(t,i,s);let p=Mm.dereference(e,c.value);if(!l){let f=km(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(WE,"dereference$Ref");function KE(e,t,r){if(t.circular=!0,!r.dereference.circular)throw Kq.reference(`Circular $ref pointer found at ${e}`);return!0}o(KE,"foundCircularReference")});var eP=v((MU,Qr)=>{"use strict";var XE=NE(),Jq=Tm(),Du=xm(),Xq=VE(),eD=zE(),tD=qm(),ns=Jt(),{JSONParserError:rD,InvalidPointerError:nD,MissingPointerError:iD,ResolverError:oD,ParserError:sD,UnmatchedParserError:aD,UnmatchedResolverError:cD,isHandledError:uD,JSONParserErrorGroup:QE}=Rr(),jr=wm(),{ono:JE}=$r();Qr.exports=Yr;Qr.exports.default=Yr;Qr.exports.JSONParserError=rD;Qr.exports.InvalidPointerError=nD;Qr.exports.MissingPointerError=iD;Qr.exports.ResolverError=oD;Qr.exports.ParserError=sD;Qr.exports.UnmatchedParserError=aD;Qr.exports.UnmatchedResolverError=cD;function Yr(){this.schema=null,this.$refs=new XE}o(Yr,"$RefParser");Yr.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");Yr.prototype.parse=o(async function(t,r,n,i){let s=Du(arguments),a;if(!s.path&&!s.schema){let l=JE(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return jr(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new XE;let c="http";if(ns.isFileSystemPath(s.path)&&(s.path=ns.fromFileSystemPath(s.path),c="file"),s.path=ns.resolve(ns.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=Jq(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,jr(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,jr(s.callback,Promise.resolve(u.schema));throw JE.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!uD(l)?jr(s.callback,Promise.reject(l)):(this.$refs._$refs[ns.stripHash(s.path)]&&this.$refs._$refs[ns.stripHash(s.path)].addError(l),jr(s.callback,Promise.resolve(null)))}},"parse");Yr.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");Yr.prototype.resolve=o(async function(t,r,n,i){let s=this,a=Du(arguments);try{return await this.parse(a.path,a.schema,a.options),await Xq(s,a.options),Dm(s),jr(a.callback,Promise.resolve(s.$refs))}catch(c){return jr(a.callback,Promise.reject(c))}},"resolve");Yr.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");Yr.prototype.bundle=o(async function(t,r,n,i){let s=this,a=Du(arguments);try{return await this.resolve(a.path,a.schema,a.options),eD(s,a.options),Dm(s),jr(a.callback,Promise.resolve(s.schema))}catch(c){return jr(a.callback,Promise.reject(c))}},"bundle");Yr.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");Yr.prototype.dereference=o(async function(t,r,n,i){let s=this,a=Du(arguments);try{return await this.resolve(a.path,a.schema,a.options),tD(s,a.options),Dm(s),jr(a.callback,Promise.resolve(s.schema))}catch(c){return jr(a.callback,Promise.reject(c))}},"dereference");function Dm(e){if(QE.getParserErrors(e).length>0)throw new QE(e)}o(Dm,"finalize")});var Lm=v((qU,iP)=>{"use strict";var lD=im(),fD=am(),tP=xm(),rP=kc(),nP=vE(),Lu=wm(),{ono:Mr}=$r(),zi=eP(),pD=qm();iP.exports=Jr;function Jr(){zi.apply(this,arguments)}o(Jr,"SwaggerParser");rP.inherits(Jr,zi);Jr.parse=zi.parse;Jr.resolve=zi.resolve;Jr.bundle=zi.bundle;Jr.dereference=zi.dereference;Object.defineProperty(Jr.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});Jr.prototype.parse=async function(e,t,r,n){let i=tP(arguments);i.options=new nP(i.options);try{let s=await zi.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 Mr.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw Mr.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw Mr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw Mr.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 Mr.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 Mr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw Mr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw Mr.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw Mr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw Mr.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}rP.fixOasRelativeServers(s,i.path)}return Lu(i.callback,Promise.resolve(s))}catch(s){return Lu(i.callback,Promise.reject(s))}};Jr.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};Jr.prototype.validate=async function(e,t,r,n){let i=this,s=tP(arguments);s.options=new nP(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&&(lD(i.api),i.$refs.circular)){if(a===!0)pD(i,s.options);else if(a===!1)throw Mr.reference("The API contains circular references")}return s.options.validate.spec&&fD(i.api),Lu(s.callback,Promise.resolve(i.schema))}catch(c){return Lu(s.callback,Promise.reject(c))}}});var Mt=v(rr=>{"use strict";rr.__esModule=!0;rr.extend=Jx;rr.indexOf=o4;rr.escapeExpression=s4;rr.isEmpty=a4;rr.createFrame=c4;rr.blockParams=u4;rr.appendContextPath=l4;var t4={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},r4=/[&<>"'`=]/g,n4=/[&<>"'`=]/;function i4(e){return t4[e]}o(i4,"escapeChar");function Jx(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(Jx,"extend");var yg=Object.prototype.toString;rr.toString=yg;var gg=o(function(t){return typeof t=="function"},"isFunction");gg(/x/)&&(rr.isFunction=gg=o(function(e){return typeof e=="function"&&yg.call(e)==="[object Function]"},"isFunction"));rr.isFunction=gg;var Xx=Array.isArray||function(e){return e&&typeof e=="object"?yg.call(e)==="[object Array]":!1};rr.isArray=Xx;function o4(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(o4,"indexOf");function s4(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return n4.test(e)?e.replace(r4,i4):e}o(s4,"escapeExpression");function a4(e){return!e&&e!==0?!0:!!(Xx(e)&&e.length===0)}o(a4,"isEmpty");function c4(e){var t=Jx({},e);return t._parent=e,t}o(c4,"createFrame");function u4(e,t){return e.path=t,e}o(u4,"blockParams");function l4(e,t){return(e?e+".":"")+t}o(l4,"appendContextPath")});var br=v((El,e1)=>{"use strict";El.__esModule=!0;var bg=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function vg(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<bg.length;u++)this[bg[u]]=c[bg[u]];Error.captureStackTrace&&Error.captureStackTrace(this,vg);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(vg,"Exception");vg.prototype=new Error;El.default=vg;e1.exports=El.default});var r1=v((Pl,t1)=>{"use strict";Pl.__esModule=!0;var _g=Mt();Pl.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(_g.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=_g.createFrame(r.data);s.contextPath=_g.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};t1.exports=Pl.default});var i1=v((xl,n1)=>{"use strict";xl.__esModule=!0;function f4(e){return e&&e.__esModule?e:{default:e}}o(f4,"_interopRequireDefault");var Wa=Mt(),p4=br(),d4=f4(p4);xl.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new d4.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=Wa.appendContextPath(r.data.contextPath,r.ids[0])+"."),Wa.isFunction(t)&&(t=t.call(this)),r.data&&(c=Wa.createFrame(r.data));function l(y,b,g){c&&(c.key=y,c.index=b,c.first=b===0,c.last=!!g,u&&(c.contextPath=u+y)),a=a+n(t[y],{data:c,blockParams:Wa.blockParams([t[y],y],[u+y,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(Wa.isArray(t))for(var p=t.length;s<p;s++)s in t&&l(s,s,s===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;s<p;s++)l(s,s,s===t.length-1)}else(function(){var y=void 0;Object.keys(t).forEach(function(b){y!==void 0&&l(y,s-1),y=b,s++}),y!==void 0&&l(y,s-1,!0)})();return s===0&&(a=i(this)),a})};n1.exports=xl.default});var s1=v(($l,o1)=>{"use strict";$l.__esModule=!0;function h4(e){return e&&e.__esModule?e:{default:e}}o(h4,"_interopRequireDefault");var m4=br(),g4=h4(m4);$l.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new g4.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};o1.exports=$l.default});var l1=v((wl,u1)=>{"use strict";wl.__esModule=!0;function y4(e){return e&&e.__esModule?e:{default:e}}o(y4,"_interopRequireDefault");var a1=Mt(),b4=br(),c1=y4(b4);wl.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new c1.default("#if requires exactly one argument");return a1.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||a1.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new c1.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};u1.exports=wl.default});var p1=v((Al,f1)=>{"use strict";Al.__esModule=!0;Al.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)})};f1.exports=Al.default});var h1=v((Il,d1)=>{"use strict";Il.__esModule=!0;Il.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};d1.exports=Il.default});var g1=v((Cl,m1)=>{"use strict";Cl.__esModule=!0;function v4(e){return e&&e.__esModule?e:{default:e}}o(v4,"_interopRequireDefault");var Ka=Mt(),_4=br(),S4=v4(_4);Cl.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new S4.default("#with requires exactly one argument");Ka.isFunction(t)&&(t=t.call(this));var n=r.fn;if(Ka.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=Ka.createFrame(r.data),i.contextPath=Ka.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:Ka.blockParams([t],[i&&i.contextPath])})})};m1.exports=Cl.default});var Sg=v(Tl=>{"use strict";Tl.__esModule=!0;Tl.registerDefaultHelpers=k4;Tl.moveHelperToHooks=q4;function to(e){return e&&e.__esModule?e:{default:e}}o(to,"_interopRequireDefault");var O4=r1(),E4=to(O4),P4=i1(),x4=to(P4),$4=s1(),w4=to($4),A4=l1(),I4=to(A4),C4=p1(),T4=to(C4),R4=h1(),N4=to(R4),j4=g1(),M4=to(j4);function k4(e){E4.default(e),x4.default(e),w4.default(e),I4.default(e),T4.default(e),N4.default(e),M4.default(e)}o(k4,"registerDefaultHelpers");function q4(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(q4,"moveHelperToHooks")});var b1=v((Rl,y1)=>{"use strict";Rl.__esModule=!0;var D4=Mt();Rl.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=D4.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};y1.exports=Rl.default});var v1=v(Og=>{"use strict";Og.__esModule=!0;Og.registerDefaultDecorators=B4;function L4(e){return e&&e.__esModule?e:{default:e}}o(L4,"_interopRequireDefault");var F4=b1(),H4=L4(F4);function B4(e){H4.default(e)}o(B4,"registerDefaultDecorators")});var Eg=v((Nl,_1)=>{"use strict";Nl.__esModule=!0;var V4=Mt(),ms={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=V4.indexOf(ms.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=ms.lookupLevel(t),typeof console<"u"&&ms.lookupLevel(ms.level)<=t){var r=ms.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")};Nl.default=ms;_1.exports=Nl.default});var S1=v(Pg=>{"use strict";Pg.__esModule=!0;Pg.createNewLookupObject=G4;var U4=Mt();function G4(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return U4.extend.apply(void 0,[Object.create(null)].concat(t))}o(G4,"createNewLookupObject")});var xg=v(Ya=>{"use strict";Ya.__esModule=!0;Ya.createProtoAccessControl=K4;Ya.resultIsAllowed=Y4;Ya.resetLoggedProperties=J4;function z4(e){return e&&e.__esModule?e:{default:e}}o(z4,"_interopRequireDefault");var O1=S1(),Z4=Eg(),W4=z4(Z4),jl=Object.create(null);function K4(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:O1.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:O1.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(K4,"createProtoAccessControl");function Y4(e,t,r){return E1(typeof e=="function"?t.methods:t.properties,r)}o(Y4,"resultIsAllowed");function E1(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(Q4(t),!1)}o(E1,"checkWhiteList");function Q4(e){jl[e]!==!0&&(jl[e]=!0,W4.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
52
52
  You can add a runtime option to disable the check or this warning:
53
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(H4,"logUnexpecedPropertyAccessOnce");function B4(){Object.keys(Cl).forEach(function(e){delete Cl[e]})}o(B4,"resetLoggedProperties")});var Rl=v(fn=>{"use strict";fn.__esModule=!0;fn.HandlebarsEnvironment=Og;function g1(e){return e&&e.__esModule?e:{default:e}}o(g1,"_interopRequireDefault");var no=kt(),V4=vr(),_g=g1(V4),U4=mg(),G4=f1(),z4=yg(),Tl=g1(z4),Z4=vg(),W4="4.7.8";fn.VERSION=W4;var K4=8;fn.COMPILER_REVISION=K4;var Y4=7;fn.LAST_COMPATIBLE_COMPILER_REVISION=Y4;var Q4={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"};fn.REVISION_CHANGES=Q4;var Sg="[object Object]";function Og(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},U4.registerDefaultHelpers(this),G4.registerDefaultDecorators(this)}o(Og,"HandlebarsEnvironment");Og.prototype={constructor:Og,logger:Tl.default,log:Tl.default.log,registerHelper:o(function(t,r){if(no.toString.call(t)===Sg){if(r)throw new _g.default("Arg not supported with multiple helpers");no.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(no.toString.call(t)===Sg)no.extend(this.partials,t);else{if(typeof r>"u")throw new _g.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(no.toString.call(t)===Sg){if(r)throw new _g.default("Arg not supported with multiple decorators");no.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Z4.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var J4=Tl.default.log;fn.log=J4;fn.createFrame=no.createFrame;fn.logger=Tl.default});var b1=v((Nl,y1)=>{"use strict";Nl.__esModule=!0;function Eg(e){this.string=e}o(Eg,"SafeString");Eg.prototype.toString=Eg.prototype.toHTML=function(){return""+this.string};Nl.default=Eg;y1.exports=Nl.default});var v1=v(Pg=>{"use strict";Pg.__esModule=!0;Pg.wrapHelper=X4;function X4(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(X4,"wrapHelper")});var P1=v(fi=>{"use strict";fi.__esModule=!0;fi.checkRevision=oL;fi.template=sL;fi.wrapProgram=jl;fi.resolvePartial=aL;fi.invokePartial=cL;fi.noop=O1;function eL(e){return e&&e.__esModule?e:{default:e}}o(eL,"_interopRequireDefault");function tL(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(tL,"_interopRequireWildcard");var rL=kt(),Sn=tL(rL),nL=vr(),On=eL(nL),En=Rl(),_1=mg(),iL=v1(),S1=vg();function oL(e){var t=e&&e[0]||1,r=En.COMPILER_REVISION;if(!(t>=En.LAST_COMPATIBLE_COMPILER_REVISION&&t<=En.COMPILER_REVISION))if(t<En.LAST_COMPATIBLE_COMPILER_REVISION){var n=En.REVISION_CHANGES[r],i=En.REVISION_CHANGES[t];throw new 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(oL,"checkRevision");function sL(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=Sn.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=Sn.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(Q4,"logUnexpecedPropertyAccessOnce");function J4(){Object.keys(jl).forEach(function(e){delete jl[e]})}o(J4,"resetLoggedProperties")});var kl=v(un=>{"use strict";un.__esModule=!0;un.HandlebarsEnvironment=Ag;function P1(e){return e&&e.__esModule?e:{default:e}}o(P1,"_interopRequireDefault");var ro=Mt(),X4=br(),$g=P1(X4),eL=Sg(),tL=v1(),rL=Eg(),Ml=P1(rL),nL=xg(),iL="4.7.8";un.VERSION=iL;var oL=8;un.COMPILER_REVISION=oL;var sL=7;un.LAST_COMPATIBLE_COMPILER_REVISION=sL;var aL={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"};un.REVISION_CHANGES=aL;var wg="[object Object]";function Ag(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},eL.registerDefaultHelpers(this),tL.registerDefaultDecorators(this)}o(Ag,"HandlebarsEnvironment");Ag.prototype={constructor:Ag,logger:Ml.default,log:Ml.default.log,registerHelper:o(function(t,r){if(ro.toString.call(t)===wg){if(r)throw new $g.default("Arg not supported with multiple helpers");ro.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(ro.toString.call(t)===wg)ro.extend(this.partials,t);else{if(typeof r>"u")throw new $g.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(ro.toString.call(t)===wg){if(r)throw new $g.default("Arg not supported with multiple decorators");ro.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){nL.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var cL=Ml.default.log;un.log=cL;un.createFrame=ro.createFrame;un.logger=Ml.default});var $1=v((ql,x1)=>{"use strict";ql.__esModule=!0;function Ig(e){this.string=e}o(Ig,"SafeString");Ig.prototype.toString=Ig.prototype.toHTML=function(){return""+this.string};ql.default=Ig;x1.exports=ql.default});var w1=v(Cg=>{"use strict";Cg.__esModule=!0;Cg.wrapHelper=uL;function uL(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(uL,"wrapHelper")});var R1=v(ui=>{"use strict";ui.__esModule=!0;ui.checkRevision=mL;ui.template=gL;ui.wrapProgram=Dl;ui.resolvePartial=yL;ui.invokePartial=bL;ui.noop=C1;function lL(e){return e&&e.__esModule?e:{default:e}}o(lL,"_interopRequireDefault");function fL(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(fL,"_interopRequireWildcard");var pL=Mt(),vn=fL(pL),dL=br(),_n=lL(dL),Sn=kl(),A1=Sg(),hL=w1(),I1=xg();function mL(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 _n.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 _n.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(mL,"checkRevision");function gL(e,t){if(!t)throw new _n.default("No environment passed to template");if(!e||!e.main)throw new _n.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=vn.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=vn.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 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)||S1.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:Sn.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=jl(this,c,h,u,l,p,f):d||(d=this.programs[c]=jl(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=Sn.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=uL(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=E1(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=Sn.extend({},t.helpers,a.helpers);lL(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Sn.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=S1.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;_1.moveHelperToHooks(i,"helperMissing",u),_1.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 jl(i,a,e[a],c,0,u,l)},s}o(sL,"template");function jl(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=E1(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(jl,"wrapProgram");function aL(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(aL,"resolvePartial");function cL(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!==O1&&function(){r.data=En.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=En.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=Sn.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(cL,"invokePartial");function O1(){return""}o(O1,"noop");function uL(e,t){return(!t||!("root"in t))&&(t=t?En.createFrame(t):{},t.root=e),t}o(uL,"initData");function E1(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),Sn.extend(t,a)}return t}o(E1,"executeDecorators");function lL(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=fL(n,t)})}o(lL,"wrapHelpersToPassLookupProperty");function fL(e,t){var r=t.lookupProperty;return iL.wrapHelper(e,function(n){return Sn.extend({lookupProperty:r},n)})}o(fL,"passLookupPropertyOption")});var xg=v((Ml,x1)=>{"use strict";Ml.__esModule=!0;Ml.default=function(e){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}};x1.exports=Ml.default});var C1=v((kl,I1)=>{"use strict";kl.__esModule=!0;function wg(e){return e&&e.__esModule?e:{default:e}}o(wg,"_interopRequireDefault");function Ag(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(Ag,"_interopRequireWildcard");var pL=Rl(),$1=Ag(pL),dL=b1(),hL=wg(dL),mL=vr(),gL=wg(mL),yL=kt(),$g=Ag(yL),bL=P1(),w1=Ag(bL),vL=xg(),_L=wg(vL);function A1(){var e=new $1.HandlebarsEnvironment;return $g.extend(e,$1),e.SafeString=hL.default,e.Exception=gL.default,e.Utils=$g,e.escapeExpression=$g.escapeExpression,e.VM=w1,e.template=function(t){return w1.template(t,e)},e}o(A1,"create");var Qa=A1();Qa.create=A1;_L.default(Qa);Qa.default=Qa;kl.default=Qa;I1.exports=kl.default});var Ig=v((ql,R1)=>{"use strict";ql.__esModule=!0;var T1={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&&!T1.helpers.scopedId(t)&&!t.depth},"simpleId")}};ql.default=T1;R1.exports=ql.default});var j1=v((Dl,N1)=>{"use strict";Dl.__esModule=!0;var SL=function(){var e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:o(function(i,s,a,c,u,l,p){var f=l.length-1;switch(u){case 1:return l[f-1];case 2:this.$=c.prepareProgram(l[f]);break;case 3:this.$=l[f];break;case 4:this.$=l[f];break;case 5:this.$=l[f];break;case 6:this.$=l[f];break;case 7:this.$=l[f];break;case 8:this.$=l[f];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(l[f]),strip:c.stripFlags(l[f],l[f]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(l[f-2],l[f-1],l[f],this._$);break;case 12:this.$={path:l[f-3],params:l[f-2],hash:l[f-1]};break;case 13:this.$=c.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=c.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!0,this._$);break;case 15:this.$={open:l[f-5],path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:c.stripFlags(l[f-5],l[f])};break;case 16:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:c.stripFlags(l[f-5],l[f])};break;case 17:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:c.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:c.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=c.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=c.prepareProgram([d],l[f-1].loc);h.chained=!0,this.$={strip:l[f-2].strip,program:h,chain:!0};break;case 20:this.$=l[f];break;case 21:this.$={path:l[f-1],strip:c.stripFlags(l[f-2],l[f])};break;case 22:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.stripFlags(l[f-4],l[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[f-3],params:l[f-2],hash:l[f-1],indent:"",strip:c.stripFlags(l[f-4],l[f]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(l[f-2],l[f-1],l[f],this._$);break;case 26:this.$={path:l[f-3],params:l[f-2],hash:l[f-1],strip:c.stripFlags(l[f-4],l[f])};break;case 27:this.$=l[f];break;case 28:this.$=l[f];break;case 29:this.$={type:"SubExpression",path:l[f-3],params:l[f-2],hash:l[f-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(l[f-2]),value:l[f],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(l[f-1]);break;case 33:this.$=l[f];break;case 34:this.$=l[f];break;case 35:this.$={type:"StringLiteral",value:l[f],original:l[f],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=c.preparePath(!0,l[f],this._$);break;case 43:this.$=c.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:c.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:c.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=this,a=[0],c=[null],u=[],l=this.table,p="",f=0,d=0,h=0,y=2,b=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var g=this.lexer.yylloc;u.push(g);var P=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function $(ve){a.length=a.length-2*ve,c.length=c.length-ve,u.length=u.length-ve}o($,"popStack");function C(){var ve;return ve=s.lexer.lex()||1,typeof ve!="number"&&(ve=s.symbols_[ve]||ve),ve}o(C,"lex");for(var T,w,te,re,$e,Ae,G={},j,R,k,Q;;){if(te=a[a.length-1],this.defaultActions[te]?re=this.defaultActions[te]:((T===null||typeof T>"u")&&(T=C()),re=l[te]&&l[te][T]),typeof re>"u"||!re.length||!re[0]){var ue="";if(!h){Q=[];for(j in l[te])this.terminals_[j]&&j>2&&Q.push("'"+this.terminals_[j]+"'");this.lexer.showPosition?ue="Parse error on line "+(f+1)+`:
55
+ `)}return p}else throw new _n.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 _n.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)||I1.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:vn.escapeExpression,invokePartial:n,fn:o(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,l,p,f){var d=this.programs[c],h=this.fn(c);return u||f||p||l?d=Dl(this,c,h,u,l,p,f):d||(d=this.programs[c]=Dl(this,c,h)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=vn.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=vL(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=T1(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=vn.extend({},t.helpers,a.helpers);_L(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=vn.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=I1.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;A1.moveHelperToHooks(i,"helperMissing",u),A1.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new _n.default("must pass block params");if(e.useDepths&&!l)throw new _n.default("must pass parent depths");return Dl(i,a,e[a],c,0,u,l)},s}o(gL,"template");function Dl(e,t,r,n,i,s,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&u!=a[0]&&!(u===e.nullContext&&a[0]===null)&&(p=[u].concat(a)),r(e,u,e.helpers,e.partials,l.data||n,s&&[l.blockParams].concat(s),p)}return o(c,"prog"),c=T1(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(Dl,"wrapProgram");function yL(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(yL,"resolvePartial");function bL(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!==C1&&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=vn.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new _n.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(bL,"invokePartial");function C1(){return""}o(C1,"noop");function vL(e,t){return(!t||!("root"in t))&&(t=t?Sn.createFrame(t):{},t.root=e),t}o(vL,"initData");function T1(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),vn.extend(t,a)}return t}o(T1,"executeDecorators");function _L(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=SL(n,t)})}o(_L,"wrapHelpersToPassLookupProperty");function SL(e,t){var r=t.lookupProperty;return hL.wrapHelper(e,function(n){return vn.extend({lookupProperty:r},n)})}o(SL,"passLookupPropertyOption")});var Tg=v((Ll,N1)=>{"use strict";Ll.__esModule=!0;Ll.default=function(e){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}};N1.exports=Ll.default});var D1=v((Fl,q1)=>{"use strict";Fl.__esModule=!0;function Ng(e){return e&&e.__esModule?e:{default:e}}o(Ng,"_interopRequireDefault");function jg(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(jg,"_interopRequireWildcard");var OL=kl(),j1=jg(OL),EL=$1(),PL=Ng(EL),xL=br(),$L=Ng(xL),wL=Mt(),Rg=jg(wL),AL=R1(),M1=jg(AL),IL=Tg(),CL=Ng(IL);function k1(){var e=new j1.HandlebarsEnvironment;return Rg.extend(e,j1),e.SafeString=PL.default,e.Exception=$L.default,e.Utils=Rg,e.escapeExpression=Rg.escapeExpression,e.VM=M1,e.template=function(t){return M1.template(t,e)},e}o(k1,"create");var Qa=k1();Qa.create=k1;CL.default(Qa);Qa.default=Qa;Fl.default=Qa;q1.exports=Fl.default});var Mg=v((Hl,F1)=>{"use strict";Hl.__esModule=!0;var L1={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&&!L1.helpers.scopedId(t)&&!t.depth},"simpleId")}};Hl.default=L1;F1.exports=Hl.default});var B1=v((Bl,H1)=>{"use strict";Bl.__esModule=!0;var TL=function(){var e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:o(function(i,s,a,c,u,l,p){var f=l.length-1;switch(u){case 1:return l[f-1];case 2:this.$=c.prepareProgram(l[f]);break;case 3:this.$=l[f];break;case 4:this.$=l[f];break;case 5:this.$=l[f];break;case 6:this.$=l[f];break;case 7:this.$=l[f];break;case 8:this.$=l[f];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(l[f]),strip:c.stripFlags(l[f],l[f]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(l[f-2],l[f-1],l[f],this._$);break;case 12:this.$={path:l[f-3],params:l[f-2],hash:l[f-1]};break;case 13:this.$=c.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=c.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!0,this._$);break;case 15:this.$={open:l[f-5],path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:c.stripFlags(l[f-5],l[f])};break;case 16:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:c.stripFlags(l[f-5],l[f])};break;case 17:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:c.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:c.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=c.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=c.prepareProgram([d],l[f-1].loc);h.chained=!0,this.$={strip:l[f-2].strip,program:h,chain:!0};break;case 20:this.$=l[f];break;case 21:this.$={path:l[f-1],strip:c.stripFlags(l[f-2],l[f])};break;case 22:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.stripFlags(l[f-4],l[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[f-3],params:l[f-2],hash:l[f-1],indent:"",strip:c.stripFlags(l[f-4],l[f]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(l[f-2],l[f-1],l[f],this._$);break;case 26:this.$={path:l[f-3],params:l[f-2],hash:l[f-1],strip:c.stripFlags(l[f-4],l[f])};break;case 27:this.$=l[f];break;case 28:this.$=l[f];break;case 29:this.$={type:"SubExpression",path:l[f-3],params:l[f-2],hash:l[f-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(l[f-2]),value:l[f],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(l[f-1]);break;case 33:this.$=l[f];break;case 34:this.$=l[f];break;case 35:this.$={type:"StringLiteral",value:l[f],original:l[f],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=c.preparePath(!0,l[f],this._$);break;case 43:this.$=c.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:c.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:c.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=this,a=[0],c=[null],u=[],l=this.table,p="",f=0,d=0,h=0,y=2,b=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var g=this.lexer.yylloc;u.push(g);var P=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function $(Se){a.length=a.length-2*Se,c.length=c.length-Se,u.length=u.length-Se}o($,"popStack");function C(){var Se;return Se=s.lexer.lex()||1,typeof Se!="number"&&(Se=s.symbols_[Se]||Se),Se}o(C,"lex");for(var T,w,te,re,xe,we,G={},j,R,k,Q;;){if(te=a[a.length-1],this.defaultActions[te]?re=this.defaultActions[te]:((T===null||typeof T>"u")&&(T=C()),re=l[te]&&l[te][T]),typeof re>"u"||!re.length||!re[0]){var ue="";if(!h){Q=[];for(j in l[te])this.terminals_[j]&&j>2&&Q.push("'"+this.terminals_[j]+"'");this.lexer.showPosition?ue="Parse error on line "+(f+1)+`:
56
56
  `+this.lexer.showPosition()+`
57
- Expecting `+Q.join(", ")+", got '"+(this.terminals_[T]||T)+"'":ue="Parse error on line "+(f+1)+": Unexpected "+(T==1?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(ue,{text:this.lexer.match,token:this.terminals_[T]||T,line:this.lexer.yylineno,loc:g,expected:Q})}}if(re[0]instanceof Array&&re.length>1)throw new Error("Parse Error: multiple actions possible at state: "+te+", token: "+T);switch(re[0]){case 1:a.push(T),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(re[1]),T=null,w?(T=w,w=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,g=this.lexer.yylloc,h>0&&h--);break;case 2:if(R=this.productions_[re[1]][1],G.$=c[c.length-R],G._$={first_line:u[u.length-(R||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(R||1)].first_column,last_column:u[u.length-1].last_column},P&&(G._$.range=[u[u.length-(R||1)].range[0],u[u.length-1].range[1]]),Ae=this.performAction.call(G,p,d,f,this.yy,re[1],c,u),typeof Ae<"u")return Ae;R&&(a=a.slice(0,-1*R*2),c=c.slice(0,-1*R),u=u.slice(0,-1*R)),a.push(this.productions_[re[1]][0]),c.push(G.$),u.push(G._$),k=l[a[a.length-2]][a[a.length-1]],a.push(k);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
57
+ Expecting `+Q.join(", ")+", got '"+(this.terminals_[T]||T)+"'":ue="Parse error on line "+(f+1)+": Unexpected "+(T==1?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(ue,{text:this.lexer.match,token:this.terminals_[T]||T,line:this.lexer.yylineno,loc:g,expected:Q})}}if(re[0]instanceof Array&&re.length>1)throw new Error("Parse Error: multiple actions possible at state: "+te+", token: "+T);switch(re[0]){case 1:a.push(T),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(re[1]),T=null,w?(T=w,w=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,g=this.lexer.yylloc,h>0&&h--);break;case 2:if(R=this.productions_[re[1]][1],G.$=c[c.length-R],G._$={first_line:u[u.length-(R||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(R||1)].first_column,last_column:u[u.length-1].last_column},P&&(G._$.range=[u[u.length-(R||1)].range[0],u[u.length-1].range[1]]),we=this.performAction.call(G,p,d,f,this.yy,re[1],c,u),typeof we<"u")return we;R&&(a=a.slice(0,-1*R*2),c=c.slice(0,-1*R),u=u.slice(0,-1*R)),a.push(this.productions_[re[1]][0]),c.push(G.$),u.push(G._$),k=l[a[a.length-2]][a[a.length-1]],a.push(k);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
58
58
  `+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,u,l,p;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),d=0;d<f.length&&(c=this._input.match(this.rules[f[d]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=d,!this.options.flex)));d++);return a?(p=a[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,f[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
59
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,u){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}o(l,"strip");var p=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return o(r,"Parser"),r.prototype=e,e.Parser=r,new r}();Dl.default=SL;N1.exports=Dl.default});var Bl=v((Hl,q1)=>{"use strict";Hl.__esModule=!0;function OL(e){return e&&e.__esModule?e:{default:e}}o(OL,"_interopRequireDefault");var EL=vr(),Cg=OL(EL);function Ll(){this.parents=[]}o(Ll,"Visitor");Ll.prototype={constructor:Ll,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!Ll.prototype[n.type])throw new Cg.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 Cg.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 Cg.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:Fl,Decorator:Fl,BlockStatement:M1,DecoratorBlock:M1,PartialStatement:k1,PartialBlockStatement:o(function(t){k1.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:Fl,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 Fl(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(Fl,"visitSubExpression");function M1(e){Fl.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(M1,"visitBlock");function k1(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(k1,"visitPartial");Hl.default=Ll;q1.exports=Hl.default});var L1=v((Vl,D1)=>{"use strict";Vl.__esModule=!0;function PL(e){return e&&e.__esModule?e:{default:e}}o(PL,"_interopRequireDefault");var xL=Bl(),$L=PL(xL);function pn(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(pn,"WhitespaceControl");pn.prototype=new $L.default;pn.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=Tg(n,i,r),l=Rg(n,i,r),p=c.openStandalone&&u,f=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&io(n,i,!0),c.open&&pi(n,i,!0),t&&d&&(io(n,i),pi(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(io((a.program||a.inverse).body),pi(n,i)),t&&f&&(io(n,i),pi((a.inverse||a.program).body))}}return e};pn.prototype.BlockStatement=pn.prototype.DecoratorBlock=pn.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:Rg(t.body),closeStandalone:Tg((n||t).body)};if(e.openStrip.close&&io(t.body,null,!0),r){var a=e.inverseStrip;a.open&&pi(t.body,null,!0),a.close&&io(n.body,null,!0),e.closeStrip.open&&pi(i.body,null,!0),!this.options.ignoreStandalone&&Tg(t.body)&&Rg(n.body)&&(pi(t.body),io(n.body))}else e.closeStrip.open&&pi(t.body,null,!0);return s};pn.prototype.Decorator=pn.prototype.MustacheStatement=function(e){return e.strip};pn.prototype.PartialStatement=pn.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function Tg(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(Tg,"isPrevWhitespace");function Rg(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(Rg,"isNextWhitespace");function io(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(io,"omitRight");function pi(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(pi,"omitLeft");Vl.default=pn;D1.exports=Vl.default});var F1=v(_r=>{"use strict";_r.__esModule=!0;_r.SourceLocation=IL;_r.id=CL;_r.stripFlags=TL;_r.stripComment=RL;_r.preparePath=NL;_r.prepareMustache=jL;_r.prepareRawBlock=ML;_r.prepareBlock=kL;_r.prepareProgram=qL;_r.preparePartialBlock=DL;function wL(e){return e&&e.__esModule?e:{default:e}}o(wL,"_interopRequireDefault");var AL=vr(),Ng=wL(AL);function jg(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new Ng.default(e.path.original+" doesn't match "+t,r)}}o(jg,"validateClose");function IL(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(IL,"SourceLocation");function CL(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(CL,"id");function TL(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(TL,"stripFlags");function RL(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(RL,"stripComment");function NL(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 Ng.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(NL,"preparePath");function jL(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(jL,"prepareMustache");function ML(e,t,r,n){jg(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(ML,"prepareRawBlock");function kL(e,t,r,n,i,s){n&&n.path&&jg(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new Ng.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(kL,"prepareBlock");function qL(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(qL,"prepareProgram");function DL(e,t,r,n){return jg(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(DL,"preparePartialBlock")});var V1=v(Ja=>{"use strict";Ja.__esModule=!0;Ja.parseWithoutProcessing=B1;Ja.parse=zL;function LL(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(LL,"_interopRequireWildcard");function H1(e){return e&&e.__esModule?e:{default:e}}o(H1,"_interopRequireDefault");var FL=j1(),Mg=H1(FL),HL=L1(),BL=H1(HL),VL=F1(),UL=LL(VL),GL=kt();Ja.parser=Mg.default;var Ul={};GL.extend(Ul,UL);function B1(e,t){if(e.type==="Program")return e;Mg.default.yy=Ul,Ul.locInfo=function(n){return new Ul.SourceLocation(t&&t.srcName,n)};var r=Mg.default.parse(e);return r}o(B1,"parseWithoutProcessing");function zL(e,t){var r=B1(e,t),n=new BL.default(t);return n.accept(r)}o(zL,"parse")});var Z1=v(rc=>{"use strict";rc.__esModule=!0;rc.Compiler=kg;rc.precompile=YL;rc.compile=QL;function G1(e){return e&&e.__esModule?e:{default:e}}o(G1,"_interopRequireDefault");var ZL=vr(),ec=G1(ZL),tc=kt(),WL=Ig(),Xa=G1(WL),KL=[].slice;function kg(){}o(kg,"Compiler");kg.prototype={compiler:kg,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||!z1(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=tc.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 ec.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){U1(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 ec.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){U1(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 ec.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,Xa.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=Xa.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:KL.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=Xa.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&Xa.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&&!Xa.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&&tc.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function YL(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new ec.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(YL,"precompile");function QL(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new ec.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=tc.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(QL,"compile");function z1(e,t){if(e===t)return!0;if(tc.isArray(e)&&tc.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!z1(e[r],t[r]))return!1;return!0}}o(z1,"argEquals");function U1(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(U1,"transformLiteralToPath")});var K1=v(qg=>{var W1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");qg.encode=function(e){if(0<=e&&e<W1.length)return W1[e];throw new TypeError("Must be between 0 and 63: "+e)};qg.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 Fg=v(Lg=>{var Y1=K1(),Dg=5,Q1=1<<Dg,J1=Q1-1,X1=Q1;function JL(e){return e<0?(-e<<1)+1:(e<<1)+0}o(JL,"toVLQSigned");function XL(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(XL,"fromVLQSigned");Lg.encode=o(function(t){var r="",n,i=JL(t);do n=i&J1,i>>>=Dg,i>0&&(n|=X1),r+=Y1.encode(n);while(i>0);return r},"base64VLQ_encode");Lg.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=Y1.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&X1),u&=J1,s=s+(u<<a),a+=Dg}while(c);n.value=XL(s),n.rest=r},"base64VLQ_decode")});var bs=v(Tt=>{function e8(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(e8,"getArg");Tt.getArg=e8;var e$=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,t8=/^data:.+\,.+$/;function nc(e){var t=e.match(e$);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(nc,"urlParse");Tt.urlParse=nc;function gs(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(gs,"urlGenerate");Tt.urlGenerate=gs;function Hg(e){var t=e,r=nc(e);if(r){if(!r.path)return e;t=r.path}for(var n=Tt.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,gs(r)):t}o(Hg,"normalize");Tt.normalize=Hg;function t$(e,t){e===""&&(e="."),t===""&&(t=".");var r=nc(t),n=nc(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),gs(r);if(r||t.match(t8))return t;if(n&&!n.host&&!n.path)return n.host=t,gs(n);var i=t.charAt(0)==="/"?t:Hg(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,gs(n)):i}o(t$,"join");Tt.join=t$;Tt.isAbsolute=function(e){return e.charAt(0)==="/"||e$.test(e)};function r8(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(r8,"relative");Tt.relative=r8;var r$=function(){var e=Object.create(null);return!("__proto__"in e)}();function n$(e){return e}o(n$,"identity");function n8(e){return i$(e)?"$"+e:e}o(n8,"toSetString");Tt.toSetString=r$?n$:n8;function i8(e){return i$(e)?e.slice(1):e}o(i8,"fromSetString");Tt.fromSetString=r$?n$:i8;function i$(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(i$,"isProtoString");function o8(e,t,r){var n=ys(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:ys(e.name,t.name)}o(o8,"compareByOriginalPositions");Tt.compareByOriginalPositions=o8;function s8(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=ys(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:ys(e.name,t.name)}o(s8,"compareByGeneratedPositionsDeflated");Tt.compareByGeneratedPositionsDeflated=s8;function ys(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(ys,"strcmp");function a8(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=ys(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:ys(e.name,t.name)}o(a8,"compareByGeneratedPositionsInflated");Tt.compareByGeneratedPositionsInflated=a8;function c8(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(c8,"parseSourceMapInput");Tt.parseSourceMapInput=c8;function u8(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=nc(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=t$(gs(n),t)}return Hg(t)}o(u8,"computeSourceURL");Tt.computeSourceURL=u8});var Ug=v(o$=>{var Bg=bs(),Vg=Object.prototype.hasOwnProperty,oo=typeof Map<"u";function Pn(){this._array=[],this._set=oo?new Map:Object.create(null)}o(Pn,"ArraySet");Pn.fromArray=o(function(t,r){for(var n=new Pn,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");Pn.prototype.size=o(function(){return oo?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Pn.prototype.add=o(function(t,r){var n=oo?t:Bg.toSetString(t),i=oo?this.has(t):Vg.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(oo?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");Pn.prototype.has=o(function(t){if(oo)return this._set.has(t);var r=Bg.toSetString(t);return Vg.call(this._set,r)},"ArraySet_has");Pn.prototype.indexOf=o(function(t){if(oo){var r=this._set.get(t);if(r>=0)return r}else{var n=Bg.toSetString(t);if(Vg.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");Pn.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");Pn.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");o$.ArraySet=Pn});var c$=v(a$=>{var s$=bs();function l8(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||s$.compareByGeneratedPositionsInflated(e,t)<=0}o(l8,"generatedPositionAfter");function Gl(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(Gl,"MappingList");Gl.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");Gl.prototype.add=o(function(t){l8(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");Gl.prototype.toArray=o(function(){return this._sorted||(this._array.sort(s$.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");a$.MappingList=Gl});var Gg=v(u$=>{var ic=Fg(),st=bs(),zl=Ug().ArraySet,f8=c$().MappingList;function Sr(e){e||(e={}),this._file=st.getArg(e,"file",null),this._sourceRoot=st.getArg(e,"sourceRoot",null),this._skipValidation=st.getArg(e,"skipValidation",!1),this._sources=new zl,this._names=new zl,this._mappings=new f8,this._sourcesContents=null}o(Sr,"SourceMapGenerator");Sr.prototype._version=3;Sr.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new Sr({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=st.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=st.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");Sr.prototype.addMapping=o(function(t){var r=st.getArg(t,"generated"),n=st.getArg(t,"original",null),i=st.getArg(t,"source",null),s=st.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");Sr.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=st.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[st.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[st.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");Sr.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=st.relative(s,i));var a=new zl,c=new zl;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=st.join(n,u.source)),s!=null&&(u.source=st.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=st.join(n,u)),s!=null&&(u=st.relative(s,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");Sr.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");Sr.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(!st.compareByGeneratedPositionsInflated(l,d[h-1]))continue;u+=","}u+=ic.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),u+=ic.encode(f-a),a=f,u+=ic.encode(l.originalLine-1-i),i=l.originalLine-1,u+=ic.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),u+=ic.encode(p-s),s=p)),c+=u}return c},"SourceMapGenerator_serializeMappings");Sr.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=st.relative(r,n));var i=st.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");Sr.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");Sr.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");u$.SourceMapGenerator=Sr});var l$=v(so=>{so.GREATEST_LOWER_BOUND=1;so.LEAST_UPPER_BOUND=2;function zg(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?zg(a,t,r,n,i,s):s==so.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?zg(e,a,r,n,i,s):s==so.LEAST_UPPER_BOUND?a:e<0?-1:e}o(zg,"recursiveSearch");so.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=zg(-1,r.length,t,r,n,i||so.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 p$=v(f$=>{function Zg(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(Zg,"swap");function p8(e,t){return Math.round(e+Math.random()*(t-e))}o(p8,"randomIntInRange");function Wg(e,t,r,n){if(r<n){var i=p8(r,n),s=r-1;Zg(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,Zg(e,s,c));Zg(e,s+1,c);var u=s+1;Wg(e,t,r,u-1),Wg(e,t,u+1,n)}}o(Wg,"doQuickSort");f$.quickSort=function(e,t){Wg(e,t,0,e.length-1)}});var h$=v(Zl=>{var U=bs(),Kg=l$(),vs=Ug().ArraySet,d8=Fg(),oc=p$().quickSort;function Ve(e,t){var r=e;return typeof e=="string"&&(r=U.parseSourceMapInput(e)),r.sections!=null?new Lr(r,t):new St(r,t)}o(Ve,"SourceMapConsumer");Ve.fromSourceMap=function(e,t){return St.fromSourceMap(e,t)};Ve.prototype._version=3;Ve.prototype.__generatedMappings=null;Object.defineProperty(Ve.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Ve.prototype.__originalMappings=null;Object.defineProperty(Ve.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Ve.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Ve.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Ve.GENERATED_ORDER=1;Ve.ORIGINAL_ORDER=2;Ve.GREATEST_LOWER_BOUND=1;Ve.LEAST_UPPER_BOUND=2;Ve.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||Ve.GENERATED_ORDER,a;switch(s){case Ve.GENERATED_ORDER:a=this._generatedMappings;break;case Ve.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");Ve.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,Kg.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");Zl.SourceMapConsumer=Ve;function St(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=vs.fromArray(s.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}o(St,"BasicSourceMapConsumer");St.prototype=Object.create(Ve.prototype);St.prototype.consumer=Ve;St.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};St.fromSourceMap=o(function(t,r){var n=Object.create(St.prototype),i=n._names=vs.fromArray(t._names.toArray(),!0),s=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 d$;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 oc(n.__originalMappings,U.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");St.prototype._version=3;Object.defineProperty(St.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function d$(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(d$,"Mapping");St.prototype._parseMappings=o(function(t,r){for(var n=1,i=0,s=0,a=0,c=0,u=0,l=t.length,p=0,f={},d={},h=[],y=[],b,g,P,$,C;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(b=new d$,b.generatedLine=n,$=p;$<l&&!this._charIsMappingSeparator(t,$);$++);if(g=t.slice(p,$),P=f[g],P)p+=g.length;else{for(P=[];p<$;)d8.decode(t,p,d),C=d.value,p=d.rest,P.push(C);if(P.length===2)throw new Error("Found a source, but no line and column");if(P.length===3)throw new Error("Found a source and line, but no column");f[g]=P}b.generatedColumn=i+P[0],i=b.generatedColumn,P.length>1&&(b.source=c+P[1],c+=P[1],b.originalLine=s+P[2],s=b.originalLine,b.originalLine+=1,b.originalColumn=a+P[3],a=b.originalColumn,P.length>4&&(b.name=u+P[4],u+=P[4])),y.push(b),typeof b.originalLine=="number"&&h.push(b)}oc(y,U.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,oc(h,U.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");St.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 Kg.search(t,r,s,a)},"SourceMapConsumer_findMapping");St.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");St.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",Ve.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");St.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");St.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");St.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",Ve.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");Zl.BasicSourceMapConsumer=St;function Lr(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 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 Ve(U.getArg(a,"map"),t)}})}o(Lr,"IndexedSourceMapConsumer");Lr.prototype=Object.create(Ve.prototype);Lr.prototype.constructor=Ve;Lr.prototype._version=3;Object.defineProperty(Lr.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")});Lr.prototype.originalPositionFor=o(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=Kg.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");Lr.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");Lr.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");Lr.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");Lr.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)}oc(this.__generatedMappings,U.compareByGeneratedPositionsDeflated),oc(this.__originalMappings,U.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");Zl.IndexedSourceMapConsumer=Lr});var g$=v(m$=>{var h8=Gg().SourceMapGenerator,Wl=bs(),m8=/(\r?\n)/,g8=10,_s="$$$isSourceNode$$$";function nr(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[_s]=!0,n!=null&&this.add(n)}o(nr,"SourceNode");nr.fromStringWithSourceMap=o(function(t,r,n){var i=new nr,s=t.split(m8),a=0,c=o(function(){var d=y(),h=y()||"";return d+h;function y(){return a<s.length?s[a++]:void 0}},"shiftNextLine"),u=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(u<d.generatedLine)f(p,c()),u++,l=0;else{var h=s[a]||"",y=h.substr(0,d.generatedColumn-l);s[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,y),p=d;return}for(;u<d.generatedLine;)i.add(c()),u++;if(l<d.generatedColumn){var h=s[a]||"";i.add(h.substr(0,d.generatedColumn)),s[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<s.length&&(p&&f(p,c()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=Wl.join(n,d)),i.setSourceContent(d,h))}),i;function f(d,h){if(d===null||d.source===void 0)i.add(h);else{var y=n?Wl.join(n,d.source):d.source;i.add(new nr(d.originalLine,d.originalColumn,y,h,d.name))}}o(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");nr.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[_s]||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");nr.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[_s]||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");nr.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[_s]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");nr.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");nr.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[_s]?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");nr.prototype.setSourceContent=o(function(t,r){this.sourceContents[Wl.toSetString(t)]=r},"SourceNode_setSourceContent");nr.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][_s]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Wl.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");nr.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");nr.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new h8(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)===g8?(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");m$.SourceNode=nr});var y$=v(Kl=>{Kl.SourceMapGenerator=Gg().SourceMapGenerator;Kl.SourceMapConsumer=h$().SourceMapConsumer;Kl.SourceNode=g$().SourceNode});var S$=v((Yl,_$)=>{"use strict";Yl.__esModule=!0;var Qg=kt(),ao=void 0;try{(typeof define!="function"||!define.amd)&&(b$=y$(),ao=b$.SourceNode)}catch{}var b$;ao||(ao=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),ao.prototype={add:o(function(t){Qg.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){Qg.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 Yg(e,t,r){if(Qg.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(Yg,"castChunk");function v$(e){this.srcFile=e,this.source=[]}o(v$,"CodeGen");v$.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 ao(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 ao?t:(t=Yg(t,this,r),new ao(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=Yg(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(Yg(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};Yl.default=v$;_$.exports=Yl.default});var $$=v((Ql,x$)=>{"use strict";Ql.__esModule=!0;function P$(e){return e&&e.__esModule?e:{default:e}}o(P$,"_interopRequireDefault");var O$=Rl(),y8=vr(),Jg=P$(y8),b8=kt(),v8=S$(),E$=P$(v8);function Ss(e){this.value=e}o(Ss,"Literal");function Os(){}o(Os,"JavaScriptCompiler");Os.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=O$.COMPILER_REVISION,r=O$.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return b8.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 Jg.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
59
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,u){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}o(l,"strip");var p=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return o(r,"Parser"),r.prototype=e,e.Parser=r,new r}();Bl.default=TL;H1.exports=Bl.default});var zl=v((Gl,G1)=>{"use strict";Gl.__esModule=!0;function RL(e){return e&&e.__esModule?e:{default:e}}o(RL,"_interopRequireDefault");var NL=br(),kg=RL(NL);function Vl(){this.parents=[]}o(Vl,"Visitor");Vl.prototype={constructor:Vl,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!Vl.prototype[n.type])throw new kg.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 kg.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 kg.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:Ul,Decorator:Ul,BlockStatement:V1,DecoratorBlock:V1,PartialStatement:U1,PartialBlockStatement:o(function(t){U1.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:Ul,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 Ul(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(Ul,"visitSubExpression");function V1(e){Ul.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(V1,"visitBlock");function U1(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(U1,"visitPartial");Gl.default=Vl;G1.exports=Gl.default});var Z1=v((Zl,z1)=>{"use strict";Zl.__esModule=!0;function jL(e){return e&&e.__esModule?e:{default:e}}o(jL,"_interopRequireDefault");var ML=zl(),kL=jL(ML);function ln(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(ln,"WhitespaceControl");ln.prototype=new kL.default;ln.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=qg(n,i,r),l=Dg(n,i,r),p=c.openStandalone&&u,f=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&no(n,i,!0),c.open&&li(n,i,!0),t&&d&&(no(n,i),li(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(no((a.program||a.inverse).body),li(n,i)),t&&f&&(no(n,i),li((a.inverse||a.program).body))}}return e};ln.prototype.BlockStatement=ln.prototype.DecoratorBlock=ln.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var s={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:Dg(t.body),closeStandalone:qg((n||t).body)};if(e.openStrip.close&&no(t.body,null,!0),r){var a=e.inverseStrip;a.open&&li(t.body,null,!0),a.close&&no(n.body,null,!0),e.closeStrip.open&&li(i.body,null,!0),!this.options.ignoreStandalone&&qg(t.body)&&Dg(n.body)&&(li(t.body),no(n.body))}else e.closeStrip.open&&li(t.body,null,!0);return s};ln.prototype.Decorator=ln.prototype.MustacheStatement=function(e){return e.strip};ln.prototype.PartialStatement=ln.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function qg(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(qg,"isPrevWhitespace");function Dg(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}o(Dg,"isNextWhitespace");function no(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(no,"omitRight");function li(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(li,"omitLeft");Zl.default=ln;z1.exports=Zl.default});var W1=v(vr=>{"use strict";vr.__esModule=!0;vr.SourceLocation=LL;vr.id=FL;vr.stripFlags=HL;vr.stripComment=BL;vr.preparePath=VL;vr.prepareMustache=UL;vr.prepareRawBlock=GL;vr.prepareBlock=zL;vr.prepareProgram=ZL;vr.preparePartialBlock=WL;function qL(e){return e&&e.__esModule?e:{default:e}}o(qL,"_interopRequireDefault");var DL=br(),Lg=qL(DL);function Fg(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new Lg.default(e.path.original+" doesn't match "+t,r)}}o(Fg,"validateClose");function LL(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(LL,"SourceLocation");function FL(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(FL,"id");function HL(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(HL,"stripFlags");function BL(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(BL,"stripComment");function VL(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],s=0,a=0,c=t.length;a<c;a++){var u=t[a].part,l=t[a].original!==u;if(n+=(t[a].separator||"")+u,!l&&(u===".."||u==="."||u==="this")){if(i.length>0)throw new Lg.default("Invalid path: "+n,{loc:r});u===".."&&s++}else i.push(u)}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:r}}o(VL,"preparePath");function UL(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(UL,"prepareMustache");function GL(e,t,r,n){Fg(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}o(GL,"prepareRawBlock");function zL(e,t,r,n,i,s){n&&n.path&&Fg(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new Lg.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),u=r.strip,c=r.program}return i&&(i=c,c=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(s)}}o(zL,"prepareBlock");function ZL(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(ZL,"prepareProgram");function WL(e,t,r,n){return Fg(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}o(WL,"preparePartialBlock")});var Q1=v(Ja=>{"use strict";Ja.__esModule=!0;Ja.parseWithoutProcessing=Y1;Ja.parse=r8;function KL(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(KL,"_interopRequireWildcard");function K1(e){return e&&e.__esModule?e:{default:e}}o(K1,"_interopRequireDefault");var YL=B1(),Hg=K1(YL),QL=Z1(),JL=K1(QL),XL=W1(),e8=KL(XL),t8=Mt();Ja.parser=Hg.default;var Wl={};t8.extend(Wl,e8);function Y1(e,t){if(e.type==="Program")return e;Hg.default.yy=Wl,Wl.locInfo=function(n){return new Wl.SourceLocation(t&&t.srcName,n)};var r=Hg.default.parse(e);return r}o(Y1,"parseWithoutProcessing");function r8(e,t){var r=Y1(e,t),n=new JL.default(t);return n.accept(r)}o(r8,"parse")});var t$=v(rc=>{"use strict";rc.__esModule=!0;rc.Compiler=Bg;rc.precompile=s8;rc.compile=a8;function X1(e){return e&&e.__esModule?e:{default:e}}o(X1,"_interopRequireDefault");var n8=br(),ec=X1(n8),tc=Mt(),i8=Mg(),Xa=X1(i8),o8=[].slice;function Bg(){}o(Bg,"Compiler");Bg.prototype={compiler:Bg,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||!e$(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=tc.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 ec.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){J1(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 ec.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){J1(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 ec.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,Xa.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=Xa.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:o8.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=Xa.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&Xa.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&&!Xa.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&&tc.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function s8(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new ec.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(s8,"precompile");function a8(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new ec.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=tc.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(a8,"compile");function e$(e,t){if(e===t)return!0;if(tc.isArray(e)&&tc.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!e$(e[r],t[r]))return!1;return!0}}o(e$,"argEquals");function J1(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(J1,"transformLiteralToPath")});var n$=v(Vg=>{var r$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Vg.encode=function(e){if(0<=e&&e<r$.length)return r$[e];throw new TypeError("Must be between 0 and 63: "+e)};Vg.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 zg=v(Gg=>{var i$=n$(),Ug=5,o$=1<<Ug,s$=o$-1,a$=o$;function c8(e){return e<0?(-e<<1)+1:(e<<1)+0}o(c8,"toVLQSigned");function u8(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(u8,"fromVLQSigned");Gg.encode=o(function(t){var r="",n,i=c8(t);do n=i&s$,i>>>=Ug,i>0&&(n|=a$),r+=i$.encode(n);while(i>0);return r},"base64VLQ_encode");Gg.decode=o(function(t,r,n){var i=t.length,s=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=i$.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&a$),u&=s$,s=s+(u<<a),a+=Ug}while(c);n.value=u8(s),n.rest=r},"base64VLQ_decode")});var bs=v(Ct=>{function l8(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(l8,"getArg");Ct.getArg=l8;var c$=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,f8=/^data:.+\,.+$/;function nc(e){var t=e.match(c$);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(nc,"urlParse");Ct.urlParse=nc;function gs(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(gs,"urlGenerate");Ct.urlGenerate=gs;function Zg(e){var t=e,r=nc(e);if(r){if(!r.path)return e;t=r.path}for(var n=Ct.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,gs(r)):t}o(Zg,"normalize");Ct.normalize=Zg;function u$(e,t){e===""&&(e="."),t===""&&(t=".");var r=nc(t),n=nc(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),gs(r);if(r||t.match(f8))return t;if(n&&!n.host&&!n.path)return n.host=t,gs(n);var i=t.charAt(0)==="/"?t:Zg(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,gs(n)):i}o(u$,"join");Ct.join=u$;Ct.isAbsolute=function(e){return e.charAt(0)==="/"||c$.test(e)};function p8(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(p8,"relative");Ct.relative=p8;var l$=function(){var e=Object.create(null);return!("__proto__"in e)}();function f$(e){return e}o(f$,"identity");function d8(e){return p$(e)?"$"+e:e}o(d8,"toSetString");Ct.toSetString=l$?f$:d8;function h8(e){return p$(e)?e.slice(1):e}o(h8,"fromSetString");Ct.fromSetString=l$?f$:h8;function p$(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(p$,"isProtoString");function m8(e,t,r){var n=ys(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:ys(e.name,t.name)}o(m8,"compareByOriginalPositions");Ct.compareByOriginalPositions=m8;function g8(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=ys(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:ys(e.name,t.name)}o(g8,"compareByGeneratedPositionsDeflated");Ct.compareByGeneratedPositionsDeflated=g8;function ys(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(ys,"strcmp");function y8(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=ys(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:ys(e.name,t.name)}o(y8,"compareByGeneratedPositionsInflated");Ct.compareByGeneratedPositionsInflated=y8;function b8(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(b8,"parseSourceMapInput");Ct.parseSourceMapInput=b8;function v8(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=nc(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=u$(gs(n),t)}return Zg(t)}o(v8,"computeSourceURL");Ct.computeSourceURL=v8});var Yg=v(d$=>{var Wg=bs(),Kg=Object.prototype.hasOwnProperty,io=typeof Map<"u";function On(){this._array=[],this._set=io?new Map:Object.create(null)}o(On,"ArraySet");On.fromArray=o(function(t,r){for(var n=new On,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");On.prototype.size=o(function(){return io?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");On.prototype.add=o(function(t,r){var n=io?t:Wg.toSetString(t),i=io?this.has(t):Kg.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(io?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");On.prototype.has=o(function(t){if(io)return this._set.has(t);var r=Wg.toSetString(t);return Kg.call(this._set,r)},"ArraySet_has");On.prototype.indexOf=o(function(t){if(io){var r=this._set.get(t);if(r>=0)return r}else{var n=Wg.toSetString(t);if(Kg.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");On.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");On.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");d$.ArraySet=On});var g$=v(m$=>{var h$=bs();function _8(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||h$.compareByGeneratedPositionsInflated(e,t)<=0}o(_8,"generatedPositionAfter");function Kl(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(Kl,"MappingList");Kl.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");Kl.prototype.add=o(function(t){_8(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");Kl.prototype.toArray=o(function(){return this._sorted||(this._array.sort(h$.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");m$.MappingList=Kl});var Qg=v(y$=>{var ic=zg(),ot=bs(),Yl=Yg().ArraySet,S8=g$().MappingList;function _r(e){e||(e={}),this._file=ot.getArg(e,"file",null),this._sourceRoot=ot.getArg(e,"sourceRoot",null),this._skipValidation=ot.getArg(e,"skipValidation",!1),this._sources=new Yl,this._names=new Yl,this._mappings=new S8,this._sourcesContents=null}o(_r,"SourceMapGenerator");_r.prototype._version=3;_r.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new _r({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=ot.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=ot.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");_r.prototype.addMapping=o(function(t){var r=ot.getArg(t,"generated"),n=ot.getArg(t,"original",null),i=ot.getArg(t,"source",null),s=ot.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");_r.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=ot.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[ot.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[ot.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");_r.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=ot.relative(s,i));var a=new Yl,c=new Yl;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=ot.join(n,u.source)),s!=null&&(u.source=ot.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=ot.join(n,u)),s!=null&&(u=ot.relative(s,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");_r.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");_r.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(!ot.compareByGeneratedPositionsInflated(l,d[h-1]))continue;u+=","}u+=ic.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),u+=ic.encode(f-a),a=f,u+=ic.encode(l.originalLine-1-i),i=l.originalLine-1,u+=ic.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),u+=ic.encode(p-s),s=p)),c+=u}return c},"SourceMapGenerator_serializeMappings");_r.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=ot.relative(r,n));var i=ot.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");_r.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");_r.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");y$.SourceMapGenerator=_r});var b$=v(oo=>{oo.GREATEST_LOWER_BOUND=1;oo.LEAST_UPPER_BOUND=2;function Jg(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?Jg(a,t,r,n,i,s):s==oo.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?Jg(e,a,r,n,i,s):s==oo.LEAST_UPPER_BOUND?a:e<0?-1:e}o(Jg,"recursiveSearch");oo.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=Jg(-1,r.length,t,r,n,i||oo.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 _$=v(v$=>{function Xg(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(Xg,"swap");function O8(e,t){return Math.round(e+Math.random()*(t-e))}o(O8,"randomIntInRange");function ey(e,t,r,n){if(r<n){var i=O8(r,n),s=r-1;Xg(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,Xg(e,s,c));Xg(e,s+1,c);var u=s+1;ey(e,t,r,u-1),ey(e,t,u+1,n)}}o(ey,"doQuickSort");v$.quickSort=function(e,t){ey(e,t,0,e.length-1)}});var O$=v(Ql=>{var U=bs(),ty=b$(),vs=Yg().ArraySet,E8=zg(),oc=_$().quickSort;function Be(e,t){var r=e;return typeof e=="string"&&(r=U.parseSourceMapInput(e)),r.sections!=null?new Lr(r,t):new _t(r,t)}o(Be,"SourceMapConsumer");Be.fromSourceMap=function(e,t){return _t.fromSourceMap(e,t)};Be.prototype._version=3;Be.prototype.__generatedMappings=null;Object.defineProperty(Be.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Be.prototype.__originalMappings=null;Object.defineProperty(Be.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Be.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Be.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Be.GENERATED_ORDER=1;Be.ORIGINAL_ORDER=2;Be.GREATEST_LOWER_BOUND=1;Be.LEAST_UPPER_BOUND=2;Be.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||Be.GENERATED_ORDER,a;switch(s){case Be.GENERATED_ORDER:a=this._generatedMappings;break;case Be.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");Be.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,ty.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");Ql.SourceMapConsumer=Be;function _t(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=vs.fromArray(s.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}o(_t,"BasicSourceMapConsumer");_t.prototype=Object.create(Be.prototype);_t.prototype.consumer=Be;_t.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};_t.fromSourceMap=o(function(t,r){var n=Object.create(_t.prototype),i=n._names=vs.fromArray(t._names.toArray(),!0),s=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 S$;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 oc(n.__originalMappings,U.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");_t.prototype._version=3;Object.defineProperty(_t.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function S$(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(S$,"Mapping");_t.prototype._parseMappings=o(function(t,r){for(var n=1,i=0,s=0,a=0,c=0,u=0,l=t.length,p=0,f={},d={},h=[],y=[],b,g,P,$,C;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(b=new S$,b.generatedLine=n,$=p;$<l&&!this._charIsMappingSeparator(t,$);$++);if(g=t.slice(p,$),P=f[g],P)p+=g.length;else{for(P=[];p<$;)E8.decode(t,p,d),C=d.value,p=d.rest,P.push(C);if(P.length===2)throw new Error("Found a source, but no line and column");if(P.length===3)throw new Error("Found a source and line, but no column");f[g]=P}b.generatedColumn=i+P[0],i=b.generatedColumn,P.length>1&&(b.source=c+P[1],c+=P[1],b.originalLine=s+P[2],s=b.originalLine,b.originalLine+=1,b.originalColumn=a+P[3],a=b.originalColumn,P.length>4&&(b.name=u+P[4],u+=P[4])),y.push(b),typeof b.originalLine=="number"&&h.push(b)}oc(y,U.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,oc(h,U.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");_t.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 ty.search(t,r,s,a)},"SourceMapConsumer_findMapping");_t.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");_t.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",Be.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");_t.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");_t.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");_t.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",Be.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");Ql.BasicSourceMapConsumer=_t;function Lr(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 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 Be(U.getArg(a,"map"),t)}})}o(Lr,"IndexedSourceMapConsumer");Lr.prototype=Object.create(Be.prototype);Lr.prototype.constructor=Be;Lr.prototype._version=3;Object.defineProperty(Lr.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")});Lr.prototype.originalPositionFor=o(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=ty.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");Lr.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");Lr.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");Lr.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");Lr.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)}oc(this.__generatedMappings,U.compareByGeneratedPositionsDeflated),oc(this.__originalMappings,U.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");Ql.IndexedSourceMapConsumer=Lr});var P$=v(E$=>{var P8=Qg().SourceMapGenerator,Jl=bs(),x8=/(\r?\n)/,$8=10,_s="$$$isSourceNode$$$";function nr(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[_s]=!0,n!=null&&this.add(n)}o(nr,"SourceNode");nr.fromStringWithSourceMap=o(function(t,r,n){var i=new nr,s=t.split(x8),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=Jl.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?Jl.join(n,d.source):d.source;i.add(new nr(d.originalLine,d.originalColumn,y,h,d.name))}}o(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");nr.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[_s]||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");nr.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[_s]||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");nr.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[_s]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");nr.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");nr.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[_s]?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");nr.prototype.setSourceContent=o(function(t,r){this.sourceContents[Jl.toSetString(t)]=r},"SourceNode_setSourceContent");nr.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][_s]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Jl.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");nr.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");nr.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new P8(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)===$8?(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");E$.SourceNode=nr});var x$=v(Xl=>{Xl.SourceMapGenerator=Qg().SourceMapGenerator;Xl.SourceMapConsumer=O$().SourceMapConsumer;Xl.SourceNode=P$().SourceNode});var I$=v((ef,A$)=>{"use strict";ef.__esModule=!0;var ny=Mt(),so=void 0;try{(typeof define!="function"||!define.amd)&&($$=x$(),so=$$.SourceNode)}catch{}var $$;so||(so=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),so.prototype={add:o(function(t){ny.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){ny.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 ry(e,t,r){if(ny.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(ry,"castChunk");function w$(e){this.srcFile=e,this.source=[]}o(w$,"CodeGen");w$.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 so(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 so?t:(t=ry(t,this,r),new so(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=ry(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(ry(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};ef.default=w$;A$.exports=ef.default});var j$=v((tf,N$)=>{"use strict";tf.__esModule=!0;function R$(e){return e&&e.__esModule?e:{default:e}}o(R$,"_interopRequireDefault");var C$=kl(),w8=br(),iy=R$(w8),A8=Mt(),I8=I$(),T$=R$(I8);function Ss(e){this.value=e}o(Ss,"Literal");function Os(){}o(Os,"JavaScriptCompiler");Os.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=C$.COMPILER_REVISION,r=C$.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return A8.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 iy.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
61
61
  `]),this.decorators.push("return fn;"),i?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
62
62
  `),this.decorators.push(`}
63
- `),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(i);if(this.isChild)return p;var f={compiler:this.compilerInfo(),main:p};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var d=this.context,h=d.programs,y=d.decorators;for(u=0,l=h.length;u<l;u++)h[u]&&(f[u]=h[u],y[u]&&(f[u+"_d"]=y[u],f.useDecorators=!0));return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:o(function(){this.lastContext=0,this.source=new E$.default(this.options.srcName),this.decorators=new E$.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var l=r.aliases[u];l.children&&l.referenceCount>1&&(n+=", alias"+ ++s+"="+u,l.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return t?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
63
+ `),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(i);if(this.isChild)return p;var f={compiler:this.compilerInfo(),main:p};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var d=this.context,h=d.programs,y=d.decorators;for(u=0,l=h.length;u<l;u++)h[u]&&(f[u]=h[u],y[u]&&(f[u+"_d"]=y[u],f.useDecorators=!0));return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:o(function(){this.lastContext=0,this.source=new T$.default(this.options.srcName),this.decorators=new T$.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var l=r.aliases[u];l.children&&l.referenceCount>1&&(n+=", alias"+ ++s+"="+u,l.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return t?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
64
64
  `,c,"}"])},"createFunctionContext"),mergeSource:o(function(t){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(s?a.prepend("buffer += "):i=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(t+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(i?"":`;
65
65
  `)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
66
66
  lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -69,17 +69,17 @@ Expecting `+Q.join(", ")+", got '"+(this.terminals_[T]||T)+"'":ue="Parse error o
69
69
  }
70
70
  return undefined
71
71
  }
72
- `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(t){this.lastContext=t},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(t,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[s++])):this.pushContext(),this.resolvePath("context",t,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(t,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(_8(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:Os,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 Ss||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new Ss(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 Jg.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Ss)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 Ss)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 Ss)return n.value;if(!r){if(!this.stackSlot)throw new Jg.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 Ss?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=Os.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Os.isValidJavaScriptVariableName=function(e){return!Os.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function _8(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(_8,"strictLookup");Ql.default=Os;x$.exports=Ql.default});var I$=v((Jl,A$)=>{"use strict";Jl.__esModule=!0;function sc(e){return e&&e.__esModule?e:{default:e}}o(sc,"_interopRequireDefault");var S8=C1(),O8=sc(S8),E8=Ig(),P8=sc(E8),Xg=V1(),ey=Z1(),x8=$$(),$8=sc(x8),w8=Bl(),A8=sc(w8),I8=xg(),C8=sc(I8),T8=O8.default.create;function w$(){var e=T8();return e.compile=function(t,r){return ey.compile(t,r,e)},e.precompile=function(t,r){return ey.precompile(t,r,e)},e.AST=P8.default,e.Compiler=ey.Compiler,e.JavaScriptCompiler=$8.default,e.Parser=Xg.parser,e.parse=Xg.parse,e.parseWithoutProcessing=Xg.parseWithoutProcessing,e}o(w$,"create");var Es=w$();Es.create=w$;C8.default(Es);Es.Visitor=A8.default;Es.default=Es;Jl.default=Es;A$.exports=Jl.default});var C$=v(Xl=>{"use strict";Xl.__esModule=!0;Xl.print=M8;Xl.PrintVisitor=Je;function R8(e){return e&&e.__esModule?e:{default:e}}o(R8,"_interopRequireDefault");var N8=Bl(),j8=R8(N8);function M8(e){return new Je().accept(e)}o(M8,"print");function Je(){this.padding=0}o(Je,"PrintVisitor");Je.prototype=new j8.default;Je.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
73
- `,t};Je.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};Je.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Je.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Je.prototype.BlockStatement=Je.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};Je.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+" }}")};Je.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+" }}")};Je.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Je.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Je.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};Je.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Je.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Je.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Je.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Je.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Je.prototype.NullLiteral=function(){return"NULL"};Je.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(", ")+"}"};Je.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var xn=v((vQ,N$)=>{var ef=I$().default,R$=C$();ef.PrintVisitor=R$.PrintVisitor;ef.print=R$.print;N$.exports=ef;function T$(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=ef.compile(n)}o(T$,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=T$,require.extensions[".hbs"]=T$)});var gc=require("assert");var O2={right:w2,center:A2},E2=0,cc=1,P2=2,uc=3,nf=class nf{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(`
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(C8(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:Os,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 Ss||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new Ss(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 iy.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Ss)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 Ss)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 Ss)return n.value;if(!r){if(!this.stackSlot)throw new iy.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 Ss?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=Os.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Os.isValidJavaScriptVariableName=function(e){return!Os.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function C8(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(C8,"strictLookup");tf.default=Os;N$.exports=tf.default});var q$=v((rf,k$)=>{"use strict";rf.__esModule=!0;function sc(e){return e&&e.__esModule?e:{default:e}}o(sc,"_interopRequireDefault");var T8=D1(),R8=sc(T8),N8=Mg(),j8=sc(N8),oy=Q1(),sy=t$(),M8=j$(),k8=sc(M8),q8=zl(),D8=sc(q8),L8=Tg(),F8=sc(L8),H8=R8.default.create;function M$(){var e=H8();return e.compile=function(t,r){return sy.compile(t,r,e)},e.precompile=function(t,r){return sy.precompile(t,r,e)},e.AST=j8.default,e.Compiler=sy.Compiler,e.JavaScriptCompiler=k8.default,e.Parser=oy.parser,e.parse=oy.parse,e.parseWithoutProcessing=oy.parseWithoutProcessing,e}o(M$,"create");var Es=M$();Es.create=M$;F8.default(Es);Es.Visitor=D8.default;Es.default=Es;rf.default=Es;k$.exports=rf.default});var D$=v(nf=>{"use strict";nf.__esModule=!0;nf.print=G8;nf.PrintVisitor=Qe;function B8(e){return e&&e.__esModule?e:{default:e}}o(B8,"_interopRequireDefault");var V8=zl(),U8=B8(V8);function G8(e){return new Qe().accept(e)}o(G8,"print");function Qe(){this.padding=0}o(Qe,"PrintVisitor");Qe.prototype=new U8.default;Qe.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
73
+ `,t};Qe.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};Qe.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Qe.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Qe.prototype.BlockStatement=Qe.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};Qe.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+" }}")};Qe.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+" }}")};Qe.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Qe.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Qe.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};Qe.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Qe.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Qe.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Qe.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Qe.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Qe.prototype.NullLiteral=function(){return"NULL"};Qe.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(", ")+"}"};Qe.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var En=v((jQ,H$)=>{var of=q$().default,F$=D$();of.PrintVisitor=F$.PrintVisitor;of.print=F$.print;H$.exports=of;function L$(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=of.compile(n)}o(L$,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=L$,require.extensions[".hbs"]=L$)});var gc=require("assert");var C2={right:M2,center:k2},T2=0,cc=1,R2=2,uc=3,cf=class cf{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
74
  `).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&Zt.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),Zt.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=Zt.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>Zt.stringWidth(a)&&(p+=" ".repeat(l-Zt.stringWidth(a))),t[c].align&&t[c].align!=="left"&&this.wrap){let d=O2[t[c].align];p=d(p,l),Zt.stringWidth(p)<l&&(p+=" ".repeat((u||0)-Zt.stringWidth(p)-1))}let f=t[c].padding||[0,0,0,0];f[uc]&&(s+=" ".repeat(f[uc])),s+=oy(t[c],p,"| "),s+=p,s+=oy(t[c],p," |"),f[cc]&&(s+=" ".repeat(f[cc])),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=Zt.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=Zt.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
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>Zt.stringWidth(a)&&(p+=" ".repeat(l-Zt.stringWidth(a))),t[c].align&&t[c].align!=="left"&&this.wrap){let d=C2[t[c].align];p=d(p,l),Zt.stringWidth(p)<l&&(p+=" ".repeat((u||0)-Zt.stringWidth(p)-1))}let f=t[c].padding||[0,0,0,0];f[uc]&&(s+=" ".repeat(f[uc])),s+=fy(t[c],p,"| "),s+=p,s+=fy(t[c],p," |"),f[cc]&&(s+=" ".repeat(f[cc])),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=Zt.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=Zt.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
76
76
  `):i=s.text.split(`
77
- `),s.border&&(i.unshift("."+"-".repeat(this.negatePadding(s)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(s)+2)+"'")),s.padding&&(i.unshift(...new Array(s.padding[E2]||0).fill("")),i.push(...new Array(s.padding[P2]||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[uc]||0)+(t.padding[cc]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||Zt.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,x2(t[c])):a)}};o(nf,"UI");var rf=nf;function oy(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}o(oy,"addBorder");function x2(e){let t=e.padding||[],r=1+(t[uc]||0)+(t[cc]||0);return e.border?r+4:r}o(x2,"_minWidth");function $2(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}o($2,"getWindowWidth");function w2(e,t){e=e.trim();let r=Zt.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}o(w2,"alignRight");function A2(e,t){e=e.trim();let r=Zt.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}o(A2,"alignCenter");var Zt;function sy(e,t){return Zt=t,new rf({width:(e==null?void 0:e.width)||$2(),wrap:e==null?void 0:e.wrap})}o(sy,"cliui");var ay=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function of(e){return e.replace(ay,"")}o(of,"stripAnsi");function cy(e,t){let[r,n]=e.match(ay)||["",""];e=of(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(cy,"wrap");function sf(e){return sy(e,{stringWidth:o(t=>[...t].length,"stringWidth"),stripAnsi:of,wrap:cy})}o(sf,"ui");var lo=require("path"),lc=require("fs");function af(e,t){let r=(0,lo.resolve)(".",e),n;for((0,lc.statSync)(r).isDirectory()||(r=(0,lo.dirname)(r));;){if(n=t(r,(0,lc.readdirSync)(r)),n)return(0,lo.resolve)(r,n);if(r=(0,lo.dirname)(n=r),n===r)break}}o(af,"default");var Py=require("util"),xy=require("fs"),$y=require("url");var dy=require("util"),hc=require("path");function hi(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(hi,"camelCase");function fc(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(fc,"decamelize");function pc(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(pc,"looksLikeNumber");function uy(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(uy,"tokenizeArgString");var or;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(or||(or={}));var hn,uf=class uf{constructor(t){hn=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=uy(t),s=typeof t=="string",a=I2(Object.assign(Object.create(null),n.alias)),c=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),u=Object.assign(Object.create(null),n.default),l=n.configObjects||[],p=n.envPrefix,f=c["populate--"],d=f?"--":"_",h=Object.create(null),y=Object.create(null),b=n.__||hn.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:[]},P=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,$=new RegExp("^--"+c["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(_){let E=typeof _=="object"?_.key:_,N=Object.keys(_).map(function(A){return{boolean:"bools",string:"strings",number:"numbers"}[A]}).filter(Boolean).pop();N&&(g[N][E]=!0),g.arrays[E]=!0,g.keys.push(E)}),[].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(([_,E])=>{typeof E=="number"&&(g.nargs[_]=E,g.keys.push(_))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([_,E])=>{typeof E=="function"&&(g.coercions[_]=E,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(([_,E])=>{(typeof E=="boolean"||typeof E=="function")&&(g.configs[_]=E)})),Lt(n.key,a,n.default,g.arrays),Object.keys(u).forEach(function(_){(g.aliases[_]||[]).forEach(function(E){u[E]=u[_]})});let C=null;uo();let T=[],w=Object.assign(Object.create(null),{_:[]}),te={};for(let _=0;_<i.length;_++){let E=i[_],N=E.replace(/^-{3,}/,"---"),A,O,H,q,Z,nt;if(E!=="--"&&/^-/.test(E)&&ke(E))re(E);else if(N.match(/^---+(=|$)/)){re(E);continue}else if(E.match(/^--.+=/)||!c["short-option-groups"]&&E.match(/^-.+=/))q=E.match(/^--?([^=]+)=([\s\S]*)$/),q!==null&&Array.isArray(q)&&q.length>=3&&(ne(q[1],g.arrays)?_=Ae(_,q[1],i,q[2]):ne(q[1],g.nargs)!==!1?_=$e(_,q[1],i,q[2]):G(q[1],q[2],!0));else if(E.match($)&&c["boolean-negation"])q=E.match($),q!==null&&Array.isArray(q)&&q.length>=2&&(O=q[1],G(O,ne(O,g.arrays)?[!1]:!1));else if(E.match(/^--.+/)||!c["short-option-groups"]&&E.match(/^-[^-]+/))q=E.match(/^--?(.+)/),q!==null&&Array.isArray(q)&&q.length>=2&&(O=q[1],ne(O,g.arrays)?_=Ae(_,O,i):ne(O,g.nargs)!==!1?_=$e(_,O,i):(Z=i[_+1],Z!==void 0&&(!Z.match(/^-/)||Z.match(P))&&!ne(O,g.bools)&&!ne(O,g.counts)||/^(true|false)$/.test(Z)?(G(O,Z),_++):G(O,_e(O))));else if(E.match(/^-.\..+=/))q=E.match(/^-([^=]+)=([\s\S]*)$/),q!==null&&Array.isArray(q)&&q.length>=3&&G(q[1],q[2]);else if(E.match(/^-.\..+/)&&!E.match(P))Z=i[_+1],q=E.match(/^-(.\..+)/),q!==null&&Array.isArray(q)&&q.length>=2&&(O=q[1],Z!==void 0&&!Z.match(/^-/)&&!ne(O,g.bools)&&!ne(O,g.counts)?(G(O,Z),_++):G(O,_e(O)));else if(E.match(/^-[^-]+/)&&!E.match(P)){H=E.slice(1,-1).split(""),A=!1;for(let gt=0;gt<H.length;gt++){if(Z=E.slice(gt+2),H[gt+1]&&H[gt+1]==="="){nt=E.slice(gt+3),O=H[gt],ne(O,g.arrays)?_=Ae(_,O,i,nt):ne(O,g.nargs)!==!1?_=$e(_,O,i,nt):G(O,nt),A=!0;break}if(Z==="-"){G(H[gt],Z);continue}if(/[A-Za-z]/.test(H[gt])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(Z)&&ne(Z,g.bools)===!1){G(H[gt],Z),A=!0;break}if(H[gt+1]&&H[gt+1].match(/\W/)){G(H[gt],Z),A=!0;break}else G(H[gt],_e(H[gt]))}O=E.slice(-1)[0],!A&&O!=="-"&&(ne(O,g.arrays)?_=Ae(_,O,i):ne(O,g.nargs)!==!1?_=$e(_,O,i):(Z=i[_+1],Z!==void 0&&(!/^(-|--)[^-]/.test(Z)||Z.match(P))&&!ne(O,g.bools)&&!ne(O,g.counts)||/^(true|false)$/.test(Z)?(G(O,Z),_++):G(O,_e(O))))}else if(E.match(/^-[0-9]$/)&&E.match(P)&&ne(E.slice(1),g.bools))O=E.slice(1),G(O,_e(O));else if(E==="--"){T=i.slice(_+1);break}else if(c["halt-at-non-option"]){T=i.slice(_);break}else re(E)}ge(w,!0),ge(w,!1),Q(w),ve(),Ne(w,g.aliases,u,!0),We(w),c["set-placeholder-key"]&&Fr(w),Object.keys(g.counts).forEach(function(_){ir(w,_.split("."))||G(_,0)}),f&&T.length&&(w[d]=[]),T.forEach(function(_){w[d].push(_)}),c["camel-case-expansion"]&&c["strip-dashed"]&&Object.keys(w).filter(_=>_!=="--"&&_.includes("-")).forEach(_=>{delete w[_]}),c["strip-aliased"]&&[].concat(...Object.keys(a).map(_=>a[_])).forEach(_=>{c["camel-case-expansion"]&&_.includes("-")&&delete w[_.split(".").map(E=>hi(E)).join(".")],delete w[_]});function re(_){let E=k("_",_);(typeof E=="string"||typeof E=="number")&&w._.push(E)}o(re,"pushPositional");function $e(_,E,N,A){let O,H=ne(E,g.nargs);if(H=typeof H!="number"||isNaN(H)?1:H,H===0)return Ft(A)||(C=Error(b("Argument unexpected for: %s",E))),G(E,_e(E)),_;let q=Ft(A)?0:1;if(c["nargs-eats-options"])N.length-(_+1)+q<H&&(C=Error(b("Not enough arguments following: %s",E))),q=H;else{for(O=_+1;O<N.length&&(!N[O].match(/^-[^0-9]/)||N[O].match(P)||ke(N[O]));O++)q++;q<H&&(C=Error(b("Not enough arguments following: %s",E)))}let Z=Math.min(q,H);for(!Ft(A)&&Z>0&&(G(E,A),Z--),O=_+1;O<Z+_+1;O++)G(E,N[O]);return _+Z}o($e,"eatNargs");function Ae(_,E,N,A){let O=[],H=A||N[_+1],q=ne(E,g.nargs);if(ne(E,g.bools)&&!/^(true|false)$/.test(H))O.push(!0);else if(Ft(H)||Ft(A)&&/^-/.test(H)&&!P.test(H)&&!ke(H)){if(u[E]!==void 0){let Z=u[E];O=Array.isArray(Z)?Z:[Z]}}else{Ft(A)||O.push(R(E,A,!0));for(let Z=_+1;Z<N.length&&!(!c["greedy-arrays"]&&O.length>0||q&&typeof q=="number"&&O.length>=q||(H=N[Z],/^-/.test(H)&&!P.test(H)&&!ke(H)));Z++)_=Z,O.push(R(E,H,s))}return typeof q=="number"&&(q&&O.length<q||isNaN(q)&&O.length===0)&&(C=Error(b("Not enough arguments following: %s",E))),G(E,O),_}o(Ae,"eatArray");function G(_,E,N=s){if(/-/.test(_)&&c["camel-case-expansion"]){let H=_.split(".").map(function(q){return hi(q)}).join(".");j(_,H)}let A=R(_,E,N),O=_.split(".");Y(w,O,A),g.aliases[_]&&g.aliases[_].forEach(function(H){let q=H.split(".");Y(w,q,A)}),O.length>1&&c["dot-notation"]&&(g.aliases[O[0]]||[]).forEach(function(H){let q=H.split("."),Z=[].concat(O);Z.shift(),q=q.concat(Z),(g.aliases[_]||[]).includes(q.join("."))||Y(w,q,A)}),ne(_,g.normalize)&&!ne(_,g.arrays)&&[_].concat(g.aliases[_]||[]).forEach(function(q){Object.defineProperty(te,q,{enumerable:!0,get(){return E},set(Z){E=typeof Z=="string"?hn.normalize(Z):Z}})})}o(G,"setArg");function j(_,E){g.aliases[_]&&g.aliases[_].length||(g.aliases[_]=[E],h[E]=!0),g.aliases[E]&&g.aliases[E].length||j(E,_)}o(j,"addNewAlias");function R(_,E,N){N&&(E=C2(E)),(ne(_,g.bools)||ne(_,g.counts))&&typeof E=="string"&&(E=E==="true");let A=Array.isArray(E)?E.map(function(O){return k(_,O)}):k(_,E);return ne(_,g.counts)&&(Ft(A)||typeof A=="boolean")&&(A=cf()),ne(_,g.normalize)&&ne(_,g.arrays)&&(Array.isArray(E)?A=E.map(O=>hn.normalize(O)):A=hn.normalize(E)),A}o(R,"processValue");function k(_,E){return!c["parse-positional-numbers"]&&_==="_"||!ne(_,g.strings)&&!ne(_,g.bools)&&!Array.isArray(E)&&(pc(E)&&c["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${E}`)))||!Ft(E)&&ne(_,g.numbers))&&(E=Number(E)),E}o(k,"maybeCoerceNumber");function Q(_){let E=Object.create(null);Ne(E,g.aliases,u),Object.keys(g.configs).forEach(function(N){let A=_[N]||E[N];if(A)try{let O=null,H=hn.resolve(hn.cwd(),A),q=g.configs[N];if(typeof q=="function"){try{O=q(H)}catch(Z){O=Z}if(O instanceof Error){C=O;return}}else O=hn.require(H);ue(O)}catch(O){O.name==="PermissionDenied"?C=O:_[N]&&(C=Error(b("Invalid JSON config file: %s",A)))}})}o(Q,"setConfig");function ue(_,E){Object.keys(_).forEach(function(N){let A=_[N],O=E?E+"."+N:N;typeof A=="object"&&A!==null&&!Array.isArray(A)&&c["dot-notation"]?ue(A,O):(!ir(w,O.split("."))||ne(O,g.arrays)&&c["combine-arrays"])&&G(O,A)})}o(ue,"setConfigObject");function ve(){typeof l<"u"&&l.forEach(function(_){ue(_)})}o(ve,"setConfigObjects");function ge(_,E){if(typeof p>"u")return;let N=typeof p=="string"?p:"",A=hn.env();Object.keys(A).forEach(function(O){if(N===""||O.lastIndexOf(N,0)===0){let H=O.split("__").map(function(q,Z){return Z===0&&(q=q.substring(N.length)),hi(q)});(E&&g.configs[H.join(".")]||!E)&&!ir(_,H)&&G(H.join("."),A[O])}})}o(ge,"applyEnvVars");function We(_){let E,N=new Set;Object.keys(_).forEach(function(A){if(!N.has(A)&&(E=ne(A,g.coercions),typeof E=="function"))try{let O=k(A,E(_[A]));[].concat(g.aliases[A]||[],A).forEach(H=>{N.add(H),_[H]=O})}catch(O){C=O}})}o(We,"applyCoercions");function Fr(_){return g.keys.forEach(E=>{~E.indexOf(".")||typeof _[E]>"u"&&(_[E]=void 0)}),_}o(Fr,"setPlaceholderKeys");function Ne(_,E,N,A=!1){Object.keys(N).forEach(function(O){ir(_,O.split("."))||(Y(_,O.split("."),N[O]),A&&(y[O]=!0),(E[O]||[]).forEach(function(H){ir(_,H.split("."))||Y(_,H.split("."),N[O])}))})}o(Ne,"applyDefaultsAndAliases");function ir(_,E){let N=_;c["dot-notation"]||(E=[E.join(".")]),E.slice(0,-1).forEach(function(O){N=N[O]||{}});let A=E[E.length-1];return typeof N!="object"?!1:A in N}o(ir,"hasKey");function Y(_,E,N){let A=_;c["dot-notation"]||(E=[E.join(".")]),E.slice(0,-1).forEach(function(nt){nt=ly(nt),typeof A=="object"&&A[nt]===void 0&&(A[nt]={}),typeof A[nt]!="object"||Array.isArray(A[nt])?(Array.isArray(A[nt])?A[nt].push({}):A[nt]=[A[nt],{}],A=A[nt][A[nt].length-1]):A=A[nt]});let O=ly(E[E.length-1]),H=ne(E.join("."),g.arrays),q=Array.isArray(N),Z=c["duplicate-arguments-array"];!Z&&ne(O,g.nargs)&&(Z=!0,(!Ft(A[O])&&g.nargs[O]===1||Array.isArray(A[O])&&A[O].length===g.nargs[O])&&(A[O]=void 0)),N===cf()?A[O]=cf(A[O]):Array.isArray(A[O])?Z&&H&&q?A[O]=c["flatten-duplicate-arrays"]?A[O].concat(N):(Array.isArray(A[O][0])?A[O]:[A[O]]).concat([N]):!Z&&!!H==!!q?A[O]=N:A[O]=A[O].concat([N]):A[O]===void 0&&H?A[O]=q?N:[N]:Z&&!(A[O]===void 0||ne(O,g.counts)||ne(O,g.bools))?A[O]=[A[O],N]:A[O]=N}o(Y,"setKey");function Lt(..._){_.forEach(function(E){Object.keys(E||{}).forEach(function(N){g.aliases[N]||(g.aliases[N]=[].concat(a[N]||[]),g.aliases[N].concat(N).forEach(function(A){if(/-/.test(A)&&c["camel-case-expansion"]){let O=hi(A);O!==N&&g.aliases[N].indexOf(O)===-1&&(g.aliases[N].push(O),h[O]=!0)}}),g.aliases[N].concat(N).forEach(function(A){if(A.length>1&&/[A-Z]/.test(A)&&c["camel-case-expansion"]){let O=fc(A,"-");O!==N&&g.aliases[N].indexOf(O)===-1&&(g.aliases[N].push(O),h[O]=!0)}}),g.aliases[N].forEach(function(A){g.aliases[A]=[N].concat(g.aliases[N].filter(function(O){return A!==O}))}))})})}o(Lt,"extendAliases");function ne(_,E){let N=[].concat(g.aliases[_]||[],_),A=Object.keys(E),O=N.find(H=>A.includes(H));return O?E[O]:!1}o(ne,"checkAllAliases");function Me(_){let E=Object.keys(g);return[].concat(E.map(A=>g[A])).some(function(A){return Array.isArray(A)?A.includes(_):A[_]})}o(Me,"hasAnyFlag");function X(_,...E){return[].concat(...E).some(function(A){let O=_.match(A);return O&&Me(O[1])})}o(X,"hasFlagsMatching");function je(_){if(_.match(P)||!_.match(/^-[^-]+/))return!1;let E=!0,N,A=_.slice(1).split("");for(let O=0;O<A.length;O++){if(N=_.slice(O+2),!Me(A[O])){E=!1;break}if(A[O+1]&&A[O+1]==="="||N==="-"||/[A-Za-z]/.test(A[O])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(N)||A[O+1]&&A[O+1].match(/\W/))break}return E}o(je,"hasAllShortFlags");function ke(_){return c["unknown-options-as-args"]&&pe(_)}o(ke,"isUnknownOptionAsArg");function pe(_){return _=_.replace(/^-{3,}/,"--"),_.match(P)||je(_)?!1:!X(_,/^-+([^=]+?)=[\s\S]*$/,$,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}o(pe,"isUnknownOption");function _e(_){return!ne(_,g.bools)&&!ne(_,g.counts)&&`${_}`in u?u[_]:Ue(lt(_))}o(_e,"defaultValue");function Ue(_){return{[or.BOOLEAN]:!0,[or.STRING]:"",[or.NUMBER]:void 0,[or.ARRAY]:[]}[_]}o(Ue,"defaultForType");function lt(_){let E=or.BOOLEAN;return ne(_,g.strings)?E=or.STRING:ne(_,g.numbers)?E=or.NUMBER:ne(_,g.bools)?E=or.BOOLEAN:ne(_,g.arrays)&&(E=or.ARRAY),E}o(lt,"guessType");function Ft(_){return _===void 0}o(Ft,"isUndefined");function uo(){Object.keys(g.counts).find(_=>ne(_,g.arrays)?(C=Error(b("Invalid configuration: %s, opts.count excludes opts.array.",_)),!0):ne(_,g.nargs)?(C=Error(b("Invalid configuration: %s, opts.count excludes opts.narg.",_)),!0):!1)}return o(uo,"checkConfiguration"),{aliases:Object.assign({},g.aliases),argv:Object.assign(te,w),configuration:c,defaulted:Object.assign({},y),error:C,newAliases:Object.assign({},h)}}};o(uf,"YargsParser");var dc=uf;function I2(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(I2,"combineAliases");function cf(e){return e!==void 0?e+1:1}o(cf,"increment");function ly(e){return e==="__proto__"?"___proto___":e}o(ly,"sanitizeKey");function C2(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}o(C2,"stripQuotes");var hy=require("fs");var lf,ff,pf,fy=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,py=(ff=(lf=process==null?void 0:process.versions)===null||lf===void 0?void 0:lf.node)!==null&&ff!==void 0?ff:(pf=process==null?void 0:process.version)===null||pf===void 0?void 0:pf.slice(1);if(py&&Number(py.match(/^([^.]+)/)[1])<fy)throw Error(`yargs parser supports a minimum Node.js version of ${fy}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var T2=process?process.env:{},my=new dc({cwd:process.cwd,env:o(()=>T2,"env"),format:dy.format,normalize:hc.normalize,resolve:hc.resolve,require:o(e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,hy.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")},"require")}),ws=o(function(t,r){return my.parse(t.slice(),r).argv},"Parser");ws.detailed=function(e,t){return my.parse(e.slice(),t)};ws.camelCase=hi;ws.decamelize=fc;ws.looksLikeNumber=pc;var df=ws;var Pr=require("path");function gy(){return R2()?0:1}o(gy,"getProcessArgvBinIndex");function R2(){return N2()&&!process.defaultApp}o(R2,"isBundledElectronApp");function N2(){return!!process.versions.electron}o(N2,"isElectronApp");function hf(e){return e.slice(gy()+1)}o(hf,"hideBin");function yy(){return process.argv[gy()]}o(yy,"getProcessArgvBin");var mc=class mc extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,mc)}};o(mc,"YError");var De=mc;var fo=require("fs"),by=require("util"),vy=require("path");var _y={fs:{readFileSync:fo.readFileSync,writeFile:fo.writeFile},format:by.format,resolve:vy.resolve,exists:o(e=>{try{return(0,fo.statSync)(e).isFile()}catch{return!1}},"exists")};var Er,gf=class gf{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(),Er.format.apply(Er.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),Er.format.apply(Er.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);Er.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{Er.fs.readFileSync&&(t=JSON.parse(Er.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=Er.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=Er.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return Er.exists(t)}};o(gf,"Y18N");var mf=gf;function Sy(e,t){Er=t;let r=new mf(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(Sy,"y18n");var j2=o(e=>Sy(e,_y),"y18n"),Oy=j2;var q2={};var M2="require is not supported by ESM",Ey="loading a directory of commands is not supported yet for ESM",As;try{As=(0,$y.fileURLToPath)(q2.url)}catch{As=process.cwd()}var k2=As.substring(0,As.lastIndexOf("node_modules")),yf={assert:{notStrictEqual:gc.notStrictEqual,strictEqual:gc.strictEqual},cliui:sf,findUp:af,getEnv:o(e=>process.env[e],"getEnv"),inspect:Py.inspect,getCallerFile:o(()=>{throw new De(Ey)},"getCallerFile"),getProcessArgvBin:yy,mainFilename:k2||process.cwd(),Parser:df,path:{basename:Pr.basename,dirname:Pr.dirname,extname:Pr.extname,relative:Pr.relative,resolve:Pr.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:xy.readFileSync,require:o(()=>{throw new De(M2)},"require"),requireDirectory:o(()=>{throw new De(Ey)},"requireDirectory"),stringWidth:o(e=>[...e].length,"stringWidth"),y18n:Oy({directory:(0,Pr.resolve)(As,"../../../locales"),updateFiles:!1})};function Rt(e,t,r,n){r.assert.notStrictEqual(e,t,n)}o(Rt,"assertNotStrictEqual");function bf(e,t){t.assert.strictEqual(typeof e,"string")}o(bf,"assertSingleKey");function po(e){return Object.keys(e)}o(po,"objectKeys");function Le(e){return!!e&&!!e.then&&typeof e.then=="function"}o(Le,"isPromise");function $n(e){let r=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,i=r.shift();if(!i)throw new Error(`No command found in: ${e}`);let s={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((a,c)=>{let u=!1;a=a.replace(/\s/g,""),/\.+[\]>]/.test(a)&&c===r.length-1&&(u=!0),/^\[/.test(a)?s.optional.push({cmd:a.replace(n,"").split("|"),variadic:u}):s.demanded.push({cmd:a.replace(n,"").split("|"),variadic:u})}),s}o($n,"parseCommand");var D2=["first","second","third","fourth","fifth","sixth"];function F(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[$n(`cmd ${e}`),t,r]}o(n,"parseArgs");try{let i=0,[s,a,c]=n(),u=[].slice.call(a);for(;u.length&&u[u.length-1]===void 0;)u.pop();let l=c||u.length;if(l<s.demanded.length)throw new De(`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 De(`Too many arguments provided. Expected max ${p} but received ${l}.`);s.demanded.forEach(f=>{let d=u.shift(),h=wy(d);f.cmd.filter(b=>b===h||b==="*").length===0&&Ay(h,f.cmd,i),i+=1}),s.optional.forEach(f=>{if(u.length===0)return;let d=u.shift(),h=wy(d);f.cmd.filter(b=>b===h||b==="*").length===0&&Ay(h,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}o(F,"argsert");function wy(e){return Array.isArray(e)?"array":e===null?"null":typeof e}o(wy,"guessType");function Ay(e,t,r){throw new De(`Invalid ${D2[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}o(Ay,"argumentTypeError");var vf=class vf{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(vf,"GlobalMiddleware");var yc=vf;function Iy(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}o(Iy,"commandMiddlewareFactory");function mi(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(Le(i))return i.then(a=>Promise.all([a,s(a,t)])).then(([a,c])=>Object.assign(a,c));{let a=s(i,t);return Le(a)?a.then(c=>Object.assign(i,c)):Object.assign(i,a)}},e)}o(mi,"applyMiddleware");function gi(e,t,r=n=>{throw n}){try{let n=L2(e)?e():e;return Le(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}o(gi,"maybeAsyncResult");function L2(e){return typeof e=="function"}o(L2,"isFunction");function _f(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(_f,"whichModule");var ho=/(^\*)|(^\$0)/,Of=class Of{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=Iy(s);if(i=i||(()=>{}),Array.isArray(t))if(F2(t))[t,...c]=t;else for(let l of t)this.addHandler(l);else if(B2(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(Cy(n)){this.addHandler([t].concat(c),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=$n(t);c=c.map(d=>$n(d).cmd);let p=!1,f=[l.cmd].concat(c).filter(d=>ho.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(ho,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 Le(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(bc(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),u);if(Le(f))return f.then(d=>(p=Ry(d)?d:n,this.parseAndUpdateUsage(t,r,p,s,a,c)))}else H2(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 Le(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=ho.test(r.original)?r.original.replace(ho,"").trim():r.original,i=t.filter(s=>!ho.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=gi(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=mi(n,a,c,!1),n=gi(n,p=>{let f=r.handler(p);return Le(f)?f.then(()=>p):p}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),Le(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=mi(n,c,l,!0);return Le(p)?p.then(f=>this.handleValidationAndGetResult(t,r,f,i,a,c,l,u)):this.handleValidationAndGetResult(t,r,p,i,a,c,l,u)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let s=t.demanded.slice(0),a=t.optional.slice(0),c={};for(this.validation.positionalCount(s.length,r._.length);s.length;){let u=s.shift();this.populatePositional(u,r,c)}for(;a.length;){let u=a.shift();this.populatePositional(u,r,c)}return r._=n.commands.concat(r._.map(u=>""+u)),this.postProcessPositionals(r,c,this.cmdToParseOptions(t.original),i),c}populatePositional(t,r,n){let i=t.cmd[0];t.variadic?n[i]=r._.splice(0).map(String):r._.length&&(n[i]=[String(r._.shift())])}cmdToParseOptions(t){let r={array:[],default:{},alias:{},demand:{}},n=$n(t);return n.demanded.forEach(i=>{let[s,...a]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=a,r.demand[s]=!0}),n.optional.forEach(i=>{let[s,...a]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=a}),r}postProcessPositionals(t,r,n,i){let s=Object.assign({},i.getOptions());s.default=Object.assign(n.default,s.default);for(let l of Object.keys(n.alias))s.alias[l]=(s.alias[l]||[]).concat(n.alias[l]);s.array=s.array.concat(n.array),s.config={};let a=[];if(Object.keys(r).forEach(l=>{r[l].map(p=>{s.configuration["unknown-options-as-args"]&&(s.key[l]=!0),a.push(`--${l}`),a.push(p)})}),!a.length)return;let c=Object.assign({},s.configuration,{"populate--":!1}),u=this.shim.Parser.detailed(a,Object.assign({},s,{configuration:c}));if(u.error)i.getInternalMethods().getUsageInstance().fail(u.error.message,u.error);else{let l=Object.keys(r);Object.keys(r).forEach(p=>{l.push(...u.aliases[p])}),Object.keys(u.argv).forEach(p=>{l.includes(p)&&(r[p]||(r[p]=u.argv[p]),!this.isInConfigs(i,p)&&!this.isDefaulted(i,p)&&Object.prototype.hasOwnProperty.call(t,p)&&Object.prototype.hasOwnProperty.call(u.argv,p)&&(Array.isArray(t[p])||Array.isArray(u.argv[p]))?t[p]=[].concat(t[p],u.argv[p]):t[p]=u.argv[p])})}}isDefaulted(t,r){let{default:n}=t.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(t,r){let{configObjects:n}=t.getOptions();return n.some(i=>Object.prototype.hasOwnProperty.call(i,r))||n.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let n=ho.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(bc(r))return r(t,!0);Cy(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=_f(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;Rt(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();Rt(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(Of,"CommandInstance");var Sf=Of;function Ty(e,t,r,n){return new Sf(e,t,r,n)}o(Ty,"command");function Cy(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}o(Cy,"isCommandBuilderDefinition");function F2(e){return e.every(t=>typeof t=="string")}o(F2,"isCommandAndAliases");function bc(e){return typeof e=="function"}o(bc,"isCommandBuilderCallback");function H2(e){return typeof e=="object"}o(H2,"isCommandBuilderOptionDefinitions");function B2(e){return typeof e=="object"&&!Array.isArray(e)}o(B2,"isCommandHandlerDefinition");function wn(e={},t=()=>!0){let r={};return po(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}o(wn,"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)})}o(An,"setBlocking");function V2(e){return typeof e=="boolean"}o(V2,"isBoolean");function jy(e,t){let r=t.y18n.__,n={},i=[];n.failFn=o(function(R){i.push(R)},"failFn");let s=null,a=null,c=!0;n.showHelpOnFail=o(function(R=!0,k){let[Q,ue]=typeof R=="string"?[!0,R]:[R,k];return e.getInternalMethods().isGlobalContext()&&(a=ue),s=ue,c=Q,n},"showHelpOnFailFn");let u=!1;n.fail=o(function(R,k){let Q=e.getInternalMethods().getLoggerInstance();if(i.length)for(let ue=i.length-1;ue>=0;--ue){let ve=i[ue];if(V2(ve)){if(k)throw k;if(R)throw Error(R)}else ve(R,k,n)}else{if(e.getExitProcess()&&An(!0),!u){u=!0,c&&(e.showHelp("error"),Q.error()),(R||k)&&Q.error(R||k);let ue=s||a;ue&&((R||k)&&Q.error(""),Q.error(ue))}if(k=k||new De(R),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,k);throw k}},"fail");let l=[],p=!1;n.usage=(j,R)=>j===null?(p=!0,l=[],n):(p=!1,l.push([j,R||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>p,n.getPositionalGroupName=()=>r("Positionals:");let f=[];n.example=(j,R)=>{f.push([j,R||""])};let d=[];n.command=o(function(R,k,Q,ue,ve=!1){Q&&(d=d.map(ge=>(ge[2]=!1,ge))),d.push([R,k||"",Q,ue,ve])},"command"),n.getCommands=()=>d;let h={};n.describe=o(function(R,k){Array.isArray(R)?R.forEach(Q=>{n.describe(Q,k)}):typeof R=="object"?Object.keys(R).forEach(Q=>{n.describe(Q,R[Q])}):h[R]=k},"describe"),n.getDescriptions=()=>h;let y=[];n.epilog=j=>{y.push(j)};let b=!1,g;n.wrap=j=>{b=!0,g=j},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(b||(g=$e(),b=!0),g);let P="__yargsString__:";n.deferY18nLookup=j=>P+j,n.help=o(function(){if(T)return T;C();let R=e.customScriptName?e.$0:t.path.basename(e.$0),k=e.getDemandedOptions(),Q=e.getDemandedCommands(),ue=e.getDeprecatedOptions(),ve=e.getGroups(),ge=e.getOptions(),We=[];We=We.concat(Object.keys(h)),We=We.concat(Object.keys(k)),We=We.concat(Object.keys(Q)),We=We.concat(Object.keys(ge.default)),We=We.filter(te),We=Object.keys(We.reduce((X,je)=>(je!=="_"&&(X[je]=!0),X),{}));let Fr=n.getWrap(),Ne=t.cliui({width:Fr,wrap:!!Fr});if(!p){if(l.length)l.forEach(X=>{Ne.div({text:`${X[0].replace(/\$0/g,R)}`}),X[1]&&Ne.div({text:`${X[1]}`,padding:[1,0,0,0]})}),Ne.div();else if(d.length){let X=null;Q._?X=`${R} <${r("command")}>
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[T2]||0).fill("")),i.push(...new Array(s.padding[R2]||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[uc]||0)+(t.padding[cc]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||Zt.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,N2(t[c])):a)}};o(cf,"UI");var af=cf;function fy(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}o(fy,"addBorder");function N2(e){let t=e.padding||[],r=1+(t[uc]||0)+(t[cc]||0);return e.border?r+4:r}o(N2,"_minWidth");function j2(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}o(j2,"getWindowWidth");function M2(e,t){e=e.trim();let r=Zt.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}o(M2,"alignRight");function k2(e,t){e=e.trim();let r=Zt.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}o(k2,"alignCenter");var Zt;function py(e,t){return Zt=t,new af({width:(e==null?void 0:e.width)||j2(),wrap:e==null?void 0:e.wrap})}o(py,"cliui");var dy=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function uf(e){return e.replace(dy,"")}o(uf,"stripAnsi");function hy(e,t){let[r,n]=e.match(dy)||["",""];e=uf(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(hy,"wrap");function lf(e){return py(e,{stringWidth:o(t=>[...t].length,"stringWidth"),stripAnsi:uf,wrap:hy})}o(lf,"ui");var uo=require("path"),lc=require("fs");function ff(e,t){let r=(0,uo.resolve)(".",e),n;for((0,lc.statSync)(r).isDirectory()||(r=(0,uo.dirname)(r));;){if(n=t(r,(0,lc.readdirSync)(r)),n)return(0,uo.resolve)(r,n);if(r=(0,uo.dirname)(n=r),n===r)break}}o(ff,"default");var Cy=require("util"),Ty=require("fs"),Ry=require("url");var vy=require("util"),hc=require("path");function pi(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(pi,"camelCase");function fc(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(fc,"decamelize");function pc(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(pc,"looksLikeNumber");function my(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(my,"tokenizeArgString");var or;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(or||(or={}));var pn,df=class df{constructor(t){pn=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=my(t),s=typeof t=="string",a=q2(Object.assign(Object.create(null),n.alias)),c=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),u=Object.assign(Object.create(null),n.default),l=n.configObjects||[],p=n.envPrefix,f=c["populate--"],d=f?"--":"_",h=Object.create(null),y=Object.create(null),b=n.__||pn.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:[]},P=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,$=new RegExp("^--"+c["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(_){let E=typeof _=="object"?_.key:_,N=Object.keys(_).map(function(A){return{boolean:"bools",string:"strings",number:"numbers"}[A]}).filter(Boolean).pop();N&&(g[N][E]=!0),g.arrays[E]=!0,g.keys.push(E)}),[].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(([_,E])=>{typeof E=="number"&&(g.nargs[_]=E,g.keys.push(_))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([_,E])=>{typeof E=="function"&&(g.coercions[_]=E,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(([_,E])=>{(typeof E=="boolean"||typeof E=="function")&&(g.configs[_]=E)})),Dt(n.key,a,n.default,g.arrays),Object.keys(u).forEach(function(_){(g.aliases[_]||[]).forEach(function(E){u[E]=u[_]})});let C=null;co();let T=[],w=Object.assign(Object.create(null),{_:[]}),te={};for(let _=0;_<i.length;_++){let E=i[_],N=E.replace(/^-{3,}/,"---"),A,O,H,q,Z,rt;if(E!=="--"&&/^-/.test(E)&&Me(E))re(E);else if(N.match(/^---+(=|$)/)){re(E);continue}else if(E.match(/^--.+=/)||!c["short-option-groups"]&&E.match(/^-.+=/))q=E.match(/^--?([^=]+)=([\s\S]*)$/),q!==null&&Array.isArray(q)&&q.length>=3&&(ne(q[1],g.arrays)?_=we(_,q[1],i,q[2]):ne(q[1],g.nargs)!==!1?_=xe(_,q[1],i,q[2]):G(q[1],q[2],!0));else if(E.match($)&&c["boolean-negation"])q=E.match($),q!==null&&Array.isArray(q)&&q.length>=2&&(O=q[1],G(O,ne(O,g.arrays)?[!1]:!1));else if(E.match(/^--.+/)||!c["short-option-groups"]&&E.match(/^-[^-]+/))q=E.match(/^--?(.+)/),q!==null&&Array.isArray(q)&&q.length>=2&&(O=q[1],ne(O,g.arrays)?_=we(_,O,i):ne(O,g.nargs)!==!1?_=xe(_,O,i):(Z=i[_+1],Z!==void 0&&(!Z.match(/^-/)||Z.match(P))&&!ne(O,g.bools)&&!ne(O,g.counts)||/^(true|false)$/.test(Z)?(G(O,Z),_++):G(O,Oe(O))));else if(E.match(/^-.\..+=/))q=E.match(/^-([^=]+)=([\s\S]*)$/),q!==null&&Array.isArray(q)&&q.length>=3&&G(q[1],q[2]);else if(E.match(/^-.\..+/)&&!E.match(P))Z=i[_+1],q=E.match(/^-(.\..+)/),q!==null&&Array.isArray(q)&&q.length>=2&&(O=q[1],Z!==void 0&&!Z.match(/^-/)&&!ne(O,g.bools)&&!ne(O,g.counts)?(G(O,Z),_++):G(O,Oe(O)));else if(E.match(/^-[^-]+/)&&!E.match(P)){H=E.slice(1,-1).split(""),A=!1;for(let gt=0;gt<H.length;gt++){if(Z=E.slice(gt+2),H[gt+1]&&H[gt+1]==="="){rt=E.slice(gt+3),O=H[gt],ne(O,g.arrays)?_=we(_,O,i,rt):ne(O,g.nargs)!==!1?_=xe(_,O,i,rt):G(O,rt),A=!0;break}if(Z==="-"){G(H[gt],Z);continue}if(/[A-Za-z]/.test(H[gt])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(Z)&&ne(Z,g.bools)===!1){G(H[gt],Z),A=!0;break}if(H[gt+1]&&H[gt+1].match(/\W/)){G(H[gt],Z),A=!0;break}else G(H[gt],Oe(H[gt]))}O=E.slice(-1)[0],!A&&O!=="-"&&(ne(O,g.arrays)?_=we(_,O,i):ne(O,g.nargs)!==!1?_=xe(_,O,i):(Z=i[_+1],Z!==void 0&&(!/^(-|--)[^-]/.test(Z)||Z.match(P))&&!ne(O,g.bools)&&!ne(O,g.counts)||/^(true|false)$/.test(Z)?(G(O,Z),_++):G(O,Oe(O))))}else if(E.match(/^-[0-9]$/)&&E.match(P)&&ne(E.slice(1),g.bools))O=E.slice(1),G(O,Oe(O));else if(E==="--"){T=i.slice(_+1);break}else if(c["halt-at-non-option"]){T=i.slice(_);break}else re(E)}ge(w,!0),ge(w,!1),Q(w),Se(),Re(w,g.aliases,u,!0),Ze(w),c["set-placeholder-key"]&&Fr(w),Object.keys(g.counts).forEach(function(_){ir(w,_.split("."))||G(_,0)}),f&&T.length&&(w[d]=[]),T.forEach(function(_){w[d].push(_)}),c["camel-case-expansion"]&&c["strip-dashed"]&&Object.keys(w).filter(_=>_!=="--"&&_.includes("-")).forEach(_=>{delete w[_]}),c["strip-aliased"]&&[].concat(...Object.keys(a).map(_=>a[_])).forEach(_=>{c["camel-case-expansion"]&&_.includes("-")&&delete w[_.split(".").map(E=>pi(E)).join(".")],delete w[_]});function re(_){let E=k("_",_);(typeof E=="string"||typeof E=="number")&&w._.push(E)}o(re,"pushPositional");function xe(_,E,N,A){let O,H=ne(E,g.nargs);if(H=typeof H!="number"||isNaN(H)?1:H,H===0)return Lt(A)||(C=Error(b("Argument unexpected for: %s",E))),G(E,Oe(E)),_;let q=Lt(A)?0:1;if(c["nargs-eats-options"])N.length-(_+1)+q<H&&(C=Error(b("Not enough arguments following: %s",E))),q=H;else{for(O=_+1;O<N.length&&(!N[O].match(/^-[^0-9]/)||N[O].match(P)||Me(N[O]));O++)q++;q<H&&(C=Error(b("Not enough arguments following: %s",E)))}let Z=Math.min(q,H);for(!Lt(A)&&Z>0&&(G(E,A),Z--),O=_+1;O<Z+_+1;O++)G(E,N[O]);return _+Z}o(xe,"eatNargs");function we(_,E,N,A){let O=[],H=A||N[_+1],q=ne(E,g.nargs);if(ne(E,g.bools)&&!/^(true|false)$/.test(H))O.push(!0);else if(Lt(H)||Lt(A)&&/^-/.test(H)&&!P.test(H)&&!Me(H)){if(u[E]!==void 0){let Z=u[E];O=Array.isArray(Z)?Z:[Z]}}else{Lt(A)||O.push(R(E,A,!0));for(let Z=_+1;Z<N.length&&!(!c["greedy-arrays"]&&O.length>0||q&&typeof q=="number"&&O.length>=q||(H=N[Z],/^-/.test(H)&&!P.test(H)&&!Me(H)));Z++)_=Z,O.push(R(E,H,s))}return typeof q=="number"&&(q&&O.length<q||isNaN(q)&&O.length===0)&&(C=Error(b("Not enough arguments following: %s",E))),G(E,O),_}o(we,"eatArray");function G(_,E,N=s){if(/-/.test(_)&&c["camel-case-expansion"]){let H=_.split(".").map(function(q){return pi(q)}).join(".");j(_,H)}let A=R(_,E,N),O=_.split(".");Y(w,O,A),g.aliases[_]&&g.aliases[_].forEach(function(H){let q=H.split(".");Y(w,q,A)}),O.length>1&&c["dot-notation"]&&(g.aliases[O[0]]||[]).forEach(function(H){let q=H.split("."),Z=[].concat(O);Z.shift(),q=q.concat(Z),(g.aliases[_]||[]).includes(q.join("."))||Y(w,q,A)}),ne(_,g.normalize)&&!ne(_,g.arrays)&&[_].concat(g.aliases[_]||[]).forEach(function(q){Object.defineProperty(te,q,{enumerable:!0,get(){return E},set(Z){E=typeof Z=="string"?pn.normalize(Z):Z}})})}o(G,"setArg");function j(_,E){g.aliases[_]&&g.aliases[_].length||(g.aliases[_]=[E],h[E]=!0),g.aliases[E]&&g.aliases[E].length||j(E,_)}o(j,"addNewAlias");function R(_,E,N){N&&(E=D2(E)),(ne(_,g.bools)||ne(_,g.counts))&&typeof E=="string"&&(E=E==="true");let A=Array.isArray(E)?E.map(function(O){return k(_,O)}):k(_,E);return ne(_,g.counts)&&(Lt(A)||typeof A=="boolean")&&(A=pf()),ne(_,g.normalize)&&ne(_,g.arrays)&&(Array.isArray(E)?A=E.map(O=>pn.normalize(O)):A=pn.normalize(E)),A}o(R,"processValue");function k(_,E){return!c["parse-positional-numbers"]&&_==="_"||!ne(_,g.strings)&&!ne(_,g.bools)&&!Array.isArray(E)&&(pc(E)&&c["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${E}`)))||!Lt(E)&&ne(_,g.numbers))&&(E=Number(E)),E}o(k,"maybeCoerceNumber");function Q(_){let E=Object.create(null);Re(E,g.aliases,u),Object.keys(g.configs).forEach(function(N){let A=_[N]||E[N];if(A)try{let O=null,H=pn.resolve(pn.cwd(),A),q=g.configs[N];if(typeof q=="function"){try{O=q(H)}catch(Z){O=Z}if(O instanceof Error){C=O;return}}else O=pn.require(H);ue(O)}catch(O){O.name==="PermissionDenied"?C=O:_[N]&&(C=Error(b("Invalid JSON config file: %s",A)))}})}o(Q,"setConfig");function ue(_,E){Object.keys(_).forEach(function(N){let A=_[N],O=E?E+"."+N:N;typeof A=="object"&&A!==null&&!Array.isArray(A)&&c["dot-notation"]?ue(A,O):(!ir(w,O.split("."))||ne(O,g.arrays)&&c["combine-arrays"])&&G(O,A)})}o(ue,"setConfigObject");function Se(){typeof l<"u"&&l.forEach(function(_){ue(_)})}o(Se,"setConfigObjects");function ge(_,E){if(typeof p>"u")return;let N=typeof p=="string"?p:"",A=pn.env();Object.keys(A).forEach(function(O){if(N===""||O.lastIndexOf(N,0)===0){let H=O.split("__").map(function(q,Z){return Z===0&&(q=q.substring(N.length)),pi(q)});(E&&g.configs[H.join(".")]||!E)&&!ir(_,H)&&G(H.join("."),A[O])}})}o(ge,"applyEnvVars");function Ze(_){let E,N=new Set;Object.keys(_).forEach(function(A){if(!N.has(A)&&(E=ne(A,g.coercions),typeof E=="function"))try{let O=k(A,E(_[A]));[].concat(g.aliases[A]||[],A).forEach(H=>{N.add(H),_[H]=O})}catch(O){C=O}})}o(Ze,"applyCoercions");function Fr(_){return g.keys.forEach(E=>{~E.indexOf(".")||typeof _[E]>"u"&&(_[E]=void 0)}),_}o(Fr,"setPlaceholderKeys");function Re(_,E,N,A=!1){Object.keys(N).forEach(function(O){ir(_,O.split("."))||(Y(_,O.split("."),N[O]),A&&(y[O]=!0),(E[O]||[]).forEach(function(H){ir(_,H.split("."))||Y(_,H.split("."),N[O])}))})}o(Re,"applyDefaultsAndAliases");function ir(_,E){let N=_;c["dot-notation"]||(E=[E.join(".")]),E.slice(0,-1).forEach(function(O){N=N[O]||{}});let A=E[E.length-1];return typeof N!="object"?!1:A in N}o(ir,"hasKey");function Y(_,E,N){let A=_;c["dot-notation"]||(E=[E.join(".")]),E.slice(0,-1).forEach(function(rt){rt=gy(rt),typeof A=="object"&&A[rt]===void 0&&(A[rt]={}),typeof A[rt]!="object"||Array.isArray(A[rt])?(Array.isArray(A[rt])?A[rt].push({}):A[rt]=[A[rt],{}],A=A[rt][A[rt].length-1]):A=A[rt]});let O=gy(E[E.length-1]),H=ne(E.join("."),g.arrays),q=Array.isArray(N),Z=c["duplicate-arguments-array"];!Z&&ne(O,g.nargs)&&(Z=!0,(!Lt(A[O])&&g.nargs[O]===1||Array.isArray(A[O])&&A[O].length===g.nargs[O])&&(A[O]=void 0)),N===pf()?A[O]=pf(A[O]):Array.isArray(A[O])?Z&&H&&q?A[O]=c["flatten-duplicate-arrays"]?A[O].concat(N):(Array.isArray(A[O][0])?A[O]:[A[O]]).concat([N]):!Z&&!!H==!!q?A[O]=N:A[O]=A[O].concat([N]):A[O]===void 0&&H?A[O]=q?N:[N]:Z&&!(A[O]===void 0||ne(O,g.counts)||ne(O,g.bools))?A[O]=[A[O],N]:A[O]=N}o(Y,"setKey");function Dt(..._){_.forEach(function(E){Object.keys(E||{}).forEach(function(N){g.aliases[N]||(g.aliases[N]=[].concat(a[N]||[]),g.aliases[N].concat(N).forEach(function(A){if(/-/.test(A)&&c["camel-case-expansion"]){let O=pi(A);O!==N&&g.aliases[N].indexOf(O)===-1&&(g.aliases[N].push(O),h[O]=!0)}}),g.aliases[N].concat(N).forEach(function(A){if(A.length>1&&/[A-Z]/.test(A)&&c["camel-case-expansion"]){let O=fc(A,"-");O!==N&&g.aliases[N].indexOf(O)===-1&&(g.aliases[N].push(O),h[O]=!0)}}),g.aliases[N].forEach(function(A){g.aliases[A]=[N].concat(g.aliases[N].filter(function(O){return A!==O}))}))})})}o(Dt,"extendAliases");function ne(_,E){let N=[].concat(g.aliases[_]||[],_),A=Object.keys(E),O=N.find(H=>A.includes(H));return O?E[O]:!1}o(ne,"checkAllAliases");function je(_){let E=Object.keys(g);return[].concat(E.map(A=>g[A])).some(function(A){return Array.isArray(A)?A.includes(_):A[_]})}o(je,"hasAnyFlag");function X(_,...E){return[].concat(...E).some(function(A){let O=_.match(A);return O&&je(O[1])})}o(X,"hasFlagsMatching");function Ne(_){if(_.match(P)||!_.match(/^-[^-]+/))return!1;let E=!0,N,A=_.slice(1).split("");for(let O=0;O<A.length;O++){if(N=_.slice(O+2),!je(A[O])){E=!1;break}if(A[O+1]&&A[O+1]==="="||N==="-"||/[A-Za-z]/.test(A[O])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(N)||A[O+1]&&A[O+1].match(/\W/))break}return E}o(Ne,"hasAllShortFlags");function Me(_){return c["unknown-options-as-args"]&&pe(_)}o(Me,"isUnknownOptionAsArg");function pe(_){return _=_.replace(/^-{3,}/,"--"),_.match(P)||Ne(_)?!1:!X(_,/^-+([^=]+?)=[\s\S]*$/,$,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}o(pe,"isUnknownOption");function Oe(_){return!ne(_,g.bools)&&!ne(_,g.counts)&&`${_}`in u?u[_]:Ve(lt(_))}o(Oe,"defaultValue");function Ve(_){return{[or.BOOLEAN]:!0,[or.STRING]:"",[or.NUMBER]:void 0,[or.ARRAY]:[]}[_]}o(Ve,"defaultForType");function lt(_){let E=or.BOOLEAN;return ne(_,g.strings)?E=or.STRING:ne(_,g.numbers)?E=or.NUMBER:ne(_,g.bools)?E=or.BOOLEAN:ne(_,g.arrays)&&(E=or.ARRAY),E}o(lt,"guessType");function Lt(_){return _===void 0}o(Lt,"isUndefined");function co(){Object.keys(g.counts).find(_=>ne(_,g.arrays)?(C=Error(b("Invalid configuration: %s, opts.count excludes opts.array.",_)),!0):ne(_,g.nargs)?(C=Error(b("Invalid configuration: %s, opts.count excludes opts.narg.",_)),!0):!1)}return o(co,"checkConfiguration"),{aliases:Object.assign({},g.aliases),argv:Object.assign(te,w),configuration:c,defaulted:Object.assign({},y),error:C,newAliases:Object.assign({},h)}}};o(df,"YargsParser");var dc=df;function q2(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(q2,"combineAliases");function pf(e){return e!==void 0?e+1:1}o(pf,"increment");function gy(e){return e==="__proto__"?"___proto___":e}o(gy,"sanitizeKey");function D2(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}o(D2,"stripQuotes");var _y=require("fs");var hf,mf,gf,yy=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,by=(mf=(hf=process==null?void 0:process.versions)===null||hf===void 0?void 0:hf.node)!==null&&mf!==void 0?mf:(gf=process==null?void 0:process.version)===null||gf===void 0?void 0:gf.slice(1);if(by&&Number(by.match(/^([^.]+)/)[1])<yy)throw Error(`yargs parser supports a minimum Node.js version of ${yy}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var L2=process?process.env:{},Sy=new dc({cwd:process.cwd,env:o(()=>L2,"env"),format:vy.format,normalize:hc.normalize,resolve:hc.resolve,require:o(e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,_y.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")},"require")}),ws=o(function(t,r){return Sy.parse(t.slice(),r).argv},"Parser");ws.detailed=function(e,t){return Sy.parse(e.slice(),t)};ws.camelCase=pi;ws.decamelize=fc;ws.looksLikeNumber=pc;var yf=ws;var Er=require("path");function Oy(){return F2()?0:1}o(Oy,"getProcessArgvBinIndex");function F2(){return H2()&&!process.defaultApp}o(F2,"isBundledElectronApp");function H2(){return!!process.versions.electron}o(H2,"isElectronApp");function bf(e){return e.slice(Oy()+1)}o(bf,"hideBin");function Ey(){return process.argv[Oy()]}o(Ey,"getProcessArgvBin");var mc=class mc extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,mc)}};o(mc,"YError");var qe=mc;var lo=require("fs"),Py=require("util"),xy=require("path");var $y={fs:{readFileSync:lo.readFileSync,writeFile:lo.writeFile},format:Py.format,resolve:xy.resolve,exists:o(e=>{try{return(0,lo.statSync)(e).isFile()}catch{return!1}},"exists")};var Or,_f=class _f{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(),Or.format.apply(Or.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),Or.format.apply(Or.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);Or.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{Or.fs.readFileSync&&(t=JSON.parse(Or.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=Or.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=Or.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return Or.exists(t)}};o(_f,"Y18N");var vf=_f;function wy(e,t){Or=t;let r=new vf(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(wy,"y18n");var B2=o(e=>wy(e,$y),"y18n"),Ay=B2;var G2={};var V2="require is not supported by ESM",Iy="loading a directory of commands is not supported yet for ESM",As;try{As=(0,Ry.fileURLToPath)(G2.url)}catch{As=process.cwd()}var U2=As.substring(0,As.lastIndexOf("node_modules")),Sf={assert:{notStrictEqual:gc.notStrictEqual,strictEqual:gc.strictEqual},cliui:lf,findUp:ff,getEnv:o(e=>process.env[e],"getEnv"),inspect:Cy.inspect,getCallerFile:o(()=>{throw new qe(Iy)},"getCallerFile"),getProcessArgvBin:Ey,mainFilename:U2||process.cwd(),Parser:yf,path:{basename:Er.basename,dirname:Er.dirname,extname:Er.extname,relative:Er.relative,resolve:Er.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:Ty.readFileSync,require:o(()=>{throw new qe(V2)},"require"),requireDirectory:o(()=>{throw new qe(Iy)},"requireDirectory"),stringWidth:o(e=>[...e].length,"stringWidth"),y18n:Ay({directory:(0,Er.resolve)(As,"../../../locales"),updateFiles:!1})};function Tt(e,t,r,n){r.assert.notStrictEqual(e,t,n)}o(Tt,"assertNotStrictEqual");function Of(e,t){t.assert.strictEqual(typeof e,"string")}o(Of,"assertSingleKey");function fo(e){return Object.keys(e)}o(fo,"objectKeys");function De(e){return!!e&&!!e.then&&typeof e.then=="function"}o(De,"isPromise");function Pn(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(Pn,"parseCommand");var z2=["first","second","third","fourth","fifth","sixth"];function F(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[Pn(`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 qe(`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 qe(`Too many arguments provided. Expected max ${p} but received ${l}.`);s.demanded.forEach(f=>{let d=u.shift(),h=Ny(d);f.cmd.filter(b=>b===h||b==="*").length===0&&jy(h,f.cmd,i),i+=1}),s.optional.forEach(f=>{if(u.length===0)return;let d=u.shift(),h=Ny(d);f.cmd.filter(b=>b===h||b==="*").length===0&&jy(h,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}o(F,"argsert");function Ny(e){return Array.isArray(e)?"array":e===null?"null":typeof e}o(Ny,"guessType");function jy(e,t,r){throw new qe(`Invalid ${z2[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}o(jy,"argumentTypeError");var Ef=class Ef{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(Ef,"GlobalMiddleware");var yc=Ef;function My(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}o(My,"commandMiddlewareFactory");function di(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(De(i))return i.then(a=>Promise.all([a,s(a,t)])).then(([a,c])=>Object.assign(a,c));{let a=s(i,t);return De(a)?a.then(c=>Object.assign(i,c)):Object.assign(i,a)}},e)}o(di,"applyMiddleware");function hi(e,t,r=n=>{throw n}){try{let n=Z2(e)?e():e;return De(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}o(hi,"maybeAsyncResult");function Z2(e){return typeof e=="function"}o(Z2,"isFunction");function Pf(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(Pf,"whichModule");var po=/(^\*)|(^\$0)/,$f=class $f{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=My(s);if(i=i||(()=>{}),Array.isArray(t))if(W2(t))[t,...c]=t;else for(let l of t)this.addHandler(l);else if(Y2(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(ky(n)){this.addHandler([t].concat(c),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=Pn(t);c=c.map(d=>Pn(d).cmd);let p=!1,f=[l.cmd].concat(c).filter(d=>po.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(po,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 De(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(bc(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),u);if(De(f))return f.then(d=>(p=Dy(d)?d:n,this.parseAndUpdateUsage(t,r,p,s,a,c)))}else K2(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 De(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=po.test(r.original)?r.original.replace(po,"").trim():r.original,i=t.filter(s=>!po.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=hi(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=di(n,a,c,!1),n=hi(n,p=>{let f=r.handler(p);return De(f)?f.then(()=>p):p}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),De(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=di(n,c,l,!0);return De(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=Pn(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=po.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(bc(r))return r(t,!0);ky(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=Pf(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;Tt(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();Tt(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($f,"CommandInstance");var xf=$f;function qy(e,t,r,n){return new xf(e,t,r,n)}o(qy,"command");function ky(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}o(ky,"isCommandBuilderDefinition");function W2(e){return e.every(t=>typeof t=="string")}o(W2,"isCommandAndAliases");function bc(e){return typeof e=="function"}o(bc,"isCommandBuilderCallback");function K2(e){return typeof e=="object"}o(K2,"isCommandBuilderOptionDefinitions");function Y2(e){return typeof e=="object"&&!Array.isArray(e)}o(Y2,"isCommandHandlerDefinition");function xn(e={},t=()=>!0){let r={};return fo(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}o(xn,"objFilter");function $n(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($n,"setBlocking");function Q2(e){return typeof e=="boolean"}o(Q2,"isBoolean");function Fy(e,t){let r=t.y18n.__,n={},i=[];n.failFn=o(function(R){i.push(R)},"failFn");let s=null,a=null,c=!0;n.showHelpOnFail=o(function(R=!0,k){let[Q,ue]=typeof R=="string"?[!0,R]:[R,k];return e.getInternalMethods().isGlobalContext()&&(a=ue),s=ue,c=Q,n},"showHelpOnFailFn");let u=!1;n.fail=o(function(R,k){let Q=e.getInternalMethods().getLoggerInstance();if(i.length)for(let ue=i.length-1;ue>=0;--ue){let Se=i[ue];if(Q2(Se)){if(k)throw k;if(R)throw Error(R)}else Se(R,k,n)}else{if(e.getExitProcess()&&$n(!0),!u){u=!0,c&&(e.showHelp("error"),Q.error()),(R||k)&&Q.error(R||k);let ue=s||a;ue&&((R||k)&&Q.error(""),Q.error(ue))}if(k=k||new qe(R),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,k);throw k}},"fail");let l=[],p=!1;n.usage=(j,R)=>j===null?(p=!0,l=[],n):(p=!1,l.push([j,R||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>p,n.getPositionalGroupName=()=>r("Positionals:");let f=[];n.example=(j,R)=>{f.push([j,R||""])};let d=[];n.command=o(function(R,k,Q,ue,Se=!1){Q&&(d=d.map(ge=>(ge[2]=!1,ge))),d.push([R,k||"",Q,ue,Se])},"command"),n.getCommands=()=>d;let h={};n.describe=o(function(R,k){Array.isArray(R)?R.forEach(Q=>{n.describe(Q,k)}):typeof R=="object"?Object.keys(R).forEach(Q=>{n.describe(Q,R[Q])}):h[R]=k},"describe"),n.getDescriptions=()=>h;let y=[];n.epilog=j=>{y.push(j)};let b=!1,g;n.wrap=j=>{b=!0,g=j},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(b||(g=xe(),b=!0),g);let P="__yargsString__:";n.deferY18nLookup=j=>P+j,n.help=o(function(){if(T)return T;C();let R=e.customScriptName?e.$0:t.path.basename(e.$0),k=e.getDemandedOptions(),Q=e.getDemandedCommands(),ue=e.getDeprecatedOptions(),Se=e.getGroups(),ge=e.getOptions(),Ze=[];Ze=Ze.concat(Object.keys(h)),Ze=Ze.concat(Object.keys(k)),Ze=Ze.concat(Object.keys(Q)),Ze=Ze.concat(Object.keys(ge.default)),Ze=Ze.filter(te),Ze=Object.keys(Ze.reduce((X,Ne)=>(Ne!=="_"&&(X[Ne]=!0),X),{}));let Fr=n.getWrap(),Re=t.cliui({width:Fr,wrap:!!Fr});if(!p){if(l.length)l.forEach(X=>{Re.div({text:`${X[0].replace(/\$0/g,R)}`}),X[1]&&Re.div({text:`${X[1]}`,padding:[1,0,0,0]})}),Re.div();else if(d.length){let X=null;Q._?X=`${R} <${r("command")}>
79
79
  `:X=`${R} [${r("command")}]
80
- `,Ne.div(`${X}`)}}if(d.length>1||d.length===1&&!d[0][2]){Ne.div(r("Commands:"));let X=e.getInternalMethods().getContext(),je=X.commands.length?`${X.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(d=d.sort((pe,_e)=>pe[0].localeCompare(_e[0])));let ke=R?`${R} `:"";d.forEach(pe=>{let _e=`${ke}${je}${pe[0].replace(/^\$0 ?/,"")}`;Ne.span({text:_e,padding:[0,2,0,2],width:$(d,Fr,`${R}${je}`)+4},{text:pe[1]});let Ue=[];pe[2]&&Ue.push(`[${r("default")}]`),pe[3]&&pe[3].length&&Ue.push(`[${r("aliases:")} ${pe[3].join(", ")}]`),pe[4]&&(typeof pe[4]=="string"?Ue.push(`[${r("deprecated: %s",pe[4])}]`):Ue.push(`[${r("deprecated")}]`)),Ue.length?Ne.div({text:Ue.join(" "),padding:[0,0,0,2],align:"right"}):Ne.div()}),Ne.div()}let ir=(Object.keys(ge.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);We=We.filter(X=>!e.parsed.newAliases[X]&&ir.every(je=>(ge.alias[je]||[]).indexOf(X)===-1));let Y=r("Options:");ve[Y]||(ve[Y]=[]),w(We,ge.alias,ve,Y);let Lt=o(X=>/^--/.test(vc(X)),"isLongSwitch"),ne=Object.keys(ve).filter(X=>ve[X].length>0).map(X=>{let je=ve[X].filter(te).map(ke=>{if(ir.includes(ke))return ke;for(let pe=0,_e;(_e=ir[pe])!==void 0;pe++)if((ge.alias[_e]||[]).includes(ke))return _e;return ke});return{groupName:X,normalizedKeys:je}}).filter(({normalizedKeys:X})=>X.length>0).map(({groupName:X,normalizedKeys:je})=>{let ke=je.reduce((pe,_e)=>(pe[_e]=[_e].concat(ge.alias[_e]||[]).map(Ue=>X===n.getPositionalGroupName()?Ue:(/^[0-9]$/.test(Ue)?ge.boolean.includes(_e)?"-":"--":Ue.length>1?"--":"-")+Ue).sort((Ue,lt)=>Lt(Ue)===Lt(lt)?0:Lt(Ue)?1:-1).join(", "),pe),{});return{groupName:X,normalizedKeys:je,switches:ke}});if(ne.filter(({groupName:X})=>X!==n.getPositionalGroupName()).some(({normalizedKeys:X,switches:je})=>!X.every(ke=>Lt(je[ke])))&&ne.filter(({groupName:X})=>X!==n.getPositionalGroupName()).forEach(({normalizedKeys:X,switches:je})=>{X.forEach(ke=>{Lt(je[ke])&&(je[ke]=U2(je[ke],4))})}),ne.forEach(({groupName:X,normalizedKeys:je,switches:ke})=>{Ne.div(X),je.forEach(pe=>{let _e=ke[pe],Ue=h[pe]||"",lt=null;Ue.includes(P)&&(Ue=r(Ue.substring(P.length))),ge.boolean.includes(pe)&&(lt=`[${r("boolean")}]`),ge.count.includes(pe)&&(lt=`[${r("count")}]`),ge.string.includes(pe)&&(lt=`[${r("string")}]`),ge.normalize.includes(pe)&&(lt=`[${r("string")}]`),ge.array.includes(pe)&&(lt=`[${r("array")}]`),ge.number.includes(pe)&&(lt=`[${r("number")}]`);let Ft=o(E=>typeof E=="string"?`[${r("deprecated: %s",E)}]`:`[${r("deprecated")}]`,"deprecatedExtra"),uo=[pe in ue?Ft(ue[pe]):null,lt,pe in k?`[${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(" ");Ne.span({text:vc(_e),padding:[0,2,0,2+Ny(_e)],width:$(ke,Fr)+4},Ue);let _=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;uo&&!_?Ne.div({text:uo,padding:[0,0,0,2],align:"right"}):Ne.div()}),Ne.div()}),f.length&&(Ne.div(r("Examples:")),f.forEach(X=>{X[0]=X[0].replace(/\$0/g,R)}),f.forEach(X=>{X[1]===""?Ne.div({text:X[0],padding:[0,2,0,2]}):Ne.div({text:X[0],padding:[0,2,0,2],width:$(f,Fr)+4},{text:X[1]})}),Ne.div()),y.length>0){let X=y.map(je=>je.replace(/\$0/g,R)).join(`
81
- `);Ne.div(`${X}
82
- `)}return Ne.toString().replace(/\s*$/,"")},"help");function $(j,R,k){let Q=0;return Array.isArray(j)||(j=Object.values(j).map(ue=>[ue])),j.forEach(ue=>{Q=Math.max(t.stringWidth(k?`${k} ${vc(ue[0])}`:vc(ue[0]))+Ny(ue[0]),Q)}),R&&(Q=Math.min(Q,parseInt((R*.5).toString(),10))),Q}o($,"maxWidth");function C(){let j=e.getDemandedOptions(),R=e.getOptions();(Object.keys(R.alias)||[]).forEach(k=>{R.alias[k].forEach(Q=>{h[Q]&&n.describe(k,h[Q]),Q in j&&e.demandOption(k,j[Q]),R.boolean.includes(Q)&&e.boolean(k),R.count.includes(Q)&&e.count(k),R.string.includes(Q)&&e.string(k),R.normalize.includes(Q)&&e.normalize(k),R.array.includes(Q)&&e.array(k),R.number.includes(Q)&&e.number(k)})})}o(C,"normalizeAliases");let T;n.cacheHelpMessage=function(){T=this.help()},n.clearCachedHelpMessage=function(){T=void 0},n.hasCachedHelpMessage=function(){return!!T};function w(j,R,k,Q){let ue=[],ve=null;return Object.keys(k).forEach(ge=>{ue=ue.concat(k[ge])}),j.forEach(ge=>{ve=[ge].concat(R[ge]),ve.some(We=>ue.indexOf(We)!==-1)||k[Q].push(ge)}),ue}o(w,"addUngroupedKeys");function te(j){return e.getOptions().hiddenOptions.indexOf(j)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}o(te,"filterHiddenOptions"),n.showHelp=j=>{let R=e.getInternalMethods().getLoggerInstance();j||(j="error"),(typeof j=="function"?j:R[j])(n.help())},n.functionDescription=j=>["(",j.name?t.Parser.decamelize(j.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=o(function(R,k){let Q="",ue=k||", ",ve=[].concat(R);return!R||!ve.length||ve.forEach(ge=>{Q.length&&(Q+=ue),Q+=JSON.stringify(ge)}),Q},"stringifiedValues");function re(j,R){let k=`[${r("default:")} `;if(j===void 0&&!R)return null;if(R)k+=R;else switch(typeof j){case"string":k+=`"${j}"`;break;case"object":k+=JSON.stringify(j);break;default:k+=j}return`${k}]`}o(re,"defaultString");function $e(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}o($e,"windowWidth");let Ae=null;n.version=j=>{Ae=j},n.showVersion=j=>{let R=e.getInternalMethods().getLoggerInstance();j||(j="error"),(typeof j=="function"?j:R[j])(Ae)},n.reset=o(function(R){return s=null,u=!1,l=[],p=!1,y=[],f=[],d=[],h=wn(h,k=>!R[k]),n},"reset");let G=[];return n.freeze=o(function(){G.push({failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h})},"freeze"),n.unfreeze=o(function(R=!1){let k=G.pop();k&&(R?(h={...k.descriptions,...h},d=[...k.commands,...d],l=[...k.usages,...l],f=[...k.examples,...f],y=[...k.epilogs,...y]):{failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h}=k)},"unfreeze"),n}o(jy,"usage");function Ef(e){return typeof e=="object"}o(Ef,"isIndentedText");function U2(e,t){return Ef(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}o(U2,"addIndentation");function Ny(e){return Ef(e)?e.indentation:0}o(Ny,"getIndentation");function vc(e){return Ef(e)?e.text:e}o(vc,"getText");var My=`###-begin-{{app_name}}-completions-###
80
+ `,Re.div(`${X}`)}}if(d.length>1||d.length===1&&!d[0][2]){Re.div(r("Commands:"));let X=e.getInternalMethods().getContext(),Ne=X.commands.length?`${X.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(d=d.sort((pe,Oe)=>pe[0].localeCompare(Oe[0])));let Me=R?`${R} `:"";d.forEach(pe=>{let Oe=`${Me}${Ne}${pe[0].replace(/^\$0 ?/,"")}`;Re.span({text:Oe,padding:[0,2,0,2],width:$(d,Fr,`${R}${Ne}`)+4},{text:pe[1]});let Ve=[];pe[2]&&Ve.push(`[${r("default")}]`),pe[3]&&pe[3].length&&Ve.push(`[${r("aliases:")} ${pe[3].join(", ")}]`),pe[4]&&(typeof pe[4]=="string"?Ve.push(`[${r("deprecated: %s",pe[4])}]`):Ve.push(`[${r("deprecated")}]`)),Ve.length?Re.div({text:Ve.join(" "),padding:[0,0,0,2],align:"right"}):Re.div()}),Re.div()}let ir=(Object.keys(ge.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);Ze=Ze.filter(X=>!e.parsed.newAliases[X]&&ir.every(Ne=>(ge.alias[Ne]||[]).indexOf(X)===-1));let Y=r("Options:");Se[Y]||(Se[Y]=[]),w(Ze,ge.alias,Se,Y);let Dt=o(X=>/^--/.test(vc(X)),"isLongSwitch"),ne=Object.keys(Se).filter(X=>Se[X].length>0).map(X=>{let Ne=Se[X].filter(te).map(Me=>{if(ir.includes(Me))return Me;for(let pe=0,Oe;(Oe=ir[pe])!==void 0;pe++)if((ge.alias[Oe]||[]).includes(Me))return Oe;return Me});return{groupName:X,normalizedKeys:Ne}}).filter(({normalizedKeys:X})=>X.length>0).map(({groupName:X,normalizedKeys:Ne})=>{let Me=Ne.reduce((pe,Oe)=>(pe[Oe]=[Oe].concat(ge.alias[Oe]||[]).map(Ve=>X===n.getPositionalGroupName()?Ve:(/^[0-9]$/.test(Ve)?ge.boolean.includes(Oe)?"-":"--":Ve.length>1?"--":"-")+Ve).sort((Ve,lt)=>Dt(Ve)===Dt(lt)?0:Dt(Ve)?1:-1).join(", "),pe),{});return{groupName:X,normalizedKeys:Ne,switches:Me}});if(ne.filter(({groupName:X})=>X!==n.getPositionalGroupName()).some(({normalizedKeys:X,switches:Ne})=>!X.every(Me=>Dt(Ne[Me])))&&ne.filter(({groupName:X})=>X!==n.getPositionalGroupName()).forEach(({normalizedKeys:X,switches:Ne})=>{X.forEach(Me=>{Dt(Ne[Me])&&(Ne[Me]=J2(Ne[Me],4))})}),ne.forEach(({groupName:X,normalizedKeys:Ne,switches:Me})=>{Re.div(X),Ne.forEach(pe=>{let Oe=Me[pe],Ve=h[pe]||"",lt=null;Ve.includes(P)&&(Ve=r(Ve.substring(P.length))),ge.boolean.includes(pe)&&(lt=`[${r("boolean")}]`),ge.count.includes(pe)&&(lt=`[${r("count")}]`),ge.string.includes(pe)&&(lt=`[${r("string")}]`),ge.normalize.includes(pe)&&(lt=`[${r("string")}]`),ge.array.includes(pe)&&(lt=`[${r("array")}]`),ge.number.includes(pe)&&(lt=`[${r("number")}]`);let Lt=o(E=>typeof E=="string"?`[${r("deprecated: %s",E)}]`:`[${r("deprecated")}]`,"deprecatedExtra"),co=[pe in ue?Lt(ue[pe]):null,lt,pe in k?`[${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(" ");Re.span({text:vc(Oe),padding:[0,2,0,2+Ly(Oe)],width:$(Me,Fr)+4},Ve);let _=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;co&&!_?Re.div({text:co,padding:[0,0,0,2],align:"right"}):Re.div()}),Re.div()}),f.length&&(Re.div(r("Examples:")),f.forEach(X=>{X[0]=X[0].replace(/\$0/g,R)}),f.forEach(X=>{X[1]===""?Re.div({text:X[0],padding:[0,2,0,2]}):Re.div({text:X[0],padding:[0,2,0,2],width:$(f,Fr)+4},{text:X[1]})}),Re.div()),y.length>0){let X=y.map(Ne=>Ne.replace(/\$0/g,R)).join(`
81
+ `);Re.div(`${X}
82
+ `)}return Re.toString().replace(/\s*$/,"")},"help");function $(j,R,k){let Q=0;return Array.isArray(j)||(j=Object.values(j).map(ue=>[ue])),j.forEach(ue=>{Q=Math.max(t.stringWidth(k?`${k} ${vc(ue[0])}`:vc(ue[0]))+Ly(ue[0]),Q)}),R&&(Q=Math.min(Q,parseInt((R*.5).toString(),10))),Q}o($,"maxWidth");function C(){let j=e.getDemandedOptions(),R=e.getOptions();(Object.keys(R.alias)||[]).forEach(k=>{R.alias[k].forEach(Q=>{h[Q]&&n.describe(k,h[Q]),Q in j&&e.demandOption(k,j[Q]),R.boolean.includes(Q)&&e.boolean(k),R.count.includes(Q)&&e.count(k),R.string.includes(Q)&&e.string(k),R.normalize.includes(Q)&&e.normalize(k),R.array.includes(Q)&&e.array(k),R.number.includes(Q)&&e.number(k)})})}o(C,"normalizeAliases");let T;n.cacheHelpMessage=function(){T=this.help()},n.clearCachedHelpMessage=function(){T=void 0},n.hasCachedHelpMessage=function(){return!!T};function w(j,R,k,Q){let ue=[],Se=null;return Object.keys(k).forEach(ge=>{ue=ue.concat(k[ge])}),j.forEach(ge=>{Se=[ge].concat(R[ge]),Se.some(Ze=>ue.indexOf(Ze)!==-1)||k[Q].push(ge)}),ue}o(w,"addUngroupedKeys");function te(j){return e.getOptions().hiddenOptions.indexOf(j)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}o(te,"filterHiddenOptions"),n.showHelp=j=>{let R=e.getInternalMethods().getLoggerInstance();j||(j="error"),(typeof j=="function"?j:R[j])(n.help())},n.functionDescription=j=>["(",j.name?t.Parser.decamelize(j.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=o(function(R,k){let Q="",ue=k||", ",Se=[].concat(R);return!R||!Se.length||Se.forEach(ge=>{Q.length&&(Q+=ue),Q+=JSON.stringify(ge)}),Q},"stringifiedValues");function re(j,R){let k=`[${r("default:")} `;if(j===void 0&&!R)return null;if(R)k+=R;else switch(typeof j){case"string":k+=`"${j}"`;break;case"object":k+=JSON.stringify(j);break;default:k+=j}return`${k}]`}o(re,"defaultString");function xe(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}o(xe,"windowWidth");let we=null;n.version=j=>{we=j},n.showVersion=j=>{let R=e.getInternalMethods().getLoggerInstance();j||(j="error"),(typeof j=="function"?j:R[j])(we)},n.reset=o(function(R){return s=null,u=!1,l=[],p=!1,y=[],f=[],d=[],h=xn(h,k=>!R[k]),n},"reset");let G=[];return n.freeze=o(function(){G.push({failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h})},"freeze"),n.unfreeze=o(function(R=!1){let k=G.pop();k&&(R?(h={...k.descriptions,...h},d=[...k.commands,...d],l=[...k.usages,...l],f=[...k.examples,...f],y=[...k.epilogs,...y]):{failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h}=k)},"unfreeze"),n}o(Fy,"usage");function wf(e){return typeof e=="object"}o(wf,"isIndentedText");function J2(e,t){return wf(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}o(J2,"addIndentation");function Ly(e){return wf(e)?e.indentation:0}o(Ly,"getIndentation");function vc(e){return wf(e)?e.text:e}o(vc,"getText");var Hy=`###-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
- `,ky=`#compdef {{app_name}}
110
+ `,By=`#compdef {{app_name}}
111
111
  ###-begin-{{app_name}}-completions-###
112
112
  #
113
113
  # yargs command completion script
@@ -126,29 +126,29 @@ _{{app_name}}_yargs_completions()
126
126
  }
127
127
  compdef _{{app_name}}_yargs_completions {{app_name}}
128
128
  ###-end-{{app_name}}-completions-###
129
- `;var xf=class xf{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(bc(l)){this.indexAfterLastReset=c+1;let p=this.yargs.getInternalMethods().reset();return l(p,!0),p.argv}}let a=[];this.commandCompletions(a,t,n),this.optionCompletions(a,t,r,n),this.choicesFromOptionsCompletions(a,t,r,n),this.choicesFromPositionalsCompletions(a,t,r,n),i(null,a)}commandCompletions(t,r,n){let i=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&i[i.length-1]!==n&&!this.previousArgHasChoices(r)&&this.usage.getCommands().forEach(s=>{let a=$n(s[0]).cmd;if(r.indexOf(a)===-1)if(!this.zshShell)t.push(a);else{let c=s[1]||"";t.push(a.replace(/:/g,"\\:")+":"+c)}})}optionCompletions(t,r,n,i){if((i.match(/^-/)||i===""&&t.length===0)&&!this.previousArgHasChoices(r)){let s=this.yargs.getOptions(),a=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(s.key).forEach(c=>{let u=!!s.configuration["boolean-negation"]&&s.boolean.includes(c);!a.includes(c)&&!s.hiddenOptions.includes(c)&&!this.argsContainKey(r,c,u)&&this.completeOptionKey(c,t,i,u&&!!s.default[c])})}}choicesFromOptionsCompletions(t,r,n,i){if(this.previousArgHasChoices(r)){let s=this.getPreviousArgChoices(r);s&&s.length>0&&t.push(...s.map(a=>a.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(t,r,n,i){if(i===""&&t.length>0&&this.previousArgHasChoices(r))return;let s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],a=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),c=s[n._.length-a-1];if(!c)return;let u=this.yargs.getOptions().choices[c]||[];for(let l of u)l.startsWith(i)&&t.push(l.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let r=t[t.length-1],n="";if(!r.startsWith("-")&&t.length>1&&(n=r,r=t[t.length-2]),!r.startsWith("-"))return;let i=r.replace(/^-+/,""),s=this.yargs.getOptions(),a=[i,...this.yargs.getAliases()[i]||[]],c;for(let u of a)if(Object.prototype.hasOwnProperty.call(s.key,u)&&Array.isArray(s.choices[u])){c=s.choices[u];break}if(c)return c.filter(u=>!n||u.startsWith(n))}previousArgHasChoices(t){let r=this.getPreviousArgChoices(t);return r!==void 0&&r.length>0}argsContainKey(t,r,n){let i=o(s=>t.indexOf((/^[^0-9]$/.test(s)?"-":"--")+s)!==-1,"argsContains");if(i(r)||n&&i(`no-${r}`))return!0;if(this.aliases){for(let s of this.aliases[r])if(i(s))return!0}return!1}completeOptionKey(t,r,n,i){var s,a,c,u;let l=t;if(this.zshShell){let h=this.usage.getDescriptions(),y=(a=(s=this===null||this===void 0?void 0:this.aliases)===null||s===void 0?void 0:s[t])===null||a===void 0?void 0:a.find(P=>{let $=h[P];return typeof $=="string"&&$.length>0}),b=y?h[y]:void 0,g=(u=(c=h[t])!==null&&c!==void 0?c:b)!==null&&u!==void 0?u:"";l=`${t.replace(/:/g,"\\:")}:${g.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let p=o(h=>/^--/.test(h),"startsByTwoDashes"),f=o(h=>/^[^0-9]$/.test(h),"isShortOption"),d=!p(n)&&f(t)?"-":"--";r.push(d+l),i&&r.push(d+"no-"+l)}customCompletion(t,r,n,i){if(Rt(this.customCompletionFunction,null,this.shim),z2(this.customCompletionFunction)){let s=this.customCompletionFunction(n,r);return Le(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 Z2(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 Le(i)?i.then(s):s(i)}generateCompletionScript(t,r){let n=this.zshShell?ky:My,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(xf,"Completion");var Pf=xf;function qy(e,t,r,n){return new Pf(e,t,r,n)}o(qy,"completion");function z2(e){return e.length<3}o(z2,"isSyncCompletionFunction");function Z2(e){return e.length>3}o(Z2,"isFallbackCompletionFunction");function Dy(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(Dy,"levenshtein");var Ly=["$0","--","_"];function Fy(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 P=h[g];P&&y.indexOf(P)<0&&y.push(P)}let b=y.length?`
129
+ `;var If=class If{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(bc(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=Pn(s[0]).cmd;if(r.indexOf(a)===-1)if(!this.zshShell)t.push(a);else{let c=s[1]||"";t.push(a.replace(/:/g,"\\:")+":"+c)}})}optionCompletions(t,r,n,i){if((i.match(/^-/)||i===""&&t.length===0)&&!this.previousArgHasChoices(r)){let s=this.yargs.getOptions(),a=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(s.key).forEach(c=>{let u=!!s.configuration["boolean-negation"]&&s.boolean.includes(c);!a.includes(c)&&!s.hiddenOptions.includes(c)&&!this.argsContainKey(r,c,u)&&this.completeOptionKey(c,t,i,u&&!!s.default[c])})}}choicesFromOptionsCompletions(t,r,n,i){if(this.previousArgHasChoices(r)){let s=this.getPreviousArgChoices(r);s&&s.length>0&&t.push(...s.map(a=>a.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(t,r,n,i){if(i===""&&t.length>0&&this.previousArgHasChoices(r))return;let s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],a=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),c=s[n._.length-a-1];if(!c)return;let u=this.yargs.getOptions().choices[c]||[];for(let l of u)l.startsWith(i)&&t.push(l.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let r=t[t.length-1],n="";if(!r.startsWith("-")&&t.length>1&&(n=r,r=t[t.length-2]),!r.startsWith("-"))return;let i=r.replace(/^-+/,""),s=this.yargs.getOptions(),a=[i,...this.yargs.getAliases()[i]||[]],c;for(let u of a)if(Object.prototype.hasOwnProperty.call(s.key,u)&&Array.isArray(s.choices[u])){c=s.choices[u];break}if(c)return c.filter(u=>!n||u.startsWith(n))}previousArgHasChoices(t){let r=this.getPreviousArgChoices(t);return r!==void 0&&r.length>0}argsContainKey(t,r,n){let i=o(s=>t.indexOf((/^[^0-9]$/.test(s)?"-":"--")+s)!==-1,"argsContains");if(i(r)||n&&i(`no-${r}`))return!0;if(this.aliases){for(let s of this.aliases[r])if(i(s))return!0}return!1}completeOptionKey(t,r,n,i){var s,a,c,u;let l=t;if(this.zshShell){let h=this.usage.getDescriptions(),y=(a=(s=this===null||this===void 0?void 0:this.aliases)===null||s===void 0?void 0:s[t])===null||a===void 0?void 0:a.find(P=>{let $=h[P];return typeof $=="string"&&$.length>0}),b=y?h[y]:void 0,g=(u=(c=h[t])!==null&&c!==void 0?c:b)!==null&&u!==void 0?u:"";l=`${t.replace(/:/g,"\\:")}:${g.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let p=o(h=>/^--/.test(h),"startsByTwoDashes"),f=o(h=>/^[^0-9]$/.test(h),"isShortOption"),d=!p(n)&&f(t)?"-":"--";r.push(d+l),i&&r.push(d+"no-"+l)}customCompletion(t,r,n,i){if(Tt(this.customCompletionFunction,null,this.shim),ew(this.customCompletionFunction)){let s=this.customCompletionFunction(n,r);return De(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 tw(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 De(i)?i.then(s):s(i)}generateCompletionScript(t,r){let n=this.zshShell?By:Hy,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(If,"Completion");var Af=If;function Vy(e,t,r,n){return new Af(e,t,r,n)}o(Vy,"completion");function ew(e){return e.length<3}o(ew,"isSyncCompletionFunction");function tw(e){return e.length>3}o(tw,"isFallbackCompletionFunction");function Uy(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(Uy,"levenshtein");var Gy=["$0","--","_"];function zy(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 P=h[g];P&&y.indexOf(P)<0&&y.push(P)}let b=y.length?`
130
130
  ${y.join(`
131
- `)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+b))}},"requiredArguments"),s.unknownArguments=o(function(f,d,h,y,b=!0){var g;let P=e.getInternalMethods().getCommandInstance().getCommands(),$=[],C=e.getInternalMethods().getContext();if(Object.keys(f).forEach(T=>{!Ly.includes(T)&&!Object.prototype.hasOwnProperty.call(h,T)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),T)&&!s.isValidAndSomeAliasIsNotNew(T,d)&&$.push(T)}),b&&(C.commands.length>0||P.length>0||y)&&f._.slice(C.commands.length).forEach(T=>{P.includes(""+T)||$.push(""+T)}),b){let w=((g=e.getDemandedCommands()._)===null||g===void 0?void 0:g.max)||0,te=C.commands.length+w;te<f._.length&&f._.slice(te).forEach(re=>{re=String(re),!C.commands.includes(re)&&!$.includes(re)&&$.push(re)})}$.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",$.length,$.map(T=>T.trim()?T:`"${T}"`).join(", ")))},"unknownArguments"),s.unknownCommands=o(function(f){let d=e.getInternalMethods().getCommandInstance().getCommands(),h=[],y=e.getInternalMethods().getContext();return(y.commands.length>0||d.length>0)&&f._.slice(y.commands.length).forEach(b=>{d.includes(""+b)||h.push(""+b)}),h.length>0?(t.fail(i("Unknown command: %s","Unknown commands: %s",h.length,h.join(", "))),!0):!1},"unknownCommands"),s.isValidAndSomeAliasIsNotNew=o(function(f,d){if(!Object.prototype.hasOwnProperty.call(d,f))return!1;let h=e.parsed.newAliases;return[f,...d[f]].some(y=>!Object.prototype.hasOwnProperty.call(h,y)||!h[f])},"isValidAndSomeAliasIsNotNew"),s.limitedChoices=o(function(f){let d=e.getOptions(),h={};if(!Object.keys(d.choices).length)return;Object.keys(f).forEach(g=>{Ly.indexOf(g)===-1&&Object.prototype.hasOwnProperty.call(d.choices,g)&&[].concat(f[g]).forEach(P=>{d.choices[g].indexOf(P)===-1&&P!==void 0&&(h[g]=(h[g]||[]).concat(P))})});let y=Object.keys(h);if(!y.length)return;let b=n("Invalid values:");y.forEach(g=>{b+=`
132
- ${n("Argument: %s, Given: %s, Choices: %s",g,t.stringifiedValues(h[g]),t.stringifiedValues(d.choices[g]))}`}),t.fail(b)},"limitedChoices");let a={};s.implies=o(function(f,d){F("<string|object> [array|number|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{s.implies(h,f[h])}):(e.global(f),a[f]||(a[f]=[]),Array.isArray(d)?d.forEach(h=>s.implies(f,h)):(Rt(d,void 0,r),a[f].push(d)))},"implies"),s.getImplied=o(function(){return a},"getImplied");function c(p,f){let d=Number(f);return f=isNaN(d)?f:d,typeof f=="number"?f=p._.length>=f:f.match(/^--no-.+/)?(f=f.match(/^--no-(.+)/)[1],f=!Object.prototype.hasOwnProperty.call(p,f)):f=Object.prototype.hasOwnProperty.call(p,f),f}o(c,"keyExists"),s.implications=o(function(f){let d=[];if(Object.keys(a).forEach(h=>{let y=h;(a[h]||[]).forEach(b=>{let g=y,P=b;g=c(f,g),b=c(f,b),g&&!b&&d.push(` ${y} -> ${P}`)})}),d.length){let h=`${n("Implications failed:")}
133
- `;d.forEach(y=>{h+=y}),t.fail(h)}},"implications");let u={};s.conflicts=o(function(f,d){F("<string|object> [array|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{s.conflicts(h,f[h])}):(e.global(f),u[f]||(u[f]=[]),Array.isArray(d)?d.forEach(h=>s.conflicts(f,h)):u[f].push(d))},"conflicts"),s.getConflicting=()=>u,s.conflicting=o(function(f){Object.keys(f).forEach(d=>{u[d]&&u[d].forEach(h=>{h&&f[d]!==void 0&&f[h]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",d,h))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach(d=>{u[d].forEach(h=>{h&&f[r.Parser.camelCase(d)]!==void 0&&f[r.Parser.camelCase(h)]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",d,h))})})},"conflictingFn"),s.recommendCommands=o(function(f,d){d=d.sort((g,P)=>P.length-g.length);let y=null,b=1/0;for(let g=0,P;(P=d[g])!==void 0;g++){let $=Dy(f,P);$<=3&&$<b&&(b=$,y=P)}y&&t.fail(n("Did you mean %s?",y))},"recommendCommands"),s.reset=o(function(f){return a=wn(a,d=>!f[d]),u=wn(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();Rt(f,void 0,r),{implied:a,conflicting:u}=f},"unfreeze"),s}o(Fy,"validation");var $f=[],Is;function Cs(e,t,r,n){Is=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=K2(t,e.extends);else try{a=require.resolve(e.extends)}catch{return e}W2(a),$f.push(a),i=s?JSON.parse(Is.readFileSync(a,"utf8")):require(e.extends),delete e.extends,i=Cs(i,Is.path.dirname(a),r,Is)}return $f=[],r?Hy(i,e):Object.assign({},i,e)}o(Cs,"applyExtends");function W2(e){if($f.indexOf(e)>-1)throw new De(`Circular extended configurations: '${e}'.`)}o(W2,"checkForCircularExtends");function K2(e,t){return Is.path.resolve(e,t)}o(K2,"getPathToDefaultConfig");function Hy(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]=Hy(e[i],t[i]):r[i]=t[i];return r}o(Hy,"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)},tt,yi,Ts,sr,Wt,_c,In,bi,Sc,ar,Oc,cr,Hr,Kt,ur,Ec,mo,ft,W,Pc,xc,Yt,vi,go,_i,Cn,$c,ie,Si,Oi,Ei,se,wc,Br,Ke;function ab(e){return(t=[],r=e.process.cwd(),n)=>{let i=new qf(t,r,n,e);return Object.defineProperty(i,"argv",{get:o(()=>i.parse(),"get"),enumerable:!0}),i.help(),i.version(),i}}o(ab,"YargsFactory");var By=Symbol("copyDoubleDash"),Vy=Symbol("copyDoubleDash"),wf=Symbol("deleteFromParserHintObject"),Uy=Symbol("emitWarning"),Gy=Symbol("freeze"),zy=Symbol("getDollarZero"),Pi=Symbol("getParserConfiguration"),Zy=Symbol("getUsageConfiguration"),Af=Symbol("guessLocale"),Wy=Symbol("guessVersion"),Ky=Symbol("parsePositionalNumbers"),If=Symbol("pkgUp"),Tn=Symbol("populateParserHintArray"),yo=Symbol("populateParserHintSingleValueDictionary"),Cf=Symbol("populateParserHintArrayDictionary"),Tf=Symbol("populateParserHintDictionary"),Rf=Symbol("sanitizeKey"),Nf=Symbol("setKey"),jf=Symbol("unfreeze"),Yy=Symbol("validateAsync"),Qy=Symbol("getCommandInstance"),Jy=Symbol("getContext"),Xy=Symbol("getHasOutput"),eb=Symbol("getLoggerInstance"),tb=Symbol("getParseContext"),rb=Symbol("getUsageInstance"),nb=Symbol("getValidationInstance"),Ac=Symbol("hasParseCallback"),ib=Symbol("isGlobalContext"),xi=Symbol("postProcess"),ob=Symbol("rebase"),Mf=Symbol("reset"),Rs=Symbol("runYargsParserAndExecuteCommands"),kf=Symbol("runValidation"),sb=Symbol("setHasOutput"),$i=Symbol("kTrackManuallySetKeys"),Df=class Df{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,tt.set(this,void 0),yi.set(this,void 0),Ts.set(this,{commands:[],fullCommands:[]}),sr.set(this,null),Wt.set(this,null),_c.set(this,"show-hidden"),In.set(this,null),bi.set(this,!0),Sc.set(this,{}),ar.set(this,!0),Oc.set(this,[]),cr.set(this,void 0),Hr.set(this,{}),Kt.set(this,!1),ur.set(this,null),Ec.set(this,!0),mo.set(this,void 0),ft.set(this,""),W.set(this,void 0),Pc.set(this,void 0),xc.set(this,{}),Yt.set(this,null),vi.set(this,null),go.set(this,{}),_i.set(this,{}),Cn.set(this,void 0),$c.set(this,!1),ie.set(this,void 0),Si.set(this,!1),Oi.set(this,!1),Ei.set(this,!1),se.set(this,void 0),wc.set(this,{}),Br.set(this,null),Ke.set(this,void 0),B(this,ie,i,"f"),B(this,Cn,t,"f"),B(this,yi,r,"f"),B(this,Pc,n,"f"),B(this,cr,new yc(this),"f"),this.$0=this[zy](),this[Mf](),B(this,tt,m(this,tt,"f"),"f"),B(this,se,m(this,se,"f"),"f"),B(this,Ke,m(this,Ke,"f"),"f"),B(this,W,m(this,W,"f"),"f"),m(this,W,"f").showHiddenOpt=m(this,_c,"f"),B(this,mo,this[Vy](),"f")}addHelpOpt(t,r){let n="help";return F("[string|boolean] [string]",[t,r],arguments.length),m(this,ur,"f")&&(this[wf](m(this,ur,"f")),B(this,ur,null,"f")),t===!1&&r===void 0?this:(B(this,ur,typeof t=="string"?t:n,"f"),this.boolean(m(this,ur,"f")),this.describe(m(this,ur,"f"),r||m(this,se,"f").deferY18nLookup("Show help")),this)}help(t,r){return this.addHelpOpt(t,r)}addShowHiddenOpt(t,r){if(F("[string|boolean] [string]",[t,r],arguments.length),t===!1&&r===void 0)return this;let n=typeof t=="string"?t:m(this,_c,"f");return this.boolean(n),this.describe(n,r||m(this,se,"f").deferY18nLookup("Show hidden options")),m(this,W,"f").showHiddenOpt=n,this}showHidden(t,r){return this.addShowHiddenOpt(t,r)}alias(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[Cf](this.alias.bind(this),"alias",t,r),this}array(t){return F("<array|string>",[t],arguments.length),this[Tn]("array",t),this[$i](t),this}boolean(t){return F("<array|string>",[t],arguments.length),this[Tn]("boolean",t),this[$i](t),this}check(t,r){return F("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>gi(()=>t(n,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&m(this,se,"f").fail(s.toString(),s):m(this,se,"f").fail(m(this,ie,"f").y18n.__("Argument check failed: %s",t.toString())),n),s=>(m(this,se,"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[Cf](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 De("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 De("coerce callback must be provided");return m(this,W,"f").key[t]=!0,m(this,cr,"f").addCoerceMiddleware((n,i)=>{let s;return Object.prototype.hasOwnProperty.call(n,t)?gi(()=>(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 De(c.message)}):n},t),this}conflicts(t,r){return F("<string|object> [string|array]",[t,r],arguments.length),m(this,Ke,"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=Cs(t,m(this,yi,"f"),this[Pi]()["deep-merge-config"]||!1,m(this,ie,"f")),m(this,W,"f").configObjects=(m(this,W,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||m(this,se,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{m(this,W,"f").config[i]=n||!0}),this)}completion(t,r,n){return F("[string] [string|boolean|function] [function]",[t,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),B(this,Wt,t||m(this,Wt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(m(this,Wt,"f"),r),n&&m(this,sr,"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,tt,"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,Pc,"f")||m(this,ie,"f").require;return m(this,tt,"f").addDirectory(t,n,m(this,ie,"f").getCallerFile(),r),this}count(t){return F("<array|string>",[t],arguments.length),this[Tn]("count",t),this[$i](t),this}default(t,r,n){return F("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(bf(t,m(this,ie,"f")),m(this,W,"f").defaultDescription[t]=n),typeof r=="function"&&(bf(t,m(this,ie,"f")),m(this,W,"f").defaultDescription[t]||(m(this,W,"f").defaultDescription[t]=m(this,se,"f").functionDescription(r)),r=r.call()),this[yo](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=>{Rt(n,!0,m(this,ie,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(Rt(n,!0,m(this,ie,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{Rt(n,!0,m(this,ie,"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[yo](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[Nf](t,!0),m(this,se,"f").describe(t,r),this}detectLocale(t){return F("<boolean>",[t],arguments.length),B(this,bi,t,"f"),this}env(t){return F("[string|boolean]",[t],arguments.length),t===!1?delete m(this,W,"f").envPrefix:m(this,W,"f").envPrefix=t||"",this}epilogue(t){return F("<string>",[t],arguments.length),m(this,se,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,r){return F("<string|array> [string]",[t,r],arguments.length),Array.isArray(t)?t.forEach(n=>this.example(...n)):m(this,se,"f").example(t,r),this}exit(t,r){B(this,Kt,!0,"f"),B(this,In,r,"f"),m(this,ar,"f")&&m(this,ie,"f").process.exit(t)}exitProcess(t=!0){return F("[boolean]",[t],arguments.length),B(this,ar,t,"f"),this}fail(t){if(F("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new De("Invalid first argument. Expected function or boolean 'false'");return m(this,se,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return F("<array> [function]",[t,r],arguments.length),r?m(this,sr,"f").getCompletion(t,r):new Promise((n,i)=>{m(this,sr,"f").getCompletion(t,(s,a)=>{s?i(s):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,bi,"f")}getExitProcess(){return m(this,ar,"f")}getGroups(){return Object.assign({},m(this,Hr,"f"),m(this,_i,"f"))}getHelp(){if(B(this,Kt,!0,"f"),!m(this,se,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[Rs](m(this,Cn,"f"),void 0,void 0,0,!0);if(Le(r))return r.then(()=>m(this,se,"f").help())}let t=m(this,tt,"f").runDefaultBuilderOn(this);if(Le(t))return t.then(()=>m(this,se,"f").help())}return Promise.resolve(m(this,se,"f").help())}getOptions(){return m(this,W,"f")}getStrict(){return m(this,Si,"f")}getStrictCommands(){return m(this,Oi,"f")}getStrictOptions(){return m(this,Ei,"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,_i,"f")[r]||m(this,Hr,"f")[r];m(this,_i,"f")[r]&&delete m(this,_i,"f")[r];let i={};return m(this,Hr,"f")[r]=(n||[]).concat(t).filter(s=>i[s]?!1:i[s]=!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,Ke,"f").implies(t,r),this}locale(t){return F("[string]",[t],arguments.length),t===void 0?(this[Af](),m(this,ie,"f").y18n.getLocale()):(B(this,bi,!1,"f"),m(this,ie,"f").y18n.setLocale(t),this)}middleware(t,r,n){return m(this,cr,"f").addMiddleware(t,!!r,n)}nargs(t,r){return F("<string|object|array> [number]",[t,r],arguments.length),this[yo](this.nargs.bind(this),"narg",t,r),this}normalize(t){return F("<array|string>",[t],arguments.length),this[Tn]("normalize",t),this}number(t){return F("<array|string>",[t],arguments.length),this[Tn]("number",t),this[$i](t),this}option(t,r){if(F("<string|object> [object]",[t,r],arguments.length),typeof t=="object")Object.keys(t).forEach(n=>{this.options(n,t[n])});else{typeof r!="object"&&(r={}),this[$i](t),m(this,Br,"f")&&(t==="version"||(r==null?void 0:r.alias)==="version")&&this[Uy](['"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 s=r.describe||r.description||r.desc,a=m(this,se,"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[Gy](),typeof t>"u"&&(t=m(this,Cn,"f")),typeof r=="object"&&(B(this,vi,r,"f"),r=n),typeof r=="function"&&(B(this,Yt,r,"f"),r=!1),r||B(this,Cn,t,"f"),m(this,Yt,"f")&&B(this,ar,!1,"f");let i=this[Rs](t,!!r),s=this.parsed;return m(this,sr,"f").setParsed(this.parsed),Le(i)?i.then(a=>(m(this,Yt,"f")&&m(this,Yt,"f").call(this,m(this,In,"f"),a,m(this,ft,"f")),a)).catch(a=>{throw m(this,Yt,"f")&&m(this,Yt,"f")(a,this.parsed.argv,m(this,ft,"f")),a}).finally(()=>{this[jf](),this.parsed=s}):(m(this,Yt,"f")&&m(this,Yt,"f").call(this,m(this,In,"f"),i,m(this,ft,"f")),this[jf](),this.parsed=s,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return Le(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(Le(i))throw new De(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return F("<object>",[t],arguments.length),B(this,xc,t,"f"),this}pkgConf(t,r){F("<string> [string]",[t,r],arguments.length);let n=null,i=this[If](r||m(this,yi,"f"));return i[t]&&typeof i[t]=="object"&&(n=Cs(i[t],r||m(this,yi,"f"),this[Pi]()["deep-merge-config"]||!1,m(this,ie,"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=wn(r,(a,c)=>a==="type"&&!["string","number","boolean"].includes(c)?!1:n.includes(a));let i=m(this,Ts,"f").fullCommands[m(this,Ts,"f").fullCommands.length-1],s=i?m(this,tt,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return po(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,se,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return F("[boolean]",[t],arguments.length),B(this,$c,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[yo](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,mo,"f").log(m(this,sr,"f").generateCompletionScript(t,r||m(this,Wt,"f")||"completion")),this}showHelp(t){if(F("[string|function]",[t],arguments.length),B(this,Kt,!0,"f"),!m(this,se,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[Rs](m(this,Cn,"f"),void 0,void 0,0,!0);if(Le(n))return n.then(()=>{m(this,se,"f").showHelp(t)}),this}let r=m(this,tt,"f").runDefaultBuilderOn(this);if(Le(r))return r.then(()=>{m(this,se,"f").showHelp(t)}),this}return m(this,se,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,r){return F("[boolean|string] [string]",[t,r],arguments.length),m(this,se,"f").showHelpOnFail(t,r),this}showVersion(t){return F("[string|function]",[t],arguments.length),m(this,se,"f").showVersion(t),this}skipValidation(t){return F("<array|string>",[t],arguments.length),this[Tn]("skipValidation",t),this}strict(t){return F("[boolean]",[t],arguments.length),B(this,Si,t!==!1,"f"),this}strictCommands(t){return F("[boolean]",[t],arguments.length),B(this,Oi,t!==!1,"f"),this}strictOptions(t){return F("[boolean]",[t],arguments.length),B(this,Ei,t!==!1,"f"),this}string(t){return F("<array|string>",[t],arguments.length),this[Tn]("string",t),this[$i](t),this}terminalWidth(){return F([],0),m(this,ie,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return F("<object>",[t],arguments.length),B(this,bi,!1,"f"),m(this,ie,"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(Rt(t,null,m(this,ie,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new De(".usage() description must start with $0 if being used as alias for .command()")}else return m(this,se,"f").usage(t),this}usageConfiguration(t){return F("<object>",[t],arguments.length),B(this,wc,t,"f"),this}version(t,r,n){let i="version";if(F("[boolean|string] [string] [string]",[t,r,n],arguments.length),m(this,Br,"f")&&(this[wf](m(this,Br,"f")),m(this,se,"f").version(void 0),B(this,Br,null,"f")),arguments.length===0)n=this[Wy](),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,Br,typeof t=="string"?t:i,"f"),r=r||m(this,se,"f").deferY18nLookup("Show version number"),m(this,se,"f").version(n||void 0),this.boolean(m(this,Br,"f")),this.describe(m(this,Br,"f"),r),this}wrap(t){return F("<number|null|undefined>",[t],arguments.length),m(this,se,"f").wrap(t),this}[(tt=new WeakMap,yi=new WeakMap,Ts=new WeakMap,sr=new WeakMap,Wt=new WeakMap,_c=new WeakMap,In=new WeakMap,bi=new WeakMap,Sc=new WeakMap,ar=new WeakMap,Oc=new WeakMap,cr=new WeakMap,Hr=new WeakMap,Kt=new WeakMap,ur=new WeakMap,Ec=new WeakMap,mo=new WeakMap,ft=new WeakMap,W=new WeakMap,Pc=new WeakMap,xc=new WeakMap,Yt=new WeakMap,vi=new WeakMap,go=new WeakMap,_i=new WeakMap,Cn=new WeakMap,$c=new WeakMap,ie=new WeakMap,Si=new WeakMap,Oi=new WeakMap,Ei=new WeakMap,se=new WeakMap,wc=new WeakMap,Br=new WeakMap,Ke=new WeakMap,By)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[Vy](){return{log:o((...t)=>{this[Ac]()||console.log(...t),B(this,Kt,!0,"f"),m(this,ft,"f").length&&B(this,ft,m(this,ft,"f")+`
131
+ `)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+b))}},"requiredArguments"),s.unknownArguments=o(function(f,d,h,y,b=!0){var g;let P=e.getInternalMethods().getCommandInstance().getCommands(),$=[],C=e.getInternalMethods().getContext();if(Object.keys(f).forEach(T=>{!Gy.includes(T)&&!Object.prototype.hasOwnProperty.call(h,T)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),T)&&!s.isValidAndSomeAliasIsNotNew(T,d)&&$.push(T)}),b&&(C.commands.length>0||P.length>0||y)&&f._.slice(C.commands.length).forEach(T=>{P.includes(""+T)||$.push(""+T)}),b){let w=((g=e.getDemandedCommands()._)===null||g===void 0?void 0:g.max)||0,te=C.commands.length+w;te<f._.length&&f._.slice(te).forEach(re=>{re=String(re),!C.commands.includes(re)&&!$.includes(re)&&$.push(re)})}$.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",$.length,$.map(T=>T.trim()?T:`"${T}"`).join(", ")))},"unknownArguments"),s.unknownCommands=o(function(f){let d=e.getInternalMethods().getCommandInstance().getCommands(),h=[],y=e.getInternalMethods().getContext();return(y.commands.length>0||d.length>0)&&f._.slice(y.commands.length).forEach(b=>{d.includes(""+b)||h.push(""+b)}),h.length>0?(t.fail(i("Unknown command: %s","Unknown commands: %s",h.length,h.join(", "))),!0):!1},"unknownCommands"),s.isValidAndSomeAliasIsNotNew=o(function(f,d){if(!Object.prototype.hasOwnProperty.call(d,f))return!1;let h=e.parsed.newAliases;return[f,...d[f]].some(y=>!Object.prototype.hasOwnProperty.call(h,y)||!h[f])},"isValidAndSomeAliasIsNotNew"),s.limitedChoices=o(function(f){let d=e.getOptions(),h={};if(!Object.keys(d.choices).length)return;Object.keys(f).forEach(g=>{Gy.indexOf(g)===-1&&Object.prototype.hasOwnProperty.call(d.choices,g)&&[].concat(f[g]).forEach(P=>{d.choices[g].indexOf(P)===-1&&P!==void 0&&(h[g]=(h[g]||[]).concat(P))})});let y=Object.keys(h);if(!y.length)return;let b=n("Invalid values:");y.forEach(g=>{b+=`
132
+ ${n("Argument: %s, Given: %s, Choices: %s",g,t.stringifiedValues(h[g]),t.stringifiedValues(d.choices[g]))}`}),t.fail(b)},"limitedChoices");let a={};s.implies=o(function(f,d){F("<string|object> [array|number|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{s.implies(h,f[h])}):(e.global(f),a[f]||(a[f]=[]),Array.isArray(d)?d.forEach(h=>s.implies(f,h)):(Tt(d,void 0,r),a[f].push(d)))},"implies"),s.getImplied=o(function(){return a},"getImplied");function c(p,f){let d=Number(f);return f=isNaN(d)?f:d,typeof f=="number"?f=p._.length>=f:f.match(/^--no-.+/)?(f=f.match(/^--no-(.+)/)[1],f=!Object.prototype.hasOwnProperty.call(p,f)):f=Object.prototype.hasOwnProperty.call(p,f),f}o(c,"keyExists"),s.implications=o(function(f){let d=[];if(Object.keys(a).forEach(h=>{let y=h;(a[h]||[]).forEach(b=>{let g=y,P=b;g=c(f,g),b=c(f,b),g&&!b&&d.push(` ${y} -> ${P}`)})}),d.length){let h=`${n("Implications failed:")}
133
+ `;d.forEach(y=>{h+=y}),t.fail(h)}},"implications");let u={};s.conflicts=o(function(f,d){F("<string|object> [array|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{s.conflicts(h,f[h])}):(e.global(f),u[f]||(u[f]=[]),Array.isArray(d)?d.forEach(h=>s.conflicts(f,h)):u[f].push(d))},"conflicts"),s.getConflicting=()=>u,s.conflicting=o(function(f){Object.keys(f).forEach(d=>{u[d]&&u[d].forEach(h=>{h&&f[d]!==void 0&&f[h]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",d,h))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach(d=>{u[d].forEach(h=>{h&&f[r.Parser.camelCase(d)]!==void 0&&f[r.Parser.camelCase(h)]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",d,h))})})},"conflictingFn"),s.recommendCommands=o(function(f,d){d=d.sort((g,P)=>P.length-g.length);let y=null,b=1/0;for(let g=0,P;(P=d[g])!==void 0;g++){let $=Uy(f,P);$<=3&&$<b&&(b=$,y=P)}y&&t.fail(n("Did you mean %s?",y))},"recommendCommands"),s.reset=o(function(f){return a=xn(a,d=>!f[d]),u=xn(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();Tt(f,void 0,r),{implied:a,conflicting:u}=f},"unfreeze"),s}o(zy,"validation");var Cf=[],Is;function Cs(e,t,r,n){Is=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=nw(t,e.extends);else try{a=require.resolve(e.extends)}catch{return e}rw(a),Cf.push(a),i=s?JSON.parse(Is.readFileSync(a,"utf8")):require(e.extends),delete e.extends,i=Cs(i,Is.path.dirname(a),r,Is)}return Cf=[],r?Zy(i,e):Object.assign({},i,e)}o(Cs,"applyExtends");function rw(e){if(Cf.indexOf(e)>-1)throw new qe(`Circular extended configurations: '${e}'.`)}o(rw,"checkForCircularExtends");function nw(e,t){return Is.path.resolve(e,t)}o(nw,"getPathToDefaultConfig");function Zy(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]=Zy(e[i],t[i]):r[i]=t[i];return r}o(Zy,"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)},et,mi,Ts,sr,Wt,_c,wn,gi,Sc,ar,Oc,cr,Hr,Kt,ur,Ec,ho,ft,W,Pc,xc,Yt,yi,mo,bi,An,$c,ie,vi,_i,Si,se,wc,Br,We;function db(e){return(t=[],r=e.process.cwd(),n)=>{let i=new Hf(t,r,n,e);return Object.defineProperty(i,"argv",{get:o(()=>i.parse(),"get"),enumerable:!0}),i.help(),i.version(),i}}o(db,"YargsFactory");var Wy=Symbol("copyDoubleDash"),Ky=Symbol("copyDoubleDash"),Tf=Symbol("deleteFromParserHintObject"),Yy=Symbol("emitWarning"),Qy=Symbol("freeze"),Jy=Symbol("getDollarZero"),Oi=Symbol("getParserConfiguration"),Xy=Symbol("getUsageConfiguration"),Rf=Symbol("guessLocale"),eb=Symbol("guessVersion"),tb=Symbol("parsePositionalNumbers"),Nf=Symbol("pkgUp"),In=Symbol("populateParserHintArray"),go=Symbol("populateParserHintSingleValueDictionary"),jf=Symbol("populateParserHintArrayDictionary"),Mf=Symbol("populateParserHintDictionary"),kf=Symbol("sanitizeKey"),qf=Symbol("setKey"),Df=Symbol("unfreeze"),rb=Symbol("validateAsync"),nb=Symbol("getCommandInstance"),ib=Symbol("getContext"),ob=Symbol("getHasOutput"),sb=Symbol("getLoggerInstance"),ab=Symbol("getParseContext"),cb=Symbol("getUsageInstance"),ub=Symbol("getValidationInstance"),Ac=Symbol("hasParseCallback"),lb=Symbol("isGlobalContext"),Ei=Symbol("postProcess"),fb=Symbol("rebase"),Lf=Symbol("reset"),Rs=Symbol("runYargsParserAndExecuteCommands"),Ff=Symbol("runValidation"),pb=Symbol("setHasOutput"),Pi=Symbol("kTrackManuallySetKeys"),Bf=class Bf{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,et.set(this,void 0),mi.set(this,void 0),Ts.set(this,{commands:[],fullCommands:[]}),sr.set(this,null),Wt.set(this,null),_c.set(this,"show-hidden"),wn.set(this,null),gi.set(this,!0),Sc.set(this,{}),ar.set(this,!0),Oc.set(this,[]),cr.set(this,void 0),Hr.set(this,{}),Kt.set(this,!1),ur.set(this,null),Ec.set(this,!0),ho.set(this,void 0),ft.set(this,""),W.set(this,void 0),Pc.set(this,void 0),xc.set(this,{}),Yt.set(this,null),yi.set(this,null),mo.set(this,{}),bi.set(this,{}),An.set(this,void 0),$c.set(this,!1),ie.set(this,void 0),vi.set(this,!1),_i.set(this,!1),Si.set(this,!1),se.set(this,void 0),wc.set(this,{}),Br.set(this,null),We.set(this,void 0),B(this,ie,i,"f"),B(this,An,t,"f"),B(this,mi,r,"f"),B(this,Pc,n,"f"),B(this,cr,new yc(this),"f"),this.$0=this[Jy](),this[Lf](),B(this,et,m(this,et,"f"),"f"),B(this,se,m(this,se,"f"),"f"),B(this,We,m(this,We,"f"),"f"),B(this,W,m(this,W,"f"),"f"),m(this,W,"f").showHiddenOpt=m(this,_c,"f"),B(this,ho,this[Ky](),"f")}addHelpOpt(t,r){let n="help";return F("[string|boolean] [string]",[t,r],arguments.length),m(this,ur,"f")&&(this[Tf](m(this,ur,"f")),B(this,ur,null,"f")),t===!1&&r===void 0?this:(B(this,ur,typeof t=="string"?t:n,"f"),this.boolean(m(this,ur,"f")),this.describe(m(this,ur,"f"),r||m(this,se,"f").deferY18nLookup("Show help")),this)}help(t,r){return this.addHelpOpt(t,r)}addShowHiddenOpt(t,r){if(F("[string|boolean] [string]",[t,r],arguments.length),t===!1&&r===void 0)return this;let n=typeof t=="string"?t:m(this,_c,"f");return this.boolean(n),this.describe(n,r||m(this,se,"f").deferY18nLookup("Show hidden options")),m(this,W,"f").showHiddenOpt=n,this}showHidden(t,r){return this.addShowHiddenOpt(t,r)}alias(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[jf](this.alias.bind(this),"alias",t,r),this}array(t){return F("<array|string>",[t],arguments.length),this[In]("array",t),this[Pi](t),this}boolean(t){return F("<array|string>",[t],arguments.length),this[In]("boolean",t),this[Pi](t),this}check(t,r){return F("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>hi(()=>t(n,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&m(this,se,"f").fail(s.toString(),s):m(this,se,"f").fail(m(this,ie,"f").y18n.__("Argument check failed: %s",t.toString())),n),s=>(m(this,se,"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[jf](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 qe("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 qe("coerce callback must be provided");return m(this,W,"f").key[t]=!0,m(this,cr,"f").addCoerceMiddleware((n,i)=>{let s;return Object.prototype.hasOwnProperty.call(n,t)?hi(()=>(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 qe(c.message)}):n},t),this}conflicts(t,r){return F("<string|object> [string|array]",[t,r],arguments.length),m(this,We,"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=Cs(t,m(this,mi,"f"),this[Oi]()["deep-merge-config"]||!1,m(this,ie,"f")),m(this,W,"f").configObjects=(m(this,W,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||m(this,se,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{m(this,W,"f").config[i]=n||!0}),this)}completion(t,r,n){return F("[string] [string|boolean|function] [function]",[t,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),B(this,Wt,t||m(this,Wt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(m(this,Wt,"f"),r),n&&m(this,sr,"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,et,"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,Pc,"f")||m(this,ie,"f").require;return m(this,et,"f").addDirectory(t,n,m(this,ie,"f").getCallerFile(),r),this}count(t){return F("<array|string>",[t],arguments.length),this[In]("count",t),this[Pi](t),this}default(t,r,n){return F("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(Of(t,m(this,ie,"f")),m(this,W,"f").defaultDescription[t]=n),typeof r=="function"&&(Of(t,m(this,ie,"f")),m(this,W,"f").defaultDescription[t]||(m(this,W,"f").defaultDescription[t]=m(this,se,"f").functionDescription(r)),r=r.call()),this[go](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=>{Tt(n,!0,m(this,ie,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(Tt(n,!0,m(this,ie,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{Tt(n,!0,m(this,ie,"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[go](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[qf](t,!0),m(this,se,"f").describe(t,r),this}detectLocale(t){return F("<boolean>",[t],arguments.length),B(this,gi,t,"f"),this}env(t){return F("[string|boolean]",[t],arguments.length),t===!1?delete m(this,W,"f").envPrefix:m(this,W,"f").envPrefix=t||"",this}epilogue(t){return F("<string>",[t],arguments.length),m(this,se,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,r){return F("<string|array> [string]",[t,r],arguments.length),Array.isArray(t)?t.forEach(n=>this.example(...n)):m(this,se,"f").example(t,r),this}exit(t,r){B(this,Kt,!0,"f"),B(this,wn,r,"f"),m(this,ar,"f")&&m(this,ie,"f").process.exit(t)}exitProcess(t=!0){return F("[boolean]",[t],arguments.length),B(this,ar,t,"f"),this}fail(t){if(F("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new qe("Invalid first argument. Expected function or boolean 'false'");return m(this,se,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return F("<array> [function]",[t,r],arguments.length),r?m(this,sr,"f").getCompletion(t,r):new Promise((n,i)=>{m(this,sr,"f").getCompletion(t,(s,a)=>{s?i(s):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,gi,"f")}getExitProcess(){return m(this,ar,"f")}getGroups(){return Object.assign({},m(this,Hr,"f"),m(this,bi,"f"))}getHelp(){if(B(this,Kt,!0,"f"),!m(this,se,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[Rs](m(this,An,"f"),void 0,void 0,0,!0);if(De(r))return r.then(()=>m(this,se,"f").help())}let t=m(this,et,"f").runDefaultBuilderOn(this);if(De(t))return t.then(()=>m(this,se,"f").help())}return Promise.resolve(m(this,se,"f").help())}getOptions(){return m(this,W,"f")}getStrict(){return m(this,vi,"f")}getStrictCommands(){return m(this,_i,"f")}getStrictOptions(){return m(this,Si,"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,bi,"f")[r]||m(this,Hr,"f")[r];m(this,bi,"f")[r]&&delete m(this,bi,"f")[r];let i={};return m(this,Hr,"f")[r]=(n||[]).concat(t).filter(s=>i[s]?!1:i[s]=!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,We,"f").implies(t,r),this}locale(t){return F("[string]",[t],arguments.length),t===void 0?(this[Rf](),m(this,ie,"f").y18n.getLocale()):(B(this,gi,!1,"f"),m(this,ie,"f").y18n.setLocale(t),this)}middleware(t,r,n){return m(this,cr,"f").addMiddleware(t,!!r,n)}nargs(t,r){return F("<string|object|array> [number]",[t,r],arguments.length),this[go](this.nargs.bind(this),"narg",t,r),this}normalize(t){return F("<array|string>",[t],arguments.length),this[In]("normalize",t),this}number(t){return F("<array|string>",[t],arguments.length),this[In]("number",t),this[Pi](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[Pi](t),m(this,Br,"f")&&(t==="version"||(r==null?void 0:r.alias)==="version")&&this[Yy](['"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 s=r.describe||r.description||r.desc,a=m(this,se,"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[Qy](),typeof t>"u"&&(t=m(this,An,"f")),typeof r=="object"&&(B(this,yi,r,"f"),r=n),typeof r=="function"&&(B(this,Yt,r,"f"),r=!1),r||B(this,An,t,"f"),m(this,Yt,"f")&&B(this,ar,!1,"f");let i=this[Rs](t,!!r),s=this.parsed;return m(this,sr,"f").setParsed(this.parsed),De(i)?i.then(a=>(m(this,Yt,"f")&&m(this,Yt,"f").call(this,m(this,wn,"f"),a,m(this,ft,"f")),a)).catch(a=>{throw m(this,Yt,"f")&&m(this,Yt,"f")(a,this.parsed.argv,m(this,ft,"f")),a}).finally(()=>{this[Df](),this.parsed=s}):(m(this,Yt,"f")&&m(this,Yt,"f").call(this,m(this,wn,"f"),i,m(this,ft,"f")),this[Df](),this.parsed=s,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return De(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(De(i))throw new qe(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return F("<object>",[t],arguments.length),B(this,xc,t,"f"),this}pkgConf(t,r){F("<string> [string]",[t,r],arguments.length);let n=null,i=this[Nf](r||m(this,mi,"f"));return i[t]&&typeof i[t]=="object"&&(n=Cs(i[t],r||m(this,mi,"f"),this[Oi]()["deep-merge-config"]||!1,m(this,ie,"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=xn(r,(a,c)=>a==="type"&&!["string","number","boolean"].includes(c)?!1:n.includes(a));let i=m(this,Ts,"f").fullCommands[m(this,Ts,"f").fullCommands.length-1],s=i?m(this,et,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return fo(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,se,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return F("[boolean]",[t],arguments.length),B(this,$c,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[go](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,ho,"f").log(m(this,sr,"f").generateCompletionScript(t,r||m(this,Wt,"f")||"completion")),this}showHelp(t){if(F("[string|function]",[t],arguments.length),B(this,Kt,!0,"f"),!m(this,se,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[Rs](m(this,An,"f"),void 0,void 0,0,!0);if(De(n))return n.then(()=>{m(this,se,"f").showHelp(t)}),this}let r=m(this,et,"f").runDefaultBuilderOn(this);if(De(r))return r.then(()=>{m(this,se,"f").showHelp(t)}),this}return m(this,se,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,r){return F("[boolean|string] [string]",[t,r],arguments.length),m(this,se,"f").showHelpOnFail(t,r),this}showVersion(t){return F("[string|function]",[t],arguments.length),m(this,se,"f").showVersion(t),this}skipValidation(t){return F("<array|string>",[t],arguments.length),this[In]("skipValidation",t),this}strict(t){return F("[boolean]",[t],arguments.length),B(this,vi,t!==!1,"f"),this}strictCommands(t){return F("[boolean]",[t],arguments.length),B(this,_i,t!==!1,"f"),this}strictOptions(t){return F("[boolean]",[t],arguments.length),B(this,Si,t!==!1,"f"),this}string(t){return F("<array|string>",[t],arguments.length),this[In]("string",t),this[Pi](t),this}terminalWidth(){return F([],0),m(this,ie,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return F("<object>",[t],arguments.length),B(this,gi,!1,"f"),m(this,ie,"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(Tt(t,null,m(this,ie,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new qe(".usage() description must start with $0 if being used as alias for .command()")}else return m(this,se,"f").usage(t),this}usageConfiguration(t){return F("<object>",[t],arguments.length),B(this,wc,t,"f"),this}version(t,r,n){let i="version";if(F("[boolean|string] [string] [string]",[t,r,n],arguments.length),m(this,Br,"f")&&(this[Tf](m(this,Br,"f")),m(this,se,"f").version(void 0),B(this,Br,null,"f")),arguments.length===0)n=this[eb](),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,Br,typeof t=="string"?t:i,"f"),r=r||m(this,se,"f").deferY18nLookup("Show version number"),m(this,se,"f").version(n||void 0),this.boolean(m(this,Br,"f")),this.describe(m(this,Br,"f"),r),this}wrap(t){return F("<number|null|undefined>",[t],arguments.length),m(this,se,"f").wrap(t),this}[(et=new WeakMap,mi=new WeakMap,Ts=new WeakMap,sr=new WeakMap,Wt=new WeakMap,_c=new WeakMap,wn=new WeakMap,gi=new WeakMap,Sc=new WeakMap,ar=new WeakMap,Oc=new WeakMap,cr=new WeakMap,Hr=new WeakMap,Kt=new WeakMap,ur=new WeakMap,Ec=new WeakMap,ho=new WeakMap,ft=new WeakMap,W=new WeakMap,Pc=new WeakMap,xc=new WeakMap,Yt=new WeakMap,yi=new WeakMap,mo=new WeakMap,bi=new WeakMap,An=new WeakMap,$c=new WeakMap,ie=new WeakMap,vi=new WeakMap,_i=new WeakMap,Si=new WeakMap,se=new WeakMap,wc=new WeakMap,Br=new WeakMap,We=new WeakMap,Wy)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[Ky](){return{log:o((...t)=>{this[Ac]()||console.log(...t),B(this,Kt,!0,"f"),m(this,ft,"f").length&&B(this,ft,m(this,ft,"f")+`
135
135
  `,"f"),B(this,ft,m(this,ft,"f")+t.join(" "),"f")},"log"),error:o((...t)=>{this[Ac]()||console.error(...t),B(this,Kt,!0,"f"),m(this,ft,"f").length&&B(this,ft,m(this,ft,"f")+`
136
- `,"f"),B(this,ft,m(this,ft,"f")+t.join(" "),"f")},"error")}}[wf](t){po(m(this,W,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=m(this,W,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete m(this,se,"f").getDescriptions()[t]}[Uy](t,r,n){m(this,Sc,"f")[n]||(m(this,ie,"f").process.emitWarning(t,r),m(this,Sc,"f")[n]=!0)}[Gy](){m(this,Oc,"f").push({options:m(this,W,"f"),configObjects:m(this,W,"f").configObjects.slice(0),exitProcess:m(this,ar,"f"),groups:m(this,Hr,"f"),strict:m(this,Si,"f"),strictCommands:m(this,Oi,"f"),strictOptions:m(this,Ei,"f"),completionCommand:m(this,Wt,"f"),output:m(this,ft,"f"),exitError:m(this,In,"f"),hasOutput:m(this,Kt,"f"),parsed:this.parsed,parseFn:m(this,Yt,"f"),parseContext:m(this,vi,"f")}),m(this,se,"f").freeze(),m(this,Ke,"f").freeze(),m(this,tt,"f").freeze(),m(this,cr,"f").freeze()}[zy](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(m(this,ie,"f").process.argv()[0])?r=m(this,ie,"f").process.argv().slice(1,2):r=m(this,ie,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[ob](m(this,yi,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),m(this,ie,"f").getEnv("_")&&m(this,ie,"f").getProcessArgvBin()===m(this,ie,"f").getEnv("_")&&(t=m(this,ie,"f").getEnv("_").replace(`${m(this,ie,"f").path.dirname(m(this,ie,"f").process.execPath())}/`,"")),t}[Pi](){return m(this,xc,"f")}[Zy](){return m(this,wc,"f")}[Af](){if(!m(this,bi,"f"))return;let t=m(this,ie,"f").getEnv("LC_ALL")||m(this,ie,"f").getEnv("LC_MESSAGES")||m(this,ie,"f").getEnv("LANG")||m(this,ie,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[Wy](){return this[If]().version||"unknown"}[Ky](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)m(this,ie,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[If](t){let r=t||"*";if(m(this,go,"f")[r])return m(this,go,"f")[r];let n={};try{let i=t||m(this,ie,"f").mainFilename;!t&&m(this,ie,"f").path.extname(i)&&(i=m(this,ie,"f").path.dirname(i));let s=m(this,ie,"f").findUp(i,(a,c)=>{if(c.includes("package.json"))return"package.json"});Rt(s,void 0,m(this,ie,"f")),n=JSON.parse(m(this,ie,"f").readFileSync(s,"utf8"))}catch{}return m(this,go,"f")[r]=n||{},m(this,go,"f")[r]}[Tn](t,r){r=[].concat(r),r.forEach(n=>{n=this[Rf](n),m(this,W,"f")[t].push(n)})}[yo](t,r,n,i){this[Tf](t,r,n,i,(s,a,c)=>{m(this,W,"f")[s][a]=c})}[Cf](t,r,n,i){this[Tf](t,r,n,i,(s,a,c)=>{m(this,W,"f")[s][a]=(m(this,W,"f")[s][a]||[]).concat(c)})}[Tf](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 po(n))t(a,n[a]);else s(r,this[Rf](n),i)}[Rf](t){return t==="__proto__"?"___proto___":t}[Nf](t,r){return this[yo](this[Nf].bind(this),"key",t,r),this}[jf](){var t,r,n,i,s,a,c,u,l,p,f,d;let h=m(this,Oc,"f").pop();Rt(h,void 0,m(this,ie,"f"));let y;t=this,r=this,n=this,i=this,s=this,a=this,c=this,u=this,l=this,p=this,f=this,d=this,{options:{set value(b){B(t,W,b,"f")}}.value,configObjects:y,exitProcess:{set value(b){B(r,ar,b,"f")}}.value,groups:{set value(b){B(n,Hr,b,"f")}}.value,output:{set value(b){B(i,ft,b,"f")}}.value,exitError:{set value(b){B(s,In,b,"f")}}.value,hasOutput:{set value(b){B(a,Kt,b,"f")}}.value,parsed:this.parsed,strict:{set value(b){B(c,Si,b,"f")}}.value,strictCommands:{set value(b){B(u,Oi,b,"f")}}.value,strictOptions:{set value(b){B(l,Ei,b,"f")}}.value,completionCommand:{set value(b){B(p,Wt,b,"f")}}.value,parseFn:{set value(b){B(f,Yt,b,"f")}}.value,parseContext:{set value(b){B(d,vi,b,"f")}}.value}=h,m(this,W,"f").configObjects=y,m(this,se,"f").unfreeze(),m(this,Ke,"f").unfreeze(),m(this,tt,"f").unfreeze(),m(this,cr,"f").unfreeze()}[Yy](t,r){return gi(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[Qy].bind(this),getContext:this[Jy].bind(this),getHasOutput:this[Xy].bind(this),getLoggerInstance:this[eb].bind(this),getParseContext:this[tb].bind(this),getParserConfiguration:this[Pi].bind(this),getUsageConfiguration:this[Zy].bind(this),getUsageInstance:this[rb].bind(this),getValidationInstance:this[nb].bind(this),hasParseCallback:this[Ac].bind(this),isGlobalContext:this[ib].bind(this),postProcess:this[xi].bind(this),reset:this[Mf].bind(this),runValidation:this[kf].bind(this),runYargsParserAndExecuteCommands:this[Rs].bind(this),setHasOutput:this[sb].bind(this)}}[Qy](){return m(this,tt,"f")}[Jy](){return m(this,Ts,"f")}[Xy](){return m(this,Kt,"f")}[eb](){return m(this,mo,"f")}[tb](){return m(this,vi,"f")||{}}[rb](){return m(this,se,"f")}[nb](){return m(this,Ke,"f")}[Ac](){return!!m(this,Yt,"f")}[ib](){return m(this,Ec,"f")}[xi](t,r,n,i){return n||Le(t)||(r||(t=this[By](t)),(this[Pi]()["parse-positional-numbers"]||this[Pi]()["parse-positional-numbers"]===void 0)&&(t=this[Ky](t)),i&&(t=mi(t,this,m(this,cr,"f").getMiddleware(),!1))),t}[Mf](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,_i,"f"),Object.keys(m(this,Hr,"f")).reduce((a,c)=>{let u=m(this,Hr,"f")[c].filter(l=>!(l in n));return u.length>0&&(a[c]=u),a},{})),B(this,Hr,{},"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,W,"f")[a]||[]).filter(c=>!n[c])}),s.forEach(a=>{r[a]=wn(m(this,W,"f")[a],c=>!n[c])}),r.envPrefix=m(this,W,"f").envPrefix,B(this,W,r,"f"),B(this,se,m(this,se,"f")?m(this,se,"f").reset(n):jy(this,m(this,ie,"f")),"f"),B(this,Ke,m(this,Ke,"f")?m(this,Ke,"f").reset(n):Fy(this,m(this,se,"f"),m(this,ie,"f")),"f"),B(this,tt,m(this,tt,"f")?m(this,tt,"f").reset():Ty(m(this,se,"f"),m(this,Ke,"f"),m(this,cr,"f"),m(this,ie,"f")),"f"),m(this,sr,"f")||B(this,sr,qy(this,m(this,se,"f"),m(this,tt,"f"),m(this,ie,"f")),"f"),m(this,cr,"f").reset(),B(this,Wt,null,"f"),B(this,ft,"","f"),B(this,In,null,"f"),B(this,Kt,!1,"f"),this.parsed=!1,this}[ob](t,r){return m(this,ie,"f").path.relative(t,r)}[Rs](t,r,n,i=0,s=!1){let a=!!n||s;t=t||m(this,Cn,"f"),m(this,W,"f").__=m(this,ie,"f").y18n.__,m(this,W,"f").configuration=this[Pi]();let c=!!m(this,W,"f").configuration["populate--"],u=Object.assign({},m(this,W,"f").configuration,{"populate--":!0}),l=m(this,ie,"f").Parser.detailed(t,Object.assign({},m(this,W,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),p=Object.assign(l.argv,m(this,vi,"f")),f,d=l.aliases,h=!1,y=!1;Object.keys(p).forEach(b=>{b===m(this,ur,"f")&&p[b]?h=!0:b===m(this,Br,"f")&&p[b]&&(y=!0)}),p.$0=this.$0,this.parsed=l,i===0&&m(this,se,"f").clearCachedHelpMessage();try{if(this[Af](),r)return this[xi](p,c,!!n,!1);m(this,ur,"f")&&[m(this,ur,"f")].concat(d[m(this,ur,"f")]||[]).filter(C=>C.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),h=!0),B(this,Ec,!1,"f");let b=m(this,tt,"f").getCommands(),g=m(this,sr,"f").completionKey in p,P=h||g||s;if(p._.length){if(b.length){let $;for(let C=i||0,T;p._[C]!==void 0;C++)if(T=String(p._[C]),b.includes(T)&&T!==m(this,Wt,"f")){let w=m(this,tt,"f").runCommand(T,this,l,C+1,s,h||y||s);return this[xi](w,c,!!n,!1)}else if(!$&&T!==m(this,Wt,"f")){$=T;break}!m(this,tt,"f").hasDefaultCommand()&&m(this,$c,"f")&&$&&!P&&m(this,Ke,"f").recommendCommands($,b)}m(this,Wt,"f")&&p._.includes(m(this,Wt,"f"))&&!g&&(m(this,ar,"f")&&An(!0),this.showCompletionScript(),this.exit(0))}if(m(this,tt,"f").hasDefaultCommand()&&!P){let $=m(this,tt,"f").runCommand(null,this,l,0,s,h||y||s);return this[xi]($,c,!!n,!1)}if(g){m(this,ar,"f")&&An(!0),t=[].concat(t);let $=t.slice(t.indexOf(`--${m(this,sr,"f").completionKey}`)+1);return m(this,sr,"f").getCompletion($,(C,T)=>{if(C)throw new De(C.message);(T||[]).forEach(w=>{m(this,mo,"f").log(w)}),this.exit(0)}),this[xi](p,!c,!!n,!1)}if(m(this,Kt,"f")||(h?(m(this,ar,"f")&&An(!0),a=!0,this.showHelp("log"),this.exit(0)):y&&(m(this,ar,"f")&&An(!0),a=!0,m(this,se,"f").showVersion("log"),this.exit(0))),!a&&m(this,W,"f").skipValidation.length>0&&(a=Object.keys(p).some($=>m(this,W,"f").skipValidation.indexOf($)>=0&&p[$]===!0)),!a){if(l.error)throw new De(l.error.message);if(!g){let $=this[kf](d,{},l.error);n||(f=mi(p,this,m(this,cr,"f").getMiddleware(),!0)),f=this[Yy]($,f??p),Le(f)&&!n&&(f=f.then(()=>mi(p,this,m(this,cr,"f").getMiddleware(),!1)))}}}catch(b){if(b instanceof De)m(this,se,"f").fail(b.message,b);else throw b}return this[xi](f??p,c,!!n,!0)}[kf](t,r,n,i){let s={...this.getDemandedOptions()};return a=>{if(n)throw new De(n.message);m(this,Ke,"f").nonOptionCount(a),m(this,Ke,"f").requiredArguments(a,s);let c=!1;m(this,Oi,"f")&&(c=m(this,Ke,"f").unknownCommands(a)),m(this,Si,"f")&&!c?m(this,Ke,"f").unknownArguments(a,t,r,!!i):m(this,Ei,"f")&&m(this,Ke,"f").unknownArguments(a,t,{},!1,!1),m(this,Ke,"f").limitedChoices(a),m(this,Ke,"f").implications(a),m(this,Ke,"f").conflicting(a)}}[sb](){B(this,Kt,!0,"f")}[$i](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}};o(Df,"YargsInstance");var qf=Df;function Ry(e){return!!e&&typeof e.getInternalMethods=="function"}o(Ry,"isYargsInstance");var Y2=ab(yf),cb=Y2;var Ns="AppRestClient",Ic={query:"AppQueryOptions",infiniteQuery:"AppInfiniteQueryOptions",mutation:"AppMutationOptions"},Lf="src/data",Ff="@/data",lr={appRestClient:{template:"@/util/rest/clients/app-rest-client",monorepoTemplate:"@/clients/app-rest-client"},queryTypes:{template:"@/types/react-query",monorepoTemplate:"@povio/utils/types/react-query"},errorHandling:{template:"@/util/vendor/error-handling",monorepoTemplate:"@povio/utils/utils/vendor/error-handling"},abilityContext:{template:"@/data/acl/ability.context",monorepoTemplate:"@povio/auth/acl/ability.context"}},Rn={ErrorHandler:"ErrorHandler",SharedErrorHandler:"SharedErrorHandler"},Cc={bindings:[Rn.ErrorHandler,Rn.SharedErrorHandler],from:lr.errorHandling.template},Hf="AbilityContext",ub={bindings:[Hf],from:lr.abilityContext.template};var Tc={reactQueryTypes:{fileName:"react-query.types",extension:"ts"},restClient:{fileName:"rest-client",extension:"ts"},restInterceptor:{fileName:"rest-interceptor",extension:"ts"}},Rc={fileName:"app-rest-client",extension:"ts"},Bf="QueryModule",Nc={fileName:"queryModules",extension:"ts"},lb={fileName:"queryConfig.context",extension:"tsx"},bo={optionsType:"MutationEffectsOptions",hookName:"useMutationEffects",runFunctionName:"runMutationEffects"},jc={fileName:"useMutationEffects",extension:"ts"},pt={namespace:"ZodUtils",exports:{parse:"parse",sortExp:"sortExp",brand:"brand"}},Mc={fileName:"zod.utils",extension:"ts"};var fb="Schema",pb="Enum",db="Body",hb="Param",mb="Response",gb="ErrorResponse",js="z.void()",kc="z.instanceof(Blob)",Ms="z.enum",qc="z.string()",vo={bindings:["z"],from:"zod"};var Pe={input:"",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],excludePathRegex:"",excludeRedundantZodSchemas:!0,tsNamespaces:!0,importPath:"ts",configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"},acl:{outputFileNameSuffix:"acl",namespaceSuffix:"Acl"}},acl:!0,checkAcl:!0,standalone:!1,baseUrl:"",abilityContextImportPath:lr.abilityContext.template,abilityContextGenericAppAbilities:!1,schemaSuffix:fb,enumSuffix:pb,withDefaultValues:!0,extractEnums:!0,branded:!0,replaceOptionalWithNullish:!1,restClientImportPath:lr.appRestClient.template,errorHandlingImportPath:lr.errorHandling.template,removeOperationPrefixEndingWith:"Controller_",parseRequestParams:!0,queryTypesImportPath:lr.queryTypes.template,axiosRequestConfig:!1,infiniteQueries:!1,mutationEffects:!0};var yb=o((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),bb=o((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),vb=o((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),Ge={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]}},e6=Object.keys(Ge.modifier),Q2=Object.keys(Ge.color),J2=Object.keys(Ge.bgColor),t6=[...Q2,...J2];function X2(){let e=new Map;for(let[t,r]of Object.entries(Ge)){for(let[n,i]of Object.entries(r))Ge[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=Ge[n],e.set(i[0],i[1]);Object.defineProperty(Ge,t,{value:r,enumerable:!1})}return Object.defineProperty(Ge,"codes",{value:e,enumerable:!1}),Ge.color.close="\x1B[39m",Ge.bgColor.close="\x1B[49m",Ge.color.ansi=yb(),Ge.color.ansi256=bb(),Ge.color.ansi16m=vb(),Ge.bgColor.ansi=yb(10),Ge.bgColor.ansi256=bb(10),Ge.bgColor.ansi16m=vb(10),Object.defineProperties(Ge,{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=>Ge.rgbToAnsi256(...Ge.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)=>Ge.ansi256ToAnsi(Ge.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:o(t=>Ge.ansi256ToAnsi(Ge.hexToAnsi256(t)),"value"),enumerable:!1}}),Ge}o(X2,"assembleStyles");var ew=X2(),xr=ew;var Lc=yt(require("process"),1),Sb=yt(require("os"),1),Vf=yt(require("tty"),1);function fr(e,t=globalThis.Deno?globalThis.Deno.args:Lc.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(fr,"hasFlag");var{env:Ze}=Lc.default,Dc;fr("no-color")||fr("no-colors")||fr("color=false")||fr("color=never")?Dc=0:(fr("color")||fr("colors")||fr("color=true")||fr("color=always"))&&(Dc=1);function tw(){if("FORCE_COLOR"in Ze)return Ze.FORCE_COLOR==="true"?1:Ze.FORCE_COLOR==="false"?0:Ze.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Ze.FORCE_COLOR,10),3)}o(tw,"envForceColor");function rw(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}o(rw,"translateLevel");function nw(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=tw();n!==void 0&&(Dc=n);let i=r?Dc:n;if(i===0)return 0;if(r){if(fr("color=16m")||fr("color=full")||fr("color=truecolor"))return 3;if(fr("color=256"))return 2}if("TF_BUILD"in Ze&&"AGENT_NAME"in Ze)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(Ze.TERM==="dumb")return s;if(Lc.default.platform==="win32"){let a=Sb.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Ze)return"GITHUB_ACTIONS"in Ze||"GITEA_ACTIONS"in Ze?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Ze)||Ze.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Ze)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ze.TEAMCITY_VERSION)?1:0;if(Ze.COLORTERM==="truecolor"||Ze.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Ze){let a=Number.parseInt((Ze.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ze.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ze.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ze.TERM)||"COLORTERM"in Ze?1:s}o(nw,"_supportsColor");function _b(e,t={}){let r=nw(e,{streamIsTTY:e&&e.isTTY,...t});return rw(r)}o(_b,"createSupportsColor");var iw={stdout:_b({isTTY:Vf.default.isatty(1)}),stderr:_b({isTTY:Vf.default.isatty(2)})},Ob=iw;function Eb(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(Eb,"stringReplaceAll");function Pb(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
136
+ `,"f"),B(this,ft,m(this,ft,"f")+t.join(" "),"f")},"error")}}[Tf](t){fo(m(this,W,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=m(this,W,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete m(this,se,"f").getDescriptions()[t]}[Yy](t,r,n){m(this,Sc,"f")[n]||(m(this,ie,"f").process.emitWarning(t,r),m(this,Sc,"f")[n]=!0)}[Qy](){m(this,Oc,"f").push({options:m(this,W,"f"),configObjects:m(this,W,"f").configObjects.slice(0),exitProcess:m(this,ar,"f"),groups:m(this,Hr,"f"),strict:m(this,vi,"f"),strictCommands:m(this,_i,"f"),strictOptions:m(this,Si,"f"),completionCommand:m(this,Wt,"f"),output:m(this,ft,"f"),exitError:m(this,wn,"f"),hasOutput:m(this,Kt,"f"),parsed:this.parsed,parseFn:m(this,Yt,"f"),parseContext:m(this,yi,"f")}),m(this,se,"f").freeze(),m(this,We,"f").freeze(),m(this,et,"f").freeze(),m(this,cr,"f").freeze()}[Jy](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(m(this,ie,"f").process.argv()[0])?r=m(this,ie,"f").process.argv().slice(1,2):r=m(this,ie,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[fb](m(this,mi,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),m(this,ie,"f").getEnv("_")&&m(this,ie,"f").getProcessArgvBin()===m(this,ie,"f").getEnv("_")&&(t=m(this,ie,"f").getEnv("_").replace(`${m(this,ie,"f").path.dirname(m(this,ie,"f").process.execPath())}/`,"")),t}[Oi](){return m(this,xc,"f")}[Xy](){return m(this,wc,"f")}[Rf](){if(!m(this,gi,"f"))return;let t=m(this,ie,"f").getEnv("LC_ALL")||m(this,ie,"f").getEnv("LC_MESSAGES")||m(this,ie,"f").getEnv("LANG")||m(this,ie,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[eb](){return this[Nf]().version||"unknown"}[tb](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)m(this,ie,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[Nf](t){let r=t||"*";if(m(this,mo,"f")[r])return m(this,mo,"f")[r];let n={};try{let i=t||m(this,ie,"f").mainFilename;!t&&m(this,ie,"f").path.extname(i)&&(i=m(this,ie,"f").path.dirname(i));let s=m(this,ie,"f").findUp(i,(a,c)=>{if(c.includes("package.json"))return"package.json"});Tt(s,void 0,m(this,ie,"f")),n=JSON.parse(m(this,ie,"f").readFileSync(s,"utf8"))}catch{}return m(this,mo,"f")[r]=n||{},m(this,mo,"f")[r]}[In](t,r){r=[].concat(r),r.forEach(n=>{n=this[kf](n),m(this,W,"f")[t].push(n)})}[go](t,r,n,i){this[Mf](t,r,n,i,(s,a,c)=>{m(this,W,"f")[s][a]=c})}[jf](t,r,n,i){this[Mf](t,r,n,i,(s,a,c)=>{m(this,W,"f")[s][a]=(m(this,W,"f")[s][a]||[]).concat(c)})}[Mf](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 fo(n))t(a,n[a]);else s(r,this[kf](n),i)}[kf](t){return t==="__proto__"?"___proto___":t}[qf](t,r){return this[go](this[qf].bind(this),"key",t,r),this}[Df](){var t,r,n,i,s,a,c,u,l,p,f,d;let h=m(this,Oc,"f").pop();Tt(h,void 0,m(this,ie,"f"));let y;t=this,r=this,n=this,i=this,s=this,a=this,c=this,u=this,l=this,p=this,f=this,d=this,{options:{set value(b){B(t,W,b,"f")}}.value,configObjects:y,exitProcess:{set value(b){B(r,ar,b,"f")}}.value,groups:{set value(b){B(n,Hr,b,"f")}}.value,output:{set value(b){B(i,ft,b,"f")}}.value,exitError:{set value(b){B(s,wn,b,"f")}}.value,hasOutput:{set value(b){B(a,Kt,b,"f")}}.value,parsed:this.parsed,strict:{set value(b){B(c,vi,b,"f")}}.value,strictCommands:{set value(b){B(u,_i,b,"f")}}.value,strictOptions:{set value(b){B(l,Si,b,"f")}}.value,completionCommand:{set value(b){B(p,Wt,b,"f")}}.value,parseFn:{set value(b){B(f,Yt,b,"f")}}.value,parseContext:{set value(b){B(d,yi,b,"f")}}.value}=h,m(this,W,"f").configObjects=y,m(this,se,"f").unfreeze(),m(this,We,"f").unfreeze(),m(this,et,"f").unfreeze(),m(this,cr,"f").unfreeze()}[rb](t,r){return hi(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[nb].bind(this),getContext:this[ib].bind(this),getHasOutput:this[ob].bind(this),getLoggerInstance:this[sb].bind(this),getParseContext:this[ab].bind(this),getParserConfiguration:this[Oi].bind(this),getUsageConfiguration:this[Xy].bind(this),getUsageInstance:this[cb].bind(this),getValidationInstance:this[ub].bind(this),hasParseCallback:this[Ac].bind(this),isGlobalContext:this[lb].bind(this),postProcess:this[Ei].bind(this),reset:this[Lf].bind(this),runValidation:this[Ff].bind(this),runYargsParserAndExecuteCommands:this[Rs].bind(this),setHasOutput:this[pb].bind(this)}}[nb](){return m(this,et,"f")}[ib](){return m(this,Ts,"f")}[ob](){return m(this,Kt,"f")}[sb](){return m(this,ho,"f")}[ab](){return m(this,yi,"f")||{}}[cb](){return m(this,se,"f")}[ub](){return m(this,We,"f")}[Ac](){return!!m(this,Yt,"f")}[lb](){return m(this,Ec,"f")}[Ei](t,r,n,i){return n||De(t)||(r||(t=this[Wy](t)),(this[Oi]()["parse-positional-numbers"]||this[Oi]()["parse-positional-numbers"]===void 0)&&(t=this[tb](t)),i&&(t=di(t,this,m(this,cr,"f").getMiddleware(),!1))),t}[Lf](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,bi,"f"),Object.keys(m(this,Hr,"f")).reduce((a,c)=>{let u=m(this,Hr,"f")[c].filter(l=>!(l in n));return u.length>0&&(a[c]=u),a},{})),B(this,Hr,{},"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,W,"f")[a]||[]).filter(c=>!n[c])}),s.forEach(a=>{r[a]=xn(m(this,W,"f")[a],c=>!n[c])}),r.envPrefix=m(this,W,"f").envPrefix,B(this,W,r,"f"),B(this,se,m(this,se,"f")?m(this,se,"f").reset(n):Fy(this,m(this,ie,"f")),"f"),B(this,We,m(this,We,"f")?m(this,We,"f").reset(n):zy(this,m(this,se,"f"),m(this,ie,"f")),"f"),B(this,et,m(this,et,"f")?m(this,et,"f").reset():qy(m(this,se,"f"),m(this,We,"f"),m(this,cr,"f"),m(this,ie,"f")),"f"),m(this,sr,"f")||B(this,sr,Vy(this,m(this,se,"f"),m(this,et,"f"),m(this,ie,"f")),"f"),m(this,cr,"f").reset(),B(this,Wt,null,"f"),B(this,ft,"","f"),B(this,wn,null,"f"),B(this,Kt,!1,"f"),this.parsed=!1,this}[fb](t,r){return m(this,ie,"f").path.relative(t,r)}[Rs](t,r,n,i=0,s=!1){let a=!!n||s;t=t||m(this,An,"f"),m(this,W,"f").__=m(this,ie,"f").y18n.__,m(this,W,"f").configuration=this[Oi]();let c=!!m(this,W,"f").configuration["populate--"],u=Object.assign({},m(this,W,"f").configuration,{"populate--":!0}),l=m(this,ie,"f").Parser.detailed(t,Object.assign({},m(this,W,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),p=Object.assign(l.argv,m(this,yi,"f")),f,d=l.aliases,h=!1,y=!1;Object.keys(p).forEach(b=>{b===m(this,ur,"f")&&p[b]?h=!0:b===m(this,Br,"f")&&p[b]&&(y=!0)}),p.$0=this.$0,this.parsed=l,i===0&&m(this,se,"f").clearCachedHelpMessage();try{if(this[Rf](),r)return this[Ei](p,c,!!n,!1);m(this,ur,"f")&&[m(this,ur,"f")].concat(d[m(this,ur,"f")]||[]).filter(C=>C.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),h=!0),B(this,Ec,!1,"f");let b=m(this,et,"f").getCommands(),g=m(this,sr,"f").completionKey in p,P=h||g||s;if(p._.length){if(b.length){let $;for(let C=i||0,T;p._[C]!==void 0;C++)if(T=String(p._[C]),b.includes(T)&&T!==m(this,Wt,"f")){let w=m(this,et,"f").runCommand(T,this,l,C+1,s,h||y||s);return this[Ei](w,c,!!n,!1)}else if(!$&&T!==m(this,Wt,"f")){$=T;break}!m(this,et,"f").hasDefaultCommand()&&m(this,$c,"f")&&$&&!P&&m(this,We,"f").recommendCommands($,b)}m(this,Wt,"f")&&p._.includes(m(this,Wt,"f"))&&!g&&(m(this,ar,"f")&&$n(!0),this.showCompletionScript(),this.exit(0))}if(m(this,et,"f").hasDefaultCommand()&&!P){let $=m(this,et,"f").runCommand(null,this,l,0,s,h||y||s);return this[Ei]($,c,!!n,!1)}if(g){m(this,ar,"f")&&$n(!0),t=[].concat(t);let $=t.slice(t.indexOf(`--${m(this,sr,"f").completionKey}`)+1);return m(this,sr,"f").getCompletion($,(C,T)=>{if(C)throw new qe(C.message);(T||[]).forEach(w=>{m(this,ho,"f").log(w)}),this.exit(0)}),this[Ei](p,!c,!!n,!1)}if(m(this,Kt,"f")||(h?(m(this,ar,"f")&&$n(!0),a=!0,this.showHelp("log"),this.exit(0)):y&&(m(this,ar,"f")&&$n(!0),a=!0,m(this,se,"f").showVersion("log"),this.exit(0))),!a&&m(this,W,"f").skipValidation.length>0&&(a=Object.keys(p).some($=>m(this,W,"f").skipValidation.indexOf($)>=0&&p[$]===!0)),!a){if(l.error)throw new qe(l.error.message);if(!g){let $=this[Ff](d,{},l.error);n||(f=di(p,this,m(this,cr,"f").getMiddleware(),!0)),f=this[rb]($,f??p),De(f)&&!n&&(f=f.then(()=>di(p,this,m(this,cr,"f").getMiddleware(),!1)))}}}catch(b){if(b instanceof qe)m(this,se,"f").fail(b.message,b);else throw b}return this[Ei](f??p,c,!!n,!0)}[Ff](t,r,n,i){let s={...this.getDemandedOptions()};return a=>{if(n)throw new qe(n.message);m(this,We,"f").nonOptionCount(a),m(this,We,"f").requiredArguments(a,s);let c=!1;m(this,_i,"f")&&(c=m(this,We,"f").unknownCommands(a)),m(this,vi,"f")&&!c?m(this,We,"f").unknownArguments(a,t,r,!!i):m(this,Si,"f")&&m(this,We,"f").unknownArguments(a,t,{},!1,!1),m(this,We,"f").limitedChoices(a),m(this,We,"f").implications(a),m(this,We,"f").conflicting(a)}}[pb](){B(this,Kt,!0,"f")}[Pi](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}};o(Bf,"YargsInstance");var Hf=Bf;function Dy(e){return!!e&&typeof e.getInternalMethods=="function"}o(Dy,"isYargsInstance");var iw=db(Sf),hb=iw;var mb=o((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),gb=o((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),yb=o((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),Ue={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]}},n6=Object.keys(Ue.modifier),ow=Object.keys(Ue.color),sw=Object.keys(Ue.bgColor),i6=[...ow,...sw];function aw(){let e=new Map;for(let[t,r]of Object.entries(Ue)){for(let[n,i]of Object.entries(r))Ue[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=Ue[n],e.set(i[0],i[1]);Object.defineProperty(Ue,t,{value:r,enumerable:!1})}return Object.defineProperty(Ue,"codes",{value:e,enumerable:!1}),Ue.color.close="\x1B[39m",Ue.bgColor.close="\x1B[49m",Ue.color.ansi=mb(),Ue.color.ansi256=gb(),Ue.color.ansi16m=yb(),Ue.bgColor.ansi=mb(10),Ue.bgColor.ansi256=gb(10),Ue.bgColor.ansi16m=yb(10),Object.defineProperties(Ue,{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=>Ue.rgbToAnsi256(...Ue.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)=>Ue.ansi256ToAnsi(Ue.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:o(t=>Ue.ansi256ToAnsi(Ue.hexToAnsi256(t)),"value"),enumerable:!1}}),Ue}o(aw,"assembleStyles");var cw=aw(),Pr=cw;var Cc=at(require("process"),1),vb=at(require("os"),1),Vf=at(require("tty"),1);function lr(e,t=globalThis.Deno?globalThis.Deno.args:Cc.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(lr,"hasFlag");var{env:ze}=Cc.default,Ic;lr("no-color")||lr("no-colors")||lr("color=false")||lr("color=never")?Ic=0:(lr("color")||lr("colors")||lr("color=true")||lr("color=always"))&&(Ic=1);function uw(){if("FORCE_COLOR"in ze)return ze.FORCE_COLOR==="true"?1:ze.FORCE_COLOR==="false"?0:ze.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ze.FORCE_COLOR,10),3)}o(uw,"envForceColor");function lw(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}o(lw,"translateLevel");function fw(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=uw();n!==void 0&&(Ic=n);let i=r?Ic:n;if(i===0)return 0;if(r){if(lr("color=16m")||lr("color=full")||lr("color=truecolor"))return 3;if(lr("color=256"))return 2}if("TF_BUILD"in ze&&"AGENT_NAME"in ze)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(ze.TERM==="dumb")return s;if(Cc.default.platform==="win32"){let a=vb.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in ze)return"GITHUB_ACTIONS"in ze||"GITEA_ACTIONS"in ze?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in ze)||ze.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in ze)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ze.TEAMCITY_VERSION)?1:0;if(ze.COLORTERM==="truecolor"||ze.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in ze){let a=Number.parseInt((ze.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ze.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ze.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ze.TERM)||"COLORTERM"in ze?1:s}o(fw,"_supportsColor");function bb(e,t={}){let r=fw(e,{streamIsTTY:e&&e.isTTY,...t});return lw(r)}o(bb,"createSupportsColor");var pw={stdout:bb({isTTY:Vf.default.isatty(1)}),stderr:bb({isTTY:Vf.default.isatty(2)})},_b=pw;function Sb(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(Sb,"stringReplaceAll");function Ob(e,t,r,n){let i=0,s="";do{let a=e[n-1]==="\r";s+=e.slice(i,a?n-1:n)+t+(a?`\r
137
137
  `:`
138
138
  `)+r,i=n+1,n=e.indexOf(`
139
- `,i)}while(n!==-1);return s+=e.slice(i),s}o(Pb,"stringEncaseCRLFWithFirstIndex");var{stdout:xb,stderr:$b}=Ob,Uf=Symbol("GENERATOR"),_o=Symbol("STYLER"),ks=Symbol("IS_EMPTY"),wb=["ansi","ansi","ansi256","ansi16m"],So=Object.create(null),ow=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=xb?xb.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),Zf=class Zf{constructor(t){return Ab(t)}};o(Zf,"Chalk");var Fc=Zf,Ab=o(e=>{let t=o((...r)=>r.join(" "),"chalk");return ow(t,e),Object.setPrototypeOf(t,qs.prototype),t},"chalkFactory");function qs(e){return Ab(e)}o(qs,"createChalk");Object.setPrototypeOf(qs.prototype,Function.prototype);for(let[e,t]of Object.entries(xr))So[e]={get(){let r=Hc(this,zf(t.open,t.close,this[_o]),this[ks]);return Object.defineProperty(this,e,{value:r}),r}};So.visible={get(){let e=Hc(this,this[_o],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Gf=o((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?xr[r].ansi16m(...n):t==="ansi256"?xr[r].ansi256(xr.rgbToAnsi256(...n)):xr[r].ansi(xr.rgbToAnsi(...n)):e==="hex"?Gf("rgb",t,r,...xr.hexToRgb(...n)):xr[r][e](...n),"getModelAnsi"),sw=["rgb","hex","ansi256"];for(let e of sw){So[e]={get(){let{level:r}=this;return function(...n){let i=zf(Gf(e,wb[r],"color",...n),xr.color.close,this[_o]);return Hc(this,i,this[ks])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);So[t]={get(){let{level:r}=this;return function(...n){let i=zf(Gf(e,wb[r],"bgColor",...n),xr.bgColor.close,this[_o]);return Hc(this,i,this[ks])}}}}var aw=Object.defineProperties(()=>{},{...So,level:{enumerable:!0,get(){return this[Uf].level},set(e){this[Uf].level=e}}}),zf=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"),Hc=o((e,t,r)=>{let n=o((...i)=>cw(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,aw),n[Uf]=e,n[_o]=t,n[ks]=r,n},"createBuilder"),cw=o((e,t)=>{if(e.level<=0||!t)return e[ks]?"":t;let r=e[_o];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Eb(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
140
- `);return s!==-1&&(t=Pb(t,i,n,s)),n+t+i},"applyStyle");Object.defineProperties(qs.prototype,So);var f6=qs(),p6=qs({level:$b?$b.level:0});var Vr=new Fc;function Ds(e,t,r){console.log(r!==void 0&&r!==t?`${Vr.yellow(`${e}:`.padEnd(20))}${Vr.magenta(t)}`:`${`${e}:`.padEnd(20)}${t}`)}o(Ds,"logVariable");function pr(e){console.log(`[INFO] ${e}`)}o(pr,"logInfo");function Nn(e){console.log(Vr.green(`[SUCCESS] ${e}`))}o(Nn,"logSuccess");function Ls(e,t){e instanceof Error?(console.log(Vr.red(`[ERROR] ${t||e.message}`)),process.env.VERBOSE&&console.error(e)):console.log(Vr.red(`[ERROR] ${e}`))}o(Ls,"logError");function Bc(e){console.log(Vr.bgYellow(`==== ${e} ====`))}o(Bc,"logBanner");var Ib=yt(require("fs"));function Oo(){return"0.14.9"}o(Oo,"getVersion");var x6=yt(Tb());var Wf=Symbol("options_key");function Oe(e){return(t,r)=>{var n,i;if(e!=null){let s={...Reflect.getMetadata(Wf,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(Wf,s,t)}}}o(Oe,"YargOption");function Rb(e){let t=Reflect.getMetadata(Wf,e.prototype);if(!t)throw new Error(`Options for ${e.name} were not defined`);return t}o(Rb,"getYargsOption");function Vc(e){return async t=>t.options(uw(e)).middleware(async r=>await lw(e,r),!0)}o(Vc,"getBuilder");function uw(e){return Object.entries(Rb(e)).reduce((t,[r,n])=>(t[r]=Object.fromEntries(Object.entries(n).filter(([i])=>!["envAlias","default"].includes(i))),t),{})}o(uw,"getYargsOptions");async function lw(e,t){let r=new e;for(let[n,i]of Object.entries(Rb(e)))r[n]=t[n]??i.default;return r}o(lw,"loadYargsConfig");var Hx=yt(Dm());var aP={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Ambiguous",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I Am a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",424:"Failed Dependency",428:"Precondition Required",429:"Too Many Requests",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"},cP={"invalid-schema":"Invalid OpenAPI Schemas","invalid-operation-id":"Invalid Operation IDs","missing-path-parameter":"Missing Path Parameters","not-allowed-inline-enum":"Not Allowed Inline Enums","not-allowed-circular-schema":"Not Allowed Circular Schemas","missing-acl-condition-property":"Missing x-acl Condition Properties","missing-status-code":"Missing HTTP Status Codes","invalid-status-code":"Invalid HTTP Status Codes","multiple-success-status-codes":"Multiple Success HTTP Status Codes"};var qr={query:"useQuery",infiniteQuery:"useInfiniteQuery",mutation:"useMutation"},uP={bindings:[qr.query,qr.infiniteQuery,qr.mutation],from:"@tanstack/react-query"},Ca={pageParamName:"page"},Ku={pageParamName:"page",totalItemsName:"totalItems",limitParamName:"limit"},Ta="moduleName";var Lm={"Content-Type":"application/json",Accept:"application/json"},Yu="data",Fm="axios",Yn="config",en="AxiosRequestConfig",Qu={defaultImport:Fm,bindings:[en],from:"axios"};var lP=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),Qn=o(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");function we(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(we,"isReferenceObject");function ot(e){return!we(e)}o(ot,"isSchemaObject");function Ju(e){return e.type==="array"}o(Ju,"isArraySchemaObject");function fP(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(oD(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(we(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(fP,"inferRequiredSchema");var oD=o(e=>!we(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var _n=Symbol.for("@ts-pattern/matcher"),sD=Symbol.for("@ts-pattern/isVariadic"),el="@ts-pattern/anonymous-select-key",Hm=o(e=>!!(e&&typeof e=="object"),"r"),Xu=o(e=>e&&!!e[_n],"i"),nn=o((e,t,r)=>{if(Xu(e)){let n=e[_n](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(Hm(e)){if(!Hm(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];Xu(c)&&c[sD]?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)=>nn(l,a[p],r))&&i.every((l,p)=>nn(l,c[p],r))&&(s.length===0||nn(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>nn(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Xu(s=i)&&s[_n]().matcherType==="optional")&&nn(i,t[n],r);var s})}return Object.is(t,e)},"s"),ri=o(e=>{var t,r,n;return Hm(e)?Xu(e)?(t=(r=(n=e[_n]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Na(e,ri):Na(Object.values(e),ri):[]},"o"),Na=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function br(e){return Object.assign(e,{optional:o(()=>aD(e),"optional"),and:o(t=>ze(e,t),"and"),or:o(t=>cD(e,t),"or"),select:o(t=>t===void 0?pP(e):pP(t,e),"select")})}o(br,"u");function aD(e){return br({[_n]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(ri(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:nn(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>ri(e),"getSelectionKeys"),matcherType:"optional"})})}o(aD,"h");function ze(...e){return br({[_n]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>nn(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Na(e,ri),"getSelectionKeys"),matcherType:"and"})})}o(ze,"m");function cD(...e){return br({[_n]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return Na(e,ri).forEach(i=>n(i,void 0)),{matched:e.some(i=>nn(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Na(e,ri),"getSelectionKeys"),matcherType:"or"})})}o(cD,"d");function xe(e){return{[_n]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(xe,"p");function pP(...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 br({[_n]:()=>({match:o(n=>{let i={[t??el]:n};return{matched:r===void 0||nn(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??el].concat(r===void 0?[]:ri(r)),"getSelectionKeys")})})}o(pP,"y");function tn(e){return typeof e=="number"}o(tn,"v");function Jn(e){return typeof e=="string"}o(Jn,"b");function Xn(e){return typeof e=="bigint"}o(Xn,"w");var VU=br(xe(function(e){return!0}));var ei=o(e=>Object.assign(br(e),{startsWith:o(t=>{return ei(ze(e,(r=t,xe(n=>Jn(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return ei(ze(e,(r=t,xe(n=>Jn(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>ei(ze(e,(r=>xe(n=>Jn(n)&&n.length>=r))(t))),"minLength"),length:o(t=>ei(ze(e,(r=>xe(n=>Jn(n)&&n.length===r))(t))),"length"),maxLength:o(t=>ei(ze(e,(r=>xe(n=>Jn(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return ei(ze(e,(r=t,xe(n=>Jn(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return ei(ze(e,(r=t,xe(n=>Jn(n)&&!!n.match(r)))));var r},"regex")}),"j"),UU=ei(xe(Jn)),rn=o(e=>Object.assign(br(e),{between:o((t,r)=>rn(ze(e,((n,i)=>xe(s=>tn(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>rn(ze(e,(r=>xe(n=>tn(n)&&n<r))(t))),"lt"),gt:o(t=>rn(ze(e,(r=>xe(n=>tn(n)&&n>r))(t))),"gt"),lte:o(t=>rn(ze(e,(r=>xe(n=>tn(n)&&n<=r))(t))),"lte"),gte:o(t=>rn(ze(e,(r=>xe(n=>tn(n)&&n>=r))(t))),"gte"),int:o(()=>rn(ze(e,xe(t=>tn(t)&&Number.isInteger(t)))),"int"),finite:o(()=>rn(ze(e,xe(t=>tn(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>rn(ze(e,xe(t=>tn(t)&&t>0))),"positive"),negative:o(()=>rn(ze(e,xe(t=>tn(t)&&t<0))),"negative")}),"x"),GU=rn(xe(tn)),ti=o(e=>Object.assign(br(e),{between:o((t,r)=>ti(ze(e,((n,i)=>xe(s=>Xn(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>ti(ze(e,(r=>xe(n=>Xn(n)&&n<r))(t))),"lt"),gt:o(t=>ti(ze(e,(r=>xe(n=>Xn(n)&&n>r))(t))),"gt"),lte:o(t=>ti(ze(e,(r=>xe(n=>Xn(n)&&n<=r))(t))),"lte"),gte:o(t=>ti(ze(e,(r=>xe(n=>Xn(n)&&n>=r))(t))),"gte"),positive:o(()=>ti(ze(e,xe(t=>Xn(t)&&t>0))),"positive"),negative:o(()=>ti(ze(e,xe(t=>Xn(t)&&t<0))),"negative")}),"A"),zU=ti(xe(Xn)),ZU=br(xe(function(e){return typeof e=="boolean"})),WU=br(xe(function(e){return typeof e=="symbol"})),KU=br(xe(function(e){return e==null})),YU=br(xe(function(e){return e!=null}));var Gm=class Gm extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};o(Gm,"W");var Bm=Gm,Vm={matched:!1,value:void 0};function At(e){return new Um(e,Vm)}o(At,"z");var Ra=class Ra{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=>nn(l,this.input,c))||i&&!i(this.input)?Vm:{matched:!0,value:r(s?el in a?a[el]:a:this.input,this.input)};return new Ra(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Ra(this.input,n?{matched:!0,value:r(this.input,this.input)}:Vm)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Bm(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(Ra,"I");var Um=Ra;var zm=2,dP=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],hP=["query","header","path"],Wi=["get","put","post","delete","options","head","patch","trace"],mP=["string","number","integer","boolean"],ja=["allOf","anyOf","oneOf"];var Te=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),ni=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),gP=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),ht=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),yP=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),Zm=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),bP=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),uD=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"),Wm=o(e=>{let t=e.map(Te).map(vP).map(r=>lD(r)).flat();return uD(t)},"getMostCommonAdjacentCombinationSplit"),vP=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),_P=o(e=>vP(e).join(" "),"camelToSpaceSeparated"),lD=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"),SP=o((e,t)=>{let r=t.replace(/es$|s$/g,""),n=new RegExp(`(${ni(r)}|${Te(r)})[a-z]*(?=$|[A-Z])`,"g");return e.replace(n,"")},"removeWord");var EP=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),Ki=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),as=o(e=>Ki(e).split("/").at(-1),"getSchemaNameByRef");function Ym(e){let t=fD(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return ht(t)}o(Ym,"normalizeString");function PP(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(PP,"wrapWithQuotesIfNeeded");function xP(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(xP,"unwrapQuotesIfNeeded");function fD(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(fD,"prefixStringStartingWithNumberIfNeeded");function Qm(e){let t=e.replaceAll("_","#");return ht(t.replaceAll("-","_")).replaceAll("#","_")}o(Qm,"pathParamToVariableName");var on=o(e=>mP.includes(e),"isPrimitiveType");function $P(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($P,"escapeControlCharacters");function sn(e){return e.includes("application/")&&e.includes("json")||dP.includes(e)||e.includes("text/")}o(sn,"isParamMediaTypeAllowed");function Ma(e){return e>=200&&e<300}o(Ma,"isMainResponseStatus");function tl(e){return!(e>=200&&e<300)}o(tl,"isErrorStatus");function rl(e){return e.startsWith("application/")}o(rl,"isMediaTypeAllowed");var OP=/({\w+})/g,pD=/[^\w\-]+/g;function wP(e){e=Te(gP(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(OP)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(OP,"")}By${Te(r.slice(1,-1))}`}return e.replace(pD,"_")}o(wP,"pathToVariableName");var Km=/{(\b\w+(?:-\w+)*\b)}/g;function AP(e){let t=e.match(Km);return t===null?e.replaceAll(Km,":$1"):(t.forEach(r=>{let n=Qm(r.replaceAll(Km,":$1"));e=e.replaceAll(r,n)}),e)}o(AP,"replaceHyphenatedPath");var IP=o(e=>{let t=e["x-enumNames"],r=Array.isArray(t)&&t.length>0,n=!!e.schema&&ot(e.schema)&&e.schema.type==="string";return r&&n},"isSortingParameterObject"),Yi=o((e,t)=>t.excludePathRegex?new RegExp(t.excludePathRegex).test(e):!1,"isPathExcluded");var Xt=o(e=>e.method==="get","isQuery"),oi=o(e=>e.method!=="get"||!!e.mediaDownload,"isMutation"),cs=o((e,t)=>Xt(e)&&(t??Object.values(Ca)).every(r=>e.parameters.some(n=>n.name===r&&n.type==="Query")),"isInfiniteQuery"),CP=o((e,t,r)=>{let n=r.reduce((i,s)=>[...i,...ii(e,s,{includeOnlyRequiredParams:!0}).map(a=>a.name)],[]);return ii(e,t,{includeOnlyRequiredParams:!0,excludeBodyParam:!0}).filter(i=>n.includes(i.name)).map(i=>i.name)},"getDestructuredVariables");function si(e){return yP(e)}o(si,"formatTag");function ai(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return si(r??t.defaultTag)}o(ai,"getOperationTag");function TP(e,t){return t.excludeTags.some(r=>r.toLowerCase()===e.toLowerCase())}o(TP,"isTagExcluded");var nl={fileName:"acl/app.ability",extension:"ts"},ka="AllAbilities",qa="AppAbilities",il={fileName:"acl/useAclCheck",extension:"ts"},ci="useAclCheck",It={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subjectType:"Subject",subject:"subject"},Jm={bindings:[It.abilityTuple,It.pureAbility,It.forcedSubject,It.subjectType,It.subject],from:"@casl/ability"};var er=o((...e)=>[...new Set(e.flat())],"getUniqueArray");var RP=o(e=>`Use${Te(ht(e.operationName))}Ability`,"getAbilityTypeName"),Da=o(e=>`canUse${Te(ht(e.operationName))}`,"getAbilityFunctionName"),NP=o((e,t)=>`${t.tsNamespaces?`${Be({type:"acl",tag:ui(e,t),options:t})}.`:""}${Da(e)}`,"getImportedAbilityFunctionName"),jP=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),MP=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),ol=o(e=>{var t;return!!((t=La(e))!=null&&t.length)},"hasAbilityConditions"),La=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].conditionsTypes},"getAbilityConditionsTypes"),kP=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].description},"getAbilityDescription"),sl=o(e=>`${Te(e)}${ka}`,"getTagAllAbilitiesName");function _t(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(we(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(ja.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s)(n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))!==!0&&_t(a,{data:r,onSchema:n})}if(i.properties)for(let[s,a]of Object.entries(i.properties))n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})!==!0&&_t(a,t);if(i.additionalProperties&&typeof i.additionalProperties=="object"){if(n({type:"additionalProperties",parentSchema:e,schema:i.additionalProperties,data:r})===!0)return;_t(i.additionalProperties,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;_t(s,t)}}o(_t,"iterateSchema");var an=o((e,t)=>Zm(Te(Ym(e)),t),"getZodSchemaName"),Fa=o((e,t,r)=>Zm(Te(Ym(e)),`${t}${r}`),"getEnumZodSchemaName"),Ct=o(e=>["z.",`${pt.namespace}.`].every(t=>!e.startsWith(t)),"isNamedZodSchema"),qP=o(e=>e.startsWith(Ms),"isEnumZodSchema"),Qi=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),al=o(e=>ht(`${e}_${db}`),"getBodyZodSchemaName"),DP=o((e,t)=>ht(`${e}_${t}${hb}`),"getParamZodSchemaName"),dD=o(e=>ht(`${e}${mb}`),"getMainResponseZodSchemaName"),hD=o((e,t)=>ht(`${e}_${t}_${gb}`),"getErrorResponseZodSchemaName");function cl({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=Qi(t,r,n);return!Ma(i)&&e!=="default"&&tl(i)?hD(s,e):dD(s)}o(cl,"getResponseZodSchemaName");function Ha(e){return["minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","default","example"].filter(n=>e[n]).reduce((n,i)=>[...n,`${Te(_P(i))}: \`${e[i]}\``],[])}o(Ha,"getSchemaDescriptions");var Ba=o((e,t)=>bP(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),LP=o((e,t)=>Ct(t)?`${e.options.tsNamespaces?`${Be({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Ji=o((e,t,r)=>{if(!Ct(t))return t===js?"void":t;let n=e.getTagByZodSchemaName(t);return`${e.options.tsNamespaces&&n!==r?`${Be({type:"models",tag:n,options:e.options})}.`:""}${Ba(t,e.options)}`},"getImportedZodSchemaInferedTypeName");function FP(e){var t;return e.isEnum?"enum":((t=e.schemaObj)==null?void 0:t.type)??"object"}o(FP,"getZodSchemaType");function HP(e){if(e.schemaObj)return[e.schemaObj.description,...Ha(e.schemaObj)].filter(Boolean).join(". ")}o(HP,"getZodSchemaDescription");function BP(e,t,r){var n;if(we(t)){let i=e.getZodSchemaNameByRef(t.$ref);return i?Ji(e,i,r):void 0}if(Ju(t)){if(!we(t.items))return`${((n=t.items)==null?void 0:n.type)??"unknown"}[]`;let i=e.getZodSchemaNameByRef(t.items.$ref);return i?`${Ji(e,i,r)}[]`:void 0}if(ja.some(i=>i in t&&t[i])){let i=t.allOf??t.anyOf??t.oneOf??[];if(i.length>0)return BP(e,i[0],r)}return t.type}o(BP,"getType");function VP(e,t,r){if(!t.schemaObj)return[];let n="[0]",i="[key]",s={},a=o(c=>{var l;if(c.type==="reference")return!0;if(c.type==="composite")return;let u=[...((l=c.data)==null?void 0:l.pathSegments)??[]];if(c.type==="array"?u.push(n):c.type==="property"?u.push(c.propertyName):c.type==="additionalProperties"&&u.push(i),c.schema&&u[u.length-1]!==n){let p=e.resolveObject(c.schema),f=[p.description,...Ha(p)].filter(Boolean),d=u.join(".");s[d]&&"type"in c.schema&&c.schema.type==="object"||(delete s[d],s[d]={type:BP(e,c.schema,r)??"unknown",description:f.join(". ")})}return _t(c.schema,{data:{pathSegments:[...u]},onSchema:a}),!0},"onSchema");return"allOf"in t.schemaObj&&t.schemaObj.allOf&&t.schemaObj.allOf.forEach(c=>{if(we(c)){let u=e.resolveObject(c);_t(u,{data:{pathSegments:[]},onSchema:a})}}),_t(t.schemaObj,{data:{pathSegments:[]},onSchema:a}),s}o(VP,"getZodSchemaPropertyDescriptions");function li({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=ul({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=ul({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>Ba(u,e.options),"getEntityName"),options:e.options});return mD(e.options,a,c)}o(li,"getModelsImports");function UP({tag:e,endpoints:t,options:r}){return ul({type:"endpoints",tag:e,entities:t,getTag:o(n=>ui(n,r),"getTag"),getEntityName:Va,options:r})}o(UP,"getEndpointsImports");function GP({tag:e,endpoints:t,options:r}){return ul({type:"acl",tag:e,entities:t,getTag:o(n=>ui(n,r),"getTag"),getEntityName:Da,options:r})}o(GP,"getAclImports");function zP({tags:e,entityName:t,getAliasEntityName:r,type:n,options:i}){let s=new Map;return e.forEach(a=>{let c=`${t}${r?` as ${r(a)}`:""}`;s.has(a)?i.tsNamespaces||s.get(a).bindings.push(c):s.set(a,{bindings:[i.tsNamespaces?Be({type:n,tag:a,options:i}):c],from:`${cn(i)}${ll({type:n,tag:a,includeTagDir:!0,options:i})}`})}),Array.from(s.values())}o(zP,"getEntityImports");function cn(e){let t=Ff;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${Lf}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${Lf}`,"g"),Ff)),`${t}/`.replace(/\/\//g,"/")}o(cn,"getImportPath");function ul({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))s.tsNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.tsNamespaces?Be({type:e,tag:u,options:s}):i(c)],from:`${l?"./":cn(s)}${ll({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(ul,"getImports");function mD(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.tsNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:er(n.bindings)}))}o(mD,"mergeImports");function Xi({fileName:e,extension:t}){return`${e}.${t}`}o(Xi,"getFileNameWithExtension");function ZP({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${ni(t)}/`:""}${ni(t)}.${i}`:i}o(ZP,"getTagFileNameWithoutExtension");function ll(...e){return ZP(...e)}o(ll,"getTagImportPath");function fl(...e){return`${ZP(...e)}.ts`}o(fl,"getTagFileName");var Be=o(({type:e,tag:t,options:r})=>`${Te(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");function WP(e){return e.standalone?`${cn(e)}${Rc.fileName}`:e.restClientImportPath}o(WP,"getAppRestClientImportPath");function KP(e){return e.standalone?`${cn(e)}${Tc.reactQueryTypes.fileName}`:e.queryTypesImportPath}o(KP,"getQueryTypesImportPath");function YP(e){return`${cn(e)}${Nc.fileName}`}o(YP,"getQueryModulesImportPath");function QP(e){return`${cn(e)}${jc.fileName}`}o(QP,"getMutationEffectsImportPath");function JP(e){return`${cn(e)}${il.fileName}`}o(JP,"getAclCheckImportPath");function pl(e){return`${cn(e)}${Mc.fileName}`}o(pl,"getZodUtilsImportPath");function XP(e){return`${cn(e)}${nl.fileName}`}o(XP,"getAppAbilitiesImportPath");function ex(e){return At(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(ex,"primitiveTypeToTsType");var Va=o(e=>ni(ht(e.operationName)),"getEndpointName");function tx(e,t){return`${t.tsNamespaces?`${Be({type:"endpoints",tag:ui(e,t),options:t})}.`:""}${Va(e)}`}o(tx,"getImportedEndpointName");var rx=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function ui(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return si(r??t.defaultTag)}o(ui,"getEndpointTag");function ii(e,t,r){let n=t.parameters.map(i=>{var a,c,u,l;let s="string";if(Ct(i.zodSchema))s=Ji(e,i.zodSchema);else if((a=i.parameterObject)!=null&&a.schema&&ot(i.parameterObject.schema)){let p=(u=(c=i.parameterObject)==null?void 0:c.schema)==null?void 0:u.type;p&&on(p)&&(s=ex(p))}return{name:Qn(i.name),type:s,paramType:i.type,required:((l=i.parameterObject)==null?void 0:l.required)??!0,parameterObject:i.parameterObject,bodyObject:i.bodyObject}});return r!=null&&r.includeFileParam&&t.mediaUpload&&n.push({name:"file",type:"File",paramType:"Body",required:!0,parameterObject:void 0,bodyObject:void 0}),n.sort((i,s)=>{if(i.required===s.required){let a=["Path","Body","Query","Header"];return a.indexOf(i.paramType)-a.indexOf(s.paramType)}return i.required?-1:1}).filter(i=>(!(r!=null&&r.excludeBodyParam)||i.name!==Yu)&&(!(r!=null&&r.excludePageParam)||i.name!==Ca.pageParamName)&&(!(r!=null&&r.includeOnlyRequiredParams)||i.required)).map(i=>({...i,name:r!=null&&r.replacePageParam&&i.name===Ca.pageParamName?"pageParam":i.name,required:i.required&&(i.paramType==="Path"||!(r!=null&&r.pathParamsRequiredOnly))}))}o(ii,"mapEndpointParamsToFunctionParams");function nx(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=lP(i.name)?i.name:`"${i.name}"`,a=Qn(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==Lm["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==Lm.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=Qn(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(nx,"getEndpointConfig");function ix(e,t){return t.filter(r=>Xt(r)&&r.parameters.filter(n=>{var i;return(i=n.parameterObject)==null?void 0:i.required}).every(n=>e.parameters.some(i=>i.name===n.name))&&r.response===e.response)}o(ix,"getUpdateQueryEndpoints");var Xm=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];function eo(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(eo,"pick");function us(e,t){let r=e.deprecated&&!t.withDeprecatedEndpoints,n=ai(e,t),i=TP(n,t);return r||i}o(us,"isOperationExcluded");function eg({path:e,method:t,operation:r,options:n,tag:i,keepOperationTag:s,keepOperationPrefix:a}){let c=`${t}${wP(e)}`,u=r.operationId?Qn(r.operationId):c;if(n.removeOperationPrefixEndingWith&&a)u=u.split(n.removeOperationPrefixEndingWith).map((p,f)=>f===0?p:Te(p)).join("");else if(n.removeOperationPrefixEndingWith&&!a){let l=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);u=u.replace(l,"")}if(n.tsNamespaces&&!s){let l=SP(u,i);l===""?u=t.toLowerCase():Xm.includes(l)||(u=l)}return Xm.includes(u)?c:u}o(eg,"getOperationName");function Ua({operationsByTag:e,...t}){let{operation:r,options:n}=t,i=n.splitByTags?ai(r,n):n.defaultTag,s=o(a=>{let c=eg({...t,tag:i,keepOperationTag:a});if(e[i].filter(l=>eg({...t,operation:l,tag:i,keepOperationTag:a})===c).length===1)return c},"operationName");return s()??s(!0)??eg({...t,tag:i,keepOperationTag:!0,keepOperationPrefix:!0})}o(Ua,"getUniqueOperationName");function ox(e,t,r){let n=[];for(let i in e.paths){if(Yi(i,r))continue;let s=e.paths[i],a=eo(s,Wi);for(let c in a){let u=a[c];if(!u||us(u,r))continue;let l=Ua({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(ox,"getUniqueOperationNamesWithoutSplitByTags");function sx(e,t){let r={};for(let n in e.paths){if(Yi(n,t))continue;let i=e.paths[n],s=eo(i,Wi);for(let a in s){let c=s[a];if(!c||us(c,t))continue;let u=t.splitByTags?ai(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(sx,"getOperationsByTag");function Ga(e){return{type:"invalid-schema",message:e}}o(Ga,"getInvalidSchemaError");function ax(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(ax,"getInvalidOperationIdError");function cx(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o(cx,"getMissingPathParameterError");function ux(e){return{type:"not-allowed-inline-enum",message:`${e} is missing @IsEnum() and @ApiProperty(enum:, enumName:)`}}o(ux,"getNotAllowedInlineEnumError");function lx(e){return{type:"not-allowed-circular-schema",message:e}}o(lx,"getNotAllowedCircularSchemaError");function fx(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${hl(t,r)}`}}o(fx,"getMissingAclConditionPropertyError");function tg(e,t,r){return{type:"missing-status-code",message:`Missing HTTP status code ${dl(e)} in operation ${hl(t,r)}`}}o(tg,"getMissingStatusCodeError");function px(e,t,r){return{type:"invalid-status-code",message:`Operation ${hl(t,r)} expected HTTP status code ${dl(e.expected)} but received ${dl(e.received)}`}}o(px,"getInvalidStatusCodeError");function dx(e,t,r){return{type:"multiple-success-status-codes",message:`Operation ${hl(t,r)} has multiple success HTTP status codes: ${e.map(dl).join(", ")}`}}o(dx,"getMultipleSuccessStatusCodesError");function hl(e,t){return e.operationId??`${t.method} ${t.path}`}o(hl,"getOperationDescriptor");function dl(e){return`${e} (${aP[e]})`}o(dl,"getStatusCodeDescription");function hx(e){return e.reduce((t,r)=>({...t,[r.type]:[...t[r.type]??[],r.message]}),{})}o(hx,"groupByType");function un({schema:e,meta:t,options:r}){let n=[];At(e.type).with("string",()=>n.push(bD(e))).with("number","integer",()=>n.push(_D(e))).with("array",()=>n.push(SD(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&r.withDescription&&([`
139
+ `,i)}while(n!==-1);return s+=e.slice(i),s}o(Ob,"stringEncaseCRLFWithFirstIndex");var{stdout:Eb,stderr:Pb}=_b,Uf=Symbol("GENERATOR"),yo=Symbol("STYLER"),Ns=Symbol("IS_EMPTY"),xb=["ansi","ansi","ansi256","ansi16m"],bo=Object.create(null),dw=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=Eb?Eb.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),Zf=class Zf{constructor(t){return $b(t)}};o(Zf,"Chalk");var Tc=Zf,$b=o(e=>{let t=o((...r)=>r.join(" "),"chalk");return dw(t,e),Object.setPrototypeOf(t,js.prototype),t},"chalkFactory");function js(e){return $b(e)}o(js,"createChalk");Object.setPrototypeOf(js.prototype,Function.prototype);for(let[e,t]of Object.entries(Pr))bo[e]={get(){let r=Rc(this,zf(t.open,t.close,this[yo]),this[Ns]);return Object.defineProperty(this,e,{value:r}),r}};bo.visible={get(){let e=Rc(this,this[yo],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Gf=o((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"?Gf("rgb",t,r,...Pr.hexToRgb(...n)):Pr[r][e](...n),"getModelAnsi"),hw=["rgb","hex","ansi256"];for(let e of hw){bo[e]={get(){let{level:r}=this;return function(...n){let i=zf(Gf(e,xb[r],"color",...n),Pr.color.close,this[yo]);return Rc(this,i,this[Ns])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);bo[t]={get(){let{level:r}=this;return function(...n){let i=zf(Gf(e,xb[r],"bgColor",...n),Pr.bgColor.close,this[yo]);return Rc(this,i,this[Ns])}}}}var mw=Object.defineProperties(()=>{},{...bo,level:{enumerable:!0,get(){return this[Uf].level},set(e){this[Uf].level=e}}}),zf=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"),Rc=o((e,t,r)=>{let n=o((...i)=>gw(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,mw),n[Uf]=e,n[yo]=t,n[Ns]=r,n},"createBuilder"),gw=o((e,t)=>{if(e.level<=0||!t)return e[Ns]?"":t;let r=e[yo];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Sb(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
140
+ `);return s!==-1&&(t=Ob(t,i,n,s)),n+t+i},"applyStyle");Object.defineProperties(js.prototype,bo);var h6=js(),m6=js({level:Pb?Pb.level:0});var Cn=new Tc;function Wf(e){console.log(e)}o(Wf,"log");function Ft(e){console.log(`[INFO] ${e}`)}o(Ft,"logInfo");function Ms(e){console.log(Cn.green(`[SUCCESS] ${e}`))}o(Ms,"logSuccess");function xi(e,t){e instanceof Error?console.log(Cn.red(`[ERROR] ${t||e.message}`)):console.log(Cn.red(`[ERROR] ${e}`))}o(xi,"logError");function Nc(e){console.log(Cn.bgYellow(`==== ${e} ====`))}o(Nc,"logBanner");var wb=at(require("fs"));function vo(){return"0.15.1"}o(vo,"getVersion");var A6=at(Ib());var Kf=Symbol("options_key");function be(e){return(t,r)=>{var n,i;if(e!=null){let s={...Reflect.getMetadata(Kf,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(Kf,s,t)}}}o(be,"YargOption");function Cb(e){let t=Reflect.getMetadata(Kf,e.prototype);if(!t)throw new Error(`Options for ${e.name} were not defined`);return t}o(Cb,"getYargsOption");function jc(e){return async t=>t.options(yw(e)).middleware(async r=>await bw(e,r),!0)}o(jc,"getBuilder");function yw(e){return Object.entries(Cb(e)).reduce((t,[r,n])=>(t[r]=Object.fromEntries(Object.entries(n).filter(([i])=>!["envAlias","default"].includes(i))),t),{})}o(yw,"getYargsOptions");async function bw(e,t){let r=new e;for(let[n,i]of Object.entries(Cb(e)))r[n]=t[n]??i.default;return r}o(bw,"loadYargsConfig");var Kx=at(Lm());var oP={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Ambiguous",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I Am a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",424:"Failed Dependency",428:"Precondition Required",429:"Too Many Requests",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"},sP={"invalid-schema":"Invalid OpenAPI Schemas","invalid-operation-id":"Invalid Operation IDs","missing-path-parameter":"Missing Path Parameters","not-allowed-inline-enum":"Not Allowed Inline Enums","not-allowed-circular-schema":"Not Allowed Circular Schemas","missing-acl-condition-property":"Missing x-acl Condition Properties","missing-status-code":"Missing HTTP Status Codes","invalid-status-code":"Invalid HTTP Status Codes","multiple-success-status-codes":"Multiple Success HTTP Status Codes"};var kr={query:"useQuery",infiniteQuery:"useInfiniteQuery",mutation:"useMutation"},aP={bindings:[kr.query,kr.infiniteQuery,kr.mutation],from:"@tanstack/react-query"},$a={pageParamName:"page"},Fu={pageParamName:"page",totalItemsName:"totalItems",limitParamName:"limit"},wa="moduleName";var Fm={"Content-Type":"application/json",Accept:"application/json"},Hu="data",Hm="axios",Zn="config",Xr="AxiosRequestConfig",Bu={defaultImport:Hm,bindings:[Xr],from:"axios"};var cP=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),Wn=o(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");function $e(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o($e,"isReferenceObject");function it(e){return!$e(e)}o(it,"isSchemaObject");function Vu(e){return e.type==="array"}o(Vu,"isArraySchemaObject");function uP(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(dD(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($e(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(uP,"inferRequiredSchema");var dD=o(e=>!$e(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var bn=Symbol.for("@ts-pattern/matcher"),hD=Symbol.for("@ts-pattern/isVariadic"),Gu="@ts-pattern/anonymous-select-key",Bm=o(e=>!!(e&&typeof e=="object"),"r"),Uu=o(e=>e&&!!e[bn],"i"),rn=o((e,t,r)=>{if(Uu(e)){let n=e[bn](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(Bm(e)){if(!Bm(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];Uu(c)&&c[hD]?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)=>rn(l,a[p],r))&&i.every((l,p)=>rn(l,c[p],r))&&(s.length===0||rn(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>rn(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Uu(s=i)&&s[bn]().matcherType==="optional")&&rn(i,t[n],r);var s})}return Object.is(t,e)},"s"),Xn=o(e=>{var t,r,n;return Bm(e)?Uu(e)?(t=(r=(n=e[bn]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Ia(e,Xn):Ia(Object.values(e),Xn):[]},"o"),Ia=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function gr(e){return Object.assign(e,{optional:o(()=>mD(e),"optional"),and:o(t=>Ge(e,t),"and"),or:o(t=>gD(e,t),"or"),select:o(t=>t===void 0?lP(e):lP(t,e),"select")})}o(gr,"u");function mD(e){return gr({[bn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(Xn(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:rn(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>Xn(e),"getSelectionKeys"),matcherType:"optional"})})}o(mD,"h");function Ge(...e){return gr({[bn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>rn(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Ia(e,Xn),"getSelectionKeys"),matcherType:"and"})})}o(Ge,"m");function gD(...e){return gr({[bn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return Ia(e,Xn).forEach(i=>n(i,void 0)),{matched:e.some(i=>rn(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Ia(e,Xn),"getSelectionKeys"),matcherType:"or"})})}o(gD,"d");function Pe(e){return{[bn]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(Pe,"p");function lP(...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 gr({[bn]:()=>({match:o(n=>{let i={[t??Gu]:n};return{matched:r===void 0||rn(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??Gu].concat(r===void 0?[]:Xn(r)),"getSelectionKeys")})})}o(lP,"y");function en(e){return typeof e=="number"}o(en,"v");function Kn(e){return typeof e=="string"}o(Kn,"b");function Yn(e){return typeof e=="bigint"}o(Yn,"w");var ZU=gr(Pe(function(e){return!0}));var Qn=o(e=>Object.assign(gr(e),{startsWith:o(t=>{return Qn(Ge(e,(r=t,Pe(n=>Kn(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return Qn(Ge(e,(r=t,Pe(n=>Kn(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>Qn(Ge(e,(r=>Pe(n=>Kn(n)&&n.length>=r))(t))),"minLength"),length:o(t=>Qn(Ge(e,(r=>Pe(n=>Kn(n)&&n.length===r))(t))),"length"),maxLength:o(t=>Qn(Ge(e,(r=>Pe(n=>Kn(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return Qn(Ge(e,(r=t,Pe(n=>Kn(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return Qn(Ge(e,(r=t,Pe(n=>Kn(n)&&!!n.match(r)))));var r},"regex")}),"j"),WU=Qn(Pe(Kn)),tn=o(e=>Object.assign(gr(e),{between:o((t,r)=>tn(Ge(e,((n,i)=>Pe(s=>en(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>tn(Ge(e,(r=>Pe(n=>en(n)&&n<r))(t))),"lt"),gt:o(t=>tn(Ge(e,(r=>Pe(n=>en(n)&&n>r))(t))),"gt"),lte:o(t=>tn(Ge(e,(r=>Pe(n=>en(n)&&n<=r))(t))),"lte"),gte:o(t=>tn(Ge(e,(r=>Pe(n=>en(n)&&n>=r))(t))),"gte"),int:o(()=>tn(Ge(e,Pe(t=>en(t)&&Number.isInteger(t)))),"int"),finite:o(()=>tn(Ge(e,Pe(t=>en(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>tn(Ge(e,Pe(t=>en(t)&&t>0))),"positive"),negative:o(()=>tn(Ge(e,Pe(t=>en(t)&&t<0))),"negative")}),"x"),KU=tn(Pe(en)),Jn=o(e=>Object.assign(gr(e),{between:o((t,r)=>Jn(Ge(e,((n,i)=>Pe(s=>Yn(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Jn(Ge(e,(r=>Pe(n=>Yn(n)&&n<r))(t))),"lt"),gt:o(t=>Jn(Ge(e,(r=>Pe(n=>Yn(n)&&n>r))(t))),"gt"),lte:o(t=>Jn(Ge(e,(r=>Pe(n=>Yn(n)&&n<=r))(t))),"lte"),gte:o(t=>Jn(Ge(e,(r=>Pe(n=>Yn(n)&&n>=r))(t))),"gte"),positive:o(()=>Jn(Ge(e,Pe(t=>Yn(t)&&t>0))),"positive"),negative:o(()=>Jn(Ge(e,Pe(t=>Yn(t)&&t<0))),"negative")}),"A"),YU=Jn(Pe(Yn)),QU=gr(Pe(function(e){return typeof e=="boolean"})),JU=gr(Pe(function(e){return typeof e=="symbol"})),XU=gr(Pe(function(e){return e==null})),eG=gr(Pe(function(e){return e!=null}));var zm=class zm 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(zm,"W");var Vm=zm,Um={matched:!1,value:void 0};function wt(e){return new Gm(e,Um)}o(wt,"z");var Aa=class Aa{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=>rn(l,this.input,c))||i&&!i(this.input)?Um:{matched:!0,value:r(s?Gu in a?a[Gu]:a:this.input,this.input)};return new Aa(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Aa(this.input,n?{matched:!0,value:r(this.input,this.input)}:Um)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Vm(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(Aa,"I");var Gm=Aa;var Zm=2,fP=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],pP=["query","header","path"],Zi=["get","put","post","delete","options","head","patch","trace"],dP=["string","number","integer","boolean"],Ca=["allOf","anyOf","oneOf"];var Te=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),ei=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),hP=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),dt=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),mP=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),Wm=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),gP=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),yD=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"),Km=o(e=>{let t=e.map(Te).map(yP).map(r=>bD(r)).flat();return yD(t)},"getMostCommonAdjacentCombinationSplit"),yP=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),bP=o(e=>yP(e).join(" "),"camelToSpaceSeparated"),bD=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"),vP=o((e,t)=>{let r=t.replace(/es$|s$/g,""),n=new RegExp(`(${ei(r)}|${Te(r)})[a-z]*(?=$|[A-Z])`,"g");return e.replace(n,"")},"removeWord");var SP=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),Wi=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),is=o(e=>Wi(e).split("/").at(-1),"getSchemaNameByRef");function Qm(e){let t=vD(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return dt(t)}o(Qm,"normalizeString");function OP(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(OP,"wrapWithQuotesIfNeeded");function EP(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(EP,"unwrapQuotesIfNeeded");function vD(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(vD,"prefixStringStartingWithNumberIfNeeded");function Jm(e){let t=e.replaceAll("_","#");return dt(t.replaceAll("-","_")).replaceAll("#","_")}o(Jm,"pathParamToVariableName");var nn=o(e=>dP.includes(e),"isPrimitiveType");function PP(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(PP,"escapeControlCharacters");function on(e){return e.includes("application/")&&e.includes("json")||fP.includes(e)||e.includes("text/")}o(on,"isParamMediaTypeAllowed");function Ta(e){return e>=200&&e<300}o(Ta,"isMainResponseStatus");function zu(e){return!(e>=200&&e<300)}o(zu,"isErrorStatus");function Zu(e){return e.startsWith("application/")}o(Zu,"isMediaTypeAllowed");var _P=/({\w+})/g,_D=/[^\w\-]+/g;function xP(e){e=Te(hP(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(_P)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(_P,"")}By${Te(r.slice(1,-1))}`}return e.replace(_D,"_")}o(xP,"pathToVariableName");var Ym=/{(\b\w+(?:-\w+)*\b)}/g;function $P(e){let t=e.match(Ym);return t===null?e.replaceAll(Ym,":$1"):(t.forEach(r=>{let n=Jm(r.replaceAll(Ym,":$1"));e=e.replaceAll(r,n)}),e)}o($P,"replaceHyphenatedPath");var wP=o(e=>{let t=e["x-enumNames"],r=Array.isArray(t)&&t.length>0,n=!!e.schema&&it(e.schema)&&e.schema.type==="string";return r&&n},"isSortingParameterObject"),Ki=o((e,t)=>t.excludePathRegex?new RegExp(t.excludePathRegex).test(e):!1,"isPathExcluded");var Xt=o(e=>e.method==="get","isQuery"),ri=o(e=>e.method!=="get"||!!e.mediaDownload,"isMutation"),os=o((e,t)=>Xt(e)&&(t??Object.values($a)).every(r=>e.parameters.some(n=>n.name===r&&n.type==="Query")),"isInfiniteQuery"),AP=o((e,t,r)=>{let n=r.reduce((i,s)=>[...i,...ti(e,s,{includeOnlyRequiredParams:!0}).map(a=>a.name)],[]);return ti(e,t,{includeOnlyRequiredParams:!0,excludeBodyParam:!0}).filter(i=>n.includes(i.name)).map(i=>i.name)},"getDestructuredVariables");function ni(e){return mP(e)}o(ni,"formatTag");function ii(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return ni(r??t.defaultTag)}o(ii,"getOperationTag");function IP(e,t){return t.excludeTags.some(r=>r.toLowerCase()===e.toLowerCase())}o(IP,"isTagExcluded");var Wu={fileName:"acl/app.ability",extension:"ts"},Ra="AllAbilities",Na="AppAbilities",Ku={fileName:"acl/useAclCheck",extension:"ts"},oi="useAclCheck",At={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subjectType:"Subject",subject:"subject"},Xm={bindings:[At.abilityTuple,At.pureAbility,At.forcedSubject,At.subjectType,At.subject],from:"@casl/ability"};var ja="AppRestClient",Yu={query:"AppQueryOptions",infiniteQuery:"AppInfiniteQueryOptions",mutation:"AppMutationOptions"},eg="src/data",tg="@/data",yr={appRestClient:{template:"@/util/rest/clients/app-rest-client",monorepoTemplate:"@/clients/app-rest-client"},queryTypes:{template:"@/types/react-query",monorepoTemplate:"@povio/utils/types/react-query"},errorHandling:{template:"@/util/vendor/error-handling",monorepoTemplate:"@povio/utils/utils/vendor/error-handling"},abilityContext:{template:"@/data/acl/ability.context",monorepoTemplate:"@povio/auth/acl/ability.context"}},si={ErrorHandler:"ErrorHandler",SharedErrorHandler:"SharedErrorHandler"},Qu={bindings:[si.ErrorHandler,si.SharedErrorHandler],from:yr.errorHandling.template},rg="AbilityContext",CP={bindings:[rg],from:yr.abilityContext.template};var Ju={reactQueryTypes:{fileName:"react-query.types",extension:"ts"},restClient:{fileName:"rest-client",extension:"ts"},restInterceptor:{fileName:"rest-interceptor",extension:"ts"}},Xu={fileName:"app-rest-client",extension:"ts"},ng="QueryModule",el={fileName:"queryModules",extension:"ts"},TP={fileName:"queryConfig.context",extension:"tsx"},ss={optionsType:"MutationEffectsOptions",hookName:"useMutationEffects",runFunctionName:"runMutationEffects"},tl={fileName:"useMutationEffects",extension:"ts"},ht={namespace:"ZodUtils",exports:{parse:"parse",sortExp:"sortExp",brand:"brand"}},rl={fileName:"zod.utils",extension:"ts"};var er=o((...e)=>[...new Set(e.flat())],"getUniqueArray");var RP=o(e=>`Use${Te(dt(e.operationName))}Ability`,"getAbilityTypeName"),Ma=o(e=>`canUse${Te(dt(e.operationName))}`,"getAbilityFunctionName"),NP=o((e,t)=>`${t.tsNamespaces?`${He({type:"acl",tag:ai(e,t),options:t})}.`:""}${Ma(e)}`,"getImportedAbilityFunctionName"),jP=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),MP=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),nl=o(e=>{var t;return!!((t=ka(e))!=null&&t.length)},"hasAbilityConditions"),ka=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].conditionsTypes},"getAbilityConditionsTypes"),kP=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].description},"getAbilityDescription"),il=o(e=>`${Te(e)}${Ra}`,"getTagAllAbilitiesName");var qP="Schema",DP="Enum",LP="Body",FP="Param",HP="Response",BP="ErrorResponse",qa="z.void()",ol="z.instanceof(Blob)",Da="z.enum",sl="z.string()",as={bindings:["z"],from:"zod"};function vt(e,t){if(!e)return;let{data:r,onSchema:n}=t;if($e(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(Ca.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s)(n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))!==!0&&vt(a,{data:r,onSchema:n})}if(i.properties)for(let[s,a]of Object.entries(i.properties))n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})!==!0&&vt(a,t);if(i.additionalProperties&&typeof i.additionalProperties=="object"){if(n({type:"additionalProperties",parentSchema:e,schema:i.additionalProperties,data:r})===!0)return;vt(i.additionalProperties,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;vt(s,t)}}o(vt,"iterateSchema");var sn=o((e,t)=>Wm(Te(Qm(e)),t),"getZodSchemaName"),La=o((e,t,r)=>Wm(Te(Qm(e)),`${t}${r}`),"getEnumZodSchemaName"),It=o(e=>["z.",`${ht.namespace}.`].every(t=>!e.startsWith(t)),"isNamedZodSchema"),VP=o(e=>e.startsWith(Da),"isEnumZodSchema"),Yi=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),al=o(e=>dt(`${e}_${LP}`),"getBodyZodSchemaName"),UP=o((e,t)=>dt(`${e}_${t}${FP}`),"getParamZodSchemaName"),SD=o(e=>dt(`${e}${HP}`),"getMainResponseZodSchemaName"),OD=o((e,t)=>dt(`${e}_${t}_${BP}`),"getErrorResponseZodSchemaName");function cl({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=Yi(t,r,n);return!Ta(i)&&e!=="default"&&zu(i)?OD(s,e):SD(s)}o(cl,"getResponseZodSchemaName");function Fa(e){return["minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","default","example"].filter(n=>e[n]).reduce((n,i)=>[...n,`${Te(bP(i))}: \`${e[i]}\``],[])}o(Fa,"getSchemaDescriptions");var Ha=o((e,t)=>gP(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),GP=o((e,t)=>It(t)?`${e.options.tsNamespaces?`${He({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Qi=o((e,t,r)=>{if(!It(t))return t===qa?"void":t;let n=e.getTagByZodSchemaName(t);return`${e.options.tsNamespaces&&n!==r?`${He({type:"models",tag:n,options:e.options})}.`:""}${Ha(t,e.options)}`},"getImportedZodSchemaInferedTypeName");function zP(e){var t;return e.isEnum?"enum":((t=e.schemaObj)==null?void 0:t.type)??"object"}o(zP,"getZodSchemaType");function ZP(e){if(e.schemaObj)return[e.schemaObj.description,...Fa(e.schemaObj)].filter(Boolean).join(". ")}o(ZP,"getZodSchemaDescription");function WP(e,t,r){var n;if($e(t)){let i=e.getZodSchemaNameByRef(t.$ref);return i?Qi(e,i,r):void 0}if(Vu(t)){if(!$e(t.items))return`${((n=t.items)==null?void 0:n.type)??"unknown"}[]`;let i=e.getZodSchemaNameByRef(t.items.$ref);return i?`${Qi(e,i,r)}[]`:void 0}if(Ca.some(i=>i in t&&t[i])){let i=t.allOf??t.anyOf??t.oneOf??[];if(i.length>0)return WP(e,i[0],r)}return t.type}o(WP,"getType");function KP(e,t,r){if(!t.schemaObj)return[];let n="[0]",i="[key]",s={},a=o(c=>{var l;if(c.type==="reference")return!0;if(c.type==="composite")return;let u=[...((l=c.data)==null?void 0:l.pathSegments)??[]];if(c.type==="array"?u.push(n):c.type==="property"?u.push(c.propertyName):c.type==="additionalProperties"&&u.push(i),c.schema&&u[u.length-1]!==n){let p=e.resolveObject(c.schema),f=[p.description,...Fa(p)].filter(Boolean),d=u.join(".");s[d]&&"type"in c.schema&&c.schema.type==="object"||(delete s[d],s[d]={type:WP(e,c.schema,r)??"unknown",description:f.join(". ")})}return vt(c.schema,{data:{pathSegments:[...u]},onSchema:a}),!0},"onSchema");return"allOf"in t.schemaObj&&t.schemaObj.allOf&&t.schemaObj.allOf.forEach(c=>{if($e(c)){let u=e.resolveObject(c);vt(u,{data:{pathSegments:[]},onSchema:a})}}),vt(t.schemaObj,{data:{pathSegments:[]},onSchema:a}),s}o(KP,"getZodSchemaPropertyDescriptions");function ci({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=ul({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=ul({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>Ha(u,e.options),"getEntityName"),options:e.options});return ED(e.options,a,c)}o(ci,"getModelsImports");function YP({tag:e,endpoints:t,options:r}){return ul({type:"endpoints",tag:e,entities:t,getTag:o(n=>ai(n,r),"getTag"),getEntityName:Ba,options:r})}o(YP,"getEndpointsImports");function QP({tag:e,endpoints:t,options:r}){return ul({type:"acl",tag:e,entities:t,getTag:o(n=>ai(n,r),"getTag"),getEntityName:Ma,options:r})}o(QP,"getAclImports");function JP({tags:e,entityName:t,getAliasEntityName:r,type:n,options:i}){let s=new Map;return e.forEach(a=>{let c=`${t}${r?` as ${r(a)}`:""}`;s.has(a)?i.tsNamespaces||s.get(a).bindings.push(c):s.set(a,{bindings:[i.tsNamespaces?He({type:n,tag:a,options:i}):c],from:`${an(i)}${ll({type:n,tag:a,includeTagDir:!0,options:i})}`})}),Array.from(s.values())}o(JP,"getEntityImports");function an(e){let t=tg;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${eg}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${eg}`,"g"),tg)),`${t}/`.replace(/\/\//g,"/")}o(an,"getImportPath");function ul({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))s.tsNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.tsNamespaces?He({type:e,tag:u,options:s}):i(c)],from:`${l?"./":an(s)}${ll({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(ul,"getImports");function ED(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.tsNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:er(n.bindings)}))}o(ED,"mergeImports");function Ji({fileName:e,extension:t}){return`${e}.${t}`}o(Ji,"getFileNameWithExtension");function XP({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${ei(t)}/`:""}${ei(t)}.${i}`:i}o(XP,"getTagFileNameWithoutExtension");function ll(...e){return XP(...e)}o(ll,"getTagImportPath");function fl(...e){return`${XP(...e)}.ts`}o(fl,"getTagFileName");var He=o(({type:e,tag:t,options:r})=>`${Te(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");function ex(e){return e.standalone?`${an(e)}${Xu.fileName}`:e.restClientImportPath}o(ex,"getAppRestClientImportPath");function tx(e){return e.standalone?`${an(e)}${Ju.reactQueryTypes.fileName}`:e.queryTypesImportPath}o(tx,"getQueryTypesImportPath");function rx(e){return`${an(e)}${el.fileName}`}o(rx,"getQueryModulesImportPath");function nx(e){return`${an(e)}${tl.fileName}`}o(nx,"getMutationEffectsImportPath");function ix(e){return`${an(e)}${Ku.fileName}`}o(ix,"getAclCheckImportPath");function pl(e){return`${an(e)}${rl.fileName}`}o(pl,"getZodUtilsImportPath");function ox(e){return`${an(e)}${Wu.fileName}`}o(ox,"getAppAbilitiesImportPath");function sx(e){return wt(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(sx,"primitiveTypeToTsType");var Ba=o(e=>ei(dt(e.operationName)),"getEndpointName");function ax(e,t){return`${t.tsNamespaces?`${He({type:"endpoints",tag:ai(e,t),options:t})}.`:""}${Ba(e)}`}o(ax,"getImportedEndpointName");var cx=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function ai(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return ni(r??t.defaultTag)}o(ai,"getEndpointTag");function ti(e,t,r){let n=t.parameters.map(i=>{var a,c,u,l;let s="string";if(It(i.zodSchema))s=Qi(e,i.zodSchema);else if((a=i.parameterObject)!=null&&a.schema&&it(i.parameterObject.schema)){let p=(u=(c=i.parameterObject)==null?void 0:c.schema)==null?void 0:u.type;p&&nn(p)&&(s=sx(p))}return{name:Wn(i.name),type:s,paramType:i.type,required:((l=i.parameterObject)==null?void 0:l.required)??!0,parameterObject:i.parameterObject,bodyObject:i.bodyObject}});return r!=null&&r.includeFileParam&&t.mediaUpload&&n.push({name:"file",type:"File",paramType:"Body",required:!0,parameterObject:void 0,bodyObject:void 0}),n.sort((i,s)=>{if(i.required===s.required){let a=["Path","Body","Query","Header"];return a.indexOf(i.paramType)-a.indexOf(s.paramType)}return i.required?-1:1}).filter(i=>(!(r!=null&&r.excludeBodyParam)||i.name!==Hu)&&(!(r!=null&&r.excludePageParam)||i.name!==$a.pageParamName)&&(!(r!=null&&r.includeOnlyRequiredParams)||i.required)).map(i=>({...i,name:r!=null&&r.replacePageParam&&i.name===$a.pageParamName?"pageParam":i.name,required:i.required&&(i.paramType==="Path"||!(r!=null&&r.pathParamsRequiredOnly))}))}o(ti,"mapEndpointParamsToFunctionParams");function ux(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=cP(i.name)?i.name:`"${i.name}"`,a=Wn(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==Fm["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==Fm.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=Wn(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(ux,"getEndpointConfig");function lx(e,t){return t.filter(r=>Xt(r)&&r.parameters.filter(n=>{var i;return(i=n.parameterObject)==null?void 0:i.required}).every(n=>e.parameters.some(i=>i.name===n.name))&&r.response===e.response)}o(lx,"getUpdateQueryEndpoints");var ig=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];function Xi(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(Xi,"pick");function dl(e,...t){if(t.length===0)return e;let r=e;for(let n of t)r=fx(r,n);return r}o(dl,"deepMerge");function fx(e,t){if(t==null)return e;if(e==null)return cs(t);if(Array.isArray(e)&&Array.isArray(t))return[...e,...t];if(Va(e)&&Va(t)){let r={};for(let[n,i]of Object.entries(e))r[n]=cs(i);for(let[n,i]of Object.entries(t)){let s=r[n];i!==void 0&&(i===null?r[n]=i:Va(s)&&Va(i)?r[n]=fx(s,i):Array.isArray(s)&&Array.isArray(i)?r[n]=[...s,...i]:r[n]=cs(i))}return r}return cs(t)}o(fx,"mergeTwoValues");function cs(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(t=>cs(t));if(Va(e)){let t={};for(let[r,n]of Object.entries(e))t[r]=cs(n);return t}return e}o(cs,"deepClone");function Va(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&Object.prototype.toString.call(e)==="[object Object]"}o(Va,"isPlainObject");function us(e,t){let r=e.deprecated&&!t.withDeprecatedEndpoints,n=ii(e,t),i=IP(n,t);return r||i}o(us,"isOperationExcluded");function og({path:e,method:t,operation:r,options:n,tag:i,keepOperationTag:s,keepOperationPrefix:a}){let c=`${t}${xP(e)}`,u=r.operationId?Wn(r.operationId):c;if(n.removeOperationPrefixEndingWith&&a)u=u.split(n.removeOperationPrefixEndingWith).map((p,f)=>f===0?p:Te(p)).join("");else if(n.removeOperationPrefixEndingWith&&!a){let l=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);u=u.replace(l,"")}if(n.tsNamespaces&&!s){let l=vP(u,i);l===""?u=t.toLowerCase():ig.includes(l)||(u=l)}return ig.includes(u)?c:u}o(og,"getOperationName");function Ua({operationsByTag:e,...t}){let{operation:r,options:n}=t,i=n.splitByTags?ii(r,n):n.defaultTag,s=o(a=>{let c=og({...t,tag:i,keepOperationTag:a});if(e[i].filter(l=>og({...t,operation:l,tag:i,keepOperationTag:a})===c).length===1)return c},"operationName");return s()??s(!0)??og({...t,tag:i,keepOperationTag:!0,keepOperationPrefix:!0})}o(Ua,"getUniqueOperationName");function px(e,t,r){let n=[];for(let i in e.paths){if(Ki(i,r))continue;let s=e.paths[i],a=Xi(s,Zi);for(let c in a){let u=a[c];if(!u||us(u,r))continue;let l=Ua({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(px,"getUniqueOperationNamesWithoutSplitByTags");function dx(e,t){let r={};for(let n in e.paths){if(Ki(n,t))continue;let i=e.paths[n],s=Xi(i,Zi);for(let a in s){let c=s[a];if(!c||us(c,t))continue;let u=t.splitByTags?ii(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(dx,"getOperationsByTag");function Ga(e){return{type:"invalid-schema",message:e}}o(Ga,"getInvalidSchemaError");function hx(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(hx,"getInvalidOperationIdError");function mx(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o(mx,"getMissingPathParameterError");function gx(e){return{type:"not-allowed-inline-enum",message:`${e} is missing @IsEnum() and @ApiProperty(enum:, enumName:)`}}o(gx,"getNotAllowedInlineEnumError");function yx(e){return{type:"not-allowed-circular-schema",message:e}}o(yx,"getNotAllowedCircularSchemaError");function bx(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${ml(t,r)}`}}o(bx,"getMissingAclConditionPropertyError");function sg(e,t,r){return{type:"missing-status-code",message:`Missing HTTP status code ${hl(e)} in operation ${ml(t,r)}`}}o(sg,"getMissingStatusCodeError");function vx(e,t,r){return{type:"invalid-status-code",message:`Operation ${ml(t,r)} expected HTTP status code ${hl(e.expected)} but received ${hl(e.received)}`}}o(vx,"getInvalidStatusCodeError");function _x(e,t,r){return{type:"multiple-success-status-codes",message:`Operation ${ml(t,r)} has multiple success HTTP status codes: ${e.map(hl).join(", ")}`}}o(_x,"getMultipleSuccessStatusCodesError");function ml(e,t){return e.operationId??`${t.method} ${t.path}`}o(ml,"getOperationDescriptor");function hl(e){return`${e} (${oP[e]})`}o(hl,"getStatusCodeDescription");function Sx(e){return e.reduce((t,r)=>({...t,[r.type]:[...t[r.type]??[],r.message]}),{})}o(Sx,"groupByType");function cn({schema:e,meta:t,options:r}){let n=[];wt(e.type).with("string",()=>n.push($D(e))).with("number","integer",()=>n.push(AD(e))).with("array",()=>n.push(ID(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&r.withDescription&&([`
141
141
  `,"\r",`\r
142
- `].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(gD({schema:e,meta:t,options:r}),r.withDefaultValues!==!1?yD(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(un,"getZodChain");function gD({schema:e,meta:t,options:r}){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable||r.replaceOptionalWithNullish&&(t!=null&&t.isParentPartial)?"nullable()":t!=null&&t.isRequired?"":r.replaceOptionalWithNullish?"nullish()":"optional()"}o(gD,"getZodChainablePresence");function yD(e){return e.default!==void 0?`default(${At(e.type).with("number","integer",()=>xP(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(yD,"getZodChainableDefault");function bD(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(${vD(e.pattern)})`),e.format){let r=At(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(bD,"getZodChainableStringValidations");function vD(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=$P(e),`/${e}/`}o(vD,"formatPatternIfNeeded");function _D(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(_D,"getZodChainableNumberValidations");function SD(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(SD,"getZodChainableArrayValidations");var OD={type:"string",format:"date-time"},ED={type:"string",format:"email"},PD={type:"object",properties:{start:{type:"string",format:"date-time"},end:{type:"string",format:"date-time"}}},xD={type:"object",properties:{html:{type:"string"},json:{type:"object"}}},ls=(i=>(i.datetime="datetime",i.email="email",i.dateRange="dateRange",i.textEditor="textEditor",i))(ls||{}),ml={datetime:OD,email:ED,dateRange:PD,textEditor:xD};function mx(){return Object.values(ls).filter(e=>on(ml[e].type))}o(mx,"getPrimitiveBrands");function gx(){return Object.values(ls).filter(e=>!on(ml[e].type))}o(gx,"getOtherBrands");function fs(e,t){let r=ml[t];return!(e.type!==r.type||r.format&&e.format!==r.format||!Object.entries(r.properties??{}).every(([i,s])=>{var c;let a=(c=e.properties)==null?void 0:c[i];return a&&a.type===s.type&&a.format===s.format}))}o(fs,"matchesBrand");function rg(e,t,r){return r.branded?`${pt.namespace}.${pt.exports.brand}(${e}, "${t}")`:e}o(rg,"wrapWithBrand");var to=o(e=>e.reduce((t,r)=>t+r,0),"sum");function mt(e,t){if(!t)return e;if(we(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?tr("oneOf")+mt(e,{...t,type:t.type[0]}):e+tr("oneOf")+to(t.type.map(r=>mt(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?tr("oneOf")+mt(e,t.oneOf[0]):e+tr("oneOf")+to(t.oneOf.map(r=>mt(0,r)));if(t.anyOf)return t.anyOf.length===1?tr("anyOf")+mt(e,t.anyOf[0]):e+tr("anyOf")+to(t.anyOf.map(r=>mt(0,r)));if(t.allOf)return t.allOf.length===1?tr("allOf")+mt(e,t.allOf[0]):e+tr("allOf")+to(t.allOf.map(r=>mt(0,r)));if(!t.type)return e;if(on(t.type))return t.enum?e+yx(t)+tr("enum")+to(t.enum.map(r=>mt(0,r))):e+yx(t);if(t.type==="array")return t.items?tr("array")+mt(e,t.items):tr("array")+mt(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.properties){let r=Object.values(t.properties);e+=tr("object")+to(r.map(n=>mt(0,n)))}else e+=tr("empty-object");t.additionalProperties&&(typeof t.additionalProperties=="object"?e+=mt(0,t.additionalProperties):e+=mt(1))}return e}o(mt,"getOpenAPISchemaComplexity");function yx(e){return At(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(yx,"complexityByType");function tr(e){return At(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(tr,"complexityByComposite");var ng=class ng{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;we(t)&&(this.ref=t.$ref),i&&(this.enumRef=i),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;enumRef;children=[];meta;getCodeString(t,r){var s,a;if(!this.ref&&this.code)return this.code;if(!this.ref)throw new Error("Zod schema is missing both ref and code");let n=(s=this.resolver)==null?void 0:s.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.tsNamespaces&&i&&i!==t?`${Be({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return mt(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(ng,"ZodSchema");var za=ng;function Qe({schema:e,resolver:t,meta:r,tag:n}){var y;let i=new za(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(we(e))return $D({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=AD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let u=wD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let l=ID({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let p=CD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let f=TD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let d=t.options.allReadonly?".readonly()":"";if(Ju(e))return e.items?i.assign(`z.array(${Qe({...a,schema:e.items}).getCodeString(n,t.options)}${un({schema:e.items,meta:{...s,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(z.any())${d}`);let h=e.type?e.type.toLowerCase():void 0;if(h==="object"||e.properties||e.additionalProperties){let b=e.required&&e.required.length>0,g=t.options.withImplicitRequiredProps?!1:e.properties&&!((y=e.required)!=null&&y.length),P="{}";e.properties&&(P="{ "+Object.entries(e.properties).map(([re,$e])=>{var R;let Ae={...s,isRequired:g?!0:b?(R=e.required)==null?void 0:R.includes(re):t.options.withImplicitRequiredProps,name:re,isParentPartial:g},G=$e;if(we($e)&&t&&(G=t.getSchemaByRef($e.$ref),!G))throw new Error(`Schema ${$e.$ref} not found`);let j=Qe({...a,schema:$e,meta:Ae}).getCodeString(n,t.options)+un({schema:G,meta:Ae,options:t.options});return ot($e)&&mx().forEach(k=>{fs($e,k)&&(j=rg(j,k,t.options))}),[re,j]}).map(([re,$e])=>`${PP(re)}: ${$e}`).join(", ")+" }");let $="";e.additionalProperties&&($=`.catchall(${typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0?Qe({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+un({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options}):"z.any()"})`);let C=g?".partial()":"",T=t.options.strictObjects?".strict()":"",w=`z.object(${P})${C}${T}${$}${d}`;return gx().forEach(te=>{fs(e,te)&&(w=rg(w,te,t.options))}),i.assign(w)}if(h==="any")return i.assign("z.any()");if(!h)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${h}`)}o(Qe,"getZodSchema");function $D({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!we(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=Qe({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o($D,"getReferenceZodSchema");function wD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!ot(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=Qe({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=>ot(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=>Qe({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
144
- `)}return t.assign(`z.union([${e.oneOf.map(c=>Qe({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(wD,"getOneOfZodSchema");function AD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!ot(e)||!Array.isArray(e.type)))return e.type.length===1?Qe({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>Qe({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(AD,"getArrayZodSchema");function ID({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!ot(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=Qe({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>Qe({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(ID,"getAnyOfZodSchema");function CD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!ot(e)||!e.allOf)return;if(e.allOf.length===1){let f=Qe({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}=fP(e),u=a.map(f=>{let d=Qe({schema:f,resolver:r,meta:n,tag:i});return r&&s(f,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(Qe({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(CD,"getAllOfZodSchema");function TD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!ot(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&on(s)){if(e.enum){if(s==="string")return RD({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(At(s).with("integer",()=>"z.number()").with("string",()=>At(e.format).with("binary",()=>kc).otherwise(()=>qc)).otherwise(a=>`z.${a}()`))}}o(TD,"getPrimitiveZodSchema");function RD({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){var l;if(!ot(t))return;let s=ps(t);if(!e.options.extractEnums)return r.assign(s);let a=e.getEnumZodSchemaDataByCode(s);if(a)return((l=r.meta.parent)==null?void 0:l.ref)===e.getRefByZodSchemaName(a.zodSchemaName)?r.assign(a.code):new za({$ref:e.getRefByZodSchemaName(a.zodSchemaName)},e,n).inherit(r).assign(s);let c=e.getExtractedEnumZodSchemaDataByCode(s);if(!c)return r.assign(s);if(!c.zodSchemaName||!c.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let u=e.options.tsNamespaces&&c.tag!==i?`${Be({type:"models",tag:c.tag,options:e.options})}.`:"";return r.assign(`${u}${c.zodSchemaName}`)}o(RD,"getEnumZodSchema");function ps(e){var t;return`${Ms}([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(ps,"getEnumZodSchemaCode");function bx(e){return`${Ms}([${e.map(t=>`"${t}"`).join(", ")}])`}o(bx,"getEnumZodSchemaCodeFromEnumNames");function ds({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let s=t.getCodeString();if((!Ct(s)||t.ref===void 0)&&r){if(t.complexity<zm)return s;let u=an(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 mt(0,n.getSchemaByRef(t.ref))<zm?n.getCodeByZodSchemaName(s):s;if(t.ref)return n.getZodSchemaNameByRef(t.ref);throw new Error(`Invalid ref: ${t.ref}`)}o(ds,"resolveZodSchemaName");function vx({resolver:e,endpoint:t,operation:r}){let n=r["x-acl"];return n==null?void 0:n.map(i=>{let s=Object.keys(i.conditions??{}).reduce((a,c)=>{let u=ND({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(fx(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o(vx,"getEndpointAcl");function ND({resolver:e,endpoint:t,acl:r,name:n}){var f,d,h,y,b,g,P,$,C,T;let i=(d=(f=r[0])==null?void 0:f.conditions)==null?void 0:d[n];if(!i)return;let s=i.replace(/^\$[^.]*\./,"").split("."),a,c,u,l=0,p=t.parameters.find(({name:w})=>w===s[l]);if(p)c=(h=p.parameterObject)==null?void 0:h.required,a=(y=p.parameterObject)==null?void 0:y.schema,u=`${p.name} ${ni(p.type)} parameter`,l++;else{let w=t.parameters.find(({bodyObject:$e})=>!!$e),re=Object.keys(((b=w==null?void 0:w.bodyObject)==null?void 0:b.content)??{}).find(sn);re&&(a=($=(P=(g=w==null?void 0:w.bodyObject)==null?void 0:g.content)==null?void 0:P[re])==null?void 0:$.schema,u=`${Xt(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let w=e.resolveObject(a);a=(C=Object.entries(w.properties??{}).find(([re])=>re===s[l]))==null?void 0:C[1],c=((T=w.required)==null?void 0:T.includes(s[l]))??!1,l++}if(a)return{name:n,type:we(a)?void 0:a.type,zodSchemaName:we(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(ND,"getEndpointAclConditionPropertyType");function _x({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(sn);if(!c)return;let u=(y=(h=s.content)==null?void 0:h[c])==null?void 0:y.schema;if(!u)return;let l=Qe({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),p=e.resolveObject(u),f=ds({schema:p,zodSchema:l,fallbackName:al(Qi(r,n,i)),resolver:e,tag:i}),d=un({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:Yu,type:"Body",description:s.description,zodSchema:f+d,bodyObject:s},requestFormat:c}}o(_x,"getEndpointBody");function Sx({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!hP.includes(s.in))return;let a={};if(s.content){let h=Object.keys(s.content??{}),y=h.find(sn);if(!y)throw new Error(`Unsupported media type for param ${s.name}: ${h.join(", ")}`);let b=s.content[y];if(!b)throw new Error(`No content with media type for param ${s.name}: ${y}`);a=(b==null?void 0:b.schema)??b}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let c=DP(Qi(r,n,i),s.name),u;if(IP(s)){let h=Fa(c,e.options.enumSuffix,e.options.schemaSuffix),y=bx(s["x-enumNames"]);e.setZodSchema(h,y,i),u=h}let l=Qe({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),p=e.resolveObject(a),f=un({schema:p,meta:l.meta,options:e.options}),d=ds({schema:p,zodSchema:l.assign(l.getCodeString(i)+f),fallbackName:c,resolver:e,tag:i});return{name:At(s.in).with("path",()=>Qm(s.name)).otherwise(()=>s.name),type:At(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:d,parameterObject:s,parameterSortingEnumSchemaName:u}}o(Sx,"getEndpointParameter");function Ex(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){if(Yi(c,e.options))continue;let u=e.openApiDoc.paths[c],l=eo(u,Wi),p=Ox(u.parameters??[]);for(let f in l){let d=l[f];if(!d||us(d,e.options))continue;let h=d.operationId&&d.operationId!==Qn(d.operationId);d.operationId&&h&&e.validationErrors.push(ax(d.operationId));let y=Object.entries({...p,...Ox(d.parameters??[])}).map(([,w])=>w),b=Ua({path:c,method:f,operation:d,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(w=>w===b).length<=1,P=ai(d,e.options),$={method:f,path:AP(c),operationName:b,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(si),requestFormat:"application/json",parameters:[],response:"",errors:[],responseStatusCodes:[],mediaUpload:!!d["x-media-upload"],mediaDownload:!!d["x-media-download"]};if(d.requestBody){let w=_x({resolver:e,operation:d,operationName:b,isUniqueOperationName:g,tag:P});w&&($.parameters.push(w.endpointParameter),$.requestFormat=w.requestFormat)}for(let w of y){let te=Sx({resolver:e,param:w,operationName:b,isUniqueOperationName:g,tag:P});te&&$.parameters.push(te)}let C=jD($);C.forEach(w=>{$.parameters.push(w)}),C.length>0&&e.validationErrors.push(cx(C,c));for(let w in d.responses){$.responseStatusCodes.push(w);let te=e.resolveObject(d.responses[w]),$e=Object.keys(te.content??{}).find(rl),Ae,G;if($e?($.responseFormat=$e,Ae=(i=(n=te.content)==null?void 0:n[$e])==null?void 0:i.schema):(G=js,w==="200"&&e.validationErrors.push(px({received:"200",expected:"204"},d,$))),Ae){let j=Qe({schema:Ae,resolver:e,meta:{isRequired:!0},tag:P}),R=e.resolveObject(Ae);G=ds({schema:R,zodSchema:j,fallbackName:j.ref?void 0:cl({statusCode:w,operationName:b,isUniqueOperationName:g,tag:P}),resolver:e,tag:P})+un({schema:R,meta:j.meta,options:e.options})}if(G){let j=Number(w);Ma(j)&&!$.response?($.response=G,$.responseObject=te,$.responseDescription=te.description):w!=="default"&&tl(j)&&$.errors.push({zodSchema:G,status:j,description:te.description})}}$.response||($.response=js);let T=Object.keys(d.responses).map(Number).filter(Ma);T.length>1&&e.validationErrors.push(dx(T.map(String),d,$)),$.acl=vx({resolver:e,endpoint:$,operation:d}),(s=d.security)!=null&&s[0].Authorization&&!$.responseStatusCodes.includes("401")&&e.validationErrors.push(tg("401",d,$)),(a=$.acl)!=null&&a[0]&&!$.responseStatusCodes.includes("403")&&e.validationErrors.push(tg("403",d,$)),t.push($)}}return t}o(Ex,"getEndpointsFromOpenAPIDoc");function Ox(e){return Object.fromEntries((e??[]).map(t=>[we(t)?t.$ref:t.name,t]))}o(Ox,"getParameters");function jD(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=>MD(r))}o(jD,"getMissingPathParameters");function MD(e){return{name:e,type:"Path",zodSchema:qc,parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(MD,"getPathParameterFromName");function Px(e,t){let r=kD(e,t),n=qD(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(Px,"getOpenAPISchemaDependencyGraph");function kD(e,t){let r={},n={};return e.forEach(i=>DD({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(kD,"getRefsDependencyGraph");function qD(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(qD,"getDeepRefsDependencyGraph");function DD({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,_t(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return _t(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(DD,"getSchemaRefsDependencyGraph");function gl(e,t,r){let n=[];return _t(t,{onSchema:o(s=>{s.type==="reference"?n.push(s.schema):we(s.parentSchema)&&(s.type==="property"?e.validationErrors.push(Ga(`${r} has both reference and properties`)):s.type==="additionalProperties"?e.validationErrors.push(Ga(`${r} has both reference and additionalProperties`)):s.type==="array"?e.validationErrors.push(Ga(`${r} is both reference and array schema`)):s.type==="composite"&&e.validationErrors.push(Ga(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(gl,"getSchemaRefObjs");function xx(e,t){return t.map(i=>Ki(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(xx,"getDeepSchemaRefObjs");function $x(e){e.extractedEnumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=Wm(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=Fa(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!ig(e);)LD(e,t+2),t++;if(ig(e)||e.extractedEnumZodSchemaData.filter(n=>!wx(e,n)).forEach(n=>{n.zodSchemaName=Fa(n.meta.zodSchemaNameSegments[0].map(i=>og(Te(i))).join(""),e.options.enumSuffix,e.options.schemaSuffix)}),!ig(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o($x,"resolveExtractedEnumZodSchemaNames");function ig(e){return e.extractedEnumZodSchemaData.every(t=>wx(e,t))}o(ig,"allExtractedEnumZodSchemaNamesAreUnique");function LD(e,t){e.extractedEnumZodSchemaData.forEach(r=>{let n=e.extractedEnumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&FD(n,t)})}o(LD,"additionalResolveExtractedEnumZodSchemaName");function FD(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1){let i=[og(Te(n[0])),r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=i}else{let i=Wm(n),s=[i?og(Te(i)):"",r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=s}})}o(FD,"suffixWithPreviousSegmentName");function wx(e,t){return e.extractedEnumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length===1}o(wx,"isUnique");function og(e){return e.replace(/(Dto|DTO|Response|Request)/g,"")}o(og,"sanitizeName");function Ax(e){e.extractedEnumZodSchemaData.forEach(t=>{let r=er(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(Ax,"resolveExtractedEnumZodSchemaTags");function Za({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&Ix({schema:e,nameSegments:t,...n}),_t(e,{data:{nameSegments:t},onSchema:o(s=>{var c;if(s.type==="reference")return!0;let a=[...((c=s.data)==null?void 0:c.nameSegments)??[]];s.type==="property"&&a.push(s.propertyName),Ix({schema:s.schema,nameSegments:[...a],...n})},"onSchema")})}o(Za,"updateExtractedEnumZodSchemaData");function Ix({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||we(t)||!t.enum)return;let a=ps(t),c=e.extractedEnumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(s),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[]),c.meta.schemas.push(...t?[t]:[])):e.extractedEnumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[],schemas:t?[t]:[]}}),e.validationErrors.push(ux(r?`${as(r)}.${s[s.length-1]}`:n??s.join(".")))}o(Ix,"handleExtractedEnumZodSchemaDataUpdate");function Cx(e){var n;let t={},r={};return Object.entries(((n=e.openApiDoc.components)==null?void 0:n.schemas)??{}).forEach(([i,s])=>{let a=e.getSchemaDataByName(i);if(e.options.excludeRedundantZodSchemas&&(!a||a.deepRefOperations.length===0&&a.tags.length===0))return;let c=an(i,e.options.schemaSuffix);if(t[c])return;let u=e.getTagByZodSchemaName(c),l=e.resolveObject(s);l.enum?r[c]=ps(l):t[c]=Qe({schema:s,resolver:e,tag:u}).getCodeString(u)}),{zodSchemas:t,enumZodSchemas:r}}o(Cx,"getZodSchemasFromOpenAPIDoc");function Tx(e){var r;let t=[];return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=an(n,e.options.schemaSuffix),a=e.resolveObject(i);!t.find(c=>c.zodSchemaName===s)&&a.enum&&t.push({zodSchemaName:s,code:ps(a)})}),t}o(Tx,"getEnumZodSchemasFromOpenAPIDoc");var sg=class sg{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=Px(this.schemaRefs,this.getSchemaByRef.bind(this)),this.enumZodSchemas=Tx(this),this.operationsByTag=sx(t,r),this.operationNames=ox(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];dependencyGraph;enumZodSchemas=[];extractedEnumZodSchemaData=[];operationsByTag={};operationNames=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(EP)}getSchemaByRef(t){return this.docSchemas[as(t)]}getSchemaDataByName(t){return this.schemaData.find(r=>r.name===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(Ki(t)))==null?void 0:n.zodSchemaName)??((i=this.extractedEnumZodSchemaData.find(s=>s.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var u,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.extractedEnumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return si(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=er(i,s),c=a.length===1?a[0]:this.options.defaultTag;return si(c??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(s=>s.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let s={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(s):this.compositeZodSchemaData.push({code:t,zodSchemas:[s]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemas.find(r=>r.code===t)}getExtractedEnumZodSchemaDataByCode(t){return this.extractedEnumZodSchemaData.find(r=>r.code===t)}getExtractedEnumZodSchemaNamesReferencedBySchemaRef(t){return this.extractedEnumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getExtractedEnumZodSchemas(){return this.extractedEnumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return we(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}getCircularSchemaChain(t,r=t,n=[],i=[]){var s,a;return i.includes(r)?[]:(i.push(r),(s=this.dependencyGraph.refsDependencyGraph[r])!=null&&s.has(t)?[...n,r,t]:Array.from(((a=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:a.values())??[]).map(c=>{let u=this.getCircularSchemaChain(t,c,n,i);return u.length>0?[r,...u]:u}).flat())}getBaseUrl(){var r,n;let t=(n=(r=this.openApiDoc.servers)==null?void 0:r[0])==null?void 0:n.url;return this.options.baseUrl===""&&t?t:this.options.baseUrl}getZodSchemaObj(t){let r=this.getRefByZodSchemaName(t);if(r)return this.getSchemaByRef(r);let n=this.getSchemaByCompositeZodSchemaName(t);if(n)return n;let i=this.getExtractedEnumZodSchemaDataByName(t);if(i)return i.meta.schemas.reduce((s,a)=>({...s,...this.resolveObject(a)}),{})}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getExtractedEnumZodSchemaDataByName(t){return this.extractedEnumZodSchemaData.find(({zodSchemaName:r})=>r===t)}initialize(){var t,r,n,i,s;this.schemaRefs.forEach(a=>{let c=Ki(a),u=as(c),l=an(u,this.options.schemaSuffix);this.schemaData.push({ref:c,name:u,zodSchemaName:l,tags:[],deepRefOperations:[]})});for(let a in this.openApiDoc.paths){if(Yi(a,this.options))continue;let c=this.openApiDoc.paths[a],u=eo(c,Wi);for(let l in u){let p=u[l];if(!p||us(p,this.options))continue;let f=ai(p,this.options),d=Ua({path:a,method:l,operation:p,operationsByTag:this.operationsByTag,options:this.options}),h=this.operationNames.filter(P=>P===d).length<=1,y=ht(Qi(d,h,f)),b=[];if((t=p.parameters)==null||t.map(P=>{let $=P,C=$.schema,T=`Operation ${p.operationId??a} parameter ${$.name}`;b.push(...gl(this,C,T)),this.options.extractEnums&&Za({resolver:this,schema:C,schemaInfo:T,tags:[f],nameSegments:[y,$.name],includeSelf:!0})}),p.requestBody){let P=this.resolveObject(p.requestBody),C=Object.keys(P.content??{}).find(sn);if(C){let T=(n=(r=P.content)==null?void 0:r[C])==null?void 0:n.schema,w=`Operation ${p.operationId} request body`;b.push(...gl(this,T,w)),this.options.extractEnums&&Za({resolver:this,schema:T,schemaInfo:w,tags:[f],nameSegments:[al(y)]})}}for(let P in p.responses){let $=this.resolveObject(p.responses[P]),T=Object.keys($.content??{}).find(rl);if(T){let w=(s=(i=$.content)==null?void 0:i[T])==null?void 0:s.schema,te=`Operation ${p.operationId} response body`;b.push(...gl(this,w,te)),this.options.extractEnums&&Za({resolver:this,schema:w,schemaInfo:te,tags:[f],nameSegments:[cl({statusCode:P,operationName:d,isUniqueOperationName:h,tag:f})]})}}xx(this,b).forEach(P=>{let $=this.getSchemaDataByRef(P);$&&($.tags.push(f),$.deepRefOperations.push(p))})}}this.options.extractEnums&&(this.schemaRefs.forEach(a=>{var u;let c=Ki(a);Za({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((u=this.getSchemaDataByRef(c))==null?void 0:u.tags)??[],nameSegments:[as(c)]})}),Ax(this),this.handleDuplicateEnumZodSchemas(),$x(this))}handleDuplicateEnumZodSchemas(){let t=this.enumZodSchemas.map(({code:n})=>n),r=this.enumZodSchemas.filter(({code:n})=>t.includes(n));this.schemaData.forEach(n=>{var a,c;let i=(a=r.find(({zodSchemaName:u})=>u===n.zodSchemaName))==null?void 0:a.code;if(!i)return;let s=this.extractedEnumZodSchemaData.find(({code:u})=>u===i);!s||((c=this.getEnumZodSchemaDataByCode(s.code))==null?void 0:c.zodSchemaName)!==n.zodSchemaName||(n.tags.push(...s.meta.tags??[]),s.meta.schemaRefs.forEach(u=>{this.dependencyGraph.refsDependencyGraph[u]||(this.dependencyGraph.refsDependencyGraph[u]=new Set),this.dependencyGraph.refsDependencyGraph[u].add(n.ref),this.dependencyGraph.deepDependencyGraph[u]||(this.dependencyGraph.deepDependencyGraph[u]=new Set),this.dependencyGraph.deepDependencyGraph[u].add(n.ref)}))}),this.extractedEnumZodSchemaData.splice(0,this.extractedEnumZodSchemaData.length,...this.extractedEnumZodSchemaData.filter(({code:n})=>!t.includes(n)))}};o(sg,"SchemaResolver");var yl=sg;function Rx(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(Rx,"topologicalSort");function Nx(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(Nx,"sortObjKeysFromArray");function jx(e,t){let r=Rx(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return Nx(t,r)}o(jx,"sortZodSchemasByTopology");function Mx(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n);s&&e.isSchemaCircular(s)?(e.validationErrors.push(lx(e.getCircularSchemaChain(s).join(" -> "))),r[an(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[an(n,e.options.schemaSuffix)]=i}),r}o(Mx,"wrapCircularZodSchemas");function bl(e,t){let r=new yl(e,t),n=Ex(r),i=Cx(r),s={...i.zodSchemas,...r.getZodSchemas(),...i.enumZodSchemas};return s=Mx(r,s),s=jx(r,s),s={...r.getExtractedEnumZodSchemas(),...s},{resolver:r,data:HD({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(bl,"getDataFromOpenAPIDoc");function HD({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=ui(s,n);kx(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(kx(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(HD,"splitDataByTags");function kx(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(kx,"getTagElement");var hs=yt(require("fs")),ag=yt(require("path"));function qx(e){return hs.default.readFileSync(ag.default.join(__dirname,`../${e}`),"utf-8")}o(qx,"readFileSync");function cg(e){let t=`src/generators/templates/${e}.hbs`;return qx(t)}o(cg,"readHbsTemplateSync");function Dx(e){let t=`src/assets/${e}`;return qx(t)}o(Dx,"readAssetSync");function Dr({output:e,fileName:t}){return`${e}/${t}`}o(Dr,"getOutputFileName");function BD(e,t){let r=ag.default.dirname(e);hs.default.existsSync(r)||hs.default.mkdirSync(r,{recursive:!0}),hs.default.writeFileSync(e,t,"utf-8")}o(BD,"writeFileWithDirSync");function VD({fileName:e,content:t}){BD(e,t)}o(VD,"writeFileSync");function Lx(e){e.forEach(VD)}o(Lx,"writeGenerateFileData");function Fx(e,t){let r={...Pe,...t},{resolver:n,data:i}=bl(e,r);if(n.validationErrors.length>0){let s=hx(n.validationErrors);Object.entries(s).forEach(([a,c])=>{console.log(`${Vr.red(`${cP[a]}:`)}
145
- ${c.map(u=>`- ${u}`).join(`
142
+ `].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(PD({schema:e,meta:t,options:r}),r.withDefaultValues!==!1?xD(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(cn,"getZodChain");function PD({schema:e,meta:t,options:r}){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable||r.replaceOptionalWithNullish&&(t!=null&&t.isParentPartial)?"nullable()":t!=null&&t.isRequired?"":r.replaceOptionalWithNullish?"nullish()":"optional()"}o(PD,"getZodChainablePresence");function xD(e){return e.default!==void 0?`default(${wt(e.type).with("number","integer",()=>EP(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(xD,"getZodChainableDefault");function $D(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(${wD(e.pattern)})`),e.format){let r=wt(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($D,"getZodChainableStringValidations");function wD(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=PP(e),`/${e}/`}o(wD,"formatPatternIfNeeded");function AD(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(AD,"getZodChainableNumberValidations");function ID(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(ID,"getZodChainableArrayValidations");var CD={type:"string",format:"date-time"},TD={type:"string",format:"email"},RD={type:"object",properties:{start:{type:"string",format:"date-time"},end:{type:"string",format:"date-time"}}},ND={type:"object",properties:{html:{type:"string"},json:{type:"object"}}},ls=(i=>(i.datetime="datetime",i.email="email",i.dateRange="dateRange",i.textEditor="textEditor",i))(ls||{}),gl={datetime:CD,email:TD,dateRange:RD,textEditor:ND};function Ox(){return Object.values(ls).filter(e=>nn(gl[e].type))}o(Ox,"getPrimitiveBrands");function Ex(){return Object.values(ls).filter(e=>!nn(gl[e].type))}o(Ex,"getOtherBrands");function fs(e,t){let r=gl[t];return!(e.type!==r.type||r.format&&e.format!==r.format||!Object.entries(r.properties??{}).every(([i,s])=>{var c;let a=(c=e.properties)==null?void 0:c[i];return a&&a.type===s.type&&a.format===s.format}))}o(fs,"matchesBrand");function ag(e,t,r){return r.branded?`${ht.namespace}.${ht.exports.brand}(${e}, "${t}")`:e}o(ag,"wrapWithBrand");var eo=o(e=>e.reduce((t,r)=>t+r,0),"sum");function mt(e,t){if(!t)return e;if($e(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?tr("oneOf")+mt(e,{...t,type:t.type[0]}):e+tr("oneOf")+eo(t.type.map(r=>mt(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?tr("oneOf")+mt(e,t.oneOf[0]):e+tr("oneOf")+eo(t.oneOf.map(r=>mt(0,r)));if(t.anyOf)return t.anyOf.length===1?tr("anyOf")+mt(e,t.anyOf[0]):e+tr("anyOf")+eo(t.anyOf.map(r=>mt(0,r)));if(t.allOf)return t.allOf.length===1?tr("allOf")+mt(e,t.allOf[0]):e+tr("allOf")+eo(t.allOf.map(r=>mt(0,r)));if(!t.type)return e;if(nn(t.type))return t.enum?e+Px(t)+tr("enum")+eo(t.enum.map(r=>mt(0,r))):e+Px(t);if(t.type==="array")return t.items?tr("array")+mt(e,t.items):tr("array")+mt(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.properties){let r=Object.values(t.properties);e+=tr("object")+eo(r.map(n=>mt(0,n)))}else e+=tr("empty-object");t.additionalProperties&&(typeof t.additionalProperties=="object"?e+=mt(0,t.additionalProperties):e+=mt(1))}return e}o(mt,"getOpenAPISchemaComplexity");function Px(e){return wt(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(Px,"complexityByType");function tr(e){return wt(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(tr,"complexityByComposite");var cg=class cg{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;this.children=[];$e(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)}getCodeString(t,r){var s,a;if(!this.ref&&this.code)return this.code;if(!this.ref)throw new Error("Zod schema is missing both ref and code");let n=(s=this.resolver)==null?void 0:s.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.tsNamespaces&&i&&i!==t?`${He({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return mt(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(cg,"ZodSchema");var za=cg;function Ye({schema:e,resolver:t,meta:r,tag:n}){var y;let i=new za(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($e(e))return jD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=kD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let u=MD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let l=qD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let p=DD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let f=LD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let d=t.options.allReadonly?".readonly()":"";if(Vu(e))return e.items?i.assign(`z.array(${Ye({...a,schema:e.items}).getCodeString(n,t.options)}${cn({schema:e.items,meta:{...s,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(z.any())${d}`);let h=e.type?e.type.toLowerCase():void 0;if(h==="object"||e.properties||e.additionalProperties){let b=e.required&&e.required.length>0,g=t.options.withImplicitRequiredProps?!1:e.properties&&!((y=e.required)!=null&&y.length),P="{}";e.properties&&(P="{ "+Object.entries(e.properties).map(([re,xe])=>{var R;let we={...s,isRequired:g?!0:b?(R=e.required)==null?void 0:R.includes(re):t.options.withImplicitRequiredProps,name:re,isParentPartial:g},G=xe;if($e(xe)&&t&&(G=t.getSchemaByRef(xe.$ref),!G))throw new Error(`Schema ${xe.$ref} not found`);let j=Ye({...a,schema:xe,meta:we}).getCodeString(n,t.options)+cn({schema:G,meta:we,options:t.options});return it(xe)&&Ox().forEach(k=>{fs(xe,k)&&(j=ag(j,k,t.options))}),[re,j]}).map(([re,xe])=>`${OP(re)}: ${xe}`).join(", ")+" }");let $="";e.additionalProperties&&($=`.catchall(${typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0?Ye({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+cn({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options}):"z.any()"})`);let C=g?".partial()":"",T=t.options.strictObjects?".strict()":"",w=`z.object(${P})${C}${T}${$}${d}`;return Ex().forEach(te=>{fs(e,te)&&(w=ag(w,te,t.options))}),i.assign(w)}if(h==="any")return i.assign("z.any()");if(!h)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${h}`)}o(Ye,"getZodSchema");function jD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!$e(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=Ye({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o(jD,"getReferenceZodSchema");function MD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!it(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=Ye({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=>it(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=>Ye({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
144
+ `)}return t.assign(`z.union([${e.oneOf.map(c=>Ye({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(MD,"getOneOfZodSchema");function kD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!it(e)||!Array.isArray(e.type)))return e.type.length===1?Ye({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>Ye({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(kD,"getArrayZodSchema");function qD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!it(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=Ye({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>Ye({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(qD,"getAnyOfZodSchema");function DD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!it(e)||!e.allOf)return;if(e.allOf.length===1){let f=Ye({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}=uP(e),u=a.map(f=>{let d=Ye({schema:f,resolver:r,meta:n,tag:i});return r&&s(f,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(Ye({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(DD,"getAllOfZodSchema");function LD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!it(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&nn(s)){if(e.enum){if(s==="string")return FD({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(wt(s).with("integer",()=>"z.number()").with("string",()=>wt(e.format).with("binary",()=>ol).otherwise(()=>sl)).otherwise(a=>`z.${a}()`))}}o(LD,"getPrimitiveZodSchema");function FD({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){var l;if(!it(t))return;let s=ps(t);if(!e.options.extractEnums)return r.assign(s);let a=e.getEnumZodSchemaDataByCode(s);if(a)return((l=r.meta.parent)==null?void 0:l.ref)===e.getRefByZodSchemaName(a.zodSchemaName)?r.assign(a.code):new za({$ref:e.getRefByZodSchemaName(a.zodSchemaName)},e,n).inherit(r).assign(s);let c=e.getExtractedEnumZodSchemaDataByCode(s);if(!c)return r.assign(s);if(!c.zodSchemaName||!c.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let u=e.options.tsNamespaces&&c.tag!==i?`${He({type:"models",tag:c.tag,options:e.options})}.`:"";return r.assign(`${u}${c.zodSchemaName}`)}o(FD,"getEnumZodSchema");function ps(e){var t;return`${Da}([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(ps,"getEnumZodSchemaCode");function xx(e){return`${Da}([${e.map(t=>`"${t}"`).join(", ")}])`}o(xx,"getEnumZodSchemaCodeFromEnumNames");function ds({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let s=t.getCodeString();if((!It(s)||t.ref===void 0)&&r){if(t.complexity<Zm)return s;let u=sn(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 mt(0,n.getSchemaByRef(t.ref))<Zm?n.getCodeByZodSchemaName(s):s;if(t.ref)return n.getZodSchemaNameByRef(t.ref);throw new Error(`Invalid ref: ${t.ref}`)}o(ds,"resolveZodSchemaName");function $x({resolver:e,endpoint:t,operation:r}){let n=r["x-acl"];return n==null?void 0:n.map(i=>{let s=Object.keys(i.conditions??{}).reduce((a,c)=>{let u=HD({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(bx(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o($x,"getEndpointAcl");function HD({resolver:e,endpoint:t,acl:r,name:n}){var f,d,h,y,b,g,P,$,C,T;let i=(d=(f=r[0])==null?void 0:f.conditions)==null?void 0:d[n];if(!i)return;let s=i.replace(/^\$[^.]*\./,"").split("."),a,c,u,l=0,p=t.parameters.find(({name:w})=>w===s[l]);if(p)c=(h=p.parameterObject)==null?void 0:h.required,a=(y=p.parameterObject)==null?void 0:y.schema,u=`${p.name} ${ei(p.type)} parameter`,l++;else{let w=t.parameters.find(({bodyObject:xe})=>!!xe),re=Object.keys(((b=w==null?void 0:w.bodyObject)==null?void 0:b.content)??{}).find(on);re&&(a=($=(P=(g=w==null?void 0:w.bodyObject)==null?void 0:g.content)==null?void 0:P[re])==null?void 0:$.schema,u=`${Xt(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let w=e.resolveObject(a);a=(C=Object.entries(w.properties??{}).find(([re])=>re===s[l]))==null?void 0:C[1],c=((T=w.required)==null?void 0:T.includes(s[l]))??!1,l++}if(a)return{name:n,type:$e(a)?void 0:a.type,zodSchemaName:$e(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(HD,"getEndpointAclConditionPropertyType");function wx({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(on);if(!c)return;let u=(y=(h=s.content)==null?void 0:h[c])==null?void 0:y.schema;if(!u)return;let l=Ye({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),p=e.resolveObject(u),f=ds({schema:p,zodSchema:l,fallbackName:al(Yi(r,n,i)),resolver:e,tag:i}),d=cn({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:Hu,type:"Body",description:s.description,zodSchema:f+d,bodyObject:s},requestFormat:c}}o(wx,"getEndpointBody");function Ax({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!pP.includes(s.in))return;let a={};if(s.content){let h=Object.keys(s.content??{}),y=h.find(on);if(!y)throw new Error(`Unsupported media type for param ${s.name}: ${h.join(", ")}`);let b=s.content[y];if(!b)throw new Error(`No content with media type for param ${s.name}: ${y}`);a=(b==null?void 0:b.schema)??b}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let c=UP(Yi(r,n,i),s.name),u;if(wP(s)){let h=La(c,e.options.enumSuffix,e.options.schemaSuffix),y=xx(s["x-enumNames"]);e.setZodSchema(h,y,i),u=h}let l=Ye({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),p=e.resolveObject(a),f=cn({schema:p,meta:l.meta,options:e.options}),d=ds({schema:p,zodSchema:l.assign(l.getCodeString(i)+f),fallbackName:c,resolver:e,tag:i});return{name:wt(s.in).with("path",()=>Jm(s.name)).otherwise(()=>s.name),type:wt(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:d,parameterObject:s,parameterSortingEnumSchemaName:u}}o(Ax,"getEndpointParameter");function Cx(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){if(Ki(c,e.options))continue;let u=e.openApiDoc.paths[c],l=Xi(u,Zi),p=Ix(u.parameters??[]);for(let f in l){let d=l[f];if(!d||us(d,e.options))continue;let h=d.operationId&&d.operationId!==Wn(d.operationId);d.operationId&&h&&e.validationErrors.push(hx(d.operationId));let y=Object.entries({...p,...Ix(d.parameters??[])}).map(([,w])=>w),b=Ua({path:c,method:f,operation:d,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(w=>w===b).length<=1,P=ii(d,e.options),$={method:f,path:$P(c),operationName:b,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(ni),requestFormat:"application/json",parameters:[],response:"",errors:[],responseStatusCodes:[],mediaUpload:!!d["x-media-upload"],mediaDownload:!!d["x-media-download"]};if(d.requestBody){let w=wx({resolver:e,operation:d,operationName:b,isUniqueOperationName:g,tag:P});w&&($.parameters.push(w.endpointParameter),$.requestFormat=w.requestFormat)}for(let w of y){let te=Ax({resolver:e,param:w,operationName:b,isUniqueOperationName:g,tag:P});te&&$.parameters.push(te)}let C=BD($);C.forEach(w=>{$.parameters.push(w)}),C.length>0&&e.validationErrors.push(mx(C,c));for(let w in d.responses){$.responseStatusCodes.push(w);let te=e.resolveObject(d.responses[w]),xe=Object.keys(te.content??{}).find(Zu),we,G;if(xe?($.responseFormat=xe,we=(i=(n=te.content)==null?void 0:n[xe])==null?void 0:i.schema):(G=qa,w==="200"&&e.validationErrors.push(vx({received:"200",expected:"204"},d,$))),we){let j=Ye({schema:we,resolver:e,meta:{isRequired:!0},tag:P}),R=e.resolveObject(we);G=ds({schema:R,zodSchema:j,fallbackName:j.ref?void 0:cl({statusCode:w,operationName:b,isUniqueOperationName:g,tag:P}),resolver:e,tag:P})+cn({schema:R,meta:j.meta,options:e.options})}if(G){let j=Number(w);Ta(j)&&!$.response?($.response=G,$.responseObject=te,$.responseDescription=te.description):w!=="default"&&zu(j)&&$.errors.push({zodSchema:G,status:j,description:te.description})}}$.response||($.response=qa);let T=Object.keys(d.responses).map(Number).filter(Ta);T.length>1&&e.validationErrors.push(_x(T.map(String),d,$)),$.acl=$x({resolver:e,endpoint:$,operation:d}),(s=d.security)!=null&&s[0].Authorization&&!$.responseStatusCodes.includes("401")&&e.validationErrors.push(sg("401",d,$)),(a=$.acl)!=null&&a[0]&&!$.responseStatusCodes.includes("403")&&e.validationErrors.push(sg("403",d,$)),t.push($)}}return t}o(Cx,"getEndpointsFromOpenAPIDoc");function Ix(e){return Object.fromEntries((e??[]).map(t=>[$e(t)?t.$ref:t.name,t]))}o(Ix,"getParameters");function BD(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=>VD(r))}o(BD,"getMissingPathParameters");function VD(e){return{name:e,type:"Path",zodSchema:sl,parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(VD,"getPathParameterFromName");function Tx(e,t){let r=UD(e,t),n=GD(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(Tx,"getOpenAPISchemaDependencyGraph");function UD(e,t){let r={},n={};return e.forEach(i=>zD({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(UD,"getRefsDependencyGraph");function GD(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(GD,"getDeepRefsDependencyGraph");function zD({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,vt(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return vt(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(zD,"getSchemaRefsDependencyGraph");function yl(e,t,r){let n=[];return vt(t,{onSchema:o(s=>{s.type==="reference"?n.push(s.schema):$e(s.parentSchema)&&(s.type==="property"?e.validationErrors.push(Ga(`${r} has both reference and properties`)):s.type==="additionalProperties"?e.validationErrors.push(Ga(`${r} has both reference and additionalProperties`)):s.type==="array"?e.validationErrors.push(Ga(`${r} is both reference and array schema`)):s.type==="composite"&&e.validationErrors.push(Ga(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(yl,"getSchemaRefObjs");function Rx(e,t){return t.map(i=>Wi(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(Rx,"getDeepSchemaRefObjs");function Nx(e){e.extractedEnumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=Km(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=La(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!ug(e);)ZD(e,t+2),t++;if(ug(e)||e.extractedEnumZodSchemaData.filter(n=>!jx(e,n)).forEach(n=>{n.zodSchemaName=La(n.meta.zodSchemaNameSegments[0].map(i=>lg(Te(i))).join(""),e.options.enumSuffix,e.options.schemaSuffix)}),!ug(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(Nx,"resolveExtractedEnumZodSchemaNames");function ug(e){return e.extractedEnumZodSchemaData.every(t=>jx(e,t))}o(ug,"allExtractedEnumZodSchemaNamesAreUnique");function ZD(e,t){e.extractedEnumZodSchemaData.forEach(r=>{let n=e.extractedEnumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&WD(n,t)})}o(ZD,"additionalResolveExtractedEnumZodSchemaName");function WD(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1){let i=[lg(Te(n[0])),r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=i}else{let i=Km(n),s=[i?lg(Te(i)):"",r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=s}})}o(WD,"suffixWithPreviousSegmentName");function jx(e,t){return e.extractedEnumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length===1}o(jx,"isUnique");function lg(e){return e.replace(/(Dto|DTO|Response|Request)/g,"")}o(lg,"sanitizeName");function Mx(e){e.extractedEnumZodSchemaData.forEach(t=>{let r=er(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(Mx,"resolveExtractedEnumZodSchemaTags");function Za({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&kx({schema:e,nameSegments:t,...n}),vt(e,{data:{nameSegments:t},onSchema:o(s=>{var c;if(s.type==="reference")return!0;let a=[...((c=s.data)==null?void 0:c.nameSegments)??[]];s.type==="property"&&a.push(s.propertyName),kx({schema:s.schema,nameSegments:[...a],...n})},"onSchema")})}o(Za,"updateExtractedEnumZodSchemaData");function kx({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||$e(t)||!t.enum)return;let a=ps(t),c=e.extractedEnumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(s),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[]),c.meta.schemas.push(...t?[t]:[])):e.extractedEnumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[],schemas:t?[t]:[]}}),e.validationErrors.push(gx(r?`${is(r)}.${s[s.length-1]}`:n??s.join(".")))}o(kx,"handleExtractedEnumZodSchemaDataUpdate");function qx(e){var n;let t={},r={};return Object.entries(((n=e.openApiDoc.components)==null?void 0:n.schemas)??{}).forEach(([i,s])=>{let a=e.getSchemaDataByName(i);if(e.options.excludeRedundantZodSchemas&&(!a||a.deepRefOperations.length===0&&a.tags.length===0))return;let c=sn(i,e.options.schemaSuffix);if(t[c])return;let u=e.getTagByZodSchemaName(c),l=e.resolveObject(s);l.enum?r[c]=ps(l):t[c]=Ye({schema:s,resolver:e,tag:u}).getCodeString(u)}),{zodSchemas:t,enumZodSchemas:r}}o(qx,"getZodSchemasFromOpenAPIDoc");function Dx(e){var r;let t=[];return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=sn(n,e.options.schemaSuffix),a=e.resolveObject(i);!t.find(c=>c.zodSchemaName===s)&&a.enum&&t.push({zodSchemaName:s,code:ps(a)})}),t}o(Dx,"getEnumZodSchemasFromOpenAPIDoc");var fg=class fg{constructor(t,r){this.openApiDoc=t;this.options=r;this.schemaData=[];this.zodSchemaData=[];this.compositeZodSchemaData=[];this.enumZodSchemas=[];this.extractedEnumZodSchemaData=[];this.operationsByTag={};this.operationNames=[];this.validationErrors=[];this.dependencyGraph=Tx(this.schemaRefs,this.getSchemaByRef.bind(this)),this.enumZodSchemas=Dx(this),this.operationsByTag=dx(t,r),this.operationNames=px(t,this.operationsByTag,r),this.initialize()}get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(SP)}getSchemaByRef(t){return this.docSchemas[is(t)]}getSchemaDataByName(t){return this.schemaData.find(r=>r.name===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(Wi(t)))==null?void 0:n.zodSchemaName)??((i=this.extractedEnumZodSchemaData.find(s=>s.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var u,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.extractedEnumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return ni(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=er(i,s),c=a.length===1?a[0]:this.options.defaultTag;return ni(c??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(s=>s.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let s={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(s):this.compositeZodSchemaData.push({code:t,zodSchemas:[s]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemas.find(r=>r.code===t)}getExtractedEnumZodSchemaDataByCode(t){return this.extractedEnumZodSchemaData.find(r=>r.code===t)}getExtractedEnumZodSchemaNamesReferencedBySchemaRef(t){return this.extractedEnumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getExtractedEnumZodSchemas(){return this.extractedEnumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return $e(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}getCircularSchemaChain(t,r=t,n=[],i=[]){var s,a;return i.includes(r)?[]:(i.push(r),(s=this.dependencyGraph.refsDependencyGraph[r])!=null&&s.has(t)?[...n,r,t]:Array.from(((a=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:a.values())??[]).map(c=>{let u=this.getCircularSchemaChain(t,c,n,i);return u.length>0?[r,...u]:u}).flat())}getBaseUrl(){var r,n;let t=(n=(r=this.openApiDoc.servers)==null?void 0:r[0])==null?void 0:n.url;return this.options.baseUrl===""&&t?t:this.options.baseUrl}getZodSchemaObj(t){let r=this.getRefByZodSchemaName(t);if(r)return this.getSchemaByRef(r);let n=this.getSchemaByCompositeZodSchemaName(t);if(n)return n;let i=this.getExtractedEnumZodSchemaDataByName(t);if(i)return i.meta.schemas.reduce((s,a)=>({...s,...this.resolveObject(a)}),{})}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getExtractedEnumZodSchemaDataByName(t){return this.extractedEnumZodSchemaData.find(({zodSchemaName:r})=>r===t)}initialize(){var t,r,n,i,s;this.schemaRefs.forEach(a=>{let c=Wi(a),u=is(c),l=sn(u,this.options.schemaSuffix);this.schemaData.push({ref:c,name:u,zodSchemaName:l,tags:[],deepRefOperations:[]})});for(let a in this.openApiDoc.paths){if(Ki(a,this.options))continue;let c=this.openApiDoc.paths[a],u=Xi(c,Zi);for(let l in u){let p=u[l];if(!p||us(p,this.options))continue;let f=ii(p,this.options),d=Ua({path:a,method:l,operation:p,operationsByTag:this.operationsByTag,options:this.options}),h=this.operationNames.filter(P=>P===d).length<=1,y=dt(Yi(d,h,f)),b=[];if((t=p.parameters)==null||t.map(P=>{let $=P,C=$.schema,T=`Operation ${p.operationId??a} parameter ${$.name}`;b.push(...yl(this,C,T)),this.options.extractEnums&&Za({resolver:this,schema:C,schemaInfo:T,tags:[f],nameSegments:[y,$.name],includeSelf:!0})}),p.requestBody){let P=this.resolveObject(p.requestBody),C=Object.keys(P.content??{}).find(on);if(C){let T=(n=(r=P.content)==null?void 0:r[C])==null?void 0:n.schema,w=`Operation ${p.operationId} request body`;b.push(...yl(this,T,w)),this.options.extractEnums&&Za({resolver:this,schema:T,schemaInfo:w,tags:[f],nameSegments:[al(y)]})}}for(let P in p.responses){let $=this.resolveObject(p.responses[P]),T=Object.keys($.content??{}).find(Zu);if(T){let w=(s=(i=$.content)==null?void 0:i[T])==null?void 0:s.schema,te=`Operation ${p.operationId} response body`;b.push(...yl(this,w,te)),this.options.extractEnums&&Za({resolver:this,schema:w,schemaInfo:te,tags:[f],nameSegments:[cl({statusCode:P,operationName:d,isUniqueOperationName:h,tag:f})]})}}Rx(this,b).forEach(P=>{let $=this.getSchemaDataByRef(P);$&&($.tags.push(f),$.deepRefOperations.push(p))})}}this.options.extractEnums&&(this.schemaRefs.forEach(a=>{var u;let c=Wi(a);Za({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((u=this.getSchemaDataByRef(c))==null?void 0:u.tags)??[],nameSegments:[is(c)]})}),Mx(this),this.handleDuplicateEnumZodSchemas(),Nx(this))}handleDuplicateEnumZodSchemas(){let t=this.enumZodSchemas.map(({code:n})=>n),r=this.enumZodSchemas.filter(({code:n})=>t.includes(n));this.schemaData.forEach(n=>{var a,c;let i=(a=r.find(({zodSchemaName:u})=>u===n.zodSchemaName))==null?void 0:a.code;if(!i)return;let s=this.extractedEnumZodSchemaData.find(({code:u})=>u===i);!s||((c=this.getEnumZodSchemaDataByCode(s.code))==null?void 0:c.zodSchemaName)!==n.zodSchemaName||(n.tags.push(...s.meta.tags??[]),s.meta.schemaRefs.forEach(u=>{this.dependencyGraph.refsDependencyGraph[u]||(this.dependencyGraph.refsDependencyGraph[u]=new Set),this.dependencyGraph.refsDependencyGraph[u].add(n.ref),this.dependencyGraph.deepDependencyGraph[u]||(this.dependencyGraph.deepDependencyGraph[u]=new Set),this.dependencyGraph.deepDependencyGraph[u].add(n.ref)}))}),this.extractedEnumZodSchemaData.splice(0,this.extractedEnumZodSchemaData.length,...this.extractedEnumZodSchemaData.filter(({code:n})=>!t.includes(n)))}};o(fg,"SchemaResolver");var bl=fg;function Lx(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(Lx,"topologicalSort");function Fx(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(Fx,"sortObjKeysFromArray");function Hx(e,t){let r=Lx(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return Fx(t,r)}o(Hx,"sortZodSchemasByTopology");function Bx(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n);s&&e.isSchemaCircular(s)?(e.validationErrors.push(yx(e.getCircularSchemaChain(s).join(" -> "))),r[sn(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[sn(n,e.options.schemaSuffix)]=i}),r}o(Bx,"wrapCircularZodSchemas");function vl(e,t){let r=new bl(e,t),n=Cx(r),i=qx(r),s={...i.zodSchemas,...r.getZodSchemas(),...i.enumZodSchemas};return s=Bx(r,s),s=Hx(r,s),s={...r.getExtractedEnumZodSchemas(),...s},{resolver:r,data:KD({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(vl,"getDataFromOpenAPIDoc");function KD({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=ai(s,n);Vx(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(Vx(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(KD,"splitDataByTags");function Vx(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(Vx,"getTagElement");var hs=at(require("fs")),pg=at(require("path"));function Ux(e){return hs.default.readFileSync(pg.default.join(__dirname,`../${e}`),"utf-8")}o(Ux,"readFileSync");function dg(e){let t=`src/generators/templates/${e}.hbs`;return Ux(t)}o(dg,"readHbsTemplateSync");function Gx(e){let t=`src/assets/${e}`;return Ux(t)}o(Gx,"readAssetSync");function qr({output:e,fileName:t}){return`${e}/${t}`}o(qr,"getOutputFileName");function YD(e,t){let r=pg.default.dirname(e);hs.default.existsSync(r)||hs.default.mkdirSync(r,{recursive:!0}),hs.default.writeFileSync(e,t,"utf-8")}o(YD,"writeFileWithDirSync");function QD({fileName:e,content:t}){YD(e,t)}o(QD,"writeFileSync");function zx(e){e.forEach(QD)}o(zx,"writeGenerateFileData");function Zx(e,t){let{resolver:r,data:n}=vl(e,t);if(r.validationErrors.length>0){let i=Sx(r.validationErrors);Object.entries(i).forEach(([s,a])=>{Wf(`${Cn.red(`${sP[s]}:`)}
145
+ ${a.map(c=>`- ${c}`).join(`
146
146
  `)}
147
- `)})}else{let s=[...i.keys()].reduce((a,c)=>[...a,...UD(c,r)],[]);console.log(`${Vr.green("Outputs:")}
148
- ${s.map(a=>`- ${a}`).join(`
147
+ `)})}else{let i=[...n.keys()].reduce((s,a)=>[...s,...JD(a,t)],[]);Wf(`${Cn.green("Outputs:")}
148
+ ${i.map(s=>`- ${s}`).join(`
149
149
  `)}
150
- `)}return n.validationErrors}o(Fx,"checkOpenAPIDoc");function UD(e,t){return["models","endpoints","queries"].map(r=>Dr({output:t.output,fileName:fl({tag:e,type:r,options:t})}))}o(UD,"getOutputFileNames");async function Bx({input:e,excludeTags:t,verbose:r,...n}){let i=Date.now();r&&pr("Parsing OpenAPI spec...");let s=await Hx.default.bundle(e);r&&Nn("Parsing finished."),r&&pr("Running check...");let a=Fx(s,{input:e,excludeTags:t.split(","),...n});if(r&&pr(`TIME: ${Date.now()-i}ms`),a.length===0)Nn("Check finished.");else throw new Error(`Check finished. Found ${a.length} issues.`)}o(Bx,"check");var ln=class ln{input;splitByTags;defaultTag;excludeTags;excludePathRegex;excludeRedundantZodSchemas;verbose};o(ln,"CheckOptions"),Se([Oe({envAlias:"input",demandOption:!0})],ln.prototype,"input",2),Se([Oe({envAlias:"splitByTags",default:Pe.splitByTags,type:"boolean"})],ln.prototype,"splitByTags",2),Se([Oe({envAlias:"defaultTag",default:Pe.defaultTag})],ln.prototype,"defaultTag",2),Se([Oe({envAlias:"excludeTags",default:Pe.excludeTags.join(",")})],ln.prototype,"excludeTags",2),Se([Oe({envAlias:"excludePathRegex",default:Pe.excludePathRegex})],ln.prototype,"excludePathRegex",2),Se([Oe({envAlias:"excludeRedundantZodSchemas",default:Pe.excludeRedundantZodSchemas,type:"boolean"})],ln.prototype,"excludeRedundantZodSchemas",2),Se([Oe({envAlias:"verbose",default:!1,type:"boolean"})],ln.prototype,"verbose",2);var ug=ln,Vx={command:"check",describe:"Check OpenAPI spec",builder:Vc(ug),handler:o(async e=>{let t=await e;return t.verbose&&(Bc(`OpenAPI CodeGen ${Oo()}`),Ds("input",t.input)),Bx(t)},"handler")};var a2=yt(Dm()),c2=require("child_process");var ty=yt(xn());var dn=yt(xn());function j$(e){k8(),q8(),D8(e.options),L8(),F8(),H8(),B8(),V8(),U8()}o(j$,"registerAclHbsHelpers");function k8(){dn.default.registerHelper("abilityTypeName",RP)}o(k8,"registerAbilityTypeNameHelper");function q8(){dn.default.registerHelper("abilityFunctionName",Da)}o(q8,"registerAbilityFunctionNameHelper");function D8(e){dn.default.registerHelper("importedAbilityFunctionName",t=>NP(t,e))}o(D8,"registerImportedAbilityFunctionNameHelper");function L8(){dn.default.registerHelper("ablityAction",jP)}o(L8,"registerAbilityActionHelper");function F8(){dn.default.registerHelper("ablitySubject",MP)}o(F8,"registerAbilitySubjectHelper");function H8(){dn.default.registerHelper("hasAbilityConditions",ol)}o(H8,"registerHasAbilityConditionsHelper");function B8(){dn.default.registerHelper("abilityConditionsTypes",La)}o(B8,"registerAbilityConditionsTypesHelper");function V8(){dn.default.registerHelper("abilityDescription",kP)}o(V8,"registerAbilityDescriptionHelper");function U8(){dn.default.registerHelper("tagAllAbilitiesName",sl)}o(U8,"registerTagAllAbilitiesNameHelper");var Ps=yt(xn());function M$(){G8(),z8(),Z8(),W8(),K8()}o(M$,"registerCommonHbsHelpers");function G8(){Ps.default.registerHelper("isEqual",(e,t)=>e===t)}o(G8,"registerIsEqualHelper");function z8(){Ps.default.registerHelper("commaSeparated",e=>e.join(", "))}o(z8,"registerCommaSeparatedListHelper");function Z8(){Ps.default.registerHelper("addAsteriskAfterNewLine",e=>e.replace(/\n/g,`
151
- *`))}o(Z8,"registerAddAsteriskAfterNewLineHelper");function W8(){Ps.default.registerHelper("jsonStringify",e=>JSON.stringify(e,null,2))}o(W8,"registerJsonStringifyHelper");function K8(){Ps.default.registerHelper("capitalize",Te)}o(K8,"registerCapitalizeHelper");var di=yt(xn());function k$(e){Y8(),Q8(e.options),eF(e),J8(),X8(),tF(e),rF()}o(k$,"registerEndpointsHbsHelpers");function Y8(){di.default.registerHelper("endpointName",Va)}o(Y8,"registerEndpointNameHelper");function Q8(e){di.default.registerHelper("importedEndpointName",t=>tx(t,e))}o(Q8,"registerImportedEndpointNameHelper");function J8(){di.default.registerHelper("endpointPath",rx)}o(J8,"registerEndpointPathHelper");function X8(){di.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(X8,"registerEndpointBodyHelper");function eF(e){di.default.registerHelper("endpointParams",(t,r)=>ii(e,t,r.hash))}o(eF,"registerEndpointParamsHelper");function tF(e){di.default.registerHelper("endpointArgs",(t,r)=>ii(e,t,r.hash).map(n=>n.name).join(", "))}o(tF,"registerEndpointArgsHelper");function rF(){di.default.registerHelper("endpointParamDescription",e=>{var s,a,c,u,l;let t=[`${e.paramType} parameter`],r=((s=e.parameterObject)==null?void 0:s.description)||((a=e.bodyObject)==null?void 0:a.description);r&&t.push(r);let n,i;if((c=e.parameterObject)!=null&&c.schema&&ot(e.parameterObject.schema)&&(n=(u=e.parameterObject)==null?void 0:u.schema),(l=e.bodyObject)!=null&&l.content){let f=Object.keys(e.bodyObject.content??{}).find(sn);f&&(i=e.bodyObject.content[f],i.schema&&ot(i.schema)&&(n=i.schema))}if(n){let p=Ha(n);t.push(...p)}return i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(rF,"registerEndpointParamDescriptionHelper");var q$=yt(xn());function D$(){nF()}o(D$,"registerImportsHbsHelpers");function nF(){q$.default.registerHelper("importNames",(e,t)=>[...t?[t]:[],...e?[`{ ${e.join(", ")} }`]:[]].join(", "))}o(nF,"registerBindingsHelper");var qt=yt(xn());function L$(e){iF(),oF(),sF(),aF(e),cF(),uF(e),lF(e),fF(e),pF(e),dF(e),hF(),mF(),gF(),yF()}o(L$,"registerPartialsHbsHelpers");function iF(){qt.default.registerHelper("genModelJsDocs",(e,t,r)=>Dt("model-js-docs")({name:e,zodSchema:t,tag:r}))}o(iF,"registerGenerateModelJsDocsHelper");function oF(){qt.default.registerHelper("genImport",e=>Dt("import")({import:e}))}o(oF,"registerImportHelper");function sF(){qt.default.registerHelper("genEndpointParams",(e,t)=>Dt("endpoint-params")({endpoint:e,options:t}))}o(sF,"registerGenerateEndpointParamsHelper");function aF(e){qt.default.registerHelper("genEndpointConfig",t=>{let r=nx(t),n=e.options.axiosRequestConfig;return Object.keys(r).length===0?n?Yn:"":Dt("endpoint-config")({endpointConfig:r,hasAxiosRequestConfig:n,hasBlobResponse:t.response===kc,hasFileDownload:t.mediaDownload,axiosRequestConfigName:Yn,generateParse:e.options.parseRequestParams})})}o(aF,"registerGenerateEndpointConfigHelper");function cF(){qt.default.registerHelper("genEndpointParamParse",(e,t)=>{var r;return Dt("endpoint-param-parse")({param:e,paramName:t,isQuery:e.type==="Query",zodUtilsNamespace:pt.namespace,parse:pt.exports.parse,sortExp:pt.exports.sortExp,addOptional:!((r=e.parameterObject??e.bodyObject)!=null&&r.required)&&(e.parameterSortingEnumSchemaName||Ct(e.zodSchema))})})}o(cF,"registerGenerateEndpointParamParseHelper");function uF(e){qt.default.registerHelper("genQueryKeys",t=>t.length===0?"":Dt("query-keys")({queryEndpoints:t,queriesModuleName:Ta,generateInfiniteQueries:e.options.infiniteQueries}))}o(uF,"registerGenerateQueryKeysHelper");function lF(e){qt.default.registerHelper("genQuery",t=>{if(!Xt(t))return;let r=e.options.axiosRequestConfig,n=e.options.checkAcl&&t.acl;return Dt("query-use-query")({endpoint:t,queryHook:qr.query,hasQueryFn:ii(e,t).length>0||r||n,hasQueryFnBody:n,hasAxiosRequestConfig:r,axiosRequestConfigName:Yn,axiosRequestConfigType:en,hasAclCheck:n,aclCheckHook:ci})})}o(lF,"registerGenerateQueryHelper");function fF(e){qt.default.registerHelper("genMutation",(t,r)=>{if(!oi(t))return;let n=ix(t,r),i=CP(e,t,n),s=e.options.checkAcl&&t.acl;return Dt("query-use-mutation")({endpoint:t,queryHook:qr.mutation,queriesModuleName:Ta,hasAxiosRequestConfig:e.options.axiosRequestConfig,hasMutationFnBody:t.mediaUpload||s,axiosRequestConfigName:Yn,axiosRequestConfigType:en,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:bo.optionsType,updateQueryEndpoints:n,destructuredVariables:i,hasAclCheck:s,aclCheckHook:ci})})}o(fF,"registerGenerateMutationHelper");function pF(e){qt.default.registerHelper("genInfiniteQuery",t=>{if(!e.options.infiniteQueries||!cs(t))return;let r=e.options.checkAcl&&t.acl;return Dt("query-use-infinite-query")({endpoint:t,infiniteQueryHook:qr.infiniteQuery,hasQueryFnBody:r,pageParamName:Ku.pageParamName,totalItemsName:Ku.totalItemsName,limitParamName:Ku.limitParamName,hasAxiosRequestConfig:e.options.axiosRequestConfig,axiosRequestConfigName:Yn,axiosRequestConfigType:en,hasAclCheck:r,aclCheckHook:ci})})}o(pF,"registerGenerateInfiniteQueryHelper");function dF(e){qt.default.registerHelper("genQueryJsDocs",(t,r)=>Dt("query-js-docs")({endpoint:t,query:r.hash.query,mutation:r.hash.mutation,infiniteQuery:r.hash.infiniteQuery,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:bo.optionsType}))}o(dF,"registerGenerateQueryJsDocsHelper");function hF(){qt.default.registerHelper("genCaslAbilityType",e=>Dt("casl-ability-type")({endpoint:e,abilityTupleType:It.abilityTuple}))}o(hF,"registerGenerateCaslAbilityTypeHelper");function mF(){qt.default.registerHelper("genCaslAbilityFunction",e=>Dt("casl-ability-function")({endpoint:e}))}o(mF,"registerGenerateCaslAbilityFunctionHelper");function gF(){qt.default.registerHelper("genCaslAbilityQuery",e=>Dt("casl-ability-query")({endpoint:e}))}o(gF,"registerGenerateCaslAbilityQueryHelper");function yF(){qt.default.registerHelper("genAclCheckCall",e=>{var i;let t=(i=La(e))==null?void 0:i.map(s=>s.name),r=e.parameters.map(s=>s.name),n=t==null?void 0:t.every(s=>r.includes(s));return Dt("acl-check-call")({endpoint:e,generateAclCheckParams:ol(e)&&n})})}o(yF,"registerGenerateAclCheckCallHelper");var xs=yt(xn());var F$=o((e,t)=>{let r=Xt(e)&&oi(e)&&t;return`use${Te(ht(e.operationName))}${r?"Mutation":""}`},"getQueryName"),H$=o(e=>`use${Te(ht(e.operationName))}Infinite`,"getInfiniteQueryName");function B$(){bF(),_F(),SF(),vF(),OF()}o(B$,"registerQueryHbsHelpers");function bF(){xs.default.registerHelper("queryName",(e,t)=>F$(e,t.hash.mutation))}o(bF,"registerQueryNameHelper");function vF(){xs.default.registerHelper("infiniteQueryName",H$)}o(vF,"registerInfiniteQueryNameHelper");function _F(){xs.default.registerHelper("isQuery",Xt)}o(_F,"registerIsQueryHelper");function SF(){xs.default.registerHelper("isMutation",oi)}o(SF,"registerIsMutationHelper");function OF(){xs.default.registerHelper("isInfiniteQuery",e=>cs(e))}o(OF,"registerIsInfiniteQueryHelper");var co=yt(xn());function V$(e){EF(e.options),PF(e),xF(e),$F(),wF(),AF(e)}o(V$,"registerZodHbsHelpers");function EF(e){co.default.registerHelper("zodInferedType",t=>Ba(t,e))}o(EF,"registerInferedTypeHelper");function PF(e){co.default.registerHelper("importedZodSchemaName",t=>LP(e,t))}o(PF,"registerImportedZodSchemaNameHelper");function xF(e){co.default.registerHelper("importedZodSchemaInferedType",t=>Ji(e,t))}o(xF,"registerImportedZodSchemaInferedTypeHelper");function $F(){co.default.registerHelper("zodSchemaType",e=>FP(e))}o($F,"registerZodSchemaTypeHelper");function wF(){co.default.registerHelper("zodSchemaDescription",e=>HP(e))}o(wF,"registerZodSchemaDescriptionHelper");function AF(e){co.default.registerHelper("zodSchemaPropertyDescriptions",(t,r)=>VP(e,t,r))}o(AF,"registerZodSchemaPropertyDescriptionsHelper");function Ot(e,t){let r=cg(t);return M$(),D$(),V$(e),k$(e),B$(),j$(e),L$(e),ty.default.compile(r)}o(Ot,"getHbsTemplateDelegate");function Dt(e){let t=cg(`partials/${e}`);return ty.default.compile(t)}o(Dt,"getHbsPartialTemplateDelegate");function U$({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints.filter(({acl:p})=>p&&p.length>0);if(!n||n.length===0)return;let i=n.some(({acl:p})=>(p==null?void 0:p[0].conditions)&&Object.keys(p[0].conditions).length>0),s={bindings:[It.abilityTuple,...i?[It.forcedSubject,It.subject]:[]],from:Jm.from},a=n.reduce((p,f)=>{var h,y;let d=(y=(h=f.acl)==null?void 0:h[0].conditionsTypes)==null?void 0:y.reduce((b,g)=>[...b,...g!=null&&g.zodSchemaName?[g.zodSchemaName]:[]],[]);return[...p,...d??[]]},[]),c=li({resolver:e,tag:r,zodSchemasAsTypes:er(a)});return Ot(e,"acl")({caslAbilityTupleImport:s,modelsImports:c,includeNamespace:e.options.tsNamespaces,namespace:Be({type:"acl",tag:r,options:e.options}),endpoints:n})}o(U$,"generateAcl");function G$(e,t){let r={bindings:[It.pureAbility,...t.length===0?[It.subjectType,It.abilityTuple]:[]],from:Jm.from},n=zP({tags:t,entityName:ka,getAliasEntityName:sl,type:"acl",options:e.options}),i=t.map(a=>Be({type:"acl",tag:a,options:e.options}));return Ot(e,"app-acl")({caslAbilityTupleImport:r,imports:n,allAbilities:ka,appAbilities:qa,includeNamespace:e.options.tsNamespaces,tags:t,namespaces:i,abilityTuple:It.abilityTuple,subjectType:It.subjectType})}o(G$,"generateAppAcl");function z$({resolver:e,data:t,tag:r=""}){var $;let n=($=t.get(r))==null?void 0:$.endpoints;if(!n||n.length===0)return;let i={bindings:[Ns],from:WP(e.options)},s=e.options.axiosRequestConfig,a=s,c={bindings:s?[en]:[],from:Qu.from},u=e.options.parseRequestParams,l=n.reduce((C,T)=>[...C,...T.parameters],[]),p=l.filter(C=>!["Path","Header"].includes(C.type)).map(C=>C.parameterSortingEnumSchemaName??C.zodSchema),f=n.map(C=>C.response),d=er([...f,...u?p:[]]),h=d.some(C=>!Ct(C)),y=e.options.parseRequestParams&&p.length>0,b={bindings:[pt.namespace],from:pl(e.options)},g=li({resolver:e,tag:r,zodSchemas:d.filter(Ct),zodSchemasAsTypes:er(l.map(C=>C.zodSchema).filter(Ct))});return Ot(e,"endpoints")({appRestClientImport:i,hasAxiosImport:a,axiosImport:c,hasZodImport:h,zodImport:vo,hasZodUtilsImport:y,zodUtilsImport:b,modelsImports:g,includeNamespace:e.options.tsNamespaces,namespace:Be({type:"endpoints",tag:r,options:e.options}),restClientName:Ns,hasAxiosRequestConfig:s,axiosRequestConfigName:Yn,axiosRequestConfigType:en,endpoints:n,generateParse:u})}o(z$,"generateEndpoints");function Z$(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getExtractedEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(W$(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(Z$,"getZodSchemaRefs");function W$(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&W$(n).forEach(s=>r.add(s)),r},new Set)}o(W$,"getSchemaRefs");function K$({resolver:e,data:t,tag:r=""}){var p;let n=(p=t.get(r))==null?void 0:p.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((f,d)=>[...f,...Z$(e,d)],[]).filter(f=>!n[f]),s=li({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((f,[d,h])=>{let y=e.getRefByZodSchemaName(d),b=e.getZodSchemaObj(d),g=!1;b&&ot(b)&&_t(b,{onSchema:o(C=>{if(C.type==="reference")return!0;Object.values(ls).forEach(T=>{(C.schema&&ot(C.schema)&&fs(C.schema,T)||C.parentSchema&&ot(C.parentSchema)&&fs(C.parentSchema,T))&&(g=!0)})},"onSchema")});let P={code:h,isCircular:!!y&&e.isSchemaCircular(y),isEnum:qP(h),schemaObj:b,hasBrand:g};return{...f,[d]:P}},{}),c=e.options.branded&&Object.values(a).some(f=>f.hasBrand),u={bindings:[pt.namespace],from:pl(e.options)};return Ot(e,"models")({zodImport:vo,hasZodUtilsImport:c,zodUtilsImport:u,modelsImports:s,includeNamespace:e.options.tsNamespaces,namespace:Be({type:"models",tag:r,options:e.options}),tag:r,zodSchemasData:a})}o(K$,"generateModels");function Y$({resolver:e,data:t,tag:r=""}){var Ae;let n=(Ae=t.get(r))==null?void 0:Ae.endpoints;if(!n||n.length===0)return;let i=e.options.axiosRequestConfig,s=n.some(({mediaUpload:G})=>G),a=i||s,c={defaultImport:s?Fm:void 0,bindings:i?[en]:[],from:Qu.from},u=n.filter(Xt),l=u.filter(G=>cs(G)),p=n.filter(oi),f={bindings:[...u.length>0?[qr.query]:[],...e.options.infiniteQueries&&l.length>0?[qr.infiniteQuery]:[],...p.length>0?[qr.mutation]:[]],from:uP.from},d=e.options.mutationEffects,h={bindings:[Bf],from:YP(e.options)},y=d&&p.length>0,b={bindings:[...p.length>0?[bo.optionsType,bo.hookName]:[]],from:QP(e.options)},g=n.filter(G=>G.acl),P=e.options.checkAcl&&g.length>0,$={bindings:[ci],from:JP(e.options)},C={bindings:[...u.length>0?[Ic.query]:[],...e.options.infiniteQueries&&l.length>0?[Ic.infiniteQuery]:[],...p.length>0?[Ic.mutation]:[]],from:KP(e.options)},T=n.reduce((G,j)=>[...G,...j.parameters],[]),w=li({resolver:e,tag:r,zodSchemasAsTypes:er(T.map(G=>G.zodSchema).filter(Ct))}),te=UP({tag:r,endpoints:n,options:e.options}),re=GP({tag:r,endpoints:g,options:e.options});return Ot(e,"queries")({hasAxiosImport:a,axiosImport:c,queryImport:f,hasMutationEffects:d,queryModulesImport:h,hasMutationEffectsImport:y,mutationEffectsImport:b,hasAclCheck:P,aclCheckImport:$,queryTypesImport:C,modelsImports:w,endpointsImports:te,aclImports:re,includeNamespace:e.options.tsNamespaces,tag:r,namespace:Be({type:"queries",tag:r,options:e.options}),queriesModuleName:Ta,queryModuleEnum:Bf,endpoints:n,queryEndpoints:u})}o(Y$,"generateQueries");function Q$(e){return Ot(e,"acl-check")({abilityContextImport:{...ub,from:e.options.abilityContextImportPath},appAbilitiesImport:{bindings:[qa],from:XP(e.options)},errorHandlingImport:{...Cc,from:e.options.errorHandlingImportPath},abilityContext:Hf,appAbilities:qa,errorHandler:Rn.ErrorHandler,sharedErrorHandler:Rn.SharedErrorHandler,aclCheckHook:ci,hasGenericAppAbilities:e.options.abilityContextGenericAppAbilities})}o(Q$,"generateAclCheck");function J$(e){return Ot(e,"app-rest-client")({appRestClientName:Ns,baseUrl:e.getBaseUrl()})}o(J$,"generateAppRestClient");function X$({resolver:e,data:t}){let r=[];return t.forEach((i,s)=>{var c;let a=(c=t.get(s))==null?void 0:c.endpoints;!a||a.length===0||r.push({tag:s,namespace:Be({type:"queries",tag:s,options:e.options})})}),Ot(e,"query-modules")({modules:r})}o(X$,"generateQueryModules");function e2(e){return Ot(e,"zod-utils")({zodImport:vo,zodUtilsNamespace:pt.namespace,parse:pt.exports.parse,sortExp:pt.exports.sortExp,brand:pt.exports.brand,branded:e.options.branded,errorHandler:Rn.ErrorHandler,sharedErrorHandler:Rn.SharedErrorHandler,errorHandlingImport:{...Cc,from:e.options.errorHandlingImportPath}})}o(e2,"generateZodUtils");function t2(e,t){return t.options.acl?[{fileName:Dr({output:t.options.output,fileName:Xi(nl)}),content:G$(t,e)},...t.options.checkAcl?[{fileName:Dr({output:t.options.output,fileName:Xi(il)}),content:Q$(t)}]:[]]:[]}o(t2,"getAclFiles");function r2(e,t){return t.options.mutationEffects?[...o2([lb,jc],t),{fileName:Dr({output:t.options.output,fileName:Xi(Nc)}),content:X$({resolver:t,data:e})}]:[]}o(r2,"getMutationEffectsFiles");function n2(e){return e.options.standalone?[...o2(Object.values(Tc),e),{fileName:Dr({output:e.options.output,fileName:Xi(Rc)}),content:J$(e)}]:[]}o(n2,"getStandaloneFiles");function i2(e,t){return t.options.parseRequestParams?[{fileName:Dr({output:t.options.output,fileName:Xi(Mc)}),content:e2(t)}]:[]}o(i2,"getZodUtilsFiles");function o2(e,t){return e.reduce((r,n)=>[...r,IF(n,t)],[])}o(o2,"getAssetFiles");function IF(e,t){let r=Xi(e);return{fileName:Dr({output:t.options.output,fileName:r}),content:Dx(r)}}o(IF,"getAssetFile");function s2(e,t){let r=t.standalone&&t.importPath==="ts"?"relative":t.importPath,n={...Pe,...t,importPath:r},{resolver:i,data:s}=bl(e,n),a=[],c=[],u=["models","endpoints","queries","acl"],l={models:K$,endpoints:z$,queries:Y$,acl:U$};return s.forEach((p,f)=>{u.forEach(d=>{let h=l[d]({resolver:i,data:s,tag:f});if(h){let y=Dr({output:n.output,fileName:fl({tag:f,type:d,options:n})});a.push({fileName:y,content:h}),d==="acl"&&c.push(f)}})}),a.push(...t2(c,i),...r2(s,i),...i2(s,i),...n2(i)),a}o(s2,"generateCodeFromOpenAPIDoc");async function u2({input:e,excludeTags:t,monorepo:r,prettier:n,verbose:i,...s}){let a=Date.now();i&&pr("Parsing OpenAPI spec...");let c=await a2.default.bundle(e);i&&Nn("Parsing finished."),i&&pr("Generating code...");let u=r?"monorepoTemplate":"template",l=s2(c,{input:e,excludeTags:t.split(","),restClientImportPath:lr.appRestClient[u],errorHandlingImportPath:lr.errorHandling[u],queryTypesImportPath:lr.queryTypes[u],abilityContextImportPath:lr.abilityContext[u],abilityContextGenericAppAbilities:r,...s});i&&Nn("Generation finished."),i&&pr("Writing files..."),Lx(l),i&&Nn("Writing finished."),n&&CF({output:s.output,verbose:i}),i&&pr(`TIME: ${Date.now()-a}ms`)}o(u2,"generate");function CF({output:e,verbose:t}){t&&pr("Running Prettier..."),(0,c2.exec)(`prettier --write ${e} `,n=>{t&&(n?Ls(n,"Prettier error"):Nn("Prettier finished."))})}o(CF,"execPrettier");var Re=class Re{input;output;tsNamespaces;splitByTags;defaultTag;excludeTags;excludePathRegex;excludeRedundantZodSchemas;importPath;extractEnums;removeOperationPrefixEndingWith;acl;checkAcl;standalone;baseUrl;branded;replaceOptionalWithNullish;infiniteQueries;mutationEffects;parseRequestParams;axiosRequestConfig;monorepo;prettier;verbose};o(Re,"GenerateOptions"),Se([Oe({envAlias:"input",demandOption:!0})],Re.prototype,"input",2),Se([Oe({envAlias:"output",default:Pe.output})],Re.prototype,"output",2),Se([Oe({envAlias:"tsNamespaces",default:Pe.tsNamespaces,type:"boolean"})],Re.prototype,"tsNamespaces",2),Se([Oe({envAlias:"splitByTags",default:Pe.splitByTags,type:"boolean"})],Re.prototype,"splitByTags",2),Se([Oe({envAlias:"defaultTag",default:Pe.defaultTag})],Re.prototype,"defaultTag",2),Se([Oe({envAlias:"excludeTags",default:Pe.excludeTags.join(",")})],Re.prototype,"excludeTags",2),Se([Oe({envAlias:"excludePathRegex",default:Pe.excludePathRegex})],Re.prototype,"excludePathRegex",2),Se([Oe({envAlias:"excludeRedundantZodSchemas",default:Pe.excludeRedundantZodSchemas,type:"boolean"})],Re.prototype,"excludeRedundantZodSchemas",2),Se([Oe({envAlias:"importPath",default:Pe.importPath})],Re.prototype,"importPath",2),Se([Oe({envAlias:"extractEnums",default:Pe.extractEnums,type:"boolean"})],Re.prototype,"extractEnums",2),Se([Oe({envAlias:"removeOperationPrefixEndingWith",default:Pe.removeOperationPrefixEndingWith})],Re.prototype,"removeOperationPrefixEndingWith",2),Se([Oe({envAlias:"acl",default:Pe.acl,type:"boolean"})],Re.prototype,"acl",2),Se([Oe({envAlias:"checkAcl",default:Pe.checkAcl,type:"boolean"})],Re.prototype,"checkAcl",2),Se([Oe({envAlias:"standalone",default:Pe.standalone,type:"boolean"})],Re.prototype,"standalone",2),Se([Oe({envAlias:"baseUrl",default:Pe.baseUrl})],Re.prototype,"baseUrl",2),Se([Oe({envAlias:"branded",default:Pe.branded,type:"boolean"})],Re.prototype,"branded",2),Se([Oe({envAlias:"replaceOptionalWithNullish",default:Pe.replaceOptionalWithNullish,type:"boolean"})],Re.prototype,"replaceOptionalWithNullish",2),Se([Oe({envAlias:"infiniteQueries",default:Pe.infiniteQueries,type:"boolean"})],Re.prototype,"infiniteQueries",2),Se([Oe({envAlias:"mutationEffects",default:Pe.mutationEffects,type:"boolean"})],Re.prototype,"mutationEffects",2),Se([Oe({envAlias:"parseRequestParams",default:Pe.parseRequestParams,type:"boolean"})],Re.prototype,"parseRequestParams",2),Se([Oe({envAlias:"axiosRequestConfig",default:Pe.axiosRequestConfig,type:"boolean"})],Re.prototype,"axiosRequestConfig",2),Se([Oe({envAlias:"monorepo",default:!1,type:"boolean"})],Re.prototype,"monorepo",2),Se([Oe({envAlias:"prettier",default:!0,type:"boolean"})],Re.prototype,"prettier",2),Se([Oe({envAlias:"verbose",default:!1,type:"boolean"})],Re.prototype,"verbose",2);var ry=Re,l2={command:"generate",describe:"Generate code from OpenAPI spec",builder:Vc(ry),handler:o(async e=>{let t=await e;return t.verbose&&(Bc(`OpenAPI CodeGen ${Oo()}`),Ds("input",t.input),Ds("output",t.output)),u2(t)},"handler")};cb(hf(process.argv)).version(Oo()||"unknown").scriptName("openapi-codegen").command(l2).command(Vx).help().demandCommand(1).strictCommands(!0).showHelpOnFail(!0).fail((e,t)=>{e&&Ls(e),t&&Ls(t),pr("Use '--help' for more info"),process.exit(1)}).parse();
150
+ `)}return r.validationErrors}o(Zx,"checkOpenAPIDoc");function JD(e,t){return["models","endpoints","queries"].map(r=>qr({output:t.output,fileName:fl({tag:e,type:r,options:t})}))}o(JD,"getOutputFileNames");var _l={input:"http://localhost:4000/docs-json/",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],excludePathRegex:"",excludeRedundantZodSchemas:!0,tsNamespaces:!0,importPath:"ts",configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"},acl:{outputFileNameSuffix:"acl",namespaceSuffix:"Acl"}},acl:!0,checkAcl:!0,standalone:!1,baseUrl:"",abilityContextImportPath:yr.abilityContext.template,abilityContextGenericAppAbilities:!1,schemaSuffix:qP,enumSuffix:DP,withDefaultValues:!0,extractEnums:!0,branded:!0,replaceOptionalWithNullish:!1,restClientImportPath:yr.appRestClient.template,errorHandlingImportPath:yr.errorHandling.template,removeOperationPrefixEndingWith:"Controller_",parseRequestParams:!0,queryTypesImportPath:yr.queryTypes.template,axiosRequestConfig:!1,infiniteQueries:!1,mutationEffects:!0};var hg=at(require("fs")),Sl=at(require("path"));var XD=["openapi-codegen.config.ts"];async function Ol(e){try{if(e)return await Wx(e);for(let t of XD){let r=Sl.default.resolve(process.cwd(),t);if(hg.default.existsSync(r))return Ft(`Found config file: ${t}`),await Wx(r)}return null}catch(t){return xi(`Failed to load configuration: ${t instanceof Error?t.message:t}`),null}}o(Ol,"loadConfig");async function Wx(e){let t=Sl.default.resolve(process.cwd(),e);if(!hg.default.existsSync(t))throw new Error(`Configuration file not found: ${e}`);let r=Sl.default.extname(t).toLowerCase();if(r!==".ts")throw new Error(`Only TypeScript configuration files are supported. Found: ${r}`);return e4(t)}o(Wx,"loadConfigFromPath");async function e4(e){try{let t=await import(e),r=t.default||t;return typeof r=="function"&&(r=await r()),r}catch(t){throw new Error(`Failed to load TypeScript config file ${e}: ${t instanceof Error?t.message:t}`)}}o(e4,"loadTsConfig");async function Yx({verbose:e,...t}){var c;let r=Date.now();e&&Ft("Resolving config...");let n=await Ol(t.config),i=dl(_l,n??{},{...t,excludeTags:(c=t.excludeTags)==null?void 0:c.split(",")});e&&Ft("Parsing OpenAPI spec...");let s=await Kx.default.bundle(i.input);e&&Ft("Running check...");let a=Zx(s,i);if(a.length===0)Ms(`Time: ${Date.now()-r}ms`);else throw new Error(`Found ${a.length} issues. Time: ${Date.now()-r}ms`)}o(Yx,"check");var Dr=class Dr{};o(Dr,"CheckOptions"),ye([be({envAlias:"config"})],Dr.prototype,"config",2),ye([be({envAlias:"input"})],Dr.prototype,"input",2),ye([be({envAlias:"splitByTags",type:"boolean"})],Dr.prototype,"splitByTags",2),ye([be({envAlias:"defaultTag"})],Dr.prototype,"defaultTag",2),ye([be({envAlias:"excludeTags"})],Dr.prototype,"excludeTags",2),ye([be({envAlias:"excludePathRegex"})],Dr.prototype,"excludePathRegex",2),ye([be({envAlias:"excludeRedundantZodSchemas",type:"boolean"})],Dr.prototype,"excludeRedundantZodSchemas",2),ye([be({envAlias:"verbose",default:!1,type:"boolean"})],Dr.prototype,"verbose",2);var mg=Dr,Qx={command:"check",describe:"Check OpenAPI spec",builder:jc(mg),handler:o(async e=>{let t=await e;return t.verbose&&Nc(`OpenAPI CodeGen ${vo()}`),Yx(t)},"handler")};var m2=at(Lm()),g2=require("child_process");var ay=at(En());var fn=at(En());function B$(e){z8(),Z8(),W8(e.options),K8(),Y8(),Q8(),J8(),X8(),eF()}o(B$,"registerAclHbsHelpers");function z8(){fn.default.registerHelper("abilityTypeName",RP)}o(z8,"registerAbilityTypeNameHelper");function Z8(){fn.default.registerHelper("abilityFunctionName",Ma)}o(Z8,"registerAbilityFunctionNameHelper");function W8(e){fn.default.registerHelper("importedAbilityFunctionName",t=>NP(t,e))}o(W8,"registerImportedAbilityFunctionNameHelper");function K8(){fn.default.registerHelper("ablityAction",jP)}o(K8,"registerAbilityActionHelper");function Y8(){fn.default.registerHelper("ablitySubject",MP)}o(Y8,"registerAbilitySubjectHelper");function Q8(){fn.default.registerHelper("hasAbilityConditions",nl)}o(Q8,"registerHasAbilityConditionsHelper");function J8(){fn.default.registerHelper("abilityConditionsTypes",ka)}o(J8,"registerAbilityConditionsTypesHelper");function X8(){fn.default.registerHelper("abilityDescription",kP)}o(X8,"registerAbilityDescriptionHelper");function eF(){fn.default.registerHelper("tagAllAbilitiesName",il)}o(eF,"registerTagAllAbilitiesNameHelper");var Ps=at(En());function V$(){tF(),rF(),nF(),iF(),oF()}o(V$,"registerCommonHbsHelpers");function tF(){Ps.default.registerHelper("isEqual",(e,t)=>e===t)}o(tF,"registerIsEqualHelper");function rF(){Ps.default.registerHelper("commaSeparated",e=>e.join(", "))}o(rF,"registerCommaSeparatedListHelper");function nF(){Ps.default.registerHelper("addAsteriskAfterNewLine",e=>e.replace(/\n/g,`
151
+ *`))}o(nF,"registerAddAsteriskAfterNewLineHelper");function iF(){Ps.default.registerHelper("jsonStringify",e=>JSON.stringify(e,null,2))}o(iF,"registerJsonStringifyHelper");function oF(){Ps.default.registerHelper("capitalize",Te)}o(oF,"registerCapitalizeHelper");var fi=at(En());function U$(e){sF(),aF(e.options),lF(e),cF(),uF(),fF(e),pF()}o(U$,"registerEndpointsHbsHelpers");function sF(){fi.default.registerHelper("endpointName",Ba)}o(sF,"registerEndpointNameHelper");function aF(e){fi.default.registerHelper("importedEndpointName",t=>ax(t,e))}o(aF,"registerImportedEndpointNameHelper");function cF(){fi.default.registerHelper("endpointPath",cx)}o(cF,"registerEndpointPathHelper");function uF(){fi.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(uF,"registerEndpointBodyHelper");function lF(e){fi.default.registerHelper("endpointParams",(t,r)=>ti(e,t,r.hash))}o(lF,"registerEndpointParamsHelper");function fF(e){fi.default.registerHelper("endpointArgs",(t,r)=>ti(e,t,r.hash).map(n=>n.name).join(", "))}o(fF,"registerEndpointArgsHelper");function pF(){fi.default.registerHelper("endpointParamDescription",e=>{var s,a,c,u,l;let t=[`${e.paramType} parameter`],r=((s=e.parameterObject)==null?void 0:s.description)||((a=e.bodyObject)==null?void 0:a.description);r&&t.push(r);let n,i;if((c=e.parameterObject)!=null&&c.schema&&it(e.parameterObject.schema)&&(n=(u=e.parameterObject)==null?void 0:u.schema),(l=e.bodyObject)!=null&&l.content){let f=Object.keys(e.bodyObject.content??{}).find(on);f&&(i=e.bodyObject.content[f],i.schema&&it(i.schema)&&(n=i.schema))}if(n){let p=Fa(n);t.push(...p)}return i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(pF,"registerEndpointParamDescriptionHelper");var G$=at(En());function z$(){dF()}o(z$,"registerImportsHbsHelpers");function dF(){G$.default.registerHelper("importNames",(e,t)=>[...t?[t]:[],...e?[`{ ${e.join(", ")} }`]:[]].join(", "))}o(dF,"registerBindingsHelper");var kt=at(En());function Z$(e){hF(),mF(),gF(),yF(e),bF(),vF(e),_F(e),SF(e),OF(e),EF(e),PF(),xF(),$F(),wF()}o(Z$,"registerPartialsHbsHelpers");function hF(){kt.default.registerHelper("genModelJsDocs",(e,t,r)=>qt("model-js-docs")({name:e,zodSchema:t,tag:r}))}o(hF,"registerGenerateModelJsDocsHelper");function mF(){kt.default.registerHelper("genImport",e=>qt("import")({import:e}))}o(mF,"registerImportHelper");function gF(){kt.default.registerHelper("genEndpointParams",(e,t)=>qt("endpoint-params")({endpoint:e,options:t}))}o(gF,"registerGenerateEndpointParamsHelper");function yF(e){kt.default.registerHelper("genEndpointConfig",t=>{let r=ux(t),n=e.options.axiosRequestConfig;return Object.keys(r).length===0?n?Zn:"":qt("endpoint-config")({endpointConfig:r,hasAxiosRequestConfig:n,hasBlobResponse:t.response===ol,hasFileDownload:t.mediaDownload,axiosRequestConfigName:Zn,generateParse:e.options.parseRequestParams})})}o(yF,"registerGenerateEndpointConfigHelper");function bF(){kt.default.registerHelper("genEndpointParamParse",(e,t)=>{var r;return qt("endpoint-param-parse")({param:e,paramName:t,isQuery:e.type==="Query",zodUtilsNamespace:ht.namespace,parse:ht.exports.parse,sortExp:ht.exports.sortExp,addOptional:!((r=e.parameterObject??e.bodyObject)!=null&&r.required)&&(e.parameterSortingEnumSchemaName||It(e.zodSchema))})})}o(bF,"registerGenerateEndpointParamParseHelper");function vF(e){kt.default.registerHelper("genQueryKeys",t=>t.length===0?"":qt("query-keys")({queryEndpoints:t,queriesModuleName:wa,generateInfiniteQueries:e.options.infiniteQueries}))}o(vF,"registerGenerateQueryKeysHelper");function _F(e){kt.default.registerHelper("genQuery",t=>{if(!Xt(t))return;let r=e.options.axiosRequestConfig,n=e.options.checkAcl&&t.acl;return qt("query-use-query")({endpoint:t,queryHook:kr.query,hasQueryFn:ti(e,t).length>0||r||n,hasQueryFnBody:n,hasAxiosRequestConfig:r,axiosRequestConfigName:Zn,axiosRequestConfigType:Xr,hasAclCheck:n,aclCheckHook:oi})})}o(_F,"registerGenerateQueryHelper");function SF(e){kt.default.registerHelper("genMutation",(t,r)=>{if(!ri(t))return;let n=lx(t,r),i=AP(e,t,n),s=e.options.checkAcl&&t.acl;return qt("query-use-mutation")({endpoint:t,queryHook:kr.mutation,queriesModuleName:wa,hasAxiosRequestConfig:e.options.axiosRequestConfig,hasMutationFnBody:t.mediaUpload||s,axiosRequestConfigName:Zn,axiosRequestConfigType:Xr,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:ss.optionsType,updateQueryEndpoints:n,destructuredVariables:i,hasAclCheck:s,aclCheckHook:oi})})}o(SF,"registerGenerateMutationHelper");function OF(e){kt.default.registerHelper("genInfiniteQuery",t=>{if(!e.options.infiniteQueries||!os(t))return;let r=e.options.checkAcl&&t.acl;return qt("query-use-infinite-query")({endpoint:t,infiniteQueryHook:kr.infiniteQuery,hasQueryFnBody:r,pageParamName:Fu.pageParamName,totalItemsName:Fu.totalItemsName,limitParamName:Fu.limitParamName,hasAxiosRequestConfig:e.options.axiosRequestConfig,axiosRequestConfigName:Zn,axiosRequestConfigType:Xr,hasAclCheck:r,aclCheckHook:oi})})}o(OF,"registerGenerateInfiniteQueryHelper");function EF(e){kt.default.registerHelper("genQueryJsDocs",(t,r)=>qt("query-js-docs")({endpoint:t,query:r.hash.query,mutation:r.hash.mutation,infiniteQuery:r.hash.infiniteQuery,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:ss.optionsType}))}o(EF,"registerGenerateQueryJsDocsHelper");function PF(){kt.default.registerHelper("genCaslAbilityType",e=>qt("casl-ability-type")({endpoint:e,abilityTupleType:At.abilityTuple}))}o(PF,"registerGenerateCaslAbilityTypeHelper");function xF(){kt.default.registerHelper("genCaslAbilityFunction",e=>qt("casl-ability-function")({endpoint:e}))}o(xF,"registerGenerateCaslAbilityFunctionHelper");function $F(){kt.default.registerHelper("genCaslAbilityQuery",e=>qt("casl-ability-query")({endpoint:e}))}o($F,"registerGenerateCaslAbilityQueryHelper");function wF(){kt.default.registerHelper("genAclCheckCall",e=>{var i;let t=(i=ka(e))==null?void 0:i.map(s=>s.name),r=e.parameters.map(s=>s.name),n=t==null?void 0:t.every(s=>r.includes(s));return qt("acl-check-call")({endpoint:e,generateAclCheckParams:nl(e)&&n})})}o(wF,"registerGenerateAclCheckCallHelper");var xs=at(En());var W$=o((e,t)=>{let r=Xt(e)&&ri(e)&&t;return`use${Te(dt(e.operationName))}${r?"Mutation":""}`},"getQueryName"),K$=o(e=>`use${Te(dt(e.operationName))}Infinite`,"getInfiniteQueryName");function Y$(){AF(),CF(),TF(),IF(),RF()}o(Y$,"registerQueryHbsHelpers");function AF(){xs.default.registerHelper("queryName",(e,t)=>W$(e,t.hash.mutation))}o(AF,"registerQueryNameHelper");function IF(){xs.default.registerHelper("infiniteQueryName",K$)}o(IF,"registerInfiniteQueryNameHelper");function CF(){xs.default.registerHelper("isQuery",Xt)}o(CF,"registerIsQueryHelper");function TF(){xs.default.registerHelper("isMutation",ri)}o(TF,"registerIsMutationHelper");function RF(){xs.default.registerHelper("isInfiniteQuery",e=>os(e))}o(RF,"registerIsInfiniteQueryHelper");var ao=at(En());function Q$(e){NF(e.options),jF(e),MF(e),kF(),qF(),DF(e)}o(Q$,"registerZodHbsHelpers");function NF(e){ao.default.registerHelper("zodInferedType",t=>Ha(t,e))}o(NF,"registerInferedTypeHelper");function jF(e){ao.default.registerHelper("importedZodSchemaName",t=>GP(e,t))}o(jF,"registerImportedZodSchemaNameHelper");function MF(e){ao.default.registerHelper("importedZodSchemaInferedType",t=>Qi(e,t))}o(MF,"registerImportedZodSchemaInferedTypeHelper");function kF(){ao.default.registerHelper("zodSchemaType",e=>zP(e))}o(kF,"registerZodSchemaTypeHelper");function qF(){ao.default.registerHelper("zodSchemaDescription",e=>ZP(e))}o(qF,"registerZodSchemaDescriptionHelper");function DF(e){ao.default.registerHelper("zodSchemaPropertyDescriptions",(t,r)=>KP(e,t,r))}o(DF,"registerZodSchemaPropertyDescriptionsHelper");function St(e,t){let r=dg(t);return V$(),z$(),Q$(e),U$(e),Y$(),B$(e),Z$(e),ay.default.compile(r)}o(St,"getHbsTemplateDelegate");function qt(e){let t=dg(`partials/${e}`);return ay.default.compile(t)}o(qt,"getHbsPartialTemplateDelegate");function J$({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints.filter(({acl:p})=>p&&p.length>0);if(!n||n.length===0)return;let i=n.some(({acl:p})=>(p==null?void 0:p[0].conditions)&&Object.keys(p[0].conditions).length>0),s={bindings:[At.abilityTuple,...i?[At.forcedSubject,At.subject]:[]],from:Xm.from},a=n.reduce((p,f)=>{var h,y;let d=(y=(h=f.acl)==null?void 0:h[0].conditionsTypes)==null?void 0:y.reduce((b,g)=>[...b,...g!=null&&g.zodSchemaName?[g.zodSchemaName]:[]],[]);return[...p,...d??[]]},[]),c=ci({resolver:e,tag:r,zodSchemasAsTypes:er(a)});return St(e,"acl")({caslAbilityTupleImport:s,modelsImports:c,includeNamespace:e.options.tsNamespaces,namespace:He({type:"acl",tag:r,options:e.options}),endpoints:n})}o(J$,"generateAcl");function X$(e,t){let r={bindings:[At.pureAbility,...t.length===0?[At.subjectType,At.abilityTuple]:[]],from:Xm.from},n=JP({tags:t,entityName:Ra,getAliasEntityName:il,type:"acl",options:e.options}),i=t.map(a=>He({type:"acl",tag:a,options:e.options}));return St(e,"app-acl")({caslAbilityTupleImport:r,imports:n,allAbilities:Ra,appAbilities:Na,includeNamespace:e.options.tsNamespaces,tags:t,namespaces:i,abilityTuple:At.abilityTuple,subjectType:At.subjectType})}o(X$,"generateAppAcl");function e2({resolver:e,data:t,tag:r=""}){var $;let n=($=t.get(r))==null?void 0:$.endpoints;if(!n||n.length===0)return;let i={bindings:[ja],from:ex(e.options)},s=e.options.axiosRequestConfig,a=s,c={bindings:s?[Xr]:[],from:Bu.from},u=e.options.parseRequestParams,l=n.reduce((C,T)=>[...C,...T.parameters],[]),p=l.filter(C=>!["Path","Header"].includes(C.type)).map(C=>C.parameterSortingEnumSchemaName??C.zodSchema),f=n.map(C=>C.response),d=er([...f,...u?p:[]]),h=d.some(C=>!It(C)),y=e.options.parseRequestParams&&p.length>0,b={bindings:[ht.namespace],from:pl(e.options)},g=ci({resolver:e,tag:r,zodSchemas:d.filter(It),zodSchemasAsTypes:er(l.map(C=>C.zodSchema).filter(It))});return St(e,"endpoints")({appRestClientImport:i,hasAxiosImport:a,axiosImport:c,hasZodImport:h,zodImport:as,hasZodUtilsImport:y,zodUtilsImport:b,modelsImports:g,includeNamespace:e.options.tsNamespaces,namespace:He({type:"endpoints",tag:r,options:e.options}),restClientName:ja,hasAxiosRequestConfig:s,axiosRequestConfigName:Zn,axiosRequestConfigType:Xr,endpoints:n,generateParse:u})}o(e2,"generateEndpoints");function t2(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getExtractedEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(r2(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(t2,"getZodSchemaRefs");function r2(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&r2(n).forEach(s=>r.add(s)),r},new Set)}o(r2,"getSchemaRefs");function n2({resolver:e,data:t,tag:r=""}){var p;let n=(p=t.get(r))==null?void 0:p.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((f,d)=>[...f,...t2(e,d)],[]).filter(f=>!n[f]),s=ci({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((f,[d,h])=>{let y=e.getRefByZodSchemaName(d),b=e.getZodSchemaObj(d),g=!1;b&&it(b)&&vt(b,{onSchema:o(C=>{if(C.type==="reference")return!0;Object.values(ls).forEach(T=>{(C.schema&&it(C.schema)&&fs(C.schema,T)||C.parentSchema&&it(C.parentSchema)&&fs(C.parentSchema,T))&&(g=!0)})},"onSchema")});let P={code:h,isCircular:!!y&&e.isSchemaCircular(y),isEnum:VP(h),schemaObj:b,hasBrand:g};return{...f,[d]:P}},{}),c=e.options.branded&&Object.values(a).some(f=>f.hasBrand),u={bindings:[ht.namespace],from:pl(e.options)};return St(e,"models")({zodImport:as,hasZodUtilsImport:c,zodUtilsImport:u,modelsImports:s,includeNamespace:e.options.tsNamespaces,namespace:He({type:"models",tag:r,options:e.options}),tag:r,zodSchemasData:a})}o(n2,"generateModels");function i2({resolver:e,data:t,tag:r=""}){var we;let n=(we=t.get(r))==null?void 0:we.endpoints;if(!n||n.length===0)return;let i=e.options.axiosRequestConfig,s=n.some(({mediaUpload:G})=>G),a=i||s,c={defaultImport:s?Hm:void 0,bindings:i?[Xr]:[],from:Bu.from},u=n.filter(Xt),l=u.filter(G=>os(G)),p=n.filter(ri),f={bindings:[...u.length>0?[kr.query]:[],...e.options.infiniteQueries&&l.length>0?[kr.infiniteQuery]:[],...p.length>0?[kr.mutation]:[]],from:aP.from},d=e.options.mutationEffects,h={bindings:[ng],from:rx(e.options)},y=d&&p.length>0,b={bindings:[...p.length>0?[ss.optionsType,ss.hookName]:[]],from:nx(e.options)},g=n.filter(G=>G.acl),P=e.options.checkAcl&&g.length>0,$={bindings:[oi],from:ix(e.options)},C={bindings:[...u.length>0?[Yu.query]:[],...e.options.infiniteQueries&&l.length>0?[Yu.infiniteQuery]:[],...p.length>0?[Yu.mutation]:[]],from:tx(e.options)},T=n.reduce((G,j)=>[...G,...j.parameters],[]),w=ci({resolver:e,tag:r,zodSchemasAsTypes:er(T.map(G=>G.zodSchema).filter(It))}),te=YP({tag:r,endpoints:n,options:e.options}),re=QP({tag:r,endpoints:g,options:e.options});return St(e,"queries")({hasAxiosImport:a,axiosImport:c,queryImport:f,hasMutationEffects:d,queryModulesImport:h,hasMutationEffectsImport:y,mutationEffectsImport:b,hasAclCheck:P,aclCheckImport:$,queryTypesImport:C,modelsImports:w,endpointsImports:te,aclImports:re,includeNamespace:e.options.tsNamespaces,tag:r,namespace:He({type:"queries",tag:r,options:e.options}),queriesModuleName:wa,queryModuleEnum:ng,endpoints:n,queryEndpoints:u})}o(i2,"generateQueries");function o2(e){return St(e,"acl-check")({abilityContextImport:{...CP,from:e.options.abilityContextImportPath},appAbilitiesImport:{bindings:[Na],from:ox(e.options)},errorHandlingImport:{...Qu,from:e.options.errorHandlingImportPath},abilityContext:rg,appAbilities:Na,errorHandler:si.ErrorHandler,sharedErrorHandler:si.SharedErrorHandler,aclCheckHook:oi,hasGenericAppAbilities:e.options.abilityContextGenericAppAbilities})}o(o2,"generateAclCheck");function s2(e){return St(e,"app-rest-client")({appRestClientName:ja,baseUrl:e.getBaseUrl()})}o(s2,"generateAppRestClient");function a2({resolver:e,data:t}){let r=[];return t.forEach((i,s)=>{var c;let a=(c=t.get(s))==null?void 0:c.endpoints;!a||a.length===0||r.push({tag:s,namespace:He({type:"queries",tag:s,options:e.options})})}),St(e,"query-modules")({modules:r})}o(a2,"generateQueryModules");function c2(e){return St(e,"zod-utils")({zodImport:as,zodUtilsNamespace:ht.namespace,parse:ht.exports.parse,sortExp:ht.exports.sortExp,brand:ht.exports.brand,branded:e.options.branded,errorHandler:si.ErrorHandler,sharedErrorHandler:si.SharedErrorHandler,errorHandlingImport:{...Qu,from:e.options.errorHandlingImportPath}})}o(c2,"generateZodUtils");function u2(e,t){return t.options.acl?[{fileName:qr({output:t.options.output,fileName:Ji(Wu)}),content:X$(t,e)},...t.options.checkAcl?[{fileName:qr({output:t.options.output,fileName:Ji(Ku)}),content:o2(t)}]:[]]:[]}o(u2,"getAclFiles");function l2(e,t){return t.options.mutationEffects?[...d2([TP,tl],t),{fileName:qr({output:t.options.output,fileName:Ji(el)}),content:a2({resolver:t,data:e})}]:[]}o(l2,"getMutationEffectsFiles");function f2(e){return e.options.standalone?[...d2(Object.values(Ju),e),{fileName:qr({output:e.options.output,fileName:Ji(Xu)}),content:s2(e)}]:[]}o(f2,"getStandaloneFiles");function p2(e,t){return t.options.parseRequestParams?[{fileName:qr({output:t.options.output,fileName:Ji(rl)}),content:c2(t)}]:[]}o(p2,"getZodUtilsFiles");function d2(e,t){return e.reduce((r,n)=>[...r,LF(n,t)],[])}o(d2,"getAssetFiles");function LF(e,t){let r=Ji(e);return{fileName:qr({output:t.options.output,fileName:r}),content:Gx(r)}}o(LF,"getAssetFile");function h2(e,t){let r=t.standalone&&t.importPath==="ts"?"relative":t.importPath,{resolver:n,data:i}=vl(e,{...t,importPath:r}),s=[],a=[],c=["models","endpoints","queries","acl"],u={models:n2,endpoints:e2,queries:i2,acl:J$};return i.forEach((l,p)=>{c.forEach(f=>{let d=u[f]({resolver:n,data:i,tag:p});if(d){let h=qr({output:t.output,fileName:fl({tag:p,type:f,options:t})});s.push({fileName:h,content:d}),f==="acl"&&a.push(p)}})}),s.push(...u2(a,n),...l2(i,n),...p2(i,n),...f2(n)),s}o(h2,"generateCodeFromOpenAPIDoc");async function y2({monorepo:e,prettier:t,verbose:r,...n}){var p;let i=Date.now();r&&Ft("Resolving config...");let s=await Ol(n.config),a=e?"monorepoTemplate":"template",c=dl(_l,s??{},{...n,excludeTags:(p=n.excludeTags)==null?void 0:p.split(","),restClientImportPath:yr.appRestClient[a],errorHandlingImportPath:yr.errorHandling[a],queryTypesImportPath:yr.queryTypes[a],abilityContextImportPath:yr.abilityContext[a],abilityContextGenericAppAbilities:e});r&&Ft("Parsing OpenAPI spec...");let u=await m2.default.bundle(c.input);r&&Ft("Generating code...");let l=h2(u,c);r&&Ft("Writing files..."),zx(l),r&&Ms(`Time: ${Date.now()-i}ms`),t&&FF({output:n.output,verbose:r})}o(y2,"generate");function FF({output:e,verbose:t}){t&&Ft("Running Prettier..."),(0,g2.exec)(`prettier --write ${e} `,n=>{t&&(n?xi(n,"Prettier error"):Ms("Prettier finished."))})}o(FF,"execPrettier");var Ie=class Ie{};o(Ie,"GenerateOptions"),ye([be({envAlias:"config"})],Ie.prototype,"config",2),ye([be({envAlias:"input"})],Ie.prototype,"input",2),ye([be({envAlias:"output"})],Ie.prototype,"output",2),ye([be({envAlias:"tsNamespaces",type:"boolean"})],Ie.prototype,"tsNamespaces",2),ye([be({envAlias:"splitByTags",type:"boolean"})],Ie.prototype,"splitByTags",2),ye([be({envAlias:"defaultTag"})],Ie.prototype,"defaultTag",2),ye([be({envAlias:"excludeTags"})],Ie.prototype,"excludeTags",2),ye([be({envAlias:"excludePathRegex"})],Ie.prototype,"excludePathRegex",2),ye([be({envAlias:"excludeRedundantZodSchemas",type:"boolean"})],Ie.prototype,"excludeRedundantZodSchemas",2),ye([be({envAlias:"importPath"})],Ie.prototype,"importPath",2),ye([be({envAlias:"extractEnums",type:"boolean"})],Ie.prototype,"extractEnums",2),ye([be({envAlias:"removeOperationPrefixEndingWith"})],Ie.prototype,"removeOperationPrefixEndingWith",2),ye([be({envAlias:"acl",type:"boolean"})],Ie.prototype,"acl",2),ye([be({envAlias:"checkAcl",type:"boolean"})],Ie.prototype,"checkAcl",2),ye([be({envAlias:"standalone",type:"boolean"})],Ie.prototype,"standalone",2),ye([be({envAlias:"baseUrl"})],Ie.prototype,"baseUrl",2),ye([be({envAlias:"branded",type:"boolean"})],Ie.prototype,"branded",2),ye([be({envAlias:"replaceOptionalWithNullish",type:"boolean"})],Ie.prototype,"replaceOptionalWithNullish",2),ye([be({envAlias:"infiniteQueries",type:"boolean"})],Ie.prototype,"infiniteQueries",2),ye([be({envAlias:"mutationEffects",type:"boolean"})],Ie.prototype,"mutationEffects",2),ye([be({envAlias:"parseRequestParams",type:"boolean"})],Ie.prototype,"parseRequestParams",2),ye([be({envAlias:"axiosRequestConfig",type:"boolean"})],Ie.prototype,"axiosRequestConfig",2),ye([be({envAlias:"monorepo",type:"boolean"})],Ie.prototype,"monorepo",2),ye([be({envAlias:"prettier",default:!0,type:"boolean"})],Ie.prototype,"prettier",2),ye([be({envAlias:"verbose",default:!1,type:"boolean"})],Ie.prototype,"verbose",2);var cy=Ie,b2={command:"generate",describe:"Generate code from OpenAPI spec",builder:jc(cy),handler:o(async e=>{let t=await e;return t.verbose&&Nc(`OpenAPI CodeGen ${vo()}`),y2(t)},"handler")};hb(bf(process.argv)).version(vo()||"unknown").scriptName("openapi-codegen").command(b2).command(Qx).help().demandCommand(1).strictCommands(!0).showHelpOnFail(!0).fail((e,t)=>{e&&xi(e),t&&xi(t),Ft("Use '--help' for more info"),process.exit(1)}).parse();
152
152
  /*! Bundled license information:
153
153
 
154
154
  reflect-metadata/Reflect.js: