@sap/ux-specification 1.71.74 → 1.71.75

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/index-min.js CHANGED
@@ -90,7 +90,7 @@ try {
90
90
  `;break;case xt.modes.ESCAPED:this.source+=" ; __append(escapeFn("+xd(e)+`))
91
91
  `;break;case xt.modes.RAW:this.source+=" ; __append("+xd(e)+`)
92
92
  `;break;case xt.modes.COMMENT:break;case xt.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&i&&(this.currentLine+=i,this.source+=" ; __line = "+this.currentLine+`
93
- `)}};Ge.escapeXML=mt.escapeXML;Ge.__express=Ge.renderFile;Ge.VERSION=TP;Ge.name=FP;typeof window<"u"&&(window.ejs=Ge)});var Xg=z((Q_,zg)=>{var KO="Expected a function",Mg="__lodash_hash_undefined__",Ug=1/0,JO="[object Function]",WO="[object GeneratorFunction]",zO="[object Symbol]",XO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YO=/^\w*$/,ZO=/^\./,eS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tS=/[\\^$.*+?()[\]{}|]/g,rS=/\\(\\)?/g,nS=/^\[object .+?Constructor\]$/,aS=typeof global=="object"&&global&&global.Object===Object&&global,iS=typeof self=="object"&&self&&self.Object===Object&&self,ql=aS||iS||Function("return this")();function oS(e,t){return e==null?void 0:e[t]}o(oS,"getValue");function sS(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}o(sS,"isHostObject");var lS=Array.prototype,cS=Function.prototype,kg=Object.prototype,Ql=ql["__core-js_shared__"],$g=function(){var e=/[^.]+$/.exec(Ql&&Ql.keys&&Ql.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Bg=cS.toString,ls=kg.hasOwnProperty,Gg=kg.toString,uS=RegExp("^"+Bg.call(ls).replace(tS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vg=ql.Symbol,fS=lS.splice,pS=Qg(ql,"Map"),_i=Qg(Object,"create"),Rg=Vg?Vg.prototype:void 0,jg=Rg?Rg.toString:void 0;function na(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}o(na,"Hash");function dS(){this.__data__=_i?_i(null):{}}o(dS,"hashClear");function gS(e){return this.has(e)&&delete this.__data__[e]}o(gS,"hashDelete");function mS(e){var t=this.__data__;if(_i){var n=t[e];return n===Mg?void 0:n}return ls.call(t,e)?t[e]:void 0}o(mS,"hashGet");function hS(e){var t=this.__data__;return _i?t[e]!==void 0:ls.call(t,e)}o(hS,"hashHas");function vS(e,t){var n=this.__data__;return n[e]=_i&&t===void 0?Mg:t,this}o(vS,"hashSet");na.prototype.clear=dS;na.prototype.delete=gS;na.prototype.get=mS;na.prototype.has=hS;na.prototype.set=vS;function Va(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}o(Va,"ListCache");function yS(){this.__data__=[]}o(yS,"listCacheClear");function bS(e){var t=this.__data__,n=cs(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():fS.call(t,n,1),!0}o(bS,"listCacheDelete");function ES(e){var t=this.__data__,n=cs(t,e);return n<0?void 0:t[n][1]}o(ES,"listCacheGet");function PS(e){return cs(this.__data__,e)>-1}o(PS,"listCacheHas");function CS(e,t){var n=this.__data__,a=cs(n,e);return a<0?n.push([e,t]):n[a][1]=t,this}o(CS,"listCacheSet");Va.prototype.clear=yS;Va.prototype.delete=bS;Va.prototype.get=ES;Va.prototype.has=PS;Va.prototype.set=CS;function aa(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}o(aa,"MapCache");function OS(){this.__data__={hash:new na,map:new(pS||Va),string:new na}}o(OS,"mapCacheClear");function SS(e){return us(this,e).delete(e)}o(SS,"mapCacheDelete");function TS(e){return us(this,e).get(e)}o(TS,"mapCacheGet");function AS(e){return us(this,e).has(e)}o(AS,"mapCacheHas");function xS(e,t){return us(this,e).set(e,t),this}o(xS,"mapCacheSet");aa.prototype.clear=OS;aa.prototype.delete=SS;aa.prototype.get=TS;aa.prototype.has=AS;aa.prototype.set=xS;function cs(e,t){for(var n=e.length;n--;)if(MS(e[n][0],t))return n;return-1}o(cs,"assocIndexOf");function IS(e,t){t=qg(t,e)?[t]:Hg(t);for(var n=0,a=t.length;e!=null&&n<a;)e=e[Kg(t[n++])];return n&&n==a?e:void 0}o(IS,"baseGet");function FS(e){if(!Wg(e)||LS(e))return!1;var t=US(e)||sS(e)?uS:nS;return t.test(RS(e))}o(FS,"baseIsNative");function _S(e,t,n){var a=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++a<r;)i[a]=e[a+t];return i}o(_S,"baseSlice");function DS(e){if(typeof e=="string")return e;if(Jl(e))return jg?jg.call(e):"";var t=e+"";return t=="0"&&1/e==-Ug?"-0":t}o(DS,"baseToString");function NS(e,t){t=qg(t,e)?[t]:Hg(t),e=$S(e,t);var n=Kg(jS(t));return!(e!=null&&ls.call(e,n))||delete e[n]}o(NS,"baseUnset");function Hg(e){return Jg(e)?e:VS(e)}o(Hg,"castPath");function us(e,t){var n=e.__data__;return wS(t)?n[typeof t=="string"?"string":"hash"]:n.map}o(us,"getMapData");function Qg(e,t){var n=oS(e,t);return FS(n)?n:void 0}o(Qg,"getNative");function qg(e,t){if(Jg(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Jl(e)?!0:YO.test(e)||!XO.test(e)||t!=null&&e in Object(t)}o(qg,"isKey");function wS(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}o(wS,"isKeyable");function LS(e){return!!$g&&$g in e}o(LS,"isMasked");function $S(e,t){return t.length==1?e:IS(e,_S(t,0,-1))}o($S,"parent");var VS=Kl(function(e){e=BS(e);var t=[];return ZO.test(e)&&t.push(""),e.replace(eS,function(n,a,r,i){t.push(r?i.replace(rS,"$1"):a||n)}),t});function Kg(e){if(typeof e=="string"||Jl(e))return e;var t=e+"";return t=="0"&&1/e==-Ug?"-0":t}o(Kg,"toKey");function RS(e){if(e!=null){try{return Bg.call(e)}catch{}try{return e+""}catch{}}return""}o(RS,"toSource");function jS(e){var t=e?e.length:0;return t?e[t-1]:void 0}o(jS,"last");function Kl(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(KO);var n=o(function(){var a=arguments,r=t?t.apply(this,a):a[0],i=n.cache;if(i.has(r))return i.get(r);var s=e.apply(this,a);return n.cache=i.set(r,s),s},"memoized");return n.cache=new(Kl.Cache||aa),n}o(Kl,"memoize");Kl.Cache=aa;function MS(e,t){return e===t||e!==e&&t!==t}o(MS,"eq");var Jg=Array.isArray;function US(e){var t=Wg(e)?Gg.call(e):"";return t==JO||t==WO}o(US,"isFunction");function Wg(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}o(Wg,"isObject");function kS(e){return!!e&&typeof e=="object"}o(kS,"isObjectLike");function Jl(e){return typeof e=="symbol"||kS(e)&&Gg.call(e)==zO}o(Jl,"isSymbol");function BS(e){return e==null?"":DS(e)}o(BS,"toString");function GS(e,t){return e==null?!0:NS(e,t)}o(GS,"unset");zg.exports=GS});var Zg=z((fs,Yg)=>{(function(e,t){typeof fs=="object"&&typeof Yg<"u"?t(fs):typeof define=="function"&&define.amd?define(["exports"],t):t(e.URI=e.URI||{})})(fs,function(e){"use strict";function t(){for(var S=arguments.length,C=Array(S),A=0;A<S;A++)C[A]=arguments[A];if(C.length>1){C[0]=C[0].slice(0,-1);for(var D=C.length-1,N=1;N<D;++N)C[N]=C[N].slice(1,-1);return C[D]=C[D].slice(1),C.join("")}else return C[0]}o(t,"merge");function n(S){return"(?:"+S+")"}o(n,"subexp");function a(S){return S===void 0?"undefined":S===null?"null":Object.prototype.toString.call(S).split(" ").pop().split("]").shift().toLowerCase()}o(a,"typeOf");function r(S){return S.toUpperCase()}o(r,"toUpperCase");function i(S){return S!=null?S instanceof Array?S:typeof S.length!="number"||S.split||S.setInterval||S.call?[S]:Array.prototype.slice.call(S):[]}o(i,"toArray");function s(S,C){var A=S;if(C)for(var D in C)A[D]=C[D];return A}o(s,"assign");function l(S){var C="[A-Za-z]",A="[\\x0D]",D="[0-9]",N="[\\x22]",ne=t(D,"[A-Fa-f]"),Te="[\\x0A]",Me="[\\x20]",Qe=n(n("%[EFef]"+ne+"%"+ne+ne+"%"+ne+ne)+"|"+n("%[89A-Fa-f]"+ne+"%"+ne+ne)+"|"+n("%"+ne+ne)),bt="[\\:\\/\\?\\#\\[\\]\\@]",Re="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",lt=t(bt,Re),Et=S?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",at=S?"[\\uE000-\\uF8FF]":"[]",ke=t(C,D,"[\\-\\.\\_\\~]",Et),ct=n(C+t(C,D,"[\\+\\-\\.]")+"*"),Xe=n(n(Qe+"|"+t(ke,Re,"[\\:]"))+"*"),_n=n(n("25[0-5]")+"|"+n("2[0-4]"+D)+"|"+n("1"+D+D)+"|"+n("[1-9]"+D)+"|"+D),ar=n(n("25[0-5]")+"|"+n("2[0-4]"+D)+"|"+n("1"+D+D)+"|"+n("0?[1-9]"+D)+"|0?0?"+D),dr=n(ar+"\\."+ar+"\\."+ar+"\\."+ar),Ye=n(ne+"{1,4}"),ir=n(n(Ye+"\\:"+Ye)+"|"+dr),gr=n(n(Ye+"\\:")+"{6}"+ir),Lr=n("\\:\\:"+n(Ye+"\\:")+"{5}"+ir),Dn=n(n(Ye)+"?\\:\\:"+n(Ye+"\\:")+"{4}"+ir),Hr=n(n(n(Ye+"\\:")+"{0,1}"+Ye)+"?\\:\\:"+n(Ye+"\\:")+"{3}"+ir),ja=n(n(n(Ye+"\\:")+"{0,2}"+Ye)+"?\\:\\:"+n(Ye+"\\:")+"{2}"+ir),wi=n(n(n(Ye+"\\:")+"{0,3}"+Ye)+"?\\:\\:"+Ye+"\\:"+ir),Li=n(n(n(Ye+"\\:")+"{0,4}"+Ye)+"?\\:\\:"+ir),la=n(n(n(Ye+"\\:")+"{0,5}"+Ye)+"?\\:\\:"+Ye),ca=n(n(n(Ye+"\\:")+"{0,6}"+Ye)+"?\\:\\:"),Qr=n([gr,Lr,Dn,Hr,ja,wi,Li,la,ca].join("|")),ua=n(n(ke+"|"+Qe)+"+"),_s=n(Qr+"\\%25"+ua),Nn=n(Qr+n("\\%25|\\%(?!"+ne+"{2})")+ua),hv=n("[vV]"+ne+"+\\."+t(ke,Re,"[\\:]")+"+"),vv=n("\\["+n(Nn+"|"+Qr+"|"+hv)+"\\]"),Sc=n(n(Qe+"|"+t(ke,Re))+"*"),Ma=n(vv+"|"+dr+"(?!"+Sc+")|"+Sc),Ua=n(D+"*"),Tc=n(n(Xe+"@")+"?"+Ma+n("\\:"+Ua)+"?"),ka=n(Qe+"|"+t(ke,Re,"[\\:\\@]")),yv=n(ka+"*"),Ac=n(ka+"+"),bv=n(n(Qe+"|"+t(ke,Re,"[\\@]"))+"+"),qr=n(n("\\/"+yv)+"*"),fa=n("\\/"+n(Ac+qr)+"?"),Ds=n(bv+qr),$i=n(Ac+qr),pa="(?!"+ka+")",UA=n(qr+"|"+fa+"|"+Ds+"|"+$i+"|"+pa),da=n(n(ka+"|"+t("[\\/\\?]",at))+"*"),Ba=n(n(ka+"|[\\/\\?]")+"*"),xc=n(n("\\/\\/"+Tc+qr)+"|"+fa+"|"+$i+"|"+pa),Ev=n(ct+"\\:"+xc+n("\\?"+da)+"?"+n("\\#"+Ba)+"?"),Pv=n(n("\\/\\/"+Tc+qr)+"|"+fa+"|"+Ds+"|"+pa),Cv=n(Pv+n("\\?"+da)+"?"+n("\\#"+Ba)+"?"),kA=n(Ev+"|"+Cv),BA=n(ct+"\\:"+xc+n("\\?"+da)+"?"),GA="^("+ct+")\\:"+n(n("\\/\\/("+n("("+Xe+")@")+"?("+Ma+")"+n("\\:("+Ua+")")+"?)")+"?("+qr+"|"+fa+"|"+$i+"|"+pa+")")+n("\\?("+da+")")+"?"+n("\\#("+Ba+")")+"?$",HA="^(){0}"+n(n("\\/\\/("+n("("+Xe+")@")+"?("+Ma+")"+n("\\:("+Ua+")")+"?)")+"?("+qr+"|"+fa+"|"+Ds+"|"+pa+")")+n("\\?("+da+")")+"?"+n("\\#("+Ba+")")+"?$",QA="^("+ct+")\\:"+n(n("\\/\\/("+n("("+Xe+")@")+"?("+Ma+")"+n("\\:("+Ua+")")+"?)")+"?("+qr+"|"+fa+"|"+$i+"|"+pa+")")+n("\\?("+da+")")+"?$",qA="^"+n("\\#("+Ba+")")+"?$",KA="^"+n("("+Xe+")@")+"?("+Ma+")"+n("\\:("+Ua+")")+"?$";return{NOT_SCHEME:new RegExp(t("[^]",C,D,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",ke,Re),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",ke,Re),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",ke,Re),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",ke,Re),"g"),NOT_QUERY:new RegExp(t("[^\\%]",ke,Re,"[\\:\\@\\/\\?]",at),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",ke,Re,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",ke,Re),"g"),UNRESERVED:new RegExp(ke,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",ke,lt),"g"),PCT_ENCODED:new RegExp(Qe,"g"),IPV4ADDRESS:new RegExp("^("+dr+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Qr+")"+n(n("\\%25|\\%(?!"+ne+"{2})")+"("+ua+")")+"?\\]?$")}}o(l,"buildExps");var c=l(!1),u=l(!0),f=function(){function S(C,A){var D=[],N=!0,ne=!1,Te=void 0;try{for(var Me=C[Symbol.iterator](),Qe;!(N=(Qe=Me.next()).done)&&(D.push(Qe.value),!(A&&D.length===A));N=!0);}catch(bt){ne=!0,Te=bt}finally{try{!N&&Me.return&&Me.return()}finally{if(ne)throw Te}}return D}return o(S,"sliceIterator"),function(C,A){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return S(C,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=o(function(S){if(Array.isArray(S)){for(var C=0,A=Array(S.length);C<S.length;C++)A[C]=S[C];return A}else return Array.from(S)},"toConsumableArray"),h=2147483647,p=36,m=1,P=26,E=38,T=700,w=72,F=128,V="-",R=/^xn--/,M=/[^\0-\x7E]/,ae=/[\x2E\u3002\uFF0E\uFF61]/g,O={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},B=p-m,re=Math.floor,G=String.fromCharCode;function J(S){throw new RangeError(O[S])}o(J,"error$1");function j(S,C){for(var A=[],D=S.length;D--;)A[D]=C(S[D]);return A}o(j,"map");function U(S,C){var A=S.split("@"),D="";A.length>1&&(D=A[0]+"@",S=A[1]),S=S.replace(ae,".");var N=S.split("."),ne=j(N,C).join(".");return D+ne}o(U,"mapDomain");function te(S){for(var C=[],A=0,D=S.length;A<D;){var N=S.charCodeAt(A++);if(N>=55296&&N<=56319&&A<D){var ne=S.charCodeAt(A++);(ne&64512)==56320?C.push(((N&1023)<<10)+(ne&1023)+65536):(C.push(N),A--)}else C.push(N)}return C}o(te,"ucs2decode");var oe=o(function(C){return String.fromCodePoint.apply(String,d(C))},"ucs2encode"),Ee=o(function(C){return C-48<10?C-22:C-65<26?C-65:C-97<26?C-97:p},"basicToDigit"),ve=o(function(C,A){return C+22+75*(C<26)-((A!=0)<<5)},"digitToBasic"),ue=o(function(C,A,D){var N=0;for(C=D?re(C/T):C>>1,C+=re(C/A);C>B*P>>1;N+=p)C=re(C/B);return re(N+(B+1)*C/(C+E))},"adapt"),ie=o(function(C){var A=[],D=C.length,N=0,ne=F,Te=w,Me=C.lastIndexOf(V);Me<0&&(Me=0);for(var Qe=0;Qe<Me;++Qe)C.charCodeAt(Qe)>=128&&J("not-basic"),A.push(C.charCodeAt(Qe));for(var bt=Me>0?Me+1:0;bt<D;){for(var Re=N,lt=1,Et=p;;Et+=p){bt>=D&&J("invalid-input");var at=Ee(C.charCodeAt(bt++));(at>=p||at>re((h-N)/lt))&&J("overflow"),N+=at*lt;var ke=Et<=Te?m:Et>=Te+P?P:Et-Te;if(at<ke)break;var ct=p-ke;lt>re(h/ct)&&J("overflow"),lt*=ct}var Xe=A.length+1;Te=ue(N-Re,Xe,Re==0),re(N/Xe)>h-ne&&J("overflow"),ne+=re(N/Xe),N%=Xe,A.splice(N++,0,ne)}return String.fromCodePoint.apply(String,A)},"decode"),ge=o(function(C){var A=[];C=te(C);var D=C.length,N=F,ne=0,Te=w,Me=!0,Qe=!1,bt=void 0;try{for(var Re=C[Symbol.iterator](),lt;!(Me=(lt=Re.next()).done);Me=!0){var Et=lt.value;Et<128&&A.push(G(Et))}}catch(Nn){Qe=!0,bt=Nn}finally{try{!Me&&Re.return&&Re.return()}finally{if(Qe)throw bt}}var at=A.length,ke=at;for(at&&A.push(V);ke<D;){var ct=h,Xe=!0,_n=!1,ar=void 0;try{for(var dr=C[Symbol.iterator](),Ye;!(Xe=(Ye=dr.next()).done);Xe=!0){var ir=Ye.value;ir>=N&&ir<ct&&(ct=ir)}}catch(Nn){_n=!0,ar=Nn}finally{try{!Xe&&dr.return&&dr.return()}finally{if(_n)throw ar}}var gr=ke+1;ct-N>re((h-ne)/gr)&&J("overflow"),ne+=(ct-N)*gr,N=ct;var Lr=!0,Dn=!1,Hr=void 0;try{for(var ja=C[Symbol.iterator](),wi;!(Lr=(wi=ja.next()).done);Lr=!0){var Li=wi.value;if(Li<N&&++ne>h&&J("overflow"),Li==N){for(var la=ne,ca=p;;ca+=p){var Qr=ca<=Te?m:ca>=Te+P?P:ca-Te;if(la<Qr)break;var ua=la-Qr,_s=p-Qr;A.push(G(ve(Qr+ua%_s,0))),la=re(ua/_s)}A.push(G(ve(la,0))),Te=ue(ne,gr,ke==at),ne=0,++ke}}}catch(Nn){Dn=!0,Hr=Nn}finally{try{!Lr&&ja.return&&ja.return()}finally{if(Dn)throw Hr}}++ne,++N}return A.join("")},"encode"),He=o(function(C){return U(C,function(A){return R.test(A)?ie(A.slice(4).toLowerCase()):A})},"toUnicode"),rt=o(function(C){return U(C,function(A){return M.test(A)?"xn--"+ge(A):A})},"toASCII"),ce={version:"2.1.0",ucs2:{decode:te,encode:oe},decode:ie,encode:ge,toASCII:rt,toUnicode:He},ze={};function y(S){var C=S.charCodeAt(0),A=void 0;return C<16?A="%0"+C.toString(16).toUpperCase():C<128?A="%"+C.toString(16).toUpperCase():C<2048?A="%"+(C>>6|192).toString(16).toUpperCase()+"%"+(C&63|128).toString(16).toUpperCase():A="%"+(C>>12|224).toString(16).toUpperCase()+"%"+(C>>6&63|128).toString(16).toUpperCase()+"%"+(C&63|128).toString(16).toUpperCase(),A}o(y,"pctEncChar");function g(S){for(var C="",A=0,D=S.length;A<D;){var N=parseInt(S.substr(A+1,2),16);if(N<128)C+=String.fromCharCode(N),A+=3;else if(N>=194&&N<224){if(D-A>=6){var ne=parseInt(S.substr(A+4,2),16);C+=String.fromCharCode((N&31)<<6|ne&63)}else C+=S.substr(A,6);A+=6}else if(N>=224){if(D-A>=9){var Te=parseInt(S.substr(A+4,2),16),Me=parseInt(S.substr(A+7,2),16);C+=String.fromCharCode((N&15)<<12|(Te&63)<<6|Me&63)}else C+=S.substr(A,9);A+=9}else C+=S.substr(A,3),A+=3}return C}o(g,"pctDecChars");function L(S,C){function A(D){var N=g(D);return N.match(C.UNRESERVED)?N:D}return o(A,"decodeUnreserved"),S.scheme&&(S.scheme=String(S.scheme).replace(C.PCT_ENCODED,A).toLowerCase().replace(C.NOT_SCHEME,"")),S.userinfo!==void 0&&(S.userinfo=String(S.userinfo).replace(C.PCT_ENCODED,A).replace(C.NOT_USERINFO,y).replace(C.PCT_ENCODED,r)),S.host!==void 0&&(S.host=String(S.host).replace(C.PCT_ENCODED,A).toLowerCase().replace(C.NOT_HOST,y).replace(C.PCT_ENCODED,r)),S.path!==void 0&&(S.path=String(S.path).replace(C.PCT_ENCODED,A).replace(S.scheme?C.NOT_PATH:C.NOT_PATH_NOSCHEME,y).replace(C.PCT_ENCODED,r)),S.query!==void 0&&(S.query=String(S.query).replace(C.PCT_ENCODED,A).replace(C.NOT_QUERY,y).replace(C.PCT_ENCODED,r)),S.fragment!==void 0&&(S.fragment=String(S.fragment).replace(C.PCT_ENCODED,A).replace(C.NOT_FRAGMENT,y).replace(C.PCT_ENCODED,r)),S}o(L,"_normalizeComponentEncoding");function x(S){return S.replace(/^0*(.*)/,"$1")||"0"}o(x,"_stripLeadingZeros");function pe(S,C){var A=S.match(C.IPV4ADDRESS)||[],D=f(A,2),N=D[1];return N?N.split(".").map(x).join("."):S}o(pe,"_normalizeIPv4");function me(S,C){var A=S.match(C.IPV6ADDRESS)||[],D=f(A,3),N=D[1],ne=D[2];if(N){for(var Te=N.toLowerCase().split("::").reverse(),Me=f(Te,2),Qe=Me[0],bt=Me[1],Re=bt?bt.split(":").map(x):[],lt=Qe.split(":").map(x),Et=C.IPV4ADDRESS.test(lt[lt.length-1]),at=Et?7:8,ke=lt.length-at,ct=Array(at),Xe=0;Xe<at;++Xe)ct[Xe]=Re[Xe]||lt[ke+Xe]||"";Et&&(ct[at-1]=pe(ct[at-1],C));var _n=ct.reduce(function(gr,Lr,Dn){if(!Lr||Lr==="0"){var Hr=gr[gr.length-1];Hr&&Hr.index+Hr.length===Dn?Hr.length++:gr.push({index:Dn,length:1})}return gr},[]),ar=_n.sort(function(gr,Lr){return Lr.length-gr.length})[0],dr=void 0;if(ar&&ar.length>1){var Ye=ct.slice(0,ar.index),ir=ct.slice(ar.index+ar.length);dr=Ye.join(":")+"::"+ir.join(":")}else dr=ct.join(":");return ne&&(dr+="%"+ne),dr}else return S}o(me,"_normalizeIPv6");var Je=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,je="".match(/(){0}/)[1]===void 0;function be(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A={},D=C.iri!==!1?u:c;C.reference==="suffix"&&(S=(C.scheme?C.scheme+":":"")+"//"+S);var N=S.match(Je);if(N){je?(A.scheme=N[1],A.userinfo=N[3],A.host=N[4],A.port=parseInt(N[5],10),A.path=N[6]||"",A.query=N[7],A.fragment=N[8],isNaN(A.port)&&(A.port=N[5])):(A.scheme=N[1]||void 0,A.userinfo=S.indexOf("@")!==-1?N[3]:void 0,A.host=S.indexOf("//")!==-1?N[4]:void 0,A.port=parseInt(N[5],10),A.path=N[6]||"",A.query=S.indexOf("?")!==-1?N[7]:void 0,A.fragment=S.indexOf("#")!==-1?N[8]:void 0,isNaN(A.port)&&(A.port=S.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?N[4]:void 0)),A.host&&(A.host=me(pe(A.host,D),D)),A.scheme===void 0&&A.userinfo===void 0&&A.host===void 0&&A.port===void 0&&!A.path&&A.query===void 0?A.reference="same-document":A.scheme===void 0?A.reference="relative":A.fragment===void 0?A.reference="absolute":A.reference="uri",C.reference&&C.reference!=="suffix"&&C.reference!==A.reference&&(A.error=A.error||"URI is not a "+C.reference+" reference.");var ne=ze[(C.scheme||A.scheme||"").toLowerCase()];if(!C.unicodeSupport&&(!ne||!ne.unicodeSupport)){if(A.host&&(C.domainHost||ne&&ne.domainHost))try{A.host=ce.toASCII(A.host.replace(D.PCT_ENCODED,g).toLowerCase())}catch(Te){A.error=A.error||"Host's domain name can not be converted to ASCII via punycode: "+Te}L(A,c)}else L(A,D);ne&&ne.parse&&ne.parse(A,C)}else A.error=A.error||"URI can not be parsed.";return A}o(be,"parse");function Lt(S,C){var A=C.iri!==!1?u:c,D=[];return S.userinfo!==void 0&&(D.push(S.userinfo),D.push("@")),S.host!==void 0&&D.push(me(pe(String(S.host),A),A).replace(A.IPV6ADDRESS,function(N,ne,Te){return"["+ne+(Te?"%25"+Te:"")+"]"})),(typeof S.port=="number"||typeof S.port=="string")&&(D.push(":"),D.push(String(S.port))),D.length?D.join(""):void 0}o(Lt,"_recomposeAuthority");var We=/^\.\.?\//,Ct=/^\/\.(\/|$)/,Or=/^\/\.\.(\/|$)/,nt=/^\/?(?:.|\n)*?(?=\/|$)/;function _t(S){for(var C=[];S.length;)if(S.match(We))S=S.replace(We,"");else if(S.match(Ct))S=S.replace(Ct,"/");else if(S.match(Or))S=S.replace(Or,"/"),C.pop();else if(S==="."||S==="..")S="";else{var A=S.match(nt);if(A){var D=A[0];S=S.slice(D.length),C.push(D)}else throw new Error("Unexpected dot segment condition")}return C.join("")}o(_t,"removeDotSegments");function Ot(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=C.iri?u:c,D=[],N=ze[(C.scheme||S.scheme||"").toLowerCase()];if(N&&N.serialize&&N.serialize(S,C),S.host&&!A.IPV6ADDRESS.test(S.host)){if(C.domainHost||N&&N.domainHost)try{S.host=C.iri?ce.toUnicode(S.host):ce.toASCII(S.host.replace(A.PCT_ENCODED,g).toLowerCase())}catch(Me){S.error=S.error||"Host's domain name can not be converted to "+(C.iri?"Unicode":"ASCII")+" via punycode: "+Me}}L(S,A),C.reference!=="suffix"&&S.scheme&&(D.push(S.scheme),D.push(":"));var ne=Lt(S,C);if(ne!==void 0&&(C.reference!=="suffix"&&D.push("//"),D.push(ne),S.path&&S.path.charAt(0)!=="/"&&D.push("/")),S.path!==void 0){var Te=S.path;!C.absolutePath&&(!N||!N.absolutePath)&&(Te=_t(Te)),ne===void 0&&(Te=Te.replace(/^\/\//,"/%2F")),D.push(Te)}return S.query!==void 0&&(D.push("?"),D.push(S.query)),S.fragment!==void 0&&(D.push("#"),D.push(S.fragment)),D.join("")}o(Ot,"serialize");function $t(S,C){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=arguments[3],N={};return D||(S=be(Ot(S,A),A),C=be(Ot(C,A),A)),A=A||{},!A.tolerant&&C.scheme?(N.scheme=C.scheme,N.userinfo=C.userinfo,N.host=C.host,N.port=C.port,N.path=_t(C.path||""),N.query=C.query):(C.userinfo!==void 0||C.host!==void 0||C.port!==void 0?(N.userinfo=C.userinfo,N.host=C.host,N.port=C.port,N.path=_t(C.path||""),N.query=C.query):(C.path?(C.path.charAt(0)==="/"?N.path=_t(C.path):((S.userinfo!==void 0||S.host!==void 0||S.port!==void 0)&&!S.path?N.path="/"+C.path:S.path?N.path=S.path.slice(0,S.path.lastIndexOf("/")+1)+C.path:N.path=C.path,N.path=_t(N.path)),N.query=C.query):(N.path=S.path,C.query!==void 0?N.query=C.query:N.query=S.query),N.userinfo=S.userinfo,N.host=S.host,N.port=S.port),N.scheme=S.scheme),N.fragment=C.fragment,N}o($t,"resolveComponents");function zt(S,C,A){var D=s({scheme:"null"},A);return Ot($t(be(S,D),be(C,D),D,!0),D)}o(zt,"resolve");function I(S,C){return typeof S=="string"?S=Ot(be(S,C),C):a(S)==="object"&&(S=be(Ot(S,C),C)),S}o(I,"normalize");function $(S,C,A){return typeof S=="string"?S=Ot(be(S,A),A):a(S)==="object"&&(S=Ot(S,A)),typeof C=="string"?C=Ot(be(C,A),A):a(C)==="object"&&(C=Ot(C,A)),S===C}o($,"equal");function k(S,C){return S&&S.toString().replace(!C||!C.iri?c.ESCAPE:u.ESCAPE,y)}o(k,"escapeComponent");function K(S,C){return S&&S.toString().replace(!C||!C.iri?c.PCT_ENCODED:u.PCT_ENCODED,g)}o(K,"unescapeComponent");var le={scheme:"http",domainHost:!0,parse:o(function(C,A){return C.host||(C.error=C.error||"HTTP URIs must have a host."),C},"parse"),serialize:o(function(C,A){var D=String(C.scheme).toLowerCase()==="https";return(C.port===(D?443:80)||C.port==="")&&(C.port=void 0),C.path||(C.path="/"),C},"serialize")},yt={scheme:"https",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize};function Oe(S){return typeof S.secure=="boolean"?S.secure:String(S.scheme).toLowerCase()==="wss"}o(Oe,"isSecure");var Pe={scheme:"ws",domainHost:!0,parse:o(function(C,A){var D=C;return D.secure=Oe(D),D.resourceName=(D.path||"/")+(D.query?"?"+D.query:""),D.path=void 0,D.query=void 0,D},"parse"),serialize:o(function(C,A){if((C.port===(Oe(C)?443:80)||C.port==="")&&(C.port=void 0),typeof C.secure=="boolean"&&(C.scheme=C.secure?"wss":"ws",C.secure=void 0),C.resourceName){var D=C.resourceName.split("?"),N=f(D,2),ne=N[0],Te=N[1];C.path=ne&&ne!=="/"?ne:void 0,C.query=Te,C.resourceName=void 0}return C.fragment=void 0,C},"serialize")},de={scheme:"wss",domainHost:Pe.domainHost,parse:Pe.parse,serialize:Pe.serialize},$e={},Ve=!0,Sr="[A-Za-z0-9\\-\\.\\_\\~"+(Ve?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",nr="[0-9A-Fa-f]",ov=n(n("%[EFef]"+nr+"%"+nr+nr+"%"+nr+nr)+"|"+n("%[89A-Fa-f]"+nr+"%"+nr+nr)+"|"+n("%"+nr+nr)),sv="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",lv="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",cv=t(lv,'[\\"\\\\]'),uv="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",fv=new RegExp(Sr,"g"),sa=new RegExp(ov,"g"),pv=new RegExp(t("[^]",sv,"[\\.]",'[\\"]',cv),"g"),Ec=new RegExp(t("[^]",Sr,uv),"g"),dv=Ec;function Fs(S){var C=g(S);return C.match(fv)?C:S}o(Fs,"decodeUnreserved");var Pc={scheme:"mailto",parse:o(function(C,A){var D=C,N=D.to=D.path?D.path.split(","):[];if(D.path=void 0,D.query){for(var ne=!1,Te={},Me=D.query.split("&"),Qe=0,bt=Me.length;Qe<bt;++Qe){var Re=Me[Qe].split("=");switch(Re[0]){case"to":for(var lt=Re[1].split(","),Et=0,at=lt.length;Et<at;++Et)N.push(lt[Et]);break;case"subject":D.subject=K(Re[1],A);break;case"body":D.body=K(Re[1],A);break;default:ne=!0,Te[K(Re[0],A)]=K(Re[1],A);break}}ne&&(D.headers=Te)}D.query=void 0;for(var ke=0,ct=N.length;ke<ct;++ke){var Xe=N[ke].split("@");if(Xe[0]=K(Xe[0]),A.unicodeSupport)Xe[1]=K(Xe[1],A).toLowerCase();else try{Xe[1]=ce.toASCII(K(Xe[1],A).toLowerCase())}catch(_n){D.error=D.error||"Email address's domain name can not be converted to ASCII via punycode: "+_n}N[ke]=Xe.join("@")}return D},"parse$$1"),serialize:o(function(C,A){var D=C,N=i(C.to);if(N){for(var ne=0,Te=N.length;ne<Te;++ne){var Me=String(N[ne]),Qe=Me.lastIndexOf("@"),bt=Me.slice(0,Qe).replace(sa,Fs).replace(sa,r).replace(pv,y),Re=Me.slice(Qe+1);try{Re=A.iri?ce.toUnicode(Re):ce.toASCII(K(Re,A).toLowerCase())}catch(ke){D.error=D.error||"Email address's domain name can not be converted to "+(A.iri?"Unicode":"ASCII")+" via punycode: "+ke}N[ne]=bt+"@"+Re}D.path=N.join(",")}var lt=C.headers=C.headers||{};C.subject&&(lt.subject=C.subject),C.body&&(lt.body=C.body);var Et=[];for(var at in lt)lt[at]!==$e[at]&&Et.push(at.replace(sa,Fs).replace(sa,r).replace(Ec,y)+"="+lt[at].replace(sa,Fs).replace(sa,r).replace(dv,y));return Et.length&&(D.query=Et.join("&")),D},"serialize$$1")},gv=/^([^\:]+)\:(.*)/,Cc={scheme:"urn",parse:o(function(C,A){var D=C.path&&C.path.match(gv),N=C;if(D){var ne=A.scheme||N.scheme||"urn",Te=D[1].toLowerCase(),Me=D[2],Qe=ne+":"+(A.nid||Te),bt=ze[Qe];N.nid=Te,N.nss=Me,N.path=void 0,bt&&(N=bt.parse(N,A))}else N.error=N.error||"URN can not be parsed.";return N},"parse$$1"),serialize:o(function(C,A){var D=A.scheme||C.scheme||"urn",N=C.nid,ne=D+":"+(A.nid||N),Te=ze[ne];Te&&(C=Te.serialize(C,A));var Me=C,Qe=C.nss;return Me.path=(N||A.nid)+":"+Qe,Me},"serialize$$1")},mv=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Oc={scheme:"urn:uuid",parse:o(function(C,A){var D=C;return D.uuid=D.nss,D.nss=void 0,!A.tolerant&&(!D.uuid||!D.uuid.match(mv))&&(D.error=D.error||"UUID is not valid."),D},"parse"),serialize:o(function(C,A){var D=C;return D.nss=(C.uuid||"").toLowerCase(),D},"serialize")};ze[le.scheme]=le,ze[yt.scheme]=yt,ze[Pe.scheme]=Pe,ze[de.scheme]=de,ze[Pc.scheme]=Pc,ze[Cc.scheme]=Cc,ze[Oc.scheme]=Oc,e.SCHEMES=ze,e.pctEncChar=y,e.pctDecChars=g,e.parse=be,e.removeDotSegments=_t,e.serialize=Ot,e.resolveComponents=$t,e.resolve=zt,e.normalize=I,e.equal=$,e.escapeComponent=k,e.unescapeComponent=K,Object.defineProperty(e,"__esModule",{value:!0})})});var ps=z((q_,em)=>{"use strict";em.exports=o(function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var a,r,i;if(Array.isArray(t)){if(a=t.length,a!=n.length)return!1;for(r=a;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),a=i.length,a!==Object.keys(n).length)return!1;for(r=a;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=a;r--!==0;){var s=i[r];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n},"equal")});var rm=z((K_,tm)=>{"use strict";tm.exports=o(function(t){for(var n=0,a=t.length,r=0,i;r<a;)n++,i=t.charCodeAt(r++),i>=55296&&i<=56319&&r<a&&(i=t.charCodeAt(r),(i&64512)==56320&&r++);return n},"ucs2length")});var ia=z((J_,im)=>{"use strict";im.exports={copy:HS,checkDataType:Wl,checkDataTypes:QS,coerceToTypes:qS,toHash:Xl,getProperty:Yl,escapeQuotes:Zl,equal:ps(),ucs2length:rm(),varOccurences:WS,varReplace:zS,schemaHasRules:XS,schemaHasRulesExcept:YS,schemaUnknownRules:ZS,toQuotedString:zl,getPathExpr:eT,getPath:tT,getData:aT,unescapeFragment:iT,unescapeJsonPointer:tc,escapeFragment:oT,escapeJsonPointer:ec};function HS(e,t){t=t||{};for(var n in e)t[n]=e[n];return t}o(HS,"copy");function Wl(e,t,n,a){var r=a?" !== ":" === ",i=a?" || ":" && ",s=a?"!":"",l=a?"":"!";switch(e){case"null":return t+r+"null";case"array":return s+"Array.isArray("+t+")";case"object":return"("+s+t+i+"typeof "+t+r+'"object"'+i+l+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+r+'"number"'+i+l+"("+t+" % 1)"+i+t+r+t+(n?i+s+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+r+'"'+e+'"'+(n?i+s+"isFinite("+t+")":"")+")";default:return"typeof "+t+r+'"'+e+'"'}}o(Wl,"checkDataType");function QS(e,t,n){switch(e.length){case 1:return Wl(e[0],t,n,!0);default:var a="",r=Xl(e);r.array&&r.object&&(a=r.null?"(":"(!"+t+" || ",a+="typeof "+t+' !== "object")',delete r.null,delete r.array,delete r.object),r.number&&delete r.integer;for(var i in r)a+=(a?" && ":"")+Wl(i,t,n,!0);return a}}o(QS,"checkDataTypes");var nm=Xl(["string","number","integer","boolean","null"]);function qS(e,t){if(Array.isArray(t)){for(var n=[],a=0;a<t.length;a++){var r=t[a];(nm[r]||e==="array"&&r==="array")&&(n[n.length]=r)}if(n.length)return n}else{if(nm[t])return[t];if(e==="array"&&t==="array")return["array"]}}o(qS,"coerceToTypes");function Xl(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}o(Xl,"toHash");var KS=/^[a-z$_][a-z$_0-9]*$/i,JS=/'|\\/g;function Yl(e){return typeof e=="number"?"["+e+"]":KS.test(e)?"."+e:"['"+Zl(e)+"']"}o(Yl,"getProperty");function Zl(e){return e.replace(JS,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}o(Zl,"escapeQuotes");function WS(e,t){t+="[^0-9]";var n=e.match(new RegExp(t,"g"));return n?n.length:0}o(WS,"varOccurences");function zS(e,t,n){return t+="([^0-9])",n=n.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),n+"$1")}o(zS,"varReplace");function XS(e,t){if(typeof e=="boolean")return!e;for(var n in e)if(t[n])return!0}o(XS,"schemaHasRules");function YS(e,t,n){if(typeof e=="boolean")return!e&&n!="not";for(var a in e)if(a!=n&&t[a])return!0}o(YS,"schemaHasRulesExcept");function ZS(e,t){if(typeof e!="boolean"){for(var n in e)if(!t[n])return n}}o(ZS,"schemaUnknownRules");function zl(e){return"'"+Zl(e)+"'"}o(zl,"toQuotedString");function eT(e,t,n,a){var r=n?"'/' + "+t+(a?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):a?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'";return am(e,r)}o(eT,"getPathExpr");function tT(e,t,n){var a=zl(n?"/"+ec(t):Yl(t));return am(e,a)}o(tT,"getPath");var rT=/^\/(?:[^~]|~0|~1)*$/,nT=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function aT(e,t,n){var a,r,i,s;if(e==="")return"rootData";if(e[0]=="/"){if(!rT.test(e))throw new Error("Invalid JSON-pointer: "+e);r=e,i="rootData"}else{if(s=e.match(nT),!s)throw new Error("Invalid JSON-pointer: "+e);if(a=+s[1],r=s[2],r=="#"){if(a>=t)throw new Error("Cannot access property/index "+a+" levels up, current level is "+t);return n[t-a]}if(a>t)throw new Error("Cannot access data "+a+" levels up, current level is "+t);if(i="data"+(t-a||""),!r)return i}for(var l=i,c=r.split("/"),u=0;u<c.length;u++){var f=c[u];f&&(i+=Yl(tc(f)),l+=" && "+i)}return l}o(aT,"getData");function am(e,t){return e=='""'?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}o(am,"joinPaths");function iT(e){return tc(decodeURIComponent(e))}o(iT,"unescapeFragment");function oT(e){return encodeURIComponent(ec(e))}o(oT,"escapeFragment");function ec(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(ec,"escapeJsonPointer");function tc(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(tc,"unescapeJsonPointer")});var rc=z((W_,om)=>{"use strict";var sT=ia();om.exports=lT;function lT(e){sT.copy(e,this)}o(lT,"SchemaObject")});var lm=z((z_,sm)=>{"use strict";var Tn=sm.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var a=typeof n=="function"?n:n.pre||function(){},r=n.post||function(){};ds(t,a,r,e,"",e)};Tn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};Tn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Tn.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Tn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function ds(e,t,n,a,r,i,s,l,c,u){if(a&&typeof a=="object"&&!Array.isArray(a)){t(a,r,i,s,l,c,u);for(var f in a){var d=a[f];if(Array.isArray(d)){if(f in Tn.arrayKeywords)for(var h=0;h<d.length;h++)ds(e,t,n,d[h],r+"/"+f+"/"+h,i,r,f,a,h)}else if(f in Tn.propsKeywords){if(d&&typeof d=="object")for(var p in d)ds(e,t,n,d[p],r+"/"+f+"/"+cT(p),i,r,f,a,p)}else(f in Tn.keywords||e.allKeys&&!(f in Tn.skipKeywords))&&ds(e,t,n,d,r+"/"+f,i,r,f,a)}n(a,r,i,s,l,c,u)}}o(ds,"_traverse");function cT(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(cT,"escapeJsonPtr")});var bs=z((X_,pm)=>{"use strict";var Di=Zg(),cm=ps(),vs=ia(),gs=rc(),uT=lm();pm.exports=xn;xn.normalizeId=An;xn.fullPath=ms;xn.url=hs;xn.ids=mT;xn.inlineRef=nc;xn.schema=ys;function xn(e,t,n){var a=this._refs[n];if(typeof a=="string")if(this._refs[a])a=this._refs[a];else return xn.call(this,e,t,a);if(a=a||this._schemas[n],a instanceof gs)return nc(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a);var r=ys.call(this,t,n),i,s,l;return r&&(i=r.schema,t=r.root,l=r.baseId),i instanceof gs?s=i.validate||e.call(this,i.schema,t,void 0,l):i!==void 0&&(s=nc(i,this._opts.inlineRefs)?i:e.call(this,i,t,void 0,l)),s}o(xn,"resolve");function ys(e,t){var n=Di.parse(t),a=fm(n),r=ms(this._getId(e.schema));if(Object.keys(e.schema).length===0||a!==r){var i=An(a),s=this._refs[i];if(typeof s=="string")return fT.call(this,e,s,n);if(s instanceof gs)s.validate||this._compile(s),e=s;else if(s=this._schemas[i],s instanceof gs){if(s.validate||this._compile(s),i==An(t))return{schema:s,root:e,baseId:r};e=s}else return;if(!e.schema)return;r=ms(this._getId(e.schema))}return um.call(this,n,r,e.schema,e)}o(ys,"resolveSchema");function fT(e,t,n){var a=ys.call(this,e,t);if(a){var r=a.schema,i=a.baseId;e=a.root;var s=this._getId(r);return s&&(i=hs(i,s)),um.call(this,n,i,r,e)}}o(fT,"resolveRecursive");var pT=vs.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function um(e,t,n,a){if(e.fragment=e.fragment||"",e.fragment.slice(0,1)=="/"){for(var r=e.fragment.split("/"),i=1;i<r.length;i++){var s=r[i];if(s){if(s=vs.unescapeFragment(s),n=n[s],n===void 0)break;var l;if(!pT[s]&&(l=this._getId(n),l&&(t=hs(t,l)),n.$ref)){var c=hs(t,n.$ref),u=ys.call(this,a,c);u&&(n=u.schema,a=u.root,t=u.baseId)}}}if(n!==void 0&&n!==a.schema)return{schema:n,root:a,baseId:t}}}o(um,"getJsonPointer");var dT=vs.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function nc(e,t){if(t===!1)return!1;if(t===void 0||t===!0)return ac(e);if(t)return ic(e)<=t}o(nc,"inlineRef");function ac(e){var t;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(t=e[n],typeof t=="object"&&!ac(t))return!1}else for(var a in e)if(a=="$ref"||(t=e[a],typeof t=="object"&&!ac(t)))return!1;return!0}o(ac,"checkNoRef");function ic(e){var t=0,n;if(Array.isArray(e)){for(var a=0;a<e.length;a++)if(n=e[a],typeof n=="object"&&(t+=ic(n)),t==1/0)return 1/0}else for(var r in e){if(r=="$ref")return 1/0;if(dT[r])t++;else if(n=e[r],typeof n=="object"&&(t+=ic(n)+1),t==1/0)return 1/0}return t}o(ic,"countKeys");function ms(e,t){t!==!1&&(e=An(e));var n=Di.parse(e);return fm(n)}o(ms,"getFullPath");function fm(e){return Di.serialize(e).split("#")[0]+"#"}o(fm,"_getFullPath");var gT=/#\/?$/;function An(e){return e?e.replace(gT,""):""}o(An,"normalizeId");function hs(e,t){return t=An(t),Di.resolve(e,t)}o(hs,"resolveUrl");function mT(e){var t=An(this._getId(e)),n={"":t},a={"":ms(t,!1)},r={},i=this;return uT(e,{allKeys:!0},function(s,l,c,u,f,d,h){if(l!==""){var p=i._getId(s),m=n[u],P=a[u]+"/"+f;if(h!==void 0&&(P+="/"+(typeof h=="number"?h:vs.escapeFragment(h))),typeof p=="string"){p=m=An(m?Di.resolve(m,p):p);var E=i._refs[p];if(typeof E=="string"&&(E=i._refs[E]),E&&E.schema){if(!cm(s,E.schema))throw new Error('id "'+p+'" resolves to more than one schema')}else if(p!=An(P))if(p[0]=="#"){if(r[p]&&!cm(s,r[p]))throw new Error('id "'+p+'" resolves to more than one schema');r[p]=s}else i._refs[p]=P}n[l]=m,a[l]=P}}),r}o(mT,"resolveIds")});var Es=z((Y_,gm)=>{"use strict";var oc=bs();gm.exports={Validation:dm(hT),MissingRef:dm(sc)};function hT(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0}o(hT,"ValidationError");sc.message=function(e,t){return"can't resolve reference "+t+" from id "+e};function sc(e,t,n){this.message=n||sc.message(e,t),this.missingRef=oc.url(e,t),this.missingSchema=oc.normalizeId(oc.fullPath(this.missingRef))}o(sc,"MissingRefError");function dm(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}o(dm,"errorSubclass")});var lc=z((Z_,mm)=>{"use strict";mm.exports=function(e,t){t||(t={}),typeof t=="function"&&(t={cmp:t});var n=typeof t.cycles=="boolean"?t.cycles:!1,a=t.cmp&&function(i){return function(s){return function(l,c){var u={key:l,value:s[l]},f={key:c,value:s[c]};return i(u,f)}}}(t.cmp),r=[];return o(function i(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var l,c;if(Array.isArray(s)){for(c="[",l=0;l<s.length;l++)l&&(c+=","),c+=i(s[l])||"null";return c+"]"}if(s===null)return"null";if(r.indexOf(s)!==-1){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=r.push(s)-1,f=Object.keys(s).sort(a&&a(s));for(c="",l=0;l<f.length;l++){var d=f[l],h=i(s[d]);!h||(c&&(c+=","),c+=JSON.stringify(d)+":"+h)}return r.splice(u,1),"{"+c+"}"}},"stringify")(e)}});var cc=z((eD,hm)=>{"use strict";hm.exports=o(function(t,n,a){var r="",i=t.schema.$async===!0,s=t.util.schemaHasRulesExcept(t.schema,t.RULES.all,"$ref"),l=t.self._getId(t.schema);if(t.opts.strictKeywords){var c=t.util.schemaUnknownRules(t.schema,t.RULES.keywords);if(c){var u="unknown keyword: "+c;if(t.opts.strictKeywords==="log")t.logger.warn(u);else throw new Error(u)}}if(t.isTop&&(r+=" var validate = ",i&&(t.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",l&&(t.opts.sourceCode||t.opts.processCode)&&(r+=" "+("/*# sourceURL="+l+" */")+" ")),typeof t.schema=="boolean"||!(s||t.schema.$ref)){var n="false schema",f=t.level,d=t.dataLevel,h=t.schema[n],p=t.schemaPath+t.util.getProperty(n),m=t.errSchemaPath+"/"+n,R=!t.opts.allErrors,O,P="data"+(d||""),V="valid"+f;if(t.schema===!1){t.isTop?R=!0:r+=" var "+V+" = false; ";var E=E||[];E.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(O||"false schema")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(m)+" , params: {} ",t.opts.messages!==!1&&(r+=" , message: 'boolean schema is false' "),t.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+P+" "),r+=" } "):r+=" {} ";var T=r;r=E.pop(),!t.compositeRule&&R?t.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else t.isTop?i?r+=" return data; ":r+=" validate.errors = null; return true; ":r+=" var "+V+" = true; ";return t.isTop&&(r+=" }; return validate; "),r}if(t.isTop){var w=t.isTop,f=t.level=0,d=t.dataLevel=0,P="data";if(t.rootId=t.resolve.fullPath(t.self._getId(t.root.schema)),t.baseId=t.baseId||t.rootId,delete t.isTop,t.dataPathArr=[""],t.schema.default!==void 0&&t.opts.useDefaults&&t.opts.strictDefaults){var F="default is ignored in the schema root";if(t.opts.strictDefaults==="log")t.logger.warn(F);else throw new Error(F)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{var f=t.level,d=t.dataLevel,P="data"+(d||"");if(l&&(t.baseId=t.resolve.url(t.baseId,l)),i&&!t.async)throw new Error("async schema in sync schema");r+=" var errs_"+f+" = errors;"}var V="valid"+f,R=!t.opts.allErrors,M="",ae="",O,B=t.schema.type,re=Array.isArray(B);if(B&&t.opts.nullable&&t.schema.nullable===!0&&(re?B.indexOf("null")==-1&&(B=B.concat("null")):B!="null"&&(B=[B,"null"],re=!0)),re&&B.length==1&&(B=B[0],re=!1),t.schema.$ref&&s){if(t.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+t.errSchemaPath+'" (see option extendRefs)');t.opts.extendRefs!==!0&&(s=!1,t.logger.warn('$ref: keywords ignored in schema at path "'+t.errSchemaPath+'"'))}if(t.schema.$comment&&t.opts.$comment&&(r+=" "+t.RULES.all.$comment.code(t,"$comment")),B){if(t.opts.coerceTypes)var G=t.util.coerceToTypes(t.opts.coerceTypes,B);var J=t.RULES.types[B];if(G||re||J===!0||J&&!nt(J)){var p=t.schemaPath+".type",m=t.errSchemaPath+"/type",p=t.schemaPath+".type",m=t.errSchemaPath+"/type",j=re?"checkDataTypes":"checkDataType";if(r+=" if ("+t.util[j](B,P,t.opts.strictNumbers,!0)+") { ",G){var U="dataType"+f,te="coerced"+f;r+=" var "+U+" = typeof "+P+"; var "+te+" = undefined; ",t.opts.coerceTypes=="array"&&(r+=" if ("+U+" == 'object' && Array.isArray("+P+") && "+P+".length == 1) { "+P+" = "+P+"[0]; "+U+" = typeof "+P+"; if ("+t.util.checkDataType(t.schema.type,P,t.opts.strictNumbers)+") "+te+" = "+P+"; } "),r+=" if ("+te+" !== undefined) ; ";var oe=G;if(oe)for(var Ee,ve=-1,ue=oe.length-1;ve<ue;)Ee=oe[ve+=1],Ee=="string"?r+=" else if ("+U+" == 'number' || "+U+" == 'boolean') "+te+" = '' + "+P+"; else if ("+P+" === null) "+te+" = ''; ":Ee=="number"||Ee=="integer"?(r+=" else if ("+U+" == 'boolean' || "+P+" === null || ("+U+" == 'string' && "+P+" && "+P+" == +"+P+" ",Ee=="integer"&&(r+=" && !("+P+" % 1)"),r+=")) "+te+" = +"+P+"; "):Ee=="boolean"?r+=" else if ("+P+" === 'false' || "+P+" === 0 || "+P+" === null) "+te+" = false; else if ("+P+" === 'true' || "+P+" === 1) "+te+" = true; ":Ee=="null"?r+=" else if ("+P+" === '' || "+P+" === 0 || "+P+" === false) "+te+" = null; ":t.opts.coerceTypes=="array"&&Ee=="array"&&(r+=" else if ("+U+" == 'string' || "+U+" == 'number' || "+U+" == 'boolean' || "+P+" == null) "+te+" = ["+P+"]; ");r+=" else { ";var E=E||[];E.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(O||"type")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(m)+" , params: { type: '",re?r+=""+B.join(","):r+=""+B,r+="' } ",t.opts.messages!==!1&&(r+=" , message: 'should be ",re?r+=""+B.join(","):r+=""+B,r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+P+" "),r+=" } "):r+=" {} ";var T=r;r=E.pop(),!t.compositeRule&&R?t.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } if ("+te+" !== undefined) { ";var ie=d?"data"+(d-1||""):"parentData",ge=d?t.dataPathArr[d]:"parentDataProperty";r+=" "+P+" = "+te+"; ",d||(r+="if ("+ie+" !== undefined)"),r+=" "+ie+"["+ge+"] = "+te+"; } "}else{var E=E||[];E.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(O||"type")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(m)+" , params: { type: '",re?r+=""+B.join(","):r+=""+B,r+="' } ",t.opts.messages!==!1&&(r+=" , message: 'should be ",re?r+=""+B.join(","):r+=""+B,r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+P+" "),r+=" } "):r+=" {} ";var T=r;r=E.pop(),!t.compositeRule&&R?t.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } "}}if(t.schema.$ref&&!s)r+=" "+t.RULES.all.$ref.code(t,"$ref")+" ",R&&(r+=" } if (errors === ",w?r+="0":r+="errs_"+f,r+=") { ",ae+="}");else{var He=t.RULES;if(He){for(var J,rt=-1,ce=He.length-1;rt<ce;)if(J=He[rt+=1],nt(J)){if(J.type&&(r+=" if ("+t.util.checkDataType(J.type,P,t.opts.strictNumbers)+") { "),t.opts.useDefaults){if(J.type=="object"&&t.schema.properties){var h=t.schema.properties,ze=Object.keys(h),y=ze;if(y)for(var g,L=-1,x=y.length-1;L<x;){g=y[L+=1];var pe=h[g];if(pe.default!==void 0){var me=P+t.util.getProperty(g);if(t.compositeRule){if(t.opts.strictDefaults){var F="default is ignored for: "+me;if(t.opts.strictDefaults==="log")t.logger.warn(F);else throw new Error(F)}}else r+=" if ("+me+" === undefined ",t.opts.useDefaults=="empty"&&(r+=" || "+me+" === null || "+me+" === '' "),r+=" ) "+me+" = ",t.opts.useDefaults=="shared"?r+=" "+t.useDefault(pe.default)+" ":r+=" "+JSON.stringify(pe.default)+" ",r+="; "}}}else if(J.type=="array"&&Array.isArray(t.schema.items)){var Je=t.schema.items;if(Je){for(var pe,ve=-1,je=Je.length-1;ve<je;)if(pe=Je[ve+=1],pe.default!==void 0){var me=P+"["+ve+"]";if(t.compositeRule){if(t.opts.strictDefaults){var F="default is ignored for: "+me;if(t.opts.strictDefaults==="log")t.logger.warn(F);else throw new Error(F)}}else r+=" if ("+me+" === undefined ",t.opts.useDefaults=="empty"&&(r+=" || "+me+" === null || "+me+" === '' "),r+=" ) "+me+" = ",t.opts.useDefaults=="shared"?r+=" "+t.useDefault(pe.default)+" ":r+=" "+JSON.stringify(pe.default)+" ",r+="; "}}}}var be=J.rules;if(be){for(var Lt,We=-1,Ct=be.length-1;We<Ct;)if(Lt=be[We+=1],_t(Lt)){var Or=Lt.code(t,Lt.keyword,J.type);Or&&(r+=" "+Or+" ",R&&(M+="}"))}}if(R&&(r+=" "+M+" ",M=""),J.type&&(r+=" } ",B&&B===J.type&&!G)){r+=" else { ";var p=t.schemaPath+".type",m=t.errSchemaPath+"/type",E=E||[];E.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(O||"type")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(m)+" , params: { type: '",re?r+=""+B.join(","):r+=""+B,r+="' } ",t.opts.messages!==!1&&(r+=" , message: 'should be ",re?r+=""+B.join(","):r+=""+B,r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+P+" "),r+=" } "):r+=" {} ";var T=r;r=E.pop(),!t.compositeRule&&R?t.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "}R&&(r+=" if (errors === ",w?r+="0":r+="errs_"+f,r+=") { ",ae+="}")}}}R&&(r+=" "+ae+" "),w?(i?(r+=" if (errors === 0) return data; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" }; return validate;"):r+=" var "+V+" = errors === errs_"+f+";";function nt($t){for(var zt=$t.rules,I=0;I<zt.length;I++)if(_t(zt[I]))return!0}o(nt,"$shouldUseGroup");function _t($t){return t.schema[$t.keyword]!==void 0||$t.implements&&Ot($t)}o(_t,"$shouldUseRule");function Ot($t){for(var zt=$t.implements,I=0;I<zt.length;I++)if(t.schema[zt[I]]!==void 0)return!0}return o(Ot,"$ruleImplementsSomeKeyword"),r},"generate_validate")});var Pm=z((tD,Em)=>{"use strict";var Ps=bs(),Os=ia(),ym=Es(),vT=lc(),vm=cc(),yT=Os.ucs2length,bT=ps(),ET=ym.Validation;Em.exports=uc;function uc(e,t,n,a){var r=this,i=this._opts,s=[void 0],l={},c=[],u={},f=[],d={},h=[];t=t||{schema:e,refVal:s,refs:l};var p=PT.call(this,e,t,a),m=this._compilations[p.index];if(p.compiling)return m.callValidate=F;var P=this._formats,E=this.RULES;try{var T=V(e,t,n,a);m.validate=T;var w=m.callValidate;return w&&(w.schema=T.schema,w.errors=null,w.refs=T.refs,w.refVal=T.refVal,w.root=T.root,w.$async=T.$async,i.sourceCode&&(w.source=T.source)),T}finally{CT.call(this,e,t,a)}function F(){var j=m.validate,U=j.apply(this,arguments);return F.errors=j.errors,U}o(F,"callValidate");function V(j,U,te,oe){var Ee=!U||U&&U.schema==j;if(U.schema!=t.schema)return uc.call(r,j,U,te,oe);var ve=j.$async===!0,ue=vm({isTop:!0,schema:j,isRoot:Ee,baseId:oe,root:U,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:ym.MissingRef,RULES:E,validate:vm,util:Os,resolve:Ps,resolveRef:R,usePattern:re,useDefault:G,useCustomRule:J,opts:i,formats:P,logger:r.logger,self:r});ue=Cs(s,TT)+Cs(c,OT)+Cs(f,ST)+Cs(h,AT)+ue,i.processCode&&(ue=i.processCode(ue,j));var ie;try{var ge=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",ue);ie=ge(r,E,P,t,s,f,h,bT,yT,ET),s[0]=ie}catch(He){throw r.logger.error("Error compiling schema, function code:",ue),He}return ie.schema=j,ie.errors=null,ie.refs=l,ie.refVal=s,ie.root=Ee?ie:U,ve&&(ie.$async=!0),i.sourceCode===!0&&(ie.source={code:ue,patterns:c,defaults:f}),ie}o(V,"localCompile");function R(j,U,te){U=Ps.url(j,U);var oe=l[U],Ee,ve;if(oe!==void 0)return Ee=s[oe],ve="refVal["+oe+"]",B(Ee,ve);if(!te&&t.refs){var ue=t.refs[U];if(ue!==void 0)return Ee=t.refVal[ue],ve=M(U,Ee),B(Ee,ve)}ve=M(U);var ie=Ps.call(r,V,t,U);if(ie===void 0){var ge=n&&n[U];ge&&(ie=Ps.inlineRef(ge,i.inlineRefs)?ge:uc.call(r,ge,t,n,j))}if(ie===void 0)ae(U);else return O(U,ie),B(ie,ve)}o(R,"resolveRef");function M(j,U){var te=s.length;return s[te]=U,l[j]=te,"refVal"+te}o(M,"addLocalRef");function ae(j){delete l[j]}o(ae,"removeLocalRef");function O(j,U){var te=l[j];s[te]=U}o(O,"replaceLocalRef");function B(j,U){return typeof j=="object"||typeof j=="boolean"?{code:U,schema:j,inline:!0}:{code:U,$async:j&&!!j.$async}}o(B,"resolvedRef");function re(j){var U=u[j];return U===void 0&&(U=u[j]=c.length,c[U]=j),"pattern"+U}o(re,"usePattern");function G(j){switch(typeof j){case"boolean":case"number":return""+j;case"string":return Os.toQuotedString(j);case"object":if(j===null)return"null";var U=vT(j),te=d[U];return te===void 0&&(te=d[U]=f.length,f[te]=j),"default"+te}}o(G,"useDefault");function J(j,U,te,oe){if(r._opts.validateSchema!==!1){var Ee=j.definition.dependencies;if(Ee&&!Ee.every(function(y){return Object.prototype.hasOwnProperty.call(te,y)}))throw new Error("parent schema must have all required keywords: "+Ee.join(","));var ve=j.definition.validateSchema;if(ve){var ue=ve(U);if(!ue){var ie="keyword schema is invalid: "+r.errorsText(ve.errors);if(r._opts.validateSchema=="log")r.logger.error(ie);else throw new Error(ie)}}}var ge=j.definition.compile,He=j.definition.inline,rt=j.definition.macro,ce;if(ge)ce=ge.call(r,U,te,oe);else if(rt)ce=rt.call(r,U,te,oe),i.validateSchema!==!1&&r.validateSchema(ce,!0);else if(He)ce=He.call(r,oe,j.keyword,U,te);else if(ce=j.definition.validate,!ce)return;if(ce===void 0)throw new Error('custom keyword "'+j.keyword+'"failed to compile');var ze=h.length;return h[ze]=ce,{code:"customRule"+ze,validate:ce}}o(J,"useCustomRule")}o(uc,"compile");function PT(e,t,n){var a=bm.call(this,e,t,n);return a>=0?{index:a,compiling:!0}:(a=this._compilations.length,this._compilations[a]={schema:e,root:t,baseId:n},{index:a,compiling:!1})}o(PT,"checkCompiling");function CT(e,t,n){var a=bm.call(this,e,t,n);a>=0&&this._compilations.splice(a,1)}o(CT,"endCompiling");function bm(e,t,n){for(var a=0;a<this._compilations.length;a++){var r=this._compilations[a];if(r.schema==e&&r.root==t&&r.baseId==n)return a}return-1}o(bm,"compIndex");function OT(e,t){return"var pattern"+e+" = new RegExp("+Os.toQuotedString(t[e])+");"}o(OT,"patternCode");function ST(e){return"var default"+e+" = defaults["+e+"];"}o(ST,"defaultCode");function TT(e,t){return t[e]===void 0?"":"var refVal"+e+" = refVal["+e+"];"}o(TT,"refValCode");function AT(e){return"var customRule"+e+" = customRules["+e+"];"}o(AT,"customRuleCode");function Cs(e,t){if(!e.length)return"";for(var n="",a=0;a<e.length;a++)n+=t(a,e);return n}o(Cs,"vars")});var Om=z((rD,Cm)=>{"use strict";var Ss=Cm.exports=o(function(){this._cache={}},"Cache");Ss.prototype.put=o(function(t,n){this._cache[t]=n},"Cache_put");Ss.prototype.get=o(function(t){return this._cache[t]},"Cache_get");Ss.prototype.del=o(function(t){delete this._cache[t]},"Cache_del");Ss.prototype.clear=o(function(){this._cache={}},"Cache_clear")});var $m=z((nD,Lm)=>{"use strict";var xT=ia(),IT=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,FT=[0,31,28,31,30,31,30,31,31,30,31,30,31],_T=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Sm=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,DT=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,NT=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Tm=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,Am=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,xm=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Im=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Fm=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,_m=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;Lm.exports=Ts;function Ts(e){return e=e=="full"?"full":"fast",xT.copy(Ts[e])}o(Ts,"formats");Ts.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":Tm,url:Am,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:Sm,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:wm,uuid:xm,"json-pointer":Im,"json-pointer-uri-fragment":Fm,"relative-json-pointer":_m};Ts.full={date:Dm,time:Nm,"date-time":$T,uri:RT,"uri-reference":NT,"uri-template":Tm,url:Am,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:Sm,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:wm,uuid:xm,"json-pointer":Im,"json-pointer-uri-fragment":Fm,"relative-json-pointer":_m};function wT(e){return e%4===0&&(e%100!==0||e%400===0)}o(wT,"isLeapYear");function Dm(e){var t=e.match(IT);if(!t)return!1;var n=+t[1],a=+t[2],r=+t[3];return a>=1&&a<=12&&r>=1&&r<=(a==2&&wT(n)?29:FT[a])}o(Dm,"date");function Nm(e,t){var n=e.match(_T);if(!n)return!1;var a=n[1],r=n[2],i=n[3],s=n[5];return(a<=23&&r<=59&&i<=59||a==23&&r==59&&i==60)&&(!t||s)}o(Nm,"time");var LT=/t|\s/i;function $T(e){var t=e.split(LT);return t.length==2&&Dm(t[0])&&Nm(t[1],!0)}o($T,"date_time");var VT=/\/|:/;function RT(e){return VT.test(e)&&DT.test(e)}o(RT,"uri");var jT=/[^\\]\\Z/;function wm(e){if(jT.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}o(wm,"regex")});var Rm=z((aD,Vm)=>{"use strict";Vm.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.errSchemaPath+"/"+n,u=!t.opts.allErrors,f="data"+(s||""),d="valid"+i,h,p;if(l=="#"||l=="#/")t.isRoot?(h=t.async,p="validate"):(h=t.root.schema.$async===!0,p="root.refVal[0]");else{var m=t.resolveRef(t.baseId,l,t.isRoot);if(m===void 0){var P=t.MissingRefError.message(t.baseId,l);if(t.opts.missingRefs=="fail"){t.logger.error(P);var E=E||[];E.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(c)+" , params: { ref: '"+t.util.escapeQuotes(l)+"' } ",t.opts.messages!==!1&&(r+=" , message: 'can\\'t resolve reference "+t.util.escapeQuotes(l)+"' "),t.opts.verbose&&(r+=" , schema: "+t.util.toQuotedString(l)+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+f+" "),r+=" } "):r+=" {} ";var T=r;r=E.pop(),!t.compositeRule&&u?t.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(r+=" if (false) { ")}else if(t.opts.missingRefs=="ignore")t.logger.warn(P),u&&(r+=" if (true) { ");else throw new t.MissingRefError(t.baseId,l,P)}else if(m.inline){var w=t.util.copy(t);w.level++;var F="valid"+w.level;w.schema=m.schema,w.schemaPath="",w.errSchemaPath=l;var V=t.validate(w).replace(/validate\.schema/g,m.code);r+=" "+V+" ",u&&(r+=" if ("+F+") { ")}else h=m.$async===!0||t.async&&m.$async!==!1,p=m.code}if(p){var E=E||[];E.push(r),r="",t.opts.passContext?r+=" "+p+".call(this, ":r+=" "+p+"( ",r+=" "+f+", (dataPath || '')",t.errorPath!='""'&&(r+=" + "+t.errorPath);var R=s?"data"+(s-1||""):"parentData",M=s?t.dataPathArr[s]:"parentDataProperty";r+=" , "+R+" , "+M+", rootData) ";var ae=r;if(r=E.pop(),h){if(!t.async)throw new Error("async schema referenced by sync schema");u&&(r+=" var "+d+"; "),r+=" try { await "+ae+"; ",u&&(r+=" "+d+" = true; "),r+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(r+=" "+d+" = false; "),r+=" } ",u&&(r+=" if ("+d+") { ")}else r+=" if (!"+ae+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ",u&&(r+=" else { ")}return r},"generate_ref")});var Mm=z((iD,jm)=>{"use strict";jm.exports=o(function(t,n,a){var r=" ",i=t.schema[n],s=t.schemaPath+t.util.getProperty(n),l=t.errSchemaPath+"/"+n,c=!t.opts.allErrors,u=t.util.copy(t),f="";u.level++;var d="valid"+u.level,h=u.baseId,p=!0,m=i;if(m)for(var P,E=-1,T=m.length-1;E<T;)P=m[E+=1],(t.opts.strictKeywords?typeof P=="object"&&Object.keys(P).length>0||P===!1:t.util.schemaHasRules(P,t.RULES.all))&&(p=!1,u.schema=P,u.schemaPath=s+"["+E+"]",u.errSchemaPath=l+"/"+E,r+=" "+t.validate(u)+" ",u.baseId=h,c&&(r+=" if ("+d+") { ",f+="}"));return c&&(p?r+=" if (true) { ":r+=" "+f.slice(0,-1)+" "),r},"generate_allOf")});var km=z((oD,Um)=>{"use strict";Um.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="valid"+i,p="errs__"+i,m=t.util.copy(t),P="";m.level++;var E="valid"+m.level,T=l.every(function(O){return t.opts.strictKeywords?typeof O=="object"&&Object.keys(O).length>0||O===!1:t.util.schemaHasRules(O,t.RULES.all)});if(T){var w=m.baseId;r+=" var "+p+" = errors; var "+h+" = false; ";var F=t.compositeRule;t.compositeRule=m.compositeRule=!0;var V=l;if(V)for(var R,M=-1,ae=V.length-1;M<ae;)R=V[M+=1],m.schema=R,m.schemaPath=c+"["+M+"]",m.errSchemaPath=u+"/"+M,r+=" "+t.validate(m)+" ",m.baseId=w,r+=" "+h+" = "+h+" || "+E+"; if (!"+h+") { ",P+="}";t.compositeRule=m.compositeRule=F,r+=" "+P+" if (!"+h+") { var err = ",t.createErrors!==!1?(r+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(r+=" , message: 'should match some schema in anyOf' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&f&&(t.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",t.opts.allErrors&&(r+=" } ")}else f&&(r+=" if (true) { ");return r},"generate_anyOf")});var Gm=z((sD,Bm)=>{"use strict";Bm.exports=o(function(t,n,a){var r=" ",i=t.schema[n],s=t.errSchemaPath+"/"+n,l=!t.opts.allErrors,c=t.util.toQuotedString(i);return t.opts.$comment===!0?r+=" console.log("+c+");":typeof t.opts.$comment=="function"&&(r+=" self._opts.$comment("+c+", "+t.util.toQuotedString(s)+", validate.root.schema);"),r},"generate_comment")});var Qm=z((lD,Hm)=>{"use strict";Hm.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="valid"+i,p=t.opts.$data&&l&&l.$data,m;p?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",m="schema"+i):m=l,p||(r+=" var schema"+i+" = validate.schema"+c+";"),r+="var "+h+" = equal("+d+", schema"+i+"); if (!"+h+") { ";var P=P||[];P.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'const' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { allowedValue: schema"+i+" } ",t.opts.messages!==!1&&(r+=" , message: 'should be equal to constant' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var E=r;return r=P.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",f&&(r+=" else { "),r},"generate_const")});var Km=z((cD,qm)=>{"use strict";qm.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="valid"+i,p="errs__"+i,m=t.util.copy(t),P="";m.level++;var E="valid"+m.level,T="i"+i,w=m.dataLevel=t.dataLevel+1,F="data"+w,V=t.baseId,R=t.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:t.util.schemaHasRules(l,t.RULES.all);if(r+="var "+p+" = errors;var "+h+";",R){var M=t.compositeRule;t.compositeRule=m.compositeRule=!0,m.schema=l,m.schemaPath=c,m.errSchemaPath=u,r+=" var "+E+" = false; for (var "+T+" = 0; "+T+" < "+d+".length; "+T+"++) { ",m.errorPath=t.util.getPathExpr(t.errorPath,T,t.opts.jsonPointers,!0);var ae=d+"["+T+"]";m.dataPathArr[w]=T;var O=t.validate(m);m.baseId=V,t.util.varOccurences(O,F)<2?r+=" "+t.util.varReplace(O,F,ae)+" ":r+=" var "+F+" = "+ae+"; "+O+" ",r+=" if ("+E+") break; } ",t.compositeRule=m.compositeRule=M,r+=" "+P+" if (!"+E+") {"}else r+=" if ("+d+".length == 0) {";var B=B||[];B.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(r+=" , message: 'should contain a valid item' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var re=r;return r=B.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+re+"]); ":r+=" validate.errors = ["+re+"]; return false; ":r+=" var err = "+re+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { ",R&&(r+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),t.opts.allErrors&&(r+=" } "),r},"generate_contains")});var Wm=z((uD,Jm)=>{"use strict";Jm.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="errs__"+i,p=t.util.copy(t),m="";p.level++;var P="valid"+p.level,E={},T={},w=t.opts.ownProperties;for(M in l)if(M!="__proto__"){var F=l[M],V=Array.isArray(F)?T:E;V[M]=F}r+="var "+h+" = errors;";var R=t.errorPath;r+="var missing"+i+";";for(var M in T)if(V=T[M],V.length){if(r+=" if ( "+d+t.util.getProperty(M)+" !== undefined ",w&&(r+=" && Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(M)+"') "),f){r+=" && ( ";var ae=V;if(ae)for(var O,B=-1,re=ae.length-1;B<re;){O=ae[B+=1],B&&(r+=" || ");var G=t.util.getProperty(O),J=d+G;r+=" ( ( "+J+" === undefined ",w&&(r+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(O)+"') "),r+=") && (missing"+i+" = "+t.util.toQuotedString(t.opts.jsonPointers?O:G)+") ) "}r+=")) { ";var j="missing"+i,U="' + "+j+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.opts.jsonPointers?t.util.getPathExpr(R,j,!0):R+" + "+j);var te=te||[];te.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { property: '"+t.util.escapeQuotes(M)+"', missingProperty: '"+U+"', depsCount: "+V.length+", deps: '"+t.util.escapeQuotes(V.length==1?V[0]:V.join(", "))+"' } ",t.opts.messages!==!1&&(r+=" , message: 'should have ",V.length==1?r+="property "+t.util.escapeQuotes(V[0]):r+="properties "+t.util.escapeQuotes(V.join(", ")),r+=" when property "+t.util.escapeQuotes(M)+" is present' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var oe=r;r=te.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+oe+"]); ":r+=" validate.errors = ["+oe+"]; return false; ":r+=" var err = "+oe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{r+=" ) { ";var Ee=V;if(Ee)for(var O,ve=-1,ue=Ee.length-1;ve<ue;){O=Ee[ve+=1];var G=t.util.getProperty(O),U=t.util.escapeQuotes(O),J=d+G;t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(R,O,t.opts.jsonPointers)),r+=" if ( "+J+" === undefined ",w&&(r+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(O)+"') "),r+=") { var err = ",t.createErrors!==!1?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { property: '"+t.util.escapeQuotes(M)+"', missingProperty: '"+U+"', depsCount: "+V.length+", deps: '"+t.util.escapeQuotes(V.length==1?V[0]:V.join(", "))+"' } ",t.opts.messages!==!1&&(r+=" , message: 'should have ",V.length==1?r+="property "+t.util.escapeQuotes(V[0]):r+="properties "+t.util.escapeQuotes(V.join(", ")),r+=" when property "+t.util.escapeQuotes(M)+" is present' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}r+=" } ",f&&(m+="}",r+=" else { ")}t.errorPath=R;var ie=p.baseId;for(var M in E){var F=E[M];(t.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===!1:t.util.schemaHasRules(F,t.RULES.all))&&(r+=" "+P+" = true; if ( "+d+t.util.getProperty(M)+" !== undefined ",w&&(r+=" && Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(M)+"') "),r+=") { ",p.schema=F,p.schemaPath=c+t.util.getProperty(M),p.errSchemaPath=u+"/"+t.util.escapeFragment(M),r+=" "+t.validate(p)+" ",p.baseId=ie,r+=" } ",f&&(r+=" if ("+P+") { ",m+="}"))}return f&&(r+=" "+m+" if ("+h+" == errors) {"),r},"generate_dependencies")});var Xm=z((fD,zm)=>{"use strict";zm.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="valid"+i,p=t.opts.$data&&l&&l.$data,m;p?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",m="schema"+i):m=l;var P="i"+i,E="schema"+i;p||(r+=" var "+E+" = validate.schema"+c+";"),r+="var "+h+";",p&&(r+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),r+=""+h+" = false;for (var "+P+"=0; "+P+"<"+E+".length; "+P+"++) if (equal("+d+", "+E+"["+P+"])) { "+h+" = true; break; }",p&&(r+=" } "),r+=" if (!"+h+") { ";var T=T||[];T.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { allowedValues: schema"+i+" } ",t.opts.messages!==!1&&(r+=" , message: 'should be equal to one of the allowed values' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var w=r;return r=T.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",f&&(r+=" else { "),r},"generate_enum")});var Zm=z((pD,Ym)=>{"use strict";Ym.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||"");if(t.opts.format===!1)return f&&(r+=" if (true) { "),r;var h=t.opts.$data&&l&&l.$data,p;h?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",p="schema"+i):p=l;var m=t.opts.unknownFormats,P=Array.isArray(m);if(h){var E="format"+i,T="isObject"+i,w="formatType"+i;r+=" var "+E+" = formats["+p+"]; var "+T+" = typeof "+E+" == 'object' && !("+E+" instanceof RegExp) && "+E+".validate; var "+w+" = "+T+" && "+E+".type || 'string'; if ("+T+") { ",t.async&&(r+=" var async"+i+" = "+E+".async; "),r+=" "+E+" = "+E+".validate; } if ( ",h&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),r+=" (",m!="ignore"&&(r+=" ("+p+" && !"+E+" ",P&&(r+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),r+=") || "),r+=" ("+E+" && "+w+" == '"+a+"' && !(typeof "+E+" == 'function' ? ",t.async?r+=" (async"+i+" ? await "+E+"("+d+") : "+E+"("+d+")) ":r+=" "+E+"("+d+") ",r+=" : "+E+".test("+d+"))))) {"}else{var E=t.formats[l];if(!E){if(m=="ignore")return t.logger.warn('unknown format "'+l+'" ignored in schema at path "'+t.errSchemaPath+'"'),f&&(r+=" if (true) { "),r;if(P&&m.indexOf(l)>=0)return f&&(r+=" if (true) { "),r;throw new Error('unknown format "'+l+'" is used in schema at path "'+t.errSchemaPath+'"')}var T=typeof E=="object"&&!(E instanceof RegExp)&&E.validate,w=T&&E.type||"string";if(T){var F=E.async===!0;E=E.validate}if(w!=a)return f&&(r+=" if (true) { "),r;if(F){if(!t.async)throw new Error("async format in sync schema");var V="formats"+t.util.getProperty(l)+".validate";r+=" if (!(await "+V+"("+d+"))) { "}else{r+=" if (! ";var V="formats"+t.util.getProperty(l);T&&(V+=".validate"),typeof E=="function"?r+=" "+V+"("+d+") ":r+=" "+V+".test("+d+") ",r+=") { "}}var R=R||[];R.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'format' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { format: ",h?r+=""+p:r+=""+t.util.toQuotedString(l),r+=" } ",t.opts.messages!==!1&&(r+=` , message: 'should match format "`,h?r+="' + "+p+" + '":r+=""+t.util.escapeQuotes(l),r+=`"' `),t.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+c:r+=""+t.util.toQuotedString(l),r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var M=r;return r=R.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+M+"]); ":r+=" validate.errors = ["+M+"]; return false; ":r+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",f&&(r+=" else { "),r},"generate_format")});var th=z((dD,eh)=>{"use strict";eh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="valid"+i,p="errs__"+i,m=t.util.copy(t);m.level++;var P="valid"+m.level,E=t.schema.then,T=t.schema.else,w=E!==void 0&&(t.opts.strictKeywords?typeof E=="object"&&Object.keys(E).length>0||E===!1:t.util.schemaHasRules(E,t.RULES.all)),F=T!==void 0&&(t.opts.strictKeywords?typeof T=="object"&&Object.keys(T).length>0||T===!1:t.util.schemaHasRules(T,t.RULES.all)),V=m.baseId;if(w||F){var R;m.createErrors=!1,m.schema=l,m.schemaPath=c,m.errSchemaPath=u,r+=" var "+p+" = errors; var "+h+" = true; ";var M=t.compositeRule;t.compositeRule=m.compositeRule=!0,r+=" "+t.validate(m)+" ",m.baseId=V,m.createErrors=!0,r+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",t.compositeRule=m.compositeRule=M,w?(r+=" if ("+P+") { ",m.schema=t.schema.then,m.schemaPath=t.schemaPath+".then",m.errSchemaPath=t.errSchemaPath+"/then",r+=" "+t.validate(m)+" ",m.baseId=V,r+=" "+h+" = "+P+"; ",w&&F?(R="ifClause"+i,r+=" var "+R+" = 'then'; "):R="'then'",r+=" } ",F&&(r+=" else { ")):r+=" if (!"+P+") { ",F&&(m.schema=t.schema.else,m.schemaPath=t.schemaPath+".else",m.errSchemaPath=t.errSchemaPath+"/else",r+=" "+t.validate(m)+" ",m.baseId=V,r+=" "+h+" = "+P+"; ",w&&F?(R="ifClause"+i,r+=" var "+R+" = 'else'; "):R="'else'",r+=" } "),r+=" if (!"+h+") { var err = ",t.createErrors!==!1?(r+=" { keyword: 'if' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { failingKeyword: "+R+" } ",t.opts.messages!==!1&&(r+=` , message: 'should match "' + `+R+` + '" schema' `),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&f&&(t.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } ",f&&(r+=" else { ")}else f&&(r+=" if (true) { ");return r},"generate_if")});var nh=z((gD,rh)=>{"use strict";rh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="valid"+i,p="errs__"+i,m=t.util.copy(t),P="";m.level++;var E="valid"+m.level,T="i"+i,w=m.dataLevel=t.dataLevel+1,F="data"+w,V=t.baseId;if(r+="var "+p+" = errors;var "+h+";",Array.isArray(l)){var R=t.schema.additionalItems;if(R===!1){r+=" "+h+" = "+d+".length <= "+l.length+"; ";var M=u;u=t.errSchemaPath+"/additionalItems",r+=" if (!"+h+") { ";var ae=ae||[];ae.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { limit: "+l.length+" } ",t.opts.messages!==!1&&(r+=" , message: 'should NOT have more than "+l.length+" items' "),t.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var O=r;r=ae.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+O+"]); ":r+=" validate.errors = ["+O+"]; return false; ":r+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",u=M,f&&(P+="}",r+=" else { ")}var B=l;if(B){for(var re,G=-1,J=B.length-1;G<J;)if(re=B[G+=1],t.opts.strictKeywords?typeof re=="object"&&Object.keys(re).length>0||re===!1:t.util.schemaHasRules(re,t.RULES.all)){r+=" "+E+" = true; if ("+d+".length > "+G+") { ";var j=d+"["+G+"]";m.schema=re,m.schemaPath=c+"["+G+"]",m.errSchemaPath=u+"/"+G,m.errorPath=t.util.getPathExpr(t.errorPath,G,t.opts.jsonPointers,!0),m.dataPathArr[w]=G;var U=t.validate(m);m.baseId=V,t.util.varOccurences(U,F)<2?r+=" "+t.util.varReplace(U,F,j)+" ":r+=" var "+F+" = "+j+"; "+U+" ",r+=" } ",f&&(r+=" if ("+E+") { ",P+="}")}}if(typeof R=="object"&&(t.opts.strictKeywords?typeof R=="object"&&Object.keys(R).length>0||R===!1:t.util.schemaHasRules(R,t.RULES.all))){m.schema=R,m.schemaPath=t.schemaPath+".additionalItems",m.errSchemaPath=t.errSchemaPath+"/additionalItems",r+=" "+E+" = true; if ("+d+".length > "+l.length+") { for (var "+T+" = "+l.length+"; "+T+" < "+d+".length; "+T+"++) { ",m.errorPath=t.util.getPathExpr(t.errorPath,T,t.opts.jsonPointers,!0);var j=d+"["+T+"]";m.dataPathArr[w]=T;var U=t.validate(m);m.baseId=V,t.util.varOccurences(U,F)<2?r+=" "+t.util.varReplace(U,F,j)+" ":r+=" var "+F+" = "+j+"; "+U+" ",f&&(r+=" if (!"+E+") break; "),r+=" } } ",f&&(r+=" if ("+E+") { ",P+="}")}}else if(t.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:t.util.schemaHasRules(l,t.RULES.all)){m.schema=l,m.schemaPath=c,m.errSchemaPath=u,r+=" for (var "+T+" = "+0+"; "+T+" < "+d+".length; "+T+"++) { ",m.errorPath=t.util.getPathExpr(t.errorPath,T,t.opts.jsonPointers,!0);var j=d+"["+T+"]";m.dataPathArr[w]=T;var U=t.validate(m);m.baseId=V,t.util.varOccurences(U,F)<2?r+=" "+t.util.varReplace(U,F,j)+" ":r+=" var "+F+" = "+j+"; "+U+" ",f&&(r+=" if (!"+E+") break; "),r+=" }"}return f&&(r+=" "+P+" if ("+p+" == errors) {"),r},"generate_items")});var fc=z((mD,ah)=>{"use strict";ah.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,V,d="data"+(s||""),h=t.opts.$data&&l&&l.$data,p;h?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",p="schema"+i):p=l;var m=n=="maximum",P=m?"exclusiveMaximum":"exclusiveMinimum",E=t.schema[P],T=t.opts.$data&&E&&E.$data,w=m?"<":">",F=m?">":"<",V=void 0;if(!(h||typeof l=="number"||l===void 0))throw new Error(n+" must be number");if(!(T||E===void 0||typeof E=="number"||typeof E=="boolean"))throw new Error(P+" must be number or boolean");if(T){var R=t.util.getData(E.$data,s,t.dataPathArr),M="exclusive"+i,ae="exclType"+i,O="exclIsNumber"+i,B="op"+i,re="' + "+B+" + '";r+=" var schemaExcl"+i+" = "+R+"; ",R="schemaExcl"+i,r+=" var "+M+"; var "+ae+" = typeof "+R+"; if ("+ae+" != 'boolean' && "+ae+" != 'undefined' && "+ae+" != 'number') { ";var V=P,G=G||[];G.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(V||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(r+=" , message: '"+P+" should be boolean' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var J=r;r=G.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+J+"]); ":r+=" validate.errors = ["+J+"]; return false; ":r+=" var err = "+J+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else if ( ",h&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" "+ae+" == 'number' ? ( ("+M+" = "+p+" === undefined || "+R+" "+w+"= "+p+") ? "+d+" "+F+"= "+R+" : "+d+" "+F+" "+p+" ) : ( ("+M+" = "+R+" === true) ? "+d+" "+F+"= "+p+" : "+d+" "+F+" "+p+" ) || "+d+" !== "+d+") { var op"+i+" = "+M+" ? '"+w+"' : '"+w+"='; ",l===void 0&&(V=P,u=t.errSchemaPath+"/"+P,p=R,h=T)}else{var O=typeof E=="number",re=w;if(O&&h){var B="'"+re+"'";r+=" if ( ",h&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" ( "+p+" === undefined || "+E+" "+w+"= "+p+" ? "+d+" "+F+"= "+E+" : "+d+" "+F+" "+p+" ) || "+d+" !== "+d+") { "}else{O&&l===void 0?(M=!0,V=P,u=t.errSchemaPath+"/"+P,p=E,F+="="):(O&&(p=Math[m?"min":"max"](E,l)),E===(O?p:!0)?(M=!0,V=P,u=t.errSchemaPath+"/"+P,F+="="):(M=!1,re+="="));var B="'"+re+"'";r+=" if ( ",h&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" "+d+" "+F+" "+p+" || "+d+" !== "+d+") { "}}V=V||n;var G=G||[];G.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(V||"_limit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { comparison: "+B+", limit: "+p+", exclusive: "+M+" } ",t.opts.messages!==!1&&(r+=" , message: 'should be "+re+" ",h?r+="' + "+p:r+=""+p+"'"),t.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+c:r+=""+l,r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var J=r;return r=G.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+J+"]); ":r+=" validate.errors = ["+J+"]; return false; ":r+=" var err = "+J+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",f&&(r+=" else { "),r},"generate__limit")});var pc=z((hD,ih)=>{"use strict";ih.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,P,d="data"+(s||""),h=t.opts.$data&&l&&l.$data,p;if(h?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",p="schema"+i):p=l,!(h||typeof l=="number"))throw new Error(n+" must be number");var m=n=="maxItems"?">":"<";r+="if ( ",h&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" "+d+".length "+m+" "+p+") { ";var P=n,E=E||[];E.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(P||"_limitItems")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { limit: "+p+" } ",t.opts.messages!==!1&&(r+=" , message: 'should NOT have ",n=="maxItems"?r+="more":r+="fewer",r+=" than ",h?r+="' + "+p+" + '":r+=""+l,r+=" items' "),t.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+c:r+=""+l,r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var T=r;return r=E.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",f&&(r+=" else { "),r},"generate__limitItems")});var dc=z((vD,oh)=>{"use strict";oh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,P,d="data"+(s||""),h=t.opts.$data&&l&&l.$data,p;if(h?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",p="schema"+i):p=l,!(h||typeof l=="number"))throw new Error(n+" must be number");var m=n=="maxLength"?">":"<";r+="if ( ",h&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),t.opts.unicode===!1?r+=" "+d+".length ":r+=" ucs2length("+d+") ",r+=" "+m+" "+p+") { ";var P=n,E=E||[];E.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(P||"_limitLength")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { limit: "+p+" } ",t.opts.messages!==!1&&(r+=" , message: 'should NOT be ",n=="maxLength"?r+="longer":r+="shorter",r+=" than ",h?r+="' + "+p+" + '":r+=""+l,r+=" characters' "),t.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+c:r+=""+l,r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var T=r;return r=E.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",f&&(r+=" else { "),r},"generate__limitLength")});var gc=z((yD,sh)=>{"use strict";sh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,P,d="data"+(s||""),h=t.opts.$data&&l&&l.$data,p;if(h?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",p="schema"+i):p=l,!(h||typeof l=="number"))throw new Error(n+" must be number");var m=n=="maxProperties"?">":"<";r+="if ( ",h&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" Object.keys("+d+").length "+m+" "+p+") { ";var P=n,E=E||[];E.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(P||"_limitProperties")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { limit: "+p+" } ",t.opts.messages!==!1&&(r+=" , message: 'should NOT have ",n=="maxProperties"?r+="more":r+="fewer",r+=" than ",h?r+="' + "+p+" + '":r+=""+l,r+=" properties' "),t.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+c:r+=""+l,r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var T=r;return r=E.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",f&&(r+=" else { "),r},"generate__limitProperties")});var ch=z((bD,lh)=>{"use strict";lh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h=t.opts.$data&&l&&l.$data,p;if(h?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",p="schema"+i):p=l,!(h||typeof l=="number"))throw new Error(n+" must be number");r+="var division"+i+";if (",h&&(r+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "),r+=" (division"+i+" = "+d+" / "+p+", ",t.opts.multipleOfPrecision?r+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+t.opts.multipleOfPrecision+" ":r+=" division"+i+" !== parseInt(division"+i+") ",r+=" ) ",h&&(r+=" ) "),r+=" ) { ";var m=m||[];m.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { multipleOf: "+p+" } ",t.opts.messages!==!1&&(r+=" , message: 'should be multiple of ",h?r+="' + "+p:r+=""+p+"'"),t.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+c:r+=""+l,r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var P=r;return r=m.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+P+"]); ":r+=" validate.errors = ["+P+"]; return false; ":r+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",f&&(r+=" else { "),r},"generate_multipleOf")});var fh=z((ED,uh)=>{"use strict";uh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="errs__"+i,p=t.util.copy(t);p.level++;var m="valid"+p.level;if(t.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:t.util.schemaHasRules(l,t.RULES.all)){p.schema=l,p.schemaPath=c,p.errSchemaPath=u,r+=" var "+h+" = errors; ";var P=t.compositeRule;t.compositeRule=p.compositeRule=!0,p.createErrors=!1;var E;p.opts.allErrors&&(E=p.opts.allErrors,p.opts.allErrors=!1),r+=" "+t.validate(p)+" ",p.createErrors=!0,E&&(p.opts.allErrors=E),t.compositeRule=p.compositeRule=P,r+=" if ("+m+") { ";var T=T||[];T.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(r+=" , message: 'should NOT be valid' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var w=r;r=T.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",t.opts.allErrors&&(r+=" } ")}else r+=" var err = ",t.createErrors!==!1?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(r+=" , message: 'should NOT be valid' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",f&&(r+=" if (false) { ");return r},"generate_not")});var dh=z((PD,ph)=>{"use strict";ph.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="valid"+i,p="errs__"+i,m=t.util.copy(t),P="";m.level++;var E="valid"+m.level,T=m.baseId,w="prevValid"+i,F="passingSchemas"+i;r+="var "+p+" = errors , "+w+" = false , "+h+" = false , "+F+" = null; ";var V=t.compositeRule;t.compositeRule=m.compositeRule=!0;var R=l;if(R)for(var M,ae=-1,O=R.length-1;ae<O;)M=R[ae+=1],(t.opts.strictKeywords?typeof M=="object"&&Object.keys(M).length>0||M===!1:t.util.schemaHasRules(M,t.RULES.all))?(m.schema=M,m.schemaPath=c+"["+ae+"]",m.errSchemaPath=u+"/"+ae,r+=" "+t.validate(m)+" ",m.baseId=T):r+=" var "+E+" = true; ",ae&&(r+=" if ("+E+" && "+w+") { "+h+" = false; "+F+" = ["+F+", "+ae+"]; } else { ",P+="}"),r+=" if ("+E+") { "+h+" = "+w+" = true; "+F+" = "+ae+"; }";return t.compositeRule=m.compositeRule=V,r+=""+P+"if (!"+h+") { var err = ",t.createErrors!==!1?(r+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { passingSchemas: "+F+" } ",t.opts.messages!==!1&&(r+=" , message: 'should match exactly one schema in oneOf' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&f&&(t.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",t.opts.allErrors&&(r+=" } "),r},"generate_oneOf")});var mh=z((CD,gh)=>{"use strict";gh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h=t.opts.$data&&l&&l.$data,p;h?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",p="schema"+i):p=l;var m=h?"(new RegExp("+p+"))":t.usePattern(l);r+="if ( ",h&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),r+=" !"+m+".test("+d+") ) { ";var P=P||[];P.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { pattern: ",h?r+=""+p:r+=""+t.util.toQuotedString(l),r+=" } ",t.opts.messages!==!1&&(r+=` , message: 'should match pattern "`,h?r+="' + "+p+" + '":r+=""+t.util.escapeQuotes(l),r+=`"' `),t.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+c:r+=""+t.util.toQuotedString(l),r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var E=r;return r=P.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",f&&(r+=" else { "),r},"generate_pattern")});var vh=z((OD,hh)=>{"use strict";hh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="errs__"+i,p=t.util.copy(t),m="";p.level++;var P="valid"+p.level,E="key"+i,T="idx"+i,w=p.dataLevel=t.dataLevel+1,F="data"+w,V="dataProperties"+i,R=Object.keys(l||{}).filter(ve),M=t.schema.patternProperties||{},ae=Object.keys(M).filter(ve),O=t.schema.additionalProperties,B=R.length||ae.length,re=O===!1,G=typeof O=="object"&&Object.keys(O).length,J=t.opts.removeAdditional,j=re||G||J,U=t.opts.ownProperties,te=t.baseId,oe=t.schema.required;if(oe&&!(t.opts.$data&&oe.$data)&&oe.length<t.opts.loopRequired)var Ee=t.util.toHash(oe);function ve(K){return K!=="__proto__"}if(o(ve,"notProto"),r+="var "+h+" = errors;var "+P+" = true;",U&&(r+=" var "+V+" = undefined;"),j){if(U?r+=" "+V+" = "+V+" || Object.keys("+d+"); for (var "+T+"=0; "+T+"<"+V+".length; "+T+"++) { var "+E+" = "+V+"["+T+"]; ":r+=" for (var "+E+" in "+d+") { ",B){if(r+=" var isAdditional"+i+" = !(false ",R.length)if(R.length>8)r+=" || validate.schema"+c+".hasOwnProperty("+E+") ";else{var ue=R;if(ue)for(var ie,ge=-1,He=ue.length-1;ge<He;)ie=ue[ge+=1],r+=" || "+E+" == "+t.util.toQuotedString(ie)+" "}if(ae.length){var rt=ae;if(rt)for(var ce,ze=-1,y=rt.length-1;ze<y;)ce=rt[ze+=1],r+=" || "+t.usePattern(ce)+".test("+E+") "}r+=" ); if (isAdditional"+i+") { "}if(J=="all")r+=" delete "+d+"["+E+"]; ";else{var g=t.errorPath,L="' + "+E+" + '";if(t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(t.errorPath,E,t.opts.jsonPointers)),re)if(J)r+=" delete "+d+"["+E+"]; ";else{r+=" "+P+" = false; ";var x=u;u=t.errSchemaPath+"/additionalProperties";var pe=pe||[];pe.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { additionalProperty: '"+L+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is an invalid additional property":r+="should NOT have additional properties",r+="' "),t.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var me=r;r=pe.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+me+"]); ":r+=" validate.errors = ["+me+"]; return false; ":r+=" var err = "+me+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=x,f&&(r+=" break; ")}else if(G)if(J=="failing"){r+=" var "+h+" = errors; ";var Je=t.compositeRule;t.compositeRule=p.compositeRule=!0,p.schema=O,p.schemaPath=t.schemaPath+".additionalProperties",p.errSchemaPath=t.errSchemaPath+"/additionalProperties",p.errorPath=t.opts._errorDataPathProperty?t.errorPath:t.util.getPathExpr(t.errorPath,E,t.opts.jsonPointers);var je=d+"["+E+"]";p.dataPathArr[w]=E;var be=t.validate(p);p.baseId=te,t.util.varOccurences(be,F)<2?r+=" "+t.util.varReplace(be,F,je)+" ":r+=" var "+F+" = "+je+"; "+be+" ",r+=" if (!"+P+") { errors = "+h+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+d+"["+E+"]; } ",t.compositeRule=p.compositeRule=Je}else{p.schema=O,p.schemaPath=t.schemaPath+".additionalProperties",p.errSchemaPath=t.errSchemaPath+"/additionalProperties",p.errorPath=t.opts._errorDataPathProperty?t.errorPath:t.util.getPathExpr(t.errorPath,E,t.opts.jsonPointers);var je=d+"["+E+"]";p.dataPathArr[w]=E;var be=t.validate(p);p.baseId=te,t.util.varOccurences(be,F)<2?r+=" "+t.util.varReplace(be,F,je)+" ":r+=" var "+F+" = "+je+"; "+be+" ",f&&(r+=" if (!"+P+") break; ")}t.errorPath=g}B&&(r+=" } "),r+=" } ",f&&(r+=" if ("+P+") { ",m+="}")}var Lt=t.opts.useDefaults&&!t.compositeRule;if(R.length){var We=R;if(We)for(var ie,Ct=-1,Or=We.length-1;Ct<Or;){ie=We[Ct+=1];var nt=l[ie];if(t.opts.strictKeywords?typeof nt=="object"&&Object.keys(nt).length>0||nt===!1:t.util.schemaHasRules(nt,t.RULES.all)){var _t=t.util.getProperty(ie),je=d+_t,Ot=Lt&&nt.default!==void 0;p.schema=nt,p.schemaPath=c+_t,p.errSchemaPath=u+"/"+t.util.escapeFragment(ie),p.errorPath=t.util.getPath(t.errorPath,ie,t.opts.jsonPointers),p.dataPathArr[w]=t.util.toQuotedString(ie);var be=t.validate(p);if(p.baseId=te,t.util.varOccurences(be,F)<2){be=t.util.varReplace(be,F,je);var $t=je}else{var $t=F;r+=" var "+F+" = "+je+"; "}if(Ot)r+=" "+be+" ";else{if(Ee&&Ee[ie]){r+=" if ( "+$t+" === undefined ",U&&(r+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(ie)+"') "),r+=") { "+P+" = false; ";var g=t.errorPath,x=u,zt=t.util.escapeQuotes(ie);t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(g,ie,t.opts.jsonPointers)),u=t.errSchemaPath+"/required";var pe=pe||[];pe.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+zt+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+zt+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var me=r;r=pe.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+me+"]); ":r+=" validate.errors = ["+me+"]; return false; ":r+=" var err = "+me+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=x,t.errorPath=g,r+=" } else { "}else f?(r+=" if ( "+$t+" === undefined ",U&&(r+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(ie)+"') "),r+=") { "+P+" = true; } else { "):(r+=" if ("+$t+" !== undefined ",U&&(r+=" && Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(ie)+"') "),r+=" ) { ");r+=" "+be+" } "}}f&&(r+=" if ("+P+") { ",m+="}")}}if(ae.length){var I=ae;if(I)for(var ce,$=-1,k=I.length-1;$<k;){ce=I[$+=1];var nt=M[ce];if(t.opts.strictKeywords?typeof nt=="object"&&Object.keys(nt).length>0||nt===!1:t.util.schemaHasRules(nt,t.RULES.all)){p.schema=nt,p.schemaPath=t.schemaPath+".patternProperties"+t.util.getProperty(ce),p.errSchemaPath=t.errSchemaPath+"/patternProperties/"+t.util.escapeFragment(ce),U?r+=" "+V+" = "+V+" || Object.keys("+d+"); for (var "+T+"=0; "+T+"<"+V+".length; "+T+"++) { var "+E+" = "+V+"["+T+"]; ":r+=" for (var "+E+" in "+d+") { ",r+=" if ("+t.usePattern(ce)+".test("+E+")) { ",p.errorPath=t.util.getPathExpr(t.errorPath,E,t.opts.jsonPointers);var je=d+"["+E+"]";p.dataPathArr[w]=E;var be=t.validate(p);p.baseId=te,t.util.varOccurences(be,F)<2?r+=" "+t.util.varReplace(be,F,je)+" ":r+=" var "+F+" = "+je+"; "+be+" ",f&&(r+=" if (!"+P+") break; "),r+=" } ",f&&(r+=" else "+P+" = true; "),r+=" } ",f&&(r+=" if ("+P+") { ",m+="}")}}}return f&&(r+=" "+m+" if ("+h+" == errors) {"),r},"generate_properties")});var bh=z((SD,yh)=>{"use strict";yh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="errs__"+i,p=t.util.copy(t),m="";p.level++;var P="valid"+p.level;if(r+="var "+h+" = errors;",t.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:t.util.schemaHasRules(l,t.RULES.all)){p.schema=l,p.schemaPath=c,p.errSchemaPath=u;var E="key"+i,T="idx"+i,w="i"+i,F="' + "+E+" + '",V=p.dataLevel=t.dataLevel+1,R="data"+V,M="dataProperties"+i,ae=t.opts.ownProperties,O=t.baseId;ae&&(r+=" var "+M+" = undefined; "),ae?r+=" "+M+" = "+M+" || Object.keys("+d+"); for (var "+T+"=0; "+T+"<"+M+".length; "+T+"++) { var "+E+" = "+M+"["+T+"]; ":r+=" for (var "+E+" in "+d+") { ",r+=" var startErrs"+i+" = errors; ";var B=E,re=t.compositeRule;t.compositeRule=p.compositeRule=!0;var G=t.validate(p);p.baseId=O,t.util.varOccurences(G,R)<2?r+=" "+t.util.varReplace(G,R,B)+" ":r+=" var "+R+" = "+B+"; "+G+" ",t.compositeRule=p.compositeRule=re,r+=" if (!"+P+") { for (var "+w+"=startErrs"+i+"; "+w+"<errors; "+w+"++) { vErrors["+w+"].propertyName = "+E+"; } var err = ",t.createErrors!==!1?(r+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { propertyName: '"+F+"' } ",t.opts.messages!==!1&&(r+=" , message: 'property name \\'"+F+"\\' is invalid' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&f&&(t.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),f&&(r+=" break; "),r+=" } }"}return f&&(r+=" "+m+" if ("+h+" == errors) {"),r},"generate_propertyNames")});var Ph=z((TD,Eh)=>{"use strict";Eh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="valid"+i,p=t.opts.$data&&l&&l.$data,m;p?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",m="schema"+i):m=l;var P="schema"+i;if(!p)if(l.length<t.opts.loopRequired&&t.schema.properties&&Object.keys(t.schema.properties).length){var E=[],T=l;if(T)for(var w,F=-1,V=T.length-1;F<V;){w=T[F+=1];var R=t.schema.properties[w];R&&(t.opts.strictKeywords?typeof R=="object"&&Object.keys(R).length>0||R===!1:t.util.schemaHasRules(R,t.RULES.all))||(E[E.length]=w)}}else var E=l;if(p||E.length){var M=t.errorPath,ae=p||E.length>=t.opts.loopRequired,O=t.opts.ownProperties;if(f)if(r+=" var missing"+i+"; ",ae){p||(r+=" var "+P+" = validate.schema"+c+"; ");var B="i"+i,re="schema"+i+"["+B+"]",G="' + "+re+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(M,re,t.opts.jsonPointers)),r+=" var "+h+" = true; ",p&&(r+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),r+=" for (var "+B+" = 0; "+B+" < "+P+".length; "+B+"++) { "+h+" = "+d+"["+P+"["+B+"]] !== undefined ",O&&(r+=" && Object.prototype.hasOwnProperty.call("+d+", "+P+"["+B+"]) "),r+="; if (!"+h+") break; } ",p&&(r+=" } "),r+=" if (!"+h+") { ";var J=J||[];J.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+G+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+G+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var j=r;r=J.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+j+"]); ":r+=" validate.errors = ["+j+"]; return false; ":r+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else{r+=" if ( ";var U=E;if(U)for(var te,B=-1,oe=U.length-1;B<oe;){te=U[B+=1],B&&(r+=" || ");var Ee=t.util.getProperty(te),ve=d+Ee;r+=" ( ( "+ve+" === undefined ",O&&(r+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(te)+"') "),r+=") && (missing"+i+" = "+t.util.toQuotedString(t.opts.jsonPointers?te:Ee)+") ) "}r+=") { ";var re="missing"+i,G="' + "+re+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.opts.jsonPointers?t.util.getPathExpr(M,re,!0):M+" + "+re);var J=J||[];J.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+G+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+G+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var j=r;r=J.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+j+"]); ":r+=" validate.errors = ["+j+"]; return false; ":r+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else if(ae){p||(r+=" var "+P+" = validate.schema"+c+"; ");var B="i"+i,re="schema"+i+"["+B+"]",G="' + "+re+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(M,re,t.opts.jsonPointers)),p&&(r+=" if ("+P+" && !Array.isArray("+P+")) { var err = ",t.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+G+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+G+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+P+" !== undefined) { "),r+=" for (var "+B+" = 0; "+B+" < "+P+".length; "+B+"++) { if ("+d+"["+P+"["+B+"]] === undefined ",O&&(r+=" || ! Object.prototype.hasOwnProperty.call("+d+", "+P+"["+B+"]) "),r+=") { var err = ",t.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+G+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+G+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(r+=" } ")}else{var ue=E;if(ue)for(var te,ie=-1,ge=ue.length-1;ie<ge;){te=ue[ie+=1];var Ee=t.util.getProperty(te),G=t.util.escapeQuotes(te),ve=d+Ee;t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(M,te,t.opts.jsonPointers)),r+=" if ( "+ve+" === undefined ",O&&(r+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(te)+"') "),r+=") { var err = ",t.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+G+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+G+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}t.errorPath=M}else f&&(r+=" if (true) {");return r},"generate_required")});var Oh=z((AD,Ch)=>{"use strict";Ch.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="valid"+i,p=t.opts.$data&&l&&l.$data,m;if(p?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",m="schema"+i):m=l,(l||p)&&t.opts.uniqueItems!==!1){p&&(r+=" var "+h+"; if ("+m+" === false || "+m+" === undefined) "+h+" = true; else if (typeof "+m+" != 'boolean') "+h+" = false; else { "),r+=" var i = "+d+".length , "+h+" = true , j; if (i > 1) { ";var P=t.schema.items&&t.schema.items.type,E=Array.isArray(P);if(!P||P=="object"||P=="array"||E&&(P.indexOf("object")>=0||P.indexOf("array")>=0))r+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+h+" = false; break outer; } } } ";else{r+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var T="checkDataType"+(E?"s":"");r+=" if ("+t.util[T](P,"item",t.opts.strictNumbers,!0)+") continue; ",E&&(r+=` if (typeof item == 'string') item = '"' + item; `),r+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}r+=" } ",p&&(r+=" } "),r+=" if (!"+h+") { ";var w=w||[];w.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { i: i, j: j } ",t.opts.messages!==!1&&(r+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),t.opts.verbose&&(r+=" , schema: ",p?r+="validate.schema"+c:r+=""+l,r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var F=r;r=w.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+F+"]); ":r+=" validate.errors = ["+F+"]; return false; ":r+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",f&&(r+=" else { ")}else f&&(r+=" if (true) { ");return r},"generate_uniqueItems")});var Th=z((xD,Sh)=>{"use strict";Sh.exports={$ref:Rm(),allOf:Mm(),anyOf:km(),$comment:Gm(),const:Qm(),contains:Km(),dependencies:Wm(),enum:Xm(),format:Zm(),if:th(),items:nh(),maximum:fc(),minimum:fc(),maxItems:pc(),minItems:pc(),maxLength:dc(),minLength:dc(),maxProperties:gc(),minProperties:gc(),multipleOf:ch(),not:fh(),oneOf:dh(),pattern:mh(),properties:vh(),propertyNames:bh(),required:Ph(),uniqueItems:Oh(),validate:cc()}});var Ih=z((ID,xh)=>{"use strict";var Ah=Th(),mc=ia().toHash;xh.exports=o(function(){var t=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],n=["type","$comment"],a=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],r=["number","integer","string","array","object","boolean","null"];return t.all=mc(n),t.types=mc(r),t.forEach(function(i){i.rules=i.rules.map(function(s){var l;if(typeof s=="object"){var c=Object.keys(s)[0];l=s[c],s=c,l.forEach(function(f){n.push(f),t.all[f]=!0})}n.push(s);var u=t.all[s]={keyword:s,code:Ah[s],implements:l};return u}),t.all.$comment={keyword:"$comment",code:Ah.$comment},i.type&&(t.types[i.type]=i)}),t.keywords=mc(n.concat(a)),t.custom={},t},"rules")});var Dh=z((FD,_h)=>{"use strict";var Fh=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];_h.exports=function(e,t){for(var n=0;n<t.length;n++){e=JSON.parse(JSON.stringify(e));var a=t[n].split("/"),r=e,i;for(i=1;i<a.length;i++)r=r[a[i]];for(i=0;i<Fh.length;i++){var s=Fh[i],l=r[s];l&&(r[s]={anyOf:[l,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}});var Lh=z((_D,wh)=>{"use strict";var MT=Es().MissingRef;wh.exports=Nh;function Nh(e,t,n){var a=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof t=="function"&&(n=t,t=void 0);var r=i(e).then(function(){var l=a._addSchema(e,void 0,t);return l.validate||s(l)});return n&&r.then(function(l){n(null,l)},n),r;function i(l){var c=l.$schema;return c&&!a.getSchema(c)?Nh.call(a,{$ref:c},!0):Promise.resolve()}o(i,"loadMetaSchemaOf");function s(l){try{return a._compile(l)}catch(u){if(u instanceof MT)return c(u);throw u}function c(u){var f=u.missingSchema;if(p(f))throw new Error("Schema "+f+" is loaded but "+u.missingRef+" cannot be resolved");var d=a._loadingSchemas[f];return d||(d=a._loadingSchemas[f]=a._opts.loadSchema(f),d.then(h,h)),d.then(function(m){if(!p(f))return i(m).then(function(){p(f)||a.addSchema(m,f,void 0,t)})}).then(function(){return s(l)});function h(){delete a._loadingSchemas[f]}o(h,"removePromise");function p(m){return a._refs[m]||a._schemas[m]}o(p,"added")}o(c,"loadMissingSchema")}o(s,"_compileAsync")}o(Nh,"compileAsync")});var Vh=z((DD,$h)=>{"use strict";$h.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d,h="data"+(s||""),p="valid"+i,m="errs__"+i,P=t.opts.$data&&l&&l.$data,E;P?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",E="schema"+i):E=l;var T=this,w="definition"+i,F=T.definition,V="",R,M,ae,O,B;if(P&&F.$data){B="keywordValidate"+i;var re=F.validateSchema;r+=" var "+w+" = RULES.custom['"+n+"'].definition; var "+B+" = "+w+".validate;"}else{if(O=t.useCustomRule(T,l,t.schema,t),!O)return;E="validate.schema"+c,B=O.code,R=F.compile,M=F.inline,ae=F.macro}var G=B+".errors",J="i"+i,j="ruleErr"+i,U=F.async;if(U&&!t.async)throw new Error("async keyword in sync schema");if(M||ae||(r+=""+G+" = null;"),r+="var "+m+" = errors;var "+p+";",P&&F.$data&&(V+="}",r+=" if ("+E+" === undefined) { "+p+" = true; } else { ",re&&(V+="}",r+=" "+p+" = "+w+".validateSchema("+E+"); if ("+p+") { ")),M)F.statements?r+=" "+O.validate+" ":r+=" "+p+" = "+O.validate+"; ";else if(ae){var te=t.util.copy(t),V="";te.level++;var oe="valid"+te.level;te.schema=O.validate,te.schemaPath="";var Ee=t.compositeRule;t.compositeRule=te.compositeRule=!0;var ve=t.validate(te).replace(/validate\.schema/g,B);t.compositeRule=te.compositeRule=Ee,r+=" "+ve}else{var ue=ue||[];ue.push(r),r="",r+=" "+B+".call( ",t.opts.passContext?r+="this":r+="self",R||F.schema===!1?r+=" , "+h+" ":r+=" , "+E+" , "+h+" , validate.schema"+t.schemaPath+" ",r+=" , (dataPath || '')",t.errorPath!='""'&&(r+=" + "+t.errorPath);var ie=s?"data"+(s-1||""):"parentData",ge=s?t.dataPathArr[s]:"parentDataProperty";r+=" , "+ie+" , "+ge+" , rootData ) ";var He=r;r=ue.pop(),F.errors===!1?(r+=" "+p+" = ",U&&(r+="await "),r+=""+He+"; "):U?(G="customErrors"+i,r+=" var "+G+" = null; try { "+p+" = await "+He+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+G+" = e.errors; else throw e; } "):r+=" "+G+" = null; "+p+" = "+He+"; "}if(F.modifying&&(r+=" if ("+ie+") "+h+" = "+ie+"["+ge+"];"),r+=""+V,F.valid)f&&(r+=" if (true) { ");else{r+=" if ( ",F.valid===void 0?(r+=" !",ae?r+=""+oe:r+=""+p):r+=" "+!F.valid+" ",r+=") { ",d=T.keyword;var ue=ue||[];ue.push(r),r="";var ue=ue||[];ue.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(d||"custom")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { keyword: '"+T.keyword+"' } ",t.opts.messages!==!1&&(r+=` , message: 'should pass "`+T.keyword+`" keyword validation' `),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ";var rt=r;r=ue.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+rt+"]); ":r+=" validate.errors = ["+rt+"]; return false; ":r+=" var err = "+rt+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var ce=r;r=ue.pop(),M?F.errors?F.errors!="full"&&(r+=" for (var "+J+"="+m+"; "+J+"<errors; "+J+"++) { var "+j+" = vErrors["+J+"]; if ("+j+".dataPath === undefined) "+j+".dataPath = (dataPath || '') + "+t.errorPath+"; if ("+j+".schemaPath === undefined) { "+j+'.schemaPath = "'+u+'"; } ',t.opts.verbose&&(r+=" "+j+".schema = "+E+"; "+j+".data = "+h+"; "),r+=" } "):F.errors===!1?r+=" "+ce+" ":(r+=" if ("+m+" == errors) { "+ce+" } else { for (var "+J+"="+m+"; "+J+"<errors; "+J+"++) { var "+j+" = vErrors["+J+"]; if ("+j+".dataPath === undefined) "+j+".dataPath = (dataPath || '') + "+t.errorPath+"; if ("+j+".schemaPath === undefined) { "+j+'.schemaPath = "'+u+'"; } ',t.opts.verbose&&(r+=" "+j+".schema = "+E+"; "+j+".data = "+h+"; "),r+=" } } "):ae?(r+=" var err = ",t.createErrors!==!1?(r+=" { keyword: '"+(d||"custom")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { keyword: '"+T.keyword+"' } ",t.opts.messages!==!1&&(r+=` , message: 'should pass "`+T.keyword+`" keyword validation' `),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&f&&(t.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; ")):F.errors===!1?r+=" "+ce+" ":(r+=" if (Array.isArray("+G+")) { if (vErrors === null) vErrors = "+G+"; else vErrors = vErrors.concat("+G+"); errors = vErrors.length; for (var "+J+"="+m+"; "+J+"<errors; "+J+"++) { var "+j+" = vErrors["+J+"]; if ("+j+".dataPath === undefined) "+j+".dataPath = (dataPath || '') + "+t.errorPath+"; "+j+'.schemaPath = "'+u+'"; ',t.opts.verbose&&(r+=" "+j+".schema = "+E+"; "+j+".data = "+h+"; "),r+=" } } else { "+ce+" } "),r+=" } ",f&&(r+=" else { ")}return r},"generate_custom")});var hc=z((ND,UT)=>{UT.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Mh=z((wD,jh)=>{"use strict";var Rh=hc();jh.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:Rh.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:Rh.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var kh=z((LD,Uh)=>{"use strict";var kT=/^[a-z_$][a-z0-9_$-]*$/i,BT=Vh(),GT=Mh();Uh.exports={add:HT,get:QT,remove:qT,validate:vc};function HT(e,t){var n=this.RULES;if(n.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!kT.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var a=t.type;if(Array.isArray(a))for(var r=0;r<a.length;r++)s(e,a[r],t);else s(e,a,t);var i=t.metaSchema;i&&(t.$data&&this._opts.$data&&(i={anyOf:[i,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(i,!0))}n.keywords[e]=n.all[e]=!0;function s(l,c,u){for(var f,d=0;d<n.length;d++){var h=n[d];if(h.type==c){f=h;break}}f||(f={type:c,rules:[]},n.push(f));var p={keyword:l,definition:u,custom:!0,code:BT,implements:u.implements};f.rules.push(p),n.custom[l]=p}return o(s,"_addRule"),this}o(HT,"addKeyword");function QT(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1}o(QT,"getKeyword");function qT(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var n=0;n<t.length;n++)for(var a=t[n].rules,r=0;r<a.length;r++)if(a[r].keyword==e){a.splice(r,1);break}return this}o(qT,"removeKeyword");function vc(e,t){vc.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(GT,!0);if(n(e))return!0;if(vc.errors=n.errors,t)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}o(vc,"validateKeyword")});var Bh=z(($D,KT)=>{KT.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Yh=z((VD,Xh)=>{"use strict";var Hh=Pm(),oa=bs(),JT=Om(),Qh=rc(),WT=lc(),zT=$m(),XT=Ih(),qh=Dh(),Kh=ia();Xh.exports=dt;dt.prototype.validate=ZT;dt.prototype.compile=eA;dt.prototype.addSchema=tA;dt.prototype.addMetaSchema=rA;dt.prototype.validateSchema=nA;dt.prototype.getSchema=iA;dt.prototype.removeSchema=sA;dt.prototype.addFormat=mA;dt.prototype.errorsText=gA;dt.prototype._addSchema=lA;dt.prototype._compile=cA;dt.prototype.compileAsync=Lh();var Is=kh();dt.prototype.addKeyword=Is.add;dt.prototype.getKeyword=Is.get;dt.prototype.removeKeyword=Is.remove;dt.prototype.validateKeyword=Is.validate;var Jh=Es();dt.ValidationError=Jh.Validation;dt.MissingRefError=Jh.MissingRef;dt.$dataMetaSchema=qh;var xs="http://json-schema.org/draft-07/schema",Gh=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],YT=["/properties"];function dt(e){if(!(this instanceof dt))return new dt(e);e=this._opts=Kh.copy(e)||{},PA(this),this._schemas={},this._refs={},this._fragments={},this._formats=zT(e.format),this._cache=e.cache||new JT,this._loadingSchemas={},this._compilations=[],this.RULES=XT(),this._getId=uA(e),e.loopRequired=e.loopRequired||1/0,e.errorDataPath=="property"&&(e._errorDataPathProperty=!0),e.serialize===void 0&&(e.serialize=WT),this._metaOpts=EA(this),e.formats&&yA(this),e.keywords&&bA(this),hA(this),typeof e.meta=="object"&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),vA(this)}o(dt,"Ajv");function ZT(e,t){var n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error('no schema with key or ref "'+e+'"')}else{var a=this._addSchema(e);n=a.validate||this._compile(a)}var r=n(t);return n.$async!==!0&&(this.errors=n.errors),r}o(ZT,"validate");function eA(e,t){var n=this._addSchema(e,void 0,t);return n.validate||this._compile(n)}o(eA,"compile");function tA(e,t,n,a){if(Array.isArray(e)){for(var r=0;r<e.length;r++)this.addSchema(e[r],void 0,n,a);return this}var i=this._getId(e);if(i!==void 0&&typeof i!="string")throw new Error("schema id must be string");return t=oa.normalizeId(t||i),zh(this,t),this._schemas[t]=this._addSchema(e,n,a,!0),this}o(tA,"addSchema");function rA(e,t,n){return this.addSchema(e,t,n,!0),this}o(rA,"addMetaSchema");function nA(e,t){var n=e.$schema;if(n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this._opts.defaultMeta||aA(this),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var a=this.validate(n,e);if(!a&&t){var r="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(r);else throw new Error(r)}return a}o(nA,"validateSchema");function aA(e){var t=e._opts.meta;return e._opts.defaultMeta=typeof t=="object"?e._getId(t)||t:e.getSchema(xs)?xs:void 0,e._opts.defaultMeta}o(aA,"defaultMeta");function iA(e){var t=Wh(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return oA(this,e)}}o(iA,"getSchema");function oA(e,t){var n=oa.schema.call(e,{schema:{}},t);if(n){var a=n.schema,r=n.root,i=n.baseId,s=Hh.call(e,a,r,void 0,i);return e._fragments[t]=new Qh({ref:t,fragment:!0,schema:a,root:r,baseId:i,validate:s}),s}}o(oA,"_getSchemaFragment");function Wh(e,t){return t=oa.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}o(Wh,"_getSchemaObj");function sA(e){if(e instanceof RegExp)return As(this,this._schemas,e),As(this,this._refs,e),this;switch(typeof e){case"undefined":return As(this,this._schemas),As(this,this._refs),this._cache.clear(),this;case"string":var t=Wh(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var n=this._opts.serialize,a=n?n(e):e;this._cache.del(a);var r=this._getId(e);r&&(r=oa.normalizeId(r),delete this._schemas[r],delete this._refs[r])}return this}o(sA,"removeSchema");function As(e,t,n){for(var a in t){var r=t[a];!r.meta&&(!n||n.test(a))&&(e._cache.del(r.cacheKey),delete t[a])}}o(As,"_removeAllSchemas");function lA(e,t,n,a){if(typeof e!="object"&&typeof e!="boolean")throw new Error("schema should be object or boolean");var r=this._opts.serialize,i=r?r(e):e,s=this._cache.get(i);if(s)return s;a=a||this._opts.addUsedSchema!==!1;var l=oa.normalizeId(this._getId(e));l&&a&&zh(this,l);var c=this._opts.validateSchema!==!1&&!t,u;c&&!(u=l&&l==oa.normalizeId(e.$schema))&&this.validateSchema(e,!0);var f=oa.ids.call(this,e),d=new Qh({id:l,schema:e,localRefs:f,cacheKey:i,meta:n});return l[0]!="#"&&a&&(this._refs[l]=d),this._cache.put(i,d),c&&u&&this.validateSchema(e,!0),d}o(lA,"_addSchema");function cA(e,t){if(e.compiling)return e.validate=r,r.schema=e.schema,r.errors=null,r.root=t||r,e.schema.$async===!0&&(r.$async=!0),r;e.compiling=!0;var n;e.meta&&(n=this._opts,this._opts=this._metaOpts);var a;try{a=Hh.call(this,e.schema,t,e.localRefs)}catch(i){throw delete e.validate,i}finally{e.compiling=!1,e.meta&&(this._opts=n)}return e.validate=a,e.refs=a.refs,e.refVal=a.refVal,e.root=a.root,a;function r(){var i=e.validate,s=i.apply(this,arguments);return r.errors=i.errors,s}o(r,"callValidate")}o(cA,"_compile");function uA(e){switch(e.schemaId){case"auto":return dA;case"id":return fA;default:return pA}}o(uA,"chooseGetId");function fA(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}o(fA,"_getId");function pA(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}o(pA,"_get$Id");function dA(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}o(dA,"_get$IdOrId");function gA(e,t){if(e=e||this.errors,!e)return"No errors";t=t||{};for(var n=t.separator===void 0?", ":t.separator,a=t.dataVar===void 0?"data":t.dataVar,r="",i=0;i<e.length;i++){var s=e[i];s&&(r+=a+s.dataPath+" "+s.message+n)}return r.slice(0,-n.length)}o(gA,"errorsText");function mA(e,t){return typeof t=="string"&&(t=new RegExp(t)),this._formats[e]=t,this}o(mA,"addFormat");function hA(e){var t;if(e._opts.$data&&(t=Bh(),e.addMetaSchema(t,t.$id,!0)),e._opts.meta!==!1){var n=hc();e._opts.$data&&(n=qh(n,YT)),e.addMetaSchema(n,xs,!0),e._refs["http://json-schema.org/schema"]=xs}}o(hA,"addDefaultMetaSchema");function vA(e){var t=e._opts.schemas;if(!!t)if(Array.isArray(t))e.addSchema(t);else for(var n in t)e.addSchema(t[n],n)}o(vA,"addInitialSchemas");function yA(e){for(var t in e._opts.formats){var n=e._opts.formats[t];e.addFormat(t,n)}}o(yA,"addInitialFormats");function bA(e){for(var t in e._opts.keywords){var n=e._opts.keywords[t];e.addKeyword(t,n)}}o(bA,"addInitialKeywords");function zh(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}o(zh,"checkUnique");function EA(e){for(var t=Kh.copy(e._opts),n=0;n<Gh.length;n++)delete t[Gh[n]];return t}o(EA,"getMetaSchemaOptions");function PA(e){var t=e._opts.logger;if(t===!1)e.logger={log:yc,warn:yc,error:yc};else{if(t===void 0&&(t=console),!(typeof t=="object"&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}o(PA,"setLogger");function yc(){}o(yc,"noop")});var Fn={};Ri(Fn,{exportConfig:()=>FA,generateSchema:()=>IA,getApiVersion:()=>wA,getChanges:()=>iv,getGenericSchema:()=>as,getPathToGenericSchema:()=>Cg,getProject:()=>MA,importConfig:()=>_A,importProject:()=>DA,importProjectSchema:()=>NA,isDirectory:()=>$A,log:()=>Ie,readDirectory:()=>bc});var st=se(fe());var X=se(fe());function Tr(e){return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(e)}o(Tr,"_typeof");function Vs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}o(Vs,"_defineProperty");function pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&a.push.apply(a,Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),a.forEach(function(r){Vs(e,r,n[r])})}return e}o(pt,"_objectSpread");function Ar(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}o(Ar,"_classCallCheck");function uf(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}o(uf,"_defineProperties");function xr(e,t,n){return t&&uf(e.prototype,t),n&&uf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}o(xr,"_createClass");function Vr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}o(Vr,"_assertThisInitialized");function Ln(e,t){if(t&&(Tr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vr(e)}o(Ln,"_possibleConstructorReturn");function fn(e){return fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():o(function(n){return n.__proto__||Object.getPrototypeOf(n)},"_getPrototypeOf"),fn(e)}o(fn,"_getPrototypeOf");function Ga(e,t){return Ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():o(function(a,r){return a.__proto__=r,a},"_setPrototypeOf"),Ga(e,t)}o(Ga,"_setPrototypeOf");function ga(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ga(e,t)}o(ga,"_inherits");var Ny={type:"logger",log:o(function(t){this.output("log",t)},"log"),warn:o(function(t){this.output("warn",t)},"warn"),error:o(function(t){this.output("error",t)},"error"),output:o(function(t,n){console&&console[t]&&console[t].apply(console,n)},"output")},wy=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ar(this,e),this.init(t,n)}return o(e,"Logger"),xr(e,[{key:"init",value:o(function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=a.prefix||"i18next:",this.logger=n||Ny,this.options=a,this.debug=a.debug},"init")},{key:"setDebug",value:o(function(n){this.debug=n},"setDebug")},{key:"log",value:o(function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return this.forward(a,"log","",!0)},"log")},{key:"warn",value:o(function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return this.forward(a,"warn","",!0)},"warn")},{key:"error",value:o(function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return this.forward(a,"error","")},"error")},{key:"deprecate",value:o(function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return this.forward(a,"warn","WARNING DEPRECATED: ",!0)},"deprecate")},{key:"forward",value:o(function(n,a,r,i){return i&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(r).concat(this.prefix," ").concat(n[0])),this.logger[a](n))},"forward")},{key:"create",value:o(function(n){return new e(this.logger,pt({},{prefix:"".concat(this.prefix,":").concat(n,":")},this.options))},"create")}]),e}(),Jr=new wy,pn=function(){function e(){Ar(this,e),this.observers={}}return o(e,"EventEmitter"),xr(e,[{key:"on",value:o(function(n,a){var r=this;return n.split(" ").forEach(function(i){r.observers[i]=r.observers[i]||[],r.observers[i].push(a)}),this},"on")},{key:"off",value:o(function(n,a){if(!!this.observers[n]){if(!a){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(r){return r!==a})}},"off")},{key:"emit",value:o(function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];if(this.observers[n]){var s=[].concat(this.observers[n]);s.forEach(function(c){c.apply(void 0,r)})}if(this.observers["*"]){var l=[].concat(this.observers["*"]);l.forEach(function(c){c.apply(c,[n].concat(r))})}},"emit")}]),e}();function Ha(){var e,t,n=new Promise(function(a,r){e=a,t=r});return n.resolve=e,n.reject=t,n}o(Ha,"defer");function ff(e){return e==null?"":""+e}o(ff,"makeString");function Ly(e,t,n){e.forEach(function(a){t[a]&&(n[a]=t[a])})}o(Ly,"copy");function js(e,t,n){function a(l){return l&&l.indexOf("###")>-1?l.replace(/###/g,"."):l}o(a,"cleanKey");function r(){return!e||typeof e=="string"}o(r,"canNotTraverseDeeper");for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(r())return{};var s=a(i.shift());!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={}}return r()?{}:{obj:e,k:a(i.shift())}}o(js,"getLastOfPath");function pf(e,t,n){var a=js(e,t,Object),r=a.obj,i=a.k;r[i]=n}o(pf,"setPath");function $y(e,t,n,a){var r=js(e,t,Object),i=r.obj,s=r.k;i[s]=i[s]||[],a&&(i[s]=i[s].concat(n)),a||i[s].push(n)}o($y,"pushPath");function Mi(e,t){var n=js(e,t),a=n.obj,r=n.k;if(!!a)return a[r]}o(Mi,"getPath");function df(e,t,n){var a=Mi(e,n);return a!==void 0?a:Mi(t,n)}o(df,"getPathWithDefaults");function vf(e,t,n){for(var a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?typeof e[a]=="string"||e[a]instanceof String||typeof t[a]=="string"||t[a]instanceof String?n&&(e[a]=t[a]):vf(e[a],t[a],n):e[a]=t[a]);return e}o(vf,"deepExtend");function ma(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}o(ma,"regexEscape");var Vy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Ry(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Vy[t]}):e}o(Ry,"escape");var Ui=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function yf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!!e){if(e[t])return e[t];for(var a=t.split(n),r=e,i=0;i<a.length;++i){if(typeof r[a[i]]=="string"&&i+1<a.length)return;if(r[a[i]]===void 0){for(var s=2,l=a.slice(i,i+s).join(n),c=r[l];c===void 0&&a.length>i+s;)s++,l=a.slice(i,i+s).join(n),c=r[l];if(c===void 0)return;if(typeof c=="string")return c;if(l&&typeof c[l]=="string")return c[l];var u=a.slice(i+s).join(n);return u?yf(c,u,n):void 0}r=r[a[i]]}return r}}o(yf,"deepFind");var jy=function(e){ga(t,e);function t(n){var a,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Ar(this,t),a=Ln(this,fn(t).call(this)),Ui&&pn.call(Vr(a)),a.data=n||{},a.options=r,a.options.keySeparator===void 0&&(a.options.keySeparator="."),a.options.ignoreJSONStructure===void 0&&(a.options.ignoreJSONStructure=!0),a}return o(t,"ResourceStore"),xr(t,[{key:"addNamespaces",value:o(function(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)},"addNamespaces")},{key:"removeNamespaces",value:o(function(a){var r=this.options.ns.indexOf(a);r>-1&&this.options.ns.splice(r,1)},"removeNamespaces")},{key:"getResource",value:o(function(a,r,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[a,r];i&&typeof i!="string"&&(u=u.concat(i)),i&&typeof i=="string"&&(u=u.concat(l?i.split(l):i)),a.indexOf(".")>-1&&(u=a.split("."));var f=Mi(this.data,u);return f||!c||typeof i!="string"?f:yf(this.data&&this.data[a]&&this.data[a][r],i,l)},"getResource")},{key:"addResource",value:o(function(a,r,i,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=this.options.keySeparator;c===void 0&&(c=".");var u=[a,r];i&&(u=u.concat(c?i.split(c):i)),a.indexOf(".")>-1&&(u=a.split("."),s=r,r=u[1]),this.addNamespaces(r),pf(this.data,u,s),l.silent||this.emit("added",a,r,i,s)},"addResource")},{key:"addResources",value:o(function(a,r,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in i)(typeof i[l]=="string"||Object.prototype.toString.apply(i[l])==="[object Array]")&&this.addResource(a,r,l,i[l],{silent:!0});s.silent||this.emit("added",a,r,i)},"addResources")},{key:"addResourceBundle",value:o(function(a,r,i,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[a,r];a.indexOf(".")>-1&&(u=a.split("."),s=i,i=r,r=u[1]),this.addNamespaces(r);var f=Mi(this.data,u)||{};s?vf(f,i,l):f=pt({},f,i),pf(this.data,u,f),c.silent||this.emit("added",a,r,i)},"addResourceBundle")},{key:"removeResourceBundle",value:o(function(a,r){this.hasResourceBundle(a,r)&&delete this.data[a][r],this.removeNamespaces(r),this.emit("removed",a,r)},"removeResourceBundle")},{key:"hasResourceBundle",value:o(function(a,r){return this.getResource(a,r)!==void 0},"hasResourceBundle")},{key:"getResourceBundle",value:o(function(a,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?pt({},{},this.getResource(a,r)):this.getResource(a,r)},"getResourceBundle")},{key:"getDataByLanguage",value:o(function(a){return this.data[a]},"getDataByLanguage")},{key:"toJSON",value:o(function(){return this.data},"toJSON")}]),t}(pn),bf={processors:{},addPostProcessor:o(function(t){this.processors[t.name]=t},"addPostProcessor"),handle:o(function(t,n,a,r,i){var s=this;return t.forEach(function(l){s.processors[l]&&(n=s.processors[l].process(n,a,r,i))}),n},"handle")},gf={},mf=function(e){ga(t,e);function t(n){var a,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ar(this,t),a=Ln(this,fn(t).call(this)),Ui&&pn.call(Vr(a)),Ly(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Vr(a)),a.options=r,a.options.keySeparator===void 0&&(a.options.keySeparator="."),a.logger=Jr.create("translator"),a}return o(t,"Translator"),xr(t,[{key:"changeLanguage",value:o(function(a){a&&(this.language=a)},"changeLanguage")},{key:"exists",value:o(function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=this.resolve(a,r);return i&&i.res!==void 0},"exists")},{key:"extractFromKey",value:o(function(a,r){var i=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");var s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,l=r.ns||this.options.defaultNS;if(i&&a.indexOf(i)>-1){var c=a.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:a,namespaces:l};var u=a.split(i);(i!==s||i===s&&this.options.ns.indexOf(u[0])>-1)&&(l=u.shift()),a=u.join(s)}return typeof l=="string"&&(l=[l]),{key:a,namespaces:l}},"extractFromKey")},{key:"translate",value:o(function(a,r,i){var s=this;if(Tr(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),a==null)return"";Array.isArray(a)||(a=[String(a)]);var l=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,c=this.extractFromKey(a[a.length-1],r),u=c.key,f=c.namespaces,d=f[f.length-1],h=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&h.toLowerCase()==="cimode"){if(p){var m=r.nsSeparator||this.options.nsSeparator;return d+m+u}return u}var P=this.resolve(a,r),E=P&&P.res,T=P&&P.usedKey||u,w=P&&P.exactUsedKey||u,F=Object.prototype.toString.apply(E),V=["[object Number]","[object Function]","[object RegExp]"],R=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,M=!this.i18nFormat||this.i18nFormat.handleAsObject,ae=typeof E!="string"&&typeof E!="boolean"&&typeof E!="number";if(M&&E&&ae&&V.indexOf(F)<0&&!(typeof R=="string"&&F==="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(T,E,pt({},r,{ns:f})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(l){var O=F==="[object Array]",B=O?[]:{},re=O?w:T;for(var G in E)if(Object.prototype.hasOwnProperty.call(E,G)){var J="".concat(re).concat(l).concat(G);B[G]=this.translate(J,pt({},r,{joinArrays:!1,ns:f})),B[G]===J&&(B[G]=E[G])}E=B}}else if(M&&typeof R=="string"&&F==="[object Array]")E=E.join(R),E&&(E=this.extendTranslation(E,a,r,i));else{var j=!1,U=!1,te=r.count!==void 0&&typeof r.count!="string",oe=t.hasDefaultValue(r),Ee=te?this.pluralResolver.getSuffix(h,r.count):"",ve=r["defaultValue".concat(Ee)]||r.defaultValue;!this.isValidLookup(E)&&oe&&(j=!0,E=ve),this.isValidLookup(E)||(U=!0,E=u);var ue=oe&&ve!==E&&this.options.updateMissing;if(U||j||ue){if(this.logger.log(ue?"updateKey":"missingKey",h,d,u,ue?ve:E),l){var ie=this.resolve(u,pt({},r,{keySeparator:!1}));ie&&ie.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var ge=[],He=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&He&&He[0])for(var rt=0;rt<He.length;rt++)ge.push(He[rt]);else this.options.saveMissingTo==="all"?ge=this.languageUtils.toResolveHierarchy(r.lng||this.language):ge.push(r.lng||this.language);var ce=o(function(y,g,L){s.options.missingKeyHandler?s.options.missingKeyHandler(y,d,g,ue?L:E,ue,r):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(y,d,g,ue?L:E,ue,r),s.emit("missingKey",y,d,g,E)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&te?ge.forEach(function(ze){s.pluralResolver.getSuffixes(ze).forEach(function(y){ce([ze],u+y,r["defaultValue".concat(y)]||ve)})}):ce(ge,u,ve))}E=this.extendTranslation(E,a,r,P,i),U&&E===u&&this.options.appendNamespaceToMissingKey&&(E="".concat(d,":").concat(u)),U&&this.options.parseMissingKeyHandler&&(E=this.options.parseMissingKeyHandler(E))}return E},"translate")},{key:"extendTranslation",value:o(function(a,r,i,s,l){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)a=this.i18nFormat.parse(a,i,s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init(pt({},i,{interpolation:pt({},this.options.interpolation,i.interpolation)}));var u=i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,f;if(u){var d=a.match(this.interpolator.nestingRegexp);f=d&&d.length}var h=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(h=pt({},this.options.interpolation.defaultVariables,h)),a=this.interpolator.interpolate(a,h,i.lng||this.language,i),u){var p=a.match(this.interpolator.nestingRegexp),m=p&&p.length;f<m&&(i.nest=!1)}i.nest!==!1&&(a=this.interpolator.nest(a,function(){for(var T=arguments.length,w=new Array(T),F=0;F<T;F++)w[F]=arguments[F];return l&&l[0]===w[0]&&!i.context?(c.logger.warn("It seems you are nesting recursively key: ".concat(w[0]," in key: ").concat(r[0])),null):c.translate.apply(c,w.concat([r]))},i)),i.interpolation&&this.interpolator.reset()}var P=i.postProcess||this.options.postProcess,E=typeof P=="string"?[P]:P;return a!=null&&E&&E.length&&i.applyPostProcessor!==!1&&(a=bf.handle(E,a,r,this.options&&this.options.postProcessPassResolved?pt({i18nResolved:s},i):i,this)),a},"extendTranslation")},{key:"resolve",value:o(function(a){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,l,c,u,f;return typeof a=="string"&&(a=[a]),a.forEach(function(d){if(!r.isValidLookup(s)){var h=r.extractFromKey(d,i),p=h.key;l=p;var m=h.namespaces;r.options.fallbackNS&&(m=m.concat(r.options.fallbackNS));var P=i.count!==void 0&&typeof i.count!="string",E=i.context!==void 0&&typeof i.context=="string"&&i.context!=="",T=i.lngs?i.lngs:r.languageUtils.toResolveHierarchy(i.lng||r.language,i.fallbackLng);m.forEach(function(w){r.isValidLookup(s)||(f=w,!gf["".concat(T[0],"-").concat(w)]&&r.utils&&r.utils.hasLoadedNamespace&&!r.utils.hasLoadedNamespace(f)&&(gf["".concat(T[0],"-").concat(w)]=!0,r.logger.warn('key "'.concat(l,'" for languages "').concat(T.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),T.forEach(function(F){if(!r.isValidLookup(s)){u=F;var V=p,R=[V];if(r.i18nFormat&&r.i18nFormat.addLookupKeys)r.i18nFormat.addLookupKeys(R,p,F,w,i);else{var M;P&&(M=r.pluralResolver.getSuffix(F,i.count)),P&&E&&R.push(V+M),E&&R.push(V+="".concat(r.options.contextSeparator).concat(i.context)),P&&R.push(V+=M)}for(var ae;ae=R.pop();)r.isValidLookup(s)||(c=ae,s=r.getResource(F,w,ae,i))}}))})}}),{res:s,usedKey:l,exactUsedKey:c,usedLng:u,usedNS:f}},"resolve")},{key:"isValidLookup",value:o(function(a){return a!==void 0&&!(!this.options.returnNull&&a===null)&&!(!this.options.returnEmptyString&&a==="")},"isValidLookup")},{key:"getResource",value:o(function(a,r,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(a,r,i,s):this.resourceStore.getResource(a,r,i,s)},"getResource")}],[{key:"hasDefaultValue",value:o(function(a){var r="defaultValue";for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)&&r===i.substring(0,r.length)&&a[i]!==void 0)return!0;return!1},"hasDefaultValue")}]),t}(pn);function Rs(e){return e.charAt(0).toUpperCase()+e.slice(1)}o(Rs,"capitalize");var My=function(){function e(t){Ar(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Jr.create("languageUtils")}return o(e,"LanguageUtil"),xr(e,[{key:"getScriptPartFromCode",value:o(function(n){if(!n||n.indexOf("-")<0)return null;var a=n.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))},"getScriptPartFromCode")},{key:"getLanguagePartFromCode",value:o(function(n){if(!n||n.indexOf("-")<0)return n;var a=n.split("-");return this.formatLanguageCode(a[0])},"getLanguagePartFromCode")},{key:"formatLanguageCode",value:o(function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var a=["hans","hant","latn","cyrl","cans","mong","arab"],r=n.split("-");return this.options.lowerCaseLng?r=r.map(function(i){return i.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),a.indexOf(r[1].toLowerCase())>-1&&(r[1]=Rs(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),a.indexOf(r[1].toLowerCase())>-1&&(r[1]=Rs(r[1].toLowerCase())),a.indexOf(r[2].toLowerCase())>-1&&(r[2]=Rs(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n},"formatLanguageCode")},{key:"isWhitelisted",value:o(function(n){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(n)},"isWhitelisted")},{key:"isSupportedCode",value:o(function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1},"isSupportedCode")},{key:"getBestMatchFromCodes",value:o(function(n){var a=this;if(!n)return null;var r;return n.forEach(function(i){if(!r){var s=a.formatLanguageCode(i);(!a.options.supportedLngs||a.isSupportedCode(s))&&(r=s)}}),!r&&this.options.supportedLngs&&n.forEach(function(i){if(!r){var s=a.getLanguagePartFromCode(i);if(a.isSupportedCode(s))return r=s;r=a.options.supportedLngs.find(function(l){if(l.indexOf(s)===0)return l})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r},"getBestMatchFromCodes")},{key:"getFallbackCodes",value:o(function(n,a){if(!n)return[];if(typeof n=="function"&&(n=n(a)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!a)return n.default||[];var r=n[a];return r||(r=n[this.getScriptPartFromCode(a)]),r||(r=n[this.formatLanguageCode(a)]),r||(r=n[this.getLanguagePartFromCode(a)]),r||(r=n.default),r||[]},"getFallbackCodes")},{key:"toResolveHierarchy",value:o(function(n,a){var r=this,i=this.getFallbackCodes(a||this.options.fallbackLng||[],n),s=[],l=o(function(u){!u||(r.isSupportedCode(u)?s.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))},"addCode");return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(n))):typeof n=="string"&&l(this.formatLanguageCode(n)),i.forEach(function(c){s.indexOf(c)<0&&l(r.formatLanguageCode(c))}),s},"toResolveHierarchy")}]),e}(),Uy=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ky={1:o(function(t){return Number(t>1)},"_"),2:o(function(t){return Number(t!=1)},"_"),3:o(function(t){return 0},"_"),4:o(function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},"_"),5:o(function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},"_"),6:o(function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},"_"),7:o(function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},"_"),8:o(function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},"_"),9:o(function(t){return Number(t>=2)},"_"),10:o(function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},"_"),11:o(function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},"_"),12:o(function(t){return Number(t%10!=1||t%100==11)},"_"),13:o(function(t){return Number(t!==0)},"_"),14:o(function(t){return Number(t==1?0:t==2?1:t==3?2:3)},"_"),15:o(function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},"_"),16:o(function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},"_"),17:o(function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},"_"),18:o(function(t){return Number(t==0?0:t==1?1:2)},"_"),19:o(function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},"_"),20:o(function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},"_"),21:o(function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},"_"),22:o(function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)},"_")};function By(){var e={};return Uy.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:ky[t.fc]}})}),e}o(By,"createRules");var Gy=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ar(this,e),this.languageUtils=t,this.options=n,this.logger=Jr.create("pluralResolver"),this.rules=By()}return o(e,"PluralResolver"),xr(e,[{key:"addRule",value:o(function(n,a){this.rules[n]=a},"addRule")},{key:"getRule",value:o(function(n){return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]},"getRule")},{key:"needsPlural",value:o(function(n){var a=this.getRule(n);return a&&a.numbers.length>1},"needsPlural")},{key:"getPluralFormsOfKey",value:o(function(n,a){return this.getSuffixes(n).map(function(r){return a+r})},"getPluralFormsOfKey")},{key:"getSuffixes",value:o(function(n){var a=this,r=this.getRule(n);return r?r.numbers.map(function(i){return a.getSuffix(n,i)}):[]},"getSuffixes")},{key:"getSuffix",value:o(function(n,a){var r=this,i=this.getRule(n);if(i){var s=i.noAbs?i.plurals(a):i.plurals(Math.abs(a)),l=i.numbers[s];this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1&&(l===2?l="plural":l===1&&(l=""));var c=o(function(){return r.options.prepend&&l.toString()?r.options.prepend+l.toString():l.toString()},"returnSuffix");return this.options.compatibilityJSON==="v1"?l===1?"":typeof l=="number"?"_plural_".concat(l.toString()):c():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1?c():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}return this.logger.warn("no plural rule found for: ".concat(n)),""},"getSuffix")}]),e}(),Hy=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ar(this,e),this.logger=Jr.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return o(e,"Interpolator"),xr(e,[{key:"init",value:o(function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var a=n.interpolation;this.escape=a.escape!==void 0?a.escape:Ry,this.escapeValue=a.escapeValue!==void 0?a.escapeValue:!0,this.useRawValueToEscape=a.useRawValueToEscape!==void 0?a.useRawValueToEscape:!1,this.prefix=a.prefix?ma(a.prefix):a.prefixEscaped||"{{",this.suffix=a.suffix?ma(a.suffix):a.suffixEscaped||"}}",this.formatSeparator=a.formatSeparator?a.formatSeparator:a.formatSeparator||",",this.unescapePrefix=a.unescapeSuffix?"":a.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":a.unescapeSuffix||"",this.nestingPrefix=a.nestingPrefix?ma(a.nestingPrefix):a.nestingPrefixEscaped||ma("$t("),this.nestingSuffix=a.nestingSuffix?ma(a.nestingSuffix):a.nestingSuffixEscaped||ma(")"),this.nestingOptionsSeparator=a.nestingOptionsSeparator?a.nestingOptionsSeparator:a.nestingOptionsSeparator||",",this.maxReplaces=a.maxReplaces?a.maxReplaces:1e3,this.alwaysFormat=a.alwaysFormat!==void 0?a.alwaysFormat:!1,this.resetRegExp()},"init")},{key:"reset",value:o(function(){this.options&&this.init(this.options)},"reset")},{key:"resetRegExp",value:o(function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var a="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(a,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")},"resetRegExp")},{key:"interpolate",value:o(function(n,a,r,i){var s=this,l,c,u,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(E){return E.replace(/\$/g,"$$$$")}o(d,"regexSafe");var h=o(function(T){if(T.indexOf(s.formatSeparator)<0){var w=df(a,f,T);return s.alwaysFormat?s.format(w,void 0,r,pt({},i,a,{interpolationkey:T})):w}var F=T.split(s.formatSeparator),V=F.shift().trim(),R=F.join(s.formatSeparator).trim();return s.format(df(a,f,V),R,r,pt({},i,a,{interpolationkey:V}))},"handleFormat");this.resetRegExp();var p=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,m=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,P=[{regex:this.regexpUnescape,safeValue:o(function(T){return d(T)},"safeValue")},{regex:this.regexp,safeValue:o(function(T){return s.escapeValue?d(s.escape(T)):d(T)},"safeValue")}];return P.forEach(function(E){for(u=0;l=E.regex.exec(n);){if(c=h(l[1].trim()),c===void 0)if(typeof p=="function"){var T=p(n,l,i);c=typeof T=="string"?T:""}else if(m){c=l[0];continue}else s.logger.warn("missed to pass in variable ".concat(l[1]," for interpolating ").concat(n)),c="";else typeof c!="string"&&!s.useRawValueToEscape&&(c=ff(c));var w=E.safeValue(c);if(n=n.replace(l[0],w),m?(E.regex.lastIndex+=w.length,E.regex.lastIndex-=l[0].length):E.regex.lastIndex=0,u++,u>=s.maxReplaces)break}}),n},"interpolate")},{key:"nest",value:o(function(n,a){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,l,c=pt({},i);c.applyPostProcessor=!1,delete c.defaultValue;function u(p,m){var P=this.nestingOptionsSeparator;if(p.indexOf(P)<0)return p;var E=p.split(new RegExp("".concat(P,"[ ]*{"))),T="{".concat(E[1]);p=E[0],T=this.interpolate(T,c),T=T.replace(/'/g,'"');try{c=JSON.parse(T),m&&(c=pt({},m,c))}catch(w){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),w),"".concat(p).concat(P).concat(T)}return delete c.defaultValue,p}for(o(u,"handleHasOptions");s=this.nestingRegexp.exec(n);){var f=[],d=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var h=s[1].split(this.formatSeparator).map(function(p){return p.trim()});s[1]=h.shift(),f=h,d=!0}if(l=a(u.call(this,s[1].trim(),c),c),l&&s[0]===n&&typeof l!="string")return l;typeof l!="string"&&(l=ff(l)),l||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(n)),l=""),d&&(l=f.reduce(function(p,m){return r.format(p,m,i.lng,pt({},i,{interpolationkey:s[1].trim()}))},l.trim())),n=n.replace(s[0],l),this.regexp.lastIndex=0}return n},"nest")}]),e}();function Qy(e,t){for(var n=e.indexOf(t);n!==-1;)e.splice(n,1),n=e.indexOf(t)}o(Qy,"remove");var qy=function(e){ga(t,e);function t(n,a,r){var i,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Ar(this,t),i=Ln(this,fn(t).call(this)),Ui&&pn.call(Vr(i)),i.backend=n,i.store=a,i.services=r,i.languageUtils=r.languageUtils,i.options=s,i.logger=Jr.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,s.backend,s),i}return o(t,"Connector"),xr(t,[{key:"queueLoad",value:o(function(a,r,i,s){var l=this,c=[],u=[],f=[],d=[];return a.forEach(function(h){var p=!0;r.forEach(function(m){var P="".concat(h,"|").concat(m);!i.reload&&l.store.hasResourceBundle(h,m)?l.state[P]=2:l.state[P]<0||(l.state[P]===1?u.indexOf(P)<0&&u.push(P):(l.state[P]=1,p=!1,u.indexOf(P)<0&&u.push(P),c.indexOf(P)<0&&c.push(P),d.indexOf(m)<0&&d.push(m)))}),p||f.push(h)}),(c.length||u.length)&&this.queue.push({pending:u,loaded:{},errors:[],callback:s}),{toLoad:c,pending:u,toLoadLanguages:f,toLoadNamespaces:d}},"queueLoad")},{key:"loaded",value:o(function(a,r,i){var s=a.split("|"),l=s[0],c=s[1];r&&this.emit("failedLoading",l,c,r),i&&this.store.addResourceBundle(l,c,i),this.state[a]=r?-1:2;var u={};this.queue.forEach(function(f){$y(f.loaded,[l],c),Qy(f.pending,a),r&&f.errors.push(r),f.pending.length===0&&!f.done&&(Object.keys(f.loaded).forEach(function(d){u[d]||(u[d]=[]),f.loaded[d].length&&f.loaded[d].forEach(function(h){u[d].indexOf(h)<0&&u[d].push(h)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(f){return!f.done})},"loaded")},{key:"read",value:o(function(a,r,i){var s=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,u=arguments.length>5?arguments[5]:void 0;return a.length?this.backend[i](a,r,function(f,d){if(f&&d&&l<5){setTimeout(function(){s.read.call(s,a,r,i,l+1,c*2,u)},c);return}u(f,d)}):u(null,{})},"read")},{key:"prepareLoading",value:o(function(a,r){var i=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof a=="string"&&(a=this.languageUtils.toResolveHierarchy(a)),typeof r=="string"&&(r=[r]);var c=this.queueLoad(a,r,s,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(u){i.loadOne(u)})},"prepareLoading")},{key:"load",value:o(function(a,r,i){this.prepareLoading(a,r,{},i)},"load")},{key:"reload",value:o(function(a,r,i){this.prepareLoading(a,r,{reload:!0},i)},"reload")},{key:"loadOne",value:o(function(a){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=a.split("|"),l=s[0],c=s[1];this.read(l,c,"read",void 0,void 0,function(u,f){u&&r.logger.warn("".concat(i,"loading namespace ").concat(c," for language ").concat(l," failed"),u),!u&&f&&r.logger.log("".concat(i,"loaded namespace ").concat(c," for language ").concat(l),f),r.loaded(a,u,f)})},"loadOne")},{key:"saveMissing",value:o(function(a,r,i,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn('did not save key "'.concat(i,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}i==null||i===""||(this.backend&&this.backend.create&&this.backend.create(a,r,i,s,null,pt({},c,{isUpdate:l})),!(!a||!a[0])&&this.store.addResource(a[0],r,i,s))},"saveMissing")}]),t}(pn);function Ky(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(function(t){var n={};if(Tr(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Tr(t[2])==="object"||Tr(t[3])==="object"){var a=t[3]||t[2];Object.keys(a).forEach(function(r){n[r]=a[r]})}return n},"handle"),interpolation:{escapeValue:!0,format:o(function(t,n,a,r){return t},"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}o(Ky,"get");function hf(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}o(hf,"transformOptions");function ji(){}o(ji,"noop");var Jy=function(e){ga(t,e);function t(){var n,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(Ar(this,t),n=Ln(this,fn(t).call(this)),Ui&&pn.call(Vr(n)),n.options=hf(a),n.services={},n.logger=Jr,n.modules={external:[]},r&&!n.isInitialized&&!a.isClone){if(!n.options.initImmediate)return n.init(a,r),Ln(n,Vr(n));setTimeout(function(){n.init(a,r)},0)}return n}return o(t,"I18n"),xr(t,[{key:"init",value:o(function(){var a=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;typeof r=="function"&&(i=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=pt({},Ky(),this.options,hf(r)),this.format=this.options.interpolation.format,i||(i=ji);function s(m){return m?typeof m=="function"?new m:m:null}if(o(s,"createClassOnDemand"),!this.options.isClone){this.modules.logger?Jr.init(s(this.modules.logger),this.options):Jr.init(null,this.options);var l=new My(this.options);this.store=new jy(this.options.resources,this.options);var c=this.services;c.logger=Jr,c.resourceStore=this.store,c.languageUtils=l,c.pluralResolver=new Gy(l,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c.interpolator=new Hy(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new qy(s(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(m){for(var P=arguments.length,E=new Array(P>1?P-1:0),T=1;T<P;T++)E[T-1]=arguments[T];a.emit.apply(a,[m].concat(E))}),this.modules.languageDetector&&(c.languageDetector=s(this.modules.languageDetector),c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=s(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new mf(this.services,this.options),this.translator.on("*",function(m){for(var P=arguments.length,E=new Array(P>1?P-1:0),T=1;T<P;T++)E[T-1]=arguments[T];a.emit.apply(a,[m].concat(E))}),this.modules.external.forEach(function(m){m.init&&m.init(a)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var f=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];f.forEach(function(m){a[m]=function(){var P;return(P=a.store)[m].apply(P,arguments)}});var d=["addResource","addResources","addResourceBundle","removeResourceBundle"];d.forEach(function(m){a[m]=function(){var P;return(P=a.store)[m].apply(P,arguments),a}});var h=Ha(),p=o(function(){var P=o(function(T,w){a.isInitialized&&a.logger.warn("init: i18next is already initialized. You should call init just once!"),a.isInitialized=!0,a.options.isClone||a.logger.log("initialized",a.options),a.emit("initialized",a.options),h.resolve(w),i(T,w)},"finish");if(a.languages&&a.options.compatibilityAPI!=="v1"&&!a.isInitialized)return P(null,a.t.bind(a));a.changeLanguage(a.options.lng,P)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),h},"init")},{key:"loadResources",value:o(function(a){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ji,s=i,l=typeof a=="string"?a:this.language;if(typeof a=="function"&&(s=a),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return s();var c=[],u=o(function(h){if(!!h){var p=r.services.languageUtils.toResolveHierarchy(h);p.forEach(function(m){c.indexOf(m)<0&&c.push(m)})}},"append");if(l)u(l);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(d){return u(d)})}this.options.preload&&this.options.preload.forEach(function(d){return u(d)}),this.services.backendConnector.load(c,this.options.ns,s)}else s(null)},"loadResources")},{key:"reloadResources",value:o(function(a,r,i){var s=Ha();return a||(a=this.languages),r||(r=this.options.ns),i||(i=ji),this.services.backendConnector.reload(a,r,function(l){s.resolve(),i(l)}),s},"reloadResources")},{key:"use",value:o(function(a){if(!a)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&bf.addPostProcessor(a),a.type==="3rdParty"&&this.modules.external.push(a),this},"use")},{key:"changeLanguage",value:o(function(a,r){var i=this;this.isLanguageChangingTo=a;var s=Ha();this.emit("languageChanging",a);var l=o(function(f,d){d?(i.language=d,i.languages=i.services.languageUtils.toResolveHierarchy(d),i.translator.changeLanguage(d),i.isLanguageChangingTo=void 0,i.emit("languageChanged",d),i.logger.log("languageChanged",d)):i.isLanguageChangingTo=void 0,s.resolve(function(){return i.t.apply(i,arguments)}),r&&r(f,function(){return i.t.apply(i,arguments)})},"done"),c=o(function(f){!a&&!f&&i.services.languageDetector&&(f=[]);var d=typeof f=="string"?f:i.services.languageUtils.getBestMatchFromCodes(f);d&&(i.language||(i.language=d,i.languages=i.services.languageUtils.toResolveHierarchy(d)),i.translator.language||i.translator.changeLanguage(d),i.services.languageDetector&&i.services.languageDetector.cacheUserLanguage(d)),i.loadResources(d,function(h){l(h,d)})},"setLng");return!a&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(c):c(a),s},"changeLanguage")},{key:"getFixedT",value:o(function(a,r){var i=this,s=o(function l(c,u){var f;if(Tr(u)!=="object"){for(var d=arguments.length,h=new Array(d>2?d-2:0),p=2;p<d;p++)h[p-2]=arguments[p];f=i.options.overloadTranslationOptionHandler([c,u].concat(h))}else f=pt({},u);return f.lng=f.lng||l.lng,f.lngs=f.lngs||l.lngs,f.ns=f.ns||l.ns,i.t(c,f)},"fixedT");return typeof a=="string"?s.lng=a:s.lngs=a,s.ns=r,s},"getFixedT")},{key:"t",value:o(function(){var a;return this.translator&&(a=this.translator).translate.apply(a,arguments)},"t")},{key:"exists",value:o(function(){var a;return this.translator&&(a=this.translator).exists.apply(a,arguments)},"exists")},{key:"setDefaultNamespace",value:o(function(a){this.options.defaultNS=a},"setDefaultNamespace")},{key:"hasLoadedNamespace",value:o(function(a){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var u=o(function(h,p){var m=r.services.backendConnector.state["".concat(h,"|").concat(p)];return m===-1||m===2},"loadNotPending");if(i.precheck){var f=i.precheck(this,u);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,a)||!this.services.backendConnector.backend||u(s,a)&&(!l||u(c,a)))},"hasLoadedNamespace")},{key:"loadNamespaces",value:o(function(a,r){var i=this,s=Ha();return this.options.ns?(typeof a=="string"&&(a=[a]),a.forEach(function(l){i.options.ns.indexOf(l)<0&&i.options.ns.push(l)}),this.loadResources(function(l){s.resolve(),r&&r(l)}),s):(r&&r(),Promise.resolve())},"loadNamespaces")},{key:"loadLanguages",value:o(function(a,r){var i=Ha();typeof a=="string"&&(a=[a]);var s=this.options.preload||[],l=a.filter(function(c){return s.indexOf(c)<0});return l.length?(this.options.preload=s.concat(l),this.loadResources(function(c){i.resolve(),r&&r(c)}),i):(r&&r(),Promise.resolve())},"loadLanguages")},{key:"dir",value:o(function(a){if(a||(a=this.languages&&this.languages.length>0?this.languages[0]:this.language),!a)return"rtl";var r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"];return r.indexOf(this.services.languageUtils.getLanguagePartFromCode(a))>=0?"rtl":"ltr"},"dir")},{key:"createInstance",value:o(function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(a,r)},"createInstance")},{key:"cloneInstance",value:o(function(){var a=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ji,s=pt({},this.options,r,{isClone:!0}),l=new t(s),c=["store","services","language"];return c.forEach(function(u){l[u]=a[u]}),l.services=pt({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new mf(l.services,l.options),l.translator.on("*",function(u){for(var f=arguments.length,d=new Array(f>1?f-1:0),h=1;h<f;h++)d[h-1]=arguments[h];l.emit.apply(l,[u].concat(d))}),l.init(s,i),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l},"cloneInstance")},{key:"toJSON",value:o(function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}},"toJSON")}]),t}(pn),Wy=new Jy,Fe=Wy;var xp=se(Ms()),Ip=se(Vf()),no=se(Sp()),Ae=require("@sap-ux/vocabularies-types/vocabularies/UI"),Ya=require("@sap-ux/vocabularies-types/vocabularies/Communication");var zs=se(fe()),Ie=o((e,t,...n)=>{e?e[t.severity](t.message,t.location,...n):t.location?console.log(`${zs.LogSeverityLabel[t.severity]}: ${t.message}; location: ${t.location}`,...n):console.log(`${zs.LogSeverityLabel[t.severity]}: '${t.message}`,...n)},"log");var Y="#/definitions/";function ut(e){return e.replace("#","::").replace(/\//g,":2f")}o(ut,"prepareRef");var Vn=o((e,t,n)=>{let a=`/${e}/@${t}`;return n&&(a+=`#${n}`),a},"createAnnotationPath");function Rn(e,t){let n=[],a;try{e&&e.forEach(function(r){n.push((0,no.parse)(r.fileContent,r.dataSourceUri))}),n.length>0&&(a=(0,Ip.convert)((0,no.merge)(...n)))}catch(r){Ie(t,{severity:X.LogSeverity.Error,message:Fe.t("ANNOERR")},...r)}return a}o(Rn,"parseAndMergeAndConvert");var ba=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Xs(e,t,n){var a,r,i,s;if((a=e==null?void 0:e.Common)!=null&&a.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t.resolvePath(e.Common.Label.path);l.value?n=l.value:typeof((r=l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(i=e.Common)==null?void 0:i.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(Xs,"evaluateCommonLabel");function Fp(e,t){let n=e.value;return e.$target&&(n=Xs(e.$target.annotations,t,n)),n}o(Fp,"getLabelForPropertyPath");function ro(e,t){var r,i;let n,a;return e.Value?typeof e.Value=="string"?a=t.entityProperties.find(s=>s.name===e.Value):(a=t.resolvePath(e.Value.path),a||(a=e.Value.$target)):e.Target&&e.Target.$target&&e.Target.$target.Value&&(a=e.Target.$target.Value.$target),(i=(r=a==null?void 0:a.annotations)==null?void 0:r.Common)!=null&&i.Label&&(n=Xs(a.annotations,t,n)),n}o(ro,"getLabelForDataField");function DE(e,t){var n,a;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t.resolvePath(e.path);if(!r||r.length===0)return;{let i=r[0];if((a=(n=i==null?void 0:i.annotations)==null?void 0:n.Common)!=null&&a.Label){let s=e;return Xs(i.annotations,t,s)}}}else return}o(DE,"getLabel");function Tp(e,t,n){let a=ro(e,t);return n||a||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(Tp,"getTitleForDataField");function Za(e,t){let n="",a,r,i=DE(e.Label,t);switch(e.$Type){case Ae.UIAnnotationTypes.DataField:r=e,n=Tp(r,t,i);break;case Ae.UIAnnotationTypes.DataFieldWithUrl:r=e,a=ro(e,t),n=i||a||(typeof r.Value=="string"?r.Value:r.Value.path);break;case Ae.UIAnnotationTypes.DataFieldForAnnotation:r=e,a=ro(e,t),n=i||a||r.Target.$target.Title||r.Target.value;break;case Ae.UIAnnotationTypes.DataFieldForAction:case Ae.UIAnnotationTypes.DataFieldWithAction:case Ae.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,i?n=typeof i=="string"?i:r.Action:n=e.Action;break;case Ae.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:r=e,a=ro(e,t),n=a||r.Value.path;break;case Ae.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=Tp(r,t,i);break;default:break}return n}o(Za,"getDatafieldDescription");function Xr(e){if(e){let t=`${X.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(Xr,"getPageTypeV2");function NE(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(NE,"getTargetAnnotationName");function Yr(e,t){if(!t)return;let n=t.references.find(a=>a.namespace===e);return n||(n=t.references.find(a=>a.alias===e)),n||(n=t.references.find(a=>a.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(Yr,"findAlias");function wE(e,t,n){var s;let a=e[e.length-1],r=a.substring(a.lastIndexOf(".")+1,a.length),i=Yr(a.substring(0,a.lastIndexOf(".")).replace("@",""),n);return(s=t==null?void 0:t.annotations[i])==null?void 0:s[r]}o(wE,"determineTargetAnnotation");function LE(e,t,n){let a=t[t.length-1].split("#")[0];if(a.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Ae.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=a.replace("@UI",`${n?"":"@"}com.sap.vocabularies.UI.v1`);return e}o(LE,"adjustKey");function $E(e,t,n,a,r=X.FioriElementsVersion.v2,i=!1){var d;let s=!1,l,c=a.split("/"),u=c.length>1;u&&(n=(d=n.resolvePath(a.substring(0,a.lastIndexOf("/"))))==null?void 0:d.targetType),t=LE(t,c,i);let f=wE(c,n,e);if(f){let h=r===X.FioriElementsVersion.v2?"::":"#";t=NE(f,i).replace("#",h),l=f.fullyQualifiedName.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(u){let h=r===X.FioriElementsVersion.v2?"::":"/";c.pop(),t=`${[...c].join(h)}${h}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o($E,"getKeyAndEntityTypeOfReferenceFacet");function _p(e,t,n,a,r=X.FioriElementsVersion.v2,i=!1){var f;let s=e.fullyQualifiedName.substring(e.fullyQualifiedName.lastIndexOf("@")),l=e.ID?e.ID.toString():s,c=(f=e.fullyQualifiedName)==null?void 0:f.split("@")[0],u=t;if(e.$Type!==Ae.UIAnnotationTypes.CollectionFacet&&"Target"in e){let d=ba(e.Target);if(!d){Ie(a,{severity:X.LogSeverity.Error,message:Fe.t("NOTARGET",{target:e.Target})});return}let{key:h,entityType:p,stopProcessing:m,namespace:P}=$E(n,l,u,d,r,i);if(m)return;l=h,u=p,c=P}if(l=l.replace(/\//gi,"::"),l)return Rt(qe(qe({key:l},e.Label&&{label:e.Label.toString()}),e.ID&&{ID:e.ID.toString()}),{entityType:u,namespace:c})}o(_p,"getSectionFacet");function Ys(e){let t,n,a;switch(e.$Type){case Ae.UIAnnotationTypes.DataField:t=ba(e.Value);break;case Ae.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:ba(e.Value);break;case Ae.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI","@com.sap.vocabularies.UI.v1").replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Ae.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${ut(e.Action)}`);break;case Ae.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:a=ba(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${a}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Ae.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${ut(e.Action)}`);break;case Ae.UIAnnotationTypes.DataFieldWithNavigationPath:a=ba(e.Value),n=ba(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+a+":::sTarget::"+n;break;default:break}return t}o(Ys,"getSchemaKeyOfLineItemRecord");function VE(e,t,n){return e.includes(Ae.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Ae.UIAnnotationTerms.Chart:e.includes(Ae.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Ae.UIAnnotationTerms.Identification:n&&e.includes(Ae.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Ae.UIAnnotationTerms.LineItem:e.includes(Ae.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Ae.UIAnnotationTerms.FieldGroup:e.includes(Ae.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Ae.UIAnnotationTerms.DataPoint:e.includes(Ae.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Ae.UIAnnotationTerms.PresentationVariant:void 0}o(VE,"getUIAnnotationTerm");function RE(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Ya.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Ya.CommunicationAnnotationTerms.Address:void 0}o(RE,"getCommunicationAnnotationTerm");function jE(e,t,n){return VE(e,t,n)||RE(e,t)}o(jE,"getAnnotationTerm");function ME(e,t,n,a,r,i=X.FioriElementsVersion.v2,s){var d,h,p,m,P,E,T,w,F;let l=Yr(X.UIVOCABULARY,r),c=e?e.key:"",u=e.entityType;switch(jE(c,l,a)){case Ae.UIAnnotationTerms.Chart:{n[c]={base:X.FacetBase.Chart},n[c].target=(d=t==null?void 0:t.Target)==null?void 0:d.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case Ae.UIAnnotationTerms.Identification:{n[c]={base:X.FacetBase.Identification},n[c].target=(h=t==null?void 0:t.Target)==null?void 0:h.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case Ae.UIAnnotationTerms.LineItem:{if(!c.includes(Ae.UIAnnotationTerms.LineItem)&&c.includes(".LineItem")){let V=c.split("::");V[V.length-1]=`@${Ae.UIAnnotationTerms.LineItem}`,c=V.join("::")}n[c]={base:X.FacetBase.LineItem},n[c].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case Ae.UIAnnotationTerms.FieldGroup:{n[c]={base:X.FacetBase.Form},n[c].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case Ae.UIAnnotationTerms.DataPoint:{n[c]={base:X.FacetBase.DataPoint},n[c].Label=(P=t==null?void 0:t.Target)==null?void 0:P.$target.Title,n[c].target=(E=t==null?void 0:t.Target)==null?void 0:E.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case Ae.UIAnnotationTerms.PresentationVariant:{n[c]={base:X.FacetBase.PresentationVariant},n[c].target=(T=t==null?void 0:t.Target)==null?void 0:T.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case Ya.CommunicationAnnotationTerms.Contact:{n[c]={base:X.FacetBase.Contact},n[c].target=(w=t==null?void 0:t.Target)==null?void 0:w.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case Ya.CommunicationAnnotationTerms.Address:{n[c]={base:X.FacetBase.Address},n[c].target=(F=t==null?void 0:t.Target)==null?void 0:F.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}default:n[c]={base:X.FacetBase.Unknown}}n[c]&&(n[c].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",X.VOCWITHSLASH)}`,t.Label&&(n[c].Label=t.Label),t.ID?n[c].ID=t.ID:i===X.FioriElementsVersion.v4&&Ie(s,{severity:X.LogSeverity.Error,message:Fe.t("NOID4SECTION",{facet:t.fullyQualifiedName})}),e&&e.entityType&&(n[c].entityType=e.entityType))}o(ME,"evaluateTargetAnnotation");function Dp(e,t,n,a,r,i=X.FioriElementsVersion.v2,s){var c;let l=_p(e,a,t,s,i,!1);if(l)switch(e.$Type){case Ae.UIAnnotationTypes.ReferenceFacet:{ME(l,e,r,a,t,i,s);break}case Ae.UIAnnotationTypes.CollectionFacet:{let u=`/${a.fullyQualifiedName}/${e.fullyQualifiedName.split(a.fullyQualifiedName)[1]}`,f=r[l.key]={base:X.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:u,Label:l.label,namespace:l.namespace};(c=e.Facets)==null||c.forEach(d=>{Dp(d,t,n,a,f.facets,i,s)});break}}}o(Dp,"addFacetToConfig");function Np(e,t,n=X.FioriElementsVersion.v2,a){let r={};if(!e||!e.annotations)return;let i=Yr(X.UIVOCABULARY,t),s=i&&e.annotations[i]&&e.annotations[i].Facets;if(s){let l=e.fullyQualifiedName.lastIndexOf("."),c=e.fullyQualifiedName.substring(0,l);s.forEach(u=>{Dp(u,t,c,e,r,n,a)})}return r}o(Np,"getObjectPageFacets");function Zs(e){return e[X.ManifestSection.generic]||e[X.ManifestSection.ovp]?X.FioriElementsVersion.v2:X.FioriElementsVersion.v4}o(Zs,"getVersionFromManifest");function UE(e,t){let n;if(e[X.ManifestSection.generic]){let a=e[X.ManifestSection.generic].pages;if(!a){Ie(t,{severity:X.LogSeverity.Error,message:Fe.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:X.MANIFESTPATH,range:[X.ManifestSection.generic]}});return}for(let r in a){let i=a[r];if(Xr(i.component.name)===X.PageType.AnalyticalListPage){n=X.TemplateType.AnalyticalListPageV2;break}else if(Xr(i.component.name)===X.PageType.ListReport){n=X.TemplateType.ListReportObjectPageV2;break}}}else n||Ie(t,{severity:X.LogSeverity.Error,message:Fe.t("NOTEMPLATE",{section:X.ManifestSection.generic}),location:{path:X.MANIFESTPATH,range:[X.ManifestSection.generic]}});return n}o(UE,"determineV2Template");function el(e,t,n){let a;return e[X.ManifestSection.ovp]?a=X.TemplateType.OverviewPageV2:t===X.FioriElementsVersion.v2&&(a=UE(e,n)),a}o(el,"getTemplateTypeFromManifest");function ei(e,t,n){e!=null&&e.ID?(t.title=X.FacetTitlePrefix+e.ID,t[X.SchemaTag.keys]=[{name:X.SchemaKeyName.id,value:e.ID}]):t.title=n.replace(/@com.sap/g,"com.sap"),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(ei,"addSectionTitleAndDescription");function Ea(e,t,n){if(!t)return;let a;return e.definitions.ObjectPageSection?a=JSON.parse(JSON.stringify(e.definitions.ObjectPageSection)):(a={type:"object",properties:{},additionalProperties:!1},a[X.SchemaTag.isViewNode]=!0),a[X.SchemaTag.annotationPath]=t.annotationPath,ei(t,a,n),a}o(Ea,"createDefaultSection");function wp(e,t,n,a=X.FioriElementsVersion.v2,r=!1){let i=Yr(X.UIVOCABULARY,t),s=[];if(e){let l=i&&e.annotations&&e.annotations[i]&&e.annotations[i].Facets;return l&&(s=l.reduce(function(c,u){if(r&&!u.ID&&!("Target"in u&&u.Target))return c;let f=_p(u,e,t,n,a,!0);return f&&c.push(f),c},s)),s}}o(wp,"getObjectPageFacetSection");var tl=o((e,t,n,a)=>{if(!t)return;let r=e,i=t.split("/");i.forEach(function(s){let l=a&&a===s?n:s.replace("??","/");if(!!r[l]){if(Object.keys(r[l]).length===0){Array.isArray(r)?r.splice(Number(l),1):delete r[l],i.pop(),tl(e,i.join("/"),n,a);return}r=r&&r[l]}})},"deleteEmptyStructure"),Ap=o(e=>`${e}`,"getGenericSchemaFileName"),Dt=o((e,t)=>{let n={filename:"",path:""};switch(e){case X.SchemaType.Application:{n.filename="App",n.path=`./${X.DirName.Schemas}/${n.filename}`;break}case X.SchemaType.ListReport:case X.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:Ap(e),n.path=`../${X.DirName.Schemas}/${n.filename}`;break}default:{n.filename=Ap(e),n.path=`../${X.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function ao(e,t,n){if(e===X.PageType.CustomPage){let r=n&&n.split(".");return r&&r[r.length-1]+"Page"}let a=[];return a.push(e),t&&a.push(t),a.join("_")}o(ao,"generatePageId");function kE(e,t,n,a){let r=e.$ref;if(r){let i=r.split(Y)[1];if(t.definitions[i]){let s=t.definitions[i].controlProperty;r.includes(n[s])&&a.push(i)}}}o(kE,"fillArrayFromAnyOfReference");function BE(e,t,n){let a=[];if(e.$ref)a.push(e.$ref.split(Y)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{kE(r,n,t,a)}),a.length===0))return;return a}o(BE,"fillArrayFromPropertyDefinition");function GE(e,t,n,a,r,i,s,l){var u,f,d,h;let c={configObject:void 0,targetDefinition:{},title:""};if(e.length){let p=e[e.length-1];if(c.targetDefinition=t.definitions[p],((u=c==null?void 0:c.targetDefinition)==null?void 0:u.$ref)||((f=c==null?void 0:c.targetDefinition)==null?void 0:f.type)==="array")return c=jn(t,n,a,c.targetDefinition,r,i,s),c;e.length>1&&e.forEach(E=>{E!==""&&(c.targetDefinition.properties=qe(qe({},c.targetDefinition.properties),t.definitions[E].properties))}),c.title=(d=c==null?void 0:c.targetDefinition)!=null&&d.title?c.targetDefinition.title:n;let m=p==null?void 0:p.split("<")[0],P=a||{};c.configObject=i.createInstance(s,m,P,(h=c==null?void 0:c.targetDefinition)==null?void 0:h.controlProperty)}else c.targetDefinition=l,c.title=c.targetDefinition.title?c.targetDefinition.title:r,c.configObject=a;return c}o(GE,"determineNextDefinitionFromDefinitionArray");function jn(e,t,n,a,r,i,s){let l;if(a.type==="array")return l=jn(e,t,n,a.items,r,i,s),l;let c=BE(a,n,e);if(!!c)return l=GE(c,e,t,n,r,i,s,a),l}o(jn,"getNextTargetDefinition");var rl=o((e,t,n)=>{let a=e.slice();return t.forEach((r,i)=>{typeof a[i]>"u"?a[i]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?a[i]=(0,xp.default)(e[i],r,n):e.indexOf(r)===-1&&a.push(r)}),a},"arrayCombineMerge");function Zt(e){return(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::")}o(Zt,"convertActionKeyToStableId");var ra=require("@sap-ux/vocabularies-types/vocabularies/UI"),ee=se(fe());var Ut=se(fe());var Ze=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),io=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),Vt=o((e,t)=>{let n,a=Ut.FacetTitlePrefix;return t!==void 0&&t.includes(a)?n=t.split(a)[1]:n=e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),n},"convertSectionId");function HE(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(HE,"escapeId");var Lp=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(Lp||{});function QE(e,t,n){let a;return e=e.map(function(r){if(r===Ut.PropertyName.sections){for(let i=0;i<t.length;i++)if(t[i]===Ut.PropertyName.sections&&(a=t[i+1],a.indexOf(Ut.FacetBase.LineItem)!==-1))return t[i+1]=Vt(a,n)+"::Table",t[i+1]}return r}),{idBreadcrumbs:e}}o(QE,"mapBreadcrumbs");var nl=o((e,t,n,a,r)=>{let i="listReport",s=[...n];({idBreadcrumbs:t}=QE(t,s,r)),s[0]===Ut.PropertyName.sections?i=s[1].replace(/::com.sap.vocabularies/g,Ut.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Ut.VOCWITHSLASH):t[0]===Ut.PropertyName.table&&(i=t[0]);let l=s[s.length-1].replace(/::com.sap.vocabularies/g,Ut.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Ut.VOCWITHSLASH).replace("sTarget/@","sTarget::@").replace("/",":2f"),c,u=l.indexOf(":::");return l.startsWith("DataField")&&u>-1?c=`${e}template:::TableColumn:::${l.substring(0,u)}:::sSmartTableId::${i.replace("::Table",":3a:3aTable")}:::${l.substring(u+3)}`:c=`${e}${t.join("::")}-${l}`,HE(c)},"buildColumnControlId"),mr=o(e=>{let t=e[e.length-1].split(":::"),n,a,r;return t.length>2?(n=t[0],a=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:a,actionId:r}},"getActionBreadcrumbParts");function qE(e){let t=Ut.BindingPropertyRegexAsString;if(e.enum){let n;e.enum.forEach(a=>{a.toString().startsWith("{")||(n=n?`${n}|${a.toString()}`:a.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(qE,"determinePattern");var $p=o((e,t,n,a)=>{let r=t&&t.properties;if(r[n].pattern)return;let i=r[n],s=i,l=i.$ref?e.definitions[i.$ref.split(Y)[1]]:i,c=i.description?i.description:l.description,u=qE(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),a&&s.enum&&a.forEach(f=>{s.enum.indexOf(f)===-1&&s.enum.push(f)}),r[n]={pattern:u,anyOf:[s,{type:"string"}]},c&&(r[n].description=c,delete i.description)},"addPatternForBindingChangeOfEnum"),Pa=o((e,t,n)=>{$p(e,t,n)},"addPatternForBindingChangeOfEnumLR"),Ke=o((e,t,n)=>{let a=Object.values(Lp);$p(e,t,n,a)},"addPatternForBindingChangeOfEnumOP");var Vp;(function(e){(function(t){var n=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),a=r(e);typeof n.Reflect>"u"?n.Reflect=e:a=r(n.Reflect,a),t(a);function r(i,s){return function(l,c){typeof i[l]!="function"&&Object.defineProperty(i,l,{configurable:!0,writable:!0,value:c}),s&&s(l,c)}}o(r,"makeExporter")})(function(t){var n=Object.prototype.hasOwnProperty,a=typeof Symbol=="function",r=a&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",i=a&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",s=typeof Object.create=="function",l={__proto__:[]}instanceof Array,c=!s&&!l,u={create:s?function(){return zt(Object.create(null))}:l?function(){return zt({__proto__:null})}:function(){return zt({})},has:c?function(I,$){return n.call(I,$)}:function(I,$){return $ in I},get:c?function(I,$){return n.call(I,$)?I[$]:void 0}:function(I,$){return I[$]}},f=Object.getPrototypeOf(Function),d=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",h=!d&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:_t(),p=!d&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Ot(),m=!d&&typeof WeakMap=="function"?WeakMap:$t(),P=new m;function E(I,$,k,K){if(ge(k)){if(!pe(I))throw new TypeError;if(!Je($))throw new TypeError;return re(I,$)}else{if(!pe(I))throw new TypeError;if(!ce($))throw new TypeError;if(!ce(K)&&!ge(K)&&!He(K))throw new TypeError;return He(K)&&(K=void 0),k=x(k),G(I,$,k,K)}}o(E,"decorate"),t("decorate",E);function T(I,$){function k(K,le){if(!ce(K))throw new TypeError;if(!ge(le)&&!je(le))throw new TypeError;Ee(I,$,K,le)}return o(k,"decorator"),k}o(T,"metadata"),t("metadata",T);function w(I,$,k,K){if(!ce(k))throw new TypeError;return ge(K)||(K=x(K)),Ee(I,$,k,K)}o(w,"defineMetadata"),t("defineMetadata",w);function F(I,$,k){if(!ce($))throw new TypeError;return ge(k)||(k=x(k)),j(I,$,k)}o(F,"hasMetadata"),t("hasMetadata",F);function V(I,$,k){if(!ce($))throw new TypeError;return ge(k)||(k=x(k)),U(I,$,k)}o(V,"hasOwnMetadata"),t("hasOwnMetadata",V);function R(I,$,k){if(!ce($))throw new TypeError;return ge(k)||(k=x(k)),te(I,$,k)}o(R,"getMetadata"),t("getMetadata",R);function M(I,$,k){if(!ce($))throw new TypeError;return ge(k)||(k=x(k)),oe(I,$,k)}o(M,"getOwnMetadata"),t("getOwnMetadata",M);function ae(I,$){if(!ce(I))throw new TypeError;return ge($)||($=x($)),ve(I,$)}o(ae,"getMetadataKeys"),t("getMetadataKeys",ae);function O(I,$){if(!ce(I))throw new TypeError;return ge($)||($=x($)),ue(I,$)}o(O,"getOwnMetadataKeys"),t("getOwnMetadataKeys",O);function B(I,$,k){if(!ce($))throw new TypeError;ge(k)||(k=x(k));var K=J($,k,!1);if(ge(K)||!K.delete(I))return!1;if(K.size>0)return!0;var le=P.get($);return le.delete(k),le.size>0||P.delete($),!0}o(B,"deleteMetadata"),t("deleteMetadata",B);function re(I,$){for(var k=I.length-1;k>=0;--k){var K=I[k],le=K($);if(!ge(le)&&!He(le)){if(!Je(le))throw new TypeError;$=le}}return $}o(re,"DecorateConstructor");function G(I,$,k,K){for(var le=I.length-1;le>=0;--le){var yt=I[le],Oe=yt($,k,K);if(!ge(Oe)&&!He(Oe)){if(!ce(Oe))throw new TypeError;K=Oe}}return K}o(G,"DecorateProperty");function J(I,$,k){var K=P.get(I);if(ge(K)){if(!k)return;K=new h,P.set(I,K)}var le=K.get($);if(ge(le)){if(!k)return;le=new h,K.set($,le)}return le}o(J,"GetOrCreateMetadataMap");function j(I,$,k){var K=U(I,$,k);if(K)return!0;var le=nt($);return He(le)?!1:j(I,le,k)}o(j,"OrdinaryHasMetadata");function U(I,$,k){var K=J($,k,!1);return ge(K)?!1:g(K.has(I))}o(U,"OrdinaryHasOwnMetadata");function te(I,$,k){var K=U(I,$,k);if(K)return oe(I,$,k);var le=nt($);if(!He(le))return te(I,le,k)}o(te,"OrdinaryGetMetadata");function oe(I,$,k){var K=J($,k,!1);if(!ge(K))return K.get(I)}o(oe,"OrdinaryGetOwnMetadata");function Ee(I,$,k,K){var le=J(k,K,!0);le.set(I,$)}o(Ee,"OrdinaryDefineOwnMetadata");function ve(I,$){var k=ue(I,$),K=nt(I);if(K===null)return k;var le=ve(K,$);if(le.length<=0)return k;if(k.length<=0)return le;for(var yt=new p,Oe=[],Pe=0,de=k;Pe<de.length;Pe++){var $e=de[Pe],Ve=yt.has($e);Ve||(yt.add($e),Oe.push($e))}for(var Sr=0,nr=le;Sr<nr.length;Sr++){var $e=nr[Sr],Ve=yt.has($e);Ve||(yt.add($e),Oe.push($e))}return Oe}o(ve,"OrdinaryMetadataKeys");function ue(I,$){var k=[],K=J(I,$,!1);if(ge(K))return k;for(var le=K.keys(),yt=Lt(le),Oe=0;;){var Pe=Ct(yt);if(!Pe)return k.length=Oe,k;var de=We(Pe);try{k[Oe]=de}catch($e){try{Or(yt)}finally{throw $e}}Oe++}}o(ue,"OrdinaryOwnMetadataKeys");function ie(I){if(I===null)return 1;switch(typeof I){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return I===null?1:6;default:return 6}}o(ie,"Type");function ge(I){return I===void 0}o(ge,"IsUndefined");function He(I){return I===null}o(He,"IsNull");function rt(I){return typeof I=="symbol"}o(rt,"IsSymbol");function ce(I){return typeof I=="object"?I!==null:typeof I=="function"}o(ce,"IsObject");function ze(I,$){switch(ie(I)){case 0:return I;case 1:return I;case 2:return I;case 3:return I;case 4:return I;case 5:return I}var k=$===3?"string":$===5?"number":"default",K=be(I,r);if(K!==void 0){var le=K.call(I,k);if(ce(le))throw new TypeError;return le}return y(I,k==="default"?"number":k)}o(ze,"ToPrimitive");function y(I,$){if($==="string"){var k=I.toString;if(me(k)){var K=k.call(I);if(!ce(K))return K}var le=I.valueOf;if(me(le)){var K=le.call(I);if(!ce(K))return K}}else{var le=I.valueOf;if(me(le)){var K=le.call(I);if(!ce(K))return K}var yt=I.toString;if(me(yt)){var K=yt.call(I);if(!ce(K))return K}}throw new TypeError}o(y,"OrdinaryToPrimitive");function g(I){return!!I}o(g,"ToBoolean");function L(I){return""+I}o(L,"ToString");function x(I){var $=ze(I,3);return rt($)?$:L($)}o(x,"ToPropertyKey");function pe(I){return Array.isArray?Array.isArray(I):I instanceof Object?I instanceof Array:Object.prototype.toString.call(I)==="[object Array]"}o(pe,"IsArray");function me(I){return typeof I=="function"}o(me,"IsCallable");function Je(I){return typeof I=="function"}o(Je,"IsConstructor");function je(I){switch(ie(I)){case 3:return!0;case 4:return!0;default:return!1}}o(je,"IsPropertyKey");function be(I,$){var k=I[$];if(k!=null){if(!me(k))throw new TypeError;return k}}o(be,"GetMethod");function Lt(I){var $=be(I,i);if(!me($))throw new TypeError;var k=$.call(I);if(!ce(k))throw new TypeError;return k}o(Lt,"GetIterator");function We(I){return I.value}o(We,"IteratorValue");function Ct(I){var $=I.next();return $.done?!1:$}o(Ct,"IteratorStep");function Or(I){var $=I.return;$&&$.call(I)}o(Or,"IteratorClose");function nt(I){var $=Object.getPrototypeOf(I);if(typeof I!="function"||I===f||$!==f)return $;var k=I.prototype,K=k&&Object.getPrototypeOf(k);if(K==null||K===Object.prototype)return $;var le=K.constructor;return typeof le!="function"||le===I?$:le}o(nt,"OrdinaryGetPrototypeOf");function _t(){var I={},$=[],k=function(){function Oe(Pe,de,$e){this._index=0,this._keys=Pe,this._values=de,this._selector=$e}return o(Oe,"MapIterator"),Oe.prototype["@@iterator"]=function(){return this},Oe.prototype[i]=function(){return this},Oe.prototype.next=function(){var Pe=this._index;if(Pe>=0&&Pe<this._keys.length){var de=this._selector(this._keys[Pe],this._values[Pe]);return Pe+1>=this._keys.length?(this._index=-1,this._keys=$,this._values=$):this._index++,{value:de,done:!1}}return{value:void 0,done:!0}},Oe.prototype.throw=function(Pe){throw this._index>=0&&(this._index=-1,this._keys=$,this._values=$),Pe},Oe.prototype.return=function(Pe){return this._index>=0&&(this._index=-1,this._keys=$,this._values=$),{value:Pe,done:!0}},Oe}();return function(){function Oe(){this._keys=[],this._values=[],this._cacheKey=I,this._cacheIndex=-2}return o(Oe,"Map"),Object.defineProperty(Oe.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Oe.prototype.has=function(Pe){return this._find(Pe,!1)>=0},Oe.prototype.get=function(Pe){var de=this._find(Pe,!1);return de>=0?this._values[de]:void 0},Oe.prototype.set=function(Pe,de){var $e=this._find(Pe,!0);return this._values[$e]=de,this},Oe.prototype.delete=function(Pe){var de=this._find(Pe,!1);if(de>=0){for(var $e=this._keys.length,Ve=de+1;Ve<$e;Ve++)this._keys[Ve-1]=this._keys[Ve],this._values[Ve-1]=this._values[Ve];return this._keys.length--,this._values.length--,Pe===this._cacheKey&&(this._cacheKey=I,this._cacheIndex=-2),!0}return!1},Oe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=I,this._cacheIndex=-2},Oe.prototype.keys=function(){return new k(this._keys,this._values,K)},Oe.prototype.values=function(){return new k(this._keys,this._values,le)},Oe.prototype.entries=function(){return new k(this._keys,this._values,yt)},Oe.prototype["@@iterator"]=function(){return this.entries()},Oe.prototype[i]=function(){return this.entries()},Oe.prototype._find=function(Pe,de){return this._cacheKey!==Pe&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=Pe)),this._cacheIndex<0&&de&&(this._cacheIndex=this._keys.length,this._keys.push(Pe),this._values.push(void 0)),this._cacheIndex},Oe}();function K(Oe,Pe){return Oe}function le(Oe,Pe){return Pe}function yt(Oe,Pe){return[Oe,Pe]}}o(_t,"CreateMapPolyfill");function Ot(){return function(){function I(){this._map=new h}return o(I,"Set"),Object.defineProperty(I.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),I.prototype.has=function($){return this._map.has($)},I.prototype.add=function($){return this._map.set($,$),this},I.prototype.delete=function($){return this._map.delete($)},I.prototype.clear=function(){this._map.clear()},I.prototype.keys=function(){return this._map.keys()},I.prototype.values=function(){return this._map.values()},I.prototype.entries=function(){return this._map.entries()},I.prototype["@@iterator"]=function(){return this.keys()},I.prototype[i]=function(){return this.keys()},I}()}o(Ot,"CreateSetPolyfill");function $t(){var I=16,$=u.create(),k=K();return function(){function de(){this._key=K()}return o(de,"WeakMap"),de.prototype.has=function($e){var Ve=le($e,!1);return Ve!==void 0?u.has(Ve,this._key):!1},de.prototype.get=function($e){var Ve=le($e,!1);return Ve!==void 0?u.get(Ve,this._key):void 0},de.prototype.set=function($e,Ve){var Sr=le($e,!0);return Sr[this._key]=Ve,this},de.prototype.delete=function($e){var Ve=le($e,!1);return Ve!==void 0?delete Ve[this._key]:!1},de.prototype.clear=function(){this._key=K()},de}();function K(){var de;do de="@@WeakMap@@"+Pe();while(u.has($,de));return $[de]=!0,de}function le(de,$e){if(!n.call(de,k)){if(!$e)return;Object.defineProperty(de,k,{value:u.create()})}return de[k]}function yt(de,$e){for(var Ve=0;Ve<$e;++Ve)de[Ve]=Math.random()*255|0;return de}function Oe(de){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(de)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(de)):yt(new Uint8Array(de),de):yt(new Array(de),de)}function Pe(){var de=Oe(I);de[6]=de[6]&79|64,de[8]=de[8]&191|128;for(var $e="",Ve=0;Ve<I;++Ve){var Sr=de[Ve];(Ve===4||Ve===6||Ve===8)&&($e+="-"),Sr<16&&($e+="0"),$e+=Sr.toString(16).toLowerCase()}return $e}}o($t,"CreateWeakMapPolyfill");function zt(I){return I.__=void 0,delete I.__,I}o(zt,"MakeDictionary")})})(Vp||(Vp={}));var Rp=Symbol("specificationMetadataKey"),b=o(e=>Reflect.metadata(Rp,e),"syncRule");function Qt(e,t){let n;return e&&(n=Reflect.getMetadata(Rp,e,t)),n}o(Qt,"getReflectMetadata");var gn=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),jp=Symbol("childId"),St=o(e=>Reflect.metadata(jp,e),"childId"),Mp=o((e,t)=>Reflect.getMetadata(jp,e,t),"getChildId"),oo=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),KE=Symbol("validityMetadataKey"),q=o(e=>Reflect.metadata(KE,e),"validity");function so(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(so,"getTextForDeprecated");var Kp=se(Qp()),Jp=se(fe()),Wp=Kp.default.change,qp={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function zp(e,t){let n="";try{for(let a in qp)e[a]===void 0&&(e[a]=qp[a]);n=Wp.createChangeString(e,t)}catch(a){console.error("Error while create flex change.",a)}return n}o(zp,"createChangeString");function mn(e){try{return Wp.parse(e)}catch{return!1}}o(mn,"parseChangeString");function Xp(e,t,n,a,r){let i=n.layer?n.layer===Jp.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:a},sapui5Version:n.ui5Version,isCustomer:i};return e[a]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,a):e[a].toString().startsWith("{")?(s.content.newBinding=e[a],s.type="propertyBindingChange"):s.content.newValue=e[a]:s.content.newValue=null,s}o(Xp,"fillFlexChangeContent");function W(e,t){return zp(e,t)}o(W,"exportToFlexChange");var Mn=se(fe());function lo(e,t,n,a,r,i){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let c=l(t,r,n,i);c!==void 0&&(a[n]=c)}else t[s]!==void 0&&(a[n]=t[s])}o(lo,"importProperty");function Yp(e,t,n,a){if(t&&e)for(let r in t){let i=e[r];i&&(Ie(a,{severity:Mn.LogSeverity.Warning,message:so(r,i),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Yp,"checkDeprecatedProperties");function al(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(Y)[1]];return al(n,t)}else return e.title?e.title.startsWith(Mn.FacetTitlePrefix)?e.title.split(Mn.FacetTitlePrefix)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(al,"getSectionTitle");function co(e){let t=e.split(`${Mn.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(co,"getTargetFromCustomColumnRef");var et=require("@sap-ux/vocabularies-types/vocabularies/UI");var Zr=require("@sap-ux/vocabularies-types/vocabularies/UI");function ed(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/\/|@|\(|\)|#|\*/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(ed,"replaceSpecialChars");function eP(e){return e=e.replace("com.sap.vocabularies.UI.v1.",""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(eP,"removeNamespaces");var Un=o(function(e){return ed(eP(e))},"prepareId");function tP(e){let t="";for(let n of e.Apply.Path)n._text&&(t&&(t+="::"),t+=n._text);return t}o(tP,"evaluateConcat");function kn(e){var t;if((e==null?void 0:e.$Path)||(e==null?void 0:e.path))return e.$Path||e.path;if(((t=e==null?void 0:e.Apply)==null?void 0:t._attributes.Function)==="odata.concat")return tP(e);if(e&&typeof e=="string")return ed(e.replace(/ /g,"_"))}o(kn,"getStableIdPartFromValue");var Zp=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),td=o(function(e){let t="";if(e.$Type&&e.$Type===Zr.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,Un(t);if(e.$Type&&e.$Type===Zr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=Zp(e),t;if(e.$Type&&e.$Type===Zr.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=Un(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===Zr.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=kn(e.Value)+"::"),t+=e.Action,Un(t);if(e.$Type&&e.$Type===Zr.UIAnnotationTypes.DataField)return t="DataField::",t+=kn(e.Value),Un(t);if(e.$Type&&e.$Type===Zr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=kn(e.Value)+"::",t+=Zp(e),Un(t);if(e.$Type&&e.$Type===Zr.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=kn(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),Un(t);if(e.$Type&&e.$Type===Zr.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=kn(e.Value),Un(t)},"getStableIdPartFromDataField");var nd=se(fe()),Q=se(fe());function rP(e,t,n,a){if(e===Q.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case et.UIAnnotationTypes.DataField:case et.UIAnnotationTypes.DataFieldForAnnotation:case et.UIAnnotationTypes.DataFieldWithNavigationPath:case et.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[a].properties=t.definitions.Field.properties;break}}else if(e===Q.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case et.UIAnnotationTypes.DataField:case et.UIAnnotationTypes.DataFieldForAnnotation:case et.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[a].properties=t.definitions.Field.properties;break}}}o(rP,"copyFieldProperties");function nP(e,t,n,a){let r=e===Q.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===Q.FioriElementsVersion.v2?`${r}<${n}::${a}>`:`${n}::${a}`}o(nP,"determineFieldDefinitionName");function aP(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][Q.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][Q.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.targetString.split("/")[0]):typeof e.Value=="string"&&e.Value&&(t.definitions[n][Q.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][Q.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(aP,"addKeysTagForDataField");function iP(e,t,n){if(e.$Type===et.UIAnnotationTypes.DataField||e.$Type===et.UIAnnotationTypes.DataFieldWithUrl||e.$Type===et.UIAnnotationTypes.DataFieldWithNavigationPath)aP(e,t,n);else if(e.$Type===et.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][Q.SchemaTag.keys]=[{name:"Target",value:e.Target.value}],t.definitions[n][Q.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===et.UIAnnotationTypes.DataFieldForAction){let a=e.Action.lastIndexOf(".");a===-1?t.definitions[n][Q.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][Q.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(a+1,e.Action.length)}],t.definitions[n][Q.SchemaTag.target]=e.Action.substring(0,a))}else e.$Type===et.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][Q.SchemaTag.keys]=[{name:"SemanticObject",value:e.SemanticObject}],e.Action&&t.definitions[n][Q.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][Q.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(iP,"addKeysTagToField");function rd(e,t,n,a,r,i,s,l=!0){var d;let c=td(n),u=s===Q.FioriElementsVersion.v2&&c&&c.includes("::")?c.split("::").splice(1).join("::"):c,f=nP(s,c,a,u);if(!(!n||!n.$Type)){if(n.$Type===et.UIAnnotationTypes.DataFieldForAction||n.$Type===et.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===Q.SectionType.Section){let h=ut(`${e}${Q.DefinitionName.Actions}<${a}>`),p=t.definitions[h].properties[u]={$ref:`${Y}${f}`};p[Q.SchemaTag.propertyIndex]=parseInt(r)}}else{let h=ut(`${e}${Q.DefinitionName.Fields}<${a}>`);t.definitions[h].properties[u]={$ref:`${Y}${f}`,propertyIndex:parseInt(r)}}t.definitions[f]={type:"object",properties:{},description:Za(n,i.entityType),additionalProperties:!1},iP(n,t,f),t.definitions[f][Q.SchemaTag.annotationPath]=`/${i.entityType.fullyQualifiedName}/${n.fullyQualifiedName.split(i.entityType.fullyQualifiedName)[1]}`,t.definitions[f][Q.SchemaTag.annotationType]=n.$Type,t.definitions[f][Q.SchemaTag.isViewNode]=!0,uo(t.definitions[f],n),rP(s,t,n,f),n.$Type===et.UIAnnotationTypes.DataFieldForAction&&((d=t.definitions)==null?void 0:d.FormAction)&&(t.definitions[f].properties=t.definitions[Q.DefinitionName.FormAction].properties)}}o(rd,"addField");function oP(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}o(oP,"determineTargetIdOfForm");function sP(e,t,n,a,r,i=!0){var u;if(!e.target)return;let s=ut(`${t}${Q.DefinitionName.Form}<${a}>`),l=ut(`${t}${Q.DefinitionName.Fields}<${a}>`),c=ut(`${t}${Q.DefinitionName.Actions}<${a}>`);if(n.properties.form={$ref:`${Y}${s}`},t===Q.SectionType.Section&&i?(n.definitions[s]={type:"object",properties:{actions:{$ref:`${Y}${c}`},fields:{$ref:`${Y}${l}`}},description:"Form",additionalProperties:!1},n.definitions[c]={type:"object",properties:{},description:"Actions",additionalProperties:!1},n.definitions[c][Q.SchemaTag.isViewNode]=!0):n.definitions[s]={type:"object",properties:{fields:{$ref:`${Y}${l}`}},description:"Form",additionalProperties:!1},n.definitions[s][Q.SchemaTag.isViewNode]=!0,(u=e.entityType)!=null&&u.name&&(n.definitions[s][Q.SchemaTag.annotationPath]=Vn(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier)),n.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},n.definitions[l][Q.SchemaTag.isViewNode]=!0,e.base===Q.FacetBase.Identification)for(let f in e.target){let d=e.target[f];d&&rd(t,n,d,a,f,e,r,i)}else for(let f in e.target.Data){let d=e.target.Data[f];rd(t,n,d,a,f,e,r)}}o(sP,"addFieldsToFormDefinition");function lP(e,t,n){var a;if(e.target){let r=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][Q.SchemaTag.keys]=[{name:nd.SchemaKeyName.target,value:r.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][Q.SchemaTag.target]=e.target.fullyQualifiedName.split("@")[0]}t.definitions[n][Q.SchemaTag.isViewNode]=!0,(a=e.entityType)!=null&&a.name&&(t.definitions[n][Q.SchemaTag.annotationPath]=Vn(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(lP,"addTagsToFormDefinition");function ad(e,t,n,a,r,i){if(!t.target)return;let s=oP(t),l=ut(`${e}${Q.DefinitionName.Form}<${s}>`),c=ut(`${e}${Q.DefinitionName.Fields}<${s}>`),u=ut(`${e}${Q.DefinitionName.Actions}<${s}>`),f=!(t.base===Q.FacetBase.Identification&&i.indexOf("#")<0);return n.properties.form={$ref:`${Y}${l}`},e===Q.SectionType.Section&&f?(a.definitions[l]={type:"object",properties:{actions:{$ref:`${Y}${u}`},fields:{$ref:`${Y}${c}`}},description:"Form",additionalProperties:!1},a.definitions[u]={type:"object",properties:{},description:"Actions",additionalProperties:!1},a.definitions[u][Q.SchemaTag.isViewNode]=!0):a.definitions[l]={type:"object",properties:{fields:{$ref:`${Y}${c}`}},description:"Form",additionalProperties:!1},lP(t,a,l),a.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},a.definitions[c][Q.SchemaTag.isViewNode]=!0,sP(t,e,a,s,r,f),s}o(ad,"handleForm");function cP(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,a=e;if(n&&t){let r=n.replace("SAP__",""),i=t.references.find(s=>s.alias===r);i&&(a=e.replace(n,i.namespace))}return a}o(cP,"replaceAlias");function il(e,t){let n=cP(e.Action,t),a=n,r=n.indexOf("(");r>0&&(a=n.substring(0,r)),r=a.lastIndexOf("/"),r===-1&&(r=a.lastIndexOf("."));let i,s,l;return r>-1?(i=a.substring(r+1),l=a.substring(0,r),s=`${a.substring(0,r)}::${i}`):(i=a,l=e.fullyQualifiedName.split("@")[0],i&&i!==""&&(s=`${l.substring(0,l.length-1)}::${i}`)),{actionName:i,actionId:s,namespace:l}}o(il,"getActionNameAndId");function id(e,t){var s,l;e.definitions[Q.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${Q.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${Y}${Q.DefinitionName.ObjectPageFooter}`},e.definitions[Q.DefinitionName.ObjectPageFooter].properties[Q.PropertyName.actions]={$ref:`${Y}${Q.DefinitionName.FooterActions}`};let n=e.definitions[Q.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};n[Q.SchemaTag.isViewNode]=!0;let a=Yr(Q.UIVOCABULARY,t.serviceAVT),r=t.entitySet.entityType,i=a&&((l=(s=r.annotations)==null?void 0:s[a])==null?void 0:l.Identification);if(i){let c=i.fullyQualifiedName.replace(`@${et.UIAnnotationTerms.Identification}`,`/@${et.UIAnnotationTerms.Identification}`);n[Q.SchemaTag.annotationPath]=`/${c}`,i.forEach((u,f)=>{if(u.Determining&&u.$Type===et.UIAnnotationTypes.DataFieldForAction){let{actionName:d,actionId:h}=il(u,t.serviceAVT),p=u.Label||d,m=ut(`${Q.DefinitionName.ObjectPageFooterAction}<${h}>`);e.definitions[Q.DefinitionName.ObjectPageFooterAction]?e.definitions[m]=Rt(qe({},JSON.parse(JSON.stringify(e.definitions[Q.DefinitionName.ObjectPageFooterAction]))),{description:p,annotationPath:`/${c}/${f}`}):(e.definitions[m]={type:"object",properties:{},description:p},e.definitions[m][Q.SchemaTag.isViewNode]=!0,e.definitions[m][Q.SchemaTag.annotationPath]=`/${c}/${f}`),n.properties[h]={$ref:`${Y}${m}`}}})}else n[Q.SchemaTag.annotationPath]=`/${r.fullyQualifiedName}/@${et.UIAnnotationTerms.Identification}`;delete e.definitions[Q.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${Q.DefinitionName.ObjectPageFooter}<${Q.DefinitionName.ObjectPageFooterActions}>`]}o(id,"addFooterActions");function od(e,t,n,a){e.definitions[Q.DefinitionName.ObjectPageHeader].properties[Q.PropertyName.actions]={$ref:`${Y}${Q.DefinitionName.HeaderActions}`};let r=e.definitions[Q.DefinitionName.HeaderActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};r[Q.SchemaTag.isViewNode]=!0;let i=Yr(Q.UIVOCABULARY,n),s=i&&t.annotations&&t.annotations[i]&&t.annotations[i].Identification;s?(r[Q.SchemaTag.annotationPath]="/"+s.fullyQualifiedName.replace(`@${et.UIAnnotationTerms.Identification}`,`/@${et.UIAnnotationTerms.Identification}`),s.forEach(a(t,e,s,r,n))):r[Q.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${et.UIAnnotationTerms.Identification}`,delete e.definitions[Q.DefinitionName.GenericActions],delete e.definitions[`${Q.DefinitionName.ObjectPageHeader}<${Q.DefinitionName.GenericActions}>`]}o(od,"addHeaderActions");function sd(e,t){e.properties.header={$ref:`${Y}${Q.DefinitionName.ObjectPageHeader}`},e.definitions[Q.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${Q.DefinitionName.ObjectPageHeader}<${Q.DefinitionName.GenericActions}>`])),e.definitions[Q.DefinitionName.ObjectPageHeader][Q.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${et.UIAnnotationTerms.HeaderInfo}`}o(sd,"addCommonHeaderSchema");function ld(e,t){return e.entityType?t.entitySets.find(n=>n.entityType.name===e.entityType.name||n.name===e.entityType.name):void 0}o(ld,"determineEntitySetOfFacet");var Ir=require("@sap-ux/vocabularies-types/vocabularies/UI");var ft=se(fe());function cd(e,t,n){var i;let a=(i=e==null?void 0:e.annotations)==null?void 0:i.UI;if(!a)return;let r=[];for(let s in a){let l=a[s];if(t.indexOf(l.term)>-1){let c=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(c)===-1&&r.push(c)}}r.length>0&&(n.enum=r)}o(cd,"addEnumForValidAnnotations");function po(e,t,n){let a=t.definitions[n].properties.annotationPath,r=[Ir.UIAnnotationTerms.SelectionVariant,Ir.UIAnnotationTerms.SelectionPresentationVariant];cd(e,r,a)}o(po,"addEnumForSingleTabVariant");function ud(e,t,n){var i;let a=(i=e.definitions[t])==null?void 0:i.properties.annotationPath,r=[Ir.UIAnnotationTerms.SelectionVariant,Ir.UIAnnotationTerms.SelectionPresentationVariant];cd(n.entityType,r,a)}o(ud,"addEnumForMultiTabVariant");function fd(e,t,n){let a=t.definitions[n].properties.entitySet,r=[];!e||(e.entitySets.forEach(i=>{r.push(i.name)}),r.length>0&&(a.enum=r))}o(fd,"addEnumForVariantEntitySet");function pd(e,t,n,a){let r=n.map(i=>{let s=a.find(c=>!!i[c]),l=i[s];return qe(qe({const:l},i.label&&{description:i.label}),i.custom&&{custom:i.custom})});if(r.length){e.definitions.RelatedFacetKeys={type:"string",oneOf:r};for(let i of t){let s=e.definitions[i],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{$ref:Y+"RelatedFacetKeys"},l]}}}}o(pd,"addDefinitionForRelatedFacetKeys");function uP(e){return e.replace("#","::")}o(uP,"getFacetKeyInSchema");function dd(e,t){return`${e}<${uP(t)}>`}o(dd,"getFacetDefinitionKey");function fP(e,t,n,a=!0,r){let i=t;if(a&&(i=dd(r||e,t)),e&&e!==i){let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[i]=s}return n.definitions[i]}o(fP,"parseSchemaDefinition");function gd(e,t,n,a){let r;e.definitions[a]={type:"object",properties:{},description:"Columns"},e.definitions[a].additionalProperties=!1,e.definitions[a][ft.SchemaTag.isViewNode]=!0;let i=a.startsWith(ft.DefinitionName.LineItems)?"ToolBar":"ObjectPageToolBar",s=`${i}<${a}>`;e.definitions[s]=JSON.parse(JSON.stringify(e.definitions[`${i}`]));let l=`Actions<${ut(a)}>`;e.definitions[s].properties.actions.$ref=Y+l;let c=a.startsWith(ft.DefinitionName.LineItems)?"Actions":"ObjectPageToolBarActions",u=e.definitions[l]=JSON.parse(JSON.stringify(e.definitions[c]));u.properties={},u.additionalProperties=!1;let f,d;if(a===ft.DefinitionName.LineItems&&e.properties.footer){d=`Footer<${a}>`,e.properties.footer.$ref=Y+d,e.definitions[d]=JSON.parse(JSON.stringify(e.definitions.GenericFooter));let h=`FooterActions<${ut(a)}>`;e.definitions[d].properties.actions.$ref=Y+h,f=e.definitions[h]=JSON.parse(JSON.stringify(e.definitions.Actions)),f.properties={},f.additionalProperties=!1}return t&&(r=Vn(n.fullyQualifiedName,t.term,t.qualifier),e.definitions[a][ft.SchemaTag.annotationPath]=e.definitions[s][ft.SchemaTag.annotationPath]=r,f&&(e.definitions[d][ft.SchemaTag.annotationPath]=r)),{actions:u,footerActions:f,lineItemPath:r}}o(gd,"addCommonLineItemDefinitions");function pP(e){var a,r;let t,n=e.Target.$target;return n.Value?n.Visualization==="UI.VisualizationType/Rating"?t="Rating":n.Visualization==="UI.VisualizationType/Progress"?t="Progress":n.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(r=(a=n.Value)==null?void 0:a.$target)==null?void 0:r.type.replace("Edm.",""):n.$Type==="com.sap.vocabularies.Communication.v1.ContactType"?t="Contact":n.$Type==="com.sap.vocabularies.Communication.v1.AddressType"?t="Address":n.$Type==="com.sap.vocabularies.UI.v1.ChartDefinitionType"?t="Chart":n.$Type==="com.sap.vocabularies.UI.v1.FieldGroupType"&&(t="FieldGroup"),t}o(pP,"determineDataTypeOfTarget");function ol(e){var n;let t;return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=pP(e):e.$target?t=e.$target.type.replace("Edm.",""):e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"?t="Action":e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithUrl"?t="Url":e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation"?t="IntentBasedNavigation":e.type&&(t=e.type),t}o(ol,"determineDataType");function uo(e,t){let n=ol(t);n&&(e[ft.SchemaTag.dataType]=n)}o(uo,"addDataTypeToDefinition");function dP(e,t){return`${Y}${dd(e,t)}`}o(dP,"getFacetDefinitionLink");function sl(e,t,n,a,r,i,s=""){let l=`ObjectPage${r}${e.base}${s}`,c=`ObjectPage${i}${e.base}${s}`;n.properties[t]={$ref:dP(i?c:l,t)};let u=fP(i?c:l,t,a,!0,i?c:void 0);ei(e,u,t),u[ft.SchemaTag.annotationPath]=e.annotationPath,u[ft.SchemaTag.isViewNode]=!0}o(sl,"handleAddressContact");function fo(e,t){let n=e,a;return n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf("/")>0&&(a=n.substring(0,n.indexOf("/")),n=n.substring(n.lastIndexOf("/")+1)),t&&n.indexOf(".")>0&&(a=n.substring(0,n.lastIndexOf(".")),n=n.substring(n.lastIndexOf(".")+1)),a||(a=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:a}}o(fo,"getActionKey");function md(e,t,n){if(e.Value)t[n][ft.SchemaTag.keys]=[{name:ft.SchemaKeyName.value,value:kn(e.Value)}];else if(e.$Type===Ir.UIAnnotationTypes.DataFieldWithAction||e.$Type===Ir.UIAnnotationTypes.DataFieldForAction){let{key:a,ns:r}=fo(e.Action,!0);t[n][ft.SchemaTag.keys]=[{name:ft.SchemaKeyName.action,value:a}],r&&(t[n][ft.SchemaTag.target]=r)}else if(e.$Type===Ir.UIAnnotationTypes.DataFieldForAnnotation){let{key:a}=fo(e.Target.value,!1);t[n][ft.SchemaTag.keys]=[{name:ft.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t[n][ft.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0]}else if(e.$Type===Ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Ir.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let a=n.split("::");t[n][ft.SchemaTag.keys]=[{name:"Property",value:a[a.length-1]},{name:"SemanticObject",value:e.SemanticObject},{name:"Action",value:e.Action}]}}o(md,"addKeyToDefinition");var Vl=require("@sap-ux/vocabularies-types/vocabularies/UI"),Ce=se(fe());var wr=se(fe());var lr=se(fe());var Ca=class{constructor(t,n,a,r,i,s,l){this.unhandledControllers=[];let c=Dt(lr.SchemaType.Application);this.app=qe({$schema:c.path,id:t["sap.app"].id,pages:r,home:a,target:{fioriElements:i,odata:i===lr.FioriElementsVersion.v2?lr.OdataVersion.v2:lr.OdataVersion.v4}},s&&{settings:s}),this.schemas=n,this.logger=l}createConfigFiles(){let t={},n={},a;for(let i in this.app.pages)if(a=this.app.pages[i],a.config){let s=a.config;if(a.pageType!==lr.PageType.CustomPage){let l=Dt(a.pageType,a.entitySet);if(this.schemas[l.filename])s.$schema=l.path;else{let c=Dt(a.pageType);s.$schema=c.path}t[`${lr.DirName.Pages}/${i}.json`]=s}}let r=JSON.parse(JSON.stringify(this.app));for(let i in r.pages)delete r.pages[i].config;return n[lr.FileName.App]=r,{appConfig:n,pageConfigs:t}}};o(Ca,"AppProvider");var Se=se(fe());var Bn=se(fe());function go(e,t,n){if(t.controlType.endsWith(Bn.DefinitionName.Table))e[t.propertyId]=t.newValue;else if(t.controlType===Bn.ControlType.TableColumn){if(!(n==null?void 0:n.definitions[Bn.DefinitionName.TableColumn]).properties[t.propertyId])return;let r=t.controlId.split("-"),s=r[r.length-1].split("template:::TableColumn:::"),l=s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Bn.VOCWITHCOLONS).replace("/",":2f");e.columns||(e.columns={}),e.columns[l]||(e.columns[l]={}),e.columns[l][t.propertyId]=t.newValue}}o(go,"addFlexForTable");var Oa=se(fe()),Tt=o((e,t)=>{let n=e;return t.split("/").forEach(function(a){n[a]||(n[a]={}),n=n&&n[a]}),n||{}},"ensureManifestSectionByPathV2"),hd=o((e,t)=>{let n=e,a=t.split("/");for(let r of a){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2");var vd=o((e,t)=>{let n=e;for(let a=0;a<t.split("/").length;a++){let r=t.split("/")[a];a===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function ll(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(ll,"getNewPageTemplate");function gP(e,t,n){if(!!e)for(let a in e){let r=e[a];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(gP,"findPageInManifest");function mP(e,t,n){if(!!e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=ll(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:ll(e[t].pageType)}),!Array.isArray(n.pages))){let a=gP(n.pages,e[t].entitySet,e[t].navigationProperty);a||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=a=ll(e[t].pageType)),cl(t,e,a)}}o(mP,"transformPageFromAssociation");function hP(e,t,n){e.pages&&Object.keys(e.pages).forEach(a=>{let r=e.pages[a];if(r.component.name===Oa.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let i=`ObjectPage_${r.entitySet}`;t[i]||delete e.pages[a]}}),(n.pageType===Oa.PageType.ListReport||n.pageType===Oa.PageType.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(hP,"deletePage");function cl(e,t,n){let a=t[e];if(!!a&&(a.entitySet&&(n.entitySet=a.entitySet),a.pageType===Oa.PageType.ListReport&&(n.component.list=!0),a.navigationProperty&&(n.navigationProperty=a.navigationProperty),a.defaultLayoutType?n.defaultLayoutType=a.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,a.navigation)){for(let r in a.navigation)mP(t,r,n);Array.isArray(n.pages)||hP(n,t,a)}}o(cl,"transformPageToNewManifestV2");var qd=se(za());var Fl={};Ri(Fl,{ALPAnalyticalTable:()=>Cl,ALPGridTable:()=>Pl,ALPResponsiveTable:()=>Oo,Action:()=>Hn,AnalyticalCard:()=>hr,AnalyticalListPageFilterBar:()=>ri,AnalyticalTable:()=>Dr,BaseCustomSection:()=>ln,ChartSettings:()=>Kn,CommonCardSettings:()=>At,CommonTableSettings:()=>ht,CreateWithFilters:()=>Co,CustomCard:()=>Be,FRAGMENT_DEFINITION:()=>Ur,Field:()=>ho,FieldForAction:()=>vn,FooterAction:()=>qn,FormAction:()=>hn,GridTable:()=>Ta,HeaderAction:()=>bn,KPISettings:()=>sn,LinklistCard:()=>gt,ListCard:()=>Bt,ListReportFilterBar:()=>_r,ObjectPageAnalyticalTable:()=>vi,ObjectPageCommonTableSettings:()=>Nt,ObjectPageCustomSectionFragment:()=>Xn,ObjectPageCustomSectionView:()=>Yn,ObjectPageFooterAction:()=>En,ObjectPageGridTable:()=>yi,ObjectPageHeader:()=>Wn,ObjectPageLayout:()=>zn,ObjectPageResponsiveTable:()=>Nr,ObjectPageSectionAddressV2:()=>No,ObjectPageSectionChartV2:()=>_o,ObjectPageSectionContactV2:()=>wo,ObjectPageSectionFormV2:()=>Fo,ObjectPageSectionTableV2:()=>Do,ObjectPageSectionV2:()=>Io,ObjectPageSubSectionAddressV2:()=>Ro,ObjectPageSubSectionChartV2:()=>Vo,ObjectPageSubSectionContactV2:()=>jo,ObjectPageSubSectionFormV2:()=>$o,ObjectPageSubSectionTableV2:()=>Mo,ObjectPageSubSectionV2:()=>Lo,ObjectPageToolBarAction:()=>Pn,ObjectPageTreeTable:()=>bi,QuickVariantSelection:()=>oi,QuickVariantSelectionOP:()=>hi,QuickVariantSelectionX:()=>Sa,ResponsiveTable:()=>ur,SAP_UI_TABLE:()=>vo,StackCard:()=>Fr,TableALP:()=>yr,TableCard:()=>Gt,TableColumn:()=>ui,TableColumnAction:()=>Br,TableColumnActionIntentBased:()=>on,TableCustomColumn:()=>Al,ToolBar:()=>xl,ToolBarAction:()=>Qn,TreeTable:()=>si,buildIntentBasedActionId:()=>Sl,deleteColumnFromFragment:()=>Eo,deleteType:()=>xa,exportCustomColumnsToFragment:()=>El,exportType:()=>Aa,getChartSectionControlId:()=>Bd,getCustomColumnPath:()=>Po,getFormSectionControlId:()=>kd,getRootCustomColumnFromFragmentJSON:()=>ii,getSectionControlId:()=>Zn,getSmartChartControlId:()=>pi,getSmartTableControlId:()=>an,getSubSectionControlId:()=>Uo,getTableSectionControlId:()=>Ud});var kt=se(fe()),De=o(e=>`${kt.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),mo=o(e=>De(e)+"/tableSettings","getTableSettingPathV2");var er=o(()=>kt.ManifestSection.ovp,"getOVPsettingPath"),H=o(e=>{let t=[kt.ManifestSection.ovp+"/cards"];return e.forEach(n=>{n in kt.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath"),yd=o(e=>{let t=[kt.ManifestSection.ovp];return e.forEach(n=>{t.push(n)}),t.pop(),t.join("/")},"getGlobalSettingsPath"),en=o(e=>{let t=["sap.ui.generic.app"];return e.forEach(n=>{t.push("pages/"+n)}),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Gn=o((e,t)=>`${kt.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),vP=o(e=>{let t=[kt.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),jr=o((e,t,n)=>{let a=[];a.push(vP(e));let r=n.replace(kt.VOCWITHCOLONS,"::com.sap.vocabularies");return a.push("component/settings/sections/"+r),a.join("/")},"getAppSettingOBJsectionPathV2"),tn=o((e,t,n)=>jr(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2");var ul=o(()=>`sap.ui5/extends/extensions/${kt.v2.SAPUI5_VIEW_EXTENSION}/${kt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),rn=o((e,t,n,...a)=>{let r="|",i=n.split(r),s=e[e.length-1].split(r),l="";i.length===4?l=[i[2],i[3]].join(r):i.length===3&&(l=i[2]);let c=[i[0],s[s.length-1],l].join(r);return a.unshift(c),`${ul()}/${a.join("/")}`},"getObjectPageCustomSectionPath"),ti=class{};o(ti,"ApplicationV2"),v([St("settings")],ti.prototype,"settings",2);var cr=class{};o(cr,"AppSettings"),v([b({manifest:{path:()=>"sap.app"}})],cr.prototype,"title",2),v([b({manifest:{path:()=>"sap.app"}})],cr.prototype,"description",2),v([b({manifest:{path:()=>kt.GENERICAPPSETTINGS}}),q({since:"1.50.0"})],cr.prototype,"flexibleColumnLayout",2),v([b({manifest:{path:()=>kt.GENERICAPPSETTINGS}}),q({since:"1.46.0"})],cr.prototype,"forceGlobalRefresh",2),v([b({manifest:{path:()=>"sap.ui5"}}),q({since:"1.56.0"})],cr.prototype,"flexEnabled",2);var At=class{};o(At,"CommonCardSettings"),v([b({manifest:{path:t=>H(t)}})],At.prototype,"entitySet",2),v([b({manifest:{path:t=>H(t)}})],At.prototype,"title",2),v([b({manifest:{path:t=>H(t)}})],At.prototype,"subTitle",2),v([b({manifest:{path:t=>H(t)}})],At.prototype,"identificationAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],At.prototype,"selectionAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],At.prototype,"presentationAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],At.prototype,"defaultSpan",2),v([b({manifest:{path:t=>H(t)}})],At.prototype,"requireAppAuthorization",2),v([b({manifest:{path:t=>H(t)}})],At.prototype,"tabs",2),v([b({manifest:{path:t=>H(t)}})],At.prototype,"addODataSelect",2);var Be=class extends At{};o(Be,"CustomCard"),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"model",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"template",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"settings",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"itemText",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"valueSelectionInfo",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"staticContent",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"listFlavor",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"listType",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"sortBy",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"sortOrder",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"annotationPath",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"chartAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"dataPointAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"kpiAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"selectionPresentationAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"dynamicSubtitleAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"ignoreSapText",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"objectStreamCardsSettings",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"enableLocaleCurrencyFormatting",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"navigation",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"showFilterInHeader",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"showSortingInHeader",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"imageSupported",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"showLineItemDetail",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"showLabelText",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"customParams",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"chartProperties",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"colorPalette",2);var Bt=class extends At{};o(Bt,"ListCard"),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"model",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"template",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"settings",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"listCardSettings",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"listFlavor",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"listType",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"annotationPath",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"valueSelectionInfo",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"sortBy",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"sortOrder",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"dataPointAnnotationPath",2);var hr=class extends At{};o(hr,"AnalyticalCard"),v([b({manifest:{path:t=>H(t)}})],hr.prototype,"model",2),v([b({manifest:{path:t=>H(t)}})],hr.prototype,"template",2),v([b({manifest:{path:t=>H(t)}})],hr.prototype,"settings",2),v([b({manifest:{path:t=>H(t)}})],hr.prototype,"analyticalCardSettings",2),v([b({manifest:{path:t=>H(t)}})],hr.prototype,"chartAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],hr.prototype,"dataPointAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],hr.prototype,"valueSelectionInfo",2);var Fr=class extends At{};o(Fr,"StackCard"),v([b({manifest:{path:t=>H(t)}})],Fr.prototype,"model",2),v([b({manifest:{path:t=>H(t)}})],Fr.prototype,"template",2),v([b({manifest:{path:t=>H(t)}})],Fr.prototype,"settings",2),v([b({manifest:{path:t=>H(t)}})],Fr.prototype,"stackCardSettings",2),v([b({manifest:{path:t=>H(t)}})],Fr.prototype,"itemText",2),v([b({manifest:{path:t=>H(t)}})],Fr.prototype,"objectStreamCardsNavigationProperty",2);var gt=class extends At{};o(gt,"LinklistCard"),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"model",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"template",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"settings",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"linkListCardSettings",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"title",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"subTitle",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"targetUri",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"listFlavor",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"sortBy",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"sortOrder",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"headerAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"identificationAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"defaultSpan",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"staticContent",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"requireAppAuthorization",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"annotationPath",2);var Gt=class extends At{};o(Gt,"TableCard"),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"model",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"template",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"disableTableCardFlexibility",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"settings",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"tableCardSettings",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"annotationPath",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"listFlavor",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"listType",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"dataPointAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"selectionPresentationAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"valueSelectionInfo",2);var bd=se(fe());var yP=o((e,t,n,a,r)=>{let i=Vt(n[1],r),s=n.slice(-1)[0];return Ze(e,[i,s,"GroupElement"])},"getSmartFieldControlId"),ho=class{};o(ho,"Field"),v([b({flex:{controlId:yP,controlType:()=>bd.ControlType.GroupElement,createFlexChange:W},generate:Ke})],ho.prototype,"visible",2);var pl=se(fe()),fl={controlId:Ze,controlType:()=>pl.ControlType.SmartFilterBar,createFlexChange:W},_r=class{};o(_r,"ListReportFilterBar"),v([b({manifest:{path:t=>De(t)}}),q({since:"1.38.0"})],_r.prototype,"smartVariantManagement",2),v([b({flex:fl}),q({since:"1.40.0"})],_r.prototype,"liveMode",2),v([b({manifest:{path:t=>De(t)}}),q({since:"1.48.0"})],_r.prototype,"variantManagementHidden",2),v([b({manifest:{path:t=>De(t)}}),q({since:"1.52.0"})],_r.prototype,"subTitleIfVariantMgmtHidden",2),v([b({flex:{controlId:Ze,controlType:()=>pl.ControlType.SmartFilterBar,createFlexChange:W}}),q({since:"1.28.0"})],_r.prototype,"showClearOnFB",2),v([b({flex:fl}),q({since:"1.38.0"})],_r.prototype,"showFilterConfiguration",2),v([b({flex:fl}),q({since:"1.28.0"})],_r.prototype,"showRestoreOnFB",2);var ri=class extends _r{};o(ri,"AnalyticalListPageFilterBar"),v([b({manifest:{path:t=>De(t)}})],ri.prototype,"showGoButtonOnFilterBar",2),v([b({manifest:{path:t=>De(t)}}),q({since:"1.60.0"})],ri.prototype,"filterDefaultsFromSelectionVariant",2);var vr=se(fe());var Mr=o((e,t,n,a,r)=>{if(a()===vr.ControlType.Button){let i=n[n.length-1],s=Vt(n[1],r);return`${e}action::${i}::${s}::FormAction`}return Ze(e,t)},"getFormActionButtonId"),hn=class{};o(hn,"FormAction"),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W},generate:Ke})],hn.prototype,"visible",2),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W}})],hn.prototype,"tooltip",2),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W}})],hn.prototype,"icon",2),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W}})],hn.prototype,"activeIcon",2),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W}})],hn.prototype,"type",2);var vn=class{};o(vn,"FieldForAction"),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W},generate:Ke})],vn.prototype,"visible",2),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W}})],vn.prototype,"tooltip",2),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W}})],vn.prototype,"icon",2),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W}})],vn.prototype,"activeIcon",2),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W}})],vn.prototype,"type",2);var tt=se(fe()),kr=se(za());var ml=require("path"),$P=se(fe()),Dd=se(_d()),Nd=require("fs"),VP=(0,ml.join)(__dirname,"templates");var RP=o((e,t)=>{let n=(0,Nd.readFileSync)(e,"utf8");return(0,Dd.render)(n,t)},"renderTemplate");var hl=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return RP((0,ml.join)(VP,t+".xml"),n)},"getSingleColumnContent"),vl=o((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let a of e){let r=hl(a,t);n=n+`
93
+ `)}};Ge.escapeXML=mt.escapeXML;Ge.__express=Ge.renderFile;Ge.VERSION=TP;Ge.name=FP;typeof window<"u"&&(window.ejs=Ge)});var Xg=z((Q_,zg)=>{var KO="Expected a function",Mg="__lodash_hash_undefined__",Ug=1/0,JO="[object Function]",WO="[object GeneratorFunction]",zO="[object Symbol]",XO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YO=/^\w*$/,ZO=/^\./,eS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tS=/[\\^$.*+?()[\]{}|]/g,rS=/\\(\\)?/g,nS=/^\[object .+?Constructor\]$/,aS=typeof global=="object"&&global&&global.Object===Object&&global,iS=typeof self=="object"&&self&&self.Object===Object&&self,ql=aS||iS||Function("return this")();function oS(e,t){return e==null?void 0:e[t]}o(oS,"getValue");function sS(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}o(sS,"isHostObject");var lS=Array.prototype,cS=Function.prototype,kg=Object.prototype,Ql=ql["__core-js_shared__"],$g=function(){var e=/[^.]+$/.exec(Ql&&Ql.keys&&Ql.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Bg=cS.toString,ls=kg.hasOwnProperty,Gg=kg.toString,uS=RegExp("^"+Bg.call(ls).replace(tS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vg=ql.Symbol,fS=lS.splice,pS=Qg(ql,"Map"),_i=Qg(Object,"create"),Rg=Vg?Vg.prototype:void 0,jg=Rg?Rg.toString:void 0;function na(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}o(na,"Hash");function dS(){this.__data__=_i?_i(null):{}}o(dS,"hashClear");function gS(e){return this.has(e)&&delete this.__data__[e]}o(gS,"hashDelete");function mS(e){var t=this.__data__;if(_i){var n=t[e];return n===Mg?void 0:n}return ls.call(t,e)?t[e]:void 0}o(mS,"hashGet");function hS(e){var t=this.__data__;return _i?t[e]!==void 0:ls.call(t,e)}o(hS,"hashHas");function vS(e,t){var n=this.__data__;return n[e]=_i&&t===void 0?Mg:t,this}o(vS,"hashSet");na.prototype.clear=dS;na.prototype.delete=gS;na.prototype.get=mS;na.prototype.has=hS;na.prototype.set=vS;function Va(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}o(Va,"ListCache");function yS(){this.__data__=[]}o(yS,"listCacheClear");function bS(e){var t=this.__data__,n=cs(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():fS.call(t,n,1),!0}o(bS,"listCacheDelete");function ES(e){var t=this.__data__,n=cs(t,e);return n<0?void 0:t[n][1]}o(ES,"listCacheGet");function PS(e){return cs(this.__data__,e)>-1}o(PS,"listCacheHas");function CS(e,t){var n=this.__data__,a=cs(n,e);return a<0?n.push([e,t]):n[a][1]=t,this}o(CS,"listCacheSet");Va.prototype.clear=yS;Va.prototype.delete=bS;Va.prototype.get=ES;Va.prototype.has=PS;Va.prototype.set=CS;function aa(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}o(aa,"MapCache");function OS(){this.__data__={hash:new na,map:new(pS||Va),string:new na}}o(OS,"mapCacheClear");function SS(e){return us(this,e).delete(e)}o(SS,"mapCacheDelete");function TS(e){return us(this,e).get(e)}o(TS,"mapCacheGet");function AS(e){return us(this,e).has(e)}o(AS,"mapCacheHas");function xS(e,t){return us(this,e).set(e,t),this}o(xS,"mapCacheSet");aa.prototype.clear=OS;aa.prototype.delete=SS;aa.prototype.get=TS;aa.prototype.has=AS;aa.prototype.set=xS;function cs(e,t){for(var n=e.length;n--;)if(MS(e[n][0],t))return n;return-1}o(cs,"assocIndexOf");function IS(e,t){t=qg(t,e)?[t]:Hg(t);for(var n=0,a=t.length;e!=null&&n<a;)e=e[Kg(t[n++])];return n&&n==a?e:void 0}o(IS,"baseGet");function FS(e){if(!Wg(e)||LS(e))return!1;var t=US(e)||sS(e)?uS:nS;return t.test(RS(e))}o(FS,"baseIsNative");function _S(e,t,n){var a=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++a<r;)i[a]=e[a+t];return i}o(_S,"baseSlice");function DS(e){if(typeof e=="string")return e;if(Jl(e))return jg?jg.call(e):"";var t=e+"";return t=="0"&&1/e==-Ug?"-0":t}o(DS,"baseToString");function NS(e,t){t=qg(t,e)?[t]:Hg(t),e=$S(e,t);var n=Kg(jS(t));return!(e!=null&&ls.call(e,n))||delete e[n]}o(NS,"baseUnset");function Hg(e){return Jg(e)?e:VS(e)}o(Hg,"castPath");function us(e,t){var n=e.__data__;return wS(t)?n[typeof t=="string"?"string":"hash"]:n.map}o(us,"getMapData");function Qg(e,t){var n=oS(e,t);return FS(n)?n:void 0}o(Qg,"getNative");function qg(e,t){if(Jg(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Jl(e)?!0:YO.test(e)||!XO.test(e)||t!=null&&e in Object(t)}o(qg,"isKey");function wS(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}o(wS,"isKeyable");function LS(e){return!!$g&&$g in e}o(LS,"isMasked");function $S(e,t){return t.length==1?e:IS(e,_S(t,0,-1))}o($S,"parent");var VS=Kl(function(e){e=BS(e);var t=[];return ZO.test(e)&&t.push(""),e.replace(eS,function(n,a,r,i){t.push(r?i.replace(rS,"$1"):a||n)}),t});function Kg(e){if(typeof e=="string"||Jl(e))return e;var t=e+"";return t=="0"&&1/e==-Ug?"-0":t}o(Kg,"toKey");function RS(e){if(e!=null){try{return Bg.call(e)}catch{}try{return e+""}catch{}}return""}o(RS,"toSource");function jS(e){var t=e?e.length:0;return t?e[t-1]:void 0}o(jS,"last");function Kl(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(KO);var n=o(function(){var a=arguments,r=t?t.apply(this,a):a[0],i=n.cache;if(i.has(r))return i.get(r);var s=e.apply(this,a);return n.cache=i.set(r,s),s},"memoized");return n.cache=new(Kl.Cache||aa),n}o(Kl,"memoize");Kl.Cache=aa;function MS(e,t){return e===t||e!==e&&t!==t}o(MS,"eq");var Jg=Array.isArray;function US(e){var t=Wg(e)?Gg.call(e):"";return t==JO||t==WO}o(US,"isFunction");function Wg(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}o(Wg,"isObject");function kS(e){return!!e&&typeof e=="object"}o(kS,"isObjectLike");function Jl(e){return typeof e=="symbol"||kS(e)&&Gg.call(e)==zO}o(Jl,"isSymbol");function BS(e){return e==null?"":DS(e)}o(BS,"toString");function GS(e,t){return e==null?!0:NS(e,t)}o(GS,"unset");zg.exports=GS});var Zg=z((fs,Yg)=>{(function(e,t){typeof fs=="object"&&typeof Yg<"u"?t(fs):typeof define=="function"&&define.amd?define(["exports"],t):t(e.URI=e.URI||{})})(fs,function(e){"use strict";function t(){for(var S=arguments.length,C=Array(S),A=0;A<S;A++)C[A]=arguments[A];if(C.length>1){C[0]=C[0].slice(0,-1);for(var D=C.length-1,N=1;N<D;++N)C[N]=C[N].slice(1,-1);return C[D]=C[D].slice(1),C.join("")}else return C[0]}o(t,"merge");function n(S){return"(?:"+S+")"}o(n,"subexp");function a(S){return S===void 0?"undefined":S===null?"null":Object.prototype.toString.call(S).split(" ").pop().split("]").shift().toLowerCase()}o(a,"typeOf");function r(S){return S.toUpperCase()}o(r,"toUpperCase");function i(S){return S!=null?S instanceof Array?S:typeof S.length!="number"||S.split||S.setInterval||S.call?[S]:Array.prototype.slice.call(S):[]}o(i,"toArray");function s(S,C){var A=S;if(C)for(var D in C)A[D]=C[D];return A}o(s,"assign");function l(S){var C="[A-Za-z]",A="[\\x0D]",D="[0-9]",N="[\\x22]",ne=t(D,"[A-Fa-f]"),Te="[\\x0A]",Me="[\\x20]",Qe=n(n("%[EFef]"+ne+"%"+ne+ne+"%"+ne+ne)+"|"+n("%[89A-Fa-f]"+ne+"%"+ne+ne)+"|"+n("%"+ne+ne)),bt="[\\:\\/\\?\\#\\[\\]\\@]",Re="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",lt=t(bt,Re),Et=S?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",at=S?"[\\uE000-\\uF8FF]":"[]",ke=t(C,D,"[\\-\\.\\_\\~]",Et),ct=n(C+t(C,D,"[\\+\\-\\.]")+"*"),Xe=n(n(Qe+"|"+t(ke,Re,"[\\:]"))+"*"),_n=n(n("25[0-5]")+"|"+n("2[0-4]"+D)+"|"+n("1"+D+D)+"|"+n("[1-9]"+D)+"|"+D),ar=n(n("25[0-5]")+"|"+n("2[0-4]"+D)+"|"+n("1"+D+D)+"|"+n("0?[1-9]"+D)+"|0?0?"+D),dr=n(ar+"\\."+ar+"\\."+ar+"\\."+ar),Ye=n(ne+"{1,4}"),ir=n(n(Ye+"\\:"+Ye)+"|"+dr),gr=n(n(Ye+"\\:")+"{6}"+ir),Lr=n("\\:\\:"+n(Ye+"\\:")+"{5}"+ir),Dn=n(n(Ye)+"?\\:\\:"+n(Ye+"\\:")+"{4}"+ir),Hr=n(n(n(Ye+"\\:")+"{0,1}"+Ye)+"?\\:\\:"+n(Ye+"\\:")+"{3}"+ir),ja=n(n(n(Ye+"\\:")+"{0,2}"+Ye)+"?\\:\\:"+n(Ye+"\\:")+"{2}"+ir),wi=n(n(n(Ye+"\\:")+"{0,3}"+Ye)+"?\\:\\:"+Ye+"\\:"+ir),Li=n(n(n(Ye+"\\:")+"{0,4}"+Ye)+"?\\:\\:"+ir),la=n(n(n(Ye+"\\:")+"{0,5}"+Ye)+"?\\:\\:"+Ye),ca=n(n(n(Ye+"\\:")+"{0,6}"+Ye)+"?\\:\\:"),Qr=n([gr,Lr,Dn,Hr,ja,wi,Li,la,ca].join("|")),ua=n(n(ke+"|"+Qe)+"+"),_s=n(Qr+"\\%25"+ua),Nn=n(Qr+n("\\%25|\\%(?!"+ne+"{2})")+ua),hv=n("[vV]"+ne+"+\\."+t(ke,Re,"[\\:]")+"+"),vv=n("\\["+n(Nn+"|"+Qr+"|"+hv)+"\\]"),Sc=n(n(Qe+"|"+t(ke,Re))+"*"),Ma=n(vv+"|"+dr+"(?!"+Sc+")|"+Sc),Ua=n(D+"*"),Tc=n(n(Xe+"@")+"?"+Ma+n("\\:"+Ua)+"?"),ka=n(Qe+"|"+t(ke,Re,"[\\:\\@]")),yv=n(ka+"*"),Ac=n(ka+"+"),bv=n(n(Qe+"|"+t(ke,Re,"[\\@]"))+"+"),qr=n(n("\\/"+yv)+"*"),fa=n("\\/"+n(Ac+qr)+"?"),Ds=n(bv+qr),$i=n(Ac+qr),pa="(?!"+ka+")",UA=n(qr+"|"+fa+"|"+Ds+"|"+$i+"|"+pa),da=n(n(ka+"|"+t("[\\/\\?]",at))+"*"),Ba=n(n(ka+"|[\\/\\?]")+"*"),xc=n(n("\\/\\/"+Tc+qr)+"|"+fa+"|"+$i+"|"+pa),Ev=n(ct+"\\:"+xc+n("\\?"+da)+"?"+n("\\#"+Ba)+"?"),Pv=n(n("\\/\\/"+Tc+qr)+"|"+fa+"|"+Ds+"|"+pa),Cv=n(Pv+n("\\?"+da)+"?"+n("\\#"+Ba)+"?"),kA=n(Ev+"|"+Cv),BA=n(ct+"\\:"+xc+n("\\?"+da)+"?"),GA="^("+ct+")\\:"+n(n("\\/\\/("+n("("+Xe+")@")+"?("+Ma+")"+n("\\:("+Ua+")")+"?)")+"?("+qr+"|"+fa+"|"+$i+"|"+pa+")")+n("\\?("+da+")")+"?"+n("\\#("+Ba+")")+"?$",HA="^(){0}"+n(n("\\/\\/("+n("("+Xe+")@")+"?("+Ma+")"+n("\\:("+Ua+")")+"?)")+"?("+qr+"|"+fa+"|"+Ds+"|"+pa+")")+n("\\?("+da+")")+"?"+n("\\#("+Ba+")")+"?$",QA="^("+ct+")\\:"+n(n("\\/\\/("+n("("+Xe+")@")+"?("+Ma+")"+n("\\:("+Ua+")")+"?)")+"?("+qr+"|"+fa+"|"+$i+"|"+pa+")")+n("\\?("+da+")")+"?$",qA="^"+n("\\#("+Ba+")")+"?$",KA="^"+n("("+Xe+")@")+"?("+Ma+")"+n("\\:("+Ua+")")+"?$";return{NOT_SCHEME:new RegExp(t("[^]",C,D,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",ke,Re),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",ke,Re),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",ke,Re),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",ke,Re),"g"),NOT_QUERY:new RegExp(t("[^\\%]",ke,Re,"[\\:\\@\\/\\?]",at),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",ke,Re,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",ke,Re),"g"),UNRESERVED:new RegExp(ke,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",ke,lt),"g"),PCT_ENCODED:new RegExp(Qe,"g"),IPV4ADDRESS:new RegExp("^("+dr+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Qr+")"+n(n("\\%25|\\%(?!"+ne+"{2})")+"("+ua+")")+"?\\]?$")}}o(l,"buildExps");var c=l(!1),u=l(!0),f=function(){function S(C,A){var D=[],N=!0,ne=!1,Te=void 0;try{for(var Me=C[Symbol.iterator](),Qe;!(N=(Qe=Me.next()).done)&&(D.push(Qe.value),!(A&&D.length===A));N=!0);}catch(bt){ne=!0,Te=bt}finally{try{!N&&Me.return&&Me.return()}finally{if(ne)throw Te}}return D}return o(S,"sliceIterator"),function(C,A){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return S(C,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=o(function(S){if(Array.isArray(S)){for(var C=0,A=Array(S.length);C<S.length;C++)A[C]=S[C];return A}else return Array.from(S)},"toConsumableArray"),h=2147483647,p=36,m=1,P=26,E=38,T=700,w=72,F=128,V="-",R=/^xn--/,M=/[^\0-\x7E]/,ae=/[\x2E\u3002\uFF0E\uFF61]/g,O={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},B=p-m,re=Math.floor,G=String.fromCharCode;function J(S){throw new RangeError(O[S])}o(J,"error$1");function j(S,C){for(var A=[],D=S.length;D--;)A[D]=C(S[D]);return A}o(j,"map");function U(S,C){var A=S.split("@"),D="";A.length>1&&(D=A[0]+"@",S=A[1]),S=S.replace(ae,".");var N=S.split("."),ne=j(N,C).join(".");return D+ne}o(U,"mapDomain");function te(S){for(var C=[],A=0,D=S.length;A<D;){var N=S.charCodeAt(A++);if(N>=55296&&N<=56319&&A<D){var ne=S.charCodeAt(A++);(ne&64512)==56320?C.push(((N&1023)<<10)+(ne&1023)+65536):(C.push(N),A--)}else C.push(N)}return C}o(te,"ucs2decode");var oe=o(function(C){return String.fromCodePoint.apply(String,d(C))},"ucs2encode"),Ee=o(function(C){return C-48<10?C-22:C-65<26?C-65:C-97<26?C-97:p},"basicToDigit"),ve=o(function(C,A){return C+22+75*(C<26)-((A!=0)<<5)},"digitToBasic"),ue=o(function(C,A,D){var N=0;for(C=D?re(C/T):C>>1,C+=re(C/A);C>B*P>>1;N+=p)C=re(C/B);return re(N+(B+1)*C/(C+E))},"adapt"),ie=o(function(C){var A=[],D=C.length,N=0,ne=F,Te=w,Me=C.lastIndexOf(V);Me<0&&(Me=0);for(var Qe=0;Qe<Me;++Qe)C.charCodeAt(Qe)>=128&&J("not-basic"),A.push(C.charCodeAt(Qe));for(var bt=Me>0?Me+1:0;bt<D;){for(var Re=N,lt=1,Et=p;;Et+=p){bt>=D&&J("invalid-input");var at=Ee(C.charCodeAt(bt++));(at>=p||at>re((h-N)/lt))&&J("overflow"),N+=at*lt;var ke=Et<=Te?m:Et>=Te+P?P:Et-Te;if(at<ke)break;var ct=p-ke;lt>re(h/ct)&&J("overflow"),lt*=ct}var Xe=A.length+1;Te=ue(N-Re,Xe,Re==0),re(N/Xe)>h-ne&&J("overflow"),ne+=re(N/Xe),N%=Xe,A.splice(N++,0,ne)}return String.fromCodePoint.apply(String,A)},"decode"),ge=o(function(C){var A=[];C=te(C);var D=C.length,N=F,ne=0,Te=w,Me=!0,Qe=!1,bt=void 0;try{for(var Re=C[Symbol.iterator](),lt;!(Me=(lt=Re.next()).done);Me=!0){var Et=lt.value;Et<128&&A.push(G(Et))}}catch(Nn){Qe=!0,bt=Nn}finally{try{!Me&&Re.return&&Re.return()}finally{if(Qe)throw bt}}var at=A.length,ke=at;for(at&&A.push(V);ke<D;){var ct=h,Xe=!0,_n=!1,ar=void 0;try{for(var dr=C[Symbol.iterator](),Ye;!(Xe=(Ye=dr.next()).done);Xe=!0){var ir=Ye.value;ir>=N&&ir<ct&&(ct=ir)}}catch(Nn){_n=!0,ar=Nn}finally{try{!Xe&&dr.return&&dr.return()}finally{if(_n)throw ar}}var gr=ke+1;ct-N>re((h-ne)/gr)&&J("overflow"),ne+=(ct-N)*gr,N=ct;var Lr=!0,Dn=!1,Hr=void 0;try{for(var ja=C[Symbol.iterator](),wi;!(Lr=(wi=ja.next()).done);Lr=!0){var Li=wi.value;if(Li<N&&++ne>h&&J("overflow"),Li==N){for(var la=ne,ca=p;;ca+=p){var Qr=ca<=Te?m:ca>=Te+P?P:ca-Te;if(la<Qr)break;var ua=la-Qr,_s=p-Qr;A.push(G(ve(Qr+ua%_s,0))),la=re(ua/_s)}A.push(G(ve(la,0))),Te=ue(ne,gr,ke==at),ne=0,++ke}}}catch(Nn){Dn=!0,Hr=Nn}finally{try{!Lr&&ja.return&&ja.return()}finally{if(Dn)throw Hr}}++ne,++N}return A.join("")},"encode"),He=o(function(C){return U(C,function(A){return R.test(A)?ie(A.slice(4).toLowerCase()):A})},"toUnicode"),rt=o(function(C){return U(C,function(A){return M.test(A)?"xn--"+ge(A):A})},"toASCII"),ce={version:"2.1.0",ucs2:{decode:te,encode:oe},decode:ie,encode:ge,toASCII:rt,toUnicode:He},ze={};function y(S){var C=S.charCodeAt(0),A=void 0;return C<16?A="%0"+C.toString(16).toUpperCase():C<128?A="%"+C.toString(16).toUpperCase():C<2048?A="%"+(C>>6|192).toString(16).toUpperCase()+"%"+(C&63|128).toString(16).toUpperCase():A="%"+(C>>12|224).toString(16).toUpperCase()+"%"+(C>>6&63|128).toString(16).toUpperCase()+"%"+(C&63|128).toString(16).toUpperCase(),A}o(y,"pctEncChar");function g(S){for(var C="",A=0,D=S.length;A<D;){var N=parseInt(S.substr(A+1,2),16);if(N<128)C+=String.fromCharCode(N),A+=3;else if(N>=194&&N<224){if(D-A>=6){var ne=parseInt(S.substr(A+4,2),16);C+=String.fromCharCode((N&31)<<6|ne&63)}else C+=S.substr(A,6);A+=6}else if(N>=224){if(D-A>=9){var Te=parseInt(S.substr(A+4,2),16),Me=parseInt(S.substr(A+7,2),16);C+=String.fromCharCode((N&15)<<12|(Te&63)<<6|Me&63)}else C+=S.substr(A,9);A+=9}else C+=S.substr(A,3),A+=3}return C}o(g,"pctDecChars");function L(S,C){function A(D){var N=g(D);return N.match(C.UNRESERVED)?N:D}return o(A,"decodeUnreserved"),S.scheme&&(S.scheme=String(S.scheme).replace(C.PCT_ENCODED,A).toLowerCase().replace(C.NOT_SCHEME,"")),S.userinfo!==void 0&&(S.userinfo=String(S.userinfo).replace(C.PCT_ENCODED,A).replace(C.NOT_USERINFO,y).replace(C.PCT_ENCODED,r)),S.host!==void 0&&(S.host=String(S.host).replace(C.PCT_ENCODED,A).toLowerCase().replace(C.NOT_HOST,y).replace(C.PCT_ENCODED,r)),S.path!==void 0&&(S.path=String(S.path).replace(C.PCT_ENCODED,A).replace(S.scheme?C.NOT_PATH:C.NOT_PATH_NOSCHEME,y).replace(C.PCT_ENCODED,r)),S.query!==void 0&&(S.query=String(S.query).replace(C.PCT_ENCODED,A).replace(C.NOT_QUERY,y).replace(C.PCT_ENCODED,r)),S.fragment!==void 0&&(S.fragment=String(S.fragment).replace(C.PCT_ENCODED,A).replace(C.NOT_FRAGMENT,y).replace(C.PCT_ENCODED,r)),S}o(L,"_normalizeComponentEncoding");function x(S){return S.replace(/^0*(.*)/,"$1")||"0"}o(x,"_stripLeadingZeros");function pe(S,C){var A=S.match(C.IPV4ADDRESS)||[],D=f(A,2),N=D[1];return N?N.split(".").map(x).join("."):S}o(pe,"_normalizeIPv4");function me(S,C){var A=S.match(C.IPV6ADDRESS)||[],D=f(A,3),N=D[1],ne=D[2];if(N){for(var Te=N.toLowerCase().split("::").reverse(),Me=f(Te,2),Qe=Me[0],bt=Me[1],Re=bt?bt.split(":").map(x):[],lt=Qe.split(":").map(x),Et=C.IPV4ADDRESS.test(lt[lt.length-1]),at=Et?7:8,ke=lt.length-at,ct=Array(at),Xe=0;Xe<at;++Xe)ct[Xe]=Re[Xe]||lt[ke+Xe]||"";Et&&(ct[at-1]=pe(ct[at-1],C));var _n=ct.reduce(function(gr,Lr,Dn){if(!Lr||Lr==="0"){var Hr=gr[gr.length-1];Hr&&Hr.index+Hr.length===Dn?Hr.length++:gr.push({index:Dn,length:1})}return gr},[]),ar=_n.sort(function(gr,Lr){return Lr.length-gr.length})[0],dr=void 0;if(ar&&ar.length>1){var Ye=ct.slice(0,ar.index),ir=ct.slice(ar.index+ar.length);dr=Ye.join(":")+"::"+ir.join(":")}else dr=ct.join(":");return ne&&(dr+="%"+ne),dr}else return S}o(me,"_normalizeIPv6");var Je=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,je="".match(/(){0}/)[1]===void 0;function be(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A={},D=C.iri!==!1?u:c;C.reference==="suffix"&&(S=(C.scheme?C.scheme+":":"")+"//"+S);var N=S.match(Je);if(N){je?(A.scheme=N[1],A.userinfo=N[3],A.host=N[4],A.port=parseInt(N[5],10),A.path=N[6]||"",A.query=N[7],A.fragment=N[8],isNaN(A.port)&&(A.port=N[5])):(A.scheme=N[1]||void 0,A.userinfo=S.indexOf("@")!==-1?N[3]:void 0,A.host=S.indexOf("//")!==-1?N[4]:void 0,A.port=parseInt(N[5],10),A.path=N[6]||"",A.query=S.indexOf("?")!==-1?N[7]:void 0,A.fragment=S.indexOf("#")!==-1?N[8]:void 0,isNaN(A.port)&&(A.port=S.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?N[4]:void 0)),A.host&&(A.host=me(pe(A.host,D),D)),A.scheme===void 0&&A.userinfo===void 0&&A.host===void 0&&A.port===void 0&&!A.path&&A.query===void 0?A.reference="same-document":A.scheme===void 0?A.reference="relative":A.fragment===void 0?A.reference="absolute":A.reference="uri",C.reference&&C.reference!=="suffix"&&C.reference!==A.reference&&(A.error=A.error||"URI is not a "+C.reference+" reference.");var ne=ze[(C.scheme||A.scheme||"").toLowerCase()];if(!C.unicodeSupport&&(!ne||!ne.unicodeSupport)){if(A.host&&(C.domainHost||ne&&ne.domainHost))try{A.host=ce.toASCII(A.host.replace(D.PCT_ENCODED,g).toLowerCase())}catch(Te){A.error=A.error||"Host's domain name can not be converted to ASCII via punycode: "+Te}L(A,c)}else L(A,D);ne&&ne.parse&&ne.parse(A,C)}else A.error=A.error||"URI can not be parsed.";return A}o(be,"parse");function Lt(S,C){var A=C.iri!==!1?u:c,D=[];return S.userinfo!==void 0&&(D.push(S.userinfo),D.push("@")),S.host!==void 0&&D.push(me(pe(String(S.host),A),A).replace(A.IPV6ADDRESS,function(N,ne,Te){return"["+ne+(Te?"%25"+Te:"")+"]"})),(typeof S.port=="number"||typeof S.port=="string")&&(D.push(":"),D.push(String(S.port))),D.length?D.join(""):void 0}o(Lt,"_recomposeAuthority");var We=/^\.\.?\//,Ct=/^\/\.(\/|$)/,Or=/^\/\.\.(\/|$)/,nt=/^\/?(?:.|\n)*?(?=\/|$)/;function _t(S){for(var C=[];S.length;)if(S.match(We))S=S.replace(We,"");else if(S.match(Ct))S=S.replace(Ct,"/");else if(S.match(Or))S=S.replace(Or,"/"),C.pop();else if(S==="."||S==="..")S="";else{var A=S.match(nt);if(A){var D=A[0];S=S.slice(D.length),C.push(D)}else throw new Error("Unexpected dot segment condition")}return C.join("")}o(_t,"removeDotSegments");function Ot(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=C.iri?u:c,D=[],N=ze[(C.scheme||S.scheme||"").toLowerCase()];if(N&&N.serialize&&N.serialize(S,C),S.host&&!A.IPV6ADDRESS.test(S.host)){if(C.domainHost||N&&N.domainHost)try{S.host=C.iri?ce.toUnicode(S.host):ce.toASCII(S.host.replace(A.PCT_ENCODED,g).toLowerCase())}catch(Me){S.error=S.error||"Host's domain name can not be converted to "+(C.iri?"Unicode":"ASCII")+" via punycode: "+Me}}L(S,A),C.reference!=="suffix"&&S.scheme&&(D.push(S.scheme),D.push(":"));var ne=Lt(S,C);if(ne!==void 0&&(C.reference!=="suffix"&&D.push("//"),D.push(ne),S.path&&S.path.charAt(0)!=="/"&&D.push("/")),S.path!==void 0){var Te=S.path;!C.absolutePath&&(!N||!N.absolutePath)&&(Te=_t(Te)),ne===void 0&&(Te=Te.replace(/^\/\//,"/%2F")),D.push(Te)}return S.query!==void 0&&(D.push("?"),D.push(S.query)),S.fragment!==void 0&&(D.push("#"),D.push(S.fragment)),D.join("")}o(Ot,"serialize");function $t(S,C){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=arguments[3],N={};return D||(S=be(Ot(S,A),A),C=be(Ot(C,A),A)),A=A||{},!A.tolerant&&C.scheme?(N.scheme=C.scheme,N.userinfo=C.userinfo,N.host=C.host,N.port=C.port,N.path=_t(C.path||""),N.query=C.query):(C.userinfo!==void 0||C.host!==void 0||C.port!==void 0?(N.userinfo=C.userinfo,N.host=C.host,N.port=C.port,N.path=_t(C.path||""),N.query=C.query):(C.path?(C.path.charAt(0)==="/"?N.path=_t(C.path):((S.userinfo!==void 0||S.host!==void 0||S.port!==void 0)&&!S.path?N.path="/"+C.path:S.path?N.path=S.path.slice(0,S.path.lastIndexOf("/")+1)+C.path:N.path=C.path,N.path=_t(N.path)),N.query=C.query):(N.path=S.path,C.query!==void 0?N.query=C.query:N.query=S.query),N.userinfo=S.userinfo,N.host=S.host,N.port=S.port),N.scheme=S.scheme),N.fragment=C.fragment,N}o($t,"resolveComponents");function zt(S,C,A){var D=s({scheme:"null"},A);return Ot($t(be(S,D),be(C,D),D,!0),D)}o(zt,"resolve");function I(S,C){return typeof S=="string"?S=Ot(be(S,C),C):a(S)==="object"&&(S=be(Ot(S,C),C)),S}o(I,"normalize");function $(S,C,A){return typeof S=="string"?S=Ot(be(S,A),A):a(S)==="object"&&(S=Ot(S,A)),typeof C=="string"?C=Ot(be(C,A),A):a(C)==="object"&&(C=Ot(C,A)),S===C}o($,"equal");function k(S,C){return S&&S.toString().replace(!C||!C.iri?c.ESCAPE:u.ESCAPE,y)}o(k,"escapeComponent");function K(S,C){return S&&S.toString().replace(!C||!C.iri?c.PCT_ENCODED:u.PCT_ENCODED,g)}o(K,"unescapeComponent");var le={scheme:"http",domainHost:!0,parse:o(function(C,A){return C.host||(C.error=C.error||"HTTP URIs must have a host."),C},"parse"),serialize:o(function(C,A){var D=String(C.scheme).toLowerCase()==="https";return(C.port===(D?443:80)||C.port==="")&&(C.port=void 0),C.path||(C.path="/"),C},"serialize")},yt={scheme:"https",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize};function Oe(S){return typeof S.secure=="boolean"?S.secure:String(S.scheme).toLowerCase()==="wss"}o(Oe,"isSecure");var Pe={scheme:"ws",domainHost:!0,parse:o(function(C,A){var D=C;return D.secure=Oe(D),D.resourceName=(D.path||"/")+(D.query?"?"+D.query:""),D.path=void 0,D.query=void 0,D},"parse"),serialize:o(function(C,A){if((C.port===(Oe(C)?443:80)||C.port==="")&&(C.port=void 0),typeof C.secure=="boolean"&&(C.scheme=C.secure?"wss":"ws",C.secure=void 0),C.resourceName){var D=C.resourceName.split("?"),N=f(D,2),ne=N[0],Te=N[1];C.path=ne&&ne!=="/"?ne:void 0,C.query=Te,C.resourceName=void 0}return C.fragment=void 0,C},"serialize")},de={scheme:"wss",domainHost:Pe.domainHost,parse:Pe.parse,serialize:Pe.serialize},$e={},Ve=!0,Sr="[A-Za-z0-9\\-\\.\\_\\~"+(Ve?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",nr="[0-9A-Fa-f]",ov=n(n("%[EFef]"+nr+"%"+nr+nr+"%"+nr+nr)+"|"+n("%[89A-Fa-f]"+nr+"%"+nr+nr)+"|"+n("%"+nr+nr)),sv="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",lv="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",cv=t(lv,'[\\"\\\\]'),uv="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",fv=new RegExp(Sr,"g"),sa=new RegExp(ov,"g"),pv=new RegExp(t("[^]",sv,"[\\.]",'[\\"]',cv),"g"),Ec=new RegExp(t("[^]",Sr,uv),"g"),dv=Ec;function Fs(S){var C=g(S);return C.match(fv)?C:S}o(Fs,"decodeUnreserved");var Pc={scheme:"mailto",parse:o(function(C,A){var D=C,N=D.to=D.path?D.path.split(","):[];if(D.path=void 0,D.query){for(var ne=!1,Te={},Me=D.query.split("&"),Qe=0,bt=Me.length;Qe<bt;++Qe){var Re=Me[Qe].split("=");switch(Re[0]){case"to":for(var lt=Re[1].split(","),Et=0,at=lt.length;Et<at;++Et)N.push(lt[Et]);break;case"subject":D.subject=K(Re[1],A);break;case"body":D.body=K(Re[1],A);break;default:ne=!0,Te[K(Re[0],A)]=K(Re[1],A);break}}ne&&(D.headers=Te)}D.query=void 0;for(var ke=0,ct=N.length;ke<ct;++ke){var Xe=N[ke].split("@");if(Xe[0]=K(Xe[0]),A.unicodeSupport)Xe[1]=K(Xe[1],A).toLowerCase();else try{Xe[1]=ce.toASCII(K(Xe[1],A).toLowerCase())}catch(_n){D.error=D.error||"Email address's domain name can not be converted to ASCII via punycode: "+_n}N[ke]=Xe.join("@")}return D},"parse$$1"),serialize:o(function(C,A){var D=C,N=i(C.to);if(N){for(var ne=0,Te=N.length;ne<Te;++ne){var Me=String(N[ne]),Qe=Me.lastIndexOf("@"),bt=Me.slice(0,Qe).replace(sa,Fs).replace(sa,r).replace(pv,y),Re=Me.slice(Qe+1);try{Re=A.iri?ce.toUnicode(Re):ce.toASCII(K(Re,A).toLowerCase())}catch(ke){D.error=D.error||"Email address's domain name can not be converted to "+(A.iri?"Unicode":"ASCII")+" via punycode: "+ke}N[ne]=bt+"@"+Re}D.path=N.join(",")}var lt=C.headers=C.headers||{};C.subject&&(lt.subject=C.subject),C.body&&(lt.body=C.body);var Et=[];for(var at in lt)lt[at]!==$e[at]&&Et.push(at.replace(sa,Fs).replace(sa,r).replace(Ec,y)+"="+lt[at].replace(sa,Fs).replace(sa,r).replace(dv,y));return Et.length&&(D.query=Et.join("&")),D},"serialize$$1")},gv=/^([^\:]+)\:(.*)/,Cc={scheme:"urn",parse:o(function(C,A){var D=C.path&&C.path.match(gv),N=C;if(D){var ne=A.scheme||N.scheme||"urn",Te=D[1].toLowerCase(),Me=D[2],Qe=ne+":"+(A.nid||Te),bt=ze[Qe];N.nid=Te,N.nss=Me,N.path=void 0,bt&&(N=bt.parse(N,A))}else N.error=N.error||"URN can not be parsed.";return N},"parse$$1"),serialize:o(function(C,A){var D=A.scheme||C.scheme||"urn",N=C.nid,ne=D+":"+(A.nid||N),Te=ze[ne];Te&&(C=Te.serialize(C,A));var Me=C,Qe=C.nss;return Me.path=(N||A.nid)+":"+Qe,Me},"serialize$$1")},mv=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Oc={scheme:"urn:uuid",parse:o(function(C,A){var D=C;return D.uuid=D.nss,D.nss=void 0,!A.tolerant&&(!D.uuid||!D.uuid.match(mv))&&(D.error=D.error||"UUID is not valid."),D},"parse"),serialize:o(function(C,A){var D=C;return D.nss=(C.uuid||"").toLowerCase(),D},"serialize")};ze[le.scheme]=le,ze[yt.scheme]=yt,ze[Pe.scheme]=Pe,ze[de.scheme]=de,ze[Pc.scheme]=Pc,ze[Cc.scheme]=Cc,ze[Oc.scheme]=Oc,e.SCHEMES=ze,e.pctEncChar=y,e.pctDecChars=g,e.parse=be,e.removeDotSegments=_t,e.serialize=Ot,e.resolveComponents=$t,e.resolve=zt,e.normalize=I,e.equal=$,e.escapeComponent=k,e.unescapeComponent=K,Object.defineProperty(e,"__esModule",{value:!0})})});var ps=z((q_,em)=>{"use strict";em.exports=o(function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var a,r,i;if(Array.isArray(t)){if(a=t.length,a!=n.length)return!1;for(r=a;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),a=i.length,a!==Object.keys(n).length)return!1;for(r=a;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=a;r--!==0;){var s=i[r];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n},"equal")});var rm=z((K_,tm)=>{"use strict";tm.exports=o(function(t){for(var n=0,a=t.length,r=0,i;r<a;)n++,i=t.charCodeAt(r++),i>=55296&&i<=56319&&r<a&&(i=t.charCodeAt(r),(i&64512)==56320&&r++);return n},"ucs2length")});var ia=z((J_,im)=>{"use strict";im.exports={copy:HS,checkDataType:Wl,checkDataTypes:QS,coerceToTypes:qS,toHash:Xl,getProperty:Yl,escapeQuotes:Zl,equal:ps(),ucs2length:rm(),varOccurences:WS,varReplace:zS,schemaHasRules:XS,schemaHasRulesExcept:YS,schemaUnknownRules:ZS,toQuotedString:zl,getPathExpr:eT,getPath:tT,getData:aT,unescapeFragment:iT,unescapeJsonPointer:tc,escapeFragment:oT,escapeJsonPointer:ec};function HS(e,t){t=t||{};for(var n in e)t[n]=e[n];return t}o(HS,"copy");function Wl(e,t,n,a){var r=a?" !== ":" === ",i=a?" || ":" && ",s=a?"!":"",l=a?"":"!";switch(e){case"null":return t+r+"null";case"array":return s+"Array.isArray("+t+")";case"object":return"("+s+t+i+"typeof "+t+r+'"object"'+i+l+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+r+'"number"'+i+l+"("+t+" % 1)"+i+t+r+t+(n?i+s+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+r+'"'+e+'"'+(n?i+s+"isFinite("+t+")":"")+")";default:return"typeof "+t+r+'"'+e+'"'}}o(Wl,"checkDataType");function QS(e,t,n){switch(e.length){case 1:return Wl(e[0],t,n,!0);default:var a="",r=Xl(e);r.array&&r.object&&(a=r.null?"(":"(!"+t+" || ",a+="typeof "+t+' !== "object")',delete r.null,delete r.array,delete r.object),r.number&&delete r.integer;for(var i in r)a+=(a?" && ":"")+Wl(i,t,n,!0);return a}}o(QS,"checkDataTypes");var nm=Xl(["string","number","integer","boolean","null"]);function qS(e,t){if(Array.isArray(t)){for(var n=[],a=0;a<t.length;a++){var r=t[a];(nm[r]||e==="array"&&r==="array")&&(n[n.length]=r)}if(n.length)return n}else{if(nm[t])return[t];if(e==="array"&&t==="array")return["array"]}}o(qS,"coerceToTypes");function Xl(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}o(Xl,"toHash");var KS=/^[a-z$_][a-z$_0-9]*$/i,JS=/'|\\/g;function Yl(e){return typeof e=="number"?"["+e+"]":KS.test(e)?"."+e:"['"+Zl(e)+"']"}o(Yl,"getProperty");function Zl(e){return e.replace(JS,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}o(Zl,"escapeQuotes");function WS(e,t){t+="[^0-9]";var n=e.match(new RegExp(t,"g"));return n?n.length:0}o(WS,"varOccurences");function zS(e,t,n){return t+="([^0-9])",n=n.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),n+"$1")}o(zS,"varReplace");function XS(e,t){if(typeof e=="boolean")return!e;for(var n in e)if(t[n])return!0}o(XS,"schemaHasRules");function YS(e,t,n){if(typeof e=="boolean")return!e&&n!="not";for(var a in e)if(a!=n&&t[a])return!0}o(YS,"schemaHasRulesExcept");function ZS(e,t){if(typeof e!="boolean"){for(var n in e)if(!t[n])return n}}o(ZS,"schemaUnknownRules");function zl(e){return"'"+Zl(e)+"'"}o(zl,"toQuotedString");function eT(e,t,n,a){var r=n?"'/' + "+t+(a?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):a?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'";return am(e,r)}o(eT,"getPathExpr");function tT(e,t,n){var a=zl(n?"/"+ec(t):Yl(t));return am(e,a)}o(tT,"getPath");var rT=/^\/(?:[^~]|~0|~1)*$/,nT=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function aT(e,t,n){var a,r,i,s;if(e==="")return"rootData";if(e[0]=="/"){if(!rT.test(e))throw new Error("Invalid JSON-pointer: "+e);r=e,i="rootData"}else{if(s=e.match(nT),!s)throw new Error("Invalid JSON-pointer: "+e);if(a=+s[1],r=s[2],r=="#"){if(a>=t)throw new Error("Cannot access property/index "+a+" levels up, current level is "+t);return n[t-a]}if(a>t)throw new Error("Cannot access data "+a+" levels up, current level is "+t);if(i="data"+(t-a||""),!r)return i}for(var l=i,c=r.split("/"),u=0;u<c.length;u++){var f=c[u];f&&(i+=Yl(tc(f)),l+=" && "+i)}return l}o(aT,"getData");function am(e,t){return e=='""'?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}o(am,"joinPaths");function iT(e){return tc(decodeURIComponent(e))}o(iT,"unescapeFragment");function oT(e){return encodeURIComponent(ec(e))}o(oT,"escapeFragment");function ec(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(ec,"escapeJsonPointer");function tc(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(tc,"unescapeJsonPointer")});var rc=z((W_,om)=>{"use strict";var sT=ia();om.exports=lT;function lT(e){sT.copy(e,this)}o(lT,"SchemaObject")});var lm=z((z_,sm)=>{"use strict";var Tn=sm.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var a=typeof n=="function"?n:n.pre||function(){},r=n.post||function(){};ds(t,a,r,e,"",e)};Tn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};Tn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Tn.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Tn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function ds(e,t,n,a,r,i,s,l,c,u){if(a&&typeof a=="object"&&!Array.isArray(a)){t(a,r,i,s,l,c,u);for(var f in a){var d=a[f];if(Array.isArray(d)){if(f in Tn.arrayKeywords)for(var h=0;h<d.length;h++)ds(e,t,n,d[h],r+"/"+f+"/"+h,i,r,f,a,h)}else if(f in Tn.propsKeywords){if(d&&typeof d=="object")for(var p in d)ds(e,t,n,d[p],r+"/"+f+"/"+cT(p),i,r,f,a,p)}else(f in Tn.keywords||e.allKeys&&!(f in Tn.skipKeywords))&&ds(e,t,n,d,r+"/"+f,i,r,f,a)}n(a,r,i,s,l,c,u)}}o(ds,"_traverse");function cT(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(cT,"escapeJsonPtr")});var bs=z((X_,pm)=>{"use strict";var Di=Zg(),cm=ps(),vs=ia(),gs=rc(),uT=lm();pm.exports=xn;xn.normalizeId=An;xn.fullPath=ms;xn.url=hs;xn.ids=mT;xn.inlineRef=nc;xn.schema=ys;function xn(e,t,n){var a=this._refs[n];if(typeof a=="string")if(this._refs[a])a=this._refs[a];else return xn.call(this,e,t,a);if(a=a||this._schemas[n],a instanceof gs)return nc(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a);var r=ys.call(this,t,n),i,s,l;return r&&(i=r.schema,t=r.root,l=r.baseId),i instanceof gs?s=i.validate||e.call(this,i.schema,t,void 0,l):i!==void 0&&(s=nc(i,this._opts.inlineRefs)?i:e.call(this,i,t,void 0,l)),s}o(xn,"resolve");function ys(e,t){var n=Di.parse(t),a=fm(n),r=ms(this._getId(e.schema));if(Object.keys(e.schema).length===0||a!==r){var i=An(a),s=this._refs[i];if(typeof s=="string")return fT.call(this,e,s,n);if(s instanceof gs)s.validate||this._compile(s),e=s;else if(s=this._schemas[i],s instanceof gs){if(s.validate||this._compile(s),i==An(t))return{schema:s,root:e,baseId:r};e=s}else return;if(!e.schema)return;r=ms(this._getId(e.schema))}return um.call(this,n,r,e.schema,e)}o(ys,"resolveSchema");function fT(e,t,n){var a=ys.call(this,e,t);if(a){var r=a.schema,i=a.baseId;e=a.root;var s=this._getId(r);return s&&(i=hs(i,s)),um.call(this,n,i,r,e)}}o(fT,"resolveRecursive");var pT=vs.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function um(e,t,n,a){if(e.fragment=e.fragment||"",e.fragment.slice(0,1)=="/"){for(var r=e.fragment.split("/"),i=1;i<r.length;i++){var s=r[i];if(s){if(s=vs.unescapeFragment(s),n=n[s],n===void 0)break;var l;if(!pT[s]&&(l=this._getId(n),l&&(t=hs(t,l)),n.$ref)){var c=hs(t,n.$ref),u=ys.call(this,a,c);u&&(n=u.schema,a=u.root,t=u.baseId)}}}if(n!==void 0&&n!==a.schema)return{schema:n,root:a,baseId:t}}}o(um,"getJsonPointer");var dT=vs.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function nc(e,t){if(t===!1)return!1;if(t===void 0||t===!0)return ac(e);if(t)return ic(e)<=t}o(nc,"inlineRef");function ac(e){var t;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(t=e[n],typeof t=="object"&&!ac(t))return!1}else for(var a in e)if(a=="$ref"||(t=e[a],typeof t=="object"&&!ac(t)))return!1;return!0}o(ac,"checkNoRef");function ic(e){var t=0,n;if(Array.isArray(e)){for(var a=0;a<e.length;a++)if(n=e[a],typeof n=="object"&&(t+=ic(n)),t==1/0)return 1/0}else for(var r in e){if(r=="$ref")return 1/0;if(dT[r])t++;else if(n=e[r],typeof n=="object"&&(t+=ic(n)+1),t==1/0)return 1/0}return t}o(ic,"countKeys");function ms(e,t){t!==!1&&(e=An(e));var n=Di.parse(e);return fm(n)}o(ms,"getFullPath");function fm(e){return Di.serialize(e).split("#")[0]+"#"}o(fm,"_getFullPath");var gT=/#\/?$/;function An(e){return e?e.replace(gT,""):""}o(An,"normalizeId");function hs(e,t){return t=An(t),Di.resolve(e,t)}o(hs,"resolveUrl");function mT(e){var t=An(this._getId(e)),n={"":t},a={"":ms(t,!1)},r={},i=this;return uT(e,{allKeys:!0},function(s,l,c,u,f,d,h){if(l!==""){var p=i._getId(s),m=n[u],P=a[u]+"/"+f;if(h!==void 0&&(P+="/"+(typeof h=="number"?h:vs.escapeFragment(h))),typeof p=="string"){p=m=An(m?Di.resolve(m,p):p);var E=i._refs[p];if(typeof E=="string"&&(E=i._refs[E]),E&&E.schema){if(!cm(s,E.schema))throw new Error('id "'+p+'" resolves to more than one schema')}else if(p!=An(P))if(p[0]=="#"){if(r[p]&&!cm(s,r[p]))throw new Error('id "'+p+'" resolves to more than one schema');r[p]=s}else i._refs[p]=P}n[l]=m,a[l]=P}}),r}o(mT,"resolveIds")});var Es=z((Y_,gm)=>{"use strict";var oc=bs();gm.exports={Validation:dm(hT),MissingRef:dm(sc)};function hT(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0}o(hT,"ValidationError");sc.message=function(e,t){return"can't resolve reference "+t+" from id "+e};function sc(e,t,n){this.message=n||sc.message(e,t),this.missingRef=oc.url(e,t),this.missingSchema=oc.normalizeId(oc.fullPath(this.missingRef))}o(sc,"MissingRefError");function dm(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}o(dm,"errorSubclass")});var lc=z((Z_,mm)=>{"use strict";mm.exports=function(e,t){t||(t={}),typeof t=="function"&&(t={cmp:t});var n=typeof t.cycles=="boolean"?t.cycles:!1,a=t.cmp&&function(i){return function(s){return function(l,c){var u={key:l,value:s[l]},f={key:c,value:s[c]};return i(u,f)}}}(t.cmp),r=[];return o(function i(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var l,c;if(Array.isArray(s)){for(c="[",l=0;l<s.length;l++)l&&(c+=","),c+=i(s[l])||"null";return c+"]"}if(s===null)return"null";if(r.indexOf(s)!==-1){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=r.push(s)-1,f=Object.keys(s).sort(a&&a(s));for(c="",l=0;l<f.length;l++){var d=f[l],h=i(s[d]);!h||(c&&(c+=","),c+=JSON.stringify(d)+":"+h)}return r.splice(u,1),"{"+c+"}"}},"stringify")(e)}});var cc=z((eD,hm)=>{"use strict";hm.exports=o(function(t,n,a){var r="",i=t.schema.$async===!0,s=t.util.schemaHasRulesExcept(t.schema,t.RULES.all,"$ref"),l=t.self._getId(t.schema);if(t.opts.strictKeywords){var c=t.util.schemaUnknownRules(t.schema,t.RULES.keywords);if(c){var u="unknown keyword: "+c;if(t.opts.strictKeywords==="log")t.logger.warn(u);else throw new Error(u)}}if(t.isTop&&(r+=" var validate = ",i&&(t.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",l&&(t.opts.sourceCode||t.opts.processCode)&&(r+=" "+("/*# sourceURL="+l+" */")+" ")),typeof t.schema=="boolean"||!(s||t.schema.$ref)){var n="false schema",f=t.level,d=t.dataLevel,h=t.schema[n],p=t.schemaPath+t.util.getProperty(n),m=t.errSchemaPath+"/"+n,R=!t.opts.allErrors,O,P="data"+(d||""),V="valid"+f;if(t.schema===!1){t.isTop?R=!0:r+=" var "+V+" = false; ";var E=E||[];E.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(O||"false schema")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(m)+" , params: {} ",t.opts.messages!==!1&&(r+=" , message: 'boolean schema is false' "),t.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+P+" "),r+=" } "):r+=" {} ";var T=r;r=E.pop(),!t.compositeRule&&R?t.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else t.isTop?i?r+=" return data; ":r+=" validate.errors = null; return true; ":r+=" var "+V+" = true; ";return t.isTop&&(r+=" }; return validate; "),r}if(t.isTop){var w=t.isTop,f=t.level=0,d=t.dataLevel=0,P="data";if(t.rootId=t.resolve.fullPath(t.self._getId(t.root.schema)),t.baseId=t.baseId||t.rootId,delete t.isTop,t.dataPathArr=[""],t.schema.default!==void 0&&t.opts.useDefaults&&t.opts.strictDefaults){var F="default is ignored in the schema root";if(t.opts.strictDefaults==="log")t.logger.warn(F);else throw new Error(F)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{var f=t.level,d=t.dataLevel,P="data"+(d||"");if(l&&(t.baseId=t.resolve.url(t.baseId,l)),i&&!t.async)throw new Error("async schema in sync schema");r+=" var errs_"+f+" = errors;"}var V="valid"+f,R=!t.opts.allErrors,M="",ae="",O,B=t.schema.type,re=Array.isArray(B);if(B&&t.opts.nullable&&t.schema.nullable===!0&&(re?B.indexOf("null")==-1&&(B=B.concat("null")):B!="null"&&(B=[B,"null"],re=!0)),re&&B.length==1&&(B=B[0],re=!1),t.schema.$ref&&s){if(t.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+t.errSchemaPath+'" (see option extendRefs)');t.opts.extendRefs!==!0&&(s=!1,t.logger.warn('$ref: keywords ignored in schema at path "'+t.errSchemaPath+'"'))}if(t.schema.$comment&&t.opts.$comment&&(r+=" "+t.RULES.all.$comment.code(t,"$comment")),B){if(t.opts.coerceTypes)var G=t.util.coerceToTypes(t.opts.coerceTypes,B);var J=t.RULES.types[B];if(G||re||J===!0||J&&!nt(J)){var p=t.schemaPath+".type",m=t.errSchemaPath+"/type",p=t.schemaPath+".type",m=t.errSchemaPath+"/type",j=re?"checkDataTypes":"checkDataType";if(r+=" if ("+t.util[j](B,P,t.opts.strictNumbers,!0)+") { ",G){var U="dataType"+f,te="coerced"+f;r+=" var "+U+" = typeof "+P+"; var "+te+" = undefined; ",t.opts.coerceTypes=="array"&&(r+=" if ("+U+" == 'object' && Array.isArray("+P+") && "+P+".length == 1) { "+P+" = "+P+"[0]; "+U+" = typeof "+P+"; if ("+t.util.checkDataType(t.schema.type,P,t.opts.strictNumbers)+") "+te+" = "+P+"; } "),r+=" if ("+te+" !== undefined) ; ";var oe=G;if(oe)for(var Ee,ve=-1,ue=oe.length-1;ve<ue;)Ee=oe[ve+=1],Ee=="string"?r+=" else if ("+U+" == 'number' || "+U+" == 'boolean') "+te+" = '' + "+P+"; else if ("+P+" === null) "+te+" = ''; ":Ee=="number"||Ee=="integer"?(r+=" else if ("+U+" == 'boolean' || "+P+" === null || ("+U+" == 'string' && "+P+" && "+P+" == +"+P+" ",Ee=="integer"&&(r+=" && !("+P+" % 1)"),r+=")) "+te+" = +"+P+"; "):Ee=="boolean"?r+=" else if ("+P+" === 'false' || "+P+" === 0 || "+P+" === null) "+te+" = false; else if ("+P+" === 'true' || "+P+" === 1) "+te+" = true; ":Ee=="null"?r+=" else if ("+P+" === '' || "+P+" === 0 || "+P+" === false) "+te+" = null; ":t.opts.coerceTypes=="array"&&Ee=="array"&&(r+=" else if ("+U+" == 'string' || "+U+" == 'number' || "+U+" == 'boolean' || "+P+" == null) "+te+" = ["+P+"]; ");r+=" else { ";var E=E||[];E.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(O||"type")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(m)+" , params: { type: '",re?r+=""+B.join(","):r+=""+B,r+="' } ",t.opts.messages!==!1&&(r+=" , message: 'should be ",re?r+=""+B.join(","):r+=""+B,r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+P+" "),r+=" } "):r+=" {} ";var T=r;r=E.pop(),!t.compositeRule&&R?t.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } if ("+te+" !== undefined) { ";var ie=d?"data"+(d-1||""):"parentData",ge=d?t.dataPathArr[d]:"parentDataProperty";r+=" "+P+" = "+te+"; ",d||(r+="if ("+ie+" !== undefined)"),r+=" "+ie+"["+ge+"] = "+te+"; } "}else{var E=E||[];E.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(O||"type")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(m)+" , params: { type: '",re?r+=""+B.join(","):r+=""+B,r+="' } ",t.opts.messages!==!1&&(r+=" , message: 'should be ",re?r+=""+B.join(","):r+=""+B,r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+P+" "),r+=" } "):r+=" {} ";var T=r;r=E.pop(),!t.compositeRule&&R?t.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } "}}if(t.schema.$ref&&!s)r+=" "+t.RULES.all.$ref.code(t,"$ref")+" ",R&&(r+=" } if (errors === ",w?r+="0":r+="errs_"+f,r+=") { ",ae+="}");else{var He=t.RULES;if(He){for(var J,rt=-1,ce=He.length-1;rt<ce;)if(J=He[rt+=1],nt(J)){if(J.type&&(r+=" if ("+t.util.checkDataType(J.type,P,t.opts.strictNumbers)+") { "),t.opts.useDefaults){if(J.type=="object"&&t.schema.properties){var h=t.schema.properties,ze=Object.keys(h),y=ze;if(y)for(var g,L=-1,x=y.length-1;L<x;){g=y[L+=1];var pe=h[g];if(pe.default!==void 0){var me=P+t.util.getProperty(g);if(t.compositeRule){if(t.opts.strictDefaults){var F="default is ignored for: "+me;if(t.opts.strictDefaults==="log")t.logger.warn(F);else throw new Error(F)}}else r+=" if ("+me+" === undefined ",t.opts.useDefaults=="empty"&&(r+=" || "+me+" === null || "+me+" === '' "),r+=" ) "+me+" = ",t.opts.useDefaults=="shared"?r+=" "+t.useDefault(pe.default)+" ":r+=" "+JSON.stringify(pe.default)+" ",r+="; "}}}else if(J.type=="array"&&Array.isArray(t.schema.items)){var Je=t.schema.items;if(Je){for(var pe,ve=-1,je=Je.length-1;ve<je;)if(pe=Je[ve+=1],pe.default!==void 0){var me=P+"["+ve+"]";if(t.compositeRule){if(t.opts.strictDefaults){var F="default is ignored for: "+me;if(t.opts.strictDefaults==="log")t.logger.warn(F);else throw new Error(F)}}else r+=" if ("+me+" === undefined ",t.opts.useDefaults=="empty"&&(r+=" || "+me+" === null || "+me+" === '' "),r+=" ) "+me+" = ",t.opts.useDefaults=="shared"?r+=" "+t.useDefault(pe.default)+" ":r+=" "+JSON.stringify(pe.default)+" ",r+="; "}}}}var be=J.rules;if(be){for(var Lt,We=-1,Ct=be.length-1;We<Ct;)if(Lt=be[We+=1],_t(Lt)){var Or=Lt.code(t,Lt.keyword,J.type);Or&&(r+=" "+Or+" ",R&&(M+="}"))}}if(R&&(r+=" "+M+" ",M=""),J.type&&(r+=" } ",B&&B===J.type&&!G)){r+=" else { ";var p=t.schemaPath+".type",m=t.errSchemaPath+"/type",E=E||[];E.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(O||"type")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(m)+" , params: { type: '",re?r+=""+B.join(","):r+=""+B,r+="' } ",t.opts.messages!==!1&&(r+=" , message: 'should be ",re?r+=""+B.join(","):r+=""+B,r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+P+" "),r+=" } "):r+=" {} ";var T=r;r=E.pop(),!t.compositeRule&&R?t.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "}R&&(r+=" if (errors === ",w?r+="0":r+="errs_"+f,r+=") { ",ae+="}")}}}R&&(r+=" "+ae+" "),w?(i?(r+=" if (errors === 0) return data; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" }; return validate;"):r+=" var "+V+" = errors === errs_"+f+";";function nt($t){for(var zt=$t.rules,I=0;I<zt.length;I++)if(_t(zt[I]))return!0}o(nt,"$shouldUseGroup");function _t($t){return t.schema[$t.keyword]!==void 0||$t.implements&&Ot($t)}o(_t,"$shouldUseRule");function Ot($t){for(var zt=$t.implements,I=0;I<zt.length;I++)if(t.schema[zt[I]]!==void 0)return!0}return o(Ot,"$ruleImplementsSomeKeyword"),r},"generate_validate")});var Pm=z((tD,Em)=>{"use strict";var Ps=bs(),Os=ia(),ym=Es(),vT=lc(),vm=cc(),yT=Os.ucs2length,bT=ps(),ET=ym.Validation;Em.exports=uc;function uc(e,t,n,a){var r=this,i=this._opts,s=[void 0],l={},c=[],u={},f=[],d={},h=[];t=t||{schema:e,refVal:s,refs:l};var p=PT.call(this,e,t,a),m=this._compilations[p.index];if(p.compiling)return m.callValidate=F;var P=this._formats,E=this.RULES;try{var T=V(e,t,n,a);m.validate=T;var w=m.callValidate;return w&&(w.schema=T.schema,w.errors=null,w.refs=T.refs,w.refVal=T.refVal,w.root=T.root,w.$async=T.$async,i.sourceCode&&(w.source=T.source)),T}finally{CT.call(this,e,t,a)}function F(){var j=m.validate,U=j.apply(this,arguments);return F.errors=j.errors,U}o(F,"callValidate");function V(j,U,te,oe){var Ee=!U||U&&U.schema==j;if(U.schema!=t.schema)return uc.call(r,j,U,te,oe);var ve=j.$async===!0,ue=vm({isTop:!0,schema:j,isRoot:Ee,baseId:oe,root:U,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:ym.MissingRef,RULES:E,validate:vm,util:Os,resolve:Ps,resolveRef:R,usePattern:re,useDefault:G,useCustomRule:J,opts:i,formats:P,logger:r.logger,self:r});ue=Cs(s,TT)+Cs(c,OT)+Cs(f,ST)+Cs(h,AT)+ue,i.processCode&&(ue=i.processCode(ue,j));var ie;try{var ge=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",ue);ie=ge(r,E,P,t,s,f,h,bT,yT,ET),s[0]=ie}catch(He){throw r.logger.error("Error compiling schema, function code:",ue),He}return ie.schema=j,ie.errors=null,ie.refs=l,ie.refVal=s,ie.root=Ee?ie:U,ve&&(ie.$async=!0),i.sourceCode===!0&&(ie.source={code:ue,patterns:c,defaults:f}),ie}o(V,"localCompile");function R(j,U,te){U=Ps.url(j,U);var oe=l[U],Ee,ve;if(oe!==void 0)return Ee=s[oe],ve="refVal["+oe+"]",B(Ee,ve);if(!te&&t.refs){var ue=t.refs[U];if(ue!==void 0)return Ee=t.refVal[ue],ve=M(U,Ee),B(Ee,ve)}ve=M(U);var ie=Ps.call(r,V,t,U);if(ie===void 0){var ge=n&&n[U];ge&&(ie=Ps.inlineRef(ge,i.inlineRefs)?ge:uc.call(r,ge,t,n,j))}if(ie===void 0)ae(U);else return O(U,ie),B(ie,ve)}o(R,"resolveRef");function M(j,U){var te=s.length;return s[te]=U,l[j]=te,"refVal"+te}o(M,"addLocalRef");function ae(j){delete l[j]}o(ae,"removeLocalRef");function O(j,U){var te=l[j];s[te]=U}o(O,"replaceLocalRef");function B(j,U){return typeof j=="object"||typeof j=="boolean"?{code:U,schema:j,inline:!0}:{code:U,$async:j&&!!j.$async}}o(B,"resolvedRef");function re(j){var U=u[j];return U===void 0&&(U=u[j]=c.length,c[U]=j),"pattern"+U}o(re,"usePattern");function G(j){switch(typeof j){case"boolean":case"number":return""+j;case"string":return Os.toQuotedString(j);case"object":if(j===null)return"null";var U=vT(j),te=d[U];return te===void 0&&(te=d[U]=f.length,f[te]=j),"default"+te}}o(G,"useDefault");function J(j,U,te,oe){if(r._opts.validateSchema!==!1){var Ee=j.definition.dependencies;if(Ee&&!Ee.every(function(y){return Object.prototype.hasOwnProperty.call(te,y)}))throw new Error("parent schema must have all required keywords: "+Ee.join(","));var ve=j.definition.validateSchema;if(ve){var ue=ve(U);if(!ue){var ie="keyword schema is invalid: "+r.errorsText(ve.errors);if(r._opts.validateSchema=="log")r.logger.error(ie);else throw new Error(ie)}}}var ge=j.definition.compile,He=j.definition.inline,rt=j.definition.macro,ce;if(ge)ce=ge.call(r,U,te,oe);else if(rt)ce=rt.call(r,U,te,oe),i.validateSchema!==!1&&r.validateSchema(ce,!0);else if(He)ce=He.call(r,oe,j.keyword,U,te);else if(ce=j.definition.validate,!ce)return;if(ce===void 0)throw new Error('custom keyword "'+j.keyword+'"failed to compile');var ze=h.length;return h[ze]=ce,{code:"customRule"+ze,validate:ce}}o(J,"useCustomRule")}o(uc,"compile");function PT(e,t,n){var a=bm.call(this,e,t,n);return a>=0?{index:a,compiling:!0}:(a=this._compilations.length,this._compilations[a]={schema:e,root:t,baseId:n},{index:a,compiling:!1})}o(PT,"checkCompiling");function CT(e,t,n){var a=bm.call(this,e,t,n);a>=0&&this._compilations.splice(a,1)}o(CT,"endCompiling");function bm(e,t,n){for(var a=0;a<this._compilations.length;a++){var r=this._compilations[a];if(r.schema==e&&r.root==t&&r.baseId==n)return a}return-1}o(bm,"compIndex");function OT(e,t){return"var pattern"+e+" = new RegExp("+Os.toQuotedString(t[e])+");"}o(OT,"patternCode");function ST(e){return"var default"+e+" = defaults["+e+"];"}o(ST,"defaultCode");function TT(e,t){return t[e]===void 0?"":"var refVal"+e+" = refVal["+e+"];"}o(TT,"refValCode");function AT(e){return"var customRule"+e+" = customRules["+e+"];"}o(AT,"customRuleCode");function Cs(e,t){if(!e.length)return"";for(var n="",a=0;a<e.length;a++)n+=t(a,e);return n}o(Cs,"vars")});var Om=z((rD,Cm)=>{"use strict";var Ss=Cm.exports=o(function(){this._cache={}},"Cache");Ss.prototype.put=o(function(t,n){this._cache[t]=n},"Cache_put");Ss.prototype.get=o(function(t){return this._cache[t]},"Cache_get");Ss.prototype.del=o(function(t){delete this._cache[t]},"Cache_del");Ss.prototype.clear=o(function(){this._cache={}},"Cache_clear")});var $m=z((nD,Lm)=>{"use strict";var xT=ia(),IT=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,FT=[0,31,28,31,30,31,30,31,31,30,31,30,31],_T=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Sm=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,DT=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,NT=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Tm=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,Am=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,xm=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Im=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Fm=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,_m=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;Lm.exports=Ts;function Ts(e){return e=e=="full"?"full":"fast",xT.copy(Ts[e])}o(Ts,"formats");Ts.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":Tm,url:Am,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:Sm,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:wm,uuid:xm,"json-pointer":Im,"json-pointer-uri-fragment":Fm,"relative-json-pointer":_m};Ts.full={date:Dm,time:Nm,"date-time":$T,uri:RT,"uri-reference":NT,"uri-template":Tm,url:Am,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:Sm,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:wm,uuid:xm,"json-pointer":Im,"json-pointer-uri-fragment":Fm,"relative-json-pointer":_m};function wT(e){return e%4===0&&(e%100!==0||e%400===0)}o(wT,"isLeapYear");function Dm(e){var t=e.match(IT);if(!t)return!1;var n=+t[1],a=+t[2],r=+t[3];return a>=1&&a<=12&&r>=1&&r<=(a==2&&wT(n)?29:FT[a])}o(Dm,"date");function Nm(e,t){var n=e.match(_T);if(!n)return!1;var a=n[1],r=n[2],i=n[3],s=n[5];return(a<=23&&r<=59&&i<=59||a==23&&r==59&&i==60)&&(!t||s)}o(Nm,"time");var LT=/t|\s/i;function $T(e){var t=e.split(LT);return t.length==2&&Dm(t[0])&&Nm(t[1],!0)}o($T,"date_time");var VT=/\/|:/;function RT(e){return VT.test(e)&&DT.test(e)}o(RT,"uri");var jT=/[^\\]\\Z/;function wm(e){if(jT.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}o(wm,"regex")});var Rm=z((aD,Vm)=>{"use strict";Vm.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.errSchemaPath+"/"+n,u=!t.opts.allErrors,f="data"+(s||""),d="valid"+i,h,p;if(l=="#"||l=="#/")t.isRoot?(h=t.async,p="validate"):(h=t.root.schema.$async===!0,p="root.refVal[0]");else{var m=t.resolveRef(t.baseId,l,t.isRoot);if(m===void 0){var P=t.MissingRefError.message(t.baseId,l);if(t.opts.missingRefs=="fail"){t.logger.error(P);var E=E||[];E.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(c)+" , params: { ref: '"+t.util.escapeQuotes(l)+"' } ",t.opts.messages!==!1&&(r+=" , message: 'can\\'t resolve reference "+t.util.escapeQuotes(l)+"' "),t.opts.verbose&&(r+=" , schema: "+t.util.toQuotedString(l)+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+f+" "),r+=" } "):r+=" {} ";var T=r;r=E.pop(),!t.compositeRule&&u?t.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(r+=" if (false) { ")}else if(t.opts.missingRefs=="ignore")t.logger.warn(P),u&&(r+=" if (true) { ");else throw new t.MissingRefError(t.baseId,l,P)}else if(m.inline){var w=t.util.copy(t);w.level++;var F="valid"+w.level;w.schema=m.schema,w.schemaPath="",w.errSchemaPath=l;var V=t.validate(w).replace(/validate\.schema/g,m.code);r+=" "+V+" ",u&&(r+=" if ("+F+") { ")}else h=m.$async===!0||t.async&&m.$async!==!1,p=m.code}if(p){var E=E||[];E.push(r),r="",t.opts.passContext?r+=" "+p+".call(this, ":r+=" "+p+"( ",r+=" "+f+", (dataPath || '')",t.errorPath!='""'&&(r+=" + "+t.errorPath);var R=s?"data"+(s-1||""):"parentData",M=s?t.dataPathArr[s]:"parentDataProperty";r+=" , "+R+" , "+M+", rootData) ";var ae=r;if(r=E.pop(),h){if(!t.async)throw new Error("async schema referenced by sync schema");u&&(r+=" var "+d+"; "),r+=" try { await "+ae+"; ",u&&(r+=" "+d+" = true; "),r+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(r+=" "+d+" = false; "),r+=" } ",u&&(r+=" if ("+d+") { ")}else r+=" if (!"+ae+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ",u&&(r+=" else { ")}return r},"generate_ref")});var Mm=z((iD,jm)=>{"use strict";jm.exports=o(function(t,n,a){var r=" ",i=t.schema[n],s=t.schemaPath+t.util.getProperty(n),l=t.errSchemaPath+"/"+n,c=!t.opts.allErrors,u=t.util.copy(t),f="";u.level++;var d="valid"+u.level,h=u.baseId,p=!0,m=i;if(m)for(var P,E=-1,T=m.length-1;E<T;)P=m[E+=1],(t.opts.strictKeywords?typeof P=="object"&&Object.keys(P).length>0||P===!1:t.util.schemaHasRules(P,t.RULES.all))&&(p=!1,u.schema=P,u.schemaPath=s+"["+E+"]",u.errSchemaPath=l+"/"+E,r+=" "+t.validate(u)+" ",u.baseId=h,c&&(r+=" if ("+d+") { ",f+="}"));return c&&(p?r+=" if (true) { ":r+=" "+f.slice(0,-1)+" "),r},"generate_allOf")});var km=z((oD,Um)=>{"use strict";Um.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="valid"+i,p="errs__"+i,m=t.util.copy(t),P="";m.level++;var E="valid"+m.level,T=l.every(function(O){return t.opts.strictKeywords?typeof O=="object"&&Object.keys(O).length>0||O===!1:t.util.schemaHasRules(O,t.RULES.all)});if(T){var w=m.baseId;r+=" var "+p+" = errors; var "+h+" = false; ";var F=t.compositeRule;t.compositeRule=m.compositeRule=!0;var V=l;if(V)for(var R,M=-1,ae=V.length-1;M<ae;)R=V[M+=1],m.schema=R,m.schemaPath=c+"["+M+"]",m.errSchemaPath=u+"/"+M,r+=" "+t.validate(m)+" ",m.baseId=w,r+=" "+h+" = "+h+" || "+E+"; if (!"+h+") { ",P+="}";t.compositeRule=m.compositeRule=F,r+=" "+P+" if (!"+h+") { var err = ",t.createErrors!==!1?(r+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(r+=" , message: 'should match some schema in anyOf' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&f&&(t.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",t.opts.allErrors&&(r+=" } ")}else f&&(r+=" if (true) { ");return r},"generate_anyOf")});var Gm=z((sD,Bm)=>{"use strict";Bm.exports=o(function(t,n,a){var r=" ",i=t.schema[n],s=t.errSchemaPath+"/"+n,l=!t.opts.allErrors,c=t.util.toQuotedString(i);return t.opts.$comment===!0?r+=" console.log("+c+");":typeof t.opts.$comment=="function"&&(r+=" self._opts.$comment("+c+", "+t.util.toQuotedString(s)+", validate.root.schema);"),r},"generate_comment")});var Qm=z((lD,Hm)=>{"use strict";Hm.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="valid"+i,p=t.opts.$data&&l&&l.$data,m;p?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",m="schema"+i):m=l,p||(r+=" var schema"+i+" = validate.schema"+c+";"),r+="var "+h+" = equal("+d+", schema"+i+"); if (!"+h+") { ";var P=P||[];P.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'const' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { allowedValue: schema"+i+" } ",t.opts.messages!==!1&&(r+=" , message: 'should be equal to constant' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var E=r;return r=P.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",f&&(r+=" else { "),r},"generate_const")});var Km=z((cD,qm)=>{"use strict";qm.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="valid"+i,p="errs__"+i,m=t.util.copy(t),P="";m.level++;var E="valid"+m.level,T="i"+i,w=m.dataLevel=t.dataLevel+1,F="data"+w,V=t.baseId,R=t.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:t.util.schemaHasRules(l,t.RULES.all);if(r+="var "+p+" = errors;var "+h+";",R){var M=t.compositeRule;t.compositeRule=m.compositeRule=!0,m.schema=l,m.schemaPath=c,m.errSchemaPath=u,r+=" var "+E+" = false; for (var "+T+" = 0; "+T+" < "+d+".length; "+T+"++) { ",m.errorPath=t.util.getPathExpr(t.errorPath,T,t.opts.jsonPointers,!0);var ae=d+"["+T+"]";m.dataPathArr[w]=T;var O=t.validate(m);m.baseId=V,t.util.varOccurences(O,F)<2?r+=" "+t.util.varReplace(O,F,ae)+" ":r+=" var "+F+" = "+ae+"; "+O+" ",r+=" if ("+E+") break; } ",t.compositeRule=m.compositeRule=M,r+=" "+P+" if (!"+E+") {"}else r+=" if ("+d+".length == 0) {";var B=B||[];B.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(r+=" , message: 'should contain a valid item' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var re=r;return r=B.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+re+"]); ":r+=" validate.errors = ["+re+"]; return false; ":r+=" var err = "+re+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { ",R&&(r+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),t.opts.allErrors&&(r+=" } "),r},"generate_contains")});var Wm=z((uD,Jm)=>{"use strict";Jm.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="errs__"+i,p=t.util.copy(t),m="";p.level++;var P="valid"+p.level,E={},T={},w=t.opts.ownProperties;for(M in l)if(M!="__proto__"){var F=l[M],V=Array.isArray(F)?T:E;V[M]=F}r+="var "+h+" = errors;";var R=t.errorPath;r+="var missing"+i+";";for(var M in T)if(V=T[M],V.length){if(r+=" if ( "+d+t.util.getProperty(M)+" !== undefined ",w&&(r+=" && Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(M)+"') "),f){r+=" && ( ";var ae=V;if(ae)for(var O,B=-1,re=ae.length-1;B<re;){O=ae[B+=1],B&&(r+=" || ");var G=t.util.getProperty(O),J=d+G;r+=" ( ( "+J+" === undefined ",w&&(r+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(O)+"') "),r+=") && (missing"+i+" = "+t.util.toQuotedString(t.opts.jsonPointers?O:G)+") ) "}r+=")) { ";var j="missing"+i,U="' + "+j+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.opts.jsonPointers?t.util.getPathExpr(R,j,!0):R+" + "+j);var te=te||[];te.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { property: '"+t.util.escapeQuotes(M)+"', missingProperty: '"+U+"', depsCount: "+V.length+", deps: '"+t.util.escapeQuotes(V.length==1?V[0]:V.join(", "))+"' } ",t.opts.messages!==!1&&(r+=" , message: 'should have ",V.length==1?r+="property "+t.util.escapeQuotes(V[0]):r+="properties "+t.util.escapeQuotes(V.join(", ")),r+=" when property "+t.util.escapeQuotes(M)+" is present' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var oe=r;r=te.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+oe+"]); ":r+=" validate.errors = ["+oe+"]; return false; ":r+=" var err = "+oe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{r+=" ) { ";var Ee=V;if(Ee)for(var O,ve=-1,ue=Ee.length-1;ve<ue;){O=Ee[ve+=1];var G=t.util.getProperty(O),U=t.util.escapeQuotes(O),J=d+G;t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(R,O,t.opts.jsonPointers)),r+=" if ( "+J+" === undefined ",w&&(r+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(O)+"') "),r+=") { var err = ",t.createErrors!==!1?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { property: '"+t.util.escapeQuotes(M)+"', missingProperty: '"+U+"', depsCount: "+V.length+", deps: '"+t.util.escapeQuotes(V.length==1?V[0]:V.join(", "))+"' } ",t.opts.messages!==!1&&(r+=" , message: 'should have ",V.length==1?r+="property "+t.util.escapeQuotes(V[0]):r+="properties "+t.util.escapeQuotes(V.join(", ")),r+=" when property "+t.util.escapeQuotes(M)+" is present' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}r+=" } ",f&&(m+="}",r+=" else { ")}t.errorPath=R;var ie=p.baseId;for(var M in E){var F=E[M];(t.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===!1:t.util.schemaHasRules(F,t.RULES.all))&&(r+=" "+P+" = true; if ( "+d+t.util.getProperty(M)+" !== undefined ",w&&(r+=" && Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(M)+"') "),r+=") { ",p.schema=F,p.schemaPath=c+t.util.getProperty(M),p.errSchemaPath=u+"/"+t.util.escapeFragment(M),r+=" "+t.validate(p)+" ",p.baseId=ie,r+=" } ",f&&(r+=" if ("+P+") { ",m+="}"))}return f&&(r+=" "+m+" if ("+h+" == errors) {"),r},"generate_dependencies")});var Xm=z((fD,zm)=>{"use strict";zm.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="valid"+i,p=t.opts.$data&&l&&l.$data,m;p?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",m="schema"+i):m=l;var P="i"+i,E="schema"+i;p||(r+=" var "+E+" = validate.schema"+c+";"),r+="var "+h+";",p&&(r+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),r+=""+h+" = false;for (var "+P+"=0; "+P+"<"+E+".length; "+P+"++) if (equal("+d+", "+E+"["+P+"])) { "+h+" = true; break; }",p&&(r+=" } "),r+=" if (!"+h+") { ";var T=T||[];T.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { allowedValues: schema"+i+" } ",t.opts.messages!==!1&&(r+=" , message: 'should be equal to one of the allowed values' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var w=r;return r=T.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",f&&(r+=" else { "),r},"generate_enum")});var Zm=z((pD,Ym)=>{"use strict";Ym.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||"");if(t.opts.format===!1)return f&&(r+=" if (true) { "),r;var h=t.opts.$data&&l&&l.$data,p;h?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",p="schema"+i):p=l;var m=t.opts.unknownFormats,P=Array.isArray(m);if(h){var E="format"+i,T="isObject"+i,w="formatType"+i;r+=" var "+E+" = formats["+p+"]; var "+T+" = typeof "+E+" == 'object' && !("+E+" instanceof RegExp) && "+E+".validate; var "+w+" = "+T+" && "+E+".type || 'string'; if ("+T+") { ",t.async&&(r+=" var async"+i+" = "+E+".async; "),r+=" "+E+" = "+E+".validate; } if ( ",h&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),r+=" (",m!="ignore"&&(r+=" ("+p+" && !"+E+" ",P&&(r+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),r+=") || "),r+=" ("+E+" && "+w+" == '"+a+"' && !(typeof "+E+" == 'function' ? ",t.async?r+=" (async"+i+" ? await "+E+"("+d+") : "+E+"("+d+")) ":r+=" "+E+"("+d+") ",r+=" : "+E+".test("+d+"))))) {"}else{var E=t.formats[l];if(!E){if(m=="ignore")return t.logger.warn('unknown format "'+l+'" ignored in schema at path "'+t.errSchemaPath+'"'),f&&(r+=" if (true) { "),r;if(P&&m.indexOf(l)>=0)return f&&(r+=" if (true) { "),r;throw new Error('unknown format "'+l+'" is used in schema at path "'+t.errSchemaPath+'"')}var T=typeof E=="object"&&!(E instanceof RegExp)&&E.validate,w=T&&E.type||"string";if(T){var F=E.async===!0;E=E.validate}if(w!=a)return f&&(r+=" if (true) { "),r;if(F){if(!t.async)throw new Error("async format in sync schema");var V="formats"+t.util.getProperty(l)+".validate";r+=" if (!(await "+V+"("+d+"))) { "}else{r+=" if (! ";var V="formats"+t.util.getProperty(l);T&&(V+=".validate"),typeof E=="function"?r+=" "+V+"("+d+") ":r+=" "+V+".test("+d+") ",r+=") { "}}var R=R||[];R.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'format' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { format: ",h?r+=""+p:r+=""+t.util.toQuotedString(l),r+=" } ",t.opts.messages!==!1&&(r+=` , message: 'should match format "`,h?r+="' + "+p+" + '":r+=""+t.util.escapeQuotes(l),r+=`"' `),t.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+c:r+=""+t.util.toQuotedString(l),r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var M=r;return r=R.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+M+"]); ":r+=" validate.errors = ["+M+"]; return false; ":r+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",f&&(r+=" else { "),r},"generate_format")});var th=z((dD,eh)=>{"use strict";eh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="valid"+i,p="errs__"+i,m=t.util.copy(t);m.level++;var P="valid"+m.level,E=t.schema.then,T=t.schema.else,w=E!==void 0&&(t.opts.strictKeywords?typeof E=="object"&&Object.keys(E).length>0||E===!1:t.util.schemaHasRules(E,t.RULES.all)),F=T!==void 0&&(t.opts.strictKeywords?typeof T=="object"&&Object.keys(T).length>0||T===!1:t.util.schemaHasRules(T,t.RULES.all)),V=m.baseId;if(w||F){var R;m.createErrors=!1,m.schema=l,m.schemaPath=c,m.errSchemaPath=u,r+=" var "+p+" = errors; var "+h+" = true; ";var M=t.compositeRule;t.compositeRule=m.compositeRule=!0,r+=" "+t.validate(m)+" ",m.baseId=V,m.createErrors=!0,r+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",t.compositeRule=m.compositeRule=M,w?(r+=" if ("+P+") { ",m.schema=t.schema.then,m.schemaPath=t.schemaPath+".then",m.errSchemaPath=t.errSchemaPath+"/then",r+=" "+t.validate(m)+" ",m.baseId=V,r+=" "+h+" = "+P+"; ",w&&F?(R="ifClause"+i,r+=" var "+R+" = 'then'; "):R="'then'",r+=" } ",F&&(r+=" else { ")):r+=" if (!"+P+") { ",F&&(m.schema=t.schema.else,m.schemaPath=t.schemaPath+".else",m.errSchemaPath=t.errSchemaPath+"/else",r+=" "+t.validate(m)+" ",m.baseId=V,r+=" "+h+" = "+P+"; ",w&&F?(R="ifClause"+i,r+=" var "+R+" = 'else'; "):R="'else'",r+=" } "),r+=" if (!"+h+") { var err = ",t.createErrors!==!1?(r+=" { keyword: 'if' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { failingKeyword: "+R+" } ",t.opts.messages!==!1&&(r+=` , message: 'should match "' + `+R+` + '" schema' `),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&f&&(t.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } ",f&&(r+=" else { ")}else f&&(r+=" if (true) { ");return r},"generate_if")});var nh=z((gD,rh)=>{"use strict";rh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="valid"+i,p="errs__"+i,m=t.util.copy(t),P="";m.level++;var E="valid"+m.level,T="i"+i,w=m.dataLevel=t.dataLevel+1,F="data"+w,V=t.baseId;if(r+="var "+p+" = errors;var "+h+";",Array.isArray(l)){var R=t.schema.additionalItems;if(R===!1){r+=" "+h+" = "+d+".length <= "+l.length+"; ";var M=u;u=t.errSchemaPath+"/additionalItems",r+=" if (!"+h+") { ";var ae=ae||[];ae.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { limit: "+l.length+" } ",t.opts.messages!==!1&&(r+=" , message: 'should NOT have more than "+l.length+" items' "),t.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var O=r;r=ae.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+O+"]); ":r+=" validate.errors = ["+O+"]; return false; ":r+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",u=M,f&&(P+="}",r+=" else { ")}var B=l;if(B){for(var re,G=-1,J=B.length-1;G<J;)if(re=B[G+=1],t.opts.strictKeywords?typeof re=="object"&&Object.keys(re).length>0||re===!1:t.util.schemaHasRules(re,t.RULES.all)){r+=" "+E+" = true; if ("+d+".length > "+G+") { ";var j=d+"["+G+"]";m.schema=re,m.schemaPath=c+"["+G+"]",m.errSchemaPath=u+"/"+G,m.errorPath=t.util.getPathExpr(t.errorPath,G,t.opts.jsonPointers,!0),m.dataPathArr[w]=G;var U=t.validate(m);m.baseId=V,t.util.varOccurences(U,F)<2?r+=" "+t.util.varReplace(U,F,j)+" ":r+=" var "+F+" = "+j+"; "+U+" ",r+=" } ",f&&(r+=" if ("+E+") { ",P+="}")}}if(typeof R=="object"&&(t.opts.strictKeywords?typeof R=="object"&&Object.keys(R).length>0||R===!1:t.util.schemaHasRules(R,t.RULES.all))){m.schema=R,m.schemaPath=t.schemaPath+".additionalItems",m.errSchemaPath=t.errSchemaPath+"/additionalItems",r+=" "+E+" = true; if ("+d+".length > "+l.length+") { for (var "+T+" = "+l.length+"; "+T+" < "+d+".length; "+T+"++) { ",m.errorPath=t.util.getPathExpr(t.errorPath,T,t.opts.jsonPointers,!0);var j=d+"["+T+"]";m.dataPathArr[w]=T;var U=t.validate(m);m.baseId=V,t.util.varOccurences(U,F)<2?r+=" "+t.util.varReplace(U,F,j)+" ":r+=" var "+F+" = "+j+"; "+U+" ",f&&(r+=" if (!"+E+") break; "),r+=" } } ",f&&(r+=" if ("+E+") { ",P+="}")}}else if(t.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:t.util.schemaHasRules(l,t.RULES.all)){m.schema=l,m.schemaPath=c,m.errSchemaPath=u,r+=" for (var "+T+" = "+0+"; "+T+" < "+d+".length; "+T+"++) { ",m.errorPath=t.util.getPathExpr(t.errorPath,T,t.opts.jsonPointers,!0);var j=d+"["+T+"]";m.dataPathArr[w]=T;var U=t.validate(m);m.baseId=V,t.util.varOccurences(U,F)<2?r+=" "+t.util.varReplace(U,F,j)+" ":r+=" var "+F+" = "+j+"; "+U+" ",f&&(r+=" if (!"+E+") break; "),r+=" }"}return f&&(r+=" "+P+" if ("+p+" == errors) {"),r},"generate_items")});var fc=z((mD,ah)=>{"use strict";ah.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,V,d="data"+(s||""),h=t.opts.$data&&l&&l.$data,p;h?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",p="schema"+i):p=l;var m=n=="maximum",P=m?"exclusiveMaximum":"exclusiveMinimum",E=t.schema[P],T=t.opts.$data&&E&&E.$data,w=m?"<":">",F=m?">":"<",V=void 0;if(!(h||typeof l=="number"||l===void 0))throw new Error(n+" must be number");if(!(T||E===void 0||typeof E=="number"||typeof E=="boolean"))throw new Error(P+" must be number or boolean");if(T){var R=t.util.getData(E.$data,s,t.dataPathArr),M="exclusive"+i,ae="exclType"+i,O="exclIsNumber"+i,B="op"+i,re="' + "+B+" + '";r+=" var schemaExcl"+i+" = "+R+"; ",R="schemaExcl"+i,r+=" var "+M+"; var "+ae+" = typeof "+R+"; if ("+ae+" != 'boolean' && "+ae+" != 'undefined' && "+ae+" != 'number') { ";var V=P,G=G||[];G.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(V||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(r+=" , message: '"+P+" should be boolean' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var J=r;r=G.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+J+"]); ":r+=" validate.errors = ["+J+"]; return false; ":r+=" var err = "+J+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else if ( ",h&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" "+ae+" == 'number' ? ( ("+M+" = "+p+" === undefined || "+R+" "+w+"= "+p+") ? "+d+" "+F+"= "+R+" : "+d+" "+F+" "+p+" ) : ( ("+M+" = "+R+" === true) ? "+d+" "+F+"= "+p+" : "+d+" "+F+" "+p+" ) || "+d+" !== "+d+") { var op"+i+" = "+M+" ? '"+w+"' : '"+w+"='; ",l===void 0&&(V=P,u=t.errSchemaPath+"/"+P,p=R,h=T)}else{var O=typeof E=="number",re=w;if(O&&h){var B="'"+re+"'";r+=" if ( ",h&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" ( "+p+" === undefined || "+E+" "+w+"= "+p+" ? "+d+" "+F+"= "+E+" : "+d+" "+F+" "+p+" ) || "+d+" !== "+d+") { "}else{O&&l===void 0?(M=!0,V=P,u=t.errSchemaPath+"/"+P,p=E,F+="="):(O&&(p=Math[m?"min":"max"](E,l)),E===(O?p:!0)?(M=!0,V=P,u=t.errSchemaPath+"/"+P,F+="="):(M=!1,re+="="));var B="'"+re+"'";r+=" if ( ",h&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" "+d+" "+F+" "+p+" || "+d+" !== "+d+") { "}}V=V||n;var G=G||[];G.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(V||"_limit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { comparison: "+B+", limit: "+p+", exclusive: "+M+" } ",t.opts.messages!==!1&&(r+=" , message: 'should be "+re+" ",h?r+="' + "+p:r+=""+p+"'"),t.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+c:r+=""+l,r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var J=r;return r=G.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+J+"]); ":r+=" validate.errors = ["+J+"]; return false; ":r+=" var err = "+J+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",f&&(r+=" else { "),r},"generate__limit")});var pc=z((hD,ih)=>{"use strict";ih.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,P,d="data"+(s||""),h=t.opts.$data&&l&&l.$data,p;if(h?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",p="schema"+i):p=l,!(h||typeof l=="number"))throw new Error(n+" must be number");var m=n=="maxItems"?">":"<";r+="if ( ",h&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" "+d+".length "+m+" "+p+") { ";var P=n,E=E||[];E.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(P||"_limitItems")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { limit: "+p+" } ",t.opts.messages!==!1&&(r+=" , message: 'should NOT have ",n=="maxItems"?r+="more":r+="fewer",r+=" than ",h?r+="' + "+p+" + '":r+=""+l,r+=" items' "),t.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+c:r+=""+l,r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var T=r;return r=E.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",f&&(r+=" else { "),r},"generate__limitItems")});var dc=z((vD,oh)=>{"use strict";oh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,P,d="data"+(s||""),h=t.opts.$data&&l&&l.$data,p;if(h?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",p="schema"+i):p=l,!(h||typeof l=="number"))throw new Error(n+" must be number");var m=n=="maxLength"?">":"<";r+="if ( ",h&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),t.opts.unicode===!1?r+=" "+d+".length ":r+=" ucs2length("+d+") ",r+=" "+m+" "+p+") { ";var P=n,E=E||[];E.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(P||"_limitLength")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { limit: "+p+" } ",t.opts.messages!==!1&&(r+=" , message: 'should NOT be ",n=="maxLength"?r+="longer":r+="shorter",r+=" than ",h?r+="' + "+p+" + '":r+=""+l,r+=" characters' "),t.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+c:r+=""+l,r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var T=r;return r=E.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",f&&(r+=" else { "),r},"generate__limitLength")});var gc=z((yD,sh)=>{"use strict";sh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,P,d="data"+(s||""),h=t.opts.$data&&l&&l.$data,p;if(h?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",p="schema"+i):p=l,!(h||typeof l=="number"))throw new Error(n+" must be number");var m=n=="maxProperties"?">":"<";r+="if ( ",h&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" Object.keys("+d+").length "+m+" "+p+") { ";var P=n,E=E||[];E.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(P||"_limitProperties")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { limit: "+p+" } ",t.opts.messages!==!1&&(r+=" , message: 'should NOT have ",n=="maxProperties"?r+="more":r+="fewer",r+=" than ",h?r+="' + "+p+" + '":r+=""+l,r+=" properties' "),t.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+c:r+=""+l,r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var T=r;return r=E.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+T+"]); ":r+=" validate.errors = ["+T+"]; return false; ":r+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",f&&(r+=" else { "),r},"generate__limitProperties")});var ch=z((bD,lh)=>{"use strict";lh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h=t.opts.$data&&l&&l.$data,p;if(h?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",p="schema"+i):p=l,!(h||typeof l=="number"))throw new Error(n+" must be number");r+="var division"+i+";if (",h&&(r+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "),r+=" (division"+i+" = "+d+" / "+p+", ",t.opts.multipleOfPrecision?r+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+t.opts.multipleOfPrecision+" ":r+=" division"+i+" !== parseInt(division"+i+") ",r+=" ) ",h&&(r+=" ) "),r+=" ) { ";var m=m||[];m.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { multipleOf: "+p+" } ",t.opts.messages!==!1&&(r+=" , message: 'should be multiple of ",h?r+="' + "+p:r+=""+p+"'"),t.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+c:r+=""+l,r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var P=r;return r=m.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+P+"]); ":r+=" validate.errors = ["+P+"]; return false; ":r+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",f&&(r+=" else { "),r},"generate_multipleOf")});var fh=z((ED,uh)=>{"use strict";uh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="errs__"+i,p=t.util.copy(t);p.level++;var m="valid"+p.level;if(t.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:t.util.schemaHasRules(l,t.RULES.all)){p.schema=l,p.schemaPath=c,p.errSchemaPath=u,r+=" var "+h+" = errors; ";var P=t.compositeRule;t.compositeRule=p.compositeRule=!0,p.createErrors=!1;var E;p.opts.allErrors&&(E=p.opts.allErrors,p.opts.allErrors=!1),r+=" "+t.validate(p)+" ",p.createErrors=!0,E&&(p.opts.allErrors=E),t.compositeRule=p.compositeRule=P,r+=" if ("+m+") { ";var T=T||[];T.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(r+=" , message: 'should NOT be valid' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var w=r;r=T.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",t.opts.allErrors&&(r+=" } ")}else r+=" var err = ",t.createErrors!==!1?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",t.opts.messages!==!1&&(r+=" , message: 'should NOT be valid' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",f&&(r+=" if (false) { ");return r},"generate_not")});var dh=z((PD,ph)=>{"use strict";ph.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="valid"+i,p="errs__"+i,m=t.util.copy(t),P="";m.level++;var E="valid"+m.level,T=m.baseId,w="prevValid"+i,F="passingSchemas"+i;r+="var "+p+" = errors , "+w+" = false , "+h+" = false , "+F+" = null; ";var V=t.compositeRule;t.compositeRule=m.compositeRule=!0;var R=l;if(R)for(var M,ae=-1,O=R.length-1;ae<O;)M=R[ae+=1],(t.opts.strictKeywords?typeof M=="object"&&Object.keys(M).length>0||M===!1:t.util.schemaHasRules(M,t.RULES.all))?(m.schema=M,m.schemaPath=c+"["+ae+"]",m.errSchemaPath=u+"/"+ae,r+=" "+t.validate(m)+" ",m.baseId=T):r+=" var "+E+" = true; ",ae&&(r+=" if ("+E+" && "+w+") { "+h+" = false; "+F+" = ["+F+", "+ae+"]; } else { ",P+="}"),r+=" if ("+E+") { "+h+" = "+w+" = true; "+F+" = "+ae+"; }";return t.compositeRule=m.compositeRule=V,r+=""+P+"if (!"+h+") { var err = ",t.createErrors!==!1?(r+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { passingSchemas: "+F+" } ",t.opts.messages!==!1&&(r+=" , message: 'should match exactly one schema in oneOf' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&f&&(t.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",t.opts.allErrors&&(r+=" } "),r},"generate_oneOf")});var mh=z((CD,gh)=>{"use strict";gh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h=t.opts.$data&&l&&l.$data,p;h?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",p="schema"+i):p=l;var m=h?"(new RegExp("+p+"))":t.usePattern(l);r+="if ( ",h&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),r+=" !"+m+".test("+d+") ) { ";var P=P||[];P.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { pattern: ",h?r+=""+p:r+=""+t.util.toQuotedString(l),r+=" } ",t.opts.messages!==!1&&(r+=` , message: 'should match pattern "`,h?r+="' + "+p+" + '":r+=""+t.util.escapeQuotes(l),r+=`"' `),t.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+c:r+=""+t.util.toQuotedString(l),r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var E=r;return r=P.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",f&&(r+=" else { "),r},"generate_pattern")});var vh=z((OD,hh)=>{"use strict";hh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="errs__"+i,p=t.util.copy(t),m="";p.level++;var P="valid"+p.level,E="key"+i,T="idx"+i,w=p.dataLevel=t.dataLevel+1,F="data"+w,V="dataProperties"+i,R=Object.keys(l||{}).filter(ve),M=t.schema.patternProperties||{},ae=Object.keys(M).filter(ve),O=t.schema.additionalProperties,B=R.length||ae.length,re=O===!1,G=typeof O=="object"&&Object.keys(O).length,J=t.opts.removeAdditional,j=re||G||J,U=t.opts.ownProperties,te=t.baseId,oe=t.schema.required;if(oe&&!(t.opts.$data&&oe.$data)&&oe.length<t.opts.loopRequired)var Ee=t.util.toHash(oe);function ve(K){return K!=="__proto__"}if(o(ve,"notProto"),r+="var "+h+" = errors;var "+P+" = true;",U&&(r+=" var "+V+" = undefined;"),j){if(U?r+=" "+V+" = "+V+" || Object.keys("+d+"); for (var "+T+"=0; "+T+"<"+V+".length; "+T+"++) { var "+E+" = "+V+"["+T+"]; ":r+=" for (var "+E+" in "+d+") { ",B){if(r+=" var isAdditional"+i+" = !(false ",R.length)if(R.length>8)r+=" || validate.schema"+c+".hasOwnProperty("+E+") ";else{var ue=R;if(ue)for(var ie,ge=-1,He=ue.length-1;ge<He;)ie=ue[ge+=1],r+=" || "+E+" == "+t.util.toQuotedString(ie)+" "}if(ae.length){var rt=ae;if(rt)for(var ce,ze=-1,y=rt.length-1;ze<y;)ce=rt[ze+=1],r+=" || "+t.usePattern(ce)+".test("+E+") "}r+=" ); if (isAdditional"+i+") { "}if(J=="all")r+=" delete "+d+"["+E+"]; ";else{var g=t.errorPath,L="' + "+E+" + '";if(t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(t.errorPath,E,t.opts.jsonPointers)),re)if(J)r+=" delete "+d+"["+E+"]; ";else{r+=" "+P+" = false; ";var x=u;u=t.errSchemaPath+"/additionalProperties";var pe=pe||[];pe.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { additionalProperty: '"+L+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is an invalid additional property":r+="should NOT have additional properties",r+="' "),t.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var me=r;r=pe.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+me+"]); ":r+=" validate.errors = ["+me+"]; return false; ":r+=" var err = "+me+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=x,f&&(r+=" break; ")}else if(G)if(J=="failing"){r+=" var "+h+" = errors; ";var Je=t.compositeRule;t.compositeRule=p.compositeRule=!0,p.schema=O,p.schemaPath=t.schemaPath+".additionalProperties",p.errSchemaPath=t.errSchemaPath+"/additionalProperties",p.errorPath=t.opts._errorDataPathProperty?t.errorPath:t.util.getPathExpr(t.errorPath,E,t.opts.jsonPointers);var je=d+"["+E+"]";p.dataPathArr[w]=E;var be=t.validate(p);p.baseId=te,t.util.varOccurences(be,F)<2?r+=" "+t.util.varReplace(be,F,je)+" ":r+=" var "+F+" = "+je+"; "+be+" ",r+=" if (!"+P+") { errors = "+h+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+d+"["+E+"]; } ",t.compositeRule=p.compositeRule=Je}else{p.schema=O,p.schemaPath=t.schemaPath+".additionalProperties",p.errSchemaPath=t.errSchemaPath+"/additionalProperties",p.errorPath=t.opts._errorDataPathProperty?t.errorPath:t.util.getPathExpr(t.errorPath,E,t.opts.jsonPointers);var je=d+"["+E+"]";p.dataPathArr[w]=E;var be=t.validate(p);p.baseId=te,t.util.varOccurences(be,F)<2?r+=" "+t.util.varReplace(be,F,je)+" ":r+=" var "+F+" = "+je+"; "+be+" ",f&&(r+=" if (!"+P+") break; ")}t.errorPath=g}B&&(r+=" } "),r+=" } ",f&&(r+=" if ("+P+") { ",m+="}")}var Lt=t.opts.useDefaults&&!t.compositeRule;if(R.length){var We=R;if(We)for(var ie,Ct=-1,Or=We.length-1;Ct<Or;){ie=We[Ct+=1];var nt=l[ie];if(t.opts.strictKeywords?typeof nt=="object"&&Object.keys(nt).length>0||nt===!1:t.util.schemaHasRules(nt,t.RULES.all)){var _t=t.util.getProperty(ie),je=d+_t,Ot=Lt&&nt.default!==void 0;p.schema=nt,p.schemaPath=c+_t,p.errSchemaPath=u+"/"+t.util.escapeFragment(ie),p.errorPath=t.util.getPath(t.errorPath,ie,t.opts.jsonPointers),p.dataPathArr[w]=t.util.toQuotedString(ie);var be=t.validate(p);if(p.baseId=te,t.util.varOccurences(be,F)<2){be=t.util.varReplace(be,F,je);var $t=je}else{var $t=F;r+=" var "+F+" = "+je+"; "}if(Ot)r+=" "+be+" ";else{if(Ee&&Ee[ie]){r+=" if ( "+$t+" === undefined ",U&&(r+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(ie)+"') "),r+=") { "+P+" = false; ";var g=t.errorPath,x=u,zt=t.util.escapeQuotes(ie);t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(g,ie,t.opts.jsonPointers)),u=t.errSchemaPath+"/required";var pe=pe||[];pe.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+zt+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+zt+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var me=r;r=pe.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+me+"]); ":r+=" validate.errors = ["+me+"]; return false; ":r+=" var err = "+me+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=x,t.errorPath=g,r+=" } else { "}else f?(r+=" if ( "+$t+" === undefined ",U&&(r+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(ie)+"') "),r+=") { "+P+" = true; } else { "):(r+=" if ("+$t+" !== undefined ",U&&(r+=" && Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(ie)+"') "),r+=" ) { ");r+=" "+be+" } "}}f&&(r+=" if ("+P+") { ",m+="}")}}if(ae.length){var I=ae;if(I)for(var ce,$=-1,k=I.length-1;$<k;){ce=I[$+=1];var nt=M[ce];if(t.opts.strictKeywords?typeof nt=="object"&&Object.keys(nt).length>0||nt===!1:t.util.schemaHasRules(nt,t.RULES.all)){p.schema=nt,p.schemaPath=t.schemaPath+".patternProperties"+t.util.getProperty(ce),p.errSchemaPath=t.errSchemaPath+"/patternProperties/"+t.util.escapeFragment(ce),U?r+=" "+V+" = "+V+" || Object.keys("+d+"); for (var "+T+"=0; "+T+"<"+V+".length; "+T+"++) { var "+E+" = "+V+"["+T+"]; ":r+=" for (var "+E+" in "+d+") { ",r+=" if ("+t.usePattern(ce)+".test("+E+")) { ",p.errorPath=t.util.getPathExpr(t.errorPath,E,t.opts.jsonPointers);var je=d+"["+E+"]";p.dataPathArr[w]=E;var be=t.validate(p);p.baseId=te,t.util.varOccurences(be,F)<2?r+=" "+t.util.varReplace(be,F,je)+" ":r+=" var "+F+" = "+je+"; "+be+" ",f&&(r+=" if (!"+P+") break; "),r+=" } ",f&&(r+=" else "+P+" = true; "),r+=" } ",f&&(r+=" if ("+P+") { ",m+="}")}}}return f&&(r+=" "+m+" if ("+h+" == errors) {"),r},"generate_properties")});var bh=z((SD,yh)=>{"use strict";yh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="errs__"+i,p=t.util.copy(t),m="";p.level++;var P="valid"+p.level;if(r+="var "+h+" = errors;",t.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:t.util.schemaHasRules(l,t.RULES.all)){p.schema=l,p.schemaPath=c,p.errSchemaPath=u;var E="key"+i,T="idx"+i,w="i"+i,F="' + "+E+" + '",V=p.dataLevel=t.dataLevel+1,R="data"+V,M="dataProperties"+i,ae=t.opts.ownProperties,O=t.baseId;ae&&(r+=" var "+M+" = undefined; "),ae?r+=" "+M+" = "+M+" || Object.keys("+d+"); for (var "+T+"=0; "+T+"<"+M+".length; "+T+"++) { var "+E+" = "+M+"["+T+"]; ":r+=" for (var "+E+" in "+d+") { ",r+=" var startErrs"+i+" = errors; ";var B=E,re=t.compositeRule;t.compositeRule=p.compositeRule=!0;var G=t.validate(p);p.baseId=O,t.util.varOccurences(G,R)<2?r+=" "+t.util.varReplace(G,R,B)+" ":r+=" var "+R+" = "+B+"; "+G+" ",t.compositeRule=p.compositeRule=re,r+=" if (!"+P+") { for (var "+w+"=startErrs"+i+"; "+w+"<errors; "+w+"++) { vErrors["+w+"].propertyName = "+E+"; } var err = ",t.createErrors!==!1?(r+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { propertyName: '"+F+"' } ",t.opts.messages!==!1&&(r+=" , message: 'property name \\'"+F+"\\' is invalid' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&f&&(t.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),f&&(r+=" break; "),r+=" } }"}return f&&(r+=" "+m+" if ("+h+" == errors) {"),r},"generate_propertyNames")});var Ph=z((TD,Eh)=>{"use strict";Eh.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="valid"+i,p=t.opts.$data&&l&&l.$data,m;p?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",m="schema"+i):m=l;var P="schema"+i;if(!p)if(l.length<t.opts.loopRequired&&t.schema.properties&&Object.keys(t.schema.properties).length){var E=[],T=l;if(T)for(var w,F=-1,V=T.length-1;F<V;){w=T[F+=1];var R=t.schema.properties[w];R&&(t.opts.strictKeywords?typeof R=="object"&&Object.keys(R).length>0||R===!1:t.util.schemaHasRules(R,t.RULES.all))||(E[E.length]=w)}}else var E=l;if(p||E.length){var M=t.errorPath,ae=p||E.length>=t.opts.loopRequired,O=t.opts.ownProperties;if(f)if(r+=" var missing"+i+"; ",ae){p||(r+=" var "+P+" = validate.schema"+c+"; ");var B="i"+i,re="schema"+i+"["+B+"]",G="' + "+re+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(M,re,t.opts.jsonPointers)),r+=" var "+h+" = true; ",p&&(r+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),r+=" for (var "+B+" = 0; "+B+" < "+P+".length; "+B+"++) { "+h+" = "+d+"["+P+"["+B+"]] !== undefined ",O&&(r+=" && Object.prototype.hasOwnProperty.call("+d+", "+P+"["+B+"]) "),r+="; if (!"+h+") break; } ",p&&(r+=" } "),r+=" if (!"+h+") { ";var J=J||[];J.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+G+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+G+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var j=r;r=J.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+j+"]); ":r+=" validate.errors = ["+j+"]; return false; ":r+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else{r+=" if ( ";var U=E;if(U)for(var te,B=-1,oe=U.length-1;B<oe;){te=U[B+=1],B&&(r+=" || ");var Ee=t.util.getProperty(te),ve=d+Ee;r+=" ( ( "+ve+" === undefined ",O&&(r+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(te)+"') "),r+=") && (missing"+i+" = "+t.util.toQuotedString(t.opts.jsonPointers?te:Ee)+") ) "}r+=") { ";var re="missing"+i,G="' + "+re+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.opts.jsonPointers?t.util.getPathExpr(M,re,!0):M+" + "+re);var J=J||[];J.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+G+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+G+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var j=r;r=J.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+j+"]); ":r+=" validate.errors = ["+j+"]; return false; ":r+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else if(ae){p||(r+=" var "+P+" = validate.schema"+c+"; ");var B="i"+i,re="schema"+i+"["+B+"]",G="' + "+re+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(M,re,t.opts.jsonPointers)),p&&(r+=" if ("+P+" && !Array.isArray("+P+")) { var err = ",t.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+G+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+G+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+P+" !== undefined) { "),r+=" for (var "+B+" = 0; "+B+" < "+P+".length; "+B+"++) { if ("+d+"["+P+"["+B+"]] === undefined ",O&&(r+=" || ! Object.prototype.hasOwnProperty.call("+d+", "+P+"["+B+"]) "),r+=") { var err = ",t.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+G+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+G+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(r+=" } ")}else{var ue=E;if(ue)for(var te,ie=-1,ge=ue.length-1;ie<ge;){te=ue[ie+=1];var Ee=t.util.getProperty(te),G=t.util.escapeQuotes(te),ve=d+Ee;t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(M,te,t.opts.jsonPointers)),r+=" if ( "+ve+" === undefined ",O&&(r+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+t.util.escapeQuotes(te)+"') "),r+=") { var err = ",t.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+G+"' } ",t.opts.messages!==!1&&(r+=" , message: '",t.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+G+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}t.errorPath=M}else f&&(r+=" if (true) {");return r},"generate_required")});var Oh=z((AD,Ch)=>{"use strict";Ch.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d="data"+(s||""),h="valid"+i,p=t.opts.$data&&l&&l.$data,m;if(p?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",m="schema"+i):m=l,(l||p)&&t.opts.uniqueItems!==!1){p&&(r+=" var "+h+"; if ("+m+" === false || "+m+" === undefined) "+h+" = true; else if (typeof "+m+" != 'boolean') "+h+" = false; else { "),r+=" var i = "+d+".length , "+h+" = true , j; if (i > 1) { ";var P=t.schema.items&&t.schema.items.type,E=Array.isArray(P);if(!P||P=="object"||P=="array"||E&&(P.indexOf("object")>=0||P.indexOf("array")>=0))r+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+h+" = false; break outer; } } } ";else{r+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var T="checkDataType"+(E?"s":"");r+=" if ("+t.util[T](P,"item",t.opts.strictNumbers,!0)+") continue; ",E&&(r+=` if (typeof item == 'string') item = '"' + item; `),r+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}r+=" } ",p&&(r+=" } "),r+=" if (!"+h+") { ";var w=w||[];w.push(r),r="",t.createErrors!==!1?(r+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { i: i, j: j } ",t.opts.messages!==!1&&(r+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),t.opts.verbose&&(r+=" , schema: ",p?r+="validate.schema"+c:r+=""+l,r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),r+=" } "):r+=" {} ";var F=r;r=w.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+F+"]); ":r+=" validate.errors = ["+F+"]; return false; ":r+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",f&&(r+=" else { ")}else f&&(r+=" if (true) { ");return r},"generate_uniqueItems")});var Th=z((xD,Sh)=>{"use strict";Sh.exports={$ref:Rm(),allOf:Mm(),anyOf:km(),$comment:Gm(),const:Qm(),contains:Km(),dependencies:Wm(),enum:Xm(),format:Zm(),if:th(),items:nh(),maximum:fc(),minimum:fc(),maxItems:pc(),minItems:pc(),maxLength:dc(),minLength:dc(),maxProperties:gc(),minProperties:gc(),multipleOf:ch(),not:fh(),oneOf:dh(),pattern:mh(),properties:vh(),propertyNames:bh(),required:Ph(),uniqueItems:Oh(),validate:cc()}});var Ih=z((ID,xh)=>{"use strict";var Ah=Th(),mc=ia().toHash;xh.exports=o(function(){var t=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],n=["type","$comment"],a=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],r=["number","integer","string","array","object","boolean","null"];return t.all=mc(n),t.types=mc(r),t.forEach(function(i){i.rules=i.rules.map(function(s){var l;if(typeof s=="object"){var c=Object.keys(s)[0];l=s[c],s=c,l.forEach(function(f){n.push(f),t.all[f]=!0})}n.push(s);var u=t.all[s]={keyword:s,code:Ah[s],implements:l};return u}),t.all.$comment={keyword:"$comment",code:Ah.$comment},i.type&&(t.types[i.type]=i)}),t.keywords=mc(n.concat(a)),t.custom={},t},"rules")});var Dh=z((FD,_h)=>{"use strict";var Fh=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];_h.exports=function(e,t){for(var n=0;n<t.length;n++){e=JSON.parse(JSON.stringify(e));var a=t[n].split("/"),r=e,i;for(i=1;i<a.length;i++)r=r[a[i]];for(i=0;i<Fh.length;i++){var s=Fh[i],l=r[s];l&&(r[s]={anyOf:[l,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}});var Lh=z((_D,wh)=>{"use strict";var MT=Es().MissingRef;wh.exports=Nh;function Nh(e,t,n){var a=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof t=="function"&&(n=t,t=void 0);var r=i(e).then(function(){var l=a._addSchema(e,void 0,t);return l.validate||s(l)});return n&&r.then(function(l){n(null,l)},n),r;function i(l){var c=l.$schema;return c&&!a.getSchema(c)?Nh.call(a,{$ref:c},!0):Promise.resolve()}o(i,"loadMetaSchemaOf");function s(l){try{return a._compile(l)}catch(u){if(u instanceof MT)return c(u);throw u}function c(u){var f=u.missingSchema;if(p(f))throw new Error("Schema "+f+" is loaded but "+u.missingRef+" cannot be resolved");var d=a._loadingSchemas[f];return d||(d=a._loadingSchemas[f]=a._opts.loadSchema(f),d.then(h,h)),d.then(function(m){if(!p(f))return i(m).then(function(){p(f)||a.addSchema(m,f,void 0,t)})}).then(function(){return s(l)});function h(){delete a._loadingSchemas[f]}o(h,"removePromise");function p(m){return a._refs[m]||a._schemas[m]}o(p,"added")}o(c,"loadMissingSchema")}o(s,"_compileAsync")}o(Nh,"compileAsync")});var Vh=z((DD,$h)=>{"use strict";$h.exports=o(function(t,n,a){var r=" ",i=t.level,s=t.dataLevel,l=t.schema[n],c=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,f=!t.opts.allErrors,d,h="data"+(s||""),p="valid"+i,m="errs__"+i,P=t.opts.$data&&l&&l.$data,E;P?(r+=" var schema"+i+" = "+t.util.getData(l.$data,s,t.dataPathArr)+"; ",E="schema"+i):E=l;var T=this,w="definition"+i,F=T.definition,V="",R,M,ae,O,B;if(P&&F.$data){B="keywordValidate"+i;var re=F.validateSchema;r+=" var "+w+" = RULES.custom['"+n+"'].definition; var "+B+" = "+w+".validate;"}else{if(O=t.useCustomRule(T,l,t.schema,t),!O)return;E="validate.schema"+c,B=O.code,R=F.compile,M=F.inline,ae=F.macro}var G=B+".errors",J="i"+i,j="ruleErr"+i,U=F.async;if(U&&!t.async)throw new Error("async keyword in sync schema");if(M||ae||(r+=""+G+" = null;"),r+="var "+m+" = errors;var "+p+";",P&&F.$data&&(V+="}",r+=" if ("+E+" === undefined) { "+p+" = true; } else { ",re&&(V+="}",r+=" "+p+" = "+w+".validateSchema("+E+"); if ("+p+") { ")),M)F.statements?r+=" "+O.validate+" ":r+=" "+p+" = "+O.validate+"; ";else if(ae){var te=t.util.copy(t),V="";te.level++;var oe="valid"+te.level;te.schema=O.validate,te.schemaPath="";var Ee=t.compositeRule;t.compositeRule=te.compositeRule=!0;var ve=t.validate(te).replace(/validate\.schema/g,B);t.compositeRule=te.compositeRule=Ee,r+=" "+ve}else{var ue=ue||[];ue.push(r),r="",r+=" "+B+".call( ",t.opts.passContext?r+="this":r+="self",R||F.schema===!1?r+=" , "+h+" ":r+=" , "+E+" , "+h+" , validate.schema"+t.schemaPath+" ",r+=" , (dataPath || '')",t.errorPath!='""'&&(r+=" + "+t.errorPath);var ie=s?"data"+(s-1||""):"parentData",ge=s?t.dataPathArr[s]:"parentDataProperty";r+=" , "+ie+" , "+ge+" , rootData ) ";var He=r;r=ue.pop(),F.errors===!1?(r+=" "+p+" = ",U&&(r+="await "),r+=""+He+"; "):U?(G="customErrors"+i,r+=" var "+G+" = null; try { "+p+" = await "+He+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+G+" = e.errors; else throw e; } "):r+=" "+G+" = null; "+p+" = "+He+"; "}if(F.modifying&&(r+=" if ("+ie+") "+h+" = "+ie+"["+ge+"];"),r+=""+V,F.valid)f&&(r+=" if (true) { ");else{r+=" if ( ",F.valid===void 0?(r+=" !",ae?r+=""+oe:r+=""+p):r+=" "+!F.valid+" ",r+=") { ",d=T.keyword;var ue=ue||[];ue.push(r),r="";var ue=ue||[];ue.push(r),r="",t.createErrors!==!1?(r+=" { keyword: '"+(d||"custom")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { keyword: '"+T.keyword+"' } ",t.opts.messages!==!1&&(r+=` , message: 'should pass "`+T.keyword+`" keyword validation' `),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ";var rt=r;r=ue.pop(),!t.compositeRule&&f?t.async?r+=" throw new ValidationError(["+rt+"]); ":r+=" validate.errors = ["+rt+"]; return false; ":r+=" var err = "+rt+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var ce=r;r=ue.pop(),M?F.errors?F.errors!="full"&&(r+=" for (var "+J+"="+m+"; "+J+"<errors; "+J+"++) { var "+j+" = vErrors["+J+"]; if ("+j+".dataPath === undefined) "+j+".dataPath = (dataPath || '') + "+t.errorPath+"; if ("+j+".schemaPath === undefined) { "+j+'.schemaPath = "'+u+'"; } ',t.opts.verbose&&(r+=" "+j+".schema = "+E+"; "+j+".data = "+h+"; "),r+=" } "):F.errors===!1?r+=" "+ce+" ":(r+=" if ("+m+" == errors) { "+ce+" } else { for (var "+J+"="+m+"; "+J+"<errors; "+J+"++) { var "+j+" = vErrors["+J+"]; if ("+j+".dataPath === undefined) "+j+".dataPath = (dataPath || '') + "+t.errorPath+"; if ("+j+".schemaPath === undefined) { "+j+'.schemaPath = "'+u+'"; } ',t.opts.verbose&&(r+=" "+j+".schema = "+E+"; "+j+".data = "+h+"; "),r+=" } } "):ae?(r+=" var err = ",t.createErrors!==!1?(r+=" { keyword: '"+(d||"custom")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { keyword: '"+T.keyword+"' } ",t.opts.messages!==!1&&(r+=` , message: 'should pass "`+T.keyword+`" keyword validation' `),t.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&f&&(t.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; ")):F.errors===!1?r+=" "+ce+" ":(r+=" if (Array.isArray("+G+")) { if (vErrors === null) vErrors = "+G+"; else vErrors = vErrors.concat("+G+"); errors = vErrors.length; for (var "+J+"="+m+"; "+J+"<errors; "+J+"++) { var "+j+" = vErrors["+J+"]; if ("+j+".dataPath === undefined) "+j+".dataPath = (dataPath || '') + "+t.errorPath+"; "+j+'.schemaPath = "'+u+'"; ',t.opts.verbose&&(r+=" "+j+".schema = "+E+"; "+j+".data = "+h+"; "),r+=" } } else { "+ce+" } "),r+=" } ",f&&(r+=" else { ")}return r},"generate_custom")});var hc=z((ND,UT)=>{UT.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Mh=z((wD,jh)=>{"use strict";var Rh=hc();jh.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:Rh.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:Rh.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var kh=z((LD,Uh)=>{"use strict";var kT=/^[a-z_$][a-z0-9_$-]*$/i,BT=Vh(),GT=Mh();Uh.exports={add:HT,get:QT,remove:qT,validate:vc};function HT(e,t){var n=this.RULES;if(n.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!kT.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var a=t.type;if(Array.isArray(a))for(var r=0;r<a.length;r++)s(e,a[r],t);else s(e,a,t);var i=t.metaSchema;i&&(t.$data&&this._opts.$data&&(i={anyOf:[i,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(i,!0))}n.keywords[e]=n.all[e]=!0;function s(l,c,u){for(var f,d=0;d<n.length;d++){var h=n[d];if(h.type==c){f=h;break}}f||(f={type:c,rules:[]},n.push(f));var p={keyword:l,definition:u,custom:!0,code:BT,implements:u.implements};f.rules.push(p),n.custom[l]=p}return o(s,"_addRule"),this}o(HT,"addKeyword");function QT(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1}o(QT,"getKeyword");function qT(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var n=0;n<t.length;n++)for(var a=t[n].rules,r=0;r<a.length;r++)if(a[r].keyword==e){a.splice(r,1);break}return this}o(qT,"removeKeyword");function vc(e,t){vc.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(GT,!0);if(n(e))return!0;if(vc.errors=n.errors,t)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}o(vc,"validateKeyword")});var Bh=z(($D,KT)=>{KT.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Yh=z((VD,Xh)=>{"use strict";var Hh=Pm(),oa=bs(),JT=Om(),Qh=rc(),WT=lc(),zT=$m(),XT=Ih(),qh=Dh(),Kh=ia();Xh.exports=dt;dt.prototype.validate=ZT;dt.prototype.compile=eA;dt.prototype.addSchema=tA;dt.prototype.addMetaSchema=rA;dt.prototype.validateSchema=nA;dt.prototype.getSchema=iA;dt.prototype.removeSchema=sA;dt.prototype.addFormat=mA;dt.prototype.errorsText=gA;dt.prototype._addSchema=lA;dt.prototype._compile=cA;dt.prototype.compileAsync=Lh();var Is=kh();dt.prototype.addKeyword=Is.add;dt.prototype.getKeyword=Is.get;dt.prototype.removeKeyword=Is.remove;dt.prototype.validateKeyword=Is.validate;var Jh=Es();dt.ValidationError=Jh.Validation;dt.MissingRefError=Jh.MissingRef;dt.$dataMetaSchema=qh;var xs="http://json-schema.org/draft-07/schema",Gh=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],YT=["/properties"];function dt(e){if(!(this instanceof dt))return new dt(e);e=this._opts=Kh.copy(e)||{},PA(this),this._schemas={},this._refs={},this._fragments={},this._formats=zT(e.format),this._cache=e.cache||new JT,this._loadingSchemas={},this._compilations=[],this.RULES=XT(),this._getId=uA(e),e.loopRequired=e.loopRequired||1/0,e.errorDataPath=="property"&&(e._errorDataPathProperty=!0),e.serialize===void 0&&(e.serialize=WT),this._metaOpts=EA(this),e.formats&&yA(this),e.keywords&&bA(this),hA(this),typeof e.meta=="object"&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),vA(this)}o(dt,"Ajv");function ZT(e,t){var n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error('no schema with key or ref "'+e+'"')}else{var a=this._addSchema(e);n=a.validate||this._compile(a)}var r=n(t);return n.$async!==!0&&(this.errors=n.errors),r}o(ZT,"validate");function eA(e,t){var n=this._addSchema(e,void 0,t);return n.validate||this._compile(n)}o(eA,"compile");function tA(e,t,n,a){if(Array.isArray(e)){for(var r=0;r<e.length;r++)this.addSchema(e[r],void 0,n,a);return this}var i=this._getId(e);if(i!==void 0&&typeof i!="string")throw new Error("schema id must be string");return t=oa.normalizeId(t||i),zh(this,t),this._schemas[t]=this._addSchema(e,n,a,!0),this}o(tA,"addSchema");function rA(e,t,n){return this.addSchema(e,t,n,!0),this}o(rA,"addMetaSchema");function nA(e,t){var n=e.$schema;if(n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this._opts.defaultMeta||aA(this),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var a=this.validate(n,e);if(!a&&t){var r="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(r);else throw new Error(r)}return a}o(nA,"validateSchema");function aA(e){var t=e._opts.meta;return e._opts.defaultMeta=typeof t=="object"?e._getId(t)||t:e.getSchema(xs)?xs:void 0,e._opts.defaultMeta}o(aA,"defaultMeta");function iA(e){var t=Wh(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return oA(this,e)}}o(iA,"getSchema");function oA(e,t){var n=oa.schema.call(e,{schema:{}},t);if(n){var a=n.schema,r=n.root,i=n.baseId,s=Hh.call(e,a,r,void 0,i);return e._fragments[t]=new Qh({ref:t,fragment:!0,schema:a,root:r,baseId:i,validate:s}),s}}o(oA,"_getSchemaFragment");function Wh(e,t){return t=oa.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}o(Wh,"_getSchemaObj");function sA(e){if(e instanceof RegExp)return As(this,this._schemas,e),As(this,this._refs,e),this;switch(typeof e){case"undefined":return As(this,this._schemas),As(this,this._refs),this._cache.clear(),this;case"string":var t=Wh(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var n=this._opts.serialize,a=n?n(e):e;this._cache.del(a);var r=this._getId(e);r&&(r=oa.normalizeId(r),delete this._schemas[r],delete this._refs[r])}return this}o(sA,"removeSchema");function As(e,t,n){for(var a in t){var r=t[a];!r.meta&&(!n||n.test(a))&&(e._cache.del(r.cacheKey),delete t[a])}}o(As,"_removeAllSchemas");function lA(e,t,n,a){if(typeof e!="object"&&typeof e!="boolean")throw new Error("schema should be object or boolean");var r=this._opts.serialize,i=r?r(e):e,s=this._cache.get(i);if(s)return s;a=a||this._opts.addUsedSchema!==!1;var l=oa.normalizeId(this._getId(e));l&&a&&zh(this,l);var c=this._opts.validateSchema!==!1&&!t,u;c&&!(u=l&&l==oa.normalizeId(e.$schema))&&this.validateSchema(e,!0);var f=oa.ids.call(this,e),d=new Qh({id:l,schema:e,localRefs:f,cacheKey:i,meta:n});return l[0]!="#"&&a&&(this._refs[l]=d),this._cache.put(i,d),c&&u&&this.validateSchema(e,!0),d}o(lA,"_addSchema");function cA(e,t){if(e.compiling)return e.validate=r,r.schema=e.schema,r.errors=null,r.root=t||r,e.schema.$async===!0&&(r.$async=!0),r;e.compiling=!0;var n;e.meta&&(n=this._opts,this._opts=this._metaOpts);var a;try{a=Hh.call(this,e.schema,t,e.localRefs)}catch(i){throw delete e.validate,i}finally{e.compiling=!1,e.meta&&(this._opts=n)}return e.validate=a,e.refs=a.refs,e.refVal=a.refVal,e.root=a.root,a;function r(){var i=e.validate,s=i.apply(this,arguments);return r.errors=i.errors,s}o(r,"callValidate")}o(cA,"_compile");function uA(e){switch(e.schemaId){case"auto":return dA;case"id":return fA;default:return pA}}o(uA,"chooseGetId");function fA(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}o(fA,"_getId");function pA(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}o(pA,"_get$Id");function dA(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}o(dA,"_get$IdOrId");function gA(e,t){if(e=e||this.errors,!e)return"No errors";t=t||{};for(var n=t.separator===void 0?", ":t.separator,a=t.dataVar===void 0?"data":t.dataVar,r="",i=0;i<e.length;i++){var s=e[i];s&&(r+=a+s.dataPath+" "+s.message+n)}return r.slice(0,-n.length)}o(gA,"errorsText");function mA(e,t){return typeof t=="string"&&(t=new RegExp(t)),this._formats[e]=t,this}o(mA,"addFormat");function hA(e){var t;if(e._opts.$data&&(t=Bh(),e.addMetaSchema(t,t.$id,!0)),e._opts.meta!==!1){var n=hc();e._opts.$data&&(n=qh(n,YT)),e.addMetaSchema(n,xs,!0),e._refs["http://json-schema.org/schema"]=xs}}o(hA,"addDefaultMetaSchema");function vA(e){var t=e._opts.schemas;if(!!t)if(Array.isArray(t))e.addSchema(t);else for(var n in t)e.addSchema(t[n],n)}o(vA,"addInitialSchemas");function yA(e){for(var t in e._opts.formats){var n=e._opts.formats[t];e.addFormat(t,n)}}o(yA,"addInitialFormats");function bA(e){for(var t in e._opts.keywords){var n=e._opts.keywords[t];e.addKeyword(t,n)}}o(bA,"addInitialKeywords");function zh(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}o(zh,"checkUnique");function EA(e){for(var t=Kh.copy(e._opts),n=0;n<Gh.length;n++)delete t[Gh[n]];return t}o(EA,"getMetaSchemaOptions");function PA(e){var t=e._opts.logger;if(t===!1)e.logger={log:yc,warn:yc,error:yc};else{if(t===void 0&&(t=console),!(typeof t=="object"&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}o(PA,"setLogger");function yc(){}o(yc,"noop")});var Fn={};Ri(Fn,{exportConfig:()=>FA,generateSchema:()=>IA,getApiVersion:()=>wA,getChanges:()=>iv,getGenericSchema:()=>as,getPathToGenericSchema:()=>Cg,getProject:()=>MA,importConfig:()=>_A,importProject:()=>DA,importProjectSchema:()=>NA,isDirectory:()=>$A,log:()=>Ie,readDirectory:()=>bc});var st=se(fe());var X=se(fe());function Tr(e){return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(e)}o(Tr,"_typeof");function Vs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}o(Vs,"_defineProperty");function pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&a.push.apply(a,Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),a.forEach(function(r){Vs(e,r,n[r])})}return e}o(pt,"_objectSpread");function Ar(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}o(Ar,"_classCallCheck");function uf(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}o(uf,"_defineProperties");function xr(e,t,n){return t&&uf(e.prototype,t),n&&uf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}o(xr,"_createClass");function Vr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}o(Vr,"_assertThisInitialized");function Ln(e,t){if(t&&(Tr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vr(e)}o(Ln,"_possibleConstructorReturn");function fn(e){return fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():o(function(n){return n.__proto__||Object.getPrototypeOf(n)},"_getPrototypeOf"),fn(e)}o(fn,"_getPrototypeOf");function Ga(e,t){return Ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():o(function(a,r){return a.__proto__=r,a},"_setPrototypeOf"),Ga(e,t)}o(Ga,"_setPrototypeOf");function ga(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ga(e,t)}o(ga,"_inherits");var Ny={type:"logger",log:o(function(t){this.output("log",t)},"log"),warn:o(function(t){this.output("warn",t)},"warn"),error:o(function(t){this.output("error",t)},"error"),output:o(function(t,n){console&&console[t]&&console[t].apply(console,n)},"output")},wy=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ar(this,e),this.init(t,n)}return o(e,"Logger"),xr(e,[{key:"init",value:o(function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=a.prefix||"i18next:",this.logger=n||Ny,this.options=a,this.debug=a.debug},"init")},{key:"setDebug",value:o(function(n){this.debug=n},"setDebug")},{key:"log",value:o(function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return this.forward(a,"log","",!0)},"log")},{key:"warn",value:o(function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return this.forward(a,"warn","",!0)},"warn")},{key:"error",value:o(function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return this.forward(a,"error","")},"error")},{key:"deprecate",value:o(function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return this.forward(a,"warn","WARNING DEPRECATED: ",!0)},"deprecate")},{key:"forward",value:o(function(n,a,r,i){return i&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(r).concat(this.prefix," ").concat(n[0])),this.logger[a](n))},"forward")},{key:"create",value:o(function(n){return new e(this.logger,pt({},{prefix:"".concat(this.prefix,":").concat(n,":")},this.options))},"create")}]),e}(),Jr=new wy,pn=function(){function e(){Ar(this,e),this.observers={}}return o(e,"EventEmitter"),xr(e,[{key:"on",value:o(function(n,a){var r=this;return n.split(" ").forEach(function(i){r.observers[i]=r.observers[i]||[],r.observers[i].push(a)}),this},"on")},{key:"off",value:o(function(n,a){if(!!this.observers[n]){if(!a){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(r){return r!==a})}},"off")},{key:"emit",value:o(function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];if(this.observers[n]){var s=[].concat(this.observers[n]);s.forEach(function(c){c.apply(void 0,r)})}if(this.observers["*"]){var l=[].concat(this.observers["*"]);l.forEach(function(c){c.apply(c,[n].concat(r))})}},"emit")}]),e}();function Ha(){var e,t,n=new Promise(function(a,r){e=a,t=r});return n.resolve=e,n.reject=t,n}o(Ha,"defer");function ff(e){return e==null?"":""+e}o(ff,"makeString");function Ly(e,t,n){e.forEach(function(a){t[a]&&(n[a]=t[a])})}o(Ly,"copy");function js(e,t,n){function a(l){return l&&l.indexOf("###")>-1?l.replace(/###/g,"."):l}o(a,"cleanKey");function r(){return!e||typeof e=="string"}o(r,"canNotTraverseDeeper");for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(r())return{};var s=a(i.shift());!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={}}return r()?{}:{obj:e,k:a(i.shift())}}o(js,"getLastOfPath");function pf(e,t,n){var a=js(e,t,Object),r=a.obj,i=a.k;r[i]=n}o(pf,"setPath");function $y(e,t,n,a){var r=js(e,t,Object),i=r.obj,s=r.k;i[s]=i[s]||[],a&&(i[s]=i[s].concat(n)),a||i[s].push(n)}o($y,"pushPath");function Mi(e,t){var n=js(e,t),a=n.obj,r=n.k;if(!!a)return a[r]}o(Mi,"getPath");function df(e,t,n){var a=Mi(e,n);return a!==void 0?a:Mi(t,n)}o(df,"getPathWithDefaults");function vf(e,t,n){for(var a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?typeof e[a]=="string"||e[a]instanceof String||typeof t[a]=="string"||t[a]instanceof String?n&&(e[a]=t[a]):vf(e[a],t[a],n):e[a]=t[a]);return e}o(vf,"deepExtend");function ma(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}o(ma,"regexEscape");var Vy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Ry(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Vy[t]}):e}o(Ry,"escape");var Ui=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function yf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!!e){if(e[t])return e[t];for(var a=t.split(n),r=e,i=0;i<a.length;++i){if(typeof r[a[i]]=="string"&&i+1<a.length)return;if(r[a[i]]===void 0){for(var s=2,l=a.slice(i,i+s).join(n),c=r[l];c===void 0&&a.length>i+s;)s++,l=a.slice(i,i+s).join(n),c=r[l];if(c===void 0)return;if(typeof c=="string")return c;if(l&&typeof c[l]=="string")return c[l];var u=a.slice(i+s).join(n);return u?yf(c,u,n):void 0}r=r[a[i]]}return r}}o(yf,"deepFind");var jy=function(e){ga(t,e);function t(n){var a,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Ar(this,t),a=Ln(this,fn(t).call(this)),Ui&&pn.call(Vr(a)),a.data=n||{},a.options=r,a.options.keySeparator===void 0&&(a.options.keySeparator="."),a.options.ignoreJSONStructure===void 0&&(a.options.ignoreJSONStructure=!0),a}return o(t,"ResourceStore"),xr(t,[{key:"addNamespaces",value:o(function(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)},"addNamespaces")},{key:"removeNamespaces",value:o(function(a){var r=this.options.ns.indexOf(a);r>-1&&this.options.ns.splice(r,1)},"removeNamespaces")},{key:"getResource",value:o(function(a,r,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[a,r];i&&typeof i!="string"&&(u=u.concat(i)),i&&typeof i=="string"&&(u=u.concat(l?i.split(l):i)),a.indexOf(".")>-1&&(u=a.split("."));var f=Mi(this.data,u);return f||!c||typeof i!="string"?f:yf(this.data&&this.data[a]&&this.data[a][r],i,l)},"getResource")},{key:"addResource",value:o(function(a,r,i,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=this.options.keySeparator;c===void 0&&(c=".");var u=[a,r];i&&(u=u.concat(c?i.split(c):i)),a.indexOf(".")>-1&&(u=a.split("."),s=r,r=u[1]),this.addNamespaces(r),pf(this.data,u,s),l.silent||this.emit("added",a,r,i,s)},"addResource")},{key:"addResources",value:o(function(a,r,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in i)(typeof i[l]=="string"||Object.prototype.toString.apply(i[l])==="[object Array]")&&this.addResource(a,r,l,i[l],{silent:!0});s.silent||this.emit("added",a,r,i)},"addResources")},{key:"addResourceBundle",value:o(function(a,r,i,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[a,r];a.indexOf(".")>-1&&(u=a.split("."),s=i,i=r,r=u[1]),this.addNamespaces(r);var f=Mi(this.data,u)||{};s?vf(f,i,l):f=pt({},f,i),pf(this.data,u,f),c.silent||this.emit("added",a,r,i)},"addResourceBundle")},{key:"removeResourceBundle",value:o(function(a,r){this.hasResourceBundle(a,r)&&delete this.data[a][r],this.removeNamespaces(r),this.emit("removed",a,r)},"removeResourceBundle")},{key:"hasResourceBundle",value:o(function(a,r){return this.getResource(a,r)!==void 0},"hasResourceBundle")},{key:"getResourceBundle",value:o(function(a,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?pt({},{},this.getResource(a,r)):this.getResource(a,r)},"getResourceBundle")},{key:"getDataByLanguage",value:o(function(a){return this.data[a]},"getDataByLanguage")},{key:"toJSON",value:o(function(){return this.data},"toJSON")}]),t}(pn),bf={processors:{},addPostProcessor:o(function(t){this.processors[t.name]=t},"addPostProcessor"),handle:o(function(t,n,a,r,i){var s=this;return t.forEach(function(l){s.processors[l]&&(n=s.processors[l].process(n,a,r,i))}),n},"handle")},gf={},mf=function(e){ga(t,e);function t(n){var a,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ar(this,t),a=Ln(this,fn(t).call(this)),Ui&&pn.call(Vr(a)),Ly(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Vr(a)),a.options=r,a.options.keySeparator===void 0&&(a.options.keySeparator="."),a.logger=Jr.create("translator"),a}return o(t,"Translator"),xr(t,[{key:"changeLanguage",value:o(function(a){a&&(this.language=a)},"changeLanguage")},{key:"exists",value:o(function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=this.resolve(a,r);return i&&i.res!==void 0},"exists")},{key:"extractFromKey",value:o(function(a,r){var i=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");var s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,l=r.ns||this.options.defaultNS;if(i&&a.indexOf(i)>-1){var c=a.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:a,namespaces:l};var u=a.split(i);(i!==s||i===s&&this.options.ns.indexOf(u[0])>-1)&&(l=u.shift()),a=u.join(s)}return typeof l=="string"&&(l=[l]),{key:a,namespaces:l}},"extractFromKey")},{key:"translate",value:o(function(a,r,i){var s=this;if(Tr(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),a==null)return"";Array.isArray(a)||(a=[String(a)]);var l=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,c=this.extractFromKey(a[a.length-1],r),u=c.key,f=c.namespaces,d=f[f.length-1],h=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&h.toLowerCase()==="cimode"){if(p){var m=r.nsSeparator||this.options.nsSeparator;return d+m+u}return u}var P=this.resolve(a,r),E=P&&P.res,T=P&&P.usedKey||u,w=P&&P.exactUsedKey||u,F=Object.prototype.toString.apply(E),V=["[object Number]","[object Function]","[object RegExp]"],R=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,M=!this.i18nFormat||this.i18nFormat.handleAsObject,ae=typeof E!="string"&&typeof E!="boolean"&&typeof E!="number";if(M&&E&&ae&&V.indexOf(F)<0&&!(typeof R=="string"&&F==="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(T,E,pt({},r,{ns:f})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(l){var O=F==="[object Array]",B=O?[]:{},re=O?w:T;for(var G in E)if(Object.prototype.hasOwnProperty.call(E,G)){var J="".concat(re).concat(l).concat(G);B[G]=this.translate(J,pt({},r,{joinArrays:!1,ns:f})),B[G]===J&&(B[G]=E[G])}E=B}}else if(M&&typeof R=="string"&&F==="[object Array]")E=E.join(R),E&&(E=this.extendTranslation(E,a,r,i));else{var j=!1,U=!1,te=r.count!==void 0&&typeof r.count!="string",oe=t.hasDefaultValue(r),Ee=te?this.pluralResolver.getSuffix(h,r.count):"",ve=r["defaultValue".concat(Ee)]||r.defaultValue;!this.isValidLookup(E)&&oe&&(j=!0,E=ve),this.isValidLookup(E)||(U=!0,E=u);var ue=oe&&ve!==E&&this.options.updateMissing;if(U||j||ue){if(this.logger.log(ue?"updateKey":"missingKey",h,d,u,ue?ve:E),l){var ie=this.resolve(u,pt({},r,{keySeparator:!1}));ie&&ie.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var ge=[],He=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&He&&He[0])for(var rt=0;rt<He.length;rt++)ge.push(He[rt]);else this.options.saveMissingTo==="all"?ge=this.languageUtils.toResolveHierarchy(r.lng||this.language):ge.push(r.lng||this.language);var ce=o(function(y,g,L){s.options.missingKeyHandler?s.options.missingKeyHandler(y,d,g,ue?L:E,ue,r):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(y,d,g,ue?L:E,ue,r),s.emit("missingKey",y,d,g,E)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&te?ge.forEach(function(ze){s.pluralResolver.getSuffixes(ze).forEach(function(y){ce([ze],u+y,r["defaultValue".concat(y)]||ve)})}):ce(ge,u,ve))}E=this.extendTranslation(E,a,r,P,i),U&&E===u&&this.options.appendNamespaceToMissingKey&&(E="".concat(d,":").concat(u)),U&&this.options.parseMissingKeyHandler&&(E=this.options.parseMissingKeyHandler(E))}return E},"translate")},{key:"extendTranslation",value:o(function(a,r,i,s,l){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)a=this.i18nFormat.parse(a,i,s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init(pt({},i,{interpolation:pt({},this.options.interpolation,i.interpolation)}));var u=i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,f;if(u){var d=a.match(this.interpolator.nestingRegexp);f=d&&d.length}var h=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(h=pt({},this.options.interpolation.defaultVariables,h)),a=this.interpolator.interpolate(a,h,i.lng||this.language,i),u){var p=a.match(this.interpolator.nestingRegexp),m=p&&p.length;f<m&&(i.nest=!1)}i.nest!==!1&&(a=this.interpolator.nest(a,function(){for(var T=arguments.length,w=new Array(T),F=0;F<T;F++)w[F]=arguments[F];return l&&l[0]===w[0]&&!i.context?(c.logger.warn("It seems you are nesting recursively key: ".concat(w[0]," in key: ").concat(r[0])),null):c.translate.apply(c,w.concat([r]))},i)),i.interpolation&&this.interpolator.reset()}var P=i.postProcess||this.options.postProcess,E=typeof P=="string"?[P]:P;return a!=null&&E&&E.length&&i.applyPostProcessor!==!1&&(a=bf.handle(E,a,r,this.options&&this.options.postProcessPassResolved?pt({i18nResolved:s},i):i,this)),a},"extendTranslation")},{key:"resolve",value:o(function(a){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,l,c,u,f;return typeof a=="string"&&(a=[a]),a.forEach(function(d){if(!r.isValidLookup(s)){var h=r.extractFromKey(d,i),p=h.key;l=p;var m=h.namespaces;r.options.fallbackNS&&(m=m.concat(r.options.fallbackNS));var P=i.count!==void 0&&typeof i.count!="string",E=i.context!==void 0&&typeof i.context=="string"&&i.context!=="",T=i.lngs?i.lngs:r.languageUtils.toResolveHierarchy(i.lng||r.language,i.fallbackLng);m.forEach(function(w){r.isValidLookup(s)||(f=w,!gf["".concat(T[0],"-").concat(w)]&&r.utils&&r.utils.hasLoadedNamespace&&!r.utils.hasLoadedNamespace(f)&&(gf["".concat(T[0],"-").concat(w)]=!0,r.logger.warn('key "'.concat(l,'" for languages "').concat(T.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),T.forEach(function(F){if(!r.isValidLookup(s)){u=F;var V=p,R=[V];if(r.i18nFormat&&r.i18nFormat.addLookupKeys)r.i18nFormat.addLookupKeys(R,p,F,w,i);else{var M;P&&(M=r.pluralResolver.getSuffix(F,i.count)),P&&E&&R.push(V+M),E&&R.push(V+="".concat(r.options.contextSeparator).concat(i.context)),P&&R.push(V+=M)}for(var ae;ae=R.pop();)r.isValidLookup(s)||(c=ae,s=r.getResource(F,w,ae,i))}}))})}}),{res:s,usedKey:l,exactUsedKey:c,usedLng:u,usedNS:f}},"resolve")},{key:"isValidLookup",value:o(function(a){return a!==void 0&&!(!this.options.returnNull&&a===null)&&!(!this.options.returnEmptyString&&a==="")},"isValidLookup")},{key:"getResource",value:o(function(a,r,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(a,r,i,s):this.resourceStore.getResource(a,r,i,s)},"getResource")}],[{key:"hasDefaultValue",value:o(function(a){var r="defaultValue";for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)&&r===i.substring(0,r.length)&&a[i]!==void 0)return!0;return!1},"hasDefaultValue")}]),t}(pn);function Rs(e){return e.charAt(0).toUpperCase()+e.slice(1)}o(Rs,"capitalize");var My=function(){function e(t){Ar(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Jr.create("languageUtils")}return o(e,"LanguageUtil"),xr(e,[{key:"getScriptPartFromCode",value:o(function(n){if(!n||n.indexOf("-")<0)return null;var a=n.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))},"getScriptPartFromCode")},{key:"getLanguagePartFromCode",value:o(function(n){if(!n||n.indexOf("-")<0)return n;var a=n.split("-");return this.formatLanguageCode(a[0])},"getLanguagePartFromCode")},{key:"formatLanguageCode",value:o(function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var a=["hans","hant","latn","cyrl","cans","mong","arab"],r=n.split("-");return this.options.lowerCaseLng?r=r.map(function(i){return i.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),a.indexOf(r[1].toLowerCase())>-1&&(r[1]=Rs(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),a.indexOf(r[1].toLowerCase())>-1&&(r[1]=Rs(r[1].toLowerCase())),a.indexOf(r[2].toLowerCase())>-1&&(r[2]=Rs(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n},"formatLanguageCode")},{key:"isWhitelisted",value:o(function(n){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(n)},"isWhitelisted")},{key:"isSupportedCode",value:o(function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1},"isSupportedCode")},{key:"getBestMatchFromCodes",value:o(function(n){var a=this;if(!n)return null;var r;return n.forEach(function(i){if(!r){var s=a.formatLanguageCode(i);(!a.options.supportedLngs||a.isSupportedCode(s))&&(r=s)}}),!r&&this.options.supportedLngs&&n.forEach(function(i){if(!r){var s=a.getLanguagePartFromCode(i);if(a.isSupportedCode(s))return r=s;r=a.options.supportedLngs.find(function(l){if(l.indexOf(s)===0)return l})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r},"getBestMatchFromCodes")},{key:"getFallbackCodes",value:o(function(n,a){if(!n)return[];if(typeof n=="function"&&(n=n(a)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!a)return n.default||[];var r=n[a];return r||(r=n[this.getScriptPartFromCode(a)]),r||(r=n[this.formatLanguageCode(a)]),r||(r=n[this.getLanguagePartFromCode(a)]),r||(r=n.default),r||[]},"getFallbackCodes")},{key:"toResolveHierarchy",value:o(function(n,a){var r=this,i=this.getFallbackCodes(a||this.options.fallbackLng||[],n),s=[],l=o(function(u){!u||(r.isSupportedCode(u)?s.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))},"addCode");return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(n))):typeof n=="string"&&l(this.formatLanguageCode(n)),i.forEach(function(c){s.indexOf(c)<0&&l(r.formatLanguageCode(c))}),s},"toResolveHierarchy")}]),e}(),Uy=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ky={1:o(function(t){return Number(t>1)},"_"),2:o(function(t){return Number(t!=1)},"_"),3:o(function(t){return 0},"_"),4:o(function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},"_"),5:o(function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},"_"),6:o(function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},"_"),7:o(function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},"_"),8:o(function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},"_"),9:o(function(t){return Number(t>=2)},"_"),10:o(function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},"_"),11:o(function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},"_"),12:o(function(t){return Number(t%10!=1||t%100==11)},"_"),13:o(function(t){return Number(t!==0)},"_"),14:o(function(t){return Number(t==1?0:t==2?1:t==3?2:3)},"_"),15:o(function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},"_"),16:o(function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},"_"),17:o(function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},"_"),18:o(function(t){return Number(t==0?0:t==1?1:2)},"_"),19:o(function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},"_"),20:o(function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},"_"),21:o(function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},"_"),22:o(function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)},"_")};function By(){var e={};return Uy.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:ky[t.fc]}})}),e}o(By,"createRules");var Gy=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ar(this,e),this.languageUtils=t,this.options=n,this.logger=Jr.create("pluralResolver"),this.rules=By()}return o(e,"PluralResolver"),xr(e,[{key:"addRule",value:o(function(n,a){this.rules[n]=a},"addRule")},{key:"getRule",value:o(function(n){return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]},"getRule")},{key:"needsPlural",value:o(function(n){var a=this.getRule(n);return a&&a.numbers.length>1},"needsPlural")},{key:"getPluralFormsOfKey",value:o(function(n,a){return this.getSuffixes(n).map(function(r){return a+r})},"getPluralFormsOfKey")},{key:"getSuffixes",value:o(function(n){var a=this,r=this.getRule(n);return r?r.numbers.map(function(i){return a.getSuffix(n,i)}):[]},"getSuffixes")},{key:"getSuffix",value:o(function(n,a){var r=this,i=this.getRule(n);if(i){var s=i.noAbs?i.plurals(a):i.plurals(Math.abs(a)),l=i.numbers[s];this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1&&(l===2?l="plural":l===1&&(l=""));var c=o(function(){return r.options.prepend&&l.toString()?r.options.prepend+l.toString():l.toString()},"returnSuffix");return this.options.compatibilityJSON==="v1"?l===1?"":typeof l=="number"?"_plural_".concat(l.toString()):c():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1?c():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}return this.logger.warn("no plural rule found for: ".concat(n)),""},"getSuffix")}]),e}(),Hy=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ar(this,e),this.logger=Jr.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return o(e,"Interpolator"),xr(e,[{key:"init",value:o(function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var a=n.interpolation;this.escape=a.escape!==void 0?a.escape:Ry,this.escapeValue=a.escapeValue!==void 0?a.escapeValue:!0,this.useRawValueToEscape=a.useRawValueToEscape!==void 0?a.useRawValueToEscape:!1,this.prefix=a.prefix?ma(a.prefix):a.prefixEscaped||"{{",this.suffix=a.suffix?ma(a.suffix):a.suffixEscaped||"}}",this.formatSeparator=a.formatSeparator?a.formatSeparator:a.formatSeparator||",",this.unescapePrefix=a.unescapeSuffix?"":a.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":a.unescapeSuffix||"",this.nestingPrefix=a.nestingPrefix?ma(a.nestingPrefix):a.nestingPrefixEscaped||ma("$t("),this.nestingSuffix=a.nestingSuffix?ma(a.nestingSuffix):a.nestingSuffixEscaped||ma(")"),this.nestingOptionsSeparator=a.nestingOptionsSeparator?a.nestingOptionsSeparator:a.nestingOptionsSeparator||",",this.maxReplaces=a.maxReplaces?a.maxReplaces:1e3,this.alwaysFormat=a.alwaysFormat!==void 0?a.alwaysFormat:!1,this.resetRegExp()},"init")},{key:"reset",value:o(function(){this.options&&this.init(this.options)},"reset")},{key:"resetRegExp",value:o(function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var a="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(a,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")},"resetRegExp")},{key:"interpolate",value:o(function(n,a,r,i){var s=this,l,c,u,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(E){return E.replace(/\$/g,"$$$$")}o(d,"regexSafe");var h=o(function(T){if(T.indexOf(s.formatSeparator)<0){var w=df(a,f,T);return s.alwaysFormat?s.format(w,void 0,r,pt({},i,a,{interpolationkey:T})):w}var F=T.split(s.formatSeparator),V=F.shift().trim(),R=F.join(s.formatSeparator).trim();return s.format(df(a,f,V),R,r,pt({},i,a,{interpolationkey:V}))},"handleFormat");this.resetRegExp();var p=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,m=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,P=[{regex:this.regexpUnescape,safeValue:o(function(T){return d(T)},"safeValue")},{regex:this.regexp,safeValue:o(function(T){return s.escapeValue?d(s.escape(T)):d(T)},"safeValue")}];return P.forEach(function(E){for(u=0;l=E.regex.exec(n);){if(c=h(l[1].trim()),c===void 0)if(typeof p=="function"){var T=p(n,l,i);c=typeof T=="string"?T:""}else if(m){c=l[0];continue}else s.logger.warn("missed to pass in variable ".concat(l[1]," for interpolating ").concat(n)),c="";else typeof c!="string"&&!s.useRawValueToEscape&&(c=ff(c));var w=E.safeValue(c);if(n=n.replace(l[0],w),m?(E.regex.lastIndex+=w.length,E.regex.lastIndex-=l[0].length):E.regex.lastIndex=0,u++,u>=s.maxReplaces)break}}),n},"interpolate")},{key:"nest",value:o(function(n,a){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,l,c=pt({},i);c.applyPostProcessor=!1,delete c.defaultValue;function u(p,m){var P=this.nestingOptionsSeparator;if(p.indexOf(P)<0)return p;var E=p.split(new RegExp("".concat(P,"[ ]*{"))),T="{".concat(E[1]);p=E[0],T=this.interpolate(T,c),T=T.replace(/'/g,'"');try{c=JSON.parse(T),m&&(c=pt({},m,c))}catch(w){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),w),"".concat(p).concat(P).concat(T)}return delete c.defaultValue,p}for(o(u,"handleHasOptions");s=this.nestingRegexp.exec(n);){var f=[],d=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var h=s[1].split(this.formatSeparator).map(function(p){return p.trim()});s[1]=h.shift(),f=h,d=!0}if(l=a(u.call(this,s[1].trim(),c),c),l&&s[0]===n&&typeof l!="string")return l;typeof l!="string"&&(l=ff(l)),l||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(n)),l=""),d&&(l=f.reduce(function(p,m){return r.format(p,m,i.lng,pt({},i,{interpolationkey:s[1].trim()}))},l.trim())),n=n.replace(s[0],l),this.regexp.lastIndex=0}return n},"nest")}]),e}();function Qy(e,t){for(var n=e.indexOf(t);n!==-1;)e.splice(n,1),n=e.indexOf(t)}o(Qy,"remove");var qy=function(e){ga(t,e);function t(n,a,r){var i,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Ar(this,t),i=Ln(this,fn(t).call(this)),Ui&&pn.call(Vr(i)),i.backend=n,i.store=a,i.services=r,i.languageUtils=r.languageUtils,i.options=s,i.logger=Jr.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,s.backend,s),i}return o(t,"Connector"),xr(t,[{key:"queueLoad",value:o(function(a,r,i,s){var l=this,c=[],u=[],f=[],d=[];return a.forEach(function(h){var p=!0;r.forEach(function(m){var P="".concat(h,"|").concat(m);!i.reload&&l.store.hasResourceBundle(h,m)?l.state[P]=2:l.state[P]<0||(l.state[P]===1?u.indexOf(P)<0&&u.push(P):(l.state[P]=1,p=!1,u.indexOf(P)<0&&u.push(P),c.indexOf(P)<0&&c.push(P),d.indexOf(m)<0&&d.push(m)))}),p||f.push(h)}),(c.length||u.length)&&this.queue.push({pending:u,loaded:{},errors:[],callback:s}),{toLoad:c,pending:u,toLoadLanguages:f,toLoadNamespaces:d}},"queueLoad")},{key:"loaded",value:o(function(a,r,i){var s=a.split("|"),l=s[0],c=s[1];r&&this.emit("failedLoading",l,c,r),i&&this.store.addResourceBundle(l,c,i),this.state[a]=r?-1:2;var u={};this.queue.forEach(function(f){$y(f.loaded,[l],c),Qy(f.pending,a),r&&f.errors.push(r),f.pending.length===0&&!f.done&&(Object.keys(f.loaded).forEach(function(d){u[d]||(u[d]=[]),f.loaded[d].length&&f.loaded[d].forEach(function(h){u[d].indexOf(h)<0&&u[d].push(h)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(f){return!f.done})},"loaded")},{key:"read",value:o(function(a,r,i){var s=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,u=arguments.length>5?arguments[5]:void 0;return a.length?this.backend[i](a,r,function(f,d){if(f&&d&&l<5){setTimeout(function(){s.read.call(s,a,r,i,l+1,c*2,u)},c);return}u(f,d)}):u(null,{})},"read")},{key:"prepareLoading",value:o(function(a,r){var i=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof a=="string"&&(a=this.languageUtils.toResolveHierarchy(a)),typeof r=="string"&&(r=[r]);var c=this.queueLoad(a,r,s,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(u){i.loadOne(u)})},"prepareLoading")},{key:"load",value:o(function(a,r,i){this.prepareLoading(a,r,{},i)},"load")},{key:"reload",value:o(function(a,r,i){this.prepareLoading(a,r,{reload:!0},i)},"reload")},{key:"loadOne",value:o(function(a){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=a.split("|"),l=s[0],c=s[1];this.read(l,c,"read",void 0,void 0,function(u,f){u&&r.logger.warn("".concat(i,"loading namespace ").concat(c," for language ").concat(l," failed"),u),!u&&f&&r.logger.log("".concat(i,"loaded namespace ").concat(c," for language ").concat(l),f),r.loaded(a,u,f)})},"loadOne")},{key:"saveMissing",value:o(function(a,r,i,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn('did not save key "'.concat(i,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}i==null||i===""||(this.backend&&this.backend.create&&this.backend.create(a,r,i,s,null,pt({},c,{isUpdate:l})),!(!a||!a[0])&&this.store.addResource(a[0],r,i,s))},"saveMissing")}]),t}(pn);function Ky(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(function(t){var n={};if(Tr(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Tr(t[2])==="object"||Tr(t[3])==="object"){var a=t[3]||t[2];Object.keys(a).forEach(function(r){n[r]=a[r]})}return n},"handle"),interpolation:{escapeValue:!0,format:o(function(t,n,a,r){return t},"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}o(Ky,"get");function hf(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}o(hf,"transformOptions");function ji(){}o(ji,"noop");var Jy=function(e){ga(t,e);function t(){var n,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(Ar(this,t),n=Ln(this,fn(t).call(this)),Ui&&pn.call(Vr(n)),n.options=hf(a),n.services={},n.logger=Jr,n.modules={external:[]},r&&!n.isInitialized&&!a.isClone){if(!n.options.initImmediate)return n.init(a,r),Ln(n,Vr(n));setTimeout(function(){n.init(a,r)},0)}return n}return o(t,"I18n"),xr(t,[{key:"init",value:o(function(){var a=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;typeof r=="function"&&(i=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=pt({},Ky(),this.options,hf(r)),this.format=this.options.interpolation.format,i||(i=ji);function s(m){return m?typeof m=="function"?new m:m:null}if(o(s,"createClassOnDemand"),!this.options.isClone){this.modules.logger?Jr.init(s(this.modules.logger),this.options):Jr.init(null,this.options);var l=new My(this.options);this.store=new jy(this.options.resources,this.options);var c=this.services;c.logger=Jr,c.resourceStore=this.store,c.languageUtils=l,c.pluralResolver=new Gy(l,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c.interpolator=new Hy(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new qy(s(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(m){for(var P=arguments.length,E=new Array(P>1?P-1:0),T=1;T<P;T++)E[T-1]=arguments[T];a.emit.apply(a,[m].concat(E))}),this.modules.languageDetector&&(c.languageDetector=s(this.modules.languageDetector),c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=s(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new mf(this.services,this.options),this.translator.on("*",function(m){for(var P=arguments.length,E=new Array(P>1?P-1:0),T=1;T<P;T++)E[T-1]=arguments[T];a.emit.apply(a,[m].concat(E))}),this.modules.external.forEach(function(m){m.init&&m.init(a)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var f=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];f.forEach(function(m){a[m]=function(){var P;return(P=a.store)[m].apply(P,arguments)}});var d=["addResource","addResources","addResourceBundle","removeResourceBundle"];d.forEach(function(m){a[m]=function(){var P;return(P=a.store)[m].apply(P,arguments),a}});var h=Ha(),p=o(function(){var P=o(function(T,w){a.isInitialized&&a.logger.warn("init: i18next is already initialized. You should call init just once!"),a.isInitialized=!0,a.options.isClone||a.logger.log("initialized",a.options),a.emit("initialized",a.options),h.resolve(w),i(T,w)},"finish");if(a.languages&&a.options.compatibilityAPI!=="v1"&&!a.isInitialized)return P(null,a.t.bind(a));a.changeLanguage(a.options.lng,P)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),h},"init")},{key:"loadResources",value:o(function(a){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ji,s=i,l=typeof a=="string"?a:this.language;if(typeof a=="function"&&(s=a),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return s();var c=[],u=o(function(h){if(!!h){var p=r.services.languageUtils.toResolveHierarchy(h);p.forEach(function(m){c.indexOf(m)<0&&c.push(m)})}},"append");if(l)u(l);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(d){return u(d)})}this.options.preload&&this.options.preload.forEach(function(d){return u(d)}),this.services.backendConnector.load(c,this.options.ns,s)}else s(null)},"loadResources")},{key:"reloadResources",value:o(function(a,r,i){var s=Ha();return a||(a=this.languages),r||(r=this.options.ns),i||(i=ji),this.services.backendConnector.reload(a,r,function(l){s.resolve(),i(l)}),s},"reloadResources")},{key:"use",value:o(function(a){if(!a)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&bf.addPostProcessor(a),a.type==="3rdParty"&&this.modules.external.push(a),this},"use")},{key:"changeLanguage",value:o(function(a,r){var i=this;this.isLanguageChangingTo=a;var s=Ha();this.emit("languageChanging",a);var l=o(function(f,d){d?(i.language=d,i.languages=i.services.languageUtils.toResolveHierarchy(d),i.translator.changeLanguage(d),i.isLanguageChangingTo=void 0,i.emit("languageChanged",d),i.logger.log("languageChanged",d)):i.isLanguageChangingTo=void 0,s.resolve(function(){return i.t.apply(i,arguments)}),r&&r(f,function(){return i.t.apply(i,arguments)})},"done"),c=o(function(f){!a&&!f&&i.services.languageDetector&&(f=[]);var d=typeof f=="string"?f:i.services.languageUtils.getBestMatchFromCodes(f);d&&(i.language||(i.language=d,i.languages=i.services.languageUtils.toResolveHierarchy(d)),i.translator.language||i.translator.changeLanguage(d),i.services.languageDetector&&i.services.languageDetector.cacheUserLanguage(d)),i.loadResources(d,function(h){l(h,d)})},"setLng");return!a&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(c):c(a),s},"changeLanguage")},{key:"getFixedT",value:o(function(a,r){var i=this,s=o(function l(c,u){var f;if(Tr(u)!=="object"){for(var d=arguments.length,h=new Array(d>2?d-2:0),p=2;p<d;p++)h[p-2]=arguments[p];f=i.options.overloadTranslationOptionHandler([c,u].concat(h))}else f=pt({},u);return f.lng=f.lng||l.lng,f.lngs=f.lngs||l.lngs,f.ns=f.ns||l.ns,i.t(c,f)},"fixedT");return typeof a=="string"?s.lng=a:s.lngs=a,s.ns=r,s},"getFixedT")},{key:"t",value:o(function(){var a;return this.translator&&(a=this.translator).translate.apply(a,arguments)},"t")},{key:"exists",value:o(function(){var a;return this.translator&&(a=this.translator).exists.apply(a,arguments)},"exists")},{key:"setDefaultNamespace",value:o(function(a){this.options.defaultNS=a},"setDefaultNamespace")},{key:"hasLoadedNamespace",value:o(function(a){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var u=o(function(h,p){var m=r.services.backendConnector.state["".concat(h,"|").concat(p)];return m===-1||m===2},"loadNotPending");if(i.precheck){var f=i.precheck(this,u);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,a)||!this.services.backendConnector.backend||u(s,a)&&(!l||u(c,a)))},"hasLoadedNamespace")},{key:"loadNamespaces",value:o(function(a,r){var i=this,s=Ha();return this.options.ns?(typeof a=="string"&&(a=[a]),a.forEach(function(l){i.options.ns.indexOf(l)<0&&i.options.ns.push(l)}),this.loadResources(function(l){s.resolve(),r&&r(l)}),s):(r&&r(),Promise.resolve())},"loadNamespaces")},{key:"loadLanguages",value:o(function(a,r){var i=Ha();typeof a=="string"&&(a=[a]);var s=this.options.preload||[],l=a.filter(function(c){return s.indexOf(c)<0});return l.length?(this.options.preload=s.concat(l),this.loadResources(function(c){i.resolve(),r&&r(c)}),i):(r&&r(),Promise.resolve())},"loadLanguages")},{key:"dir",value:o(function(a){if(a||(a=this.languages&&this.languages.length>0?this.languages[0]:this.language),!a)return"rtl";var r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"];return r.indexOf(this.services.languageUtils.getLanguagePartFromCode(a))>=0?"rtl":"ltr"},"dir")},{key:"createInstance",value:o(function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(a,r)},"createInstance")},{key:"cloneInstance",value:o(function(){var a=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ji,s=pt({},this.options,r,{isClone:!0}),l=new t(s),c=["store","services","language"];return c.forEach(function(u){l[u]=a[u]}),l.services=pt({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new mf(l.services,l.options),l.translator.on("*",function(u){for(var f=arguments.length,d=new Array(f>1?f-1:0),h=1;h<f;h++)d[h-1]=arguments[h];l.emit.apply(l,[u].concat(d))}),l.init(s,i),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l},"cloneInstance")},{key:"toJSON",value:o(function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}},"toJSON")}]),t}(pn),Wy=new Jy,Fe=Wy;var xp=se(Ms()),Ip=se(Vf()),no=se(Sp()),Ae=require("@sap-ux/vocabularies-types/vocabularies/UI"),Ya=require("@sap-ux/vocabularies-types/vocabularies/Communication");var zs=se(fe()),Ie=o((e,t,...n)=>{e?e[t.severity](t.message,t.location,...n):t.location?console.log(`${zs.LogSeverityLabel[t.severity]}: ${t.message}; location: ${t.location}`,...n):console.log(`${zs.LogSeverityLabel[t.severity]}: '${t.message}`,...n)},"log");var Y="#/definitions/";function ut(e){return e.replace("#","::").replace(/\//g,":2f")}o(ut,"prepareRef");var Vn=o((e,t,n)=>{let a=`/${e}/@${t}`;return n&&(a+=`#${n}`),a},"createAnnotationPath");function Rn(e,t){let n=[],a;try{e&&e.forEach(function(r){n.push((0,no.parse)(r.fileContent,r.dataSourceUri))}),n.length>0&&(a=(0,Ip.convert)((0,no.merge)(...n)))}catch(r){Ie(t,{severity:X.LogSeverity.Error,message:Fe.t("ANNOERR")},...r)}return a}o(Rn,"parseAndMergeAndConvert");var ba=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Xs(e,t,n){var a,r,i,s;if((a=e==null?void 0:e.Common)!=null&&a.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t.resolvePath(e.Common.Label.path);l.value?n=l.value:typeof((r=l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(i=e.Common)==null?void 0:i.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(Xs,"evaluateCommonLabel");function Fp(e,t){let n=e.value;return e.$target&&(n=Xs(e.$target.annotations,t,n)),n}o(Fp,"getLabelForPropertyPath");function ro(e,t){var r,i;let n,a;return e.Value?typeof e.Value=="string"?a=t.entityProperties.find(s=>s.name===e.Value):(a=t.resolvePath(e.Value.path),a||(a=e.Value.$target)):e.Target&&e.Target.$target&&e.Target.$target.Value&&(a=e.Target.$target.Value.$target),(i=(r=a==null?void 0:a.annotations)==null?void 0:r.Common)!=null&&i.Label&&(n=Xs(a.annotations,t,n)),n}o(ro,"getLabelForDataField");function DE(e,t){var n,a;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t.resolvePath(e.path);if(!r||r.length===0)return;{let i=r[0];if((a=(n=i==null?void 0:i.annotations)==null?void 0:n.Common)!=null&&a.Label){let s=e;return Xs(i.annotations,t,s)}}}else return}o(DE,"getLabel");function Tp(e,t,n){let a=ro(e,t);return n||a||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(Tp,"getTitleForDataField");function Za(e,t){let n="",a,r,i=DE(e.Label,t);switch(e.$Type){case Ae.UIAnnotationTypes.DataField:r=e,n=Tp(r,t,i);break;case Ae.UIAnnotationTypes.DataFieldWithUrl:r=e,a=ro(e,t),n=i||a||(typeof r.Value=="string"?r.Value:r.Value.path);break;case Ae.UIAnnotationTypes.DataFieldForAnnotation:r=e,a=ro(e,t),n=i||a||r.Target.$target.Title||r.Target.value;break;case Ae.UIAnnotationTypes.DataFieldForAction:case Ae.UIAnnotationTypes.DataFieldWithAction:case Ae.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,i?n=typeof i=="string"?i:r.Action:n=e.Action;break;case Ae.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:r=e,a=ro(e,t),n=a||r.Value.path;break;case Ae.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=Tp(r,t,i);break;default:break}return n}o(Za,"getDatafieldDescription");function Xr(e){if(e){let t=`${X.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(Xr,"getPageTypeV2");function NE(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(NE,"getTargetAnnotationName");function Yr(e,t){if(!t)return;let n=t.references.find(a=>a.namespace===e);return n||(n=t.references.find(a=>a.alias===e)),n||(n=t.references.find(a=>a.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(Yr,"findAlias");function wE(e,t,n){var s;let a=e[e.length-1],r=a.substring(a.lastIndexOf(".")+1,a.length),i=Yr(a.substring(0,a.lastIndexOf(".")).replace("@",""),n);return(s=t==null?void 0:t.annotations[i])==null?void 0:s[r]}o(wE,"determineTargetAnnotation");function LE(e,t,n){let a=t[t.length-1].split("#")[0];if(a.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Ae.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=a.replace("@UI",`${n?"":"@"}com.sap.vocabularies.UI.v1`);return e}o(LE,"adjustKey");function $E(e,t,n,a,r=X.FioriElementsVersion.v2,i=!1){var d,h;let s=!1,l,c=a.split("/"),u=c.length>1;u&&(n=(d=n.resolvePath(a.substring(0,a.lastIndexOf("/"))))==null?void 0:d.targetType),t=LE(t,c,i);let f=wE(c,n,e);if(f){let p=r===X.FioriElementsVersion.v2?"::":"#";t=NE(f,i).replace("#",p),l=(h=f.fullyQualifiedName)==null?void 0:h.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(u){let p=r===X.FioriElementsVersion.v2?"::":"/";c.pop(),t=`${[...c].join(p)}${p}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o($E,"getKeyAndEntityTypeOfReferenceFacet");function _p(e,t,n,a,r=X.FioriElementsVersion.v2,i=!1){var f,d,h;let s=(d=e.fullyQualifiedName)==null?void 0:d.substring((f=e.fullyQualifiedName)==null?void 0:f.lastIndexOf("@")),l=e.ID?e.ID.toString():s,c=(h=e.fullyQualifiedName)==null?void 0:h.split("@")[0],u=t;if(e.$Type!==Ae.UIAnnotationTypes.CollectionFacet&&"Target"in e){let p=ba(e.Target);if(!p){Ie(a,{severity:X.LogSeverity.Error,message:Fe.t("NOTARGET",{target:e.Target})});return}let{key:m,entityType:P,stopProcessing:E,namespace:T}=$E(n,l,u,p,r,i);if(E)return;l=m,u=P,c=T}if(l=l.replace(/\//gi,"::"),l)return Rt(qe(qe({key:l},e.Label&&{label:e.Label.toString()}),e.ID&&{ID:e.ID.toString()}),{entityType:u,namespace:c})}o(_p,"getSectionFacet");function Ys(e){let t,n,a;switch(e.$Type){case Ae.UIAnnotationTypes.DataField:t=ba(e.Value);break;case Ae.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:ba(e.Value);break;case Ae.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI","@com.sap.vocabularies.UI.v1").replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Ae.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${ut(e.Action)}`);break;case Ae.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:a=ba(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${a}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Ae.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${ut(e.Action)}`);break;case Ae.UIAnnotationTypes.DataFieldWithNavigationPath:a=ba(e.Value),n=ba(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+a+":::sTarget::"+n;break;default:break}return t}o(Ys,"getSchemaKeyOfLineItemRecord");function VE(e,t,n){return e.includes(Ae.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Ae.UIAnnotationTerms.Chart:e.includes(Ae.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Ae.UIAnnotationTerms.Identification:n&&e.includes(Ae.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Ae.UIAnnotationTerms.LineItem:e.includes(Ae.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Ae.UIAnnotationTerms.FieldGroup:e.includes(Ae.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Ae.UIAnnotationTerms.DataPoint:e.includes(Ae.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Ae.UIAnnotationTerms.PresentationVariant:void 0}o(VE,"getUIAnnotationTerm");function RE(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Ya.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Ya.CommunicationAnnotationTerms.Address:void 0}o(RE,"getCommunicationAnnotationTerm");function jE(e,t,n){return VE(e,t,n)||RE(e,t)}o(jE,"getAnnotationTerm");function ME(e,t,n,a,r,i=X.FioriElementsVersion.v2,s){var d,h,p,m,P,E,T,w,F;let l=Yr(X.UIVOCABULARY,r),c=e?e.key:"",u=e.entityType;switch(jE(c,l,a)){case Ae.UIAnnotationTerms.Chart:{n[c]={base:X.FacetBase.Chart},n[c].target=(d=t==null?void 0:t.Target)==null?void 0:d.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case Ae.UIAnnotationTerms.Identification:{n[c]={base:X.FacetBase.Identification},n[c].target=(h=t==null?void 0:t.Target)==null?void 0:h.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case Ae.UIAnnotationTerms.LineItem:{if(!c.includes(Ae.UIAnnotationTerms.LineItem)&&c.includes(".LineItem")){let V=c.split("::");V[V.length-1]=`@${Ae.UIAnnotationTerms.LineItem}`,c=V.join("::")}n[c]={base:X.FacetBase.LineItem},n[c].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case Ae.UIAnnotationTerms.FieldGroup:{n[c]={base:X.FacetBase.Form},n[c].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case Ae.UIAnnotationTerms.DataPoint:{n[c]={base:X.FacetBase.DataPoint},n[c].Label=(P=t==null?void 0:t.Target)==null?void 0:P.$target.Title,n[c].target=(E=t==null?void 0:t.Target)==null?void 0:E.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case Ae.UIAnnotationTerms.PresentationVariant:{n[c]={base:X.FacetBase.PresentationVariant},n[c].target=(T=t==null?void 0:t.Target)==null?void 0:T.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case Ya.CommunicationAnnotationTerms.Contact:{n[c]={base:X.FacetBase.Contact},n[c].target=(w=t==null?void 0:t.Target)==null?void 0:w.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case Ya.CommunicationAnnotationTerms.Address:{n[c]={base:X.FacetBase.Address},n[c].target=(F=t==null?void 0:t.Target)==null?void 0:F.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}default:n[c]={base:X.FacetBase.Unknown}}n[c]&&(n[c].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",X.VOCWITHSLASH)}`,t.Label&&(n[c].Label=t.Label),t.ID?n[c].ID=t.ID:i===X.FioriElementsVersion.v4&&Ie(s,{severity:X.LogSeverity.Error,message:Fe.t("NOID4SECTION",{facet:t.fullyQualifiedName})}),e&&e.entityType&&(n[c].entityType=e.entityType))}o(ME,"evaluateTargetAnnotation");function Dp(e,t,n,a,r,i=X.FioriElementsVersion.v2,s){var c;let l=_p(e,a,t,s,i,!1);if(l)switch(e.$Type){case Ae.UIAnnotationTypes.ReferenceFacet:{ME(l,e,r,a,t,i,s);break}case Ae.UIAnnotationTypes.CollectionFacet:{let u=`/${a.fullyQualifiedName}/${e.fullyQualifiedName.split(a.fullyQualifiedName)[1]}`,f=r[l.key]={base:X.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:u,Label:l.label,namespace:l.namespace};(c=e.Facets)==null||c.forEach(d=>{Dp(d,t,n,a,f.facets,i,s)});break}}}o(Dp,"addFacetToConfig");function Np(e,t,n=X.FioriElementsVersion.v2,a){let r={};if(!e||!e.annotations)return;let i=Yr(X.UIVOCABULARY,t),s=i&&e.annotations[i]&&e.annotations[i].Facets;if(s){let l=e.fullyQualifiedName.lastIndexOf("."),c=e.fullyQualifiedName.substring(0,l);s.forEach(u=>{Dp(u,t,c,e,r,n,a)})}return r}o(Np,"getObjectPageFacets");function Zs(e){return e[X.ManifestSection.generic]||e[X.ManifestSection.ovp]?X.FioriElementsVersion.v2:X.FioriElementsVersion.v4}o(Zs,"getVersionFromManifest");function UE(e,t){let n;if(e[X.ManifestSection.generic]){let a=e[X.ManifestSection.generic].pages;if(!a){Ie(t,{severity:X.LogSeverity.Error,message:Fe.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:X.MANIFESTPATH,range:[X.ManifestSection.generic]}});return}for(let r in a){let i=a[r];if(Xr(i.component.name)===X.PageType.AnalyticalListPage){n=X.TemplateType.AnalyticalListPageV2;break}else if(Xr(i.component.name)===X.PageType.ListReport){n=X.TemplateType.ListReportObjectPageV2;break}}}else n||Ie(t,{severity:X.LogSeverity.Error,message:Fe.t("NOTEMPLATE",{section:X.ManifestSection.generic}),location:{path:X.MANIFESTPATH,range:[X.ManifestSection.generic]}});return n}o(UE,"determineV2Template");function el(e,t,n){let a;return e[X.ManifestSection.ovp]?a=X.TemplateType.OverviewPageV2:t===X.FioriElementsVersion.v2&&(a=UE(e,n)),a}o(el,"getTemplateTypeFromManifest");function ei(e,t,n){e!=null&&e.ID?(t.title=X.FacetTitlePrefix+e.ID,t[X.SchemaTag.keys]=[{name:X.SchemaKeyName.id,value:e.ID}]):t.title=n.replace(/@com.sap/g,"com.sap"),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(ei,"addSectionTitleAndDescription");function Ea(e,t,n){if(!t)return;let a;return e.definitions.ObjectPageSection?a=JSON.parse(JSON.stringify(e.definitions.ObjectPageSection)):(a={type:"object",properties:{},additionalProperties:!1},a[X.SchemaTag.isViewNode]=!0),a[X.SchemaTag.annotationPath]=t.annotationPath,ei(t,a,n),a}o(Ea,"createDefaultSection");function wp(e,t,n,a=X.FioriElementsVersion.v2,r=!1){let i=Yr(X.UIVOCABULARY,t),s=[];if(e){let l=i&&e.annotations&&e.annotations[i]&&e.annotations[i].Facets;return l&&(s=l.reduce(function(c,u){if(r&&!u.ID&&!("Target"in u&&u.Target))return c;let f=_p(u,e,t,n,a,!0);return f&&c.push(f),c},s)),s}}o(wp,"getObjectPageFacetSection");var tl=o((e,t,n,a)=>{if(!t)return;let r=e,i=t.split("/");i.forEach(function(s){let l=a&&a===s?n:s.replace("??","/");if(!!r[l]){if(Object.keys(r[l]).length===0){Array.isArray(r)?r.splice(Number(l),1):delete r[l],i.pop(),tl(e,i.join("/"),n,a);return}r=r&&r[l]}})},"deleteEmptyStructure"),Ap=o(e=>`${e}`,"getGenericSchemaFileName"),Dt=o((e,t)=>{let n={filename:"",path:""};switch(e){case X.SchemaType.Application:{n.filename="App",n.path=`./${X.DirName.Schemas}/${n.filename}`;break}case X.SchemaType.ListReport:case X.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:Ap(e),n.path=`../${X.DirName.Schemas}/${n.filename}`;break}default:{n.filename=Ap(e),n.path=`../${X.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function ao(e,t,n){if(e===X.PageType.CustomPage){let r=n&&n.split(".");return r&&r[r.length-1]+"Page"}let a=[];return a.push(e),t&&a.push(t),a.join("_")}o(ao,"generatePageId");function kE(e,t,n,a){let r=e.$ref;if(r){let i=r.split(Y)[1];if(t.definitions[i]){let s=t.definitions[i].controlProperty;r.includes(n[s])&&a.push(i)}}}o(kE,"fillArrayFromAnyOfReference");function BE(e,t,n){let a=[];if(e.$ref)a.push(e.$ref.split(Y)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{kE(r,n,t,a)}),a.length===0))return;return a}o(BE,"fillArrayFromPropertyDefinition");function GE(e,t,n,a,r,i,s,l){var u,f,d,h;let c={configObject:void 0,targetDefinition:{},title:""};if(e.length){let p=e[e.length-1];if(c.targetDefinition=t.definitions[p],((u=c==null?void 0:c.targetDefinition)==null?void 0:u.$ref)||((f=c==null?void 0:c.targetDefinition)==null?void 0:f.type)==="array")return c=jn(t,n,a,c.targetDefinition,r,i,s),c;e.length>1&&e.forEach(E=>{E!==""&&(c.targetDefinition.properties=qe(qe({},c.targetDefinition.properties),t.definitions[E].properties))}),c.title=(d=c==null?void 0:c.targetDefinition)!=null&&d.title?c.targetDefinition.title:n;let m=p==null?void 0:p.split("<")[0],P=a||{};c.configObject=i.createInstance(s,m,P,(h=c==null?void 0:c.targetDefinition)==null?void 0:h.controlProperty)}else c.targetDefinition=l,c.title=c.targetDefinition.title?c.targetDefinition.title:r,c.configObject=a;return c}o(GE,"determineNextDefinitionFromDefinitionArray");function jn(e,t,n,a,r,i,s){let l;if(a.type==="array")return l=jn(e,t,n,a.items,r,i,s),l;let c=BE(a,n,e);if(!!c)return l=GE(c,e,t,n,r,i,s,a),l}o(jn,"getNextTargetDefinition");var rl=o((e,t,n)=>{let a=e.slice();return t.forEach((r,i)=>{typeof a[i]>"u"?a[i]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?a[i]=(0,xp.default)(e[i],r,n):e.indexOf(r)===-1&&a.push(r)}),a},"arrayCombineMerge");function Zt(e){return(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::")}o(Zt,"convertActionKeyToStableId");var ra=require("@sap-ux/vocabularies-types/vocabularies/UI"),ee=se(fe());var Ut=se(fe());var Ze=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),io=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),Vt=o((e,t)=>{let n,a=Ut.FacetTitlePrefix;return t!==void 0&&t.includes(a)?n=t.split(a)[1]:n=e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),n},"convertSectionId");function HE(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(HE,"escapeId");var Lp=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(Lp||{});function QE(e,t,n){let a;return e=e.map(function(r){if(r===Ut.PropertyName.sections){for(let i=0;i<t.length;i++)if(t[i]===Ut.PropertyName.sections&&(a=t[i+1],a.indexOf(Ut.FacetBase.LineItem)!==-1))return t[i+1]=Vt(a,n)+"::Table",t[i+1]}return r}),{idBreadcrumbs:e}}o(QE,"mapBreadcrumbs");var nl=o((e,t,n,a,r)=>{let i="listReport",s=[...n];({idBreadcrumbs:t}=QE(t,s,r)),s[0]===Ut.PropertyName.sections?i=s[1].replace(/::com.sap.vocabularies/g,Ut.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Ut.VOCWITHSLASH):t[0]===Ut.PropertyName.table&&(i=t[0]);let l=s[s.length-1].replace(/::com.sap.vocabularies/g,Ut.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Ut.VOCWITHSLASH).replace("sTarget/@","sTarget::@").replace("/",":2f"),c,u=l.indexOf(":::");return l.startsWith("DataField")&&u>-1?c=`${e}template:::TableColumn:::${l.substring(0,u)}:::sSmartTableId::${i.replace("::Table",":3a:3aTable")}:::${l.substring(u+3)}`:c=`${e}${t.join("::")}-${l}`,HE(c)},"buildColumnControlId"),mr=o(e=>{let t=e[e.length-1].split(":::"),n,a,r;return t.length>2?(n=t[0],a=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:a,actionId:r}},"getActionBreadcrumbParts");function qE(e){let t=Ut.BindingPropertyRegexAsString;if(e.enum){let n;e.enum.forEach(a=>{a.toString().startsWith("{")||(n=n?`${n}|${a.toString()}`:a.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(qE,"determinePattern");var $p=o((e,t,n,a)=>{let r=t&&t.properties;if(r[n].pattern)return;let i=r[n],s=i,l=i.$ref?e.definitions[i.$ref.split(Y)[1]]:i,c=i.description?i.description:l.description,u=qE(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),a&&s.enum&&a.forEach(f=>{s.enum.indexOf(f)===-1&&s.enum.push(f)}),r[n]={pattern:u,anyOf:[s,{type:"string"}]},c&&(r[n].description=c,delete i.description)},"addPatternForBindingChangeOfEnum"),Pa=o((e,t,n)=>{$p(e,t,n)},"addPatternForBindingChangeOfEnumLR"),Ke=o((e,t,n)=>{let a=Object.values(Lp);$p(e,t,n,a)},"addPatternForBindingChangeOfEnumOP");var Vp;(function(e){(function(t){var n=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),a=r(e);typeof n.Reflect>"u"?n.Reflect=e:a=r(n.Reflect,a),t(a);function r(i,s){return function(l,c){typeof i[l]!="function"&&Object.defineProperty(i,l,{configurable:!0,writable:!0,value:c}),s&&s(l,c)}}o(r,"makeExporter")})(function(t){var n=Object.prototype.hasOwnProperty,a=typeof Symbol=="function",r=a&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",i=a&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",s=typeof Object.create=="function",l={__proto__:[]}instanceof Array,c=!s&&!l,u={create:s?function(){return zt(Object.create(null))}:l?function(){return zt({__proto__:null})}:function(){return zt({})},has:c?function(I,$){return n.call(I,$)}:function(I,$){return $ in I},get:c?function(I,$){return n.call(I,$)?I[$]:void 0}:function(I,$){return I[$]}},f=Object.getPrototypeOf(Function),d=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",h=!d&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:_t(),p=!d&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Ot(),m=!d&&typeof WeakMap=="function"?WeakMap:$t(),P=new m;function E(I,$,k,K){if(ge(k)){if(!pe(I))throw new TypeError;if(!Je($))throw new TypeError;return re(I,$)}else{if(!pe(I))throw new TypeError;if(!ce($))throw new TypeError;if(!ce(K)&&!ge(K)&&!He(K))throw new TypeError;return He(K)&&(K=void 0),k=x(k),G(I,$,k,K)}}o(E,"decorate"),t("decorate",E);function T(I,$){function k(K,le){if(!ce(K))throw new TypeError;if(!ge(le)&&!je(le))throw new TypeError;Ee(I,$,K,le)}return o(k,"decorator"),k}o(T,"metadata"),t("metadata",T);function w(I,$,k,K){if(!ce(k))throw new TypeError;return ge(K)||(K=x(K)),Ee(I,$,k,K)}o(w,"defineMetadata"),t("defineMetadata",w);function F(I,$,k){if(!ce($))throw new TypeError;return ge(k)||(k=x(k)),j(I,$,k)}o(F,"hasMetadata"),t("hasMetadata",F);function V(I,$,k){if(!ce($))throw new TypeError;return ge(k)||(k=x(k)),U(I,$,k)}o(V,"hasOwnMetadata"),t("hasOwnMetadata",V);function R(I,$,k){if(!ce($))throw new TypeError;return ge(k)||(k=x(k)),te(I,$,k)}o(R,"getMetadata"),t("getMetadata",R);function M(I,$,k){if(!ce($))throw new TypeError;return ge(k)||(k=x(k)),oe(I,$,k)}o(M,"getOwnMetadata"),t("getOwnMetadata",M);function ae(I,$){if(!ce(I))throw new TypeError;return ge($)||($=x($)),ve(I,$)}o(ae,"getMetadataKeys"),t("getMetadataKeys",ae);function O(I,$){if(!ce(I))throw new TypeError;return ge($)||($=x($)),ue(I,$)}o(O,"getOwnMetadataKeys"),t("getOwnMetadataKeys",O);function B(I,$,k){if(!ce($))throw new TypeError;ge(k)||(k=x(k));var K=J($,k,!1);if(ge(K)||!K.delete(I))return!1;if(K.size>0)return!0;var le=P.get($);return le.delete(k),le.size>0||P.delete($),!0}o(B,"deleteMetadata"),t("deleteMetadata",B);function re(I,$){for(var k=I.length-1;k>=0;--k){var K=I[k],le=K($);if(!ge(le)&&!He(le)){if(!Je(le))throw new TypeError;$=le}}return $}o(re,"DecorateConstructor");function G(I,$,k,K){for(var le=I.length-1;le>=0;--le){var yt=I[le],Oe=yt($,k,K);if(!ge(Oe)&&!He(Oe)){if(!ce(Oe))throw new TypeError;K=Oe}}return K}o(G,"DecorateProperty");function J(I,$,k){var K=P.get(I);if(ge(K)){if(!k)return;K=new h,P.set(I,K)}var le=K.get($);if(ge(le)){if(!k)return;le=new h,K.set($,le)}return le}o(J,"GetOrCreateMetadataMap");function j(I,$,k){var K=U(I,$,k);if(K)return!0;var le=nt($);return He(le)?!1:j(I,le,k)}o(j,"OrdinaryHasMetadata");function U(I,$,k){var K=J($,k,!1);return ge(K)?!1:g(K.has(I))}o(U,"OrdinaryHasOwnMetadata");function te(I,$,k){var K=U(I,$,k);if(K)return oe(I,$,k);var le=nt($);if(!He(le))return te(I,le,k)}o(te,"OrdinaryGetMetadata");function oe(I,$,k){var K=J($,k,!1);if(!ge(K))return K.get(I)}o(oe,"OrdinaryGetOwnMetadata");function Ee(I,$,k,K){var le=J(k,K,!0);le.set(I,$)}o(Ee,"OrdinaryDefineOwnMetadata");function ve(I,$){var k=ue(I,$),K=nt(I);if(K===null)return k;var le=ve(K,$);if(le.length<=0)return k;if(k.length<=0)return le;for(var yt=new p,Oe=[],Pe=0,de=k;Pe<de.length;Pe++){var $e=de[Pe],Ve=yt.has($e);Ve||(yt.add($e),Oe.push($e))}for(var Sr=0,nr=le;Sr<nr.length;Sr++){var $e=nr[Sr],Ve=yt.has($e);Ve||(yt.add($e),Oe.push($e))}return Oe}o(ve,"OrdinaryMetadataKeys");function ue(I,$){var k=[],K=J(I,$,!1);if(ge(K))return k;for(var le=K.keys(),yt=Lt(le),Oe=0;;){var Pe=Ct(yt);if(!Pe)return k.length=Oe,k;var de=We(Pe);try{k[Oe]=de}catch($e){try{Or(yt)}finally{throw $e}}Oe++}}o(ue,"OrdinaryOwnMetadataKeys");function ie(I){if(I===null)return 1;switch(typeof I){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return I===null?1:6;default:return 6}}o(ie,"Type");function ge(I){return I===void 0}o(ge,"IsUndefined");function He(I){return I===null}o(He,"IsNull");function rt(I){return typeof I=="symbol"}o(rt,"IsSymbol");function ce(I){return typeof I=="object"?I!==null:typeof I=="function"}o(ce,"IsObject");function ze(I,$){switch(ie(I)){case 0:return I;case 1:return I;case 2:return I;case 3:return I;case 4:return I;case 5:return I}var k=$===3?"string":$===5?"number":"default",K=be(I,r);if(K!==void 0){var le=K.call(I,k);if(ce(le))throw new TypeError;return le}return y(I,k==="default"?"number":k)}o(ze,"ToPrimitive");function y(I,$){if($==="string"){var k=I.toString;if(me(k)){var K=k.call(I);if(!ce(K))return K}var le=I.valueOf;if(me(le)){var K=le.call(I);if(!ce(K))return K}}else{var le=I.valueOf;if(me(le)){var K=le.call(I);if(!ce(K))return K}var yt=I.toString;if(me(yt)){var K=yt.call(I);if(!ce(K))return K}}throw new TypeError}o(y,"OrdinaryToPrimitive");function g(I){return!!I}o(g,"ToBoolean");function L(I){return""+I}o(L,"ToString");function x(I){var $=ze(I,3);return rt($)?$:L($)}o(x,"ToPropertyKey");function pe(I){return Array.isArray?Array.isArray(I):I instanceof Object?I instanceof Array:Object.prototype.toString.call(I)==="[object Array]"}o(pe,"IsArray");function me(I){return typeof I=="function"}o(me,"IsCallable");function Je(I){return typeof I=="function"}o(Je,"IsConstructor");function je(I){switch(ie(I)){case 3:return!0;case 4:return!0;default:return!1}}o(je,"IsPropertyKey");function be(I,$){var k=I[$];if(k!=null){if(!me(k))throw new TypeError;return k}}o(be,"GetMethod");function Lt(I){var $=be(I,i);if(!me($))throw new TypeError;var k=$.call(I);if(!ce(k))throw new TypeError;return k}o(Lt,"GetIterator");function We(I){return I.value}o(We,"IteratorValue");function Ct(I){var $=I.next();return $.done?!1:$}o(Ct,"IteratorStep");function Or(I){var $=I.return;$&&$.call(I)}o(Or,"IteratorClose");function nt(I){var $=Object.getPrototypeOf(I);if(typeof I!="function"||I===f||$!==f)return $;var k=I.prototype,K=k&&Object.getPrototypeOf(k);if(K==null||K===Object.prototype)return $;var le=K.constructor;return typeof le!="function"||le===I?$:le}o(nt,"OrdinaryGetPrototypeOf");function _t(){var I={},$=[],k=function(){function Oe(Pe,de,$e){this._index=0,this._keys=Pe,this._values=de,this._selector=$e}return o(Oe,"MapIterator"),Oe.prototype["@@iterator"]=function(){return this},Oe.prototype[i]=function(){return this},Oe.prototype.next=function(){var Pe=this._index;if(Pe>=0&&Pe<this._keys.length){var de=this._selector(this._keys[Pe],this._values[Pe]);return Pe+1>=this._keys.length?(this._index=-1,this._keys=$,this._values=$):this._index++,{value:de,done:!1}}return{value:void 0,done:!0}},Oe.prototype.throw=function(Pe){throw this._index>=0&&(this._index=-1,this._keys=$,this._values=$),Pe},Oe.prototype.return=function(Pe){return this._index>=0&&(this._index=-1,this._keys=$,this._values=$),{value:Pe,done:!0}},Oe}();return function(){function Oe(){this._keys=[],this._values=[],this._cacheKey=I,this._cacheIndex=-2}return o(Oe,"Map"),Object.defineProperty(Oe.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Oe.prototype.has=function(Pe){return this._find(Pe,!1)>=0},Oe.prototype.get=function(Pe){var de=this._find(Pe,!1);return de>=0?this._values[de]:void 0},Oe.prototype.set=function(Pe,de){var $e=this._find(Pe,!0);return this._values[$e]=de,this},Oe.prototype.delete=function(Pe){var de=this._find(Pe,!1);if(de>=0){for(var $e=this._keys.length,Ve=de+1;Ve<$e;Ve++)this._keys[Ve-1]=this._keys[Ve],this._values[Ve-1]=this._values[Ve];return this._keys.length--,this._values.length--,Pe===this._cacheKey&&(this._cacheKey=I,this._cacheIndex=-2),!0}return!1},Oe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=I,this._cacheIndex=-2},Oe.prototype.keys=function(){return new k(this._keys,this._values,K)},Oe.prototype.values=function(){return new k(this._keys,this._values,le)},Oe.prototype.entries=function(){return new k(this._keys,this._values,yt)},Oe.prototype["@@iterator"]=function(){return this.entries()},Oe.prototype[i]=function(){return this.entries()},Oe.prototype._find=function(Pe,de){return this._cacheKey!==Pe&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=Pe)),this._cacheIndex<0&&de&&(this._cacheIndex=this._keys.length,this._keys.push(Pe),this._values.push(void 0)),this._cacheIndex},Oe}();function K(Oe,Pe){return Oe}function le(Oe,Pe){return Pe}function yt(Oe,Pe){return[Oe,Pe]}}o(_t,"CreateMapPolyfill");function Ot(){return function(){function I(){this._map=new h}return o(I,"Set"),Object.defineProperty(I.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),I.prototype.has=function($){return this._map.has($)},I.prototype.add=function($){return this._map.set($,$),this},I.prototype.delete=function($){return this._map.delete($)},I.prototype.clear=function(){this._map.clear()},I.prototype.keys=function(){return this._map.keys()},I.prototype.values=function(){return this._map.values()},I.prototype.entries=function(){return this._map.entries()},I.prototype["@@iterator"]=function(){return this.keys()},I.prototype[i]=function(){return this.keys()},I}()}o(Ot,"CreateSetPolyfill");function $t(){var I=16,$=u.create(),k=K();return function(){function de(){this._key=K()}return o(de,"WeakMap"),de.prototype.has=function($e){var Ve=le($e,!1);return Ve!==void 0?u.has(Ve,this._key):!1},de.prototype.get=function($e){var Ve=le($e,!1);return Ve!==void 0?u.get(Ve,this._key):void 0},de.prototype.set=function($e,Ve){var Sr=le($e,!0);return Sr[this._key]=Ve,this},de.prototype.delete=function($e){var Ve=le($e,!1);return Ve!==void 0?delete Ve[this._key]:!1},de.prototype.clear=function(){this._key=K()},de}();function K(){var de;do de="@@WeakMap@@"+Pe();while(u.has($,de));return $[de]=!0,de}function le(de,$e){if(!n.call(de,k)){if(!$e)return;Object.defineProperty(de,k,{value:u.create()})}return de[k]}function yt(de,$e){for(var Ve=0;Ve<$e;++Ve)de[Ve]=Math.random()*255|0;return de}function Oe(de){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(de)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(de)):yt(new Uint8Array(de),de):yt(new Array(de),de)}function Pe(){var de=Oe(I);de[6]=de[6]&79|64,de[8]=de[8]&191|128;for(var $e="",Ve=0;Ve<I;++Ve){var Sr=de[Ve];(Ve===4||Ve===6||Ve===8)&&($e+="-"),Sr<16&&($e+="0"),$e+=Sr.toString(16).toLowerCase()}return $e}}o($t,"CreateWeakMapPolyfill");function zt(I){return I.__=void 0,delete I.__,I}o(zt,"MakeDictionary")})})(Vp||(Vp={}));var Rp=Symbol("specificationMetadataKey"),b=o(e=>Reflect.metadata(Rp,e),"syncRule");function Qt(e,t){let n;return e&&(n=Reflect.getMetadata(Rp,e,t)),n}o(Qt,"getReflectMetadata");var gn=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),jp=Symbol("childId"),St=o(e=>Reflect.metadata(jp,e),"childId"),Mp=o((e,t)=>Reflect.getMetadata(jp,e,t),"getChildId"),oo=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),KE=Symbol("validityMetadataKey"),q=o(e=>Reflect.metadata(KE,e),"validity");function so(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(so,"getTextForDeprecated");var Kp=se(Qp()),Jp=se(fe()),Wp=Kp.default.change,qp={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function zp(e,t){let n="";try{for(let a in qp)e[a]===void 0&&(e[a]=qp[a]);n=Wp.createChangeString(e,t)}catch(a){console.error("Error while create flex change.",a)}return n}o(zp,"createChangeString");function mn(e){try{return Wp.parse(e)}catch{return!1}}o(mn,"parseChangeString");function Xp(e,t,n,a,r){let i=n.layer?n.layer===Jp.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:a},sapui5Version:n.ui5Version,isCustomer:i};return e[a]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,a):e[a].toString().startsWith("{")?(s.content.newBinding=e[a],s.type="propertyBindingChange"):s.content.newValue=e[a]:s.content.newValue=null,s}o(Xp,"fillFlexChangeContent");function W(e,t){return zp(e,t)}o(W,"exportToFlexChange");var Mn=se(fe());function lo(e,t,n,a,r,i){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let c=l(t,r,n,i);c!==void 0&&(a[n]=c)}else t[s]!==void 0&&(a[n]=t[s])}o(lo,"importProperty");function Yp(e,t,n,a){if(t&&e)for(let r in t){let i=e[r];i&&(Ie(a,{severity:Mn.LogSeverity.Warning,message:so(r,i),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Yp,"checkDeprecatedProperties");function al(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(Y)[1]];return al(n,t)}else return e.title?e.title.startsWith(Mn.FacetTitlePrefix)?e.title.split(Mn.FacetTitlePrefix)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(al,"getSectionTitle");function co(e){let t=e.split(`${Mn.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(co,"getTargetFromCustomColumnRef");var et=require("@sap-ux/vocabularies-types/vocabularies/UI");var Zr=require("@sap-ux/vocabularies-types/vocabularies/UI");function ed(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/\/|@|\(|\)|#|\*/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(ed,"replaceSpecialChars");function eP(e){return e=e.replace("com.sap.vocabularies.UI.v1.",""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(eP,"removeNamespaces");var Un=o(function(e){return ed(eP(e))},"prepareId");function tP(e){let t="";for(let n of e.Apply.Path)n._text&&(t&&(t+="::"),t+=n._text);return t}o(tP,"evaluateConcat");function kn(e){var t;if((e==null?void 0:e.$Path)||(e==null?void 0:e.path))return e.$Path||e.path;if(((t=e==null?void 0:e.Apply)==null?void 0:t._attributes.Function)==="odata.concat")return tP(e);if(e&&typeof e=="string")return ed(e.replace(/ /g,"_"))}o(kn,"getStableIdPartFromValue");var Zp=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),td=o(function(e){let t="";if(e.$Type&&e.$Type===Zr.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,Un(t);if(e.$Type&&e.$Type===Zr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=Zp(e),t;if(e.$Type&&e.$Type===Zr.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=Un(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===Zr.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=kn(e.Value)+"::"),t+=e.Action,Un(t);if(e.$Type&&e.$Type===Zr.UIAnnotationTypes.DataField)return t="DataField::",t+=kn(e.Value),Un(t);if(e.$Type&&e.$Type===Zr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=kn(e.Value)+"::",t+=Zp(e),Un(t);if(e.$Type&&e.$Type===Zr.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=kn(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),Un(t);if(e.$Type&&e.$Type===Zr.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=kn(e.Value),Un(t)},"getStableIdPartFromDataField");var nd=se(fe()),Q=se(fe());function rP(e,t,n,a){if(e===Q.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case et.UIAnnotationTypes.DataField:case et.UIAnnotationTypes.DataFieldForAnnotation:case et.UIAnnotationTypes.DataFieldWithNavigationPath:case et.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[a].properties=t.definitions.Field.properties;break}}else if(e===Q.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case et.UIAnnotationTypes.DataField:case et.UIAnnotationTypes.DataFieldForAnnotation:case et.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[a].properties=t.definitions.Field.properties;break}}}o(rP,"copyFieldProperties");function nP(e,t,n,a){let r=e===Q.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===Q.FioriElementsVersion.v2?`${r}<${n}::${a}>`:`${n}::${a}`}o(nP,"determineFieldDefinitionName");function aP(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][Q.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][Q.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.targetString.split("/")[0]):typeof e.Value=="string"&&e.Value&&(t.definitions[n][Q.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][Q.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(aP,"addKeysTagForDataField");function iP(e,t,n){if(e.$Type===et.UIAnnotationTypes.DataField||e.$Type===et.UIAnnotationTypes.DataFieldWithUrl||e.$Type===et.UIAnnotationTypes.DataFieldWithNavigationPath)aP(e,t,n);else if(e.$Type===et.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][Q.SchemaTag.keys]=[{name:"Target",value:e.Target.value}],t.definitions[n][Q.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===et.UIAnnotationTypes.DataFieldForAction){let a=e.Action.lastIndexOf(".");a===-1?t.definitions[n][Q.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][Q.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(a+1,e.Action.length)}],t.definitions[n][Q.SchemaTag.target]=e.Action.substring(0,a))}else e.$Type===et.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][Q.SchemaTag.keys]=[{name:"SemanticObject",value:e.SemanticObject}],e.Action&&t.definitions[n][Q.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][Q.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(iP,"addKeysTagToField");function rd(e,t,n,a,r,i,s,l=!0){var d;let c=td(n),u=s===Q.FioriElementsVersion.v2&&c&&c.includes("::")?c.split("::").splice(1).join("::"):c,f=nP(s,c,a,u);if(!(!n||!n.$Type)){if(n.$Type===et.UIAnnotationTypes.DataFieldForAction||n.$Type===et.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===Q.SectionType.Section){let h=ut(`${e}${Q.DefinitionName.Actions}<${a}>`),p=t.definitions[h].properties[u]={$ref:`${Y}${f}`};p[Q.SchemaTag.propertyIndex]=parseInt(r)}}else{let h=ut(`${e}${Q.DefinitionName.Fields}<${a}>`);t.definitions[h].properties[u]={$ref:`${Y}${f}`,propertyIndex:parseInt(r)}}t.definitions[f]={type:"object",properties:{},description:Za(n,i.entityType),additionalProperties:!1},iP(n,t,f),t.definitions[f][Q.SchemaTag.annotationPath]=`/${i.entityType.fullyQualifiedName}/${n.fullyQualifiedName.split(i.entityType.fullyQualifiedName)[1]}`,t.definitions[f][Q.SchemaTag.annotationType]=n.$Type,t.definitions[f][Q.SchemaTag.isViewNode]=!0,uo(t.definitions[f],n),rP(s,t,n,f),n.$Type===et.UIAnnotationTypes.DataFieldForAction&&((d=t.definitions)==null?void 0:d.FormAction)&&(t.definitions[f].properties=t.definitions[Q.DefinitionName.FormAction].properties)}}o(rd,"addField");function oP(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}o(oP,"determineTargetIdOfForm");function sP(e,t,n,a,r,i=!0){var u;if(!e.target)return;let s=ut(`${t}${Q.DefinitionName.Form}<${a}>`),l=ut(`${t}${Q.DefinitionName.Fields}<${a}>`),c=ut(`${t}${Q.DefinitionName.Actions}<${a}>`);if(n.properties.form={$ref:`${Y}${s}`},t===Q.SectionType.Section&&i?(n.definitions[s]={type:"object",properties:{actions:{$ref:`${Y}${c}`},fields:{$ref:`${Y}${l}`}},description:"Form",additionalProperties:!1},n.definitions[c]={type:"object",properties:{},description:"Actions",additionalProperties:!1},n.definitions[c][Q.SchemaTag.isViewNode]=!0):n.definitions[s]={type:"object",properties:{fields:{$ref:`${Y}${l}`}},description:"Form",additionalProperties:!1},n.definitions[s][Q.SchemaTag.isViewNode]=!0,(u=e.entityType)!=null&&u.name&&(n.definitions[s][Q.SchemaTag.annotationPath]=Vn(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier)),n.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},n.definitions[l][Q.SchemaTag.isViewNode]=!0,e.base===Q.FacetBase.Identification)for(let f in e.target){let d=e.target[f];d&&rd(t,n,d,a,f,e,r,i)}else for(let f in e.target.Data){let d=e.target.Data[f];rd(t,n,d,a,f,e,r)}}o(sP,"addFieldsToFormDefinition");function lP(e,t,n){var a,r;if(e.target){let i=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][Q.SchemaTag.keys]=[{name:nd.SchemaKeyName.target,value:i.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][Q.SchemaTag.target]=(a=e.target.fullyQualifiedName)==null?void 0:a.split("@")[0]}t.definitions[n][Q.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][Q.SchemaTag.annotationPath]=Vn(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(lP,"addTagsToFormDefinition");function ad(e,t,n,a,r,i){if(!t.target)return;let s=oP(t),l=ut(`${e}${Q.DefinitionName.Form}<${s}>`),c=ut(`${e}${Q.DefinitionName.Fields}<${s}>`),u=ut(`${e}${Q.DefinitionName.Actions}<${s}>`),f=!(t.base===Q.FacetBase.Identification&&i.indexOf("#")<0);return n.properties.form={$ref:`${Y}${l}`},e===Q.SectionType.Section&&f?(a.definitions[l]={type:"object",properties:{actions:{$ref:`${Y}${u}`},fields:{$ref:`${Y}${c}`}},description:"Form",additionalProperties:!1},a.definitions[u]={type:"object",properties:{},description:"Actions",additionalProperties:!1},a.definitions[u][Q.SchemaTag.isViewNode]=!0):a.definitions[l]={type:"object",properties:{fields:{$ref:`${Y}${c}`}},description:"Form",additionalProperties:!1},lP(t,a,l),a.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},a.definitions[c][Q.SchemaTag.isViewNode]=!0,sP(t,e,a,s,r,f),s}o(ad,"handleForm");function cP(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,a=e;if(n&&t){let r=n.replace("SAP__",""),i=t.references.find(s=>s.alias===r);i&&(a=e.replace(n,i.namespace))}return a}o(cP,"replaceAlias");function il(e,t){let n=cP(e.Action,t),a=n,r=n.indexOf("(");r>0&&(a=n.substring(0,r)),r=a.lastIndexOf("/"),r===-1&&(r=a.lastIndexOf("."));let i,s,l;return r>-1?(i=a.substring(r+1),l=a.substring(0,r),s=`${a.substring(0,r)}::${i}`):(i=a,l=e.fullyQualifiedName.split("@")[0],i&&i!==""&&(s=`${l.substring(0,l.length-1)}::${i}`)),{actionName:i,actionId:s,namespace:l}}o(il,"getActionNameAndId");function id(e,t){var s,l;e.definitions[Q.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${Q.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${Y}${Q.DefinitionName.ObjectPageFooter}`},e.definitions[Q.DefinitionName.ObjectPageFooter].properties[Q.PropertyName.actions]={$ref:`${Y}${Q.DefinitionName.FooterActions}`};let n=e.definitions[Q.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};n[Q.SchemaTag.isViewNode]=!0;let a=Yr(Q.UIVOCABULARY,t.serviceAVT),r=t.entitySet.entityType,i=a&&((l=(s=r.annotations)==null?void 0:s[a])==null?void 0:l.Identification);if(i){let c=i.fullyQualifiedName.replace(`@${et.UIAnnotationTerms.Identification}`,`/@${et.UIAnnotationTerms.Identification}`);n[Q.SchemaTag.annotationPath]=`/${c}`,i.forEach((u,f)=>{if(u.Determining&&u.$Type===et.UIAnnotationTypes.DataFieldForAction){let{actionName:d,actionId:h}=il(u,t.serviceAVT),p=u.Label||d,m=ut(`${Q.DefinitionName.ObjectPageFooterAction}<${h}>`);e.definitions[Q.DefinitionName.ObjectPageFooterAction]?e.definitions[m]=Rt(qe({},JSON.parse(JSON.stringify(e.definitions[Q.DefinitionName.ObjectPageFooterAction]))),{description:p,annotationPath:`/${c}/${f}`}):(e.definitions[m]={type:"object",properties:{},description:p},e.definitions[m][Q.SchemaTag.isViewNode]=!0,e.definitions[m][Q.SchemaTag.annotationPath]=`/${c}/${f}`),n.properties[h]={$ref:`${Y}${m}`}}})}else n[Q.SchemaTag.annotationPath]=`/${r.fullyQualifiedName}/@${et.UIAnnotationTerms.Identification}`;delete e.definitions[Q.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${Q.DefinitionName.ObjectPageFooter}<${Q.DefinitionName.ObjectPageFooterActions}>`]}o(id,"addFooterActions");function od(e,t,n,a){e.definitions[Q.DefinitionName.ObjectPageHeader].properties[Q.PropertyName.actions]={$ref:`${Y}${Q.DefinitionName.HeaderActions}`};let r=e.definitions[Q.DefinitionName.HeaderActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};r[Q.SchemaTag.isViewNode]=!0;let i=Yr(Q.UIVOCABULARY,n),s=i&&t.annotations&&t.annotations[i]&&t.annotations[i].Identification;s?(r[Q.SchemaTag.annotationPath]="/"+s.fullyQualifiedName.replace(`@${et.UIAnnotationTerms.Identification}`,`/@${et.UIAnnotationTerms.Identification}`),s.forEach(a(t,e,s,r,n))):r[Q.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${et.UIAnnotationTerms.Identification}`,delete e.definitions[Q.DefinitionName.GenericActions],delete e.definitions[`${Q.DefinitionName.ObjectPageHeader}<${Q.DefinitionName.GenericActions}>`]}o(od,"addHeaderActions");function sd(e,t){e.properties.header={$ref:`${Y}${Q.DefinitionName.ObjectPageHeader}`},e.definitions[Q.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${Q.DefinitionName.ObjectPageHeader}<${Q.DefinitionName.GenericActions}>`])),e.definitions[Q.DefinitionName.ObjectPageHeader][Q.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${et.UIAnnotationTerms.HeaderInfo}`}o(sd,"addCommonHeaderSchema");function ld(e,t){return e.entityType?t.entitySets.find(n=>n.entityType.name===e.entityType.name||n.name===e.entityType.name):void 0}o(ld,"determineEntitySetOfFacet");var Ir=require("@sap-ux/vocabularies-types/vocabularies/UI");var ft=se(fe());function cd(e,t,n){var i;let a=(i=e==null?void 0:e.annotations)==null?void 0:i.UI;if(!a)return;let r=[];for(let s in a){let l=a[s];if(t.indexOf(l.term)>-1){let c=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(c)===-1&&r.push(c)}}r.length>0&&(n.enum=r)}o(cd,"addEnumForValidAnnotations");function po(e,t,n){let a=t.definitions[n].properties.annotationPath,r=[Ir.UIAnnotationTerms.SelectionVariant,Ir.UIAnnotationTerms.SelectionPresentationVariant];cd(e,r,a)}o(po,"addEnumForSingleTabVariant");function ud(e,t,n){var i;let a=(i=e.definitions[t])==null?void 0:i.properties.annotationPath,r=[Ir.UIAnnotationTerms.SelectionVariant,Ir.UIAnnotationTerms.SelectionPresentationVariant];cd(n.entityType,r,a)}o(ud,"addEnumForMultiTabVariant");function fd(e,t,n){let a=t.definitions[n].properties.entitySet,r=[];!e||(e.entitySets.forEach(i=>{r.push(i.name)}),r.length>0&&(a.enum=r))}o(fd,"addEnumForVariantEntitySet");function pd(e,t,n,a){let r=n.map(i=>{let s=a.find(c=>!!i[c]),l=i[s];return qe(qe({const:l},i.label&&{description:i.label}),i.custom&&{custom:i.custom})});if(r.length){e.definitions.RelatedFacetKeys={type:"string",oneOf:r};for(let i of t){let s=e.definitions[i],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{$ref:Y+"RelatedFacetKeys"},l]}}}}o(pd,"addDefinitionForRelatedFacetKeys");function uP(e){return e.replace("#","::")}o(uP,"getFacetKeyInSchema");function dd(e,t){return`${e}<${uP(t)}>`}o(dd,"getFacetDefinitionKey");function fP(e,t,n,a=!0,r){let i=t;if(a&&(i=dd(r||e,t)),e&&e!==i){let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[i]=s}return n.definitions[i]}o(fP,"parseSchemaDefinition");function gd(e,t,n,a){let r;e.definitions[a]={type:"object",properties:{},description:"Columns"},e.definitions[a].additionalProperties=!1,e.definitions[a][ft.SchemaTag.isViewNode]=!0;let i=a.startsWith(ft.DefinitionName.LineItems)?"ToolBar":"ObjectPageToolBar",s=`${i}<${a}>`;e.definitions[s]=JSON.parse(JSON.stringify(e.definitions[`${i}`]));let l=`Actions<${ut(a)}>`;e.definitions[s].properties.actions.$ref=Y+l;let c=a.startsWith(ft.DefinitionName.LineItems)?"Actions":"ObjectPageToolBarActions",u=e.definitions[l]=JSON.parse(JSON.stringify(e.definitions[c]));u.properties={},u.additionalProperties=!1;let f,d;if(a===ft.DefinitionName.LineItems&&e.properties.footer){d=`Footer<${a}>`,e.properties.footer.$ref=Y+d,e.definitions[d]=JSON.parse(JSON.stringify(e.definitions.GenericFooter));let h=`FooterActions<${ut(a)}>`;e.definitions[d].properties.actions.$ref=Y+h,f=e.definitions[h]=JSON.parse(JSON.stringify(e.definitions.Actions)),f.properties={},f.additionalProperties=!1}return t&&(r=Vn(n.fullyQualifiedName,t.term,t.qualifier),e.definitions[a][ft.SchemaTag.annotationPath]=e.definitions[s][ft.SchemaTag.annotationPath]=r,f&&(e.definitions[d][ft.SchemaTag.annotationPath]=r)),{actions:u,footerActions:f,lineItemPath:r}}o(gd,"addCommonLineItemDefinitions");function pP(e){var a,r;let t,n=e.Target.$target;return n.Value?n.Visualization==="UI.VisualizationType/Rating"?t="Rating":n.Visualization==="UI.VisualizationType/Progress"?t="Progress":n.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(r=(a=n.Value)==null?void 0:a.$target)==null?void 0:r.type.replace("Edm.",""):n.$Type==="com.sap.vocabularies.Communication.v1.ContactType"?t="Contact":n.$Type==="com.sap.vocabularies.Communication.v1.AddressType"?t="Address":n.$Type==="com.sap.vocabularies.UI.v1.ChartDefinitionType"?t="Chart":n.$Type==="com.sap.vocabularies.UI.v1.FieldGroupType"&&(t="FieldGroup"),t}o(pP,"determineDataTypeOfTarget");function ol(e){var n;let t;return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=pP(e):e.$target?t=e.$target.type.replace("Edm.",""):e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"?t="Action":e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithUrl"?t="Url":e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation"?t="IntentBasedNavigation":e.type&&(t=e.type),t}o(ol,"determineDataType");function uo(e,t){let n=ol(t);n&&(e[ft.SchemaTag.dataType]=n)}o(uo,"addDataTypeToDefinition");function dP(e,t){return`${Y}${dd(e,t)}`}o(dP,"getFacetDefinitionLink");function sl(e,t,n,a,r,i,s=""){let l=`ObjectPage${r}${e.base}${s}`,c=`ObjectPage${i}${e.base}${s}`;n.properties[t]={$ref:dP(i?c:l,t)};let u=fP(i?c:l,t,a,!0,i?c:void 0);ei(e,u,t),u[ft.SchemaTag.annotationPath]=e.annotationPath,u[ft.SchemaTag.isViewNode]=!0}o(sl,"handleAddressContact");function fo(e,t){let n=e,a;return n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf("/")>0&&(a=n.substring(0,n.indexOf("/")),n=n.substring(n.lastIndexOf("/")+1)),t&&n.indexOf(".")>0&&(a=n.substring(0,n.lastIndexOf(".")),n=n.substring(n.lastIndexOf(".")+1)),a||(a=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:a}}o(fo,"getActionKey");function md(e,t,n){if(e.Value)t[n][ft.SchemaTag.keys]=[{name:ft.SchemaKeyName.value,value:kn(e.Value)}];else if(e.$Type===Ir.UIAnnotationTypes.DataFieldWithAction||e.$Type===Ir.UIAnnotationTypes.DataFieldForAction){let{key:a,ns:r}=fo(e.Action,!0);t[n][ft.SchemaTag.keys]=[{name:ft.SchemaKeyName.action,value:a}],r&&(t[n][ft.SchemaTag.target]=r)}else if(e.$Type===Ir.UIAnnotationTypes.DataFieldForAnnotation){let{key:a}=fo(e.Target.value,!1);t[n][ft.SchemaTag.keys]=[{name:ft.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t[n][ft.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0]}else if(e.$Type===Ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Ir.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let a=n.split("::");t[n][ft.SchemaTag.keys]=[{name:"Property",value:a[a.length-1]},{name:"SemanticObject",value:e.SemanticObject},{name:"Action",value:e.Action}]}}o(md,"addKeyToDefinition");var Vl=require("@sap-ux/vocabularies-types/vocabularies/UI"),Ce=se(fe());var wr=se(fe());var lr=se(fe());var Ca=class{constructor(t,n,a,r,i,s,l){this.unhandledControllers=[];let c=Dt(lr.SchemaType.Application);this.app=qe({$schema:c.path,id:t["sap.app"].id,pages:r,home:a,target:{fioriElements:i,odata:i===lr.FioriElementsVersion.v2?lr.OdataVersion.v2:lr.OdataVersion.v4}},s&&{settings:s}),this.schemas=n,this.logger=l}createConfigFiles(){let t={},n={},a;for(let i in this.app.pages)if(a=this.app.pages[i],a.config){let s=a.config;if(a.pageType!==lr.PageType.CustomPage){let l=Dt(a.pageType,a.entitySet);if(this.schemas[l.filename])s.$schema=l.path;else{let c=Dt(a.pageType);s.$schema=c.path}t[`${lr.DirName.Pages}/${i}.json`]=s}}let r=JSON.parse(JSON.stringify(this.app));for(let i in r.pages)delete r.pages[i].config;return n[lr.FileName.App]=r,{appConfig:n,pageConfigs:t}}};o(Ca,"AppProvider");var Se=se(fe());var Bn=se(fe());function go(e,t,n){if(t.controlType.endsWith(Bn.DefinitionName.Table))e[t.propertyId]=t.newValue;else if(t.controlType===Bn.ControlType.TableColumn){if(!(n==null?void 0:n.definitions[Bn.DefinitionName.TableColumn]).properties[t.propertyId])return;let r=t.controlId.split("-"),s=r[r.length-1].split("template:::TableColumn:::"),l=s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Bn.VOCWITHCOLONS).replace("/",":2f");e.columns||(e.columns={}),e.columns[l]||(e.columns[l]={}),e.columns[l][t.propertyId]=t.newValue}}o(go,"addFlexForTable");var Oa=se(fe()),Tt=o((e,t)=>{let n=e;return t.split("/").forEach(function(a){n[a]||(n[a]={}),n=n&&n[a]}),n||{}},"ensureManifestSectionByPathV2"),hd=o((e,t)=>{let n=e,a=t.split("/");for(let r of a){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2");var vd=o((e,t)=>{let n=e;for(let a=0;a<t.split("/").length;a++){let r=t.split("/")[a];a===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function ll(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(ll,"getNewPageTemplate");function gP(e,t,n){if(!!e)for(let a in e){let r=e[a];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(gP,"findPageInManifest");function mP(e,t,n){if(!!e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=ll(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:ll(e[t].pageType)}),!Array.isArray(n.pages))){let a=gP(n.pages,e[t].entitySet,e[t].navigationProperty);a||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=a=ll(e[t].pageType)),cl(t,e,a)}}o(mP,"transformPageFromAssociation");function hP(e,t,n){e.pages&&Object.keys(e.pages).forEach(a=>{let r=e.pages[a];if(r.component.name===Oa.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let i=`ObjectPage_${r.entitySet}`;t[i]||delete e.pages[a]}}),(n.pageType===Oa.PageType.ListReport||n.pageType===Oa.PageType.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(hP,"deletePage");function cl(e,t,n){let a=t[e];if(!!a&&(a.entitySet&&(n.entitySet=a.entitySet),a.pageType===Oa.PageType.ListReport&&(n.component.list=!0),a.navigationProperty&&(n.navigationProperty=a.navigationProperty),a.defaultLayoutType?n.defaultLayoutType=a.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,a.navigation)){for(let r in a.navigation)mP(t,r,n);Array.isArray(n.pages)||hP(n,t,a)}}o(cl,"transformPageToNewManifestV2");var qd=se(za());var Fl={};Ri(Fl,{ALPAnalyticalTable:()=>Cl,ALPGridTable:()=>Pl,ALPResponsiveTable:()=>Oo,Action:()=>Hn,AnalyticalCard:()=>hr,AnalyticalListPageFilterBar:()=>ri,AnalyticalTable:()=>Dr,BaseCustomSection:()=>ln,ChartSettings:()=>Kn,CommonCardSettings:()=>At,CommonTableSettings:()=>ht,CreateWithFilters:()=>Co,CustomCard:()=>Be,FRAGMENT_DEFINITION:()=>Ur,Field:()=>ho,FieldForAction:()=>vn,FooterAction:()=>qn,FormAction:()=>hn,GridTable:()=>Ta,HeaderAction:()=>bn,KPISettings:()=>sn,LinklistCard:()=>gt,ListCard:()=>Bt,ListReportFilterBar:()=>_r,ObjectPageAnalyticalTable:()=>vi,ObjectPageCommonTableSettings:()=>Nt,ObjectPageCustomSectionFragment:()=>Xn,ObjectPageCustomSectionView:()=>Yn,ObjectPageFooterAction:()=>En,ObjectPageGridTable:()=>yi,ObjectPageHeader:()=>Wn,ObjectPageLayout:()=>zn,ObjectPageResponsiveTable:()=>Nr,ObjectPageSectionAddressV2:()=>No,ObjectPageSectionChartV2:()=>_o,ObjectPageSectionContactV2:()=>wo,ObjectPageSectionFormV2:()=>Fo,ObjectPageSectionTableV2:()=>Do,ObjectPageSectionV2:()=>Io,ObjectPageSubSectionAddressV2:()=>Ro,ObjectPageSubSectionChartV2:()=>Vo,ObjectPageSubSectionContactV2:()=>jo,ObjectPageSubSectionFormV2:()=>$o,ObjectPageSubSectionTableV2:()=>Mo,ObjectPageSubSectionV2:()=>Lo,ObjectPageToolBarAction:()=>Pn,ObjectPageTreeTable:()=>bi,QuickVariantSelection:()=>oi,QuickVariantSelectionOP:()=>hi,QuickVariantSelectionX:()=>Sa,ResponsiveTable:()=>ur,SAP_UI_TABLE:()=>vo,StackCard:()=>Fr,TableALP:()=>yr,TableCard:()=>Gt,TableColumn:()=>ui,TableColumnAction:()=>Br,TableColumnActionIntentBased:()=>on,TableCustomColumn:()=>Al,ToolBar:()=>xl,ToolBarAction:()=>Qn,TreeTable:()=>si,buildIntentBasedActionId:()=>Sl,deleteColumnFromFragment:()=>Eo,deleteType:()=>xa,exportCustomColumnsToFragment:()=>El,exportType:()=>Aa,getChartSectionControlId:()=>Bd,getCustomColumnPath:()=>Po,getFormSectionControlId:()=>kd,getRootCustomColumnFromFragmentJSON:()=>ii,getSectionControlId:()=>Zn,getSmartChartControlId:()=>pi,getSmartTableControlId:()=>an,getSubSectionControlId:()=>Uo,getTableSectionControlId:()=>Ud});var kt=se(fe()),De=o(e=>`${kt.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),mo=o(e=>De(e)+"/tableSettings","getTableSettingPathV2");var er=o(()=>kt.ManifestSection.ovp,"getOVPsettingPath"),H=o(e=>{let t=[kt.ManifestSection.ovp+"/cards"];return e.forEach(n=>{n in kt.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath"),yd=o(e=>{let t=[kt.ManifestSection.ovp];return e.forEach(n=>{t.push(n)}),t.pop(),t.join("/")},"getGlobalSettingsPath"),en=o(e=>{let t=["sap.ui.generic.app"];return e.forEach(n=>{t.push("pages/"+n)}),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Gn=o((e,t)=>`${kt.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),vP=o(e=>{let t=[kt.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),jr=o((e,t,n)=>{let a=[];a.push(vP(e));let r=n.replace(kt.VOCWITHCOLONS,"::com.sap.vocabularies");return a.push("component/settings/sections/"+r),a.join("/")},"getAppSettingOBJsectionPathV2"),tn=o((e,t,n)=>jr(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2");var ul=o(()=>`sap.ui5/extends/extensions/${kt.v2.SAPUI5_VIEW_EXTENSION}/${kt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),rn=o((e,t,n,...a)=>{let r="|",i=n.split(r),s=e[e.length-1].split(r),l="";i.length===4?l=[i[2],i[3]].join(r):i.length===3&&(l=i[2]);let c=[i[0],s[s.length-1],l].join(r);return a.unshift(c),`${ul()}/${a.join("/")}`},"getObjectPageCustomSectionPath"),ti=class{};o(ti,"ApplicationV2"),v([St("settings")],ti.prototype,"settings",2);var cr=class{};o(cr,"AppSettings"),v([b({manifest:{path:()=>"sap.app"}})],cr.prototype,"title",2),v([b({manifest:{path:()=>"sap.app"}})],cr.prototype,"description",2),v([b({manifest:{path:()=>kt.GENERICAPPSETTINGS}}),q({since:"1.50.0"})],cr.prototype,"flexibleColumnLayout",2),v([b({manifest:{path:()=>kt.GENERICAPPSETTINGS}}),q({since:"1.46.0"})],cr.prototype,"forceGlobalRefresh",2),v([b({manifest:{path:()=>"sap.ui5"}}),q({since:"1.56.0"})],cr.prototype,"flexEnabled",2);var At=class{};o(At,"CommonCardSettings"),v([b({manifest:{path:t=>H(t)}})],At.prototype,"entitySet",2),v([b({manifest:{path:t=>H(t)}})],At.prototype,"title",2),v([b({manifest:{path:t=>H(t)}})],At.prototype,"subTitle",2),v([b({manifest:{path:t=>H(t)}})],At.prototype,"identificationAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],At.prototype,"selectionAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],At.prototype,"presentationAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],At.prototype,"defaultSpan",2),v([b({manifest:{path:t=>H(t)}})],At.prototype,"requireAppAuthorization",2),v([b({manifest:{path:t=>H(t)}})],At.prototype,"tabs",2),v([b({manifest:{path:t=>H(t)}})],At.prototype,"addODataSelect",2);var Be=class extends At{};o(Be,"CustomCard"),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"model",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"template",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"settings",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"itemText",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"valueSelectionInfo",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"staticContent",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"listFlavor",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"listType",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"sortBy",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"sortOrder",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"annotationPath",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"chartAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"dataPointAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"kpiAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"selectionPresentationAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"dynamicSubtitleAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"ignoreSapText",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"objectStreamCardsSettings",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"enableLocaleCurrencyFormatting",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"navigation",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"showFilterInHeader",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"showSortingInHeader",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"imageSupported",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"showLineItemDetail",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"showLabelText",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"customParams",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"chartProperties",2),v([b({manifest:{path:t=>H(t)}})],Be.prototype,"colorPalette",2);var Bt=class extends At{};o(Bt,"ListCard"),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"model",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"template",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"settings",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"listCardSettings",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"listFlavor",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"listType",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"annotationPath",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"valueSelectionInfo",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"sortBy",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"sortOrder",2),v([b({manifest:{path:t=>H(t)}})],Bt.prototype,"dataPointAnnotationPath",2);var hr=class extends At{};o(hr,"AnalyticalCard"),v([b({manifest:{path:t=>H(t)}})],hr.prototype,"model",2),v([b({manifest:{path:t=>H(t)}})],hr.prototype,"template",2),v([b({manifest:{path:t=>H(t)}})],hr.prototype,"settings",2),v([b({manifest:{path:t=>H(t)}})],hr.prototype,"analyticalCardSettings",2),v([b({manifest:{path:t=>H(t)}})],hr.prototype,"chartAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],hr.prototype,"dataPointAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],hr.prototype,"valueSelectionInfo",2);var Fr=class extends At{};o(Fr,"StackCard"),v([b({manifest:{path:t=>H(t)}})],Fr.prototype,"model",2),v([b({manifest:{path:t=>H(t)}})],Fr.prototype,"template",2),v([b({manifest:{path:t=>H(t)}})],Fr.prototype,"settings",2),v([b({manifest:{path:t=>H(t)}})],Fr.prototype,"stackCardSettings",2),v([b({manifest:{path:t=>H(t)}})],Fr.prototype,"itemText",2),v([b({manifest:{path:t=>H(t)}})],Fr.prototype,"objectStreamCardsNavigationProperty",2);var gt=class extends At{};o(gt,"LinklistCard"),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"model",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"template",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"settings",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"linkListCardSettings",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"title",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"subTitle",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"targetUri",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"listFlavor",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"sortBy",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"sortOrder",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"headerAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"identificationAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"defaultSpan",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"staticContent",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"requireAppAuthorization",2),v([b({manifest:{path:t=>H(t)}})],gt.prototype,"annotationPath",2);var Gt=class extends At{};o(Gt,"TableCard"),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"model",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"template",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"disableTableCardFlexibility",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"settings",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"tableCardSettings",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"annotationPath",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"listFlavor",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"listType",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"dataPointAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"selectionPresentationAnnotationPath",2),v([b({manifest:{path:t=>H(t)}})],Gt.prototype,"valueSelectionInfo",2);var bd=se(fe());var yP=o((e,t,n,a,r)=>{let i=Vt(n[1],r),s=n.slice(-1)[0];return Ze(e,[i,s,"GroupElement"])},"getSmartFieldControlId"),ho=class{};o(ho,"Field"),v([b({flex:{controlId:yP,controlType:()=>bd.ControlType.GroupElement,createFlexChange:W},generate:Ke})],ho.prototype,"visible",2);var pl=se(fe()),fl={controlId:Ze,controlType:()=>pl.ControlType.SmartFilterBar,createFlexChange:W},_r=class{};o(_r,"ListReportFilterBar"),v([b({manifest:{path:t=>De(t)}}),q({since:"1.38.0"})],_r.prototype,"smartVariantManagement",2),v([b({flex:fl}),q({since:"1.40.0"})],_r.prototype,"liveMode",2),v([b({manifest:{path:t=>De(t)}}),q({since:"1.48.0"})],_r.prototype,"variantManagementHidden",2),v([b({manifest:{path:t=>De(t)}}),q({since:"1.52.0"})],_r.prototype,"subTitleIfVariantMgmtHidden",2),v([b({flex:{controlId:Ze,controlType:()=>pl.ControlType.SmartFilterBar,createFlexChange:W}}),q({since:"1.28.0"})],_r.prototype,"showClearOnFB",2),v([b({flex:fl}),q({since:"1.38.0"})],_r.prototype,"showFilterConfiguration",2),v([b({flex:fl}),q({since:"1.28.0"})],_r.prototype,"showRestoreOnFB",2);var ri=class extends _r{};o(ri,"AnalyticalListPageFilterBar"),v([b({manifest:{path:t=>De(t)}})],ri.prototype,"showGoButtonOnFilterBar",2),v([b({manifest:{path:t=>De(t)}}),q({since:"1.60.0"})],ri.prototype,"filterDefaultsFromSelectionVariant",2);var vr=se(fe());var Mr=o((e,t,n,a,r)=>{if(a()===vr.ControlType.Button){let i=n[n.length-1],s=Vt(n[1],r);return`${e}action::${i}::${s}::FormAction`}return Ze(e,t)},"getFormActionButtonId"),hn=class{};o(hn,"FormAction"),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W},generate:Ke})],hn.prototype,"visible",2),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W}})],hn.prototype,"tooltip",2),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W}})],hn.prototype,"icon",2),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W}})],hn.prototype,"activeIcon",2),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W}})],hn.prototype,"type",2);var vn=class{};o(vn,"FieldForAction"),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W},generate:Ke})],vn.prototype,"visible",2),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W}})],vn.prototype,"tooltip",2),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W}})],vn.prototype,"icon",2),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W}})],vn.prototype,"activeIcon",2),v([b({flex:{controlId:Mr,controlType:()=>vr.ControlType.Button,createFlexChange:W}})],vn.prototype,"type",2);var tt=se(fe()),kr=se(za());var ml=require("path"),$P=se(fe()),Dd=se(_d()),Nd=require("fs"),VP=(0,ml.join)(__dirname,"templates");var RP=o((e,t)=>{let n=(0,Nd.readFileSync)(e,"utf8");return(0,Dd.render)(n,t)},"renderTemplate");var hl=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return RP((0,ml.join)(VP,t+".xml"),n)},"getSingleColumnContent"),vl=o((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let a of e){let r=hl(a,t);n=n+`
94
94
  `+r}return n+`
95
95
  </core:FragmentDefinition>`},"getColumnFragmentContent"),yl=o(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
96
96
  <Text text="Placeholder"></Text>`}),t+`