@povio/openapi-codegen-cli 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generators/const/js.const.d.ts +1 -0
- package/dist/generators/const/openapi.const.d.ts +1 -0
- package/dist/generators/core/SchemaResolver.class.d.ts +1 -0
- package/dist/generators/utils/generate/generate.query.utils.d.ts +5 -0
- package/dist/generators/utils/js.utils.d.ts +0 -1
- package/dist/index.js +33 -33
- package/dist/sh.js +57 -57
- package/package.json +1 -1
- package/src/generators/templates/partials/query-keys.hbs +4 -1
package/dist/sh.js
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var YP=Object.create;var pa=Object.defineProperty;var qm=Object.getOwnPropertyDescriptor;var JP=Object.getOwnPropertyNames;var QP=Object.getPrototypeOf,XP=Object.prototype.hasOwnProperty;var s=(e,t)=>pa(e,"name",{value:t,configurable:!0});var b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ew=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of JP(t))!XP.call(e,i)&&i!==r&&pa(e,i,{get:()=>t[i],enumerable:!(n=qm(t,i))||n.enumerable});return e};var xt=(e,t,r)=>(r=e!=null?YP(QP(e)):{},ew(t||!e||!e.__esModule?pa(r,"default",{value:e,enumerable:!0}):r,e));var ar=(e,t,r,n)=>{for(var i=n>1?void 0:n?qm(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&pa(t,r,i),i};var ny=b(()=>{var ry;(function(e){(function(t){var r=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:c(),n=i(e);typeof r.Reflect<"u"&&(n=i(r.Reflect,n)),t(n,r),typeof r.Reflect>"u"&&(r.Reflect=e);function i(u,l){return function(p,f){Object.defineProperty(u,p,{configurable:!0,writable:!0,value:f}),l&&l(p,f)}}s(i,"makeExporter");function o(){try{return Function("return this;")()}catch{}}s(o,"functionThis");function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}s(a,"indirectEvalThis");function c(){return o()||a()}s(c,"sloppyModeThis")})(function(t,r){var n=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",o=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",u={__proto__:[]}instanceof Array,l=!c&&!u,p={create:c?function(){return Tu(Object.create(null))}:u?function(){return Tu({__proto__:null})}:function(){return Tu({})},has:l?function(S,$){return n.call(S,$)}:function(S,$){return $ in S},get:l?function(S,$){return n.call(S,$)?S[$]:void 0}:function(S,$){return S[$]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:zP(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:GP(),y=typeof WeakMap=="function"?WeakMap:WP(),v=i?Symbol.for("@reflect-metadata:registry"):void 0,g=Ye(),w=at(g);function A(S,$,x,k){if(Y(x)){if(!Me(S))throw new TypeError;if(!Et($))throw new TypeError;return I(S,$)}else{if(!Me(S))throw new TypeError;if(!Ae($))throw new TypeError;if(!Ae(k)&&!Y(k)&&!$t(k))throw new TypeError;return $t(k)&&(k=void 0),x=_e(x),q(S,$,x,k)}}s(A,"decorate"),t("decorate",A);function C(S,$){function x(k,J){if(!Ae(k))throw new TypeError;if(!Y(J)&&!Ci(J))throw new TypeError;Ve(S,$,k,J)}return s(x,"decorator"),x}s(C,"metadata"),t("metadata",C);function j(S,$,x,k){if(!Ae(x))throw new TypeError;return Y(k)||(k=_e(k)),Ve(S,$,x,k)}s(j,"defineMetadata"),t("defineMetadata",j);function T(S,$,x){if(!Ae($))throw new TypeError;return Y(x)||(x=_e(x)),Z(S,$,x)}s(T,"hasMetadata"),t("hasMetadata",T);function he(S,$,x){if(!Ae($))throw new TypeError;return Y(x)||(x=_e(x)),ce(S,$,x)}s(he,"hasOwnMetadata"),t("hasOwnMetadata",he);function se(S,$,x){if(!Ae($))throw new TypeError;return Y(x)||(x=_e(x)),be(S,$,x)}s(se,"getMetadata"),t("getMetadata",se);function Fe(S,$,x){if(!Ae($))throw new TypeError;return Y(x)||(x=_e(x)),ge(S,$,x)}s(Fe,"getOwnMetadata"),t("getOwnMetadata",Fe);function $e(S,$){if(!Ae(S))throw new TypeError;return Y($)||($=_e($)),wr(S,$)}s($e,"getMetadataKeys"),t("getMetadataKeys",$e);function X(S,$){if(!Ae(S))throw new TypeError;return Y($)||($=_e($)),Ee(S,$)}s(X,"getOwnMetadataKeys"),t("getOwnMetadataKeys",X);function N(S,$,x){if(!Ae($))throw new TypeError;if(Y(x)||(x=_e(x)),!Ae($))throw new TypeError;Y(x)||(x=_e(x));var k=Hs($,x,!1);return Y(k)?!1:k.OrdinaryDeleteMetadata(S,$,x)}s(N,"deleteMetadata"),t("deleteMetadata",N);function I(S,$){for(var x=S.length-1;x>=0;--x){var k=S[x],J=k($);if(!Y(J)&&!$t(J)){if(!Et(J))throw new TypeError;$=J}}return $}s(I,"DecorateConstructor");function q(S,$,x,k){for(var J=S.length-1;J>=0;--J){var Ge=S[J],et=Ge($,x,k);if(!Y(et)&&!$t(et)){if(!Ae(et))throw new TypeError;k=et}}return k}s(q,"DecorateProperty");function Z(S,$,x){var k=ce(S,$,x);if(k)return!0;var J=M($);return $t(J)?!1:Z(S,J,x)}s(Z,"OrdinaryHasMetadata");function ce(S,$,x){var k=Hs($,x,!1);return Y(k)?!1:Ce(k.OrdinaryHasOwnMetadata(S,$,x))}s(ce,"OrdinaryHasOwnMetadata");function be(S,$,x){var k=ce(S,$,x);if(k)return ge(S,$,x);var J=M($);if(!$t(J))return be(S,J,x)}s(be,"OrdinaryGetMetadata");function ge(S,$,x){var k=Hs($,x,!1);if(!Y(k))return k.OrdinaryGetOwnMetadata(S,$,x)}s(ge,"OrdinaryGetOwnMetadata");function Ve(S,$,x,k){var J=Hs(x,k,!0);J.OrdinaryDefineOwnMetadata(S,$,x,k)}s(Ve,"OrdinaryDefineOwnMetadata");function wr(S,$){var x=Ee(S,$),k=M(S);if(k===null)return x;var J=wr(k,$);if(J.length<=0)return x;if(x.length<=0)return J;for(var Ge=new h,et=[],pe=0,D=x;pe<D.length;pe++){var L=D[pe],H=Ge.has(L);H||(Ge.add(L),et.push(L))}for(var z=0,me=J;z<me.length;z++){var L=me[z],H=Ge.has(L);H||(Ge.add(L),et.push(L))}return et}s(wr,"OrdinaryMetadataKeys");function Ee(S,$){var x=Hs(S,$,!1);return x?x.OrdinaryOwnMetadataKeys(S,$):[]}s(Ee,"OrdinaryOwnMetadataKeys");function Ht(S){if(S===null)return 1;switch(typeof S){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return S===null?1:6;default:return 6}}s(Ht,"Type");function Y(S){return S===void 0}s(Y,"IsUndefined");function $t(S){return S===null}s($t,"IsNull");function te(S){return typeof S=="symbol"}s(te,"IsSymbol");function Ae(S){return typeof S=="object"?S!==null:typeof S=="function"}s(Ae,"IsObject");function Q(S,$){switch(Ht(S)){case 0:return S;case 1:return S;case 2:return S;case 3:return S;case 4:return S;case 5:return S}var x=$===3?"string":$===5?"number":"default",k=P(S,o);if(k!==void 0){var J=k.call(S,x);if(Ae(J))throw new TypeError;return J}return xe(S,x==="default"?"number":x)}s(Q,"ToPrimitive");function xe(S,$){if($==="string"){var x=S.toString;if(it(x)){var k=x.call(S);if(!Ae(k))return k}var J=S.valueOf;if(it(J)){var k=J.call(S);if(!Ae(k))return k}}else{var J=S.valueOf;if(it(J)){var k=J.call(S);if(!Ae(k))return k}var Ge=S.toString;if(it(Ge)){var k=Ge.call(S);if(!Ae(k))return k}}throw new TypeError}s(xe,"OrdinaryToPrimitive");function Ce(S){return!!S}s(Ce,"ToBoolean");function fe(S){return""+S}s(fe,"ToString");function _e(S){var $=Q(S,3);return te($)?$:fe($)}s(_e,"ToPropertyKey");function Me(S){return Array.isArray?Array.isArray(S):S instanceof Object?S instanceof Array:Object.prototype.toString.call(S)==="[object Array]"}s(Me,"IsArray");function it(S){return typeof S=="function"}s(it,"IsCallable");function Et(S){return typeof S=="function"}s(Et,"IsConstructor");function Ci(S){switch(Ht(S)){case 3:return!0;case 4:return!0;default:return!1}}s(Ci,"IsPropertyKey");function _(S,$){return S===$||S!==S&&$!==$}s(_,"SameValueZero");function P(S,$){var x=S[$];if(x!=null){if(!it(x))throw new TypeError;return x}}s(P,"GetMethod");function R(S){var $=P(S,a);if(!it($))throw new TypeError;var x=$.call(S);if(!Ae(x))throw new TypeError;return x}s(R,"GetIterator");function E(S){return S.value}s(E,"IteratorValue");function O(S){var $=S.next();return $.done?!1:$}s(O,"IteratorStep");function V(S){var $=S.return;$&&$.call(S)}s(V,"IteratorClose");function M(S){var $=Object.getPrototypeOf(S);if(typeof S!="function"||S===f||$!==f)return $;var x=S.prototype,k=x&&Object.getPrototypeOf(x);if(k==null||k===Object.prototype)return $;var J=k.constructor;return typeof J!="function"||J===S?$:J}s(M,"OrdinaryGetPrototypeOf");function G(){var S;!Y(v)&&typeof r.Reflect<"u"&&!(v in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(S=UP(r.Reflect));var $,x,k,J=new y,Ge={registerProvider:et,getProvider:D,setProvider:H};return Ge;function et(z){if(!Object.isExtensible(Ge))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===z:break;case Y($):$=z;break;case $===z:break;case Y(x):x=z;break;case x===z:break;default:k===void 0&&(k=new h),k.add(z);break}}function pe(z,me){if(!Y($)){if($.isProviderFor(z,me))return $;if(!Y(x)){if(x.isProviderFor(z,me))return $;if(!Y(k))for(var Ie=R(k);;){var We=O(Ie);if(!We)return;var or=E(We);if(or.isProviderFor(z,me))return V(Ie),or}}}if(!Y(S)&&S.isProviderFor(z,me))return S}function D(z,me){var Ie=J.get(z),We;return Y(Ie)||(We=Ie.get(me)),Y(We)&&(We=pe(z,me),Y(We)||(Y(Ie)&&(Ie=new d,J.set(z,Ie)),Ie.set(me,We))),We}function L(z){if(Y(z))throw new TypeError;return $===z||x===z||!Y(k)&&k.has(z)}function H(z,me,Ie){if(!L(Ie))throw new Error("Metadata provider not registered.");var We=D(z,me);if(We!==Ie){if(!Y(We))return!1;var or=J.get(z);Y(or)&&(or=new d,J.set(z,or)),or.set(me,Ie)}return!0}}s(G,"CreateMetadataRegistry");function Ye(){var S;return!Y(v)&&Ae(r.Reflect)&&Object.isExtensible(r.Reflect)&&(S=r.Reflect[v]),Y(S)&&(S=G()),!Y(v)&&Ae(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,v,{enumerable:!1,configurable:!1,writable:!1,value:S}),S}s(Ye,"GetOrCreateMetadataRegistry");function at(S){var $=new y,x={isProviderFor:s(function(L,H){var z=$.get(L);return Y(z)?!1:z.has(H)},"isProviderFor"),OrdinaryDefineOwnMetadata:et,OrdinaryHasOwnMetadata:J,OrdinaryGetOwnMetadata:Ge,OrdinaryOwnMetadataKeys:pe,OrdinaryDeleteMetadata:D};return g.registerProvider(x),x;function k(L,H,z){var me=$.get(L),Ie=!1;if(Y(me)){if(!z)return;me=new d,$.set(L,me),Ie=!0}var We=me.get(H);if(Y(We)){if(!z)return;if(We=new d,me.set(H,We),!S.setProvider(L,H,x))throw me.delete(H),Ie&&$.delete(L),new Error("Wrong provider for target.")}return We}s(k,"GetOrCreateMetadataMap");function J(L,H,z){var me=k(H,z,!1);return Y(me)?!1:Ce(me.has(L))}s(J,"OrdinaryHasOwnMetadata");function Ge(L,H,z){var me=k(H,z,!1);if(!Y(me))return me.get(L)}s(Ge,"OrdinaryGetOwnMetadata");function et(L,H,z,me){var Ie=k(z,me,!0);Ie.set(L,H)}s(et,"OrdinaryDefineOwnMetadata");function pe(L,H){var z=[],me=k(L,H,!1);if(Y(me))return z;for(var Ie=me.keys(),We=R(Ie),or=0;;){var Mm=O(We);if(!Mm)return z.length=or,z;var KP=E(Mm);try{z[or]=KP}catch(ZP){try{V(We)}finally{throw ZP}}or++}}s(pe,"OrdinaryOwnMetadataKeys");function D(L,H,z){var me=k(H,z,!1);if(Y(me)||!me.delete(L))return!1;if(me.size===0){var Ie=$.get(H);Y(Ie)||(Ie.delete(z),Ie.size===0&&$.delete(Ie))}return!0}s(D,"OrdinaryDeleteMetadata")}s(at,"CreateMetadataProvider");function UP(S){var $=S.defineMetadata,x=S.hasOwnMetadata,k=S.getOwnMetadata,J=S.getOwnMetadataKeys,Ge=S.deleteMetadata,et=new y,pe={isProviderFor:s(function(D,L){var H=et.get(D);return!Y(H)&&H.has(L)?!0:J(D,L).length?(Y(H)&&(H=new h,et.set(D,H)),H.add(L),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:$,OrdinaryHasOwnMetadata:x,OrdinaryGetOwnMetadata:k,OrdinaryOwnMetadataKeys:J,OrdinaryDeleteMetadata:Ge};return pe}s(UP,"CreateFallbackProvider");function Hs(S,$,x){var k=g.getProvider(S,$);if(!Y(k))return k;if(x){if(g.setProvider(S,$,w))return w;throw new Error("Illegal state.")}}s(Hs,"GetMetadataProvider");function zP(){var S={},$=[],x=function(){function pe(D,L,H){this._index=0,this._keys=D,this._values=L,this._selector=H}return s(pe,"MapIterator"),pe.prototype["@@iterator"]=function(){return this},pe.prototype[a]=function(){return this},pe.prototype.next=function(){var D=this._index;if(D>=0&&D<this._keys.length){var L=this._selector(this._keys[D],this._values[D]);return D+1>=this._keys.length?(this._index=-1,this._keys=$,this._values=$):this._index++,{value:L,done:!1}}return{value:void 0,done:!0}},pe.prototype.throw=function(D){throw this._index>=0&&(this._index=-1,this._keys=$,this._values=$),D},pe.prototype.return=function(D){return this._index>=0&&(this._index=-1,this._keys=$,this._values=$),{value:D,done:!0}},pe}(),k=function(){function pe(){this._keys=[],this._values=[],this._cacheKey=S,this._cacheIndex=-2}return s(pe,"Map"),Object.defineProperty(pe.prototype,"size",{get:s(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),pe.prototype.has=function(D){return this._find(D,!1)>=0},pe.prototype.get=function(D){var L=this._find(D,!1);return L>=0?this._values[L]:void 0},pe.prototype.set=function(D,L){var H=this._find(D,!0);return this._values[H]=L,this},pe.prototype.delete=function(D){var L=this._find(D,!1);if(L>=0){for(var H=this._keys.length,z=L+1;z<H;z++)this._keys[z-1]=this._keys[z],this._values[z-1]=this._values[z];return this._keys.length--,this._values.length--,_(D,this._cacheKey)&&(this._cacheKey=S,this._cacheIndex=-2),!0}return!1},pe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=S,this._cacheIndex=-2},pe.prototype.keys=function(){return new x(this._keys,this._values,J)},pe.prototype.values=function(){return new x(this._keys,this._values,Ge)},pe.prototype.entries=function(){return new x(this._keys,this._values,et)},pe.prototype["@@iterator"]=function(){return this.entries()},pe.prototype[a]=function(){return this.entries()},pe.prototype._find=function(D,L){if(!_(this._cacheKey,D)){this._cacheIndex=-1;for(var H=0;H<this._keys.length;H++)if(_(this._keys[H],D)){this._cacheIndex=H;break}}return this._cacheIndex<0&&L&&(this._cacheIndex=this._keys.length,this._keys.push(D),this._values.push(void 0)),this._cacheIndex},pe}();return k;function J(pe,D){return pe}function Ge(pe,D){return D}function et(pe,D){return[pe,D]}}s(zP,"CreateMapPolyfill");function GP(){var S=function(){function $(){this._map=new d}return s($,"Set"),Object.defineProperty($.prototype,"size",{get:s(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),$.prototype.has=function(x){return this._map.has(x)},$.prototype.add=function(x){return this._map.set(x,x),this},$.prototype.delete=function(x){return this._map.delete(x)},$.prototype.clear=function(){this._map.clear()},$.prototype.keys=function(){return this._map.keys()},$.prototype.values=function(){return this._map.keys()},$.prototype.entries=function(){return this._map.entries()},$.prototype["@@iterator"]=function(){return this.keys()},$.prototype[a]=function(){return this.keys()},$}();return S}s(GP,"CreateSetPolyfill");function WP(){var S=16,$=p.create(),x=k();return function(){function D(){this._key=k()}return s(D,"WeakMap"),D.prototype.has=function(L){var H=J(L,!1);return H!==void 0?p.has(H,this._key):!1},D.prototype.get=function(L){var H=J(L,!1);return H!==void 0?p.get(H,this._key):void 0},D.prototype.set=function(L,H){var z=J(L,!0);return z[this._key]=H,this},D.prototype.delete=function(L){var H=J(L,!1);return H!==void 0?delete H[this._key]:!1},D.prototype.clear=function(){this._key=k()},D}();function k(){var D;do D="@@WeakMap@@"+pe();while(p.has($,D));return $[D]=!0,D}function J(D,L){if(!n.call(D,x)){if(!L)return;Object.defineProperty(D,x,{value:p.create()})}return D[x]}function Ge(D,L){for(var H=0;H<L;++H)D[H]=Math.random()*255|0;return D}function et(D){if(typeof Uint8Array=="function"){var L=new Uint8Array(D);return typeof crypto<"u"?crypto.getRandomValues(L):typeof msCrypto<"u"?msCrypto.getRandomValues(L):Ge(L,D),L}return Ge(new Array(D),D)}function pe(){var D=et(S);D[6]=D[6]&79|64,D[8]=D[8]&191|128;for(var L="",H=0;H<S;++H){var z=D[H];(H===4||H===6||H===8)&&(L+="-"),z<16&&(L+="0"),L+=z.toString(16).toLowerCase()}return L}}s(WP,"CreateWeakMapPolyfill");function Tu(S){return S.__=void 0,delete S.__,S}s(Tu,"MakeDictionary")})})(ry||(ry={}))});var Lt=b((Dt,ay)=>{"use strict";var La=/^win/.test(process.platform),Uw=/\//g,zw=/^(\w{2,}):\/\//i,oy=ay.exports,Gw=/~1/g,Ww=/~0/g,wl=[/\?/g,"%3F",/\#/g,"%23"],$l=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Dt.parse=require("url").parse;Dt.resolve=require("url").resolve;Dt.cwd=s(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Dt.getProtocol=s(function(t){let r=zw.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Dt.getExtension=s(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Dt.getHash=s(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Dt.stripHash=s(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Dt.isHttp=s(function(t){let r=oy.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Dt.isFileSystemPath=s(function(t){if(process.browser)return!1;let r=oy.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Dt.fromFileSystemPath=s(function(t){La&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<wl.length;r+=2)t=t.replace(wl[r],wl[r+1]);return t},"fromFileSystemPath");Dt.toFileSystemPath=s(function(t,r){t=decodeURI(t);for(let i=0;i<$l.length;i+=2)t=t.replace($l[i],$l[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),La&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=La?t:"/"+t)),La&&!n&&(t=t.replace(Uw,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Dt.safePointerToPath=s(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(Gw,"/").replace(Ww,"~"))},"safePointerToPath")});var Fa=b(Xs=>{"use strict";var cy=require("util"),Kw=Lt();Xs.format=cy.format;Xs.inherits=cy.inherits;Xs.swaggerParamRegExp=/\{([^/}]+)}/g;var Zw=["get","post","put","delete","patch","options","head","trace"];function El(e,t){if(e.url&&e.url.startsWith("/")){let r=Kw.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}s(El,"fixServers");function Yw(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>El(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(o=>{o==="servers"?i[o].map(a=>El(a,t)):Zw.includes(o)&&i[o].servers&&i[o].servers.map(a=>El(a,t))})})}))}s(Yw,"fixOasRelativeServers");Xs.fixOasRelativeServers=Yw});var Va=b(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.getDeepKeys=Fi.toJSON=void 0;var Jw=["function","symbol","undefined"],Qw=["constructor","prototype","__proto__"],Xw=Object.getPrototypeOf({});function e$(){let e={},t=this;for(let r of uy(t))if(typeof r=="string"){let n=t[r],i=typeof n;Jw.includes(i)||(e[r]=n)}return e}s(e$,"toJSON");Fi.toJSON=e$;function uy(e,t=[]){let r=[];for(;e&&e!==Xw;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(Qw))n.delete(i);return n}s(uy,"getDeepKeys");Fi.getDeepKeys=uy});var xl=b(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.addInspectMethod=Vi.format=void 0;var ly=require("util"),t$=Va(),fy=ly.inspect.custom||Symbol.for("nodejs.util.inspect.custom");Vi.format=ly.format;function r$(e){e[fy]=n$}s(r$,"addInspectMethod");Vi.addInspectMethod=r$;function n$(){let e={},t=this;for(let r of t$.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[fy],e}s(n$,"inspect")});var hy=b(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.lazyJoinStacks=xr.joinStacks=xr.isWritableStack=xr.isLazyStack=void 0;var i$=/\r?\n/,s$=/\bono[ @]/;function o$(e){return!!(e&&e.configurable&&typeof e.get=="function")}s(o$,"isLazyStack");xr.isLazyStack=o$;function a$(e){return!!(!e||e.writable||typeof e.set=="function")}s(a$,"isWritableStack");xr.isWritableStack=a$;function py(e,t){let r=dy(e.stack),n=t?t.stack:void 0;return r&&n?r+`
|
|
2
|
+
"use strict";var XP=Object.create;var da=Object.defineProperty;var Vm=Object.getOwnPropertyDescriptor;var ew=Object.getOwnPropertyNames;var tw=Object.getPrototypeOf,rw=Object.prototype.hasOwnProperty;var s=(e,t)=>da(e,"name",{value:t,configurable:!0});var b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var nw=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ew(t))!rw.call(e,i)&&i!==r&&da(e,i,{get:()=>t[i],enumerable:!(n=Vm(t,i))||n.enumerable});return e};var xt=(e,t,r)=>(r=e!=null?XP(tw(e)):{},nw(t||!e||!e.__esModule?da(r,"default",{value:e,enumerable:!0}):r,e));var ar=(e,t,r,n)=>{for(var i=n>1?void 0:n?Vm(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&da(t,r,i),i};var ay=b(()=>{var oy;(function(e){(function(t){var r=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:c(),n=i(e);typeof r.Reflect<"u"&&(n=i(r.Reflect,n)),t(n,r),typeof r.Reflect>"u"&&(r.Reflect=e);function i(u,l){return function(p,f){Object.defineProperty(u,p,{configurable:!0,writable:!0,value:f}),l&&l(p,f)}}s(i,"makeExporter");function o(){try{return Function("return this;")()}catch{}}s(o,"functionThis");function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}s(a,"indirectEvalThis");function c(){return o()||a()}s(c,"sloppyModeThis")})(function(t,r){var n=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",o=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",u={__proto__:[]}instanceof Array,l=!c&&!u,p={create:c?function(){return Mu(Object.create(null))}:u?function(){return Mu({__proto__:null})}:function(){return Mu({})},has:l?function(S,$){return n.call(S,$)}:function(S,$){return $ in S},get:l?function(S,$){return n.call(S,$)?S[$]:void 0}:function(S,$){return S[$]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:KP(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:ZP(),y=typeof WeakMap=="function"?WeakMap:YP(),v=i?Symbol.for("@reflect-metadata:registry"):void 0,g=Ye(),w=at(g);function A(S,$,x,T){if(Y(x)){if(!Me(S))throw new TypeError;if(!Et($))throw new TypeError;return C(S,$)}else{if(!Me(S))throw new TypeError;if(!Ae($))throw new TypeError;if(!Ae(T)&&!Y(T)&&!$t(T))throw new TypeError;return $t(T)&&(T=void 0),x=_e(x),q(S,$,x,T)}}s(A,"decorate"),t("decorate",A);function I(S,$){function x(T,J){if(!Ae(T))throw new TypeError;if(!Y(J)&&!Ci(J))throw new TypeError;Ve(S,$,T,J)}return s(x,"decorator"),x}s(I,"metadata"),t("metadata",I);function N(S,$,x,T){if(!Ae(x))throw new TypeError;return Y(T)||(T=_e(T)),Ve(S,$,x,T)}s(N,"defineMetadata"),t("defineMetadata",N);function R(S,$,x){if(!Ae($))throw new TypeError;return Y(x)||(x=_e(x)),Z(S,$,x)}s(R,"hasMetadata"),t("hasMetadata",R);function he(S,$,x){if(!Ae($))throw new TypeError;return Y(x)||(x=_e(x)),ce(S,$,x)}s(he,"hasOwnMetadata"),t("hasOwnMetadata",he);function se(S,$,x){if(!Ae($))throw new TypeError;return Y(x)||(x=_e(x)),be(S,$,x)}s(se,"getMetadata"),t("getMetadata",se);function Fe(S,$,x){if(!Ae($))throw new TypeError;return Y(x)||(x=_e(x)),ge(S,$,x)}s(Fe,"getOwnMetadata"),t("getOwnMetadata",Fe);function $e(S,$){if(!Ae(S))throw new TypeError;return Y($)||($=_e($)),$r(S,$)}s($e,"getMetadataKeys"),t("getMetadataKeys",$e);function X(S,$){if(!Ae(S))throw new TypeError;return Y($)||($=_e($)),Ee(S,$)}s(X,"getOwnMetadataKeys"),t("getOwnMetadataKeys",X);function k(S,$,x){if(!Ae($))throw new TypeError;if(Y(x)||(x=_e(x)),!Ae($))throw new TypeError;Y(x)||(x=_e(x));var T=Us($,x,!1);return Y(T)?!1:T.OrdinaryDeleteMetadata(S,$,x)}s(k,"deleteMetadata"),t("deleteMetadata",k);function C(S,$){for(var x=S.length-1;x>=0;--x){var T=S[x],J=T($);if(!Y(J)&&!$t(J)){if(!Et(J))throw new TypeError;$=J}}return $}s(C,"DecorateConstructor");function q(S,$,x,T){for(var J=S.length-1;J>=0;--J){var Ge=S[J],et=Ge($,x,T);if(!Y(et)&&!$t(et)){if(!Ae(et))throw new TypeError;T=et}}return T}s(q,"DecorateProperty");function Z(S,$,x){var T=ce(S,$,x);if(T)return!0;var J=M($);return $t(J)?!1:Z(S,J,x)}s(Z,"OrdinaryHasMetadata");function ce(S,$,x){var T=Us($,x,!1);return Y(T)?!1:Ce(T.OrdinaryHasOwnMetadata(S,$,x))}s(ce,"OrdinaryHasOwnMetadata");function be(S,$,x){var T=ce(S,$,x);if(T)return ge(S,$,x);var J=M($);if(!$t(J))return be(S,J,x)}s(be,"OrdinaryGetMetadata");function ge(S,$,x){var T=Us($,x,!1);if(!Y(T))return T.OrdinaryGetOwnMetadata(S,$,x)}s(ge,"OrdinaryGetOwnMetadata");function Ve(S,$,x,T){var J=Us(x,T,!0);J.OrdinaryDefineOwnMetadata(S,$,x,T)}s(Ve,"OrdinaryDefineOwnMetadata");function $r(S,$){var x=Ee(S,$),T=M(S);if(T===null)return x;var J=$r(T,$);if(J.length<=0)return x;if(x.length<=0)return J;for(var Ge=new h,et=[],pe=0,D=x;pe<D.length;pe++){var L=D[pe],H=Ge.has(L);H||(Ge.add(L),et.push(L))}for(var z=0,me=J;z<me.length;z++){var L=me[z],H=Ge.has(L);H||(Ge.add(L),et.push(L))}return et}s($r,"OrdinaryMetadataKeys");function Ee(S,$){var x=Us(S,$,!1);return x?x.OrdinaryOwnMetadataKeys(S,$):[]}s(Ee,"OrdinaryOwnMetadataKeys");function Ht(S){if(S===null)return 1;switch(typeof S){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return S===null?1:6;default:return 6}}s(Ht,"Type");function Y(S){return S===void 0}s(Y,"IsUndefined");function $t(S){return S===null}s($t,"IsNull");function te(S){return typeof S=="symbol"}s(te,"IsSymbol");function Ae(S){return typeof S=="object"?S!==null:typeof S=="function"}s(Ae,"IsObject");function Q(S,$){switch(Ht(S)){case 0:return S;case 1:return S;case 2:return S;case 3:return S;case 4:return S;case 5:return S}var x=$===3?"string":$===5?"number":"default",T=P(S,o);if(T!==void 0){var J=T.call(S,x);if(Ae(J))throw new TypeError;return J}return xe(S,x==="default"?"number":x)}s(Q,"ToPrimitive");function xe(S,$){if($==="string"){var x=S.toString;if(it(x)){var T=x.call(S);if(!Ae(T))return T}var J=S.valueOf;if(it(J)){var T=J.call(S);if(!Ae(T))return T}}else{var J=S.valueOf;if(it(J)){var T=J.call(S);if(!Ae(T))return T}var Ge=S.toString;if(it(Ge)){var T=Ge.call(S);if(!Ae(T))return T}}throw new TypeError}s(xe,"OrdinaryToPrimitive");function Ce(S){return!!S}s(Ce,"ToBoolean");function fe(S){return""+S}s(fe,"ToString");function _e(S){var $=Q(S,3);return te($)?$:fe($)}s(_e,"ToPropertyKey");function Me(S){return Array.isArray?Array.isArray(S):S instanceof Object?S instanceof Array:Object.prototype.toString.call(S)==="[object Array]"}s(Me,"IsArray");function it(S){return typeof S=="function"}s(it,"IsCallable");function Et(S){return typeof S=="function"}s(Et,"IsConstructor");function Ci(S){switch(Ht(S)){case 3:return!0;case 4:return!0;default:return!1}}s(Ci,"IsPropertyKey");function _(S,$){return S===$||S!==S&&$!==$}s(_,"SameValueZero");function P(S,$){var x=S[$];if(x!=null){if(!it(x))throw new TypeError;return x}}s(P,"GetMethod");function j(S){var $=P(S,a);if(!it($))throw new TypeError;var x=$.call(S);if(!Ae(x))throw new TypeError;return x}s(j,"GetIterator");function E(S){return S.value}s(E,"IteratorValue");function O(S){var $=S.next();return $.done?!1:$}s(O,"IteratorStep");function V(S){var $=S.return;$&&$.call(S)}s(V,"IteratorClose");function M(S){var $=Object.getPrototypeOf(S);if(typeof S!="function"||S===f||$!==f)return $;var x=S.prototype,T=x&&Object.getPrototypeOf(x);if(T==null||T===Object.prototype)return $;var J=T.constructor;return typeof J!="function"||J===S?$:J}s(M,"OrdinaryGetPrototypeOf");function G(){var S;!Y(v)&&typeof r.Reflect<"u"&&!(v in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(S=WP(r.Reflect));var $,x,T,J=new y,Ge={registerProvider:et,getProvider:D,setProvider:H};return Ge;function et(z){if(!Object.isExtensible(Ge))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===z:break;case Y($):$=z;break;case $===z:break;case Y(x):x=z;break;case x===z:break;default:T===void 0&&(T=new h),T.add(z);break}}function pe(z,me){if(!Y($)){if($.isProviderFor(z,me))return $;if(!Y(x)){if(x.isProviderFor(z,me))return $;if(!Y(T))for(var Ie=j(T);;){var We=O(Ie);if(!We)return;var or=E(We);if(or.isProviderFor(z,me))return V(Ie),or}}}if(!Y(S)&&S.isProviderFor(z,me))return S}function D(z,me){var Ie=J.get(z),We;return Y(Ie)||(We=Ie.get(me)),Y(We)&&(We=pe(z,me),Y(We)||(Y(Ie)&&(Ie=new d,J.set(z,Ie)),Ie.set(me,We))),We}function L(z){if(Y(z))throw new TypeError;return $===z||x===z||!Y(T)&&T.has(z)}function H(z,me,Ie){if(!L(Ie))throw new Error("Metadata provider not registered.");var We=D(z,me);if(We!==Ie){if(!Y(We))return!1;var or=J.get(z);Y(or)&&(or=new d,J.set(z,or)),or.set(me,Ie)}return!0}}s(G,"CreateMetadataRegistry");function Ye(){var S;return!Y(v)&&Ae(r.Reflect)&&Object.isExtensible(r.Reflect)&&(S=r.Reflect[v]),Y(S)&&(S=G()),!Y(v)&&Ae(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,v,{enumerable:!1,configurable:!1,writable:!1,value:S}),S}s(Ye,"GetOrCreateMetadataRegistry");function at(S){var $=new y,x={isProviderFor:s(function(L,H){var z=$.get(L);return Y(z)?!1:z.has(H)},"isProviderFor"),OrdinaryDefineOwnMetadata:et,OrdinaryHasOwnMetadata:J,OrdinaryGetOwnMetadata:Ge,OrdinaryOwnMetadataKeys:pe,OrdinaryDeleteMetadata:D};return g.registerProvider(x),x;function T(L,H,z){var me=$.get(L),Ie=!1;if(Y(me)){if(!z)return;me=new d,$.set(L,me),Ie=!0}var We=me.get(H);if(Y(We)){if(!z)return;if(We=new d,me.set(H,We),!S.setProvider(L,H,x))throw me.delete(H),Ie&&$.delete(L),new Error("Wrong provider for target.")}return We}s(T,"GetOrCreateMetadataMap");function J(L,H,z){var me=T(H,z,!1);return Y(me)?!1:Ce(me.has(L))}s(J,"OrdinaryHasOwnMetadata");function Ge(L,H,z){var me=T(H,z,!1);if(!Y(me))return me.get(L)}s(Ge,"OrdinaryGetOwnMetadata");function et(L,H,z,me){var Ie=T(z,me,!0);Ie.set(L,H)}s(et,"OrdinaryDefineOwnMetadata");function pe(L,H){var z=[],me=T(L,H,!1);if(Y(me))return z;for(var Ie=me.keys(),We=j(Ie),or=0;;){var Fm=O(We);if(!Fm)return z.length=or,z;var JP=E(Fm);try{z[or]=JP}catch(QP){try{V(We)}finally{throw QP}}or++}}s(pe,"OrdinaryOwnMetadataKeys");function D(L,H,z){var me=T(H,z,!1);if(Y(me)||!me.delete(L))return!1;if(me.size===0){var Ie=$.get(H);Y(Ie)||(Ie.delete(z),Ie.size===0&&$.delete(Ie))}return!0}s(D,"OrdinaryDeleteMetadata")}s(at,"CreateMetadataProvider");function WP(S){var $=S.defineMetadata,x=S.hasOwnMetadata,T=S.getOwnMetadata,J=S.getOwnMetadataKeys,Ge=S.deleteMetadata,et=new y,pe={isProviderFor:s(function(D,L){var H=et.get(D);return!Y(H)&&H.has(L)?!0:J(D,L).length?(Y(H)&&(H=new h,et.set(D,H)),H.add(L),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:$,OrdinaryHasOwnMetadata:x,OrdinaryGetOwnMetadata:T,OrdinaryOwnMetadataKeys:J,OrdinaryDeleteMetadata:Ge};return pe}s(WP,"CreateFallbackProvider");function Us(S,$,x){var T=g.getProvider(S,$);if(!Y(T))return T;if(x){if(g.setProvider(S,$,w))return w;throw new Error("Illegal state.")}}s(Us,"GetMetadataProvider");function KP(){var S={},$=[],x=function(){function pe(D,L,H){this._index=0,this._keys=D,this._values=L,this._selector=H}return s(pe,"MapIterator"),pe.prototype["@@iterator"]=function(){return this},pe.prototype[a]=function(){return this},pe.prototype.next=function(){var D=this._index;if(D>=0&&D<this._keys.length){var L=this._selector(this._keys[D],this._values[D]);return D+1>=this._keys.length?(this._index=-1,this._keys=$,this._values=$):this._index++,{value:L,done:!1}}return{value:void 0,done:!0}},pe.prototype.throw=function(D){throw this._index>=0&&(this._index=-1,this._keys=$,this._values=$),D},pe.prototype.return=function(D){return this._index>=0&&(this._index=-1,this._keys=$,this._values=$),{value:D,done:!0}},pe}(),T=function(){function pe(){this._keys=[],this._values=[],this._cacheKey=S,this._cacheIndex=-2}return s(pe,"Map"),Object.defineProperty(pe.prototype,"size",{get:s(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),pe.prototype.has=function(D){return this._find(D,!1)>=0},pe.prototype.get=function(D){var L=this._find(D,!1);return L>=0?this._values[L]:void 0},pe.prototype.set=function(D,L){var H=this._find(D,!0);return this._values[H]=L,this},pe.prototype.delete=function(D){var L=this._find(D,!1);if(L>=0){for(var H=this._keys.length,z=L+1;z<H;z++)this._keys[z-1]=this._keys[z],this._values[z-1]=this._values[z];return this._keys.length--,this._values.length--,_(D,this._cacheKey)&&(this._cacheKey=S,this._cacheIndex=-2),!0}return!1},pe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=S,this._cacheIndex=-2},pe.prototype.keys=function(){return new x(this._keys,this._values,J)},pe.prototype.values=function(){return new x(this._keys,this._values,Ge)},pe.prototype.entries=function(){return new x(this._keys,this._values,et)},pe.prototype["@@iterator"]=function(){return this.entries()},pe.prototype[a]=function(){return this.entries()},pe.prototype._find=function(D,L){if(!_(this._cacheKey,D)){this._cacheIndex=-1;for(var H=0;H<this._keys.length;H++)if(_(this._keys[H],D)){this._cacheIndex=H;break}}return this._cacheIndex<0&&L&&(this._cacheIndex=this._keys.length,this._keys.push(D),this._values.push(void 0)),this._cacheIndex},pe}();return T;function J(pe,D){return pe}function Ge(pe,D){return D}function et(pe,D){return[pe,D]}}s(KP,"CreateMapPolyfill");function ZP(){var S=function(){function $(){this._map=new d}return s($,"Set"),Object.defineProperty($.prototype,"size",{get:s(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),$.prototype.has=function(x){return this._map.has(x)},$.prototype.add=function(x){return this._map.set(x,x),this},$.prototype.delete=function(x){return this._map.delete(x)},$.prototype.clear=function(){this._map.clear()},$.prototype.keys=function(){return this._map.keys()},$.prototype.values=function(){return this._map.keys()},$.prototype.entries=function(){return this._map.entries()},$.prototype["@@iterator"]=function(){return this.keys()},$.prototype[a]=function(){return this.keys()},$}();return S}s(ZP,"CreateSetPolyfill");function YP(){var S=16,$=p.create(),x=T();return function(){function D(){this._key=T()}return s(D,"WeakMap"),D.prototype.has=function(L){var H=J(L,!1);return H!==void 0?p.has(H,this._key):!1},D.prototype.get=function(L){var H=J(L,!1);return H!==void 0?p.get(H,this._key):void 0},D.prototype.set=function(L,H){var z=J(L,!0);return z[this._key]=H,this},D.prototype.delete=function(L){var H=J(L,!1);return H!==void 0?delete H[this._key]:!1},D.prototype.clear=function(){this._key=T()},D}();function T(){var D;do D="@@WeakMap@@"+pe();while(p.has($,D));return $[D]=!0,D}function J(D,L){if(!n.call(D,x)){if(!L)return;Object.defineProperty(D,x,{value:p.create()})}return D[x]}function Ge(D,L){for(var H=0;H<L;++H)D[H]=Math.random()*255|0;return D}function et(D){if(typeof Uint8Array=="function"){var L=new Uint8Array(D);return typeof crypto<"u"?crypto.getRandomValues(L):typeof msCrypto<"u"?msCrypto.getRandomValues(L):Ge(L,D),L}return Ge(new Array(D),D)}function pe(){var D=et(S);D[6]=D[6]&79|64,D[8]=D[8]&191|128;for(var L="",H=0;H<S;++H){var z=D[H];(H===4||H===6||H===8)&&(L+="-"),z<16&&(L+="0"),L+=z.toString(16).toLowerCase()}return L}}s(YP,"CreateWeakMapPolyfill");function Mu(S){return S.__=void 0,delete S.__,S}s(Mu,"MakeDictionary")})})(oy||(oy={}))});var Lt=b((Dt,fy)=>{"use strict";var Fa=/^win/.test(process.platform),Ww=/\//g,Kw=/^(\w{2,}):\/\//i,ly=fy.exports,Zw=/~1/g,Yw=/~0/g,xl=[/\?/g,"%3F",/\#/g,"%23"],Al=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Dt.parse=require("url").parse;Dt.resolve=require("url").resolve;Dt.cwd=s(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Dt.getProtocol=s(function(t){let r=Kw.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Dt.getExtension=s(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Dt.getHash=s(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Dt.stripHash=s(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Dt.isHttp=s(function(t){let r=ly.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Dt.isFileSystemPath=s(function(t){if(process.browser)return!1;let r=ly.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Dt.fromFileSystemPath=s(function(t){Fa&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<xl.length;r+=2)t=t.replace(xl[r],xl[r+1]);return t},"fromFileSystemPath");Dt.toFileSystemPath=s(function(t,r){t=decodeURI(t);for(let i=0;i<Al.length;i+=2)t=t.replace(Al[i],Al[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),Fa&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=Fa?t:"/"+t)),Fa&&!n&&(t=t.replace(Ww,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Dt.safePointerToPath=s(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(Zw,"/").replace(Yw,"~"))},"safePointerToPath")});var Va=b(eo=>{"use strict";var py=require("util"),Jw=Lt();eo.format=py.format;eo.inherits=py.inherits;eo.swaggerParamRegExp=/\{([^/}]+)}/g;var Qw=["get","post","put","delete","patch","options","head","trace"];function Cl(e,t){if(e.url&&e.url.startsWith("/")){let r=Jw.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}s(Cl,"fixServers");function Xw(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>Cl(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(o=>{o==="servers"?i[o].map(a=>Cl(a,t)):Qw.includes(o)&&i[o].servers&&i[o].servers.map(a=>Cl(a,t))})})}))}s(Xw,"fixOasRelativeServers");eo.fixOasRelativeServers=Xw});var Ba=b(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.getDeepKeys=Fi.toJSON=void 0;var e$=["function","symbol","undefined"],t$=["constructor","prototype","__proto__"],r$=Object.getPrototypeOf({});function n$(){let e={},t=this;for(let r of dy(t))if(typeof r=="string"){let n=t[r],i=typeof n;e$.includes(i)||(e[r]=n)}return e}s(n$,"toJSON");Fi.toJSON=n$;function dy(e,t=[]){let r=[];for(;e&&e!==r$;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(t$))n.delete(i);return n}s(dy,"getDeepKeys");Fi.getDeepKeys=dy});var Il=b(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.addInspectMethod=Vi.format=void 0;var hy=require("util"),i$=Ba(),my=hy.inspect.custom||Symbol.for("nodejs.util.inspect.custom");Vi.format=hy.format;function s$(e){e[my]=o$}s(s$,"addInspectMethod");Vi.addInspectMethod=s$;function o$(){let e={},t=this;for(let r of i$.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[my],e}s(o$,"inspect")});var vy=b(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.lazyJoinStacks=Ar.joinStacks=Ar.isWritableStack=Ar.isLazyStack=void 0;var a$=/\r?\n/,c$=/\bono[ @]/;function u$(e){return!!(e&&e.configurable&&typeof e.get=="function")}s(u$,"isLazyStack");Ar.isLazyStack=u$;function l$(e){return!!(!e||e.writable||typeof e.set=="function")}s(l$,"isWritableStack");Ar.isWritableStack=l$;function gy(e,t){let r=yy(e.stack),n=t?t.stack:void 0;return r&&n?r+`
|
|
3
3
|
|
|
4
|
-
`+n:r||n}s(
|
|
5
|
-
`)}return e}s(
|
|
6
|
-
`:"")+r.message),{originalError:r,props:n,message:o}}s(g$,"normalizeArgs");Bi.normalizeArgs=g$});var Cl=b(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.Ono=void 0;var Ua=yy(),by=vy(),y$=Va(),v$=Al;za.Ono=v$;function Al(e,t){t=by.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=by.normalizeArgs(n,t),c=new e(a);return Ua.extendError(c,i,o)}return s(r,"ono"),r[Symbol.species]=e,r}s(Al,"Ono");Al.toJSON=s(function(t){return y$.toJSON.call(t)},"toJSON");Al.extend=s(function(t,r,n){return n||r instanceof Error?Ua.extendError(t,r,n):r?Ua.extendError(t,void 0,r):Ua.extendError(t)},"extend")});var _y=b(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.ono=void 0;var Zn=Cl(),b$=Ar;Ga.ono=b$;Ar.error=new Zn.Ono(Error);Ar.eval=new Zn.Ono(EvalError);Ar.range=new Zn.Ono(RangeError);Ar.reference=new Zn.Ono(ReferenceError);Ar.syntax=new Zn.Ono(SyntaxError);Ar.type=new Zn.Ono(TypeError);Ar.uri=new Zn.Ono(URIError);var _$=Ar;function Ar(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(_$))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 Ar.error.apply(void 0,e)}s(Ar,"ono")});var Oy=b(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var E5=require("util")});var dr=b((pr,Hi)=>{"use strict";var S$=pr&&pr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:s(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),O$=pr&&pr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&S$(t,e,r)};Object.defineProperty(pr,"__esModule",{value:!0});pr.ono=void 0;var Py=_y();Object.defineProperty(pr,"ono",{enumerable:!0,get:s(function(){return Py.ono},"get")});var P$=Cl();Object.defineProperty(pr,"Ono",{enumerable:!0,get:s(function(){return P$.Ono},"get")});O$(Oy(),pr);pr.default=Py.ono;typeof Hi=="object"&&typeof Hi.exports=="object"&&(Hi.exports=Object.assign(Hi.exports.default,Hi.exports))});var ro=b(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.regexpCode=Se.getEsmExportName=Se.getProperty=Se.safeStringify=Se.stringify=Se.strConcat=Se.addCodeArg=Se.str=Se._=Se.nil=Se._Code=Se.Name=Se.IDENTIFIER=Se._CodeOrName=void 0;var Rl=class Rl{};s(Rl,"_CodeOrName");var eo=Rl;Se._CodeOrName=eo;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Tl=class Tl extends eo{constructor(t){if(super(),!Se.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};s(Tl,"Name");var Yn=Tl;Se.Name=Yn;var kl=class kl extends eo{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 Yn&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s(kl,"_Code");var Yt=kl;Se._Code=Yt;Se.nil=new Yt("");function wy(e,...t){let r=[e[0]],n=0;for(;n<t.length;)jl(r,t[n]),r.push(e[++n]);return new Yt(r)}s(wy,"_");Se._=wy;var Il=new Yt("+");function $y(e,...t){let r=[to(e[0])],n=0;for(;n<t.length;)r.push(Il),jl(r,t[n]),r.push(Il,to(e[++n]));return w$(r),new Yt(r)}s($y,"str");Se.str=$y;function jl(e,t){t instanceof Yt?e.push(...t._items):t instanceof Yn?e.push(t):e.push(x$(t))}s(jl,"addCodeArg");Se.addCodeArg=jl;function w$(e){let t=1;for(;t<e.length-1;){if(e[t]===Il){let r=$$(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}s(w$,"optimize");function $$(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Yn||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 Yn))return`"${e}${t.slice(1)}`}s($$,"mergeExprItems");function E$(e,t){return t.emptyStr()?e:e.emptyStr()?t:$y`${e}${t}`}s(E$,"strConcat");Se.strConcat=E$;function x$(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:to(Array.isArray(e)?e.join(","):e)}s(x$,"interpolate");function A$(e){return new Yt(to(e))}s(A$,"stringify");Se.stringify=A$;function to(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(to,"safeStringify");Se.safeStringify=to;function C$(e){return typeof e=="string"&&Se.IDENTIFIER.test(e)?new Yt(`.${e}`):wy`[${e}]`}s(C$,"getProperty");Se.getProperty=C$;function I$(e){if(typeof e=="string"&&Se.IDENTIFIER.test(e))return new Yt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(I$,"getEsmExportName");Se.getEsmExportName=I$;function j$(e){return new Yt(e.toString())}s(j$,"regexpCode");Se.regexpCode=j$});var Vl=b(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.ValueScope=Ct.ValueScopeName=Ct.Scope=Ct.varKinds=Ct.UsedValueState=void 0;var At=ro(),ql=class ql extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s(ql,"ValueError");var Nl=ql,Wa;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Wa||(Ct.UsedValueState=Wa={}));Ct.varKinds={const:new At.Name("const"),let:new At.Name("let"),var:new At.Name("var")};var Dl=class Dl{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof At.Name?t:this.name(t)}name(t){return new At.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};s(Dl,"Scope");var Ka=Dl;Ct.Scope=Ka;var Ll=class Ll extends At.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,At._)`.${new At.Name(r)}[${n}]`}};s(Ll,"ValueScopeName");var Za=Ll;Ct.ValueScopeName=Za;var R$=(0,At._)`\n`,Fl=class Fl extends Ka{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?R$:At.nil}}get(){return this._scope}name(t){return new Za(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[o];if(c){let p=c.get(a);if(p)return p}else c=this._values[o]=new Map;c.set(a,i);let u=this._scope[o]||(this._scope[o]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:o,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,At._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=At.nil;for(let a in t){let 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,Wa.Started);let p=r(l);if(p){let f=this.opts.es5?Ct.varKinds.var:Ct.varKinds.const;o=(0,At._)`${o}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))o=(0,At._)`${o}${p}${this.opts._n}`;else throw new Nl(l);u.set(l,Wa.Completed)})}return o}};s(Fl,"ValueScope");var Ml=Fl;Ct.ValueScope=Ml});var oe=b(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.or=ue.and=ue.not=ue.CodeGen=ue.operators=ue.varKinds=ue.ValueScopeName=ue.ValueScope=ue.Scope=ue.Name=ue.regexpCode=ue.stringify=ue.getProperty=ue.nil=ue.strConcat=ue.str=ue._=void 0;var ye=ro(),hr=Vl(),ln=ro();Object.defineProperty(ue,"_",{enumerable:!0,get:s(function(){return ln._},"get")});Object.defineProperty(ue,"str",{enumerable:!0,get:s(function(){return ln.str},"get")});Object.defineProperty(ue,"strConcat",{enumerable:!0,get:s(function(){return ln.strConcat},"get")});Object.defineProperty(ue,"nil",{enumerable:!0,get:s(function(){return ln.nil},"get")});Object.defineProperty(ue,"getProperty",{enumerable:!0,get:s(function(){return ln.getProperty},"get")});Object.defineProperty(ue,"stringify",{enumerable:!0,get:s(function(){return ln.stringify},"get")});Object.defineProperty(ue,"regexpCode",{enumerable:!0,get:s(function(){return ln.regexpCode},"get")});Object.defineProperty(ue,"Name",{enumerable:!0,get:s(function(){return ln.Name},"get")});var Xa=Vl();Object.defineProperty(ue,"Scope",{enumerable:!0,get:s(function(){return Xa.Scope},"get")});Object.defineProperty(ue,"ValueScope",{enumerable:!0,get:s(function(){return Xa.ValueScope},"get")});Object.defineProperty(ue,"ValueScopeName",{enumerable:!0,get:s(function(){return Xa.ValueScopeName},"get")});Object.defineProperty(ue,"varKinds",{enumerable:!0,get:s(function(){return Xa.varKinds},"get")});ue.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 ef=class ef{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(ef,"Node");var zr=ef,tf=class tf extends zr{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?hr.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=Gi(this.rhs,t,r)),this}get names(){return this.rhs instanceof ye._CodeOrName?this.rhs.names:{}}};s(tf,"Def");var Bl=tf,rf=class rf extends zr{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=Gi(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ye.Name?{}:{...this.lhs.names};return Qa(t,this.rhs)}};s(rf,"Assign");var Ya=rf,nf=class nf extends Ya{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(nf,"AssignOp");var Hl=nf,sf=class sf extends zr{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(sf,"Label");var Ul=sf,of=class of extends zr{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(of,"Break");var zl=of,af=class af extends zr{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(af,"Throw");var Gl=af,cf=class cf extends zr{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=Gi(this.code,t,r),this}get names(){return this.code instanceof ye._CodeOrName?this.code.names:{}}};s(cf,"AnyCode");var Wl=cf,uf=class uf extends zr{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(T$(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Xn(t,r.names),{})}};s(uf,"ParentNode");var no=uf,lf=class lf extends no{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(lf,"BlockNode");var Gr=lf,ff=class ff extends no{};s(ff,"Root");var Kl=ff,pf=class pf extends Gr{};s(pf,"Else");var zi=pf;zi.kind="else";var Ui=class Ui extends Gr{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 zi(n):n}if(r)return t===!1?r instanceof Ui?r:r.nodes:this.nodes.length?this:new Ui(Ey(t),r instanceof Ui?[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=Gi(this.condition,t,r),this}get names(){let t=super.names;return Qa(t,this.condition),this.else&&Xn(t,this.else.names),t}};s(Ui,"If");var Jn=Ui;Jn.kind="if";var df=class df extends Gr{};s(df,"For");var Qn=df;Qn.kind="for";var hf=class hf extends Qn{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=Gi(this.iteration,t,r),this}get names(){return Xn(super.names,this.iteration.names)}};s(hf,"ForLoop");var Zl=hf,mf=class mf extends Qn{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?hr.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=Qa(super.names,this.from);return Qa(t,this.to)}};s(mf,"ForRange");var Yl=mf,gf=class gf extends Qn{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=Gi(this.iterable,t,r),this}get names(){return Xn(super.names,this.iterable.names)}};s(gf,"ForIter");var Ja=gf,yf=class yf extends Gr{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};s(yf,"Func");var io=yf;io.kind="func";var vf=class vf extends no{render(t){return"return "+super.render(t)}};s(vf,"Return");var so=vf;so.kind="return";var bf=class bf extends Gr{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&&Xn(t,this.catch.names),this.finally&&Xn(t,this.finally.names),t}};s(bf,"Try");var Jl=bf,_f=class _f extends Gr{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(_f,"Catch");var oo=_f;oo.kind="catch";var Sf=class Sf extends Gr{render(t){return"finally"+super.render(t)}};s(Sf,"Finally");var ao=Sf;ao.kind="finally";var Of=class Of{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
7
|
-
`:""},this._extScope=t,this._scope=new hr.Scope({parent:t}),this._nodes=[new Kl]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new Bl(t,o,n)),o}const(t,r,n){return this._def(hr.varKinds.const,t,r,n)}let(t,r,n){return this._def(hr.varKinds.let,t,r,n)}var(t,r,n){return this._def(hr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Ya(t,r,n))}add(t,r){return this._leafNode(new Hl(t,ue.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ye.nil&&this._leafNode(new Wl(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 Jn(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 Jn(t))}else(){return this._elseNode(new zi)}endIf(){return this._endBlockNode(Jn,zi)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Zl(t),r)}forRange(t,r,n,i,o=this.opts.es5?hr.varKinds.var:hr.varKinds.let){let a=this._scope.toName(t);return this._for(new Yl(o,a,r,n),()=>i(a))}forOf(t,r,n,i=hr.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof ye.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ye._)`${a}.length`,c=>{this.var(o,(0,ye._)`${a}[${c}]`),n(o)})}return this._for(new Ja("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?hr.varKinds.var:hr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ye._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new Ja("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(Qn)}label(t){return this._leafNode(new Ul(t))}break(t){return this._leafNode(new zl(t))}return(t){let r=new so;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(so)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Jl;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new oo(o),r(o)}return n&&(this._currNode=i.finally=new ao,this.code(n)),this._endBlockNode(oo,ao)}throw(t){return this._leafNode(new Gl(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 io(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(io)}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 Jn))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};s(Of,"CodeGen");var Ql=Of;ue.CodeGen=Ql;function Xn(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(Xn,"addNames");function Qa(e,t){return t instanceof ye._CodeOrName?Xn(e,t.names):e}s(Qa,"addExprNames");function Gi(e,t,r){if(e instanceof ye.Name)return n(e);if(!i(e))return e;return new ye._Code(e._items.reduce((o,a)=>(a instanceof ye.Name&&(a=n(a)),a instanceof ye._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=r[o.str];return a===void 0||t[o.str]!==1?o:(delete t[o.str],a)}function i(o){return o instanceof ye._Code&&o._items.some(a=>a instanceof ye.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(Gi,"optimizeExpr");function T$(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(T$,"subtractNames");function Ey(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ye._)`!${Xl(e)}`}s(Ey,"not");ue.not=Ey;var k$=xy(ue.operators.AND);function N$(...e){return e.reduce(k$)}s(N$,"and");ue.and=N$;var M$=xy(ue.operators.OR);function q$(...e){return e.reduce(M$)}s(q$,"or");ue.or=q$;function xy(e){return(t,r)=>t===ye.nil?r:r===ye.nil?t:(0,ye._)`${Xl(t)} ${e} ${Xl(r)}`}s(xy,"mappend");function Xl(e){return e instanceof ye.Name?e:(0,ye._)`(${e})`}s(Xl,"par")});var de=b(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.checkStrictMode=le.getErrorPath=le.Type=le.useFunc=le.setEvaluated=le.evaluatedPropsToName=le.mergeEvaluated=le.eachItem=le.unescapeJsonPointer=le.escapeJsonPointer=le.escapeFragment=le.unescapeFragment=le.schemaRefOrVal=le.schemaHasRulesButRef=le.schemaHasRules=le.checkUnknownRules=le.alwaysValidSchema=le.toHash=void 0;var we=oe(),D$=ro();function L$(e){let t={};for(let r of e)t[r]=!0;return t}s(L$,"toHash");le.toHash=L$;function F$(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Iy(e,t),!jy(t,e.self.RULES.all))}s(F$,"alwaysValidSchema");le.alwaysValidSchema=F$;function Iy(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||ky(e,`unknown keyword: "${o}"`)}s(Iy,"checkUnknownRules");le.checkUnknownRules=Iy;function jy(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s(jy,"schemaHasRules");le.schemaHasRules=jy;function V$(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}s(V$,"schemaHasRulesButRef");le.schemaHasRulesButRef=V$;function B$({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,we._)`${r}`}return(0,we._)`${e}${t}${(0,we.getProperty)(n)}`}s(B$,"schemaRefOrVal");le.schemaRefOrVal=B$;function H$(e){return Ry(decodeURIComponent(e))}s(H$,"unescapeFragment");le.unescapeFragment=H$;function U$(e){return encodeURIComponent(wf(e))}s(U$,"escapeFragment");le.escapeFragment=U$;function wf(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(wf,"escapeJsonPointer");le.escapeJsonPointer=wf;function Ry(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(Ry,"unescapeJsonPointer");le.unescapeJsonPointer=Ry;function z$(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(z$,"eachItem");le.eachItem=z$;function Ay({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,c)=>{let u=a===void 0?o:a instanceof we.Name?(o instanceof we.Name?e(i,o,a):t(i,o,a),a):o instanceof we.Name?(t(i,a,o),o):r(o,a);return c===we.Name&&!(u instanceof we.Name)?n(i,u):u}}s(Ay,"makeMergeEvaluated");le.mergeEvaluated={props:Ay({mergeNames:s((e,t,r)=>e.if((0,we._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,we._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,we._)`${r} || {}`).code((0,we._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,we._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,we._)`${r} || {}`),$f(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Ty}),items:Ay({mergeNames:s((e,t,r)=>e.if((0,we._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,we._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,we._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,we._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:s((e,t)=>e.var("items",t),"resultToName")})};function Ty(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,we._)`{}`);return t!==void 0&&$f(e,r,t),r}s(Ty,"evaluatedPropsToName");le.evaluatedPropsToName=Ty;function $f(e,t,r){Object.keys(r).forEach(n=>e.assign((0,we._)`${t}${(0,we.getProperty)(n)}`,!0))}s($f,"setEvaluated");le.setEvaluated=$f;var Cy={};function G$(e,t){return e.scopeValue("func",{ref:t,code:Cy[t.code]||(Cy[t.code]=new D$._Code(t.code))})}s(G$,"useFunc");le.useFunc=G$;var Pf;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Pf||(le.Type=Pf={}));function W$(e,t,r){if(e instanceof we.Name){let n=t===Pf.Num;return r?n?(0,we._)`"[" + ${e} + "]"`:(0,we._)`"['" + ${e} + "']"`:n?(0,we._)`"/" + ${e}`:(0,we._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,we.getProperty)(e).toString():"/"+wf(e)}s(W$,"getErrorPath");le.getErrorPath=W$;function ky(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}s(ky,"checkStrictMode");le.checkStrictMode=ky});var Jt=b(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});var ft=oe(),K$={data:new ft.Name("data"),valCxt:new ft.Name("valCxt"),instancePath:new ft.Name("instancePath"),parentData:new ft.Name("parentData"),parentDataProperty:new ft.Name("parentDataProperty"),rootData:new ft.Name("rootData"),dynamicAnchors:new ft.Name("dynamicAnchors"),vErrors:new ft.Name("vErrors"),errors:new ft.Name("errors"),this:new ft.Name("this"),self:new ft.Name("self"),scope:new ft.Name("scope"),json:new ft.Name("json"),jsonPos:new ft.Name("jsonPos"),jsonLen:new ft.Name("jsonLen"),jsonPart:new ft.Name("jsonPart")};Ef.default=K$});var co=b(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.extendErrors=pt.resetErrorsCount=pt.reportExtraError=pt.reportError=pt.keyword$DataError=pt.keywordError=void 0;var ve=oe(),ec=de(),bt=Jt();pt.keywordError={message:s(({keyword:e})=>(0,ve.str)`must pass "${e}" keyword validation`,"message")};pt.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,ve.str)`"${e}" keyword must be ${t} ($data)`:(0,ve.str)`"${e}" keyword is invalid ($data)`,"message")};function Z$(e,t=pt.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:c}=i,u=qy(e,t,r);n??(a||c)?Ny(o,u):My(i,(0,ve._)`[${u}]`)}s(Z$,"reportError");pt.reportError=Z$;function Y$(e,t=pt.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,c=qy(e,t,r);Ny(i,c),o||a||My(n,bt.default.vErrors)}s(Y$,"reportExtraError");pt.reportExtraError=Y$;function J$(e,t){e.assign(bt.default.errors,t),e.if((0,ve._)`${bt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ve._)`${bt.default.vErrors}.length`,t),()=>e.assign(bt.default.vErrors,null)))}s(J$,"resetErrorsCount");pt.resetErrorsCount=J$;function Q$({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,bt.default.errors,c=>{e.const(a,(0,ve._)`${bt.default.vErrors}[${c}]`),e.if((0,ve._)`${a}.instancePath === undefined`,()=>e.assign((0,ve._)`${a}.instancePath`,(0,ve.strConcat)(bt.default.instancePath,o.errorPath))),e.assign((0,ve._)`${a}.schemaPath`,(0,ve.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,ve._)`${a}.schema`,r),e.assign((0,ve._)`${a}.data`,n))})}s(Q$,"extendErrors");pt.extendErrors=Q$;function Ny(e,t){let r=e.const("err",t);e.if((0,ve._)`${bt.default.vErrors} === null`,()=>e.assign(bt.default.vErrors,(0,ve._)`[${r}]`),(0,ve._)`${bt.default.vErrors}.push(${r})`),e.code((0,ve._)`${bt.default.errors}++`)}s(Ny,"addError");function My(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,ve._)`new ${e.ValidationError}(${t})`):(r.assign((0,ve._)`${n}.errors`,t),r.return(!1))}s(My,"returnErrors");var ei={keyword:new ve.Name("keyword"),schemaPath:new ve.Name("schemaPath"),params:new ve.Name("params"),propertyName:new ve.Name("propertyName"),message:new ve.Name("message"),schema:new ve.Name("schema"),parentSchema:new ve.Name("parentSchema")};function qy(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,ve._)`{}`:X$(e,t,r)}s(qy,"errorObjectCode");function X$(e,t,r={}){let{gen:n,it:i}=e,o=[eE(i,r),tE(e,r)];return rE(e,t,o),n.object(...o)}s(X$,"errorObject");function eE({errorPath:e},{instancePath:t}){let r=t?(0,ve.str)`${e}${(0,ec.getErrorPath)(t,ec.Type.Str)}`:e;return[bt.default.instancePath,(0,ve.strConcat)(bt.default.instancePath,r)]}s(eE,"errorInstancePath");function tE({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,ve.str)`${t}/${e}`;return r&&(i=(0,ve.str)`${i}${(0,ec.getErrorPath)(r,ec.Type.Str)}`),[ei.schemaPath,i]}s(tE,"errorSchemaPath");function rE(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:a,it:c}=e,{opts:u,propertyName:l,topSchemaRef:p,schemaPath:f}=c;n.push([ei.keyword,i],[ei.params,typeof t=="function"?t(e):t||(0,ve._)`{}`]),u.messages&&n.push([ei.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([ei.schema,a],[ei.parentSchema,(0,ve._)`${p}${f}`],[bt.default.data,o]),l&&n.push([ei.propertyName,l])}s(rE,"extraErrorProps")});var Ly=b(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.boolOrEmptySchema=Wi.topBoolOrEmptySchema=void 0;var nE=co(),iE=oe(),sE=Jt(),oE={message:"boolean schema is false"};function aE(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Dy(e,!1):typeof r=="object"&&r.$async===!0?t.return(sE.default.data):(t.assign((0,iE._)`${n}.errors`,null),t.return(!0))}s(aE,"topBoolOrEmptySchema");Wi.topBoolOrEmptySchema=aE;function cE(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Dy(e)):r.var(t,!0)}s(cE,"boolOrEmptySchema");Wi.boolOrEmptySchema=cE;function Dy(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,nE.reportError)(i,oE,void 0,t)}s(Dy,"falseSchemaError")});var xf=b(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.getRules=Ki.isJSONType=void 0;var uE=["string","number","integer","boolean","null","object","array"],lE=new Set(uE);function fE(e){return typeof e=="string"&&lE.has(e)}s(fE,"isJSONType");Ki.isJSONType=fE;function pE(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}s(pE,"getRules");Ki.getRules=pE});var Af=b(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.shouldUseRule=fn.shouldUseGroup=fn.schemaHasRulesForType=void 0;function dE({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Fy(e,n)}s(dE,"schemaHasRulesForType");fn.schemaHasRulesForType=dE;function Fy(e,t){return t.rules.some(r=>Vy(e,r))}s(Fy,"shouldUseGroup");fn.shouldUseGroup=Fy;function Vy(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}s(Vy,"shouldUseRule");fn.shouldUseRule=Vy});var uo=b(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.reportTypeError=dt.checkDataTypes=dt.checkDataType=dt.coerceAndCheckDataType=dt.getJSONTypes=dt.getSchemaTypes=dt.DataType=void 0;var hE=xf(),mE=Af(),gE=co(),ae=oe(),By=de(),Zi;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Zi||(dt.DataType=Zi={}));function yE(e){let t=Hy(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}s(yE,"getSchemaTypes");dt.getSchemaTypes=yE;function Hy(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(hE.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(Hy,"getJSONTypes");dt.getJSONTypes=Hy;function vE(e,t){let{gen:r,data:n,opts:i}=e,o=bE(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,mE.schemaHasRulesForType)(e,t[0]));if(a){let c=If(t,n,i.strictNumbers,Zi.Wrong);r.if(c,()=>{o.length?_E(e,t,o):jf(e)})}return a}s(vE,"coerceAndCheckDataType");dt.coerceAndCheckDataType=vE;var Uy=new Set(["string","number","integer","boolean","null"]);function bE(e,t){return t?e.filter(r=>Uy.has(r)||t==="array"&&r==="array"):[]}s(bE,"coerceToTypes");function _E(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,ae._)`typeof ${i}`),c=n.let("coerced",(0,ae._)`undefined`);o.coerceTypes==="array"&&n.if((0,ae._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,ae._)`${i}[0]`).assign(a,(0,ae._)`typeof ${i}`).if(If(t,i,o.strictNumbers),()=>n.assign(c,i))),n.if((0,ae._)`${c} !== undefined`);for(let l of r)(Uy.has(l)||l==="array"&&o.coerceTypes==="array")&&u(l);n.else(),jf(e),n.endIf(),n.if((0,ae._)`${c} !== undefined`,()=>{n.assign(i,c),SE(e,c)});function u(l){switch(l){case"string":n.elseIf((0,ae._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,ae._)`"" + ${i}`).elseIf((0,ae._)`${i} === null`).assign(c,(0,ae._)`""`);return;case"number":n.elseIf((0,ae._)`${a} == "boolean" || ${i} === null
|
|
4
|
+
`+n:r||n}s(gy,"joinStacks");Ar.joinStacks=gy;function f$(e,t,r){r?Object.defineProperty(t,"stack",{get:s(()=>{let n=e.get.apply(t);return gy({stack:n},r)},"get"),enumerable:!1,configurable:!0}):p$(t,e)}s(f$,"lazyJoinStacks");Ar.lazyJoinStacks=f$;function yy(e){if(e){let t=e.split(a$),r;for(let n=0;n<t.length;n++){let i=t[n];if(c$.test(i))r===void 0&&(r=n);else if(r!==void 0){t.splice(r,n-r);break}}if(t.length>0)return t.join(`
|
|
5
|
+
`)}return e}s(yy,"popStack");function p$(e,t){Object.defineProperty(e,"stack",{get:s(()=>yy(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}s(p$,"lazyPopStack")});var Sy=b(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.extendError=void 0;var by=Il(),Ha=vy(),_y=Ba(),d$=["name","message","stack"];function h$(e,t,r){let n=e;return m$(n,t),t&&typeof t=="object"&&g$(n,t),n.toJSON=_y.toJSON,by.addInspectMethod&&by.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}s(h$,"extendError");Ua.extendError=h$;function m$(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");Ha.isLazyStack(r)?Ha.lazyJoinStacks(r,e,t):Ha.isWritableStack(r)&&(e.stack=Ha.joinStacks(e,t))}s(m$,"extendStack");function g$(e,t){let r=_y.getDeepKeys(t,d$),n=e,i=t;for(let o of r)if(n[o]===void 0)try{n[o]=i[o]}catch{}}s(g$,"mergeErrors")});var Oy=b(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.normalizeArgs=Bi.normalizeOptions=void 0;var y$=Il();function v$(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?y$.format:typeof e.format=="function"?e.format:!1}}s(v$,"normalizeOptions");Bi.normalizeOptions=v$;function b$(e,t){let r,n,i,o="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?o=t.format.apply(void 0,i):o=i.join(" ")),t.concatMessages&&r&&r.message&&(o+=(o?`
|
|
6
|
+
`:"")+r.message),{originalError:r,props:n,message:o}}s(b$,"normalizeArgs");Bi.normalizeArgs=b$});var Rl=b(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.Ono=void 0;var za=Sy(),Py=Oy(),_$=Ba(),S$=jl;Ga.Ono=S$;function jl(e,t){t=Py.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=Py.normalizeArgs(n,t),c=new e(a);return za.extendError(c,i,o)}return s(r,"ono"),r[Symbol.species]=e,r}s(jl,"Ono");jl.toJSON=s(function(t){return _$.toJSON.call(t)},"toJSON");jl.extend=s(function(t,r,n){return n||r instanceof Error?za.extendError(t,r,n):r?za.extendError(t,void 0,r):za.extendError(t)},"extend")});var wy=b(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.ono=void 0;var Zn=Rl(),O$=Cr;Wa.ono=O$;Cr.error=new Zn.Ono(Error);Cr.eval=new Zn.Ono(EvalError);Cr.range=new Zn.Ono(RangeError);Cr.reference=new Zn.Ono(ReferenceError);Cr.syntax=new Zn.Ono(SyntaxError);Cr.type=new Zn.Ono(TypeError);Cr.uri=new Zn.Ono(URIError);var P$=Cr;function Cr(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(P$))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 Cr.error.apply(void 0,e)}s(Cr,"ono")});var Ey=b($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});var j5=require("util")});var dr=b((pr,Hi)=>{"use strict";var w$=pr&&pr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:s(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),$$=pr&&pr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&w$(t,e,r)};Object.defineProperty(pr,"__esModule",{value:!0});pr.ono=void 0;var xy=wy();Object.defineProperty(pr,"ono",{enumerable:!0,get:s(function(){return xy.ono},"get")});var E$=Rl();Object.defineProperty(pr,"Ono",{enumerable:!0,get:s(function(){return E$.Ono},"get")});$$(Ey(),pr);pr.default=xy.ono;typeof Hi=="object"&&typeof Hi.exports=="object"&&(Hi.exports=Object.assign(Hi.exports.default,Hi.exports))});var no=b(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.regexpCode=Se.getEsmExportName=Se.getProperty=Se.safeStringify=Se.stringify=Se.strConcat=Se.addCodeArg=Se.str=Se._=Se.nil=Se._Code=Se.Name=Se.IDENTIFIER=Se._CodeOrName=void 0;var kl=class kl{};s(kl,"_CodeOrName");var to=kl;Se._CodeOrName=to;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ml=class Ml extends to{constructor(t){if(super(),!Se.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};s(Ml,"Name");var Yn=Ml;Se.Name=Yn;var ql=class ql extends to{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 Yn&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s(ql,"_Code");var Yt=ql;Se._Code=Yt;Se.nil=new Yt("");function Ay(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Nl(r,t[n]),r.push(e[++n]);return new Yt(r)}s(Ay,"_");Se._=Ay;var Tl=new Yt("+");function Cy(e,...t){let r=[ro(e[0])],n=0;for(;n<t.length;)r.push(Tl),Nl(r,t[n]),r.push(Tl,ro(e[++n]));return x$(r),new Yt(r)}s(Cy,"str");Se.str=Cy;function Nl(e,t){t instanceof Yt?e.push(...t._items):t instanceof Yn?e.push(t):e.push(I$(t))}s(Nl,"addCodeArg");Se.addCodeArg=Nl;function x$(e){let t=1;for(;t<e.length-1;){if(e[t]===Tl){let r=A$(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}s(x$,"optimize");function A$(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Yn||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 Yn))return`"${e}${t.slice(1)}`}s(A$,"mergeExprItems");function C$(e,t){return t.emptyStr()?e:e.emptyStr()?t:Cy`${e}${t}`}s(C$,"strConcat");Se.strConcat=C$;function I$(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ro(Array.isArray(e)?e.join(","):e)}s(I$,"interpolate");function j$(e){return new Yt(ro(e))}s(j$,"stringify");Se.stringify=j$;function ro(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(ro,"safeStringify");Se.safeStringify=ro;function R$(e){return typeof e=="string"&&Se.IDENTIFIER.test(e)?new Yt(`.${e}`):Ay`[${e}]`}s(R$,"getProperty");Se.getProperty=R$;function T$(e){if(typeof e=="string"&&Se.IDENTIFIER.test(e))return new Yt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(T$,"getEsmExportName");Se.getEsmExportName=T$;function N$(e){return new Yt(e.toString())}s(N$,"regexpCode");Se.regexpCode=N$});var Ul=b(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.ValueScope=Ct.ValueScopeName=Ct.Scope=Ct.varKinds=Ct.UsedValueState=void 0;var At=no(),Fl=class Fl extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s(Fl,"ValueError");var Dl=Fl,Ka;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Ka||(Ct.UsedValueState=Ka={}));Ct.varKinds={const:new At.Name("const"),let:new At.Name("let"),var:new At.Name("var")};var Vl=class Vl{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof At.Name?t:this.name(t)}name(t){return new At.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};s(Vl,"Scope");var Za=Vl;Ct.Scope=Za;var Bl=class Bl extends At.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,At._)`.${new At.Name(r)}[${n}]`}};s(Bl,"ValueScopeName");var Ya=Bl;Ct.ValueScopeName=Ya;var k$=(0,At._)`\n`,Hl=class Hl extends Za{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?k$:At.nil}}get(){return this._scope}name(t){return new Ya(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[o];if(c){let p=c.get(a);if(p)return p}else c=this._values[o]=new Map;c.set(a,i);let u=this._scope[o]||(this._scope[o]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:o,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,At._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=At.nil;for(let a in t){let 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,Ka.Started);let p=r(l);if(p){let f=this.opts.es5?Ct.varKinds.var:Ct.varKinds.const;o=(0,At._)`${o}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))o=(0,At._)`${o}${p}${this.opts._n}`;else throw new Dl(l);u.set(l,Ka.Completed)})}return o}};s(Hl,"ValueScope");var Ll=Hl;Ct.ValueScope=Ll});var oe=b(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.or=ue.and=ue.not=ue.CodeGen=ue.operators=ue.varKinds=ue.ValueScopeName=ue.ValueScope=ue.Scope=ue.Name=ue.regexpCode=ue.stringify=ue.getProperty=ue.nil=ue.strConcat=ue.str=ue._=void 0;var ye=no(),hr=Ul(),ln=no();Object.defineProperty(ue,"_",{enumerable:!0,get:s(function(){return ln._},"get")});Object.defineProperty(ue,"str",{enumerable:!0,get:s(function(){return ln.str},"get")});Object.defineProperty(ue,"strConcat",{enumerable:!0,get:s(function(){return ln.strConcat},"get")});Object.defineProperty(ue,"nil",{enumerable:!0,get:s(function(){return ln.nil},"get")});Object.defineProperty(ue,"getProperty",{enumerable:!0,get:s(function(){return ln.getProperty},"get")});Object.defineProperty(ue,"stringify",{enumerable:!0,get:s(function(){return ln.stringify},"get")});Object.defineProperty(ue,"regexpCode",{enumerable:!0,get:s(function(){return ln.regexpCode},"get")});Object.defineProperty(ue,"Name",{enumerable:!0,get:s(function(){return ln.Name},"get")});var ec=Ul();Object.defineProperty(ue,"Scope",{enumerable:!0,get:s(function(){return ec.Scope},"get")});Object.defineProperty(ue,"ValueScope",{enumerable:!0,get:s(function(){return ec.ValueScope},"get")});Object.defineProperty(ue,"ValueScopeName",{enumerable:!0,get:s(function(){return ec.ValueScopeName},"get")});Object.defineProperty(ue,"varKinds",{enumerable:!0,get:s(function(){return ec.varKinds},"get")});ue.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 nf=class nf{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(nf,"Node");var zr=nf,sf=class sf extends zr{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?hr.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=Gi(this.rhs,t,r)),this}get names(){return this.rhs instanceof ye._CodeOrName?this.rhs.names:{}}};s(sf,"Def");var zl=sf,of=class of extends zr{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=Gi(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ye.Name?{}:{...this.lhs.names};return Xa(t,this.rhs)}};s(of,"Assign");var Ja=of,af=class af extends Ja{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(af,"AssignOp");var Gl=af,cf=class cf extends zr{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(cf,"Label");var Wl=cf,uf=class uf extends zr{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(uf,"Break");var Kl=uf,lf=class lf extends zr{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(lf,"Throw");var Zl=lf,ff=class ff extends zr{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=Gi(this.code,t,r),this}get names(){return this.code instanceof ye._CodeOrName?this.code.names:{}}};s(ff,"AnyCode");var Yl=ff,pf=class pf extends zr{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(M$(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Xn(t,r.names),{})}};s(pf,"ParentNode");var io=pf,df=class df extends io{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(df,"BlockNode");var Gr=df,hf=class hf extends io{};s(hf,"Root");var Jl=hf,mf=class mf extends Gr{};s(mf,"Else");var zi=mf;zi.kind="else";var Ui=class Ui extends Gr{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 zi(n):n}if(r)return t===!1?r instanceof Ui?r:r.nodes:this.nodes.length?this:new Ui(Iy(t),r instanceof Ui?[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=Gi(this.condition,t,r),this}get names(){let t=super.names;return Xa(t,this.condition),this.else&&Xn(t,this.else.names),t}};s(Ui,"If");var Jn=Ui;Jn.kind="if";var gf=class gf extends Gr{};s(gf,"For");var Qn=gf;Qn.kind="for";var yf=class yf extends Qn{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=Gi(this.iteration,t,r),this}get names(){return Xn(super.names,this.iteration.names)}};s(yf,"ForLoop");var Ql=yf,vf=class vf extends Qn{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?hr.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=Xa(super.names,this.from);return Xa(t,this.to)}};s(vf,"ForRange");var Xl=vf,bf=class bf extends Qn{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=Gi(this.iterable,t,r),this}get names(){return Xn(super.names,this.iterable.names)}};s(bf,"ForIter");var Qa=bf,_f=class _f extends Gr{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};s(_f,"Func");var so=_f;so.kind="func";var Sf=class Sf extends io{render(t){return"return "+super.render(t)}};s(Sf,"Return");var oo=Sf;oo.kind="return";var Of=class Of extends Gr{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&&Xn(t,this.catch.names),this.finally&&Xn(t,this.finally.names),t}};s(Of,"Try");var ef=Of,Pf=class Pf extends Gr{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(Pf,"Catch");var ao=Pf;ao.kind="catch";var wf=class wf extends Gr{render(t){return"finally"+super.render(t)}};s(wf,"Finally");var co=wf;co.kind="finally";var $f=class $f{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
7
|
+
`:""},this._extScope=t,this._scope=new hr.Scope({parent:t}),this._nodes=[new Jl]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new zl(t,o,n)),o}const(t,r,n){return this._def(hr.varKinds.const,t,r,n)}let(t,r,n){return this._def(hr.varKinds.let,t,r,n)}var(t,r,n){return this._def(hr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Ja(t,r,n))}add(t,r){return this._leafNode(new Gl(t,ue.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ye.nil&&this._leafNode(new Yl(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 Jn(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 Jn(t))}else(){return this._elseNode(new zi)}endIf(){return this._endBlockNode(Jn,zi)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Ql(t),r)}forRange(t,r,n,i,o=this.opts.es5?hr.varKinds.var:hr.varKinds.let){let a=this._scope.toName(t);return this._for(new Xl(o,a,r,n),()=>i(a))}forOf(t,r,n,i=hr.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof ye.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ye._)`${a}.length`,c=>{this.var(o,(0,ye._)`${a}[${c}]`),n(o)})}return this._for(new Qa("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?hr.varKinds.var:hr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ye._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new Qa("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(Qn)}label(t){return this._leafNode(new Wl(t))}break(t){return this._leafNode(new Kl(t))}return(t){let r=new oo;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(oo)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new ef;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new ao(o),r(o)}return n&&(this._currNode=i.finally=new co,this.code(n)),this._endBlockNode(ao,co)}throw(t){return this._leafNode(new Zl(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 so(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(so)}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 Jn))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};s($f,"CodeGen");var tf=$f;ue.CodeGen=tf;function Xn(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(Xn,"addNames");function Xa(e,t){return t instanceof ye._CodeOrName?Xn(e,t.names):e}s(Xa,"addExprNames");function Gi(e,t,r){if(e instanceof ye.Name)return n(e);if(!i(e))return e;return new ye._Code(e._items.reduce((o,a)=>(a instanceof ye.Name&&(a=n(a)),a instanceof ye._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=r[o.str];return a===void 0||t[o.str]!==1?o:(delete t[o.str],a)}function i(o){return o instanceof ye._Code&&o._items.some(a=>a instanceof ye.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(Gi,"optimizeExpr");function M$(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(M$,"subtractNames");function Iy(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ye._)`!${rf(e)}`}s(Iy,"not");ue.not=Iy;var q$=jy(ue.operators.AND);function D$(...e){return e.reduce(q$)}s(D$,"and");ue.and=D$;var L$=jy(ue.operators.OR);function F$(...e){return e.reduce(L$)}s(F$,"or");ue.or=F$;function jy(e){return(t,r)=>t===ye.nil?r:r===ye.nil?t:(0,ye._)`${rf(t)} ${e} ${rf(r)}`}s(jy,"mappend");function rf(e){return e instanceof ye.Name?e:(0,ye._)`(${e})`}s(rf,"par")});var de=b(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.checkStrictMode=le.getErrorPath=le.Type=le.useFunc=le.setEvaluated=le.evaluatedPropsToName=le.mergeEvaluated=le.eachItem=le.unescapeJsonPointer=le.escapeJsonPointer=le.escapeFragment=le.unescapeFragment=le.schemaRefOrVal=le.schemaHasRulesButRef=le.schemaHasRules=le.checkUnknownRules=le.alwaysValidSchema=le.toHash=void 0;var we=oe(),V$=no();function B$(e){let t={};for(let r of e)t[r]=!0;return t}s(B$,"toHash");le.toHash=B$;function H$(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Ny(e,t),!ky(t,e.self.RULES.all))}s(H$,"alwaysValidSchema");le.alwaysValidSchema=H$;function Ny(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||Dy(e,`unknown keyword: "${o}"`)}s(Ny,"checkUnknownRules");le.checkUnknownRules=Ny;function ky(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s(ky,"schemaHasRules");le.schemaHasRules=ky;function U$(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}s(U$,"schemaHasRulesButRef");le.schemaHasRulesButRef=U$;function z$({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,we._)`${r}`}return(0,we._)`${e}${t}${(0,we.getProperty)(n)}`}s(z$,"schemaRefOrVal");le.schemaRefOrVal=z$;function G$(e){return My(decodeURIComponent(e))}s(G$,"unescapeFragment");le.unescapeFragment=G$;function W$(e){return encodeURIComponent(xf(e))}s(W$,"escapeFragment");le.escapeFragment=W$;function xf(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(xf,"escapeJsonPointer");le.escapeJsonPointer=xf;function My(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(My,"unescapeJsonPointer");le.unescapeJsonPointer=My;function K$(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(K$,"eachItem");le.eachItem=K$;function Ry({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,c)=>{let u=a===void 0?o:a instanceof we.Name?(o instanceof we.Name?e(i,o,a):t(i,o,a),a):o instanceof we.Name?(t(i,a,o),o):r(o,a);return c===we.Name&&!(u instanceof we.Name)?n(i,u):u}}s(Ry,"makeMergeEvaluated");le.mergeEvaluated={props:Ry({mergeNames:s((e,t,r)=>e.if((0,we._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,we._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,we._)`${r} || {}`).code((0,we._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,we._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,we._)`${r} || {}`),Af(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:qy}),items:Ry({mergeNames:s((e,t,r)=>e.if((0,we._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,we._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,we._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,we._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:s((e,t)=>e.var("items",t),"resultToName")})};function qy(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,we._)`{}`);return t!==void 0&&Af(e,r,t),r}s(qy,"evaluatedPropsToName");le.evaluatedPropsToName=qy;function Af(e,t,r){Object.keys(r).forEach(n=>e.assign((0,we._)`${t}${(0,we.getProperty)(n)}`,!0))}s(Af,"setEvaluated");le.setEvaluated=Af;var Ty={};function Z$(e,t){return e.scopeValue("func",{ref:t,code:Ty[t.code]||(Ty[t.code]=new V$._Code(t.code))})}s(Z$,"useFunc");le.useFunc=Z$;var Ef;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Ef||(le.Type=Ef={}));function Y$(e,t,r){if(e instanceof we.Name){let n=t===Ef.Num;return r?n?(0,we._)`"[" + ${e} + "]"`:(0,we._)`"['" + ${e} + "']"`:n?(0,we._)`"/" + ${e}`:(0,we._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,we.getProperty)(e).toString():"/"+xf(e)}s(Y$,"getErrorPath");le.getErrorPath=Y$;function Dy(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}s(Dy,"checkStrictMode");le.checkStrictMode=Dy});var Jt=b(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});var ft=oe(),J$={data:new ft.Name("data"),valCxt:new ft.Name("valCxt"),instancePath:new ft.Name("instancePath"),parentData:new ft.Name("parentData"),parentDataProperty:new ft.Name("parentDataProperty"),rootData:new ft.Name("rootData"),dynamicAnchors:new ft.Name("dynamicAnchors"),vErrors:new ft.Name("vErrors"),errors:new ft.Name("errors"),this:new ft.Name("this"),self:new ft.Name("self"),scope:new ft.Name("scope"),json:new ft.Name("json"),jsonPos:new ft.Name("jsonPos"),jsonLen:new ft.Name("jsonLen"),jsonPart:new ft.Name("jsonPart")};Cf.default=J$});var uo=b(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.extendErrors=pt.resetErrorsCount=pt.reportExtraError=pt.reportError=pt.keyword$DataError=pt.keywordError=void 0;var ve=oe(),tc=de(),bt=Jt();pt.keywordError={message:s(({keyword:e})=>(0,ve.str)`must pass "${e}" keyword validation`,"message")};pt.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,ve.str)`"${e}" keyword must be ${t} ($data)`:(0,ve.str)`"${e}" keyword is invalid ($data)`,"message")};function Q$(e,t=pt.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:c}=i,u=Vy(e,t,r);n??(a||c)?Ly(o,u):Fy(i,(0,ve._)`[${u}]`)}s(Q$,"reportError");pt.reportError=Q$;function X$(e,t=pt.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,c=Vy(e,t,r);Ly(i,c),o||a||Fy(n,bt.default.vErrors)}s(X$,"reportExtraError");pt.reportExtraError=X$;function eE(e,t){e.assign(bt.default.errors,t),e.if((0,ve._)`${bt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ve._)`${bt.default.vErrors}.length`,t),()=>e.assign(bt.default.vErrors,null)))}s(eE,"resetErrorsCount");pt.resetErrorsCount=eE;function tE({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,bt.default.errors,c=>{e.const(a,(0,ve._)`${bt.default.vErrors}[${c}]`),e.if((0,ve._)`${a}.instancePath === undefined`,()=>e.assign((0,ve._)`${a}.instancePath`,(0,ve.strConcat)(bt.default.instancePath,o.errorPath))),e.assign((0,ve._)`${a}.schemaPath`,(0,ve.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,ve._)`${a}.schema`,r),e.assign((0,ve._)`${a}.data`,n))})}s(tE,"extendErrors");pt.extendErrors=tE;function Ly(e,t){let r=e.const("err",t);e.if((0,ve._)`${bt.default.vErrors} === null`,()=>e.assign(bt.default.vErrors,(0,ve._)`[${r}]`),(0,ve._)`${bt.default.vErrors}.push(${r})`),e.code((0,ve._)`${bt.default.errors}++`)}s(Ly,"addError");function Fy(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,ve._)`new ${e.ValidationError}(${t})`):(r.assign((0,ve._)`${n}.errors`,t),r.return(!1))}s(Fy,"returnErrors");var ei={keyword:new ve.Name("keyword"),schemaPath:new ve.Name("schemaPath"),params:new ve.Name("params"),propertyName:new ve.Name("propertyName"),message:new ve.Name("message"),schema:new ve.Name("schema"),parentSchema:new ve.Name("parentSchema")};function Vy(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,ve._)`{}`:rE(e,t,r)}s(Vy,"errorObjectCode");function rE(e,t,r={}){let{gen:n,it:i}=e,o=[nE(i,r),iE(e,r)];return sE(e,t,o),n.object(...o)}s(rE,"errorObject");function nE({errorPath:e},{instancePath:t}){let r=t?(0,ve.str)`${e}${(0,tc.getErrorPath)(t,tc.Type.Str)}`:e;return[bt.default.instancePath,(0,ve.strConcat)(bt.default.instancePath,r)]}s(nE,"errorInstancePath");function iE({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,ve.str)`${t}/${e}`;return r&&(i=(0,ve.str)`${i}${(0,tc.getErrorPath)(r,tc.Type.Str)}`),[ei.schemaPath,i]}s(iE,"errorSchemaPath");function sE(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:a,it:c}=e,{opts:u,propertyName:l,topSchemaRef:p,schemaPath:f}=c;n.push([ei.keyword,i],[ei.params,typeof t=="function"?t(e):t||(0,ve._)`{}`]),u.messages&&n.push([ei.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([ei.schema,a],[ei.parentSchema,(0,ve._)`${p}${f}`],[bt.default.data,o]),l&&n.push([ei.propertyName,l])}s(sE,"extraErrorProps")});var Hy=b(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.boolOrEmptySchema=Wi.topBoolOrEmptySchema=void 0;var oE=uo(),aE=oe(),cE=Jt(),uE={message:"boolean schema is false"};function lE(e){let{gen:t,schema:r,validateName:n}=e;r===!1?By(e,!1):typeof r=="object"&&r.$async===!0?t.return(cE.default.data):(t.assign((0,aE._)`${n}.errors`,null),t.return(!0))}s(lE,"topBoolOrEmptySchema");Wi.topBoolOrEmptySchema=lE;function fE(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),By(e)):r.var(t,!0)}s(fE,"boolOrEmptySchema");Wi.boolOrEmptySchema=fE;function By(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,oE.reportError)(i,uE,void 0,t)}s(By,"falseSchemaError")});var If=b(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.getRules=Ki.isJSONType=void 0;var pE=["string","number","integer","boolean","null","object","array"],dE=new Set(pE);function hE(e){return typeof e=="string"&&dE.has(e)}s(hE,"isJSONType");Ki.isJSONType=hE;function mE(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}s(mE,"getRules");Ki.getRules=mE});var jf=b(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.shouldUseRule=fn.shouldUseGroup=fn.schemaHasRulesForType=void 0;function gE({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Uy(e,n)}s(gE,"schemaHasRulesForType");fn.schemaHasRulesForType=gE;function Uy(e,t){return t.rules.some(r=>zy(e,r))}s(Uy,"shouldUseGroup");fn.shouldUseGroup=Uy;function zy(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}s(zy,"shouldUseRule");fn.shouldUseRule=zy});var lo=b(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.reportTypeError=dt.checkDataTypes=dt.checkDataType=dt.coerceAndCheckDataType=dt.getJSONTypes=dt.getSchemaTypes=dt.DataType=void 0;var yE=If(),vE=jf(),bE=uo(),ae=oe(),Gy=de(),Zi;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Zi||(dt.DataType=Zi={}));function _E(e){let t=Wy(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}s(_E,"getSchemaTypes");dt.getSchemaTypes=_E;function Wy(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(yE.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(Wy,"getJSONTypes");dt.getJSONTypes=Wy;function SE(e,t){let{gen:r,data:n,opts:i}=e,o=OE(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,vE.schemaHasRulesForType)(e,t[0]));if(a){let c=Tf(t,n,i.strictNumbers,Zi.Wrong);r.if(c,()=>{o.length?PE(e,t,o):Nf(e)})}return a}s(SE,"coerceAndCheckDataType");dt.coerceAndCheckDataType=SE;var Ky=new Set(["string","number","integer","boolean","null"]);function OE(e,t){return t?e.filter(r=>Ky.has(r)||t==="array"&&r==="array"):[]}s(OE,"coerceToTypes");function PE(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,ae._)`typeof ${i}`),c=n.let("coerced",(0,ae._)`undefined`);o.coerceTypes==="array"&&n.if((0,ae._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,ae._)`${i}[0]`).assign(a,(0,ae._)`typeof ${i}`).if(Tf(t,i,o.strictNumbers),()=>n.assign(c,i))),n.if((0,ae._)`${c} !== undefined`);for(let l of r)(Ky.has(l)||l==="array"&&o.coerceTypes==="array")&&u(l);n.else(),Nf(e),n.endIf(),n.if((0,ae._)`${c} !== undefined`,()=>{n.assign(i,c),wE(e,c)});function u(l){switch(l){case"string":n.elseIf((0,ae._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,ae._)`"" + ${i}`).elseIf((0,ae._)`${i} === null`).assign(c,(0,ae._)`""`);return;case"number":n.elseIf((0,ae._)`${a} == "boolean" || ${i} === null
|
|
8
8
|
|| (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,ae._)`+${i}`);return;case"integer":n.elseIf((0,ae._)`${a} === "boolean" || ${i} === null
|
|
9
9
|
|| (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,(0,ae._)`+${i}`);return;case"boolean":n.elseIf((0,ae._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf((0,ae._)`${i} === "true" || ${i} === 1`).assign(c,!0);return;case"null":n.elseIf((0,ae._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(c,null);return;case"array":n.elseIf((0,ae._)`${a} === "string" || ${a} === "number"
|
|
10
|
-
|| ${a} === "boolean" || ${i} === null`).assign(c,(0,ae._)`[${i}]`)}}s(u,"coerceSpecificType")}s(_E,"coerceData");function SE({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ae._)`${t} !== undefined`,()=>e.assign((0,ae._)`${t}[${r}]`,n))}s(SE,"assignParentData");function Cf(e,t,r,n=Zi.Correct){let i=n===Zi.Correct?ae.operators.EQ:ae.operators.NEQ,o;switch(e){case"null":return(0,ae._)`${t} ${i} null`;case"array":o=(0,ae._)`Array.isArray(${t})`;break;case"object":o=(0,ae._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,ae._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,ae._)`typeof ${t} ${i} ${e}`}return n===Zi.Correct?o:(0,ae.not)(o);function a(c=ae.nil){return(0,ae.and)((0,ae._)`typeof ${t} == "number"`,c,r?(0,ae._)`isFinite(${t})`:ae.nil)}}s(Cf,"checkDataType");dt.checkDataType=Cf;function If(e,t,r,n){if(e.length===1)return Cf(e[0],t,r,n);let i,o=(0,By.toHash)(e);if(o.array&&o.object){let a=(0,ae._)`typeof ${t} != "object"`;i=o.null?a:(0,ae._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else i=ae.nil;o.number&&delete o.integer;for(let a in o)i=(0,ae.and)(i,Cf(a,t,r,n));return i}s(If,"checkDataTypes");dt.checkDataTypes=If;var OE={message:s(({schema:e})=>`must be ${e}`,"message"),params:s(({schema:e,schemaValue:t})=>typeof e=="string"?(0,ae._)`{type: ${e}}`:(0,ae._)`{type: ${t}}`,"params")};function jf(e){let t=PE(e);(0,gE.reportError)(t,OE)}s(jf,"reportTypeError");dt.reportTypeError=jf;function PE(e){let{gen:t,data:r,schema:n}=e,i=(0,By.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(PE,"getTypeErrorContext")});var Gy=b(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.assignDefaults=void 0;var Yi=oe(),wE=de();function $E(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)zy(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>zy(e,o,i.default))}s($E,"assignDefaults");tc.assignDefaults=$E;function zy(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let c=(0,Yi._)`${o}${(0,Yi.getProperty)(t)}`;if(i){(0,wE.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,Yi._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,Yi._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,Yi._)`${c} = ${(0,Yi.stringify)(r)}`)}s(zy,"assignDefault")});var Qt=b(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.validateUnion=Pe.validateArray=Pe.usePattern=Pe.callValidateCode=Pe.schemaProperties=Pe.allSchemaProperties=Pe.noPropertyInData=Pe.propertyInData=Pe.isOwnProperty=Pe.hasPropFunc=Pe.reportMissingProp=Pe.checkMissingProp=Pe.checkReportMissingProp=void 0;var Te=oe(),Rf=de(),pn=Jt(),EE=de();function xE(e,t){let{gen:r,data:n,it:i}=e;r.if(kf(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Te._)`${t}`},!0),e.error()})}s(xE,"checkReportMissingProp");Pe.checkReportMissingProp=xE;function AE({gen:e,data:t,it:{opts:r}},n,i){return(0,Te.or)(...n.map(o=>(0,Te.and)(kf(e,t,o,r.ownProperties),(0,Te._)`${i} = ${o}`)))}s(AE,"checkMissingProp");Pe.checkMissingProp=AE;function CE(e,t){e.setParams({missingProperty:t},!0),e.error()}s(CE,"reportMissingProp");Pe.reportMissingProp=CE;function Wy(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Te._)`Object.prototype.hasOwnProperty`})}s(Wy,"hasPropFunc");Pe.hasPropFunc=Wy;function Tf(e,t,r){return(0,Te._)`${Wy(e)}.call(${t}, ${r})`}s(Tf,"isOwnProperty");Pe.isOwnProperty=Tf;function IE(e,t,r,n){let i=(0,Te._)`${t}${(0,Te.getProperty)(r)} !== undefined`;return n?(0,Te._)`${i} && ${Tf(e,t,r)}`:i}s(IE,"propertyInData");Pe.propertyInData=IE;function kf(e,t,r,n){let i=(0,Te._)`${t}${(0,Te.getProperty)(r)} === undefined`;return n?(0,Te.or)(i,(0,Te.not)(Tf(e,t,r))):i}s(kf,"noPropertyInData");Pe.noPropertyInData=kf;function Ky(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(Ky,"allSchemaProperties");Pe.allSchemaProperties=Ky;function jE(e,t){return Ky(t).filter(r=>!(0,Rf.alwaysValidSchema)(e,t[r]))}s(jE,"schemaProperties");Pe.schemaProperties=jE;function RE({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},c,u,l){let p=l?(0,Te._)`${e}, ${t}, ${n}${i}`:t,f=[[pn.default.instancePath,(0,Te.strConcat)(pn.default.instancePath,o)],[pn.default.parentData,a.parentData],[pn.default.parentDataProperty,a.parentDataProperty],[pn.default.rootData,pn.default.rootData]];a.opts.dynamicRef&&f.push([pn.default.dynamicAnchors,pn.default.dynamicAnchors]);let d=(0,Te._)`${p}, ${r.object(...f)}`;return u!==Te.nil?(0,Te._)`${c}.call(${u}, ${d})`:(0,Te._)`${c}(${d})`}s(RE,"callValidateCode");Pe.callValidateCode=RE;var TE=(0,Te._)`new RegExp`;function kE({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,Te._)`${i.code==="new RegExp"?TE:(0,EE.useFunc)(e,i)}(${r}, ${n})`})}s(kE,"usePattern");Pe.usePattern=kE;function NE(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(o,!0),a(()=>t.break()),o;function a(c){let u=t.const("len",(0,Te._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Rf.Type.Num},o),t.if((0,Te.not)(o),c)})}s(a,"validateItems")}s(NE,"validateArray");Pe.validateArray=NE;function ME(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,Rf.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},c);t.assign(a,(0,Te._)`${a} || ${c}`),e.mergeValidEvaluated(p,c)||t.if((0,Te.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(ME,"validateUnion");Pe.validateUnion=ME});var Jy=b(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.validateKeywordUsage=Cr.validSchemaType=Cr.funcKeywordCode=Cr.macroKeywordCode=void 0;var _t=oe(),ti=Jt(),qE=Qt(),DE=co();function LE(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,c=t.macro.call(a.self,i,o,a),u=Yy(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:_t.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}s(LE,"macroKeywordCode");Cr.macroKeywordCode=LE;function FE(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:c,it:u}=e;BE(u,t);let l=!c&&t.compile?t.compile.call(u.self,o,a,u):t.validate,p=Yy(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)v(),t.modifying&&Zy(e),g(()=>e.error());else{let w=t.async?h():y();t.modifying&&Zy(e),g(()=>VE(e,w))}}s(d,"validateKeyword");function h(){let w=n.let("ruleErrs",null);return n.try(()=>v((0,_t._)`await `),A=>n.assign(f,!1).if((0,_t._)`${A} instanceof ${u.ValidationError}`,()=>n.assign(w,(0,_t._)`${A}.errors`),()=>n.throw(A))),w}s(h,"validateAsync");function y(){let w=(0,_t._)`${p}.errors`;return n.assign(w,null),v(_t.nil),w}s(y,"validateSync");function v(w=t.async?(0,_t._)`await `:_t.nil){let A=u.opts.passContext?ti.default.this:ti.default.self,C=!("compile"in t&&!c||t.schema===!1);n.assign(f,(0,_t._)`${w}${(0,qE.callValidateCode)(e,p,A,C)}`,t.modifying)}s(v,"assignValid");function g(w){var A;n.if((0,_t.not)((A=t.valid)!==null&&A!==void 0?A:f),w)}s(g,"reportErrs")}s(FE,"funcKeywordCode");Cr.funcKeywordCode=FE;function Zy(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,_t._)`${n.parentData}[${n.parentDataProperty}]`))}s(Zy,"modifyData");function VE(e,t){let{gen:r}=e;r.if((0,_t._)`Array.isArray(${t})`,()=>{r.assign(ti.default.vErrors,(0,_t._)`${ti.default.vErrors} === null ? ${t} : ${ti.default.vErrors}.concat(${t})`).assign(ti.default.errors,(0,_t._)`${ti.default.vErrors}.length`),(0,DE.extendErrors)(e)},()=>e.error())}s(VE,"addErrs");function BE({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(BE,"checkAsyncKeyword");function Yy(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,_t.stringify)(r)})}s(Yy,"useKeyword");function HE(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}s(HE,"validSchemaType");Cr.validSchemaType=HE;function UE({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let u=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}s(UE,"validateKeywordUsage");Cr.validateKeywordUsage=UE});var Xy=b(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.extendSubschemaMode=dn.extendSubschemaData=dn.getSubschema=void 0;var Ir=oe(),Qy=de();function zE(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,Ir._)`${e.schemaPath}${(0,Ir.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,Ir._)`${e.schemaPath}${(0,Ir.getProperty)(t)}${(0,Ir.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Qy.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}s(zE,"getSubschema");dn.getSubschema=zE;function GE(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=c.let("data",(0,Ir._)`${t.data}${(0,Ir.getProperty)(r)}`,!0);u(d),e.errorPath=(0,Ir.str)`${l}${(0,Qy.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,Ir._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Ir.Name?i:c.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}o&&(e.dataTypes=o);function u(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}s(u,"dataContextProps")}s(GE,"extendSubschemaData");dn.extendSubschemaData=GE;function WE(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}s(WE,"extendSubschemaMode");dn.extendSubschemaMode=WE});var Nf=b((rF,ev)=>{"use strict";ev.exports=s(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var rv=b((iF,tv)=>{"use strict";var hn=tv.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(){};rc(t,n,i,e,"",e)};hn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};hn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};hn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};hn.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 rc(e,t,r,n,i,o,a,c,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,c,u,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in hn.arrayKeywords)for(var d=0;d<f.length;d++)rc(e,t,r,f[d],i+"/"+p+"/"+d,o,i,p,n,d)}else if(p in hn.propsKeywords){if(f&&typeof f=="object")for(var h in f)rc(e,t,r,f[h],i+"/"+p+"/"+KE(h),o,i,p,n,h)}else(p in hn.keywords||e.allKeys&&!(p in hn.skipKeywords))&&rc(e,t,r,f,i+"/"+p,o,i,p,n)}r(n,i,o,a,c,u,l)}}s(rc,"_traverse");function KE(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(KE,"escapeJsonPtr")});var lo=b(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.getSchemaRefs=It.resolveUrl=It.normalizeId=It._getFullPath=It.getFullPath=It.inlineRef=void 0;var ZE=de(),YE=Nf(),JE=rv(),QE=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function XE(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Mf(e):t?nv(e)<=t:!1}s(XE,"inlineRef");It.inlineRef=XE;var ex=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Mf(e){for(let t in e){if(ex.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Mf)||typeof r=="object"&&Mf(r))return!0}return!1}s(Mf,"hasRef");function nv(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!QE.has(r)&&(typeof e[r]=="object"&&(0,ZE.eachItem)(e[r],n=>t+=nv(n)),t===1/0))return 1/0}return t}s(nv,"countKeys");function iv(e,t="",r){r!==!1&&(t=Ji(t));let n=e.parse(t);return sv(e,n)}s(iv,"getFullPath");It.getFullPath=iv;function sv(e,t){return e.serialize(t).split("#")[0]+"#"}s(sv,"_getFullPath");It._getFullPath=sv;var tx=/#\/?$/;function Ji(e){return e?e.replace(tx,""):""}s(Ji,"normalizeId");It.normalizeId=Ji;function rx(e,t,r){return r=Ji(r),e.resolve(t,r)}s(rx,"resolveUrl");It.resolveUrl=rx;var nx=/^[a-z_][-a-z0-9._]*$/i;function ix(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=Ji(e[r]||t),o={"":i},a=iv(n,i,!1),c={},u=new Set;return JE(e,{allKeys:!0},(f,d,h,y)=>{if(y===void 0)return;let v=a+d,g=o[y];typeof f[r]=="string"&&(g=w.call(this,f[r])),A.call(this,f.$anchor),A.call(this,f.$dynamicAnchor),o[d]=g;function w(C){let j=this.opts.uriResolver.resolve;if(C=Ji(g?j(g,C):C),u.has(C))throw p(C);u.add(C);let T=this.refs[C];return typeof T=="string"&&(T=this.refs[T]),typeof T=="object"?l(f,T.schema,C):C!==Ji(v)&&(C[0]==="#"?(l(f,c[C],C),c[C]=f):this.refs[C]=v),C}s(w,"addRef");function A(C){if(typeof C=="string"){if(!nx.test(C))throw new Error(`invalid anchor "${C}"`);w.call(this,`#${C}`)}}s(A,"addAnchor")}),c;function l(f,d,h){if(d!==void 0&&!YE(f,d))throw p(h)}s(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}s(p,"ambiguos")}s(ix,"getSchemaRefs");It.getSchemaRefs=ix});var ho=b(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.getData=mn.KeywordCxt=mn.validateFunctionCode=void 0;var lv=Ly(),ov=uo(),Df=Af(),nc=uo(),sx=Gy(),po=Jy(),qf=Xy(),K=oe(),ne=Jt(),ox=lo(),Wr=de(),fo=co();function ax(e){if(dv(e)&&(hv(e),pv(e))){lx(e);return}fv(e,()=>(0,lv.topBoolOrEmptySchema)(e))}s(ax,"validateFunctionCode");mn.validateFunctionCode=ax;function fv({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,K._)`${ne.default.data}, ${ne.default.valCxt}`,n.$async,()=>{e.code((0,K._)`"use strict"; ${av(r,i)}`),ux(e,i),e.code(o)}):e.func(t,(0,K._)`${ne.default.data}, ${cx(i)}`,n.$async,()=>e.code(av(r,i)).code(o))}s(fv,"validateFunction");function cx(e){return(0,K._)`{${ne.default.instancePath}="", ${ne.default.parentData}, ${ne.default.parentDataProperty}, ${ne.default.rootData}=${ne.default.data}${e.dynamicRef?(0,K._)`, ${ne.default.dynamicAnchors}={}`:K.nil}}={}`}s(cx,"destructureValCxt");function ux(e,t){e.if(ne.default.valCxt,()=>{e.var(ne.default.instancePath,(0,K._)`${ne.default.valCxt}.${ne.default.instancePath}`),e.var(ne.default.parentData,(0,K._)`${ne.default.valCxt}.${ne.default.parentData}`),e.var(ne.default.parentDataProperty,(0,K._)`${ne.default.valCxt}.${ne.default.parentDataProperty}`),e.var(ne.default.rootData,(0,K._)`${ne.default.valCxt}.${ne.default.rootData}`),t.dynamicRef&&e.var(ne.default.dynamicAnchors,(0,K._)`${ne.default.valCxt}.${ne.default.dynamicAnchors}`)},()=>{e.var(ne.default.instancePath,(0,K._)`""`),e.var(ne.default.parentData,(0,K._)`undefined`),e.var(ne.default.parentDataProperty,(0,K._)`undefined`),e.var(ne.default.rootData,ne.default.data),t.dynamicRef&&e.var(ne.default.dynamicAnchors,(0,K._)`{}`)})}s(ux,"destructureValCxtES5");function lx(e){let{schema:t,opts:r,gen:n}=e;fv(e,()=>{r.$comment&&t.$comment&&gv(e),mx(e),n.let(ne.default.vErrors,null),n.let(ne.default.errors,0),r.unevaluated&&fx(e),mv(e),vx(e)})}s(lx,"topSchemaObjCode");function fx(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,K._)`${r}.evaluated`),t.if((0,K._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,K._)`${e.evaluated}.props`,(0,K._)`undefined`)),t.if((0,K._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,K._)`${e.evaluated}.items`,(0,K._)`undefined`))}s(fx,"resetEvaluated");function av(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,K._)`/*# sourceURL=${r} */`:K.nil}s(av,"funcSourceUrl");function px(e,t){if(dv(e)&&(hv(e),pv(e))){dx(e,t);return}(0,lv.boolOrEmptySchema)(e,t)}s(px,"subschemaCode");function pv({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}s(pv,"schemaCxtHasRules");function dv(e){return typeof e.schema!="boolean"}s(dv,"isSchemaObj");function dx(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&gv(e),gx(e),yx(e);let o=n.const("_errs",ne.default.errors);mv(e,o),n.var(t,(0,K._)`${o} === ${ne.default.errors}`)}s(dx,"subSchemaObjCode");function hv(e){(0,Wr.checkUnknownRules)(e),hx(e)}s(hv,"checkKeywords");function mv(e,t){if(e.opts.jtd)return cv(e,[],!1,t);let r=(0,ov.getSchemaTypes)(e.schema),n=(0,ov.coerceAndCheckDataType)(e,r);cv(e,r,!n,t)}s(mv,"typeAndKeywords");function hx(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Wr.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s(hx,"checkRefsAndKeywords");function mx(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Wr.checkStrictMode)(e,"default is ignored in the schema root")}s(mx,"checkNoDefault");function gx(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,ox.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(gx,"updateContext");function yx(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s(yx,"checkAsyncSchema");function gv({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,K._)`${ne.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,K.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,K._)`${ne.default.self}.opts.$comment(${o}, ${a}, ${c}.schema)`)}}s(gv,"commentKeyword");function vx(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,K._)`${ne.default.errors} === 0`,()=>t.return(ne.default.data),()=>t.throw((0,K._)`new ${i}(${ne.default.vErrors})`)):(t.assign((0,K._)`${n}.errors`,ne.default.vErrors),o.unevaluated&&bx(e),t.return((0,K._)`${ne.default.errors} === 0`))}s(vx,"returnResults");function bx({gen:e,evaluated:t,props:r,items:n}){r instanceof K.Name&&e.assign((0,K._)`${t}.props`,r),n instanceof K.Name&&e.assign((0,K._)`${t}.items`,n)}s(bx,"assignEvaluated");function cv(e,t,r,n){let{gen:i,schema:o,data:a,allErrors:c,opts:u,self:l}=e,{RULES:p}=l;if(o.$ref&&(u.ignoreKeywordsWithRef||!(0,Wr.schemaHasRulesButRef)(o,p))){i.block(()=>vv(e,"$ref",p.all.$ref.definition));return}u.jtd||_x(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,Df.shouldUseGroup)(o,d)&&(d.type?(i.if((0,nc.checkDataType)(d.type,a,u.strictNumbers)),uv(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,nc.reportTypeError)(e)),i.endIf()):uv(e,d),c||i.if((0,K._)`${ne.default.errors} === ${n||0}`))}s(f,"groupKeywords")}s(cv,"schemaKeywords");function uv(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,sx.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,Df.shouldUseRule)(n,o)&&vv(e,o.keyword,o.definition,t.type)})}s(uv,"iterateKeywords");function _x(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Sx(e,t),e.opts.allowUnionTypes||Ox(e,t),Px(e,e.dataTypes))}s(_x,"checkStrictTypes");function Sx(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{yv(e.dataTypes,r)||Lf(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),$x(e,t)}}s(Sx,"checkContextTypes");function Ox(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Lf(e,"use allowUnionTypes to allow union type keyword")}s(Ox,"checkMultipleTypes");function Px(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Df.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>wx(t,a))&&Lf(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(Px,"checkKeywordTypes");function wx(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(wx,"hasApplicableType");function yv(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(yv,"includesType");function $x(e,t){let r=[];for(let n of e.dataTypes)yv(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s($x,"narrowSchemaTypes");function Lf(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Wr.checkStrictMode)(e,t,e.opts.strictTypes)}s(Lf,"strictTypesError");var Ff=class Ff{constructor(t,r,n){if((0,po.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,Wr.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",bv(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,po.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",ne.default.errors))}result(t,r,n){this.failResult((0,K.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,K.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,K._)`${r} !== undefined && (${(0,K.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?fo.reportExtraError:fo.reportError)(this,this.def.error,r)}$dataError(){(0,fo.reportError)(this,this.def.$dataError||fo.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,fo.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=K.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=K.nil,r=K.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,K.or)((0,K._)`${i} === undefined`,r)),t!==K.nil&&n.assign(t,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==K.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,K.or)(a(),c());function a(){if(n.length){if(!(r instanceof K.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,K._)`${(0,nc.checkDataTypes)(u,r,o.opts.strictNumbers,nc.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,qf.getSubschema)(this.it,t);(0,qf.extendSubschemaData)(n,this.it,t),(0,qf.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return px(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Wr.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Wr.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,K.Name)),!0}};s(Ff,"KeywordCxt");var ic=Ff;mn.KeywordCxt=ic;function vv(e,t,r,n){let i=new ic(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,po.funcKeywordCode)(i,r):"macro"in r?(0,po.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,po.funcKeywordCode)(i,r)}s(vv,"keywordCode");var Ex=/^\/(?:[^~]|~0|~1)*$/,xx=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function bv(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return ne.default.rootData;if(e[0]==="/"){if(!Ex.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=ne.default.rootData}else{let l=xx.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(i=l[2],i==="#"){if(p>=t)throw new Error(u("property/index",p));return n[t-p]}if(p>t)throw new Error(u("data",p));if(o=r[t-p],!i)return o}let a=o,c=i.split("/");for(let l of c)l&&(o=(0,K._)`${o}${(0,K.getProperty)((0,Wr.unescapeJsonPointer)(l))}`,a=(0,K._)`${a} && ${o}`);return a;function u(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}s(bv,"getData");mn.getData=bv});var sc=b(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});var Hf=class Hf extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(Hf,"ValidationError");var Vf=Hf;Bf.default=Vf});var mo=b(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var Uf=lo(),Wf=class Wf extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Uf.resolveUrl)(t,r,n),this.missingSchema=(0,Uf.normalizeId)((0,Uf.getFullPath)(t,this.missingRef))}};s(Wf,"MissingRefError");var zf=Wf;Gf.default=zf});var go=b(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.resolveSchema=Xt.getCompilingSchema=Xt.resolveRef=Xt.compileSchema=Xt.SchemaEnv=void 0;var mr=oe(),Ax=sc(),ri=Jt(),gr=lo(),_v=de(),Cx=ho(),Yf=class Yf{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,gr.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};s(Yf,"SchemaEnv");var Qi=Yf;Xt.SchemaEnv=Qi;function Zf(e){let t=Sv.call(this,e);if(t)return t;let r=(0,gr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new mr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),c;e.$async&&(c=a.scopeValue("Error",{ref:Ax.default,code:(0,mr._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:ri.default.data,parentData:ri.default.parentData,parentDataProperty:ri.default.parentDataProperty,dataNames:[ri.default.data],dataPathArr:[mr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,mr.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:mr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,mr._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,Cx.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(ri.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${ri.default.self}`,`${ri.default.scope}`,p)(this,this.scope.get());if(this.scope.value(u,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:u,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:y,items:v}=l;h.evaluated={props:y instanceof mr.Name?void 0:y,items:v instanceof mr.Name?void 0:v,dynamicProps:y instanceof mr.Name,dynamicItems:v instanceof mr.Name},h.source&&(h.source.evaluated=(0,mr.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(e)}}s(Zf,"compileSchema");Xt.compileSchema=Zf;function Ix(e,t,r){var n;r=(0,gr.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=Tx.call(this,e,r);if(o===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(o=new Qi({schema:a,schemaId:c,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=jx.call(this,o)}s(Ix,"resolveRef");Xt.resolveRef=Ix;function jx(e){return(0,gr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Zf.call(this,e)}s(jx,"inlineOrCompile");function Sv(e){for(let t of this._compilations)if(Rx(t,e))return t}s(Sv,"getCompilingSchema");Xt.getCompilingSchema=Sv;function Rx(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(Rx,"sameSchemaEnv");function Tx(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||oc.call(this,e,t)}s(Tx,"resolve");function oc(e,t){let r=this.opts.uriResolver.parse(t),n=(0,gr._getFullPath)(this.opts.uriResolver,r),i=(0,gr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Kf.call(this,r,e);let o=(0,gr.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let c=oc.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Kf.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Zf.call(this,a),o===(0,gr.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,gr.resolveUrl)(this.opts.uriResolver,i,l)),new Qi({schema:c,schemaId:u,root:e,baseId:i})}return Kf.call(this,r,a)}}s(oc,"resolveSchema");Xt.resolveSchema=oc;var kx=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Kf(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,_v.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!kx.has(c)&&l&&(t=(0,gr.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,_v.schemaHasRulesButRef)(r,this.RULES)){let c=(0,gr.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=oc.call(this,n,c)}let{schemaId:a}=this.opts;if(o=o||new Qi({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(Kf,"getJsonPointer")});var Ov=b((gF,Nx)=>{Nx.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 wv=b((yF,Pv)=>{"use strict";var Mx={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};Pv.exports={HEX:Mx}});var Rv=b((vF,jv)=>{"use strict";var{HEX:qx}=wv();function Av(e){if(Iv(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:Lx(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(Av,"normalizeIPv4");function Jf(e,t=!1){let r="",n=!0;for(let i of e){if(qx[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(Jf,"stringArrayToHexStripped");function Dx(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,a=!1,c=!1;function u(){if(i.length){if(o===!1){let l=Jf(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}s(u,"consume");for(let l=0;l<e.length;l++){let p=e[l];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(c=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(p==="%"){if(!u())break;o=!0}else{i.push(p);continue}}return i.length&&(o?r.zone=i.join(""):c?n.push(i.join("")):n.push(Jf(i))),r.address=n.join(""),r}s(Dx,"getIPV6");function Cv(e,t={}){if(Iv(e,":")<2)return{host:e,isIPV6:!1};let r=Dx(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}s(Cv,"normalizeIPv6");function Lx(e,t){let r="",n=!0,i=e.length;for(let o=0;o<i;o++){let a=e[o];a==="0"&&n?(o+1<=i&&e[o+1]===t||o+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}s(Lx,"stripLeadingZeros");function Iv(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(Iv,"findToken");var $v=/^\.\.?\//u,Ev=/^\/\.(?:\/|$)/u,xv=/^\/\.\.(?:\/|$)/u,Fx=/^\/?(?:.|\n)*?(?=\/|$)/u;function Vx(e){let t=[];for(;e.length;)if(e.match($v))e=e.replace($v,"");else if(e.match(Ev))e=e.replace(Ev,"/");else if(e.match(xv))e=e.replace(xv,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(Fx);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}s(Vx,"removeDotSegments");function Bx(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}s(Bx,"normalizeComponentEncoding");function Hx(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=Av(n);if(i.isIPV4)n=i.host;else{let o=Cv(i.host,{isIPV4:!1});o.isIPV6===!0?n=`[${o.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}s(Hx,"recomposeAuthority");jv.exports={recomposeAuthority:Hx,normalizeComponentEncoding:Bx,removeDotSegments:Vx,normalizeIPv4:Av,normalizeIPv6:Cv,stringArrayToHexStripped:Jf}});var Dv=b((_F,qv)=>{"use strict";var Ux=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,zx=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Tv(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s(Tv,"isSecure");function kv(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(kv,"httpParse");function Nv(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}s(Nv,"httpSerialize");function Gx(e){return e.secure=Tv(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s(Gx,"wsParse");function Wx(e){if((e.port===(Tv(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}s(Wx,"wsSerialize");function Kx(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(zx);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,o=Qf[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(Kx,"urnParse");function Zx(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=Qf[i];o&&(e=o.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}s(Zx,"urnSerialize");function Yx(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!Ux.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(Yx,"urnuuidParse");function Jx(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(Jx,"urnuuidSerialize");var Mv={scheme:"http",domainHost:!0,parse:kv,serialize:Nv},Qx={scheme:"https",domainHost:Mv.domainHost,parse:kv,serialize:Nv},ac={scheme:"ws",domainHost:!0,parse:Gx,serialize:Wx},Xx={scheme:"wss",domainHost:ac.domainHost,parse:ac.parse,serialize:ac.serialize},eA={scheme:"urn",parse:Kx,serialize:Zx,skipNormalize:!0},tA={scheme:"urn:uuid",parse:Yx,serialize:Jx,skipNormalize:!0},Qf={http:Mv,https:Qx,ws:ac,wss:Xx,urn:eA,"urn:uuid":tA};qv.exports=Qf});var Fv=b((OF,uc)=>{"use strict";var{normalizeIPv6:rA,normalizeIPv4:nA,removeDotSegments:yo,recomposeAuthority:iA,normalizeComponentEncoding:cc}=Rv(),Xf=Dv();function sA(e,t){return typeof e=="string"?e=jr(Kr(e,t),t):typeof e=="object"&&(e=Kr(jr(e,t),t)),e}s(sA,"normalize");function oA(e,t,r){let n=Object.assign({scheme:"null"},r),i=Lv(Kr(e,n),Kr(t,n),n,!0);return jr(i,{...n,skipEscape:!0})}s(oA,"resolve");function Lv(e,t,r,n){let i={};return n||(e=Kr(jr(e,r),r),t=Kr(jr(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=yo(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=yo(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=yo(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=yo(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}s(Lv,"resolveComponents");function aA(e,t,r){return typeof e=="string"?(e=unescape(e),e=jr(cc(Kr(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=jr(cc(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=jr(cc(Kr(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=jr(cc(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(aA,"equal");function jr(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],o=Xf[(n.scheme||r.scheme||"").toLowerCase()];o&&o.serialize&&o.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=iA(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let c=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(c=yo(c)),a===void 0&&(c=c.replace(/^\/\//u,"/%2F")),i.push(c)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}s(jr,"serialize");var cA=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function uA(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||cA[t])return!0;return!1}s(uA,"nonSimpleDomain");var lA=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Kr(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,o=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(lA);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=nA(n.host);if(u.isIPV4===!1){let l=rA(u.host,{isIPV4:!1});n.host=l.host.toLowerCase(),o=l.isIPV6}else n.host=u.host,o=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=Xf[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&o===!1&&uA(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!c||c&&!c.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}s(Kr,"parse");var ep={SCHEMES:Xf,normalize:sA,resolve:oA,resolveComponents:Lv,equal:aA,serialize:jr,parse:Kr};uc.exports=ep;uc.exports.default=ep;uc.exports.fastUri=ep});var Bv=b(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});var Vv=Fv();Vv.code='require("ajv/dist/runtime/uri").default';tp.default=Vv});var es=b(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.CodeGen=ct.Name=ct.nil=ct.stringify=ct.str=ct._=ct.KeywordCxt=void 0;var fA=ho();Object.defineProperty(ct,"KeywordCxt",{enumerable:!0,get:s(function(){return fA.KeywordCxt},"get")});var Xi=oe();Object.defineProperty(ct,"_",{enumerable:!0,get:s(function(){return Xi._},"get")});Object.defineProperty(ct,"str",{enumerable:!0,get:s(function(){return Xi.str},"get")});Object.defineProperty(ct,"stringify",{enumerable:!0,get:s(function(){return Xi.stringify},"get")});Object.defineProperty(ct,"nil",{enumerable:!0,get:s(function(){return Xi.nil},"get")});Object.defineProperty(ct,"Name",{enumerable:!0,get:s(function(){return Xi.Name},"get")});Object.defineProperty(ct,"CodeGen",{enumerable:!0,get:s(function(){return Xi.CodeGen},"get")});var pA=sc(),Wv=mo(),dA=xf(),vo=go(),hA=oe(),bo=lo(),lc=uo(),np=de(),Hv=Ov(),mA=Bv(),Kv=s((e,t)=>new RegExp(e,t),"defaultRegExp");Kv.code="new RegExp";var gA=["removeAdditional","useDefaults","coerceTypes"],yA=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),vA={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."},bA={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Uv=200;function _A(e){var t,r,n,i,o,a,c,u,l,p,f,d,h,y,v,g,w,A,C,j,T,he,se,Fe,$e;let X=e.strict,N=(t=e.code)===null||t===void 0?void 0:t.optimize,I=N===!0||N===void 0?1:N||0,q=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Kv,Z=(i=e.uriResolver)!==null&&i!==void 0?i:mA.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:X)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:X)!==null&&u!==void 0?u:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:X)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:X)!==null&&d!==void 0?d:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:X)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:I,regExp:q}:{optimize:I,regExp:q},loopRequired:(v=e.loopRequired)!==null&&v!==void 0?v:Uv,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:Uv,meta:(w=e.meta)!==null&&w!==void 0?w:!0,messages:(A=e.messages)!==null&&A!==void 0?A:!0,inlineRefs:(C=e.inlineRefs)!==null&&C!==void 0?C:!0,schemaId:(j=e.schemaId)!==null&&j!==void 0?j:"$id",addUsedSchema:(T=e.addUsedSchema)!==null&&T!==void 0?T:!0,validateSchema:(he=e.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:(se=e.validateFormats)!==null&&se!==void 0?se:!0,unicodeRegExp:(Fe=e.unicodeRegExp)!==null&&Fe!==void 0?Fe:!0,int32range:($e=e.int32range)!==null&&$e!==void 0?$e:!0,uriResolver:Z}}s(_A,"requiredOptions");var ip=class ip{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,..._A(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new hA.ValueScope({scope:{},prefixes:yA,es5:r,lines:n}),this.logger=EA(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,dA.getRules)(),zv.call(this,vA,t,"NOT SUPPORTED"),zv.call(this,bA,t,"DEPRECATED","warn"),this._metaOpts=wA.call(this),t.formats&&OA.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&PA.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),SA.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 o.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function o(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof Wv.default))throw f;return c.call(this,f),await u.call(this,f.missingSchema),a.call(this,p)}}function c({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function u(p){let f=await l.call(this,p);this.refs[p]||await o.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let o;if(typeof t=="object"){let{schemaId:a}=this.opts;if(o=t[a],o!==void 0&&typeof o!="string")throw new Error(`schema ${a} must be string`)}return r=(0,bo.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=Gv.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new vo.SchemaEnv({schema:{},schemaId:n});if(r=vo.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=Gv.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,bo.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(AA.call(this,n,r),!r)return(0,np.eachItem)(n,o=>rp.call(this,o)),this;IA.call(this,r);let i={...r,type:(0,lc.getJSONTypes)(r.type),schemaType:(0,lc.getJSONTypes)(r.schemaType)};return(0,np.eachItem)(n,i.type.length===0?o=>rp.call(this,o,i):o=>i.type.forEach(a=>rp.call(this,o,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),a=t;for(let c of o)a=a[c];for(let c in n){let u=n[c];if(typeof u!="object")continue;let{$data:l}=u.definition,p=a[c];l&&p&&(a[c]=Zv(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let a,{schemaId:c}=this.opts;if(typeof t=="object")a=t[c];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(t);if(u!==void 0)return u;n=(0,bo.normalizeId)(a||n);let l=bo.getSchemaRefs.call(this,t,n);return u=new vo.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):vo.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{vo.compileSchema.call(this,t)}finally{this.opts=r}}};s(ip,"Ajv");var _o=ip;_o.ValidationError=pA.default;_o.MissingRefError=Wv.default;ct.default=_o;function zv(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}s(zv,"checkOptions");function Gv(e){return e=(0,bo.normalizeId)(e),this.schemas[e]||this.refs[e]}s(Gv,"getSchEnv");function SA(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}s(SA,"addInitialSchemas");function OA(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(OA,"addInitialFormats");function PA(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}s(PA,"addInitialKeywords");function wA(){let e={...this.opts};for(let t of gA)delete e[t];return e}s(wA,"getMetaSchemaOptions");var $A={log(){},warn(){},error(){}};function EA(e){if(e===!1)return $A;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}s(EA,"getLogger");var xA=/^[a-z_$][a-z0-9_$:-]*$/i;function AA(e,t){let{RULES:r}=this;if((0,np.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!xA.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}s(AA,"checkKeyword");function rp(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=i?o.post:o.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,lc.getJSONTypes)(t.type),schemaType:(0,lc.getJSONTypes)(t.schemaType)}};t.before?CA.call(this,a,c,t.before):a.rules.push(c),o.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}s(rp,"addRule");function CA(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}s(CA,"addBeforeRule");function IA(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Zv(t)),e.validateSchema=this.compile(t,!0))}s(IA,"keywordMetaschema");var jA={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Zv(e){return{anyOf:[e,jA]}}s(Zv,"schemaOrData")});var So=b(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.callRef=ni.getValidate=void 0;var RA=mo(),Yv=Qt(),jt=oe(),ts=Jt(),Jv=go(),fc=de(),TA={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:a,opts:c,self:u}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=Jv.resolveRef.call(u,l,i,r);if(p===void 0)throw new RA.default(n.opts.uriResolver,i,r);if(p instanceof Jv.SchemaEnv)return d(p);return h(p);function f(){if(o===l)return pc(e,a,o,o.$async);let y=t.scopeValue("root",{ref:l});return pc(e,(0,jt._)`${y}.validate`,l,l.$async)}function d(y){let v=Qv(e,y);pc(e,v,y,y.$async)}function h(y){let v=t.scopeValue("schema",c.code.source===!0?{ref:y,code:(0,jt.stringify)(y)}:{ref:y}),g=t.name("valid"),w=e.subschema({schema:y,dataTypes:[],schemaPath:jt.nil,topSchemaRef:v,errSchemaPath:r},g);e.mergeEvaluated(w),e.ok(g)}}};function Qv(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,jt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(Qv,"getValidate");ni.getValidate=Qv;function pc(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:c,opts:u}=o,l=u.passContext?ts.default.this:jt.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,jt._)`await ${(0,Yv.callValidateCode)(e,t,l)}`),h(t),a||i.assign(y,!0)},v=>{i.if((0,jt._)`!(${v} instanceof ${o.ValidationError})`,()=>i.throw(v)),d(v),a||i.assign(y,!1)}),e.ok(y)}s(p,"callAsyncRef");function f(){e.result((0,Yv.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}s(f,"callSyncRef");function d(y){let v=(0,jt._)`${y}.errors`;i.assign(ts.default.vErrors,(0,jt._)`${ts.default.vErrors} === null ? ${v} : ${ts.default.vErrors}.concat(${v})`),i.assign(ts.default.errors,(0,jt._)`${ts.default.vErrors}.length`)}s(d,"addErrorsFrom");function h(y){var v;if(!o.opts.unevaluated)return;let g=(v=r==null?void 0:r.validate)===null||v===void 0?void 0:v.evaluated;if(o.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(o.props=fc.mergeEvaluated.props(i,g.props,o.props));else{let w=i.var("props",(0,jt._)`${y}.evaluated.props`);o.props=fc.mergeEvaluated.props(i,w,o.props,jt.Name)}if(o.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(o.items=fc.mergeEvaluated.items(i,g.items,o.items));else{let w=i.var("items",(0,jt._)`${y}.evaluated.items`);o.items=fc.mergeEvaluated.items(i,w,o.items,jt.Name)}}s(h,"addEvaluatedFrom")}s(pc,"callRef");ni.callRef=pc;ni.default=TA});var Xv=b(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});var kA=So(),NA=["$schema","id","$defs",{keyword:"$comment"},"definitions",kA.default];sp.default=NA});var e0=b(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});var op=es(),MA=oe(),gn=MA.operators,ap={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:gn.LTE,fail:gn.GT},{okStr:"<",ok:gn.LT,fail:gn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:gn.GTE,fail:gn.LT},{okStr:">",ok:gn.GT,fail:gn.LTE}]}},qA={message:s(e=>op.str`must be ${cp(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>op._`{comparison: ${cp(e).okStr}, limit: ${e.schemaCode}}`,"params")},DA={keyword:Object.keys(ap),type:"number",schemaType:"number",$data:!0,error:qA,code(e){let{data:t,schemaCode:r}=e;e.fail$data(op._`${t} ${cp(e).fail} ${r} || isNaN(${t})`)}};function cp(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[ap[r].exclusive]?1:0;return ap[r].ops[n]}s(cp,"kwdOp");up.default=DA});var r0=b(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});var t0={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},LA={keyword:Object.keys(t0),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=t0[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};lp.default=LA});var pp=b(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});var Oo=oe(),FA={message:s(({schemaCode:e})=>(0,Oo.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,Oo._)`{multipleOf: ${e}}`,"params")},VA={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:FA,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),c=o?(0,Oo._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,Oo._)`${a} !== parseInt(${a})`;e.fail$data((0,Oo._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};fp.default=VA});var i0=b(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});function n0(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}s(n0,"ucs2length");dp.default=n0;n0.code='require("ajv/dist/runtime/ucs2length").default'});var mp=b(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});var ii=oe(),BA=de(),HA=i0(),UA={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,ii.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,ii._)`{limit: ${e}}`,"params")},zA={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:UA,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?ii.operators.GT:ii.operators.LT,a=i.opts.unicode===!1?(0,ii._)`${r}.length`:(0,ii._)`${(0,BA.useFunc)(e.gen,HA.default)}(${r})`;e.fail$data((0,ii._)`${a} ${o} ${n}`)}};hp.default=zA});var yp=b(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});var GA=Qt(),dc=oe(),WA={message:s(({schemaCode:e})=>(0,dc.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,dc._)`{pattern: ${e}}`,"params")},KA={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:WA,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",c=r?(0,dc._)`(new RegExp(${i}, ${a}))`:(0,GA.usePattern)(e,n);e.fail$data((0,dc._)`!${c}.test(${t})`)}};gp.default=KA});var bp=b(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});var Po=oe(),ZA={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Po.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,Po._)`{limit: ${e}}`,"params")},YA={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:ZA,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Po.operators.GT:Po.operators.LT;e.fail$data((0,Po._)`Object.keys(${r}).length ${i} ${n}`)}};vp.default=YA});var Sp=b(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});var wo=Qt(),$o=oe(),JA=de(),QA={message:s(({params:{missingProperty:e}})=>(0,$o.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,$o._)`{missingProperty: ${e}}`,"params")},XA={keyword:"required",type:"object",schemaType:"array",$data:!0,error:QA,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:a}=e,{opts:c}=a;if(!o&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?l():p(),c.strictRequired){let h=e.parentSchema.properties,{definedProperties:y}=e.it;for(let v of r)if((h==null?void 0:h[v])===void 0&&!y.has(v)){let g=a.schemaEnv.baseId+a.errSchemaPath,w=`required property "${v}" is not defined at "${g}" (strictRequired)`;(0,JA.checkStrictMode)(a,w,a.opts.strictRequired)}}function l(){if(u||o)e.block$data($o.nil,f);else for(let h of r)(0,wo.checkReportMissingProp)(e,h)}s(l,"allErrorsMode");function p(){let h=t.let("missing");if(u||o){let y=t.let("valid",!0);e.block$data(y,()=>d(h,y)),e.ok(y)}else t.if((0,wo.checkMissingProp)(e,r,h)),(0,wo.reportMissingProp)(e,h),t.else()}s(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,wo.noPropertyInData)(t,i,h,c.ownProperties),()=>e.error())})}s(f,"loopAllRequired");function d(h,y){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(y,(0,wo.propertyInData)(t,i,h,c.ownProperties)),t.if((0,$o.not)(y),()=>{e.error(),t.break()})},$o.nil)}s(d,"loopUntilMissing")}};_p.default=XA});var Pp=b(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});var Eo=oe(),eC={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Eo.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,Eo._)`{limit: ${e}}`,"params")},tC={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:eC,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Eo.operators.GT:Eo.operators.LT;e.fail$data((0,Eo._)`${r}.length ${i} ${n}`)}};Op.default=tC});var hc=b(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});var s0=Nf();s0.code='require("ajv/dist/runtime/equal").default';wp.default=s0});var xp=b(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});var $p=uo(),ut=oe(),rC=de(),nC=hc(),iC={message:s(({params:{i:e,j:t}})=>(0,ut.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,ut._)`{i: ${e}, j: ${t}}`,"params")},sC={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:iC,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),l=o.items?(0,$p.getSchemaTypes)(o.items):[];e.block$data(u,p,(0,ut._)`${a} === false`),e.ok(u);function p(){let y=t.let("i",(0,ut._)`${r}.length`),v=t.let("j");e.setParams({i:y,j:v}),t.assign(u,!0),t.if((0,ut._)`${y} > 1`,()=>(f()?d:h)(y,v))}s(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(y=>y==="object"||y==="array")}s(f,"canOptimize");function d(y,v){let g=t.name("item"),w=(0,$p.checkDataTypes)(l,g,c.opts.strictNumbers,$p.DataType.Wrong),A=t.const("indices",(0,ut._)`{}`);t.for((0,ut._)`;${y}--;`,()=>{t.let(g,(0,ut._)`${r}[${y}]`),t.if(w,(0,ut._)`continue`),l.length>1&&t.if((0,ut._)`typeof ${g} == "string"`,(0,ut._)`${g} += "_"`),t.if((0,ut._)`typeof ${A}[${g}] == "number"`,()=>{t.assign(v,(0,ut._)`${A}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,ut._)`${A}[${g}] = ${y}`)})}s(d,"loopN");function h(y,v){let g=(0,rC.useFunc)(t,nC.default),w=t.name("outer");t.label(w).for((0,ut._)`;${y}--;`,()=>t.for((0,ut._)`${v} = ${y}; ${v}--;`,()=>t.if((0,ut._)`${g}(${r}[${y}], ${r}[${v}])`,()=>{e.error(),t.assign(u,!1).break(w)})))}s(h,"loopN2")}};Ep.default=sC});var Ip=b(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});var Ap=oe(),oC=de(),aC=hc(),cC={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,Ap._)`{allowedValue: ${e}}`,"params")},uC={keyword:"const",$data:!0,error:cC,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,Ap._)`!${(0,oC.useFunc)(t,aC.default)}(${r}, ${i})`):e.fail((0,Ap._)`${o} !== ${r}`)}};Cp.default=uC});var Rp=b(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});var xo=oe(),lC=de(),fC=hc(),pC={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,xo._)`{allowedValues: ${e}}`,"params")},dC={keyword:"enum",schemaType:"array",$data:!0,error:pC,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,u,l=s(()=>u??(u=(0,lC.useFunc)(t,fC.default)),"getEql"),p;if(c||n)p=t.let("valid"),e.block$data(p,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",o);p=(0,xo.or)(...i.map((y,v)=>d(h,v)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",o,h=>t.if((0,xo._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}s(f,"loopEnum");function d(h,y){let v=i[y];return typeof v=="object"&&v!==null?(0,xo._)`${l()}(${r}, ${h}[${y}])`:(0,xo._)`${r} === ${v}`}s(d,"equalCode")}};jp.default=dC});var o0=b(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});var hC=e0(),mC=r0(),gC=pp(),yC=mp(),vC=yp(),bC=bp(),_C=Sp(),SC=Pp(),OC=xp(),PC=Ip(),wC=Rp(),$C=[hC.default,mC.default,gC.default,yC.default,vC.default,bC.default,_C.default,SC.default,OC.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},PC.default,wC.default];Tp.default=$C});var Np=b(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.validateAdditionalItems=void 0;var si=oe(),kp=de(),EC={message:s(({params:{len:e}})=>(0,si.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,si._)`{limit: ${e}}`,"params")},xC={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:EC,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,kp.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}a0(e,n)}};function a0(e,t){let{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;let c=r.const("len",(0,si._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,si._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,kp.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,si._)`${c} <= ${t.length}`);r.if((0,si.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,p=>{e.subschema({keyword:o,dataProp:p,dataPropType:kp.Type.Num},l),a.allErrors||r.if((0,si.not)(l),()=>r.break())})}s(u,"validateItems")}s(a0,"validateAdditionalItems");Ao.validateAdditionalItems=a0;Ao.default=xC});var Mp=b(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.validateTuple=void 0;var c0=oe(),mc=de(),AC=Qt(),CC={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return u0(e,"additionalItems",t);r.items=!0,!(0,mc.alwaysValidSchema)(r,t)&&e.ok((0,AC.validateArray)(e))}};function u0(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:a,it:c}=e;p(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=mc.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,c0._)`${o}.length`);r.forEach((f,d)=>{(0,mc.alwaysValidSchema)(c,f)||(n.if((0,c0._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function p(f){let{opts:d,errSchemaPath:h}=c,y=r.length,v=y===f.minItems&&(y===f.maxItems||f[t]===!1);if(d.strictTuples&&!v){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,mc.checkStrictMode)(c,g,d.strictTuples)}}s(p,"checkStrictTuple")}s(u0,"validateTuple");Co.validateTuple=u0;Co.default=CC});var l0=b(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});var IC=Mp(),jC={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,IC.validateTuple)(e,"items"),"code")};qp.default=jC});var p0=b(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});var f0=oe(),RC=de(),TC=Qt(),kC=Np(),NC={message:s(({params:{len:e}})=>(0,f0.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,f0._)`{limit: ${e}}`,"params")},MC={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:NC,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,RC.alwaysValidSchema)(n,t)&&(i?(0,kC.validateAdditionalItems)(e,i):e.ok((0,TC.validateArray)(e)))}};Dp.default=MC});var d0=b(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var er=oe(),gc=de(),qC={message:s(({params:{min:e,max:t}})=>t===void 0?(0,er.str)`must contain at least ${e} valid item(s)`:(0,er.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:s(({params:{min:e,max:t}})=>t===void 0?(0,er._)`{minContains: ${e}}`:(0,er._)`{minContains: ${e}, maxContains: ${t}}`,"params")},DC={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:qC,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,a,c,{minContains:u,maxContains:l}=n;o.opts.next?(a=u===void 0?1:u,c=l):a=1;let p=t.const("len",(0,er._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,gc.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,gc.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,gc.alwaysValidSchema)(o,r)){let v=(0,er._)`${p} >= ${a}`;c!==void 0&&(v=(0,er._)`${v} && ${p} <= ${c}`),e.pass(v);return}o.items=!0;let f=t.name("valid");c===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),c!==void 0&&t.if((0,er._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let v=t.name("_valid"),g=t.let("count",0);h(v,()=>t.if(v,()=>y(g)))}s(d,"validateItemsWithCount");function h(v,g){t.forRange("i",0,p,w=>{e.subschema({keyword:"contains",dataProp:w,dataPropType:gc.Type.Num,compositeRule:!0},v),g()})}s(h,"validateItems");function y(v){t.code((0,er._)`${v}++`),c===void 0?t.if((0,er._)`${v} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,er._)`${v} > ${c}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,er._)`${v} >= ${a}`,()=>t.assign(f,!0)))}s(y,"checkLimits")}};Lp.default=DC});var yc=b(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.validateSchemaDeps=Rr.validatePropertyDeps=Rr.error=void 0;var Fp=oe(),LC=de(),Io=Qt();Rr.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Fp.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Fp._)`{property: ${e},
|
|
10
|
+
|| ${a} === "boolean" || ${i} === null`).assign(c,(0,ae._)`[${i}]`)}}s(u,"coerceSpecificType")}s(PE,"coerceData");function wE({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ae._)`${t} !== undefined`,()=>e.assign((0,ae._)`${t}[${r}]`,n))}s(wE,"assignParentData");function Rf(e,t,r,n=Zi.Correct){let i=n===Zi.Correct?ae.operators.EQ:ae.operators.NEQ,o;switch(e){case"null":return(0,ae._)`${t} ${i} null`;case"array":o=(0,ae._)`Array.isArray(${t})`;break;case"object":o=(0,ae._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,ae._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,ae._)`typeof ${t} ${i} ${e}`}return n===Zi.Correct?o:(0,ae.not)(o);function a(c=ae.nil){return(0,ae.and)((0,ae._)`typeof ${t} == "number"`,c,r?(0,ae._)`isFinite(${t})`:ae.nil)}}s(Rf,"checkDataType");dt.checkDataType=Rf;function Tf(e,t,r,n){if(e.length===1)return Rf(e[0],t,r,n);let i,o=(0,Gy.toHash)(e);if(o.array&&o.object){let a=(0,ae._)`typeof ${t} != "object"`;i=o.null?a:(0,ae._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else i=ae.nil;o.number&&delete o.integer;for(let a in o)i=(0,ae.and)(i,Rf(a,t,r,n));return i}s(Tf,"checkDataTypes");dt.checkDataTypes=Tf;var $E={message:s(({schema:e})=>`must be ${e}`,"message"),params:s(({schema:e,schemaValue:t})=>typeof e=="string"?(0,ae._)`{type: ${e}}`:(0,ae._)`{type: ${t}}`,"params")};function Nf(e){let t=EE(e);(0,bE.reportError)(t,$E)}s(Nf,"reportTypeError");dt.reportTypeError=Nf;function EE(e){let{gen:t,data:r,schema:n}=e,i=(0,Gy.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(EE,"getTypeErrorContext")});var Yy=b(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.assignDefaults=void 0;var Yi=oe(),xE=de();function AE(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)Zy(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Zy(e,o,i.default))}s(AE,"assignDefaults");rc.assignDefaults=AE;function Zy(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let c=(0,Yi._)`${o}${(0,Yi.getProperty)(t)}`;if(i){(0,xE.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,Yi._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,Yi._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,Yi._)`${c} = ${(0,Yi.stringify)(r)}`)}s(Zy,"assignDefault")});var Qt=b(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.validateUnion=Pe.validateArray=Pe.usePattern=Pe.callValidateCode=Pe.schemaProperties=Pe.allSchemaProperties=Pe.noPropertyInData=Pe.propertyInData=Pe.isOwnProperty=Pe.hasPropFunc=Pe.reportMissingProp=Pe.checkMissingProp=Pe.checkReportMissingProp=void 0;var Te=oe(),kf=de(),pn=Jt(),CE=de();function IE(e,t){let{gen:r,data:n,it:i}=e;r.if(qf(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Te._)`${t}`},!0),e.error()})}s(IE,"checkReportMissingProp");Pe.checkReportMissingProp=IE;function jE({gen:e,data:t,it:{opts:r}},n,i){return(0,Te.or)(...n.map(o=>(0,Te.and)(qf(e,t,o,r.ownProperties),(0,Te._)`${i} = ${o}`)))}s(jE,"checkMissingProp");Pe.checkMissingProp=jE;function RE(e,t){e.setParams({missingProperty:t},!0),e.error()}s(RE,"reportMissingProp");Pe.reportMissingProp=RE;function Jy(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Te._)`Object.prototype.hasOwnProperty`})}s(Jy,"hasPropFunc");Pe.hasPropFunc=Jy;function Mf(e,t,r){return(0,Te._)`${Jy(e)}.call(${t}, ${r})`}s(Mf,"isOwnProperty");Pe.isOwnProperty=Mf;function TE(e,t,r,n){let i=(0,Te._)`${t}${(0,Te.getProperty)(r)} !== undefined`;return n?(0,Te._)`${i} && ${Mf(e,t,r)}`:i}s(TE,"propertyInData");Pe.propertyInData=TE;function qf(e,t,r,n){let i=(0,Te._)`${t}${(0,Te.getProperty)(r)} === undefined`;return n?(0,Te.or)(i,(0,Te.not)(Mf(e,t,r))):i}s(qf,"noPropertyInData");Pe.noPropertyInData=qf;function Qy(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(Qy,"allSchemaProperties");Pe.allSchemaProperties=Qy;function NE(e,t){return Qy(t).filter(r=>!(0,kf.alwaysValidSchema)(e,t[r]))}s(NE,"schemaProperties");Pe.schemaProperties=NE;function kE({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},c,u,l){let p=l?(0,Te._)`${e}, ${t}, ${n}${i}`:t,f=[[pn.default.instancePath,(0,Te.strConcat)(pn.default.instancePath,o)],[pn.default.parentData,a.parentData],[pn.default.parentDataProperty,a.parentDataProperty],[pn.default.rootData,pn.default.rootData]];a.opts.dynamicRef&&f.push([pn.default.dynamicAnchors,pn.default.dynamicAnchors]);let d=(0,Te._)`${p}, ${r.object(...f)}`;return u!==Te.nil?(0,Te._)`${c}.call(${u}, ${d})`:(0,Te._)`${c}(${d})`}s(kE,"callValidateCode");Pe.callValidateCode=kE;var ME=(0,Te._)`new RegExp`;function qE({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,Te._)`${i.code==="new RegExp"?ME:(0,CE.useFunc)(e,i)}(${r}, ${n})`})}s(qE,"usePattern");Pe.usePattern=qE;function DE(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(o,!0),a(()=>t.break()),o;function a(c){let u=t.const("len",(0,Te._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:kf.Type.Num},o),t.if((0,Te.not)(o),c)})}s(a,"validateItems")}s(DE,"validateArray");Pe.validateArray=DE;function LE(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,kf.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},c);t.assign(a,(0,Te._)`${a} || ${c}`),e.mergeValidEvaluated(p,c)||t.if((0,Te.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(LE,"validateUnion");Pe.validateUnion=LE});var tv=b(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.validateKeywordUsage=Ir.validSchemaType=Ir.funcKeywordCode=Ir.macroKeywordCode=void 0;var _t=oe(),ti=Jt(),FE=Qt(),VE=uo();function BE(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,c=t.macro.call(a.self,i,o,a),u=ev(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:_t.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}s(BE,"macroKeywordCode");Ir.macroKeywordCode=BE;function HE(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:c,it:u}=e;zE(u,t);let l=!c&&t.compile?t.compile.call(u.self,o,a,u):t.validate,p=ev(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)v(),t.modifying&&Xy(e),g(()=>e.error());else{let w=t.async?h():y();t.modifying&&Xy(e),g(()=>UE(e,w))}}s(d,"validateKeyword");function h(){let w=n.let("ruleErrs",null);return n.try(()=>v((0,_t._)`await `),A=>n.assign(f,!1).if((0,_t._)`${A} instanceof ${u.ValidationError}`,()=>n.assign(w,(0,_t._)`${A}.errors`),()=>n.throw(A))),w}s(h,"validateAsync");function y(){let w=(0,_t._)`${p}.errors`;return n.assign(w,null),v(_t.nil),w}s(y,"validateSync");function v(w=t.async?(0,_t._)`await `:_t.nil){let A=u.opts.passContext?ti.default.this:ti.default.self,I=!("compile"in t&&!c||t.schema===!1);n.assign(f,(0,_t._)`${w}${(0,FE.callValidateCode)(e,p,A,I)}`,t.modifying)}s(v,"assignValid");function g(w){var A;n.if((0,_t.not)((A=t.valid)!==null&&A!==void 0?A:f),w)}s(g,"reportErrs")}s(HE,"funcKeywordCode");Ir.funcKeywordCode=HE;function Xy(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,_t._)`${n.parentData}[${n.parentDataProperty}]`))}s(Xy,"modifyData");function UE(e,t){let{gen:r}=e;r.if((0,_t._)`Array.isArray(${t})`,()=>{r.assign(ti.default.vErrors,(0,_t._)`${ti.default.vErrors} === null ? ${t} : ${ti.default.vErrors}.concat(${t})`).assign(ti.default.errors,(0,_t._)`${ti.default.vErrors}.length`),(0,VE.extendErrors)(e)},()=>e.error())}s(UE,"addErrs");function zE({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(zE,"checkAsyncKeyword");function ev(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,_t.stringify)(r)})}s(ev,"useKeyword");function GE(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}s(GE,"validSchemaType");Ir.validSchemaType=GE;function WE({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let u=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}s(WE,"validateKeywordUsage");Ir.validateKeywordUsage=WE});var nv=b(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.extendSubschemaMode=dn.extendSubschemaData=dn.getSubschema=void 0;var jr=oe(),rv=de();function KE(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,jr._)`${e.schemaPath}${(0,jr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,jr._)`${e.schemaPath}${(0,jr.getProperty)(t)}${(0,jr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,rv.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}s(KE,"getSubschema");dn.getSubschema=KE;function ZE(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=c.let("data",(0,jr._)`${t.data}${(0,jr.getProperty)(r)}`,!0);u(d),e.errorPath=(0,jr.str)`${l}${(0,rv.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,jr._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof jr.Name?i:c.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}o&&(e.dataTypes=o);function u(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}s(u,"dataContextProps")}s(ZE,"extendSubschemaData");dn.extendSubschemaData=ZE;function YE(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}s(YE,"extendSubschemaMode");dn.extendSubschemaMode=YE});var Df=b((aF,iv)=>{"use strict";iv.exports=s(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var ov=b((uF,sv)=>{"use strict";var hn=sv.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(){};nc(t,n,i,e,"",e)};hn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};hn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};hn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};hn.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 nc(e,t,r,n,i,o,a,c,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,c,u,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in hn.arrayKeywords)for(var d=0;d<f.length;d++)nc(e,t,r,f[d],i+"/"+p+"/"+d,o,i,p,n,d)}else if(p in hn.propsKeywords){if(f&&typeof f=="object")for(var h in f)nc(e,t,r,f[h],i+"/"+p+"/"+JE(h),o,i,p,n,h)}else(p in hn.keywords||e.allKeys&&!(p in hn.skipKeywords))&&nc(e,t,r,f,i+"/"+p,o,i,p,n)}r(n,i,o,a,c,u,l)}}s(nc,"_traverse");function JE(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(JE,"escapeJsonPtr")});var fo=b(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.getSchemaRefs=It.resolveUrl=It.normalizeId=It._getFullPath=It.getFullPath=It.inlineRef=void 0;var QE=de(),XE=Df(),ex=ov(),tx=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function rx(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Lf(e):t?av(e)<=t:!1}s(rx,"inlineRef");It.inlineRef=rx;var nx=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Lf(e){for(let t in e){if(nx.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Lf)||typeof r=="object"&&Lf(r))return!0}return!1}s(Lf,"hasRef");function av(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!tx.has(r)&&(typeof e[r]=="object"&&(0,QE.eachItem)(e[r],n=>t+=av(n)),t===1/0))return 1/0}return t}s(av,"countKeys");function cv(e,t="",r){r!==!1&&(t=Ji(t));let n=e.parse(t);return uv(e,n)}s(cv,"getFullPath");It.getFullPath=cv;function uv(e,t){return e.serialize(t).split("#")[0]+"#"}s(uv,"_getFullPath");It._getFullPath=uv;var ix=/#\/?$/;function Ji(e){return e?e.replace(ix,""):""}s(Ji,"normalizeId");It.normalizeId=Ji;function sx(e,t,r){return r=Ji(r),e.resolve(t,r)}s(sx,"resolveUrl");It.resolveUrl=sx;var ox=/^[a-z_][-a-z0-9._]*$/i;function ax(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=Ji(e[r]||t),o={"":i},a=cv(n,i,!1),c={},u=new Set;return ex(e,{allKeys:!0},(f,d,h,y)=>{if(y===void 0)return;let v=a+d,g=o[y];typeof f[r]=="string"&&(g=w.call(this,f[r])),A.call(this,f.$anchor),A.call(this,f.$dynamicAnchor),o[d]=g;function w(I){let N=this.opts.uriResolver.resolve;if(I=Ji(g?N(g,I):I),u.has(I))throw p(I);u.add(I);let R=this.refs[I];return typeof R=="string"&&(R=this.refs[R]),typeof R=="object"?l(f,R.schema,I):I!==Ji(v)&&(I[0]==="#"?(l(f,c[I],I),c[I]=f):this.refs[I]=v),I}s(w,"addRef");function A(I){if(typeof I=="string"){if(!ox.test(I))throw new Error(`invalid anchor "${I}"`);w.call(this,`#${I}`)}}s(A,"addAnchor")}),c;function l(f,d,h){if(d!==void 0&&!XE(f,d))throw p(h)}s(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}s(p,"ambiguos")}s(ax,"getSchemaRefs");It.getSchemaRefs=ax});var mo=b(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.getData=mn.KeywordCxt=mn.validateFunctionCode=void 0;var hv=Hy(),lv=lo(),Vf=jf(),ic=lo(),cx=Yy(),ho=tv(),Ff=nv(),K=oe(),ne=Jt(),ux=fo(),Wr=de(),po=uo();function lx(e){if(yv(e)&&(vv(e),gv(e))){dx(e);return}mv(e,()=>(0,hv.topBoolOrEmptySchema)(e))}s(lx,"validateFunctionCode");mn.validateFunctionCode=lx;function mv({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,K._)`${ne.default.data}, ${ne.default.valCxt}`,n.$async,()=>{e.code((0,K._)`"use strict"; ${fv(r,i)}`),px(e,i),e.code(o)}):e.func(t,(0,K._)`${ne.default.data}, ${fx(i)}`,n.$async,()=>e.code(fv(r,i)).code(o))}s(mv,"validateFunction");function fx(e){return(0,K._)`{${ne.default.instancePath}="", ${ne.default.parentData}, ${ne.default.parentDataProperty}, ${ne.default.rootData}=${ne.default.data}${e.dynamicRef?(0,K._)`, ${ne.default.dynamicAnchors}={}`:K.nil}}={}`}s(fx,"destructureValCxt");function px(e,t){e.if(ne.default.valCxt,()=>{e.var(ne.default.instancePath,(0,K._)`${ne.default.valCxt}.${ne.default.instancePath}`),e.var(ne.default.parentData,(0,K._)`${ne.default.valCxt}.${ne.default.parentData}`),e.var(ne.default.parentDataProperty,(0,K._)`${ne.default.valCxt}.${ne.default.parentDataProperty}`),e.var(ne.default.rootData,(0,K._)`${ne.default.valCxt}.${ne.default.rootData}`),t.dynamicRef&&e.var(ne.default.dynamicAnchors,(0,K._)`${ne.default.valCxt}.${ne.default.dynamicAnchors}`)},()=>{e.var(ne.default.instancePath,(0,K._)`""`),e.var(ne.default.parentData,(0,K._)`undefined`),e.var(ne.default.parentDataProperty,(0,K._)`undefined`),e.var(ne.default.rootData,ne.default.data),t.dynamicRef&&e.var(ne.default.dynamicAnchors,(0,K._)`{}`)})}s(px,"destructureValCxtES5");function dx(e){let{schema:t,opts:r,gen:n}=e;mv(e,()=>{r.$comment&&t.$comment&&_v(e),vx(e),n.let(ne.default.vErrors,null),n.let(ne.default.errors,0),r.unevaluated&&hx(e),bv(e),Sx(e)})}s(dx,"topSchemaObjCode");function hx(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,K._)`${r}.evaluated`),t.if((0,K._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,K._)`${e.evaluated}.props`,(0,K._)`undefined`)),t.if((0,K._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,K._)`${e.evaluated}.items`,(0,K._)`undefined`))}s(hx,"resetEvaluated");function fv(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,K._)`/*# sourceURL=${r} */`:K.nil}s(fv,"funcSourceUrl");function mx(e,t){if(yv(e)&&(vv(e),gv(e))){gx(e,t);return}(0,hv.boolOrEmptySchema)(e,t)}s(mx,"subschemaCode");function gv({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}s(gv,"schemaCxtHasRules");function yv(e){return typeof e.schema!="boolean"}s(yv,"isSchemaObj");function gx(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&_v(e),bx(e),_x(e);let o=n.const("_errs",ne.default.errors);bv(e,o),n.var(t,(0,K._)`${o} === ${ne.default.errors}`)}s(gx,"subSchemaObjCode");function vv(e){(0,Wr.checkUnknownRules)(e),yx(e)}s(vv,"checkKeywords");function bv(e,t){if(e.opts.jtd)return pv(e,[],!1,t);let r=(0,lv.getSchemaTypes)(e.schema),n=(0,lv.coerceAndCheckDataType)(e,r);pv(e,r,!n,t)}s(bv,"typeAndKeywords");function yx(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Wr.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s(yx,"checkRefsAndKeywords");function vx(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Wr.checkStrictMode)(e,"default is ignored in the schema root")}s(vx,"checkNoDefault");function bx(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,ux.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(bx,"updateContext");function _x(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s(_x,"checkAsyncSchema");function _v({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,K._)`${ne.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,K.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,K._)`${ne.default.self}.opts.$comment(${o}, ${a}, ${c}.schema)`)}}s(_v,"commentKeyword");function Sx(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,K._)`${ne.default.errors} === 0`,()=>t.return(ne.default.data),()=>t.throw((0,K._)`new ${i}(${ne.default.vErrors})`)):(t.assign((0,K._)`${n}.errors`,ne.default.vErrors),o.unevaluated&&Ox(e),t.return((0,K._)`${ne.default.errors} === 0`))}s(Sx,"returnResults");function Ox({gen:e,evaluated:t,props:r,items:n}){r instanceof K.Name&&e.assign((0,K._)`${t}.props`,r),n instanceof K.Name&&e.assign((0,K._)`${t}.items`,n)}s(Ox,"assignEvaluated");function pv(e,t,r,n){let{gen:i,schema:o,data:a,allErrors:c,opts:u,self:l}=e,{RULES:p}=l;if(o.$ref&&(u.ignoreKeywordsWithRef||!(0,Wr.schemaHasRulesButRef)(o,p))){i.block(()=>Ov(e,"$ref",p.all.$ref.definition));return}u.jtd||Px(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,Vf.shouldUseGroup)(o,d)&&(d.type?(i.if((0,ic.checkDataType)(d.type,a,u.strictNumbers)),dv(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,ic.reportTypeError)(e)),i.endIf()):dv(e,d),c||i.if((0,K._)`${ne.default.errors} === ${n||0}`))}s(f,"groupKeywords")}s(pv,"schemaKeywords");function dv(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,cx.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,Vf.shouldUseRule)(n,o)&&Ov(e,o.keyword,o.definition,t.type)})}s(dv,"iterateKeywords");function Px(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(wx(e,t),e.opts.allowUnionTypes||$x(e,t),Ex(e,e.dataTypes))}s(Px,"checkStrictTypes");function wx(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Sv(e.dataTypes,r)||Bf(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),Ax(e,t)}}s(wx,"checkContextTypes");function $x(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Bf(e,"use allowUnionTypes to allow union type keyword")}s($x,"checkMultipleTypes");function Ex(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Vf.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>xx(t,a))&&Bf(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(Ex,"checkKeywordTypes");function xx(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(xx,"hasApplicableType");function Sv(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(Sv,"includesType");function Ax(e,t){let r=[];for(let n of e.dataTypes)Sv(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s(Ax,"narrowSchemaTypes");function Bf(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Wr.checkStrictMode)(e,t,e.opts.strictTypes)}s(Bf,"strictTypesError");var Hf=class Hf{constructor(t,r,n){if((0,ho.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,Wr.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",Pv(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,ho.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",ne.default.errors))}result(t,r,n){this.failResult((0,K.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,K.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,K._)`${r} !== undefined && (${(0,K.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?po.reportExtraError:po.reportError)(this,this.def.error,r)}$dataError(){(0,po.reportError)(this,this.def.$dataError||po.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,po.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=K.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=K.nil,r=K.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,K.or)((0,K._)`${i} === undefined`,r)),t!==K.nil&&n.assign(t,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==K.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,K.or)(a(),c());function a(){if(n.length){if(!(r instanceof K.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,K._)`${(0,ic.checkDataTypes)(u,r,o.opts.strictNumbers,ic.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,Ff.getSubschema)(this.it,t);(0,Ff.extendSubschemaData)(n,this.it,t),(0,Ff.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return mx(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Wr.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Wr.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,K.Name)),!0}};s(Hf,"KeywordCxt");var sc=Hf;mn.KeywordCxt=sc;function Ov(e,t,r,n){let i=new sc(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,ho.funcKeywordCode)(i,r):"macro"in r?(0,ho.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,ho.funcKeywordCode)(i,r)}s(Ov,"keywordCode");var Cx=/^\/(?:[^~]|~0|~1)*$/,Ix=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Pv(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return ne.default.rootData;if(e[0]==="/"){if(!Cx.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=ne.default.rootData}else{let l=Ix.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(i=l[2],i==="#"){if(p>=t)throw new Error(u("property/index",p));return n[t-p]}if(p>t)throw new Error(u("data",p));if(o=r[t-p],!i)return o}let a=o,c=i.split("/");for(let l of c)l&&(o=(0,K._)`${o}${(0,K.getProperty)((0,Wr.unescapeJsonPointer)(l))}`,a=(0,K._)`${a} && ${o}`);return a;function u(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}s(Pv,"getData");mn.getData=Pv});var oc=b(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});var Gf=class Gf extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(Gf,"ValidationError");var Uf=Gf;zf.default=Uf});var go=b(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var Wf=fo(),Yf=class Yf extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Wf.resolveUrl)(t,r,n),this.missingSchema=(0,Wf.normalizeId)((0,Wf.getFullPath)(t,this.missingRef))}};s(Yf,"MissingRefError");var Kf=Yf;Zf.default=Kf});var yo=b(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.resolveSchema=Xt.getCompilingSchema=Xt.resolveRef=Xt.compileSchema=Xt.SchemaEnv=void 0;var mr=oe(),jx=oc(),ri=Jt(),gr=fo(),wv=de(),Rx=mo(),Xf=class Xf{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,gr.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};s(Xf,"SchemaEnv");var Qi=Xf;Xt.SchemaEnv=Qi;function Qf(e){let t=$v.call(this,e);if(t)return t;let r=(0,gr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new mr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),c;e.$async&&(c=a.scopeValue("Error",{ref:jx.default,code:(0,mr._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:ri.default.data,parentData:ri.default.parentData,parentDataProperty:ri.default.parentDataProperty,dataNames:[ri.default.data],dataPathArr:[mr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,mr.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:mr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,mr._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,Rx.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(ri.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${ri.default.self}`,`${ri.default.scope}`,p)(this,this.scope.get());if(this.scope.value(u,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:u,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:y,items:v}=l;h.evaluated={props:y instanceof mr.Name?void 0:y,items:v instanceof mr.Name?void 0:v,dynamicProps:y instanceof mr.Name,dynamicItems:v instanceof mr.Name},h.source&&(h.source.evaluated=(0,mr.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(e)}}s(Qf,"compileSchema");Xt.compileSchema=Qf;function Tx(e,t,r){var n;r=(0,gr.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=Mx.call(this,e,r);if(o===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(o=new Qi({schema:a,schemaId:c,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=Nx.call(this,o)}s(Tx,"resolveRef");Xt.resolveRef=Tx;function Nx(e){return(0,gr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Qf.call(this,e)}s(Nx,"inlineOrCompile");function $v(e){for(let t of this._compilations)if(kx(t,e))return t}s($v,"getCompilingSchema");Xt.getCompilingSchema=$v;function kx(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(kx,"sameSchemaEnv");function Mx(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||ac.call(this,e,t)}s(Mx,"resolve");function ac(e,t){let r=this.opts.uriResolver.parse(t),n=(0,gr._getFullPath)(this.opts.uriResolver,r),i=(0,gr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Jf.call(this,r,e);let o=(0,gr.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let c=ac.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Jf.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Qf.call(this,a),o===(0,gr.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,gr.resolveUrl)(this.opts.uriResolver,i,l)),new Qi({schema:c,schemaId:u,root:e,baseId:i})}return Jf.call(this,r,a)}}s(ac,"resolveSchema");Xt.resolveSchema=ac;var qx=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Jf(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,wv.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!qx.has(c)&&l&&(t=(0,gr.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,wv.schemaHasRulesButRef)(r,this.RULES)){let c=(0,gr.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=ac.call(this,n,c)}let{schemaId:a}=this.opts;if(o=o||new Qi({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(Jf,"getJsonPointer")});var Ev=b((SF,Dx)=>{Dx.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 Av=b((OF,xv)=>{"use strict";var Lx={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};xv.exports={HEX:Lx}});var Mv=b((PF,kv)=>{"use strict";var{HEX:Fx}=Av();function Rv(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:Bx(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(Rv,"normalizeIPv4");function ep(e,t=!1){let r="",n=!0;for(let i of e){if(Fx[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(ep,"stringArrayToHexStripped");function Vx(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,a=!1,c=!1;function u(){if(i.length){if(o===!1){let l=ep(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}s(u,"consume");for(let l=0;l<e.length;l++){let p=e[l];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(c=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(p==="%"){if(!u())break;o=!0}else{i.push(p);continue}}return i.length&&(o?r.zone=i.join(""):c?n.push(i.join("")):n.push(ep(i))),r.address=n.join(""),r}s(Vx,"getIPV6");function Tv(e,t={}){if(Nv(e,":")<2)return{host:e,isIPV6:!1};let r=Vx(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}s(Tv,"normalizeIPv6");function Bx(e,t){let r="",n=!0,i=e.length;for(let o=0;o<i;o++){let a=e[o];a==="0"&&n?(o+1<=i&&e[o+1]===t||o+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}s(Bx,"stripLeadingZeros");function Nv(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(Nv,"findToken");var Cv=/^\.\.?\//u,Iv=/^\/\.(?:\/|$)/u,jv=/^\/\.\.(?:\/|$)/u,Hx=/^\/?(?:.|\n)*?(?=\/|$)/u;function Ux(e){let t=[];for(;e.length;)if(e.match(Cv))e=e.replace(Cv,"");else if(e.match(Iv))e=e.replace(Iv,"/");else if(e.match(jv))e=e.replace(jv,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(Hx);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}s(Ux,"removeDotSegments");function zx(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}s(zx,"normalizeComponentEncoding");function Gx(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=Rv(n);if(i.isIPV4)n=i.host;else{let o=Tv(i.host,{isIPV4:!1});o.isIPV6===!0?n=`[${o.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}s(Gx,"recomposeAuthority");kv.exports={recomposeAuthority:Gx,normalizeComponentEncoding:zx,removeDotSegments:Ux,normalizeIPv4:Rv,normalizeIPv6:Tv,stringArrayToHexStripped:ep}});var Bv=b(($F,Vv)=>{"use strict";var Wx=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,Kx=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function qv(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s(qv,"isSecure");function Dv(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(Dv,"httpParse");function Lv(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}s(Lv,"httpSerialize");function Zx(e){return e.secure=qv(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s(Zx,"wsParse");function Yx(e){if((e.port===(qv(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}s(Yx,"wsSerialize");function Jx(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(Kx);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,o=tp[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(Jx,"urnParse");function Qx(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=tp[i];o&&(e=o.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}s(Qx,"urnSerialize");function Xx(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!Wx.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(Xx,"urnuuidParse");function eA(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(eA,"urnuuidSerialize");var Fv={scheme:"http",domainHost:!0,parse:Dv,serialize:Lv},tA={scheme:"https",domainHost:Fv.domainHost,parse:Dv,serialize:Lv},cc={scheme:"ws",domainHost:!0,parse:Zx,serialize:Yx},rA={scheme:"wss",domainHost:cc.domainHost,parse:cc.parse,serialize:cc.serialize},nA={scheme:"urn",parse:Jx,serialize:Qx,skipNormalize:!0},iA={scheme:"urn:uuid",parse:Xx,serialize:eA,skipNormalize:!0},tp={http:Fv,https:tA,ws:cc,wss:rA,urn:nA,"urn:uuid":iA};Vv.exports=tp});var Uv=b((xF,lc)=>{"use strict";var{normalizeIPv6:sA,normalizeIPv4:oA,removeDotSegments:vo,recomposeAuthority:aA,normalizeComponentEncoding:uc}=Mv(),rp=Bv();function cA(e,t){return typeof e=="string"?e=Rr(Kr(e,t),t):typeof e=="object"&&(e=Kr(Rr(e,t),t)),e}s(cA,"normalize");function uA(e,t,r){let n=Object.assign({scheme:"null"},r),i=Hv(Kr(e,n),Kr(t,n),n,!0);return Rr(i,{...n,skipEscape:!0})}s(uA,"resolve");function Hv(e,t,r,n){let i={};return n||(e=Kr(Rr(e,r),r),t=Kr(Rr(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=vo(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=vo(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=vo(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=vo(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}s(Hv,"resolveComponents");function lA(e,t,r){return typeof e=="string"?(e=unescape(e),e=Rr(uc(Kr(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Rr(uc(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Rr(uc(Kr(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Rr(uc(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(lA,"equal");function Rr(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],o=rp[(n.scheme||r.scheme||"").toLowerCase()];o&&o.serialize&&o.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=aA(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let c=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(c=vo(c)),a===void 0&&(c=c.replace(/^\/\//u,"/%2F")),i.push(c)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}s(Rr,"serialize");var fA=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function pA(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||fA[t])return!0;return!1}s(pA,"nonSimpleDomain");var dA=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Kr(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,o=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(dA);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=oA(n.host);if(u.isIPV4===!1){let l=sA(u.host,{isIPV4:!1});n.host=l.host.toLowerCase(),o=l.isIPV6}else n.host=u.host,o=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=rp[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&o===!1&&pA(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!c||c&&!c.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}s(Kr,"parse");var np={SCHEMES:rp,normalize:cA,resolve:uA,resolveComponents:Hv,equal:lA,serialize:Rr,parse:Kr};lc.exports=np;lc.exports.default=np;lc.exports.fastUri=np});var Gv=b(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});var zv=Uv();zv.code='require("ajv/dist/runtime/uri").default';ip.default=zv});var es=b(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.CodeGen=ct.Name=ct.nil=ct.stringify=ct.str=ct._=ct.KeywordCxt=void 0;var hA=mo();Object.defineProperty(ct,"KeywordCxt",{enumerable:!0,get:s(function(){return hA.KeywordCxt},"get")});var Xi=oe();Object.defineProperty(ct,"_",{enumerable:!0,get:s(function(){return Xi._},"get")});Object.defineProperty(ct,"str",{enumerable:!0,get:s(function(){return Xi.str},"get")});Object.defineProperty(ct,"stringify",{enumerable:!0,get:s(function(){return Xi.stringify},"get")});Object.defineProperty(ct,"nil",{enumerable:!0,get:s(function(){return Xi.nil},"get")});Object.defineProperty(ct,"Name",{enumerable:!0,get:s(function(){return Xi.Name},"get")});Object.defineProperty(ct,"CodeGen",{enumerable:!0,get:s(function(){return Xi.CodeGen},"get")});var mA=oc(),Jv=go(),gA=If(),bo=yo(),yA=oe(),_o=fo(),fc=lo(),op=de(),Wv=Ev(),vA=Gv(),Qv=s((e,t)=>new RegExp(e,t),"defaultRegExp");Qv.code="new RegExp";var bA=["removeAdditional","useDefaults","coerceTypes"],_A=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),SA={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."},OA={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Kv=200;function PA(e){var t,r,n,i,o,a,c,u,l,p,f,d,h,y,v,g,w,A,I,N,R,he,se,Fe,$e;let X=e.strict,k=(t=e.code)===null||t===void 0?void 0:t.optimize,C=k===!0||k===void 0?1:k||0,q=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Qv,Z=(i=e.uriResolver)!==null&&i!==void 0?i:vA.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:X)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:X)!==null&&u!==void 0?u:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:X)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:X)!==null&&d!==void 0?d:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:X)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:C,regExp:q}:{optimize:C,regExp:q},loopRequired:(v=e.loopRequired)!==null&&v!==void 0?v:Kv,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:Kv,meta:(w=e.meta)!==null&&w!==void 0?w:!0,messages:(A=e.messages)!==null&&A!==void 0?A:!0,inlineRefs:(I=e.inlineRefs)!==null&&I!==void 0?I:!0,schemaId:(N=e.schemaId)!==null&&N!==void 0?N:"$id",addUsedSchema:(R=e.addUsedSchema)!==null&&R!==void 0?R:!0,validateSchema:(he=e.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:(se=e.validateFormats)!==null&&se!==void 0?se:!0,unicodeRegExp:(Fe=e.unicodeRegExp)!==null&&Fe!==void 0?Fe:!0,int32range:($e=e.int32range)!==null&&$e!==void 0?$e:!0,uriResolver:Z}}s(PA,"requiredOptions");var ap=class ap{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...PA(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new yA.ValueScope({scope:{},prefixes:_A,es5:r,lines:n}),this.logger=CA(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,gA.getRules)(),Zv.call(this,SA,t,"NOT SUPPORTED"),Zv.call(this,OA,t,"DEPRECATED","warn"),this._metaOpts=xA.call(this),t.formats&&$A.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&EA.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),wA.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=Wv;n==="id"&&(i={...Wv},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(p,f){await o.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function o(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof Jv.default))throw f;return c.call(this,f),await u.call(this,f.missingSchema),a.call(this,p)}}function c({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function u(p){let f=await l.call(this,p);this.refs[p]||await o.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let o;if(typeof t=="object"){let{schemaId:a}=this.opts;if(o=t[a],o!==void 0&&typeof o!="string")throw new Error(`schema ${a} must be string`)}return r=(0,_o.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=Yv.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new bo.SchemaEnv({schema:{},schemaId:n});if(r=bo.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,_o.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(jA.call(this,n,r),!r)return(0,op.eachItem)(n,o=>sp.call(this,o)),this;TA.call(this,r);let i={...r,type:(0,fc.getJSONTypes)(r.type),schemaType:(0,fc.getJSONTypes)(r.schemaType)};return(0,op.eachItem)(n,i.type.length===0?o=>sp.call(this,o,i):o=>i.type.forEach(a=>sp.call(this,o,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),a=t;for(let c of o)a=a[c];for(let c in n){let u=n[c];if(typeof u!="object")continue;let{$data:l}=u.definition,p=a[c];l&&p&&(a[c]=Xv(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let a,{schemaId:c}=this.opts;if(typeof t=="object")a=t[c];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(t);if(u!==void 0)return u;n=(0,_o.normalizeId)(a||n);let l=_o.getSchemaRefs.call(this,t,n);return u=new bo.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):bo.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{bo.compileSchema.call(this,t)}finally{this.opts=r}}};s(ap,"Ajv");var So=ap;So.ValidationError=mA.default;So.MissingRefError=Jv.default;ct.default=So;function Zv(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}s(Zv,"checkOptions");function Yv(e){return e=(0,_o.normalizeId)(e),this.schemas[e]||this.refs[e]}s(Yv,"getSchEnv");function wA(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}s(wA,"addInitialSchemas");function $A(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s($A,"addInitialFormats");function EA(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}s(EA,"addInitialKeywords");function xA(){let e={...this.opts};for(let t of bA)delete e[t];return e}s(xA,"getMetaSchemaOptions");var AA={log(){},warn(){},error(){}};function CA(e){if(e===!1)return AA;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}s(CA,"getLogger");var IA=/^[a-z_$][a-z0-9_$:-]*$/i;function jA(e,t){let{RULES:r}=this;if((0,op.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!IA.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}s(jA,"checkKeyword");function sp(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=i?o.post:o.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,fc.getJSONTypes)(t.type),schemaType:(0,fc.getJSONTypes)(t.schemaType)}};t.before?RA.call(this,a,c,t.before):a.rules.push(c),o.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}s(sp,"addRule");function RA(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}s(RA,"addBeforeRule");function TA(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Xv(t)),e.validateSchema=this.compile(t,!0))}s(TA,"keywordMetaschema");var NA={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Xv(e){return{anyOf:[e,NA]}}s(Xv,"schemaOrData")});var Oo=b(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.callRef=ni.getValidate=void 0;var kA=go(),e0=Qt(),jt=oe(),ts=Jt(),t0=yo(),pc=de(),MA={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:a,opts:c,self:u}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=t0.resolveRef.call(u,l,i,r);if(p===void 0)throw new kA.default(n.opts.uriResolver,i,r);if(p instanceof t0.SchemaEnv)return d(p);return h(p);function f(){if(o===l)return dc(e,a,o,o.$async);let y=t.scopeValue("root",{ref:l});return dc(e,(0,jt._)`${y}.validate`,l,l.$async)}function d(y){let v=r0(e,y);dc(e,v,y,y.$async)}function h(y){let v=t.scopeValue("schema",c.code.source===!0?{ref:y,code:(0,jt.stringify)(y)}:{ref:y}),g=t.name("valid"),w=e.subschema({schema:y,dataTypes:[],schemaPath:jt.nil,topSchemaRef:v,errSchemaPath:r},g);e.mergeEvaluated(w),e.ok(g)}}};function r0(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,jt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(r0,"getValidate");ni.getValidate=r0;function dc(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:c,opts:u}=o,l=u.passContext?ts.default.this:jt.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,jt._)`await ${(0,e0.callValidateCode)(e,t,l)}`),h(t),a||i.assign(y,!0)},v=>{i.if((0,jt._)`!(${v} instanceof ${o.ValidationError})`,()=>i.throw(v)),d(v),a||i.assign(y,!1)}),e.ok(y)}s(p,"callAsyncRef");function f(){e.result((0,e0.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}s(f,"callSyncRef");function d(y){let v=(0,jt._)`${y}.errors`;i.assign(ts.default.vErrors,(0,jt._)`${ts.default.vErrors} === null ? ${v} : ${ts.default.vErrors}.concat(${v})`),i.assign(ts.default.errors,(0,jt._)`${ts.default.vErrors}.length`)}s(d,"addErrorsFrom");function h(y){var v;if(!o.opts.unevaluated)return;let g=(v=r==null?void 0:r.validate)===null||v===void 0?void 0:v.evaluated;if(o.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(o.props=pc.mergeEvaluated.props(i,g.props,o.props));else{let w=i.var("props",(0,jt._)`${y}.evaluated.props`);o.props=pc.mergeEvaluated.props(i,w,o.props,jt.Name)}if(o.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(o.items=pc.mergeEvaluated.items(i,g.items,o.items));else{let w=i.var("items",(0,jt._)`${y}.evaluated.items`);o.items=pc.mergeEvaluated.items(i,w,o.items,jt.Name)}}s(h,"addEvaluatedFrom")}s(dc,"callRef");ni.callRef=dc;ni.default=MA});var n0=b(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});var qA=Oo(),DA=["$schema","id","$defs",{keyword:"$comment"},"definitions",qA.default];cp.default=DA});var i0=b(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});var up=es(),LA=oe(),gn=LA.operators,lp={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:gn.LTE,fail:gn.GT},{okStr:"<",ok:gn.LT,fail:gn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:gn.GTE,fail:gn.LT},{okStr:">",ok:gn.GT,fail:gn.LTE}]}},FA={message:s(e=>up.str`must be ${fp(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>up._`{comparison: ${fp(e).okStr}, limit: ${e.schemaCode}}`,"params")},VA={keyword:Object.keys(lp),type:"number",schemaType:"number",$data:!0,error:FA,code(e){let{data:t,schemaCode:r}=e;e.fail$data(up._`${t} ${fp(e).fail} ${r} || isNaN(${t})`)}};function fp(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[lp[r].exclusive]?1:0;return lp[r].ops[n]}s(fp,"kwdOp");pp.default=VA});var o0=b(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});var s0={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},BA={keyword:Object.keys(s0),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=s0[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};dp.default=BA});var mp=b(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});var Po=oe(),HA={message:s(({schemaCode:e})=>(0,Po.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,Po._)`{multipleOf: ${e}}`,"params")},UA={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:HA,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),c=o?(0,Po._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,Po._)`${a} !== parseInt(${a})`;e.fail$data((0,Po._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};hp.default=UA});var c0=b(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});function a0(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}s(a0,"ucs2length");gp.default=a0;a0.code='require("ajv/dist/runtime/ucs2length").default'});var vp=b(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});var ii=oe(),zA=de(),GA=c0(),WA={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,ii.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,ii._)`{limit: ${e}}`,"params")},KA={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:WA,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?ii.operators.GT:ii.operators.LT,a=i.opts.unicode===!1?(0,ii._)`${r}.length`:(0,ii._)`${(0,zA.useFunc)(e.gen,GA.default)}(${r})`;e.fail$data((0,ii._)`${a} ${o} ${n}`)}};yp.default=KA});var _p=b(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});var ZA=Qt(),hc=oe(),YA={message:s(({schemaCode:e})=>(0,hc.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,hc._)`{pattern: ${e}}`,"params")},JA={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:YA,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",c=r?(0,hc._)`(new RegExp(${i}, ${a}))`:(0,ZA.usePattern)(e,n);e.fail$data((0,hc._)`!${c}.test(${t})`)}};bp.default=JA});var Op=b(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});var wo=oe(),QA={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,wo.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,wo._)`{limit: ${e}}`,"params")},XA={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:QA,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?wo.operators.GT:wo.operators.LT;e.fail$data((0,wo._)`Object.keys(${r}).length ${i} ${n}`)}};Sp.default=XA});var wp=b(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});var $o=Qt(),Eo=oe(),eC=de(),tC={message:s(({params:{missingProperty:e}})=>(0,Eo.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,Eo._)`{missingProperty: ${e}}`,"params")},rC={keyword:"required",type:"object",schemaType:"array",$data:!0,error:tC,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:a}=e,{opts:c}=a;if(!o&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?l():p(),c.strictRequired){let h=e.parentSchema.properties,{definedProperties:y}=e.it;for(let v of r)if((h==null?void 0:h[v])===void 0&&!y.has(v)){let g=a.schemaEnv.baseId+a.errSchemaPath,w=`required property "${v}" is not defined at "${g}" (strictRequired)`;(0,eC.checkStrictMode)(a,w,a.opts.strictRequired)}}function l(){if(u||o)e.block$data(Eo.nil,f);else for(let h of r)(0,$o.checkReportMissingProp)(e,h)}s(l,"allErrorsMode");function p(){let h=t.let("missing");if(u||o){let y=t.let("valid",!0);e.block$data(y,()=>d(h,y)),e.ok(y)}else t.if((0,$o.checkMissingProp)(e,r,h)),(0,$o.reportMissingProp)(e,h),t.else()}s(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,$o.noPropertyInData)(t,i,h,c.ownProperties),()=>e.error())})}s(f,"loopAllRequired");function d(h,y){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(y,(0,$o.propertyInData)(t,i,h,c.ownProperties)),t.if((0,Eo.not)(y),()=>{e.error(),t.break()})},Eo.nil)}s(d,"loopUntilMissing")}};Pp.default=rC});var Ep=b($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var xo=oe(),nC={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,xo.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,xo._)`{limit: ${e}}`,"params")},iC={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:nC,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?xo.operators.GT:xo.operators.LT;e.fail$data((0,xo._)`${r}.length ${i} ${n}`)}};$p.default=iC});var mc=b(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var u0=Df();u0.code='require("ajv/dist/runtime/equal").default';xp.default=u0});var Ip=b(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});var Ap=lo(),ut=oe(),sC=de(),oC=mc(),aC={message:s(({params:{i:e,j:t}})=>(0,ut.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,ut._)`{i: ${e}, j: ${t}}`,"params")},cC={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:aC,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),l=o.items?(0,Ap.getSchemaTypes)(o.items):[];e.block$data(u,p,(0,ut._)`${a} === false`),e.ok(u);function p(){let y=t.let("i",(0,ut._)`${r}.length`),v=t.let("j");e.setParams({i:y,j:v}),t.assign(u,!0),t.if((0,ut._)`${y} > 1`,()=>(f()?d:h)(y,v))}s(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(y=>y==="object"||y==="array")}s(f,"canOptimize");function d(y,v){let g=t.name("item"),w=(0,Ap.checkDataTypes)(l,g,c.opts.strictNumbers,Ap.DataType.Wrong),A=t.const("indices",(0,ut._)`{}`);t.for((0,ut._)`;${y}--;`,()=>{t.let(g,(0,ut._)`${r}[${y}]`),t.if(w,(0,ut._)`continue`),l.length>1&&t.if((0,ut._)`typeof ${g} == "string"`,(0,ut._)`${g} += "_"`),t.if((0,ut._)`typeof ${A}[${g}] == "number"`,()=>{t.assign(v,(0,ut._)`${A}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,ut._)`${A}[${g}] = ${y}`)})}s(d,"loopN");function h(y,v){let g=(0,sC.useFunc)(t,oC.default),w=t.name("outer");t.label(w).for((0,ut._)`;${y}--;`,()=>t.for((0,ut._)`${v} = ${y}; ${v}--;`,()=>t.if((0,ut._)`${g}(${r}[${y}], ${r}[${v}])`,()=>{e.error(),t.assign(u,!1).break(w)})))}s(h,"loopN2")}};Cp.default=cC});var Tp=b(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});var jp=oe(),uC=de(),lC=mc(),fC={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,jp._)`{allowedValue: ${e}}`,"params")},pC={keyword:"const",$data:!0,error:fC,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,jp._)`!${(0,uC.useFunc)(t,lC.default)}(${r}, ${i})`):e.fail((0,jp._)`${o} !== ${r}`)}};Rp.default=pC});var kp=b(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});var Ao=oe(),dC=de(),hC=mc(),mC={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,Ao._)`{allowedValues: ${e}}`,"params")},gC={keyword:"enum",schemaType:"array",$data:!0,error:mC,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,u,l=s(()=>u??(u=(0,dC.useFunc)(t,hC.default)),"getEql"),p;if(c||n)p=t.let("valid"),e.block$data(p,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",o);p=(0,Ao.or)(...i.map((y,v)=>d(h,v)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",o,h=>t.if((0,Ao._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}s(f,"loopEnum");function d(h,y){let v=i[y];return typeof v=="object"&&v!==null?(0,Ao._)`${l()}(${r}, ${h}[${y}])`:(0,Ao._)`${r} === ${v}`}s(d,"equalCode")}};Np.default=gC});var l0=b(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});var yC=i0(),vC=o0(),bC=mp(),_C=vp(),SC=_p(),OC=Op(),PC=wp(),wC=Ep(),$C=Ip(),EC=Tp(),xC=kp(),AC=[yC.default,vC.default,bC.default,_C.default,SC.default,OC.default,PC.default,wC.default,$C.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},EC.default,xC.default];Mp.default=AC});var Dp=b(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.validateAdditionalItems=void 0;var si=oe(),qp=de(),CC={message:s(({params:{len:e}})=>(0,si.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,si._)`{limit: ${e}}`,"params")},IC={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:CC,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,qp.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}f0(e,n)}};function f0(e,t){let{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;let c=r.const("len",(0,si._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,si._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,qp.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,si._)`${c} <= ${t.length}`);r.if((0,si.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,p=>{e.subschema({keyword:o,dataProp:p,dataPropType:qp.Type.Num},l),a.allErrors||r.if((0,si.not)(l),()=>r.break())})}s(u,"validateItems")}s(f0,"validateAdditionalItems");Co.validateAdditionalItems=f0;Co.default=IC});var Lp=b(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.validateTuple=void 0;var p0=oe(),gc=de(),jC=Qt(),RC={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return d0(e,"additionalItems",t);r.items=!0,!(0,gc.alwaysValidSchema)(r,t)&&e.ok((0,jC.validateArray)(e))}};function d0(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:a,it:c}=e;p(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=gc.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,p0._)`${o}.length`);r.forEach((f,d)=>{(0,gc.alwaysValidSchema)(c,f)||(n.if((0,p0._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function p(f){let{opts:d,errSchemaPath:h}=c,y=r.length,v=y===f.minItems&&(y===f.maxItems||f[t]===!1);if(d.strictTuples&&!v){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,gc.checkStrictMode)(c,g,d.strictTuples)}}s(p,"checkStrictTuple")}s(d0,"validateTuple");Io.validateTuple=d0;Io.default=RC});var h0=b(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var TC=Lp(),NC={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,TC.validateTuple)(e,"items"),"code")};Fp.default=NC});var g0=b(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var m0=oe(),kC=de(),MC=Qt(),qC=Dp(),DC={message:s(({params:{len:e}})=>(0,m0.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,m0._)`{limit: ${e}}`,"params")},LC={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:DC,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,kC.alwaysValidSchema)(n,t)&&(i?(0,qC.validateAdditionalItems)(e,i):e.ok((0,MC.validateArray)(e)))}};Vp.default=LC});var y0=b(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});var er=oe(),yc=de(),FC={message:s(({params:{min:e,max:t}})=>t===void 0?(0,er.str)`must contain at least ${e} valid item(s)`:(0,er.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:s(({params:{min:e,max:t}})=>t===void 0?(0,er._)`{minContains: ${e}}`:(0,er._)`{minContains: ${e}, maxContains: ${t}}`,"params")},VC={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:FC,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,a,c,{minContains:u,maxContains:l}=n;o.opts.next?(a=u===void 0?1:u,c=l):a=1;let p=t.const("len",(0,er._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,yc.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,yc.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,yc.alwaysValidSchema)(o,r)){let v=(0,er._)`${p} >= ${a}`;c!==void 0&&(v=(0,er._)`${v} && ${p} <= ${c}`),e.pass(v);return}o.items=!0;let f=t.name("valid");c===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),c!==void 0&&t.if((0,er._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let v=t.name("_valid"),g=t.let("count",0);h(v,()=>t.if(v,()=>y(g)))}s(d,"validateItemsWithCount");function h(v,g){t.forRange("i",0,p,w=>{e.subschema({keyword:"contains",dataProp:w,dataPropType:yc.Type.Num,compositeRule:!0},v),g()})}s(h,"validateItems");function y(v){t.code((0,er._)`${v}++`),c===void 0?t.if((0,er._)`${v} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,er._)`${v} > ${c}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,er._)`${v} >= ${a}`,()=>t.assign(f,!0)))}s(y,"checkLimits")}};Bp.default=VC});var vc=b(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.validateSchemaDeps=Tr.validatePropertyDeps=Tr.error=void 0;var Hp=oe(),BC=de(),jo=Qt();Tr.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Hp.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Hp._)`{property: ${e},
|
|
11
11
|
missingProperty: ${n},
|
|
12
12
|
depsCount: ${t},
|
|
13
|
-
deps: ${r}}`,"params")};var FC={keyword:"dependencies",type:"object",schemaType:"object",error:Rr.error,code(e){let[t,r]=VC(e);h0(e,t),m0(e,r)}};function VC({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}s(VC,"splitDependencies");function h0(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,Io.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,Io.checkReportMissingProp)(e,l)}):(r.if((0,Fp._)`${u} && (${(0,Io.checkMissingProp)(e,c,o)})`),(0,Io.reportMissingProp)(e,o),r.else())}}s(h0,"validatePropertyDeps");Rr.validatePropertyDeps=h0;function m0(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,a=r.name("valid");for(let c in t)(0,LC.alwaysValidSchema)(o,t[c])||(r.if((0,Io.propertyInData)(r,n,c,o.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}s(m0,"validateSchemaDeps");Rr.validateSchemaDeps=m0;Rr.default=FC});var y0=b(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var g0=oe(),BC=de(),HC={message:"property name must be valid",params:s(({params:e})=>(0,g0._)`{propertyName: ${e.propertyName}}`,"params")},UC={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:HC,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,BC.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,g0.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};Vp.default=UC});var Hp=b(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});var vc=Qt(),yr=oe(),zC=Jt(),bc=de(),GC={message:"must NOT have additional properties",params:s(({params:e})=>(0,yr._)`{additionalProperty: ${e.additionalProperty}}`,"params")},WC={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:GC,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,bc.alwaysValidSchema)(a,r))return;let l=(0,vc.allSchemaProperties)(n.properties),p=(0,vc.allSchemaProperties)(n.patternProperties);f(),e.ok((0,yr._)`${o} === ${zC.default.errors}`);function f(){t.forIn("key",i,g=>{!l.length&&!p.length?y(g):t.if(d(g),()=>y(g))})}s(f,"checkAdditionalProperties");function d(g){let w;if(l.length>8){let A=(0,bc.schemaRefOrVal)(a,n.properties,"properties");w=(0,vc.isOwnProperty)(t,A,g)}else l.length?w=(0,yr.or)(...l.map(A=>(0,yr._)`${g} === ${A}`)):w=yr.nil;return p.length&&(w=(0,yr.or)(w,...p.map(A=>(0,yr._)`${(0,vc.usePattern)(e,A)}.test(${g})`))),(0,yr.not)(w)}s(d,"isAdditional");function h(g){t.code((0,yr._)`delete ${i}[${g}]`)}s(h,"deleteAdditional");function y(g){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(g);return}if(r===!1){e.setParams({additionalProperty:g}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,bc.alwaysValidSchema)(a,r)){let w=t.name("valid");u.removeAdditional==="failing"?(v(g,w,!1),t.if((0,yr.not)(w),()=>{e.reset(),h(g)})):(v(g,w),c||t.if((0,yr.not)(w),()=>t.break()))}}s(y,"additionalPropertyCode");function v(g,w,A){let C={keyword:"additionalProperties",dataProp:g,dataPropType:bc.Type.Str};A===!1&&Object.assign(C,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(C,w)}s(v,"applyAdditionalSchema")}};Bp.default=WC});var _0=b(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var KC=ho(),v0=Qt(),Up=de(),b0=Hp(),ZC={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&b0.default.code(new KC.KeywordCxt(o,b0.default,"additionalProperties"));let a=(0,v0.allSchemaProperties)(r);for(let f of a)o.definedProperties.add(f);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Up.mergeEvaluated.props(t,(0,Up.toHash)(a),o.props));let c=a.filter(f=>!(0,Up.alwaysValidSchema)(o,r[f]));if(c.length===0)return;let u=t.name("valid");for(let f of c)l(f)?p(f):(t.if((0,v0.propertyInData)(t,i,f,o.opts.ownProperties)),p(f),o.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(u);function l(f){return o.opts.useDefaults&&!o.compositeRule&&r[f].default!==void 0}s(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}s(p,"applyPropertySchema")}};zp.default=ZC});var w0=b(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});var S0=Qt(),_c=oe(),O0=de(),P0=de(),YC={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:a}=o,c=(0,S0.allSchemaProperties)(r),u=c.filter(v=>(0,O0.alwaysValidSchema)(o,r[v]));if(c.length===0||u.length===c.length&&(!o.opts.unevaluated||o.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");o.props!==!0&&!(o.props instanceof _c.Name)&&(o.props=(0,P0.evaluatedPropsToName)(t,o.props));let{props:f}=o;d();function d(){for(let v of c)l&&h(v),o.allErrors?y(v):(t.var(p,!0),y(v),t.if(p))}s(d,"validatePatternProperties");function h(v){for(let g in l)new RegExp(v).test(g)&&(0,O0.checkStrictMode)(o,`property ${g} matches pattern ${v} (use allowMatchingProperties)`)}s(h,"checkMatchingProperties");function y(v){t.forIn("key",n,g=>{t.if((0,_c._)`${(0,S0.usePattern)(e,v)}.test(${g})`,()=>{let w=u.includes(v);w||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:g,dataPropType:P0.Type.Str},p),o.opts.unevaluated&&f!==!0?t.assign((0,_c._)`${f}[${g}]`,!0):!w&&!o.allErrors&&t.if((0,_c.not)(p),()=>t.break())})})}s(y,"validateProperties")}};Gp.default=YC});var $0=b(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});var JC=de(),QC={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,JC.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"}};Wp.default=QC});var E0=b(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var XC=Qt(),eI={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:XC.validateUnion,error:{message:"must match a schema in anyOf"}};Kp.default=eI});var x0=b(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});var Sc=oe(),tI=de(),rI={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,Sc._)`{passingSchemas: ${e.passing}}`,"params")},nI={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:rI,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,a=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((p,f)=>{let d;(0,tI.alwaysValidSchema)(i,p)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,Sc._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Sc._)`[${c}, ${f}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,f),d&&e.mergeEvaluated(d,Sc.Name)})})}s(l,"validateOneOf")}};Zp.default=nI});var A0=b(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});var iI=de(),sI={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,a)=>{if((0,iI.alwaysValidSchema)(n,o))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};Yp.default=sI});var j0=b(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var Oc=oe(),I0=de(),oI={message:s(({params:e})=>(0,Oc.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,Oc._)`{failingKeyword: ${e.ifClause}}`,"params")},aI={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:oI,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,I0.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=C0(n,"then"),o=C0(n,"else");if(!i&&!o)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&o){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(c,l("then",p),l("else",p))}else i?t.if(c,l("then")):t.if((0,Oc.not)(c),l("else"));e.pass(a,()=>e.error(!0));function u(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(p)}s(u,"validateIf");function l(p,f){return()=>{let d=e.subschema({keyword:p},c);t.assign(a,c),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,Oc._)`${p}`):e.setParams({ifClause:p})}}s(l,"validateClause")}};function C0(e,t){let r=e.schema[t];return r!==void 0&&!(0,I0.alwaysValidSchema)(e,r)}s(C0,"hasSchema");Jp.default=aI});var R0=b(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});var cI=de(),uI={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,cI.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Qp.default=uI});var ed=b(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var lI=Np(),fI=l0(),pI=Mp(),dI=p0(),hI=d0(),mI=yc(),gI=y0(),yI=Hp(),vI=_0(),bI=w0(),_I=$0(),SI=E0(),OI=x0(),PI=A0(),wI=j0(),$I=R0();function EI(e=!1){let t=[_I.default,SI.default,OI.default,PI.default,wI.default,$I.default,gI.default,yI.default,mI.default,vI.default,bI.default];return e?t.push(fI.default,dI.default):t.push(lI.default,pI.default),t.push(hI.default),t}s(EI,"getApplicator");Xp.default=EI});var T0=b(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});var Ze=oe(),xI={message:s(({schemaCode:e})=>(0,Ze.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,Ze._)`{format: ${e}}`,"params")},AI={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:xI,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:p,self:f}=c;if(!u.validateFormats)return;i?d():h();function d(){let y=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),v=r.const("fDef",(0,Ze._)`${y}[${a}]`),g=r.let("fType"),w=r.let("format");r.if((0,Ze._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>r.assign(g,(0,Ze._)`${v}.type || "string"`).assign(w,(0,Ze._)`${v}.validate`),()=>r.assign(g,(0,Ze._)`"string"`).assign(w,v)),e.fail$data((0,Ze.or)(A(),C()));function A(){return u.strictSchema===!1?Ze.nil:(0,Ze._)`${a} && !${w}`}s(A,"unknownFmt");function C(){let j=p.$async?(0,Ze._)`(${v}.async ? await ${w}(${n}) : ${w}(${n}))`:(0,Ze._)`${w}(${n})`,T=(0,Ze._)`(typeof ${w} == "function" ? ${j} : ${w}.test(${n}))`;return(0,Ze._)`${w} && ${w} !== true && ${g} === ${t} && !${T}`}s(C,"invalidFmt")}s(d,"validate$DataFormat");function h(){let y=f.formats[o];if(!y){A();return}if(y===!0)return;let[v,g,w]=C(y);v===t&&e.pass(j());function A(){if(u.strictSchema===!1){f.logger.warn(T());return}throw new Error(T());function T(){return`unknown format "${o}" ignored in schema at path "${l}"`}}s(A,"unknownFormat");function C(T){let he=T instanceof RegExp?(0,Ze.regexpCode)(T):u.code.formats?(0,Ze._)`${u.code.formats}${(0,Ze.getProperty)(o)}`:void 0,se=r.scopeValue("formats",{key:o,ref:T,code:he});return typeof T=="object"&&!(T instanceof RegExp)?[T.type||"string",T.validate,(0,Ze._)`${se}.validate`]:["string",T,se]}s(C,"getFormat");function j(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Ze._)`await ${w}(${n})`}return typeof g=="function"?(0,Ze._)`${w}(${n})`:(0,Ze._)`${w}.test(${n})`}s(j,"validCondition")}s(h,"validateFormat")}};td.default=AI});var nd=b(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var CI=T0(),II=[CI.default];rd.default=II});var k0=b(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});var jI=Xv(),RI=o0(),TI=ed(),kI=nd(),NI=["title","description","default"],MI=[jI.default,RI.default,TI.default(),kI.default,NI];id.default=MI});var M0=b(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.DiscrError=void 0;var N0;(function(e){e.Tag="tag",e.Mapping="mapping"})(N0||(Pc.DiscrError=N0={}))});var ad=b(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});var rs=oe(),sd=M0(),q0=go(),qI=mo(),DI=de(),LI={message:s(({params:{discrError:e,tagName:t}})=>e===sd.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:s(({params:{discrError:e,tag:t,tagName:r}})=>(0,rs._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},FI={keyword:"discriminator",type:"object",schemaType:"object",error:LI,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),l=t.const("tag",(0,rs._)`${r}${(0,rs.getProperty)(c)}`);t.if((0,rs._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:sd.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,rs._)`${l} === ${y}`),t.assign(u,f(h[y]));t.else(),e.error(!1,{discrError:sd.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}s(p,"validateMapping");function f(h){let y=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:h},y);return e.mergeEvaluated(v,rs.Name),y}s(f,"applyTagSchema");function d(){var h;let y={},v=w(i),g=!0;for(let j=0;j<a.length;j++){let T=a[j];if(T!=null&&T.$ref&&!(0,DI.schemaHasRulesButRef)(T,o.self.RULES)){let se=T.$ref;if(T=q0.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,se),T instanceof q0.SchemaEnv&&(T=T.schema),T===void 0)throw new qI.default(o.opts.uriResolver,o.baseId,se)}let he=(h=T==null?void 0:T.properties)===null||h===void 0?void 0:h[c];if(typeof he!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);g=g&&(v||w(T)),A(he,j)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return y;function w({required:j}){return Array.isArray(j)&&j.includes(c)}function A(j,T){if(j.const)C(j.const,T);else if(j.enum)for(let he of j.enum)C(he,T);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function C(j,T){if(typeof j!="string"||j in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[j]=T}}s(d,"getMapping")}};od.default=FI});var D0=b((D6,VI)=>{VI.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 V0=b((tt,F0)=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.CodeGen=tt.Name=tt.nil=tt.stringify=tt.str=tt._=tt.KeywordCxt=void 0;var BI=es(),HI=k0(),UI=ad(),L0=D0(),zI=["/properties"],wc="http://json-schema.org/draft-04/schema",cd=class cd extends BI.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),HI.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(UI.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(L0,zI):L0;this.addMetaSchema(t,wc,!1),this.refs["http://json-schema.org/schema"]=wc}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(wc)?wc:void 0)}};s(cd,"Ajv");var $c=cd;F0.exports=tt=$c;Object.defineProperty(tt,"__esModule",{value:!0});tt.default=$c;var GI=es();Object.defineProperty(tt,"KeywordCxt",{enumerable:!0,get:s(function(){return GI.KeywordCxt},"get")});var ns=es();Object.defineProperty(tt,"_",{enumerable:!0,get:s(function(){return ns._},"get")});Object.defineProperty(tt,"str",{enumerable:!0,get:s(function(){return ns.str},"get")});Object.defineProperty(tt,"stringify",{enumerable:!0,get:s(function(){return ns.stringify},"get")});Object.defineProperty(tt,"nil",{enumerable:!0,get:s(function(){return ns.nil},"get")});Object.defineProperty(tt,"Name",{enumerable:!0,get:s(function(){return ns.Name},"get")});Object.defineProperty(tt,"CodeGen",{enumerable:!0,get:s(function(){return ns.CodeGen},"get")})});var B0=b(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});var WI={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};ud.default=WI});var H0=b(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});var KI=B0(),ZI=So(),YI=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",KI.default,ZI.default];ld.default=YI});var U0=b(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});var Ec=oe(),yn=Ec.operators,xc={maximum:{okStr:"<=",ok:yn.LTE,fail:yn.GT},minimum:{okStr:">=",ok:yn.GTE,fail:yn.LT},exclusiveMaximum:{okStr:"<",ok:yn.LT,fail:yn.GTE},exclusiveMinimum:{okStr:">",ok:yn.GT,fail:yn.LTE}},JI={message:s(({keyword:e,schemaCode:t})=>(0,Ec.str)`must be ${xc[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,Ec._)`{comparison: ${xc[e].okStr}, limit: ${t}}`,"params")},QI={keyword:Object.keys(xc),type:"number",schemaType:"number",$data:!0,error:JI,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Ec._)`${r} ${xc[t].fail} ${n} || isNaN(${r})`)}};fd.default=QI});var z0=b(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});var XI=U0(),ej=pp(),tj=mp(),rj=yp(),nj=bp(),ij=Sp(),sj=Pp(),oj=xp(),aj=Ip(),cj=Rp(),uj=[XI.default,ej.default,tj.default,rj.default,nj.default,ij.default,sj.default,oj.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},aj.default,cj.default];pd.default=uj});var hd=b(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.dynamicAnchor=void 0;var dd=oe(),lj=Jt(),G0=go(),fj=So(),pj={keyword:"$dynamicAnchor",schemaType:"string",code:s(e=>W0(e,e.schema),"code")};function W0(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,dd._)`${lj.default.dynamicAnchors}${(0,dd.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:dj(e);r.if((0,dd._)`!${i}`,()=>r.assign(i,o))}s(W0,"dynamicAnchor");jo.dynamicAnchor=W0;function dj(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,l=new G0.SchemaEnv({schema:r,schemaId:u,root:i,baseId:o,localRefs:a,meta:c});return G0.compileSchema.call(n,l),(0,fj.getValidate)(e,l)}s(dj,"_getValidate");jo.default=pj});var md=b(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.dynamicRef=void 0;var K0=oe(),hj=Jt(),Z0=So(),mj={keyword:"$dynamicRef",schemaType:"string",code:s(e=>Y0(e,e.schema),"code")};function Y0(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=t.slice(1);if(i.allErrors)a();else{let u=r.let("valid",!1);a(u),e.ok(u)}function a(u){if(i.schemaEnv.root.dynamicAnchors[o]){let l=r.let("_v",(0,K0._)`${hj.default.dynamicAnchors}${(0,K0.getProperty)(o)}`);r.if(l,c(l,u),c(i.validateName,u))}else c(i.validateName,u)()}s(a,"_dynamicRef");function c(u,l){return l?()=>r.block(()=>{(0,Z0.callRef)(e,u),r.let(l,!0)}):()=>(0,Z0.callRef)(e,u)}s(c,"_callRef")}s(Y0,"dynamicRef");Ro.dynamicRef=Y0;Ro.default=mj});var J0=b(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});var gj=hd(),yj=de(),vj={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,gj.dynamicAnchor)(e,""):(0,yj.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};gd.default=vj});var Q0=b(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});var bj=md(),_j={keyword:"$recursiveRef",schemaType:"string",code:s(e=>(0,bj.dynamicRef)(e,e.schema),"code")};yd.default=_j});var X0=b(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});var Sj=hd(),Oj=md(),Pj=J0(),wj=Q0(),$j=[Sj.default,Oj.default,Pj.default,wj.default];vd.default=$j});var tb=b(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});var eb=yc(),Ej={keyword:"dependentRequired",type:"object",schemaType:"object",error:eb.error,code:s(e=>(0,eb.validatePropertyDeps)(e),"code")};bd.default=Ej});var rb=b(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});var xj=yc(),Aj={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,xj.validateSchemaDeps)(e),"code")};_d.default=Aj});var nb=b(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});var Cj=de(),Ij={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,Cj.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Sd.default=Ij});var ib=b(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});var jj=tb(),Rj=rb(),Tj=nb(),kj=[jj.default,Rj.default,Tj.default];Od.default=kj});var ob=b(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});var vn=oe(),sb=de(),Nj=Jt(),Mj={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,vn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},qj={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Mj,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:o}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=o;c instanceof vn.Name?t.if((0,vn._)`${c} !== true`,()=>t.forIn("key",n,f=>t.if(l(c,f),()=>u(f)))):c!==!0&&t.forIn("key",n,f=>c===void 0?u(f):t.if(p(c,f),()=>u(f))),o.props=!0,e.ok((0,vn._)`${i} === ${Nj.default.errors}`);function u(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,sb.alwaysValidSchema)(o,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:sb.Type.Str},d),a||t.if((0,vn.not)(d),()=>t.break())}}s(u,"unevaluatedPropCode");function l(f,d){return(0,vn._)`!${f} || !${f}[${d}]`}s(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let y in f)f[y]===!0&&h.push((0,vn._)`${d} !== ${y}`);return(0,vn.and)(...h)}s(p,"unevaluatedStatic")}};Pd.default=qj});var cb=b(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});var oi=oe(),ab=de(),Dj={message:s(({params:{len:e}})=>(0,oi.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,oi._)`{limit: ${e}}`,"params")},Lj={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Dj,code(e){let{gen:t,schema:r,data:n,it:i}=e,o=i.items||0;if(o===!0)return;let a=t.const("len",(0,oi._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,oi._)`${a} > ${o}`);else if(typeof r=="object"&&!(0,ab.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,oi._)`${a} <= ${o}`);t.if((0,oi.not)(u),()=>c(u,o)),e.ok(u)}i.items=!0;function c(u,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:ab.Type.Num},u),i.allErrors||t.if((0,oi.not)(u),()=>t.break())})}s(c,"validateItems")}};wd.default=Lj});var ub=b($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});var Fj=ob(),Vj=cb(),Bj=[Fj.default,Vj.default];$d.default=Bj});var lb=b(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.contentVocabulary=is.metadataVocabulary=void 0;is.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];is.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var pb=b(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var Hj=H0(),Uj=z0(),zj=ed(),Gj=X0(),Wj=ib(),Kj=ub(),Zj=nd(),fb=lb(),Yj=[Gj.default,Hj.default,Uj.default,(0,zj.default)(!0),Zj.default,fb.metadataVocabulary,fb.contentVocabulary,Wj.default,Kj.default];Ed.default=Yj});var db=b((p7,Jj)=>{Jj.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 hb=b((d7,Qj)=>{Qj.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 mb=b((h7,Xj)=>{Xj.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 gb=b((m7,eR)=>{eR.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 yb=b((g7,tR)=>{tR.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 vb=b((y7,rR)=>{rR.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 bb=b((v7,nR)=>{nR.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 _b=b((b7,iR)=>{iR.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 Sb=b(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});var sR=db(),oR=hb(),aR=mb(),cR=gb(),uR=yb(),lR=vb(),fR=bb(),pR=_b(),dR=["/properties"];function hR(e){return[sR,oR,aR,cR,uR,t(this,lR),fR,t(this,pR)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,dR):n}s(t,"with$data")}s(hR,"addMetaSchema2020");xd.default=hR});var Ob=b((ke,Cd)=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.MissingRefError=ke.ValidationError=ke.CodeGen=ke.Name=ke.nil=ke.stringify=ke.str=ke._=ke.KeywordCxt=ke.Ajv2020=void 0;var mR=es(),gR=pb(),yR=ad(),vR=Sb(),Ad="https://json-schema.org/draft/2020-12/schema",Id=class Id extends mR.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),gR.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(yR.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(vR.default.call(this,t),this.refs["http://json-schema.org/schema"]=Ad)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ad)?Ad:void 0)}};s(Id,"Ajv2020");var ss=Id;ke.Ajv2020=ss;Cd.exports=ke=ss;Cd.exports.Ajv2020=ss;Object.defineProperty(ke,"__esModule",{value:!0});ke.default=ss;var bR=ho();Object.defineProperty(ke,"KeywordCxt",{enumerable:!0,get:s(function(){return bR.KeywordCxt},"get")});var os=oe();Object.defineProperty(ke,"_",{enumerable:!0,get:s(function(){return os._},"get")});Object.defineProperty(ke,"str",{enumerable:!0,get:s(function(){return os.str},"get")});Object.defineProperty(ke,"stringify",{enumerable:!0,get:s(function(){return os.stringify},"get")});Object.defineProperty(ke,"nil",{enumerable:!0,get:s(function(){return os.nil},"get")});Object.defineProperty(ke,"Name",{enumerable:!0,get:s(function(){return os.Name},"get")});Object.defineProperty(ke,"CodeGen",{enumerable:!0,get:s(function(){return os.CodeGen},"get")});var _R=sc();Object.defineProperty(ke,"ValidationError",{enumerable:!0,get:s(function(){return _R.default},"get")});var SR=mo();Object.defineProperty(ke,"MissingRefError",{enumerable:!0,get:s(function(){return SR.default},"get")})});var Pb=b((P7,OR)=>{OR.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 wb=b((w7,PR)=>{PR.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 $b=b(($7,wR)=>{wR.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 Eb=b((E7,$R)=>{$R.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 xb=b((ot,as)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.openapi=ot.openapiV31=ot.openapiV3=ot.openapiV2=ot.openapiV1=void 0;ot.openapiV1=Pb();ot.openapiV2=wb();ot.openapiV3=$b();ot.openapiV31=Eb();ot.openapi={v1:ot.openapiV1,v2:ot.openapiV2,v3:ot.openapiV3,v31:ot.openapiV31};ot.default=ot.openapi;typeof as=="object"&&typeof as.exports=="object"&&(as.exports=Object.assign(as.exports.default,as.exports))});var Td=b((x7,Ab)=>{"use strict";var ER=Fa(),{ono:xR}=dr(),AR=V0(),CR=Ob(),{openapi:jd}=xb();Ab.exports=IR;function IR(e){let t,r;if(e.swagger)r=jd.v2,t=Rd();else if(e.openapi.startsWith("3.1")){r=jd.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=Rd(!1)}else r=jd.v3,t=Rd();if(!t.validate(r,e)){let i=t.errors,o=`Swagger schema validation failed.
|
|
14
|
-
`+
|
|
15
|
-
`);return r}s(
|
|
13
|
+
deps: ${r}}`,"params")};var HC={keyword:"dependencies",type:"object",schemaType:"object",error:Tr.error,code(e){let[t,r]=UC(e);v0(e,t),b0(e,r)}};function UC({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}s(UC,"splitDependencies");function v0(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,jo.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,jo.checkReportMissingProp)(e,l)}):(r.if((0,Hp._)`${u} && (${(0,jo.checkMissingProp)(e,c,o)})`),(0,jo.reportMissingProp)(e,o),r.else())}}s(v0,"validatePropertyDeps");Tr.validatePropertyDeps=v0;function b0(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,a=r.name("valid");for(let c in t)(0,BC.alwaysValidSchema)(o,t[c])||(r.if((0,jo.propertyInData)(r,n,c,o.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}s(b0,"validateSchemaDeps");Tr.validateSchemaDeps=b0;Tr.default=HC});var S0=b(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});var _0=oe(),zC=de(),GC={message:"property name must be valid",params:s(({params:e})=>(0,_0._)`{propertyName: ${e.propertyName}}`,"params")},WC={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:GC,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,zC.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,_0.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};Up.default=WC});var Gp=b(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var bc=Qt(),yr=oe(),KC=Jt(),_c=de(),ZC={message:"must NOT have additional properties",params:s(({params:e})=>(0,yr._)`{additionalProperty: ${e.additionalProperty}}`,"params")},YC={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:ZC,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,_c.alwaysValidSchema)(a,r))return;let l=(0,bc.allSchemaProperties)(n.properties),p=(0,bc.allSchemaProperties)(n.patternProperties);f(),e.ok((0,yr._)`${o} === ${KC.default.errors}`);function f(){t.forIn("key",i,g=>{!l.length&&!p.length?y(g):t.if(d(g),()=>y(g))})}s(f,"checkAdditionalProperties");function d(g){let w;if(l.length>8){let A=(0,_c.schemaRefOrVal)(a,n.properties,"properties");w=(0,bc.isOwnProperty)(t,A,g)}else l.length?w=(0,yr.or)(...l.map(A=>(0,yr._)`${g} === ${A}`)):w=yr.nil;return p.length&&(w=(0,yr.or)(w,...p.map(A=>(0,yr._)`${(0,bc.usePattern)(e,A)}.test(${g})`))),(0,yr.not)(w)}s(d,"isAdditional");function h(g){t.code((0,yr._)`delete ${i}[${g}]`)}s(h,"deleteAdditional");function y(g){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(g);return}if(r===!1){e.setParams({additionalProperty:g}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,_c.alwaysValidSchema)(a,r)){let w=t.name("valid");u.removeAdditional==="failing"?(v(g,w,!1),t.if((0,yr.not)(w),()=>{e.reset(),h(g)})):(v(g,w),c||t.if((0,yr.not)(w),()=>t.break()))}}s(y,"additionalPropertyCode");function v(g,w,A){let I={keyword:"additionalProperties",dataProp:g,dataPropType:_c.Type.Str};A===!1&&Object.assign(I,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(I,w)}s(v,"applyAdditionalSchema")}};zp.default=YC});var w0=b(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var JC=mo(),O0=Qt(),Wp=de(),P0=Gp(),QC={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&P0.default.code(new JC.KeywordCxt(o,P0.default,"additionalProperties"));let a=(0,O0.allSchemaProperties)(r);for(let f of a)o.definedProperties.add(f);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Wp.mergeEvaluated.props(t,(0,Wp.toHash)(a),o.props));let c=a.filter(f=>!(0,Wp.alwaysValidSchema)(o,r[f]));if(c.length===0)return;let u=t.name("valid");for(let f of c)l(f)?p(f):(t.if((0,O0.propertyInData)(t,i,f,o.opts.ownProperties)),p(f),o.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(u);function l(f){return o.opts.useDefaults&&!o.compositeRule&&r[f].default!==void 0}s(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}s(p,"applyPropertySchema")}};Kp.default=QC});var A0=b(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});var $0=Qt(),Sc=oe(),E0=de(),x0=de(),XC={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:a}=o,c=(0,$0.allSchemaProperties)(r),u=c.filter(v=>(0,E0.alwaysValidSchema)(o,r[v]));if(c.length===0||u.length===c.length&&(!o.opts.unevaluated||o.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");o.props!==!0&&!(o.props instanceof Sc.Name)&&(o.props=(0,x0.evaluatedPropsToName)(t,o.props));let{props:f}=o;d();function d(){for(let v of c)l&&h(v),o.allErrors?y(v):(t.var(p,!0),y(v),t.if(p))}s(d,"validatePatternProperties");function h(v){for(let g in l)new RegExp(v).test(g)&&(0,E0.checkStrictMode)(o,`property ${g} matches pattern ${v} (use allowMatchingProperties)`)}s(h,"checkMatchingProperties");function y(v){t.forIn("key",n,g=>{t.if((0,Sc._)`${(0,$0.usePattern)(e,v)}.test(${g})`,()=>{let w=u.includes(v);w||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:g,dataPropType:x0.Type.Str},p),o.opts.unevaluated&&f!==!0?t.assign((0,Sc._)`${f}[${g}]`,!0):!w&&!o.allErrors&&t.if((0,Sc.not)(p),()=>t.break())})})}s(y,"validateProperties")}};Zp.default=XC});var C0=b(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});var eI=de(),tI={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,eI.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"}};Yp.default=tI});var I0=b(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var rI=Qt(),nI={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:rI.validateUnion,error:{message:"must match a schema in anyOf"}};Jp.default=nI});var j0=b(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});var Oc=oe(),iI=de(),sI={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,Oc._)`{passingSchemas: ${e.passing}}`,"params")},oI={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:sI,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,a=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((p,f)=>{let d;(0,iI.alwaysValidSchema)(i,p)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,Oc._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Oc._)`[${c}, ${f}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,f),d&&e.mergeEvaluated(d,Oc.Name)})})}s(l,"validateOneOf")}};Qp.default=oI});var R0=b(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var aI=de(),cI={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,a)=>{if((0,aI.alwaysValidSchema)(n,o))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};Xp.default=cI});var k0=b(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});var Pc=oe(),N0=de(),uI={message:s(({params:e})=>(0,Pc.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,Pc._)`{failingKeyword: ${e.ifClause}}`,"params")},lI={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:uI,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,N0.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=T0(n,"then"),o=T0(n,"else");if(!i&&!o)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&o){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(c,l("then",p),l("else",p))}else i?t.if(c,l("then")):t.if((0,Pc.not)(c),l("else"));e.pass(a,()=>e.error(!0));function u(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(p)}s(u,"validateIf");function l(p,f){return()=>{let d=e.subschema({keyword:p},c);t.assign(a,c),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,Pc._)`${p}`):e.setParams({ifClause:p})}}s(l,"validateClause")}};function T0(e,t){let r=e.schema[t];return r!==void 0&&!(0,N0.alwaysValidSchema)(e,r)}s(T0,"hasSchema");ed.default=lI});var M0=b(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});var fI=de(),pI={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,fI.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};td.default=pI});var nd=b(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var dI=Dp(),hI=h0(),mI=Lp(),gI=g0(),yI=y0(),vI=vc(),bI=S0(),_I=Gp(),SI=w0(),OI=A0(),PI=C0(),wI=I0(),$I=j0(),EI=R0(),xI=k0(),AI=M0();function CI(e=!1){let t=[PI.default,wI.default,$I.default,EI.default,xI.default,AI.default,bI.default,_I.default,vI.default,SI.default,OI.default];return e?t.push(hI.default,gI.default):t.push(dI.default,mI.default),t.push(yI.default),t}s(CI,"getApplicator");rd.default=CI});var q0=b(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});var Ze=oe(),II={message:s(({schemaCode:e})=>(0,Ze.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,Ze._)`{format: ${e}}`,"params")},jI={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:II,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:p,self:f}=c;if(!u.validateFormats)return;i?d():h();function d(){let y=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),v=r.const("fDef",(0,Ze._)`${y}[${a}]`),g=r.let("fType"),w=r.let("format");r.if((0,Ze._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>r.assign(g,(0,Ze._)`${v}.type || "string"`).assign(w,(0,Ze._)`${v}.validate`),()=>r.assign(g,(0,Ze._)`"string"`).assign(w,v)),e.fail$data((0,Ze.or)(A(),I()));function A(){return u.strictSchema===!1?Ze.nil:(0,Ze._)`${a} && !${w}`}s(A,"unknownFmt");function I(){let N=p.$async?(0,Ze._)`(${v}.async ? await ${w}(${n}) : ${w}(${n}))`:(0,Ze._)`${w}(${n})`,R=(0,Ze._)`(typeof ${w} == "function" ? ${N} : ${w}.test(${n}))`;return(0,Ze._)`${w} && ${w} !== true && ${g} === ${t} && !${R}`}s(I,"invalidFmt")}s(d,"validate$DataFormat");function h(){let y=f.formats[o];if(!y){A();return}if(y===!0)return;let[v,g,w]=I(y);v===t&&e.pass(N());function A(){if(u.strictSchema===!1){f.logger.warn(R());return}throw new Error(R());function R(){return`unknown format "${o}" ignored in schema at path "${l}"`}}s(A,"unknownFormat");function I(R){let he=R instanceof RegExp?(0,Ze.regexpCode)(R):u.code.formats?(0,Ze._)`${u.code.formats}${(0,Ze.getProperty)(o)}`:void 0,se=r.scopeValue("formats",{key:o,ref:R,code:he});return typeof R=="object"&&!(R instanceof RegExp)?[R.type||"string",R.validate,(0,Ze._)`${se}.validate`]:["string",R,se]}s(I,"getFormat");function N(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Ze._)`await ${w}(${n})`}return typeof g=="function"?(0,Ze._)`${w}(${n})`:(0,Ze._)`${w}.test(${n})`}s(N,"validCondition")}s(h,"validateFormat")}};id.default=jI});var od=b(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});var RI=q0(),TI=[RI.default];sd.default=TI});var D0=b(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});var NI=n0(),kI=l0(),MI=nd(),qI=od(),DI=["title","description","default"],LI=[NI.default,kI.default,MI.default(),qI.default,DI];ad.default=LI});var F0=b(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});wc.DiscrError=void 0;var L0;(function(e){e.Tag="tag",e.Mapping="mapping"})(L0||(wc.DiscrError=L0={}))});var ld=b(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});var rs=oe(),cd=F0(),V0=yo(),FI=go(),VI=de(),BI={message:s(({params:{discrError:e,tagName:t}})=>e===cd.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:s(({params:{discrError:e,tag:t,tagName:r}})=>(0,rs._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},HI={keyword:"discriminator",type:"object",schemaType:"object",error:BI,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),l=t.const("tag",(0,rs._)`${r}${(0,rs.getProperty)(c)}`);t.if((0,rs._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:cd.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,rs._)`${l} === ${y}`),t.assign(u,f(h[y]));t.else(),e.error(!1,{discrError:cd.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}s(p,"validateMapping");function f(h){let y=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:h},y);return e.mergeEvaluated(v,rs.Name),y}s(f,"applyTagSchema");function d(){var h;let y={},v=w(i),g=!0;for(let N=0;N<a.length;N++){let R=a[N];if(R!=null&&R.$ref&&!(0,VI.schemaHasRulesButRef)(R,o.self.RULES)){let se=R.$ref;if(R=V0.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,se),R instanceof V0.SchemaEnv&&(R=R.schema),R===void 0)throw new FI.default(o.opts.uriResolver,o.baseId,se)}let he=(h=R==null?void 0:R.properties)===null||h===void 0?void 0:h[c];if(typeof he!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);g=g&&(v||w(R)),A(he,N)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return y;function w({required:N}){return Array.isArray(N)&&N.includes(c)}function A(N,R){if(N.const)I(N.const,R);else if(N.enum)for(let he of N.enum)I(he,R);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function I(N,R){if(typeof N!="string"||N in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[N]=R}}s(d,"getMapping")}};ud.default=HI});var B0=b((H6,UI)=>{UI.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 z0=b((tt,U0)=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.CodeGen=tt.Name=tt.nil=tt.stringify=tt.str=tt._=tt.KeywordCxt=void 0;var zI=es(),GI=D0(),WI=ld(),H0=B0(),KI=["/properties"],$c="http://json-schema.org/draft-04/schema",fd=class fd extends zI.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),GI.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(WI.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(H0,KI):H0;this.addMetaSchema(t,$c,!1),this.refs["http://json-schema.org/schema"]=$c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema($c)?$c:void 0)}};s(fd,"Ajv");var Ec=fd;U0.exports=tt=Ec;Object.defineProperty(tt,"__esModule",{value:!0});tt.default=Ec;var ZI=es();Object.defineProperty(tt,"KeywordCxt",{enumerable:!0,get:s(function(){return ZI.KeywordCxt},"get")});var ns=es();Object.defineProperty(tt,"_",{enumerable:!0,get:s(function(){return ns._},"get")});Object.defineProperty(tt,"str",{enumerable:!0,get:s(function(){return ns.str},"get")});Object.defineProperty(tt,"stringify",{enumerable:!0,get:s(function(){return ns.stringify},"get")});Object.defineProperty(tt,"nil",{enumerable:!0,get:s(function(){return ns.nil},"get")});Object.defineProperty(tt,"Name",{enumerable:!0,get:s(function(){return ns.Name},"get")});Object.defineProperty(tt,"CodeGen",{enumerable:!0,get:s(function(){return ns.CodeGen},"get")})});var G0=b(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});var YI={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};pd.default=YI});var W0=b(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});var JI=G0(),QI=Oo(),XI=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",JI.default,QI.default];dd.default=XI});var K0=b(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});var xc=oe(),yn=xc.operators,Ac={maximum:{okStr:"<=",ok:yn.LTE,fail:yn.GT},minimum:{okStr:">=",ok:yn.GTE,fail:yn.LT},exclusiveMaximum:{okStr:"<",ok:yn.LT,fail:yn.GTE},exclusiveMinimum:{okStr:">",ok:yn.GT,fail:yn.LTE}},ej={message:s(({keyword:e,schemaCode:t})=>(0,xc.str)`must be ${Ac[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,xc._)`{comparison: ${Ac[e].okStr}, limit: ${t}}`,"params")},tj={keyword:Object.keys(Ac),type:"number",schemaType:"number",$data:!0,error:ej,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,xc._)`${r} ${Ac[t].fail} ${n} || isNaN(${r})`)}};hd.default=tj});var Z0=b(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});var rj=K0(),nj=mp(),ij=vp(),sj=_p(),oj=Op(),aj=wp(),cj=Ep(),uj=Ip(),lj=Tp(),fj=kp(),pj=[rj.default,nj.default,ij.default,sj.default,oj.default,aj.default,cj.default,uj.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},lj.default,fj.default];md.default=pj});var yd=b(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.dynamicAnchor=void 0;var gd=oe(),dj=Jt(),Y0=yo(),hj=Oo(),mj={keyword:"$dynamicAnchor",schemaType:"string",code:s(e=>J0(e,e.schema),"code")};function J0(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,gd._)`${dj.default.dynamicAnchors}${(0,gd.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:gj(e);r.if((0,gd._)`!${i}`,()=>r.assign(i,o))}s(J0,"dynamicAnchor");Ro.dynamicAnchor=J0;function gj(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,l=new Y0.SchemaEnv({schema:r,schemaId:u,root:i,baseId:o,localRefs:a,meta:c});return Y0.compileSchema.call(n,l),(0,hj.getValidate)(e,l)}s(gj,"_getValidate");Ro.default=mj});var vd=b(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.dynamicRef=void 0;var Q0=oe(),yj=Jt(),X0=Oo(),vj={keyword:"$dynamicRef",schemaType:"string",code:s(e=>eb(e,e.schema),"code")};function eb(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=t.slice(1);if(i.allErrors)a();else{let u=r.let("valid",!1);a(u),e.ok(u)}function a(u){if(i.schemaEnv.root.dynamicAnchors[o]){let l=r.let("_v",(0,Q0._)`${yj.default.dynamicAnchors}${(0,Q0.getProperty)(o)}`);r.if(l,c(l,u),c(i.validateName,u))}else c(i.validateName,u)()}s(a,"_dynamicRef");function c(u,l){return l?()=>r.block(()=>{(0,X0.callRef)(e,u),r.let(l,!0)}):()=>(0,X0.callRef)(e,u)}s(c,"_callRef")}s(eb,"dynamicRef");To.dynamicRef=eb;To.default=vj});var tb=b(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});var bj=yd(),_j=de(),Sj={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,bj.dynamicAnchor)(e,""):(0,_j.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};bd.default=Sj});var rb=b(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});var Oj=vd(),Pj={keyword:"$recursiveRef",schemaType:"string",code:s(e=>(0,Oj.dynamicRef)(e,e.schema),"code")};_d.default=Pj});var nb=b(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});var wj=yd(),$j=vd(),Ej=tb(),xj=rb(),Aj=[wj.default,$j.default,Ej.default,xj.default];Sd.default=Aj});var sb=b(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});var ib=vc(),Cj={keyword:"dependentRequired",type:"object",schemaType:"object",error:ib.error,code:s(e=>(0,ib.validatePropertyDeps)(e),"code")};Od.default=Cj});var ob=b(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});var Ij=vc(),jj={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,Ij.validateSchemaDeps)(e),"code")};Pd.default=jj});var ab=b(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});var Rj=de(),Tj={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,Rj.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};wd.default=Tj});var cb=b($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});var Nj=sb(),kj=ob(),Mj=ab(),qj=[Nj.default,kj.default,Mj.default];$d.default=qj});var lb=b(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var vn=oe(),ub=de(),Dj=Jt(),Lj={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,vn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},Fj={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Lj,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:o}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=o;c instanceof vn.Name?t.if((0,vn._)`${c} !== true`,()=>t.forIn("key",n,f=>t.if(l(c,f),()=>u(f)))):c!==!0&&t.forIn("key",n,f=>c===void 0?u(f):t.if(p(c,f),()=>u(f))),o.props=!0,e.ok((0,vn._)`${i} === ${Dj.default.errors}`);function u(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,ub.alwaysValidSchema)(o,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:ub.Type.Str},d),a||t.if((0,vn.not)(d),()=>t.break())}}s(u,"unevaluatedPropCode");function l(f,d){return(0,vn._)`!${f} || !${f}[${d}]`}s(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let y in f)f[y]===!0&&h.push((0,vn._)`${d} !== ${y}`);return(0,vn.and)(...h)}s(p,"unevaluatedStatic")}};Ed.default=Fj});var pb=b(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});var oi=oe(),fb=de(),Vj={message:s(({params:{len:e}})=>(0,oi.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,oi._)`{limit: ${e}}`,"params")},Bj={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Vj,code(e){let{gen:t,schema:r,data:n,it:i}=e,o=i.items||0;if(o===!0)return;let a=t.const("len",(0,oi._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,oi._)`${a} > ${o}`);else if(typeof r=="object"&&!(0,fb.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,oi._)`${a} <= ${o}`);t.if((0,oi.not)(u),()=>c(u,o)),e.ok(u)}i.items=!0;function c(u,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:fb.Type.Num},u),i.allErrors||t.if((0,oi.not)(u),()=>t.break())})}s(c,"validateItems")}};xd.default=Bj});var db=b(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var Hj=lb(),Uj=pb(),zj=[Hj.default,Uj.default];Ad.default=zj});var hb=b(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.contentVocabulary=is.metadataVocabulary=void 0;is.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];is.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var gb=b(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});var Gj=W0(),Wj=Z0(),Kj=nd(),Zj=nb(),Yj=cb(),Jj=db(),Qj=od(),mb=hb(),Xj=[Zj.default,Gj.default,Wj.default,(0,Kj.default)(!0),Qj.default,mb.metadataVocabulary,mb.contentVocabulary,Yj.default,Jj.default];Cd.default=Xj});var yb=b((y7,eR)=>{eR.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 vb=b((v7,tR)=>{tR.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 bb=b((b7,rR)=>{rR.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 _b=b((_7,nR)=>{nR.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 Sb=b((S7,iR)=>{iR.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 Ob=b((O7,sR)=>{sR.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 Pb=b((P7,oR)=>{oR.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 wb=b((w7,aR)=>{aR.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 $b=b(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});var cR=yb(),uR=vb(),lR=bb(),fR=_b(),pR=Sb(),dR=Ob(),hR=Pb(),mR=wb(),gR=["/properties"];function yR(e){return[cR,uR,lR,fR,pR,t(this,dR),hR,t(this,mR)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,gR):n}s(t,"with$data")}s(yR,"addMetaSchema2020");Id.default=yR});var Eb=b((Ne,Rd)=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.MissingRefError=Ne.ValidationError=Ne.CodeGen=Ne.Name=Ne.nil=Ne.stringify=Ne.str=Ne._=Ne.KeywordCxt=Ne.Ajv2020=void 0;var vR=es(),bR=gb(),_R=ld(),SR=$b(),jd="https://json-schema.org/draft/2020-12/schema",Td=class Td extends vR.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),bR.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(_R.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(SR.default.call(this,t),this.refs["http://json-schema.org/schema"]=jd)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(jd)?jd:void 0)}};s(Td,"Ajv2020");var ss=Td;Ne.Ajv2020=ss;Rd.exports=Ne=ss;Rd.exports.Ajv2020=ss;Object.defineProperty(Ne,"__esModule",{value:!0});Ne.default=ss;var OR=mo();Object.defineProperty(Ne,"KeywordCxt",{enumerable:!0,get:s(function(){return OR.KeywordCxt},"get")});var os=oe();Object.defineProperty(Ne,"_",{enumerable:!0,get:s(function(){return os._},"get")});Object.defineProperty(Ne,"str",{enumerable:!0,get:s(function(){return os.str},"get")});Object.defineProperty(Ne,"stringify",{enumerable:!0,get:s(function(){return os.stringify},"get")});Object.defineProperty(Ne,"nil",{enumerable:!0,get:s(function(){return os.nil},"get")});Object.defineProperty(Ne,"Name",{enumerable:!0,get:s(function(){return os.Name},"get")});Object.defineProperty(Ne,"CodeGen",{enumerable:!0,get:s(function(){return os.CodeGen},"get")});var PR=oc();Object.defineProperty(Ne,"ValidationError",{enumerable:!0,get:s(function(){return PR.default},"get")});var wR=go();Object.defineProperty(Ne,"MissingRefError",{enumerable:!0,get:s(function(){return wR.default},"get")})});var xb=b((A7,$R)=>{$R.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 Ab=b((C7,ER)=>{ER.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 Cb=b((I7,xR)=>{xR.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 Ib=b((j7,AR)=>{AR.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 jb=b((ot,as)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.openapi=ot.openapiV31=ot.openapiV3=ot.openapiV2=ot.openapiV1=void 0;ot.openapiV1=xb();ot.openapiV2=Ab();ot.openapiV3=Cb();ot.openapiV31=Ib();ot.openapi={v1:ot.openapiV1,v2:ot.openapiV2,v3:ot.openapiV3,v31:ot.openapiV31};ot.default=ot.openapi;typeof as=="object"&&typeof as.exports=="object"&&(as.exports=Object.assign(as.exports.default,as.exports))});var Md=b((R7,Rb)=>{"use strict";var CR=Va(),{ono:IR}=dr(),jR=z0(),RR=Eb(),{openapi:Nd}=jb();Rb.exports=TR;function TR(e){let t,r;if(e.swagger)r=Nd.v2,t=kd();else if(e.openapi.startsWith("3.1")){r=Nd.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=kd(!1)}else r=Nd.v3,t=kd();if(!t.validate(r,e)){let i=t.errors,o=`Swagger schema validation failed.
|
|
14
|
+
`+NR(i);throw IR.syntax(i,{details:i},o)}}s(TR,"validateSchema");function kd(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new jR(t):new RR(t)}s(kd,"initializeAjv");function NR(e,t){t=t||" ";let r="";for(let n of e)r+=CR.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
|
|
15
|
+
`);return r}s(NR,"formatAjvError")});var Nb=b((N7,Tb)=>{"use strict";Tb.exports=["get","put","post","delete","options","head","patch"]});var Ld=b((k7,Db)=>{"use strict";var kR=Va(),{ono:ht}=dr(),MR=Nb(),qd=["array","boolean","integer","number","string"],Mb=["array","boolean","integer","number","string","object","null",void 0];Db.exports=qR;function qR(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let o=e.paths[i],a="/paths"+i;o&&i.indexOf("/")===0&&DR(e,o,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let o=e.definitions[i],a="/definitions/"+i;qb(o,a)}}s(qR,"validateSpec");function DR(e,t,r,n){for(let i of MR){let o=t[i],a=r+"/"+i;if(o){let c=o.operationId;if(c)if(n.indexOf(c)===-1)n.push(c);else throw ht.syntax(`Validation failed. Duplicate operation id '${c}'`);LR(e,t,r,o,a);let u=Object.keys(o.responses||{});for(let l of u){let p=o.responses[l],f=a+"/responses/"+l;HR(l,p||{},f)}}}}s(DR,"validatePath");function LR(e,t,r,n,i){let o=t.parameters||[],a=n.parameters||[];try{kb(o)}catch(u){throw ht.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{kb(a)}catch(u){throw ht.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=o.reduce((u,l)=>(u.some(f=>f.in===l.in&&f.name===l.name)||u.push(l),u),a.slice());FR(c,i),VR(c,r,i),BR(c,e,n,i)}s(LR,"validateParameters");function FR(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw ht.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw ht.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}s(FR,"validateBodyParameters");function VR(e,t,r){let n=t.match(kR.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let o=i+1;o<n.length;o++)if(n[i]===n[o])throw ht.syntax(`Validation failed. ${r} has multiple path placeholders named ${n[i]}`);e=e.filter(i=>i.in==="path");for(let i of e){if(i.required!==!0)throw ht.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let o=n.indexOf("{"+i.name+"}");if(o===-1)throw ht.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(o,1)}if(n.length>0)throw ht.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}s(VR,"validatePathParameters");function BR(e,t,r,n){for(let i of e){let o=n+"/parameters/"+i.name,a,c;switch(i.in){case"body":a=i.schema,c=Mb;break;case"formData":a=i,c=qd.concat("file");break;default:a=i,c=qd}if(Dd(a,o,c),qb(a,o),a.type==="file"){let u=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>u.test(d)||l.test(d)))throw ht.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}s(BR,"validateParameterTypes");function kb(e){for(let t=0;t<e.length-1;t++){let r=e[t];for(let n=t+1;n<e.length;n++){let i=e[n];if(r.name===i.name&&r.in===i.in)throw ht.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}s(kb,"checkForDuplicates");function HR(e,t,r){if(e!=="default"&&(e<100||e>599))throw ht.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let o=t.headers[i],a=r+"/headers/"+i;Dd(o,a,qd)}if(t.schema){let i=Mb.concat("file");if(i.indexOf(t.schema.type)===-1)throw ht.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Dd(t.schema,r+"/schema",i)}}s(HR,"validateResponse");function Dd(e,t,r){if(r.indexOf(e.type)===-1)throw ht.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw ht.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}s(Dd,"validateSchema");function qb(e,t){function r(n,i){if(n.properties)for(let o in n.properties)n.properties.hasOwnProperty(o)&&(i[o]=n.properties[o]);if(n.allOf)for(let o of n.allOf)r(o,i)}if(s(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw ht.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}s(qb,"validateRequiredPropertiesExist")});var br=b(vr=>{"use strict";var{Ono:Lb}=dr(),{stripHash:Fb,toFileSystemPath:UR}=Lt(),cs,bn=vr.JSONParserError=(cs=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,Lb.extend(this)}},s(cs,"JSONParserError"),cs);_n(bn);var ai,Vb=vr.JSONParserErrorGroup=(ai=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${UR(t.$refs._root$Ref.path)}'`,Lb.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 ai.getParserErrors(this.files)}},s(ai,"JSONParserErrorGroup"),ai);_n(Vb);var us,zR=vr.ParserError=(us=class extends bn{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},s(us,"ParserError"),us);_n(zR);var ls,GR=vr.UnmatchedParserError=(ls=class extends bn{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},s(ls,"UnmatchedParserError"),ls);_n(GR);var fs,WR=vr.ResolverError=(fs=class extends bn{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},s(fs,"ResolverError"),fs);_n(WR);var ps,KR=vr.UnmatchedResolverError=(ps=class extends bn{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},s(ps,"UnmatchedResolverError"),ps);_n(KR);var ds,ZR=vr.MissingPointerError=(ds=class extends bn{constructor(t,r){super(`Token "${t}" does not exist.`,Fb(r)),this.code="EMISSINGPOINTER"}},s(ds,"MissingPointerError"),ds);_n(ZR);var hs,YR=vr.InvalidPointerError=(hs=class extends bn{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,Fb(r)),this.code="EINVALIDPOINTER"}},s(hs,"InvalidPointerError"),hs);_n(YR);function _n(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}s(_n,"setErrorName");vr.isHandledError=function(e){return e instanceof bn||e instanceof Vb};vr.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var Hb=b((L7,Bb)=>{"use strict";var{ParserError:JR}=br();Bb.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 JR(r.message,e.url)}}else return t}}});var ui=b((F7,ci)=>{"use strict";function Ub(e){return typeof e>"u"||e===null}s(Ub,"isNothing");function QR(e){return typeof e=="object"&&e!==null}s(QR,"isObject");function XR(e){return Array.isArray(e)?e:Ub(e)?[]:[e]}s(XR,"toArray");function eT(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}s(eT,"extend");function tT(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}s(tT,"repeat");function rT(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}s(rT,"isNegativeZero");ci.exports.isNothing=Ub;ci.exports.isObject=QR;ci.exports.toArray=XR;ci.exports.repeat=tT;ci.exports.isNegativeZero=rT;ci.exports.extend=eT});var ms=b((B7,zb)=>{"use strict";function No(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}s(No,"YAMLException");No.prototype=Object.create(Error.prototype);No.prototype.constructor=No;No.prototype.toString=s(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");zb.exports=No});var Kb=b((U7,Wb)=>{"use strict";var Gb=ui();function Fd(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}s(Fd,"Mark");Fd.prototype.getSnippet=s(function(t,r){var n,i,o,a,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
|
|
16
16
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",a=this.position;a<this.buffer.length&&`\0\r
|
|
17
|
-
\x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){o=" ... ",a-=5;break}return c=this.buffer.slice(i,a),
|
|
18
|
-
`+
|
|
19
|
-
`+r)),n},"toString");
|
|
20
|
-
\r`;function
|
|
21
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}s(
|
|
22
|
-
`,t-1))}s(
|
|
23
|
-
`,o?1+u:u):i===
|
|
17
|
+
\x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){o=" ... ",a-=5;break}return c=this.buffer.slice(i,a),Gb.repeat(" ",t)+n+c+o+`
|
|
18
|
+
`+Gb.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Fd.prototype.toString=s(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
|
|
19
|
+
`+r)),n},"toString");Wb.exports=Fd});var rt=b((G7,Yb)=>{"use strict";var Zb=ms(),nT=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],iT=["scalar","sequence","mapping"];function sT(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}s(sT,"compileStyleAliases");function oT(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(nT.indexOf(r)===-1)throw new Zb('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=sT(t.styleAliases||null),iT.indexOf(this.kind)===-1)throw new Zb('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}s(oT,"Type");Yb.exports=oT});var li=b((K7,Qb)=>{"use strict";var Jb=ui(),Cc=ms(),aT=rt();function Vd(e,t,r){var n=[];return e.include.forEach(function(i){r=Vd(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,a){o.tag===i.tag&&o.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}s(Vd,"compileList");function cT(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(s(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}s(cT,"compileMap");function gs(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 Cc("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Vd(this,"implicit",[]),this.compiledExplicit=Vd(this,"explicit",[]),this.compiledTypeMap=cT(this.compiledImplicit,this.compiledExplicit)}s(gs,"Schema");gs.DEFAULT=null;gs.create=s(function(){var t,r;switch(arguments.length){case 1:t=gs.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Cc("Wrong number of arguments for Schema.create function")}if(t=Jb.toArray(t),r=Jb.toArray(r),!t.every(function(n){return n instanceof gs}))throw new Cc("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof aT}))throw new Cc("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new gs({include:t,explicit:r})},"createSchema");Qb.exports=gs});var e_=b((Y7,Xb)=>{"use strict";var uT=rt();Xb.exports=new uT("tag:yaml.org,2002:str",{kind:"scalar",construct:s(function(e){return e!==null?e:""},"construct")})});var r_=b((Q7,t_)=>{"use strict";var lT=rt();t_.exports=new lT("tag:yaml.org,2002:seq",{kind:"sequence",construct:s(function(e){return e!==null?e:[]},"construct")})});var i_=b((e9,n_)=>{"use strict";var fT=rt();n_.exports=new fT("tag:yaml.org,2002:map",{kind:"mapping",construct:s(function(e){return e!==null?e:{}},"construct")})});var Ic=b((r9,s_)=>{"use strict";var pT=li();s_.exports=new pT({explicit:[e_(),r_(),i_()]})});var a_=b((n9,o_)=>{"use strict";var dT=rt();function hT(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}s(hT,"resolveYamlNull");function mT(){return null}s(mT,"constructYamlNull");function gT(e){return e===null}s(gT,"isNull");o_.exports=new dT("tag:yaml.org,2002:null",{kind:"scalar",resolve:hT,construct:mT,predicate:gT,represent:{canonical:s(function(){return"~"},"canonical"),lowercase:s(function(){return"null"},"lowercase"),uppercase:s(function(){return"NULL"},"uppercase"),camelcase:s(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var u_=b((s9,c_)=>{"use strict";var yT=rt();function vT(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}s(vT,"resolveYamlBoolean");function bT(e){return e==="true"||e==="True"||e==="TRUE"}s(bT,"constructYamlBoolean");function _T(e){return Object.prototype.toString.call(e)==="[object Boolean]"}s(_T,"isBoolean");c_.exports=new yT("tag:yaml.org,2002:bool",{kind:"scalar",resolve:vT,construct:bT,predicate:_T,represent:{lowercase:s(function(e){return e?"true":"false"},"lowercase"),uppercase:s(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:s(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var f_=b((a9,l_)=>{"use strict";var ST=ui(),OT=rt();function PT(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}s(PT,"isHexCode");function wT(e){return 48<=e&&e<=55}s(wT,"isOctCode");function $T(e){return 48<=e&&e<=57}s($T,"isDecCode");function ET(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(!PT(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!wT(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(!$T(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}s(ET,"resolveYamlInteger");function xT(e){var t=e,r=1,n,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){o.unshift(parseInt(a,10))}),t=0,i=1,o.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}s(xT,"constructYamlInteger");function AT(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!ST.isNegativeZero(e)}s(AT,"isInteger");l_.exports=new OT("tag:yaml.org,2002:int",{kind:"scalar",resolve:ET,construct:xT,predicate:AT,represent:{binary:s(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:s(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:s(function(e){return e.toString(10)},"decimal"),hexadecimal:s(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var h_=b((u9,d_)=>{"use strict";var p_=ui(),CT=rt(),IT=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 jT(e){return!(e===null||!IT.test(e)||e[e.length-1]==="_")}s(jT,"resolveYamlFloat");function RT(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}s(RT,"constructYamlFloat");var TT=/^[-+]?[0-9]+e/;function NT(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(p_.isNegativeZero(e))return"-0.0";return r=e.toString(10),TT.test(r)?r.replace("e",".e"):r}s(NT,"representYamlFloat");function kT(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||p_.isNegativeZero(e))}s(kT,"isFloat");d_.exports=new CT("tag:yaml.org,2002:float",{kind:"scalar",resolve:jT,construct:RT,predicate:kT,represent:NT,defaultStyle:"lowercase"})});var Bd=b((f9,m_)=>{"use strict";var MT=li();m_.exports=new MT({include:[Ic()],implicit:[a_(),u_(),f_(),h_()]})});var Hd=b((p9,g_)=>{"use strict";var qT=li();g_.exports=new qT({include:[Bd()]})});var __=b((d9,b_)=>{"use strict";var DT=rt(),y_=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),v_=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 LT(e){return e===null?!1:y_.exec(e)!==null||v_.exec(e)!==null}s(LT,"resolveYamlTimestamp");function FT(e){var t,r,n,i,o,a,c,u=0,l=null,p,f,d;if(t=y_.exec(e),t===null&&(t=v_.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],a=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(p=+t[10],f=+(t[11]||0),l=(p*60+f)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,o,a,c,u)),l&&d.setTime(d.getTime()-l),d}s(FT,"constructYamlTimestamp");function VT(e){return e.toISOString()}s(VT,"representYamlTimestamp");b_.exports=new DT("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:LT,construct:FT,instanceOf:Date,represent:VT})});var O_=b((m9,S_)=>{"use strict";var BT=rt();function HT(e){return e==="<<"||e===null}s(HT,"resolveYamlMerge");S_.exports=new BT("tag:yaml.org,2002:merge",{kind:"scalar",resolve:HT})});var $_=b((y9,w_)=>{"use strict";var fi;try{P_=require,fi=P_("buffer").Buffer}catch{}var P_,UT=rt(),Ud=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
20
|
+
\r`;function zT(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=Ud;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}s(zT,"resolveYamlBinary");function GT(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=Ud,a=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),fi?fi.from?fi.from(c):new fi(c):c}s(GT,"constructYamlBinary");function WT(e){var t="",r=0,n,i,o=e.length,a=Ud;for(n=0;n<o;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}s(WT,"representYamlBinary");function KT(e){return fi&&fi.isBuffer(e)}s(KT,"isBinary");w_.exports=new UT("tag:yaml.org,2002:binary",{kind:"scalar",resolve:zT,construct:GT,predicate:KT,represent:WT})});var x_=b((b9,E_)=>{"use strict";var ZT=rt(),YT=Object.prototype.hasOwnProperty,JT=Object.prototype.toString;function QT(e){if(e===null)return!0;var t=[],r,n,i,o,a,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],a=!1,JT.call(i)!=="[object Object]")return!1;for(o in i)if(YT.call(i,o))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}s(QT,"resolveYamlOmap");function XT(e){return e!==null?e:[]}s(XT,"constructYamlOmap");E_.exports=new ZT("tag:yaml.org,2002:omap",{kind:"sequence",resolve:QT,construct:XT})});var C_=b((S9,A_)=>{"use strict";var eN=rt(),tN=Object.prototype.toString;function rN(e){if(e===null)return!0;var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],tN.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}s(rN,"resolveYamlPairs");function nN(e){if(e===null)return[];var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}s(nN,"constructYamlPairs");A_.exports=new eN("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:rN,construct:nN})});var j_=b((P9,I_)=>{"use strict";var iN=rt(),sN=Object.prototype.hasOwnProperty;function oN(e){if(e===null)return!0;var t,r=e;for(t in r)if(sN.call(r,t)&&r[t]!==null)return!1;return!0}s(oN,"resolveYamlSet");function aN(e){return e!==null?e:{}}s(aN,"constructYamlSet");I_.exports=new iN("tag:yaml.org,2002:set",{kind:"mapping",resolve:oN,construct:aN})});var ys=b(($9,R_)=>{"use strict";var cN=li();R_.exports=new cN({include:[Hd()],implicit:[__(),O_()],explicit:[$_(),x_(),C_(),j_()]})});var N_=b((E9,T_)=>{"use strict";var uN=rt();function lN(){return!0}s(lN,"resolveJavascriptUndefined");function fN(){}s(fN,"constructJavascriptUndefined");function pN(){return""}s(pN,"representJavascriptUndefined");function dN(e){return typeof e>"u"}s(dN,"isUndefined");T_.exports=new uN("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:lN,construct:fN,predicate:dN,represent:pN})});var M_=b((A9,k_)=>{"use strict";var hN=rt();function mN(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}s(mN,"resolveJavascriptRegExp");function gN(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}s(gN,"constructJavascriptRegExp");function yN(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}s(yN,"representJavascriptRegExp");function vN(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s(vN,"isRegExp");k_.exports=new hN("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:mN,construct:gN,predicate:vN,represent:yN})});var L_=b((I9,D_)=>{"use strict";var jc;try{q_=require,jc=q_("esprima")}catch{typeof window<"u"&&(jc=window.esprima)}var q_,bN=rt();function _N(e){if(e===null)return!1;try{var t="("+e+")",r=jc.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}s(_N,"resolveJavascriptFunction");function SN(e){var t="("+e+")",r=jc.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(o){n.push(o.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}s(SN,"constructJavascriptFunction");function ON(e){return e.toString()}s(ON,"representJavascriptFunction");function PN(e){return Object.prototype.toString.call(e)==="[object Function]"}s(PN,"isFunction");D_.exports=new bN("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:_N,construct:SN,predicate:PN,represent:ON})});var ko=b((R9,V_)=>{"use strict";var F_=li();V_.exports=F_.DEFAULT=new F_({include:[ys()],explicit:[N_(),M_(),L_()]})});var oS=b((T9,Mo)=>{"use strict";var Zr=ui(),K_=ms(),wN=Kb(),Z_=ys(),$N=ko(),On=Object.prototype.hasOwnProperty,Rc=1,Y_=2,J_=3,Tc=4,zd=1,EN=2,B_=3,xN=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,AN=/[\x85\u2028\u2029]/,CN=/[,\[\]\{\}]/,Q_=/^(?:!|!!|![a-z\-]+!)$/i,X_=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function H_(e){return Object.prototype.toString.call(e)}s(H_,"_class");function Nr(e){return e===10||e===13}s(Nr,"is_EOL");function di(e){return e===9||e===32}s(di,"is_WHITE_SPACE");function Rt(e){return e===9||e===32||e===10||e===13}s(Rt,"is_WS_OR_EOL");function vs(e){return e===44||e===91||e===93||e===123||e===125}s(vs,"is_FLOW_INDICATOR");function IN(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}s(IN,"fromHexCode");function jN(e){return e===120?2:e===117?4:e===85?8:0}s(jN,"escapedHexLen");function RN(e){return 48<=e&&e<=57?e-48:-1}s(RN,"fromDecimalCode");function U_(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
21
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}s(U_,"simpleEscapeSequence");function TN(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}s(TN,"charFromCodepoint");var eS=new Array(256),tS=new Array(256);for(pi=0;pi<256;pi++)eS[pi]=U_(pi)?1:0,tS[pi]=U_(pi);var pi;function NN(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||$N,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}s(NN,"State");function rS(e,t){return new K_(t,new wN(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}s(rS,"generateError");function ee(e,t){throw rS(e,t)}s(ee,"throwError");function Nc(e,t){e.onWarning&&e.onWarning.call(null,rS(e,t))}s(Nc,"throwWarning");var z_={YAML:s(function(t,r,n){var i,o,a;t.version!==null&&ee(t,"duplication of %YAML directive"),n.length!==1&&ee(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&ee(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&ee(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Nc(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:s(function(t,r,n){var i,o;n.length!==2&&ee(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],Q_.test(i)||ee(t,"ill-formed tag handle (first argument) of the TAG directive"),On.call(t.tagMap,i)&&ee(t,'there is a previously declared suffix for "'+i+'" tag handle'),X_.test(o)||ee(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o},"handleTagDirective")};function Sn(e,t,r,n){var i,o,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,o=c.length;i<o;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||ee(e,"expected valid JSON character");else xN.test(c)&&ee(e,"the stream contains non-printable characters");e.result+=c}}s(Sn,"captureSegment");function G_(e,t,r,n){var i,o,a,c;for(Zr.isObject(r)||ee(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)o=i[a],On.call(t,o)||(t[o]=r[o],n[o]=!0)}s(G_,"mergeMappings");function bs(e,t,r,n,i,o,a,c){var u,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,l=i.length;u<l;u+=1)Array.isArray(i[u])&&ee(e,"nested arrays are not supported inside keys"),typeof i=="object"&&H_(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&H_(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(u=0,l=o.length;u<l;u+=1)G_(e,t,o[u],r);else G_(e,t,o,r);else!e.json&&!On.call(r,i)&&On.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,ee(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}s(bs,"storeMappingPair");function Gd(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ee(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}s(Gd,"readLineBreak");function Je(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;di(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(Nr(i))for(Gd(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&&Nc(e,"deficient indentation"),n}s(Je,"skipSeparationSpace");function kc(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||Rt(r)))}s(kc,"testDocumentSeparator");function Wd(e,t){t===1?e.result+=" ":t>1&&(e.result+=Zr.repeat(`
|
|
22
|
+
`,t-1))}s(Wd,"writeFoldedLines");function kN(e,t,r){var n,i,o,a,c,u,l,p,f=e.kind,d=e.result,h;if(h=e.input.charCodeAt(e.position),Rt(h)||vs(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),Rt(i)||r&&vs(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,c=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),Rt(i)||r&&vs(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Rt(n))break}else{if(e.position===e.lineStart&&kc(e)||r&&vs(h))break;if(Nr(h))if(u=e.line,l=e.lineStart,p=e.lineIndent,Je(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&&(Sn(e,o,a,!1),Wd(e,e.line-u),o=a=e.position,c=!1),di(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return Sn(e,o,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}s(kN,"readPlainScalar");function MN(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(Sn(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 Nr(r)?(Sn(e,n,i,!0),Wd(e,Je(e,!1,t)),n=i=e.position):e.position===e.lineStart&&kc(e)?ee(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ee(e,"unexpected end of the stream within a single quoted scalar")}s(MN,"readSingleQuotedScalar");function qN(e,t){var r,n,i,o,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Sn(e,r,e.position,!0),e.position++,!0;if(c===92){if(Sn(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Nr(c))Je(e,!1,t);else if(c<256&&eS[c])e.result+=tS[c],e.position++;else if((a=jN(c))>0){for(i=a,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=IN(c))>=0?o=(o<<4)+a:ee(e,"expected hexadecimal character");e.result+=TN(o),e.position++}else ee(e,"unknown escape sequence");r=n=e.position}else Nr(c)?(Sn(e,r,n,!0),Wd(e,Je(e,!1,t)),r=n=e.position):e.position===e.lineStart&&kc(e)?ee(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ee(e,"unexpected end of the stream within a double quoted scalar")}s(qN,"readDoubleQuotedScalar");function DN(e,t){var r=!0,n,i=e.tag,o,a=e.anchor,c,u,l,p,f,d={},h,y,v,g;if(g=e.input.charCodeAt(e.position),g===91)u=93,f=!1,o=[];else if(g===123)u=125,f=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),g=e.input.charCodeAt(++e.position);g!==0;){if(Je(e,!0,t),g=e.input.charCodeAt(e.position),g===u)return e.position++,e.tag=i,e.anchor=a,e.kind=f?"mapping":"sequence",e.result=o,!0;r||ee(e,"missed comma between flow collection entries"),y=h=v=null,l=p=!1,g===63&&(c=e.input.charCodeAt(e.position+1),Rt(c)&&(l=p=!0,e.position++,Je(e,!0,t))),n=e.line,_s(e,t,Rc,!1,!0),y=e.tag,h=e.result,Je(e,!0,t),g=e.input.charCodeAt(e.position),(p||e.line===n)&&g===58&&(l=!0,g=e.input.charCodeAt(++e.position),Je(e,!0,t),_s(e,t,Rc,!1,!0),v=e.result),f?bs(e,o,d,y,h,v):l?o.push(bs(e,null,d,y,h,v)):o.push(h),Je(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(r=!0,g=e.input.charCodeAt(++e.position)):r=!1}ee(e,"unexpected end of the stream within a flow collection")}s(DN,"readFlowCollection");function LN(e,t){var r,n,i=zd,o=!1,a=!1,c=t,u=0,l=!1,p,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)zd===i?i=f===43?B_:EN:ee(e,"repeat of a chomping mode identifier");else if((p=RN(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(di(f)){do f=e.input.charCodeAt(++e.position);while(di(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Nr(f)&&f!==0)}for(;f!==0;){for(Gd(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),Nr(f)){u++;continue}if(e.lineIndent<c){i===B_?e.result+=Zr.repeat(`
|
|
23
|
+
`,o?1+u:u):i===zd&&o&&(e.result+=`
|
|
24
24
|
`);break}for(n?di(f)?(l=!0,e.result+=Zr.repeat(`
|
|
25
25
|
`,o?1+u:u)):l?(l=!1,e.result+=Zr.repeat(`
|
|
26
26
|
`,u+1)):u===0?o&&(e.result+=" "):e.result+=Zr.repeat(`
|
|
27
27
|
`,u):e.result+=Zr.repeat(`
|
|
28
|
-
`,o?1+u:u),o=!0,a=!0,u=0,r=e.position;!
|
|
29
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new
|
|
28
|
+
`,o?1+u:u),o=!0,a=!0,u=0,r=e.position;!Nr(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Sn(e,r,e.position,!1)}return!0}s(LN,"readBlockScalar");function W_(e,t){var r,n=e.tag,i=e.anchor,o=[],a,c=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!Rt(a)));){if(c=!0,e.position++,Je(e,!0,-1)&&e.lineIndent<=t){o.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,_s(e,t,J_,!1,!0),o.push(e.result),Je(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)ee(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}s(W_,"readBlockSequence");function FN(e,t,r){var n,i,o,a,c=e.tag,u=e.anchor,l={},p={},f=null,d=null,h=null,y=!1,v=!1,g;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),g=e.input.charCodeAt(e.position);g!==0;){if(n=e.input.charCodeAt(e.position+1),o=e.line,a=e.position,(g===63||g===58)&&Rt(n))g===63?(y&&(bs(e,l,p,f,d,null),f=d=h=null),v=!0,y=!0,i=!0):y?(y=!1,i=!0):ee(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else if(_s(e,r,Y_,!1,!0))if(e.line===o){for(g=e.input.charCodeAt(e.position);di(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),Rt(g)||ee(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(bs(e,l,p,f,d,null),f=d=h=null),v=!0,y=!1,i=!1,f=e.tag,d=e.result;else if(v)ee(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(v)ee(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0;else break;if((e.line===o||e.lineIndent>t)&&(_s(e,t,Tc,!0,i)&&(y?d=e.result:h=e.result),y||(bs(e,l,p,f,d,h,o,a),f=d=h=null),Je(e,!0,-1),g=e.input.charCodeAt(e.position)),e.lineIndent>t&&g!==0)ee(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&bs(e,l,p,f,d,null),v&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),v}s(FN,"readBlockMapping");function VN(e){var t,r=!1,n=!1,i,o,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&ee(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(o=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):ee(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Rt(a);)a===33&&(n?ee(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Q_.test(i)||ee(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),CN.test(o)&&ee(e,"tag suffix cannot contain flow indicator characters")}return o&&!X_.test(o)&&ee(e,"tag name cannot contain such characters: "+o),r?e.tag=o:On.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:ee(e,'undeclared tag handle "'+i+'"'),!0}s(VN,"readTagProperty");function BN(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&&!Rt(r)&&!vs(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}s(BN,"readAnchorProperty");function HN(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&&!Rt(n)&&!vs(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),On.call(e.anchorMap,r)||ee(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Je(e,!0,-1),!0}s(HN,"readAlias");function _s(e,t,r,n,i){var o,a,c,u=1,l=!1,p=!1,f,d,h,y,v;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=c=Tc===r||J_===r,n&&Je(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;VN(e)||BN(e);)Je(e,!0,-1)?(l=!0,c=o,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=l||i),(u===1||Tc===r)&&(Rc===r||Y_===r?y=t:y=t+1,v=e.position-e.lineStart,u===1?c&&(W_(e,v)||FN(e,v,y))||DN(e,y)?p=!0:(a&&LN(e,y)||MN(e,y)||qN(e,y)?p=!0:HN(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&ee(e,"alias node should not have any properties")):kN(e,y,Rc===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(p=c&&W_(e,v))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ee(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,d=e.implicitTypes.length;f<d;f+=1)if(h=e.implicitTypes[f],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else On.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&ee(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ee(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):ee(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}s(_s,"composeNode");function UN(e){var t=e.position,r,n,i,o=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(Je(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(o=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Rt(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(;di(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Nr(a));break}if(Nr(a))break;for(r=e.position;a!==0&&!Rt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Gd(e),On.call(z_,n)?z_[n](e,n,i):Nc(e,'unknown document directive "'+n+'"')}if(Je(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Je(e,!0,-1)):o&&ee(e,"directives end mark is expected"),_s(e,e.lineIndent-1,Tc,!1,!0),Je(e,!0,-1),e.checkLineBreaks&&AN.test(e.input.slice(t,e.position))&&Nc(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&kc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Je(e,!0,-1));return}if(e.position<e.length-1)ee(e,"end of the stream or a document separator is expected");else return}s(UN,"readDocument");function nS(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 NN(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;)UN(r);return r.documents}s(nS,"loadDocuments");function iS(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=nS(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}s(iS,"loadAll");function sS(e,t){var r=nS(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new K_("expected a single document in the stream, but found more")}}s(sS,"load");function zN(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),iS(e,t,Zr.extend({schema:Z_},r))}s(zN,"safeLoadAll");function GN(e,t){return sS(e,Zr.extend({schema:Z_},t))}s(GN,"safeLoad");Mo.exports.loadAll=iS;Mo.exports.load=sS;Mo.exports.safeLoadAll=zN;Mo.exports.safeLoad=GN});var CS=b((k9,Jd)=>{"use strict";var Do=ui(),Lo=ms(),WN=ko(),KN=ys(),hS=Object.prototype.toString,mS=Object.prototype.hasOwnProperty,ZN=9,qo=10,YN=13,JN=32,QN=33,XN=34,gS=35,ek=37,tk=38,rk=39,nk=42,yS=44,ik=45,vS=58,sk=61,ok=62,ak=63,ck=64,bS=91,_S=93,uk=96,SS=123,lk=124,OS=125,mt={};mt[0]="\\0";mt[7]="\\a";mt[8]="\\b";mt[9]="\\t";mt[10]="\\n";mt[11]="\\v";mt[12]="\\f";mt[13]="\\r";mt[27]="\\e";mt[34]='\\"';mt[92]="\\\\";mt[133]="\\N";mt[160]="\\_";mt[8232]="\\L";mt[8233]="\\P";var fk=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function pk(e,t){var r,n,i,o,a,c,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;i+=1)a=n[i],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&mS.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}s(pk,"compileStyleMap");function aS(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 Lo("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Do.repeat("0",n-t.length)+t}s(aS,"encodeHex");function dk(e){this.schema=e.schema||WN,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Do.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=pk(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}s(dk,"State");function cS(e,t){for(var r=Do.repeat(" ",t),n=0,i=-1,o="",a,c=e.length;n<c;)i=e.indexOf(`
|
|
30
30
|
`,n),i===-1?(a=e.slice(n),n=c):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
|
|
31
|
-
`&&(o+=r),o+=a;return o}s(
|
|
32
|
-
`+
|
|
31
|
+
`&&(o+=r),o+=a;return o}s(cS,"indentString");function Kd(e,t){return`
|
|
32
|
+
`+Do.repeat(" ",e.indent*t)}s(Kd,"generateNextLine");function hk(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}s(hk,"testImplicitResolving");function Yd(e){return e===JN||e===ZN}s(Yd,"isWhitespace");function Ss(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}s(Ss,"isPrintable");function mk(e){return Ss(e)&&!Yd(e)&&e!==65279&&e!==YN&&e!==qo}s(mk,"isNsChar");function uS(e,t){return Ss(e)&&e!==65279&&e!==yS&&e!==bS&&e!==_S&&e!==SS&&e!==OS&&e!==vS&&(e!==gS||t&&mk(t))}s(uS,"isPlainSafe");function gk(e){return Ss(e)&&e!==65279&&!Yd(e)&&e!==ik&&e!==ak&&e!==vS&&e!==yS&&e!==bS&&e!==_S&&e!==SS&&e!==OS&&e!==gS&&e!==tk&&e!==nk&&e!==QN&&e!==lk&&e!==sk&&e!==ok&&e!==rk&&e!==XN&&e!==ek&&e!==ck&&e!==uk}s(gk,"isPlainSafeFirst");function PS(e){var t=/^\n* /;return t.test(e)}s(PS,"needIndentIndicator");var wS=1,$S=2,ES=3,xS=4,Mc=5;function yk(e,t,r,n,i){var o,a,c,u=!1,l=!1,p=n!==-1,f=-1,d=gk(e.charCodeAt(0))&&!Yd(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),!Ss(a))return Mc;c=o>0?e.charCodeAt(o-1):null,d=d&&uS(a,c)}else{for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),a===qo)u=!0,p&&(l=l||o-f-1>n&&e[f+1]!==" ",f=o);else if(!Ss(a))return Mc;c=o>0?e.charCodeAt(o-1):null,d=d&&uS(a,c)}l=l||p&&o-f-1>n&&e[f+1]!==" "}return!u&&!l?d&&!i(e)?wS:$S:r>9&&PS(e)?Mc:l?xS:ES}s(yk,"chooseScalarStyle");function vk(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&fk.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return hk(e,u)}switch(s(c,"testAmbiguity"),yk(t,a,e.indent,o,c)){case wS:return t;case $S:return"'"+t.replace(/'/g,"''")+"'";case ES:return"|"+lS(t,e.indent)+fS(cS(t,i));case xS:return">"+lS(t,e.indent)+fS(cS(bk(t,o),i));case Mc:return'"'+_k(t,o)+'"';default:throw new Lo("impossible error: invalid scalar style")}}()}s(vk,"writeScalar");function lS(e,t){var r=PS(e)?String(t):"",n=e[e.length-1]===`
|
|
33
33
|
`,i=n&&(e[e.length-2]===`
|
|
34
34
|
`||e===`
|
|
35
35
|
`),o=i?"+":n?"":"-";return r+o+`
|
|
36
|
-
`}s(
|
|
37
|
-
`?e.slice(0,-1):e}s(
|
|
38
|
-
`);return l=l!==-1?l:e.length,r.lastIndex=l,
|
|
36
|
+
`}s(lS,"blockHeader");function fS(e){return e[e.length-1]===`
|
|
37
|
+
`?e.slice(0,-1):e}s(fS,"dropEndingNewline");function bk(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=e.indexOf(`
|
|
38
|
+
`);return l=l!==-1?l:e.length,r.lastIndex=l,pS(e.slice(0,l),t)}(),i=e[0]===`
|
|
39
39
|
`||e[0]===" ",o,a;a=r.exec(e);){var c=a[1],u=a[2];o=u[0]===" ",n+=c+(!i&&!o&&u!==""?`
|
|
40
|
-
`:"")+
|
|
40
|
+
`:"")+pS(u,t),i=o}return n}s(bk,"foldString");function pS(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,o,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(o=a>i?a:c,u+=`
|
|
41
41
|
`+e.slice(i,o),i=o+1),a=c;return u+=`
|
|
42
42
|
`,e.length-i>t&&a>i?u+=e.slice(i,a)+`
|
|
43
|
-
`+e.slice(a+1):u+=e.slice(i),u.slice(1)}s(
|
|
44
|
-
`:""}s(
|
|
43
|
+
`+e.slice(a+1):u+=e.slice(i),u.slice(1)}s(pS,"foldLine");function _k(e){for(var t="",r,n,i,o=0;o<e.length;o++){if(r=e.charCodeAt(o),r>=55296&&r<=56319&&(n=e.charCodeAt(o+1),n>=56320&&n<=57343)){t+=aS((r-55296)*1024+n-56320+65536),o++;continue}i=mt[r],t+=!i&&Ss(r)?e[o]:i||aS(r)}return t}s(_k,"escapeString");function Sk(e,t,r){var n="",i=e.tag,o,a;for(o=0,a=r.length;o<a;o+=1)hi(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}s(Sk,"writeFlowSequence");function Ok(e,t,r,n){var i="",o=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)hi(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Kd(e,t)),e.dump&&qo===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}s(Ok,"writeBlockSequence");function Pk(e,t,r){var n="",i=e.tag,o=Object.keys(r),a,c,u,l,p;for(a=0,c=o.length;a<c;a+=1)p="",a!==0&&(p+=", "),e.condenseFlow&&(p+='"'),u=o[a],l=r[u],hi(e,t,u,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),hi(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}s(Pk,"writeFlowMapping");function wk(e,t,r,n){var i="",o=e.tag,a=Object.keys(r),c,u,l,p,f,d;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Lo("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=Kd(e,t)),l=a[c],p=r[l],hi(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&qo===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=Kd(e,t)),hi(e,t+1,p,!0,f)&&(e.dump&&qo===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=o,e.dump=i||"{}"}s(wk,"writeBlockMapping");function dS(e,t,r){var n,i,o,a,c,u;for(i=r?e.explicitTypes:e.implicitTypes,o=0,a=i.length;o<a;o+=1)if(c=i[o],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.tag:"?",c.represent){if(u=e.styleMap[c.tag]||c.defaultStyle,hS.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(mS.call(c.represent,u))n=c.represent[u](t,u);else throw new Lo("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}s(dS,"detectType");function hi(e,t,r,n,i,o){e.tag=null,e.dump=r,dS(e,r,!1)||dS(e,r,!0);var a=hS.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?(wk(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(Pk(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?(Ok(e,p,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(Sk(e,p,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&vk(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new Lo("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}s(hi,"writeNode");function $k(e,t){var r=[],n=[],i,o;for(Zd(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}s($k,"getDuplicateReferences");function Zd(e,t,r){var n,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)Zd(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)Zd(e[n[i]],t,r)}s(Zd,"inspectNode");function AS(e,t){t=t||{};var r=new dk(t);return r.noRefs||$k(e,r),hi(r,0,e,!0,!0)?r.dump+`
|
|
44
|
+
`:""}s(AS,"dump");function Ek(e,t){return AS(e,Do.extend({schema:KN},t))}s(Ek,"safeDump");Jd.exports.dump=AS;Jd.exports.safeDump=Ek});var jS=b((q9,He)=>{"use strict";var qc=oS(),IS=CS();function Dc(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}s(Dc,"deprecated");He.exports.Type=rt();He.exports.Schema=li();He.exports.FAILSAFE_SCHEMA=Ic();He.exports.JSON_SCHEMA=Bd();He.exports.CORE_SCHEMA=Hd();He.exports.DEFAULT_SAFE_SCHEMA=ys();He.exports.DEFAULT_FULL_SCHEMA=ko();He.exports.load=qc.load;He.exports.loadAll=qc.loadAll;He.exports.safeLoad=qc.safeLoad;He.exports.safeLoadAll=qc.safeLoadAll;He.exports.dump=IS.dump;He.exports.safeDump=IS.safeDump;He.exports.YAMLException=ms();He.exports.MINIMAL_SCHEMA=Ic();He.exports.SAFE_SCHEMA=ys();He.exports.DEFAULT_SCHEMA=ko();He.exports.scan=Dc("scan");He.exports.parse=Dc("parse");He.exports.compose=Dc("compose");He.exports.addConstructor=Dc("addConstructor")});var TS=b((L9,RS)=>{"use strict";var xk=jS();RS.exports=xk});var kS=b((F9,NS)=>{"use strict";var{ParserError:Ak}=br(),Ck=TS();NS.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 Ck.safeLoad(t)}catch(r){throw new Ak(r.message,e.url)}else return t}}});var qS=b((V9,MS)=>{"use strict";var{ParserError:Ik}=br(),jk=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;MS.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&jk.test(e.url)},parse(e){if(typeof e.data=="string")return e.data;if(Buffer.isBuffer(e.data))return e.data.toString(this.encoding);throw new Ik("data is not text",e.url)}}});var LS=b((B9,DS)=>{"use strict";var Rk=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;DS.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&Rk.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var BS=b((H9,VS)=>{"use strict";var Tk=require("fs"),{ono:Qd}=dr(),FS=Lt(),{ResolverError:Xd}=br();VS.exports={order:100,canRead(e){return FS.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=FS.toFileSystemPath(e.url)}catch(i){r(new Xd(Qd.uri(i,`Malformed URI: ${e.url}`),e.url))}try{Tk.readFile(n,(i,o)=>{i?r(new Xd(Qd(i,`Error opening file "${n}"`),n)):t(o)})}catch(i){r(new Xd(Qd(i,`Error opening file "${n}"`),n))}})}}});var GS=b((U9,zS)=>{"use strict";var Nk=require("http"),kk=require("https"),{ono:Lc}=dr(),Fo=Lt(),{ResolverError:HS}=br();zS.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Fo.isHttp(e.url)},read(e){let t=Fo.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Fo.parse(location.href).protocol),US(t,this)}};function US(e,t,r){return new Promise((n,i)=>{e=Fo.parse(e),r=r||[],r.push(e.href),Mk(e,t).then(o=>{if(o.statusCode>=400)throw Lc({status:o.statusCode},`HTTP ERROR ${o.statusCode}`);if(o.statusCode>=300)if(r.length>t.redirects)i(new HS(Lc({status:o.statusCode},`Error downloading ${r[0]}.
|
|
45
45
|
Too many redirects:
|
|
46
46
|
${r.join(`
|
|
47
|
-
`)}`)));else if(o.headers.location){let a=
|
|
48
|
-
Cannot set "${t}" of a non-object.`);return r}s(
|
|
49
|
-
"${n}" not found.`);i.set(r,t)};_r.prototype._add=function(e){let t=wn.stripHash(e),r=new
|
|
50
|
-
"${i}" not found.`);return o.resolve(n,r,e,t)};_r.prototype._get$Ref=function(e){e=wn.resolve(this._root$Ref.path,e);let t=wn.stripHash(e);return this._$refs[t]};function
|
|
51
|
-
Parsed value is empty`)):n(p)}s(u,"onParsed");function l(p){!p&&t.continueOnError?i(new s3(e.url)):!p||!("error"in p)?i(sh.syntax(`Unable to parse ${e.url}`)):p.error instanceof d1?i(p.error):i(new d1(p.error.message,e.url))}s(l,"onError")})}s(l3,"parseFile");function f3(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}s(f3,"isEmpty")});var v1=b((aV,y1)=>{"use strict";var m1=Os(),p3=Fo(),d3=oh(),Bo=Lt(),{isHandledError:h3}=br();y1.exports=m3;function m3(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=ah(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}s(m3,"resolveExternal");function ah(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(m1.isExternal$Ref(e))i.push(g1(e,t,r,n));else for(let o of Object.keys(e)){let a=p3.join(t,o),c=e[o];m1.isExternal$Ref(c)?i.push(g1(c,a,r,n)):i=i.concat(ah(c,a,r,n))}return i}s(ah,"crawl");async function g1(e,t,r,n){let i=Bo.resolve(t,e.$ref),o=Bo.stripHash(i);if(e=r._$refs[o],e)return Promise.resolve(e.value);try{let a=await d3(i,r,n),c=ah(a,o+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!h3(a))throw a;return r._$refs[o]&&(a.source=Bo.stripHash(t),a.path=Bo.safePointerToPath(Bo.getHash(t))),[]}}s(g1,"resolve$Ref")});var S1=b((uV,_1)=>{"use strict";var Vc=Os(),Ho=Fo(),ch=Lt();_1.exports=g3;function g3(e,t){let r=[];uh(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),y3(r)}s(g3,"bundle");function uh(e,t,r,n,i,o,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(Vc.isAllowed$Ref(u))b1(e,t,r,n,i,o,a,c);else{let l=Object.keys(u).sort((p,f)=>p==="definitions"?-1:f==="definitions"?1:p.length-f.length);for(let p of l){let f=Ho.join(r,p),d=Ho.join(n,p),h=u[p];Vc.isAllowed$Ref(h)?b1(u,p,r,d,i,o,a,c):uh(u,p,f,d,i,o,a,c)}}}s(uh,"crawl");function b1(e,t,r,n,i,o,a,c){let u=t===null?e:e[t],l=ch.resolve(r,u.$ref),p=a._resolve(l,n,c);if(p===null)return;let f=Ho.parse(n).length,d=ch.stripHash(p.path),h=ch.getHash(p.path),y=d!==a._root$Ref.path,v=Vc.isExtended$Ref(u);i+=p.indirections;let g=v3(o,e,t);if(g)if(f<g.depth||i<g.indirections)b3(o,g);else return;o.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:v,external:y,indirections:i}),g||uh(p.value,null,p.path,n,i+1,o,a,c)}s(b1,"inventory$Ref");function y3(e){e.sort((i,o)=>{if(i.file!==o.file)return i.file<o.file?-1:1;if(i.hash!==o.hash)return i.hash<o.hash?-1:1;if(i.circular!==o.circular)return i.circular?-1:1;if(i.extended!==o.extended)return i.extended?1:-1;if(i.indirections!==o.indirections)return i.indirections-o.indirections;if(i.depth!==o.depth)return i.depth-o.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=o.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-o.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=Ho.join(n,Ho.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Vc.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}s(y3,"remap");function v3(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}s(v3,"findInInventory");function b3(e,t){let r=e.indexOf(t);e.splice(r,1)}s(b3,"removeFromInventory")});var ph=b((fV,$1)=>{"use strict";var lh=Os(),O1=Fo(),{ono:_3}=dr(),S3=Lt();$1.exports=O3;function O3(e,t){let r=fh(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}s(O3,"dereference");function fh(e,t,r,n,i,o){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),lh.isAllowed$Ref(e,o))a=P1(e,t,r,n,i,o),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=O1.join(t,u),p=O1.join(r,u),f=e[u],d=!1;lh.isAllowed$Ref(f,o)?(a=P1(f,l,p,n,i,o),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(f)===-1?(a=fh(f,l,p,n,i,o),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=w1(l,i,o),c.circular=c.circular||d}n.pop()}return c}s(fh,"crawl");function P1(e,t,r,n,i,o){let a=S3.resolve(t,e.$ref),c=i._resolve(a,t,o);if(c===null)return{circular:!1,value:null};let u=c.circular,l=u||n.indexOf(c.value)!==-1;l&&w1(t,i,o);let p=lh.dereference(e,c.value);if(!l){let f=fh(p,c.path,r,n,i,o);l=f.circular,p=f.value}return l&&!u&&o.dereference.circular==="ignore"&&(p=e),u&&(p.$ref=r),{circular:l,value:p}}s(P1,"dereference$Ref");function w1(e,t,r){if(t.circular=!0,!r.dereference.circular)throw _3.reference(`Circular $ref pointer found at ${e}`);return!0}s(w1,"foundCircularReference")});var C1=b((dV,Nr)=>{"use strict";var A1=c1(),P3=oh(),Bc=eh(),w3=v1(),$3=S1(),E3=ph(),Ps=Lt(),{JSONParserError:x3,InvalidPointerError:A3,MissingPointerError:C3,ResolverError:I3,ParserError:j3,UnmatchedParserError:R3,UnmatchedResolverError:T3,isHandledError:k3,JSONParserErrorGroup:E1}=br(),Sr=rh(),{ono:x1}=dr();Nr.exports=kr;Nr.exports.default=kr;Nr.exports.JSONParserError=x3;Nr.exports.InvalidPointerError=A3;Nr.exports.MissingPointerError=C3;Nr.exports.ResolverError=I3;Nr.exports.ParserError=j3;Nr.exports.UnmatchedParserError=R3;Nr.exports.UnmatchedResolverError=T3;function kr(){this.schema=null,this.$refs=new A1}s(kr,"$RefParser");kr.parse=s(function(t,r,n,i){let o=this,a=new o;return a.parse.apply(a,arguments)},"parse");kr.prototype.parse=s(async function(t,r,n,i){let o=Bc(arguments),a;if(!o.path&&!o.schema){let l=x1(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return Sr(o.callback,Promise.reject(l))}this.schema=null,this.$refs=new A1;let c="http";if(Ps.isFileSystemPath(o.path)&&(o.path=Ps.fromFileSystemPath(o.path),c="file"),o.path=Ps.resolve(Ps.cwd(),o.path),o.schema&&typeof o.schema=="object"){let l=this.$refs._add(o.path);l.value=o.schema,l.pathType=c,a=Promise.resolve(o.schema)}else a=P3(o.path,this.$refs,o.options);let u=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return u.schema=l,Sr(o.callback,Promise.resolve(u.schema));if(o.options.continueOnError)return u.schema=null,Sr(o.callback,Promise.resolve(u.schema));throw x1.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!o.options.continueOnError||!k3(l)?Sr(o.callback,Promise.reject(l)):(this.$refs._$refs[Ps.stripHash(o.path)]&&this.$refs._$refs[Ps.stripHash(o.path)].addError(l),Sr(o.callback,Promise.resolve(null)))}},"parse");kr.resolve=s(function(t,r,n,i){let o=this,a=new o;return a.resolve.apply(a,arguments)},"resolve");kr.prototype.resolve=s(async function(t,r,n,i){let o=this,a=Bc(arguments);try{return await this.parse(a.path,a.schema,a.options),await w3(o,a.options),dh(o),Sr(a.callback,Promise.resolve(o.$refs))}catch(c){return Sr(a.callback,Promise.reject(c))}},"resolve");kr.bundle=s(function(t,r,n,i){let o=this,a=new o;return a.bundle.apply(a,arguments)},"bundle");kr.prototype.bundle=s(async function(t,r,n,i){let o=this,a=Bc(arguments);try{return await this.resolve(a.path,a.schema,a.options),$3(o,a.options),dh(o),Sr(a.callback,Promise.resolve(o.schema))}catch(c){return Sr(a.callback,Promise.reject(c))}},"bundle");kr.dereference=s(function(t,r,n,i){let o=this,a=new o;return a.dereference.apply(a,arguments)},"dereference");kr.prototype.dereference=s(async function(t,r,n,i){let o=this,a=Bc(arguments);try{return await this.resolve(a.path,a.schema,a.options),E3(o,a.options),dh(o),Sr(a.callback,Promise.resolve(o.schema))}catch(c){return Sr(a.callback,Promise.reject(c))}},"dereference");function dh(e){if(E1.getParserErrors(e).length>0)throw new E1(e)}s(dh,"finalize")});var k1=b((mV,T1)=>{"use strict";var N3=Td(),M3=Md(),I1=eh(),j1=Fa(),R1=KS(),Hc=rh(),{ono:Or}=dr(),mi=C1(),q3=ph();T1.exports=Mr;function Mr(){mi.apply(this,arguments)}s(Mr,"SwaggerParser");j1.inherits(Mr,mi);Mr.parse=mi.parse;Mr.resolve=mi.resolve;Mr.bundle=mi.bundle;Mr.dereference=mi.dereference;Object.defineProperty(Mr.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});Mr.prototype.parse=async function(e,t,r,n){let i=I1(arguments);i.options=new R1(i.options);try{let o=await mi.prototype.parse.call(this,i.path,i.schema,i.options);if(o.swagger){if(o.swagger===void 0||o.info===void 0||o.paths===void 0)throw Or.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw Or.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw Or.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw Or.syntax(`Unrecognized Swagger version: ${o.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(o.openapi===void 0||o.info===void 0)throw Or.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(o.paths===void 0)if(o.openapi==="3.1.0"){if(o.webhooks===void 0)throw Or.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw Or.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw Or.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw Or.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(o.openapi)===-1)throw Or.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}j1.fixOasRelativeServers(o,i.path)}return Hc(i.callback,Promise.resolve(o))}catch(o){return Hc(i.callback,Promise.reject(o))}};Mr.validate=function(e,t,r,n){let i=this,o=new i;return o.validate.apply(o,arguments)};Mr.prototype.validate=async function(e,t,r,n){let i=this,o=I1(arguments);o.options=new R1(o.options);let a=o.options.dereference.circular;o.options.validate.schema&&(o.options.dereference.circular="ignore");try{if(await this.dereference(o.path,o.schema,o.options),o.options.dereference.circular=a,o.options.validate.schema&&(N3(i.api),i.$refs.circular)){if(a===!0)q3(i,o.options);else if(a===!1)throw Or.reference("The API contains circular references")}return o.options.validate.spec&&M3(i.api),Hc(o.callback,Promise.resolve(i.schema))}catch(c){return Hc(o.callback,Promise.reject(c))}}});var wt=b(Ft=>{"use strict";Ft.__esModule=!0;Ft.extend=k2;Ft.indexOf=hM;Ft.escapeExpression=mM;Ft.isEmpty=gM;Ft.createFrame=yM;Ft.blockParams=vM;Ft.appendContextPath=bM;var lM={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},fM=/[&<>"'`=]/g,pM=/[&<>"'`=]/;function dM(e){return lM[e]}s(dM,"escapeChar");function k2(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}s(k2,"extend");var Lh=Object.prototype.toString;Ft.toString=Lh;var Dh=s(function(t){return typeof t=="function"},"isFunction");Dh(/x/)&&(Ft.isFunction=Dh=s(function(e){return typeof e=="function"&&Lh.call(e)==="[object Function]"},"isFunction"));Ft.isFunction=Dh;var N2=Array.isArray||function(e){return e&&typeof e=="object"?Lh.call(e)==="[object Array]":!1};Ft.isArray=N2;function hM(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}s(hM,"indexOf");function mM(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return pM.test(e)?e.replace(fM,dM):e}s(mM,"escapeExpression");function gM(e){return!e&&e!==0?!0:!!(N2(e)&&e.length===0)}s(gM,"isEmpty");function yM(e){var t=k2({},e);return t._parent=e,t}s(yM,"createFrame");function vM(e,t){return e.path=t,e}s(vM,"blockParams");function bM(e,t){return(e?e+".":"")+t}s(bM,"appendContextPath")});var nr=b((Yc,M2)=>{"use strict";Yc.__esModule=!0;var Fh=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Vh(e,t){var r=t&&t.loc,n=void 0,i=void 0,o=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,o=r.start.column,a=r.end.column,e+=" - "+n+":"+o);for(var c=Error.prototype.constructor.call(this,e),u=0;u<Fh.length;u++)this[Fh[u]]=c[Fh[u]];Error.captureStackTrace&&Error.captureStackTrace(this,Vh);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:o,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=o,this.endColumn=a))}catch{}}s(Vh,"Exception");Vh.prototype=new Error;Yc.default=Vh;M2.exports=Yc.default});var D2=b((Jc,q2)=>{"use strict";Jc.__esModule=!0;var Bh=wt();Jc.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(Bh.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var o=Bh.createFrame(r.data);o.contextPath=Bh.appendContextPath(r.data.contextPath,r.name),r={data:o}}return i(t,r)})};q2.exports=Jc.default});var F2=b((Qc,L2)=>{"use strict";Qc.__esModule=!0;function _M(e){return e&&e.__esModule?e:{default:e}}s(_M,"_interopRequireDefault");var Xo=wt(),SM=nr(),OM=_M(SM);Qc.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new OM.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,o=0,a="",c=void 0,u=void 0;r.data&&r.ids&&(u=Xo.appendContextPath(r.data.contextPath,r.ids[0])+"."),Xo.isFunction(t)&&(t=t.call(this)),r.data&&(c=Xo.createFrame(r.data));function l(y,v,g){c&&(c.key=y,c.index=v,c.first=v===0,c.last=!!g,u&&(c.contextPath=u+y)),a=a+n(t[y],{data:c,blockParams:Xo.blockParams([t[y],y],[u+y,null])})}if(s(l,"execIteration"),t&&typeof t=="object")if(Xo.isArray(t))for(var p=t.length;o<p;o++)o in t&&l(o,o,o===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;o<p;o++)l(o,o,o===t.length-1)}else(function(){var y=void 0;Object.keys(t).forEach(function(v){y!==void 0&&l(y,o-1),y=v,o++}),y!==void 0&&l(y,o-1,!0)})();return o===0&&(a=i(this)),a})};L2.exports=Qc.default});var B2=b((Xc,V2)=>{"use strict";Xc.__esModule=!0;function PM(e){return e&&e.__esModule?e:{default:e}}s(PM,"_interopRequireDefault");var wM=nr(),$M=PM(wM);Xc.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new $M.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};V2.exports=Xc.default});var G2=b((eu,z2)=>{"use strict";eu.__esModule=!0;function EM(e){return e&&e.__esModule?e:{default:e}}s(EM,"_interopRequireDefault");var H2=wt(),xM=nr(),U2=EM(xM);eu.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new U2.default("#if requires exactly one argument");return H2.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||H2.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new U2.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};z2.exports=eu.default});var K2=b((tu,W2)=>{"use strict";tu.__esModule=!0;tu.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)})};W2.exports=tu.default});var Y2=b((ru,Z2)=>{"use strict";ru.__esModule=!0;ru.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};Z2.exports=ru.default});var Q2=b((nu,J2)=>{"use strict";nu.__esModule=!0;function AM(e){return e&&e.__esModule?e:{default:e}}s(AM,"_interopRequireDefault");var ea=wt(),CM=nr(),IM=AM(CM);nu.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new IM.default("#with requires exactly one argument");ea.isFunction(t)&&(t=t.call(this));var n=r.fn;if(ea.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=ea.createFrame(r.data),i.contextPath=ea.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:ea.blockParams([t],[i&&i.contextPath])})})};J2.exports=nu.default});var Hh=b(iu=>{"use strict";iu.__esModule=!0;iu.registerDefaultHelpers=zM;iu.moveHelperToHooks=GM;function Si(e){return e&&e.__esModule?e:{default:e}}s(Si,"_interopRequireDefault");var jM=D2(),RM=Si(jM),TM=F2(),kM=Si(TM),NM=B2(),MM=Si(NM),qM=G2(),DM=Si(qM),LM=K2(),FM=Si(LM),VM=Y2(),BM=Si(VM),HM=Q2(),UM=Si(HM);function zM(e){RM.default(e),kM.default(e),MM.default(e),DM.default(e),FM.default(e),BM.default(e),UM.default(e)}s(zM,"registerDefaultHelpers");function GM(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}s(GM,"moveHelperToHooks")});var eO=b((su,X2)=>{"use strict";su.__esModule=!0;var WM=wt();su.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var o=t;return r.partials||(r.partials={},o=s(function(a,c){var u=n.partials;n.partials=WM.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,o})};X2.exports=su.default});var tO=b(Uh=>{"use strict";Uh.__esModule=!0;Uh.registerDefaultDecorators=JM;function KM(e){return e&&e.__esModule?e:{default:e}}s(KM,"_interopRequireDefault");var ZM=eO(),YM=KM(ZM);function JM(e){YM.default(e)}s(JM,"registerDefaultDecorators")});var zh=b((ou,rO)=>{"use strict";ou.__esModule=!0;var QM=wt(),Is={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:s(function(t){if(typeof t=="string"){var r=QM.indexOf(Is.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:s(function(t){if(t=Is.lookupLevel(t),typeof console<"u"&&Is.lookupLevel(Is.level)<=t){var r=Is.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];console[r].apply(console,i)}},"log")};ou.default=Is;rO.exports=ou.default});var nO=b(Gh=>{"use strict";Gh.__esModule=!0;Gh.createNewLookupObject=eq;var XM=wt();function eq(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return XM.extend.apply(void 0,[Object.create(null)].concat(t))}s(eq,"createNewLookupObject")});var Wh=b(ta=>{"use strict";ta.__esModule=!0;ta.createProtoAccessControl=iq;ta.resultIsAllowed=sq;ta.resetLoggedProperties=aq;function tq(e){return e&&e.__esModule?e:{default:e}}s(tq,"_interopRequireDefault");var iO=nO(),rq=zh(),nq=tq(rq),au=Object.create(null);function iq(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:iO.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:iO.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}s(iq,"createProtoAccessControl");function sq(e,t,r){return sO(typeof e=="function"?t.methods:t.properties,r)}s(sq,"resultIsAllowed");function sO(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(oq(t),!1)}s(sO,"checkWhiteList");function oq(e){au[e]!==!0&&(au[e]=!0,nq.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(o.headers.location){let a=Fo.resolve(e,o.headers.location);US(a,t,r).then(n,i)}else throw Lc({status:o.statusCode},`HTTP ${o.statusCode} redirect with no location header`);else n(o.body||Buffer.alloc(0))}).catch(o=>{i(new HS(Lc(o,`Error downloading ${e.href}`),e.href))})})}s(US,"download");function Mk(e,t){return new Promise((r,n)=>{let o=(e.protocol==="https:"?kk:Nk).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof o.setTimeout=="function"&&o.setTimeout(t.timeout),o.on("timeout",()=>{o.abort()}),o.on("error",n),o.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",c=>{a.body=Buffer.concat([a.body,Buffer.from(c)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}s(Mk,"get")});var rh=b((G9,KS)=>{"use strict";var qk=Hb(),Dk=kS(),Lk=qS(),Fk=LS(),Vk=BS(),Bk=GS();KS.exports=th;function th(e){eh(this,th.defaults),eh(this,e)}s(th,"$RefParserOptions");th.defaults={parse:{json:qk,yaml:Dk,text:Lk,binary:Fk},resolve:{file:Vk,http:Bk,external:!0},continueOnError:!1,dereference:{circular:!0}};function eh(e,t){if(WS(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i],a=e[i];WS(o)?e[i]=eh(a||{},o):o!==void 0&&(e[i]=o)}}return e}s(eh,"merge");function WS(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}s(WS,"isMergeable")});var nh=b((K9,YS)=>{"use strict";var ZS=rh();YS.exports=Hk;function Hk(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 ZS||(n=new ZS(n)),{path:t,schema:r,options:n,callback:i}}s(Hk,"normalizeArgs")});var QS=b((Y9,JS)=>{"use strict";var ih=rh(),Uk=Md(),zk=Ld(),Gk=require("util");JS.exports=Fc;function Fc(e){ih.call(this,Fc.defaults),ih.apply(this,arguments)}s(Fc,"ParserOptions");Fc.defaults={validate:{schema:Uk,spec:zk}};Gk.inherits(Fc,ih)});var e1=b((Q9,XS)=>{"use strict";function Wk(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:s(function(t){setTimeout(t,0)},"next")}s(Wk,"makeNext");XS.exports=Wk()});var sh=b((eV,r1)=>{"use strict";var t1=e1();r1.exports=s(function(t,r){if(t){r.then(function(n){t1(function(){t(null,n)})},function(n){t1(function(){t(n)})});return}else return r},"maybe")});var Vo=b((rV,s1)=>{"use strict";s1.exports=Pn;var oh=Os(),ah=Lt(),{JSONParserError:Kk,InvalidPointerError:Zk,MissingPointerError:Yk,isHandledError:Jk}=br(),Qk=/\//g,Xk=/~/g,e3=/~1/g,t3=/~0/g;function Pn(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}s(Pn,"Pointer");Pn.prototype.resolve=function(e,t,r){let n=Pn.parse(this.path,this.originalPath);this.value=i1(e);for(let i=0;i<n.length;i++){if(Vc(this,t)&&(this.path=Pn.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let o=n[i];if(this.value[o]===void 0||this.value[o]===null)throw this.value=null,new Yk(o,this.originalPath);this.value=this.value[o]}return(!this.value||this.value.$ref&&ah.resolve(this.path,this.value.$ref)!==r)&&Vc(this,t),this};Pn.prototype.set=function(e,t,r){let n=Pn.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=i1(e);for(let o=0;o<n.length-1;o++)Vc(this,r),i=n[o],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=n1(this,i,{});return Vc(this,r),i=n[n.length-1],n1(this,i,t),e};Pn.parse=function(e,t){let r=ah.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(e3,"/").replace(t3,"~"));if(r[0]!=="")throw new Zk(r,t===void 0?e:t);return r.slice(1)};Pn.join=function(e,t){e.indexOf("#")===-1&&(e+="#"),t=Array.isArray(t)?t:[t];for(let r=0;r<t.length;r++){let n=t[r];e+="/"+encodeURIComponent(n.replace(Xk,"~0").replace(Qk,"~1"))}return e};function Vc(e,t){if(oh.isAllowed$Ref(e.value,t)){let r=ah.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,oh.isExtended$Ref(e.value)?(e.value=oh.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}s(Vc,"resolveIf$Ref");function n1(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 Kk(`Error assigning $ref pointer "${e.path}".
|
|
48
|
+
Cannot set "${t}" of a non-object.`);return r}s(n1,"setValue");function i1(e){if(Jk(e))throw e;return e}s(i1,"unwrapOrThrow")});var Os=b((iV,c1)=>{"use strict";c1.exports=St;var a1=Vo(),{InvalidPointerError:r3,isHandledError:n3,normalizeError:o1}=br(),{safePointerToPath:i3,stripHash:s3,getHash:o3}=Lt();function St(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}s(St,"$Ref");St.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(o1)):this.errors.push(o1(e))};St.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};St.prototype.get=function(e,t){return this.resolve(e,t).value};St.prototype.resolve=function(e,t,r,n){let i=new a1(this,e,r);try{return i.resolve(this.value,t,n)}catch(o){if(!t||!t.continueOnError||!n3(o))throw o;return o.path===null&&(o.path=i3(o3(n))),o instanceof r3&&(o.source=s3(n)),this.addError(o),null}};St.prototype.set=function(e,t){let r=new a1(this,e);this.value=r.set(this.value,t)};St.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};St.isExternal$Ref=function(e){return St.is$Ref(e)&&e.$ref[0]!=="#"};St.isAllowed$Ref=function(e,t){if(St.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};St.isExtended$Ref=function(e){return St.is$Ref(e)&&Object.keys(e).length>1};St.dereference=function(e,t){if(t&&typeof t=="object"&&St.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 p1=b((oV,f1)=>{"use strict";var{ono:u1}=dr(),a3=Os(),wn=Lt();f1.exports=_r;function _r(){this.circular=!1,this._$refs={},this._root$Ref=null}s(_r,"$Refs");_r.prototype.paths=function(e){return l1(this._$refs,arguments).map(r=>r.decoded)};_r.prototype.values=function(e){let t=this._$refs;return l1(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};_r.prototype.toJSON=_r.prototype.values;_r.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};_r.prototype.get=function(e,t){return this._resolve(e,"",t).value};_r.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 u1(`Error resolving $ref pointer "${e}".
|
|
49
|
+
"${n}" not found.`);i.set(r,t)};_r.prototype._add=function(e){let t=wn.stripHash(e),r=new a3;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};_r.prototype._resolve=function(e,t,r){let n=wn.resolve(this._root$Ref.path,e),i=wn.stripHash(n),o=this._$refs[i];if(!o)throw u1(`Error resolving $ref pointer "${e}".
|
|
50
|
+
"${i}" not found.`);return o.resolve(n,r,e,t)};_r.prototype._get$Ref=function(e){e=wn.resolve(this._root$Ref.path,e);let t=wn.stripHash(e);return this._$refs[t]};function l1(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}))}s(l1,"getPaths")});var h1=b(Bo=>{"use strict";Bo.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Bo.filter=function(e,t,r){return e.filter(n=>!!d1(n,t,r))};Bo.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)};Bo.run=function(e,t,r,n){let i,o,a=0;return new Promise((c,u)=>{l();function l(){if(i=e[a++],!i)return u(o);try{let h=d1(i,t,r,p,n);if(h&&typeof h.then=="function")h.then(f,d);else if(h!==void 0)f(h);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(h){d(h)}}s(l,"runNextPlugin");function p(h,y){h?d(h):f(y)}s(p,"callback");function f(h){c({plugin:i,result:h})}s(f,"onSuccess");function d(h){o={plugin:i,error:h},l()}s(d,"onError")})};function d1(e,t,r,n,i){let o=e[t];if(typeof o=="function")return o.apply(e,[r,n,i]);if(!n){if(o instanceof RegExp)return o.test(r.url);if(typeof o=="string")return o===r.extension;if(Array.isArray(o))return o.indexOf(r.extension)!==-1}return o}s(d1,"getResult")});var uh=b((lV,v1)=>{"use strict";var{ono:ch}=dr(),m1=Lt(),$n=h1(),{ResolverError:g1,ParserError:y1,UnmatchedParserError:c3,UnmatchedResolverError:u3,isHandledError:l3}=br();v1.exports=f3;async function f3(e,t,r){e=m1.stripHash(e);let n=t._add(e),i={url:e,extension:m1.getExtension(e)};try{let o=await p3(i,r,t);n.pathType=o.plugin.name,i.data=o.result;let a=await d3(i,r,t);return n.value=a.result,a.result}catch(o){throw l3(o)&&(n.value=o),o}}s(f3,"parse");function p3(e,t,r){return new Promise((n,i)=>{let o=$n.all(t.resolve);o=$n.filter(o,"canRead",e),$n.sort(o),$n.run(o,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new u3(e.url)):!c||!("error"in c)?i(ch.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof g1?i(c.error):i(new g1(c,e.url))}s(a,"onError")})}s(p3,"readFile");function d3(e,t,r){return new Promise((n,i)=>{let o=$n.all(t.parse),a=$n.filter(o,"canParse",e),c=a.length>0?a:o;$n.sort(c),$n.run(c,"parse",e,r).then(u,l);function u(p){!p.plugin.allowEmpty&&h3(p.result)?i(ch.syntax(`Error parsing "${e.url}" as ${p.plugin.name}.
|
|
51
|
+
Parsed value is empty`)):n(p)}s(u,"onParsed");function l(p){!p&&t.continueOnError?i(new c3(e.url)):!p||!("error"in p)?i(ch.syntax(`Unable to parse ${e.url}`)):p.error instanceof y1?i(p.error):i(new y1(p.error.message,e.url))}s(l,"onError")})}s(d3,"parseFile");function h3(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}s(h3,"isEmpty")});var O1=b((pV,S1)=>{"use strict";var b1=Os(),m3=Vo(),g3=uh(),Ho=Lt(),{isHandledError:y3}=br();S1.exports=v3;function v3(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=lh(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}s(v3,"resolveExternal");function lh(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(b1.isExternal$Ref(e))i.push(_1(e,t,r,n));else for(let o of Object.keys(e)){let a=m3.join(t,o),c=e[o];b1.isExternal$Ref(c)?i.push(_1(c,a,r,n)):i=i.concat(lh(c,a,r,n))}return i}s(lh,"crawl");async function _1(e,t,r,n){let i=Ho.resolve(t,e.$ref),o=Ho.stripHash(i);if(e=r._$refs[o],e)return Promise.resolve(e.value);try{let a=await g3(i,r,n),c=lh(a,o+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!y3(a))throw a;return r._$refs[o]&&(a.source=Ho.stripHash(t),a.path=Ho.safePointerToPath(Ho.getHash(t))),[]}}s(_1,"resolve$Ref")});var $1=b((hV,w1)=>{"use strict";var Bc=Os(),Uo=Vo(),fh=Lt();w1.exports=b3;function b3(e,t){let r=[];ph(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),_3(r)}s(b3,"bundle");function ph(e,t,r,n,i,o,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(Bc.isAllowed$Ref(u))P1(e,t,r,n,i,o,a,c);else{let l=Object.keys(u).sort((p,f)=>p==="definitions"?-1:f==="definitions"?1:p.length-f.length);for(let p of l){let f=Uo.join(r,p),d=Uo.join(n,p),h=u[p];Bc.isAllowed$Ref(h)?P1(u,p,r,d,i,o,a,c):ph(u,p,f,d,i,o,a,c)}}}s(ph,"crawl");function P1(e,t,r,n,i,o,a,c){let u=t===null?e:e[t],l=fh.resolve(r,u.$ref),p=a._resolve(l,n,c);if(p===null)return;let f=Uo.parse(n).length,d=fh.stripHash(p.path),h=fh.getHash(p.path),y=d!==a._root$Ref.path,v=Bc.isExtended$Ref(u);i+=p.indirections;let g=S3(o,e,t);if(g)if(f<g.depth||i<g.indirections)O3(o,g);else return;o.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:v,external:y,indirections:i}),g||ph(p.value,null,p.path,n,i+1,o,a,c)}s(P1,"inventory$Ref");function _3(e){e.sort((i,o)=>{if(i.file!==o.file)return i.file<o.file?-1:1;if(i.hash!==o.hash)return i.hash<o.hash?-1:1;if(i.circular!==o.circular)return i.circular?-1:1;if(i.extended!==o.extended)return i.extended?1:-1;if(i.indirections!==o.indirections)return i.indirections-o.indirections;if(i.depth!==o.depth)return i.depth-o.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=o.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-o.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=Uo.join(n,Uo.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Bc.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}s(_3,"remap");function S3(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}s(S3,"findInInventory");function O3(e,t){let r=e.indexOf(t);e.splice(r,1)}s(O3,"removeFromInventory")});var mh=b((gV,C1)=>{"use strict";var dh=Os(),E1=Vo(),{ono:P3}=dr(),w3=Lt();C1.exports=$3;function $3(e,t){let r=hh(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}s($3,"dereference");function hh(e,t,r,n,i,o){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),dh.isAllowed$Ref(e,o))a=x1(e,t,r,n,i,o),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=E1.join(t,u),p=E1.join(r,u),f=e[u],d=!1;dh.isAllowed$Ref(f,o)?(a=x1(f,l,p,n,i,o),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(f)===-1?(a=hh(f,l,p,n,i,o),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=A1(l,i,o),c.circular=c.circular||d}n.pop()}return c}s(hh,"crawl");function x1(e,t,r,n,i,o){let a=w3.resolve(t,e.$ref),c=i._resolve(a,t,o);if(c===null)return{circular:!1,value:null};let u=c.circular,l=u||n.indexOf(c.value)!==-1;l&&A1(t,i,o);let p=dh.dereference(e,c.value);if(!l){let f=hh(p,c.path,r,n,i,o);l=f.circular,p=f.value}return l&&!u&&o.dereference.circular==="ignore"&&(p=e),u&&(p.$ref=r),{circular:l,value:p}}s(x1,"dereference$Ref");function A1(e,t,r){if(t.circular=!0,!r.dereference.circular)throw P3.reference(`Circular $ref pointer found at ${e}`);return!0}s(A1,"foundCircularReference")});var T1=b((vV,Mr)=>{"use strict";var R1=p1(),E3=uh(),Hc=nh(),x3=O1(),A3=$1(),C3=mh(),Ps=Lt(),{JSONParserError:I3,InvalidPointerError:j3,MissingPointerError:R3,ResolverError:T3,ParserError:N3,UnmatchedParserError:k3,UnmatchedResolverError:M3,isHandledError:q3,JSONParserErrorGroup:I1}=br(),Sr=sh(),{ono:j1}=dr();Mr.exports=kr;Mr.exports.default=kr;Mr.exports.JSONParserError=I3;Mr.exports.InvalidPointerError=j3;Mr.exports.MissingPointerError=R3;Mr.exports.ResolverError=T3;Mr.exports.ParserError=N3;Mr.exports.UnmatchedParserError=k3;Mr.exports.UnmatchedResolverError=M3;function kr(){this.schema=null,this.$refs=new R1}s(kr,"$RefParser");kr.parse=s(function(t,r,n,i){let o=this,a=new o;return a.parse.apply(a,arguments)},"parse");kr.prototype.parse=s(async function(t,r,n,i){let o=Hc(arguments),a;if(!o.path&&!o.schema){let l=j1(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return Sr(o.callback,Promise.reject(l))}this.schema=null,this.$refs=new R1;let c="http";if(Ps.isFileSystemPath(o.path)&&(o.path=Ps.fromFileSystemPath(o.path),c="file"),o.path=Ps.resolve(Ps.cwd(),o.path),o.schema&&typeof o.schema=="object"){let l=this.$refs._add(o.path);l.value=o.schema,l.pathType=c,a=Promise.resolve(o.schema)}else a=E3(o.path,this.$refs,o.options);let u=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return u.schema=l,Sr(o.callback,Promise.resolve(u.schema));if(o.options.continueOnError)return u.schema=null,Sr(o.callback,Promise.resolve(u.schema));throw j1.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!o.options.continueOnError||!q3(l)?Sr(o.callback,Promise.reject(l)):(this.$refs._$refs[Ps.stripHash(o.path)]&&this.$refs._$refs[Ps.stripHash(o.path)].addError(l),Sr(o.callback,Promise.resolve(null)))}},"parse");kr.resolve=s(function(t,r,n,i){let o=this,a=new o;return a.resolve.apply(a,arguments)},"resolve");kr.prototype.resolve=s(async function(t,r,n,i){let o=this,a=Hc(arguments);try{return await this.parse(a.path,a.schema,a.options),await x3(o,a.options),gh(o),Sr(a.callback,Promise.resolve(o.$refs))}catch(c){return Sr(a.callback,Promise.reject(c))}},"resolve");kr.bundle=s(function(t,r,n,i){let o=this,a=new o;return a.bundle.apply(a,arguments)},"bundle");kr.prototype.bundle=s(async function(t,r,n,i){let o=this,a=Hc(arguments);try{return await this.resolve(a.path,a.schema,a.options),A3(o,a.options),gh(o),Sr(a.callback,Promise.resolve(o.schema))}catch(c){return Sr(a.callback,Promise.reject(c))}},"bundle");kr.dereference=s(function(t,r,n,i){let o=this,a=new o;return a.dereference.apply(a,arguments)},"dereference");kr.prototype.dereference=s(async function(t,r,n,i){let o=this,a=Hc(arguments);try{return await this.resolve(a.path,a.schema,a.options),C3(o,a.options),gh(o),Sr(a.callback,Promise.resolve(o.schema))}catch(c){return Sr(a.callback,Promise.reject(c))}},"dereference");function gh(e){if(I1.getParserErrors(e).length>0)throw new I1(e)}s(gh,"finalize")});var D1=b((_V,q1)=>{"use strict";var D3=Md(),L3=Ld(),N1=nh(),k1=Va(),M1=QS(),Uc=sh(),{ono:Or}=dr(),mi=T1(),F3=mh();q1.exports=qr;function qr(){mi.apply(this,arguments)}s(qr,"SwaggerParser");k1.inherits(qr,mi);qr.parse=mi.parse;qr.resolve=mi.resolve;qr.bundle=mi.bundle;qr.dereference=mi.dereference;Object.defineProperty(qr.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});qr.prototype.parse=async function(e,t,r,n){let i=N1(arguments);i.options=new M1(i.options);try{let o=await mi.prototype.parse.call(this,i.path,i.schema,i.options);if(o.swagger){if(o.swagger===void 0||o.info===void 0||o.paths===void 0)throw Or.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw Or.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw Or.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw Or.syntax(`Unrecognized Swagger version: ${o.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(o.openapi===void 0||o.info===void 0)throw Or.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(o.paths===void 0)if(o.openapi==="3.1.0"){if(o.webhooks===void 0)throw Or.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw Or.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw Or.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw Or.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(o.openapi)===-1)throw Or.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}k1.fixOasRelativeServers(o,i.path)}return Uc(i.callback,Promise.resolve(o))}catch(o){return Uc(i.callback,Promise.reject(o))}};qr.validate=function(e,t,r,n){let i=this,o=new i;return o.validate.apply(o,arguments)};qr.prototype.validate=async function(e,t,r,n){let i=this,o=N1(arguments);o.options=new M1(o.options);let a=o.options.dereference.circular;o.options.validate.schema&&(o.options.dereference.circular="ignore");try{if(await this.dereference(o.path,o.schema,o.options),o.options.dereference.circular=a,o.options.validate.schema&&(D3(i.api),i.$refs.circular)){if(a===!0)F3(i,o.options);else if(a===!1)throw Or.reference("The API contains circular references")}return o.options.validate.spec&&L3(i.api),Uc(o.callback,Promise.resolve(i.schema))}catch(c){return Uc(o.callback,Promise.reject(c))}}});var wt=b(Ft=>{"use strict";Ft.__esModule=!0;Ft.extend=qO;Ft.indexOf=yM;Ft.escapeExpression=vM;Ft.isEmpty=bM;Ft.createFrame=_M;Ft.blockParams=SM;Ft.appendContextPath=OM;var dM={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},hM=/[&<>"'`=]/g,mM=/[&<>"'`=]/;function gM(e){return dM[e]}s(gM,"escapeChar");function qO(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}s(qO,"extend");var Bh=Object.prototype.toString;Ft.toString=Bh;var Vh=s(function(t){return typeof t=="function"},"isFunction");Vh(/x/)&&(Ft.isFunction=Vh=s(function(e){return typeof e=="function"&&Bh.call(e)==="[object Function]"},"isFunction"));Ft.isFunction=Vh;var DO=Array.isArray||function(e){return e&&typeof e=="object"?Bh.call(e)==="[object Array]":!1};Ft.isArray=DO;function yM(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}s(yM,"indexOf");function vM(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return mM.test(e)?e.replace(hM,gM):e}s(vM,"escapeExpression");function bM(e){return!e&&e!==0?!0:!!(DO(e)&&e.length===0)}s(bM,"isEmpty");function _M(e){var t=qO({},e);return t._parent=e,t}s(_M,"createFrame");function SM(e,t){return e.path=t,e}s(SM,"blockParams");function OM(e,t){return(e?e+".":"")+t}s(OM,"appendContextPath")});var nr=b((Qc,LO)=>{"use strict";Qc.__esModule=!0;var Hh=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Uh(e,t){var r=t&&t.loc,n=void 0,i=void 0,o=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,o=r.start.column,a=r.end.column,e+=" - "+n+":"+o);for(var c=Error.prototype.constructor.call(this,e),u=0;u<Hh.length;u++)this[Hh[u]]=c[Hh[u]];Error.captureStackTrace&&Error.captureStackTrace(this,Uh);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:o,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=o,this.endColumn=a))}catch{}}s(Uh,"Exception");Uh.prototype=new Error;Qc.default=Uh;LO.exports=Qc.default});var VO=b((Xc,FO)=>{"use strict";Xc.__esModule=!0;var zh=wt();Xc.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(zh.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var o=zh.createFrame(r.data);o.contextPath=zh.appendContextPath(r.data.contextPath,r.name),r={data:o}}return i(t,r)})};FO.exports=Xc.default});var HO=b((eu,BO)=>{"use strict";eu.__esModule=!0;function PM(e){return e&&e.__esModule?e:{default:e}}s(PM,"_interopRequireDefault");var ea=wt(),wM=nr(),$M=PM(wM);eu.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new $M.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,o=0,a="",c=void 0,u=void 0;r.data&&r.ids&&(u=ea.appendContextPath(r.data.contextPath,r.ids[0])+"."),ea.isFunction(t)&&(t=t.call(this)),r.data&&(c=ea.createFrame(r.data));function l(y,v,g){c&&(c.key=y,c.index=v,c.first=v===0,c.last=!!g,u&&(c.contextPath=u+y)),a=a+n(t[y],{data:c,blockParams:ea.blockParams([t[y],y],[u+y,null])})}if(s(l,"execIteration"),t&&typeof t=="object")if(ea.isArray(t))for(var p=t.length;o<p;o++)o in t&&l(o,o,o===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;o<p;o++)l(o,o,o===t.length-1)}else(function(){var y=void 0;Object.keys(t).forEach(function(v){y!==void 0&&l(y,o-1),y=v,o++}),y!==void 0&&l(y,o-1,!0)})();return o===0&&(a=i(this)),a})};BO.exports=eu.default});var zO=b((tu,UO)=>{"use strict";tu.__esModule=!0;function EM(e){return e&&e.__esModule?e:{default:e}}s(EM,"_interopRequireDefault");var xM=nr(),AM=EM(xM);tu.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new AM.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};UO.exports=tu.default});var ZO=b((ru,KO)=>{"use strict";ru.__esModule=!0;function CM(e){return e&&e.__esModule?e:{default:e}}s(CM,"_interopRequireDefault");var GO=wt(),IM=nr(),WO=CM(IM);ru.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new WO.default("#if requires exactly one argument");return GO.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||GO.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new WO.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};KO.exports=ru.default});var JO=b((nu,YO)=>{"use strict";nu.__esModule=!0;nu.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)})};YO.exports=nu.default});var XO=b((iu,QO)=>{"use strict";iu.__esModule=!0;iu.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};QO.exports=iu.default});var t2=b((su,e2)=>{"use strict";su.__esModule=!0;function jM(e){return e&&e.__esModule?e:{default:e}}s(jM,"_interopRequireDefault");var ta=wt(),RM=nr(),TM=jM(RM);su.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new TM.default("#with requires exactly one argument");ta.isFunction(t)&&(t=t.call(this));var n=r.fn;if(ta.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=ta.createFrame(r.data),i.contextPath=ta.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:ta.blockParams([t],[i&&i.contextPath])})})};e2.exports=su.default});var Gh=b(ou=>{"use strict";ou.__esModule=!0;ou.registerDefaultHelpers=KM;ou.moveHelperToHooks=ZM;function Si(e){return e&&e.__esModule?e:{default:e}}s(Si,"_interopRequireDefault");var NM=VO(),kM=Si(NM),MM=HO(),qM=Si(MM),DM=zO(),LM=Si(DM),FM=ZO(),VM=Si(FM),BM=JO(),HM=Si(BM),UM=XO(),zM=Si(UM),GM=t2(),WM=Si(GM);function KM(e){kM.default(e),qM.default(e),LM.default(e),VM.default(e),HM.default(e),zM.default(e),WM.default(e)}s(KM,"registerDefaultHelpers");function ZM(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}s(ZM,"moveHelperToHooks")});var n2=b((au,r2)=>{"use strict";au.__esModule=!0;var YM=wt();au.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var o=t;return r.partials||(r.partials={},o=s(function(a,c){var u=n.partials;n.partials=YM.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,o})};r2.exports=au.default});var i2=b(Wh=>{"use strict";Wh.__esModule=!0;Wh.registerDefaultDecorators=eq;function JM(e){return e&&e.__esModule?e:{default:e}}s(JM,"_interopRequireDefault");var QM=n2(),XM=JM(QM);function eq(e){XM.default(e)}s(eq,"registerDefaultDecorators")});var Kh=b((cu,s2)=>{"use strict";cu.__esModule=!0;var tq=wt(),js={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:s(function(t){if(typeof t=="string"){var r=tq.indexOf(js.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:s(function(t){if(t=js.lookupLevel(t),typeof console<"u"&&js.lookupLevel(js.level)<=t){var r=js.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];console[r].apply(console,i)}},"log")};cu.default=js;s2.exports=cu.default});var o2=b(Zh=>{"use strict";Zh.__esModule=!0;Zh.createNewLookupObject=nq;var rq=wt();function nq(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return rq.extend.apply(void 0,[Object.create(null)].concat(t))}s(nq,"createNewLookupObject")});var Yh=b(ra=>{"use strict";ra.__esModule=!0;ra.createProtoAccessControl=aq;ra.resultIsAllowed=cq;ra.resetLoggedProperties=lq;function iq(e){return e&&e.__esModule?e:{default:e}}s(iq,"_interopRequireDefault");var a2=o2(),sq=Kh(),oq=iq(sq),uu=Object.create(null);function aq(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:a2.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:a2.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}s(aq,"createProtoAccessControl");function cq(e,t,r){return c2(typeof e=="function"?t.methods:t.properties,r)}s(cq,"resultIsAllowed");function c2(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(uq(t),!1)}s(c2,"checkWhiteList");function uq(e){uu[e]!==!0&&(uu[e]=!0,oq.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
|
|
52
52
|
You can add a runtime option to disable the check or this warning:
|
|
53
|
-
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}s(
|
|
53
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}s(uq,"logUnexpecedPropertyAccessOnce");function lq(){Object.keys(uu).forEach(function(e){delete uu[e]})}s(lq,"resetLoggedProperties")});var fu=b(Br=>{"use strict";Br.__esModule=!0;Br.HandlebarsEnvironment=Xh;function u2(e){return e&&e.__esModule?e:{default:e}}s(u2,"_interopRequireDefault");var Oi=wt(),fq=nr(),Jh=u2(fq),pq=Gh(),dq=i2(),hq=Kh(),lu=u2(hq),mq=Yh(),gq="4.7.8";Br.VERSION=gq;var yq=8;Br.COMPILER_REVISION=yq;var vq=7;Br.LAST_COMPATIBLE_COMPILER_REVISION=vq;var bq={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"};Br.REVISION_CHANGES=bq;var Qh="[object Object]";function Xh(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},pq.registerDefaultHelpers(this),dq.registerDefaultDecorators(this)}s(Xh,"HandlebarsEnvironment");Xh.prototype={constructor:Xh,logger:lu.default,log:lu.default.log,registerHelper:s(function(t,r){if(Oi.toString.call(t)===Qh){if(r)throw new Jh.default("Arg not supported with multiple helpers");Oi.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:s(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:s(function(t,r){if(Oi.toString.call(t)===Qh)Oi.extend(this.partials,t);else{if(typeof r>"u")throw new Jh.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:s(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:s(function(t,r){if(Oi.toString.call(t)===Qh){if(r)throw new Jh.default("Arg not supported with multiple decorators");Oi.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:s(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:s(function(){mq.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var _q=lu.default.log;Br.log=_q;Br.createFrame=Oi.createFrame;Br.logger=lu.default});var f2=b((pu,l2)=>{"use strict";pu.__esModule=!0;function em(e){this.string=e}s(em,"SafeString");em.prototype.toString=em.prototype.toHTML=function(){return""+this.string};pu.default=em;l2.exports=pu.default});var p2=b(tm=>{"use strict";tm.__esModule=!0;tm.wrapHelper=Sq;function Sq(e,t){if(typeof e!="function")return e;var r=s(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}s(Sq,"wrapHelper")});var y2=b(Rn=>{"use strict";Rn.__esModule=!0;Rn.checkRevision=xq;Rn.template=Aq;Rn.wrapProgram=du;Rn.resolvePartial=Cq;Rn.invokePartial=Iq;Rn.noop=m2;function Oq(e){return e&&e.__esModule?e:{default:e}}s(Oq,"_interopRequireDefault");function Pq(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(Pq,"_interopRequireWildcard");var wq=wt(),Xr=Pq(wq),$q=nr(),en=Oq($q),tn=fu(),d2=Gh(),Eq=p2(),h2=Yh();function xq(e){var t=e&&e[0]||1,r=tn.COMPILER_REVISION;if(!(t>=tn.LAST_COMPATIBLE_COMPILER_REVISION&&t<=tn.COMPILER_REVISION))if(t<tn.LAST_COMPATIBLE_COMPILER_REVISION){var n=tn.REVISION_CHANGES[r],i=tn.REVISION_CHANGES[t];throw new en.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 en.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}s(xq,"checkRevision");function Aq(e,t){if(!t)throw new en.default("No environment passed to template");if(!e||!e.main)throw new en.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=Xr.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=Xr.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 en.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}s(n,"invokePartialWrapper");var i={strict:s(function(c,u,l){if(!c||!(u in c))throw new en.default('"'+u+'" not defined in '+c,{loc:l});return i.lookupProperty(c,u)},"strict"),lookupProperty:s(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||fO.resultIsAllowed(l,i.protoAccessControl,u))return l},"lookupProperty"),lookup:s(function(c,u){for(var l=c.length,p=0;p<l;p++){var f=c[p]&&i.lookupProperty(c[p],u);if(f!=null)return c[p][u]}},"lookup"),lambda:s(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:Xr.escapeExpression,invokePartial:n,fn:s(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:s(function(c,u,l,p,f){var d=this.programs[c],h=this.fn(c);return u||f||p||l?d=fu(this,c,h,u,l,p,f):d||(d=this.programs[c]=fu(this,c,h)),d},"program"),data:s(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:s(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=Xr.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function o(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;o._setup(c),!c.partial&&e.useData&&(u=Aq(a,u));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(c.depths?l=a!=c.depths[0]?[a].concat(c.depths):c.depths:l=[a]);function f(d){return""+e.main(i,d,i.helpers,i.partials,u,p,l)}return s(f,"main"),f=dO(e.main,f,i,c.depths||[],u,p),f(a,c)}return s(o,"ret"),o.isTop=!0,o._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c=Xr.extend({},t.helpers,a.helpers);Cq(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Xr.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=fO.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;lO.moveHelperToHooks(i,"helperMissing",u),lO.moveHelperToHooks(i,"blockHelperMissing",u)}},o._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new en.default("must pass block params");if(e.useDepths&&!l)throw new en.default("must pass parent depths");return fu(i,a,e[a],c,0,u,l)},o}s($q,"template");function fu(e,t,r,n,i,o,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&u!=a[0]&&!(u===e.nullContext&&a[0]===null)&&(p=[u].concat(a)),r(e,u,e.helpers,e.partials,l.data||n,o&&[l.blockParams].concat(o),p)}return s(c,"prog"),c=dO(r,c,e,a,n,o),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}s(fu,"wrapProgram");function Eq(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}s(Eq,"resolvePartial");function xq(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!==pO&&function(){r.data=tn.createFrame(r.data);var o=r.fn;i=r.data["partial-block"]=s(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=tn.createFrame(u.data),u.data["partial-block"]=n,o(c,u)},"partialBlockWrapper"),o.partials&&(r.partials=Xr.extend({},r.partials,o.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new en.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}s(xq,"invokePartial");function pO(){return""}s(pO,"noop");function Aq(e,t){return(!t||!("root"in t))&&(t=t?tn.createFrame(t):{},t.root=e),t}s(Aq,"initData");function dO(e,t,r,n,i,o){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,o,n),Xr.extend(t,a)}return t}s(dO,"executeDecorators");function Cq(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=Iq(n,t)})}s(Cq,"wrapHelpersToPassLookupProperty");function Iq(e,t){var r=t.lookupProperty;return Pq.wrapHelper(e,function(n){return Xr.extend({lookupProperty:r},n)})}s(Iq,"passLookupPropertyOption")});var Xh=b((pu,mO)=>{"use strict";pu.__esModule=!0;pu.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}};mO.exports=pu.default});var _O=b((du,bO)=>{"use strict";du.__esModule=!0;function tm(e){return e&&e.__esModule?e:{default:e}}s(tm,"_interopRequireDefault");function rm(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(rm,"_interopRequireWildcard");var jq=uu(),gO=rm(jq),Rq=cO(),Tq=tm(Rq),kq=nr(),Nq=tm(kq),Mq=wt(),em=rm(Mq),qq=hO(),yO=rm(qq),Dq=Xh(),Lq=tm(Dq);function vO(){var e=new gO.HandlebarsEnvironment;return em.extend(e,gO),e.SafeString=Tq.default,e.Exception=Nq.default,e.Utils=em,e.escapeExpression=em.escapeExpression,e.VM=yO,e.template=function(t){return yO.template(t,e)},e}s(vO,"create");var ra=vO();ra.create=vO;Lq.default(ra);ra.default=ra;du.default=ra;bO.exports=du.default});var nm=b((hu,OO)=>{"use strict";hu.__esModule=!0;var SO={helpers:{helperExpression:s(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:s(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:s(function(t){return t.parts.length===1&&!SO.helpers.scopedId(t)&&!t.depth},"simpleId")}};hu.default=SO;OO.exports=hu.default});var wO=b((mu,PO)=>{"use strict";mu.__esModule=!0;var Fq=function(){var e={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:s(function(i,o,a,c,u,l,p){var f=l.length-1;switch(u){case 1:return l[f-1];case 2:this.$=c.prepareProgram(l[f]);break;case 3:this.$=l[f];break;case 4:this.$=l[f];break;case 5:this.$=l[f];break;case 6:this.$=l[f];break;case 7:this.$=l[f];break;case 8:this.$=l[f];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(l[f]),strip:c.stripFlags(l[f],l[f]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(l[f-2],l[f-1],l[f],this._$);break;case 12:this.$={path:l[f-3],params:l[f-2],hash:l[f-1]};break;case 13:this.$=c.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=c.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!0,this._$);break;case 15:this.$={open:l[f-5],path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:c.stripFlags(l[f-5],l[f])};break;case 16:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:c.stripFlags(l[f-5],l[f])};break;case 17:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:c.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:c.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=c.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=c.prepareProgram([d],l[f-1].loc);h.chained=!0,this.$={strip:l[f-2].strip,program:h,chain:!0};break;case 20:this.$=l[f];break;case 21:this.$={path:l[f-1],strip:c.stripFlags(l[f-2],l[f])};break;case 22:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.stripFlags(l[f-4],l[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[f-3],params:l[f-2],hash:l[f-1],indent:"",strip:c.stripFlags(l[f-4],l[f]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(l[f-2],l[f-1],l[f],this._$);break;case 26:this.$={path:l[f-3],params:l[f-2],hash:l[f-1],strip:c.stripFlags(l[f-4],l[f])};break;case 27:this.$=l[f];break;case 28:this.$=l[f];break;case 29:this.$={type:"SubExpression",path:l[f-3],params:l[f-2],hash:l[f-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(l[f-2]),value:l[f],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(l[f-1]);break;case 33:this.$=l[f];break;case 34:this.$=l[f];break;case 35:this.$={type:"StringLiteral",value:l[f],original:l[f],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=c.preparePath(!0,l[f],this._$);break;case 43:this.$=c.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:c.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:c.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:s(function(i,o){throw new Error(i)},"parseError"),parse:s(function(i){var o=this,a=[0],c=[null],u=[],l=this.table,p="",f=0,d=0,h=0,y=2,v=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var g=this.lexer.yylloc;u.push(g);var w=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function A(be){a.length=a.length-2*be,c.length=c.length-be,u.length=u.length-be}s(A,"popStack");function C(){var be;return be=o.lexer.lex()||1,typeof be!="number"&&(be=o.symbols_[be]||be),be}s(C,"lex");for(var j,T,he,se,Fe,$e,X={},N,I,q,Z;;){if(he=a[a.length-1],this.defaultActions[he]?se=this.defaultActions[he]:((j===null||typeof j>"u")&&(j=C()),se=l[he]&&l[he][j]),typeof se>"u"||!se.length||!se[0]){var ce="";if(!h){Z=[];for(N in l[he])this.terminals_[N]&&N>2&&Z.push("'"+this.terminals_[N]+"'");this.lexer.showPosition?ce="Parse error on line "+(f+1)+`:
|
|
55
|
+
`)}return p}else throw new en.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}s(n,"invokePartialWrapper");var i={strict:s(function(c,u,l){if(!c||!(u in c))throw new en.default('"'+u+'" not defined in '+c,{loc:l});return i.lookupProperty(c,u)},"strict"),lookupProperty:s(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||h2.resultIsAllowed(l,i.protoAccessControl,u))return l},"lookupProperty"),lookup:s(function(c,u){for(var l=c.length,p=0;p<l;p++){var f=c[p]&&i.lookupProperty(c[p],u);if(f!=null)return c[p][u]}},"lookup"),lambda:s(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:Xr.escapeExpression,invokePartial:n,fn:s(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:s(function(c,u,l,p,f){var d=this.programs[c],h=this.fn(c);return u||f||p||l?d=du(this,c,h,u,l,p,f):d||(d=this.programs[c]=du(this,c,h)),d},"program"),data:s(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:s(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=Xr.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function o(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;o._setup(c),!c.partial&&e.useData&&(u=jq(a,u));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(c.depths?l=a!=c.depths[0]?[a].concat(c.depths):c.depths:l=[a]);function f(d){return""+e.main(i,d,i.helpers,i.partials,u,p,l)}return s(f,"main"),f=g2(e.main,f,i,c.depths||[],u,p),f(a,c)}return s(o,"ret"),o.isTop=!0,o._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c=Xr.extend({},t.helpers,a.helpers);Rq(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Xr.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=h2.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;d2.moveHelperToHooks(i,"helperMissing",u),d2.moveHelperToHooks(i,"blockHelperMissing",u)}},o._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new en.default("must pass block params");if(e.useDepths&&!l)throw new en.default("must pass parent depths");return du(i,a,e[a],c,0,u,l)},o}s(Aq,"template");function du(e,t,r,n,i,o,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&u!=a[0]&&!(u===e.nullContext&&a[0]===null)&&(p=[u].concat(a)),r(e,u,e.helpers,e.partials,l.data||n,o&&[l.blockParams].concat(o),p)}return s(c,"prog"),c=g2(r,c,e,a,n,o),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}s(du,"wrapProgram");function Cq(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}s(Cq,"resolvePartial");function Iq(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!==m2&&function(){r.data=tn.createFrame(r.data);var o=r.fn;i=r.data["partial-block"]=s(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=tn.createFrame(u.data),u.data["partial-block"]=n,o(c,u)},"partialBlockWrapper"),o.partials&&(r.partials=Xr.extend({},r.partials,o.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new en.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}s(Iq,"invokePartial");function m2(){return""}s(m2,"noop");function jq(e,t){return(!t||!("root"in t))&&(t=t?tn.createFrame(t):{},t.root=e),t}s(jq,"initData");function g2(e,t,r,n,i,o){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,o,n),Xr.extend(t,a)}return t}s(g2,"executeDecorators");function Rq(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=Tq(n,t)})}s(Rq,"wrapHelpersToPassLookupProperty");function Tq(e,t){var r=t.lookupProperty;return Eq.wrapHelper(e,function(n){return Xr.extend({lookupProperty:r},n)})}s(Tq,"passLookupPropertyOption")});var rm=b((hu,v2)=>{"use strict";hu.__esModule=!0;hu.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}};v2.exports=hu.default});var P2=b((mu,O2)=>{"use strict";mu.__esModule=!0;function im(e){return e&&e.__esModule?e:{default:e}}s(im,"_interopRequireDefault");function sm(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(sm,"_interopRequireWildcard");var Nq=fu(),b2=sm(Nq),kq=f2(),Mq=im(kq),qq=nr(),Dq=im(qq),Lq=wt(),nm=sm(Lq),Fq=y2(),_2=sm(Fq),Vq=rm(),Bq=im(Vq);function S2(){var e=new b2.HandlebarsEnvironment;return nm.extend(e,b2),e.SafeString=Mq.default,e.Exception=Dq.default,e.Utils=nm,e.escapeExpression=nm.escapeExpression,e.VM=_2,e.template=function(t){return _2.template(t,e)},e}s(S2,"create");var na=S2();na.create=S2;Bq.default(na);na.default=na;mu.default=na;O2.exports=mu.default});var om=b((gu,$2)=>{"use strict";gu.__esModule=!0;var w2={helpers:{helperExpression:s(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:s(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:s(function(t){return t.parts.length===1&&!w2.helpers.scopedId(t)&&!t.depth},"simpleId")}};gu.default=w2;$2.exports=gu.default});var x2=b((yu,E2)=>{"use strict";yu.__esModule=!0;var Hq=function(){var e={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:s(function(i,o,a,c,u,l,p){var f=l.length-1;switch(u){case 1:return l[f-1];case 2:this.$=c.prepareProgram(l[f]);break;case 3:this.$=l[f];break;case 4:this.$=l[f];break;case 5:this.$=l[f];break;case 6:this.$=l[f];break;case 7:this.$=l[f];break;case 8:this.$=l[f];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(l[f]),strip:c.stripFlags(l[f],l[f]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(l[f-2],l[f-1],l[f],this._$);break;case 12:this.$={path:l[f-3],params:l[f-2],hash:l[f-1]};break;case 13:this.$=c.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=c.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!0,this._$);break;case 15:this.$={open:l[f-5],path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:c.stripFlags(l[f-5],l[f])};break;case 16:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:c.stripFlags(l[f-5],l[f])};break;case 17:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:c.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:c.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=c.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=c.prepareProgram([d],l[f-1].loc);h.chained=!0,this.$={strip:l[f-2].strip,program:h,chain:!0};break;case 20:this.$=l[f];break;case 21:this.$={path:l[f-1],strip:c.stripFlags(l[f-2],l[f])};break;case 22:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.stripFlags(l[f-4],l[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[f-3],params:l[f-2],hash:l[f-1],indent:"",strip:c.stripFlags(l[f-4],l[f]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(l[f-2],l[f-1],l[f],this._$);break;case 26:this.$={path:l[f-3],params:l[f-2],hash:l[f-1],strip:c.stripFlags(l[f-4],l[f])};break;case 27:this.$=l[f];break;case 28:this.$=l[f];break;case 29:this.$={type:"SubExpression",path:l[f-3],params:l[f-2],hash:l[f-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(l[f-2]),value:l[f],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(l[f-1]);break;case 33:this.$=l[f];break;case 34:this.$=l[f];break;case 35:this.$={type:"StringLiteral",value:l[f],original:l[f],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=c.preparePath(!0,l[f],this._$);break;case 43:this.$=c.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:c.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:c.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:s(function(i,o){throw new Error(i)},"parseError"),parse:s(function(i){var o=this,a=[0],c=[null],u=[],l=this.table,p="",f=0,d=0,h=0,y=2,v=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var g=this.lexer.yylloc;u.push(g);var w=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function A(be){a.length=a.length-2*be,c.length=c.length-be,u.length=u.length-be}s(A,"popStack");function I(){var be;return be=o.lexer.lex()||1,typeof be!="number"&&(be=o.symbols_[be]||be),be}s(I,"lex");for(var N,R,he,se,Fe,$e,X={},k,C,q,Z;;){if(he=a[a.length-1],this.defaultActions[he]?se=this.defaultActions[he]:((N===null||typeof N>"u")&&(N=I()),se=l[he]&&l[he][N]),typeof se>"u"||!se.length||!se[0]){var ce="";if(!h){Z=[];for(k in l[he])this.terminals_[k]&&k>2&&Z.push("'"+this.terminals_[k]+"'");this.lexer.showPosition?ce="Parse error on line "+(f+1)+`:
|
|
56
56
|
`+this.lexer.showPosition()+`
|
|
57
|
-
Expecting `+Z.join(", ")+", got '"+(this.terminals_[
|
|
57
|
+
Expecting `+Z.join(", ")+", got '"+(this.terminals_[N]||N)+"'":ce="Parse error on line "+(f+1)+": Unexpected "+(N==1?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(ce,{text:this.lexer.match,token:this.terminals_[N]||N,line:this.lexer.yylineno,loc:g,expected:Z})}}if(se[0]instanceof Array&&se.length>1)throw new Error("Parse Error: multiple actions possible at state: "+he+", token: "+N);switch(se[0]){case 1:a.push(N),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(se[1]),N=null,R?(N=R,R=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,g=this.lexer.yylloc,h>0&&h--);break;case 2:if(C=this.productions_[se[1]][1],X.$=c[c.length-C],X._$={first_line:u[u.length-(C||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(C||1)].first_column,last_column:u[u.length-1].last_column},w&&(X._$.range=[u[u.length-(C||1)].range[0],u[u.length-1].range[1]]),$e=this.performAction.call(X,p,d,f,this.yy,se[1],c,u),typeof $e<"u")return $e;C&&(a=a.slice(0,-1*C*2),c=c.slice(0,-1*C),u=u.slice(0,-1*C)),a.push(this.productions_[se[1]][0]),c.push(X.$),u.push(X._$),q=l[a[a.length-2]][a[a.length-1]],a.push(q);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:s(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);else throw new Error(o)},"parseError"),setInput:s(function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:s(function(o){var a=o.length,c=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:s(function(){return this._more=!0,this},"more"),less:s(function(o){this.unput(this.match.slice(o))},"less"),pastInput:s(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
58
58
|
`+a+"^"},"showPosition"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,c,u,l,p;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),d=0;d<f.length&&(c=this._input.match(this.rules[f[d]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=d,!this.options.flex)));d++);return a?(p=a[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],o=this.performAction.call(this,this.yy,this,f[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
59
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var o=this.next();return typeof o<"u"?o:this.lex()},"lex"),begin:s(function(o){this.conditionStack.push(o)},"begin"),popState:s(function(){return this.conditionStack.pop()},"popState"),_currentRules:s(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:s(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:s(function(o){this.begin(o)},"begin")};return n.options={},n.performAction=s(function(o,a,c,u){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}s(l,"strip");var p=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return s(r,"Parser"),r.prototype=e,e.Parser=r,new r}();mu.default=Fq;PO.exports=mu.default});var bu=b((vu,xO)=>{"use strict";vu.__esModule=!0;function Vq(e){return e&&e.__esModule?e:{default:e}}s(Vq,"_interopRequireDefault");var Bq=nr(),im=Vq(Bq);function gu(){this.parents=[]}s(gu,"Visitor");gu.prototype={constructor:gu,mutating:!1,acceptKey:s(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!gu.prototype[n.type])throw new im.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:s(function(t,r){if(this.acceptKey(t,r),!t[r])throw new im.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:s(function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},"acceptArray"),accept:s(function(t){if(t){if(!this[t.type])throw new im.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},"accept"),Program:s(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:yu,Decorator:yu,BlockStatement:$O,DecoratorBlock:$O,PartialStatement:EO,PartialBlockStatement:s(function(t){EO.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:s(function(){},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:yu,PathExpression:s(function(){},"PathExpression"),StringLiteral:s(function(){},"StringLiteral"),NumberLiteral:s(function(){},"NumberLiteral"),BooleanLiteral:s(function(){},"BooleanLiteral"),UndefinedLiteral:s(function(){},"UndefinedLiteral"),NullLiteral:s(function(){},"NullLiteral"),Hash:s(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:s(function(t){this.acceptRequired(t,"value")},"HashPair")};function yu(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(yu,"visitSubExpression");function $O(e){yu.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}s($O,"visitBlock");function EO(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(EO,"visitPartial");vu.default=gu;xO.exports=vu.default});var CO=b((_u,AO)=>{"use strict";_u.__esModule=!0;function Hq(e){return e&&e.__esModule?e:{default:e}}s(Hq,"_interopRequireDefault");var Uq=bu(),zq=Hq(Uq);function Hr(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}s(Hr,"WhitespaceControl");Hr.prototype=new zq.default;Hr.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,o=n.length;i<o;i++){var a=n[i],c=this.accept(a);if(c){var u=sm(n,i,r),l=om(n,i,r),p=c.openStandalone&&u,f=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&Pi(n,i,!0),c.open&&Tn(n,i,!0),t&&d&&(Pi(n,i),Tn(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Pi((a.program||a.inverse).body),Tn(n,i)),t&&f&&(Pi(n,i),Tn((a.inverse||a.program).body))}}return e};Hr.prototype.BlockStatement=Hr.prototype.DecoratorBlock=Hr.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var o={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:om(t.body),closeStandalone:sm((n||t).body)};if(e.openStrip.close&&Pi(t.body,null,!0),r){var a=e.inverseStrip;a.open&&Tn(t.body,null,!0),a.close&&Pi(n.body,null,!0),e.closeStrip.open&&Tn(i.body,null,!0),!this.options.ignoreStandalone&&sm(t.body)&&om(n.body)&&(Tn(t.body),Pi(n.body))}else e.closeStrip.open&&Tn(t.body,null,!0);return o};Hr.prototype.Decorator=Hr.prototype.MustacheStatement=function(e){return e.strip};Hr.prototype.PartialStatement=Hr.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function sm(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}s(sm,"isPrevWhitespace");function om(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}s(om,"isNextWhitespace");function Pi(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}s(Pi,"omitRight");function Tn(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}s(Tn,"omitLeft");_u.default=Hr;AO.exports=_u.default});var IO=b(ir=>{"use strict";ir.__esModule=!0;ir.SourceLocation=Kq;ir.id=Zq;ir.stripFlags=Yq;ir.stripComment=Jq;ir.preparePath=Qq;ir.prepareMustache=Xq;ir.prepareRawBlock=e4;ir.prepareBlock=t4;ir.prepareProgram=r4;ir.preparePartialBlock=n4;function Gq(e){return e&&e.__esModule?e:{default:e}}s(Gq,"_interopRequireDefault");var Wq=nr(),am=Gq(Wq);function cm(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new am.default(e.path.original+" doesn't match "+t,r)}}s(cm,"validateClose");function Kq(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}s(Kq,"SourceLocation");function Zq(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}s(Zq,"id");function Yq(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}s(Yq,"stripFlags");function Jq(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}s(Jq,"stripComment");function Qq(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],o=0,a=0,c=t.length;a<c;a++){var u=t[a].part,l=t[a].original!==u;if(n+=(t[a].separator||"")+u,!l&&(u===".."||u==="."||u==="this")){if(i.length>0)throw new am.default("Invalid path: "+n,{loc:r});u===".."&&o++}else i.push(u)}return{type:"PathExpression",data:e,depth:o,parts:i,original:n,loc:r}}s(Qq,"preparePath");function Xq(e,t,r,n,i,o){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",u=/\*/.test(n);return{type:u?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:c,strip:i,loc:this.locInfo(o)}}s(Xq,"prepareMustache");function e4(e,t,r,n){cm(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}s(e4,"prepareRawBlock");function t4(e,t,r,n,i,o){n&&n.path&&cm(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new am.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),u=r.strip,c=r.program}return i&&(i=c,c=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(o)}}s(t4,"prepareBlock");function r4(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}s(r4,"prepareProgram");function n4(e,t,r,n){return cm(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}s(n4,"preparePartialBlock")});var TO=b(na=>{"use strict";na.__esModule=!0;na.parseWithoutProcessing=RO;na.parse=f4;function i4(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(i4,"_interopRequireWildcard");function jO(e){return e&&e.__esModule?e:{default:e}}s(jO,"_interopRequireDefault");var s4=wO(),um=jO(s4),o4=CO(),a4=jO(o4),c4=IO(),u4=i4(c4),l4=wt();na.parser=um.default;var Su={};l4.extend(Su,u4);function RO(e,t){if(e.type==="Program")return e;um.default.yy=Su,Su.locInfo=function(n){return new Su.SourceLocation(t&&t.srcName,n)};var r=um.default.parse(e);return r}s(RO,"parseWithoutProcessing");function f4(e,t){var r=RO(e,t),n=new a4.default(t);return n.accept(r)}s(f4,"parse")});var qO=b(aa=>{"use strict";aa.__esModule=!0;aa.Compiler=lm;aa.precompile=m4;aa.compile=g4;function NO(e){return e&&e.__esModule?e:{default:e}}s(NO,"_interopRequireDefault");var p4=nr(),sa=NO(p4),oa=wt(),d4=nm(),ia=NO(d4),h4=[].slice;function lm(){}s(lm,"Compiler");lm.prototype={compiler:lm,equals:s(function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],o=t.opcodes[n];if(i.opcode!==o.opcode||!MO(i.args,o.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},"equals"),guid:0,compile:s(function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=oa.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},"compile"),compileProgram:s(function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:s(function(t){if(!this[t.type])throw new sa.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:s(function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},"Program"),BlockStatement:s(function(t){kO(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:s(function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:s(function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new sa.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,o=t.name.type==="SubExpression";o&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",o,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:s(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:s(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:s(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:s(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:s(function(t){kO(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:s(function(t,r,n){var i=t.path,o=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",o,a)},"ambiguousSexpr"),simpleSexpr:s(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:s(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),o=t.path,a=o.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new sa.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",i.length,o.original,ia.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:s(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=ia.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:s(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:s(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:s(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:s(function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:s(function(t){this.opcodes.push({opcode:t,args:h4.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:s(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:s(function(t){var r=ia.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&ia.default.helpers.helperExpression(t),o=!n&&(i||r);if(o&&!i){var a=t.path.parts[0],c=this.options;c.knownHelpers[a]?i=!0:c.knownHelpersOnly&&(o=!1)}return i?"helper":o?"ambiguous":"simple"},"classifySexpr"),pushParams:s(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:s(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!ia.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},"pushParam"),setupFullMustacheParams:s(function(t,r,n,i){var o=t.params;return this.pushParams(o),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),o},"setupFullMustacheParams"),blockParamIndex:s(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],o=i&&oa.indexOf(i,t);if(i&&o>=0)return[r,o]}},"blockParamIndex")};function m4(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new sa.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}s(m4,"precompile");function g4(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new sa.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=oa.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),c=new r.Compiler().compile(a,t),u=new r.JavaScriptCompiler().compile(c,t,void 0,!0);return r.template(u)}s(i,"compileInput");function o(a,c){return n||(n=i()),n.call(this,a,c)}return s(o,"ret"),o._setup=function(a){return n||(n=i()),n._setup(a)},o._child=function(a,c,u,l){return n||(n=i()),n._child(a,c,u,l)},o}s(g4,"compile");function MO(e,t){if(e===t)return!0;if(oa.isArray(e)&&oa.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!MO(e[r],t[r]))return!1;return!0}}s(MO,"argEquals");function kO(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}s(kO,"transformLiteralToPath")});var LO=b(fm=>{var DO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");fm.encode=function(e){if(0<=e&&e<DO.length)return DO[e];throw new TypeError("Must be between 0 and 63: "+e)};fm.decode=function(e){var t=65,r=90,n=97,i=122,o=48,a=57,c=43,u=47,l=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:o<=e&&e<=a?e-o+p:e==c?62:e==u?63:-1}});var hm=b(dm=>{var FO=LO(),pm=5,VO=1<<pm,BO=VO-1,HO=VO;function y4(e){return e<0?(-e<<1)+1:(e<<1)+0}s(y4,"toVLQSigned");function v4(e){var t=(e&1)===1,r=e>>1;return t?-r:r}s(v4,"fromVLQSigned");dm.encode=s(function(t){var r="",n,i=y4(t);do n=i&BO,i>>>=pm,i>0&&(n|=HO),r+=FO.encode(n);while(i>0);return r},"base64VLQ_encode");dm.decode=s(function(t,r,n){var i=t.length,o=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=FO.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&HO),u&=BO,o=o+(u<<a),a+=pm}while(c);n.value=v4(o),n.rest=r},"base64VLQ_decode")});var Ts=b(yt=>{function b4(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}s(b4,"getArg");yt.getArg=b4;var UO=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,_4=/^data:.+\,.+$/;function ca(e){var t=e.match(UO);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}s(ca,"urlParse");yt.urlParse=ca;function js(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}s(js,"urlGenerate");yt.urlGenerate=js;function mm(e){var t=e,r=ca(e);if(r){if(!r.path)return e;t=r.path}for(var n=yt.isAbsolute(t),i=t.split(/\/+/),o,a=0,c=i.length-1;c>=0;c--)o=i[c],o==="."?i.splice(c,1):o===".."?a++:a>0&&(o===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,js(r)):t}s(mm,"normalize");yt.normalize=mm;function zO(e,t){e===""&&(e="."),t===""&&(t=".");var r=ca(t),n=ca(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),js(r);if(r||t.match(_4))return t;if(n&&!n.host&&!n.path)return n.host=t,js(n);var i=t.charAt(0)==="/"?t:mm(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,js(n)):i}s(zO,"join");yt.join=zO;yt.isAbsolute=function(e){return e.charAt(0)==="/"||UO.test(e)};function S4(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}s(S4,"relative");yt.relative=S4;var GO=function(){var e=Object.create(null);return!("__proto__"in e)}();function WO(e){return e}s(WO,"identity");function O4(e){return KO(e)?"$"+e:e}s(O4,"toSetString");yt.toSetString=GO?WO:O4;function P4(e){return KO(e)?e.slice(1):e}s(P4,"fromSetString");yt.fromSetString=GO?WO:P4;function KO(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}s(KO,"isProtoString");function w4(e,t,r){var n=Rs(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:Rs(e.name,t.name)}s(w4,"compareByOriginalPositions");yt.compareByOriginalPositions=w4;function $4(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Rs(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Rs(e.name,t.name)}s($4,"compareByGeneratedPositionsDeflated");yt.compareByGeneratedPositionsDeflated=$4;function Rs(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}s(Rs,"strcmp");function E4(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Rs(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Rs(e.name,t.name)}s(E4,"compareByGeneratedPositionsInflated");yt.compareByGeneratedPositionsInflated=E4;function x4(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}s(x4,"parseSourceMapInput");yt.parseSourceMapInput=x4;function A4(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=ca(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=zO(js(n),t)}return mm(t)}s(A4,"computeSourceURL");yt.computeSourceURL=A4});var vm=b(ZO=>{var gm=Ts(),ym=Object.prototype.hasOwnProperty,wi=typeof Map<"u";function rn(){this._array=[],this._set=wi?new Map:Object.create(null)}s(rn,"ArraySet");rn.fromArray=s(function(t,r){for(var n=new rn,i=0,o=t.length;i<o;i++)n.add(t[i],r);return n},"ArraySet_fromArray");rn.prototype.size=s(function(){return wi?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");rn.prototype.add=s(function(t,r){var n=wi?t:gm.toSetString(t),i=wi?this.has(t):ym.call(this._set,n),o=this._array.length;(!i||r)&&this._array.push(t),i||(wi?this._set.set(t,o):this._set[n]=o)},"ArraySet_add");rn.prototype.has=s(function(t){if(wi)return this._set.has(t);var r=gm.toSetString(t);return ym.call(this._set,r)},"ArraySet_has");rn.prototype.indexOf=s(function(t){if(wi){var r=this._set.get(t);if(r>=0)return r}else{var n=gm.toSetString(t);if(ym.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");rn.prototype.at=s(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");rn.prototype.toArray=s(function(){return this._array.slice()},"ArraySet_toArray");ZO.ArraySet=rn});var QO=b(JO=>{var YO=Ts();function C4(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,o=t.generatedColumn;return n>r||n==r&&o>=i||YO.compareByGeneratedPositionsInflated(e,t)<=0}s(C4,"generatedPositionAfter");function Ou(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}s(Ou,"MappingList");Ou.prototype.unsortedForEach=s(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");Ou.prototype.add=s(function(t){C4(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");Ou.prototype.toArray=s(function(){return this._sorted||(this._array.sort(YO.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");JO.MappingList=Ou});var bm=b(XO=>{var ua=hm(),Xe=Ts(),Pu=vm().ArraySet,I4=QO().MappingList;function sr(e){e||(e={}),this._file=Xe.getArg(e,"file",null),this._sourceRoot=Xe.getArg(e,"sourceRoot",null),this._skipValidation=Xe.getArg(e,"skipValidation",!1),this._sources=new Pu,this._names=new Pu,this._mappings=new I4,this._sourcesContents=null}s(sr,"SourceMapGenerator");sr.prototype._version=3;sr.fromSourceMap=s(function(t){var r=t.sourceRoot,n=new sr({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var o={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(o.source=i.source,r!=null&&(o.source=Xe.relative(r,o.source)),o.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(o.name=i.name)),n.addMapping(o)}),t.sources.forEach(function(i){var o=i;r!==null&&(o=Xe.relative(r,i)),n._sources.has(o)||n._sources.add(o);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");sr.prototype.addMapping=s(function(t){var r=Xe.getArg(t,"generated"),n=Xe.getArg(t,"original",null),i=Xe.getArg(t,"source",null),o=Xe.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,o),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:o})},"SourceMapGenerator_addMapping");sr.prototype.setSourceContent=s(function(t,r){var n=t;this._sourceRoot!=null&&(n=Xe.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Xe.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Xe.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");sr.prototype.applySourceMap=s(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var o=this._sourceRoot;o!=null&&(i=Xe.relative(o,i));var a=new Pu,c=new Pu;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=Xe.join(n,u.source)),o!=null&&(u.source=Xe.relative(o,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name))}var p=u.source;p!=null&&!a.has(p)&&a.add(p);var f=u.name;f!=null&&!c.has(f)&&c.add(f)},this),this._sources=a,this._names=c,t.sources.forEach(function(u){var l=t.sourceContentFor(u);l!=null&&(n!=null&&(u=Xe.join(n,u)),o!=null&&(u=Xe.relative(o,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");sr.prototype._validateMapping=s(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");sr.prototype._serializeMappings=s(function(){for(var t=0,r=1,n=0,i=0,o=0,a=0,c="",u,l,p,f,d=this._mappings.toArray(),h=0,y=d.length;h<y;h++){if(l=d[h],u="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)u+=";",r++;else if(h>0){if(!Xe.compareByGeneratedPositionsInflated(l,d[h-1]))continue;u+=","}u+=ua.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),u+=ua.encode(f-a),a=f,u+=ua.encode(l.originalLine-1-i),i=l.originalLine-1,u+=ua.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),u+=ua.encode(p-o),o=p)),c+=u}return c},"SourceMapGenerator_serializeMappings");sr.prototype._generateSourcesContent=s(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Xe.relative(r,n));var i=Xe.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");sr.prototype.toJSON=s(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");sr.prototype.toString=s(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");XO.SourceMapGenerator=sr});var eP=b($i=>{$i.GREATEST_LOWER_BOUND=1;$i.LEAST_UPPER_BOUND=2;function _m(e,t,r,n,i,o){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?_m(a,t,r,n,i,o):o==$i.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?_m(e,a,r,n,i,o):o==$i.LEAST_UPPER_BOUND?a:e<0?-1:e}s(_m,"recursiveSearch");$i.search=s(function(t,r,n,i){if(r.length===0)return-1;var o=_m(-1,r.length,t,r,n,i||$i.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o},"search")});var rP=b(tP=>{function Sm(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}s(Sm,"swap");function j4(e,t){return Math.round(e+Math.random()*(t-e))}s(j4,"randomIntInRange");function Om(e,t,r,n){if(r<n){var i=j4(r,n),o=r-1;Sm(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(o+=1,Sm(e,o,c));Sm(e,o+1,c);var u=o+1;Om(e,t,r,u-1),Om(e,t,u+1,n)}}s(Om,"doQuickSort");tP.quickSort=function(e,t){Om(e,t,0,e.length-1)}});var iP=b(wu=>{var U=Ts(),Pm=eP(),ks=vm().ArraySet,R4=hm(),la=rP().quickSort;function Ne(e,t){var r=e;return typeof e=="string"&&(r=U.parseSourceMapInput(e)),r.sections!=null?new Pr(r,t):new lt(r,t)}s(Ne,"SourceMapConsumer");Ne.fromSourceMap=function(e,t){return lt.fromSourceMap(e,t)};Ne.prototype._version=3;Ne.prototype.__generatedMappings=null;Object.defineProperty(Ne.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Ne.prototype.__originalMappings=null;Object.defineProperty(Ne.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Ne.prototype._charIsMappingSeparator=s(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Ne.prototype._parseMappings=s(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Ne.GENERATED_ORDER=1;Ne.ORIGINAL_ORDER=2;Ne.GREATEST_LOWER_BOUND=1;Ne.LEAST_UPPER_BOUND=2;Ne.prototype.eachMapping=s(function(t,r,n){var i=r||null,o=n||Ne.GENERATED_ORDER,a;switch(o){case Ne.GENERATED_ORDER:a=this._generatedMappings;break;case Ne.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");Ne.prototype.allGeneratedPositionsFor=s(function(t){var r=U.getArg(t,"line"),n={source:U.getArg(t,"source"),originalLine:r,originalColumn:U.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,Pm.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return i},"SourceMapConsumer_allGeneratedPositionsFor");wu.SourceMapConsumer=Ne;function lt(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sources"),o=U.getArg(r,"names",[]),a=U.getArg(r,"sourceRoot",null),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=ks.fromArray(o.map(String),!0),this._sources=ks.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return U.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=l}s(lt,"BasicSourceMapConsumer");lt.prototype=Object.create(Ne.prototype);lt.prototype.consumer=Ne;lt.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=U.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};lt.fromSourceMap=s(function(t,r){var n=Object.create(lt.prototype),i=n._names=ks.fromArray(t._names.toArray(),!0),o=n._sources=ks.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 nP;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=o.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),u.push(d)),c.push(d)}return la(n.__originalMappings,U.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");lt.prototype._version=3;Object.defineProperty(lt.prototype,"sources",{get:s(function(){return this._absoluteSources.slice()},"get")});function nP(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s(nP,"Mapping");lt.prototype._parseMappings=s(function(t,r){for(var n=1,i=0,o=0,a=0,c=0,u=0,l=t.length,p=0,f={},d={},h=[],y=[],v,g,w,A,C;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(v=new nP,v.generatedLine=n,A=p;A<l&&!this._charIsMappingSeparator(t,A);A++);if(g=t.slice(p,A),w=f[g],w)p+=g.length;else{for(w=[];p<A;)R4.decode(t,p,d),C=d.value,p=d.rest,w.push(C);if(w.length===2)throw new Error("Found a source, but no line and column");if(w.length===3)throw new Error("Found a source and line, but no column");f[g]=w}v.generatedColumn=i+w[0],i=v.generatedColumn,w.length>1&&(v.source=c+w[1],c+=w[1],v.originalLine=o+w[2],o=v.originalLine,v.originalLine+=1,v.originalColumn=a+w[3],a=v.originalColumn,w.length>4&&(v.name=u+w[4],u+=w[4])),y.push(v),typeof v.originalLine=="number"&&h.push(v)}la(y,U.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,la(h,U.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");lt.prototype._findMapping=s(function(t,r,n,i,o,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return Pm.search(t,r,o,a)},"SourceMapConsumer_findMapping");lt.prototype.computeColumnSpans=s(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");lt.prototype.originalPositionFor=s(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",U.compareByGeneratedPositionsDeflated,U.getArg(t,"bias",Ne.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var o=U.getArg(i,"source",null);o!==null&&(o=this._sources.at(o),o=U.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=U.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,line:U.getArg(i,"originalLine",null),column:U.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");lt.prototype.hasContentsOfAllSources=s(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");lt.prototype.sourceContentFor=s(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=U.relative(this.sourceRoot,i));var o;if(this.sourceRoot!=null&&(o=U.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||o.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");lt.prototype.generatedPositionFor=s(function(t){var r=U.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:U.getArg(t,"line"),originalColumn:U.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,U.getArg(t,"bias",Ne.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:U.getArg(o,"generatedLine",null),column:U.getArg(o,"generatedColumn",null),lastColumn:U.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");wu.BasicSourceMapConsumer=lt;function Pr(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 ks,this._names=new ks;var o={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=U.getArg(a,"offset"),u=U.getArg(c,"line"),l=U.getArg(c,"column");if(u<o.line||u===o.line&&l<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=c,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new Ne(U.getArg(a,"map"),t)}})}s(Pr,"IndexedSourceMapConsumer");Pr.prototype=Object.create(Ne.prototype);Pr.prototype.constructor=Ne;Pr.prototype._version=3;Object.defineProperty(Pr.prototype,"sources",{get:s(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});Pr.prototype.originalPositionFor=s(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=Pm.search(r,this._sections,function(o,a){var c=o.generatedLine-a.generatedOffset.generatedLine;return c||o.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");Pr.prototype.hasContentsOfAllSources=s(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");Pr.prototype.sourceContentFor=s(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],o=i.consumer.sourceContentFor(t,!0);if(o)return o}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");Pr.prototype.generatedPositionFor=s(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(U.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var o={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");Pr.prototype._parseMappings=s(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],o=i.consumer._generatedMappings,a=0;a<o.length;a++){var c=o[a],u=i.consumer._sources.at(c.source);u=U.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;c.name&&(l=i.consumer._names.at(c.name),this._names.add(l),l=this._names.indexOf(l));var p={source:u,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}la(this.__generatedMappings,U.compareByGeneratedPositionsDeflated),la(this.__originalMappings,U.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");wu.IndexedSourceMapConsumer=Pr});var oP=b(sP=>{var T4=bm().SourceMapGenerator,$u=Ts(),k4=/(\r?\n)/,N4=10,Ns="$$$isSourceNode$$$";function Vt(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[Ns]=!0,n!=null&&this.add(n)}s(Vt,"SourceNode");Vt.fromStringWithSourceMap=s(function(t,r,n){var i=new Vt,o=t.split(k4),a=0,c=s(function(){var d=y(),h=y()||"";return d+h;function y(){return a<o.length?o[a++]:void 0}},"shiftNextLine"),u=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(u<d.generatedLine)f(p,c()),u++,l=0;else{var h=o[a]||"",y=h.substr(0,d.generatedColumn-l);o[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,y),p=d;return}for(;u<d.generatedLine;)i.add(c()),u++;if(l<d.generatedColumn){var h=o[a]||"";i.add(h.substr(0,d.generatedColumn)),o[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<o.length&&(p&&f(p,c()),i.add(o.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=$u.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?$u.join(n,d.source):d.source;i.add(new Vt(d.originalLine,d.originalColumn,y,h,d.name))}}s(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Vt.prototype.add=s(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Ns]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_add");Vt.prototype.prepend=s(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Ns]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_prepend");Vt.prototype.walk=s(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Ns]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Vt.prototype.join=s(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");Vt.prototype.replaceRight=s(function(t,r){var n=this.children[this.children.length-1];return n[Ns]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this},"SourceNode_replaceRight");Vt.prototype.setSourceContent=s(function(t,r){this.sourceContents[$u.toSetString(t)]=r},"SourceNode_setSourceContent");Vt.prototype.walkSourceContents=s(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Ns]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t($u.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Vt.prototype.toString=s(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Vt.prototype.toStringWithSourceMap=s(function(t){var r={code:"",line:1,column:0},n=new T4(t),i=!1,o=null,a=null,c=null,u=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((o!==p.source||a!==p.line||c!==p.column||u!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),o=p.source,a=p.line,c=p.column,u=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),o=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===N4?(r.line++,r.column=0,f+1===d?(o=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");sP.SourceNode=Vt});var aP=b(Eu=>{Eu.SourceMapGenerator=bm().SourceMapGenerator;Eu.SourceMapConsumer=iP().SourceMapConsumer;Eu.SourceNode=oP().SourceNode});var fP=b((xu,lP)=>{"use strict";xu.__esModule=!0;var $m=wt(),Ei=void 0;try{(typeof define!="function"||!define.amd)&&(cP=aP(),Ei=cP.SourceNode)}catch{}var cP;Ei||(Ei=s(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Ei.prototype={add:s(function(t){$m.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:s(function(t){$m.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:s(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:s(function(){return this.src},"toString")});function wm(e,t,r){if($m.isArray(e)){for(var n=[],i=0,o=e.length;i<o;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}s(wm,"castChunk");function uP(e){this.srcFile=e,this.source=[]}s(uP,"CodeGen");uP.prototype={isEmpty:s(function(){return!this.source.length},"isEmpty"),prepend:s(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:s(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:s(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
|
|
60
|
-
`])}),t},"merge"),each:s(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:s(function(){var t=this.currentLocation||{start:{}};return new Ei(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:s(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof Ei?t:(t=
|
|
59
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var o=this.next();return typeof o<"u"?o:this.lex()},"lex"),begin:s(function(o){this.conditionStack.push(o)},"begin"),popState:s(function(){return this.conditionStack.pop()},"popState"),_currentRules:s(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:s(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:s(function(o){this.begin(o)},"begin")};return n.options={},n.performAction=s(function(o,a,c,u){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}s(l,"strip");var p=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return s(r,"Parser"),r.prototype=e,e.Parser=r,new r}();yu.default=Hq;E2.exports=yu.default});var Su=b((_u,I2)=>{"use strict";_u.__esModule=!0;function Uq(e){return e&&e.__esModule?e:{default:e}}s(Uq,"_interopRequireDefault");var zq=nr(),am=Uq(zq);function vu(){this.parents=[]}s(vu,"Visitor");vu.prototype={constructor:vu,mutating:!1,acceptKey:s(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!vu.prototype[n.type])throw new am.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:s(function(t,r){if(this.acceptKey(t,r),!t[r])throw new am.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:s(function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},"acceptArray"),accept:s(function(t){if(t){if(!this[t.type])throw new am.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},"accept"),Program:s(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:bu,Decorator:bu,BlockStatement:A2,DecoratorBlock:A2,PartialStatement:C2,PartialBlockStatement:s(function(t){C2.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:s(function(){},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:bu,PathExpression:s(function(){},"PathExpression"),StringLiteral:s(function(){},"StringLiteral"),NumberLiteral:s(function(){},"NumberLiteral"),BooleanLiteral:s(function(){},"BooleanLiteral"),UndefinedLiteral:s(function(){},"UndefinedLiteral"),NullLiteral:s(function(){},"NullLiteral"),Hash:s(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:s(function(t){this.acceptRequired(t,"value")},"HashPair")};function bu(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(bu,"visitSubExpression");function A2(e){bu.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}s(A2,"visitBlock");function C2(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(C2,"visitPartial");_u.default=vu;I2.exports=_u.default});var R2=b((Ou,j2)=>{"use strict";Ou.__esModule=!0;function Gq(e){return e&&e.__esModule?e:{default:e}}s(Gq,"_interopRequireDefault");var Wq=Su(),Kq=Gq(Wq);function Hr(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}s(Hr,"WhitespaceControl");Hr.prototype=new Kq.default;Hr.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,o=n.length;i<o;i++){var a=n[i],c=this.accept(a);if(c){var u=cm(n,i,r),l=um(n,i,r),p=c.openStandalone&&u,f=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&Pi(n,i,!0),c.open&&Tn(n,i,!0),t&&d&&(Pi(n,i),Tn(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Pi((a.program||a.inverse).body),Tn(n,i)),t&&f&&(Pi(n,i),Tn((a.inverse||a.program).body))}}return e};Hr.prototype.BlockStatement=Hr.prototype.DecoratorBlock=Hr.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var o={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:um(t.body),closeStandalone:cm((n||t).body)};if(e.openStrip.close&&Pi(t.body,null,!0),r){var a=e.inverseStrip;a.open&&Tn(t.body,null,!0),a.close&&Pi(n.body,null,!0),e.closeStrip.open&&Tn(i.body,null,!0),!this.options.ignoreStandalone&&cm(t.body)&&um(n.body)&&(Tn(t.body),Pi(n.body))}else e.closeStrip.open&&Tn(t.body,null,!0);return o};Hr.prototype.Decorator=Hr.prototype.MustacheStatement=function(e){return e.strip};Hr.prototype.PartialStatement=Hr.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function cm(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}s(cm,"isPrevWhitespace");function um(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}s(um,"isNextWhitespace");function Pi(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}s(Pi,"omitRight");function Tn(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}s(Tn,"omitLeft");Ou.default=Hr;j2.exports=Ou.default});var T2=b(ir=>{"use strict";ir.__esModule=!0;ir.SourceLocation=Jq;ir.id=Qq;ir.stripFlags=Xq;ir.stripComment=e4;ir.preparePath=t4;ir.prepareMustache=r4;ir.prepareRawBlock=n4;ir.prepareBlock=i4;ir.prepareProgram=s4;ir.preparePartialBlock=o4;function Zq(e){return e&&e.__esModule?e:{default:e}}s(Zq,"_interopRequireDefault");var Yq=nr(),lm=Zq(Yq);function fm(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new lm.default(e.path.original+" doesn't match "+t,r)}}s(fm,"validateClose");function Jq(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}s(Jq,"SourceLocation");function Qq(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}s(Qq,"id");function Xq(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}s(Xq,"stripFlags");function e4(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}s(e4,"stripComment");function t4(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],o=0,a=0,c=t.length;a<c;a++){var u=t[a].part,l=t[a].original!==u;if(n+=(t[a].separator||"")+u,!l&&(u===".."||u==="."||u==="this")){if(i.length>0)throw new lm.default("Invalid path: "+n,{loc:r});u===".."&&o++}else i.push(u)}return{type:"PathExpression",data:e,depth:o,parts:i,original:n,loc:r}}s(t4,"preparePath");function r4(e,t,r,n,i,o){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",u=/\*/.test(n);return{type:u?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:c,strip:i,loc:this.locInfo(o)}}s(r4,"prepareMustache");function n4(e,t,r,n){fm(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}s(n4,"prepareRawBlock");function i4(e,t,r,n,i,o){n&&n.path&&fm(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new lm.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),u=r.strip,c=r.program}return i&&(i=c,c=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(o)}}s(i4,"prepareBlock");function s4(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}s(s4,"prepareProgram");function o4(e,t,r,n){return fm(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}s(o4,"preparePartialBlock")});var M2=b(ia=>{"use strict";ia.__esModule=!0;ia.parseWithoutProcessing=k2;ia.parse=h4;function a4(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(a4,"_interopRequireWildcard");function N2(e){return e&&e.__esModule?e:{default:e}}s(N2,"_interopRequireDefault");var c4=x2(),pm=N2(c4),u4=R2(),l4=N2(u4),f4=T2(),p4=a4(f4),d4=wt();ia.parser=pm.default;var Pu={};d4.extend(Pu,p4);function k2(e,t){if(e.type==="Program")return e;pm.default.yy=Pu,Pu.locInfo=function(n){return new Pu.SourceLocation(t&&t.srcName,n)};var r=pm.default.parse(e);return r}s(k2,"parseWithoutProcessing");function h4(e,t){var r=k2(e,t),n=new l4.default(t);return n.accept(r)}s(h4,"parse")});var F2=b(ca=>{"use strict";ca.__esModule=!0;ca.Compiler=dm;ca.precompile=v4;ca.compile=b4;function D2(e){return e&&e.__esModule?e:{default:e}}s(D2,"_interopRequireDefault");var m4=nr(),oa=D2(m4),aa=wt(),g4=om(),sa=D2(g4),y4=[].slice;function dm(){}s(dm,"Compiler");dm.prototype={compiler:dm,equals:s(function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],o=t.opcodes[n];if(i.opcode!==o.opcode||!L2(i.args,o.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},"equals"),guid:0,compile:s(function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=aa.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},"compile"),compileProgram:s(function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:s(function(t){if(!this[t.type])throw new oa.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:s(function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},"Program"),BlockStatement:s(function(t){q2(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:s(function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:s(function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new oa.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,o=t.name.type==="SubExpression";o&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",o,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:s(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:s(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:s(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:s(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:s(function(t){q2(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:s(function(t,r,n){var i=t.path,o=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",o,a)},"ambiguousSexpr"),simpleSexpr:s(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:s(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),o=t.path,a=o.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new oa.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",i.length,o.original,sa.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:s(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=sa.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:s(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:s(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:s(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:s(function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:s(function(t){this.opcodes.push({opcode:t,args:y4.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:s(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:s(function(t){var r=sa.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&sa.default.helpers.helperExpression(t),o=!n&&(i||r);if(o&&!i){var a=t.path.parts[0],c=this.options;c.knownHelpers[a]?i=!0:c.knownHelpersOnly&&(o=!1)}return i?"helper":o?"ambiguous":"simple"},"classifySexpr"),pushParams:s(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:s(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!sa.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},"pushParam"),setupFullMustacheParams:s(function(t,r,n,i){var o=t.params;return this.pushParams(o),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),o},"setupFullMustacheParams"),blockParamIndex:s(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],o=i&&aa.indexOf(i,t);if(i&&o>=0)return[r,o]}},"blockParamIndex")};function v4(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new oa.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}s(v4,"precompile");function b4(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new oa.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=aa.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),c=new r.Compiler().compile(a,t),u=new r.JavaScriptCompiler().compile(c,t,void 0,!0);return r.template(u)}s(i,"compileInput");function o(a,c){return n||(n=i()),n.call(this,a,c)}return s(o,"ret"),o._setup=function(a){return n||(n=i()),n._setup(a)},o._child=function(a,c,u,l){return n||(n=i()),n._child(a,c,u,l)},o}s(b4,"compile");function L2(e,t){if(e===t)return!0;if(aa.isArray(e)&&aa.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!L2(e[r],t[r]))return!1;return!0}}s(L2,"argEquals");function q2(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}s(q2,"transformLiteralToPath")});var B2=b(hm=>{var V2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");hm.encode=function(e){if(0<=e&&e<V2.length)return V2[e];throw new TypeError("Must be between 0 and 63: "+e)};hm.decode=function(e){var t=65,r=90,n=97,i=122,o=48,a=57,c=43,u=47,l=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:o<=e&&e<=a?e-o+p:e==c?62:e==u?63:-1}});var ym=b(gm=>{var H2=B2(),mm=5,U2=1<<mm,z2=U2-1,G2=U2;function _4(e){return e<0?(-e<<1)+1:(e<<1)+0}s(_4,"toVLQSigned");function S4(e){var t=(e&1)===1,r=e>>1;return t?-r:r}s(S4,"fromVLQSigned");gm.encode=s(function(t){var r="",n,i=_4(t);do n=i&z2,i>>>=mm,i>0&&(n|=G2),r+=H2.encode(n);while(i>0);return r},"base64VLQ_encode");gm.decode=s(function(t,r,n){var i=t.length,o=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=H2.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&G2),u&=z2,o=o+(u<<a),a+=mm}while(c);n.value=S4(o),n.rest=r},"base64VLQ_decode")});var Ns=b(yt=>{function O4(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}s(O4,"getArg");yt.getArg=O4;var W2=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,P4=/^data:.+\,.+$/;function ua(e){var t=e.match(W2);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}s(ua,"urlParse");yt.urlParse=ua;function Rs(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}s(Rs,"urlGenerate");yt.urlGenerate=Rs;function vm(e){var t=e,r=ua(e);if(r){if(!r.path)return e;t=r.path}for(var n=yt.isAbsolute(t),i=t.split(/\/+/),o,a=0,c=i.length-1;c>=0;c--)o=i[c],o==="."?i.splice(c,1):o===".."?a++:a>0&&(o===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Rs(r)):t}s(vm,"normalize");yt.normalize=vm;function K2(e,t){e===""&&(e="."),t===""&&(t=".");var r=ua(t),n=ua(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Rs(r);if(r||t.match(P4))return t;if(n&&!n.host&&!n.path)return n.host=t,Rs(n);var i=t.charAt(0)==="/"?t:vm(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Rs(n)):i}s(K2,"join");yt.join=K2;yt.isAbsolute=function(e){return e.charAt(0)==="/"||W2.test(e)};function w4(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}s(w4,"relative");yt.relative=w4;var Z2=function(){var e=Object.create(null);return!("__proto__"in e)}();function Y2(e){return e}s(Y2,"identity");function $4(e){return J2(e)?"$"+e:e}s($4,"toSetString");yt.toSetString=Z2?Y2:$4;function E4(e){return J2(e)?e.slice(1):e}s(E4,"fromSetString");yt.fromSetString=Z2?Y2:E4;function J2(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}s(J2,"isProtoString");function x4(e,t,r){var n=Ts(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:Ts(e.name,t.name)}s(x4,"compareByOriginalPositions");yt.compareByOriginalPositions=x4;function A4(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Ts(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Ts(e.name,t.name)}s(A4,"compareByGeneratedPositionsDeflated");yt.compareByGeneratedPositionsDeflated=A4;function Ts(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}s(Ts,"strcmp");function C4(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Ts(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Ts(e.name,t.name)}s(C4,"compareByGeneratedPositionsInflated");yt.compareByGeneratedPositionsInflated=C4;function I4(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}s(I4,"parseSourceMapInput");yt.parseSourceMapInput=I4;function j4(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=ua(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}t=K2(Rs(n),t)}return vm(t)}s(j4,"computeSourceURL");yt.computeSourceURL=j4});var Sm=b(Q2=>{var bm=Ns(),_m=Object.prototype.hasOwnProperty,wi=typeof Map<"u";function rn(){this._array=[],this._set=wi?new Map:Object.create(null)}s(rn,"ArraySet");rn.fromArray=s(function(t,r){for(var n=new rn,i=0,o=t.length;i<o;i++)n.add(t[i],r);return n},"ArraySet_fromArray");rn.prototype.size=s(function(){return wi?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");rn.prototype.add=s(function(t,r){var n=wi?t:bm.toSetString(t),i=wi?this.has(t):_m.call(this._set,n),o=this._array.length;(!i||r)&&this._array.push(t),i||(wi?this._set.set(t,o):this._set[n]=o)},"ArraySet_add");rn.prototype.has=s(function(t){if(wi)return this._set.has(t);var r=bm.toSetString(t);return _m.call(this._set,r)},"ArraySet_has");rn.prototype.indexOf=s(function(t){if(wi){var r=this._set.get(t);if(r>=0)return r}else{var n=bm.toSetString(t);if(_m.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");rn.prototype.at=s(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");rn.prototype.toArray=s(function(){return this._array.slice()},"ArraySet_toArray");Q2.ArraySet=rn});var tP=b(eP=>{var X2=Ns();function R4(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,o=t.generatedColumn;return n>r||n==r&&o>=i||X2.compareByGeneratedPositionsInflated(e,t)<=0}s(R4,"generatedPositionAfter");function wu(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}s(wu,"MappingList");wu.prototype.unsortedForEach=s(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");wu.prototype.add=s(function(t){R4(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");wu.prototype.toArray=s(function(){return this._sorted||(this._array.sort(X2.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");eP.MappingList=wu});var Om=b(rP=>{var la=ym(),Xe=Ns(),$u=Sm().ArraySet,T4=tP().MappingList;function sr(e){e||(e={}),this._file=Xe.getArg(e,"file",null),this._sourceRoot=Xe.getArg(e,"sourceRoot",null),this._skipValidation=Xe.getArg(e,"skipValidation",!1),this._sources=new $u,this._names=new $u,this._mappings=new T4,this._sourcesContents=null}s(sr,"SourceMapGenerator");sr.prototype._version=3;sr.fromSourceMap=s(function(t){var r=t.sourceRoot,n=new sr({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var o={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(o.source=i.source,r!=null&&(o.source=Xe.relative(r,o.source)),o.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(o.name=i.name)),n.addMapping(o)}),t.sources.forEach(function(i){var o=i;r!==null&&(o=Xe.relative(r,i)),n._sources.has(o)||n._sources.add(o);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");sr.prototype.addMapping=s(function(t){var r=Xe.getArg(t,"generated"),n=Xe.getArg(t,"original",null),i=Xe.getArg(t,"source",null),o=Xe.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,o),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:o})},"SourceMapGenerator_addMapping");sr.prototype.setSourceContent=s(function(t,r){var n=t;this._sourceRoot!=null&&(n=Xe.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Xe.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Xe.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");sr.prototype.applySourceMap=s(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var o=this._sourceRoot;o!=null&&(i=Xe.relative(o,i));var a=new $u,c=new $u;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=Xe.join(n,u.source)),o!=null&&(u.source=Xe.relative(o,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name))}var p=u.source;p!=null&&!a.has(p)&&a.add(p);var f=u.name;f!=null&&!c.has(f)&&c.add(f)},this),this._sources=a,this._names=c,t.sources.forEach(function(u){var l=t.sourceContentFor(u);l!=null&&(n!=null&&(u=Xe.join(n,u)),o!=null&&(u=Xe.relative(o,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");sr.prototype._validateMapping=s(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");sr.prototype._serializeMappings=s(function(){for(var t=0,r=1,n=0,i=0,o=0,a=0,c="",u,l,p,f,d=this._mappings.toArray(),h=0,y=d.length;h<y;h++){if(l=d[h],u="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)u+=";",r++;else if(h>0){if(!Xe.compareByGeneratedPositionsInflated(l,d[h-1]))continue;u+=","}u+=la.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),u+=la.encode(f-a),a=f,u+=la.encode(l.originalLine-1-i),i=l.originalLine-1,u+=la.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),u+=la.encode(p-o),o=p)),c+=u}return c},"SourceMapGenerator_serializeMappings");sr.prototype._generateSourcesContent=s(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Xe.relative(r,n));var i=Xe.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");sr.prototype.toJSON=s(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");sr.prototype.toString=s(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");rP.SourceMapGenerator=sr});var nP=b($i=>{$i.GREATEST_LOWER_BOUND=1;$i.LEAST_UPPER_BOUND=2;function Pm(e,t,r,n,i,o){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?Pm(a,t,r,n,i,o):o==$i.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?Pm(e,a,r,n,i,o):o==$i.LEAST_UPPER_BOUND?a:e<0?-1:e}s(Pm,"recursiveSearch");$i.search=s(function(t,r,n,i){if(r.length===0)return-1;var o=Pm(-1,r.length,t,r,n,i||$i.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o},"search")});var sP=b(iP=>{function wm(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}s(wm,"swap");function N4(e,t){return Math.round(e+Math.random()*(t-e))}s(N4,"randomIntInRange");function $m(e,t,r,n){if(r<n){var i=N4(r,n),o=r-1;wm(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(o+=1,wm(e,o,c));wm(e,o+1,c);var u=o+1;$m(e,t,r,u-1),$m(e,t,u+1,n)}}s($m,"doQuickSort");iP.quickSort=function(e,t){$m(e,t,0,e.length-1)}});var aP=b(Eu=>{var U=Ns(),Em=nP(),ks=Sm().ArraySet,k4=ym(),fa=sP().quickSort;function ke(e,t){var r=e;return typeof e=="string"&&(r=U.parseSourceMapInput(e)),r.sections!=null?new wr(r,t):new lt(r,t)}s(ke,"SourceMapConsumer");ke.fromSourceMap=function(e,t){return lt.fromSourceMap(e,t)};ke.prototype._version=3;ke.prototype.__generatedMappings=null;Object.defineProperty(ke.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});ke.prototype.__originalMappings=null;Object.defineProperty(ke.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});ke.prototype._charIsMappingSeparator=s(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");ke.prototype._parseMappings=s(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");ke.GENERATED_ORDER=1;ke.ORIGINAL_ORDER=2;ke.GREATEST_LOWER_BOUND=1;ke.LEAST_UPPER_BOUND=2;ke.prototype.eachMapping=s(function(t,r,n){var i=r||null,o=n||ke.GENERATED_ORDER,a;switch(o){case ke.GENERATED_ORDER:a=this._generatedMappings;break;case ke.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(u){var l=u.source===null?null:this._sources.at(u.source);return l=U.computeSourceURL(c,l,this._sourceMapURL),{source:l,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");ke.prototype.allGeneratedPositionsFor=s(function(t){var r=U.getArg(t,"line"),n={source:U.getArg(t,"source"),originalLine:r,originalColumn:U.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,Em.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return i},"SourceMapConsumer_allGeneratedPositionsFor");Eu.SourceMapConsumer=ke;function lt(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sources"),o=U.getArg(r,"names",[]),a=U.getArg(r,"sourceRoot",null),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=ks.fromArray(o.map(String),!0),this._sources=ks.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return U.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=l}s(lt,"BasicSourceMapConsumer");lt.prototype=Object.create(ke.prototype);lt.prototype.consumer=ke;lt.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=U.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};lt.fromSourceMap=s(function(t,r){var n=Object.create(lt.prototype),i=n._names=ks.fromArray(t._names.toArray(),!0),o=n._sources=ks.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 oP;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=o.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),u.push(d)),c.push(d)}return fa(n.__originalMappings,U.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");lt.prototype._version=3;Object.defineProperty(lt.prototype,"sources",{get:s(function(){return this._absoluteSources.slice()},"get")});function oP(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s(oP,"Mapping");lt.prototype._parseMappings=s(function(t,r){for(var n=1,i=0,o=0,a=0,c=0,u=0,l=t.length,p=0,f={},d={},h=[],y=[],v,g,w,A,I;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(v=new oP,v.generatedLine=n,A=p;A<l&&!this._charIsMappingSeparator(t,A);A++);if(g=t.slice(p,A),w=f[g],w)p+=g.length;else{for(w=[];p<A;)k4.decode(t,p,d),I=d.value,p=d.rest,w.push(I);if(w.length===2)throw new Error("Found a source, but no line and column");if(w.length===3)throw new Error("Found a source and line, but no column");f[g]=w}v.generatedColumn=i+w[0],i=v.generatedColumn,w.length>1&&(v.source=c+w[1],c+=w[1],v.originalLine=o+w[2],o=v.originalLine,v.originalLine+=1,v.originalColumn=a+w[3],a=v.originalColumn,w.length>4&&(v.name=u+w[4],u+=w[4])),y.push(v),typeof v.originalLine=="number"&&h.push(v)}fa(y,U.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,fa(h,U.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");lt.prototype._findMapping=s(function(t,r,n,i,o,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return Em.search(t,r,o,a)},"SourceMapConsumer_findMapping");lt.prototype.computeColumnSpans=s(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");lt.prototype.originalPositionFor=s(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",U.compareByGeneratedPositionsDeflated,U.getArg(t,"bias",ke.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var o=U.getArg(i,"source",null);o!==null&&(o=this._sources.at(o),o=U.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=U.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,line:U.getArg(i,"originalLine",null),column:U.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");lt.prototype.hasContentsOfAllSources=s(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");lt.prototype.sourceContentFor=s(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=U.relative(this.sourceRoot,i));var o;if(this.sourceRoot!=null&&(o=U.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||o.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");lt.prototype.generatedPositionFor=s(function(t){var r=U.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:U.getArg(t,"line"),originalColumn:U.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,U.getArg(t,"bias",ke.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:U.getArg(o,"generatedLine",null),column:U.getArg(o,"generatedColumn",null),lastColumn:U.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");Eu.BasicSourceMapConsumer=lt;function wr(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 ks,this._names=new ks;var o={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=U.getArg(a,"offset"),u=U.getArg(c,"line"),l=U.getArg(c,"column");if(u<o.line||u===o.line&&l<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=c,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new ke(U.getArg(a,"map"),t)}})}s(wr,"IndexedSourceMapConsumer");wr.prototype=Object.create(ke.prototype);wr.prototype.constructor=ke;wr.prototype._version=3;Object.defineProperty(wr.prototype,"sources",{get:s(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});wr.prototype.originalPositionFor=s(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=Em.search(r,this._sections,function(o,a){var c=o.generatedLine-a.generatedOffset.generatedLine;return c||o.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");wr.prototype.hasContentsOfAllSources=s(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");wr.prototype.sourceContentFor=s(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],o=i.consumer.sourceContentFor(t,!0);if(o)return o}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");wr.prototype.generatedPositionFor=s(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(U.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var o={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");wr.prototype._parseMappings=s(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],o=i.consumer._generatedMappings,a=0;a<o.length;a++){var c=o[a],u=i.consumer._sources.at(c.source);u=U.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;c.name&&(l=i.consumer._names.at(c.name),this._names.add(l),l=this._names.indexOf(l));var p={source:u,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}fa(this.__generatedMappings,U.compareByGeneratedPositionsDeflated),fa(this.__originalMappings,U.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");Eu.IndexedSourceMapConsumer=wr});var uP=b(cP=>{var M4=Om().SourceMapGenerator,xu=Ns(),q4=/(\r?\n)/,D4=10,Ms="$$$isSourceNode$$$";function Vt(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[Ms]=!0,n!=null&&this.add(n)}s(Vt,"SourceNode");Vt.fromStringWithSourceMap=s(function(t,r,n){var i=new Vt,o=t.split(q4),a=0,c=s(function(){var d=y(),h=y()||"";return d+h;function y(){return a<o.length?o[a++]:void 0}},"shiftNextLine"),u=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(u<d.generatedLine)f(p,c()),u++,l=0;else{var h=o[a]||"",y=h.substr(0,d.generatedColumn-l);o[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,y),p=d;return}for(;u<d.generatedLine;)i.add(c()),u++;if(l<d.generatedColumn){var h=o[a]||"";i.add(h.substr(0,d.generatedColumn)),o[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<o.length&&(p&&f(p,c()),i.add(o.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=xu.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?xu.join(n,d.source):d.source;i.add(new Vt(d.originalLine,d.originalColumn,y,h,d.name))}}s(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Vt.prototype.add=s(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Ms]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_add");Vt.prototype.prepend=s(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Ms]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_prepend");Vt.prototype.walk=s(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Ms]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Vt.prototype.join=s(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");Vt.prototype.replaceRight=s(function(t,r){var n=this.children[this.children.length-1];return n[Ms]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this},"SourceNode_replaceRight");Vt.prototype.setSourceContent=s(function(t,r){this.sourceContents[xu.toSetString(t)]=r},"SourceNode_setSourceContent");Vt.prototype.walkSourceContents=s(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Ms]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(xu.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Vt.prototype.toString=s(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Vt.prototype.toStringWithSourceMap=s(function(t){var r={code:"",line:1,column:0},n=new M4(t),i=!1,o=null,a=null,c=null,u=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((o!==p.source||a!==p.line||c!==p.column||u!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),o=p.source,a=p.line,c=p.column,u=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),o=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===D4?(r.line++,r.column=0,f+1===d?(o=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");cP.SourceNode=Vt});var lP=b(Au=>{Au.SourceMapGenerator=Om().SourceMapGenerator;Au.SourceMapConsumer=aP().SourceMapConsumer;Au.SourceNode=uP().SourceNode});var hP=b((Cu,dP)=>{"use strict";Cu.__esModule=!0;var Am=wt(),Ei=void 0;try{(typeof define!="function"||!define.amd)&&(fP=lP(),Ei=fP.SourceNode)}catch{}var fP;Ei||(Ei=s(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Ei.prototype={add:s(function(t){Am.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:s(function(t){Am.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:s(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:s(function(){return this.src},"toString")});function xm(e,t,r){if(Am.isArray(e)){for(var n=[],i=0,o=e.length;i<o;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}s(xm,"castChunk");function pP(e){this.srcFile=e,this.source=[]}s(pP,"CodeGen");pP.prototype={isEmpty:s(function(){return!this.source.length},"isEmpty"),prepend:s(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:s(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:s(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
|
|
60
|
+
`])}),t},"merge"),each:s(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:s(function(){var t=this.currentLocation||{start:{}};return new Ei(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:s(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof Ei?t:(t=xm(t,this,r),new Ei(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:s(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:s(function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:s(function(t){var r=this,n=[];Object.keys(t).forEach(function(o){var a=xm(t[o],r);a!=="undefined"&&n.push([r.quotedString(o),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:s(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(xm(t[n],this));return r},"generateList"),generateArray:s(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};Cu.default=pP;dP.exports=Cu.default});var bP=b((Iu,vP)=>{"use strict";Iu.__esModule=!0;function yP(e){return e&&e.__esModule?e:{default:e}}s(yP,"_interopRequireDefault");var mP=fu(),L4=nr(),Cm=yP(L4),F4=wt(),V4=hP(),gP=yP(V4);function qs(e){this.value=e}s(qs,"Literal");function Ds(){}s(Ds,"JavaScriptCompiler");Ds.prototype={nameLookup:s(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:s(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:s(function(){var t=mP.COMPILER_REVISION,r=mP.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:s(function(t,r,n){return F4.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:s(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:s(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:s(function(t,r,n,i){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var o=t.opcodes,a=void 0,c=void 0,u=void 0,l=void 0;for(u=0,l=o.length;u<l;u++)a=o[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Cm.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
|
61
61
|
`]),this.decorators.push("return fn;"),i?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
|
62
62
|
`),this.decorators.push(`}
|
|
63
|
-
`),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(i);if(this.isChild)return p;var f={compiler:this.compilerInfo(),main:p};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var d=this.context,h=d.programs,y=d.decorators;for(u=0,l=h.length;u<l;u++)h[u]&&(f[u]=h[u],y[u]&&(f[u+"_d"]=y[u],f.useDecorators=!0));return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:s(function(){this.lastContext=0,this.source=new
|
|
63
|
+
`),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(i);if(this.isChild)return p;var f={compiler:this.compilerInfo(),main:p};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var d=this.context,h=d.programs,y=d.decorators;for(u=0,l=h.length;u<l;u++)h[u]&&(f[u]=h[u],y[u]&&(f[u+"_d"]=y[u],f.useDecorators=!0));return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:s(function(){this.lastContext=0,this.source=new gP.default(this.options.srcName),this.decorators=new gP.default(this.options.srcName)},"preamble"),createFunctionContext:s(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var o=0;Object.keys(this.aliases).forEach(function(u){var l=r.aliases[u];l.children&&l.referenceCount>1&&(n+=", alias"+ ++o+"="+u,l.children[0]="alias"+o)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return t?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
|
|
64
64
|
`,c,"}"])},"createFunctionContext"),mergeSource:s(function(t){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,o=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(o?a.prepend("buffer += "):i=!0,c.add(";"),a=c=void 0),o=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):o||this.source.push('return "";'):(t+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(i?"":`;
|
|
65
65
|
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:s(function(){return`
|
|
66
66
|
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
@@ -69,17 +69,17 @@ Expecting `+Z.join(", ")+", got '"+(this.terminals_[j]||j)+"'":ce="Parse error o
|
|
|
69
69
|
}
|
|
70
70
|
return undefined
|
|
71
71
|
}
|
|
72
|
-
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:s(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:s(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:s(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:s(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:s(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:s(function(t){this.lastContext=t},"getContext"),pushContext:s(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:s(function(t,r,n,i){var o=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[o++])):this.pushContext(),this.resolvePath("context",t,o,r,n)},"lookupOnContext"),lookupBlockParam:s(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:s(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:s(function(t,r,n,i,o){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(L4(this.options.strict&&o,this,r,n,t));return}for(var c=r.length;n<c;n++)this.replaceStack(function(u){var l=a.nameLookup(u,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",u]})},"resolvePath"),resolvePossibleLambda:s(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:s(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:s(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:s(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:s(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:s(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:s(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:s(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:s(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:s(function(t,r,n){var i=this.popStack(),o=this.setupHelper(t,r),a=[];n&&a.push(o.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",o.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:s(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:s(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:s(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),o=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",o," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:s(function(t,r,n){var i=[],o=this.setupParams(r,1,i);t&&(r=this.popStack(),delete o.name),n&&(o.indent=JSON.stringify(n)),o.helpers="helpers",o.partials="partials",o.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(o.depths="depths"),o=this.objectLiteral(o),i.push(o),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:s(function(t){var r=this.popStack(),n=void 0,i=void 0,o=void 0;this.trackIds&&(o=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),o&&(a.ids[t]=o),a.values[t]=r},"assignToHash"),pushId:s(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:qs,compileChildren:s(function(t,r){for(var n=t.children,i=void 0,o=void 0,a=0,c=n.length;a<c;a++){i=n[a],o=new this.compiler;var u=this.matchExistingProgram(i);if(u==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=o.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=o.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=u.index,i.name="program"+u.index,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.useBlockParams}},"compileChildren"),matchExistingProgram:s(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:s(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:s(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:s(function(t){return t instanceof Ms||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:s(function(t){this.push(new Ms(t))},"pushStackLiteral"),pushSource:s(function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},"pushSource"),replaceStack:s(function(t){var r=["("],n=void 0,i=void 0,o=void 0;if(!this.isInline())throw new Em.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Ms)n=[a.value],r=["(",n],o=!0;else{i=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);o||this.popStack(),i&&this.stackSlot--,this.push(r.concat(u,")"))},"replaceStack"),incrStack:s(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:s(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:s(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof Ms)this.compileStack.push(i);else{var o=this.incrStack();this.pushSource([o," = ",i,";"]),this.compileStack.push(o)}}},"flushInline"),isInline:s(function(){return this.inlineStack.length},"isInline"),popStack:s(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof Ms)return n.value;if(!r){if(!this.stackSlot)throw new Em.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:s(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof Ms?r.value:r},"topStack"),contextName:s(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:s(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:s(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:s(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:s(function(t,r,n){var i=[],o=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:o,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:s(function(t,r,n){var i={},o=[],a=[],c=[],u=!n,l=void 0;u&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var p=this.popStack(),f=this.popStack();(f||p)&&(i.fn=f||"container.noop",i.inverse=p||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(c[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),o[d]=this.popStack());return u&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(c)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(o)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:s(function(t,r,n,i){var o=this.setupParams(t,r,n);return o.loc=JSON.stringify(this.source.currentLocation),o=this.objectLiteral(o),i?(this.useRegister("options"),n.push("options"),["options=",o]):n?(n.push(o),""):o},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=qs.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();qs.isValidJavaScriptVariableName=function(e){return!qs.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function L4(e,t,r,n,i){var o=t.popStack(),a=r.length;for(e&&a--;n<a;n++)o=t.nameLookup(o,r[n],i);return e?[t.aliasable("container.strict"),"(",o,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:o}s(L4,"strictLookup");Au.default=qs;mP.exports=Au.default});var bP=b((Cu,vP)=>{"use strict";Cu.__esModule=!0;function fa(e){return e&&e.__esModule?e:{default:e}}s(fa,"_interopRequireDefault");var F4=_O(),V4=fa(F4),B4=nm(),H4=fa(B4),xm=TO(),Am=qO(),U4=gP(),z4=fa(U4),G4=bu(),W4=fa(G4),K4=Xh(),Z4=fa(K4),Y4=V4.default.create;function yP(){var e=Y4();return e.compile=function(t,r){return Am.compile(t,r,e)},e.precompile=function(t,r){return Am.precompile(t,r,e)},e.AST=H4.default,e.Compiler=Am.Compiler,e.JavaScriptCompiler=z4.default,e.Parser=xm.parser,e.parse=xm.parse,e.parseWithoutProcessing=xm.parseWithoutProcessing,e}s(yP,"create");var Ds=yP();Ds.create=yP;Z4.default(Ds);Ds.Visitor=W4.default;Ds.default=Ds;Cu.default=Ds;vP.exports=Cu.default});var _P=b(Iu=>{"use strict";Iu.__esModule=!0;Iu.print=e8;Iu.PrintVisitor=ze;function J4(e){return e&&e.__esModule?e:{default:e}}s(J4,"_interopRequireDefault");var Q4=bu(),X4=J4(Q4);function e8(e){return new ze().accept(e)}s(e8,"print");function ze(){this.padding=0}s(ze,"PrintVisitor");ze.prototype=new X4.default;ze.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
|
|
73
|
-
`,t};ze.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var o="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)o+=" "+e.blockParams[n];o+=" ]",t+=this.pad(o)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};ze.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};ze.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};ze.prototype.BlockStatement=ze.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad((e.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t};ze.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")};ze.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};ze.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};ze.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};ze.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,o=t.length;i<o;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};ze.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};ze.prototype.StringLiteral=function(e){return'"'+e.value+'"'};ze.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};ze.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};ze.prototype.UndefinedLiteral=function(){return"UNDEFINED"};ze.prototype.NullLiteral=function(){return"NULL"};ze.prototype.Hash=function(e){for(var t=e.pairs,r=[],n=0,i=t.length;n<i;n++)r.push(this.accept(t[n]));return"HASH{"+r.join(", ")+"}"};ze.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var xi=b((
|
|
74
|
-
`).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&
|
|
75
|
-
`)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let o="";n.forEach((a,c)=>{let{width:u}=t[c],l=this.negatePadding(t[c]),p=a;if(l>
|
|
72
|
+
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:s(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:s(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:s(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:s(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:s(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:s(function(t){this.lastContext=t},"getContext"),pushContext:s(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:s(function(t,r,n,i){var o=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[o++])):this.pushContext(),this.resolvePath("context",t,o,r,n)},"lookupOnContext"),lookupBlockParam:s(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:s(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:s(function(t,r,n,i,o){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(B4(this.options.strict&&o,this,r,n,t));return}for(var c=r.length;n<c;n++)this.replaceStack(function(u){var l=a.nameLookup(u,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",u]})},"resolvePath"),resolvePossibleLambda:s(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:s(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:s(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:s(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:s(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:s(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:s(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:s(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:s(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:s(function(t,r,n){var i=this.popStack(),o=this.setupHelper(t,r),a=[];n&&a.push(o.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",o.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:s(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:s(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:s(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),o=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",o," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:s(function(t,r,n){var i=[],o=this.setupParams(r,1,i);t&&(r=this.popStack(),delete o.name),n&&(o.indent=JSON.stringify(n)),o.helpers="helpers",o.partials="partials",o.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(o.depths="depths"),o=this.objectLiteral(o),i.push(o),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:s(function(t){var r=this.popStack(),n=void 0,i=void 0,o=void 0;this.trackIds&&(o=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),o&&(a.ids[t]=o),a.values[t]=r},"assignToHash"),pushId:s(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:Ds,compileChildren:s(function(t,r){for(var n=t.children,i=void 0,o=void 0,a=0,c=n.length;a<c;a++){i=n[a],o=new this.compiler;var u=this.matchExistingProgram(i);if(u==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=o.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=o.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=u.index,i.name="program"+u.index,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.useBlockParams}},"compileChildren"),matchExistingProgram:s(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:s(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:s(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:s(function(t){return t instanceof qs||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:s(function(t){this.push(new qs(t))},"pushStackLiteral"),pushSource:s(function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},"pushSource"),replaceStack:s(function(t){var r=["("],n=void 0,i=void 0,o=void 0;if(!this.isInline())throw new Cm.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof qs)n=[a.value],r=["(",n],o=!0;else{i=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);o||this.popStack(),i&&this.stackSlot--,this.push(r.concat(u,")"))},"replaceStack"),incrStack:s(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:s(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:s(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof qs)this.compileStack.push(i);else{var o=this.incrStack();this.pushSource([o," = ",i,";"]),this.compileStack.push(o)}}},"flushInline"),isInline:s(function(){return this.inlineStack.length},"isInline"),popStack:s(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof qs)return n.value;if(!r){if(!this.stackSlot)throw new Cm.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:s(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof qs?r.value:r},"topStack"),contextName:s(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:s(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:s(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:s(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:s(function(t,r,n){var i=[],o=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:o,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:s(function(t,r,n){var i={},o=[],a=[],c=[],u=!n,l=void 0;u&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var p=this.popStack(),f=this.popStack();(f||p)&&(i.fn=f||"container.noop",i.inverse=p||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(c[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),o[d]=this.popStack());return u&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(c)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(o)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:s(function(t,r,n,i){var o=this.setupParams(t,r,n);return o.loc=JSON.stringify(this.source.currentLocation),o=this.objectLiteral(o),i?(this.useRegister("options"),n.push("options"),["options=",o]):n?(n.push(o),""):o},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=Ds.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Ds.isValidJavaScriptVariableName=function(e){return!Ds.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function B4(e,t,r,n,i){var o=t.popStack(),a=r.length;for(e&&a--;n<a;n++)o=t.nameLookup(o,r[n],i);return e?[t.aliasable("container.strict"),"(",o,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:o}s(B4,"strictLookup");Iu.default=Ds;vP.exports=Iu.default});var OP=b((ju,SP)=>{"use strict";ju.__esModule=!0;function pa(e){return e&&e.__esModule?e:{default:e}}s(pa,"_interopRequireDefault");var H4=P2(),U4=pa(H4),z4=om(),G4=pa(z4),Im=M2(),jm=F2(),W4=bP(),K4=pa(W4),Z4=Su(),Y4=pa(Z4),J4=rm(),Q4=pa(J4),X4=U4.default.create;function _P(){var e=X4();return e.compile=function(t,r){return jm.compile(t,r,e)},e.precompile=function(t,r){return jm.precompile(t,r,e)},e.AST=G4.default,e.Compiler=jm.Compiler,e.JavaScriptCompiler=K4.default,e.Parser=Im.parser,e.parse=Im.parse,e.parseWithoutProcessing=Im.parseWithoutProcessing,e}s(_P,"create");var Ls=_P();Ls.create=_P;Q4.default(Ls);Ls.Visitor=Y4.default;Ls.default=Ls;ju.default=Ls;SP.exports=ju.default});var PP=b(Ru=>{"use strict";Ru.__esModule=!0;Ru.print=nD;Ru.PrintVisitor=ze;function eD(e){return e&&e.__esModule?e:{default:e}}s(eD,"_interopRequireDefault");var tD=Su(),rD=eD(tD);function nD(e){return new ze().accept(e)}s(nD,"print");function ze(){this.padding=0}s(ze,"PrintVisitor");ze.prototype=new rD.default;ze.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
|
|
73
|
+
`,t};ze.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var o="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)o+=" "+e.blockParams[n];o+=" ]",t+=this.pad(o)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};ze.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};ze.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};ze.prototype.BlockStatement=ze.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad((e.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t};ze.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")};ze.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};ze.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};ze.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};ze.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,o=t.length;i<o;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};ze.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};ze.prototype.StringLiteral=function(e){return'"'+e.value+'"'};ze.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};ze.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};ze.prototype.UndefinedLiteral=function(){return"UNDEFINED"};ze.prototype.NullLiteral=function(){return"NULL"};ze.prototype.Hash=function(e){for(var t=e.pairs,r=[],n=0,i=t.length;n<i;n++)r.push(this.accept(t[n]));return"HASH{"+r.join(", ")+"}"};ze.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var xi=b((Dz,EP)=>{var Tu=OP().default,$P=PP();Tu.PrintVisitor=$P.PrintVisitor;Tu.print=$P.print;EP.exports=Tu;function wP(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Tu.compile(n)}s(wP,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=wP,require.extensions[".hbs"]=wP)});var Oa=require("assert");var iw={right:uw,center:lw},sw=0,ha=1,ow=2,ma=3,Du=class Du{constructor(t){var r;this.width=t.width,this.wrap=(r=t.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...t){let r=this.div(...t);r.span=!0}resetOutput(){this.rows=[]}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let r=t.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let r=t.split(`
|
|
74
|
+
`).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&Nt.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),Nt.stringWidth(i[0])))}),r.forEach(i=>{this.div(...i.map((o,a)=>({text:o.trim(),padding:this.measurePadding(o),width:a===0&&i.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){let r=Nt.stripAnsi(t);return[0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(r=>{this.rowToString(r,t)}),t.filter(r=>!r.hidden).map(r=>r.text).join(`
|
|
75
|
+
`)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let o="";n.forEach((a,c)=>{let{width:u}=t[c],l=this.negatePadding(t[c]),p=a;if(l>Nt.stringWidth(a)&&(p+=" ".repeat(l-Nt.stringWidth(a))),t[c].align&&t[c].align!=="left"&&this.wrap){let d=iw[t[c].align];p=d(p,l),Nt.stringWidth(p)<l&&(p+=" ".repeat((u||0)-Nt.stringWidth(p)-1))}let f=t[c].padding||[0,0,0,0];f[ma]&&(o+=" ".repeat(f[ma])),o+=Bm(t[c],p,"| "),o+=p,o+=Bm(t[c],p," |"),f[ha]&&(o+=" ".repeat(f[ha])),i===0&&r.length>0&&(o=this.renderInline(o,r[r.length-1]))}),r.push({text:o.replace(/ +$/,""),span:t.span})}),r}renderInline(t,r){let n=t.match(/^ */),i=n?n[0].length:0,o=r.text,a=Nt.stringWidth(o.trimRight());return r.span?this.wrap?i<a?t:(r.hidden=!0,o.trimRight()+" ".repeat(i-a)+t.trimLeft()):(r.hidden=!0,o+t):t}rasterize(t){let r=[],n=this.columnWidths(t),i;return t.forEach((o,a)=>{o.width=n[a],this.wrap?i=Nt.wrap(o.text,this.negatePadding(o),{hard:!0}).split(`
|
|
76
76
|
`):i=o.text.split(`
|
|
77
|
-
`),o.border&&(i.unshift("."+"-".repeat(this.negatePadding(o)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(o)+2)+"'")),o.padding&&(i.unshift(...new Array(o.padding[
|
|
78
|
-
`),i+=e.charAt(o);return r&&n&&(i=`${r}${i}${n}`),i}s(Vm,"wrap");function qu(e){return Lm(e,{stringWidth:s(t=>[...t].length,"stringWidth"),stripAnsi:Mu,wrap:Vm})}s(qu,"ui");var Ii=require("path"),ma=require("fs");function Du(e,t){let r=(0,Ii.resolve)(".",e),n;for((0,ma.statSync)(r).isDirectory()||(r=(0,Ii.dirname)(r));;){if(n=t(r,(0,ma.readdirSync)(r)),n)return(0,Ii.resolve)(r,n);if(r=(0,Ii.dirname)(n=r),n===r)break}}s(Du,"default");var ng=require("util"),ig=require("fs"),sg=require("url");var Gm=require("util"),ba=require("path");function Nn(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let o=i?i[0].length:0;o<e.length;o++){let a=e.charAt(o);n&&(n=!1,a=a.toUpperCase()),o!==0&&(a==="-"||a==="_")?n=!0:a!=="-"&&a!=="_"&&(r+=a)}return r}}s(Nn,"camelCase");function ga(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let o=r.charAt(i),a=e.charAt(i);o!==a&&i>0?n+=`${t}${r.charAt(i)}`:n+=a}return n}s(ga,"decamelize");function ya(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}s(ya,"looksLikeNumber");function Bm(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,r=null,n=null,i=null,o=[];for(let a=0;a<e.length;a++){if(r=n,n=e.charAt(a),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),o[t]||(o[t]=""),o[t]+=n}return o}s(Bm,"tokenizeArgString");var Ut;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Ut||(Ut={}));var Ur,Fu=class Fu{constructor(t){Ur=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=Bm(t),o=typeof t=="string",a=cw(Object.assign(Object.create(null),n.alias)),c=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),u=Object.assign(Object.create(null),n.default),l=n.configObjects||[],p=n.envPrefix,f=c["populate--"],d=f?"--":"_",h=Object.create(null),y=Object.create(null),v=n.__||Ur.format,g={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},w=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,A=new RegExp("^--"+c["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(_){let P=typeof _=="object"?_.key:_,R=Object.keys(_).map(function(E){return{boolean:"bools",string:"strings",number:"numbers"}[E]}).filter(Boolean).pop();R&&(g[R][P]=!0),g.arrays[P]=!0,g.keys.push(P)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(_){g.bools[_]=!0,g.keys.push(_)}),[].concat(n.string||[]).filter(Boolean).forEach(function(_){g.strings[_]=!0,g.keys.push(_)}),[].concat(n.number||[]).filter(Boolean).forEach(function(_){g.numbers[_]=!0,g.keys.push(_)}),[].concat(n.count||[]).filter(Boolean).forEach(function(_){g.counts[_]=!0,g.keys.push(_)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(_){g.normalize[_]=!0,g.keys.push(_)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([_,P])=>{typeof P=="number"&&(g.nargs[_]=P,g.keys.push(_))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([_,P])=>{typeof P=="function"&&(g.coercions[_]=P,g.keys.push(_))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(_){g.configs[_]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([_,P])=>{(typeof P=="boolean"||typeof P=="function")&&(g.configs[_]=P)})),$t(n.key,a,n.default,g.arrays),Object.keys(u).forEach(function(_){(g.aliases[_]||[]).forEach(function(P){u[P]=u[_]})});let C=null;Ci();let j=[],T=Object.assign(Object.create(null),{_:[]}),he={};for(let _=0;_<i.length;_++){let P=i[_],R=P.replace(/^-{3,}/,"---"),E,O,V,M,G,Ye;if(P!=="--"&&/^-/.test(P)&&Ce(P))se(P);else if(R.match(/^---+(=|$)/)){se(P);continue}else if(P.match(/^--.+=/)||!c["short-option-groups"]&&P.match(/^-.+=/))M=P.match(/^--?([^=]+)=([\s\S]*)$/),M!==null&&Array.isArray(M)&&M.length>=3&&(te(M[1],g.arrays)?_=$e(_,M[1],i,M[2]):te(M[1],g.nargs)!==!1?_=Fe(_,M[1],i,M[2]):X(M[1],M[2],!0));else if(P.match(A)&&c["boolean-negation"])M=P.match(A),M!==null&&Array.isArray(M)&&M.length>=2&&(O=M[1],X(O,te(O,g.arrays)?[!1]:!1));else if(P.match(/^--.+/)||!c["short-option-groups"]&&P.match(/^-[^-]+/))M=P.match(/^--?(.+)/),M!==null&&Array.isArray(M)&&M.length>=2&&(O=M[1],te(O,g.arrays)?_=$e(_,O,i):te(O,g.nargs)!==!1?_=Fe(_,O,i):(G=i[_+1],G!==void 0&&(!G.match(/^-/)||G.match(w))&&!te(O,g.bools)&&!te(O,g.counts)||/^(true|false)$/.test(G)?(X(O,G),_++):X(O,_e(O))));else if(P.match(/^-.\..+=/))M=P.match(/^-([^=]+)=([\s\S]*)$/),M!==null&&Array.isArray(M)&&M.length>=3&&X(M[1],M[2]);else if(P.match(/^-.\..+/)&&!P.match(w))G=i[_+1],M=P.match(/^-(.\..+)/),M!==null&&Array.isArray(M)&&M.length>=2&&(O=M[1],G!==void 0&&!G.match(/^-/)&&!te(O,g.bools)&&!te(O,g.counts)?(X(O,G),_++):X(O,_e(O)));else if(P.match(/^-[^-]+/)&&!P.match(w)){V=P.slice(1,-1).split(""),E=!1;for(let at=0;at<V.length;at++){if(G=P.slice(at+2),V[at+1]&&V[at+1]==="="){Ye=P.slice(at+3),O=V[at],te(O,g.arrays)?_=$e(_,O,i,Ye):te(O,g.nargs)!==!1?_=Fe(_,O,i,Ye):X(O,Ye),E=!0;break}if(G==="-"){X(V[at],G);continue}if(/[A-Za-z]/.test(V[at])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(G)&&te(G,g.bools)===!1){X(V[at],G),E=!0;break}if(V[at+1]&&V[at+1].match(/\W/)){X(V[at],G),E=!0;break}else X(V[at],_e(V[at]))}O=P.slice(-1)[0],!E&&O!=="-"&&(te(O,g.arrays)?_=$e(_,O,i):te(O,g.nargs)!==!1?_=Fe(_,O,i):(G=i[_+1],G!==void 0&&(!/^(-|--)[^-]/.test(G)||G.match(w))&&!te(O,g.bools)&&!te(O,g.counts)||/^(true|false)$/.test(G)?(X(O,G),_++):X(O,_e(O))))}else if(P.match(/^-[0-9]$/)&&P.match(w)&&te(P.slice(1),g.bools))O=P.slice(1),X(O,_e(O));else if(P==="--"){j=i.slice(_+1);break}else if(c["halt-at-non-option"]){j=i.slice(_);break}else se(P)}ge(T,!0),ge(T,!1),Z(T),be(),Ee(T,g.aliases,u,!0),Ve(T),c["set-placeholder-key"]&&wr(T),Object.keys(g.counts).forEach(function(_){Ht(T,_.split("."))||X(_,0)}),f&&j.length&&(T[d]=[]),j.forEach(function(_){T[d].push(_)}),c["camel-case-expansion"]&&c["strip-dashed"]&&Object.keys(T).filter(_=>_!=="--"&&_.includes("-")).forEach(_=>{delete T[_]}),c["strip-aliased"]&&[].concat(...Object.keys(a).map(_=>a[_])).forEach(_=>{c["camel-case-expansion"]&&_.includes("-")&&delete T[_.split(".").map(P=>Nn(P)).join(".")],delete T[_]});function se(_){let P=q("_",_);(typeof P=="string"||typeof P=="number")&&T._.push(P)}s(se,"pushPositional");function Fe(_,P,R,E){let O,V=te(P,g.nargs);if(V=typeof V!="number"||isNaN(V)?1:V,V===0)return Et(E)||(C=Error(v("Argument unexpected for: %s",P))),X(P,_e(P)),_;let M=Et(E)?0:1;if(c["nargs-eats-options"])R.length-(_+1)+M<V&&(C=Error(v("Not enough arguments following: %s",P))),M=V;else{for(O=_+1;O<R.length&&(!R[O].match(/^-[^0-9]/)||R[O].match(w)||Ce(R[O]));O++)M++;M<V&&(C=Error(v("Not enough arguments following: %s",P)))}let G=Math.min(M,V);for(!Et(E)&&G>0&&(X(P,E),G--),O=_+1;O<G+_+1;O++)X(P,R[O]);return _+G}s(Fe,"eatNargs");function $e(_,P,R,E){let O=[],V=E||R[_+1],M=te(P,g.nargs);if(te(P,g.bools)&&!/^(true|false)$/.test(V))O.push(!0);else if(Et(V)||Et(E)&&/^-/.test(V)&&!w.test(V)&&!Ce(V)){if(u[P]!==void 0){let G=u[P];O=Array.isArray(G)?G:[G]}}else{Et(E)||O.push(I(P,E,!0));for(let G=_+1;G<R.length&&!(!c["greedy-arrays"]&&O.length>0||M&&typeof M=="number"&&O.length>=M||(V=R[G],/^-/.test(V)&&!w.test(V)&&!Ce(V)));G++)_=G,O.push(I(P,V,o))}return typeof M=="number"&&(M&&O.length<M||isNaN(M)&&O.length===0)&&(C=Error(v("Not enough arguments following: %s",P))),X(P,O),_}s($e,"eatArray");function X(_,P,R=o){if(/-/.test(_)&&c["camel-case-expansion"]){let V=_.split(".").map(function(M){return Nn(M)}).join(".");N(_,V)}let E=I(_,P,R),O=_.split(".");Y(T,O,E),g.aliases[_]&&g.aliases[_].forEach(function(V){let M=V.split(".");Y(T,M,E)}),O.length>1&&c["dot-notation"]&&(g.aliases[O[0]]||[]).forEach(function(V){let M=V.split("."),G=[].concat(O);G.shift(),M=M.concat(G),(g.aliases[_]||[]).includes(M.join("."))||Y(T,M,E)}),te(_,g.normalize)&&!te(_,g.arrays)&&[_].concat(g.aliases[_]||[]).forEach(function(M){Object.defineProperty(he,M,{enumerable:!0,get(){return P},set(G){P=typeof G=="string"?Ur.normalize(G):G}})})}s(X,"setArg");function N(_,P){g.aliases[_]&&g.aliases[_].length||(g.aliases[_]=[P],h[P]=!0),g.aliases[P]&&g.aliases[P].length||N(P,_)}s(N,"addNewAlias");function I(_,P,R){R&&(P=uw(P)),(te(_,g.bools)||te(_,g.counts))&&typeof P=="string"&&(P=P==="true");let E=Array.isArray(P)?P.map(function(O){return q(_,O)}):q(_,P);return te(_,g.counts)&&(Et(E)||typeof E=="boolean")&&(E=Lu()),te(_,g.normalize)&&te(_,g.arrays)&&(Array.isArray(P)?E=P.map(O=>Ur.normalize(O)):E=Ur.normalize(P)),E}s(I,"processValue");function q(_,P){return!c["parse-positional-numbers"]&&_==="_"||!te(_,g.strings)&&!te(_,g.bools)&&!Array.isArray(P)&&(ya(P)&&c["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${P}`)))||!Et(P)&&te(_,g.numbers))&&(P=Number(P)),P}s(q,"maybeCoerceNumber");function Z(_){let P=Object.create(null);Ee(P,g.aliases,u),Object.keys(g.configs).forEach(function(R){let E=_[R]||P[R];if(E)try{let O=null,V=Ur.resolve(Ur.cwd(),E),M=g.configs[R];if(typeof M=="function"){try{O=M(V)}catch(G){O=G}if(O instanceof Error){C=O;return}}else O=Ur.require(V);ce(O)}catch(O){O.name==="PermissionDenied"?C=O:_[R]&&(C=Error(v("Invalid JSON config file: %s",E)))}})}s(Z,"setConfig");function ce(_,P){Object.keys(_).forEach(function(R){let E=_[R],O=P?P+"."+R:R;typeof E=="object"&&E!==null&&!Array.isArray(E)&&c["dot-notation"]?ce(E,O):(!Ht(T,O.split("."))||te(O,g.arrays)&&c["combine-arrays"])&&X(O,E)})}s(ce,"setConfigObject");function be(){typeof l<"u"&&l.forEach(function(_){ce(_)})}s(be,"setConfigObjects");function ge(_,P){if(typeof p>"u")return;let R=typeof p=="string"?p:"",E=Ur.env();Object.keys(E).forEach(function(O){if(R===""||O.lastIndexOf(R,0)===0){let V=O.split("__").map(function(M,G){return G===0&&(M=M.substring(R.length)),Nn(M)});(P&&g.configs[V.join(".")]||!P)&&!Ht(_,V)&&X(V.join("."),E[O])}})}s(ge,"applyEnvVars");function Ve(_){let P,R=new Set;Object.keys(_).forEach(function(E){if(!R.has(E)&&(P=te(E,g.coercions),typeof P=="function"))try{let O=q(E,P(_[E]));[].concat(g.aliases[E]||[],E).forEach(V=>{R.add(V),_[V]=O})}catch(O){C=O}})}s(Ve,"applyCoercions");function wr(_){return g.keys.forEach(P=>{~P.indexOf(".")||typeof _[P]>"u"&&(_[P]=void 0)}),_}s(wr,"setPlaceholderKeys");function Ee(_,P,R,E=!1){Object.keys(R).forEach(function(O){Ht(_,O.split("."))||(Y(_,O.split("."),R[O]),E&&(y[O]=!0),(P[O]||[]).forEach(function(V){Ht(_,V.split("."))||Y(_,V.split("."),R[O])}))})}s(Ee,"applyDefaultsAndAliases");function Ht(_,P){let R=_;c["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(O){R=R[O]||{}});let E=P[P.length-1];return typeof R!="object"?!1:E in R}s(Ht,"hasKey");function Y(_,P,R){let E=_;c["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(Ye){Ye=Hm(Ye),typeof E=="object"&&E[Ye]===void 0&&(E[Ye]={}),typeof E[Ye]!="object"||Array.isArray(E[Ye])?(Array.isArray(E[Ye])?E[Ye].push({}):E[Ye]=[E[Ye],{}],E=E[Ye][E[Ye].length-1]):E=E[Ye]});let O=Hm(P[P.length-1]),V=te(P.join("."),g.arrays),M=Array.isArray(R),G=c["duplicate-arguments-array"];!G&&te(O,g.nargs)&&(G=!0,(!Et(E[O])&&g.nargs[O]===1||Array.isArray(E[O])&&E[O].length===g.nargs[O])&&(E[O]=void 0)),R===Lu()?E[O]=Lu(E[O]):Array.isArray(E[O])?G&&V&&M?E[O]=c["flatten-duplicate-arrays"]?E[O].concat(R):(Array.isArray(E[O][0])?E[O]:[E[O]]).concat([R]):!G&&!!V==!!M?E[O]=R:E[O]=E[O].concat([R]):E[O]===void 0&&V?E[O]=M?R:[R]:G&&!(E[O]===void 0||te(O,g.counts)||te(O,g.bools))?E[O]=[E[O],R]:E[O]=R}s(Y,"setKey");function $t(..._){_.forEach(function(P){Object.keys(P||{}).forEach(function(R){g.aliases[R]||(g.aliases[R]=[].concat(a[R]||[]),g.aliases[R].concat(R).forEach(function(E){if(/-/.test(E)&&c["camel-case-expansion"]){let O=Nn(E);O!==R&&g.aliases[R].indexOf(O)===-1&&(g.aliases[R].push(O),h[O]=!0)}}),g.aliases[R].concat(R).forEach(function(E){if(E.length>1&&/[A-Z]/.test(E)&&c["camel-case-expansion"]){let O=ga(E,"-");O!==R&&g.aliases[R].indexOf(O)===-1&&(g.aliases[R].push(O),h[O]=!0)}}),g.aliases[R].forEach(function(E){g.aliases[E]=[R].concat(g.aliases[R].filter(function(O){return E!==O}))}))})})}s($t,"extendAliases");function te(_,P){let R=[].concat(g.aliases[_]||[],_),E=Object.keys(P),O=R.find(V=>E.includes(V));return O?P[O]:!1}s(te,"checkAllAliases");function Ae(_){let P=Object.keys(g);return[].concat(P.map(E=>g[E])).some(function(E){return Array.isArray(E)?E.includes(_):E[_]})}s(Ae,"hasAnyFlag");function Q(_,...P){return[].concat(...P).some(function(E){let O=_.match(E);return O&&Ae(O[1])})}s(Q,"hasFlagsMatching");function xe(_){if(_.match(w)||!_.match(/^-[^-]+/))return!1;let P=!0,R,E=_.slice(1).split("");for(let O=0;O<E.length;O++){if(R=_.slice(O+2),!Ae(E[O])){P=!1;break}if(E[O+1]&&E[O+1]==="="||R==="-"||/[A-Za-z]/.test(E[O])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(R)||E[O+1]&&E[O+1].match(/\W/))break}return P}s(xe,"hasAllShortFlags");function Ce(_){return c["unknown-options-as-args"]&&fe(_)}s(Ce,"isUnknownOptionAsArg");function fe(_){return _=_.replace(/^-{3,}/,"--"),_.match(w)||xe(_)?!1:!Q(_,/^-+([^=]+?)=[\s\S]*$/,A,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}s(fe,"isUnknownOption");function _e(_){return!te(_,g.bools)&&!te(_,g.counts)&&`${_}`in u?u[_]:Me(it(_))}s(_e,"defaultValue");function Me(_){return{[Ut.BOOLEAN]:!0,[Ut.STRING]:"",[Ut.NUMBER]:void 0,[Ut.ARRAY]:[]}[_]}s(Me,"defaultForType");function it(_){let P=Ut.BOOLEAN;return te(_,g.strings)?P=Ut.STRING:te(_,g.numbers)?P=Ut.NUMBER:te(_,g.bools)?P=Ut.BOOLEAN:te(_,g.arrays)&&(P=Ut.ARRAY),P}s(it,"guessType");function Et(_){return _===void 0}s(Et,"isUndefined");function Ci(){Object.keys(g.counts).find(_=>te(_,g.arrays)?(C=Error(v("Invalid configuration: %s, opts.count excludes opts.array.",_)),!0):te(_,g.nargs)?(C=Error(v("Invalid configuration: %s, opts.count excludes opts.narg.",_)),!0):!1)}return s(Ci,"checkConfiguration"),{aliases:Object.assign({},g.aliases),argv:Object.assign(he,T),configuration:c,defaulted:Object.assign({},y),error:C,newAliases:Object.assign({},h)}}};s(Fu,"YargsParser");var va=Fu;function cw(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let o=i+1;o<t.length;o++)if(t[i].filter(function(c){return t[o].indexOf(c)!==-1}).length){t[i]=t[i].concat(t[o]),t.splice(o,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(a,c,u){return u.indexOf(a)===c});let o=i.pop();o!==void 0&&typeof o=="string"&&(r[o]=i)}),r}s(cw,"combineAliases");function Lu(e){return e!==void 0?e+1:1}s(Lu,"increment");function Hm(e){return e==="__proto__"?"___proto___":e}s(Hm,"sanitizeKey");function uw(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}s(uw,"stripQuotes");var Wm=require("fs");var Vu,Bu,Hu,Um=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,zm=(Bu=(Vu=process==null?void 0:process.versions)===null||Vu===void 0?void 0:Vu.node)!==null&&Bu!==void 0?Bu:(Hu=process==null?void 0:process.version)===null||Hu===void 0?void 0:Hu.slice(1);if(zm&&Number(zm.match(/^([^.]+)/)[1])<Um)throw Error(`yargs parser supports a minimum Node.js version of ${Um}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var lw=process?process.env:{},Km=new va({cwd:process.cwd,env:s(()=>lw,"env"),format:Gm.format,normalize:ba.normalize,resolve:ba.resolve,require:s(e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,Wm.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")},"require")}),Us=s(function(t,r){return Km.parse(t.slice(),r).argv},"Parser");Us.detailed=function(e,t){return Km.parse(e.slice(),t)};Us.camelCase=Nn;Us.decamelize=ga;Us.looksLikeNumber=ya;var Uu=Us;var ur=require("path");function Zm(){return fw()?0:1}s(Zm,"getProcessArgvBinIndex");function fw(){return pw()&&!process.defaultApp}s(fw,"isBundledElectronApp");function pw(){return!!process.versions.electron}s(pw,"isElectronApp");function zu(e){return e.slice(Zm()+1)}s(zu,"hideBin");function Ym(){return process.argv[Zm()]}s(Ym,"getProcessArgvBin");var _a=class _a extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,_a)}};s(_a,"YError");var je=_a;var ji=require("fs"),Jm=require("util"),Qm=require("path");var Xm={fs:{readFileSync:ji.readFileSync,writeFile:ji.writeFile},format:Jm.format,resolve:Qm.resolve,exists:s(e=>{try{return(0,ji.statSync)(e).isFile()}catch{return!1}},"exists")};var cr,Wu=class Wu{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:!0,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=t.shift(),n=s(function(){},"cb");return typeof t[t.length-1]=="function"&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),cr.format.apply(cr.format,[this.cache[this.locale][r]||r].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),r=t.shift(),n=t.shift(),i=t.shift(),o=s(function(){},"cb");typeof t[t.length-1]=="function"&&(o=t.pop()),this.cache[this.locale]||this._readLocaleFile();let a=i===1?r:n;this.cache[this.locale][r]&&(a=this.cache[this.locale][r][i===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:o})):o();let c=[a];return~a.indexOf("%d")&&c.push(i),cr.format.apply(cr.format,c.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.cache[this.locale][r]=t[r])}_taggedLiteral(t,...r){let n="";return t.forEach(function(i,o){let a=r[o+1];n+=i,typeof a<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let t=this,r=this.writeQueue[0],n=r.directory,i=r.locale,o=r.cb,a=this._resolveLocaleFile(n,i),c=JSON.stringify(this.cache[i],null,2);cr.fs.writeFile(a,c,"utf-8",function(u){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),o(u)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{cr.fs.readFileSync&&(t=JSON.parse(cr.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=cr.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=cr.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return cr.exists(t)}};s(Wu,"Y18N");var Gu=Wu;function eg(e,t){cr=t;let r=new Gu(e);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}s(eg,"y18n");var dw=s(e=>eg(e,Xm),"y18n"),tg=dw;var gw={};var hw="require is not supported by ESM",rg="loading a directory of commands is not supported yet for ESM",zs;try{zs=(0,sg.fileURLToPath)(gw.url)}catch{zs=process.cwd()}var mw=zs.substring(0,zs.lastIndexOf("node_modules")),Ku={assert:{notStrictEqual:Sa.notStrictEqual,strictEqual:Sa.strictEqual},cliui:qu,findUp:Du,getEnv:s(e=>process.env[e],"getEnv"),inspect:ng.inspect,getCallerFile:s(()=>{throw new je(rg)},"getCallerFile"),getProcessArgvBin:Ym,mainFilename:mw||process.cwd(),Parser:Uu,path:{basename:ur.basename,dirname:ur.dirname,extname:ur.extname,relative:ur.relative,resolve:ur.resolve},process:{argv:s(()=>process.argv,"argv"),cwd:process.cwd,emitWarning:s((e,t)=>process.emitWarning(e,t),"emitWarning"),execPath:s(()=>process.execPath,"execPath"),exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:ig.readFileSync,require:s(()=>{throw new je(hw)},"require"),requireDirectory:s(()=>{throw new je(rg)},"requireDirectory"),stringWidth:s(e=>[...e].length,"stringWidth"),y18n:tg({directory:(0,ur.resolve)(zs,"../../../locales"),updateFiles:!1})};function vt(e,t,r,n){r.assert.notStrictEqual(e,t,n)}s(vt,"assertNotStrictEqual");function Zu(e,t){t.assert.strictEqual(typeof e,"string")}s(Zu,"assertSingleKey");function Ri(e){return Object.keys(e)}s(Ri,"objectKeys");function Re(e){return!!e&&!!e.then&&typeof e.then=="function"}s(Re,"isPromise");function nn(e){let r=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,i=r.shift();if(!i)throw new Error(`No command found in: ${e}`);let o={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((a,c)=>{let u=!1;a=a.replace(/\s/g,""),/\.+[\]>]/.test(a)&&c===r.length-1&&(u=!0),/^\[/.test(a)?o.optional.push({cmd:a.replace(n,"").split("|"),variadic:u}):o.demanded.push({cmd:a.replace(n,"").split("|"),variadic:u})}),o}s(nn,"parseCommand");var yw=["first","second","third","fourth","fifth","sixth"];function F(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[nn(`cmd ${e}`),t,r]}s(n,"parseArgs");try{let i=0,[o,a,c]=n(),u=[].slice.call(a);for(;u.length&&u[u.length-1]===void 0;)u.pop();let l=c||u.length;if(l<o.demanded.length)throw new je(`Not enough arguments provided. Expected ${o.demanded.length} but received ${u.length}.`);let p=o.demanded.length+o.optional.length;if(l>p)throw new je(`Too many arguments provided. Expected max ${p} but received ${l}.`);o.demanded.forEach(f=>{let d=u.shift(),h=og(d);f.cmd.filter(v=>v===h||v==="*").length===0&&ag(h,f.cmd,i),i+=1}),o.optional.forEach(f=>{if(u.length===0)return;let d=u.shift(),h=og(d);f.cmd.filter(v=>v===h||v==="*").length===0&&ag(h,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}s(F,"argsert");function og(e){return Array.isArray(e)?"array":e===null?"null":typeof e}s(og,"guessType");function ag(e,t,r){throw new je(`Invalid ${yw[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}s(ag,"argumentTypeError");var Yu=class Yu{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,r,n=!0,i=!1){if(F("<array|function> [boolean] [boolean] [boolean]",[t,r,n],arguments.length),Array.isArray(t)){for(let o=0;o<t.length;o++){if(typeof t[o]!="function")throw Error("middleware must be a function");let a=t[o];a.applyBeforeValidation=r,a.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let o=t;o.applyBeforeValidation=r,o.global=n,o.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,r){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let o=[...n[r]||[],r];return i.option?!o.includes(i.option):!0}),t.option=r,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global)}};s(Yu,"GlobalMiddleware");var Oa=Yu;function cg(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}s(cg,"commandMiddlewareFactory");function Mn(e,t,r,n){return r.reduce((i,o)=>{if(o.applyBeforeValidation!==n)return i;if(o.mutates){if(o.applied)return i;o.applied=!0}if(Re(i))return i.then(a=>Promise.all([a,o(a,t)])).then(([a,c])=>Object.assign(a,c));{let a=o(i,t);return Re(a)?a.then(c=>Object.assign(i,c)):Object.assign(i,a)}},e)}s(Mn,"applyMiddleware");function qn(e,t,r=n=>{throw n}){try{let n=vw(e)?e():e;return Re(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}s(qn,"maybeAsyncResult");function vw(e){return typeof e=="function"}s(vw,"isFunction");function Ju(e){if(typeof require>"u")return null;for(let t=0,r=Object.keys(require.cache),n;t<r.length;t++)if(n=require.cache[r[t]],n.exports===e)return n;return null}s(Ju,"whichModule");var Ti=/(^\*)|(^\$0)/,Xu=class Xu{constructor(t,r,n,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=n,this.validation=r}addDirectory(t,r,n,i){i=i||{},typeof i.recurse!="boolean"&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);let o=typeof i.visit=="function"?i.visit:a=>a;i.visit=(a,c,u)=>{let l=o(a,c,u);if(l){if(this.requireCache.has(c))return l;this.requireCache.add(c),this.addHandler(l)}return l},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,o,a){let c=[],u=cg(o);if(i=i||(()=>{}),Array.isArray(t))if(bw(t))[t,...c]=t;else for(let l of t)this.addHandler(l);else if(Sw(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(ug(n)){this.addHandler([t].concat(c),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=nn(t);c=c.map(d=>nn(d).cmd);let p=!1,f=[l.cmd].concat(c).filter(d=>Ti.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(Ti,l.cmd)),c.forEach(d=>{this.aliasMap[d]=l.cmd}),r!==!1&&this.usage.command(t,r,p,c,a),this.handlers[l.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:u,deprecated:a,demanded:l.demanded,optional:l.optional},p&&(this.defaultCommand=this.handlers[l.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,r,n,i,o,a){let c=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,u=r.getInternalMethods().getContext(),l=u.commands.slice(),p=!t;t&&(u.commands.push(t),u.fullCommands.push(c.original));let f=this.applyBuilderUpdateUsageAndParse(p,c,r,n.aliases,l,i,o,a);return Re(f)?f.then(d=>this.applyMiddlewareAndGetResult(p,c,d.innerArgv,u,o,d.aliases,r)):this.applyMiddlewareAndGetResult(p,c,f.innerArgv,u,o,f.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,o,a,c,u){let l=r.builder,p=n;if(Pa(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),u);if(Re(f))return f.then(d=>(p=fg(d)?d:n,this.parseAndUpdateUsage(t,r,p,o,a,c)))}else _w(l)&&(n.getInternalMethods().getUsageInstance().freeze(),p=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(f=>{p.option(f,l[f])}));return this.parseAndUpdateUsage(t,r,p,o,a,c)}parseAndUpdateUsage(t,r,n,i,o,a){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let c=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,o,a);return Re(c)?c.then(u=>({aliases:n.parsed.aliases,innerArgv:u})):{aliases:n.parsed.aliases,innerArgv:c}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=Ti.test(r.original)?r.original.replace(Ti,"").trim():r.original,i=t.filter(o=>!Ti.test(o));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,o,a,c,u){if(!a.getInternalMethods().getHasOutput()){let l=a.getInternalMethods().runValidation(o,u,a.parsed.error,t);n=qn(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=Mn(n,a,c,!1),n=qn(n,p=>{let f=r.handler(p);return Re(f)?f.then(()=>p):p}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),Re(n)&&!a.getInternalMethods().hasParseCallback()&&n.catch(p=>{try{a.getInternalMethods().getUsageInstance().fail(null,p)}catch{}})}return t||(i.commands.pop(),i.fullCommands.pop()),n}applyMiddlewareAndGetResult(t,r,n,i,o,a,c){let u={};if(o)return n;c.getInternalMethods().getHasOutput()||(u=this.populatePositionals(r,n,i,c));let l=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),p=Mn(n,c,l,!0);return Re(p)?p.then(f=>this.handleValidationAndGetResult(t,r,f,i,a,c,l,u)):this.handleValidationAndGetResult(t,r,p,i,a,c,l,u)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let o=t.demanded.slice(0),a=t.optional.slice(0),c={};for(this.validation.positionalCount(o.length,r._.length);o.length;){let u=o.shift();this.populatePositional(u,r,c)}for(;a.length;){let u=a.shift();this.populatePositional(u,r,c)}return r._=n.commands.concat(r._.map(u=>""+u)),this.postProcessPositionals(r,c,this.cmdToParseOptions(t.original),i),c}populatePositional(t,r,n){let i=t.cmd[0];t.variadic?n[i]=r._.splice(0).map(String):r._.length&&(n[i]=[String(r._.shift())])}cmdToParseOptions(t){let r={array:[],default:{},alias:{},demand:{}},n=nn(t);return n.demanded.forEach(i=>{let[o,...a]=i.cmd;i.variadic&&(r.array.push(o),r.default[o]=[]),r.alias[o]=a,r.demand[o]=!0}),n.optional.forEach(i=>{let[o,...a]=i.cmd;i.variadic&&(r.array.push(o),r.default[o]=[]),r.alias[o]=a}),r}postProcessPositionals(t,r,n,i){let o=Object.assign({},i.getOptions());o.default=Object.assign(n.default,o.default);for(let l of Object.keys(n.alias))o.alias[l]=(o.alias[l]||[]).concat(n.alias[l]);o.array=o.array.concat(n.array),o.config={};let a=[];if(Object.keys(r).forEach(l=>{r[l].map(p=>{o.configuration["unknown-options-as-args"]&&(o.key[l]=!0),a.push(`--${l}`),a.push(p)})}),!a.length)return;let c=Object.assign({},o.configuration,{"populate--":!1}),u=this.shim.Parser.detailed(a,Object.assign({},o,{configuration:c}));if(u.error)i.getInternalMethods().getUsageInstance().fail(u.error.message,u.error);else{let l=Object.keys(r);Object.keys(r).forEach(p=>{l.push(...u.aliases[p])}),Object.keys(u.argv).forEach(p=>{l.includes(p)&&(r[p]||(r[p]=u.argv[p]),!this.isInConfigs(i,p)&&!this.isDefaulted(i,p)&&Object.prototype.hasOwnProperty.call(t,p)&&Object.prototype.hasOwnProperty.call(u.argv,p)&&(Array.isArray(t[p])||Array.isArray(u.argv[p]))?t[p]=[].concat(t[p],u.argv[p]):t[p]=u.argv[p])})}}isDefaulted(t,r){let{default:n}=t.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(t,r){let{configObjects:n}=t.getOptions();return n.some(i=>Object.prototype.hasOwnProperty.call(i,r))||n.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let n=Ti.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(Pa(r))return r(t,!0);ug(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=Ju(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;vt(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();vt(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};s(Xu,"CommandInstance");var Qu=Xu;function lg(e,t,r,n){return new Qu(e,t,r,n)}s(lg,"command");function ug(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}s(ug,"isCommandBuilderDefinition");function bw(e){return e.every(t=>typeof t=="string")}s(bw,"isCommandAndAliases");function Pa(e){return typeof e=="function"}s(Pa,"isCommandBuilderCallback");function _w(e){return typeof e=="object"}s(_w,"isCommandBuilderOptionDefinitions");function Sw(e){return typeof e=="object"&&!Array.isArray(e)}s(Sw,"isCommandHandlerDefinition");function sn(e={},t=()=>!0){let r={};return Ri(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}s(sn,"objFilter");function on(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let r=t;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(e)})}s(on,"setBlocking");function Ow(e){return typeof e=="boolean"}s(Ow,"isBoolean");function dg(e,t){let r=t.y18n.__,n={},i=[];n.failFn=s(function(I){i.push(I)},"failFn");let o=null,a=null,c=!0;n.showHelpOnFail=s(function(I=!0,q){let[Z,ce]=typeof I=="string"?[!0,I]:[I,q];return e.getInternalMethods().isGlobalContext()&&(a=ce),o=ce,c=Z,n},"showHelpOnFailFn");let u=!1;n.fail=s(function(I,q){let Z=e.getInternalMethods().getLoggerInstance();if(i.length)for(let ce=i.length-1;ce>=0;--ce){let be=i[ce];if(Ow(be)){if(q)throw q;if(I)throw Error(I)}else be(I,q,n)}else{if(e.getExitProcess()&&on(!0),!u){u=!0,c&&(e.showHelp("error"),Z.error()),(I||q)&&Z.error(I||q);let ce=o||a;ce&&((I||q)&&Z.error(""),Z.error(ce))}if(q=q||new je(I),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,q);throw q}},"fail");let l=[],p=!1;n.usage=(N,I)=>N===null?(p=!0,l=[],n):(p=!1,l.push([N,I||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>p,n.getPositionalGroupName=()=>r("Positionals:");let f=[];n.example=(N,I)=>{f.push([N,I||""])};let d=[];n.command=s(function(I,q,Z,ce,be=!1){Z&&(d=d.map(ge=>(ge[2]=!1,ge))),d.push([I,q||"",Z,ce,be])},"command"),n.getCommands=()=>d;let h={};n.describe=s(function(I,q){Array.isArray(I)?I.forEach(Z=>{n.describe(Z,q)}):typeof I=="object"?Object.keys(I).forEach(Z=>{n.describe(Z,I[Z])}):h[I]=q},"describe"),n.getDescriptions=()=>h;let y=[];n.epilog=N=>{y.push(N)};let v=!1,g;n.wrap=N=>{v=!0,g=N},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(v||(g=Fe(),v=!0),g);let w="__yargsString__:";n.deferY18nLookup=N=>w+N,n.help=s(function(){if(j)return j;C();let I=e.customScriptName?e.$0:t.path.basename(e.$0),q=e.getDemandedOptions(),Z=e.getDemandedCommands(),ce=e.getDeprecatedOptions(),be=e.getGroups(),ge=e.getOptions(),Ve=[];Ve=Ve.concat(Object.keys(h)),Ve=Ve.concat(Object.keys(q)),Ve=Ve.concat(Object.keys(Z)),Ve=Ve.concat(Object.keys(ge.default)),Ve=Ve.filter(he),Ve=Object.keys(Ve.reduce((Q,xe)=>(xe!=="_"&&(Q[xe]=!0),Q),{}));let wr=n.getWrap(),Ee=t.cliui({width:wr,wrap:!!wr});if(!p){if(l.length)l.forEach(Q=>{Ee.div({text:`${Q[0].replace(/\$0/g,I)}`}),Q[1]&&Ee.div({text:`${Q[1]}`,padding:[1,0,0,0]})}),Ee.div();else if(d.length){let Q=null;Z._?Q=`${I} <${r("command")}>
|
|
79
|
-
`:Q=`${
|
|
80
|
-
`,Ee.div(`${Q}`)}}if(d.length>1||d.length===1&&!d[0][2]){Ee.div(r("Commands:"));let Q=e.getInternalMethods().getContext(),xe=Q.commands.length?`${Q.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(d=d.sort((fe,_e)=>fe[0].localeCompare(_e[0])));let Ce=
|
|
77
|
+
`),o.border&&(i.unshift("."+"-".repeat(this.negatePadding(o)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(o)+2)+"'")),o.padding&&(i.unshift(...new Array(o.padding[sw]||0).fill("")),i.push(...new Array(o.padding[ow]||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[ma]||0)+(t.padding[ha]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||Nt.stringWidth(a.text));let r=t.length,n=this.width,i=t.map(a=>{if(a.width)return r--,n-=a.width,a.width}),o=r?Math.floor(n/r):0;return i.map((a,c)=>a===void 0?Math.max(o,aw(t[c])):a)}};s(Du,"UI");var qu=Du;function Bm(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}s(Bm,"addBorder");function aw(e){let t=e.padding||[],r=1+(t[ma]||0)+(t[ha]||0);return e.border?r+4:r}s(aw,"_minWidth");function cw(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}s(cw,"getWindowWidth");function uw(e,t){e=e.trim();let r=Nt.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}s(uw,"alignRight");function lw(e,t){e=e.trim();let r=Nt.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}s(lw,"alignCenter");var Nt;function Hm(e,t){return Nt=t,new qu({width:(e==null?void 0:e.width)||cw(),wrap:e==null?void 0:e.wrap})}s(Hm,"cliui");var Um=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function Lu(e){return e.replace(Um,"")}s(Lu,"stripAnsi");function zm(e,t){let[r,n]=e.match(Um)||["",""];e=Lu(e);let i="";for(let o=0;o<e.length;o++)o!==0&&o%t===0&&(i+=`
|
|
78
|
+
`),i+=e.charAt(o);return r&&n&&(i=`${r}${i}${n}`),i}s(zm,"wrap");function Fu(e){return Hm(e,{stringWidth:s(t=>[...t].length,"stringWidth"),stripAnsi:Lu,wrap:zm})}s(Fu,"ui");var Ii=require("path"),ga=require("fs");function Vu(e,t){let r=(0,Ii.resolve)(".",e),n;for((0,ga.statSync)(r).isDirectory()||(r=(0,Ii.dirname)(r));;){if(n=t(r,(0,ga.readdirSync)(r)),n)return(0,Ii.resolve)(r,n);if(r=(0,Ii.dirname)(n=r),n===r)break}}s(Vu,"default");var ag=require("util"),cg=require("fs"),ug=require("url");var Ym=require("util"),_a=require("path");function kn(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let o=i?i[0].length:0;o<e.length;o++){let a=e.charAt(o);n&&(n=!1,a=a.toUpperCase()),o!==0&&(a==="-"||a==="_")?n=!0:a!=="-"&&a!=="_"&&(r+=a)}return r}}s(kn,"camelCase");function ya(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let o=r.charAt(i),a=e.charAt(i);o!==a&&i>0?n+=`${t}${r.charAt(i)}`:n+=a}return n}s(ya,"decamelize");function va(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}s(va,"looksLikeNumber");function Gm(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,r=null,n=null,i=null,o=[];for(let a=0;a<e.length;a++){if(r=n,n=e.charAt(a),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),o[t]||(o[t]=""),o[t]+=n}return o}s(Gm,"tokenizeArgString");var Ut;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Ut||(Ut={}));var Ur,Hu=class Hu{constructor(t){Ur=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=Gm(t),o=typeof t=="string",a=fw(Object.assign(Object.create(null),n.alias)),c=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),u=Object.assign(Object.create(null),n.default),l=n.configObjects||[],p=n.envPrefix,f=c["populate--"],d=f?"--":"_",h=Object.create(null),y=Object.create(null),v=n.__||Ur.format,g={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},w=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,A=new RegExp("^--"+c["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(_){let P=typeof _=="object"?_.key:_,j=Object.keys(_).map(function(E){return{boolean:"bools",string:"strings",number:"numbers"}[E]}).filter(Boolean).pop();j&&(g[j][P]=!0),g.arrays[P]=!0,g.keys.push(P)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(_){g.bools[_]=!0,g.keys.push(_)}),[].concat(n.string||[]).filter(Boolean).forEach(function(_){g.strings[_]=!0,g.keys.push(_)}),[].concat(n.number||[]).filter(Boolean).forEach(function(_){g.numbers[_]=!0,g.keys.push(_)}),[].concat(n.count||[]).filter(Boolean).forEach(function(_){g.counts[_]=!0,g.keys.push(_)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(_){g.normalize[_]=!0,g.keys.push(_)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([_,P])=>{typeof P=="number"&&(g.nargs[_]=P,g.keys.push(_))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([_,P])=>{typeof P=="function"&&(g.coercions[_]=P,g.keys.push(_))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(_){g.configs[_]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([_,P])=>{(typeof P=="boolean"||typeof P=="function")&&(g.configs[_]=P)})),$t(n.key,a,n.default,g.arrays),Object.keys(u).forEach(function(_){(g.aliases[_]||[]).forEach(function(P){u[P]=u[_]})});let I=null;Ci();let N=[],R=Object.assign(Object.create(null),{_:[]}),he={};for(let _=0;_<i.length;_++){let P=i[_],j=P.replace(/^-{3,}/,"---"),E,O,V,M,G,Ye;if(P!=="--"&&/^-/.test(P)&&Ce(P))se(P);else if(j.match(/^---+(=|$)/)){se(P);continue}else if(P.match(/^--.+=/)||!c["short-option-groups"]&&P.match(/^-.+=/))M=P.match(/^--?([^=]+)=([\s\S]*)$/),M!==null&&Array.isArray(M)&&M.length>=3&&(te(M[1],g.arrays)?_=$e(_,M[1],i,M[2]):te(M[1],g.nargs)!==!1?_=Fe(_,M[1],i,M[2]):X(M[1],M[2],!0));else if(P.match(A)&&c["boolean-negation"])M=P.match(A),M!==null&&Array.isArray(M)&&M.length>=2&&(O=M[1],X(O,te(O,g.arrays)?[!1]:!1));else if(P.match(/^--.+/)||!c["short-option-groups"]&&P.match(/^-[^-]+/))M=P.match(/^--?(.+)/),M!==null&&Array.isArray(M)&&M.length>=2&&(O=M[1],te(O,g.arrays)?_=$e(_,O,i):te(O,g.nargs)!==!1?_=Fe(_,O,i):(G=i[_+1],G!==void 0&&(!G.match(/^-/)||G.match(w))&&!te(O,g.bools)&&!te(O,g.counts)||/^(true|false)$/.test(G)?(X(O,G),_++):X(O,_e(O))));else if(P.match(/^-.\..+=/))M=P.match(/^-([^=]+)=([\s\S]*)$/),M!==null&&Array.isArray(M)&&M.length>=3&&X(M[1],M[2]);else if(P.match(/^-.\..+/)&&!P.match(w))G=i[_+1],M=P.match(/^-(.\..+)/),M!==null&&Array.isArray(M)&&M.length>=2&&(O=M[1],G!==void 0&&!G.match(/^-/)&&!te(O,g.bools)&&!te(O,g.counts)?(X(O,G),_++):X(O,_e(O)));else if(P.match(/^-[^-]+/)&&!P.match(w)){V=P.slice(1,-1).split(""),E=!1;for(let at=0;at<V.length;at++){if(G=P.slice(at+2),V[at+1]&&V[at+1]==="="){Ye=P.slice(at+3),O=V[at],te(O,g.arrays)?_=$e(_,O,i,Ye):te(O,g.nargs)!==!1?_=Fe(_,O,i,Ye):X(O,Ye),E=!0;break}if(G==="-"){X(V[at],G);continue}if(/[A-Za-z]/.test(V[at])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(G)&&te(G,g.bools)===!1){X(V[at],G),E=!0;break}if(V[at+1]&&V[at+1].match(/\W/)){X(V[at],G),E=!0;break}else X(V[at],_e(V[at]))}O=P.slice(-1)[0],!E&&O!=="-"&&(te(O,g.arrays)?_=$e(_,O,i):te(O,g.nargs)!==!1?_=Fe(_,O,i):(G=i[_+1],G!==void 0&&(!/^(-|--)[^-]/.test(G)||G.match(w))&&!te(O,g.bools)&&!te(O,g.counts)||/^(true|false)$/.test(G)?(X(O,G),_++):X(O,_e(O))))}else if(P.match(/^-[0-9]$/)&&P.match(w)&&te(P.slice(1),g.bools))O=P.slice(1),X(O,_e(O));else if(P==="--"){N=i.slice(_+1);break}else if(c["halt-at-non-option"]){N=i.slice(_);break}else se(P)}ge(R,!0),ge(R,!1),Z(R),be(),Ee(R,g.aliases,u,!0),Ve(R),c["set-placeholder-key"]&&$r(R),Object.keys(g.counts).forEach(function(_){Ht(R,_.split("."))||X(_,0)}),f&&N.length&&(R[d]=[]),N.forEach(function(_){R[d].push(_)}),c["camel-case-expansion"]&&c["strip-dashed"]&&Object.keys(R).filter(_=>_!=="--"&&_.includes("-")).forEach(_=>{delete R[_]}),c["strip-aliased"]&&[].concat(...Object.keys(a).map(_=>a[_])).forEach(_=>{c["camel-case-expansion"]&&_.includes("-")&&delete R[_.split(".").map(P=>kn(P)).join(".")],delete R[_]});function se(_){let P=q("_",_);(typeof P=="string"||typeof P=="number")&&R._.push(P)}s(se,"pushPositional");function Fe(_,P,j,E){let O,V=te(P,g.nargs);if(V=typeof V!="number"||isNaN(V)?1:V,V===0)return Et(E)||(I=Error(v("Argument unexpected for: %s",P))),X(P,_e(P)),_;let M=Et(E)?0:1;if(c["nargs-eats-options"])j.length-(_+1)+M<V&&(I=Error(v("Not enough arguments following: %s",P))),M=V;else{for(O=_+1;O<j.length&&(!j[O].match(/^-[^0-9]/)||j[O].match(w)||Ce(j[O]));O++)M++;M<V&&(I=Error(v("Not enough arguments following: %s",P)))}let G=Math.min(M,V);for(!Et(E)&&G>0&&(X(P,E),G--),O=_+1;O<G+_+1;O++)X(P,j[O]);return _+G}s(Fe,"eatNargs");function $e(_,P,j,E){let O=[],V=E||j[_+1],M=te(P,g.nargs);if(te(P,g.bools)&&!/^(true|false)$/.test(V))O.push(!0);else if(Et(V)||Et(E)&&/^-/.test(V)&&!w.test(V)&&!Ce(V)){if(u[P]!==void 0){let G=u[P];O=Array.isArray(G)?G:[G]}}else{Et(E)||O.push(C(P,E,!0));for(let G=_+1;G<j.length&&!(!c["greedy-arrays"]&&O.length>0||M&&typeof M=="number"&&O.length>=M||(V=j[G],/^-/.test(V)&&!w.test(V)&&!Ce(V)));G++)_=G,O.push(C(P,V,o))}return typeof M=="number"&&(M&&O.length<M||isNaN(M)&&O.length===0)&&(I=Error(v("Not enough arguments following: %s",P))),X(P,O),_}s($e,"eatArray");function X(_,P,j=o){if(/-/.test(_)&&c["camel-case-expansion"]){let V=_.split(".").map(function(M){return kn(M)}).join(".");k(_,V)}let E=C(_,P,j),O=_.split(".");Y(R,O,E),g.aliases[_]&&g.aliases[_].forEach(function(V){let M=V.split(".");Y(R,M,E)}),O.length>1&&c["dot-notation"]&&(g.aliases[O[0]]||[]).forEach(function(V){let M=V.split("."),G=[].concat(O);G.shift(),M=M.concat(G),(g.aliases[_]||[]).includes(M.join("."))||Y(R,M,E)}),te(_,g.normalize)&&!te(_,g.arrays)&&[_].concat(g.aliases[_]||[]).forEach(function(M){Object.defineProperty(he,M,{enumerable:!0,get(){return P},set(G){P=typeof G=="string"?Ur.normalize(G):G}})})}s(X,"setArg");function k(_,P){g.aliases[_]&&g.aliases[_].length||(g.aliases[_]=[P],h[P]=!0),g.aliases[P]&&g.aliases[P].length||k(P,_)}s(k,"addNewAlias");function C(_,P,j){j&&(P=pw(P)),(te(_,g.bools)||te(_,g.counts))&&typeof P=="string"&&(P=P==="true");let E=Array.isArray(P)?P.map(function(O){return q(_,O)}):q(_,P);return te(_,g.counts)&&(Et(E)||typeof E=="boolean")&&(E=Bu()),te(_,g.normalize)&&te(_,g.arrays)&&(Array.isArray(P)?E=P.map(O=>Ur.normalize(O)):E=Ur.normalize(P)),E}s(C,"processValue");function q(_,P){return!c["parse-positional-numbers"]&&_==="_"||!te(_,g.strings)&&!te(_,g.bools)&&!Array.isArray(P)&&(va(P)&&c["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${P}`)))||!Et(P)&&te(_,g.numbers))&&(P=Number(P)),P}s(q,"maybeCoerceNumber");function Z(_){let P=Object.create(null);Ee(P,g.aliases,u),Object.keys(g.configs).forEach(function(j){let E=_[j]||P[j];if(E)try{let O=null,V=Ur.resolve(Ur.cwd(),E),M=g.configs[j];if(typeof M=="function"){try{O=M(V)}catch(G){O=G}if(O instanceof Error){I=O;return}}else O=Ur.require(V);ce(O)}catch(O){O.name==="PermissionDenied"?I=O:_[j]&&(I=Error(v("Invalid JSON config file: %s",E)))}})}s(Z,"setConfig");function ce(_,P){Object.keys(_).forEach(function(j){let E=_[j],O=P?P+"."+j:j;typeof E=="object"&&E!==null&&!Array.isArray(E)&&c["dot-notation"]?ce(E,O):(!Ht(R,O.split("."))||te(O,g.arrays)&&c["combine-arrays"])&&X(O,E)})}s(ce,"setConfigObject");function be(){typeof l<"u"&&l.forEach(function(_){ce(_)})}s(be,"setConfigObjects");function ge(_,P){if(typeof p>"u")return;let j=typeof p=="string"?p:"",E=Ur.env();Object.keys(E).forEach(function(O){if(j===""||O.lastIndexOf(j,0)===0){let V=O.split("__").map(function(M,G){return G===0&&(M=M.substring(j.length)),kn(M)});(P&&g.configs[V.join(".")]||!P)&&!Ht(_,V)&&X(V.join("."),E[O])}})}s(ge,"applyEnvVars");function Ve(_){let P,j=new Set;Object.keys(_).forEach(function(E){if(!j.has(E)&&(P=te(E,g.coercions),typeof P=="function"))try{let O=q(E,P(_[E]));[].concat(g.aliases[E]||[],E).forEach(V=>{j.add(V),_[V]=O})}catch(O){I=O}})}s(Ve,"applyCoercions");function $r(_){return g.keys.forEach(P=>{~P.indexOf(".")||typeof _[P]>"u"&&(_[P]=void 0)}),_}s($r,"setPlaceholderKeys");function Ee(_,P,j,E=!1){Object.keys(j).forEach(function(O){Ht(_,O.split("."))||(Y(_,O.split("."),j[O]),E&&(y[O]=!0),(P[O]||[]).forEach(function(V){Ht(_,V.split("."))||Y(_,V.split("."),j[O])}))})}s(Ee,"applyDefaultsAndAliases");function Ht(_,P){let j=_;c["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(O){j=j[O]||{}});let E=P[P.length-1];return typeof j!="object"?!1:E in j}s(Ht,"hasKey");function Y(_,P,j){let E=_;c["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(Ye){Ye=Wm(Ye),typeof E=="object"&&E[Ye]===void 0&&(E[Ye]={}),typeof E[Ye]!="object"||Array.isArray(E[Ye])?(Array.isArray(E[Ye])?E[Ye].push({}):E[Ye]=[E[Ye],{}],E=E[Ye][E[Ye].length-1]):E=E[Ye]});let O=Wm(P[P.length-1]),V=te(P.join("."),g.arrays),M=Array.isArray(j),G=c["duplicate-arguments-array"];!G&&te(O,g.nargs)&&(G=!0,(!Et(E[O])&&g.nargs[O]===1||Array.isArray(E[O])&&E[O].length===g.nargs[O])&&(E[O]=void 0)),j===Bu()?E[O]=Bu(E[O]):Array.isArray(E[O])?G&&V&&M?E[O]=c["flatten-duplicate-arrays"]?E[O].concat(j):(Array.isArray(E[O][0])?E[O]:[E[O]]).concat([j]):!G&&!!V==!!M?E[O]=j:E[O]=E[O].concat([j]):E[O]===void 0&&V?E[O]=M?j:[j]:G&&!(E[O]===void 0||te(O,g.counts)||te(O,g.bools))?E[O]=[E[O],j]:E[O]=j}s(Y,"setKey");function $t(..._){_.forEach(function(P){Object.keys(P||{}).forEach(function(j){g.aliases[j]||(g.aliases[j]=[].concat(a[j]||[]),g.aliases[j].concat(j).forEach(function(E){if(/-/.test(E)&&c["camel-case-expansion"]){let O=kn(E);O!==j&&g.aliases[j].indexOf(O)===-1&&(g.aliases[j].push(O),h[O]=!0)}}),g.aliases[j].concat(j).forEach(function(E){if(E.length>1&&/[A-Z]/.test(E)&&c["camel-case-expansion"]){let O=ya(E,"-");O!==j&&g.aliases[j].indexOf(O)===-1&&(g.aliases[j].push(O),h[O]=!0)}}),g.aliases[j].forEach(function(E){g.aliases[E]=[j].concat(g.aliases[j].filter(function(O){return E!==O}))}))})})}s($t,"extendAliases");function te(_,P){let j=[].concat(g.aliases[_]||[],_),E=Object.keys(P),O=j.find(V=>E.includes(V));return O?P[O]:!1}s(te,"checkAllAliases");function Ae(_){let P=Object.keys(g);return[].concat(P.map(E=>g[E])).some(function(E){return Array.isArray(E)?E.includes(_):E[_]})}s(Ae,"hasAnyFlag");function Q(_,...P){return[].concat(...P).some(function(E){let O=_.match(E);return O&&Ae(O[1])})}s(Q,"hasFlagsMatching");function xe(_){if(_.match(w)||!_.match(/^-[^-]+/))return!1;let P=!0,j,E=_.slice(1).split("");for(let O=0;O<E.length;O++){if(j=_.slice(O+2),!Ae(E[O])){P=!1;break}if(E[O+1]&&E[O+1]==="="||j==="-"||/[A-Za-z]/.test(E[O])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(j)||E[O+1]&&E[O+1].match(/\W/))break}return P}s(xe,"hasAllShortFlags");function Ce(_){return c["unknown-options-as-args"]&&fe(_)}s(Ce,"isUnknownOptionAsArg");function fe(_){return _=_.replace(/^-{3,}/,"--"),_.match(w)||xe(_)?!1:!Q(_,/^-+([^=]+?)=[\s\S]*$/,A,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}s(fe,"isUnknownOption");function _e(_){return!te(_,g.bools)&&!te(_,g.counts)&&`${_}`in u?u[_]:Me(it(_))}s(_e,"defaultValue");function Me(_){return{[Ut.BOOLEAN]:!0,[Ut.STRING]:"",[Ut.NUMBER]:void 0,[Ut.ARRAY]:[]}[_]}s(Me,"defaultForType");function it(_){let P=Ut.BOOLEAN;return te(_,g.strings)?P=Ut.STRING:te(_,g.numbers)?P=Ut.NUMBER:te(_,g.bools)?P=Ut.BOOLEAN:te(_,g.arrays)&&(P=Ut.ARRAY),P}s(it,"guessType");function Et(_){return _===void 0}s(Et,"isUndefined");function Ci(){Object.keys(g.counts).find(_=>te(_,g.arrays)?(I=Error(v("Invalid configuration: %s, opts.count excludes opts.array.",_)),!0):te(_,g.nargs)?(I=Error(v("Invalid configuration: %s, opts.count excludes opts.narg.",_)),!0):!1)}return s(Ci,"checkConfiguration"),{aliases:Object.assign({},g.aliases),argv:Object.assign(he,R),configuration:c,defaulted:Object.assign({},y),error:I,newAliases:Object.assign({},h)}}};s(Hu,"YargsParser");var ba=Hu;function fw(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let o=i+1;o<t.length;o++)if(t[i].filter(function(c){return t[o].indexOf(c)!==-1}).length){t[i]=t[i].concat(t[o]),t.splice(o,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(a,c,u){return u.indexOf(a)===c});let o=i.pop();o!==void 0&&typeof o=="string"&&(r[o]=i)}),r}s(fw,"combineAliases");function Bu(e){return e!==void 0?e+1:1}s(Bu,"increment");function Wm(e){return e==="__proto__"?"___proto___":e}s(Wm,"sanitizeKey");function pw(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}s(pw,"stripQuotes");var Jm=require("fs");var Uu,zu,Gu,Km=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,Zm=(zu=(Uu=process==null?void 0:process.versions)===null||Uu===void 0?void 0:Uu.node)!==null&&zu!==void 0?zu:(Gu=process==null?void 0:process.version)===null||Gu===void 0?void 0:Gu.slice(1);if(Zm&&Number(Zm.match(/^([^.]+)/)[1])<Km)throw Error(`yargs parser supports a minimum Node.js version of ${Km}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var dw=process?process.env:{},Qm=new ba({cwd:process.cwd,env:s(()=>dw,"env"),format:Ym.format,normalize:_a.normalize,resolve:_a.resolve,require:s(e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,Jm.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")},"require")}),zs=s(function(t,r){return Qm.parse(t.slice(),r).argv},"Parser");zs.detailed=function(e,t){return Qm.parse(e.slice(),t)};zs.camelCase=kn;zs.decamelize=ya;zs.looksLikeNumber=va;var Wu=zs;var ur=require("path");function Xm(){return hw()?0:1}s(Xm,"getProcessArgvBinIndex");function hw(){return mw()&&!process.defaultApp}s(hw,"isBundledElectronApp");function mw(){return!!process.versions.electron}s(mw,"isElectronApp");function Ku(e){return e.slice(Xm()+1)}s(Ku,"hideBin");function eg(){return process.argv[Xm()]}s(eg,"getProcessArgvBin");var Sa=class Sa extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,Sa)}};s(Sa,"YError");var je=Sa;var ji=require("fs"),tg=require("util"),rg=require("path");var ng={fs:{readFileSync:ji.readFileSync,writeFile:ji.writeFile},format:tg.format,resolve:rg.resolve,exists:s(e=>{try{return(0,ji.statSync)(e).isFile()}catch{return!1}},"exists")};var cr,Yu=class Yu{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:!0,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=t.shift(),n=s(function(){},"cb");return typeof t[t.length-1]=="function"&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),cr.format.apply(cr.format,[this.cache[this.locale][r]||r].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),r=t.shift(),n=t.shift(),i=t.shift(),o=s(function(){},"cb");typeof t[t.length-1]=="function"&&(o=t.pop()),this.cache[this.locale]||this._readLocaleFile();let a=i===1?r:n;this.cache[this.locale][r]&&(a=this.cache[this.locale][r][i===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:o})):o();let c=[a];return~a.indexOf("%d")&&c.push(i),cr.format.apply(cr.format,c.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.cache[this.locale][r]=t[r])}_taggedLiteral(t,...r){let n="";return t.forEach(function(i,o){let a=r[o+1];n+=i,typeof a<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let t=this,r=this.writeQueue[0],n=r.directory,i=r.locale,o=r.cb,a=this._resolveLocaleFile(n,i),c=JSON.stringify(this.cache[i],null,2);cr.fs.writeFile(a,c,"utf-8",function(u){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),o(u)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{cr.fs.readFileSync&&(t=JSON.parse(cr.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=cr.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=cr.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return cr.exists(t)}};s(Yu,"Y18N");var Zu=Yu;function ig(e,t){cr=t;let r=new Zu(e);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}s(ig,"y18n");var gw=s(e=>ig(e,ng),"y18n"),sg=gw;var bw={};var yw="require is not supported by ESM",og="loading a directory of commands is not supported yet for ESM",Gs;try{Gs=(0,ug.fileURLToPath)(bw.url)}catch{Gs=process.cwd()}var vw=Gs.substring(0,Gs.lastIndexOf("node_modules")),Ju={assert:{notStrictEqual:Oa.notStrictEqual,strictEqual:Oa.strictEqual},cliui:Fu,findUp:Vu,getEnv:s(e=>process.env[e],"getEnv"),inspect:ag.inspect,getCallerFile:s(()=>{throw new je(og)},"getCallerFile"),getProcessArgvBin:eg,mainFilename:vw||process.cwd(),Parser:Wu,path:{basename:ur.basename,dirname:ur.dirname,extname:ur.extname,relative:ur.relative,resolve:ur.resolve},process:{argv:s(()=>process.argv,"argv"),cwd:process.cwd,emitWarning:s((e,t)=>process.emitWarning(e,t),"emitWarning"),execPath:s(()=>process.execPath,"execPath"),exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:cg.readFileSync,require:s(()=>{throw new je(yw)},"require"),requireDirectory:s(()=>{throw new je(og)},"requireDirectory"),stringWidth:s(e=>[...e].length,"stringWidth"),y18n:sg({directory:(0,ur.resolve)(Gs,"../../../locales"),updateFiles:!1})};function vt(e,t,r,n){r.assert.notStrictEqual(e,t,n)}s(vt,"assertNotStrictEqual");function Qu(e,t){t.assert.strictEqual(typeof e,"string")}s(Qu,"assertSingleKey");function Ri(e){return Object.keys(e)}s(Ri,"objectKeys");function Re(e){return!!e&&!!e.then&&typeof e.then=="function"}s(Re,"isPromise");function nn(e){let r=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,i=r.shift();if(!i)throw new Error(`No command found in: ${e}`);let o={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((a,c)=>{let u=!1;a=a.replace(/\s/g,""),/\.+[\]>]/.test(a)&&c===r.length-1&&(u=!0),/^\[/.test(a)?o.optional.push({cmd:a.replace(n,"").split("|"),variadic:u}):o.demanded.push({cmd:a.replace(n,"").split("|"),variadic:u})}),o}s(nn,"parseCommand");var _w=["first","second","third","fourth","fifth","sixth"];function F(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[nn(`cmd ${e}`),t,r]}s(n,"parseArgs");try{let i=0,[o,a,c]=n(),u=[].slice.call(a);for(;u.length&&u[u.length-1]===void 0;)u.pop();let l=c||u.length;if(l<o.demanded.length)throw new je(`Not enough arguments provided. Expected ${o.demanded.length} but received ${u.length}.`);let p=o.demanded.length+o.optional.length;if(l>p)throw new je(`Too many arguments provided. Expected max ${p} but received ${l}.`);o.demanded.forEach(f=>{let d=u.shift(),h=lg(d);f.cmd.filter(v=>v===h||v==="*").length===0&&fg(h,f.cmd,i),i+=1}),o.optional.forEach(f=>{if(u.length===0)return;let d=u.shift(),h=lg(d);f.cmd.filter(v=>v===h||v==="*").length===0&&fg(h,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}s(F,"argsert");function lg(e){return Array.isArray(e)?"array":e===null?"null":typeof e}s(lg,"guessType");function fg(e,t,r){throw new je(`Invalid ${_w[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}s(fg,"argumentTypeError");var Xu=class Xu{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,r,n=!0,i=!1){if(F("<array|function> [boolean] [boolean] [boolean]",[t,r,n],arguments.length),Array.isArray(t)){for(let o=0;o<t.length;o++){if(typeof t[o]!="function")throw Error("middleware must be a function");let a=t[o];a.applyBeforeValidation=r,a.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let o=t;o.applyBeforeValidation=r,o.global=n,o.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,r){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let o=[...n[r]||[],r];return i.option?!o.includes(i.option):!0}),t.option=r,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global)}};s(Xu,"GlobalMiddleware");var Pa=Xu;function pg(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}s(pg,"commandMiddlewareFactory");function Mn(e,t,r,n){return r.reduce((i,o)=>{if(o.applyBeforeValidation!==n)return i;if(o.mutates){if(o.applied)return i;o.applied=!0}if(Re(i))return i.then(a=>Promise.all([a,o(a,t)])).then(([a,c])=>Object.assign(a,c));{let a=o(i,t);return Re(a)?a.then(c=>Object.assign(i,c)):Object.assign(i,a)}},e)}s(Mn,"applyMiddleware");function qn(e,t,r=n=>{throw n}){try{let n=Sw(e)?e():e;return Re(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}s(qn,"maybeAsyncResult");function Sw(e){return typeof e=="function"}s(Sw,"isFunction");function el(e){if(typeof require>"u")return null;for(let t=0,r=Object.keys(require.cache),n;t<r.length;t++)if(n=require.cache[r[t]],n.exports===e)return n;return null}s(el,"whichModule");var Ti=/(^\*)|(^\$0)/,rl=class rl{constructor(t,r,n,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=n,this.validation=r}addDirectory(t,r,n,i){i=i||{},typeof i.recurse!="boolean"&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);let o=typeof i.visit=="function"?i.visit:a=>a;i.visit=(a,c,u)=>{let l=o(a,c,u);if(l){if(this.requireCache.has(c))return l;this.requireCache.add(c),this.addHandler(l)}return l},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,o,a){let c=[],u=pg(o);if(i=i||(()=>{}),Array.isArray(t))if(Ow(t))[t,...c]=t;else for(let l of t)this.addHandler(l);else if(ww(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(dg(n)){this.addHandler([t].concat(c),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=nn(t);c=c.map(d=>nn(d).cmd);let p=!1,f=[l.cmd].concat(c).filter(d=>Ti.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(Ti,l.cmd)),c.forEach(d=>{this.aliasMap[d]=l.cmd}),r!==!1&&this.usage.command(t,r,p,c,a),this.handlers[l.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:u,deprecated:a,demanded:l.demanded,optional:l.optional},p&&(this.defaultCommand=this.handlers[l.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,r,n,i,o,a){let c=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,u=r.getInternalMethods().getContext(),l=u.commands.slice(),p=!t;t&&(u.commands.push(t),u.fullCommands.push(c.original));let f=this.applyBuilderUpdateUsageAndParse(p,c,r,n.aliases,l,i,o,a);return Re(f)?f.then(d=>this.applyMiddlewareAndGetResult(p,c,d.innerArgv,u,o,d.aliases,r)):this.applyMiddlewareAndGetResult(p,c,f.innerArgv,u,o,f.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,o,a,c,u){let l=r.builder,p=n;if(wa(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),u);if(Re(f))return f.then(d=>(p=mg(d)?d:n,this.parseAndUpdateUsage(t,r,p,o,a,c)))}else Pw(l)&&(n.getInternalMethods().getUsageInstance().freeze(),p=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(f=>{p.option(f,l[f])}));return this.parseAndUpdateUsage(t,r,p,o,a,c)}parseAndUpdateUsage(t,r,n,i,o,a){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let c=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,o,a);return Re(c)?c.then(u=>({aliases:n.parsed.aliases,innerArgv:u})):{aliases:n.parsed.aliases,innerArgv:c}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=Ti.test(r.original)?r.original.replace(Ti,"").trim():r.original,i=t.filter(o=>!Ti.test(o));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,o,a,c,u){if(!a.getInternalMethods().getHasOutput()){let l=a.getInternalMethods().runValidation(o,u,a.parsed.error,t);n=qn(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=Mn(n,a,c,!1),n=qn(n,p=>{let f=r.handler(p);return Re(f)?f.then(()=>p):p}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),Re(n)&&!a.getInternalMethods().hasParseCallback()&&n.catch(p=>{try{a.getInternalMethods().getUsageInstance().fail(null,p)}catch{}})}return t||(i.commands.pop(),i.fullCommands.pop()),n}applyMiddlewareAndGetResult(t,r,n,i,o,a,c){let u={};if(o)return n;c.getInternalMethods().getHasOutput()||(u=this.populatePositionals(r,n,i,c));let l=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),p=Mn(n,c,l,!0);return Re(p)?p.then(f=>this.handleValidationAndGetResult(t,r,f,i,a,c,l,u)):this.handleValidationAndGetResult(t,r,p,i,a,c,l,u)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let o=t.demanded.slice(0),a=t.optional.slice(0),c={};for(this.validation.positionalCount(o.length,r._.length);o.length;){let u=o.shift();this.populatePositional(u,r,c)}for(;a.length;){let u=a.shift();this.populatePositional(u,r,c)}return r._=n.commands.concat(r._.map(u=>""+u)),this.postProcessPositionals(r,c,this.cmdToParseOptions(t.original),i),c}populatePositional(t,r,n){let i=t.cmd[0];t.variadic?n[i]=r._.splice(0).map(String):r._.length&&(n[i]=[String(r._.shift())])}cmdToParseOptions(t){let r={array:[],default:{},alias:{},demand:{}},n=nn(t);return n.demanded.forEach(i=>{let[o,...a]=i.cmd;i.variadic&&(r.array.push(o),r.default[o]=[]),r.alias[o]=a,r.demand[o]=!0}),n.optional.forEach(i=>{let[o,...a]=i.cmd;i.variadic&&(r.array.push(o),r.default[o]=[]),r.alias[o]=a}),r}postProcessPositionals(t,r,n,i){let o=Object.assign({},i.getOptions());o.default=Object.assign(n.default,o.default);for(let l of Object.keys(n.alias))o.alias[l]=(o.alias[l]||[]).concat(n.alias[l]);o.array=o.array.concat(n.array),o.config={};let a=[];if(Object.keys(r).forEach(l=>{r[l].map(p=>{o.configuration["unknown-options-as-args"]&&(o.key[l]=!0),a.push(`--${l}`),a.push(p)})}),!a.length)return;let c=Object.assign({},o.configuration,{"populate--":!1}),u=this.shim.Parser.detailed(a,Object.assign({},o,{configuration:c}));if(u.error)i.getInternalMethods().getUsageInstance().fail(u.error.message,u.error);else{let l=Object.keys(r);Object.keys(r).forEach(p=>{l.push(...u.aliases[p])}),Object.keys(u.argv).forEach(p=>{l.includes(p)&&(r[p]||(r[p]=u.argv[p]),!this.isInConfigs(i,p)&&!this.isDefaulted(i,p)&&Object.prototype.hasOwnProperty.call(t,p)&&Object.prototype.hasOwnProperty.call(u.argv,p)&&(Array.isArray(t[p])||Array.isArray(u.argv[p]))?t[p]=[].concat(t[p],u.argv[p]):t[p]=u.argv[p])})}}isDefaulted(t,r){let{default:n}=t.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(t,r){let{configObjects:n}=t.getOptions();return n.some(i=>Object.prototype.hasOwnProperty.call(i,r))||n.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let n=Ti.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(wa(r))return r(t,!0);dg(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=el(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;vt(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();vt(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};s(rl,"CommandInstance");var tl=rl;function hg(e,t,r,n){return new tl(e,t,r,n)}s(hg,"command");function dg(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}s(dg,"isCommandBuilderDefinition");function Ow(e){return e.every(t=>typeof t=="string")}s(Ow,"isCommandAndAliases");function wa(e){return typeof e=="function"}s(wa,"isCommandBuilderCallback");function Pw(e){return typeof e=="object"}s(Pw,"isCommandBuilderOptionDefinitions");function ww(e){return typeof e=="object"&&!Array.isArray(e)}s(ww,"isCommandHandlerDefinition");function sn(e={},t=()=>!0){let r={};return Ri(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}s(sn,"objFilter");function on(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let r=t;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(e)})}s(on,"setBlocking");function $w(e){return typeof e=="boolean"}s($w,"isBoolean");function yg(e,t){let r=t.y18n.__,n={},i=[];n.failFn=s(function(C){i.push(C)},"failFn");let o=null,a=null,c=!0;n.showHelpOnFail=s(function(C=!0,q){let[Z,ce]=typeof C=="string"?[!0,C]:[C,q];return e.getInternalMethods().isGlobalContext()&&(a=ce),o=ce,c=Z,n},"showHelpOnFailFn");let u=!1;n.fail=s(function(C,q){let Z=e.getInternalMethods().getLoggerInstance();if(i.length)for(let ce=i.length-1;ce>=0;--ce){let be=i[ce];if($w(be)){if(q)throw q;if(C)throw Error(C)}else be(C,q,n)}else{if(e.getExitProcess()&&on(!0),!u){u=!0,c&&(e.showHelp("error"),Z.error()),(C||q)&&Z.error(C||q);let ce=o||a;ce&&((C||q)&&Z.error(""),Z.error(ce))}if(q=q||new je(C),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,q);throw q}},"fail");let l=[],p=!1;n.usage=(k,C)=>k===null?(p=!0,l=[],n):(p=!1,l.push([k,C||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>p,n.getPositionalGroupName=()=>r("Positionals:");let f=[];n.example=(k,C)=>{f.push([k,C||""])};let d=[];n.command=s(function(C,q,Z,ce,be=!1){Z&&(d=d.map(ge=>(ge[2]=!1,ge))),d.push([C,q||"",Z,ce,be])},"command"),n.getCommands=()=>d;let h={};n.describe=s(function(C,q){Array.isArray(C)?C.forEach(Z=>{n.describe(Z,q)}):typeof C=="object"?Object.keys(C).forEach(Z=>{n.describe(Z,C[Z])}):h[C]=q},"describe"),n.getDescriptions=()=>h;let y=[];n.epilog=k=>{y.push(k)};let v=!1,g;n.wrap=k=>{v=!0,g=k},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(v||(g=Fe(),v=!0),g);let w="__yargsString__:";n.deferY18nLookup=k=>w+k,n.help=s(function(){if(N)return N;I();let C=e.customScriptName?e.$0:t.path.basename(e.$0),q=e.getDemandedOptions(),Z=e.getDemandedCommands(),ce=e.getDeprecatedOptions(),be=e.getGroups(),ge=e.getOptions(),Ve=[];Ve=Ve.concat(Object.keys(h)),Ve=Ve.concat(Object.keys(q)),Ve=Ve.concat(Object.keys(Z)),Ve=Ve.concat(Object.keys(ge.default)),Ve=Ve.filter(he),Ve=Object.keys(Ve.reduce((Q,xe)=>(xe!=="_"&&(Q[xe]=!0),Q),{}));let $r=n.getWrap(),Ee=t.cliui({width:$r,wrap:!!$r});if(!p){if(l.length)l.forEach(Q=>{Ee.div({text:`${Q[0].replace(/\$0/g,C)}`}),Q[1]&&Ee.div({text:`${Q[1]}`,padding:[1,0,0,0]})}),Ee.div();else if(d.length){let Q=null;Z._?Q=`${C} <${r("command")}>
|
|
79
|
+
`:Q=`${C} [${r("command")}]
|
|
80
|
+
`,Ee.div(`${Q}`)}}if(d.length>1||d.length===1&&!d[0][2]){Ee.div(r("Commands:"));let Q=e.getInternalMethods().getContext(),xe=Q.commands.length?`${Q.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(d=d.sort((fe,_e)=>fe[0].localeCompare(_e[0])));let Ce=C?`${C} `:"";d.forEach(fe=>{let _e=`${Ce}${xe}${fe[0].replace(/^\$0 ?/,"")}`;Ee.span({text:_e,padding:[0,2,0,2],width:A(d,$r,`${C}${xe}`)+4},{text:fe[1]});let Me=[];fe[2]&&Me.push(`[${r("default")}]`),fe[3]&&fe[3].length&&Me.push(`[${r("aliases:")} ${fe[3].join(", ")}]`),fe[4]&&(typeof fe[4]=="string"?Me.push(`[${r("deprecated: %s",fe[4])}]`):Me.push(`[${r("deprecated")}]`)),Me.length?Ee.div({text:Me.join(" "),padding:[0,0,0,2],align:"right"}):Ee.div()}),Ee.div()}let Ht=(Object.keys(ge.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);Ve=Ve.filter(Q=>!e.parsed.newAliases[Q]&&Ht.every(xe=>(ge.alias[xe]||[]).indexOf(Q)===-1));let Y=r("Options:");be[Y]||(be[Y]=[]),R(Ve,ge.alias,be,Y);let $t=s(Q=>/^--/.test($a(Q)),"isLongSwitch"),te=Object.keys(be).filter(Q=>be[Q].length>0).map(Q=>{let xe=be[Q].filter(he).map(Ce=>{if(Ht.includes(Ce))return Ce;for(let fe=0,_e;(_e=Ht[fe])!==void 0;fe++)if((ge.alias[_e]||[]).includes(Ce))return _e;return Ce});return{groupName:Q,normalizedKeys:xe}}).filter(({normalizedKeys:Q})=>Q.length>0).map(({groupName:Q,normalizedKeys:xe})=>{let Ce=xe.reduce((fe,_e)=>(fe[_e]=[_e].concat(ge.alias[_e]||[]).map(Me=>Q===n.getPositionalGroupName()?Me:(/^[0-9]$/.test(Me)?ge.boolean.includes(_e)?"-":"--":Me.length>1?"--":"-")+Me).sort((Me,it)=>$t(Me)===$t(it)?0:$t(Me)?1:-1).join(", "),fe),{});return{groupName:Q,normalizedKeys:xe,switches:Ce}});if(te.filter(({groupName:Q})=>Q!==n.getPositionalGroupName()).some(({normalizedKeys:Q,switches:xe})=>!Q.every(Ce=>$t(xe[Ce])))&&te.filter(({groupName:Q})=>Q!==n.getPositionalGroupName()).forEach(({normalizedKeys:Q,switches:xe})=>{Q.forEach(Ce=>{$t(xe[Ce])&&(xe[Ce]=Ew(xe[Ce],4))})}),te.forEach(({groupName:Q,normalizedKeys:xe,switches:Ce})=>{Ee.div(Q),xe.forEach(fe=>{let _e=Ce[fe],Me=h[fe]||"",it=null;Me.includes(w)&&(Me=r(Me.substring(w.length))),ge.boolean.includes(fe)&&(it=`[${r("boolean")}]`),ge.count.includes(fe)&&(it=`[${r("count")}]`),ge.string.includes(fe)&&(it=`[${r("string")}]`),ge.normalize.includes(fe)&&(it=`[${r("string")}]`),ge.array.includes(fe)&&(it=`[${r("array")}]`),ge.number.includes(fe)&&(it=`[${r("number")}]`);let Et=s(P=>typeof P=="string"?`[${r("deprecated: %s",P)}]`:`[${r("deprecated")}]`,"deprecatedExtra"),Ci=[fe in ce?Et(ce[fe]):null,it,fe in q?`[${r("required")}]`:null,ge.choices&&ge.choices[fe]?`[${r("choices:")} ${n.stringifiedValues(ge.choices[fe])}]`:null,se(ge.default[fe],ge.defaultDescription[fe])].filter(Boolean).join(" ");Ee.span({text:$a(_e),padding:[0,2,0,2+gg(_e)],width:A(Ce,$r)+4},Me);let _=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;Ci&&!_?Ee.div({text:Ci,padding:[0,0,0,2],align:"right"}):Ee.div()}),Ee.div()}),f.length&&(Ee.div(r("Examples:")),f.forEach(Q=>{Q[0]=Q[0].replace(/\$0/g,C)}),f.forEach(Q=>{Q[1]===""?Ee.div({text:Q[0],padding:[0,2,0,2]}):Ee.div({text:Q[0],padding:[0,2,0,2],width:A(f,$r)+4},{text:Q[1]})}),Ee.div()),y.length>0){let Q=y.map(xe=>xe.replace(/\$0/g,C)).join(`
|
|
81
81
|
`);Ee.div(`${Q}
|
|
82
|
-
`)}return Ee.toString().replace(/\s*$/,"")},"help");function A(
|
|
82
|
+
`)}return Ee.toString().replace(/\s*$/,"")},"help");function A(k,C,q){let Z=0;return Array.isArray(k)||(k=Object.values(k).map(ce=>[ce])),k.forEach(ce=>{Z=Math.max(t.stringWidth(q?`${q} ${$a(ce[0])}`:$a(ce[0]))+gg(ce[0]),Z)}),C&&(Z=Math.min(Z,parseInt((C*.5).toString(),10))),Z}s(A,"maxWidth");function I(){let k=e.getDemandedOptions(),C=e.getOptions();(Object.keys(C.alias)||[]).forEach(q=>{C.alias[q].forEach(Z=>{h[Z]&&n.describe(q,h[Z]),Z in k&&e.demandOption(q,k[Z]),C.boolean.includes(Z)&&e.boolean(q),C.count.includes(Z)&&e.count(q),C.string.includes(Z)&&e.string(q),C.normalize.includes(Z)&&e.normalize(q),C.array.includes(Z)&&e.array(q),C.number.includes(Z)&&e.number(q)})})}s(I,"normalizeAliases");let N;n.cacheHelpMessage=function(){N=this.help()},n.clearCachedHelpMessage=function(){N=void 0},n.hasCachedHelpMessage=function(){return!!N};function R(k,C,q,Z){let ce=[],be=null;return Object.keys(q).forEach(ge=>{ce=ce.concat(q[ge])}),k.forEach(ge=>{be=[ge].concat(C[ge]),be.some(Ve=>ce.indexOf(Ve)!==-1)||q[Z].push(ge)}),ce}s(R,"addUngroupedKeys");function he(k){return e.getOptions().hiddenOptions.indexOf(k)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}s(he,"filterHiddenOptions"),n.showHelp=k=>{let C=e.getInternalMethods().getLoggerInstance();k||(k="error"),(typeof k=="function"?k:C[k])(n.help())},n.functionDescription=k=>["(",k.name?t.Parser.decamelize(k.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=s(function(C,q){let Z="",ce=q||", ",be=[].concat(C);return!C||!be.length||be.forEach(ge=>{Z.length&&(Z+=ce),Z+=JSON.stringify(ge)}),Z},"stringifiedValues");function se(k,C){let q=`[${r("default:")} `;if(k===void 0&&!C)return null;if(C)q+=C;else switch(typeof k){case"string":q+=`"${k}"`;break;case"object":q+=JSON.stringify(k);break;default:q+=k}return`${q}]`}s(se,"defaultString");function Fe(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}s(Fe,"windowWidth");let $e=null;n.version=k=>{$e=k},n.showVersion=k=>{let C=e.getInternalMethods().getLoggerInstance();k||(k="error"),(typeof k=="function"?k:C[k])($e)},n.reset=s(function(C){return o=null,u=!1,l=[],p=!1,y=[],f=[],d=[],h=sn(h,q=>!C[q]),n},"reset");let X=[];return n.freeze=s(function(){X.push({failMessage:o,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h})},"freeze"),n.unfreeze=s(function(C=!1){let q=X.pop();q&&(C?(h={...q.descriptions,...h},d=[...q.commands,...d],l=[...q.usages,...l],f=[...q.examples,...f],y=[...q.epilogs,...y]):{failMessage:o,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h}=q)},"unfreeze"),n}s(yg,"usage");function nl(e){return typeof e=="object"}s(nl,"isIndentedText");function Ew(e,t){return nl(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}s(Ew,"addIndentation");function gg(e){return nl(e)?e.indentation:0}s(gg,"getIndentation");function $a(e){return nl(e)?e.text:e}s($a,"getText");var vg=`###-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
|
-
`,
|
|
110
|
+
`,bg=`#compdef {{app_name}}
|
|
111
111
|
###-begin-{{app_name}}-completions-###
|
|
112
112
|
#
|
|
113
113
|
# yargs command completion script
|
|
@@ -126,22 +126,22 @@ _{{app_name}}_yargs_completions()
|
|
|
126
126
|
}
|
|
127
127
|
compdef _{{app_name}}_yargs_completions {{app_name}}
|
|
128
128
|
###-end-{{app_name}}-completions-###
|
|
129
|
-
`;var
|
|
129
|
+
`;var sl=class sl{constructor(t,r,n,i){var o,a,c;this.yargs=t,this.usage=r,this.command=n,this.shim=i,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(c=((o=this.shim.getEnv("SHELL"))===null||o===void 0?void 0:o.includes("zsh"))||((a=this.shim.getEnv("ZSH_NAME"))===null||a===void 0?void 0:a.includes("zsh")))!==null&&c!==void 0?c:!1}defaultCompletion(t,r,n,i){let o=this.command.getCommandHandlers();for(let c=0,u=t.length;c<u;++c)if(o[t[c]]&&o[t[c]].builder){let l=o[t[c]].builder;if(wa(l)){this.indexAfterLastReset=c+1;let p=this.yargs.getInternalMethods().reset();return l(p,!0),p.argv}}let a=[];this.commandCompletions(a,t,n),this.optionCompletions(a,t,r,n),this.choicesFromOptionsCompletions(a,t,r,n),this.choicesFromPositionalsCompletions(a,t,r,n),i(null,a)}commandCompletions(t,r,n){let i=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&i[i.length-1]!==n&&!this.previousArgHasChoices(r)&&this.usage.getCommands().forEach(o=>{let a=nn(o[0]).cmd;if(r.indexOf(a)===-1)if(!this.zshShell)t.push(a);else{let c=o[1]||"";t.push(a.replace(/:/g,"\\:")+":"+c)}})}optionCompletions(t,r,n,i){if((i.match(/^-/)||i===""&&t.length===0)&&!this.previousArgHasChoices(r)){let o=this.yargs.getOptions(),a=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(o.key).forEach(c=>{let u=!!o.configuration["boolean-negation"]&&o.boolean.includes(c);!a.includes(c)&&!o.hiddenOptions.includes(c)&&!this.argsContainKey(r,c,u)&&this.completeOptionKey(c,t,i,u&&!!o.default[c])})}}choicesFromOptionsCompletions(t,r,n,i){if(this.previousArgHasChoices(r)){let o=this.getPreviousArgChoices(r);o&&o.length>0&&t.push(...o.map(a=>a.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(t,r,n,i){if(i===""&&t.length>0&&this.previousArgHasChoices(r))return;let o=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],a=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),c=o[n._.length-a-1];if(!c)return;let u=this.yargs.getOptions().choices[c]||[];for(let l of u)l.startsWith(i)&&t.push(l.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let r=t[t.length-1],n="";if(!r.startsWith("-")&&t.length>1&&(n=r,r=t[t.length-2]),!r.startsWith("-"))return;let i=r.replace(/^-+/,""),o=this.yargs.getOptions(),a=[i,...this.yargs.getAliases()[i]||[]],c;for(let u of a)if(Object.prototype.hasOwnProperty.call(o.key,u)&&Array.isArray(o.choices[u])){c=o.choices[u];break}if(c)return c.filter(u=>!n||u.startsWith(n))}previousArgHasChoices(t){let r=this.getPreviousArgChoices(t);return r!==void 0&&r.length>0}argsContainKey(t,r,n){let i=s(o=>t.indexOf((/^[^0-9]$/.test(o)?"-":"--")+o)!==-1,"argsContains");if(i(r)||n&&i(`no-${r}`))return!0;if(this.aliases){for(let o of this.aliases[r])if(i(o))return!0}return!1}completeOptionKey(t,r,n,i){var o,a,c,u;let l=t;if(this.zshShell){let h=this.usage.getDescriptions(),y=(a=(o=this===null||this===void 0?void 0:this.aliases)===null||o===void 0?void 0:o[t])===null||a===void 0?void 0:a.find(w=>{let A=h[w];return typeof A=="string"&&A.length>0}),v=y?h[y]:void 0,g=(u=(c=h[t])!==null&&c!==void 0?c:v)!==null&&u!==void 0?u:"";l=`${t.replace(/:/g,"\\:")}:${g.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let p=s(h=>/^--/.test(h),"startsByTwoDashes"),f=s(h=>/^[^0-9]$/.test(h),"isShortOption"),d=!p(n)&&f(t)?"-":"--";r.push(d+l),i&&r.push(d+"no-"+l)}customCompletion(t,r,n,i){if(vt(this.customCompletionFunction,null,this.shim),Aw(this.customCompletionFunction)){let o=this.customCompletionFunction(n,r);return Re(o)?o.then(a=>{this.shim.process.nextTick(()=>{i(null,a)})}).catch(a=>{this.shim.process.nextTick(()=>{i(a,void 0)})}):i(null,o)}else return Cw(this.customCompletionFunction)?this.customCompletionFunction(n,r,(o=i)=>this.defaultCompletion(t,r,n,o),o=>{i(null,o)}):this.customCompletionFunction(n,r,o=>{i(null,o)})}getCompletion(t,r){let n=t.length?t[t.length-1]:"",i=this.yargs.parse(t,!0),o=this.customCompletionFunction?a=>this.customCompletion(t,a,n,r):a=>this.defaultCompletion(t,a,n,r);return Re(i)?i.then(o):o(i)}generateCompletionScript(t,r){let n=this.zshShell?bg:vg,i=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),n=n.replace(/{{app_name}}/g,i),n=n.replace(/{{completion_command}}/g,r),n.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}};s(sl,"Completion");var il=sl;function _g(e,t,r,n){return new il(e,t,r,n)}s(_g,"completion");function Aw(e){return e.length<3}s(Aw,"isSyncCompletionFunction");function Cw(e){return e.length>3}s(Cw,"isFallbackCompletionFunction");function Sg(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;let r=[],n;for(n=0;n<=t.length;n++)r[n]=[n];let i;for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&t.charAt(n-2)===e.charAt(i-1)&&t.charAt(n-1)===e.charAt(i-2)?r[n][i]=r[n-2][i-2]+1:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}s(Sg,"levenshtein");var Og=["$0","--","_"];function Pg(e,t,r){let n=r.y18n.__,i=r.y18n.__n,o={};o.nonOptionCount=s(function(f){let d=e.getDemandedCommands(),y=f._.length+(f["--"]?f["--"].length:0)-e.getInternalMethods().getContext().commands.length;d._&&(y<d._.min||y>d._.max)&&(y<d._.min?d._.minMsg!==void 0?t.fail(d._.minMsg?d._.minMsg.replace(/\$0/g,y.toString()).replace(/\$1/,d._.min.toString()):null):t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",y,y.toString(),d._.min.toString())):y>d._.max&&(d._.maxMsg!==void 0?t.fail(d._.maxMsg?d._.maxMsg.replace(/\$0/g,y.toString()).replace(/\$1/,d._.max.toString()):null):t.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",y,y.toString(),d._.max.toString()))))},"nonOptionCount"),o.positionalCount=s(function(f,d){d<f&&t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",d,d+"",f+""))},"positionalCount"),o.requiredArguments=s(function(f,d){let h=null;for(let y of Object.keys(d))(!Object.prototype.hasOwnProperty.call(f,y)||typeof f[y]>"u")&&(h=h||{},h[y]=d[y]);if(h){let y=[];for(let g of Object.keys(h)){let w=h[g];w&&y.indexOf(w)<0&&y.push(w)}let v=y.length?`
|
|
130
130
|
${y.join(`
|
|
131
|
-
`)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+v))}},"requiredArguments"),o.unknownArguments=s(function(f,d,h,y,v=!0){var g;let w=e.getInternalMethods().getCommandInstance().getCommands(),A=[],
|
|
131
|
+
`)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+v))}},"requiredArguments"),o.unknownArguments=s(function(f,d,h,y,v=!0){var g;let w=e.getInternalMethods().getCommandInstance().getCommands(),A=[],I=e.getInternalMethods().getContext();if(Object.keys(f).forEach(N=>{!Og.includes(N)&&!Object.prototype.hasOwnProperty.call(h,N)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),N)&&!o.isValidAndSomeAliasIsNotNew(N,d)&&A.push(N)}),v&&(I.commands.length>0||w.length>0||y)&&f._.slice(I.commands.length).forEach(N=>{w.includes(""+N)||A.push(""+N)}),v){let R=((g=e.getDemandedCommands()._)===null||g===void 0?void 0:g.max)||0,he=I.commands.length+R;he<f._.length&&f._.slice(he).forEach(se=>{se=String(se),!I.commands.includes(se)&&!A.includes(se)&&A.push(se)})}A.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",A.length,A.map(N=>N.trim()?N:`"${N}"`).join(", ")))},"unknownArguments"),o.unknownCommands=s(function(f){let d=e.getInternalMethods().getCommandInstance().getCommands(),h=[],y=e.getInternalMethods().getContext();return(y.commands.length>0||d.length>0)&&f._.slice(y.commands.length).forEach(v=>{d.includes(""+v)||h.push(""+v)}),h.length>0?(t.fail(i("Unknown command: %s","Unknown commands: %s",h.length,h.join(", "))),!0):!1},"unknownCommands"),o.isValidAndSomeAliasIsNotNew=s(function(f,d){if(!Object.prototype.hasOwnProperty.call(d,f))return!1;let h=e.parsed.newAliases;return[f,...d[f]].some(y=>!Object.prototype.hasOwnProperty.call(h,y)||!h[f])},"isValidAndSomeAliasIsNotNew"),o.limitedChoices=s(function(f){let d=e.getOptions(),h={};if(!Object.keys(d.choices).length)return;Object.keys(f).forEach(g=>{Og.indexOf(g)===-1&&Object.prototype.hasOwnProperty.call(d.choices,g)&&[].concat(f[g]).forEach(w=>{d.choices[g].indexOf(w)===-1&&w!==void 0&&(h[g]=(h[g]||[]).concat(w))})});let y=Object.keys(h);if(!y.length)return;let v=n("Invalid values:");y.forEach(g=>{v+=`
|
|
132
132
|
${n("Argument: %s, Given: %s, Choices: %s",g,t.stringifiedValues(h[g]),t.stringifiedValues(d.choices[g]))}`}),t.fail(v)},"limitedChoices");let a={};o.implies=s(function(f,d){F("<string|object> [array|number|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{o.implies(h,f[h])}):(e.global(f),a[f]||(a[f]=[]),Array.isArray(d)?d.forEach(h=>o.implies(f,h)):(vt(d,void 0,r),a[f].push(d)))},"implies"),o.getImplied=s(function(){return a},"getImplied");function c(p,f){let d=Number(f);return f=isNaN(d)?f:d,typeof f=="number"?f=p._.length>=f:f.match(/^--no-.+/)?(f=f.match(/^--no-(.+)/)[1],f=!Object.prototype.hasOwnProperty.call(p,f)):f=Object.prototype.hasOwnProperty.call(p,f),f}s(c,"keyExists"),o.implications=s(function(f){let d=[];if(Object.keys(a).forEach(h=>{let y=h;(a[h]||[]).forEach(v=>{let g=y,w=v;g=c(f,g),v=c(f,v),g&&!v&&d.push(` ${y} -> ${w}`)})}),d.length){let h=`${n("Implications failed:")}
|
|
133
|
-
`;d.forEach(y=>{h+=y}),t.fail(h)}},"implications");let u={};o.conflicts=s(function(f,d){F("<string|object> [array|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{o.conflicts(h,f[h])}):(e.global(f),u[f]||(u[f]=[]),Array.isArray(d)?d.forEach(h=>o.conflicts(f,h)):u[f].push(d))},"conflicts"),o.getConflicting=()=>u,o.conflicting=s(function(f){Object.keys(f).forEach(d=>{u[d]&&u[d].forEach(h=>{h&&f[d]!==void 0&&f[h]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",d,h))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach(d=>{u[d].forEach(h=>{h&&f[r.Parser.camelCase(d)]!==void 0&&f[r.Parser.camelCase(h)]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",d,h))})})},"conflictingFn"),o.recommendCommands=s(function(f,d){d=d.sort((g,w)=>w.length-g.length);let y=null,v=1/0;for(let g=0,w;(w=d[g])!==void 0;g++){let A=yg(f,w);A<=3&&A<v&&(v=A,y=w)}y&&t.fail(n("Did you mean %s?",y))},"recommendCommands"),o.reset=s(function(f){return a=sn(a,d=>!f[d]),u=sn(u,d=>!f[d]),o},"reset");let l=[];return o.freeze=s(function(){l.push({implied:a,conflicting:u})},"freeze"),o.unfreeze=s(function(){let f=l.pop();vt(f,void 0,r),{implied:a,conflicting:u}=f},"unfreeze"),o}s(bg,"validation");var nl=[],Gs;function Ws(e,t,r,n){Gs=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let o=/\.json|\..*rc$/.test(e.extends),a=null;if(o)a=Aw(t,e.extends);else try{a=require.resolve(e.extends)}catch{return e}xw(a),nl.push(a),i=o?JSON.parse(Gs.readFileSync(a,"utf8")):require(e.extends),delete e.extends,i=Ws(i,Gs.path.dirname(a),r,Gs)}return nl=[],r?_g(i,e):Object.assign({},i,e)}s(Ws,"applyExtends");function xw(e){if(nl.indexOf(e)>-1)throw new je(`Circular extended configurations: '${e}'.`)}s(xw,"checkForCircularExtends");function Aw(e,t){return Gs.path.resolve(e,t)}s(Aw,"getPathToDefaultConfig");function _g(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}s(n,"isObject"),Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=_g(e[i],t[i]):r[i]=t[i];return r}s(_g,"mergeDeep");var B=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},m=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ke,Dn,Ks,zt,Nt,$a,an,Ln,Ea,Gt,xa,Wt,$r,Mt,Kt,Aa,ki,st,W,Ca,Ia,qt,Fn,Ni,Vn,cn,ja,re,Bn,Hn,Un,ie,Ra,Er,Be;function Fg(e){return(t=[],r=e.process.cwd(),n)=>{let i=new hl(t,r,n,e);return Object.defineProperty(i,"argv",{get:s(()=>i.parse(),"get"),enumerable:!0}),i.help(),i.version(),i}}s(Fg,"YargsFactory");var Sg=Symbol("copyDoubleDash"),Og=Symbol("copyDoubleDash"),il=Symbol("deleteFromParserHintObject"),Pg=Symbol("emitWarning"),wg=Symbol("freeze"),$g=Symbol("getDollarZero"),zn=Symbol("getParserConfiguration"),Eg=Symbol("getUsageConfiguration"),sl=Symbol("guessLocale"),xg=Symbol("guessVersion"),Ag=Symbol("parsePositionalNumbers"),ol=Symbol("pkgUp"),un=Symbol("populateParserHintArray"),Mi=Symbol("populateParserHintSingleValueDictionary"),al=Symbol("populateParserHintArrayDictionary"),cl=Symbol("populateParserHintDictionary"),ul=Symbol("sanitizeKey"),ll=Symbol("setKey"),fl=Symbol("unfreeze"),Cg=Symbol("validateAsync"),Ig=Symbol("getCommandInstance"),jg=Symbol("getContext"),Rg=Symbol("getHasOutput"),Tg=Symbol("getLoggerInstance"),kg=Symbol("getParseContext"),Ng=Symbol("getUsageInstance"),Mg=Symbol("getValidationInstance"),Ta=Symbol("hasParseCallback"),qg=Symbol("isGlobalContext"),Gn=Symbol("postProcess"),Dg=Symbol("rebase"),pl=Symbol("reset"),Zs=Symbol("runYargsParserAndExecuteCommands"),dl=Symbol("runValidation"),Lg=Symbol("setHasOutput"),Wn=Symbol("kTrackManuallySetKeys"),ml=class ml{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Ke.set(this,void 0),Dn.set(this,void 0),Ks.set(this,{commands:[],fullCommands:[]}),zt.set(this,null),Nt.set(this,null),$a.set(this,"show-hidden"),an.set(this,null),Ln.set(this,!0),Ea.set(this,{}),Gt.set(this,!0),xa.set(this,[]),Wt.set(this,void 0),$r.set(this,{}),Mt.set(this,!1),Kt.set(this,null),Aa.set(this,!0),ki.set(this,void 0),st.set(this,""),W.set(this,void 0),Ca.set(this,void 0),Ia.set(this,{}),qt.set(this,null),Fn.set(this,null),Ni.set(this,{}),Vn.set(this,{}),cn.set(this,void 0),ja.set(this,!1),re.set(this,void 0),Bn.set(this,!1),Hn.set(this,!1),Un.set(this,!1),ie.set(this,void 0),Ra.set(this,{}),Er.set(this,null),Be.set(this,void 0),B(this,re,i,"f"),B(this,cn,t,"f"),B(this,Dn,r,"f"),B(this,Ca,n,"f"),B(this,Wt,new Oa(this),"f"),this.$0=this[$g](),this[pl](),B(this,Ke,m(this,Ke,"f"),"f"),B(this,ie,m(this,ie,"f"),"f"),B(this,Be,m(this,Be,"f"),"f"),B(this,W,m(this,W,"f"),"f"),m(this,W,"f").showHiddenOpt=m(this,$a,"f"),B(this,ki,this[Og](),"f")}addHelpOpt(t,r){let n="help";return F("[string|boolean] [string]",[t,r],arguments.length),m(this,Kt,"f")&&(this[il](m(this,Kt,"f")),B(this,Kt,null,"f")),t===!1&&r===void 0?this:(B(this,Kt,typeof t=="string"?t:n,"f"),this.boolean(m(this,Kt,"f")),this.describe(m(this,Kt,"f"),r||m(this,ie,"f").deferY18nLookup("Show help")),this)}help(t,r){return this.addHelpOpt(t,r)}addShowHiddenOpt(t,r){if(F("[string|boolean] [string]",[t,r],arguments.length),t===!1&&r===void 0)return this;let n=typeof t=="string"?t:m(this,$a,"f");return this.boolean(n),this.describe(n,r||m(this,ie,"f").deferY18nLookup("Show hidden options")),m(this,W,"f").showHiddenOpt=n,this}showHidden(t,r){return this.addShowHiddenOpt(t,r)}alias(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[al](this.alias.bind(this),"alias",t,r),this}array(t){return F("<array|string>",[t],arguments.length),this[un]("array",t),this[Wn](t),this}boolean(t){return F("<array|string>",[t],arguments.length),this[un]("boolean",t),this[Wn](t),this}check(t,r){return F("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>qn(()=>t(n,i.getOptions()),o=>(o?(typeof o=="string"||o instanceof Error)&&m(this,ie,"f").fail(o.toString(),o):m(this,ie,"f").fail(m(this,re,"f").y18n.__("Argument check failed: %s",t.toString())),n),o=>(m(this,ie,"f").fail(o.message?o.message:o.toString(),o),n)),!1,r),this}choices(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[al](this.choices.bind(this),"choices",t,r),this}coerce(t,r){if(F("<object|string|array> [function]",[t,r],arguments.length),Array.isArray(t)){if(!r)throw new je("coerce callback must be provided");for(let n of t)this.coerce(n,r);return this}else if(typeof t=="object"){for(let n of Object.keys(t))this.coerce(n,t[n]);return this}if(!r)throw new je("coerce callback must be provided");return m(this,W,"f").key[t]=!0,m(this,Wt,"f").addCoerceMiddleware((n,i)=>{let o;return Object.prototype.hasOwnProperty.call(n,t)?qn(()=>(o=i.getAliases(),r(n[t])),c=>{n[t]=c;let u=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(o[t]&&u!==!0)for(let l of o[t])n[l]=c;return n},c=>{throw new je(c.message)}):n},t),this}conflicts(t,r){return F("<string|object> [string|array]",[t,r],arguments.length),m(this,Be,"f").conflicts(t,r),this}config(t="config",r,n){return F("[object|string] [string|function] [function]",[t,r,n],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=Ws(t,m(this,Dn,"f"),this[zn]()["deep-merge-config"]||!1,m(this,re,"f")),m(this,W,"f").configObjects=(m(this,W,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||m(this,ie,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{m(this,W,"f").config[i]=n||!0}),this)}completion(t,r,n){return F("[string] [string|boolean|function] [function]",[t,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),B(this,Nt,t||m(this,Nt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(m(this,Nt,"f"),r),n&&m(this,zt,"f").registerFunction(n),this}command(t,r,n,i,o,a){return F("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,o,a],arguments.length),m(this,Ke,"f").addHandler(t,r,n,i,o,a),this}commands(t,r,n,i,o,a){return this.command(t,r,n,i,o,a)}commandDir(t,r){F("<string> [object]",[t,r],arguments.length);let n=m(this,Ca,"f")||m(this,re,"f").require;return m(this,Ke,"f").addDirectory(t,n,m(this,re,"f").getCallerFile(),r),this}count(t){return F("<array|string>",[t],arguments.length),this[un]("count",t),this[Wn](t),this}default(t,r,n){return F("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(Zu(t,m(this,re,"f")),m(this,W,"f").defaultDescription[t]=n),typeof r=="function"&&(Zu(t,m(this,re,"f")),m(this,W,"f").defaultDescription[t]||(m(this,W,"f").defaultDescription[t]=m(this,ie,"f").functionDescription(r)),r=r.call()),this[Mi](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=>{vt(n,!0,m(this,re,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(vt(n,!0,m(this,re,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{vt(n,!0,m(this,re,"f")),this.demandOption(i,n)}):typeof n=="string"?this.demandOption(t,n):(n===!0||typeof n>"u")&&this.demandOption(t),this}demandOption(t,r){return F("<object|string|array> [string]",[t,r],arguments.length),this[Mi](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[ll](t,!0),m(this,ie,"f").describe(t,r),this}detectLocale(t){return F("<boolean>",[t],arguments.length),B(this,Ln,t,"f"),this}env(t){return F("[string|boolean]",[t],arguments.length),t===!1?delete m(this,W,"f").envPrefix:m(this,W,"f").envPrefix=t||"",this}epilogue(t){return F("<string>",[t],arguments.length),m(this,ie,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,r){return F("<string|array> [string]",[t,r],arguments.length),Array.isArray(t)?t.forEach(n=>this.example(...n)):m(this,ie,"f").example(t,r),this}exit(t,r){B(this,Mt,!0,"f"),B(this,an,r,"f"),m(this,Gt,"f")&&m(this,re,"f").process.exit(t)}exitProcess(t=!0){return F("[boolean]",[t],arguments.length),B(this,Gt,t,"f"),this}fail(t){if(F("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new je("Invalid first argument. Expected function or boolean 'false'");return m(this,ie,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return F("<array> [function]",[t,r],arguments.length),r?m(this,zt,"f").getCompletion(t,r):new Promise((n,i)=>{m(this,zt,"f").getCompletion(t,(o,a)=>{o?i(o):n(a)})})}getDemandedOptions(){return F([],0),m(this,W,"f").demandedOptions}getDemandedCommands(){return F([],0),m(this,W,"f").demandedCommands}getDeprecatedOptions(){return F([],0),m(this,W,"f").deprecatedOptions}getDetectLocale(){return m(this,Ln,"f")}getExitProcess(){return m(this,Gt,"f")}getGroups(){return Object.assign({},m(this,$r,"f"),m(this,Vn,"f"))}getHelp(){if(B(this,Mt,!0,"f"),!m(this,ie,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[Zs](m(this,cn,"f"),void 0,void 0,0,!0);if(Re(r))return r.then(()=>m(this,ie,"f").help())}let t=m(this,Ke,"f").runDefaultBuilderOn(this);if(Re(t))return t.then(()=>m(this,ie,"f").help())}return Promise.resolve(m(this,ie,"f").help())}getOptions(){return m(this,W,"f")}getStrict(){return m(this,Bn,"f")}getStrictCommands(){return m(this,Hn,"f")}getStrictOptions(){return m(this,Un,"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,Vn,"f")[r]||m(this,$r,"f")[r];m(this,Vn,"f")[r]&&delete m(this,Vn,"f")[r];let i={};return m(this,$r,"f")[r]=(n||[]).concat(t).filter(o=>i[o]?!1:i[o]=!0),this}hide(t){return F("<string>",[t],arguments.length),m(this,W,"f").hiddenOptions.push(t),this}implies(t,r){return F("<string|object> [number|string|array]",[t,r],arguments.length),m(this,Be,"f").implies(t,r),this}locale(t){return F("[string]",[t],arguments.length),t===void 0?(this[sl](),m(this,re,"f").y18n.getLocale()):(B(this,Ln,!1,"f"),m(this,re,"f").y18n.setLocale(t),this)}middleware(t,r,n){return m(this,Wt,"f").addMiddleware(t,!!r,n)}nargs(t,r){return F("<string|object|array> [number]",[t,r],arguments.length),this[Mi](this.nargs.bind(this),"narg",t,r),this}normalize(t){return F("<array|string>",[t],arguments.length),this[un]("normalize",t),this}number(t){return F("<array|string>",[t],arguments.length),this[un]("number",t),this[Wn](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[Wn](t),m(this,Er,"f")&&(t==="version"||(r==null?void 0:r.alias)==="version")&&this[Pg](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
|
|
134
|
-
`),void 0,"versionWarning"),m(this,W,"f").key[t]=!0,r.alias&&this.alias(t,r.alias);let n=r.deprecate||r.deprecated;n&&this.deprecateOption(t,n);let i=r.demand||r.required||r.require;i&&this.demand(t,i),r.demandOption&&this.demandOption(t,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(t,r.conflicts),"default"in r&&this.default(t,r.default),r.implies!==void 0&&this.implies(t,r.implies),r.nargs!==void 0&&this.nargs(t,r.nargs),r.config&&this.config(t,r.configParser),r.normalize&&this.normalize(t),r.choices&&this.choices(t,r.choices),r.coerce&&this.coerce(t,r.coerce),r.group&&this.group(t,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(t),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(t),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(t),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(t),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(t),typeof r.global=="boolean"&&this.global(t,r.global),r.defaultDescription&&(m(this,W,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let o=r.describe||r.description||r.desc,a=m(this,ie,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(a,t)||typeof o=="string")&&this.describe(t,o),r.hidden&&this.hide(t),r.requiresArg&&this.requiresArg(t)}return this}options(t,r){return this.option(t,r)}parse(t,r,n){F("[string|array] [function|boolean|object] [function]",[t,r,n],arguments.length),this[
|
|
135
|
-
`,"f"),B(this,st,m(this,st,"f")+t.join(" "),"f")},"log"),error:s((...t)=>{this[
|
|
136
|
-
`,"f"),B(this,st,m(this,st,"f")+t.join(" "),"f")},"error")}}[il](t){Ri(m(this,W,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=m(this,W,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete m(this,ie,"f").getDescriptions()[t]}[Pg](t,r,n){m(this,Ea,"f")[n]||(m(this,re,"f").process.emitWarning(t,r),m(this,Ea,"f")[n]=!0)}[wg](){m(this,xa,"f").push({options:m(this,W,"f"),configObjects:m(this,W,"f").configObjects.slice(0),exitProcess:m(this,Gt,"f"),groups:m(this,$r,"f"),strict:m(this,Bn,"f"),strictCommands:m(this,Hn,"f"),strictOptions:m(this,Un,"f"),completionCommand:m(this,Nt,"f"),output:m(this,st,"f"),exitError:m(this,an,"f"),hasOutput:m(this,Mt,"f"),parsed:this.parsed,parseFn:m(this,qt,"f"),parseContext:m(this,Fn,"f")}),m(this,ie,"f").freeze(),m(this,Be,"f").freeze(),m(this,Ke,"f").freeze(),m(this,Wt,"f").freeze()}[$g](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(m(this,re,"f").process.argv()[0])?r=m(this,re,"f").process.argv().slice(1,2):r=m(this,re,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[Dg](m(this,Dn,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),m(this,re,"f").getEnv("_")&&m(this,re,"f").getProcessArgvBin()===m(this,re,"f").getEnv("_")&&(t=m(this,re,"f").getEnv("_").replace(`${m(this,re,"f").path.dirname(m(this,re,"f").process.execPath())}/`,"")),t}[zn](){return m(this,Ia,"f")}[Eg](){return m(this,Ra,"f")}[sl](){if(!m(this,Ln,"f"))return;let t=m(this,re,"f").getEnv("LC_ALL")||m(this,re,"f").getEnv("LC_MESSAGES")||m(this,re,"f").getEnv("LANG")||m(this,re,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[xg](){return this[ol]().version||"unknown"}[Ag](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)m(this,re,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[ol](t){let r=t||"*";if(m(this,Ni,"f")[r])return m(this,Ni,"f")[r];let n={};try{let i=t||m(this,re,"f").mainFilename;!t&&m(this,re,"f").path.extname(i)&&(i=m(this,re,"f").path.dirname(i));let o=m(this,re,"f").findUp(i,(a,c)=>{if(c.includes("package.json"))return"package.json"});vt(o,void 0,m(this,re,"f")),n=JSON.parse(m(this,re,"f").readFileSync(o,"utf8"))}catch{}return m(this,Ni,"f")[r]=n||{},m(this,Ni,"f")[r]}[un](t,r){r=[].concat(r),r.forEach(n=>{n=this[ul](n),m(this,W,"f")[t].push(n)})}[Mi](t,r,n,i){this[cl](t,r,n,i,(o,a,c)=>{m(this,W,"f")[o][a]=c})}[al](t,r,n,i){this[cl](t,r,n,i,(o,a,c)=>{m(this,W,"f")[o][a]=(m(this,W,"f")[o][a]||[]).concat(c)})}[cl](t,r,n,i,o){if(Array.isArray(n))n.forEach(a=>{t(a,i)});else if((a=>typeof a=="object")(n))for(let a of Ri(n))t(a,n[a]);else o(r,this[ul](n),i)}[ul](t){return t==="__proto__"?"___proto___":t}[ll](t,r){return this[Mi](this[ll].bind(this),"key",t,r),this}[fl](){var t,r,n,i,o,a,c,u,l,p,f,d;let h=m(this,xa,"f").pop();vt(h,void 0,m(this,re,"f"));let y;t=this,r=this,n=this,i=this,o=this,a=this,c=this,u=this,l=this,p=this,f=this,d=this,{options:{set value(v){B(t,W,v,"f")}}.value,configObjects:y,exitProcess:{set value(v){B(r,Gt,v,"f")}}.value,groups:{set value(v){B(n,$r,v,"f")}}.value,output:{set value(v){B(i,st,v,"f")}}.value,exitError:{set value(v){B(o,an,v,"f")}}.value,hasOutput:{set value(v){B(a,Mt,v,"f")}}.value,parsed:this.parsed,strict:{set value(v){B(c,Bn,v,"f")}}.value,strictCommands:{set value(v){B(u,Hn,v,"f")}}.value,strictOptions:{set value(v){B(l,Un,v,"f")}}.value,completionCommand:{set value(v){B(p,Nt,v,"f")}}.value,parseFn:{set value(v){B(f,qt,v,"f")}}.value,parseContext:{set value(v){B(d,Fn,v,"f")}}.value}=h,m(this,W,"f").configObjects=y,m(this,ie,"f").unfreeze(),m(this,Be,"f").unfreeze(),m(this,Ke,"f").unfreeze(),m(this,Wt,"f").unfreeze()}[Cg](t,r){return qn(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[Ig].bind(this),getContext:this[jg].bind(this),getHasOutput:this[Rg].bind(this),getLoggerInstance:this[Tg].bind(this),getParseContext:this[kg].bind(this),getParserConfiguration:this[zn].bind(this),getUsageConfiguration:this[Eg].bind(this),getUsageInstance:this[Ng].bind(this),getValidationInstance:this[Mg].bind(this),hasParseCallback:this[Ta].bind(this),isGlobalContext:this[qg].bind(this),postProcess:this[Gn].bind(this),reset:this[pl].bind(this),runValidation:this[dl].bind(this),runYargsParserAndExecuteCommands:this[Zs].bind(this),setHasOutput:this[Lg].bind(this)}}[Ig](){return m(this,Ke,"f")}[jg](){return m(this,Ks,"f")}[Rg](){return m(this,Mt,"f")}[Tg](){return m(this,ki,"f")}[kg](){return m(this,Fn,"f")||{}}[Ng](){return m(this,ie,"f")}[Mg](){return m(this,Be,"f")}[Ta](){return!!m(this,qt,"f")}[qg](){return m(this,Aa,"f")}[Gn](t,r,n,i){return n||Re(t)||(r||(t=this[Sg](t)),(this[zn]()["parse-positional-numbers"]||this[zn]()["parse-positional-numbers"]===void 0)&&(t=this[Ag](t)),i&&(t=Mn(t,this,m(this,Wt,"f").getMiddleware(),!1))),t}[pl](t={}){B(this,W,m(this,W,"f")||{},"f");let r={};r.local=m(this,W,"f").local||[],r.configObjects=m(this,W,"f").configObjects||[];let n={};r.local.forEach(a=>{n[a]=!0,(t[a]||[]).forEach(c=>{n[c]=!0})}),Object.assign(m(this,Vn,"f"),Object.keys(m(this,$r,"f")).reduce((a,c)=>{let u=m(this,$r,"f")[c].filter(l=>!(l in n));return u.length>0&&(a[c]=u),a},{})),B(this,$r,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],o=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(a=>{r[a]=(m(this,W,"f")[a]||[]).filter(c=>!n[c])}),o.forEach(a=>{r[a]=sn(m(this,W,"f")[a],c=>!n[c])}),r.envPrefix=m(this,W,"f").envPrefix,B(this,W,r,"f"),B(this,ie,m(this,ie,"f")?m(this,ie,"f").reset(n):dg(this,m(this,re,"f")),"f"),B(this,Be,m(this,Be,"f")?m(this,Be,"f").reset(n):bg(this,m(this,ie,"f"),m(this,re,"f")),"f"),B(this,Ke,m(this,Ke,"f")?m(this,Ke,"f").reset():lg(m(this,ie,"f"),m(this,Be,"f"),m(this,Wt,"f"),m(this,re,"f")),"f"),m(this,zt,"f")||B(this,zt,gg(this,m(this,ie,"f"),m(this,Ke,"f"),m(this,re,"f")),"f"),m(this,Wt,"f").reset(),B(this,Nt,null,"f"),B(this,st,"","f"),B(this,an,null,"f"),B(this,Mt,!1,"f"),this.parsed=!1,this}[Dg](t,r){return m(this,re,"f").path.relative(t,r)}[Zs](t,r,n,i=0,o=!1){let a=!!n||o;t=t||m(this,cn,"f"),m(this,W,"f").__=m(this,re,"f").y18n.__,m(this,W,"f").configuration=this[zn]();let c=!!m(this,W,"f").configuration["populate--"],u=Object.assign({},m(this,W,"f").configuration,{"populate--":!0}),l=m(this,re,"f").Parser.detailed(t,Object.assign({},m(this,W,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),p=Object.assign(l.argv,m(this,Fn,"f")),f,d=l.aliases,h=!1,y=!1;Object.keys(p).forEach(v=>{v===m(this,Kt,"f")&&p[v]?h=!0:v===m(this,Er,"f")&&p[v]&&(y=!0)}),p.$0=this.$0,this.parsed=l,i===0&&m(this,ie,"f").clearCachedHelpMessage();try{if(this[sl](),r)return this[Gn](p,c,!!n,!1);m(this,Kt,"f")&&[m(this,Kt,"f")].concat(d[m(this,Kt,"f")]||[]).filter(C=>C.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),h=!0),B(this,Aa,!1,"f");let v=m(this,Ke,"f").getCommands(),g=m(this,zt,"f").completionKey in p,w=h||g||o;if(p._.length){if(v.length){let A;for(let C=i||0,j;p._[C]!==void 0;C++)if(j=String(p._[C]),v.includes(j)&&j!==m(this,Nt,"f")){let T=m(this,Ke,"f").runCommand(j,this,l,C+1,o,h||y||o);return this[Gn](T,c,!!n,!1)}else if(!A&&j!==m(this,Nt,"f")){A=j;break}!m(this,Ke,"f").hasDefaultCommand()&&m(this,ja,"f")&&A&&!w&&m(this,Be,"f").recommendCommands(A,v)}m(this,Nt,"f")&&p._.includes(m(this,Nt,"f"))&&!g&&(m(this,Gt,"f")&&on(!0),this.showCompletionScript(),this.exit(0))}if(m(this,Ke,"f").hasDefaultCommand()&&!w){let A=m(this,Ke,"f").runCommand(null,this,l,0,o,h||y||o);return this[Gn](A,c,!!n,!1)}if(g){m(this,Gt,"f")&&on(!0),t=[].concat(t);let A=t.slice(t.indexOf(`--${m(this,zt,"f").completionKey}`)+1);return m(this,zt,"f").getCompletion(A,(C,j)=>{if(C)throw new je(C.message);(j||[]).forEach(T=>{m(this,ki,"f").log(T)}),this.exit(0)}),this[Gn](p,!c,!!n,!1)}if(m(this,Mt,"f")||(h?(m(this,Gt,"f")&&on(!0),a=!0,this.showHelp("log"),this.exit(0)):y&&(m(this,Gt,"f")&&on(!0),a=!0,m(this,ie,"f").showVersion("log"),this.exit(0))),!a&&m(this,W,"f").skipValidation.length>0&&(a=Object.keys(p).some(A=>m(this,W,"f").skipValidation.indexOf(A)>=0&&p[A]===!0)),!a){if(l.error)throw new je(l.error.message);if(!g){let A=this[dl](d,{},l.error);n||(f=Mn(p,this,m(this,Wt,"f").getMiddleware(),!0)),f=this[Cg](A,f??p),Re(f)&&!n&&(f=f.then(()=>Mn(p,this,m(this,Wt,"f").getMiddleware(),!1)))}}}catch(v){if(v instanceof je)m(this,ie,"f").fail(v.message,v);else throw v}return this[Gn](f??p,c,!!n,!0)}[dl](t,r,n,i){let o={...this.getDemandedOptions()};return a=>{if(n)throw new je(n.message);m(this,Be,"f").nonOptionCount(a),m(this,Be,"f").requiredArguments(a,o);let c=!1;m(this,Hn,"f")&&(c=m(this,Be,"f").unknownCommands(a)),m(this,Bn,"f")&&!c?m(this,Be,"f").unknownArguments(a,t,r,!!i):m(this,Un,"f")&&m(this,Be,"f").unknownArguments(a,t,{},!1,!1),m(this,Be,"f").limitedChoices(a),m(this,Be,"f").implications(a),m(this,Be,"f").conflicting(a)}}[Lg](){B(this,Mt,!0,"f")}[Wn](t){if(typeof t=="string")m(this,W,"f").key[t]=!0;else for(let r of t)m(this,W,"f").key[r]=!0}};s(ml,"YargsInstance");var hl=ml;function fg(e){return!!e&&typeof e.getInternalMethods=="function"}s(fg,"isYargsInstance");var Cw=Fg(Ku),Vg=Cw;var Bg=s((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),Hg=s((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),Ug=s((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),qe={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},NL=Object.keys(qe.modifier),Iw=Object.keys(qe.color),jw=Object.keys(qe.bgColor),ML=[...Iw,...jw];function Rw(){let e=new Map;for(let[t,r]of Object.entries(qe)){for(let[n,i]of Object.entries(r))qe[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=qe[n],e.set(i[0],i[1]);Object.defineProperty(qe,t,{value:r,enumerable:!1})}return Object.defineProperty(qe,"codes",{value:e,enumerable:!1}),qe.color.close="\x1B[39m",qe.bgColor.close="\x1B[49m",qe.color.ansi=Bg(),qe.color.ansi256=Hg(),qe.color.ansi16m=Ug(),qe.bgColor.ansi=Bg(10),qe.bgColor.ansi256=Hg(10),qe.bgColor.ansi16m=Ug(10),Object.defineProperties(qe,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:s(t=>qe.rgbToAnsi256(...qe.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let c=t%36;r=Math.floor(t/36)/5,n=Math.floor(c/6)/5,i=c%6/5}let o=Math.max(r,n,i)*2;if(o===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:s((t,r,n)=>qe.ansi256ToAnsi(qe.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:s(t=>qe.ansi256ToAnsi(qe.hexToAnsi256(t)),"value"),enumerable:!1}}),qe}s(Rw,"assembleStyles");var Tw=Rw(),lr=Tw;var Na=xt(require("process"),1),Gg=xt(require("os"),1),gl=xt(require("tty"),1);function Zt(e,t=globalThis.Deno?globalThis.Deno.args:Na.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}s(Zt,"hasFlag");var{env:Le}=Na.default,ka;Zt("no-color")||Zt("no-colors")||Zt("color=false")||Zt("color=never")?ka=0:(Zt("color")||Zt("colors")||Zt("color=true")||Zt("color=always"))&&(ka=1);function kw(){if("FORCE_COLOR"in Le)return Le.FORCE_COLOR==="true"?1:Le.FORCE_COLOR==="false"?0:Le.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Le.FORCE_COLOR,10),3)}s(kw,"envForceColor");function Nw(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}s(Nw,"translateLevel");function Mw(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=kw();n!==void 0&&(ka=n);let i=r?ka:n;if(i===0)return 0;if(r){if(Zt("color=16m")||Zt("color=full")||Zt("color=truecolor"))return 3;if(Zt("color=256"))return 2}if("TF_BUILD"in Le&&"AGENT_NAME"in Le)return 1;if(e&&!t&&i===void 0)return 0;let o=i||0;if(Le.TERM==="dumb")return o;if(Na.default.platform==="win32"){let a=Gg.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Le)return"GITHUB_ACTIONS"in Le||"GITEA_ACTIONS"in Le?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Le)||Le.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in Le)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Le.TEAMCITY_VERSION)?1:0;if(Le.COLORTERM==="truecolor"||Le.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Le){let a=Number.parseInt((Le.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Le.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Le.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Le.TERM)||"COLORTERM"in Le?1:o}s(Mw,"_supportsColor");function zg(e,t={}){let r=Mw(e,{streamIsTTY:e&&e.isTTY,...t});return Nw(r)}s(zg,"createSupportsColor");var qw={stdout:zg({isTTY:gl.default.isatty(1)}),stderr:zg({isTTY:gl.default.isatty(2)})},Wg=qw;function Kg(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,a="";do a+=e.slice(o,n)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return a+=e.slice(o),a}s(Kg,"stringReplaceAll");function Zg(e,t,r,n){let i=0,o="";do{let a=e[n-1]==="\r";o+=e.slice(i,a?n-1:n)+t+(a?`\r
|
|
133
|
+
`;d.forEach(y=>{h+=y}),t.fail(h)}},"implications");let u={};o.conflicts=s(function(f,d){F("<string|object> [array|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{o.conflicts(h,f[h])}):(e.global(f),u[f]||(u[f]=[]),Array.isArray(d)?d.forEach(h=>o.conflicts(f,h)):u[f].push(d))},"conflicts"),o.getConflicting=()=>u,o.conflicting=s(function(f){Object.keys(f).forEach(d=>{u[d]&&u[d].forEach(h=>{h&&f[d]!==void 0&&f[h]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",d,h))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach(d=>{u[d].forEach(h=>{h&&f[r.Parser.camelCase(d)]!==void 0&&f[r.Parser.camelCase(h)]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",d,h))})})},"conflictingFn"),o.recommendCommands=s(function(f,d){d=d.sort((g,w)=>w.length-g.length);let y=null,v=1/0;for(let g=0,w;(w=d[g])!==void 0;g++){let A=Sg(f,w);A<=3&&A<v&&(v=A,y=w)}y&&t.fail(n("Did you mean %s?",y))},"recommendCommands"),o.reset=s(function(f){return a=sn(a,d=>!f[d]),u=sn(u,d=>!f[d]),o},"reset");let l=[];return o.freeze=s(function(){l.push({implied:a,conflicting:u})},"freeze"),o.unfreeze=s(function(){let f=l.pop();vt(f,void 0,r),{implied:a,conflicting:u}=f},"unfreeze"),o}s(Pg,"validation");var ol=[],Ws;function Ks(e,t,r,n){Ws=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let o=/\.json|\..*rc$/.test(e.extends),a=null;if(o)a=jw(t,e.extends);else try{a=require.resolve(e.extends)}catch{return e}Iw(a),ol.push(a),i=o?JSON.parse(Ws.readFileSync(a,"utf8")):require(e.extends),delete e.extends,i=Ks(i,Ws.path.dirname(a),r,Ws)}return ol=[],r?wg(i,e):Object.assign({},i,e)}s(Ks,"applyExtends");function Iw(e){if(ol.indexOf(e)>-1)throw new je(`Circular extended configurations: '${e}'.`)}s(Iw,"checkForCircularExtends");function jw(e,t){return Ws.path.resolve(e,t)}s(jw,"getPathToDefaultConfig");function wg(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}s(n,"isObject"),Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=wg(e[i],t[i]):r[i]=t[i];return r}s(wg,"mergeDeep");var B=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},m=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ke,Dn,Zs,zt,kt,Ea,an,Ln,xa,Gt,Aa,Wt,Er,Mt,Kt,Ca,Ni,st,W,Ia,ja,qt,Fn,ki,Vn,cn,Ra,re,Bn,Hn,Un,ie,Ta,xr,Be;function Ug(e){return(t=[],r=e.process.cwd(),n)=>{let i=new yl(t,r,n,e);return Object.defineProperty(i,"argv",{get:s(()=>i.parse(),"get"),enumerable:!0}),i.help(),i.version(),i}}s(Ug,"YargsFactory");var $g=Symbol("copyDoubleDash"),Eg=Symbol("copyDoubleDash"),al=Symbol("deleteFromParserHintObject"),xg=Symbol("emitWarning"),Ag=Symbol("freeze"),Cg=Symbol("getDollarZero"),zn=Symbol("getParserConfiguration"),Ig=Symbol("getUsageConfiguration"),cl=Symbol("guessLocale"),jg=Symbol("guessVersion"),Rg=Symbol("parsePositionalNumbers"),ul=Symbol("pkgUp"),un=Symbol("populateParserHintArray"),Mi=Symbol("populateParserHintSingleValueDictionary"),ll=Symbol("populateParserHintArrayDictionary"),fl=Symbol("populateParserHintDictionary"),pl=Symbol("sanitizeKey"),dl=Symbol("setKey"),hl=Symbol("unfreeze"),Tg=Symbol("validateAsync"),Ng=Symbol("getCommandInstance"),kg=Symbol("getContext"),Mg=Symbol("getHasOutput"),qg=Symbol("getLoggerInstance"),Dg=Symbol("getParseContext"),Lg=Symbol("getUsageInstance"),Fg=Symbol("getValidationInstance"),Na=Symbol("hasParseCallback"),Vg=Symbol("isGlobalContext"),Gn=Symbol("postProcess"),Bg=Symbol("rebase"),ml=Symbol("reset"),Ys=Symbol("runYargsParserAndExecuteCommands"),gl=Symbol("runValidation"),Hg=Symbol("setHasOutput"),Wn=Symbol("kTrackManuallySetKeys"),vl=class vl{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Ke.set(this,void 0),Dn.set(this,void 0),Zs.set(this,{commands:[],fullCommands:[]}),zt.set(this,null),kt.set(this,null),Ea.set(this,"show-hidden"),an.set(this,null),Ln.set(this,!0),xa.set(this,{}),Gt.set(this,!0),Aa.set(this,[]),Wt.set(this,void 0),Er.set(this,{}),Mt.set(this,!1),Kt.set(this,null),Ca.set(this,!0),Ni.set(this,void 0),st.set(this,""),W.set(this,void 0),Ia.set(this,void 0),ja.set(this,{}),qt.set(this,null),Fn.set(this,null),ki.set(this,{}),Vn.set(this,{}),cn.set(this,void 0),Ra.set(this,!1),re.set(this,void 0),Bn.set(this,!1),Hn.set(this,!1),Un.set(this,!1),ie.set(this,void 0),Ta.set(this,{}),xr.set(this,null),Be.set(this,void 0),B(this,re,i,"f"),B(this,cn,t,"f"),B(this,Dn,r,"f"),B(this,Ia,n,"f"),B(this,Wt,new Pa(this),"f"),this.$0=this[Cg](),this[ml](),B(this,Ke,m(this,Ke,"f"),"f"),B(this,ie,m(this,ie,"f"),"f"),B(this,Be,m(this,Be,"f"),"f"),B(this,W,m(this,W,"f"),"f"),m(this,W,"f").showHiddenOpt=m(this,Ea,"f"),B(this,Ni,this[Eg](),"f")}addHelpOpt(t,r){let n="help";return F("[string|boolean] [string]",[t,r],arguments.length),m(this,Kt,"f")&&(this[al](m(this,Kt,"f")),B(this,Kt,null,"f")),t===!1&&r===void 0?this:(B(this,Kt,typeof t=="string"?t:n,"f"),this.boolean(m(this,Kt,"f")),this.describe(m(this,Kt,"f"),r||m(this,ie,"f").deferY18nLookup("Show help")),this)}help(t,r){return this.addHelpOpt(t,r)}addShowHiddenOpt(t,r){if(F("[string|boolean] [string]",[t,r],arguments.length),t===!1&&r===void 0)return this;let n=typeof t=="string"?t:m(this,Ea,"f");return this.boolean(n),this.describe(n,r||m(this,ie,"f").deferY18nLookup("Show hidden options")),m(this,W,"f").showHiddenOpt=n,this}showHidden(t,r){return this.addShowHiddenOpt(t,r)}alias(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[ll](this.alias.bind(this),"alias",t,r),this}array(t){return F("<array|string>",[t],arguments.length),this[un]("array",t),this[Wn](t),this}boolean(t){return F("<array|string>",[t],arguments.length),this[un]("boolean",t),this[Wn](t),this}check(t,r){return F("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>qn(()=>t(n,i.getOptions()),o=>(o?(typeof o=="string"||o instanceof Error)&&m(this,ie,"f").fail(o.toString(),o):m(this,ie,"f").fail(m(this,re,"f").y18n.__("Argument check failed: %s",t.toString())),n),o=>(m(this,ie,"f").fail(o.message?o.message:o.toString(),o),n)),!1,r),this}choices(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[ll](this.choices.bind(this),"choices",t,r),this}coerce(t,r){if(F("<object|string|array> [function]",[t,r],arguments.length),Array.isArray(t)){if(!r)throw new je("coerce callback must be provided");for(let n of t)this.coerce(n,r);return this}else if(typeof t=="object"){for(let n of Object.keys(t))this.coerce(n,t[n]);return this}if(!r)throw new je("coerce callback must be provided");return m(this,W,"f").key[t]=!0,m(this,Wt,"f").addCoerceMiddleware((n,i)=>{let o;return Object.prototype.hasOwnProperty.call(n,t)?qn(()=>(o=i.getAliases(),r(n[t])),c=>{n[t]=c;let u=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(o[t]&&u!==!0)for(let l of o[t])n[l]=c;return n},c=>{throw new je(c.message)}):n},t),this}conflicts(t,r){return F("<string|object> [string|array]",[t,r],arguments.length),m(this,Be,"f").conflicts(t,r),this}config(t="config",r,n){return F("[object|string] [string|function] [function]",[t,r,n],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=Ks(t,m(this,Dn,"f"),this[zn]()["deep-merge-config"]||!1,m(this,re,"f")),m(this,W,"f").configObjects=(m(this,W,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||m(this,ie,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{m(this,W,"f").config[i]=n||!0}),this)}completion(t,r,n){return F("[string] [string|boolean|function] [function]",[t,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),B(this,kt,t||m(this,kt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(m(this,kt,"f"),r),n&&m(this,zt,"f").registerFunction(n),this}command(t,r,n,i,o,a){return F("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,o,a],arguments.length),m(this,Ke,"f").addHandler(t,r,n,i,o,a),this}commands(t,r,n,i,o,a){return this.command(t,r,n,i,o,a)}commandDir(t,r){F("<string> [object]",[t,r],arguments.length);let n=m(this,Ia,"f")||m(this,re,"f").require;return m(this,Ke,"f").addDirectory(t,n,m(this,re,"f").getCallerFile(),r),this}count(t){return F("<array|string>",[t],arguments.length),this[un]("count",t),this[Wn](t),this}default(t,r,n){return F("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(Qu(t,m(this,re,"f")),m(this,W,"f").defaultDescription[t]=n),typeof r=="function"&&(Qu(t,m(this,re,"f")),m(this,W,"f").defaultDescription[t]||(m(this,W,"f").defaultDescription[t]=m(this,ie,"f").functionDescription(r)),r=r.call()),this[Mi](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=>{vt(n,!0,m(this,re,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(vt(n,!0,m(this,re,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{vt(n,!0,m(this,re,"f")),this.demandOption(i,n)}):typeof n=="string"?this.demandOption(t,n):(n===!0||typeof n>"u")&&this.demandOption(t),this}demandOption(t,r){return F("<object|string|array> [string]",[t,r],arguments.length),this[Mi](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[dl](t,!0),m(this,ie,"f").describe(t,r),this}detectLocale(t){return F("<boolean>",[t],arguments.length),B(this,Ln,t,"f"),this}env(t){return F("[string|boolean]",[t],arguments.length),t===!1?delete m(this,W,"f").envPrefix:m(this,W,"f").envPrefix=t||"",this}epilogue(t){return F("<string>",[t],arguments.length),m(this,ie,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,r){return F("<string|array> [string]",[t,r],arguments.length),Array.isArray(t)?t.forEach(n=>this.example(...n)):m(this,ie,"f").example(t,r),this}exit(t,r){B(this,Mt,!0,"f"),B(this,an,r,"f"),m(this,Gt,"f")&&m(this,re,"f").process.exit(t)}exitProcess(t=!0){return F("[boolean]",[t],arguments.length),B(this,Gt,t,"f"),this}fail(t){if(F("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new je("Invalid first argument. Expected function or boolean 'false'");return m(this,ie,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return F("<array> [function]",[t,r],arguments.length),r?m(this,zt,"f").getCompletion(t,r):new Promise((n,i)=>{m(this,zt,"f").getCompletion(t,(o,a)=>{o?i(o):n(a)})})}getDemandedOptions(){return F([],0),m(this,W,"f").demandedOptions}getDemandedCommands(){return F([],0),m(this,W,"f").demandedCommands}getDeprecatedOptions(){return F([],0),m(this,W,"f").deprecatedOptions}getDetectLocale(){return m(this,Ln,"f")}getExitProcess(){return m(this,Gt,"f")}getGroups(){return Object.assign({},m(this,Er,"f"),m(this,Vn,"f"))}getHelp(){if(B(this,Mt,!0,"f"),!m(this,ie,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[Ys](m(this,cn,"f"),void 0,void 0,0,!0);if(Re(r))return r.then(()=>m(this,ie,"f").help())}let t=m(this,Ke,"f").runDefaultBuilderOn(this);if(Re(t))return t.then(()=>m(this,ie,"f").help())}return Promise.resolve(m(this,ie,"f").help())}getOptions(){return m(this,W,"f")}getStrict(){return m(this,Bn,"f")}getStrictCommands(){return m(this,Hn,"f")}getStrictOptions(){return m(this,Un,"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,Vn,"f")[r]||m(this,Er,"f")[r];m(this,Vn,"f")[r]&&delete m(this,Vn,"f")[r];let i={};return m(this,Er,"f")[r]=(n||[]).concat(t).filter(o=>i[o]?!1:i[o]=!0),this}hide(t){return F("<string>",[t],arguments.length),m(this,W,"f").hiddenOptions.push(t),this}implies(t,r){return F("<string|object> [number|string|array]",[t,r],arguments.length),m(this,Be,"f").implies(t,r),this}locale(t){return F("[string]",[t],arguments.length),t===void 0?(this[cl](),m(this,re,"f").y18n.getLocale()):(B(this,Ln,!1,"f"),m(this,re,"f").y18n.setLocale(t),this)}middleware(t,r,n){return m(this,Wt,"f").addMiddleware(t,!!r,n)}nargs(t,r){return F("<string|object|array> [number]",[t,r],arguments.length),this[Mi](this.nargs.bind(this),"narg",t,r),this}normalize(t){return F("<array|string>",[t],arguments.length),this[un]("normalize",t),this}number(t){return F("<array|string>",[t],arguments.length),this[un]("number",t),this[Wn](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[Wn](t),m(this,xr,"f")&&(t==="version"||(r==null?void 0:r.alias)==="version")&&this[xg](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
|
|
134
|
+
`),void 0,"versionWarning"),m(this,W,"f").key[t]=!0,r.alias&&this.alias(t,r.alias);let n=r.deprecate||r.deprecated;n&&this.deprecateOption(t,n);let i=r.demand||r.required||r.require;i&&this.demand(t,i),r.demandOption&&this.demandOption(t,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(t,r.conflicts),"default"in r&&this.default(t,r.default),r.implies!==void 0&&this.implies(t,r.implies),r.nargs!==void 0&&this.nargs(t,r.nargs),r.config&&this.config(t,r.configParser),r.normalize&&this.normalize(t),r.choices&&this.choices(t,r.choices),r.coerce&&this.coerce(t,r.coerce),r.group&&this.group(t,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(t),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(t),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(t),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(t),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(t),typeof r.global=="boolean"&&this.global(t,r.global),r.defaultDescription&&(m(this,W,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let o=r.describe||r.description||r.desc,a=m(this,ie,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(a,t)||typeof o=="string")&&this.describe(t,o),r.hidden&&this.hide(t),r.requiresArg&&this.requiresArg(t)}return this}options(t,r){return this.option(t,r)}parse(t,r,n){F("[string|array] [function|boolean|object] [function]",[t,r,n],arguments.length),this[Ag](),typeof t>"u"&&(t=m(this,cn,"f")),typeof r=="object"&&(B(this,Fn,r,"f"),r=n),typeof r=="function"&&(B(this,qt,r,"f"),r=!1),r||B(this,cn,t,"f"),m(this,qt,"f")&&B(this,Gt,!1,"f");let i=this[Ys](t,!!r),o=this.parsed;return m(this,zt,"f").setParsed(this.parsed),Re(i)?i.then(a=>(m(this,qt,"f")&&m(this,qt,"f").call(this,m(this,an,"f"),a,m(this,st,"f")),a)).catch(a=>{throw m(this,qt,"f")&&m(this,qt,"f")(a,this.parsed.argv,m(this,st,"f")),a}).finally(()=>{this[hl](),this.parsed=o}):(m(this,qt,"f")&&m(this,qt,"f").call(this,m(this,an,"f"),i,m(this,st,"f")),this[hl](),this.parsed=o,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return Re(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(Re(i))throw new je(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return F("<object>",[t],arguments.length),B(this,ja,t,"f"),this}pkgConf(t,r){F("<string> [string]",[t,r],arguments.length);let n=null,i=this[ul](r||m(this,Dn,"f"));return i[t]&&typeof i[t]=="object"&&(n=Ks(i[t],r||m(this,Dn,"f"),this[zn]()["deep-merge-config"]||!1,m(this,re,"f")),m(this,W,"f").configObjects=(m(this,W,"f").configObjects||[]).concat(n)),this}positional(t,r){F("<string> <object>",[t,r],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=sn(r,(a,c)=>a==="type"&&!["string","number","boolean"].includes(c)?!1:n.includes(a));let i=m(this,Zs,"f").fullCommands[m(this,Zs,"f").fullCommands.length-1],o=i?m(this,Ke,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return Ri(o).forEach(a=>{let c=o[a];Array.isArray(c)?c.indexOf(t)!==-1&&(r[a]=!0):c[t]&&!(a in r)&&(r[a]=c[t])}),this.group(t,m(this,ie,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return F("[boolean]",[t],arguments.length),B(this,Ra,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[Mi](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,Ni,"f").log(m(this,zt,"f").generateCompletionScript(t,r||m(this,kt,"f")||"completion")),this}showHelp(t){if(F("[string|function]",[t],arguments.length),B(this,Mt,!0,"f"),!m(this,ie,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[Ys](m(this,cn,"f"),void 0,void 0,0,!0);if(Re(n))return n.then(()=>{m(this,ie,"f").showHelp(t)}),this}let r=m(this,Ke,"f").runDefaultBuilderOn(this);if(Re(r))return r.then(()=>{m(this,ie,"f").showHelp(t)}),this}return m(this,ie,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,r){return F("[boolean|string] [string]",[t,r],arguments.length),m(this,ie,"f").showHelpOnFail(t,r),this}showVersion(t){return F("[string|function]",[t],arguments.length),m(this,ie,"f").showVersion(t),this}skipValidation(t){return F("<array|string>",[t],arguments.length),this[un]("skipValidation",t),this}strict(t){return F("[boolean]",[t],arguments.length),B(this,Bn,t!==!1,"f"),this}strictCommands(t){return F("[boolean]",[t],arguments.length),B(this,Hn,t!==!1,"f"),this}strictOptions(t){return F("[boolean]",[t],arguments.length),B(this,Un,t!==!1,"f"),this}string(t){return F("<array|string>",[t],arguments.length),this[un]("string",t),this[Wn](t),this}terminalWidth(){return F([],0),m(this,re,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return F("<object>",[t],arguments.length),B(this,Ln,!1,"f"),m(this,re,"f").y18n.updateLocale(t),this}usage(t,r,n,i){if(F("<string|null|undefined> [string|boolean] [function|object] [function]",[t,r,n,i],arguments.length),r!==void 0){if(vt(t,null,m(this,re,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new je(".usage() description must start with $0 if being used as alias for .command()")}else return m(this,ie,"f").usage(t),this}usageConfiguration(t){return F("<object>",[t],arguments.length),B(this,Ta,t,"f"),this}version(t,r,n){let i="version";if(F("[boolean|string] [string] [string]",[t,r,n],arguments.length),m(this,xr,"f")&&(this[al](m(this,xr,"f")),m(this,ie,"f").version(void 0),B(this,xr,null,"f")),arguments.length===0)n=this[jg](),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,xr,typeof t=="string"?t:i,"f"),r=r||m(this,ie,"f").deferY18nLookup("Show version number"),m(this,ie,"f").version(n||void 0),this.boolean(m(this,xr,"f")),this.describe(m(this,xr,"f"),r),this}wrap(t){return F("<number|null|undefined>",[t],arguments.length),m(this,ie,"f").wrap(t),this}[(Ke=new WeakMap,Dn=new WeakMap,Zs=new WeakMap,zt=new WeakMap,kt=new WeakMap,Ea=new WeakMap,an=new WeakMap,Ln=new WeakMap,xa=new WeakMap,Gt=new WeakMap,Aa=new WeakMap,Wt=new WeakMap,Er=new WeakMap,Mt=new WeakMap,Kt=new WeakMap,Ca=new WeakMap,Ni=new WeakMap,st=new WeakMap,W=new WeakMap,Ia=new WeakMap,ja=new WeakMap,qt=new WeakMap,Fn=new WeakMap,ki=new WeakMap,Vn=new WeakMap,cn=new WeakMap,Ra=new WeakMap,re=new WeakMap,Bn=new WeakMap,Hn=new WeakMap,Un=new WeakMap,ie=new WeakMap,Ta=new WeakMap,xr=new WeakMap,Be=new WeakMap,$g)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[Eg](){return{log:s((...t)=>{this[Na]()||console.log(...t),B(this,Mt,!0,"f"),m(this,st,"f").length&&B(this,st,m(this,st,"f")+`
|
|
135
|
+
`,"f"),B(this,st,m(this,st,"f")+t.join(" "),"f")},"log"),error:s((...t)=>{this[Na]()||console.error(...t),B(this,Mt,!0,"f"),m(this,st,"f").length&&B(this,st,m(this,st,"f")+`
|
|
136
|
+
`,"f"),B(this,st,m(this,st,"f")+t.join(" "),"f")},"error")}}[al](t){Ri(m(this,W,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=m(this,W,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete m(this,ie,"f").getDescriptions()[t]}[xg](t,r,n){m(this,xa,"f")[n]||(m(this,re,"f").process.emitWarning(t,r),m(this,xa,"f")[n]=!0)}[Ag](){m(this,Aa,"f").push({options:m(this,W,"f"),configObjects:m(this,W,"f").configObjects.slice(0),exitProcess:m(this,Gt,"f"),groups:m(this,Er,"f"),strict:m(this,Bn,"f"),strictCommands:m(this,Hn,"f"),strictOptions:m(this,Un,"f"),completionCommand:m(this,kt,"f"),output:m(this,st,"f"),exitError:m(this,an,"f"),hasOutput:m(this,Mt,"f"),parsed:this.parsed,parseFn:m(this,qt,"f"),parseContext:m(this,Fn,"f")}),m(this,ie,"f").freeze(),m(this,Be,"f").freeze(),m(this,Ke,"f").freeze(),m(this,Wt,"f").freeze()}[Cg](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(m(this,re,"f").process.argv()[0])?r=m(this,re,"f").process.argv().slice(1,2):r=m(this,re,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[Bg](m(this,Dn,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),m(this,re,"f").getEnv("_")&&m(this,re,"f").getProcessArgvBin()===m(this,re,"f").getEnv("_")&&(t=m(this,re,"f").getEnv("_").replace(`${m(this,re,"f").path.dirname(m(this,re,"f").process.execPath())}/`,"")),t}[zn](){return m(this,ja,"f")}[Ig](){return m(this,Ta,"f")}[cl](){if(!m(this,Ln,"f"))return;let t=m(this,re,"f").getEnv("LC_ALL")||m(this,re,"f").getEnv("LC_MESSAGES")||m(this,re,"f").getEnv("LANG")||m(this,re,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[jg](){return this[ul]().version||"unknown"}[Rg](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)m(this,re,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[ul](t){let r=t||"*";if(m(this,ki,"f")[r])return m(this,ki,"f")[r];let n={};try{let i=t||m(this,re,"f").mainFilename;!t&&m(this,re,"f").path.extname(i)&&(i=m(this,re,"f").path.dirname(i));let o=m(this,re,"f").findUp(i,(a,c)=>{if(c.includes("package.json"))return"package.json"});vt(o,void 0,m(this,re,"f")),n=JSON.parse(m(this,re,"f").readFileSync(o,"utf8"))}catch{}return m(this,ki,"f")[r]=n||{},m(this,ki,"f")[r]}[un](t,r){r=[].concat(r),r.forEach(n=>{n=this[pl](n),m(this,W,"f")[t].push(n)})}[Mi](t,r,n,i){this[fl](t,r,n,i,(o,a,c)=>{m(this,W,"f")[o][a]=c})}[ll](t,r,n,i){this[fl](t,r,n,i,(o,a,c)=>{m(this,W,"f")[o][a]=(m(this,W,"f")[o][a]||[]).concat(c)})}[fl](t,r,n,i,o){if(Array.isArray(n))n.forEach(a=>{t(a,i)});else if((a=>typeof a=="object")(n))for(let a of Ri(n))t(a,n[a]);else o(r,this[pl](n),i)}[pl](t){return t==="__proto__"?"___proto___":t}[dl](t,r){return this[Mi](this[dl].bind(this),"key",t,r),this}[hl](){var t,r,n,i,o,a,c,u,l,p,f,d;let h=m(this,Aa,"f").pop();vt(h,void 0,m(this,re,"f"));let y;t=this,r=this,n=this,i=this,o=this,a=this,c=this,u=this,l=this,p=this,f=this,d=this,{options:{set value(v){B(t,W,v,"f")}}.value,configObjects:y,exitProcess:{set value(v){B(r,Gt,v,"f")}}.value,groups:{set value(v){B(n,Er,v,"f")}}.value,output:{set value(v){B(i,st,v,"f")}}.value,exitError:{set value(v){B(o,an,v,"f")}}.value,hasOutput:{set value(v){B(a,Mt,v,"f")}}.value,parsed:this.parsed,strict:{set value(v){B(c,Bn,v,"f")}}.value,strictCommands:{set value(v){B(u,Hn,v,"f")}}.value,strictOptions:{set value(v){B(l,Un,v,"f")}}.value,completionCommand:{set value(v){B(p,kt,v,"f")}}.value,parseFn:{set value(v){B(f,qt,v,"f")}}.value,parseContext:{set value(v){B(d,Fn,v,"f")}}.value}=h,m(this,W,"f").configObjects=y,m(this,ie,"f").unfreeze(),m(this,Be,"f").unfreeze(),m(this,Ke,"f").unfreeze(),m(this,Wt,"f").unfreeze()}[Tg](t,r){return qn(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[Ng].bind(this),getContext:this[kg].bind(this),getHasOutput:this[Mg].bind(this),getLoggerInstance:this[qg].bind(this),getParseContext:this[Dg].bind(this),getParserConfiguration:this[zn].bind(this),getUsageConfiguration:this[Ig].bind(this),getUsageInstance:this[Lg].bind(this),getValidationInstance:this[Fg].bind(this),hasParseCallback:this[Na].bind(this),isGlobalContext:this[Vg].bind(this),postProcess:this[Gn].bind(this),reset:this[ml].bind(this),runValidation:this[gl].bind(this),runYargsParserAndExecuteCommands:this[Ys].bind(this),setHasOutput:this[Hg].bind(this)}}[Ng](){return m(this,Ke,"f")}[kg](){return m(this,Zs,"f")}[Mg](){return m(this,Mt,"f")}[qg](){return m(this,Ni,"f")}[Dg](){return m(this,Fn,"f")||{}}[Lg](){return m(this,ie,"f")}[Fg](){return m(this,Be,"f")}[Na](){return!!m(this,qt,"f")}[Vg](){return m(this,Ca,"f")}[Gn](t,r,n,i){return n||Re(t)||(r||(t=this[$g](t)),(this[zn]()["parse-positional-numbers"]||this[zn]()["parse-positional-numbers"]===void 0)&&(t=this[Rg](t)),i&&(t=Mn(t,this,m(this,Wt,"f").getMiddleware(),!1))),t}[ml](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,Vn,"f"),Object.keys(m(this,Er,"f")).reduce((a,c)=>{let u=m(this,Er,"f")[c].filter(l=>!(l in n));return u.length>0&&(a[c]=u),a},{})),B(this,Er,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],o=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(a=>{r[a]=(m(this,W,"f")[a]||[]).filter(c=>!n[c])}),o.forEach(a=>{r[a]=sn(m(this,W,"f")[a],c=>!n[c])}),r.envPrefix=m(this,W,"f").envPrefix,B(this,W,r,"f"),B(this,ie,m(this,ie,"f")?m(this,ie,"f").reset(n):yg(this,m(this,re,"f")),"f"),B(this,Be,m(this,Be,"f")?m(this,Be,"f").reset(n):Pg(this,m(this,ie,"f"),m(this,re,"f")),"f"),B(this,Ke,m(this,Ke,"f")?m(this,Ke,"f").reset():hg(m(this,ie,"f"),m(this,Be,"f"),m(this,Wt,"f"),m(this,re,"f")),"f"),m(this,zt,"f")||B(this,zt,_g(this,m(this,ie,"f"),m(this,Ke,"f"),m(this,re,"f")),"f"),m(this,Wt,"f").reset(),B(this,kt,null,"f"),B(this,st,"","f"),B(this,an,null,"f"),B(this,Mt,!1,"f"),this.parsed=!1,this}[Bg](t,r){return m(this,re,"f").path.relative(t,r)}[Ys](t,r,n,i=0,o=!1){let a=!!n||o;t=t||m(this,cn,"f"),m(this,W,"f").__=m(this,re,"f").y18n.__,m(this,W,"f").configuration=this[zn]();let c=!!m(this,W,"f").configuration["populate--"],u=Object.assign({},m(this,W,"f").configuration,{"populate--":!0}),l=m(this,re,"f").Parser.detailed(t,Object.assign({},m(this,W,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),p=Object.assign(l.argv,m(this,Fn,"f")),f,d=l.aliases,h=!1,y=!1;Object.keys(p).forEach(v=>{v===m(this,Kt,"f")&&p[v]?h=!0:v===m(this,xr,"f")&&p[v]&&(y=!0)}),p.$0=this.$0,this.parsed=l,i===0&&m(this,ie,"f").clearCachedHelpMessage();try{if(this[cl](),r)return this[Gn](p,c,!!n,!1);m(this,Kt,"f")&&[m(this,Kt,"f")].concat(d[m(this,Kt,"f")]||[]).filter(I=>I.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),h=!0),B(this,Ca,!1,"f");let v=m(this,Ke,"f").getCommands(),g=m(this,zt,"f").completionKey in p,w=h||g||o;if(p._.length){if(v.length){let A;for(let I=i||0,N;p._[I]!==void 0;I++)if(N=String(p._[I]),v.includes(N)&&N!==m(this,kt,"f")){let R=m(this,Ke,"f").runCommand(N,this,l,I+1,o,h||y||o);return this[Gn](R,c,!!n,!1)}else if(!A&&N!==m(this,kt,"f")){A=N;break}!m(this,Ke,"f").hasDefaultCommand()&&m(this,Ra,"f")&&A&&!w&&m(this,Be,"f").recommendCommands(A,v)}m(this,kt,"f")&&p._.includes(m(this,kt,"f"))&&!g&&(m(this,Gt,"f")&&on(!0),this.showCompletionScript(),this.exit(0))}if(m(this,Ke,"f").hasDefaultCommand()&&!w){let A=m(this,Ke,"f").runCommand(null,this,l,0,o,h||y||o);return this[Gn](A,c,!!n,!1)}if(g){m(this,Gt,"f")&&on(!0),t=[].concat(t);let A=t.slice(t.indexOf(`--${m(this,zt,"f").completionKey}`)+1);return m(this,zt,"f").getCompletion(A,(I,N)=>{if(I)throw new je(I.message);(N||[]).forEach(R=>{m(this,Ni,"f").log(R)}),this.exit(0)}),this[Gn](p,!c,!!n,!1)}if(m(this,Mt,"f")||(h?(m(this,Gt,"f")&&on(!0),a=!0,this.showHelp("log"),this.exit(0)):y&&(m(this,Gt,"f")&&on(!0),a=!0,m(this,ie,"f").showVersion("log"),this.exit(0))),!a&&m(this,W,"f").skipValidation.length>0&&(a=Object.keys(p).some(A=>m(this,W,"f").skipValidation.indexOf(A)>=0&&p[A]===!0)),!a){if(l.error)throw new je(l.error.message);if(!g){let A=this[gl](d,{},l.error);n||(f=Mn(p,this,m(this,Wt,"f").getMiddleware(),!0)),f=this[Tg](A,f??p),Re(f)&&!n&&(f=f.then(()=>Mn(p,this,m(this,Wt,"f").getMiddleware(),!1)))}}}catch(v){if(v instanceof je)m(this,ie,"f").fail(v.message,v);else throw v}return this[Gn](f??p,c,!!n,!0)}[gl](t,r,n,i){let o={...this.getDemandedOptions()};return a=>{if(n)throw new je(n.message);m(this,Be,"f").nonOptionCount(a),m(this,Be,"f").requiredArguments(a,o);let c=!1;m(this,Hn,"f")&&(c=m(this,Be,"f").unknownCommands(a)),m(this,Bn,"f")&&!c?m(this,Be,"f").unknownArguments(a,t,r,!!i):m(this,Un,"f")&&m(this,Be,"f").unknownArguments(a,t,{},!1,!1),m(this,Be,"f").limitedChoices(a),m(this,Be,"f").implications(a),m(this,Be,"f").conflicting(a)}}[Hg](){B(this,Mt,!0,"f")}[Wn](t){if(typeof t=="string")m(this,W,"f").key[t]=!0;else for(let r of t)m(this,W,"f").key[r]=!0}};s(vl,"YargsInstance");var yl=vl;function mg(e){return!!e&&typeof e.getInternalMethods=="function"}s(mg,"isYargsInstance");var Rw=Ug(Ju),zg=Rw;var Gg=s((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),Wg=s((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),Kg=s((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),qe={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},FL=Object.keys(qe.modifier),Tw=Object.keys(qe.color),Nw=Object.keys(qe.bgColor),VL=[...Tw,...Nw];function kw(){let e=new Map;for(let[t,r]of Object.entries(qe)){for(let[n,i]of Object.entries(r))qe[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=qe[n],e.set(i[0],i[1]);Object.defineProperty(qe,t,{value:r,enumerable:!1})}return Object.defineProperty(qe,"codes",{value:e,enumerable:!1}),qe.color.close="\x1B[39m",qe.bgColor.close="\x1B[49m",qe.color.ansi=Gg(),qe.color.ansi256=Wg(),qe.color.ansi16m=Kg(),qe.bgColor.ansi=Gg(10),qe.bgColor.ansi256=Wg(10),qe.bgColor.ansi16m=Kg(10),Object.defineProperties(qe,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:s(t=>qe.rgbToAnsi256(...qe.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let c=t%36;r=Math.floor(t/36)/5,n=Math.floor(c/6)/5,i=c%6/5}let o=Math.max(r,n,i)*2;if(o===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:s((t,r,n)=>qe.ansi256ToAnsi(qe.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:s(t=>qe.ansi256ToAnsi(qe.hexToAnsi256(t)),"value"),enumerable:!1}}),qe}s(kw,"assembleStyles");var Mw=kw(),lr=Mw;var Ma=xt(require("process"),1),Yg=xt(require("os"),1),bl=xt(require("tty"),1);function Zt(e,t=globalThis.Deno?globalThis.Deno.args:Ma.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}s(Zt,"hasFlag");var{env:Le}=Ma.default,ka;Zt("no-color")||Zt("no-colors")||Zt("color=false")||Zt("color=never")?ka=0:(Zt("color")||Zt("colors")||Zt("color=true")||Zt("color=always"))&&(ka=1);function qw(){if("FORCE_COLOR"in Le)return Le.FORCE_COLOR==="true"?1:Le.FORCE_COLOR==="false"?0:Le.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Le.FORCE_COLOR,10),3)}s(qw,"envForceColor");function Dw(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}s(Dw,"translateLevel");function Lw(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=qw();n!==void 0&&(ka=n);let i=r?ka:n;if(i===0)return 0;if(r){if(Zt("color=16m")||Zt("color=full")||Zt("color=truecolor"))return 3;if(Zt("color=256"))return 2}if("TF_BUILD"in Le&&"AGENT_NAME"in Le)return 1;if(e&&!t&&i===void 0)return 0;let o=i||0;if(Le.TERM==="dumb")return o;if(Ma.default.platform==="win32"){let a=Yg.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Le)return"GITHUB_ACTIONS"in Le||"GITEA_ACTIONS"in Le?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Le)||Le.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in Le)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Le.TEAMCITY_VERSION)?1:0;if(Le.COLORTERM==="truecolor"||Le.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Le){let a=Number.parseInt((Le.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Le.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Le.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Le.TERM)||"COLORTERM"in Le?1:o}s(Lw,"_supportsColor");function Zg(e,t={}){let r=Lw(e,{streamIsTTY:e&&e.isTTY,...t});return Dw(r)}s(Zg,"createSupportsColor");var Fw={stdout:Zg({isTTY:bl.default.isatty(1)}),stderr:Zg({isTTY:bl.default.isatty(2)})},Jg=Fw;function Qg(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,a="";do a+=e.slice(o,n)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return a+=e.slice(o),a}s(Qg,"stringReplaceAll");function Xg(e,t,r,n){let i=0,o="";do{let a=e[n-1]==="\r";o+=e.slice(i,a?n-1:n)+t+(a?`\r
|
|
137
137
|
`:`
|
|
138
138
|
`)+r,i=n+1,n=e.indexOf(`
|
|
139
|
-
`,i)}while(n!==-1);return o+=e.slice(i),o}s(
|
|
140
|
-
`);return o!==-1&&(t=Zg(t,i,n,o)),n+t+i},"applyStyle");Object.defineProperties(Js.prototype,Di);var GL=Js(),WL=Js({level:Jg?Jg.level:0});var Kn=new Ma;function Sl(e,t,r){console.log(r!==void 0&&r!==t?`${Kn.yellow(`${e}:`.padEnd(20))}${Kn.magenta(t)}`:`${`${e}:`.padEnd(20)}${t}`)}s(Sl,"logVariable");function Li(e){console.log(`[INFO] ${e}`)}s(Li,"logInfo");function Ol(e){console.log(Kn.green(`[SUCCESS] ${e}`))}s(Ol,"logSuccess");function Qs(e,t){e instanceof Error?(console.log(Kn.red(`[ERROR] ${t||e.message}`)),process.env.VERBOSE&&console.error(e)):console.log(Kn.red(`[ERROR] ${e}`))}s(Qs,"logError");function ey(e){console.log(Kn.bgYellow(`==== ${e} ====`))}s(ey,"logBanner");var ty=xt(require("fs"));function Da(){return"0.3.3"}s(Da,"getVersion");var o5=xt(ny());var Pl=Symbol("options_key");function fr(e){return(t,r)=>{var n,i;if(e!=null){let o={...Reflect.getMetadata(Pl,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(Pl,o,t)}}}s(fr,"YargOption");function iy(e){let t=Reflect.getMetadata(Pl,e.prototype);if(!t)throw new Error(`Options for ${e.name} were not defined`);return t}s(iy,"getYargsOption");function sy(e){return async t=>t.options(Bw(e)).middleware(async r=>await Hw(e,r),!0)}s(sy,"getBuilder");function Bw(e){return Object.entries(iy(e)).reduce((t,[r,n])=>(t[r]=Object.fromEntries(Object.entries(n).filter(([i])=>!["envAlias","default"].includes(i))),t),{})}s(Bw,"getYargsOptions");async function Hw(e,t){let r=new e;for(let[n,i]of Object.entries(iy(e)))r[n]=t[n]??i.default;return r}s(Hw,"loadYargsConfig");var FP=xt(k1()),VP=require("child_process");var N1="Schema",M1="Body",q1="Param",D1="Response",L1="ErrorResponse",hh="z.void()",Uc={bindings:["z"],from:"zod"};var F1={output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,useRelativeImports:!1,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:N1,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var mh={"Content-Type":"application/json",Accept:"application/json"},V1="data";var B1=["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"],H1=s(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),gh=s(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var Jr=Symbol.for("@ts-pattern/matcher"),D3=Symbol.for("@ts-pattern/isVariadic"),Gc="@ts-pattern/anonymous-select-key",yh=s(e=>!!(e&&typeof e=="object"),"r"),zc=s(e=>e&&!!e[Jr],"i"),Lr=s((e,t,r)=>{if(zc(e)){let n=e[Jr](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(yh(e)){if(!yh(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let a of e.keys()){let c=e[a];zc(c)&&c[D3]?o.push(c):o.length?i.push(c):n.push(c)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),c=i.length===0?[]:t.slice(-i.length),u=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,p)=>Lr(l,a[p],r))&&i.every((l,p)=>Lr(l,c[p],r))&&(o.length===0||Lr(o[0],u,r))}return e.length===t.length&&e.every((a,c)=>Lr(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||zc(o=i)&&o[Jr]().matcherType==="optional")&&Lr(i,t[n],r);var o})}return Object.is(t,e)},"s"),In=s(e=>{var t,r,n;return yh(e)?zc(e)?(t=(r=(n=e[Jr]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?zo(e,In):zo(Object.values(e),In):[]},"o"),zo=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function tr(e){return Object.assign(e,{optional:s(()=>L3(e),"optional"),and:s(t=>De(e,t),"and"),or:s(t=>F3(e,t),"or"),select:s(t=>t===void 0?U1(e):U1(t,e),"select")})}s(tr,"u");function L3(e){return tr({[Jr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return t===void 0?(In(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Lr(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>In(e),"getSelectionKeys"),matcherType:"optional"})})}s(L3,"h");function De(...e){return tr({[Jr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>Lr(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>zo(e,In),"getSelectionKeys"),matcherType:"and"})})}s(De,"m");function F3(...e){return tr({[Jr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return zo(e,In).forEach(i=>n(i,void 0)),{matched:e.some(i=>Lr(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>zo(e,In),"getSelectionKeys"),matcherType:"or"})})}s(F3,"d");function Oe(e){return{[Jr]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(Oe,"p");function U1(...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 tr({[Jr]:()=>({match:s(n=>{let i={[t??Gc]:n};return{matched:r===void 0||Lr(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??Gc].concat(r===void 0?[]:In(r)),"getSelectionKeys")})})}s(U1,"y");function qr(e){return typeof e=="number"}s(qr,"v");function En(e){return typeof e=="string"}s(En,"b");function xn(e){return typeof e=="bigint"}s(xn,"w");var $V=tr(Oe(function(e){return!0}));var An=s(e=>Object.assign(tr(e),{startsWith:s(t=>{return An(De(e,(r=t,Oe(n=>En(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return An(De(e,(r=t,Oe(n=>En(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>An(De(e,(r=>Oe(n=>En(n)&&n.length>=r))(t))),"minLength"),length:s(t=>An(De(e,(r=>Oe(n=>En(n)&&n.length===r))(t))),"length"),maxLength:s(t=>An(De(e,(r=>Oe(n=>En(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return An(De(e,(r=t,Oe(n=>En(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return An(De(e,(r=t,Oe(n=>En(n)&&!!n.match(r)))));var r},"regex")}),"j"),EV=An(Oe(En)),Dr=s(e=>Object.assign(tr(e),{between:s((t,r)=>Dr(De(e,((n,i)=>Oe(o=>qr(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Dr(De(e,(r=>Oe(n=>qr(n)&&n<r))(t))),"lt"),gt:s(t=>Dr(De(e,(r=>Oe(n=>qr(n)&&n>r))(t))),"gt"),lte:s(t=>Dr(De(e,(r=>Oe(n=>qr(n)&&n<=r))(t))),"lte"),gte:s(t=>Dr(De(e,(r=>Oe(n=>qr(n)&&n>=r))(t))),"gte"),int:s(()=>Dr(De(e,Oe(t=>qr(t)&&Number.isInteger(t)))),"int"),finite:s(()=>Dr(De(e,Oe(t=>qr(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>Dr(De(e,Oe(t=>qr(t)&&t>0))),"positive"),negative:s(()=>Dr(De(e,Oe(t=>qr(t)&&t<0))),"negative")}),"x"),xV=Dr(Oe(qr)),Cn=s(e=>Object.assign(tr(e),{between:s((t,r)=>Cn(De(e,((n,i)=>Oe(o=>xn(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Cn(De(e,(r=>Oe(n=>xn(n)&&n<r))(t))),"lt"),gt:s(t=>Cn(De(e,(r=>Oe(n=>xn(n)&&n>r))(t))),"gt"),lte:s(t=>Cn(De(e,(r=>Oe(n=>xn(n)&&n<=r))(t))),"lte"),gte:s(t=>Cn(De(e,(r=>Oe(n=>xn(n)&&n>=r))(t))),"gte"),positive:s(()=>Cn(De(e,Oe(t=>xn(t)&&t>0))),"positive"),negative:s(()=>Cn(De(e,Oe(t=>xn(t)&&t<0))),"negative")}),"A"),AV=Cn(Oe(xn)),CV=tr(Oe(function(e){return typeof e=="boolean"})),IV=tr(Oe(function(e){return typeof e=="symbol"})),jV=tr(Oe(function(e){return e==null})),RV=tr(Oe(function(e){return e!=null}));var Sh=class Sh extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};s(Sh,"W");var vh=Sh,bh={matched:!1,value:void 0};function gt(e){return new _h(e,bh)}s(gt,"z");var Uo=class Uo{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let o=!1,a={},c=s((l,p)=>{o=!0,a[l]=p},"a"),u=!n.some(l=>Lr(l,this.input,c))||i&&!i(this.input)?bh:{matched:!0,value:r(o?Gc in a?a[Gc]:a:this.input,this.input)};return new Uo(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Uo(this.input,n?{matched:!0,value:r(this.input,this.input)}:bh)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new vh(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(Uo,"I");var _h=Uo;var Oh=2,z1=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],G1=["query","header","path"],gi=["get","put","post","delete","options","head","patch","trace"],W1=["string","number","integer","boolean"];function yi(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(yi,"pick");var Fr=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Go=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),K1=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),rr=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),Z1=s(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),Y1=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),J1=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix");var X1=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),Wo=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),$h=s(e=>Wo(e).split("/").at(-1),"getSchemaNameByRef");function Qe(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s(Qe,"isReferenceObject");function e2(e){let t=V3(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return rr(t)}s(e2,"normalizeString");function t2(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s(t2,"wrapWithQuotesIfNeeded");function r2(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s(r2,"unwrapQuotesIfNeeded");function V3(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(V3,"prefixStringStartingWithNumberIfNeeded");function Eh(e){let t=e.replaceAll("_","#");return rr(t.replaceAll("-","_")).replaceAll("#","_")}s(Eh,"pathParamToVariableName");var vi=s(e=>W1.includes(e),"isPrimitiveType");function n2(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}s(n2,"escapeControlCharacters");function ws(e){return e.includes("application/")&&e.includes("json")||z1.includes(e)||e.includes("text/")}s(ws,"isParamMediaTypeAllowed");function xh(e){return e>=200&&e<300}s(xh,"isMainResponseStatus");function Ah(e){return!(e>=200&&e<300)}s(Ah,"isErrorStatus");function Wc(e){return e==="application/json"}s(Wc,"isMediaTypeAllowed");function Ph({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let o=`${t}${U3(e)}`,a=r.operationId??o;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((u,l)=>l===0?u:Fr(u)).join("");if(n.removeOperationPrefixEndingWith&&!i){let c=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(c,"")}return B1.includes(a)?o:a}s(Ph,"getOperationName");function Ch({path:e,method:t,operation:r,openApiDoc:n,options:i}){let o=B3(n,i),a=i.splitByTags?$s(r,i):i.defaultTag,c=Ph({path:e,method:t,operation:r,options:i});return o[a].filter(l=>Ph({path:e,method:t,operation:l,options:i})===c).length===1?c:Ph({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}s(Ch,"getUniqueOperationName");function B3(e,t){let r={};for(let n in e.paths){let i=e.paths[n],o=yi(i,gi);for(let a in o){let c=o[a];if(!c||c.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let u=t.splitByTags?$s(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}s(B3,"getOperationsByTag");function i2(e,t,r){let n=[];for(let i in t.paths){let o=t.paths[i],a=yi(o,gi);for(let c in a){let u=a[c];if(!u||u.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let l=Ch({path:i,method:c,operation:u,openApiDoc:t,options:r});n.push(l)}}return n.filter(i=>i===e).length<=1}s(i2,"isUniqueOperationNameWithoutSplitByTags");function bi(e){return Z1(e)}s(bi,"formatTag");function $s(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return bi(r??t.defaultTag)}s($s,"getOperationTag");var Q1=/({\w+})/g,H3=/[^\w\-]+/g;function U3(e){e=Fr(K1(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(Q1)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(Q1,"")}By${Fr(r.slice(1,-1))}`}return e.replace(H3,"_")}s(U3,"pathToVariableName");var wh=/{(\b\w+(?:-\w+)*\b)}/g;function s2(e){let t=e.match(wh);return t===null?e.replaceAll(wh,":$1"):(t.forEach(r=>{let n=Eh(r.replaceAll(wh,":$1"));e=e.replaceAll(r,n)}),e)}s(s2,"replaceHyphenatedPath");function Qr(e){return!Qe(e)}s(Qr,"isSchemaObject");function o2(e){return e.type==="array"}s(o2,"isArraySchemaObject");function a2(e){if(!e.allOf)throw new Error("function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,o)=>{if(z3(o)){let a=o.required;i[0].push(...a??[])}else i[1].push(o);return i},[[],[]]),n={properties:t.reduce((i,o)=>(i[o]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:s((i,o)=>{if(Qe(i)){let a=o(i.$ref);a&&n.required.forEach(c=>{var u;n.properties[c]=((u=a==null?void 0:a.properties)==null?void 0:u[c])??{}})}else{let a=i.properties??{};n.required.forEach(c=>{a[c]&&(n.properties[c]=a[c]??{})})}},"patchRequiredSchemaInLoop")}}s(a2,"inferRequiredSchema");var z3=s(e=>!Qe(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");function Ko({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Go(t)}/`:""}${Go(t)}.${i}`:i}s(Ko,"getTagFileName");var Ot=s(({type:e,tag:t,options:r})=>`${Fr(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var jn=s((e,t)=>Y1(Fr(e2(e)),t),"getZodSchemaName"),Tt=s(e=>!e.startsWith("z."),"isNamedZodSchema"),Es=s((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),c2=s(e=>rr(`${e}_${M1}`),"getBodyZodSchemaName"),u2=s((e,t)=>rr(`${e}_${t}${q1}`),"getParamZodSchemaName"),l2=s(e=>rr(`${e}${D1}`),"getMainResponseZodSchemaName"),f2=s((e,t)=>rr(`${e}_${t}_${L1}`),"getErrorResponseZodSchemaName");var Zo=s((e,t)=>J1(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),p2=s(({resolver:e,zodSchemaName:t,options:r})=>Tt(t)?`${r.includeNamespaces?`${Ot({type:"models",tag:e.getTagByZodSchemaName(t),options:r})}.`:""}${t}`:t,"getImportedZodSchemaName"),Ih=s(({resolver:e,zodSchemaName:t,options:r})=>Tt(t)?`${r.includeNamespaces?`${Ot({type:"models",tag:e.getTagByZodSchemaName(t),options:r})}.`:""}${Zo(t,r)}`:t,"getImportedZodSchemaInferedTypeName");function d2(e){return gt(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(d2,"primitiveTypeToTsType");var Yo=s(e=>Go(rr(e.operationName)),"getEndpointName");function h2(e,t){return`${t.includeNamespaces?`${Ot({type:"endpoints",tag:Jo(e,t),options:t})}.`:""}${Yo(e)}`}s(h2,"getImportedEndpointName");var m2=s(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function Jo(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return bi(r??t.defaultTag)}s(Jo,"getEndpointTag");function jh({resolver:e,endpoint:t,options:r}){return t.parameters.map(n=>{var o,a,c,u;let i="string";if(Tt(n.zodSchema))i=Ih({resolver:e,zodSchemaName:n.zodSchema,options:r});else if((o=n.parameterObject)!=null&&o.schema&&Qr(n.parameterObject.schema)){let l=(c=(a=n.parameterObject)==null?void 0:a.schema)==null?void 0:c.type;l&&vi(l)&&(i=d2(l))}return{name:gh(n.name),type:i,paramType:n.type,required:((u=n.parameterObject)==null?void 0:u.required)??!0}}).sort((n,i)=>{if(n.required===i.required){let o=["Path","Body","Query","Header"];return o.indexOf(n.paramType)-o.indexOf(i.paramType)}return n.required?-1:1})}s(jh,"mapEndpointParamsToFunctionParams");function g2(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let o=H1(i.name)?i.name:`"${i.name}"`,a=gh(i.name);return{...i,name:o,value:a}}),r={...e.requestFormat!==mh["Content-Type"]?{"Content-Type":e.requestFormat}:{},...e.responseFormat&&e.responseFormat!==mh.Accept?{Accept:e.responseFormat}:{}};return{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}s(g2,"getEndpointConfig");function Vr({schema:e,meta:t,options:r}){let n=[];gt(e.type).with("string",()=>n.push(K3(e))).with("number","integer",()=>n.push(Y3(e))).with("array",()=>n.push(J3(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
|
|
139
|
+
`,i)}while(n!==-1);return o+=e.slice(i),o}s(Xg,"stringEncaseCRLFWithFirstIndex");var{stdout:ey,stderr:ty}=Jg,_l=Symbol("GENERATOR"),qi=Symbol("STYLER"),Js=Symbol("IS_EMPTY"),ry=["ansi","ansi","ansi256","ansi16m"],Di=Object.create(null),Vw=s((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=ey?ey.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),Pl=class Pl{constructor(t){return ny(t)}};s(Pl,"Chalk");var qa=Pl,ny=s(e=>{let t=s((...r)=>r.join(" "),"chalk");return Vw(t,e),Object.setPrototypeOf(t,Qs.prototype),t},"chalkFactory");function Qs(e){return ny(e)}s(Qs,"createChalk");Object.setPrototypeOf(Qs.prototype,Function.prototype);for(let[e,t]of Object.entries(lr))Di[e]={get(){let r=Da(this,Ol(t.open,t.close,this[qi]),this[Js]);return Object.defineProperty(this,e,{value:r}),r}};Di.visible={get(){let e=Da(this,this[qi],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Sl=s((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?lr[r].ansi16m(...n):t==="ansi256"?lr[r].ansi256(lr.rgbToAnsi256(...n)):lr[r].ansi(lr.rgbToAnsi(...n)):e==="hex"?Sl("rgb",t,r,...lr.hexToRgb(...n)):lr[r][e](...n),"getModelAnsi"),Bw=["rgb","hex","ansi256"];for(let e of Bw){Di[e]={get(){let{level:r}=this;return function(...n){let i=Ol(Sl(e,ry[r],"color",...n),lr.color.close,this[qi]);return Da(this,i,this[Js])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Di[t]={get(){let{level:r}=this;return function(...n){let i=Ol(Sl(e,ry[r],"bgColor",...n),lr.bgColor.close,this[qi]);return Da(this,i,this[Js])}}}}var Hw=Object.defineProperties(()=>{},{...Di,level:{enumerable:!0,get(){return this[_l].level},set(e){this[_l].level=e}}}),Ol=s((e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},"createStyler"),Da=s((e,t,r)=>{let n=s((...i)=>Uw(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,Hw),n[_l]=e,n[qi]=t,n[Js]=r,n},"createBuilder"),Uw=s((e,t)=>{if(e.level<=0||!t)return e[Js]?"":t;let r=e[qi];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Qg(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
|
|
140
|
+
`);return o!==-1&&(t=Xg(t,i,n,o)),n+t+i},"applyStyle");Object.defineProperties(Qs.prototype,Di);var JL=Qs(),QL=Qs({level:ty?ty.level:0});var Kn=new qa;function wl(e,t,r){console.log(r!==void 0&&r!==t?`${Kn.yellow(`${e}:`.padEnd(20))}${Kn.magenta(t)}`:`${`${e}:`.padEnd(20)}${t}`)}s(wl,"logVariable");function Li(e){console.log(`[INFO] ${e}`)}s(Li,"logInfo");function $l(e){console.log(Kn.green(`[SUCCESS] ${e}`))}s($l,"logSuccess");function Xs(e,t){e instanceof Error?(console.log(Kn.red(`[ERROR] ${t||e.message}`)),process.env.VERBOSE&&console.error(e)):console.log(Kn.red(`[ERROR] ${e}`))}s(Xs,"logError");function iy(e){console.log(Kn.bgYellow(`==== ${e} ====`))}s(iy,"logBanner");var sy=xt(require("fs"));function La(){return"0.3.5"}s(La,"getVersion");var f5=xt(ay());var El=Symbol("options_key");function fr(e){return(t,r)=>{var n,i;if(e!=null){let o={...Reflect.getMetadata(El,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(El,o,t)}}}s(fr,"YargOption");function cy(e){let t=Reflect.getMetadata(El,e.prototype);if(!t)throw new Error(`Options for ${e.name} were not defined`);return t}s(cy,"getYargsOption");function uy(e){return async t=>t.options(zw(e)).middleware(async r=>await Gw(e,r),!0)}s(uy,"getBuilder");function zw(e){return Object.entries(cy(e)).reduce((t,[r,n])=>(t[r]=Object.fromEntries(Object.entries(n).filter(([i])=>!["envAlias","default"].includes(i))),t),{})}s(zw,"getYargsOptions");async function Gw(e,t){let r=new e;for(let[n,i]of Object.entries(cy(e)))r[n]=t[n]??i.default;return r}s(Gw,"loadYargsConfig");var HP=xt(D1()),UP=require("child_process");var L1="Schema",F1="Body",V1="Param",B1="Response",H1="ErrorResponse",yh="z.void()",zc={bindings:["z"],from:"zod"};var U1={output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,useRelativeImports:!1,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:L1,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var vh={"Content-Type":"application/json",Accept:"application/json"},z1="data";var G1=s(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),bh=s(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var Jr=Symbol.for("@ts-pattern/matcher"),V3=Symbol.for("@ts-pattern/isVariadic"),Wc="@ts-pattern/anonymous-select-key",_h=s(e=>!!(e&&typeof e=="object"),"r"),Gc=s(e=>e&&!!e[Jr],"i"),Fr=s((e,t,r)=>{if(Gc(e)){let n=e[Jr](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(_h(e)){if(!_h(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let a of e.keys()){let c=e[a];Gc(c)&&c[V3]?o.push(c):o.length?i.push(c):n.push(c)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),c=i.length===0?[]:t.slice(-i.length),u=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,p)=>Fr(l,a[p],r))&&i.every((l,p)=>Fr(l,c[p],r))&&(o.length===0||Fr(o[0],u,r))}return e.length===t.length&&e.every((a,c)=>Fr(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Gc(o=i)&&o[Jr]().matcherType==="optional")&&Fr(i,t[n],r);var o})}return Object.is(t,e)},"s"),In=s(e=>{var t,r,n;return _h(e)?Gc(e)?(t=(r=(n=e[Jr]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Go(e,In):Go(Object.values(e),In):[]},"o"),Go=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function tr(e){return Object.assign(e,{optional:s(()=>B3(e),"optional"),and:s(t=>De(e,t),"and"),or:s(t=>H3(e,t),"or"),select:s(t=>t===void 0?W1(e):W1(t,e),"select")})}s(tr,"u");function B3(e){return tr({[Jr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return t===void 0?(In(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Fr(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>In(e),"getSelectionKeys"),matcherType:"optional"})})}s(B3,"h");function De(...e){return tr({[Jr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>Fr(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Go(e,In),"getSelectionKeys"),matcherType:"and"})})}s(De,"m");function H3(...e){return tr({[Jr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return Go(e,In).forEach(i=>n(i,void 0)),{matched:e.some(i=>Fr(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Go(e,In),"getSelectionKeys"),matcherType:"or"})})}s(H3,"d");function Oe(e){return{[Jr]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(Oe,"p");function W1(...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 tr({[Jr]:()=>({match:s(n=>{let i={[t??Wc]:n};return{matched:r===void 0||Fr(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??Wc].concat(r===void 0?[]:In(r)),"getSelectionKeys")})})}s(W1,"y");function Dr(e){return typeof e=="number"}s(Dr,"v");function En(e){return typeof e=="string"}s(En,"b");function xn(e){return typeof e=="bigint"}s(xn,"w");var IV=tr(Oe(function(e){return!0}));var An=s(e=>Object.assign(tr(e),{startsWith:s(t=>{return An(De(e,(r=t,Oe(n=>En(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return An(De(e,(r=t,Oe(n=>En(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>An(De(e,(r=>Oe(n=>En(n)&&n.length>=r))(t))),"minLength"),length:s(t=>An(De(e,(r=>Oe(n=>En(n)&&n.length===r))(t))),"length"),maxLength:s(t=>An(De(e,(r=>Oe(n=>En(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return An(De(e,(r=t,Oe(n=>En(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return An(De(e,(r=t,Oe(n=>En(n)&&!!n.match(r)))));var r},"regex")}),"j"),jV=An(Oe(En)),Lr=s(e=>Object.assign(tr(e),{between:s((t,r)=>Lr(De(e,((n,i)=>Oe(o=>Dr(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Lr(De(e,(r=>Oe(n=>Dr(n)&&n<r))(t))),"lt"),gt:s(t=>Lr(De(e,(r=>Oe(n=>Dr(n)&&n>r))(t))),"gt"),lte:s(t=>Lr(De(e,(r=>Oe(n=>Dr(n)&&n<=r))(t))),"lte"),gte:s(t=>Lr(De(e,(r=>Oe(n=>Dr(n)&&n>=r))(t))),"gte"),int:s(()=>Lr(De(e,Oe(t=>Dr(t)&&Number.isInteger(t)))),"int"),finite:s(()=>Lr(De(e,Oe(t=>Dr(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>Lr(De(e,Oe(t=>Dr(t)&&t>0))),"positive"),negative:s(()=>Lr(De(e,Oe(t=>Dr(t)&&t<0))),"negative")}),"x"),RV=Lr(Oe(Dr)),Cn=s(e=>Object.assign(tr(e),{between:s((t,r)=>Cn(De(e,((n,i)=>Oe(o=>xn(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Cn(De(e,(r=>Oe(n=>xn(n)&&n<r))(t))),"lt"),gt:s(t=>Cn(De(e,(r=>Oe(n=>xn(n)&&n>r))(t))),"gt"),lte:s(t=>Cn(De(e,(r=>Oe(n=>xn(n)&&n<=r))(t))),"lte"),gte:s(t=>Cn(De(e,(r=>Oe(n=>xn(n)&&n>=r))(t))),"gte"),positive:s(()=>Cn(De(e,Oe(t=>xn(t)&&t>0))),"positive"),negative:s(()=>Cn(De(e,Oe(t=>xn(t)&&t<0))),"negative")}),"A"),TV=Cn(Oe(xn)),NV=tr(Oe(function(e){return typeof e=="boolean"})),kV=tr(Oe(function(e){return typeof e=="symbol"})),MV=tr(Oe(function(e){return e==null})),qV=tr(Oe(function(e){return e!=null}));var wh=class wh extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};s(wh,"W");var Sh=wh,Oh={matched:!1,value:void 0};function gt(e){return new Ph(e,Oh)}s(gt,"z");var zo=class zo{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let o=!1,a={},c=s((l,p)=>{o=!0,a[l]=p},"a"),u=!n.some(l=>Fr(l,this.input,c))||i&&!i(this.input)?Oh:{matched:!0,value:r(o?Wc in a?a[Wc]:a:this.input,this.input)};return new zo(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new zo(this.input,n?{matched:!0,value:r(this.input,this.input)}:Oh)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Sh(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(zo,"I");var Ph=zo;var K1=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];var $h=2,Z1=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],Y1=["query","header","path"],gi=["get","put","post","delete","options","head","patch","trace"],J1=["string","number","integer","boolean"],ws=["allOf","anyOf","oneOf"];function yi(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(yi,"pick");var Pr=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Wo=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),Kc=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),rr=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),Q1=s(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),X1=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),eO=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix");var rO=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),Ko=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Ah=s(e=>Ko(e).split("/").at(-1),"getSchemaNameByRef");function Qe(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s(Qe,"isReferenceObject");function nO(e){let t=U3(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return rr(t)}s(nO,"normalizeString");function iO(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s(iO,"wrapWithQuotesIfNeeded");function sO(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s(sO,"unwrapQuotesIfNeeded");function U3(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(U3,"prefixStringStartingWithNumberIfNeeded");function Ch(e){let t=e.replaceAll("_","#");return rr(t.replaceAll("-","_")).replaceAll("#","_")}s(Ch,"pathParamToVariableName");var vi=s(e=>J1.includes(e),"isPrimitiveType");function oO(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}s(oO,"escapeControlCharacters");function $s(e){return e.includes("application/")&&e.includes("json")||Z1.includes(e)||e.includes("text/")}s($s,"isParamMediaTypeAllowed");function Ih(e){return e>=200&&e<300}s(Ih,"isMainResponseStatus");function jh(e){return!(e>=200&&e<300)}s(jh,"isErrorStatus");function Zc(e){return e==="application/json"}s(Zc,"isMediaTypeAllowed");function Eh({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let o=`${t}${W3(e)}`,a=r.operationId??o;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((u,l)=>l===0?u:Pr(u)).join("");if(n.removeOperationPrefixEndingWith&&!i){let c=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(c,"")}return K1.includes(a)?o:a}s(Eh,"getOperationName");function Rh({path:e,method:t,operation:r,openApiDoc:n,options:i}){let o=z3(n,i),a=i.splitByTags?Es(r,i):i.defaultTag,c=Eh({path:e,method:t,operation:r,options:i});return o[a].filter(l=>Eh({path:e,method:t,operation:l,options:i})===c).length===1?c:Eh({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}s(Rh,"getUniqueOperationName");function z3(e,t){let r={};for(let n in e.paths){let i=e.paths[n],o=yi(i,gi);for(let a in o){let c=o[a];if(!c||c.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let u=t.splitByTags?Es(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}s(z3,"getOperationsByTag");function aO(e,t,r){let n=[];for(let i in t.paths){let o=t.paths[i],a=yi(o,gi);for(let c in a){let u=a[c];if(!u||u.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let l=Rh({path:i,method:c,operation:u,openApiDoc:t,options:r});n.push(l)}}return n.filter(i=>i===e).length<=1}s(aO,"isUniqueOperationNameWithoutSplitByTags");function bi(e){return Q1(e)}s(bi,"formatTag");function Es(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return bi(r??t.defaultTag)}s(Es,"getOperationTag");var tO=/({\w+})/g,G3=/[^\w\-]+/g;function W3(e){e=Pr(Kc(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(tO)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(tO,"")}By${Pr(r.slice(1,-1))}`}return e.replace(G3,"_")}s(W3,"pathToVariableName");var xh=/{(\b\w+(?:-\w+)*\b)}/g;function cO(e){let t=e.match(xh);return t===null?e.replaceAll(xh,":$1"):(t.forEach(r=>{let n=Ch(r.replaceAll(xh,":$1"));e=e.replaceAll(r,n)}),e)}s(cO,"replaceHyphenatedPath");function Qr(e){return!Qe(e)}s(Qr,"isSchemaObject");function uO(e){return e.type==="array"}s(uO,"isArraySchemaObject");function lO(e){if(!e.allOf)throw new Error("function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,o)=>{if(K3(o)){let a=o.required;i[0].push(...a??[])}else i[1].push(o);return i},[[],[]]),n={properties:t.reduce((i,o)=>(i[o]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:s((i,o)=>{if(Qe(i)){let a=o(i.$ref);a&&n.required.forEach(c=>{var u;n.properties[c]=((u=a==null?void 0:a.properties)==null?void 0:u[c])??{}})}else{let a=i.properties??{};n.required.forEach(c=>{a[c]&&(n.properties[c]=a[c]??{})})}},"patchRequiredSchemaInLoop")}}s(lO,"inferRequiredSchema");var K3=s(e=>!Qe(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");function Zo({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Wo(t)}/`:""}${Wo(t)}.${i}`:i}s(Zo,"getTagFileName");var Ot=s(({type:e,tag:t,options:r})=>`${Pr(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var jn=s((e,t)=>X1(Pr(nO(e)),t),"getZodSchemaName"),Tt=s(e=>!e.startsWith("z."),"isNamedZodSchema"),xs=s((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),fO=s(e=>rr(`${e}_${F1}`),"getBodyZodSchemaName"),pO=s((e,t)=>rr(`${e}_${t}${V1}`),"getParamZodSchemaName"),dO=s(e=>rr(`${e}${B1}`),"getMainResponseZodSchemaName"),hO=s((e,t)=>rr(`${e}_${t}_${H1}`),"getErrorResponseZodSchemaName");var Yo=s((e,t)=>eO(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),mO=s(({resolver:e,zodSchemaName:t,options:r})=>Tt(t)?`${r.includeNamespaces?`${Ot({type:"models",tag:e.getTagByZodSchemaName(t),options:r})}.`:""}${t}`:t,"getImportedZodSchemaName"),Th=s(({resolver:e,zodSchemaName:t,options:r})=>Tt(t)?`${r.includeNamespaces?`${Ot({type:"models",tag:e.getTagByZodSchemaName(t),options:r})}.`:""}${Yo(t,r)}`:t,"getImportedZodSchemaInferedTypeName");function gO(e){return gt(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(gO,"primitiveTypeToTsType");var Jo=s(e=>Wo(rr(e.operationName)),"getEndpointName");function yO(e,t){return`${t.includeNamespaces?`${Ot({type:"endpoints",tag:Qo(e,t),options:t})}.`:""}${Jo(e)}`}s(yO,"getImportedEndpointName");var vO=s(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function Qo(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return bi(r??t.defaultTag)}s(Qo,"getEndpointTag");function Nh({resolver:e,endpoint:t,options:r}){return t.parameters.map(n=>{var o,a,c,u;let i="string";if(Tt(n.zodSchema))i=Th({resolver:e,zodSchemaName:n.zodSchema,options:r});else if((o=n.parameterObject)!=null&&o.schema&&Qr(n.parameterObject.schema)){let l=(c=(a=n.parameterObject)==null?void 0:a.schema)==null?void 0:c.type;l&&vi(l)&&(i=gO(l))}return{name:bh(n.name),type:i,paramType:n.type,required:((u=n.parameterObject)==null?void 0:u.required)??!0}}).sort((n,i)=>{if(n.required===i.required){let o=["Path","Body","Query","Header"];return o.indexOf(n.paramType)-o.indexOf(i.paramType)}return n.required?-1:1})}s(Nh,"mapEndpointParamsToFunctionParams");function bO(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let o=G1(i.name)?i.name:`"${i.name}"`,a=bh(i.name);return{...i,name:o,value:a}}),r={...e.requestFormat!==vh["Content-Type"]?{"Content-Type":e.requestFormat}:{},...e.responseFormat&&e.responseFormat!==vh.Accept?{Accept:e.responseFormat}:{}};return{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}s(bO,"getEndpointConfig");function Vr({schema:e,meta:t,options:r}){let n=[];gt(e.type).with("string",()=>n.push(J3(e))).with("number","integer",()=>n.push(X3(e))).with("array",()=>n.push(eM(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
|
|
141
141
|
`,"\r",`\r
|
|
142
|
-
`].some(o=>String.prototype.includes.call(e.description,o))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(
|
|
142
|
+
`].some(o=>String.prototype.includes.call(e.description,o))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(Z3(e,t),(r==null?void 0:r.withDefaultValues)!==!1?Y3(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}s(Vr,"getZodChain");function Z3(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}s(Z3,"getZodChainablePresence");function Y3(e){return e.default!==void 0?`default(${gt(e.type).with("number","integer",()=>sO(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}s(Y3,"getZodChainableDefault");function J3(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(${Q3(e.pattern)})`),e.format){let r=gt(e.format).with("email",()=>"email()").with("hostname",()=>"url()").with("uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}s(J3,"getZodChainableStringValidations");function Q3(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=oO(e),`/${e}/`}s(Q3,"formatPatternIfNeeded");function X3(e){let t=[];return e.enum?"":(e.type==="integer"&&t.push("int()"),e.minimum!==void 0?e.exclusiveMinimum===!0?t.push(`gt(${e.minimum})`):t.push(`gte(${e.minimum})`):typeof e.exclusiveMinimum=="number"&&t.push(`gt(${e.exclusiveMinimum})`),e.maximum!==void 0?e.exclusiveMaximum===!0?t.push(`lt(${e.maximum})`):t.push(`lte(${e.maximum})`):typeof e.exclusiveMaximum=="number"&&t.push(`lt(${e.exclusiveMaximum})`),e.multipleOf&&t.push(`multipleOf(${e.multipleOf})`),t.join("."))}s(X3,"getZodChainableNumberValidations");function eM(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}s(eM,"getZodChainableArrayValidations");var _i=s(e=>e.reduce((t,r)=>t+r,0),"sum");function nt({current:e,schema:t}){if(!t)return e;if(Qe(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?Pt("oneOf")+nt({current:e,schema:{...t,type:t.type[0]}}):e+Pt("oneOf")+_i(t.type.map(r=>nt({current:0,schema:{...t,type:r}})));if(t.oneOf)return t.oneOf.length===1?Pt("oneOf")+nt({current:e,schema:t.oneOf[0]}):e+Pt("oneOf")+_i(t.oneOf.map(r=>nt({current:0,schema:r})));if(t.anyOf)return t.anyOf.length===1?Pt("anyOf")+nt({current:e,schema:t.anyOf[0]}):e+Pt("anyOf")+_i(t.anyOf.map(r=>nt({current:0,schema:r})));if(t.allOf)return t.allOf.length===1?Pt("allOf")+nt({current:e,schema:t.allOf[0]}):e+Pt("allOf")+_i(t.allOf.map(r=>nt({current:0,schema:r})));if(!t.type)return e;if(vi(t.type))return t.enum?e+_O(t)+Pt("enum")+_i(t.enum.map(r=>nt({current:0,schema:r}))):e+_O(t);if(t.type==="array")return t.items?Pt("array")+nt({current:e,schema:t.items}):Pt("array")+nt({current:e,schema:void 0});if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?Pt("record")+nt({current:e,schema:void 0}):Pt("record")+nt({current:e,schema:t.additionalProperties});if(t.properties){let r=Object.values(t.properties);return e+Pt("object")+_i(r.map(n=>nt({current:0,schema:n})))}return Pt("empty-object")+nt({current:e,schema:void 0})}return e}s(nt,"getOpenAPISchemaComplexity");function _O(e){let t=e.type;return t?gt(t).with("string",()=>1).with("number",()=>1).with("integer",()=>1).with("boolean",()=>1).otherwise(()=>0):0}s(_O,"complexityByType");function Pt(e){return e?gt(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum",()=>1).with("array",()=>1).with("record",()=>1).with("empty-object",()=>1).with("object",()=>2).otherwise(()=>0):0}s(Pt,"complexityByComposite");var kh=class kh{constructor(t,r,n={referencedBy:[]}){this.schema=t;this.resolver=r;Qe(t)&&(this.ref=t.$ref),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;children=[];meta;getCodeString(t,r){var o,a;if((!this.ref||!this.resolver)&&this.code)return this.code;let n=(o=this.resolver)==null?void 0:o.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.includeNamespaces&&i&&i!==t?`${Ot({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return nt({current:0,schema:this.schema})}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};s(kh,"ZodSchema");var Yc=kh;function Ue({schema:e,resolver:t,meta:r,tag:n,options:i}){var v;if(!e)throw new Error("Schema is required");let o=new Yc(e,t,r),a={parent:o.inherit(r==null?void 0:r.parent),referencedBy:[...o.meta.referencedBy]},c={resolver:t,meta:a,tag:n,options:i};if(Qe(e))return tM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});let u=nM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(u)return u;let l=rM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(l)return l;let p=iM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(p)return p;let f=sM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(f)return f;let d=oM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(d)return d;let h=i!=null&&i.allReadonly?".readonly()":"";if(uO(e))return e.items?o.assign(`z.array(${Ue({...c,schema:e.items}).getCodeString(n,i)}${Vr({schema:e.items,meta:{...a,isRequired:!0},options:i})})${h}`):o.assign(`z.array(z.any())${h}`);let y=e.type?e.type.toLowerCase():void 0;if(y==="object"||e.properties||e.additionalProperties){let g=(i==null?void 0:i.additionalPropertiesDefaultValue)!==void 0?i==null?void 0:i.additionalPropertiesDefaultValue:!0,A=(e.additionalProperties===null||e.additionalProperties===void 0?g:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return o.assign(`z.record(${Ue({...c,schema:e.additionalProperties}).getCodeString(n,i)+Vr({schema:e.additionalProperties,meta:{...a,isRequired:!0},options:i})})`);let I=e.required&&e.required.length>0,N=i!=null&&i.withImplicitRequiredProps?!1:!((v=e.required)!=null&&v.length),R="{}";e.properties&&(R="{ "+Object.entries(e.properties).map(([$e,X])=>{var Z;let k={...a,isRequired:N?!0:I?(Z=e.required)==null?void 0:Z.includes($e):i==null?void 0:i.withImplicitRequiredProps,name:$e},C=X;if(Qe(X)&&t&&(C=t.getSchemaByRef(X.$ref),!C))throw new Error(`Schema ${X.$ref} not found`);let q=Ue({...c,schema:X,meta:k}).getCodeString(n,i)+Vr({schema:C,meta:k,options:i});return[$e,q]}).map(([$e,X])=>`${iO($e)}: ${X}`).join(", ")+" }");let he=N?".partial()":"",se=i!=null&&i.strictObjects?".strict()":"";return o.assign(`z.object(${R})${he}${se}${A}${h}`)}if(!y)return o.assign("z.unknown()");throw new Error(`Unsupported schema type: ${y}`)}s(Ue,"getZodSchema");function tM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Qe(e)||!r)return;let a=t.meta.referencedBy.slice(0,-1).map(l=>(r==null?void 0:r.getZodSchemaNameByRef(l.ref))??l.ref),c=r.getZodSchemaNameByRef(e.$ref);if(a.length>1&&a.includes(c))return t.assign(r.getCodeByZodSchemaName(t.ref));let u=r.getCodeByZodSchemaName(e.$ref);if(!u){let l=r.getSchemaByRef(e.$ref);if(!l)throw new Error(`Schema ${e.$ref} not found`);u=Ue({schema:l,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)}return r.getCodeByZodSchemaName(c)||r.setZodSchema(c,u,i),t}s(tM,"getReferenceZodSchema");function rM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){var c;if(!Qr(e)||!e.oneOf)return;if(e.oneOf.length===1){let u=Ue({schema:e.oneOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(u.getCodeString(i,o))}let a=(c=e.oneOf)==null?void 0:c.some(u=>Qr(u)&&((u==null?void 0:u.allOf)||[]).length>1);if(e.discriminator&&!a){let u=e.discriminator.propertyName;return t.assign(`
|
|
143
143
|
z.discriminatedUnion("${u}", [${e.oneOf.map(l=>Ue({schema:l,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])
|
|
144
|
-
`)}return t.assign(`z.union([${e.oneOf.map(u=>Ue({schema:u,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(X3,"getOneOfZodSchema");function eM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!(!Qr(e)||!Array.isArray(e.type)))return e.type.length===1?Ue({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i,options:o}):t.assign(`z.union([${e.type.map(a=>Ue({schema:{...e,type:a},resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(eM,"getArrayZodSchema");function tM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Qr(e)||!e.anyOf)return;if(e.anyOf.length===1){let c=Ue({schema:e.anyOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(c.getCodeString(i,o))}let a=e.anyOf.map(c=>Ue({schema:c,resolver:r,meta:n,tag:i,options:o})).map(c=>c.getCodeString(i,o)).join(", ");return t.assign(`z.union([${a}])`)}s(tM,"getAnyOfZodSchema");function rM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Qr(e)||!e.allOf)return;if(e.allOf.length===1){let d=Ue({schema:e.allOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(d.getCodeString(i,o))}let{patchRequiredSchemaInLoop:a,noRequiredOnlyAllof:c,composedRequiredSchema:u}=a2(e),l=c.map(d=>{let h=Ue({schema:d,resolver:r,meta:n,tag:i,options:o});return r&&a(d,r.getSchemaByRef.bind(r)),h});u.required.length&&l.push(Ue({schema:u,resolver:r,meta:n,tag:i,options:o}));let p=l.at(0),f=l.slice(1).map(d=>`merge(${d.getCodeString(i,o)})`).join(".");return t.assign(`${p.getCodeString(i,o)}.${f}`)}s(rM,"getAllOfZodSchema");function nM({schema:e,zodSchema:t}){if(!Qr(e))return;let r=e.type?e.type.toLowerCase():void 0;if(r&&vi(r)){if(e.enum){if(r==="string"){if(e.enum.length===1){let n=e.enum[0],i=n===null?"null":`"${n}"`;return t.assign(`z.literal(${i})`)}return t.assign(`z.enum([${e.enum.map(n=>n===null?"null":`"${n}"`).join(", ")}])`)}if(e.enum.some(n=>typeof n=="string"))return t.assign("z.never()");if(e.enum.length===1){let n=e.enum[0];return t.assign(`z.literal(${n===null?"null":n})`)}return t.assign(`z.union([${e.enum.map(n=>`z.literal(${n===null?"null":n})`).join(", ")}])`)}return t.assign(gt(r).with("integer",()=>"z.number()").with("string",()=>gt(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(n=>`z.${n}()`))}}s(nM,"getPrimitiveZodSchema");function xs({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i,options:o}){var u;let a=t.getCodeString();if((!Tt(a)||t.ref===void 0)&&r){if(t.complexity<Oh)return a;let l=jn(r,o.schemaSuffix),p=l;for(;n.getCodeByZodSchemaName(p);){if((u=n.getZodSchemaNamesByCompositeCode(a))!=null&&u.includes(p))return p;if(n.getCodeByZodSchemaName(p)===l)return p;throw new Error(`Can't uniquely resolve zod schema name: ${p}`)}return n.setZodSchema(p,a,i),n.addZodSchemaForCompositeCode(a,t,p,e),p}let c=n.getCodeByZodSchemaName(a);if(!c&&t.ref&&(c=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&c)return nt({current:0,schema:n.getSchemaByRef(t.ref)})<Oh?n.getCodeByZodSchemaName(a):a;throw new Error("Invalid ref: "+t.ref)}s(xs,"resolveZodSchemaName");function v2({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i,options:o}){var y,v;let a=e.resolveObject(t.requestBody);if(!a)return;let u=Object.keys(a.content??{}).find(ws);if(!u)return;let l=(v=(y=a.content)==null?void 0:y[u])==null?void 0:v.schema;if(!l)return;let p=Ue({schema:l,resolver:e,meta:{isRequired:a.required??!0},tag:i,options:o}),f=e.resolveObject(l),d=xs({schema:f,zodSchema:p,fallbackName:c2(Es(r,n,i)),resolver:e,tag:i,options:o}),h=Vr({schema:f,meta:p.meta,options:o});return{endpointParameter:{name:V1,type:"Body",description:a.description,zodSchema:d+h,bodyObject:a},requestFormat:u}}s(v2,"getEndpointBody");function b2({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i,options:o}){let a=e.resolveObject(t);if(!G1.includes(a.in))return;let c={};if(a.content){let d=Object.keys(a.content??{}),h=d.find(ws);if(!h)throw new Error(`Unsupported media type for param ${a.name}: ${d.join(", ")}`);let y=a.content[h];if(!y)throw new Error(`No content with media type for param ${a.name}: ${h}`);c=(y==null?void 0:y.schema)??y}else a.schema&&(c=a.schema);o!=null&&o.withDescription&&c&&(c.description=(a.description??"").trim());let u=Ue({schema:c,resolver:e,meta:{isRequired:a.in==="path"?!0:a.required??!1},tag:i,options:o}),l=e.resolveObject(c),p=Vr({schema:l,meta:u.meta,options:o}),f=xs({schema:l,zodSchema:u.assign(u.getCodeString(i,o)+p),fallbackName:u2(Es(r,n,i),a.name),resolver:e,tag:i,options:o});return{name:gt(a.in).with("path",()=>Eh(a.name)).otherwise(()=>a.name),type:gt(a.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:f,parameterObject:a}}s(b2,"getEndpointParameter");function S2({openApiDoc:e,resolver:t,options:r}){var i,o,a;let n=[];for(let c in e.paths){let u=e.paths[c],l=yi(u,gi),p=_2(u.parameters??[]);for(let f in l){let d=l[f];if(!d||d.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let h=Object.entries({...p,..._2(d.parameters??[])}).map(([,A])=>A),y=Ch({path:c,method:f,operation:d,openApiDoc:e,options:r}),v=i2(y,e,r),g=$s(d,r),w={method:f,path:s2(c),operationName:y,description:d.description,tags:(i=d.tags)==null?void 0:i.map(bi),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(d.requestBody){let A=v2({resolver:t,operation:d,operationName:y,isUniqueOperationName:v,tag:g,options:r});A&&(w.parameters.push(A.endpointParameter),w.requestFormat=A.requestFormat)}for(let A of h){let C=b2({resolver:t,param:A,operationName:y,isUniqueOperationName:v,tag:g,options:r});C&&w.parameters.push(C)}for(let A in d.responses){let C=t.resolveObject(d.responses[A]),T=Object.keys(C.content??{}).find(Wc),he,se;if(T?(w.responseFormat=T,he=(a=(o=C.content)==null?void 0:o[T])==null?void 0:a.schema):se=hh,he){let Fe=Ue({schema:he,resolver:t,meta:{isRequired:!0},tag:g,options:r}),$e=t.resolveObject(he);se=xs({schema:$e,zodSchema:Fe,fallbackName:Fe.ref?void 0:iM({statusCode:A,endpoint:w,operationName:y,isUniqueOperationName:v,tag:g}),resolver:t,tag:g,options:r})+Vr({schema:$e,meta:Fe.meta,options:r})}if(se){let Fe=Number(A);xh(Fe)?(w.response=se,w.responseObject=C):A!=="default"&&Ah(Fe)&&w.errors.push({zodSchema:se,status:Fe,description:C.description})}}w.response||(w.response=hh),n.push(w)}}return n}s(S2,"getEndpointsFromOpenAPIDoc");function iM({statusCode:e,endpoint:t,operationName:r,isUniqueOperationName:n,tag:i}){let o=Number(e),a=Es(r,n,i);return(!xh(o)||t.response)&&e!=="default"&&Ah(o)?f2(a,e):l2(a)}s(iM,"getResponseZodSchemaName");function _2(e){return Object.fromEntries((e??[]).map(t=>[Qe(t)?t.$ref:t.name,t]))}s(_2,"getParameters");function O2({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){return As({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}),{visitedRefs:n,refsDependencyGraph:i}}s(O2,"getSchemaRefsDependencyGraph");function As({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}){if(!e)return;let o={fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i};if(Qe(e)){if(i[t]||(i[t]=new Set),i[t].add(e.$ref),n[e.$ref])return;n[t]=!0,As({...o,schema:r(e.$ref),fromRef:e.$ref});return}let a=["allOf","oneOf","anyOf"];for(let c of a)if(e[c])for(let u of e[c])As({...o,schema:u});if(!a.some(c=>e[c])){if(e.type==="array"){if(!e.items)return;As({...o,schema:e.items});return}if(e.type==="object"||e.properties||e.additionalProperties){if(e.properties)for(let c in e.properties)As({...o,schema:e.properties[c]});e.additionalProperties&&typeof e.additionalProperties=="object"&&As({...o,schema:e.additionalProperties})}}}s(As,"visit");function P2(e,t){let r=sM(e,t),n=oM(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s(P2,"getOpenAPISchemaDependencyGraph");function sM(e,t){let r={},n={};return e.forEach(i=>O2({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(sM,"getRefsDependencyGraph");function oM(e,t){let r={},n={},i=s((o,a)=>{n[a].add(o),t[o]&&a!==o&&t[o].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(o=>{let a=t[o];a&&(n[o]||(n[o]=new Set),a.forEach(c=>i(c,o)))}),n}s(oM,"getDeepRefsDependencyGraph");var Th=class Th{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=P2(this.schemaRefs,this.getSchemaByRef.bind(this)),this.intializeSchemaInfo(),this.initializeSchemaTags()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];dependencyGraph;get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(X1)}getSchemaByRef(t){return this.docSchemas[$h(t)]}getZodSchemaNameByRef(t){return this.schemaData.find(r=>r.ref===Wo(t)).zodSchemaName}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var n,i;let r;if(this.options.splitByTags){let o=this.getRefByZodSchemaName(t),a=((n=this.schemaData.find(l=>l.ref===o))==null?void 0:n.tags)??[],c=((i=this.zodSchemaData.find(l=>l.zodSchemaName===t))==null?void 0:i.tags)??[],u=new Set([...a,...c]);r=u.size===1?u.values().next().value:this.options.defaultTag}return bi(r??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(o=>o.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let o={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(o):this.compositeZodSchemaData.push({code:t,zodSchemas:[o]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}resolveObject(t){return Qe(t)?this.getSchemaByRef(t.$ref):t}intializeSchemaInfo(){this.schemaRefs.forEach(t=>{let r=Wo(t),n=$h(r),i=jn(n,this.options.schemaSuffix);this.schemaData.push({ref:r,name:n,zodSchemaName:i,tags:[]})})}initializeSchemaTags(){var r,n,i,o,a,c;let t=s(u=>{let l=[];return u&&(Qe(u)?l.push(u):(u.allOf||u.anyOf||u.oneOf)&&(u.allOf??u.anyOf??u.oneOf??[]).forEach(f=>l.push(...t(f)))),l},"getSchemaRefs");for(let u in this.openApiDoc.paths){let l=this.openApiDoc.paths[u],p=yi(l,gi);for(let f in p){let d=p[f];if(!d||d.deprecated&&!((r=this.options)!=null&&r.withDeprecatedEndpoints))continue;let h=[];if((n=d.parameters)==null||n.map(w=>{h.push(...t(w.schema))}),d.requestBody){let w=this.resolveObject(d.requestBody),C=Object.keys(w.content??{}).find(ws);C&&h.push(...t((o=(i=w.content)==null?void 0:i[C])==null?void 0:o.schema))}for(let w in d.responses){let A=this.resolveObject(d.responses[w]),j=Object.keys(A.content??{}).find(Wc);j&&h.push(...t((c=(a=A.content)==null?void 0:a[j])==null?void 0:c.schema))}let v=h.map(w=>Wo(w.$ref)).reduce((w,A)=>{let C=this.dependencyGraph.deepDependencyGraph[A];return[...w,A,...Array.from(C??[])]},[]),g=$s(d,this.options);v.forEach(w=>{let A=this.schemaData.find(C=>C.ref===w);A&&A.tags.push(g)})}}}};s(Th,"SchemaResolver");var Zc=Th;function w2({resolver:e,openApiDoc:t,options:r}){var i;let n={};return Object.entries(((i=t.components)==null?void 0:i.schemas)??{}).forEach(([o,a])=>{let c=jn(o,r.schemaSuffix);if(!n[c]){let u=e.getTagByZodSchemaName(c);n[c]=Ue({schema:a,resolver:e,tag:u,options:r}).getCodeString(u,r)}}),n}s(w2,"getZodSchemasFromOpenAPIDoc");function $2(e){let t=[],r={};function n(i,o){Array.isArray(o)||(o=[]),o.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{o.includes(a)||r[a]||n(a,o.slice(0))}),t.includes(i)||t.push(i)}return s(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}s($2,"topologicalSort");function E2(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[o])=>t.indexOf(i)-t.indexOf(o)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}s(E2,"sortObjKeysFromArray");function x2({resolver:e,zodSchemas:t}){let r=$2(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return E2(t,r)}s(x2,"sortZodSchemasByTopology");function A2({resolver:e,zodSchemas:t,options:r}){let n={};return Object.entries(t).forEach(([i,o])=>{var u;let a=e.getRefByZodSchemaName(i),c=a&&((u=e.dependencyGraph.deepDependencyGraph[a])==null?void 0:u.has(a));n[jn(i,r.schemaSuffix)]=c?`z.lazy(() => ${o})`:o}),n}s(A2,"wrapCircularZodSchemas");function I2({openApiDoc:e,options:t}){let r=new Zc(e,t),n=S2({resolver:r,openApiDoc:e,options:t}),o={...w2({resolver:r,openApiDoc:e,options:t}),...r.getZodSchemas()};return o=A2({resolver:r,zodSchemas:o,options:t}),o=x2({resolver:r,zodSchemas:o}),{resolver:r,data:aM({resolver:r,endpoints:n,zodSchemas:o,options:t})}}s(I2,"getDataFromOpenAPIDoc");function aM({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=Jo(o,n);C2(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let c=e.getTagByZodSchemaName(o);c&&(C2(c,i).zodSchemas[o]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(aM,"splitDataByTags");function C2(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(C2,"getTagElement");var kh="src/data",Nh="@/data",Mh="AppRestClient",j2={bindings:[Mh],from:"@/util/rest/clients/app-rest-client"},Qo={query:"AppQueryOptions",mutation:"AppMutationOptions"},R2={bindings:[Qo.query,Qo.mutation],from:"@/types/react-query"};function Cs({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[],options:i}){let o="models",a=s(l=>e.getTagByZodSchemaName(l),"getTag"),c=qh({type:o,tag:t,entities:r,getTag:a,getEntityName:s(l=>l,"getEntityName"),options:i}),u=qh({type:o,tag:t,entities:n,getTag:a,getEntityName:s(l=>Zo(l,i),"getEntityName"),options:i});return uM(i,c,u)}s(Cs,"getModelsImports");function T2({tag:e,endpoints:t,options:r}){return qh({type:"endpoints",tag:e,entities:t,getTag:s(n=>Jo(n,r),"getTag"),getEntityName:Yo,options:r})}s(T2,"getEndpointsImports");function cM(e){let t=e.output.includes(kh)?e.output.replace(kh,Nh):Nh;return e.useRelativeImports?"../":`${t}/`.replace(/\/\//g,"/")}s(cM,"getImportPath");function qh({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:o}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))o.includeNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[o.includeNamespaces?Ot({type:e,tag:u,options:o}):i(c)],from:`${l?"./":cM(o)}${Ko({type:e,tag:u,includeTagDir:!l,options:o})}`})}}),Array.from(a.values())}s(qh,"getImports");function uM(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.includeNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values())}s(uM,"mergeImports");var Tm=xt(xi());var Ls=xt(require("fs")),Cm=xt(require("path"));function Im(e){let t=`src/generators/templates/${e}.hbs`;return Ls.default.readFileSync(Cm.default.join(__dirname,`../${t}`),"utf-8")}s(Im,"readHbsTemplateSync");function wP({output:e,fileName:t,data:r}){t8(`${e}/${t}.ts`,r)}s(wP,"writeTsFileSync");function t8(e,t){let r=Cm.default.dirname(e);Ls.default.existsSync(r)||Ls.default.mkdirSync(r,{recursive:!0}),Ls.default.writeFileSync(e,t,"utf-8")}s(t8,"writeFileWithDirSync");var jm=xt(xi());function $P(){r8(),n8()}s($P,"registerCommonHbsHelpers");function r8(){jm.default.registerHelper("isEqual",(e,t)=>e===t)}s(r8,"registerIsEqualHelper");function n8(){jm.default.registerHelper("commaSeparated",e=>e.join(", "))}s(n8,"registerCommaSeparatedListHelper");var Ai=xt(xi());function EP(e,t){i8(),s8(t),c8(e,t),o8(),a8(),u8(e,t)}s(EP,"registerEndpointsHbsHelpers");function i8(){Ai.default.registerHelper("endpointName",Yo)}s(i8,"registerEndpointNameHelper");function s8(e){Ai.default.registerHelper("importedEndpointName",t=>h2(t,e))}s(s8,"registerImportedEndpointNameHelper");function o8(){Ai.default.registerHelper("endpointPath",m2)}s(o8,"registerEndpointPathHelper");function a8(){Ai.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}s(a8,"registerEndpointBodyHelper");function c8(e,t){Ai.default.registerHelper("endpointParams",r=>jh({resolver:e,endpoint:r,options:t}))}s(c8,"registerEndpointParamsHelper");function u8(e,t){Ai.default.registerHelper("endpointArgs",r=>jh({resolver:e,endpoint:r,options:t}).map(n=>n.name).join(", "))}s(u8,"registerEndpointArgsHelper");var Fs=xt(xi());var kn={query:"useQuery",mutation:"useMutation"},xP={bindings:[kn.query,kn.mutation],from:"@tanstack/react-query"};var Ru=s(e=>e.method==="get","isQuery"),AP=s(e=>e.method!=="get","isMutation");function CP(){l8(),f8(),p8(),d8(),h8()}s(CP,"registerPartialsHbsHelpers");function l8(){Fs.default.registerHelper("genImport",e=>Vs("import")({import:e}))}s(l8,"registerImportHelper");function f8(){Fs.default.registerHelper("genEndpointParams",e=>Vs("endpoint-params")({endpoint:e}))}s(f8,"registerGenerateEndpointParamsHelper");function p8(){Fs.default.registerHelper("genEndpointConfig",e=>{let t=g2(e);return Object.keys(t).length===0?"":Vs("endpoint-config")({endpointConfig:t})})}s(p8,"registerGenerateEndpointConfigHelper");function d8(){Fs.default.registerHelper("genQueryKeys",e=>e.length===0?"":Vs("query-keys")({endpoints:e}))}s(d8,"registerGenerateQueryKeysHelper");function h8(){Fs.default.registerHelper("genQuery",e=>{let t,r;return Ru(e)?(t="query-use-query",r=kn.query):(t="query-use-mutation",r=kn.mutation),Vs(t)({endpoint:e,queryHook:r})})}s(h8,"registerGenerateQueryHelper");var jP=xt(xi());var IP=s(e=>`use${Fr(rr(e.operationName))}`,"getQueryName");function RP(){m8()}s(RP,"registerQueryHbsHelpers");function m8(){jP.default.registerHelper("queryName",IP)}s(m8,"registerQueryNameHelper");var Rm=xt(xi());function TP(e,t){g8(t),y8(e,t)}s(TP,"registerZodHbsHelpers");function g8(e){Rm.default.registerHelper("zodInferedType",t=>Zo(t,e))}s(g8,"registerInferedTypeHelper");function y8(e,t){Rm.default.registerHelper("importedZodSchemaName",r=>p2({resolver:e,zodSchemaName:r,options:t}))}s(y8,"registerImportedZodSchemaNameHelper");function Bs({resolver:e,templateName:t,options:r}){let n=Im(t);return $P(),TP(e,r),EP(e,r),RP(),CP(),Tm.default.compile(n)}s(Bs,"getHbsTemplateDelegate");function Vs(e){let t=Im(`partials/${e}`);return Tm.default.compile(t)}s(Vs,"getHbsPartialTemplateDelegate");function kP({resolver:e,data:t,tag:r="",options:n}){var p;let i=(p=t.get(r))==null?void 0:p.endpoints;if(!i||i.length===0)return;let o=i.map(f=>f.response),a=o.some(f=>!Tt(f)),c=i.reduce((f,d)=>[...f,...d.parameters],[]),u=Cs({resolver:e,tag:r,zodSchemas:Array.from(new Set(o.filter(Tt))),zodSchemasAsTypes:Array.from(new Set(c.map(f=>f.zodSchema).filter(Tt))),options:n});return Bs({resolver:e,templateName:"endpoints",options:n})({restClientImport:j2,hasZodImport:a,zodImport:Uc,modelsImports:u,includeNamespace:n.includeNamespaces,namespace:Ot({type:"endpoints",tag:r,options:n}),restClientName:Mh,endpoints:i})}s(kP,"generateEndpoints");function NP({resolver:e,zodSchemaName:t}){let r=e.getRefByZodSchemaName(t);if(r)return Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(i=>e.getZodSchemaNameByRef(i));let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(MP(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}s(NP,"getZodSchemaRefs");function MP(e){return e.children.reduce((r,n)=>(n.ref&&r.add(n.ref),n.children.length>0&&MP(n).forEach(i=>r.add(i)),r),new Set)}s(MP,"getSchemaRefs");function qP({resolver:e,data:t,tag:r="",options:n}){var u;let i=(u=t.get(r))==null?void 0:u.zodSchemas;if(!i||Object.keys(i).length===0)return;let o=Object.keys(i).reduce((l,p)=>[...l,...NP({resolver:e,zodSchemaName:p})],[]).filter(l=>!i[l]),a=Cs({resolver:e,tag:r,zodSchemas:o,options:n});return Bs({resolver:e,templateName:"models",options:n})({zodImport:Uc,modelsImports:a,includeNamespace:n.includeNamespaces,namespace:Ot({type:"models",tag:r,options:n}),zodSchemas:i})}s(qP,"generateModels");function DP({resolver:e,data:t,tag:r="",options:n}){var h;let i=(h=t.get(r))==null?void 0:h.endpoints;if(!i||i.length===0)return;let o=i.filter(Ru),a=i.filter(AP),c={...xP,bindings:[...o.length>0?[kn.query]:[],...a.length>0?[kn.mutation]:[]]},u={...R2,bindings:[...o.length>0?[Qo.query]:[],...a.length>0?[Qo.mutation]:[]]},l=[...o,...a].reduce((y,v)=>[...y,...v.parameters],[]),p=Cs({resolver:e,tag:r,zodSchemasAsTypes:Array.from(new Set(l.map(y=>y.zodSchema).filter(Tt))),options:n}),f=T2({tag:r,endpoints:i,options:n});return Bs({resolver:e,templateName:"queries",options:n})({queryImport:c,queryTypesImport:u,modelsImports:p,endpointsImports:f,includeNamespace:n.includeNamespaces,namespace:Ot({type:"queries",tag:r,options:n}),endpoints:i,queryEndpoints:o})}s(DP,"generateQueries");function LP({openApiDoc:e,options:t}){let r={...F1,...t},{resolver:n,data:i}=I2({openApiDoc:e,options:r});i.forEach((o,a)=>{var l;((l=r.excludeTags)==null?void 0:l.findIndex(p=>p.toLocaleLowerCase()===a.toLocaleLowerCase()))===-1&&(km({resolver:n,data:i,type:"models",tag:a,options:r}),km({resolver:n,data:i,type:"endpoints",tag:a,options:r}),km({resolver:n,data:i,type:"queries",tag:a,options:r}))})}s(LP,"generateCodeFromOpenAPIDoc");function km({resolver:e,data:t,type:r,tag:n,options:i}){let o;switch(r){case"models":o=qP({resolver:e,data:t,tag:n,options:i});break;case"endpoints":o=kP({resolver:e,data:t,tag:n,options:i});break;case"queries":o=DP({resolver:e,data:t,tag:n,options:i});break}o&&wP({output:i.output,fileName:Ko({tag:n,type:r,options:i}),data:o})}s(km,"generateCodeByType");async function BP({input:e,output:t,includeNamespaces:r,useRelativeImports:n,splitByTags:i,defaultTag:o,excludeTags:a,removeOperationPrefixEndingWith:c,prettier:u,verbose:l}){l&&Li(`Parsing OpenAPI spec from "${e}"`);let p=await FP.default.bundle(e);l&&Li("Generating code from OpenAPI spec"),LP({openApiDoc:p,options:{output:t,includeNamespaces:r,useRelativeImports:n,splitByTags:i,defaultTag:o,excludeTags:a.split(","),removeOperationPrefixEndingWith:c}}),l&&Ol("Generated code successfully"),u&&v8({output:t,verbose:l})}s(BP,"generate");function v8({output:e,verbose:t}){t&&Li("Running Prettier"),(0,VP.exec)(`prettier --write ${e}`,r=>{t&&(r?Qs(r,"Prettier error"):Ol("Ran Prettier successfully"))})}s(v8,"execPrettier");var Bt=class Bt{input;output;includeNamespaces;splitByTags;defaultTag;excludeTags;useRelativeImports;removeOperationPrefixEndingWith;prettier;verbose};s(Bt,"GenerateOptions"),ar([fr({envAlias:"input",demandOption:!0})],Bt.prototype,"input",2),ar([fr({envAlias:"output",default:"output"})],Bt.prototype,"output",2),ar([fr({envAlias:"includeNamespaces",default:!0,type:"boolean"})],Bt.prototype,"includeNamespaces",2),ar([fr({envAlias:"splitByTags",default:!0,type:"boolean"})],Bt.prototype,"splitByTags",2),ar([fr({envAlias:"defaultTag",default:"Common"})],Bt.prototype,"defaultTag",2),ar([fr({envAlias:"excludeTags",default:""})],Bt.prototype,"excludeTags",2),ar([fr({envAlias:"useRelativeImports",default:!1,type:"boolean"})],Bt.prototype,"useRelativeImports",2),ar([fr({envAlias:"removeOperationPrefixEndingWith",default:"Controller_"})],Bt.prototype,"removeOperationPrefixEndingWith",2),ar([fr({envAlias:"prettier",default:!0,type:"boolean"})],Bt.prototype,"prettier",2),ar([fr({envAlias:"verbose",default:!1,type:"boolean"})],Bt.prototype,"verbose",2);var Nm=Bt,HP={command:"generate",describe:"Generate code from OpenAPI spec",builder:sy(Nm),handler:s(async e=>{let t=await e;return t.verbose&&(ey(`OpenAPI CodeGen ${Da()}`),Sl("input",t.input),Sl("output",t.output)),BP(t)},"handler")};Vg(zu(process.argv)).version(Da()||"unknown").scriptName("openapi-codegen").command(HP).help().demandCommand(1).strictCommands(!0).showHelpOnFail(!0).fail((e,t)=>{e&&Qs(e),t&&Qs(t),Li("Use '--help' for more info"),process.exit(1)}).parse();
|
|
144
|
+
`)}return t.assign(`z.union([${e.oneOf.map(u=>Ue({schema:u,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(rM,"getOneOfZodSchema");function nM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!(!Qr(e)||!Array.isArray(e.type)))return e.type.length===1?Ue({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i,options:o}):t.assign(`z.union([${e.type.map(a=>Ue({schema:{...e,type:a},resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(nM,"getArrayZodSchema");function iM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Qr(e)||!e.anyOf)return;if(e.anyOf.length===1){let c=Ue({schema:e.anyOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(c.getCodeString(i,o))}let a=e.anyOf.map(c=>Ue({schema:c,resolver:r,meta:n,tag:i,options:o})).map(c=>c.getCodeString(i,o)).join(", ");return t.assign(`z.union([${a}])`)}s(iM,"getAnyOfZodSchema");function sM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Qr(e)||!e.allOf)return;if(e.allOf.length===1){let d=Ue({schema:e.allOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(d.getCodeString(i,o))}let{patchRequiredSchemaInLoop:a,noRequiredOnlyAllof:c,composedRequiredSchema:u}=lO(e),l=c.map(d=>{let h=Ue({schema:d,resolver:r,meta:n,tag:i,options:o});return r&&a(d,r.getSchemaByRef.bind(r)),h});u.required.length&&l.push(Ue({schema:u,resolver:r,meta:n,tag:i,options:o}));let p=l.at(0),f=l.slice(1).map(d=>`merge(${d.getCodeString(i,o)})`).join(".");return t.assign(`${p.getCodeString(i,o)}.${f}`)}s(sM,"getAllOfZodSchema");function oM({schema:e,zodSchema:t}){if(!Qr(e))return;let r=e.type?e.type.toLowerCase():void 0;if(r&&vi(r)){if(e.enum){if(r==="string"){if(e.enum.length===1){let n=e.enum[0],i=n===null?"null":`"${n}"`;return t.assign(`z.literal(${i})`)}return t.assign(`z.enum([${e.enum.map(n=>n===null?"null":`"${n}"`).join(", ")}])`)}if(e.enum.some(n=>typeof n=="string"))return t.assign("z.never()");if(e.enum.length===1){let n=e.enum[0];return t.assign(`z.literal(${n===null?"null":n})`)}return t.assign(`z.union([${e.enum.map(n=>`z.literal(${n===null?"null":n})`).join(", ")}])`)}return t.assign(gt(r).with("integer",()=>"z.number()").with("string",()=>gt(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(n=>`z.${n}()`))}}s(oM,"getPrimitiveZodSchema");function As({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i,options:o}){var u;let a=t.getCodeString();if((!Tt(a)||t.ref===void 0)&&r){if(t.complexity<$h)return a;let l=jn(r,o.schemaSuffix),p=l;for(;n.getCodeByZodSchemaName(p);){if((u=n.getZodSchemaNamesByCompositeCode(a))!=null&&u.includes(p))return p;if(n.getCodeByZodSchemaName(p)===l)return p;throw new Error(`Can't uniquely resolve zod schema name: ${p}`)}return n.setZodSchema(p,a,i),n.addZodSchemaForCompositeCode(a,t,p,e),p}let c=n.getCodeByZodSchemaName(a);if(!c&&t.ref&&(c=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&c)return nt({current:0,schema:n.getSchemaByRef(t.ref)})<$h?n.getCodeByZodSchemaName(a):a;throw new Error("Invalid ref: "+t.ref)}s(As,"resolveZodSchemaName");function SO({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i,options:o}){var y,v;let a=e.resolveObject(t.requestBody);if(!a)return;let u=Object.keys(a.content??{}).find($s);if(!u)return;let l=(v=(y=a.content)==null?void 0:y[u])==null?void 0:v.schema;if(!l)return;let p=Ue({schema:l,resolver:e,meta:{isRequired:a.required??!0},tag:i,options:o}),f=e.resolveObject(l),d=As({schema:f,zodSchema:p,fallbackName:fO(xs(r,n,i)),resolver:e,tag:i,options:o}),h=Vr({schema:f,meta:p.meta,options:o});return{endpointParameter:{name:z1,type:"Body",description:a.description,zodSchema:d+h,bodyObject:a},requestFormat:u}}s(SO,"getEndpointBody");function OO({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i,options:o}){let a=e.resolveObject(t);if(!Y1.includes(a.in))return;let c={};if(a.content){let d=Object.keys(a.content??{}),h=d.find($s);if(!h)throw new Error(`Unsupported media type for param ${a.name}: ${d.join(", ")}`);let y=a.content[h];if(!y)throw new Error(`No content with media type for param ${a.name}: ${h}`);c=(y==null?void 0:y.schema)??y}else a.schema&&(c=a.schema);o!=null&&o.withDescription&&c&&(c.description=(a.description??"").trim());let u=Ue({schema:c,resolver:e,meta:{isRequired:a.in==="path"?!0:a.required??!1},tag:i,options:o}),l=e.resolveObject(c),p=Vr({schema:l,meta:u.meta,options:o}),f=As({schema:l,zodSchema:u.assign(u.getCodeString(i,o)+p),fallbackName:pO(xs(r,n,i),a.name),resolver:e,tag:i,options:o});return{name:gt(a.in).with("path",()=>Ch(a.name)).otherwise(()=>a.name),type:gt(a.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:f,parameterObject:a}}s(OO,"getEndpointParameter");function wO({openApiDoc:e,resolver:t,options:r}){var i,o,a;let n=[];for(let c in e.paths){let u=e.paths[c],l=yi(u,gi),p=PO(u.parameters??[]);for(let f in l){let d=l[f];if(!d||d.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let h=Object.entries({...p,...PO(d.parameters??[])}).map(([,A])=>A),y=Rh({path:c,method:f,operation:d,openApiDoc:e,options:r}),v=aO(y,e,r),g=Es(d,r),w={method:f,path:cO(c),operationName:y,description:d.description,tags:(i=d.tags)==null?void 0:i.map(bi),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(d.requestBody){let A=SO({resolver:t,operation:d,operationName:y,isUniqueOperationName:v,tag:g,options:r});A&&(w.parameters.push(A.endpointParameter),w.requestFormat=A.requestFormat)}for(let A of h){let I=OO({resolver:t,param:A,operationName:y,isUniqueOperationName:v,tag:g,options:r});I&&w.parameters.push(I)}for(let A in d.responses){let I=t.resolveObject(d.responses[A]),R=Object.keys(I.content??{}).find(Zc),he,se;if(R?(w.responseFormat=R,he=(a=(o=I.content)==null?void 0:o[R])==null?void 0:a.schema):se=yh,he){let Fe=Ue({schema:he,resolver:t,meta:{isRequired:!0},tag:g,options:r}),$e=t.resolveObject(he);se=As({schema:$e,zodSchema:Fe,fallbackName:Fe.ref?void 0:aM({statusCode:A,endpoint:w,operationName:y,isUniqueOperationName:v,tag:g}),resolver:t,tag:g,options:r})+Vr({schema:$e,meta:Fe.meta,options:r})}if(se){let Fe=Number(A);Ih(Fe)?(w.response=se,w.responseObject=I):A!=="default"&&jh(Fe)&&w.errors.push({zodSchema:se,status:Fe,description:I.description})}}w.response||(w.response=yh),n.push(w)}}return n}s(wO,"getEndpointsFromOpenAPIDoc");function aM({statusCode:e,endpoint:t,operationName:r,isUniqueOperationName:n,tag:i}){let o=Number(e),a=xs(r,n,i);return(!Ih(o)||t.response)&&e!=="default"&&jh(o)?hO(a,e):dO(a)}s(aM,"getResponseZodSchemaName");function PO(e){return Object.fromEntries((e??[]).map(t=>[Qe(t)?t.$ref:t.name,t]))}s(PO,"getParameters");function $O({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){return Cs({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}),{visitedRefs:n,refsDependencyGraph:i}}s($O,"getSchemaRefsDependencyGraph");function Cs({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}){if(!e)return;let o={fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i};if(Qe(e)){if(i[t]||(i[t]=new Set),i[t].add(e.$ref),n[e.$ref])return;n[t]=!0,Cs({...o,schema:r(e.$ref),fromRef:e.$ref});return}for(let a of ws)if(e[a])for(let c of e[a])Cs({...o,schema:c});if(!ws.some(a=>e[a])){if(e.type==="array"){if(!e.items)return;Cs({...o,schema:e.items});return}if(e.type==="object"||e.properties||e.additionalProperties){if(e.properties)for(let a in e.properties)Cs({...o,schema:e.properties[a]});e.additionalProperties&&typeof e.additionalProperties=="object"&&Cs({...o,schema:e.additionalProperties})}}}s(Cs,"visit");function EO(e,t){let r=cM(e,t),n=uM(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s(EO,"getOpenAPISchemaDependencyGraph");function cM(e,t){let r={},n={};return e.forEach(i=>$O({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(cM,"getRefsDependencyGraph");function uM(e,t){let r={},n={},i=s((o,a)=>{n[a].add(o),t[o]&&a!==o&&t[o].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(o=>{let a=t[o];a&&(n[o]||(n[o]=new Set),a.forEach(c=>i(c,o)))}),n}s(uM,"getDeepRefsDependencyGraph");var Mh=class Mh{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=EO(this.schemaRefs,this.getSchemaByRef.bind(this)),this.intializeSchemaInfo(),this.initializeSchemaTags()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];dependencyGraph;get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(rO)}getSchemaByRef(t){return this.docSchemas[Ah(t)]}getZodSchemaNameByRef(t){return this.schemaData.find(r=>r.ref===Ko(t)).zodSchemaName}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var n,i;let r;if(this.options.splitByTags){let o=this.getRefByZodSchemaName(t),a=((n=this.schemaData.find(l=>l.ref===o))==null?void 0:n.tags)??[],c=((i=this.zodSchemaData.find(l=>l.zodSchemaName===t))==null?void 0:i.tags)??[],u=new Set([...a,...c]);r=u.size===1?u.values().next().value:this.options.defaultTag}return bi(r??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(o=>o.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let o={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(o):this.compositeZodSchemaData.push({code:t,zodSchemas:[o]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}resolveObject(t){return Qe(t)?this.getSchemaByRef(t.$ref):t}intializeSchemaInfo(){this.schemaRefs.forEach(t=>{let r=Ko(t),n=Ah(r),i=jn(n,this.options.schemaSuffix);this.schemaData.push({ref:r,name:n,zodSchemaName:i,tags:[]})})}initializeSchemaTags(){var t,r,n,i,o,a;for(let c in this.openApiDoc.paths){let u=this.openApiDoc.paths[c],l=yi(u,gi);for(let p in l){let f=l[p];if(!f||f.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let d=[];if((r=f.parameters)==null||r.map(g=>{d.push(...this.getOperationSchemaRefs(g.schema))}),f.requestBody){let g=this.resolveObject(f.requestBody),A=Object.keys(g.content??{}).find($s);A&&d.push(...this.getOperationSchemaRefs((i=(n=g.content)==null?void 0:n[A])==null?void 0:i.schema))}for(let g in f.responses){let w=this.resolveObject(f.responses[g]),I=Object.keys(w.content??{}).find(Zc);I&&d.push(...this.getOperationSchemaRefs((a=(o=w.content)==null?void 0:o[I])==null?void 0:a.schema))}let y=d.map(g=>Ko(g.$ref)).reduce((g,w)=>{let A=this.dependencyGraph.deepDependencyGraph[w];return[...g,w,...Array.from(A??[])]},[]),v=Es(f,this.options);y.forEach(g=>{let w=this.schemaData.find(A=>A.ref===g);w&&w.tags.push(v)})}}}getOperationSchemaRefs(t){if(!t)return[];let r=[];Qe(t)&&r.push(t);let n=t;return ws.some(i=>i in n&&n[i])&&(n.allOf??n.anyOf??n.oneOf??[]).forEach(o=>r.push(...this.getOperationSchemaRefs(o))),n.properties&&Object.values(n.properties).forEach(i=>r.push(...this.getOperationSchemaRefs(i))),n.type==="array"&&r.push(...this.getOperationSchemaRefs(t.items)),r}};s(Mh,"SchemaResolver");var Jc=Mh;function xO({resolver:e,openApiDoc:t,options:r}){var i;let n={};return Object.entries(((i=t.components)==null?void 0:i.schemas)??{}).forEach(([o,a])=>{let c=jn(o,r.schemaSuffix);if(!n[c]){let u=e.getTagByZodSchemaName(c);n[c]=Ue({schema:a,resolver:e,tag:u,options:r}).getCodeString(u,r)}}),n}s(xO,"getZodSchemasFromOpenAPIDoc");function AO(e){let t=[],r={};function n(i,o){Array.isArray(o)||(o=[]),o.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{o.includes(a)||r[a]||n(a,o.slice(0))}),t.includes(i)||t.push(i)}return s(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}s(AO,"topologicalSort");function CO(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[o])=>t.indexOf(i)-t.indexOf(o)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}s(CO,"sortObjKeysFromArray");function IO({resolver:e,zodSchemas:t}){let r=AO(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return CO(t,r)}s(IO,"sortZodSchemasByTopology");function jO({resolver:e,zodSchemas:t,options:r}){let n={};return Object.entries(t).forEach(([i,o])=>{var u;let a=e.getRefByZodSchemaName(i),c=a&&((u=e.dependencyGraph.deepDependencyGraph[a])==null?void 0:u.has(a));n[jn(i,r.schemaSuffix)]=c?`z.lazy(() => ${o})`:o}),n}s(jO,"wrapCircularZodSchemas");function TO({openApiDoc:e,options:t}){let r=new Jc(e,t),n=wO({resolver:r,openApiDoc:e,options:t}),o={...xO({resolver:r,openApiDoc:e,options:t}),...r.getZodSchemas()};return o=jO({resolver:r,zodSchemas:o,options:t}),o=IO({resolver:r,zodSchemas:o}),{resolver:r,data:lM({resolver:r,endpoints:n,zodSchemas:o,options:t})}}s(TO,"getDataFromOpenAPIDoc");function lM({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=Qo(o,n);RO(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let c=e.getTagByZodSchemaName(o);c&&(RO(c,i).zodSchemas[o]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(lM,"splitDataByTags");function RO(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(RO,"getTagElement");var qh="src/data",Dh="@/data",Lh="AppRestClient",NO={bindings:[Lh],from:"@/util/rest/clients/app-rest-client"},Xo={query:"AppQueryOptions",mutation:"AppMutationOptions"},kO={bindings:[Xo.query,Xo.mutation],from:"@/types/react-query"};function Is({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[],options:i}){let o="models",a=s(l=>e.getTagByZodSchemaName(l),"getTag"),c=Fh({type:o,tag:t,entities:r,getTag:a,getEntityName:s(l=>l,"getEntityName"),options:i}),u=Fh({type:o,tag:t,entities:n,getTag:a,getEntityName:s(l=>Yo(l,i),"getEntityName"),options:i});return pM(i,c,u)}s(Is,"getModelsImports");function MO({tag:e,endpoints:t,options:r}){return Fh({type:"endpoints",tag:e,entities:t,getTag:s(n=>Qo(n,r),"getTag"),getEntityName:Jo,options:r})}s(MO,"getEndpointsImports");function fM(e){let t=e.output.includes(qh)?e.output.replace(qh,Dh):Dh;return e.useRelativeImports?"../":`${t}/`.replace(/\/\//g,"/")}s(fM,"getImportPath");function Fh({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:o}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))o.includeNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[o.includeNamespaces?Ot({type:e,tag:u,options:o}):i(c)],from:`${l?"./":fM(o)}${Zo({type:e,tag:u,includeTagDir:!l,options:o})}`})}}),Array.from(a.values())}s(Fh,"getImports");function pM(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.includeNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values())}s(pM,"mergeImports");var qm=xt(xi());var Fs=xt(require("fs")),Rm=xt(require("path"));function Tm(e){let t=`src/generators/templates/${e}.hbs`;return Fs.default.readFileSync(Rm.default.join(__dirname,`../${t}`),"utf-8")}s(Tm,"readHbsTemplateSync");function xP({output:e,fileName:t,data:r}){iD(`${e}/${t}.ts`,r)}s(xP,"writeTsFileSync");function iD(e,t){let r=Rm.default.dirname(e);Fs.default.existsSync(r)||Fs.default.mkdirSync(r,{recursive:!0}),Fs.default.writeFileSync(e,t,"utf-8")}s(iD,"writeFileWithDirSync");var Nm=xt(xi());function AP(){sD(),oD()}s(AP,"registerCommonHbsHelpers");function sD(){Nm.default.registerHelper("isEqual",(e,t)=>e===t)}s(sD,"registerIsEqualHelper");function oD(){Nm.default.registerHelper("commaSeparated",e=>e.join(", "))}s(oD,"registerCommaSeparatedListHelper");var Ai=xt(xi());function CP(e,t){aD(),cD(t),fD(e,t),uD(),lD(),pD(e,t)}s(CP,"registerEndpointsHbsHelpers");function aD(){Ai.default.registerHelper("endpointName",Jo)}s(aD,"registerEndpointNameHelper");function cD(e){Ai.default.registerHelper("importedEndpointName",t=>yO(t,e))}s(cD,"registerImportedEndpointNameHelper");function uD(){Ai.default.registerHelper("endpointPath",vO)}s(uD,"registerEndpointPathHelper");function lD(){Ai.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}s(lD,"registerEndpointBodyHelper");function fD(e,t){Ai.default.registerHelper("endpointParams",r=>Nh({resolver:e,endpoint:r,options:t}))}s(fD,"registerEndpointParamsHelper");function pD(e,t){Ai.default.registerHelper("endpointArgs",r=>Nh({resolver:e,endpoint:r,options:t}).map(n=>n.name).join(", "))}s(pD,"registerEndpointArgsHelper");var Vs=xt(xi());var Nn={query:"useQuery",mutation:"useMutation"},IP={bindings:[Nn.query,Nn.mutation],from:"@tanstack/react-query"};var Nu=s(e=>e.method==="get","isQuery"),jP=s(e=>e.method!=="get","isMutation");function RP(){dD(),hD(),mD(),gD(),yD()}s(RP,"registerPartialsHbsHelpers");function dD(){Vs.default.registerHelper("genImport",e=>Bs("import")({import:e}))}s(dD,"registerImportHelper");function hD(){Vs.default.registerHelper("genEndpointParams",e=>Bs("endpoint-params")({endpoint:e}))}s(hD,"registerGenerateEndpointParamsHelper");function mD(){Vs.default.registerHelper("genEndpointConfig",e=>{let t=bO(e);return Object.keys(t).length===0?"":Bs("endpoint-config")({endpointConfig:t})})}s(mD,"registerGenerateEndpointConfigHelper");function gD(){Vs.default.registerHelper("genQueryKeys",e=>e.length===0?"":Bs("query-keys")({endpoints:e}))}s(gD,"registerGenerateQueryKeysHelper");function yD(){Vs.default.registerHelper("genQuery",e=>{let t,r;return Nu(e)?(t="query-use-query",r=Nn.query):(t="query-use-mutation",r=Nn.mutation),Bs(t)({endpoint:e,queryHook:r})})}s(yD,"registerGenerateQueryHelper");var ku=xt(xi());var TP=s(e=>`use${Pr(rr(e.operationName))}`,"getQueryName"),km=s(e=>{let t=e.map(({path:o})=>o),r=/^\/[^\/]*/g,n=Array.from(new Set(t.map(o=>o.match(r)).flat())),i=s(o=>n.length===1?"all":`all${Pr(Kc(o.replace(/\//g,"")??""))}`,"getQueryKeyName");return n.filter(o=>o!==null).map(o=>({path:o,name:i(o??"")}))},"getAllQueryKeys"),NP=s((e,t)=>{let n=km(t).find(({path:o})=>e.path.startsWith(o));if(!n)return[e.path];let i=e.path.substring(n.path.length);return[`...keys.${n.name}`,...i?[`"${i}"`]:[]]},"getEndpointPathQueryKeys");function kP(){vD(),bD(),_D()}s(kP,"registerQueryHbsHelpers");function vD(){ku.default.registerHelper("queryName",TP)}s(vD,"registerQueryNameHelper");function bD(){ku.default.registerHelper("allQueryKeys",km)}s(bD,"registerQueryKeysHelper");function _D(){ku.default.registerHelper("endpointPathQueryKeys",NP)}s(_D,"registerEndpointPathQueryKeysHelper");var Mm=xt(xi());function MP(e,t){SD(t),OD(e,t)}s(MP,"registerZodHbsHelpers");function SD(e){Mm.default.registerHelper("zodInferedType",t=>Yo(t,e))}s(SD,"registerInferedTypeHelper");function OD(e,t){Mm.default.registerHelper("importedZodSchemaName",r=>mO({resolver:e,zodSchemaName:r,options:t}))}s(OD,"registerImportedZodSchemaNameHelper");function Hs({resolver:e,templateName:t,options:r}){let n=Tm(t);return AP(),MP(e,r),CP(e,r),kP(),RP(),qm.default.compile(n)}s(Hs,"getHbsTemplateDelegate");function Bs(e){let t=Tm(`partials/${e}`);return qm.default.compile(t)}s(Bs,"getHbsPartialTemplateDelegate");function qP({resolver:e,data:t,tag:r="",options:n}){var p;let i=(p=t.get(r))==null?void 0:p.endpoints;if(!i||i.length===0)return;let o=i.map(f=>f.response),a=o.some(f=>!Tt(f)),c=i.reduce((f,d)=>[...f,...d.parameters],[]),u=Is({resolver:e,tag:r,zodSchemas:Array.from(new Set(o.filter(Tt))),zodSchemasAsTypes:Array.from(new Set(c.map(f=>f.zodSchema).filter(Tt))),options:n});return Hs({resolver:e,templateName:"endpoints",options:n})({restClientImport:NO,hasZodImport:a,zodImport:zc,modelsImports:u,includeNamespace:n.includeNamespaces,namespace:Ot({type:"endpoints",tag:r,options:n}),restClientName:Lh,endpoints:i})}s(qP,"generateEndpoints");function DP({resolver:e,zodSchemaName:t}){let r=e.getRefByZodSchemaName(t);if(r)return Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(i=>e.getZodSchemaNameByRef(i));let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(LP(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}s(DP,"getZodSchemaRefs");function LP(e){return e.children.reduce((r,n)=>(n.ref&&r.add(n.ref),n.children.length>0&&LP(n).forEach(i=>r.add(i)),r),new Set)}s(LP,"getSchemaRefs");function FP({resolver:e,data:t,tag:r="",options:n}){var u;let i=(u=t.get(r))==null?void 0:u.zodSchemas;if(!i||Object.keys(i).length===0)return;let o=Object.keys(i).reduce((l,p)=>[...l,...DP({resolver:e,zodSchemaName:p})],[]).filter(l=>!i[l]),a=Is({resolver:e,tag:r,zodSchemas:o,options:n});return Hs({resolver:e,templateName:"models",options:n})({zodImport:zc,modelsImports:a,includeNamespace:n.includeNamespaces,namespace:Ot({type:"models",tag:r,options:n}),zodSchemas:i})}s(FP,"generateModels");function VP({resolver:e,data:t,tag:r="",options:n}){var h;let i=(h=t.get(r))==null?void 0:h.endpoints;if(!i||i.length===0)return;let o=i.filter(Nu),a=i.filter(jP),c={...IP,bindings:[...o.length>0?[Nn.query]:[],...a.length>0?[Nn.mutation]:[]]},u={...kO,bindings:[...o.length>0?[Xo.query]:[],...a.length>0?[Xo.mutation]:[]]},l=[...o,...a].reduce((y,v)=>[...y,...v.parameters],[]),p=Is({resolver:e,tag:r,zodSchemasAsTypes:Array.from(new Set(l.map(y=>y.zodSchema).filter(Tt))),options:n}),f=MO({tag:r,endpoints:i,options:n});return Hs({resolver:e,templateName:"queries",options:n})({queryImport:c,queryTypesImport:u,modelsImports:p,endpointsImports:f,includeNamespace:n.includeNamespaces,namespace:Ot({type:"queries",tag:r,options:n}),endpoints:i,queryEndpoints:o})}s(VP,"generateQueries");function BP({openApiDoc:e,options:t}){let r={...U1,...t},{resolver:n,data:i}=TO({openApiDoc:e,options:r});i.forEach((o,a)=>{var l;((l=r.excludeTags)==null?void 0:l.findIndex(p=>p.toLocaleLowerCase()===a.toLocaleLowerCase()))===-1&&(Dm({resolver:n,data:i,type:"models",tag:a,options:r}),Dm({resolver:n,data:i,type:"endpoints",tag:a,options:r}),Dm({resolver:n,data:i,type:"queries",tag:a,options:r}))})}s(BP,"generateCodeFromOpenAPIDoc");function Dm({resolver:e,data:t,type:r,tag:n,options:i}){let o;switch(r){case"models":o=FP({resolver:e,data:t,tag:n,options:i});break;case"endpoints":o=qP({resolver:e,data:t,tag:n,options:i});break;case"queries":o=VP({resolver:e,data:t,tag:n,options:i});break}o&&xP({output:i.output,fileName:Zo({tag:n,type:r,options:i}),data:o})}s(Dm,"generateCodeByType");async function zP({input:e,output:t,includeNamespaces:r,useRelativeImports:n,splitByTags:i,defaultTag:o,excludeTags:a,removeOperationPrefixEndingWith:c,prettier:u,verbose:l}){l&&Li(`Parsing OpenAPI spec from "${e}"`);let p=await HP.default.bundle(e);l&&Li("Generating code from OpenAPI spec"),BP({openApiDoc:p,options:{output:t,includeNamespaces:r,useRelativeImports:n,splitByTags:i,defaultTag:o,excludeTags:a.split(","),removeOperationPrefixEndingWith:c}}),l&&$l("Generated code successfully"),u&&PD({output:t,verbose:l})}s(zP,"generate");function PD({output:e,verbose:t}){t&&Li("Running Prettier"),(0,UP.exec)(`prettier --write ${e}`,r=>{t&&(r?Xs(r,"Prettier error"):$l("Ran Prettier successfully"))})}s(PD,"execPrettier");var Bt=class Bt{input;output;includeNamespaces;splitByTags;defaultTag;excludeTags;useRelativeImports;removeOperationPrefixEndingWith;prettier;verbose};s(Bt,"GenerateOptions"),ar([fr({envAlias:"input",demandOption:!0})],Bt.prototype,"input",2),ar([fr({envAlias:"output",default:"output"})],Bt.prototype,"output",2),ar([fr({envAlias:"includeNamespaces",default:!0,type:"boolean"})],Bt.prototype,"includeNamespaces",2),ar([fr({envAlias:"splitByTags",default:!0,type:"boolean"})],Bt.prototype,"splitByTags",2),ar([fr({envAlias:"defaultTag",default:"Common"})],Bt.prototype,"defaultTag",2),ar([fr({envAlias:"excludeTags",default:""})],Bt.prototype,"excludeTags",2),ar([fr({envAlias:"useRelativeImports",default:!1,type:"boolean"})],Bt.prototype,"useRelativeImports",2),ar([fr({envAlias:"removeOperationPrefixEndingWith",default:"Controller_"})],Bt.prototype,"removeOperationPrefixEndingWith",2),ar([fr({envAlias:"prettier",default:!0,type:"boolean"})],Bt.prototype,"prettier",2),ar([fr({envAlias:"verbose",default:!1,type:"boolean"})],Bt.prototype,"verbose",2);var Lm=Bt,GP={command:"generate",describe:"Generate code from OpenAPI spec",builder:uy(Lm),handler:s(async e=>{let t=await e;return t.verbose&&(iy(`OpenAPI CodeGen ${La()}`),wl("input",t.input),wl("output",t.output)),zP(t)},"handler")};zg(Ku(process.argv)).version(La()||"unknown").scriptName("openapi-codegen").command(GP).help().demandCommand(1).strictCommands(!0).showHelpOnFail(!0).fail((e,t)=>{e&&Xs(e),t&&Xs(t),Li("Use '--help' for more info"),process.exit(1)}).parse();
|
|
145
145
|
/*! Bundled license information:
|
|
146
146
|
|
|
147
147
|
reflect-metadata/Reflect.js:
|